@sankhyalabs/sankhyablocks 2.4.6 → 2.4.7

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.
Files changed (35) hide show
  1. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  2. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  3. package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
  4. package/dist/cjs/snk-filter-period.cjs.entry.js +1 -1
  5. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  6. package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
  7. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +1 -1
  8. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +1 -1
  9. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +1 -1
  10. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +1 -1
  11. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +1 -1
  12. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
  13. package/dist/components/snk-filter-binary-select.js +1 -1
  14. package/dist/components/snk-filter-multi-select.js +1 -1
  15. package/dist/components/snk-filter-number.js +1 -1
  16. package/dist/components/snk-filter-period.js +1 -1
  17. package/dist/components/snk-filter-search.js +1 -1
  18. package/dist/components/snk-filter-text.js +1 -1
  19. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  20. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  21. package/dist/esm/snk-filter-number.entry.js +1 -1
  22. package/dist/esm/snk-filter-period.entry.js +1 -1
  23. package/dist/esm/snk-filter-search.entry.js +1 -1
  24. package/dist/esm/snk-filter-text.entry.js +1 -1
  25. package/dist/sankhyablocks/p-9593c937.entry.js +1 -0
  26. package/dist/sankhyablocks/p-b0a0222f.entry.js +1 -0
  27. package/dist/sankhyablocks/{p-da0a0b8c.entry.js → p-c17be74f.entry.js} +1 -1
  28. package/dist/sankhyablocks/{p-b5799889.entry.js → p-db111acd.entry.js} +1 -1
  29. package/dist/sankhyablocks/p-eff899b0.entry.js +1 -0
  30. package/dist/sankhyablocks/{p-5fc34bc1.entry.js → p-fd3b562d.entry.js} +1 -1
  31. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  32. package/package.json +1 -1
  33. package/dist/sankhyablocks/p-4f9aa0b0.entry.js +0 -1
  34. package/dist/sankhyablocks/p-63229ecb.entry.js +0 -1
  35. package/dist/sankhyablocks/p-8fca7910.entry.js +0 -1
@@ -55,7 +55,7 @@ const SnkFilterBinarySelect = class {
55
55
  return undefined;
56
56
  }
57
57
  const [optOne, optTwo] = this.config.props.options;
58
- return (index.h(index.Host, null, index.h("ez-check", { label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), index.h("ez-check", { label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
58
+ return (index.h(index.Host, null, index.h("ez-check", { id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), index.h("ez-check", { id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
59
59
  }
60
60
  get _element() { return index.getElement(this); }
61
61
  };
@@ -31,7 +31,7 @@ const SnkFilterMultiSelect = class {
31
31
  if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.MULTI_SELECT) {
32
32
  return undefined;
33
33
  }
34
- return (index.h("ez-combo-box", { ref: ref => this._comboElement = ref, label: this.config.label, value: this.config.value, options: this.config.props.options }));
34
+ return (index.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 }));
35
35
  }
36
36
  get _element() { return index.getElement(this); }
37
37
  };
@@ -32,7 +32,7 @@ const SnkFilterPeriod = class {
32
32
  if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.NUMBER) {
33
33
  return undefined;
34
34
  }
35
- return (index.h("ez-number-input", { ref: ref => this._numberElement = ref, label: this.config.label, value: this.config.value, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision }));
35
+ return (index.h("ez-number-input", { id: this.config.id, ref: ref => this._numberElement = ref, label: this.config.label, value: this.config.value, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision }));
36
36
  }
37
37
  get _element() { return index.getElement(this); }
38
38
  };
@@ -45,7 +45,7 @@ const SnkFilterPeriod = class {
45
45
  if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.PERIOD) {
46
46
  return undefined;
47
47
  }
48
- return (index.h("div", { class: "ez-col ez-col--nowrap" }, index.h("ez-date-input", { label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), index.h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), index.h("ez-date-input", { label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
48
+ return (index.h("div", { class: "ez-col ez-col--nowrap" }, index.h("ez-date-input", { id: `${this.config.id}_start`, label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), index.h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), index.h("ez-date-input", { id: `${this.config.id}_end`, label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
49
49
  }
50
50
  get _element() { return index.getElement(this); }
51
51
  };
@@ -42,7 +42,7 @@ const SnkFilterSearch = class {
42
42
  if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.SEARCH) {
43
43
  return undefined;
44
44
  }
45
- return (index.h("ez-search", { suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
45
+ return (index.h("ez-search", { id: this.config.id, suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
46
46
  }
47
47
  get _element() { return index.getElement(this); }
48
48
  };
@@ -24,7 +24,7 @@ const SnkFilterText = class {
24
24
  if (!this.config) {
25
25
  return undefined;
26
26
  }
27
- return (index.h("ez-text-input", { ref: ref => this._textInputElement = ref, label: this.config.label, value: this.config.value }));
27
+ return (index.h("ez-text-input", { id: this.config.id, ref: ref => this._textInputElement = ref, label: this.config.label, value: this.config.value }));
28
28
  }
29
29
  get _element() { return index.getElement(this); }
30
30
  };
@@ -47,7 +47,7 @@ export class SnkFilterBinarySelect {
47
47
  return undefined;
48
48
  }
49
49
  const [optOne, optTwo] = this.config.props.options;
50
- return (h(Host, null, h("ez-check", { label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
50
+ return (h(Host, null, h("ez-check", { id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
51
51
  }
52
52
  static get is() { return "snk-filter-binary-select"; }
53
53
  static get properties() {
@@ -23,7 +23,7 @@ export class SnkFilterMultiSelect {
23
23
  if (!this.config || this.config.type !== FilterItemType.MULTI_SELECT) {
24
24
  return undefined;
25
25
  }
26
- return (h("ez-combo-box", { ref: ref => this._comboElement = ref, label: this.config.label, value: this.config.value, options: this.config.props.options }));
26
+ 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 }));
27
27
  }
28
28
  static get is() { return "snk-filter-multi-select"; }
29
29
  static get properties() {
@@ -24,7 +24,7 @@ export class SnkFilterPeriod {
24
24
  if (!this.config || this.config.type !== FilterItemType.NUMBER) {
25
25
  return undefined;
26
26
  }
27
- return (h("ez-number-input", { ref: ref => this._numberElement = ref, label: this.config.label, value: this.config.value, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision }));
27
+ return (h("ez-number-input", { id: this.config.id, ref: ref => this._numberElement = ref, label: this.config.label, value: this.config.value, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision }));
28
28
  }
29
29
  static get is() { return "snk-filter-number"; }
30
30
  static get properties() {
@@ -37,7 +37,7 @@ export class SnkFilterPeriod {
37
37
  if (!this.config || this.config.type !== FilterItemType.PERIOD) {
38
38
  return undefined;
39
39
  }
40
- return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), h("ez-date-input", { label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
40
+ return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { id: `${this.config.id}_start`, label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), h("ez-date-input", { id: `${this.config.id}_end`, label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
41
41
  }
42
42
  static get is() { return "snk-filter-period"; }
43
43
  static get properties() {
@@ -34,7 +34,7 @@ export class SnkFilterSearch {
34
34
  if (!this.config || this.config.type !== FilterItemType.SEARCH) {
35
35
  return undefined;
36
36
  }
37
- return (h("ez-search", { suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
37
+ return (h("ez-search", { id: this.config.id, suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
38
38
  }
39
39
  static get is() { return "snk-filter-search"; }
40
40
  static get properties() {
@@ -16,7 +16,7 @@ export class SnkFilterText {
16
16
  if (!this.config) {
17
17
  return undefined;
18
18
  }
19
- return (h("ez-text-input", { ref: ref => this._textInputElement = ref, label: this.config.label, value: this.config.value }));
19
+ return (h("ez-text-input", { id: this.config.id, ref: ref => this._textInputElement = ref, label: this.config.label, value: this.config.value }));
20
20
  }
21
21
  static get is() { return "snk-filter-text"; }
22
22
  static get properties() {
@@ -52,7 +52,7 @@ const SnkFilterBinarySelect$1 = /*@__PURE__*/ proxyCustomElement(class extends H
52
52
  return undefined;
53
53
  }
54
54
  const [optOne, optTwo] = this.config.props.options;
55
- return (h(Host, null, h("ez-check", { label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
55
+ return (h(Host, null, h("ez-check", { id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
56
56
  }
57
57
  get _element() { return this; }
58
58
  }, [0, "snk-filter-binary-select", {
@@ -28,7 +28,7 @@ const SnkFilterMultiSelect$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
28
28
  if (!this.config || this.config.type !== FilterItemType.MULTI_SELECT) {
29
29
  return undefined;
30
30
  }
31
- return (h("ez-combo-box", { ref: ref => this._comboElement = ref, label: this.config.label, value: this.config.value, options: this.config.props.options }));
31
+ 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 }));
32
32
  }
33
33
  get _element() { return this; }
34
34
  }, [0, "snk-filter-multi-select", {
@@ -29,7 +29,7 @@ const SnkFilterPeriod = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
29
29
  if (!this.config || this.config.type !== FilterItemType.NUMBER) {
30
30
  return undefined;
31
31
  }
32
- return (h("ez-number-input", { ref: ref => this._numberElement = ref, label: this.config.label, value: this.config.value, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision }));
32
+ return (h("ez-number-input", { id: this.config.id, ref: ref => this._numberElement = ref, label: this.config.label, value: this.config.value, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision }));
33
33
  }
34
34
  get _element() { return this; }
35
35
  }, [0, "snk-filter-number", {
@@ -42,7 +42,7 @@ const SnkFilterPeriod$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
42
42
  if (!this.config || this.config.type !== FilterItemType.PERIOD) {
43
43
  return undefined;
44
44
  }
45
- return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), h("ez-date-input", { label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
45
+ return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { id: `${this.config.id}_start`, label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), h("ez-date-input", { id: `${this.config.id}_end`, label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
46
46
  }
47
47
  get _element() { return this; }
48
48
  }, [0, "snk-filter-period", {
@@ -39,7 +39,7 @@ const SnkFilterSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
39
39
  if (!this.config || this.config.type !== FilterItemType.SEARCH) {
40
40
  return undefined;
41
41
  }
42
- return (h("ez-search", { suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
42
+ return (h("ez-search", { id: this.config.id, suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
43
43
  }
44
44
  get _element() { return this; }
45
45
  }, [0, "snk-filter-search", {
@@ -21,7 +21,7 @@ const SnkFilterText$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
21
21
  if (!this.config) {
22
22
  return undefined;
23
23
  }
24
- return (h("ez-text-input", { ref: ref => this._textInputElement = ref, label: this.config.label, value: this.config.value }));
24
+ return (h("ez-text-input", { id: this.config.id, ref: ref => this._textInputElement = ref, label: this.config.label, value: this.config.value }));
25
25
  }
26
26
  get _element() { return this; }
27
27
  }, [0, "snk-filter-text", {
@@ -51,7 +51,7 @@ const SnkFilterBinarySelect = class {
51
51
  return undefined;
52
52
  }
53
53
  const [optOne, optTwo] = this.config.props.options;
54
- return (h(Host, null, h("ez-check", { label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
54
+ return (h(Host, null, h("ez-check", { id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
55
55
  }
56
56
  get _element() { return getElement(this); }
57
57
  };
@@ -27,7 +27,7 @@ const SnkFilterMultiSelect = class {
27
27
  if (!this.config || this.config.type !== FilterItemType.MULTI_SELECT) {
28
28
  return undefined;
29
29
  }
30
- return (h("ez-combo-box", { ref: ref => this._comboElement = ref, label: this.config.label, value: this.config.value, options: this.config.props.options }));
30
+ 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 }));
31
31
  }
32
32
  get _element() { return getElement(this); }
33
33
  };
@@ -28,7 +28,7 @@ const SnkFilterPeriod = class {
28
28
  if (!this.config || this.config.type !== FilterItemType.NUMBER) {
29
29
  return undefined;
30
30
  }
31
- return (h("ez-number-input", { ref: ref => this._numberElement = ref, label: this.config.label, value: this.config.value, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision }));
31
+ return (h("ez-number-input", { id: this.config.id, ref: ref => this._numberElement = ref, label: this.config.label, value: this.config.value, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision }));
32
32
  }
33
33
  get _element() { return getElement(this); }
34
34
  };
@@ -41,7 +41,7 @@ const SnkFilterPeriod = class {
41
41
  if (!this.config || this.config.type !== FilterItemType.PERIOD) {
42
42
  return undefined;
43
43
  }
44
- return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), h("ez-date-input", { label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
44
+ return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { id: `${this.config.id}_start`, label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), h("ez-date-input", { id: `${this.config.id}_end`, label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
45
45
  }
46
46
  get _element() { return getElement(this); }
47
47
  };
@@ -38,7 +38,7 @@ const SnkFilterSearch = class {
38
38
  if (!this.config || this.config.type !== FilterItemType.SEARCH) {
39
39
  return undefined;
40
40
  }
41
- return (h("ez-search", { suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
41
+ return (h("ez-search", { id: this.config.id, suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
42
42
  }
43
43
  get _element() { return getElement(this); }
44
44
  };
@@ -20,7 +20,7 @@ const SnkFilterText = class {
20
20
  if (!this.config) {
21
21
  return undefined;
22
22
  }
23
- return (h("ez-text-input", { ref: ref => this._textInputElement = ref, label: this.config.label, value: this.config.value }));
23
+ return (h("ez-text-input", { id: this.config.id, ref: ref => this._textInputElement = ref, label: this.config.label, value: this.config.value }));
24
24
  }
25
25
  get _element() { return getElement(this); }
26
26
  };
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as e,g as i}from"./p-9ba3df4c.js";import{ElementIDUtils as h}from"@sankhyalabs/core";import{F as r}from"./p-9dd2b8cb.js";const n=class{constructor(s){t(this,s)}isSelected(t){return null==this.value||this.value===t}ezChangeListener(t){t.detail||this.assertCheckedOption(t.target),this.updateValue()}componentDidLoad(){this._element&&h.addIDInfo(this._element,"filterContentEditor")}assertCheckedOption(t){t===this._checkOne?this._checkTwo.value=!0:this._checkOne.value=!0}updateValue(){if(this._checkOne.value&&this._checkTwo.value)this.value=void 0;else{const[t,s]=this.config.props.options;this.value=this._checkOne.value?t.name:s.name}}async show(){this._checkOne.setFocus()}render(){if(!this.config||this.config.type!==r.BINARY_SELECT)return;const[t,i]=this.config.props.options;return s(e,null,s("ez-check",{id:`${this.config.id}_${t.name||"option1"}`,label:t.label,class:"sc-snk-filter-bar editor__ez-check",ref:t=>this._checkOne=t,value:this.isSelected(t.name)}),s("ez-check",{id:`${this.config.id}_${i.name||"option2"}`,label:i.label,class:"sc-snk-filter-bar editor__ez-check",ref:t=>this._checkTwo=t,value:this.isSelected(i.name)}))}get _element(){return i(this)}};export{n as snk_filter_binary_select}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,g as s}from"./p-9ba3df4c.js";import{ElementIDUtils as i}from"@sankhyalabs/core";const r=class{constructor(e){t(this,e)}ezChangeListener(t){this.value=t.detail}componentDidLoad(){this._element&&i.addIDInfo(this._element,"filterContentEditor")}render(){if(this.config)return e("ez-text-input",{id:this.config.id,ref:t=>this._textInputElement=t,label:this.config.label,value:this.config.value})}get _element(){return s(this)}};export{r as snk_filter_text}
@@ -1 +1 @@
1
- import{r as t,h as e,g as s}from"./p-9ba3df4c.js";import{ElementIDUtils as i}from"@sankhyalabs/core";import{F as r}from"./p-9dd2b8cb.js";const n=class{constructor(e){t(this,e)}ezChangeListener(){const t=this._startDate.value,e=this._endDate.value;this.value=t||e?{start:t,end:e}:void 0}componentDidLoad(){this._element&&i.addIDInfo(this._element,"filterContentEditor")}getDate(t){const e=this.value?this.value[t]:null;if(e instanceof Date)return e;if("string"==typeof e){let t=new Date(e);return t.setMinutes(t.getMinutes()+t.getTimezoneOffset()),t}return null}async show(){this._startDate.setFocus()}render(){if(this.config&&this.config.type===r.PERIOD)return e("div",{class:"ez-col ez-col--nowrap"},e("ez-date-input",{label:this.config.label,ref:t=>this._startDate=t,value:this.getDate("start")}),e("label",{class:"ez-text ez-text--medium ez-text--primary ez-margin--medium"},"até"),e("ez-date-input",{label:this.config.label,ref:t=>this._endDate=t,value:this.getDate("end")}))}get _element(){return s(this)}};export{n as snk_filter_period}
1
+ import{r as t,h as e,g as s}from"./p-9ba3df4c.js";import{ElementIDUtils as i}from"@sankhyalabs/core";import{F as r}from"./p-9dd2b8cb.js";const n=class{constructor(e){t(this,e)}ezChangeListener(){const t=this._startDate.value,e=this._endDate.value;this.value=t||e?{start:t,end:e}:void 0}componentDidLoad(){this._element&&i.addIDInfo(this._element,"filterContentEditor")}getDate(t){const e=this.value?this.value[t]:null;if(e instanceof Date)return e;if("string"==typeof e){let t=new Date(e);return t.setMinutes(t.getMinutes()+t.getTimezoneOffset()),t}return null}async show(){this._startDate.setFocus()}render(){if(this.config&&this.config.type===r.PERIOD)return e("div",{class:"ez-col ez-col--nowrap"},e("ez-date-input",{id:`${this.config.id}_start`,label:this.config.label,ref:t=>this._startDate=t,value:this.getDate("start")}),e("label",{class:"ez-text ez-text--medium ez-text--primary ez-margin--medium"},"até"),e("ez-date-input",{id:`${this.config.id}_end`,label:this.config.label,ref:t=>this._endDate=t,value:this.getDate("end")}))}get _element(){return s(this)}};export{n as snk_filter_period}
@@ -1 +1 @@
1
- import{r as t,h as s,g as e}from"./p-9ba3df4c.js";import{ElementIDUtils as r,ApplicationContext as i}from"@sankhyalabs/core";import{F as o}from"./p-9dd2b8cb.js";const n=class{constructor(s){t(this,s)}ezChangeListener(t){this.value=this._searchInput.value}componentDidLoad(){this._element&&r.addIDInfo(this._element,"filterContentEditor")}doSearch(t,s){const e=i.getContextValue("__SNK__APPLICATION__");return new Promise(((r,i)=>{e.executePreparedSearch(t,s,this.config.props.searchContext).then((t=>{r(t)})).catch((t=>{i(t)}))}))}async show(){this._searchInput.setFocus()}render(){if(this.config&&this.config.type===o.SEARCH)return s("ez-search",{suppressEmptyOption:!0,value:this.config.value,label:this.config.label,ref:t=>this._searchInput=t,optionLoader:({mode:t,argument:s})=>this.doSearch(t,s)})}get _element(){return e(this)}};export{n as snk_filter_search}
1
+ import{r as t,h as s,g as e}from"./p-9ba3df4c.js";import{ElementIDUtils as r,ApplicationContext as i}from"@sankhyalabs/core";import{F as o}from"./p-9dd2b8cb.js";const h=class{constructor(s){t(this,s)}ezChangeListener(t){this.value=this._searchInput.value}componentDidLoad(){this._element&&r.addIDInfo(this._element,"filterContentEditor")}doSearch(t,s){const e=i.getContextValue("__SNK__APPLICATION__");return new Promise(((r,i)=>{e.executePreparedSearch(t,s,this.config.props.searchContext).then((t=>{r(t)})).catch((t=>{i(t)}))}))}async show(){this._searchInput.setFocus()}render(){if(this.config&&this.config.type===o.SEARCH)return s("ez-search",{id:this.config.id,suppressEmptyOption:!0,value:this.config.value,label:this.config.label,ref:t=>this._searchInput=t,optionLoader:({mode:t,argument:s})=>this.doSearch(t,s)})}get _element(){return e(this)}};export{h as snk_filter_search}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,g as i}from"./p-9ba3df4c.js";import{ElementIDUtils as e}from"@sankhyalabs/core";import{F as o}from"./p-9dd2b8cb.js";const r=class{constructor(s){t(this,s)}ezChangeListener(t){this.value=t.detail.value}async show(){this._comboElement.setFocus()}componentDidLoad(){this._element&&e.addIDInfo(this._element,"filterContentEditor")}render(){if(this.config&&this.config.type===o.MULTI_SELECT)return s("ez-combo-box",{id:this.config.id,ref:t=>this._comboElement=t,label:this.config.label,value:this.config.value,options:this.config.props.options})}get _element(){return i(this)}};export{r as snk_filter_multi_select}
@@ -1 +1 @@
1
- import{r as t,h as s,g as i}from"./p-9ba3df4c.js";import{ElementIDUtils as r}from"@sankhyalabs/core";import{F as e}from"./p-9dd2b8cb.js";const n=class{constructor(s){t(this,s)}ezChangeListener(t){this.value=t.detail}async show(){this._numberElement.setFocus()}componentDidLoad(){this._element&&r.addIDInfo(this._element,"filterContentEditor")}render(){var t;if(this.config&&this.config.type===e.NUMBER)return s("ez-number-input",{ref:t=>this._numberElement=t,label:this.config.label,value:this.config.value,precision:null===(t=this.config.props)||void 0===t?void 0:t.precision})}get _element(){return i(this)}};export{n as snk_filter_number}
1
+ import{r as t,h as s,g as i}from"./p-9ba3df4c.js";import{ElementIDUtils as r}from"@sankhyalabs/core";import{F as e}from"./p-9dd2b8cb.js";const n=class{constructor(s){t(this,s)}ezChangeListener(t){this.value=t.detail}async show(){this._numberElement.setFocus()}componentDidLoad(){this._element&&r.addIDInfo(this._element,"filterContentEditor")}render(){var t;if(this.config&&this.config.type===e.NUMBER)return s("ez-number-input",{id:this.config.id,ref:t=>this._numberElement=t,label:this.config.label,value:this.config.value,precision:null===(t=this.config.props)||void 0===t?void 0:t.precision})}get _element(){return i(this)}};export{n as snk_filter_number}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-9ba3df4c.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-44ce5b90",[[1,"teste-pesquisa"]]],["p-eb94df0b",[[2,"snk-data-unit",{dataState:[1040],dataUnitName:[1,"data-unit-name"],entityName:[1,"entity-name"],pageSize:[2,"page-size"],dataUnit:[1040],beforeSave:[16],afterSave:[16],getDataUnit:[64]}]]],["p-63229ecb",[[0,"snk-filter-binary-select",{value:[1544],config:[16],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-4f9aa0b0",[[0,"snk-filter-multi-select",{value:[1544],config:[16],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-5fc34bc1",[[0,"snk-filter-number",{config:[16],value:[2],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-da0a0b8c",[[0,"snk-filter-period",{config:[16],value:[8],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-f50c6ef6",[[0,"snk-filter-personalized",{config:[16],value:[1040],fix:[16],unfix:[16],show:[64]}]]],["p-b5799889",[[0,"snk-filter-search",{config:[16],value:[16],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-8fca7910",[[0,"snk-filter-text",{config:[16],value:[1]},[[0,"ezChange","ezChangeListener"]]]]],["p-b05638d2",[[2,"snk-pesquisa",{searchLoader:[16],selectItem:[16],argument:[1025],_itemList:[32],_startLoading:[32]}]]],["p-570cc474",[[2,"snk-config-options",{fieldConfig:[16],idConfig:[513,"id-config"],dataUnit:[16],_defaultType:[32]}]]],["p-c30d0966",[[6,"snk-tab-config",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1],_processedTabs:[32],_activeEditText:[32],_activeEditTextIndex:[32],_actionsHide:[32],_actionsShow:[32]}]]],["p-cd486089",[[0,"snk-filter-detail",{config:[1040],getMessage:[16],show:[64]}]]],["p-60038252",[[6,"snk-grid",{configName:[1,"config-name"],actionsList:[16],taskbarManager:[16],statusResolver:[16],multipleSelection:[4,"multiple-selection"],_dataUnit:[32],_dataState:[32],_gridConfig:[32],_popUpGridConfig:[32],showConfig:[64],hideConfig:[64],setConfig:[64]}],[2,"snk-configurator",{configName:[1,"config-name"],viewMode:[1,"view-mode"],_opened:[32],_permissions:[32],open:[64],close:[64]}],[2,"snk-field-config",{isConfigActive:[16],fieldConfig:[16],modeInsertion:[516,"mode-insertion"],dataUnit:[16]}]]],["p-9010ac54",[[2,"snk-form-config",{dataUnit:[16],formConfig:[16],configName:[513,"config-name"],_formConfigOptions:[32],_fieldConfigSelected:[32],_layoutFormConfig:[32],_fieldsAvailable:[32],_formConfig:[32],_formConfigChanged:[32],_optionFormConfigSelected:[32],_optionFormConfigChanged:[32],_tempGroups:[32]}]]],["p-1bc8f32f",[[2,"snk-filter-bar",{dataUnit:[1040],configName:[1,"config-name"],filterConfig:[1040],allowDefault:[32],scrollerLocked:[32]},[[0,"filterChange","filterChangeListener"]]],[2,"snk-grid-config",{selectedIndex:[1026,"selected-index"],columns:[1040],config:[1040],saveConfig:[64]}],[0,"snk-filter-item",{config:[1040],getMessage:[16],detailIsVisible:[32],showUp:[64],hideDetail:[64]},[[2,"click","clickListener"],[2,"mousedown","mouseDownListener"],[0,"filterChange","filterChangeListener"]]],[4,"snk-filter-list",{label:[1],iconName:[1,"icon-name"],items:[16],getMessage:[16],emptyText:[1,"empty-text"],findFilterText:[1,"find-filter-text"],buttonClass:[1,"button-class"],_filterArgument:[32],_showAll:[32],hideDetail:[64]},[[2,"keydown","keyDownHandler"]]],[0,"snk-filter-modal",{getMessage:[16],items:[1040],modalTitle:[1,"modal-title"],modalSubTitle:[1,"modal-sub-title"],cancelButtonLabel:[1,"cancel-button-label"],okButtonLabel:[1,"ok-button-label"],infoText:[1,"info-text"],useSearch:[4,"use-search"],processModalAction:[16],_filterArgument:[32]}],[1,"snk-select-box",{selectedOption:[1,"selected-option"]}],[6,"snk-taskbar",{configName:[1,"config-name"],buttons:[1],customButtons:[16],actionsList:[16],primaryButton:[1,"primary-button"],disabledButtons:[16],dataUnit:[16],_permissions:[32]}]]],["p-71997e4c",[[2,"snk-form",{configName:[1,"config-name"],recordsValidator:[16],actionsList:[16],taskbarManager:[16],_dataUnit:[32],_dataState:[32],_editionFormConfig:[32],_insertionFormConfig:[32],_showFormConfig:[32],showConfig:[64],hideConfig:[64]}]]],["p-e6e0efe7",[[6,"snk-crud",{configName:[1025,"config-name"],actionsList:[16],taskbarManager:[16],recordsValidator:[16],statusResolver:[16],multipleSelection:[4,"multiple-selection"],_dataUnit:[32],_dataState:[32],_viewMode:[32],goToView:[64]}]]],["p-a72a0a5d",[[2,"snk-application",{messagesBuilder:[1040],configName:[1,"config-name"],isUserSup:[64],hasAccess:[64],getAllAccess:[64],getStringParam:[64],getIntParam:[64],getFloatParam:[64],getBooleanParam:[64],getDateParam:[64],showPopUp:[64],showModal:[64],closeModal:[64],closePopUp:[64],temOpcional:[64],getConfig:[64],saveConfig:[64],getAttributeFromHTMLWrapper:[64],openApp:[64],createDataunit:[64],getDataUnit:[64],getResourceID:[64],getUserID:[64],alert:[64],error:[64],success:[64],message:[64],confirm:[64],info:[64],loadFormConfig:[64],loadGridConfig:[64],fetchUserAvailableConfigs:[64],fetchLegacyConfig:[64],fetchDefaultConfig:[64],loadTotals:[64],saveGridConfig:[64],getFilterBarConfig:[64],saveFilterBarConfig:[64],saveFormConfig:[64],getDefaultValues:[64],getDefaultValue:[64],executeSearch:[64],executePreparedSearch:[64],isDebugMode:[64]}]]]],e)));
1
+ import{p as e,b as t}from"./p-9ba3df4c.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-44ce5b90",[[1,"teste-pesquisa"]]],["p-eb94df0b",[[2,"snk-data-unit",{dataState:[1040],dataUnitName:[1,"data-unit-name"],entityName:[1,"entity-name"],pageSize:[2,"page-size"],dataUnit:[1040],beforeSave:[16],afterSave:[16],getDataUnit:[64]}]]],["p-9593c937",[[0,"snk-filter-binary-select",{value:[1544],config:[16],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-eff899b0",[[0,"snk-filter-multi-select",{value:[1544],config:[16],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-fd3b562d",[[0,"snk-filter-number",{config:[16],value:[2],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-c17be74f",[[0,"snk-filter-period",{config:[16],value:[8],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-f50c6ef6",[[0,"snk-filter-personalized",{config:[16],value:[1040],fix:[16],unfix:[16],show:[64]}]]],["p-db111acd",[[0,"snk-filter-search",{config:[16],value:[16],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-b0a0222f",[[0,"snk-filter-text",{config:[16],value:[1]},[[0,"ezChange","ezChangeListener"]]]]],["p-b05638d2",[[2,"snk-pesquisa",{searchLoader:[16],selectItem:[16],argument:[1025],_itemList:[32],_startLoading:[32]}]]],["p-570cc474",[[2,"snk-config-options",{fieldConfig:[16],idConfig:[513,"id-config"],dataUnit:[16],_defaultType:[32]}]]],["p-c30d0966",[[6,"snk-tab-config",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1],_processedTabs:[32],_activeEditText:[32],_activeEditTextIndex:[32],_actionsHide:[32],_actionsShow:[32]}]]],["p-cd486089",[[0,"snk-filter-detail",{config:[1040],getMessage:[16],show:[64]}]]],["p-60038252",[[6,"snk-grid",{configName:[1,"config-name"],actionsList:[16],taskbarManager:[16],statusResolver:[16],multipleSelection:[4,"multiple-selection"],_dataUnit:[32],_dataState:[32],_gridConfig:[32],_popUpGridConfig:[32],showConfig:[64],hideConfig:[64],setConfig:[64]}],[2,"snk-configurator",{configName:[1,"config-name"],viewMode:[1,"view-mode"],_opened:[32],_permissions:[32],open:[64],close:[64]}],[2,"snk-field-config",{isConfigActive:[16],fieldConfig:[16],modeInsertion:[516,"mode-insertion"],dataUnit:[16]}]]],["p-9010ac54",[[2,"snk-form-config",{dataUnit:[16],formConfig:[16],configName:[513,"config-name"],_formConfigOptions:[32],_fieldConfigSelected:[32],_layoutFormConfig:[32],_fieldsAvailable:[32],_formConfig:[32],_formConfigChanged:[32],_optionFormConfigSelected:[32],_optionFormConfigChanged:[32],_tempGroups:[32]}]]],["p-1bc8f32f",[[2,"snk-filter-bar",{dataUnit:[1040],configName:[1,"config-name"],filterConfig:[1040],allowDefault:[32],scrollerLocked:[32]},[[0,"filterChange","filterChangeListener"]]],[2,"snk-grid-config",{selectedIndex:[1026,"selected-index"],columns:[1040],config:[1040],saveConfig:[64]}],[0,"snk-filter-item",{config:[1040],getMessage:[16],detailIsVisible:[32],showUp:[64],hideDetail:[64]},[[2,"click","clickListener"],[2,"mousedown","mouseDownListener"],[0,"filterChange","filterChangeListener"]]],[4,"snk-filter-list",{label:[1],iconName:[1,"icon-name"],items:[16],getMessage:[16],emptyText:[1,"empty-text"],findFilterText:[1,"find-filter-text"],buttonClass:[1,"button-class"],_filterArgument:[32],_showAll:[32],hideDetail:[64]},[[2,"keydown","keyDownHandler"]]],[0,"snk-filter-modal",{getMessage:[16],items:[1040],modalTitle:[1,"modal-title"],modalSubTitle:[1,"modal-sub-title"],cancelButtonLabel:[1,"cancel-button-label"],okButtonLabel:[1,"ok-button-label"],infoText:[1,"info-text"],useSearch:[4,"use-search"],processModalAction:[16],_filterArgument:[32]}],[1,"snk-select-box",{selectedOption:[1,"selected-option"]}],[6,"snk-taskbar",{configName:[1,"config-name"],buttons:[1],customButtons:[16],actionsList:[16],primaryButton:[1,"primary-button"],disabledButtons:[16],dataUnit:[16],_permissions:[32]}]]],["p-71997e4c",[[2,"snk-form",{configName:[1,"config-name"],recordsValidator:[16],actionsList:[16],taskbarManager:[16],_dataUnit:[32],_dataState:[32],_editionFormConfig:[32],_insertionFormConfig:[32],_showFormConfig:[32],showConfig:[64],hideConfig:[64]}]]],["p-e6e0efe7",[[6,"snk-crud",{configName:[1025,"config-name"],actionsList:[16],taskbarManager:[16],recordsValidator:[16],statusResolver:[16],multipleSelection:[4,"multiple-selection"],_dataUnit:[32],_dataState:[32],_viewMode:[32],goToView:[64]}]]],["p-a72a0a5d",[[2,"snk-application",{messagesBuilder:[1040],configName:[1,"config-name"],isUserSup:[64],hasAccess:[64],getAllAccess:[64],getStringParam:[64],getIntParam:[64],getFloatParam:[64],getBooleanParam:[64],getDateParam:[64],showPopUp:[64],showModal:[64],closeModal:[64],closePopUp:[64],temOpcional:[64],getConfig:[64],saveConfig:[64],getAttributeFromHTMLWrapper:[64],openApp:[64],createDataunit:[64],getDataUnit:[64],getResourceID:[64],getUserID:[64],alert:[64],error:[64],success:[64],message:[64],confirm:[64],info:[64],loadFormConfig:[64],loadGridConfig:[64],fetchUserAvailableConfigs:[64],fetchLegacyConfig:[64],fetchDefaultConfig:[64],loadTotals:[64],saveGridConfig:[64],getFilterBarConfig:[64],saveFilterBarConfig:[64],saveFormConfig:[64],getDefaultValues:[64],getDefaultValue:[64],executeSearch:[64],executePreparedSearch:[64],isDebugMode:[64]}]]]],e)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/sankhyablocks",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import{r as t,h as s,g as e}from"./p-9ba3df4c.js";import{ElementIDUtils as i}from"@sankhyalabs/core";import{F as o}from"./p-9dd2b8cb.js";const r=class{constructor(s){t(this,s)}ezChangeListener(t){this.value=t.detail.value}async show(){this._comboElement.setFocus()}componentDidLoad(){this._element&&i.addIDInfo(this._element,"filterContentEditor")}render(){if(this.config&&this.config.type===o.MULTI_SELECT)return s("ez-combo-box",{ref:t=>this._comboElement=t,label:this.config.label,value:this.config.value,options:this.config.props.options})}get _element(){return e(this)}};export{r as snk_filter_multi_select}
@@ -1 +0,0 @@
1
- import{r as s,h as t,H as e,g as i}from"./p-9ba3df4c.js";import{ElementIDUtils as r}from"@sankhyalabs/core";import{F as h}from"./p-9dd2b8cb.js";const c=class{constructor(t){s(this,t)}isSelected(s){return null==this.value||this.value===s}ezChangeListener(s){s.detail||this.assertCheckedOption(s.target),this.updateValue()}componentDidLoad(){this._element&&r.addIDInfo(this._element,"filterContentEditor")}assertCheckedOption(s){s===this._checkOne?this._checkTwo.value=!0:this._checkOne.value=!0}updateValue(){if(this._checkOne.value&&this._checkTwo.value)this.value=void 0;else{const[s,t]=this.config.props.options;this.value=this._checkOne.value?s.name:t.name}}async show(){this._checkOne.setFocus()}render(){if(!this.config||this.config.type!==h.BINARY_SELECT)return;const[s,i]=this.config.props.options;return t(e,null,t("ez-check",{label:s.label,class:"sc-snk-filter-bar editor__ez-check",ref:s=>this._checkOne=s,value:this.isSelected(s.name)}),t("ez-check",{label:i.label,class:"sc-snk-filter-bar editor__ez-check",ref:s=>this._checkTwo=s,value:this.isSelected(i.name)}))}get _element(){return i(this)}};export{c as snk_filter_binary_select}
@@ -1 +0,0 @@
1
- import{r as t,h as e,g as s}from"./p-9ba3df4c.js";import{ElementIDUtils as r}from"@sankhyalabs/core";const i=class{constructor(e){t(this,e)}ezChangeListener(t){this.value=t.detail}componentDidLoad(){this._element&&r.addIDInfo(this._element,"filterContentEditor")}render(){if(this.config)return e("ez-text-input",{ref:t=>this._textInputElement=t,label:this.config.label,value:this.config.value})}get _element(){return s(this)}};export{i as snk_filter_text}