Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CP-2995] Contacts Panel added (wrapper) #2078

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[CP-2995] Contacts Panel added (wrapper) - after review
  • Loading branch information
dkarski committed Sep 25, 2024
commit ff1765b598b7425aad42b18003c5cdf4603df84f
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,40 @@ const view: View = {
columns: ["1fr"],
},
},
childrenKeys: ["contactsPanel", "contactsLoader"],
},
contactsPanel: {
component: "block-box",
childrenKeys: ["contactsSearch", "contactsButtonActions"],
layout: {
gridLayout: {
rows: [],
columns: ["280px", "344px"],
justifyContent: "space-between",
},
},
childrenKeys: ["contactsForm"],
},
contactsSearch: {
contactsForm: {
component: "form",
mkurczewski marked this conversation as resolved.
Show resolved Hide resolved
config: {
formOptions: {
defaultValues: {
searchedContact: undefined,
activeContactId: undefined,
selectedContacts: [],
totalContacts: 0,
},
},
},
childrenKeys: ["contactsSearchWrapper"],
childrenKeys: ["contactsLoader"],
},
contactsLoader: {
component: "entities-loader",
config: {
entitiesTypes: ["contacts"],
},
childrenKeys: ["contactsPanel", "deleteButton", "contactsFormWrapper"],
},
contactsSearchWrapper: {
contactsPanel: {
component: "block-plain",
childrenKeys: ["contactsSearchInput"],
childrenKeys: ["contactsSearchInput", "contactsButtonActions"],
layout: {
margin: "32px",
gridLayout: {
rows: [],
columns: ["280px", "344px"],
justifyContent: "space-between",
},
},
},
contactsSearchInput: {
component: "form.searchInput",
Expand All @@ -52,7 +59,14 @@ const view: View = {
},
},
contactsButtonActions: {
component: "modal.buttons",
component: "block-plain",
layout: {
gridLayout: {
columns: ["1fr", "1fr"],
rows: [],
columnGap: "32px"
},
},
childrenKeys: ["createContactsButton", "importContactsButton"],
},
importContactsButton: {
Expand Down Expand Up @@ -81,26 +95,6 @@ const view: View = {
],
},
},
contactsLoader: {
component: "entities-loader",
config: {
entitiesTypes: ["contacts"],
},
childrenKeys: ["contactsForm"],
},
contactsForm: {
component: "form",
config: {
formOptions: {
defaultValues: {
activeContactId: undefined,
selectedContacts: [],
totalContacts: 0,
},
},
},
childrenKeys: ["deleteButton", "contactsFormWrapper"],
},
deleteButton: {
component: "button-primary",
dataProvider: {
Expand Down
Loading