From de06ed4ddfeed1a3cb07db1c266a8b51fa4a6ad9 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 9 Jan 2025 11:27:21 +0530 Subject: [PATCH 1/3] build(deps): bump frappeui to 0.1.103 --- frappe-ui | 2 +- frontend/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frappe-ui b/frappe-ui index 8d2614723..d82b3a12e 160000 --- a/frappe-ui +++ b/frappe-ui @@ -1 +1 @@ -Subproject commit 8d26147237330c292c29e8600eeb1237c2e11555 +Subproject commit d82b3a12eeb6cb9e83375550508b462ce5cfdaf2 diff --git a/frontend/package.json b/frontend/package.json index aa70107dc..5d96081b5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,7 +14,7 @@ "@vueuse/core": "^10.3.0", "@vueuse/integrations": "^10.3.0", "feather-icons": "^4.28.0", - "frappe-ui": "^0.1.99", + "frappe-ui": "^0.1.103", "gemoji": "^8.1.0", "lodash": "^4.17.21", "mime": "^4.0.1", diff --git a/yarn.lock b/yarn.lock index 0645b686c..2eeba4ce1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2388,10 +2388,10 @@ fraction.js@^4.3.7: resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7" integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew== -frappe-ui@^0.1.99: - version "0.1.99" - resolved "https://registry.yarnpkg.com/frappe-ui/-/frappe-ui-0.1.99.tgz#66400c432856531493b81abd31dda2b7985e60a6" - integrity sha512-EEEeO4VfEW2bpimNgVvuTHiGa/du4qrt7/aCuaHkBt2p26GZcEiwZGeI+FHJERs2vsZ2PcIG4M8n4S8XU+KFPQ== +frappe-ui@^0.1.103: + version "0.1.103" + resolved "https://registry.yarnpkg.com/frappe-ui/-/frappe-ui-0.1.103.tgz#b9423c9aebb3338c2128bdcb45e746381b417394" + integrity sha512-gQeZkm+vwxW5GMJoUmakk8dTGI4kKMkHtcZBvFinHmx28dlf8WqzbVlx0e6kJRSUXUB2K3Sn7HTGBMWZY3t45Q== dependencies: "@headlessui/vue" "^1.7.14" "@popperjs/core" "^2.11.2" From 6d0d1d182f749f9b6bebc7720948369a5c38460c Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 9 Jan 2025 11:42:39 +0530 Subject: [PATCH 2/3] refactor: separated Section, Column & Field as different component --- .../src/components/Activities/DataFields.vue | 2 +- .../Controls/GridRowFieldsModal.vue | 3 +- .../src/components/Controls/GridRowModal.vue | 2 +- frontend/src/components/FieldLayout.vue | 416 ------------------ .../src/components/FieldLayout/Column.vue | 20 + frontend/src/components/FieldLayout/Field.vue | 261 +++++++++++ .../components/FieldLayout/FieldLayout.vue | 69 +++ .../src/components/FieldLayout/Section.vue | 41 ++ .../src/components/Modals/AddressModal.vue | 2 +- .../src/components/Modals/ContactModal.vue | 2 +- .../src/components/Modals/DataFieldsModal.vue | 3 +- frontend/src/components/Modals/DealModal.vue | 7 +- frontend/src/components/Modals/LeadModal.vue | 2 +- .../components/Modals/OrganizationModal.vue | 2 +- .../src/components/Modals/QuickEntryModal.vue | 2 +- frontend/src/components/Section.vue | 10 +- .../src/components/Settings/SettingsPage.vue | 3 +- frontend/src/components/SidePanelLayout.vue | 1 + 18 files changed, 415 insertions(+), 433 deletions(-) delete mode 100644 frontend/src/components/FieldLayout.vue create mode 100644 frontend/src/components/FieldLayout/Column.vue create mode 100644 frontend/src/components/FieldLayout/Field.vue create mode 100644 frontend/src/components/FieldLayout/FieldLayout.vue create mode 100644 frontend/src/components/FieldLayout/Section.vue diff --git a/frontend/src/components/Activities/DataFields.vue b/frontend/src/components/Activities/DataFields.vue index 709152657..25feb8e33 100644 --- a/frontend/src/components/Activities/DataFields.vue +++ b/frontend/src/components/Activities/DataFields.vue @@ -58,7 +58,7 @@ - - diff --git a/frontend/src/components/FieldLayout/Column.vue b/frontend/src/components/FieldLayout/Column.vue new file mode 100644 index 000000000..5f7f5bf03 --- /dev/null +++ b/frontend/src/components/FieldLayout/Column.vue @@ -0,0 +1,20 @@ + + diff --git a/frontend/src/components/FieldLayout/Field.vue b/frontend/src/components/FieldLayout/Field.vue new file mode 100644 index 000000000..19dc5ae25 --- /dev/null +++ b/frontend/src/components/FieldLayout/Field.vue @@ -0,0 +1,261 @@ + + + diff --git a/frontend/src/components/FieldLayout/FieldLayout.vue b/frontend/src/components/FieldLayout/FieldLayout.vue new file mode 100644 index 000000000..45c588d96 --- /dev/null +++ b/frontend/src/components/FieldLayout/FieldLayout.vue @@ -0,0 +1,69 @@ + + + + diff --git a/frontend/src/components/FieldLayout/Section.vue b/frontend/src/components/FieldLayout/Section.vue new file mode 100644 index 000000000..e305fcb2f --- /dev/null +++ b/frontend/src/components/FieldLayout/Section.vue @@ -0,0 +1,41 @@ + + diff --git a/frontend/src/components/Modals/AddressModal.vue b/frontend/src/components/Modals/AddressModal.vue index 9f1a3f1b8..b9f977503 100644 --- a/frontend/src/components/Modals/AddressModal.vue +++ b/frontend/src/components/Modals/AddressModal.vue @@ -50,7 +50,7 @@