@sankhyalabs/sankhyablocks 10.1.0-dev.36 → 10.1.0-dev.38
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-d9d24844.js → ConfigStorage-a1fab5ca.js} +19 -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-c88cf1e9.js → SnkFormConfigManager-44386305.js} +2 -2
- package/dist/cjs/{SnkMessageBuilder-d9558dba.js → SnkMessageBuilder-a9300ebe.js} +24 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-f53b60c4.js → SnkMultiSelectionListDataSource-b951ed91.js} +61 -47
- package/dist/cjs/{auth-fetcher-faa61f64.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-72cf0e3d.js → form-config-fetcher-45d1964c.js} +19 -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} +77 -13
- 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 +349 -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 -16
- package/dist/cjs/{snk-guides-viewer-c1040c2e.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 +148 -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 -3
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +46 -1
- 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/configs/ConfigStorage.js +5 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +12 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +18 -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/ConfigStorage.js +17 -0
- package/dist/components/ContinuousInsertUtils.js +1 -1
- package/dist/components/SnkMessageBuilder.js +24 -0
- package/dist/components/form-config-fetcher.js +18 -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 +427 -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-grid-config2.js +27 -1
- package/dist/components/snk-grid2.js +82 -46
- 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-d15d2014.js → ConfigStorage-76872695.js} +19 -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-86befa68.js → SnkFormConfigManager-83f6b22f.js} +2 -2
- package/dist/esm/{SnkMessageBuilder-c0bc4424.js → SnkMessageBuilder-1eb7a1af.js} +24 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-6e9496f0.js → SnkMultiSelectionListDataSource-7fe25a58.js} +55 -41
- package/dist/esm/{auth-fetcher-69cbda8d.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-fcc7b62f.js → form-config-fetcher-b44b2727.js} +19 -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} +78 -15
- 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 +338 -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 -13
- package/dist/esm/{snk-guides-viewer-f1e9d964.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-4a8d0917.entry.js → p-20af4b6a.entry.js} +1 -1
- package/dist/sankhyablocks/p-225f92cf.entry.js +1 -0
- package/dist/sankhyablocks/{p-88b0797e.entry.js → p-251aee41.entry.js} +1 -1
- 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-17653b22.entry.js → p-35317d9a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e0a6818c.js → p-3704bf1b.js} +1 -1
- package/dist/sankhyablocks/p-3870748a.js +28 -0
- package/dist/sankhyablocks/{p-9114e869.js → p-3c990841.js} +2 -2
- 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-48c580b9.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-0d15b109.entry.js → p-ab12f544.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7e9f8fa4.js → p-ab5e12fa.js} +1 -1
- package/dist/sankhyablocks/p-ac384a1e.entry.js +1 -0
- package/dist/sankhyablocks/p-ac85f011.entry.js +1 -0
- package/dist/sankhyablocks/{p-ebce5394.entry.js → p-aff2d081.entry.js} +1 -1
- package/dist/sankhyablocks/p-b3b51693.entry.js +1 -0
- package/dist/sankhyablocks/{p-c860552e.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-grid-config/snk-grid-config.d.ts +7 -0
- 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 +205 -4
- package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
- 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-07619e85.entry.js +0 -1
- package/dist/sankhyablocks/p-0bd505e4.entry.js +0 -1
- package/dist/sankhyablocks/p-1a0caadb.js +0 -1
- package/dist/sankhyablocks/p-27d6590e.js +0 -1
- package/dist/sankhyablocks/p-45a830d9.js +0 -1
- package/dist/sankhyablocks/p-4abf2838.entry.js +0 -1
- package/dist/sankhyablocks/p-4cdfa0e4.entry.js +0 -1
- package/dist/sankhyablocks/p-72d62f22.js +0 -1
- package/dist/sankhyablocks/p-73b455e1.entry.js +0 -1
- package/dist/sankhyablocks/p-9c1ff75e.entry.js +0 -1
- package/dist/sankhyablocks/p-a9667c44.entry.js +0 -1
- package/dist/sankhyablocks/p-a9839628.js +0 -26
- package/dist/sankhyablocks/p-b25777fa.entry.js +0 -1
- package/dist/sankhyablocks/p-bd1c1b49.entry.js +0 -1
- package/dist/sankhyablocks/p-c8043a53.entry.js +0 -1
- package/dist/sankhyablocks/p-f02b7963.js +0 -1
- package/dist/sankhyablocks/p-f1bf7248.entry.js +0 -1
- package/dist/sankhyablocks/p-f2472d12.entry.js +0 -1
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, i as forceUpdate, h, f as Host, g as getElement } from './index-04f73a26.js';
|
|
2
2
|
import { Action, StringUtils, KeyboardManager } from '@sankhyalabs/core';
|
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-83f6b22f.js';
|
|
4
4
|
import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
5
|
-
import './DataFetcher-
|
|
6
|
-
import './ISave-
|
|
5
|
+
import './DataFetcher-e60f8d53.js';
|
|
6
|
+
import './ISave-4929c071.js';
|
|
7
7
|
import { P as PresentationMode } from './index-b40568ff.js';
|
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
10
|
-
import './dataunit-fetcher-
|
|
10
|
+
import './dataunit-fetcher-050b6d31.js';
|
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
|
12
|
-
import './form-config-fetcher-
|
|
12
|
+
import './form-config-fetcher-b44b2727.js';
|
|
13
13
|
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
|
14
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
15
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
|
16
|
-
import { S as SnkMessageBuilder } from './SnkMessageBuilder-
|
|
14
|
+
import { T as TaskbarElement } from './taskbar-elements-63651ca7.js';
|
|
15
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-cc37535b.js';
|
|
16
|
+
import { S as SnkMessageBuilder } from './SnkMessageBuilder-1eb7a1af.js';
|
|
17
17
|
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
18
|
-
import './ConfigStorage-
|
|
18
|
+
import './ConfigStorage-76872695.js';
|
|
19
19
|
import './PrintUtils-3e4ff0f5.js';
|
|
20
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
21
21
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
22
22
|
import './ResourceIDUtils-a114189a.js';
|
|
23
23
|
import './index-ea250be6.js';
|
|
24
|
-
import '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
25
|
-
import './taskbar-processor-3436124c.js';
|
|
26
24
|
|
|
27
25
|
class GuideBuilder {
|
|
28
26
|
constructor(parentGuide, formMetadata, dataUnit, messageBuilder) {
|
|
@@ -265,9 +263,6 @@ const SnkDetailView = class {
|
|
|
265
263
|
this.snkSwitchGuide.emit(guideId);
|
|
266
264
|
}
|
|
267
265
|
}
|
|
268
|
-
handleAttachBack() {
|
|
269
|
-
this._viewStack.show(VIEW_MODE.GRID);
|
|
270
|
-
}
|
|
271
266
|
executeActionHandler(evt) {
|
|
272
267
|
if (evt.detail === TaskbarElement.GRID_MODE) {
|
|
273
268
|
this.emitSwitchEvent(VIEW_MODE.GRID);
|
|
@@ -278,7 +273,7 @@ const SnkDetailView = class {
|
|
|
278
273
|
evt.stopPropagation();
|
|
279
274
|
}
|
|
280
275
|
if (evt.detail === TaskbarElement.ATTACH) {
|
|
281
|
-
this.
|
|
276
|
+
this._snkAttach.open();
|
|
282
277
|
evt.stopPropagation();
|
|
283
278
|
}
|
|
284
279
|
}
|
|
@@ -373,7 +368,7 @@ const SnkDetailView = class {
|
|
|
373
368
|
render() {
|
|
374
369
|
this.updateLabel();
|
|
375
370
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
|
376
|
-
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false, enableGridInsert: true }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), fieldToFocus: this._fieldToGetFocus, label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems), onSnkRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), fieldSearch: this._fieldSearch, entityPath: this.entityName }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS", actionsSettingsList: this.getSettingsListForm() }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("
|
|
371
|
+
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false, enableGridInsert: true }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), fieldToFocus: this._fieldToGetFocus, label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems), onSnkRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), fieldSearch: this._fieldSearch, entityPath: this.entityName }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS", actionsSettingsList: this.getSettingsListForm() }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))))), h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName }))));
|
|
377
372
|
}
|
|
378
373
|
get _element() { return getElement(this); }
|
|
379
374
|
static get watchers() { return {
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-04f73a26.js';
|
|
2
|
+
import { KeyboardManager, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
+
|
|
4
|
+
const snkEntitySearchCss = ".entity-search-popover{width:432px;font-family:var(--font-pattern, \"Roboto\");color:var(--color--gray-600, #1C1D22);text-shadow:0 0 var(--color--gray-500, #494A4E), 0 0 1px transparent;font-size:var(--font-size--large, 18px);padding:var(--space--24, 24px);max-width:430px;display:flex;flex-direction:column}.entity-search-popover label{margin-bottom:var(--space--16, 16px)}";
|
|
5
|
+
|
|
6
|
+
const SnkEntitySearch = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.loaded = createEvent(this, "loaded", 7);
|
|
10
|
+
this.SEARCH_DESCRIPTION_TIMEOUT = 300;
|
|
11
|
+
this._entityPKField = null;
|
|
12
|
+
this.searchEntitySelect = async (item) => {
|
|
13
|
+
if (!this._entityPKField || !item) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
try {
|
|
17
|
+
const pk = [{ name: this._entityPKField, value: item.value }];
|
|
18
|
+
await this.closeSearchPopover();
|
|
19
|
+
await this.refreshDataUnitByPk(pk);
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
console.error('Erro ao selecionar entidade:', error);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
this.entityName = "";
|
|
26
|
+
this.dataUnit = undefined;
|
|
27
|
+
this.messagesBuilder = undefined;
|
|
28
|
+
this._searchInputValue = "";
|
|
29
|
+
this._showMoreOnSearch = false;
|
|
30
|
+
this.visibleOptions = [];
|
|
31
|
+
this.value = undefined;
|
|
32
|
+
this.showLoading = true;
|
|
33
|
+
}
|
|
34
|
+
async showUnder(element) {
|
|
35
|
+
await this._popoverSearchEntity.showUnder(element, { horizontalGap: 12, verticalGap: 4 });
|
|
36
|
+
}
|
|
37
|
+
buildSearchOptions(limit) {
|
|
38
|
+
return {
|
|
39
|
+
entity: this.entityName,
|
|
40
|
+
entityDescription: this.entityName,
|
|
41
|
+
executeOnOpen: true,
|
|
42
|
+
searchOptions: {
|
|
43
|
+
localEntityName: this.entityName,
|
|
44
|
+
limit,
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
async handlePredictiveSearch(argument) {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
const response = await this._application.executePreparedSearchWithFullResponse(argument, this.buildSearchOptions(5));
|
|
51
|
+
this._showMoreOnSearch = (_a = response === null || response === void 0 ? void 0 : response.hasMore) !== null && _a !== void 0 ? _a : false;
|
|
52
|
+
this._entityPKField = response === null || response === void 0 ? void 0 : response.pkField;
|
|
53
|
+
return (_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : [];
|
|
54
|
+
}
|
|
55
|
+
async loadEntitySuggestions(argument) {
|
|
56
|
+
var _a;
|
|
57
|
+
const value = (_a = argument === null || argument === void 0 ? void 0 : argument.argument) !== null && _a !== void 0 ? _a : '';
|
|
58
|
+
const mode = (argument === null || argument === void 0 ? void 0 : argument.mode) || "PREDICTIVE";
|
|
59
|
+
if (!value || value.trim().length === 0) {
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
try {
|
|
63
|
+
this._showMoreOnSearch = false;
|
|
64
|
+
if (mode === "PREDICTIVE") {
|
|
65
|
+
return await this.handlePredictiveSearch(value);
|
|
66
|
+
}
|
|
67
|
+
const searchResult = await this._application.executePreparedSearch(mode, value, this.buildSearchOptions());
|
|
68
|
+
return Array.isArray(searchResult) ? searchResult : [searchResult];
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
console.error('Erro ao carregar sugestões de entidades:', error);
|
|
72
|
+
return [];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async refreshDataUnitByPk(pks) {
|
|
76
|
+
try {
|
|
77
|
+
const pkField = pks[0].name;
|
|
78
|
+
const pkValue = pks[0].value;
|
|
79
|
+
// Criar filtro para a busca específica
|
|
80
|
+
const quickFilter = {
|
|
81
|
+
term: '',
|
|
82
|
+
filter: {
|
|
83
|
+
name: '',
|
|
84
|
+
params: [],
|
|
85
|
+
expression: `(${pkField} = ${pkValue})`
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
// Carregar dados com o filtro aplicado diretamente
|
|
89
|
+
await this.dataUnit.loadData(quickFilter);
|
|
90
|
+
this.loaded.emit(this.dataUnit.records);
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
console.error('Erro ao atualizar dataset:', error);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
async closeSearchPopover() {
|
|
97
|
+
if (this._popoverSearchEntity && this._popoverSearchEntity.opened) {
|
|
98
|
+
await this._popoverSearchEntity.hide();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
async handleOnEzVisibilityChange(event) {
|
|
102
|
+
if (event.detail) {
|
|
103
|
+
await this._textInput.setFocus();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
async handleSelectItem(evt) {
|
|
107
|
+
const currentOpt = evt.detail;
|
|
108
|
+
this.value = currentOpt;
|
|
109
|
+
await this._popoverListResult.hide();
|
|
110
|
+
await this.searchEntitySelect(currentOpt);
|
|
111
|
+
this._searchInputValue = "";
|
|
112
|
+
}
|
|
113
|
+
updateKeyOption(option) {
|
|
114
|
+
return (Object.assign(Object.assign({}, option), { presentationValue: option.value, presentationLabel: option.label }));
|
|
115
|
+
}
|
|
116
|
+
async handleInputChange(value) {
|
|
117
|
+
if (this._debounceSearch) {
|
|
118
|
+
clearTimeout(this._debounceSearch);
|
|
119
|
+
}
|
|
120
|
+
return new Promise((resolve) => {
|
|
121
|
+
this._debounceSearch = setTimeout(async () => {
|
|
122
|
+
var _a;
|
|
123
|
+
this.showLoading = true;
|
|
124
|
+
this._searchInputValue = value;
|
|
125
|
+
await this._popoverListResult.showUnder(this._textInput);
|
|
126
|
+
this.visibleOptions = (_a = (await this.loadEntitySuggestions({ argument: this._searchInputValue, mode: undefined }))) === null || _a === void 0 ? void 0 : _a.map(this.updateKeyOption);
|
|
127
|
+
this.showLoading = false;
|
|
128
|
+
resolve();
|
|
129
|
+
}, this.SEARCH_DESCRIPTION_TIMEOUT);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
isOptionsVisible() {
|
|
133
|
+
return this._popoverListResult.opened;
|
|
134
|
+
}
|
|
135
|
+
async handleArrowUp() {
|
|
136
|
+
if (!this.isOptionsVisible()) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
await this._searchList.previousOption();
|
|
140
|
+
}
|
|
141
|
+
async handleArrowDown() {
|
|
142
|
+
if (!this.isOptionsVisible()) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
await this._searchList.nextOption();
|
|
146
|
+
}
|
|
147
|
+
async selectCurrentItem() {
|
|
148
|
+
var _a;
|
|
149
|
+
await ((_a = this._searchList) === null || _a === void 0 ? void 0 : _a.selectCurrentItem());
|
|
150
|
+
}
|
|
151
|
+
async cancelSelection() {
|
|
152
|
+
var _a, _b;
|
|
153
|
+
await ((_a = this._searchList) === null || _a === void 0 ? void 0 : _a.cancelSelection());
|
|
154
|
+
(_b = this._popoverListResult) === null || _b === void 0 ? void 0 : _b.hide();
|
|
155
|
+
}
|
|
156
|
+
async handleInputTab() {
|
|
157
|
+
await this.cancelSelection();
|
|
158
|
+
}
|
|
159
|
+
async handleInputEsc() {
|
|
160
|
+
await this.cancelSelection();
|
|
161
|
+
}
|
|
162
|
+
getMessage(key, params) {
|
|
163
|
+
if (this.messagesBuilder) {
|
|
164
|
+
return this.messagesBuilder.getMessage(key, params);
|
|
165
|
+
}
|
|
166
|
+
// Fallback para mensagens padrão em português
|
|
167
|
+
const messages = {
|
|
168
|
+
'snkCrud.entitySearch.label': 'Busca por registros',
|
|
169
|
+
'snkCrud.entitySearch.placeholder': 'Digite o que você procura aqui...'
|
|
170
|
+
};
|
|
171
|
+
return messages[key] || key;
|
|
172
|
+
}
|
|
173
|
+
async initKeyboardManager() {
|
|
174
|
+
this._keyboardManager = new KeyboardManager();
|
|
175
|
+
const defaultOpts = { element: this._elem, propagate: true };
|
|
176
|
+
this._keyboardManager
|
|
177
|
+
.bind("ArrowUp", () => this.handleArrowUp(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
178
|
+
.bind("ArrowDown", () => this.handleArrowDown(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
179
|
+
.bind("Enter", () => this.selectCurrentItem(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
180
|
+
.bind("Tab", () => this.handleInputTab(), defaultOpts)
|
|
181
|
+
.bind("Escape", () => this.handleInputEsc(), defaultOpts);
|
|
182
|
+
}
|
|
183
|
+
connectedCallback() {
|
|
184
|
+
this.initKeyboardManager();
|
|
185
|
+
}
|
|
186
|
+
componentWillLoad() {
|
|
187
|
+
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
188
|
+
}
|
|
189
|
+
componentDidLoad() {
|
|
190
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'snk-entity-search');
|
|
191
|
+
}
|
|
192
|
+
disconnectedCallback() {
|
|
193
|
+
this._keyboardManager
|
|
194
|
+
.unbind("ArrowUp")
|
|
195
|
+
.unbind("ArrowDown")
|
|
196
|
+
.unbind("Enter")
|
|
197
|
+
.unbind("Tab")
|
|
198
|
+
.unbind("Escape");
|
|
199
|
+
}
|
|
200
|
+
render() {
|
|
201
|
+
return (h(Host, null, h("ez-popover-core", { ref: (ref) => this._popoverSearchEntity = ref, onEzVisibilityChange: (event) => this.handleOnEzVisibilityChange(event) }, h("div", { class: "entity-search-popover" }, h("label", null, this.getMessage('snkCrud.entitySearch.label')), h("ez-classic-input", { ref: (ref) => this._textInput = ref, placeholder: this.getMessage('snkCrud.entitySearch.placeholder'), rightIconClickable: true, size: "small", value: this._searchInputValue, onEzChange: (evt) => this.handleInputChange(evt.detail) }), h("ez-popover-core", { ref: elem => this._popoverListResult = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', useAnchorSize: true, onEzVisibilityChange: (event) => event.stopPropagation() }, h("ez-search-result-list", { ref: (ref) => this._searchList = ref, showLoading: this.showLoading, visibleOptions: this.visibleOptions, value: this.value, onChangeValue: (evt) => this.handleSelectItem(evt) }))))));
|
|
202
|
+
}
|
|
203
|
+
get _elem() { return getElement(this); }
|
|
204
|
+
};
|
|
205
|
+
SnkEntitySearch.style = snkEntitySearchCss;
|
|
206
|
+
|
|
207
|
+
export { SnkEntitySearch as snk_entity_search };
|
|
@@ -120,7 +120,7 @@ const SnkExporterEmailSender = class {
|
|
|
120
120
|
return (h("ez-popup", { useHeader: false, size: "x-small", heightMode: "auto", opened: this._opened }, h("ez-modal-container", { onEzModalAction: (evt) => {
|
|
121
121
|
if (evt.detail === ModalAction.CLOSE)
|
|
122
122
|
this.close();
|
|
123
|
-
}, modalTitle: this.getMessage("snkExporter.emailSenderTitle"), modalSubTitle: this.getStepMessage("subTitle") }, h("ez-view-stack", { ref: ref => this._viewStack = ref }, h("stack-item", null, h(OptionsStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateConfigInfo(field, value) })), h("stack-item", null, h(EmailInfoStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateEmailInfo(field, value) }))), h("div", { class: "ez-col ez-col--sd-12 ez-flex--justify-end ez-margin-vertical--small" }, h("ez-button", Object.assign({ class: "ez-
|
|
123
|
+
}, modalTitle: this.getMessage("snkExporter.emailSenderTitle"), modalSubTitle: this.getStepMessage("subTitle") }, h("ez-view-stack", { ref: ref => this._viewStack = ref }, h("stack-item", null, h(OptionsStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateConfigInfo(field, value) })), h("stack-item", null, h(EmailInfoStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateEmailInfo(field, value) }))), h("div", { class: "ez-col ez-col--sd-12 ez-flex--justify-end ez-margin-vertical--small" }, h("ez-button", Object.assign({ class: "ez-padding-right--medium", label: this.getStepMessage("firstButton"), onClick: () => this.executeButtonAction(true), enabled: this.checkButtonEnabled(true) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("firstButton")}` }, { variant: "secondary", size: "medium" })), h("ez-button", Object.assign({ label: this.getStepMessage("secondButton"), onClick: () => this.executeButtonAction(false), enabled: this.checkButtonEnabled(false) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("secondButton")}` }, { variant: "primary", size: "medium" }))))));
|
|
124
124
|
}
|
|
125
125
|
get _element() { return getElement(this); }
|
|
126
126
|
};
|
package/dist/esm/{snk-filter-advanced-mode_2.entry.js → snk-filter-advanced-mode_3.entry.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h, f as Host } from './index-04f73a26.js';
|
|
1
|
+
import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-04f73a26.js';
|
|
2
2
|
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-d2439a9a.js';
|
|
3
|
-
import '@sankhyalabs/core';
|
|
3
|
+
import { ElementIDUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
4
4
|
import './filter-item-type.enum-d45e026f.js';
|
|
5
5
|
import './index-8acbae97.js';
|
|
6
6
|
|
|
@@ -53,4 +53,41 @@ const SnkFilterAssistentMode = class {
|
|
|
53
53
|
};
|
|
54
54
|
SnkFilterAssistentMode.style = snkFilterAssistentModeCss;
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
const snkSimpleBarCss = ".sc-snk-simple-bar-h{display:flex;height:100%;width:100%}.simple-bar__container.sc-snk-simple-bar{flex:1;display:flex;align-items:stretch;gap:var(--space--small)}.simple-bar__left-slot.sc-snk-simple-bar{min-width:280px;flex:1;display:flex;align-items:center}.simple-bar__right-slot.sc-snk-simple-bar{flex:1;display:flex;align-items:center;justify-content:flex-end}.simple-bar__column.sc-snk-simple-bar{flex:1;display:flex;flex-direction:column}";
|
|
57
|
+
|
|
58
|
+
const SnkSimpleBar = class {
|
|
59
|
+
constructor(hostRef) {
|
|
60
|
+
registerInstance(this, hostRef);
|
|
61
|
+
this.clickBreadcrumbItem = createEvent(this, "clickBreadcrumbItem", 3);
|
|
62
|
+
this.exit = createEvent(this, "exit", 3);
|
|
63
|
+
this.label = undefined;
|
|
64
|
+
this.breadcrumbItens = undefined;
|
|
65
|
+
this.messagesBuilder = undefined;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Permite customizar as mensagens dos blocos de construção
|
|
69
|
+
* através de um pequeno módulo na estrutura da aplicação:
|
|
70
|
+
* - Crie um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
|
71
|
+
* Para conhecer os detalhes do módulo, veja o arquivo neste projeto: "/src/lib/message/resources/snk-simple-bar.msg.ts"
|
|
72
|
+
*/
|
|
73
|
+
getMessage(key, params) {
|
|
74
|
+
var _a;
|
|
75
|
+
if (this.messagesBuilder)
|
|
76
|
+
return this.messagesBuilder.getMessage(key, params);
|
|
77
|
+
if ((_a = this._application) === null || _a === void 0 ? void 0 : _a.messagesBuilder)
|
|
78
|
+
return this._application.messagesBuilder.getMessage(key, params);
|
|
79
|
+
}
|
|
80
|
+
componentDidLoad() {
|
|
81
|
+
if (!this._element)
|
|
82
|
+
return;
|
|
83
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
84
|
+
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
return (h("div", { class: "simple-bar__container ez-margin-vertical--small ez-padding--extra-small" }, h("div", { class: "simple-bar__left-slot" }, h("ez-button", { class: "ez-padding-right--medium", title: this.getMessage('snkSimpleBar.backTitle'), mode: 'icon', iconName: "arrow_back", size: 'medium', onClick: () => this.exit.emit() }), h("div", { class: "simple-bar__column" }, h("h1", { class: "ez-title ez-title--primary ez-title--extra-large" }, this.label), h("ez-breadcrumb", { items: this.breadcrumbItens, onSelectedItem: ({ detail }) => this.clickBreadcrumbItem.emit(detail) }))), h("div", { class: "simple-bar__right-slot" }, h("slot", { name: "rightSlot" }))));
|
|
88
|
+
}
|
|
89
|
+
get _element() { return getElement(this); }
|
|
90
|
+
};
|
|
91
|
+
SnkSimpleBar.style = snkSimpleBarCss;
|
|
92
|
+
|
|
93
|
+
export { SnkFilterAdvancedMode as snk_filter_advanced_mode, SnkFilterAssistentMode as snk_filter_assistent_mode, SnkSimpleBar as snk_simple_bar };
|