@sankhyalabs/sankhyablocks 8.15.0-rc.2 → 8.15.0-rc.21
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-302bbbd4.js → ConfigStorage-8d4e9d53.js} +70 -7
- package/dist/cjs/{DataFetcher-ba94ed5b.js → DataFetcher-99f0f6ed.js} +5 -3
- package/dist/cjs/{SnkFormConfigManager-71c4768e.js → SnkFormConfigManager-33995e92.js} +21 -13
- package/dist/cjs/{SnkMessageBuilder-e7dcf408.js → SnkMessageBuilder-66aa2557.js} +6 -1
- package/dist/cjs/SnkMultiSelectionListDataSource-d15f7aac.js +140 -0
- package/dist/cjs/{auth-fetcher-c8467c07.js → auth-fetcher-bb8e9ae4.js} +1 -1
- package/dist/cjs/{form-config-fetcher-df043d3d.js → form-config-fetcher-d73f4449.js} +13 -1
- package/dist/cjs/index-f9e81701.js +2 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-e4a7c4c3.js → pesquisa-fetcher-bdbbe9ac.js} +277 -61
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_2.cjs.entry.js → snk-actions-button_4.cjs.entry.js} +520 -5
- package/dist/cjs/snk-application.cjs.entry.js +13 -8
- package/dist/cjs/snk-attach.cjs.entry.js +67 -47
- package/dist/cjs/snk-crud.cjs.entry.js +16 -10
- package/dist/cjs/snk-data-exporter.cjs.entry.js +10 -6
- package/dist/cjs/{snk-data-unit-82c08a8c.js → snk-data-unit-41c29713.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +9 -10
- package/dist/cjs/snk-entity-list.cjs.entry.js +5 -3
- package/dist/cjs/snk-filter-bar.cjs.entry.js +36 -5
- package/dist/cjs/snk-filter-detail.cjs.entry.js +4 -1
- package/dist/cjs/snk-filter-item.cjs.entry.js +10 -6
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +47 -27
- package/dist/cjs/snk-form.cjs.entry.js +11 -4
- package/dist/cjs/snk-grid.cjs.entry.js +37 -22
- package/dist/cjs/{snk-guides-viewer-d32c096f.js → snk-guides-viewer-a8dd24a3.js} +15 -9
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -8
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +3 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +256 -22
- package/dist/cjs/snk-taskbar.cjs.entry.js +123 -15
- package/dist/cjs/{taskbar-elements-01b85b99.js → taskbar-elements-3ecd1278.js} +9 -9
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/snk-application/__mocks__/snk-application.js +7 -0
- package/dist/collection/components/snk-application/snk-application.js +51 -11
- package/dist/collection/components/snk-attach/snk-attach.js +39 -24
- package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +1 -1
- package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +29 -22
- package/dist/collection/components/snk-crud/snk-crud.js +95 -3
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +11 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +27 -3
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +7 -3
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +5 -3
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +3 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +22 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +24 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +116 -2
- package/dist/collection/components/snk-form/snk-form.js +25 -1
- package/dist/collection/components/{snk-form → snk-form-config}/SnkFormConfigManager.js +20 -12
- package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.js +50 -30
- package/dist/collection/components/snk-grid/snk-grid.js +100 -16
- package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.js +130 -123
- package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.js +1 -1
- package/dist/collection/components/snk-simple-crud/regular-buttons.js +3 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +10 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +421 -17
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +1 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +9 -9
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +17 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +166 -14
- package/dist/collection/lib/configs/ConfigStorage.js +63 -3
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +9 -40
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +33 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +5 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +12 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +6 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -11
- package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +2 -1
- package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +4 -0
- package/dist/collection/lib/utils/CrudUtils.js +13 -1
- package/dist/components/ConfigStorage.js +68 -5
- package/dist/components/DataFetcher.js +5 -3
- package/dist/components/SnkFormConfigManager.js +19 -11
- package/dist/components/SnkMessageBuilder.js +6 -1
- package/dist/components/dataunit-fetcher.js +45 -50
- package/dist/components/field-search.js +93 -3
- package/dist/components/form-config-fetcher.js +12 -0
- package/dist/components/index.d.ts +6 -6
- package/dist/components/snk-application2.js +9 -1
- package/dist/components/snk-attach2.js +115 -52
- package/dist/components/snk-crud.js +15 -3
- package/dist/components/snk-data-exporter2.js +7 -3
- package/dist/components/snk-detail-view2.js +40 -7
- package/dist/components/snk-entity-list.js +5 -3
- package/dist/components/snk-filter-bar2.js +38 -3
- package/dist/components/snk-filter-detail2.js +5 -1
- package/dist/components/snk-filter-item2.js +11 -6
- package/dist/components/snk-form-config2.js +46 -26
- package/dist/components/snk-form.js +8 -0
- package/dist/components/snk-grid-config2.js +128 -102
- package/dist/components/snk-grid2.js +38 -17
- package/dist/components/snk-personalized-filter-editor.js +3 -1
- package/dist/components/snk-simple-crud2.js +317 -29
- package/dist/components/snk-taskbar2.js +139 -25
- package/dist/components/taskbar-actions-button2.js +1 -1
- package/dist/esm/{ConfigStorage-4151acc8.js → ConfigStorage-6e241cd7.js} +70 -7
- package/dist/esm/{DataFetcher-aa159c5a.js → DataFetcher-a650ae58.js} +5 -3
- package/dist/esm/{SnkFormConfigManager-5c7d3771.js → SnkFormConfigManager-7a4e678f.js} +21 -13
- package/dist/esm/{SnkMessageBuilder-0fb796b9.js → SnkMessageBuilder-0a4becdd.js} +6 -1
- package/dist/esm/SnkMultiSelectionListDataSource-7084f3b3.js +133 -0
- package/dist/esm/{auth-fetcher-c05dc474.js → auth-fetcher-8ec448b0.js} +1 -1
- package/dist/esm/{form-config-fetcher-36219cd3.js → form-config-fetcher-765b8498.js} +13 -1
- package/dist/esm/index-a7d3d3f1.js +2 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-fa0c2540.js → pesquisa-fetcher-96d2f351.js} +266 -54
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_2.entry.js → snk-actions-button_4.entry.js} +519 -6
- package/dist/esm/snk-application.entry.js +13 -8
- package/dist/esm/snk-attach.entry.js +66 -46
- package/dist/esm/snk-crud.entry.js +16 -10
- package/dist/esm/snk-data-exporter.entry.js +10 -6
- package/dist/esm/{snk-data-unit-5d201fb3.js → snk-data-unit-de1d140d.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +9 -10
- package/dist/esm/snk-entity-list.entry.js +5 -3
- package/dist/esm/snk-filter-bar.entry.js +36 -5
- package/dist/esm/snk-filter-detail.entry.js +4 -1
- package/dist/esm/snk-filter-item.entry.js +10 -6
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form-config.entry.js +48 -28
- package/dist/esm/snk-form.entry.js +11 -4
- package/dist/esm/snk-grid.entry.js +38 -23
- package/dist/esm/{snk-guides-viewer-f49613c6.js → snk-guides-viewer-131e9660.js} +15 -9
- package/dist/esm/snk-guides-viewer.entry.js +7 -8
- package/dist/esm/snk-personalized-filter-editor.entry.js +3 -1
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +257 -23
- package/dist/esm/snk-taskbar.entry.js +124 -16
- package/dist/esm/{taskbar-elements-d4d0b424.js → taskbar-elements-2473c8ac.js} +9 -9
- package/dist/sankhyablocks/p-004c356e.js +26 -0
- package/dist/sankhyablocks/p-0624f62d.js +56 -0
- package/dist/sankhyablocks/p-075bba4c.entry.js +1 -0
- package/dist/sankhyablocks/p-07a61550.entry.js +1 -0
- package/dist/sankhyablocks/p-103c5956.entry.js +1 -0
- package/dist/sankhyablocks/p-1048bd26.entry.js +1 -0
- package/dist/sankhyablocks/{p-e6380c60.js → p-125bb902.js} +1 -1
- package/dist/sankhyablocks/p-13ae1a89.entry.js +1 -0
- package/dist/sankhyablocks/{p-e0fd9555.entry.js → p-24ed6ad6.entry.js} +1 -1
- package/dist/sankhyablocks/p-32556aa6.js +1 -0
- package/dist/sankhyablocks/p-33718dfc.entry.js +1 -0
- package/dist/sankhyablocks/p-34a7f2ab.js +65 -0
- package/dist/sankhyablocks/{p-f3d1c48e.js → p-52c8e589.js} +1 -1
- package/dist/sankhyablocks/p-54a5d52a.entry.js +1 -0
- package/dist/sankhyablocks/p-5833cff9.js +1 -0
- package/dist/sankhyablocks/p-5a2e016a.entry.js +1 -0
- package/dist/sankhyablocks/p-619c5f6f.entry.js +11 -0
- package/dist/sankhyablocks/p-6f560924.entry.js +1 -0
- package/dist/sankhyablocks/p-8967fa78.js +1 -0
- package/dist/sankhyablocks/p-9b1beac5.entry.js +1 -0
- package/dist/sankhyablocks/p-a87149e4.entry.js +1 -0
- package/dist/sankhyablocks/{p-7f3c7b09.entry.js → p-ac77949b.entry.js} +1 -1
- package/dist/sankhyablocks/p-ae4fc9a9.js +1 -0
- package/dist/sankhyablocks/p-b10b9934.entry.js +1 -0
- package/dist/sankhyablocks/p-b11aa1e0.entry.js +1 -0
- package/dist/sankhyablocks/{p-9695f78b.js → p-be75153c.js} +1 -1
- package/dist/sankhyablocks/p-bf39bdb8.entry.js +1 -0
- package/dist/sankhyablocks/p-e8763234.entry.js +1 -0
- package/dist/sankhyablocks/p-efeca7ba.js +1 -0
- package/dist/sankhyablocks/p-f7d0fab9.entry.js +1 -0
- package/dist/sankhyablocks/p-f7d9d148.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
- package/dist/types/components/snk-application/__mocks__/snk-application.d.ts +3 -0
- package/dist/types/components/snk-application/snk-application.d.ts +8 -0
- package/dist/types/components/snk-attach/snk-attach.d.ts +2 -1
- package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +10 -1
- package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +5 -4
- package/dist/types/components/snk-crud/snk-crud.d.ts +21 -0
- 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-guides-viewer.d.ts +6 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +6 -2
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +20 -1
- package/dist/types/components/snk-form/snk-form.d.ts +6 -1
- package/dist/types/components/{snk-form → snk-form-config}/SnkFormConfigManager.d.ts +2 -1
- package/dist/types/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.d.ts +5 -3
- package/dist/types/components/snk-grid/snk-grid.d.ts +19 -1
- package/dist/types/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.d.ts +11 -6
- package/dist/types/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.d.ts +1 -1
- package/dist/types/components/snk-simple-crud/regular-buttons.d.ts +3 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +76 -3
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +34 -1
- package/dist/types/components.d.ts +226 -12
- package/dist/types/lib/configs/ConfigStorage.d.ts +21 -1
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +0 -2
- package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +2 -0
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +2 -1
- package/dist/types/lib/utils/CrudUtils.d.ts +3 -0
- package/package.json +9 -2
- package/dist/cjs/PreloadManager-84466da6.js +0 -224
- package/dist/cjs/SnkMultiSelectionListDataSource-ba5838c2.js +0 -49
- package/dist/cjs/snk-grid-config.cjs.entry.js +0 -483
- package/dist/cjs/snk-select-box.cjs.entry.js +0 -25
- package/dist/esm/PreloadManager-c1c2f2b4.js +0 -222
- package/dist/esm/SnkMultiSelectionListDataSource-44494b0e.js +0 -43
- package/dist/esm/snk-grid-config.entry.js +0 -479
- package/dist/esm/snk-select-box.entry.js +0 -21
- package/dist/sankhyablocks/p-02e3a45b.entry.js +0 -1
- package/dist/sankhyablocks/p-05243555.js +0 -1
- package/dist/sankhyablocks/p-094c30cb.js +0 -1
- package/dist/sankhyablocks/p-0d7863ed.js +0 -26
- package/dist/sankhyablocks/p-0ec5b2e5.js +0 -1
- package/dist/sankhyablocks/p-1d75d9f9.entry.js +0 -1
- package/dist/sankhyablocks/p-2582537c.entry.js +0 -1
- package/dist/sankhyablocks/p-282789a6.entry.js +0 -1
- package/dist/sankhyablocks/p-374d03f6.js +0 -1
- package/dist/sankhyablocks/p-3b0e4e08.js +0 -65
- package/dist/sankhyablocks/p-40915359.entry.js +0 -1
- package/dist/sankhyablocks/p-573a07c5.js +0 -1
- package/dist/sankhyablocks/p-69efa80d.entry.js +0 -1
- package/dist/sankhyablocks/p-761ed32f.entry.js +0 -1
- package/dist/sankhyablocks/p-86801b08.entry.js +0 -1
- package/dist/sankhyablocks/p-96ef14f9.entry.js +0 -1
- package/dist/sankhyablocks/p-98674137.entry.js +0 -1
- package/dist/sankhyablocks/p-9b5944a4.entry.js +0 -1
- package/dist/sankhyablocks/p-9bdbc7d8.entry.js +0 -1
- package/dist/sankhyablocks/p-a52b9254.entry.js +0 -11
- package/dist/sankhyablocks/p-aa95fb2c.js +0 -56
- package/dist/sankhyablocks/p-ac384baf.entry.js +0 -1
- package/dist/sankhyablocks/p-b05ab13d.entry.js +0 -1
- package/dist/sankhyablocks/p-c22c1d8e.js +0 -1
- package/dist/sankhyablocks/p-c4874327.entry.js +0 -1
- package/dist/sankhyablocks/p-c758265f.entry.js +0 -1
- package/dist/sankhyablocks/p-cb7419e0.entry.js +0 -1
- package/dist/sankhyablocks/p-d4f9ee17.entry.js +0 -1
- package/dist/sankhyablocks/p-d6317851.entry.js +0 -1
- /package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.js +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.css +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.css +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
2
2
|
import { Sortable } from '@shopify/draggable';
|
3
|
-
import { ObjectUtils, ArrayUtils, ElementIDUtils } from '@sankhyalabs/core';
|
3
|
+
import { ObjectUtils, ArrayUtils, ElementIDUtils, ApplicationContext } from '@sankhyalabs/core';
|
4
4
|
import { ApplicationUtils, DialogType } from "@sankhyalabs/ezui/dist/collection/utils";
|
5
|
-
import { ACTION_CONFIG, CONFIG_EVENTS, CONFIG_SORTABLE_EVENTS, DEFAULT_TYPE, TAB_NAMES } from "
|
6
|
-
import { UserConfigType } from "
|
5
|
+
import { ACTION_CONFIG, CONFIG_EVENTS, CONFIG_SORTABLE_EVENTS, DEFAULT_TYPE, TAB_NAMES } from "../../lib/utils/constants";
|
6
|
+
import { UserConfigType } from "../../lib/http/data-fetcher/fetchers/form-config-fetcher";
|
7
7
|
import { buildFormConfigFromDataUnit } from "@sankhyalabs/ezui/dist/collection/utils/form";
|
8
8
|
const CONTAINER_ID = {
|
9
9
|
collapsibleBox: "EZ-COLLAPSIBLE-BOX",
|
@@ -25,6 +25,7 @@ export class SnkFormConfig {
|
|
25
25
|
this._formFieldsStyle = "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding-right--small ez-padding-bottom--medium sc-snk-form-config";
|
26
26
|
this._fieldsAvailableStyle = "ez-col ez-col--sd-12 ez-col--tb-12 ez-margin-bottom--medium ez-margin-right--medium sc-snk-form-config";
|
27
27
|
this._fieldFloatingStyle = "form-config__field-config--dragged";
|
28
|
+
this._sortableTimer = 100;
|
28
29
|
this._formConfigOptions = [];
|
29
30
|
this._fieldConfigSelected = undefined;
|
30
31
|
this._layoutFormConfig = undefined;
|
@@ -39,20 +40,27 @@ export class SnkFormConfig {
|
|
39
40
|
this.messagesBuilder = undefined;
|
40
41
|
}
|
41
42
|
observeConfigManager() {
|
42
|
-
this.loadConfig();
|
43
|
+
this.loadConfig(this._sortableTimer);
|
43
44
|
}
|
44
|
-
loadFields() {
|
45
|
+
loadFields(updateTimer = 0) {
|
45
46
|
this._layoutFormConfig = [];
|
46
|
-
|
47
|
+
if (updateTimer > 0) {
|
48
|
+
setTimeout(() => {
|
49
|
+
this.buildFields();
|
50
|
+
}, updateTimer);
|
51
|
+
}
|
52
|
+
else {
|
53
|
+
this.buildFields();
|
54
|
+
}
|
47
55
|
}
|
48
56
|
buildFields() {
|
49
57
|
this.buildFormConfig();
|
50
58
|
this.buildAvailableFields();
|
51
59
|
}
|
52
|
-
loadFormConfig() {
|
60
|
+
loadFormConfig(updateTimer) {
|
53
61
|
var _a;
|
54
62
|
this._formConfig = this.getConfig();
|
55
|
-
this.loadFields();
|
63
|
+
this.loadFields(updateTimer);
|
56
64
|
this.controlFieldConfig();
|
57
65
|
if (((_a = this._filterFieldsAvailable) === null || _a === void 0 ? void 0 : _a.value) != undefined) {
|
58
66
|
this._filterFieldsAvailable.value = "";
|
@@ -95,12 +103,12 @@ export class SnkFormConfig {
|
|
95
103
|
}
|
96
104
|
}
|
97
105
|
resetChangeConfig() {
|
98
|
-
this.loadFormConfig();
|
106
|
+
this.loadFormConfig(this._sortableTimer);
|
99
107
|
this.clearTempGroups();
|
100
108
|
}
|
101
109
|
resetChangeOptionConfig() {
|
102
110
|
this._formConfigChanged = false;
|
103
|
-
this.loadConfig();
|
111
|
+
this.loadConfig(this._sortableTimer);
|
104
112
|
this.clearTempGroups();
|
105
113
|
}
|
106
114
|
getTabsToSave() {
|
@@ -318,7 +326,9 @@ export class SnkFormConfig {
|
|
318
326
|
&& oldContainer.id === newContainer.id) {
|
319
327
|
evt.cancel();
|
320
328
|
this._fieldsAvailable = [];
|
321
|
-
|
329
|
+
setTimeout(() => {
|
330
|
+
this.buildAvailableFields();
|
331
|
+
}, this._sortableTimer);
|
322
332
|
return true;
|
323
333
|
}
|
324
334
|
return false;
|
@@ -361,7 +371,11 @@ export class SnkFormConfig {
|
|
361
371
|
if (isNewGroup) {
|
362
372
|
this.clearTempGroups(true);
|
363
373
|
}
|
364
|
-
|
374
|
+
const sortableTimer = oldContainer.dataset.groupName !== newContainer.dataset.groupName
|
375
|
+
|| (newContainer.id === CONTAINER_ID.withoutGroup && oldContainer.id === CONTAINER_ID.fieldsAvailable)
|
376
|
+
? this._sortableTimer
|
377
|
+
: 0;
|
378
|
+
this.updateFieldsToSave(sortableTimer);
|
365
379
|
}, this._renderTimer);
|
366
380
|
return true;
|
367
381
|
}
|
@@ -391,12 +405,12 @@ export class SnkFormConfig {
|
|
391
405
|
return;
|
392
406
|
}
|
393
407
|
}
|
394
|
-
updateFieldsToSave() {
|
408
|
+
updateFieldsToSave(updateTimer = 0) {
|
395
409
|
const fields = this.getFieldsToSave();
|
396
410
|
if ((fields === null || fields === void 0 ? void 0 : fields.length) > 0) {
|
397
411
|
this._formConfig.fields = fields;
|
398
412
|
}
|
399
|
-
this.loadFields();
|
413
|
+
this.loadFields(updateTimer);
|
400
414
|
this._formConfigChanged = true;
|
401
415
|
}
|
402
416
|
controlSortableField() {
|
@@ -426,7 +440,7 @@ export class SnkFormConfig {
|
|
426
440
|
controlStopDraggingGroup(evt) {
|
427
441
|
if (evt.data.newIndex !== evt.data.oldIndex) {
|
428
442
|
setTimeout(() => {
|
429
|
-
this.updateFieldsToSave();
|
443
|
+
this.updateFieldsToSave(this._sortableTimer);
|
430
444
|
}, this._renderTimer);
|
431
445
|
}
|
432
446
|
}
|
@@ -499,7 +513,7 @@ export class SnkFormConfig {
|
|
499
513
|
});
|
500
514
|
if (tabs.length > 0) {
|
501
515
|
this._formConfig.tabs = tabs;
|
502
|
-
this.loadFields();
|
516
|
+
this.loadFields(this._sortableTimer);
|
503
517
|
this.controlFieldConfig();
|
504
518
|
this._formConfigChanged = true;
|
505
519
|
}
|
@@ -523,13 +537,13 @@ export class SnkFormConfig {
|
|
523
537
|
if (config != undefined) {
|
524
538
|
this._formConfig = config;
|
525
539
|
this._tabSelected = 1;
|
526
|
-
this.loadFields();
|
540
|
+
this.loadFields(this._sortableTimer);
|
527
541
|
this.controlFieldConfig();
|
528
542
|
this.clearTempGroups();
|
529
543
|
}
|
530
544
|
}
|
531
|
-
loadConfig() {
|
532
|
-
this.loadFormConfig();
|
545
|
+
loadConfig(updateTimer = 0) {
|
546
|
+
this.loadFormConfig(updateTimer);
|
533
547
|
this.loadUserConfig();
|
534
548
|
}
|
535
549
|
addNewGroup() {
|
@@ -570,7 +584,7 @@ export class SnkFormConfig {
|
|
570
584
|
});
|
571
585
|
}
|
572
586
|
else {
|
573
|
-
this.updateFieldsToSave();
|
587
|
+
this.updateFieldsToSave(this._sortableTimer);
|
574
588
|
}
|
575
589
|
}
|
576
590
|
checkGroupExists(newLabel, indexGroup, isTempGroup = false) {
|
@@ -616,7 +630,7 @@ export class SnkFormConfig {
|
|
616
630
|
field.group = newLabel;
|
617
631
|
}
|
618
632
|
});
|
619
|
-
this.loadFields();
|
633
|
+
this.loadFields(this._sortableTimer);
|
620
634
|
this.controlFieldConfig();
|
621
635
|
this._formConfigChanged = true;
|
622
636
|
}
|
@@ -830,14 +844,14 @@ export class SnkFormConfig {
|
|
830
844
|
this._formConfigChanged = true;
|
831
845
|
this.resetSortables();
|
832
846
|
}
|
833
|
-
controlRemoveFieldConfig(fieldConfig) {
|
847
|
+
controlRemoveFieldConfig(fieldConfig, updateTimer) {
|
834
848
|
var _a;
|
835
849
|
this._formConfigChanged = false;
|
836
850
|
if (fieldConfig == undefined) {
|
837
851
|
return;
|
838
852
|
}
|
839
853
|
this._formConfig.fields = (_a = this._formConfig.fields) === null || _a === void 0 ? void 0 : _a.filter((field) => field.name !== fieldConfig.name);
|
840
|
-
this.loadFields();
|
854
|
+
this.loadFields(updateTimer);
|
841
855
|
this.controlFieldConfig();
|
842
856
|
this._formConfigChanged = true;
|
843
857
|
this.resetSortables();
|
@@ -846,14 +860,14 @@ export class SnkFormConfig {
|
|
846
860
|
this.controlSortableField();
|
847
861
|
this.controlSortableGroup();
|
848
862
|
}
|
849
|
-
handleFieldConfigChange(evt) {
|
863
|
+
handleFieldConfigChange(evt, updateTimer = 0) {
|
850
864
|
const { field: fieldConfig, type: actionType } = evt.detail;
|
851
865
|
if (actionType === ACTION_CONFIG.configuration) {
|
852
866
|
this.controlFieldConfig(fieldConfig);
|
853
867
|
return;
|
854
868
|
}
|
855
869
|
if (actionType === ACTION_CONFIG.remove) {
|
856
|
-
this.controlRemoveFieldConfig(fieldConfig);
|
870
|
+
this.controlRemoveFieldConfig(fieldConfig, updateTimer);
|
857
871
|
return;
|
858
872
|
}
|
859
873
|
if (actionType === ACTION_CONFIG.add) {
|
@@ -874,7 +888,7 @@ export class SnkFormConfig {
|
|
874
888
|
tab.label = newLabel;
|
875
889
|
}
|
876
890
|
});
|
877
|
-
this.loadFields();
|
891
|
+
this.loadFields(this._sortableTimer);
|
878
892
|
this.controlFieldConfig();
|
879
893
|
this._formConfigChanged = true;
|
880
894
|
}
|
@@ -894,7 +908,7 @@ export class SnkFormConfig {
|
|
894
908
|
this._formConfig.tabs = (_a = this._formConfig.tabs) === null || _a === void 0 ? void 0 : _a.filter((tab) => {
|
895
909
|
return tab.label !== tabSelected.detail.label;
|
896
910
|
});
|
897
|
-
this.loadFields();
|
911
|
+
this.loadFields(this._sortableTimer);
|
898
912
|
this.controlFieldConfig();
|
899
913
|
this._formConfigChanged = true;
|
900
914
|
}
|
@@ -907,7 +921,7 @@ export class SnkFormConfig {
|
|
907
921
|
tab.visible = !tab.visible;
|
908
922
|
}
|
909
923
|
});
|
910
|
-
this.loadFields();
|
924
|
+
this.loadFields(this._sortableTimer);
|
911
925
|
this.controlFieldConfig();
|
912
926
|
this._formConfigChanged = true;
|
913
927
|
}
|
@@ -932,6 +946,12 @@ export class SnkFormConfig {
|
|
932
946
|
this.controlSortableField();
|
933
947
|
this.controlSortableGroup();
|
934
948
|
}
|
949
|
+
async componentWillRender() {
|
950
|
+
if (this.messagesBuilder == undefined) {
|
951
|
+
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
952
|
+
this.messagesBuilder = application.messagesBuilder;
|
953
|
+
}
|
954
|
+
}
|
935
955
|
componentWillLoad() {
|
936
956
|
this.loadConfig();
|
937
957
|
}
|
@@ -1005,7 +1025,7 @@ export class SnkFormConfig {
|
|
1005
1025
|
"references": {
|
1006
1026
|
"SnkFormConfigManager": {
|
1007
1027
|
"location": "import",
|
1008
|
-
"path": "
|
1028
|
+
"path": "./SnkFormConfigManager"
|
1009
1029
|
}
|
1010
1030
|
}
|
1011
1031
|
},
|
@@ -1025,7 +1045,7 @@ export class SnkFormConfig {
|
|
1025
1045
|
"references": {
|
1026
1046
|
"SnkMessageBuilder": {
|
1027
1047
|
"location": "import",
|
1028
|
-
"path": "
|
1048
|
+
"path": "../../lib/message/SnkMessageBuilder"
|
1029
1049
|
}
|
1030
1050
|
}
|
1031
1051
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { h, Fragment } from '@stencil/core';
|
2
2
|
import { ApplicationContext, DataType, ElementIDUtils, StringUtils } from '@sankhyalabs/core';
|
3
|
-
import {
|
3
|
+
import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
4
4
|
import { TaskbarElement } from '../snk-taskbar/elements/taskbar-elements';
|
5
5
|
import { ConfigStorage } from '../../lib/configs/ConfigStorage';
|
6
6
|
import { PresentationMode } from '../../lib/@types';
|
@@ -9,6 +9,7 @@ import store from "../../lib/store";
|
|
9
9
|
import SnkMultiSelectionListDataSource from './filtercolumn/SnkMultiSelectionListDataSource';
|
10
10
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
11
11
|
import { buildFieldSearch, openFieldSearch } from '../snk-taskbar/subcomponents/field-search';
|
12
|
+
import { CrudUtils } from '../../lib';
|
12
13
|
export class SnkGrid {
|
13
14
|
constructor() {
|
14
15
|
this._topTaskbarProcessor = new TaskbarProcessor({
|
@@ -37,6 +38,7 @@ export class SnkGrid {
|
|
37
38
|
this._showSnkFilterBar = true;
|
38
39
|
this.columnFilterDataSource = new SnkMultiSelectionListDataSource();
|
39
40
|
this.configName = undefined;
|
41
|
+
this.filterBarTitle = undefined;
|
40
42
|
this.resourceID = undefined;
|
41
43
|
this.selectionToastConfig = undefined;
|
42
44
|
this.actionsList = undefined;
|
@@ -52,6 +54,9 @@ export class SnkGrid {
|
|
52
54
|
this.taskbarCustomContainerId = undefined;
|
53
55
|
this.gridHeaderCustomSlotId = 'GRID_HEADER_CUSTOM_ELEMENTS';
|
54
56
|
this.topTaskbarCustomSlotId = 'GRID_TASKBAR_CUSTOM_ELEMENTS';
|
57
|
+
this.disablePersonalizedFilter = undefined;
|
58
|
+
this.gridLegacyConfigName = undefined;
|
59
|
+
this.filterBarLegacyConfigName = undefined;
|
55
60
|
}
|
56
61
|
/**
|
57
62
|
* Exibe a janela de configurações da grade.
|
@@ -96,6 +101,16 @@ export class SnkGrid {
|
|
96
101
|
async findColumn() {
|
97
102
|
await openFieldSearch(this._moreOptions, this._columnSearch);
|
98
103
|
}
|
104
|
+
async handleGridLegacyConfigName(newLegacyConfig, oldLegacyConfig) {
|
105
|
+
if (!newLegacyConfig) {
|
106
|
+
return;
|
107
|
+
}
|
108
|
+
if (newLegacyConfig === oldLegacyConfig) {
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
this.addGridLegacyConfigName();
|
112
|
+
this.loadConfig();
|
113
|
+
}
|
99
114
|
openGridConfig() {
|
100
115
|
this._grid.getColumnsState()
|
101
116
|
.then((gridColumns) => {
|
@@ -109,19 +124,7 @@ export class SnkGrid {
|
|
109
124
|
}
|
110
125
|
setGridConfig(config) {
|
111
126
|
this._gridConfig = config;
|
112
|
-
|
113
|
-
}
|
114
|
-
assertDefaultSorting() {
|
115
|
-
if (this._gridConfig && this._dataUnit) {
|
116
|
-
this._dataUnit.defaultSorting = this._gridConfig
|
117
|
-
.columns
|
118
|
-
.filter(col => col.ascending != undefined)
|
119
|
-
.sort((colA, colB) => colA.orderIndex - colB.orderIndex)
|
120
|
-
.map(({ name: field, ascending }) => {
|
121
|
-
const { dataType } = this._dataUnit.getField(field);
|
122
|
-
return { field, dataType, mode: ascending ? SortMode.ASC : SortMode.DESC };
|
123
|
-
});
|
124
|
-
}
|
127
|
+
CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
125
128
|
}
|
126
129
|
loadConfig() {
|
127
130
|
ConfigStorage.loadGridConfig(this.configName, this.resourceID)
|
@@ -132,6 +135,11 @@ export class SnkGrid {
|
|
132
135
|
console.warn(error);
|
133
136
|
});
|
134
137
|
}
|
138
|
+
addGridLegacyConfigName() {
|
139
|
+
if (this.gridLegacyConfigName && this.configName) {
|
140
|
+
ConfigStorage.addGridLegacyConfig(this.configName, this.gridLegacyConfigName);
|
141
|
+
}
|
142
|
+
}
|
135
143
|
gridConfigChangeHandler(evt) {
|
136
144
|
const config = evt.detail;
|
137
145
|
ConfigStorage.saveGridConfig(config, this.configName, this.resourceID);
|
@@ -247,7 +255,7 @@ export class SnkGrid {
|
|
247
255
|
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
248
256
|
}
|
249
257
|
finshLoading() {
|
250
|
-
|
258
|
+
CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
251
259
|
this.addElementID();
|
252
260
|
if (this.columnFilterDataSource != undefined) {
|
253
261
|
this.columnFilterDataSource.setApplication(this._application);
|
@@ -256,6 +264,7 @@ export class SnkGrid {
|
|
256
264
|
}
|
257
265
|
componentWillLoad() {
|
258
266
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
267
|
+
//TODO: substituir pelo metodo nativo closest
|
259
268
|
let parent = this._element.parentElement;
|
260
269
|
while (parent) {
|
261
270
|
if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
|
@@ -285,6 +294,7 @@ export class SnkGrid {
|
|
285
294
|
}
|
286
295
|
parent = parent.parentElement;
|
287
296
|
}
|
297
|
+
this.addGridLegacyConfigName();
|
288
298
|
this.loadConfig();
|
289
299
|
}
|
290
300
|
getHeaderDisabledButtons() {
|
@@ -399,7 +409,7 @@ export class SnkGrid {
|
|
399
409
|
return undefined;
|
400
410
|
}
|
401
411
|
return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, this._showSnkFilterBar &&
|
402
|
-
h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail) }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME),
|
412
|
+
h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none' }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
403
413
|
}
|
404
414
|
static get is() { return "snk-grid"; }
|
405
415
|
static get encapsulation() { return "scoped"; }
|
@@ -453,6 +463,23 @@ export class SnkGrid {
|
|
453
463
|
"attribute": "config-name",
|
454
464
|
"reflect": false
|
455
465
|
},
|
466
|
+
"filterBarTitle": {
|
467
|
+
"type": "string",
|
468
|
+
"mutable": false,
|
469
|
+
"complexType": {
|
470
|
+
"original": "string",
|
471
|
+
"resolved": "string",
|
472
|
+
"references": {}
|
473
|
+
},
|
474
|
+
"required": false,
|
475
|
+
"optional": false,
|
476
|
+
"docs": {
|
477
|
+
"tags": [],
|
478
|
+
"text": "T\u00EDtulo que ser\u00E1 apresentado na barra de filtros"
|
479
|
+
},
|
480
|
+
"attribute": "filter-bar-title",
|
481
|
+
"reflect": false
|
482
|
+
},
|
456
483
|
"resourceID": {
|
457
484
|
"type": "string",
|
458
485
|
"mutable": false,
|
@@ -742,6 +769,57 @@ export class SnkGrid {
|
|
742
769
|
"attribute": "top-taskbar-custom-slot-id",
|
743
770
|
"reflect": false,
|
744
771
|
"defaultValue": "'GRID_TASKBAR_CUSTOM_ELEMENTS'"
|
772
|
+
},
|
773
|
+
"disablePersonalizedFilter": {
|
774
|
+
"type": "boolean",
|
775
|
+
"mutable": false,
|
776
|
+
"complexType": {
|
777
|
+
"original": "boolean",
|
778
|
+
"resolved": "boolean",
|
779
|
+
"references": {}
|
780
|
+
},
|
781
|
+
"required": false,
|
782
|
+
"optional": false,
|
783
|
+
"docs": {
|
784
|
+
"tags": [],
|
785
|
+
"text": "Desabilita a apresenta\u00E7\u00E3o da op\u00E7\u00E3o de filtros personalizados na filter bar (chip de filtros)\ne no modal lateral de filtros (container de filtros personalizados)."
|
786
|
+
},
|
787
|
+
"attribute": "disable-personalized-filter",
|
788
|
+
"reflect": false
|
789
|
+
},
|
790
|
+
"gridLegacyConfigName": {
|
791
|
+
"type": "string",
|
792
|
+
"mutable": false,
|
793
|
+
"complexType": {
|
794
|
+
"original": "string",
|
795
|
+
"resolved": "string",
|
796
|
+
"references": {}
|
797
|
+
},
|
798
|
+
"required": false,
|
799
|
+
"optional": false,
|
800
|
+
"docs": {
|
801
|
+
"tags": [],
|
802
|
+
"text": "Chave da configura\u00E7\u00E3o legado da grade."
|
803
|
+
},
|
804
|
+
"attribute": "grid-legacy-config-name",
|
805
|
+
"reflect": false
|
806
|
+
},
|
807
|
+
"filterBarLegacyConfigName": {
|
808
|
+
"type": "string",
|
809
|
+
"mutable": false,
|
810
|
+
"complexType": {
|
811
|
+
"original": "string",
|
812
|
+
"resolved": "string",
|
813
|
+
"references": {}
|
814
|
+
},
|
815
|
+
"required": false,
|
816
|
+
"optional": false,
|
817
|
+
"docs": {
|
818
|
+
"tags": [],
|
819
|
+
"text": "Chave da configura\u00E7\u00E3o legado da barra de filtros."
|
820
|
+
},
|
821
|
+
"attribute": "filter-bar-legacy-config-name",
|
822
|
+
"reflect": false
|
745
823
|
}
|
746
824
|
};
|
747
825
|
}
|
@@ -898,4 +976,10 @@ export class SnkGrid {
|
|
898
976
|
};
|
899
977
|
}
|
900
978
|
static get elementRef() { return "_element"; }
|
979
|
+
static get watchers() {
|
980
|
+
return [{
|
981
|
+
"propName": "gridLegacyConfigName",
|
982
|
+
"methodName": "handleGridLegacyConfigName"
|
983
|
+
}];
|
984
|
+
}
|
901
985
|
}
|