@sankhyalabs/sankhyablocks 8.16.0-dev.4 → 8.16.0-dev.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ConfigStorage-942ce74b.js → ConfigStorage-ecc0ed20.js} +3 -2
- package/dist/cjs/{IExporterProvider-597949f9.js → ContinuousInsertUtils-37c7cbcf.js} +64 -22
- package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-cadeef8e.js} +21 -15
- package/dist/cjs/{RecordIDUtils-3735135c.js → GetSelectedRecordsIDsInfo-bd50caf1.js} +10 -10
- package/dist/cjs/{SnkFormConfigManager-1b13bacd.js → SnkFormConfigManager-f1c92f79.js} +74 -20
- package/dist/cjs/{SnkMessageBuilder-722b104e.js → SnkMessageBuilder-bae64d0d.js} +7 -3
- package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-d68841bc.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-688d3f05.js → dataunit-fetcher-a36ae041.js} +48 -20
- package/dist/cjs/{field-search-f56aa7d6.js → field-search-68e34bf4.js} +5 -1
- package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-ed497282.js} +5 -2
- package/dist/cjs/index-f9e81701.js +8 -28
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-680e198f.js → pesquisa-fetcher-490a86c3.js} +7 -2
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +17 -14
- package/dist/cjs/snk-application.cjs.entry.js +7 -7
- package/dist/cjs/snk-attach.cjs.entry.js +38 -29
- package/dist/cjs/{snk-form-config.cjs.entry.js → snk-config-options_3.cjs.entry.js} +381 -7
- package/dist/cjs/snk-crud.cjs.entry.js +16 -7
- package/dist/cjs/snk-data-exporter.cjs.entry.js +19 -18
- package/dist/cjs/{snk-data-unit-685272e7.js → snk-data-unit-b460f1da.js} +42 -22
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
- package/dist/cjs/snk-detail-view.cjs.entry.js +12 -13
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +1411 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +58 -21
- package/dist/cjs/{snk-guides-viewer-67605336.js → snk-guides-viewer-de0a5c57.js} +27 -14
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +66 -27
- package/dist/cjs/snk-taskbar.cjs.entry.js +24 -1
- package/dist/collection/collection-manifest.json +11 -31
- package/dist/collection/components/snk-actions-button/actions/index.js +12 -9
- package/dist/collection/components/snk-attach/snk-attach.js +25 -16
- package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +2 -4
- package/dist/collection/components/snk-crud/snk-crud.js +97 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +3 -4
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +6 -6
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +70 -7
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +4 -4
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +5 -5
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +1 -1
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +2 -2
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -2
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +4 -4
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +57 -20
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +1 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +59 -21
- package/dist/collection/components/snk-form/snk-form.js +2 -2
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +72 -18
- package/dist/collection/components/snk-form-config/snk-form-config.css +8 -3
- package/dist/collection/components/snk-form-config/snk-form-config.js +32 -3
- package/dist/collection/components/snk-grid/snk-grid.css +2 -0
- package/dist/collection/components/snk-grid/snk-grid.js +74 -8
- package/dist/collection/components/snk-print-selector/snk-print-selector.js +1 -1
- package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +1 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +0 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +91 -16
- package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +5 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +65 -0
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +3 -3
- package/dist/collection/lib/configs/ConfigStorage.js +1 -0
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +2 -4
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +34 -9
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +22 -16
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js +7 -5
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +2 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +9 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +4 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +6 -1
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-grid.msg.js +5 -1
- package/dist/collection/lib/utils/ContinuousInsertUtils.js +31 -0
- package/dist/collection/lib/utils/CrudUtils.js +25 -16
- package/dist/collection/{components/snk-data-exporter/utils/RecordIDUtils.js → lib/utils/GetSelectedRecordsIDsInfo.js} +9 -9
- package/dist/collection/sw.js +46 -0
- package/dist/components/ConfigStorage.js +1 -0
- package/dist/components/{IExporterProvider.js → ContinuousInsertUtils.js} +65 -21
- package/dist/components/DataFetcher.js +22 -16
- package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
- package/dist/components/SnkFormConfigManager.js +72 -18
- package/dist/components/SnkMessageBuilder.js +7 -3
- package/dist/components/dataunit-fetcher.js +47 -17
- package/dist/components/form-config-fetcher.js +4 -1
- package/dist/components/pesquisa-fetcher.js +6 -1
- package/dist/components/snk-actions-button2.js +12 -9
- package/dist/components/snk-attach2.js +34 -25
- package/dist/components/snk-crud.js +15 -2
- package/dist/components/snk-data-exporter2.js +12 -11
- package/dist/components/snk-data-unit2.js +44 -60
- package/dist/components/snk-detail-view2.js +28 -13
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +35 -22
- package/dist/components/snk-filter-binary-select.js +1 -1
- package/dist/components/snk-filter-checkbox-list.js +1 -1
- package/dist/components/snk-form-config2.js +17 -4
- package/dist/components/snk-form.js +2 -2
- package/dist/components/snk-grid2.js +51 -12
- package/dist/components/snk-personalized-filter-editor.js +1 -1
- package/dist/components/snk-print-selector.js +1 -1
- package/dist/components/snk-simple-bar2.js +1 -1
- package/dist/components/snk-simple-crud2.js +59 -16
- package/dist/components/snk-taskbar2.js +25 -2
- package/dist/esm/{ConfigStorage-86187da3.js → ConfigStorage-7b36d041.js} +3 -2
- package/dist/esm/{IExporterProvider-63a188b6.js → ContinuousInsertUtils-881c41a9.js} +65 -24
- package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-a9c598f2.js} +22 -16
- package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js +41 -0
- package/dist/esm/{SnkFormConfigManager-d4554df9.js → SnkFormConfigManager-f1a0fc92.js} +74 -20
- package/dist/esm/{SnkMessageBuilder-89925609.js → SnkMessageBuilder-6fff4a4c.js} +7 -3
- package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-749d880f.js} +1 -1
- package/dist/esm/{constants-8457af36.js → constants-7302ee87.js} +1 -1
- package/dist/esm/{dataunit-fetcher-264191b2.js → dataunit-fetcher-fd58c640.js} +48 -18
- package/dist/esm/{field-search-efbe307f.js → field-search-f8b1d91e.js} +5 -1
- package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-adbe5d34.js} +5 -2
- package/dist/esm/index-a7d3d3f1.js +8 -28
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-03c8f919.js → pesquisa-fetcher-50fc7e6b.js} +7 -2
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +18 -15
- package/dist/esm/snk-application.entry.js +7 -7
- package/dist/esm/snk-attach.entry.js +39 -30
- package/dist/esm/{snk-form-config.entry.js → snk-config-options_3.entry.js} +382 -10
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +17 -8
- package/dist/esm/snk-data-exporter.entry.js +20 -19
- package/dist/esm/{snk-data-unit-63f83504.js → snk-data-unit-590225b5.js} +42 -22
- package/dist/esm/snk-data-unit.entry.js +5 -5
- package/dist/esm/snk-detail-view.entry.js +13 -14
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-field-config.entry.js +1 -1
- package/dist/esm/snk-filter-bar_4.entry.js +1404 -0
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +53 -16
- package/dist/esm/{snk-guides-viewer-151f6091.js → snk-guides-viewer-2f4dcdc5.js} +28 -15
- package/dist/esm/snk-guides-viewer.entry.js +9 -9
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-bar.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +63 -24
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/esm/snk-taskbar.entry.js +24 -1
- package/dist/sankhyablocks/p-052213ba.entry.js +1 -0
- package/dist/sankhyablocks/{p-df5451c7.js → p-06421fdb.js} +2 -2
- package/dist/sankhyablocks/p-0b6cd238.entry.js +1 -0
- package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
- package/dist/sankhyablocks/p-17425c72.js +1 -0
- package/dist/sankhyablocks/{p-a1d72395.entry.js → p-212213d9.entry.js} +1 -1
- package/dist/sankhyablocks/p-23736d75.js +1 -0
- package/dist/sankhyablocks/p-242d010e.entry.js +1 -0
- package/dist/sankhyablocks/p-275de842.entry.js +1 -0
- package/dist/sankhyablocks/p-2aae03a1.entry.js +1 -0
- package/dist/sankhyablocks/{p-8eb67fa4.entry.js → p-2d3f9482.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7663f597.entry.js → p-41793e17.entry.js} +1 -1
- package/dist/sankhyablocks/{p-72fc257b.entry.js → p-434817f0.entry.js} +1 -1
- package/dist/sankhyablocks/p-47bce500.js +60 -0
- package/dist/sankhyablocks/{p-aff76a53.js → p-4d9549cf.js} +2 -2
- package/dist/sankhyablocks/p-583517ba.entry.js +1 -0
- package/dist/sankhyablocks/p-5b51491f.entry.js +1 -0
- package/dist/sankhyablocks/p-5e51e833.entry.js +1 -0
- package/dist/sankhyablocks/{p-aaa3ee68.entry.js → p-5f157b09.entry.js} +1 -1
- package/dist/sankhyablocks/p-6114ee36.entry.js +1 -0
- package/dist/sankhyablocks/p-72c10005.entry.js +1 -0
- package/dist/sankhyablocks/p-7bd9683d.js +1 -0
- package/dist/sankhyablocks/p-7dd49d15.js +1 -0
- package/dist/sankhyablocks/{p-af8efd95.js → p-8a9638ae.js} +2 -2
- package/dist/sankhyablocks/{p-95df461f.entry.js → p-8b4fc28f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-41f8bfa3.entry.js → p-8c235d4c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b0ef4383.js → p-95ce311a.js} +1 -1
- package/dist/sankhyablocks/p-ab1645fb.entry.js +1 -0
- package/dist/sankhyablocks/p-c2e468c9.entry.js +1 -0
- package/dist/sankhyablocks/{p-913a9979.js → p-ca5ec380.js} +1 -1
- package/dist/sankhyablocks/p-cefb0ee1.entry.js +1 -0
- package/dist/sankhyablocks/p-cfa1b199.js +1 -0
- package/dist/sankhyablocks/{p-82a0bfb0.entry.js → p-dbe6174a.entry.js} +2 -2
- package/dist/sankhyablocks/p-f3434fc4.js +1 -0
- package/dist/sankhyablocks/p-fa6c5826.entry.js +1 -0
- package/dist/sankhyablocks/p-fadc8339.js +1 -0
- package/dist/sankhyablocks/{p-eae7a817.entry.js → p-fb34e0cf.entry.js} +1 -1
- package/dist/sankhyablocks/p-fd13b4d2.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/actions/index.d.ts +1 -0
- package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +17 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +15 -0
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +3 -3
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +7 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +5 -0
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +9 -4
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +4 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +11 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +13 -0
- package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +1 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
- package/dist/types/components.d.ts +113 -0
- package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +12 -2
- package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.d.ts +3 -2
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +1 -1
- package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +10 -0
- package/dist/types/lib/utils/CrudUtils.d.ts +1 -0
- package/dist/types/lib/utils/GetSelectedRecordsIDsInfo.d.ts +3 -0
- package/package.json +4 -3
- package/dist/cjs/snk-config-options.cjs.entry.js +0 -239
- package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -714
- package/dist/cjs/snk-filter-item.cjs.entry.js +0 -312
- package/dist/cjs/snk-filter-list.cjs.entry.js +0 -152
- package/dist/cjs/snk-filter-modal.cjs.entry.js +0 -249
- package/dist/cjs/snk-form.cjs.entry.js +0 -143
- package/dist/esm/snk-config-options.entry.js +0 -235
- package/dist/esm/snk-filter-bar.entry.js +0 -710
- package/dist/esm/snk-filter-item.entry.js +0 -308
- package/dist/esm/snk-filter-list.entry.js +0 -148
- package/dist/esm/snk-filter-modal.entry.js +0 -245
- package/dist/esm/snk-form.entry.js +0 -139
- package/dist/sankhyablocks/p-14a08904.entry.js +0 -1
- package/dist/sankhyablocks/p-14b9f964.entry.js +0 -1
- package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
- package/dist/sankhyablocks/p-3a212712.js +0 -1
- package/dist/sankhyablocks/p-3a216b81.entry.js +0 -1
- package/dist/sankhyablocks/p-3b60db06.entry.js +0 -1
- package/dist/sankhyablocks/p-47b60deb.entry.js +0 -1
- package/dist/sankhyablocks/p-70a4af56.entry.js +0 -1
- package/dist/sankhyablocks/p-7505da04.entry.js +0 -1
- package/dist/sankhyablocks/p-75f83d1d.entry.js +0 -1
- package/dist/sankhyablocks/p-7a337364.js +0 -1
- package/dist/sankhyablocks/p-829d4045.js +0 -1
- package/dist/sankhyablocks/p-88aa931b.entry.js +0 -1
- package/dist/sankhyablocks/p-8fc470e5.entry.js +0 -1
- package/dist/sankhyablocks/p-941bf3ef.entry.js +0 -1
- package/dist/sankhyablocks/p-9863d682.js +0 -1
- package/dist/sankhyablocks/p-b11aa1e0.entry.js +0 -1
- package/dist/sankhyablocks/p-b4b21558.entry.js +0 -1
- package/dist/sankhyablocks/p-bad55caa.entry.js +0 -1
- package/dist/sankhyablocks/p-c053256c.entry.js +0 -1
- package/dist/sankhyablocks/p-c2495304.js +0 -1
- package/dist/sankhyablocks/p-c5268346.entry.js +0 -1
- package/dist/sankhyablocks/p-cefba299.js +0 -1
- package/dist/sankhyablocks/p-d3f53df2.entry.js +0 -1
- package/dist/sankhyablocks/p-dc7c9047.js +0 -1
- package/dist/sankhyablocks/p-e8763234.entry.js +0 -1
- package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
- package/dist/sankhyablocks/p-fcac4dfc.js +0 -1
- package/dist/sankhyablocks/p-fe79f83a.js +0 -60
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
@@ -1,312 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-f9e81701.js');
|
6
|
-
const core = require('@sankhyalabs/core');
|
7
|
-
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
8
|
-
const filterNumberVariation = require('./filterNumberVariation-d65332da.js');
|
9
|
-
|
10
|
-
const SnkFilterItem = class {
|
11
|
-
constructor(hostRef) {
|
12
|
-
index.registerInstance(this, hostRef);
|
13
|
-
this.visibleChanged = index.createEvent(this, "visibleChanged", 7);
|
14
|
-
this.filterChange = index.createEvent(this, "filterChange", 3);
|
15
|
-
this.innerClickCheck = (_floatingContainer, node) => {
|
16
|
-
if (node.id != core.FloatingManager.MODAL_ELEMENT_ID) {
|
17
|
-
return true;
|
18
|
-
}
|
19
|
-
this.detailIsVisible = false;
|
20
|
-
return false;
|
21
|
-
};
|
22
|
-
this.detailIsVisible = undefined;
|
23
|
-
this.config = undefined;
|
24
|
-
this.getMessage = undefined;
|
25
|
-
this.showChips = true;
|
26
|
-
}
|
27
|
-
observeDetailIsVisible(value) {
|
28
|
-
this.visibleChanged.emit(value);
|
29
|
-
}
|
30
|
-
/**
|
31
|
-
* Exibe os detalhes de um item da lista.
|
32
|
-
*/
|
33
|
-
async showUp(open = false) {
|
34
|
-
return new Promise(resolve => {
|
35
|
-
this._filterItemElement.scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });
|
36
|
-
if (open) {
|
37
|
-
this._closeCallback = resolve;
|
38
|
-
window.requestAnimationFrame(() => {
|
39
|
-
this._floatingID = core.FloatingManager.float(this._popover, this._popoverContainer, this.getFloatOptions());
|
40
|
-
this._popover.show();
|
41
|
-
this.detailIsVisible = true;
|
42
|
-
});
|
43
|
-
}
|
44
|
-
});
|
45
|
-
}
|
46
|
-
updatePosition() {
|
47
|
-
if (this._floatingID == undefined) {
|
48
|
-
return;
|
49
|
-
}
|
50
|
-
core.FloatingManager.updateFloatPosition(this._popover, this._popoverContainer, this.getFloatOptions());
|
51
|
-
}
|
52
|
-
getFloatOptions() {
|
53
|
-
return {
|
54
|
-
autoClose: true,
|
55
|
-
innerClickTest: this.innerClickCheck,
|
56
|
-
backClickListener: () => this.onDetailCloseCallback(),
|
57
|
-
left: this.getOffsetLeft(),
|
58
|
-
top: this.getOffsetTop(),
|
59
|
-
useOverlay: true,
|
60
|
-
overlayClassName: 'ez-scrim ez-scrim--light',
|
61
|
-
isFixed: true
|
62
|
-
};
|
63
|
-
}
|
64
|
-
getOffsetLeft() {
|
65
|
-
const padding = getComputedStyle(this._filterItemElement).getPropertyValue("padding-left");
|
66
|
-
const rect = this._filterItemElement.getBoundingClientRect();
|
67
|
-
// Width baseado no conteudo do snk-filter-detail. Nesse momento ele retorna 0px pois ainda não foi criado em tela.
|
68
|
-
const filterDetailWidth = 430;
|
69
|
-
const adjustRightPosition = filterDetailWidth - (document.body.clientWidth - rect.left);
|
70
|
-
return `calc(${rect.x}px + ${padding} - ${adjustRightPosition > 0 ? adjustRightPosition : 0}px)`;
|
71
|
-
}
|
72
|
-
getOffsetTop() {
|
73
|
-
const rect = this._filterItemElement.getBoundingClientRect();
|
74
|
-
return (rect.y + rect.height) + "px";
|
75
|
-
}
|
76
|
-
controlScrollPage() {
|
77
|
-
window.removeEventListener("scroll", this.updatePosition.bind(this));
|
78
|
-
window.addEventListener("scroll", this.updatePosition.bind(this));
|
79
|
-
}
|
80
|
-
getConfigChanges() {
|
81
|
-
var _a;
|
82
|
-
const configToBeCleared = this.config;
|
83
|
-
if (!!((_a = configToBeCleared.groupedItems) === null || _a === void 0 ? void 0 : _a.length)) {
|
84
|
-
configToBeCleared.visible = false;
|
85
|
-
configToBeCleared.groupedItems = configToBeCleared.groupedItems.map(item => (Object.assign(Object.assign({}, item), { visible: false })));
|
86
|
-
}
|
87
|
-
const hasMultiValues = configToBeCleared.type === filterItemType_enum.FilterItemType.MULTI_LIST && Array.isArray(configToBeCleared.value);
|
88
|
-
const newValue = hasMultiValues ? configToBeCleared.value.map((valueItem) => (Object.assign(Object.assign({}, valueItem), { check: false }))) : undefined;
|
89
|
-
return Object.assign(Object.assign({}, configToBeCleared), { value: newValue });
|
90
|
-
}
|
91
|
-
/**
|
92
|
-
* Oculta os detalhes de um item da lista.
|
93
|
-
*/
|
94
|
-
async hideDetail() {
|
95
|
-
if (this.detailIsVisible) {
|
96
|
-
if (this._floatingID != undefined) {
|
97
|
-
core.FloatingManager.close(this._floatingID);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|
101
|
-
onDetailCloseCallback() {
|
102
|
-
this._floatingID = undefined;
|
103
|
-
this.detailIsVisible = false;
|
104
|
-
if (this._closeCallback) {
|
105
|
-
this._closeCallback();
|
106
|
-
this._closeCallback = undefined;
|
107
|
-
}
|
108
|
-
}
|
109
|
-
//---------------------------------------------
|
110
|
-
// Event handlers
|
111
|
-
//---------------------------------------------
|
112
|
-
clickListener(evt) {
|
113
|
-
if ([this._chipElement, this._leftIconElement, this._rightIconElement].includes(evt.target)) {
|
114
|
-
if (evt.target === this._rightIconElement && this.canClearFilter()) {
|
115
|
-
const configChanged = this.getConfigChanges();
|
116
|
-
this.filterChange.emit(configChanged);
|
117
|
-
}
|
118
|
-
else {
|
119
|
-
if (this.detailIsVisible) {
|
120
|
-
this.hideDetail();
|
121
|
-
}
|
122
|
-
else {
|
123
|
-
this.showUp(true);
|
124
|
-
}
|
125
|
-
}
|
126
|
-
evt.preventDefault();
|
127
|
-
evt.stopImmediatePropagation();
|
128
|
-
evt.stopPropagation();
|
129
|
-
}
|
130
|
-
}
|
131
|
-
mouseDownListener(evt) {
|
132
|
-
if (this.detailIsVisible && [this._chipElement, this._leftIconElement, this._rightIconElement].includes(evt.target)) {
|
133
|
-
evt.preventDefault();
|
134
|
-
evt.stopImmediatePropagation();
|
135
|
-
evt.stopPropagation();
|
136
|
-
}
|
137
|
-
}
|
138
|
-
getLabel(isTooltipLabel = false) {
|
139
|
-
var _a, _b;
|
140
|
-
const { type, value, label, props, groupedItems = [] } = this.config;
|
141
|
-
if (value || groupedItems.length) {
|
142
|
-
if (type === filterItemType_enum.FilterItemType.BINARY_SELECT) {
|
143
|
-
const [optOne, optTwo] = props.options;
|
144
|
-
const tooltip = this.getMessage('snkFilterBar.binarySelectTooltip');
|
145
|
-
if (optOne.name === value) {
|
146
|
-
return isTooltipLabel ? `${tooltip} ${String(optOne.label).toLowerCase()}` : optOne.label;
|
147
|
-
}
|
148
|
-
if (optTwo.name === value) {
|
149
|
-
return isTooltipLabel ? `${tooltip} ${String(optTwo.label).toLowerCase()}` : optTwo.label;
|
150
|
-
}
|
151
|
-
}
|
152
|
-
if (type === filterItemType_enum.FilterItemType.MULTI_SELECT) {
|
153
|
-
const opt = props.options.find(opt => opt.value === value);
|
154
|
-
return `${label}: ${opt.label}`;
|
155
|
-
}
|
156
|
-
if (type === filterItemType_enum.FilterItemType.PERIOD) {
|
157
|
-
let { end, start } = value;
|
158
|
-
if (typeof end === "string") {
|
159
|
-
end = new Date(end);
|
160
|
-
end.setMinutes(end.getMinutes() + end.getTimezoneOffset());
|
161
|
-
}
|
162
|
-
if (typeof start === "string") {
|
163
|
-
start = new Date(start);
|
164
|
-
start.setMinutes(start.getMinutes() + start.getTimezoneOffset());
|
165
|
-
}
|
166
|
-
const dateFormater = new Intl.DateTimeFormat("pt-BR");
|
167
|
-
if (end && start) {
|
168
|
-
const isSameYear = start.getFullYear() === end.getFullYear();
|
169
|
-
const formatOptions = Object.assign({ day: '2-digit', month: '2-digit' }, ((!isSameYear || isTooltipLabel) && { year: '2-digit' }));
|
170
|
-
const startLabel = core.DateUtils.formatDate(start, formatOptions);
|
171
|
-
const endLabel = core.DateUtils.formatDate(end, formatOptions);
|
172
|
-
if (isTooltipLabel) {
|
173
|
-
return this.getMessage('snkFilterBar.fullPeriodTooltip', { LABEL: label, START_LABEL: startLabel, END_LABEL: endLabel });
|
174
|
-
}
|
175
|
-
return `${label}: ${startLabel} \u2192 ${endLabel}`;
|
176
|
-
}
|
177
|
-
else {
|
178
|
-
if (start) {
|
179
|
-
return `${label}: ${this.getMessage('snkFilterBar.onlyStartToltip')} ${dateFormater.format(start)}`;
|
180
|
-
}
|
181
|
-
else if (end) {
|
182
|
-
return `${label}: ${this.getMessage('snkFilterBar.onlyEndToltip')} ${dateFormater.format(end)}`;
|
183
|
-
}
|
184
|
-
else {
|
185
|
-
return label;
|
186
|
-
}
|
187
|
-
}
|
188
|
-
}
|
189
|
-
if (type === filterItemType_enum.FilterItemType.SEARCH) {
|
190
|
-
return `${label}: ${value.value} - ${value.label}`;
|
191
|
-
}
|
192
|
-
if (type === filterItemType_enum.FilterItemType.PERSONALIZED) {
|
193
|
-
const activeCount = this.calculateActiveCount(groupedItems);
|
194
|
-
if (activeCount <= 0)
|
195
|
-
return label;
|
196
|
-
return `${label}: ${this.getMessage('snkFilterBar.personalizedCount', { activeCount })}`;
|
197
|
-
}
|
198
|
-
if (type === filterItemType_enum.FilterItemType.MULTI_LIST) {
|
199
|
-
const selectedOptions = ((_a = value.elements) !== null && _a !== void 0 ? _a : value).filter(item => item === null || item === void 0 ? void 0 : item.check);
|
200
|
-
return this.getLabelFromCheckedOptions(selectedOptions, label, isTooltipLabel);
|
201
|
-
}
|
202
|
-
if (type === filterItemType_enum.FilterItemType.CHECK_BOX_LIST) {
|
203
|
-
const selectedValues = Object.entries(value !== null && value !== void 0 ? value : {})
|
204
|
-
.filter(([_, value]) => value === true)
|
205
|
-
.map(([key, _]) => key);
|
206
|
-
const options = (_b = props.options) !== null && _b !== void 0 ? _b : [];
|
207
|
-
const selectedOptions = options.filter(option => selectedValues.includes(option.name));
|
208
|
-
return this.getLabelFromCheckedOptions(selectedOptions, label, isTooltipLabel);
|
209
|
-
}
|
210
|
-
if (type === filterItemType_enum.FilterItemType.NUMBER && props.variation === filterNumberVariation.FilterNumberVariation.INTERVAL) {
|
211
|
-
const { start, end } = value;
|
212
|
-
if (start && end) {
|
213
|
-
return this.getMessage('snkFilterBar.fullIntervalTooltip', { LABEL: label, START_LABEL: start, END_LABEL: end });
|
214
|
-
}
|
215
|
-
if (start) {
|
216
|
-
return `${label}: ${this.getMessage('snkFilterBar.onlyStartToltip')} ${Number(start)}`;
|
217
|
-
}
|
218
|
-
if (end) {
|
219
|
-
return `${label}: ${this.getMessage('snkFilterBar.onlyEndToltip')} ${Number(end)}`;
|
220
|
-
}
|
221
|
-
}
|
222
|
-
return `${label}: ${value}`;
|
223
|
-
}
|
224
|
-
return label;
|
225
|
-
}
|
226
|
-
getLabelFromCheckedOptions(selectedOptions, label, isTooltipLabel) {
|
227
|
-
const checkedAmount = selectedOptions.length;
|
228
|
-
if (checkedAmount === 0) {
|
229
|
-
return `${label}`;
|
230
|
-
}
|
231
|
-
if (checkedAmount > 1) {
|
232
|
-
if (isTooltipLabel) {
|
233
|
-
const selectedOptionsDescrptions = selectedOptions.map(item => item.label);
|
234
|
-
return `${label}: ${selectedOptionsDescrptions.join(',')}`;
|
235
|
-
}
|
236
|
-
return `${label}: ${checkedAmount} ${this.getMessage('snkFilterBar.multiListToltip')}`;
|
237
|
-
}
|
238
|
-
return `${label}: ${selectedOptions[0].label}`;
|
239
|
-
}
|
240
|
-
calculateActiveCount(groupedItems) {
|
241
|
-
return groupedItems.reduce((total, item) => {
|
242
|
-
if (!!item.visible)
|
243
|
-
return total + 1;
|
244
|
-
return total;
|
245
|
-
}, 0);
|
246
|
-
}
|
247
|
-
componentDidLoad() {
|
248
|
-
if (this._filterItemElement) {
|
249
|
-
core.ElementIDUtils.addIDInfo(this._filterItemElement);
|
250
|
-
this._idSnkFilterDetail = `filterDetail_${this.config.id}`;
|
251
|
-
}
|
252
|
-
this.controlScrollPage();
|
253
|
-
}
|
254
|
-
componentDidRender() {
|
255
|
-
if (this._floatingID == undefined) {
|
256
|
-
if (this._popover) {
|
257
|
-
this._popover.remove();
|
258
|
-
}
|
259
|
-
}
|
260
|
-
}
|
261
|
-
/**
|
262
|
-
* Emitido quando o estado do filtro é alterado.
|
263
|
-
*/
|
264
|
-
filterChangeListener() {
|
265
|
-
this.hideDetail();
|
266
|
-
}
|
267
|
-
canClearFilter() {
|
268
|
-
const { value, groupedItems = [] } = this.config;
|
269
|
-
if (value != undefined && this.config.type === filterItemType_enum.FilterItemType.MULTI_LIST) {
|
270
|
-
return value.some((item) => item.check);
|
271
|
-
}
|
272
|
-
return value !== undefined || groupedItems.some(item => item.visible);
|
273
|
-
}
|
274
|
-
getRightIconName() {
|
275
|
-
if (this.canClearFilter())
|
276
|
-
return "close";
|
277
|
-
return this.detailIsVisible ? "chevron-up" : "chevron-down";
|
278
|
-
}
|
279
|
-
getLeftIconName() {
|
280
|
-
switch (this.config.type) {
|
281
|
-
case filterItemType_enum.FilterItemType.PERIOD:
|
282
|
-
return "calendar";
|
283
|
-
case filterItemType_enum.FilterItemType.PERSONALIZED:
|
284
|
-
return "tune";
|
285
|
-
}
|
286
|
-
return undefined;
|
287
|
-
}
|
288
|
-
hasActiveElements(value) {
|
289
|
-
var _a, _b, _c;
|
290
|
-
return ((_c = (_b = ((_a = value === null || value === void 0 ? void 0 : value.elements) !== null && _a !== void 0 ? _a : value)) === null || _b === void 0 ? void 0 : _b.filter(val => val === null || val === void 0 ? void 0 : val.check)) === null || _c === void 0 ? void 0 : _c.length) > 0;
|
291
|
-
}
|
292
|
-
hasActiveValue(config) {
|
293
|
-
return (config.type !== filterItemType_enum.FilterItemType.MULTI_LIST && config.value !== undefined) || this.hasActiveElements(config.value);
|
294
|
-
}
|
295
|
-
getEnabledChip() {
|
296
|
-
if (this.config.type === filterItemType_enum.FilterItemType.PERSONALIZED) {
|
297
|
-
const { groupedItems = [] } = this.config;
|
298
|
-
return groupedItems.some(item => item.visible);
|
299
|
-
}
|
300
|
-
return this.hasActiveValue(this.config);
|
301
|
-
}
|
302
|
-
render() {
|
303
|
-
const leftIcon = this.getLeftIconName();
|
304
|
-
return (index.h(index.Host, null, this.showChips && (index.h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon && (index.h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" })), index.h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" }))), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail, showHardFixed: this.showChips }))));
|
305
|
-
}
|
306
|
-
get _filterItemElement() { return index.getElement(this); }
|
307
|
-
static get watchers() { return {
|
308
|
-
"detailIsVisible": ["observeDetailIsVisible"]
|
309
|
-
}; }
|
310
|
-
};
|
311
|
-
|
312
|
-
exports.snk_filter_item = SnkFilterItem;
|
@@ -1,152 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-f9e81701.js');
|
6
|
-
const core = require('@sankhyalabs/core');
|
7
|
-
|
8
|
-
const SHOW_MORE_ITEM_NAME = "__SHOWMORE__";
|
9
|
-
const MAX_FILTERS = 5;
|
10
|
-
const SnkFilterList = class {
|
11
|
-
constructor(hostRef) {
|
12
|
-
index.registerInstance(this, hostRef);
|
13
|
-
this.snkItemSelected = index.createEvent(this, "snkItemSelected", 7);
|
14
|
-
this._preselection = -1;
|
15
|
-
this.innerClickCheck = (_floatingContainer, node) => {
|
16
|
-
if (node.id != core.FloatingManager.MODAL_ELEMENT_ID) {
|
17
|
-
return true;
|
18
|
-
}
|
19
|
-
this._detailIsVisible = false;
|
20
|
-
return false;
|
21
|
-
};
|
22
|
-
this._filterArgument = undefined;
|
23
|
-
this._showAll = undefined;
|
24
|
-
this.label = undefined;
|
25
|
-
this.iconName = undefined;
|
26
|
-
this.items = undefined;
|
27
|
-
this.getMessage = undefined;
|
28
|
-
this.emptyText = undefined;
|
29
|
-
this.findFilterText = undefined;
|
30
|
-
this.buttonClass = undefined;
|
31
|
-
}
|
32
|
-
showDetail() {
|
33
|
-
this._preselection = -1;
|
34
|
-
this._floatingID = core.FloatingManager.float(this._popover, this._popoverContainer, {
|
35
|
-
autoClose: true,
|
36
|
-
innerClickTest: this.innerClickCheck,
|
37
|
-
backClickListener: () => this.onListCloseCallback(),
|
38
|
-
useOverlay: true
|
39
|
-
});
|
40
|
-
this._detailIsVisible = true;
|
41
|
-
this._showAll = false;
|
42
|
-
this._filterArgument = "";
|
43
|
-
this._filterInput.setFocus();
|
44
|
-
}
|
45
|
-
/**
|
46
|
-
* Oculta os detalhes do componente snk-filter-list.
|
47
|
-
*/
|
48
|
-
async hideDetail() {
|
49
|
-
if (this._floatingID != undefined) {
|
50
|
-
core.FloatingManager.close(this._floatingID);
|
51
|
-
}
|
52
|
-
}
|
53
|
-
onListCloseCallback() {
|
54
|
-
this._floatingID = undefined;
|
55
|
-
this._detailIsVisible = false;
|
56
|
-
}
|
57
|
-
buttonClick() {
|
58
|
-
if (this._detailIsVisible) {
|
59
|
-
this.hideDetail();
|
60
|
-
}
|
61
|
-
else {
|
62
|
-
this.showDetail();
|
63
|
-
}
|
64
|
-
}
|
65
|
-
componentDidLoad() {
|
66
|
-
if (this._element) {
|
67
|
-
core.ElementIDUtils.addIDInfo(this._element);
|
68
|
-
}
|
69
|
-
}
|
70
|
-
componentDidRender() {
|
71
|
-
if (this._floatingID == undefined) {
|
72
|
-
if (this._popover) {
|
73
|
-
this._popover.remove();
|
74
|
-
}
|
75
|
-
}
|
76
|
-
}
|
77
|
-
buildIdElement(buttonElement, name) {
|
78
|
-
if (!buttonElement)
|
79
|
-
return;
|
80
|
-
const dataElement = { id: name };
|
81
|
-
buttonElement.removeAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME);
|
82
|
-
core.ElementIDUtils.addIDInfoIfNotExists(buttonElement, "filterItemList", dataElement);
|
83
|
-
}
|
84
|
-
buildItemElement(item) {
|
85
|
-
const itemId = ++this._selectableItemsCount;
|
86
|
-
return (index.h("button", { ref: elem => elem && this.buildIdElement(elem, item.label), id: `filter-item${itemId}`, onFocusin: () => this._preselection = itemId, class: `ez-col ez-col--sd-12 ez-align--middle ez-padding--small sc-snk-filter-bar snk-filter-bar__filter-list-item`, onClick: () => this.itemSelected(item.name), name: item.label, key: itemId }, item.iconName ? index.h("ez-icon", { iconName: item.iconName, size: "small", class: `ez-padding-right--extra-small sc-snk-filter-bar snk-filter-bar__filter-list-item__icon ${item.iconClass || ""}` }) : undefined, index.h("div", { class: `ez-text ez-text--medium ez-text--primary ez-padding--extra-small sc-snk-filter-bar snk-filter-bar__filter-list-item__label ${item.labelClass || ""}` }, item.label)));
|
87
|
-
}
|
88
|
-
itemSelected(itemName) {
|
89
|
-
if (itemName === SHOW_MORE_ITEM_NAME) {
|
90
|
-
this._showAll = true;
|
91
|
-
}
|
92
|
-
else {
|
93
|
-
this.hideDetail();
|
94
|
-
this.snkItemSelected.emit(itemName);
|
95
|
-
}
|
96
|
-
}
|
97
|
-
getFilterItems() {
|
98
|
-
const items = this.items ? core.ArrayUtils.applyStringFilter(this._filterArgument, this.items.filter(item => item.kind === "FILTER")) : [];
|
99
|
-
if (items.length === 0) {
|
100
|
-
return index.h("div", { class: "ez-text ez-text--medium ez-text--primary ez-padding--extra-small sc-snk-filter-bar snk-filter-bar__filter-list-items-container--empty" }, this.emptyText);
|
101
|
-
}
|
102
|
-
const hideItems = !this._filterArgument && !this._showAll && (items.length > MAX_FILTERS + 1);
|
103
|
-
if (hideItems) {
|
104
|
-
items.splice(MAX_FILTERS);
|
105
|
-
items.push({ kind: "INTERNAL", label: "Mostrar mais", iconName: "dots-horizontal", name: SHOW_MORE_ITEM_NAME, iconClass: "snk-filter-bar__filter-list-item__icon--secondary", labelClass: "snk-filter-bar__filter-list-item__label--secondary" });
|
106
|
-
}
|
107
|
-
this._selectableItemsCount = 0;
|
108
|
-
return index.h("div", { class: "sc-snk-filter-bar snk-filter-bar__filter-list-items-container" }, items.map(item => this.buildItemElement(item)));
|
109
|
-
}
|
110
|
-
getFooterItems() {
|
111
|
-
return this.items.filter(item => item.kind === "FOOTER");
|
112
|
-
}
|
113
|
-
keyDownHandler(event) {
|
114
|
-
switch (event.key) {
|
115
|
-
case "ArrowDown":
|
116
|
-
this.changePreselection(this._preselection + 1);
|
117
|
-
//Paramos a propagação do evento para evitar scroll indesejado
|
118
|
-
event.stopImmediatePropagation();
|
119
|
-
event.stopPropagation();
|
120
|
-
event.preventDefault();
|
121
|
-
break;
|
122
|
-
case "ArrowUp":
|
123
|
-
this.changePreselection(this._preselection - 1);
|
124
|
-
//Paramos a propagação do evento para evitar scroll indesejado
|
125
|
-
event.stopImmediatePropagation();
|
126
|
-
event.stopPropagation();
|
127
|
-
event.preventDefault();
|
128
|
-
break;
|
129
|
-
}
|
130
|
-
}
|
131
|
-
changePreselection(newSelection) {
|
132
|
-
if (newSelection < 0) {
|
133
|
-
newSelection = this._selectableItemsCount;
|
134
|
-
}
|
135
|
-
this._preselection = newSelection > this._selectableItemsCount ? 0 : newSelection;
|
136
|
-
if (this._preselection === 0) {
|
137
|
-
this._filterInput.setFocus();
|
138
|
-
}
|
139
|
-
else {
|
140
|
-
const item = this._element.querySelector(`#filter-item${this._preselection}`);
|
141
|
-
if (item) {
|
142
|
-
item.focus();
|
143
|
-
}
|
144
|
-
}
|
145
|
-
}
|
146
|
-
render() {
|
147
|
-
return (index.h(index.Host, { class: "ez-flex ez-flex--column" }, index.h("ez-button", { class: this.buttonClass, label: this.label, onClick: () => this.buttonClick(), mode: this.iconName ? "icon" : undefined, iconName: this.iconName, size: "small" }, index.h("slot", { name: "leftIcon" })), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("div", { class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--4", ref: elem => this._popover = elem }, index.h("ez-filter-input", { ref: ref => this._filterInput = ref, "data-element-id": "serachFilters", mode: "slim", label: this.findFilterText, value: this._filterArgument, onEzChange: (evt) => this._filterArgument = evt.detail, onFocus: () => this._preselection = 0 }), this.getFilterItems(), index.h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), this.items ? this.getFooterItems().map(item => this.buildItemElement(item)) : undefined))));
|
148
|
-
}
|
149
|
-
get _element() { return index.getElement(this); }
|
150
|
-
};
|
151
|
-
|
152
|
-
exports.snk_filter_list = SnkFilterList;
|