@sankhyalabs/sankhyablocks 9.2.0-dev.2 → 9.2.0-dev.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-1931defc.js → ConfigStorage-8b6def32.js} +2 -2
- package/dist/cjs/{DataFetcher-ad9fb3bb.js → DataFetcher-2c37b6a1.js} +52 -1
- package/dist/cjs/{ISave-18ffb73e.js → ISave-b22b3cf0.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-65e5288e.js → SnkFormConfigManager-477a27de.js} +2 -2
- package/dist/cjs/{ClientSideExporterProvider-994f6e26.js → SnkMultiSelectionListDataSource-b7ab26ba.js} +82 -79
- package/dist/cjs/{auth-fetcher-afbe69ab.js → auth-fetcher-78a90b36.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-c7253b02.js → dataunit-fetcher-877944a9.js} +1 -1
- package/dist/cjs/filter-validate-6993f6f2.js +30 -0
- package/dist/cjs/{form-config-fetcher-f6e66d64.js → form-config-fetcher-dee08eb4.js} +1 -1
- package/dist/cjs/{index-0ad2baeb.js → index-13d05f03.js} +21 -5
- package/dist/cjs/index-1cf293c1.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -4
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_8.cjs.entry.js +5 -5
- package/dist/cjs/snk-application.cjs.entry.js +6 -9
- package/dist/cjs/snk-attach.cjs.entry.js +7 -7
- package/dist/cjs/snk-crud.cjs.entry.js +7 -7
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
- package/dist/cjs/{snk-data-unit-448fce74.js → snk-data-unit-0cfa7622.js} +14 -4
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +9 -9
- package/dist/cjs/snk-entity-list.cjs.entry.js +10 -3
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +189 -115
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +23 -2
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +20 -2
- package/dist/cjs/snk-filter-detail.cjs.entry.js +25 -8
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +9 -14
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +16 -3
- package/dist/cjs/snk-filter-number.cjs.entry.js +34 -3
- package/dist/cjs/snk-filter-period.cjs.entry.js +59 -14
- package/dist/cjs/snk-filter-search.cjs.entry.js +14 -3
- package/dist/cjs/snk-filter-text.cjs.entry.js +18 -1
- package/dist/cjs/snk-form_2.cjs.entry.js +31 -5
- package/dist/cjs/snk-grid.cjs.entry.js +158 -66
- package/dist/cjs/{snk-guides-viewer-c23ed218.js → snk-guides-viewer-38277265.js} +6 -6
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +14 -6
- package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
- package/dist/cjs/snk-simple-bar.cjs.entry.js +5 -5
- package/dist/cjs/snk-simple-crud.cjs.entry.js +60 -23
- package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
- package/dist/cjs/{taskbar-elements-3b74cd21.js → taskbar-elements-fb5d1e08.js} +1 -1
- package/dist/collection/components/snk-application/snk-application.js +0 -2
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +4 -1
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +174 -29
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +28 -4
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +72 -2
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +73 -2
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +51 -5
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +83 -3
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +118 -27
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +49 -5
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +71 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +62 -11
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +70 -8
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +0 -4
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +112 -16
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +8 -16
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +315 -114
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +3 -1
- package/dist/collection/components/snk-filter-bar/utils/filter-validate.js +24 -0
- package/dist/collection/components/snk-form/snk-form.js +133 -22
- package/dist/collection/components/snk-grid/snk-grid.js +488 -133
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +83 -21
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +80 -14
- package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +9 -9
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +414 -119
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +102 -36
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +1 -0
- package/dist/collection/lib/http/data-fetcher/custom-xhr-override.js +39 -0
- package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js +1 -0
- package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js +4 -0
- package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js +1 -0
- package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js +4 -0
- package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js +1 -0
- package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js +4 -0
- package/dist/components/ContinuousInsertUtils.js +4 -1
- package/dist/components/DataFetcher.js +52 -1
- package/dist/components/index2.js +21 -5
- package/dist/components/snk-application2.js +0 -3
- package/dist/components/snk-crud.js +62 -44
- package/dist/components/snk-data-unit2.js +12 -2
- package/dist/components/snk-detail-view2.js +89 -56
- package/dist/components/snk-entity-list.js +11 -3
- package/dist/components/snk-filter-bar2.js +103 -108
- package/dist/components/snk-filter-binary-select.js +27 -3
- package/dist/components/snk-filter-checkbox-list.js +24 -3
- package/dist/components/snk-filter-detail2.js +28 -9
- package/dist/components/snk-filter-item2.js +70 -8
- package/dist/components/snk-filter-modal-item2.js +7 -12
- package/dist/components/snk-filter-modal.js +1 -325
- package/dist/components/snk-filter-modal2.js +391 -0
- package/dist/components/snk-filter-multi-select.js +19 -4
- package/dist/components/snk-filter-number.js +38 -4
- package/dist/components/snk-filter-period.js +64 -16
- package/dist/components/snk-filter-search.js +17 -4
- package/dist/components/snk-filter-text.js +22 -2
- package/dist/components/snk-form.js +29 -2
- package/dist/components/snk-grid2.js +188 -75
- package/dist/components/snk-personalized-filter2.js +10 -2
- package/dist/components/snk-simple-bar2.js +5 -5
- package/dist/components/snk-simple-crud2.js +45 -8
- package/dist/esm/{ConfigStorage-b5a1dba3.js → ConfigStorage-22eace3a.js} +2 -2
- package/dist/esm/{DataFetcher-6f6de657.js → DataFetcher-f6b2961a.js} +52 -1
- package/dist/esm/{ISave-7ecdca20.js → ISave-6b7b0423.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-34fc1dc7.js → SnkFormConfigManager-968b97e7.js} +2 -2
- package/dist/esm/{ClientSideExporterProvider-7c2781f4.js → SnkMultiSelectionListDataSource-1136c4e7.js} +87 -84
- package/dist/esm/{auth-fetcher-7332a9a9.js → auth-fetcher-cf39e42b.js} +1 -1
- package/dist/esm/{dataunit-fetcher-f21cbad0.js → dataunit-fetcher-6314b19d.js} +1 -1
- package/dist/esm/filter-validate-d765d450.js +27 -0
- package/dist/esm/{form-config-fetcher-6ab4e805.js → form-config-fetcher-bc6f0f1f.js} +1 -1
- package/dist/esm/{index-b72af127.js → index-446f9341.js} +21 -5
- package/dist/esm/index-479e1293.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +4 -4
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_8.entry.js +5 -5
- package/dist/esm/snk-application.entry.js +6 -9
- package/dist/esm/snk-attach.entry.js +7 -7
- package/dist/esm/snk-crud.entry.js +7 -7
- package/dist/esm/snk-data-exporter.entry.js +5 -5
- package/dist/esm/{snk-data-unit-b7e6e7a6.js → snk-data-unit-4acf4781.js} +14 -4
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-detail-view.entry.js +9 -9
- package/dist/esm/snk-entity-list.entry.js +10 -3
- package/dist/esm/snk-expression-group_2.entry.js +1 -1
- package/dist/esm/snk-filter-bar_4.entry.js +190 -116
- package/dist/esm/snk-filter-binary-select.entry.js +23 -2
- package/dist/esm/snk-filter-checkbox-list.entry.js +20 -2
- package/dist/esm/snk-filter-detail.entry.js +25 -8
- package/dist/esm/snk-filter-modal-item.entry.js +9 -14
- package/dist/esm/snk-filter-multi-select.entry.js +16 -3
- package/dist/esm/snk-filter-number.entry.js +34 -3
- package/dist/esm/snk-filter-period.entry.js +59 -14
- package/dist/esm/snk-filter-search.entry.js +14 -3
- package/dist/esm/snk-filter-text.entry.js +18 -1
- package/dist/esm/snk-form_2.entry.js +31 -5
- package/dist/esm/snk-grid.entry.js +152 -60
- package/dist/esm/{snk-guides-viewer-fbfece85.js → snk-guides-viewer-19cb7f1f.js} +6 -6
- package/dist/esm/snk-guides-viewer.entry.js +9 -9
- package/dist/esm/snk-personalized-filter.entry.js +14 -6
- package/dist/esm/snk-pesquisa.entry.js +4 -4
- package/dist/esm/snk-simple-bar.entry.js +5 -5
- package/dist/esm/snk-simple-crud.entry.js +55 -18
- package/dist/esm/snk-taskbar.entry.js +2 -2
- package/dist/esm/{taskbar-elements-171476d4.js → taskbar-elements-faaf5d8f.js} +1 -1
- package/dist/sankhyablocks/p-093f58fa.entry.js +1 -0
- package/dist/sankhyablocks/{p-0e495575.js → p-0a317e81.js} +1 -1
- package/dist/sankhyablocks/{p-ad2ae575.entry.js → p-0e1f0344.entry.js} +1 -1
- package/dist/sankhyablocks/{p-8d1508aa.entry.js → p-16c1c209.entry.js} +1 -1
- package/dist/sankhyablocks/p-29cacaf3.entry.js +1 -0
- package/dist/sankhyablocks/{p-eb0616d3.entry.js → p-32450ea2.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b49281be.entry.js → p-3c29939c.entry.js} +1 -1
- package/dist/sankhyablocks/p-3ed04f0d.entry.js +1 -0
- package/dist/sankhyablocks/{p-4872dc3a.entry.js → p-44c5ec49.entry.js} +1 -1
- package/dist/sankhyablocks/p-49ddc27a.entry.js +1 -0
- package/dist/sankhyablocks/p-4c763b10.entry.js +1 -0
- package/dist/sankhyablocks/p-4eeb06fc.js +1 -0
- package/dist/sankhyablocks/p-505172c8.entry.js +1 -0
- package/dist/sankhyablocks/p-55798617.js +1 -0
- package/dist/sankhyablocks/p-658f67a5.js +1 -0
- package/dist/sankhyablocks/{p-158adf33.entry.js → p-701b024c.entry.js} +1 -1
- package/dist/sankhyablocks/p-72a9285d.entry.js +1 -0
- package/dist/sankhyablocks/p-7f7fe6c4.entry.js +1 -0
- package/dist/sankhyablocks/p-88b7bc09.js +1 -0
- package/dist/sankhyablocks/{p-c6331595.js → p-8d256def.js} +1 -1
- package/dist/sankhyablocks/p-8f37b75b.entry.js +1 -0
- package/dist/sankhyablocks/{p-b35574b5.js → p-9062d640.js} +1 -1
- package/dist/sankhyablocks/{p-72c8c847.entry.js → p-95c71f5e.entry.js} +1 -1
- package/dist/sankhyablocks/p-96d45943.entry.js +1 -0
- package/dist/sankhyablocks/{p-eacff4b7.entry.js → p-b2d7f4cd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6a015ba2.js → p-b7f5caf6.js} +1 -1
- package/dist/sankhyablocks/p-b9200e77.entry.js +11 -0
- package/dist/sankhyablocks/{p-7de79adf.js → p-b987e15d.js} +1 -1
- package/dist/sankhyablocks/{p-ba4979b4.js → p-bf017a1f.js} +1 -1
- package/dist/sankhyablocks/{p-735a1175.entry.js → p-c3dbf441.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3dba3468.js → p-c71dcb2d.js} +1 -1
- package/dist/sankhyablocks/{p-5e282b33.entry.js → p-c95f20d9.entry.js} +1 -1
- package/dist/sankhyablocks/p-c98e2085.js +1 -0
- package/dist/sankhyablocks/p-cb4343c4.entry.js +1 -0
- package/dist/sankhyablocks/p-d03ae54e.entry.js +1 -0
- package/dist/sankhyablocks/p-d235314c.entry.js +1 -0
- package/dist/sankhyablocks/p-d75a732c.js +1 -0
- package/dist/sankhyablocks/{p-f39b0ebe.entry.js → p-df7979fd.entry.js} +1 -1
- package/dist/sankhyablocks/p-e258de96.entry.js +1 -0
- package/dist/sankhyablocks/{p-d377aa7a.entry.js → p-f8e87cf1.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +46 -3
- package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +8 -4
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +12 -4
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +16 -4
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +17 -3
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +10 -2
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +8 -3
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +27 -4
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +17 -3
- package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +2 -3
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +60 -30
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +4 -2
- package/dist/types/components/snk-filter-bar/utils/filter-validate.d.ts +11 -0
- package/dist/types/components/snk-form/snk-form.d.ts +29 -4
- package/dist/types/components/snk-grid/snk-grid.d.ts +132 -58
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +53 -5
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +44 -6
- package/dist/types/components/snk-simple-bar/snk-simple-bar.d.ts +15 -15
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +100 -43
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +23 -21
- package/dist/types/components.d.ts +771 -255
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
- package/package.json +4 -3
- package/dist/collection/lib/licenses/sankhyalicense.module.js +0 -1
- package/dist/sankhyablocks/p-012208e0.entry.js +0 -1
- package/dist/sankhyablocks/p-07b14811.entry.js +0 -1
- package/dist/sankhyablocks/p-0dac8fef.js +0 -1
- package/dist/sankhyablocks/p-1210500e.js +0 -1
- package/dist/sankhyablocks/p-16fc4acd.js +0 -1
- package/dist/sankhyablocks/p-25209340.entry.js +0 -1
- package/dist/sankhyablocks/p-295b83ae.entry.js +0 -1
- package/dist/sankhyablocks/p-398cdd67.entry.js +0 -1
- package/dist/sankhyablocks/p-4e63ffed.entry.js +0 -1
- package/dist/sankhyablocks/p-5bab470d.entry.js +0 -1
- package/dist/sankhyablocks/p-5c7af8a9.entry.js +0 -1
- package/dist/sankhyablocks/p-81769310.entry.js +0 -11
- package/dist/sankhyablocks/p-9fd87bfd.entry.js +0 -1
- package/dist/sankhyablocks/p-a349689a.js +0 -1
- package/dist/sankhyablocks/p-a76e6d51.entry.js +0 -1
- package/dist/sankhyablocks/p-a86eee47.entry.js +0 -1
- package/dist/sankhyablocks/p-c6a8a8bc.entry.js +0 -1
- package/dist/sankhyablocks/p-c9e6d720.js +0 -1
- package/dist/sankhyablocks/p-dff65083.entry.js +0 -1
- package/dist/sankhyablocks/p-fa18530e.entry.js +0 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
2
1
|
import { ApplicationContext, ObjectUtils } from "@sankhyalabs/core";
|
2
|
+
import { h, Host } from "@stencil/core";
|
3
3
|
export class SnkEntityList {
|
4
4
|
constructor() {
|
5
5
|
this._ezListSource = [];
|
@@ -7,6 +7,7 @@ export class SnkEntityList {
|
|
7
7
|
this.rightListSlotBuilder = undefined;
|
8
8
|
this.maxHeightList = "";
|
9
9
|
this.value = undefined;
|
10
|
+
this.errorMessage = undefined;
|
10
11
|
}
|
11
12
|
async reloadList() {
|
12
13
|
this.loadListSource();
|
@@ -17,6 +18,7 @@ export class SnkEntityList {
|
|
17
18
|
}
|
18
19
|
ezListChangeListener(evt) {
|
19
20
|
var _a, _b;
|
21
|
+
this.errorMessage = undefined;
|
20
22
|
const configCopy = ObjectUtils.copy(this.config);
|
21
23
|
(_a = (this.getListConfigValue(configCopy))) === null || _a === void 0 ? void 0 : _a.forEach(value => {
|
22
24
|
var _a, _b;
|
@@ -69,7 +71,11 @@ export class SnkEntityList {
|
|
69
71
|
onEzSearchChange(evt) {
|
70
72
|
var _a, _b, _c, _d;
|
71
73
|
const newValueIsEmpty = ObjectUtils.isEmptySafetyCheck(evt.detail);
|
72
|
-
const hasConfingOnList = (_a = this.getListConfigValue(this.config)) === null || _a === void 0 ? void 0 : _a.find((
|
74
|
+
const hasConfingOnList = (_a = this.getListConfigValue(this.config)) === null || _a === void 0 ? void 0 : _a.find((item) => {
|
75
|
+
var _a;
|
76
|
+
const itemId = typeof item.id === 'number' ? String(item.id) : item.id;
|
77
|
+
return itemId === ((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value);
|
78
|
+
});
|
73
79
|
if (newValueIsEmpty || hasConfingOnList) {
|
74
80
|
return;
|
75
81
|
}
|
@@ -94,10 +100,11 @@ export class SnkEntityList {
|
|
94
100
|
return (_d = (_b = (_a = config.value) === null || _a === void 0 ? void 0 : _a.elements) !== null && _b !== void 0 ? _b : (_c = config === null || config === void 0 ? void 0 : config.value) === null || _c === void 0 ? void 0 : _c.members) !== null && _d !== void 0 ? _d : config === null || config === void 0 ? void 0 : config.value;
|
95
101
|
}
|
96
102
|
render() {
|
97
|
-
var _a, _b, _c;
|
103
|
+
var _a, _b, _c, _d, _e;
|
98
104
|
const isSearchPlus = ((_a = this.config.props) === null || _a === void 0 ? void 0 : _a["useSearchPlus"]) == true;
|
99
105
|
const TagName = isSearchPlus ? "ez-search-plus" : "ez-search";
|
100
|
-
return (h(Host, null, h(TagName, { ref: elem => this._searchElement = elem, optionLoader: argument => this.optionLoader(argument), label: (_b = this.config) === null || _b === void 0 ? void 0 : _b.label, onEzChange: evt => this.onEzSearchChange(evt), suppressEmptyOption: true, stopPropagateEnterKeyEvent: true }), ((
|
106
|
+
return (h(Host, null, h("ez-tooltip", { active: !this.config.enabled, message: this.config.disabledMessage, type: 'warning' }, h(TagName, { ref: elem => this._searchElement = elem, optionLoader: argument => this.optionLoader(argument), label: (_b = this.config) === null || _b === void 0 ? void 0 : _b.label, enabled: (_c = this.config) === null || _c === void 0 ? void 0 : _c.enabled, onEzChange: evt => this.onEzSearchChange(evt), suppressEmptyOption: true, stopPropagateEnterKeyEvent: true }), ((_d = this._ezListSource) === null || _d === void 0 ? void 0 : _d.length) > 0 && (h("label", { class: "label" }, this.getMessage("snkEntityList.selected"))), h("div", { style: this.maxHeightList ? { 'max-height': this.maxHeightList } : {}, class: { "snk-entity-list--overflow": !!this.maxHeightList } }, h("ez-list", { ref: (el) => this._ezList = el, id: "snkEntityList", enabled: (_e = this.config) === null || _e === void 0 ? void 0 : _e.enabled, listMode: "check", dataSource: this._ezListSource, hoverFeedback: true, itemSlotBuilder: this.rightListSlotBuilder, onEzCheckChange: evt => this.ezListChangeListener(evt) })), this.errorMessage &&
|
107
|
+
h("span", { class: 'ez-text ez-text--small ez-text--error ez-margin-horizontal--medium' }, this.errorMessage))));
|
101
108
|
}
|
102
109
|
static get is() { return "snk-entity-list"; }
|
103
110
|
static get encapsulation() { return "scoped"; }
|
@@ -197,6 +204,23 @@ export class SnkEntityList {
|
|
197
204
|
"tags": [],
|
198
205
|
"text": "Define o valor do componente"
|
199
206
|
}
|
207
|
+
},
|
208
|
+
"errorMessage": {
|
209
|
+
"type": "string",
|
210
|
+
"mutable": true,
|
211
|
+
"complexType": {
|
212
|
+
"original": "string",
|
213
|
+
"resolved": "string",
|
214
|
+
"references": {}
|
215
|
+
},
|
216
|
+
"required": false,
|
217
|
+
"optional": false,
|
218
|
+
"docs": {
|
219
|
+
"tags": [],
|
220
|
+
"text": "Usado para exibir mensagens de erro."
|
221
|
+
},
|
222
|
+
"attribute": "error-message",
|
223
|
+
"reflect": true
|
200
224
|
}
|
201
225
|
};
|
202
226
|
}
|
package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js
CHANGED
@@ -9,6 +9,7 @@ export class SnkFilterBinarySelect {
|
|
9
9
|
this.value = undefined;
|
10
10
|
this.config = undefined;
|
11
11
|
this.presentationMode = EPresentationMode.CHIP;
|
12
|
+
this.errorMessage = undefined;
|
12
13
|
}
|
13
14
|
isSelected(option) {
|
14
15
|
return this.value == undefined || this.value === option;
|
@@ -17,6 +18,7 @@ export class SnkFilterBinarySelect {
|
|
17
18
|
* Emitido quando acontece a alteração de valor do componente snk-filter-binary-select
|
18
19
|
*/
|
19
20
|
ezChangeListener(evt) {
|
21
|
+
this.errorMessage = undefined;
|
20
22
|
if (this.presentationMode === EPresentationMode.MODAL) {
|
21
23
|
if (!evt.detail) {
|
22
24
|
this.assertCheckedOption(evt.target);
|
@@ -33,6 +35,23 @@ export class SnkFilterBinarySelect {
|
|
33
35
|
async resetValues() {
|
34
36
|
this.ezChangeListener({ detail: this._noOptionValue });
|
35
37
|
}
|
38
|
+
/**
|
39
|
+
* Limpa o valor do componente restaurando o valor original da configuração.
|
40
|
+
*/
|
41
|
+
async clearValue() {
|
42
|
+
this.value = this.config.value;
|
43
|
+
this._radioButtonValue = this.value || this._noOptionValue;
|
44
|
+
}
|
45
|
+
/**
|
46
|
+
* Define o foco no componente snk-filter-binary-select.
|
47
|
+
*/
|
48
|
+
async setFocus() {
|
49
|
+
if (this.presentationMode === EPresentationMode.MODAL) {
|
50
|
+
this._checkOne.setFocus();
|
51
|
+
return;
|
52
|
+
}
|
53
|
+
this._element.querySelector('ez-radio-button').focus();
|
54
|
+
}
|
36
55
|
assertCheckedOption(updatingCheck) {
|
37
56
|
if (updatingCheck === this._checkOne) {
|
38
57
|
this._checkTwo.value = true;
|
@@ -74,9 +93,11 @@ export class SnkFilterBinarySelect {
|
|
74
93
|
}
|
75
94
|
const [optOne, optTwo] = this.config.props.options;
|
76
95
|
if (this.presentationMode === EPresentationMode.MODAL) {
|
77
|
-
return (h(Host, null, h("div", { class: "ez-row ez-size-height--full" }, h("label", { class: "ez-text ez-title--small ez-title--primary ez-size-height--full ez-flex ez-flex--row ez-flex--align-items-center ez-col ez-col--sd-4" }, this.config.detailModal), h("div", { class: "ez-col ez-col--sd-4" }, h("ez-check", { ref: (ref) => this._checkOne = ref, id: `${this.config.id}_${optOne.name || "option1"}`, class: "sc-snk-filter-bar editor__ez-check", label: optOne.label, value: this.isSelected(optOne.name) })), h("div", { class: "ez-col ez-col--sd-4" }, h("ez-check", { ref: (ref) => this._checkTwo = ref, id: `${this.config.id}_${optTwo.name || "option2"}`, class: "sc-snk-filter-bar editor__ez-check", label: optTwo.label, value: this.isSelected(optTwo.name) }))
|
96
|
+
return (h(Host, null, h("div", { class: "ez-row ez-size-height--full" }, h("label", { class: "ez-text ez-title--small ez-title--primary ez-size-height--full ez-flex ez-flex--row ez-flex--align-items-center ez-col ez-col--sd-4" }, this.config.detailModal), h("div", { class: "ez-col ez-col--sd-4" }, h("ez-check", { ref: (ref) => this._checkOne = ref, id: `${this.config.id}_${optOne.name || "option1"}`, class: "sc-snk-filter-bar editor__ez-check", label: optOne.label, enabled: this.config.enabled, value: this.isSelected(optOne.name) })), h("div", { class: "ez-col ez-col--sd-4" }, h("ez-check", { ref: (ref) => this._checkTwo = ref, id: `${this.config.id}_${optTwo.name || "option2"}`, class: "sc-snk-filter-bar editor__ez-check", label: optTwo.label, enabled: this.config.enabled, value: this.isSelected(optTwo.name) })), this.errorMessage &&
|
97
|
+
h("span", { class: 'ez-text ez-text--small ez-text--error ez-margin--small' }, this.errorMessage))));
|
78
98
|
}
|
79
|
-
return (h(Host, null, h("ez-radio-button", { value: this._radioButtonValue }, h("ez-radio-button-option", { id: `${this.config.id}_${optOne.name || "option1"}`, class: "sc-snk-filter-bar editor__ez-check", label: optOne.label, value: optOne.name }), h("ez-radio-button-option", { id: `${this.config.id}_${optTwo.name || "option2"}`, class: "sc-snk-filter-bar editor__ez-check", label: optTwo.label, value: optTwo.name }), h("ez-radio-button-option", { id: `${this.config.id}_option3`, class: "sc-snk-filter-bar editor__ez-check", label: `${optOne.label} + ${optTwo.label}`, value: this._noOptionValue }))
|
99
|
+
return (h(Host, null, h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, h("ez-radio-button", { value: this._radioButtonValue }, h("ez-radio-button-option", { id: `${this.config.id}_${optOne.name || "option1"}`, class: "sc-snk-filter-bar editor__ez-check", label: optOne.label, value: optOne.name }), h("ez-radio-button-option", { id: `${this.config.id}_${optTwo.name || "option2"}`, class: "sc-snk-filter-bar editor__ez-check", label: optTwo.label, value: optTwo.name }), h("ez-radio-button-option", { id: `${this.config.id}_option3`, class: "sc-snk-filter-bar editor__ez-check", label: `${optOne.label} + ${optTwo.label}`, value: this._noOptionValue })), this.errorMessage &&
|
100
|
+
h("span", { class: 'ez-text ez-text--small ez-text--error ez-margin--small' }, this.errorMessage))));
|
80
101
|
}
|
81
102
|
static get is() { return "snk-filter-binary-select"; }
|
82
103
|
static get properties() {
|
@@ -140,6 +161,23 @@ export class SnkFilterBinarySelect {
|
|
140
161
|
"attribute": "presentation-mode",
|
141
162
|
"reflect": false,
|
142
163
|
"defaultValue": "EPresentationMode.CHIP"
|
164
|
+
},
|
165
|
+
"errorMessage": {
|
166
|
+
"type": "string",
|
167
|
+
"mutable": true,
|
168
|
+
"complexType": {
|
169
|
+
"original": "string",
|
170
|
+
"resolved": "string",
|
171
|
+
"references": {}
|
172
|
+
},
|
173
|
+
"required": false,
|
174
|
+
"optional": false,
|
175
|
+
"docs": {
|
176
|
+
"tags": [],
|
177
|
+
"text": "Usado para exibir mensagens de erro."
|
178
|
+
},
|
179
|
+
"attribute": "error-message",
|
180
|
+
"reflect": true
|
143
181
|
}
|
144
182
|
};
|
145
183
|
}
|
@@ -181,6 +219,38 @@ export class SnkFilterBinarySelect {
|
|
181
219
|
"text": "Redefine os valores padr\u00E3o do componente.",
|
182
220
|
"tags": []
|
183
221
|
}
|
222
|
+
},
|
223
|
+
"clearValue": {
|
224
|
+
"complexType": {
|
225
|
+
"signature": "() => Promise<void>",
|
226
|
+
"parameters": [],
|
227
|
+
"references": {
|
228
|
+
"Promise": {
|
229
|
+
"location": "global"
|
230
|
+
}
|
231
|
+
},
|
232
|
+
"return": "Promise<void>"
|
233
|
+
},
|
234
|
+
"docs": {
|
235
|
+
"text": "Limpa o valor do componente restaurando o valor original da configura\u00E7\u00E3o.",
|
236
|
+
"tags": []
|
237
|
+
}
|
238
|
+
},
|
239
|
+
"setFocus": {
|
240
|
+
"complexType": {
|
241
|
+
"signature": "() => Promise<void>",
|
242
|
+
"parameters": [],
|
243
|
+
"references": {
|
244
|
+
"Promise": {
|
245
|
+
"location": "global"
|
246
|
+
}
|
247
|
+
},
|
248
|
+
"return": "Promise<void>"
|
249
|
+
},
|
250
|
+
"docs": {
|
251
|
+
"text": "Define o foco no componente snk-filter-binary-select.",
|
252
|
+
"tags": []
|
253
|
+
}
|
184
254
|
}
|
185
255
|
};
|
186
256
|
}
|
package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js
CHANGED
@@ -4,8 +4,24 @@ import FilterItemType from '../filter-item-type.enum';
|
|
4
4
|
export class SnkFilterCheckboxList {
|
5
5
|
constructor() {
|
6
6
|
this.config = undefined;
|
7
|
+
this.errorMessage = undefined;
|
7
8
|
this.optionsList = [];
|
8
9
|
}
|
10
|
+
/**
|
11
|
+
* Define o foco no componente snk-filter-checkbox-list.
|
12
|
+
*/
|
13
|
+
async setFocus() {
|
14
|
+
var _a, _b;
|
15
|
+
(_b = (_a = this._element) === null || _a === void 0 ? void 0 : _a.querySelector('ez-check')) === null || _b === void 0 ? void 0 : _b.setFocus();
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
* Limpa o valor do componente restaurando o valor original da configuração.
|
19
|
+
*/
|
20
|
+
async clearValue() {
|
21
|
+
var _a;
|
22
|
+
this.config = Object.assign(Object.assign({}, this.config), { value: this.config.value });
|
23
|
+
this.valueChanged.emit((_a = this.config) === null || _a === void 0 ? void 0 : _a.value);
|
24
|
+
}
|
9
25
|
componentDidLoad() {
|
10
26
|
if (this._element) {
|
11
27
|
ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
|
@@ -13,13 +29,14 @@ export class SnkFilterCheckboxList {
|
|
13
29
|
}
|
14
30
|
handleToggleCheck(itemChanged, checked) {
|
15
31
|
var _a, _b;
|
32
|
+
this.errorMessage = undefined;
|
16
33
|
let configValueMap = (_a = this.config.value) !== null && _a !== void 0 ? _a : {};
|
17
34
|
configValueMap[itemChanged.name] = checked;
|
18
35
|
this.config = Object.assign(Object.assign({}, this.config), { value: configValueMap });
|
19
36
|
this.valueChanged.emit((_b = this.config) === null || _b === void 0 ? void 0 : _b.value);
|
20
37
|
}
|
21
38
|
renderOptions() {
|
22
|
-
return this.optionsList.map(option => (h("ez-check", { label: option.label, onEzChange: (event) => this.handleToggleCheck(option, event.detail), value: !!this.isChecked(option.name) })));
|
39
|
+
return this.optionsList.map(option => (h("ez-check", { label: option.label, onEzChange: (event) => this.handleToggleCheck(option, event.detail), value: !!this.isChecked(option.name), enabled: this.config.enabled })));
|
23
40
|
}
|
24
41
|
isChecked(itemName) {
|
25
42
|
var _a;
|
@@ -37,7 +54,8 @@ export class SnkFilterCheckboxList {
|
|
37
54
|
if (!this.config || this.config.type !== FilterItemType.CHECK_BOX_LIST) {
|
38
55
|
return undefined;
|
39
56
|
}
|
40
|
-
return (h("div", { class: 'ez-flex ez-flex--column' }, this.renderOptions()
|
57
|
+
return (h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, h("div", { class: 'ez-flex ez-flex--column' }, this.renderOptions(), this.errorMessage &&
|
58
|
+
h("span", { class: 'ez-text ez-text--small ez-text--error ez-margin--small' }, this.errorMessage))));
|
41
59
|
}
|
42
60
|
static get is() { return "snk-filter-checkbox-list"; }
|
43
61
|
static get properties() {
|
@@ -61,6 +79,23 @@ export class SnkFilterCheckboxList {
|
|
61
79
|
"tags": [],
|
62
80
|
"text": "Define as configura\u00E7\u00F5es do componente snk-filter-multi-select"
|
63
81
|
}
|
82
|
+
},
|
83
|
+
"errorMessage": {
|
84
|
+
"type": "string",
|
85
|
+
"mutable": true,
|
86
|
+
"complexType": {
|
87
|
+
"original": "string",
|
88
|
+
"resolved": "string",
|
89
|
+
"references": {}
|
90
|
+
},
|
91
|
+
"required": false,
|
92
|
+
"optional": false,
|
93
|
+
"docs": {
|
94
|
+
"tags": [],
|
95
|
+
"text": "Usado para exibir mensagens de erro."
|
96
|
+
},
|
97
|
+
"attribute": "error-message",
|
98
|
+
"reflect": true
|
64
99
|
}
|
65
100
|
};
|
66
101
|
}
|
@@ -91,5 +126,41 @@ export class SnkFilterCheckboxList {
|
|
91
126
|
}
|
92
127
|
}];
|
93
128
|
}
|
129
|
+
static get methods() {
|
130
|
+
return {
|
131
|
+
"setFocus": {
|
132
|
+
"complexType": {
|
133
|
+
"signature": "() => Promise<void>",
|
134
|
+
"parameters": [],
|
135
|
+
"references": {
|
136
|
+
"Promise": {
|
137
|
+
"location": "global"
|
138
|
+
}
|
139
|
+
},
|
140
|
+
"return": "Promise<void>"
|
141
|
+
},
|
142
|
+
"docs": {
|
143
|
+
"text": "Define o foco no componente snk-filter-checkbox-list.",
|
144
|
+
"tags": []
|
145
|
+
}
|
146
|
+
},
|
147
|
+
"clearValue": {
|
148
|
+
"complexType": {
|
149
|
+
"signature": "() => Promise<void>",
|
150
|
+
"parameters": [],
|
151
|
+
"references": {
|
152
|
+
"Promise": {
|
153
|
+
"location": "global"
|
154
|
+
}
|
155
|
+
},
|
156
|
+
"return": "Promise<void>"
|
157
|
+
},
|
158
|
+
"docs": {
|
159
|
+
"text": "Limpa o valor do componente restaurando o valor original da configura\u00E7\u00E3o.",
|
160
|
+
"tags": []
|
161
|
+
}
|
162
|
+
}
|
163
|
+
};
|
164
|
+
}
|
94
165
|
static get elementRef() { return "_element"; }
|
95
166
|
}
|
package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js
CHANGED
@@ -5,21 +5,32 @@ export class SnkFilterMultiSelect {
|
|
5
5
|
constructor() {
|
6
6
|
this.value = undefined;
|
7
7
|
this.config = undefined;
|
8
|
+
this.errorMessage = undefined;
|
8
9
|
}
|
9
10
|
/**
|
10
11
|
* Emitido quando acontece a alteração de valor do componente snk-filter-multi-select
|
11
12
|
*/
|
12
13
|
ezChangeListener(evt) {
|
13
14
|
var _a;
|
15
|
+
this.errorMessage = undefined;
|
14
16
|
this.value = (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value;
|
15
17
|
this.valueChanged.emit(this.value);
|
16
18
|
}
|
17
19
|
/**
|
18
|
-
*
|
20
|
+
* Define o foco no componente snk-filter-multi-select.
|
19
21
|
*/
|
20
|
-
async
|
22
|
+
async setFocus() {
|
21
23
|
this._comboElement.setFocus();
|
22
24
|
}
|
25
|
+
/**
|
26
|
+
* Limpa o valor do componente restaurando o valor original da configuração.
|
27
|
+
*/
|
28
|
+
async clearValue() {
|
29
|
+
this.value = this.config.value;
|
30
|
+
if (this._comboElement) {
|
31
|
+
this._comboElement.value = this.config.value;
|
32
|
+
}
|
33
|
+
}
|
23
34
|
componentDidLoad() {
|
24
35
|
if (this._element) {
|
25
36
|
ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
|
@@ -29,7 +40,9 @@ export class SnkFilterMultiSelect {
|
|
29
40
|
if (!this.config || this.config.type !== FilterItemType.MULTI_SELECT) {
|
30
41
|
return undefined;
|
31
42
|
}
|
32
|
-
return (h("ez-combo-box", { id: this.config.id, ref: ref => this._comboElement = ref, label: this.config.label, value: this.config.value, options: this.config.props.options
|
43
|
+
return (h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, h("ez-combo-box", { id: this.config.id, ref: ref => this._comboElement = ref, label: this.config.label, value: this.config.value, options: this.config.props.options, enabled: this.config.enabled, errorMessage: this.errorMessage, onEzVisibilityChange: (event) => {
|
44
|
+
event.stopPropagation();
|
45
|
+
} })));
|
33
46
|
}
|
34
47
|
static get is() { return "snk-filter-multi-select"; }
|
35
48
|
static get properties() {
|
@@ -70,6 +83,23 @@ export class SnkFilterMultiSelect {
|
|
70
83
|
"tags": [],
|
71
84
|
"text": "Define as configura\u00E7\u00F5es do componente snk-filter-multi-select"
|
72
85
|
}
|
86
|
+
},
|
87
|
+
"errorMessage": {
|
88
|
+
"type": "string",
|
89
|
+
"mutable": true,
|
90
|
+
"complexType": {
|
91
|
+
"original": "string",
|
92
|
+
"resolved": "string",
|
93
|
+
"references": {}
|
94
|
+
},
|
95
|
+
"required": false,
|
96
|
+
"optional": false,
|
97
|
+
"docs": {
|
98
|
+
"tags": [],
|
99
|
+
"text": "Usado para exibir mensagens de erro."
|
100
|
+
},
|
101
|
+
"attribute": "error-message",
|
102
|
+
"reflect": true
|
73
103
|
}
|
74
104
|
};
|
75
105
|
}
|
@@ -93,7 +123,23 @@ export class SnkFilterMultiSelect {
|
|
93
123
|
}
|
94
124
|
static get methods() {
|
95
125
|
return {
|
96
|
-
"
|
126
|
+
"setFocus": {
|
127
|
+
"complexType": {
|
128
|
+
"signature": "() => Promise<void>",
|
129
|
+
"parameters": [],
|
130
|
+
"references": {
|
131
|
+
"Promise": {
|
132
|
+
"location": "global"
|
133
|
+
}
|
134
|
+
},
|
135
|
+
"return": "Promise<void>"
|
136
|
+
},
|
137
|
+
"docs": {
|
138
|
+
"text": "Define o foco no componente snk-filter-multi-select.",
|
139
|
+
"tags": []
|
140
|
+
}
|
141
|
+
},
|
142
|
+
"clearValue": {
|
97
143
|
"complexType": {
|
98
144
|
"signature": "() => Promise<void>",
|
99
145
|
"parameters": [],
|
@@ -105,7 +151,7 @@ export class SnkFilterMultiSelect {
|
|
105
151
|
"return": "Promise<void>"
|
106
152
|
},
|
107
153
|
"docs": {
|
108
|
-
"text": "
|
154
|
+
"text": "Limpa o valor do componente restaurando o valor original da configura\u00E7\u00E3o.",
|
109
155
|
"tags": []
|
110
156
|
}
|
111
157
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
2
2
|
import { h } from '@stencil/core';
|
3
3
|
import FilterItemType from '../filter-item-type.enum';
|
4
|
-
import { EPresentationMode } from './enum/presentationMode';
|
5
4
|
import { FilterNumberVariation } from './enum/filterNumberVariation';
|
5
|
+
import { EPresentationMode } from './enum/presentationMode';
|
6
6
|
export class SnkFilterPeriod {
|
7
7
|
constructor() {
|
8
8
|
this._startIntervalLabel = 'Inicial';
|
@@ -12,11 +12,13 @@ export class SnkFilterPeriod {
|
|
12
12
|
this.getMessage = undefined;
|
13
13
|
this.value = undefined;
|
14
14
|
this.presentationMode = EPresentationMode.CHIP;
|
15
|
+
this.errorMessage = undefined;
|
15
16
|
}
|
16
17
|
/**
|
17
18
|
* Emitido quando acontece a alteração de valor do componente snk-filter-number
|
18
19
|
*/
|
19
20
|
ezChangeListener(evt) {
|
21
|
+
this.errorMessage = undefined;
|
20
22
|
if (this.getVariation() === FilterNumberVariation.INTERVAL) {
|
21
23
|
const start = this._startInterval.value;
|
22
24
|
const end = this._endInterval.value;
|
@@ -37,6 +39,35 @@ export class SnkFilterPeriod {
|
|
37
39
|
}
|
38
40
|
this._numberElement.setFocus();
|
39
41
|
}
|
42
|
+
/**
|
43
|
+
* Define o foco no componente snk-filter-number
|
44
|
+
*/
|
45
|
+
async setFocus() {
|
46
|
+
if (this.getVariation() === FilterNumberVariation.INTERVAL) {
|
47
|
+
await this._startInterval.setFocus();
|
48
|
+
return;
|
49
|
+
}
|
50
|
+
await this._numberElement.setFocus();
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* Limpa o valor do componente restaurando o valor original da configuração.
|
54
|
+
*/
|
55
|
+
async clearValue() {
|
56
|
+
var _a, _b;
|
57
|
+
this.value = this.config.value;
|
58
|
+
if (this.getVariation() === FilterNumberVariation.INTERVAL) {
|
59
|
+
const intervalValue = this.config.value;
|
60
|
+
if (this._startInterval) {
|
61
|
+
this._startInterval.value = (_a = intervalValue === null || intervalValue === void 0 ? void 0 : intervalValue.start) !== null && _a !== void 0 ? _a : null;
|
62
|
+
}
|
63
|
+
if (this._endInterval) {
|
64
|
+
this._endInterval.value = (_b = intervalValue === null || intervalValue === void 0 ? void 0 : intervalValue.end) !== null && _b !== void 0 ? _b : null;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
else if (this._numberElement) {
|
68
|
+
this._numberElement.value = this.config.value;
|
69
|
+
}
|
70
|
+
}
|
40
71
|
getIntervalValue(prop) {
|
41
72
|
const objValue = this.value ? this.value[prop] : null;
|
42
73
|
return objValue !== null && objValue !== void 0 ? objValue : null;
|
@@ -68,9 +99,9 @@ export class SnkFilterPeriod {
|
|
68
99
|
return undefined;
|
69
100
|
}
|
70
101
|
if (this.getVariation() === FilterNumberVariation.INTERVAL) {
|
71
|
-
return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-number-input", { id: `${this.config.id}_start`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding--
|
102
|
+
return (h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, h("div", { class: "ez-col ez-col--nowrap" }, h("ez-number-input", { id: `${this.config.id}_start`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding-right--medium' : '', label: this._startIntervalLabel, ref: ref => this._startInterval = ref, value: this.getIntervalValue("start"), enabled: this.config.enabled, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision, errorMessage: this.errorMessage }), this.buildLabel(), h("ez-number-input", { id: `${this.config.id}_end`, label: this._endIntervalLabel, ref: ref => this._endInterval = ref, value: this.getIntervalValue("end"), enabled: this.config.enabled, precision: (_b = this.config.props) === null || _b === void 0 ? void 0 : _b.precision, errorMessage: this.errorMessage }))));
|
72
103
|
}
|
73
|
-
return (h("ez-number-input", { id: this.config.id, ref: ref => this._numberElement = ref,
|
104
|
+
return (h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, h("ez-number-input", { id: this.config.id, ref: ref => this._numberElement = ref, value: this.config.value, precision: (_c = this.config.props) === null || _c === void 0 ? void 0 : _c.precision, enabled: this.config.enabled, errorMessage: this.errorMessage })));
|
74
105
|
}
|
75
106
|
static get is() { return "snk-filter-number"; }
|
76
107
|
static get properties() {
|
@@ -153,6 +184,23 @@ export class SnkFilterPeriod {
|
|
153
184
|
"attribute": "presentation-mode",
|
154
185
|
"reflect": false,
|
155
186
|
"defaultValue": "EPresentationMode.CHIP"
|
187
|
+
},
|
188
|
+
"errorMessage": {
|
189
|
+
"type": "string",
|
190
|
+
"mutable": true,
|
191
|
+
"complexType": {
|
192
|
+
"original": "string",
|
193
|
+
"resolved": "string",
|
194
|
+
"references": {}
|
195
|
+
},
|
196
|
+
"required": false,
|
197
|
+
"optional": false,
|
198
|
+
"docs": {
|
199
|
+
"tags": [],
|
200
|
+
"text": "Usado para exibir mensagens de erro."
|
201
|
+
},
|
202
|
+
"attribute": "error-message",
|
203
|
+
"reflect": true
|
156
204
|
}
|
157
205
|
};
|
158
206
|
}
|
@@ -195,6 +243,38 @@ export class SnkFilterPeriod {
|
|
195
243
|
"text": "Exibe o componente snk-filter-number",
|
196
244
|
"tags": []
|
197
245
|
}
|
246
|
+
},
|
247
|
+
"setFocus": {
|
248
|
+
"complexType": {
|
249
|
+
"signature": "() => Promise<void>",
|
250
|
+
"parameters": [],
|
251
|
+
"references": {
|
252
|
+
"Promise": {
|
253
|
+
"location": "global"
|
254
|
+
}
|
255
|
+
},
|
256
|
+
"return": "Promise<void>"
|
257
|
+
},
|
258
|
+
"docs": {
|
259
|
+
"text": "Define o foco no componente snk-filter-number",
|
260
|
+
"tags": []
|
261
|
+
}
|
262
|
+
},
|
263
|
+
"clearValue": {
|
264
|
+
"complexType": {
|
265
|
+
"signature": "() => Promise<void>",
|
266
|
+
"parameters": [],
|
267
|
+
"references": {
|
268
|
+
"Promise": {
|
269
|
+
"location": "global"
|
270
|
+
}
|
271
|
+
},
|
272
|
+
"return": "Promise<void>"
|
273
|
+
},
|
274
|
+
"docs": {
|
275
|
+
"text": "Limpa o valor do componente restaurando o valor original da configura\u00E7\u00E3o.",
|
276
|
+
"tags": []
|
277
|
+
}
|
198
278
|
}
|
199
279
|
};
|
200
280
|
}
|