@sankhyalabs/sankhyablocks 1.4.0-beta.1 → 1.4.0-beta.3

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 (163) hide show
  1. package/dist/cjs/{SnkMessageBuilder-7717f1e4.js → SnkMessageBuilder-d8215915.js} +14 -119
  2. package/dist/cjs/{filter-item-type.enum-e2e1bc5b.js → filter-item-type.enum-3daf58d3.js} +2 -0
  3. package/dist/cjs/{index-b0b676c5.js → index-6fcf07f3.js} +159 -1515
  4. package/dist/cjs/loader.cjs.js +2 -18
  5. package/dist/cjs/sankhyablocks.cjs.js +4 -116
  6. package/dist/cjs/snk-application.cjs.entry.js +84 -230
  7. package/dist/cjs/snk-crud.cjs.entry.js +3 -3
  8. package/dist/cjs/snk-data-unit.cjs.entry.js +24 -32
  9. package/dist/cjs/snk-filter-bar_5.cjs.entry.js +902 -0
  10. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +2 -2
  11. package/dist/cjs/snk-filter-detail.cjs.entry.js +38 -3
  12. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +2 -2
  13. package/dist/cjs/snk-filter-number.cjs.entry.js +2 -2
  14. package/dist/cjs/snk-filter-period.cjs.entry.js +2 -2
  15. package/dist/cjs/snk-filter-personalized.cjs.entry.js +90 -0
  16. package/dist/cjs/snk-filter-search.cjs.entry.js +4 -4
  17. package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
  18. package/dist/cjs/{snk-form.cjs.entry.js → snk-form_2.cjs.entry.js} +119 -5
  19. package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
  20. package/dist/cjs/{taskbar-elements-283c737e.js → taskbar-elements-aedfeae6.js} +1 -1
  21. package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
  22. package/dist/collection/collection-manifest.json +2 -0
  23. package/dist/collection/components/snk-application/snk-application.js +54 -7
  24. package/dist/collection/components/snk-crud/snk-crud.js +2 -4
  25. package/dist/collection/components/snk-data-unit/snk-data-unit.js +0 -27
  26. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +100 -0
  27. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +161 -0
  28. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +2 -0
  29. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +36 -1
  30. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +32 -9
  31. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +196 -0
  32. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +22 -0
  33. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +238 -139
  34. package/dist/collection/components/snk-grid/snk-grid.js +2 -4
  35. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +18 -10
  36. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +14 -2
  37. package/dist/components/SnkMessageBuilder.js +15 -119
  38. package/dist/components/filter-item-type.enum.js +2 -0
  39. package/dist/components/index.d.ts +2 -0
  40. package/dist/components/index.js +2 -4
  41. package/dist/components/snk-application2.js +47 -191
  42. package/dist/components/snk-crud.js +16 -10
  43. package/dist/components/snk-data-unit.js +3 -12
  44. package/dist/components/snk-filter-bar2.js +342 -146
  45. package/dist/components/snk-filter-detail2.js +36 -1
  46. package/dist/components/snk-filter-item2.js +33 -10
  47. package/dist/components/snk-filter-list2.js +1 -1
  48. package/dist/components/snk-filter-modal.d.ts +11 -0
  49. package/dist/components/snk-filter-modal.js +6 -0
  50. package/dist/components/snk-filter-modal2.js +58 -0
  51. package/dist/components/snk-filter-personalized.d.ts +11 -0
  52. package/dist/components/snk-filter-personalized.js +108 -0
  53. package/dist/components/snk-filter-search.js +1 -1
  54. package/dist/components/snk-form2.js +1 -1
  55. package/dist/components/snk-grid2.js +16 -10
  56. package/dist/components/snk-pesquisa2.js +1 -1
  57. package/dist/components/snk-taskbar2.js +1 -1
  58. package/dist/components/teste-pesquisa.js +1 -1
  59. package/dist/{sankhyablocks/SnkMessageBuilder-a7da466b.js → esm/SnkMessageBuilder-35a20271.js} +15 -119
  60. package/dist/esm/{filter-item-type.enum-61fbf80a.js → filter-item-type.enum-a79b2fa8.js} +2 -0
  61. package/dist/{sankhyablocks/index-2b4d2d14.js → esm/index-81dda3cf.js} +160 -1508
  62. package/dist/esm/loader.js +2 -18
  63. package/dist/esm/sankhyablocks.js +4 -116
  64. package/dist/esm/snk-application.entry.js +46 -192
  65. package/dist/esm/snk-crud.entry.js +2 -2
  66. package/dist/esm/snk-data-unit.entry.js +4 -12
  67. package/dist/esm/snk-filter-bar_5.entry.js +894 -0
  68. package/dist/esm/snk-filter-binary-select.entry.js +2 -2
  69. package/dist/esm/snk-filter-detail.entry.js +38 -3
  70. package/dist/esm/snk-filter-multi-select.entry.js +2 -2
  71. package/dist/esm/snk-filter-number.entry.js +2 -2
  72. package/dist/esm/snk-filter-period.entry.js +2 -2
  73. package/dist/esm/snk-filter-personalized.entry.js +86 -0
  74. package/dist/esm/snk-filter-search.entry.js +3 -3
  75. package/dist/esm/snk-filter-text.entry.js +1 -1
  76. package/dist/esm/{snk-form.entry.js → snk-form_2.entry.js} +117 -4
  77. package/dist/esm/snk-pesquisa.entry.js +2 -2
  78. package/dist/{sankhyablocks/taskbar-elements-35d64ff9.js → esm/taskbar-elements-38eb5d51.js} +1 -1
  79. package/dist/esm/teste-pesquisa.entry.js +2 -2
  80. package/dist/sankhyablocks/index.esm.js +0 -1
  81. package/dist/sankhyablocks/p-0352c0e2.entry.js +1 -0
  82. package/dist/sankhyablocks/p-07ebda01.entry.js +1 -0
  83. package/dist/sankhyablocks/p-322c0df2.entry.js +1 -0
  84. package/dist/sankhyablocks/p-46caa101.entry.js +1 -0
  85. package/dist/sankhyablocks/p-473cedf9.entry.js +1 -0
  86. package/dist/sankhyablocks/p-586e2522.js +1 -0
  87. package/dist/sankhyablocks/p-86f15ffe.js +1 -0
  88. package/dist/sankhyablocks/p-8f3c5709.entry.js +1 -0
  89. package/dist/sankhyablocks/p-97009a2c.entry.js +1 -0
  90. package/dist/sankhyablocks/p-9be74b46.entry.js +74 -0
  91. package/dist/sankhyablocks/p-9dd2b8cb.js +1 -0
  92. package/dist/sankhyablocks/p-a8b59c61.entry.js +1 -0
  93. package/dist/sankhyablocks/p-aecf3e0a.entry.js +1 -0
  94. package/dist/sankhyablocks/p-c1c3b5d8.entry.js +1 -0
  95. package/dist/sankhyablocks/p-c78cb79a.entry.js +1 -0
  96. package/dist/sankhyablocks/p-c9eec639.entry.js +1 -0
  97. package/dist/sankhyablocks/p-dc482a42.entry.js +1 -0
  98. package/dist/sankhyablocks/p-fac2b6a9.js +2 -0
  99. package/dist/sankhyablocks/p-fb705f81.entry.js +1 -0
  100. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -129
  101. package/dist/types/components/snk-application/snk-application.d.ts +4 -1
  102. package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
  103. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +23 -0
  104. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +3 -1
  105. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +2 -0
  106. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +23 -0
  107. package/dist/types/components.d.ts +56 -8
  108. package/package.json +3 -3
  109. package/react/components.d.ts +19 -0
  110. package/react/components.js +19 -0
  111. package/react/components.js.map +1 -1
  112. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  113. package/dist/cjs/css-shim-b8158822.js +0 -6
  114. package/dist/cjs/dom-36862b77.js +0 -75
  115. package/dist/cjs/index-02201bc9.js +0 -2397
  116. package/dist/cjs/shadow-css-346c0795.js +0 -389
  117. package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -278
  118. package/dist/cjs/snk-filter-item.cjs.entry.js +0 -154
  119. package/dist/cjs/snk-filter-list.cjs.entry.js +0 -91
  120. package/dist/cjs/snk-grid.cjs.entry.js +0 -79
  121. package/dist/cjs/snk-taskbar.cjs.entry.js +0 -160
  122. package/dist/cjs/taskbar-processor-6bd0d35c.js +0 -47
  123. package/dist/components/index2.js +0 -2384
  124. package/dist/esm/SnkMessageBuilder-a7da466b.js +0 -303
  125. package/dist/esm/app-globals-0f993ce5.js +0 -3
  126. package/dist/esm/css-shim-b3f2ee8d.js +0 -4
  127. package/dist/esm/dom-665d6011.js +0 -73
  128. package/dist/esm/index-2b4d2d14.js +0 -3262
  129. package/dist/esm/index-f1d3e4da.js +0 -2384
  130. package/dist/esm/shadow-css-b18e99d7.js +0 -387
  131. package/dist/esm/snk-filter-bar.entry.js +0 -274
  132. package/dist/esm/snk-filter-item.entry.js +0 -150
  133. package/dist/esm/snk-filter-list.entry.js +0 -87
  134. package/dist/esm/snk-grid.entry.js +0 -75
  135. package/dist/esm/snk-taskbar.entry.js +0 -156
  136. package/dist/esm/taskbar-elements-35d64ff9.js +0 -90
  137. package/dist/esm/taskbar-processor-aa6772c9.js +0 -45
  138. package/dist/sankhyablocks/app-globals-0f993ce5.js +0 -3
  139. package/dist/sankhyablocks/css-shim-b3f2ee8d.js +0 -4
  140. package/dist/sankhyablocks/dom-665d6011.js +0 -73
  141. package/dist/sankhyablocks/filter-item-type.enum-61fbf80a.js +0 -12
  142. package/dist/sankhyablocks/index-f1d3e4da.js +0 -2384
  143. package/dist/sankhyablocks/shadow-css-b18e99d7.js +0 -387
  144. package/dist/sankhyablocks/snk-application.entry.js +0 -8148
  145. package/dist/sankhyablocks/snk-crud.entry.js +0 -66
  146. package/dist/sankhyablocks/snk-data-unit.entry.js +0 -276
  147. package/dist/sankhyablocks/snk-filter-bar.entry.js +0 -274
  148. package/dist/sankhyablocks/snk-filter-binary-select.entry.js +0 -43
  149. package/dist/sankhyablocks/snk-filter-detail.entry.js +0 -45
  150. package/dist/sankhyablocks/snk-filter-item.entry.js +0 -150
  151. package/dist/sankhyablocks/snk-filter-list.entry.js +0 -87
  152. package/dist/sankhyablocks/snk-filter-multi-select.entry.js +0 -19
  153. package/dist/sankhyablocks/snk-filter-number.entry.js +0 -20
  154. package/dist/sankhyablocks/snk-filter-period.entry.js +0 -33
  155. package/dist/sankhyablocks/snk-filter-search.entry.js +0 -40
  156. package/dist/sankhyablocks/snk-filter-text.entry.js +0 -18
  157. package/dist/sankhyablocks/snk-form.entry.js +0 -129
  158. package/dist/sankhyablocks/snk-grid.entry.js +0 -75
  159. package/dist/sankhyablocks/snk-pesquisa.entry.js +0 -311
  160. package/dist/sankhyablocks/snk-taskbar.entry.js +0 -156
  161. package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +0 -45
  162. package/dist/sankhyablocks/teste-pesquisa.entry.js +0 -33
  163. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +0 -51
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
6
- const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
5
+ const index = require('./index-6fcf07f3.js');
6
+ const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
7
7
 
8
8
  const SnkFilterBinarySelect = class {
9
9
  constructor(hostRef) {
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
6
- const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
5
+ const index = require('./index-6fcf07f3.js');
6
+ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
7
+ const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
7
8
 
8
9
  const SnkFilterDetail = class {
9
10
  constructor(hostRef) {
@@ -25,6 +26,8 @@ const SnkFilterDetail = class {
25
26
  return "snk-filter-search";
26
27
  case filterItemType_enum.FilterItemType.NUMBER:
27
28
  return "snk-filter-number";
29
+ case filterItemType_enum.FilterItemType.PERSONALIZED:
30
+ return "snk-filter-personalized";
28
31
  }
29
32
  return "snk-filter-text";
30
33
  }
@@ -40,9 +43,41 @@ const SnkFilterDetail = class {
40
43
  index.h("ez-icon", { title: this.getMessage(this.config.fixed ? "snkFilterBar.unpinFilter" : "snkFilterBar.pinFilter"), class: "ez-margin-left--small sc-snk-filter-bar snk-filter-item__editor-header-button", iconName: this.config.fixed ? "un-pin" : "push-pin", onClick: () => this.changeConfig(Object.assign(Object.assign({}, this.config), { fixed: !this.config.fixed })) })
41
44
  ]);
42
45
  }
46
+ apply() {
47
+ var _a;
48
+ let isValid = true;
49
+ const value = this._editor["value"];
50
+ /* WARNING: Temporário. Isso só está sendo feito até desconsiderar os parametros não informados para PersonalizedFilter*/
51
+ if (value != undefined && this.config.type === filterItemType_enum.FilterItemType.PERSONALIZED) {
52
+ const params = ((_a = this.config.props.personalizedFilter) === null || _a === void 0 ? void 0 : _a.parameters) || [];
53
+ if (params.length > 1) {
54
+ if (params.length > value.length) {
55
+ isValid = false;
56
+ }
57
+ else {
58
+ value.forEach(item => {
59
+ if (item == undefined) {
60
+ isValid = false;
61
+ }
62
+ });
63
+ }
64
+ }
65
+ if (!isValid) {
66
+ this.keepOpened = true;
67
+ utils.ApplicationUtils.alert("Filtro parcialmente preenchido", "Favor completar todas as informações do filtro.").then(() => setTimeout(() => this.keepOpened = false, 1));
68
+ }
69
+ }
70
+ /* WARNING: Temporário.*/
71
+ if (isValid) {
72
+ this.changeConfig(Object.assign(Object.assign({}, this.config), { value: value }));
73
+ }
74
+ }
75
+ clear() {
76
+ this.changeConfig(Object.assign(Object.assign({}, this.config), { value: undefined }));
77
+ }
43
78
  render() {
44
79
  const ContentEditor = this.getContentEditor();
45
- return (index.h(index.Host, null, index.h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, index.h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), index.h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config, fix: () => this.keepOpened = true, unfix: () => this.keepOpened = false }), index.h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), index.h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, index.h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.changeConfig(Object.assign(Object.assign({}, this.config), { value: undefined })) }), index.h("ez-button", { label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.changeConfig(Object.assign(Object.assign({}, this.config), { value: this._editor["value"] })), class: "ez-button--primary ez-padding-left--medium" }))));
80
+ return (index.h(index.Host, null, index.h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, index.h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), index.h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config, fix: () => this.keepOpened = true, unfix: () => this.keepOpened = false }), index.h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), index.h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, index.h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), index.h("ez-button", { label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
46
81
  }
47
82
  };
48
83
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
6
- const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
5
+ const index = require('./index-6fcf07f3.js');
6
+ const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
7
7
 
8
8
  const SnkFilterMultiSelect = class {
9
9
  constructor(hostRef) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
6
- const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
5
+ const index = require('./index-6fcf07f3.js');
6
+ const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
7
7
 
8
8
  const SnkFilterPeriod = class {
9
9
  constructor(hostRef) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
6
- const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
5
+ const index = require('./index-6fcf07f3.js');
6
+ const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
7
7
 
8
8
  const SnkFilterPeriod = class {
9
9
  constructor(hostRef) {
@@ -0,0 +1,90 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-6fcf07f3.js');
6
+ const core = require('@sankhyalabs/core');
7
+ const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
8
+ const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
9
+
10
+ const SnkFilterPersonalized = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ }
14
+ getValue(param, index) {
15
+ if (this.value && index >= 0 && index < this.value.length) {
16
+ const rawValue = this.value[index];
17
+ if (param.type === core.UserInterface.SEARCH) {
18
+ return rawValue;
19
+ }
20
+ return DataType.convertType(param.dataType, rawValue);
21
+ }
22
+ return undefined;
23
+ }
24
+ setValue(index, value) {
25
+ if (this.value == undefined) {
26
+ this.value = Array(index).fill(null);
27
+ }
28
+ else {
29
+ this.value = [...this.value];
30
+ }
31
+ this.value[index] = value;
32
+ if (this.value.filter(item => item != undefined).length == 0) {
33
+ this.value = null;
34
+ }
35
+ }
36
+ doSearch(mode, argument, param) {
37
+ const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
38
+ if (this.fix) {
39
+ this.fix();
40
+ }
41
+ return new Promise((resolve, reject) => {
42
+ application.executePreparedSearch(mode, argument, param.searchContext)
43
+ .then(result => {
44
+ resolve(result);
45
+ if (this.unfix) {
46
+ this.unfix();
47
+ }
48
+ }).catch(reason => {
49
+ reject(reason);
50
+ if (this.unfix) {
51
+ this.unfix();
52
+ }
53
+ });
54
+ });
55
+ }
56
+ getParamsInterface() {
57
+ var _a, _b, _c;
58
+ const params = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.personalizedFilter) === null || _c === void 0 ? void 0 : _c.parameters;
59
+ return params.map((param, index$1) => {
60
+ var _a;
61
+ switch (param.type) {
62
+ case core.UserInterface.SEARCH:
63
+ return index.h("ez-search", { suppressEmptyOption: true, value: this.getValue(param, index$1), onEzChange: evt => this.setValue(index$1, evt.detail), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
64
+ case core.UserInterface.SWITCH:
65
+ case core.UserInterface.CHECKBOX:
66
+ const mode = core.UserInterface.SWITCH === param.type ? "switch" : "regular";
67
+ return index.h("ez-check", { class: "ez-padding-bottom--medium", mode: mode, value: this.getValue(param, index$1), label: param.label, onEzChange: evt => this.setValue(index$1, evt.detail) });
68
+ case core.UserInterface.DECIMALNUMBER:
69
+ case core.UserInterface.INTEGERNUMBER:
70
+ return index.h("ez-number-input", { label: param.label, value: this.getValue(param, index$1), precision: (_a = param.props) === null || _a === void 0 ? void 0 : _a.precision, onEzChange: evt => this.setValue(index$1, evt.detail) });
71
+ case core.UserInterface.OPTIONSELECTOR:
72
+ return index.h("ez-combo-box", { label: param.label, value: this.getValue(param, index$1), options: param.options, onEzChange: evt => { var _a; return this.setValue(index$1, (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); } });
73
+ case core.UserInterface.DATE:
74
+ return index.h("ez-date-input", { label: param.label, value: this.getValue(param, index$1), onEzChange: evt => this.setValue(index$1, evt.detail) });
75
+ case core.UserInterface.DATETIME:
76
+ return index.h("ez-date-time-input", { label: param.label, value: this.getValue(param, index$1), onEzChange: evt => this.setValue(index$1, evt.detail) });
77
+ default:
78
+ return index.h("ez-text-input", { label: param.label, value: this.getValue(param, index$1), onEzChange: evt => this.setValue(index$1, evt.detail) });
79
+ }
80
+ });
81
+ }
82
+ render() {
83
+ if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.PERSONALIZED) {
84
+ return undefined;
85
+ }
86
+ return (index.h(index.Host, null, this.getParamsInterface()));
87
+ }
88
+ };
89
+
90
+ exports.snk_filter_personalized = SnkFilterPersonalized;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
6
- const index$1 = require('./index-02201bc9.js');
7
- const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
5
+ const index = require('./index-6fcf07f3.js');
6
+ const core = require('@sankhyalabs/core');
7
+ const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
8
8
 
9
9
  const SnkFilterSearch = class {
10
10
  constructor(hostRef) {
@@ -14,7 +14,7 @@ const SnkFilterSearch = class {
14
14
  this.value = this._searchInput.value;
15
15
  }
16
16
  doSearch(mode, argument) {
17
- const application = index$1.ApplicationContext.getContextValue("__SNK__APPLICATION__");
17
+ const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
18
18
  if (this.fix) {
19
19
  this.fix();
20
20
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
5
+ const index = require('./index-6fcf07f3.js');
6
6
 
7
7
  const SnkFilterText = class {
8
8
  constructor(hostRef) {
@@ -2,9 +2,53 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
6
- const index$1 = require('./index-02201bc9.js');
7
- const taskbarProcessor = require('./taskbar-processor-6bd0d35c.js');
5
+ const index = require('./index-6fcf07f3.js');
6
+ const core = require('@sankhyalabs/core');
7
+ const taskbarElements = require('./taskbar-elements-aedfeae6.js');
8
+
9
+ class TaskbarProcessor {
10
+ constructor(defaultButtons) {
11
+ this._defaultButtons = defaultButtons;
12
+ }
13
+ process(taskbarId, taskbarManager, dataState, disabledButtons = []) {
14
+ var _a;
15
+ this.customButtons = new Map();
16
+ this.buttons = "";
17
+ this.disabledButtons = [];
18
+ (_a = this.getButtonsArray(taskbarId, taskbarManager, dataState)) === null || _a === void 0 ? void 0 : _a.forEach(btnDef => {
19
+ let buttonName;
20
+ if (typeof btnDef === "string") {
21
+ buttonName = btnDef;
22
+ }
23
+ else {
24
+ const customBtn = btnDef;
25
+ this.customButtons.set(customBtn.name, customBtn);
26
+ buttonName = customBtn.name;
27
+ }
28
+ if (!this.isEnabled(taskbarId, taskbarManager, buttonName, dataState, disabledButtons)) {
29
+ this.disabledButtons.push(buttonName);
30
+ }
31
+ if (this.buttons.length > 0) {
32
+ this.buttons += ",";
33
+ }
34
+ this.buttons += buttonName;
35
+ });
36
+ }
37
+ getButtonsArray(taskbarId, taskbarManager, dataState) {
38
+ const defaults = this._defaultButtons[taskbarId];
39
+ if (taskbarManager) {
40
+ return taskbarManager.getButtons(taskbarId, dataState, [...defaults]);
41
+ }
42
+ return defaults;
43
+ }
44
+ isEnabled(taskbarId, taskbarManager, buttonName, dataState, disabled) {
45
+ const originalValue = disabled.includes(buttonName) ? false : true;
46
+ if (taskbarManager && taskbarManager.isEnabled) {
47
+ return taskbarManager.isEnabled(taskbarId, dataState, buttonName, originalValue);
48
+ }
49
+ return originalValue;
50
+ }
51
+ }
8
52
 
9
53
  const snkFormCss = ".sc-snk-form-h{display:block}.snk-form.sc-snk-form{position:relative;padding:var(--space--large);padding-top:var(--space--medium)}.snk-form__header.sc-snk-form{position:relative;padding-top:var(--space--medium);padding-bottom:var(--space--medium);margin-bottom:var(--space--medium)}.snk-form__header--fixed.sc-snk-form{position:sticky;top:0;background:var(--background--body);z-index:var(--more-visible, 2);padding-left:var(--space--large);padding-right:var(--space--large);margin-left:calc(var(--space--large) * -1);margin-right:calc(var(--space--large) * -1);width:calc(100% + (var(--space--large) * 2))}";
10
54
 
@@ -13,7 +57,7 @@ const SnkForm = class {
13
57
  index.registerInstance(this, hostRef);
14
58
  this.exit = index.createEvent(this, "exit", 7);
15
59
  this.actionClick = index.createEvent(this, "actionClick", 7);
16
- this._taskbarProcessor = new taskbarProcessor.TaskbarProcessor({
60
+ this._taskbarProcessor = new TaskbarProcessor({
17
61
  "snkForm.regular": ["PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "GRID_MODE", "INSERT"],
18
62
  "snkForm.finish_edition": ["CANCEL", "SAVE"]
19
63
  });
@@ -74,7 +118,7 @@ const SnkForm = class {
74
118
  return ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.selectedRecords) ? this._dataState.selectedRecords[0] : undefined;
75
119
  }
76
120
  componentWillLoad() {
77
- this._application = index$1.ApplicationContext.getContextValue("__SNK__APPLICATION__");
121
+ this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
78
122
  if (this._application) {
79
123
  this._application.loadFormConfig(this.configName).then(cfg => {
80
124
  this._configLoaded = true;
@@ -130,4 +174,74 @@ const SnkForm = class {
130
174
  };
131
175
  SnkForm.style = snkFormCss;
132
176
 
177
+ const snkGridCss = ".snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%}.snk-grid__header.sc-snk-grid{display:flex;flex-wrap:nowrap;width:100%}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--small)}";
178
+
179
+ const SnkGrid = class {
180
+ constructor(hostRef) {
181
+ index.registerInstance(this, hostRef);
182
+ this.actionClick = index.createEvent(this, "actionClick", 7);
183
+ this.gridDoubleClick = index.createEvent(this, "gridDoubleClick", 7);
184
+ this._topTaskbarProcessor = new TaskbarProcessor({
185
+ "snkGridTopTaskbar": ["FORM_MODE", "CONFIG_GRID", "INSERT"]
186
+ });
187
+ this._headerTaskbarProcessor = new TaskbarProcessor({
188
+ "snkGridHeaderTaskbar.unselected": ["REFRESH"],
189
+ "snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"]
190
+ });
191
+ }
192
+ actionClickHandler(evt) {
193
+ if (evt.detail === taskbarElements.TaskbarElement.CONFIG_GRID && this._grid) {
194
+ this._grid.openGridConfig();
195
+ }
196
+ }
197
+ saveConfig(config) {
198
+ const snkApplication = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
199
+ if (snkApplication) {
200
+ snkApplication.saveGridConfig(config);
201
+ }
202
+ }
203
+ componentWillLoad() {
204
+ const snkApplication = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
205
+ if (snkApplication) {
206
+ snkApplication.loadGridConfig(this.configName).then(cfg => {
207
+ this._gridConfig = cfg;
208
+ this._configLoaded = true;
209
+ });
210
+ //Forçamos a carga dos acessos pra aproveitar a request inicial.
211
+ snkApplication.getAllAccess();
212
+ }
213
+ let parent = this._element.parentElement;
214
+ while (parent) {
215
+ if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
216
+ this._snkDataUnit = parent;
217
+ this._dataUnit = this._snkDataUnit.dataUnit;
218
+ if (!this._dataUnit) {
219
+ this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
220
+ this._dataUnit = evt.detail;
221
+ });
222
+ }
223
+ this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
224
+ this._dataState = evt.detail;
225
+ });
226
+ break;
227
+ }
228
+ parent = parent.parentElement;
229
+ }
230
+ }
231
+ componentWillRender() {
232
+ const headerTaskbarId = this._dataState && this._dataState.selectedRecords.length > 0 ? "snkGridHeaderTaskbar.selected" : "snkGridHeaderTaskbar.unselected";
233
+ this._headerTaskbarProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState);
234
+ this._topTaskbarProcessor.process("snkGridTopTaskbar", this.taskbarManager, this._dataState);
235
+ }
236
+ render() {
237
+ if (!this._configLoaded || !this._dataUnit) {
238
+ return undefined;
239
+ }
240
+ return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, index.h("div", { class: "snk-grid__header ez-padding-bottom--medium ez-margin-bottom--medium" }, index.h("snk-filter-bar", { dataUnit: this._dataUnit, class: "snk-grid__filter-bar ez-align--top", configName: this.configName }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" }), index.h("snk-taskbar", { class: "ez-padding-left--medium", onActionClick: evt => this.actionClickHandler(evt), key: "topTaskbar", dataUnit: this._dataUnit, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: "INSERT" })), index.h("ez-grid", { ref: ref => this._grid = ref, dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: evt => { this.saveConfig(evt.detail); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver }, index.h("snk-taskbar", { dataUnit: this._dataUnit, buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.actionsList })), index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("slot", { name: "SnkGridFooter" }))));
241
+ }
242
+ get _element() { return index.getElement(this); }
243
+ };
244
+ SnkGrid.style = snkGridCss;
245
+
133
246
  exports.snk_form = SnkForm;
247
+ exports.snk_grid = SnkGrid;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
6
- const index$1 = require('./index-02201bc9.js');
5
+ const index = require('./index-6fcf07f3.js');
6
+ const core = require('@sankhyalabs/core');
7
7
 
8
8
  const snkPesquisaCss = ".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__content-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--snk-pesquisa__content-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--snk-pesquisa__content-scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__content-scrollbar--width:var(--space--medium, 12px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);max-height:100%;height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__content-scrollbar--background-color-primary) var(--snk-pesquisa__content-scrollbar--background-color-secondary);padding-right:var(--snk-pesquisa__content--padding-right)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__content-scrollbar--background-color-secondary);border-radius:var(--snk-pesquisa__content-scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__content-scrollbar--background-color-primary);border-radius:var(--snk-pesquisa__content-scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__content-scrollbar--background-color-secondary);width:var(--snk-pesquisa__content-scrollbar--width);max-width:var(--snk-pesquisa__content-scrollbar--width);min-width:var(--snk-pesquisa__content-scrollbar--width)}.snk-pesquisa__records.sc-snk-pesquisa{font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);color:var(--snk-pesquisa__records--color);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}";
9
9
 
@@ -59,7 +59,7 @@ const SnkPesquisa = class {
59
59
  .then((resp) => {
60
60
  this._startLoading = false;
61
61
  if (resp) {
62
- resp = index$1.ObjectUtils.stringToObject(resp.json.$);
62
+ resp = core.ObjectUtils.stringToObject(resp.json.$);
63
63
  let descriptionField = resp.descriptionField;
64
64
  let pkField = resp.pkField;
65
65
  if (descriptionField && pkField) {
@@ -87,7 +87,7 @@ const SnkPesquisa = class {
87
87
  }
88
88
  filterFieldsMetadata(resp, item) {
89
89
  let fieldsMetadata = resp.fieldsMetadata.filter((field) => {
90
- let accept = !index$1.StringUtils.isEmpty(item[field.fieldName]) &&
90
+ let accept = !core.StringUtils.isEmpty(item[field.fieldName]) &&
91
91
  field.visible !== false &&
92
92
  field.type !== 'B' &&
93
93
  resp.pkField !== field.fieldName &&
@@ -125,7 +125,7 @@ const SnkPesquisa = class {
125
125
  return index;
126
126
  }
127
127
  equals(obj1, obj2) {
128
- return index$1.ObjectUtils.objectToString(obj1) === index$1.ObjectUtils.objectToString(obj2);
128
+ return core.ObjectUtils.objectToString(obj1) === core.ObjectUtils.objectToString(obj2);
129
129
  }
130
130
  find(arr, checkerFn) {
131
131
  if (arr) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-b0b676c5.js');
3
+ const index = require('./index-6fcf07f3.js');
4
4
 
5
5
  exports.TaskbarElement = void 0;
6
6
  (function (TaskbarElement) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0b676c5.js');
6
- const index$1 = require('./index-02201bc9.js');
5
+ const index = require('./index-6fcf07f3.js');
6
+ const core = require('@sankhyalabs/core');
7
7
 
8
8
  const testePesquisaCss = ":host{display:block}";
9
9
 
@@ -12,7 +12,7 @@ const TestePesquisa = class {
12
12
  index.registerInstance(this, hostRef);
13
13
  }
14
14
  componentWillLoad() {
15
- this.dataUnit = new index$1.DataUnit("testes_com_formulario");
15
+ this.dataUnit = new core.DataUnit("testes_com_formulario");
16
16
  this.dataUnit.metadata = {
17
17
  name: "dd://br.com.sankhya.fin.cad.movimentacaoFinanceira/Financeiro",
18
18
  label: "Parceiro",
@@ -20,8 +20,8 @@ const TestePesquisa = class {
20
20
  {
21
21
  name: "CODPARC",
22
22
  label: "Parceiro",
23
- dataType: index$1.DataType.NUMBER,
24
- userInterface: index$1.UserInterface.SEARCH,
23
+ dataType: core.DataType.NUMBER,
24
+ userInterface: core.UserInterface.SEARCH,
25
25
  required: true,
26
26
  properties: { ENTITYNAME: "Parceiro" }
27
27
  }
@@ -6,6 +6,8 @@
6
6
  "./components/snk-taskbar/snk-taskbar.js",
7
7
  "./components/snk-crud/snk-crud.js",
8
8
  "./components/snk-filter-bar/filter-list/snk-filter-list.js",
9
+ "./components/snk-filter-bar/filter-modal/snk-filter-modal.js",
10
+ "./components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js",
9
11
  "./components/snk-filter-bar/snk-filter-bar.js",
10
12
  "./components/snk-filter-bar/filter-item/snk-filter-detail.js",
11
13
  "./components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js",
@@ -143,15 +143,24 @@ export class SnkApplication {
143
143
  * Mostra o conteúdo passado em um Popup
144
144
  */
145
145
  async showPopUp(content) {
146
- this.clearPopUpContent();
146
+ this.clearContent(this._popUp);
147
147
  this._popUp.appendChild(content);
148
148
  this._popUp.opened = true;
149
149
  }
150
+ async showModal(content) {
151
+ this.clearContent(this._rightModal);
152
+ this._rightModal.appendChild(content);
153
+ this._rightModal.opened = true;
154
+ }
155
+ async closeModal() {
156
+ this.clearContent(this._rightModal);
157
+ this._rightModal.opened = false;
158
+ }
150
159
  /**
151
160
  * Fecha o popup, liberando o conteúdo.
152
161
  */
153
162
  async closePopUp() {
154
- this.clearPopUpContent();
163
+ this.clearContent(this._popUp);
155
164
  this._popUp.opened = false;
156
165
  }
157
166
  /**
@@ -494,10 +503,10 @@ export class SnkApplication {
494
503
  accept(window['isDebugMode']);
495
504
  });
496
505
  }
497
- clearPopUpContent() {
498
- if (this._popUp) {
499
- Array.from(this._popUp.children).forEach(c => {
500
- this._popUp.removeChild(c);
506
+ clearContent(container) {
507
+ if (container) {
508
+ Array.from(container.children).forEach(child => {
509
+ container.removeChild(child);
501
510
  });
502
511
  }
503
512
  }
@@ -541,7 +550,7 @@ export class SnkApplication {
541
550
  });
542
551
  }
543
552
  render() {
544
- return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() })));
553
+ return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "col col--sd-3", closeOutsideClick: true })));
545
554
  }
546
555
  static get is() { return "snk-application"; }
547
556
  static get encapsulation() { return "scoped"; }
@@ -806,6 +815,44 @@ export class SnkApplication {
806
815
  "tags": []
807
816
  }
808
817
  },
818
+ "showModal": {
819
+ "complexType": {
820
+ "signature": "(content: HTMLElement) => Promise<void>",
821
+ "parameters": [{
822
+ "tags": [],
823
+ "text": ""
824
+ }],
825
+ "references": {
826
+ "Promise": {
827
+ "location": "global"
828
+ },
829
+ "HTMLElement": {
830
+ "location": "global"
831
+ }
832
+ },
833
+ "return": "Promise<void>"
834
+ },
835
+ "docs": {
836
+ "text": "",
837
+ "tags": []
838
+ }
839
+ },
840
+ "closeModal": {
841
+ "complexType": {
842
+ "signature": "() => Promise<void>",
843
+ "parameters": [],
844
+ "references": {
845
+ "Promise": {
846
+ "location": "global"
847
+ }
848
+ },
849
+ "return": "Promise<void>"
850
+ },
851
+ "docs": {
852
+ "text": "",
853
+ "tags": []
854
+ }
855
+ },
809
856
  "closePopUp": {
810
857
  "complexType": {
811
858
  "signature": "() => Promise<void>",
@@ -152,7 +152,7 @@ export class SnkCrud {
152
152
  }
153
153
  },
154
154
  "statusResolver": {
155
- "type": "any",
155
+ "type": "unknown",
156
156
  "mutable": false,
157
157
  "complexType": {
158
158
  "original": "IStatusResolver",
@@ -169,9 +169,7 @@ export class SnkCrud {
169
169
  "docs": {
170
170
  "tags": [],
171
171
  "text": "Configura\u00E7\u00E3o do valor da coluna de status.\nExemplo: { \"RECDESP\": { \"-1\" : \"#BD0025\", \"1\" : \"#157A00\" } }"
172
- },
173
- "attribute": "status-resolver",
174
- "reflect": false
172
+ }
175
173
  }
176
174
  };
177
175
  }
@@ -9,10 +9,6 @@ export class SnkDataUnit {
9
9
  * Determina quantas linhas são retornadas por página
10
10
  */
11
11
  this.pageSize = 150;
12
- /**
13
- * Quando ativada essa propriedade faz com que haja uma carga imediata no DataUnit
14
- */
15
- this.autoLoad = true;
16
12
  this._dataUnitObserver = (action) => {
17
13
  const duState = {
18
14
  insertionMode: false,
@@ -234,11 +230,6 @@ export class SnkDataUnit {
234
230
  while (resolver = this._onDataUnitResolve.pop()) {
235
231
  resolver(this.dataUnit);
236
232
  }
237
- if (this.autoLoad) {
238
- setTimeout(() => {
239
- this.dataUnit.loadData();
240
- }, 500); //TODO: Ajustar para aguardar filterProvider do dataunit estar pronto.
241
- }
242
233
  }
243
234
  }
244
235
  }
@@ -402,24 +393,6 @@ export class SnkDataUnit {
402
393
  "tags": [],
403
394
  "text": "Executado ap\u00F3s a a\u00E7\u00E3o de salvar"
404
395
  }
405
- },
406
- "autoLoad": {
407
- "type": "boolean",
408
- "mutable": false,
409
- "complexType": {
410
- "original": "boolean",
411
- "resolved": "boolean",
412
- "references": {}
413
- },
414
- "required": false,
415
- "optional": false,
416
- "docs": {
417
- "tags": [],
418
- "text": "Quando ativada essa propriedade faz com que haja uma carga imediata no DataUnit"
419
- },
420
- "attribute": "auto-load",
421
- "reflect": false,
422
- "defaultValue": "true"
423
396
  }
424
397
  };
425
398
  }