@sankhyalabs/sankhyablocks 10.1.0-dev.37 → 10.1.0-dev.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-e384fb7b.js → ConfigStorage-a1fab5ca.js} +2 -2
- package/dist/cjs/ContinuousInsertUtils-1ae0c6ac.js +41 -0
- package/dist/cjs/{DataFetcher-3a8ea521.js → DataFetcher-384d2ce8.js} +1 -1
- package/dist/cjs/{ISave-a66bb65e.js → ISave-ecbe9336.js} +1 -1
- package/dist/cjs/{ImageUtils-5e3f406b.js → ImageUtils-c46f2d11.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-73df0f8b.js → SnkFormConfigManager-44386305.js} +2 -2
- package/dist/cjs/{SnkMessageBuilder-d9558dba.js → SnkMessageBuilder-a9300ebe.js} +24 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-016393f3.js → SnkMultiSelectionListDataSource-b951ed91.js} +61 -47
- package/dist/cjs/{auth-fetcher-80e608b0.js → auth-fetcher-6b134ec4.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-6febd6c4.js → dataunit-fetcher-93f53260.js} +2 -2
- package/dist/cjs/{form-config-fetcher-81cbd405.js → form-config-fetcher-45d1964c.js} +1 -1
- package/dist/cjs/index-1894343a.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_8.cjs.entry.js → snk-actions-button_9.cjs.entry.js} +52 -12
- package/dist/cjs/snk-application.cjs.entry.js +7 -7
- package/dist/cjs/snk-attach.cjs.entry.js +50 -24
- package/dist/cjs/snk-crud.cjs.entry.js +344 -109
- package/dist/cjs/snk-data-exporter.cjs.entry.js +8 -7
- package/dist/cjs/{snk-data-unit-94757628.js → snk-data-unit-6abc5efc.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
- package/dist/cjs/snk-detail-view.cjs.entry.js +11 -16
- package/dist/cjs/snk-entity-search.cjs.entry.js +211 -0
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/{snk-filter-advanced-mode_2.cjs.entry.js → snk-filter-advanced-mode_3.cjs.entry.js} +39 -1
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +106 -95
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +4 -4
- package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
- package/dist/cjs/snk-form_2.cjs.entry.js +5 -5
- package/dist/cjs/snk-grid.cjs.entry.js +40 -17
- package/dist/cjs/{snk-guides-viewer-688c4398.js → snk-guides-viewer-b4ca3437.js} +37 -153
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -17
- package/dist/cjs/snk-image-input.cjs.entry.js +2 -2
- package/dist/cjs/snk-layout-form-config.cjs.entry.js +5 -5
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +5 -5
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
- package/dist/cjs/snk-simple-crud.cjs.entry.js +12 -12
- package/dist/cjs/snk-taskbar.cjs.entry.js +181 -124
- package/dist/cjs/taskbar-elements-80eddec8.js +152 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -3
- package/dist/collection/components/snk-attach/snk-attach.css +29 -7
- package/dist/collection/components/snk-attach/snk-attach.js +81 -18
- package/dist/collection/components/snk-crud/snk-crud.css +46 -0
- package/dist/collection/components/snk-crud/snk-crud.js +143 -94
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -5
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.css +17 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.js +330 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +22 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +35 -144
- package/dist/collection/components/snk-crud/utils/taskbarUtils.js +144 -0
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +20 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +2 -2
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +23 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +6 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +8 -5
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +139 -84
- package/dist/collection/components/snk-grid/snk-grid.css +12 -3
- package/dist/collection/components/snk-grid/snk-grid.js +148 -4
- package/dist/collection/components/snk-image-input/utils/ImageUtils.js +1 -1
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +8 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +38 -2
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +51 -35
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +27 -1
- package/dist/collection/components/snk-taskbar/processor/simple-taskbar-processor.js +55 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +44 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +248 -132
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.css +12 -0
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.js +19 -0
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +8 -0
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +8 -0
- package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +8 -0
- package/dist/components/ContinuousInsertUtils.js +1 -1
- package/dist/components/SnkMessageBuilder.js +24 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/snk-actions-button2.js +6 -3
- package/dist/components/snk-attach2.js +56 -27
- package/dist/components/snk-crud.js +422 -175
- package/dist/components/snk-data-exporter2.js +3 -1
- package/dist/components/snk-detail-view2.js +158 -258
- package/dist/components/snk-entity-search.d.ts +11 -0
- package/dist/components/snk-entity-search.js +6 -0
- package/dist/components/snk-entity-search2.js +231 -0
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +94 -85
- package/dist/components/snk-filter-item2.js +4 -2
- package/dist/components/snk-filter-modal2.js +8 -5
- package/dist/components/snk-grid2.js +82 -47
- package/dist/components/snk-image-input2.js +1 -1
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +29 -23
- package/dist/components/snk-taskbar-skeleton.d.ts +11 -0
- package/dist/components/snk-taskbar-skeleton.js +6 -0
- package/dist/components/snk-taskbar-skeleton2.js +29 -0
- package/dist/components/snk-taskbar2.js +253 -174
- package/dist/components/taskbar-actions-button2.js +21 -2
- package/dist/components/taskbar-split-button2.js +10 -1
- package/dist/esm/{ConfigStorage-82ff76fb.js → ConfigStorage-76872695.js} +2 -2
- package/dist/esm/ContinuousInsertUtils-bce77dc1.js +39 -0
- package/dist/esm/{DataFetcher-1dd7e8c0.js → DataFetcher-e60f8d53.js} +1 -1
- package/dist/esm/{ISave-498c4831.js → ISave-4929c071.js} +1 -1
- package/dist/esm/{ImageUtils-8fc8d905.js → ImageUtils-7f3a4149.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-e8ae1561.js → SnkFormConfigManager-83f6b22f.js} +2 -2
- package/dist/esm/{SnkMessageBuilder-c0bc4424.js → SnkMessageBuilder-1eb7a1af.js} +24 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-ec783ded.js → SnkMultiSelectionListDataSource-7fe25a58.js} +55 -41
- package/dist/esm/{auth-fetcher-38a83f5e.js → auth-fetcher-1a31c1e4.js} +1 -1
- package/dist/esm/{dataunit-fetcher-21c43ec7.js → dataunit-fetcher-050b6d31.js} +2 -2
- package/dist/esm/{form-config-fetcher-24eb587c.js → form-config-fetcher-b44b2727.js} +1 -1
- package/dist/esm/index-04f73a26.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +5 -5
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_8.entry.js → snk-actions-button_9.entry.js} +52 -13
- package/dist/esm/snk-application.entry.js +7 -7
- package/dist/esm/snk-attach.entry.js +50 -24
- package/dist/esm/snk-crud.entry.js +333 -98
- package/dist/esm/snk-data-exporter.entry.js +8 -7
- package/dist/esm/{snk-data-unit-3b06a0f3.js → snk-data-unit-ca2c9858.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +4 -4
- package/dist/esm/snk-detail-view.entry.js +11 -16
- package/dist/esm/snk-entity-search.entry.js +207 -0
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/{snk-filter-advanced-mode_2.entry.js → snk-filter-advanced-mode_3.entry.js} +40 -3
- package/dist/esm/snk-filter-bar_4.entry.js +107 -96
- package/dist/esm/snk-filter-modal-item.entry.js +4 -4
- package/dist/esm/snk-form-view.entry.js +1 -1
- package/dist/esm/snk-form_2.entry.js +5 -5
- package/dist/esm/snk-grid.entry.js +37 -14
- package/dist/esm/{snk-guides-viewer-6ddc7e6a.js → snk-guides-viewer-cc37535b.js} +38 -154
- package/dist/esm/snk-guides-viewer.entry.js +9 -17
- package/dist/esm/snk-image-input.entry.js +2 -2
- package/dist/esm/snk-layout-form-config.entry.js +5 -5
- package/dist/esm/snk-personalized-filter.entry.js +5 -5
- package/dist/esm/snk-pesquisa.entry.js +5 -5
- package/dist/esm/snk-simple-crud.entry.js +10 -10
- package/dist/esm/snk-taskbar.entry.js +182 -125
- package/dist/esm/taskbar-elements-63651ca7.js +149 -0
- package/dist/sankhyablocks/p-09ba6bd4.js +1 -0
- package/dist/sankhyablocks/p-10f27dc6.entry.js +1 -0
- package/dist/sankhyablocks/{p-54f5c36d.entry.js → p-20af4b6a.entry.js} +1 -1
- package/dist/sankhyablocks/p-225f92cf.entry.js +1 -0
- package/dist/sankhyablocks/{p-605a2a99.entry.js → p-251aee41.entry.js} +1 -1
- package/dist/sankhyablocks/p-2af815bb.entry.js +1 -0
- package/dist/sankhyablocks/{p-bdf0077f.js → p-2af8aca3.js} +1 -1
- package/dist/sankhyablocks/p-3072136e.js +1 -0
- package/dist/sankhyablocks/p-33492640.entry.js +1 -0
- package/dist/sankhyablocks/{p-f208ec52.entry.js → p-35317d9a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6753f16e.js → p-3704bf1b.js} +1 -1
- package/dist/sankhyablocks/{p-2d606189.js → p-3870748a.js} +1 -1
- package/dist/sankhyablocks/{p-e057ecb6.js → p-3c990841.js} +1 -1
- package/dist/sankhyablocks/{p-4ff3b494.js → p-420b39b5.js} +1 -1
- package/dist/sankhyablocks/{p-8bb4e86b.entry.js → p-46f75667.entry.js} +1 -1
- package/dist/sankhyablocks/{p-32ad76cc.js → p-4f7adf97.js} +2 -2
- package/dist/sankhyablocks/p-554c0e54.js +1 -0
- package/dist/sankhyablocks/p-6ae7543b.entry.js +1 -0
- package/dist/sankhyablocks/p-771b137e.js +1 -0
- package/dist/sankhyablocks/p-77f608bc.entry.js +1 -0
- package/dist/sankhyablocks/p-7c8bf699.entry.js +1 -0
- package/dist/sankhyablocks/{p-d34a41ec.entry.js → p-8a8900a9.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e484913b.entry.js → p-95af0bb1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-10cad767.entry.js → p-98241c21.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f5b929c2.entry.js → p-ab12f544.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ef8cf0e2.js → p-ab5e12fa.js} +1 -1
- package/dist/sankhyablocks/p-ac384a1e.entry.js +1 -0
- package/dist/sankhyablocks/{p-3a98c337.entry.js → p-aff2d081.entry.js} +1 -1
- package/dist/sankhyablocks/p-b3b51693.entry.js +1 -0
- package/dist/sankhyablocks/{p-08415ef7.entry.js → p-bab4cde4.entry.js} +1 -1
- package/dist/sankhyablocks/p-ce3b284c.entry.js +1 -0
- package/dist/sankhyablocks/p-ce8ccd72.entry.js +1 -0
- package/dist/sankhyablocks/{p-b9970342.js → p-d972a9c1.js} +1 -1
- package/dist/sankhyablocks/p-e5a3711f.js +1 -0
- package/dist/sankhyablocks/{p-2b882835.entry.js → p-e737fd5a.entry.js} +1 -1
- package/dist/sankhyablocks/p-efd18bc2.entry.js +1 -0
- package/dist/sankhyablocks/{p-362e6e8c.js → p-f185d5ad.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +4 -0
- package/dist/types/components/snk-attach/snk-attach.d.ts +20 -4
- package/dist/types/components/snk-crud/snk-crud.d.ts +28 -10
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-entity-search.d.ts +62 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +4 -18
- package/dist/types/components/snk-crud/utils/taskbarUtils.d.ts +13 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +32 -20
- package/dist/types/components/snk-grid/snk-grid.d.ts +28 -1
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +6 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +29 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +5 -0
- package/dist/types/components/snk-taskbar/processor/simple-taskbar-processor.d.ts +31 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +32 -21
- package/dist/types/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.d.ts +3 -0
- package/dist/types/components.d.ts +197 -4
- package/package.json +2 -2
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +0 -45
- package/dist/cjs/taskbar-elements-a94d4318.js +0 -133
- package/dist/cjs/taskbar-processor-2fba34a8.js +0 -53
- package/dist/esm/snk-simple-bar.entry.js +0 -41
- package/dist/esm/taskbar-elements-97541bdd.js +0 -130
- package/dist/esm/taskbar-processor-3436124c.js +0 -51
- package/dist/sankhyablocks/p-07aa8192.entry.js +0 -1
- package/dist/sankhyablocks/p-1a0caadb.js +0 -1
- package/dist/sankhyablocks/p-27aea149.entry.js +0 -1
- package/dist/sankhyablocks/p-27d6590e.js +0 -1
- package/dist/sankhyablocks/p-449e36d2.entry.js +0 -1
- package/dist/sankhyablocks/p-615655bd.entry.js +0 -1
- package/dist/sankhyablocks/p-62e17eea.entry.js +0 -1
- package/dist/sankhyablocks/p-6e1a7929.entry.js +0 -1
- package/dist/sankhyablocks/p-72d62f22.js +0 -1
- package/dist/sankhyablocks/p-9c1ff75e.entry.js +0 -1
- package/dist/sankhyablocks/p-a8c5ebf1.entry.js +0 -1
- package/dist/sankhyablocks/p-b25777fa.entry.js +0 -1
- package/dist/sankhyablocks/p-b6d47f08.entry.js +0 -1
- package/dist/sankhyablocks/p-b8453e18.js +0 -1
- package/dist/sankhyablocks/p-c8043a53.entry.js +0 -1
- package/dist/sankhyablocks/p-f0c9969e.entry.js +0 -1
- package/dist/sankhyablocks/p-fc5938fb.js +0 -1
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, h, F as Fragment, g as getElement } from './index-04f73a26.js';
|
|
2
|
-
import { ObjectUtils,
|
|
3
|
-
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
2
|
+
import { ObjectUtils, Action, KeyboardManager } from '@sankhyalabs/core';
|
|
4
3
|
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
5
4
|
import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
6
|
-
import './DataFetcher-1dd7e8c0.js';
|
|
7
|
-
import './ISave-498c4831.js';
|
|
8
|
-
import { P as PresentationMode } from './index-b40568ff.js';
|
|
9
|
-
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
10
|
-
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
11
|
-
import './dataunit-fetcher-21c43ec7.js';
|
|
12
|
-
import './filter-item-type.enum-d45e026f.js';
|
|
13
|
-
import './form-config-fetcher-24eb587c.js';
|
|
14
5
|
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
|
15
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
|
16
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
17
|
-
import { T as TaskbarProcessor } from './taskbar-processor-3436124c.js';
|
|
6
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-83f6b22f.js';
|
|
7
|
+
import { T as TaskbarElement } from './taskbar-elements-63651ca7.js';
|
|
18
8
|
|
|
19
|
-
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:
|
|
9
|
+
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:132px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;--snk-workspace--header-height:40px;display:block;outline:none}ez-guide-navigator.sc-snk-guides-viewer{--ez-guide-navigator--border-radius:var(--space--12, 12px)}snk-form-view.sc-snk-guides-viewer{width:100%}stack-item.snk-guides-viewer.sc-snk-guides-viewer{display:grid}stack-item.sc-snk-guides-viewer.sc-snk-guides-viewer{display:grid;min-height:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding:0 var(--snk-guides-viewer--space-small);padding-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column;max-height:calc(100vh - var(--snk-guides-viewer__header--min-height));overflow-y:auto}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:var(--snk-guides-viewer--space-small);height:100%}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
20
10
|
|
|
21
11
|
const FORM_NAME_PREFIX = "__FORM:";
|
|
22
12
|
const SnkGuidesViewer = class {
|
|
@@ -118,7 +108,7 @@ const SnkGuidesViewer = class {
|
|
|
118
108
|
*/
|
|
119
109
|
async setFocus() {
|
|
120
110
|
var _a;
|
|
121
|
-
(_a = this._container) === null || _a === void 0 ? void 0 : _a.focus();
|
|
111
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
|
|
122
112
|
}
|
|
123
113
|
/**
|
|
124
114
|
* Recarrega os guias baseada nos metadados atuais.
|
|
@@ -221,63 +211,6 @@ const SnkGuidesViewer = class {
|
|
|
221
211
|
});
|
|
222
212
|
}
|
|
223
213
|
}
|
|
224
|
-
getTaskBarId() {
|
|
225
|
-
var _a;
|
|
226
|
-
if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
|
|
227
|
-
return TASKBAR_ID.FINISH_EDITION;
|
|
228
|
-
}
|
|
229
|
-
if (this.dataUnit.isMultipleEdition) {
|
|
230
|
-
return TASKBAR_ID.MUTIPLE_EDITION;
|
|
231
|
-
}
|
|
232
|
-
return TASKBAR_ID.REGULAR;
|
|
233
|
-
}
|
|
234
|
-
loadTaskbarProcessor() {
|
|
235
|
-
const taskbarIDs = {};
|
|
236
|
-
taskbarIDs[TASKBAR_ID.REGULAR] = this.buildBtnsRegularMode();
|
|
237
|
-
taskbarIDs[TASKBAR_ID.FINISH_EDITION] = [TaskbarElement.CANCEL, TaskbarElement.SAVE, this.handleAddGridMode()];
|
|
238
|
-
taskbarIDs[TASKBAR_ID.MUTIPLE_EDITION] = [TaskbarElement.CANCEL];
|
|
239
|
-
this._taskbarProcessor = new TaskbarProcessor(taskbarIDs);
|
|
240
|
-
this._taskbarProcessor.process(this.getTaskBarId(), this.taskbarManager, this.dataState, this.buildDisabledButtons(), this.buildInvisibleButtons());
|
|
241
|
-
}
|
|
242
|
-
buildBtnsRegularMode() {
|
|
243
|
-
var _a, _b;
|
|
244
|
-
const btnsRegularMode = [
|
|
245
|
-
TaskbarElement.ATTACH, TaskbarElement.CLONE, TaskbarElement.REMOVE, TaskbarElement.MORE_OPTIONS,
|
|
246
|
-
TaskbarElement.ACTIONS_BUTTON, TaskbarElement.DIVIDER, TaskbarElement.GRID_MODE, TaskbarElement.CONFIGURATOR,
|
|
247
|
-
];
|
|
248
|
-
if (((_b = (_a = this.dataState) === null || _a === void 0 ? void 0 : _a.selectionInfo) === null || _b === void 0 ? void 0 : _b.length) <= 1) {
|
|
249
|
-
btnsRegularMode.unshift(TaskbarElement.PREVIOUS, TaskbarElement.NEXT, TaskbarElement.DIVIDER);
|
|
250
|
-
}
|
|
251
|
-
if (this.presentationMode == PresentationMode.SECONDARY) {
|
|
252
|
-
btnsRegularMode.unshift(TaskbarElement.INSERT);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
btnsRegularMode.push(TaskbarElement.INSERT);
|
|
256
|
-
}
|
|
257
|
-
return btnsRegularMode;
|
|
258
|
-
}
|
|
259
|
-
buildDisabledButtons() {
|
|
260
|
-
var _a, _b, _c, _d, _e, _f;
|
|
261
|
-
const disabledButtons = [];
|
|
262
|
-
if (!((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.hasPrevious))
|
|
263
|
-
disabledButtons.push(TaskbarElement.PREVIOUS);
|
|
264
|
-
if (!((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.hasNext))
|
|
265
|
-
disabledButtons.push(TaskbarElement.NEXT);
|
|
266
|
-
if (((_d = (_c = this.dataState) === null || _c === void 0 ? void 0 : _c.selectionInfo) === null || _d === void 0 ? void 0 : _d.length) > 1)
|
|
267
|
-
disabledButtons.push(TaskbarElement.CLONE);
|
|
268
|
-
if ((_f = (_e = this.dataState) === null || _e === void 0 ? void 0 : _e.selectionInfo) === null || _f === void 0 ? void 0 : _f.isAllRecords())
|
|
269
|
-
disabledButtons.push(TaskbarElement.REMOVE);
|
|
270
|
-
return disabledButtons;
|
|
271
|
-
}
|
|
272
|
-
handleAddGridMode() {
|
|
273
|
-
return this.enableGridInsert ? TaskbarElement.GRID_MODE : "";
|
|
274
|
-
}
|
|
275
|
-
buildInvisibleButtons() {
|
|
276
|
-
const invisibleButtons = [];
|
|
277
|
-
if (this.dataState && this.dataState.selectionInfo.mode === SelectionMode.ALL_RECORDS)
|
|
278
|
-
invisibleButtons.push(TaskbarElement.ACTIONS_BUTTON);
|
|
279
|
-
return invisibleButtons;
|
|
280
|
-
}
|
|
281
214
|
static updateContentCard(formName, cardConfig, propertyChanged, configManager) {
|
|
282
215
|
return configManager.saveCardState(formName, cardConfig, propertyChanged);
|
|
283
216
|
}
|
|
@@ -345,7 +278,7 @@ const SnkGuidesViewer = class {
|
|
|
345
278
|
if (!sheet)
|
|
346
279
|
return;
|
|
347
280
|
const cardConfig = (_b = (_a = this.masterFormConfig) === null || _a === void 0 ? void 0 : _a.cardsState) === null || _b === void 0 ? void 0 : _b.get(cardId);
|
|
348
|
-
return (h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_d = (_c = this.masterFormConfig) === null || _c === void 0 ? void 0 : _c.summary) === null || _d === void 0 ? void 0 : _d.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: cardId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch, entityPath: this.entityPath }
|
|
281
|
+
return (h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_d = (_c = this.masterFormConfig) === null || _c === void 0 ? void 0 : _c.summary) === null || _d === void 0 ? void 0 : _d.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: cardId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch, entityPath: this.entityPath }));
|
|
349
282
|
}
|
|
350
283
|
isDetailGuide(childEntityName, levels) {
|
|
351
284
|
return childEntityName || levels.length > 0;
|
|
@@ -368,12 +301,6 @@ const SnkGuidesViewer = class {
|
|
|
368
301
|
var _a;
|
|
369
302
|
return (_a = this.customGuidesConfig) === null || _a === void 0 ? void 0 : _a.map(g => g.id).includes(guideId);
|
|
370
303
|
}
|
|
371
|
-
onBreadcrumbClickHandler(item) {
|
|
372
|
-
if ((item === null || item === void 0 ? void 0 : item.id) == undefined) {
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
this._guideNavigator.selectGuide(item.id);
|
|
376
|
-
}
|
|
377
304
|
updateSelectedGuideHandler(currentItem) {
|
|
378
305
|
this._guideHasChanged = this.selectedGuide != currentItem;
|
|
379
306
|
this.selectedGuide = currentItem;
|
|
@@ -382,10 +309,6 @@ const SnkGuidesViewer = class {
|
|
|
382
309
|
});
|
|
383
310
|
this.resetGuideBadge(currentItem);
|
|
384
311
|
}
|
|
385
|
-
changeGuideHandler(guideName) {
|
|
386
|
-
var _a;
|
|
387
|
-
(_a = this._guideNavigator) === null || _a === void 0 ? void 0 : _a.selectGuide(guideName);
|
|
388
|
-
}
|
|
389
312
|
clearFieldToFocusHandler() {
|
|
390
313
|
this._fieldToGetFocus = undefined;
|
|
391
314
|
}
|
|
@@ -458,49 +381,6 @@ const SnkGuidesViewer = class {
|
|
|
458
381
|
window.scrollTo(0, 0);
|
|
459
382
|
this._guideHasChanged = false;
|
|
460
383
|
}
|
|
461
|
-
getFieldsSearch(item) {
|
|
462
|
-
if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
|
|
463
|
-
this._hasToCreateFieldSearch = false;
|
|
464
|
-
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
|
465
|
-
}
|
|
466
|
-
return this._fieldSearch;
|
|
467
|
-
}
|
|
468
|
-
fieldsOptionLoader(argument) {
|
|
469
|
-
return Promise.resolve(this._configManager.getFieldsList(argument)
|
|
470
|
-
.map(field => ({ value: field.name, label: field.label })));
|
|
471
|
-
}
|
|
472
|
-
onSelectField(option) {
|
|
473
|
-
if (option == undefined) {
|
|
474
|
-
return;
|
|
475
|
-
}
|
|
476
|
-
this._fieldToGetFocus = option.value;
|
|
477
|
-
const fieldGuideName = this.getGuideName(option.value);
|
|
478
|
-
if (fieldGuideName !== this.selectedGuide.id) {
|
|
479
|
-
this.changeGuideHandler(fieldGuideName);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
getActionsList() {
|
|
483
|
-
var _a;
|
|
484
|
-
const hardList = [];
|
|
485
|
-
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
|
486
|
-
return hardList.concat((_a = this.taskbarManager.getMoreOptions(this.getTaskBarId(), this.configName, this.dataState, this.actionsList)) !== null && _a !== void 0 ? _a : []);
|
|
487
|
-
}
|
|
488
|
-
return hardList.concat(this.actionsList);
|
|
489
|
-
}
|
|
490
|
-
getSettingsListForm() {
|
|
491
|
-
const hardList = [{
|
|
492
|
-
value: StringUtils.generateUUID(),
|
|
493
|
-
label: this.getMessage("snkCrud.findColumn"),
|
|
494
|
-
disableCloseOnSelect: true,
|
|
495
|
-
eagerInitialize: true,
|
|
496
|
-
itemBuilder: (_, item) => this.getFieldsSearch(item)
|
|
497
|
-
}];
|
|
498
|
-
return hardList;
|
|
499
|
-
}
|
|
500
|
-
buildTaskBar() {
|
|
501
|
-
var _a;
|
|
502
|
-
return h("div", { class: `snk-guides-viewer__header-taskbar ${this.presentationMode != PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.getActionsList(), actionsSettingsList: this.getSettingsListForm(), messagesBuilder: this.messagesBuilder, presentationMode: this.presentationMode, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? TaskbarElement.SAVE : TaskbarElement.INSERT, "data-taskbar-owner": "master", dataUnit: this.dataUnit, resourceID: this.resourceID, customSlotId: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS", additionalSlotId: "GUIDES_VIEWER_DYNAMIC_SEARCH", alignRigth: true }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GUIDES_VIEWER_DYNAMIC_SEARCH" })));
|
|
503
|
-
}
|
|
504
384
|
async dataUnitActionHandler(action) {
|
|
505
385
|
var _a;
|
|
506
386
|
switch (action.type) {
|
|
@@ -555,30 +435,42 @@ const SnkGuidesViewer = class {
|
|
|
555
435
|
}
|
|
556
436
|
return "";
|
|
557
437
|
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
return (_b = (_a = this.getCustomTitle) === null || _a === void 0 ? void 0 : _a.call(this)) !== null && _b !== void 0 ? _b : this.getMessage("snkCrud.title");
|
|
561
|
-
}
|
|
562
|
-
getTitleTooltip() {
|
|
563
|
-
if (!this.dataUnit.isMultipleEdition)
|
|
564
|
-
return;
|
|
565
|
-
return this.buildRecordIdsArray();
|
|
438
|
+
getCustomGuidesConfig() {
|
|
439
|
+
return this._currentDetail ? [] : this.customGuidesConfig;
|
|
566
440
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
441
|
+
getFieldsSearch() {
|
|
442
|
+
if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
|
|
443
|
+
this._hasToCreateFieldSearch = false;
|
|
444
|
+
const item = {
|
|
445
|
+
label: this.getMessage("snkSimpleCrud.findFields"),
|
|
446
|
+
value: "findFields",
|
|
447
|
+
};
|
|
448
|
+
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
|
572
449
|
}
|
|
573
|
-
|
|
574
|
-
return `[${labels.join(", ")}]`;
|
|
450
|
+
return this._fieldSearch;
|
|
575
451
|
}
|
|
576
|
-
|
|
577
|
-
return
|
|
452
|
+
fieldsOptionLoader(argument) {
|
|
453
|
+
return Promise.resolve(this._configManager.getFieldsList(argument)
|
|
454
|
+
.map(field => ({ value: field.name, label: field.label })));
|
|
455
|
+
}
|
|
456
|
+
changeGuideHandler(guideName) {
|
|
457
|
+
var _a;
|
|
458
|
+
(_a = this._guideNavigator) === null || _a === void 0 ? void 0 : _a.selectGuide(guideName);
|
|
459
|
+
}
|
|
460
|
+
onSelectField(option) {
|
|
461
|
+
if (option == undefined) {
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
this._fieldToGetFocus = option.value;
|
|
465
|
+
const fieldGuideName = this.getGuideName(option.value);
|
|
466
|
+
if (fieldGuideName !== this.selectedGuide.id) {
|
|
467
|
+
this.changeGuideHandler(fieldGuideName);
|
|
468
|
+
}
|
|
578
469
|
}
|
|
579
470
|
componentDidLoad() {
|
|
580
471
|
this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
|
581
472
|
this.initKeyboardManager();
|
|
473
|
+
this.getFieldsSearch();
|
|
582
474
|
}
|
|
583
475
|
disconnectedCallback() {
|
|
584
476
|
var _a;
|
|
@@ -598,15 +490,14 @@ const SnkGuidesViewer = class {
|
|
|
598
490
|
}
|
|
599
491
|
}
|
|
600
492
|
renderGuidesNavigator(showGuides) {
|
|
601
|
-
var _a
|
|
602
|
-
return (h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabIndex: -1 }, h("div", { class: "
|
|
603
|
-
h("div", { class: "ez-margin-top--extra-small" }, h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != PresentationMode.SECONDARY && this.buildTaskBar()), h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
493
|
+
var _a;
|
|
494
|
+
return (h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabIndex: -1 }, h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
604
495
|
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
605
496
|
:
|
|
606
497
|
h("div", null), h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms({
|
|
607
498
|
formConfig: this.masterFormConfig,
|
|
608
499
|
formMetadata: this._masterFormMetadata,
|
|
609
|
-
selectedForm: (
|
|
500
|
+
selectedForm: (_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.id,
|
|
610
501
|
dataUnit: this.dataUnit,
|
|
611
502
|
recordsValidator: this.recordsValidator,
|
|
612
503
|
fieldToFocus: this._fieldToGetFocus,
|
|
@@ -620,7 +511,6 @@ const SnkGuidesViewer = class {
|
|
|
620
511
|
if (!this.dataUnit || !this._configManager.isLoaded) {
|
|
621
512
|
return;
|
|
622
513
|
}
|
|
623
|
-
this.loadTaskbarProcessor();
|
|
624
514
|
const showGuides = this._guides && (this._guides.length > 1);
|
|
625
515
|
return (h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "guides-viewer-stack" }, h("stack-item", null, this.renderGuidesNavigator(showGuides)), h("stack-item", null, this.renderFormConfig())));
|
|
626
516
|
}
|
|
@@ -632,12 +522,6 @@ const SnkGuidesViewer = class {
|
|
|
632
522
|
"masterFormConfig": ["observeMasterFormConfig"]
|
|
633
523
|
}; }
|
|
634
524
|
};
|
|
635
|
-
var TASKBAR_ID;
|
|
636
|
-
(function (TASKBAR_ID) {
|
|
637
|
-
TASKBAR_ID["FINISH_EDITION"] = "snkGuideViewer.finish_edition";
|
|
638
|
-
TASKBAR_ID["MUTIPLE_EDITION"] = "snkGuideViewer.multiple_edition";
|
|
639
|
-
TASKBAR_ID["REGULAR"] = "snkGuideViewer.regular";
|
|
640
|
-
})(TASKBAR_ID || (TASKBAR_ID = {}));
|
|
641
525
|
var GUIDES_VIEWER_VIEW_MODE;
|
|
642
526
|
(function (GUIDES_VIEWER_VIEW_MODE) {
|
|
643
527
|
GUIDES_VIEWER_VIEW_MODE[GUIDES_VIEWER_VIEW_MODE["GUIDES"] = 0] = "GUIDES";
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
export { S as snk_guides_viewer } from './snk-guides-viewer-
|
|
1
|
+
export { S as snk_guides_viewer } from './snk-guides-viewer-cc37535b.js';
|
|
2
2
|
import './index-04f73a26.js';
|
|
3
3
|
import '@sankhyalabs/core';
|
|
4
|
-
import '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
5
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
|
6
5
|
import '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
7
|
-
import './
|
|
6
|
+
import './constants-7b422de0.js';
|
|
7
|
+
import './SnkFormConfigManager-83f6b22f.js';
|
|
8
|
+
import './ConfigStorage-76872695.js';
|
|
9
|
+
import './form-config-fetcher-b44b2727.js';
|
|
10
|
+
import './DataFetcher-e60f8d53.js';
|
|
8
11
|
import './PrintUtils-3e4ff0f5.js';
|
|
9
|
-
import './SnkMessageBuilder-
|
|
12
|
+
import './SnkMessageBuilder-1eb7a1af.js';
|
|
10
13
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
11
|
-
import './ISave-498c4831.js';
|
|
12
|
-
import './index-b40568ff.js';
|
|
13
|
-
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
14
|
-
import './dataunit-fetcher-21c43ec7.js';
|
|
15
|
-
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
16
|
-
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
17
|
-
import './ResourceIDUtils-a114189a.js';
|
|
18
14
|
import './filter-item-type.enum-d45e026f.js';
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './SnkFormConfigManager-e8ae1561.js';
|
|
22
|
-
import './ConfigStorage-82ff76fb.js';
|
|
23
|
-
import './taskbar-elements-97541bdd.js';
|
|
15
|
+
import './taskbar-elements-63651ca7.js';
|
|
16
|
+
import './index-b40568ff.js';
|
|
24
17
|
import './index-ea250be6.js';
|
|
25
|
-
import './taskbar-processor-3436124c.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, h, f as Host } from './index-04f73a26.js';
|
|
2
2
|
import { Action, ApplicationContext } from '@sankhyalabs/core';
|
|
3
|
-
import { S as SnkMessageBuilder } from './SnkMessageBuilder-
|
|
4
|
-
import { b as base64ToBlob, s as sessionFileUpload, a as buildFileKey, g as getPKs, d as downloadImage } from './ImageUtils-
|
|
3
|
+
import { S as SnkMessageBuilder } from './SnkMessageBuilder-1eb7a1af.js';
|
|
4
|
+
import { b as base64ToBlob, s as sessionFileUpload, a as buildFileKey, g as getPKs, d as downloadImage } from './ImageUtils-7f3a4149.js';
|
|
5
5
|
|
|
6
6
|
const snkImageInputCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-04f73a26.js';
|
|
2
|
-
import './DataFetcher-
|
|
3
|
-
import './ISave-
|
|
2
|
+
import './DataFetcher-e60f8d53.js';
|
|
3
|
+
import './ISave-4929c071.js';
|
|
4
4
|
import { ApplicationContext } from '@sankhyalabs/core';
|
|
5
5
|
import './index-b40568ff.js';
|
|
6
6
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
7
7
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
8
|
-
import './dataunit-fetcher-
|
|
8
|
+
import './dataunit-fetcher-050b6d31.js';
|
|
9
9
|
import './filter-item-type.enum-d45e026f.js';
|
|
10
|
-
import { F as FormConfigFetcher } from './form-config-fetcher-
|
|
10
|
+
import { F as FormConfigFetcher } from './form-config-fetcher-b44b2727.js';
|
|
11
11
|
import './constants-7b422de0.js';
|
|
12
12
|
import { FormLayout } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
13
13
|
import './PrintUtils-3e4ff0f5.js';
|
|
14
|
-
import './SnkMessageBuilder-
|
|
14
|
+
import './SnkMessageBuilder-1eb7a1af.js';
|
|
15
15
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
16
16
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
17
17
|
import './ResourceIDUtils-a114189a.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, h, F as Fragment, f as Host } from './index-04f73a26.js';
|
|
2
2
|
import { StringUtils, ObjectUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-d2439a9a.js';
|
|
4
|
-
import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-
|
|
4
|
+
import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-76872695.js';
|
|
5
5
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
6
6
|
import { a as FilterGroupCondition, D as DefaultFilter } from './index-8acbae97.js';
|
|
7
7
|
import { s as store } from './index-ea250be6.js';
|
|
8
8
|
import './filter-item-type.enum-d45e026f.js';
|
|
9
|
-
import './form-config-fetcher-
|
|
10
|
-
import './DataFetcher-
|
|
9
|
+
import './form-config-fetcher-b44b2727.js';
|
|
10
|
+
import './DataFetcher-e60f8d53.js';
|
|
11
11
|
import './PrintUtils-3e4ff0f5.js';
|
|
12
|
-
import './SnkMessageBuilder-
|
|
12
|
+
import './SnkMessageBuilder-1eb7a1af.js';
|
|
13
13
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
14
14
|
|
|
15
15
|
const snkPersonalizedFilterCss = ".sc-snk-personalized-filter-h{display:flex;height:100%;padding:var(--space--large, 24px);--snk-personalized-filter--width:100%;--snk-personalized-filter--height:100%;--snk-personalized-filter--background-color-line:var(--color--disable-secondary);--snk-personalized-filter--margin-line:var(--border--radius-medium, 12px)}.snk-personalized-filter.sc-snk-personalized-filter{height:var(--snk-personalized-filter--width);width:var(--snk-personalized-filter--height)}.snk-personalized-filter__header-actions.sc-snk-personalized-filter{display:flex;gap:var(--space--medium)}.snk-personalized-filter__group.sc-snk-personalized-filter{flex:1}.snk-personalized-filter__expression-input--line.sc-snk-personalized-filter{width:100%;height:2px;background-color:var(--snk-personalized-filter--background-color-line);margin-top:var(--snk-personalized-filter--margin-line);margin-bottom:var(--snk-personalized-filter--margin-line)}.ez-box__main.sc-snk-personalized-filter{height:90%}.snk-personalized-filter__button-mode.sc-snk-personalized-filter{height:35px}";
|
|
@@ -343,7 +343,7 @@ const SnkPersonalizedFilter = class {
|
|
|
343
343
|
if (!((_a = this._filterAssistent) === null || _a === void 0 ? void 0 : _a.assistent) && this._filterAssistentMode) {
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
|
-
return (h(Host, null, h("div", { class: "snk-personalized-filter" }, h("div", null, h("snk-simple-bar", { label: this.buildTitle(), onExit: () => this.handleCancel() }, h("div", { class: "snk-personalized-filter__header-actions", slot: "rightSlot" }, h("ez-button", {
|
|
346
|
+
return (h(Host, null, h("div", { class: "snk-personalized-filter" }, h("div", null, h("snk-simple-bar", { label: this.buildTitle(), onExit: () => this.handleCancel() }, h("div", { class: "snk-personalized-filter__header-actions", slot: "rightSlot" }, h("ez-button", { label: this.getMessage("snkPersonalizedFilter.info.labelCancel"), onClick: () => this.handleCancel() }), h("ez-button", { ref: (el) => this._elButtonSave = el, enabled: false, class: "ez-button--primary", label: this.getMessage("snkPersonalizedFilter.info.labelSave"), onClick: this.handleSave.bind(this) })))), h("div", { class: "ez-box ez-margin-bottom--medium ez-box__main" }, h("div", { class: "ez-box__container" }, h("div", { class: "ez-flex ez-flex--column ez-size-width--full" }, h("div", { class: "ez-flex" }, h("ez-tooltip", { message: this.getMessage("snkPersonalizedFilter.info.textInputDisabled"), active: this.isDefaultFilter }, h("ez-text-input", { class: "ez-padding-right--medium", label: this.getMessage("snkPersonalizedFilter.info.labelNameFilter"), value: (_b = this._filterAssistent) === null || _b === void 0 ? void 0 : _b.name, onEzChange: (evt) => this.handleTitleChange(evt.detail), enabled: !this.isDefaultFilter })), this.renderButtonAddField(), h("ez-button", { ref: (el) => this._elButtonMode = el, class: "snk-personalized-filter__button-mode", label: this._filterAssistentMode ? this.getMessage("snkPersonalizedFilter.info.activeModeAdvanced") : this.getMessage("snkPersonalizedFilter.info.activeModeAssistent"), onClick: () => this.handleModeChange(), "data-tooltip": !(this._filterAssistentMode || ((_c = this._filterAssistent) === null || _c === void 0 ? void 0 : _c.assistent)) ? this.getMessage("snkPersonalizedFilter.info.tooltipDisabledAssistentMode") : undefined, "data-flow": "bottom", enabled: (!this._filterAssistent.name || Boolean(this._filterAssistentMode || ((_d = this._filterAssistent) === null || _d === void 0 ? void 0 : _d.assistent))) })), this.buildContainerPersonalizedFilter()))))));
|
|
347
347
|
}
|
|
348
348
|
static get watchers() { return {
|
|
349
349
|
"filterId": ["loadFilter"]
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, h, f as Host, g as getElement } from './index-04f73a26.js';
|
|
2
2
|
import { ObjectUtils, StringUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { P as PesquisaFetcher, b as buildGridMetadata, a as PESQUISA_VIEW_MODE } from './ISave-
|
|
4
|
-
import './DataFetcher-
|
|
3
|
+
import { P as PesquisaFetcher, b as buildGridMetadata, a as PESQUISA_VIEW_MODE } from './ISave-4929c071.js';
|
|
4
|
+
import './DataFetcher-e60f8d53.js';
|
|
5
5
|
import './index-b40568ff.js';
|
|
6
6
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
7
7
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
8
|
-
import './dataunit-fetcher-
|
|
8
|
+
import './dataunit-fetcher-050b6d31.js';
|
|
9
9
|
import './filter-item-type.enum-d45e026f.js';
|
|
10
|
-
import './form-config-fetcher-
|
|
10
|
+
import './form-config-fetcher-b44b2727.js';
|
|
11
11
|
import './constants-7b422de0.js';
|
|
12
12
|
import './PrintUtils-3e4ff0f5.js';
|
|
13
|
-
import './SnkMessageBuilder-
|
|
13
|
+
import './SnkMessageBuilder-1eb7a1af.js';
|
|
14
14
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
15
15
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
16
16
|
import './ResourceIDUtils-a114189a.js';
|
|
@@ -2,22 +2,22 @@ import { r as registerInstance, e as createEvent, h, g as getElement } from './i
|
|
|
2
2
|
import { StringUtils, ApplicationContext, ObjectUtils, Action, DataType, UserInterface, KeyboardManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { CSSVarsUtils, buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { V as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-7b422de0.js';
|
|
5
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
6
|
-
import './DataFetcher-
|
|
7
|
-
import './ISave-
|
|
8
|
-
import { S as SnkMultiSelectionListDataSource,
|
|
5
|
+
import { T as TaskbarElement } from './taskbar-elements-63651ca7.js';
|
|
6
|
+
import './DataFetcher-e60f8d53.js';
|
|
7
|
+
import './ISave-4929c071.js';
|
|
8
|
+
import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor, R as RmPrecisionCustomValueFormatter, a as CrudUtils, b as ClientSideExporterProvider } from './SnkMultiSelectionListDataSource-7fe25a58.js';
|
|
9
9
|
import { P as PresentationMode } from './index-b40568ff.js';
|
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
11
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
12
|
-
import { I as InMemoryLoader } from './dataunit-fetcher-
|
|
12
|
+
import { I as InMemoryLoader } from './dataunit-fetcher-050b6d31.js';
|
|
13
13
|
import './filter-item-type.enum-d45e026f.js';
|
|
14
|
-
import { F as FormConfigFetcher } from './form-config-fetcher-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-e8ae1561.js';
|
|
14
|
+
import { F as FormConfigFetcher } from './form-config-fetcher-b44b2727.js';
|
|
15
|
+
import { C as ConfigStorage } from './ConfigStorage-76872695.js';
|
|
16
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-83f6b22f.js';
|
|
18
17
|
import { s as store } from './index-ea250be6.js';
|
|
18
|
+
import { C as ContinuousInsertUtils } from './ContinuousInsertUtils-bce77dc1.js';
|
|
19
19
|
import './PrintUtils-3e4ff0f5.js';
|
|
20
|
-
import './SnkMessageBuilder-
|
|
20
|
+
import './SnkMessageBuilder-1eb7a1af.js';
|
|
21
21
|
import './GetSelectedRecordsIDsInfo-9fa41508.js';
|
|
22
22
|
import './IFetchDataExporterParams-d73bed3d.js';
|
|
23
23
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
|