@sankhyalabs/sankhyablocks 2.1.3 → 2.1.5

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 (128) hide show
  1. package/dist/cjs/AuthorizationConfig-79ffae4b.js +7 -0
  2. package/dist/cjs/{form-config-fetcher-2de7c16a.js → ConfigStorage-c112de1d.js} +101 -1
  3. package/dist/cjs/{SnkMessageBuilder-89482d28.js → SnkMessageBuilder-61f00e7f.js} +33 -5
  4. package/dist/cjs/{constants-9056ca9e.js → constants-a47a5190.js} +15 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  7. package/dist/cjs/snk-application.cjs.entry.js +30 -64
  8. package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
  9. package/dist/cjs/{snk-field-config_2.cjs.entry.js → snk-configurator_3.cjs.entry.js} +134 -13
  10. package/dist/cjs/snk-crud.cjs.entry.js +23 -6
  11. package/dist/cjs/snk-data-unit.cjs.entry.js +1 -1
  12. package/dist/cjs/{snk-configurator_6.cjs.entry.js → snk-filter-bar_7.cjs.entry.js} +498 -188
  13. package/dist/cjs/snk-form-config.cjs.entry.js +32 -26
  14. package/dist/cjs/snk-form.cjs.entry.js +30 -17
  15. package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
  16. package/dist/cjs/{taskbar-elements-d762e436.js → taskbar-elements-997af1c9.js} +9 -8
  17. package/dist/collection/collection-manifest.json +3 -2
  18. package/dist/collection/components/snk-application/snk-application.js +3 -2
  19. package/dist/collection/components/snk-configurator/AuthorizationConfig.js +5 -0
  20. package/dist/collection/components/snk-configurator/snk-configurator.css +124 -0
  21. package/dist/collection/components/snk-configurator/snk-configurator.js +126 -181
  22. package/dist/collection/components/snk-crud/snk-crud.js +23 -5
  23. package/dist/collection/components/snk-form/snk-form.js +37 -54
  24. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +1 -1
  25. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +48 -29
  26. package/dist/collection/components/snk-grid/snk-grid.js +69 -20
  27. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.css +166 -0
  28. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +605 -0
  29. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.css +9 -0
  30. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +70 -0
  31. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +9 -8
  32. package/dist/collection/components/snk-taskbar/snk-taskbar.js +9 -1
  33. package/dist/collection/lib/configs/ConfigStorage.js +15 -15
  34. package/dist/collection/lib/message/SnkMessageBuilder.js +5 -3
  35. package/dist/collection/lib/message/resources/snk-configurator.msg.js +0 -3
  36. package/dist/collection/lib/message/resources/snk-form.msg.js +3 -0
  37. package/dist/collection/lib/message/resources/snk-grid.msg.js +26 -0
  38. package/dist/collection/lib/utils/constants.js +14 -0
  39. package/dist/components/AuthorizationConfig.js +7 -0
  40. package/dist/components/{form-config-fetcher.js → ConfigStorage.js} +100 -2
  41. package/dist/components/SnkMessageBuilder.js +33 -5
  42. package/dist/components/constants.js +15 -1
  43. package/dist/components/index.d.ts +2 -1
  44. package/dist/components/index.js +2 -1
  45. package/dist/components/snk-application2.js +2 -36
  46. package/dist/components/snk-configurator2.js +63 -165
  47. package/dist/components/snk-crud.js +53 -29
  48. package/dist/components/snk-form-config2.js +27 -21
  49. package/dist/components/snk-form2.js +33 -32
  50. package/dist/components/{snk-config-modal.d.ts → snk-grid-config.d.ts} +4 -4
  51. package/dist/components/snk-grid-config.js +6 -0
  52. package/dist/components/snk-grid-config2.js +497 -0
  53. package/dist/components/snk-grid2.js +65 -27
  54. package/dist/components/snk-select-box.d.ts +11 -0
  55. package/dist/components/snk-select-box.js +6 -0
  56. package/dist/components/snk-select-box2.js +38 -0
  57. package/dist/components/snk-taskbar2.js +19 -22
  58. package/dist/esm/AuthorizationConfig-dcbd207a.js +7 -0
  59. package/dist/esm/{form-config-fetcher-96c6c2dc.js → ConfigStorage-99025655.js} +100 -2
  60. package/dist/esm/{SnkMessageBuilder-a27fc561.js → SnkMessageBuilder-f5ef87df.js} +33 -5
  61. package/dist/esm/{constants-c6039d3d.js → constants-babe1a08.js} +15 -1
  62. package/dist/esm/loader.js +1 -1
  63. package/dist/esm/sankhyablocks.js +1 -1
  64. package/dist/esm/snk-application.entry.js +3 -37
  65. package/dist/esm/snk-config-options.entry.js +1 -1
  66. package/dist/esm/{snk-field-config_2.entry.js → snk-configurator_3.entry.js} +134 -14
  67. package/dist/esm/snk-crud.entry.js +23 -6
  68. package/dist/esm/snk-data-unit.entry.js +1 -1
  69. package/dist/esm/{snk-configurator_6.entry.js → snk-filter-bar_7.entry.js} +499 -190
  70. package/dist/esm/snk-form-config.entry.js +27 -21
  71. package/dist/esm/snk-form.entry.js +30 -17
  72. package/dist/esm/snk-tab-config.entry.js +1 -1
  73. package/dist/esm/{taskbar-elements-1092b0b7.js → taskbar-elements-a0a8b106.js} +9 -8
  74. package/dist/sankhyablocks/p-09720dd1.js +1 -0
  75. package/dist/sankhyablocks/p-105cd4a8.entry.js +1 -0
  76. package/dist/sankhyablocks/p-133cf71d.entry.js +1 -0
  77. package/dist/sankhyablocks/p-341b2ceb.entry.js +1 -0
  78. package/dist/sankhyablocks/p-395d5e42.entry.js +1 -0
  79. package/dist/sankhyablocks/{p-8706fe65.entry.js → p-43aff8f5.entry.js} +1 -1
  80. package/dist/sankhyablocks/p-53f33e9d.entry.js +1 -0
  81. package/dist/sankhyablocks/p-639b8f6e.entry.js +76 -0
  82. package/dist/sankhyablocks/{p-a5b26df2.js → p-6673c77c.js} +1 -1
  83. package/dist/sankhyablocks/p-6ba8f415.js +26 -0
  84. package/dist/sankhyablocks/{p-2517529d.js → p-877bd6cf.js} +1 -1
  85. package/dist/sankhyablocks/{p-f37cdeb5.entry.js → p-cd03ea9e.entry.js} +1 -1
  86. package/dist/sankhyablocks/p-dc36cfbf.js +1 -0
  87. package/dist/sankhyablocks/{p-92782503.entry.js → p-eb94df0b.entry.js} +1 -1
  88. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  89. package/dist/types/components/snk-application/snk-application.d.ts +0 -1
  90. package/dist/types/components/snk-configurator/AuthorizationConfig.d.ts +4 -0
  91. package/dist/types/components/snk-configurator/snk-configurator.d.ts +21 -24
  92. package/dist/types/components/snk-crud/snk-crud.d.ts +6 -0
  93. package/dist/types/components/snk-form/snk-form.d.ts +6 -9
  94. package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +7 -3
  95. package/dist/types/components/snk-grid/snk-grid.d.ts +13 -3
  96. package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +66 -0
  97. package/dist/types/components/snk-grid/subcomponents/snk-select-box/snk-select-box.d.ts +7 -0
  98. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +3 -4
  99. package/dist/types/components.d.ts +104 -74
  100. package/dist/types/lib/configs/ConfigStorage.d.ts +3 -3
  101. package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +0 -1
  102. package/dist/types/lib/message/resources/snk-grid.msg.d.ts +2 -0
  103. package/dist/types/lib/utils/constants.d.ts +14 -0
  104. package/package.json +1 -1
  105. package/react/components.d.ts +2 -1
  106. package/react/components.js +2 -1
  107. package/react/components.js.map +1 -1
  108. package/dist/cjs/configurableElementsStorage-93459c72.js +0 -20
  109. package/dist/cjs/snk-config-modal.cjs.entry.js +0 -62
  110. package/dist/collection/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.js +0 -16
  111. package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.css +0 -122
  112. package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.js +0 -137
  113. package/dist/components/snk-config-modal.js +0 -6
  114. package/dist/components/snk-config-modal2.js +0 -91
  115. package/dist/esm/configurableElementsStorage-cdc144b5.js +0 -18
  116. package/dist/esm/snk-config-modal.entry.js +0 -58
  117. package/dist/sankhyablocks/p-361299e8.js +0 -26
  118. package/dist/sankhyablocks/p-429c5e3f.entry.js +0 -1
  119. package/dist/sankhyablocks/p-4fab64ec.js +0 -1
  120. package/dist/sankhyablocks/p-60eef7cd.entry.js +0 -1
  121. package/dist/sankhyablocks/p-626cf022.entry.js +0 -1
  122. package/dist/sankhyablocks/p-6511d132.entry.js +0 -1
  123. package/dist/sankhyablocks/p-8c14bbfb.entry.js +0 -76
  124. package/dist/sankhyablocks/p-c4ae984b.entry.js +0 -1
  125. package/dist/sankhyablocks/p-ce7c38a1.entry.js +0 -1
  126. package/dist/sankhyablocks/p-d50651a3.js +0 -1
  127. package/dist/types/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.d.ts +0 -8
  128. package/dist/types/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.d.ts +0 -38
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ exports.AuthorizationConfig = void 0;
4
+ (function (AuthorizationConfig) {
5
+ AuthorizationConfig["CONFIG_GRID"] = "CONFIG_GRID";
6
+ AuthorizationConfig["CONFIG"] = "CONFIG";
7
+ })(exports.AuthorizationConfig || (exports.AuthorizationConfig = {}));
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
4
3
  const core = require('@sankhyalabs/core');
4
+ const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
5
5
 
6
6
  var browserPonyfill = _commonjsHelpers.createCommonjsModule(function (module, exports) {
7
7
  var global = typeof self !== 'undefined' ? self : _commonjsHelpers.commonjsGlobal;
@@ -6888,8 +6888,108 @@ exports.UserConfigType = void 0;
6888
6888
  UserConfigType["SHARED"] = "SHARED";
6889
6889
  })(exports.UserConfigType || (exports.UserConfigType = {}));
6890
6890
 
6891
+ class GridConfigFetcher extends ResourceFetcher {
6892
+ constructor() {
6893
+ super(...arguments);
6894
+ this.GRID_CONFIG_VERSION = "V3:";
6895
+ }
6896
+ getConfig(_gridName, resourceID) {
6897
+ const completePath = `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}`;
6898
+ return new Promise((resolve, reject) => {
6899
+ this.loadResource(completePath)
6900
+ .then(loadedResource => {
6901
+ let config = undefined;
6902
+ if (loadedResource) {
6903
+ config = JSON.parse(loadedResource);
6904
+ }
6905
+ resolve(config);
6906
+ }).catch((error) => {
6907
+ reject(error);
6908
+ });
6909
+ });
6910
+ }
6911
+ saveConfig(config, resourceID) {
6912
+ const completePath = `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}`;
6913
+ return new Promise((resolve, reject) => {
6914
+ this.saveResource(config, completePath)
6915
+ .then((resp) => {
6916
+ resolve(resp);
6917
+ })
6918
+ .catch((error) => {
6919
+ reject(error);
6920
+ });
6921
+ });
6922
+ }
6923
+ }
6924
+
6925
+ const CONFIG_SOURCE = {
6926
+ form: "form",
6927
+ grid: "grid"
6928
+ };
6929
+ class ConfigStorage {
6930
+ static get() {
6931
+ if (!ConfigStorage.instance) {
6932
+ const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
6933
+ if (application != undefined) {
6934
+ ConfigStorage.instance = new ConfigStorage();
6935
+ application.getResourceID().then((resourceID) => {
6936
+ const configName = application.configName;
6937
+ ConfigStorage.resourceID = resourceID;
6938
+ ConfigStorage.instance.loadFormConfig(configName);
6939
+ ConfigStorage.instance.loadGridConfig(configName);
6940
+ });
6941
+ }
6942
+ }
6943
+ return this.instance;
6944
+ }
6945
+ async loadFormConfig(name) {
6946
+ if (name == undefined) {
6947
+ return;
6948
+ }
6949
+ const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.form);
6950
+ if (!ConfigStorage.configById.has(cacheID)) {
6951
+ ConfigStorage.configById.set(cacheID, ConfigStorage.formConfigFetcher.loadFormConfig(name, ConfigStorage.resourceID));
6952
+ }
6953
+ return ConfigStorage.configById.get(cacheID);
6954
+ }
6955
+ async loadGridConfig(name) {
6956
+ if (name == undefined) {
6957
+ return;
6958
+ }
6959
+ const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.grid);
6960
+ if (!ConfigStorage.configById.has(cacheID)) {
6961
+ ConfigStorage.configById.set(cacheID, ConfigStorage.gridConfigFetcher.getConfig(name, ConfigStorage.resourceID));
6962
+ }
6963
+ return ConfigStorage.configById.get(cacheID);
6964
+ }
6965
+ static async saveFormConfig(config, name) {
6966
+ if (config == undefined || name == undefined) {
6967
+ return;
6968
+ }
6969
+ const cacheID = this.buildCacheID(name, CONFIG_SOURCE.form);
6970
+ this.configById.delete(cacheID);
6971
+ return this.formConfigFetcher.saveConfig(config, name, this.resourceID);
6972
+ }
6973
+ static async saveGridConfig(config, name) {
6974
+ if (config == undefined || name == undefined) {
6975
+ return;
6976
+ }
6977
+ const cacheID = this.buildCacheID(name, CONFIG_SOURCE.grid);
6978
+ this.configById.delete(cacheID);
6979
+ return this.gridConfigFetcher.saveConfig(config, this.resourceID);
6980
+ }
6981
+ static buildCacheID(name, source) {
6982
+ return `req_${source}_${name}_${this.resourceID}`;
6983
+ }
6984
+ }
6985
+ ConfigStorage.configById = new Map();
6986
+ ConfigStorage.formConfigFetcher = new FormConfigFetcher();
6987
+ ConfigStorage.gridConfigFetcher = new GridConfigFetcher();
6988
+
6989
+ exports.ConfigStorage = ConfigStorage;
6891
6990
  exports.DataFetcher = DataFetcher;
6892
6991
  exports.FormConfigFetcher = FormConfigFetcher;
6992
+ exports.GridConfigFetcher = GridConfigFetcher;
6893
6993
  exports.ResourceFetcher = ResourceFetcher;
6894
6994
  exports.UrlUtils = UrlUtils;
6895
6995
  exports.dist = dist;
@@ -152,6 +152,9 @@ const snkFormConfigMessages = {
152
152
  titleGroupExists: "Já existe um grupo com título",
153
153
  infoValidTitle: "Por favor, digite um título válido.",
154
154
  inTab: "na aba"
155
+ },
156
+ info: {
157
+ successfullyConfigSaved: "As configurações foram salvas com sucesso!"
155
158
  }
156
159
  };
157
160
  const snkFieldConfigMessages = {
@@ -167,9 +170,6 @@ const snkTabConfigMessages = {
167
170
  };
168
171
 
169
172
  const snkConfiguratorMessages = {
170
- msgSaveSuccessfully: "As configurações foram salvas com sucesso!"
171
- };
172
- const snkConfigModalMessages = {
173
173
  titleConfigurations: "Configurações",
174
174
  subTitleModeConfig: "Modo de visualização",
175
175
  labelConfigGrid: "Configurar grade",
@@ -178,6 +178,33 @@ const snkConfigModalMessages = {
178
178
  labelForm: "Formulário"
179
179
  };
180
180
 
181
+ const snkGridMessages = {};
182
+ const snkGridConfigMessages = {
183
+ gridConfiguration: "Configuração da Grade",
184
+ columnVisibilityOrder: "Defina visibilidade e ordem das colunas.",
185
+ sortingSequence: "Sequência da ordenação",
186
+ findColumn: "Localizar coluna",
187
+ cancel: "Cancelar",
188
+ complete: "Concluir",
189
+ tab: {
190
+ columns: "Colunas",
191
+ lineOrdering: "Ordenação das linhas",
192
+ },
193
+ info: {
194
+ successfullyConfigSaved: "As configurações foram salvas com sucesso!"
195
+ },
196
+ confirm: {
197
+ cancel: "Descartar",
198
+ save: "Salvar",
199
+ alert: "Aviso",
200
+ msgCancel: "As alterações realizadas serão descartadas. Gostaria de salvar antes de sair?"
201
+ },
202
+ group: {
203
+ visible: "Visíveis",
204
+ hidden: "Ocultas"
205
+ }
206
+ };
207
+
181
208
  class SnkMessageBuilder {
182
209
  constructor() {
183
210
  this._defaults = {
@@ -186,12 +213,13 @@ class SnkMessageBuilder {
186
213
  snkFormConfig: snkFormConfigMessages,
187
214
  snkConfigOptions: snkConfigOptionsMessages,
188
215
  snkTaskbar: snkTaskbarMessages,
189
- snkConfigModal: snkConfigModalMessages,
190
216
  snkFieldConfig: snkFieldConfigMessages,
191
217
  snkFilterBar: snkFilterBarMessages,
192
218
  snkConfigurator: snkConfiguratorMessages,
193
219
  snkTabConfig: snkTabConfigMessages,
194
- crudUtils: crudUtilsMessages
220
+ crudUtils: crudUtilsMessages,
221
+ snkGrid: snkGridMessages,
222
+ snkGridConfig: snkGridConfigMessages
195
223
  };
196
224
  this._currentOperation = exports.OperationMap.CLEAN;
197
225
  this.loadAppMessages().then((msgs) => {
@@ -72,11 +72,26 @@ const TAGS_BY_TYPE = {
72
72
  INTEGERNUMBER: "ez-number-input",
73
73
  DECIMALNUMBER: "ez-number-input"
74
74
  };
75
+ const ORDER_VALUES = {
76
+ none: {
77
+ value: "NA",
78
+ label: "N/A",
79
+ },
80
+ asc: {
81
+ value: "ASC",
82
+ label: "A-Z"
83
+ },
84
+ desc: {
85
+ value: "DESC",
86
+ label: "Z-A"
87
+ }
88
+ };
75
89
 
76
90
  exports.ACTION_CONFIG = ACTION_CONFIG;
77
91
  exports.CONFIG_EVENTS = CONFIG_EVENTS;
78
92
  exports.DEFAULT_TYPE = DEFAULT_TYPE;
79
93
  exports.KEY_EVENTS = KEY_EVENTS;
94
+ exports.ORDER_VALUES = ORDER_VALUES;
80
95
  exports.TAB_NAMES = TAB_NAMES;
81
96
  exports.TAGS_BY_TYPE = TAGS_BY_TYPE;
82
97
  exports.TYPE_ACTIONS = TYPE_ACTIONS;
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["teste-pesquisa.cjs",[[1,"teste-pesquisa"]]],["snk-data-unit.cjs",[[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]}]]],["snk-filter-binary-select.cjs",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text.cjs",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-pesquisa.cjs",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-config-options.cjs",[[2,"snk-config-options",{"fieldConfig":[16],"idConfig":[513,"id-config"],"dataUnit":[16],"_defaultType":[32]}]]],["snk-tab-config.cjs",[[6,"snk-tab-config",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32],"_activeEditText":[32],"_activeEditTextIndex":[32],"_actionsHide":[32],"_actionsShow":[32]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-field-config_2.cjs",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"_dataUnit":[32],"_dataState":[32],"_gridConfig":[32],"setShowGridConfig":[64],"setConfig":[64]}],[2,"snk-field-config",{"isConfigActive":[16],"fieldConfig":[16],"modeInsertion":[516,"mode-insertion"],"dataUnit":[16]}]]],["snk-form-config.cjs",[[2,"snk-form-config",{"dataUnit":[16],"formConfig":[16],"parentForm":[16],"_formConfigOptions":[32],"_fieldConfigSelected":[32],"_layoutFormConfig":[32],"_fieldsAvailable":[32],"_formConfig":[32],"_formConfigChanged":[32],"_optionFormConfigSelected":[32],"_optionFormConfigChanged":[32],"_tempGroups":[32]}]]],["snk-config-modal.cjs",[[2,"snk-config-modal",{"configName":[1,"config-name"],"gridMode":[4,"grid-mode"]}]]],["snk-configurator_6.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32]},[[0,"filterChange","filterChangeListener"]]],[6,"snk-taskbar",{"configName":[1,"config-name"],"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"_permissions":[32]}],[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]}],[2,"snk-configurator",{"configName":[1,"config-name"],"name":[1],"enabled":[4]}]]],["snk-form.cjs",[[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"_dataUnit":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32],"_showFormConfig":[32],"setShowFormConfig":[64],"setConfig":[64]}]]],["snk-crud.cjs",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"_dataUnit":[32],"_dataState":[32],"goToView":[64]}]]],["snk-application.cjs",[[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]}]]]], options);
17
+ return index.bootstrapLazy([["teste-pesquisa.cjs",[[1,"teste-pesquisa"]]],["snk-data-unit.cjs",[[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]}]]],["snk-filter-binary-select.cjs",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text.cjs",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-pesquisa.cjs",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-config-options.cjs",[[2,"snk-config-options",{"fieldConfig":[16],"idConfig":[513,"id-config"],"dataUnit":[16],"_defaultType":[32]}]]],["snk-tab-config.cjs",[[6,"snk-tab-config",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32],"_activeEditText":[32],"_activeEditTextIndex":[32],"_actionsHide":[32],"_actionsShow":[32]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-configurator_3.cjs",[[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]}]]],["snk-form-config.cjs",[[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]}]]],["snk-filter-bar_7.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[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]}]]],["snk-form.cjs",[[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]}]]],["snk-crud.cjs",[[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]}]]],["snk-application.cjs",[[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]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["teste-pesquisa.cjs",[[1,"teste-pesquisa"]]],["snk-data-unit.cjs",[[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]}]]],["snk-filter-binary-select.cjs",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text.cjs",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-pesquisa.cjs",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-config-options.cjs",[[2,"snk-config-options",{"fieldConfig":[16],"idConfig":[513,"id-config"],"dataUnit":[16],"_defaultType":[32]}]]],["snk-tab-config.cjs",[[6,"snk-tab-config",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32],"_activeEditText":[32],"_activeEditTextIndex":[32],"_actionsHide":[32],"_actionsShow":[32]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-field-config_2.cjs",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"_dataUnit":[32],"_dataState":[32],"_gridConfig":[32],"setShowGridConfig":[64],"setConfig":[64]}],[2,"snk-field-config",{"isConfigActive":[16],"fieldConfig":[16],"modeInsertion":[516,"mode-insertion"],"dataUnit":[16]}]]],["snk-form-config.cjs",[[2,"snk-form-config",{"dataUnit":[16],"formConfig":[16],"parentForm":[16],"_formConfigOptions":[32],"_fieldConfigSelected":[32],"_layoutFormConfig":[32],"_fieldsAvailable":[32],"_formConfig":[32],"_formConfigChanged":[32],"_optionFormConfigSelected":[32],"_optionFormConfigChanged":[32],"_tempGroups":[32]}]]],["snk-config-modal.cjs",[[2,"snk-config-modal",{"configName":[1,"config-name"],"gridMode":[4,"grid-mode"]}]]],["snk-configurator_6.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32]},[[0,"filterChange","filterChangeListener"]]],[6,"snk-taskbar",{"configName":[1,"config-name"],"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"_permissions":[32]}],[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]}],[2,"snk-configurator",{"configName":[1,"config-name"],"name":[1],"enabled":[4]}]]],["snk-form.cjs",[[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"_dataUnit":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32],"_showFormConfig":[32],"setShowFormConfig":[64],"setConfig":[64]}]]],["snk-crud.cjs",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"_dataUnit":[32],"_dataState":[32],"goToView":[64]}]]],["snk-application.cjs",[[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]}]]]], options);
18
+ return index.bootstrapLazy([["teste-pesquisa.cjs",[[1,"teste-pesquisa"]]],["snk-data-unit.cjs",[[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]}]]],["snk-filter-binary-select.cjs",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text.cjs",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-pesquisa.cjs",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-config-options.cjs",[[2,"snk-config-options",{"fieldConfig":[16],"idConfig":[513,"id-config"],"dataUnit":[16],"_defaultType":[32]}]]],["snk-tab-config.cjs",[[6,"snk-tab-config",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32],"_activeEditText":[32],"_activeEditTextIndex":[32],"_actionsHide":[32],"_actionsShow":[32]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-configurator_3.cjs",[[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]}]]],["snk-form-config.cjs",[[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]}]]],["snk-filter-bar_7.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[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]}]]],["snk-form.cjs",[[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]}]]],["snk-crud.cjs",[[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]}]]],["snk-application.cjs",[[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]}]]]], options);
19
19
  });
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const formConfigFetcher = require('./form-config-fetcher-2de7c16a.js');
7
+ const ConfigStorage = require('./ConfigStorage-c112de1d.js');
8
8
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
9
- const SnkMessageBuilder = require('./SnkMessageBuilder-89482d28.js');
9
+ const SnkMessageBuilder = require('./SnkMessageBuilder-61f00e7f.js');
10
10
  require('./_commonjsHelpers-537d719a.js');
11
11
 
12
12
  class SnkErrorHandler {
@@ -76,7 +76,7 @@ class PesquisaFetcher {
76
76
  this.buldTemplates();
77
77
  }
78
78
  buldTemplates() {
79
- this._templateByQuery.set("search", formConfigFetcher.dist.gql `query($entityName: String! $argument: String $criteria: InputSearchCriteria $options: InputSearchOptions) {
79
+ this._templateByQuery.set("search", ConfigStorage.dist.gql `query($entityName: String! $argument: String $criteria: InputSearchCriteria $options: InputSearchOptions) {
80
80
  $queryAlias$: search(entityName: $entityName argument: $argument criteria: $criteria options: $options){
81
81
  value
82
82
  label
@@ -87,7 +87,7 @@ class PesquisaFetcher {
87
87
  const cleanText = (argument === null || argument === void 0 ? void 0 : argument.trim()) || undefined;
88
88
  argument = isNaN(Number(cleanText)) && cleanText ? `%${cleanText}` : cleanText;
89
89
  return new Promise((resolve, reject) => {
90
- formConfigFetcher.DataFetcher.get()
90
+ ConfigStorage.DataFetcher.get()
91
91
  .callGraphQL({
92
92
  values: { argument, entityName, criteria, options },
93
93
  query: this._templateByQuery.get("search"),
@@ -142,7 +142,7 @@ class PesquisaFetcher {
142
142
  }
143
143
  };
144
144
  return new Promise((resolve, reject) => {
145
- formConfigFetcher.DataFetcher.get()
145
+ ConfigStorage.DataFetcher.get()
146
146
  .callServiceBroker("PesquisaSP.getSuggestion", JSON.stringify(reqBody))
147
147
  .then(result => resolve(result))
148
148
  .catch(error => reject(error));
@@ -171,7 +171,7 @@ class TotalsFetcher {
171
171
  this.buldTemplates();
172
172
  }
173
173
  buldTemplates() {
174
- this.templateByQuery.set("fetchTotals", formConfigFetcher.dist.gql `query($filters: [InputFilter!] $name: String!) {
174
+ this.templateByQuery.set("fetchTotals", ConfigStorage.dist.gql `query($filters: [InputFilter!] $name: String!) {
175
175
  $queryAlias$: fetchTotals(name: $name, filters: $filters ){
176
176
  name
177
177
  value
@@ -184,7 +184,7 @@ class TotalsFetcher {
184
184
  name: path,
185
185
  filters: filters
186
186
  };
187
- return formConfigFetcher.DataFetcher.get().callGraphQL({
187
+ return ConfigStorage.DataFetcher.get().callGraphQL({
188
188
  values: variables,
189
189
  query: this.templateByQuery.get("fetchTotals"),
190
190
  });
@@ -218,7 +218,7 @@ class DataUnitFetcher {
218
218
  this.buldTemplates();
219
219
  }
220
220
  buldTemplates() {
221
- this.templateByQuery.set("fetchDataUnit", formConfigFetcher.dist.gql `query($name: String!) {
221
+ this.templateByQuery.set("fetchDataUnit", ConfigStorage.dist.gql `query($name: String!) {
222
222
  $queryAlias$: fetchDataUnit(name: $name){
223
223
  name
224
224
  fields{
@@ -244,7 +244,7 @@ class DataUnitFetcher {
244
244
  }
245
245
  }
246
246
  }`);
247
- this.templateByQuery.set("fetchData", formConfigFetcher.dist.gql `query($dataunit: String! $limit: Int $offset:Int $filters: [InputFilter!] $sort: [InputSort!]) {
247
+ this.templateByQuery.set("fetchData", ConfigStorage.dist.gql `query($dataunit: String! $limit: Int $offset:Int $filters: [InputFilter!] $sort: [InputSort!]) {
248
248
  $queryAlias$: fetchDataUnit(name: $dataunit){
249
249
  data(limit: $limit offset: $offset filters: $filters sort: $sort){
250
250
  limit
@@ -261,7 +261,7 @@ class DataUnitFetcher {
261
261
  }
262
262
  }
263
263
  }`);
264
- this.templateByQuery.set("saveData", formConfigFetcher.dist.gql `mutation($changes: [InputBatchChange!]!) {
264
+ this.templateByQuery.set("saveData", ConfigStorage.dist.gql `mutation($changes: [InputBatchChange!]!) {
265
265
  $queryAlias$: batchOperationDataUnit(changes: $changes){
266
266
  oldId
267
267
  id
@@ -271,7 +271,7 @@ class DataUnitFetcher {
271
271
  }
272
272
  }
273
273
  }`);
274
- this.templateByQuery.set("fetchDataRecord", formConfigFetcher.dist.gql `query($dataunit: String! $recordID: [String!]) {
274
+ this.templateByQuery.set("fetchDataRecord", ConfigStorage.dist.gql `query($dataunit: String! $recordID: [String!]) {
275
275
  $queryAlias$: fetchDataUnit(name: $dataunit){
276
276
  record(id: $recordID){
277
277
  id
@@ -294,7 +294,7 @@ class DataUnitFetcher {
294
294
  }
295
295
  loadMetadata(dataUnit) {
296
296
  return new Promise((resolve, reject) => {
297
- formConfigFetcher.DataFetcher.get()
297
+ ConfigStorage.DataFetcher.get()
298
298
  .callGraphQL({
299
299
  values: { name: dataUnit.name },
300
300
  query: this.templateByQuery.get("fetchDataUnit"),
@@ -360,7 +360,7 @@ class DataUnitFetcher {
360
360
  }
361
361
  variables.filter.push(quickFilterCriteria);
362
362
  }
363
- formConfigFetcher.DataFetcher.get()
363
+ ConfigStorage.DataFetcher.get()
364
364
  .callGraphQL({
365
365
  values: variables,
366
366
  query: this.templateByQuery.get("fetchData"),
@@ -416,7 +416,7 @@ class DataUnitFetcher {
416
416
  return reqChange;
417
417
  });
418
418
  return new Promise((resolve, reject) => {
419
- formConfigFetcher.DataFetcher.get()
419
+ ConfigStorage.DataFetcher.get()
420
420
  .callGraphQL({
421
421
  values: { changes: changes },
422
422
  query: this.templateByQuery.get("saveData"),
@@ -445,7 +445,7 @@ class DataUnitFetcher {
445
445
  return { dataUnit: dataUnit.name, operation: core.ChangeOperation.DELETE, recordId };
446
446
  });
447
447
  return new Promise((resolve, reject) => {
448
- formConfigFetcher.DataFetcher.get()
448
+ ConfigStorage.DataFetcher.get()
449
449
  .callGraphQL({
450
450
  values: { changes: changes },
451
451
  query: this.templateByQuery.get("saveData"),
@@ -460,7 +460,7 @@ class DataUnitFetcher {
460
460
  }
461
461
  loadRecord(dataUnit, recordIds) {
462
462
  return new Promise((resolve, reject) => {
463
- formConfigFetcher.DataFetcher.get()
463
+ ConfigStorage.DataFetcher.get()
464
464
  .callGraphQL({
465
465
  values: { recordID: recordIds, dataunit: dataUnit.name },
466
466
  query: this.templateByQuery.get("fetchDataRecord"),
@@ -498,7 +498,7 @@ class ParametersFetcher {
498
498
  this.buldTemplates();
499
499
  }
500
500
  buldTemplates() {
501
- this.templateByQuery.set("fetchParam", formConfigFetcher.dist.gql `query($name: String!) {
501
+ this.templateByQuery.set("fetchParam", ConfigStorage.dist.gql `query($name: String!) {
502
502
  $queryAlias$: fetchResource(name: $name){
503
503
  name
504
504
  resource
@@ -507,7 +507,7 @@ class ParametersFetcher {
507
507
  }
508
508
  async getParam(name) {
509
509
  const completPath = `param://application?params=${name}`;
510
- return formConfigFetcher.DataFetcher.get().callGraphQL({
510
+ return ConfigStorage.DataFetcher.get().callGraphQL({
511
511
  values: { name: completPath },
512
512
  query: this.templateByQuery.get("fetchParam"),
513
513
  });
@@ -551,41 +551,7 @@ class ParametersFetcher {
551
551
 
552
552
  const _0x5b7870=_0x2202;(function(_0x42e134,_0x5d9727){const _0x185c97=_0x2202,_0x5854c7=_0x42e134();while(!![]){try{const _0x129d35=parseInt(_0x185c97(0x18f))/0x1*(-parseInt(_0x185c97(0x183))/0x2)+-parseInt(_0x185c97(0x191))/0x3+parseInt(_0x185c97(0x17d))/0x4*(-parseInt(_0x185c97(0x185))/0x5)+parseInt(_0x185c97(0x184))/0x6*(-parseInt(_0x185c97(0x182))/0x7)+parseInt(_0x185c97(0x17b))/0x8+parseInt(_0x185c97(0x18c))/0x9+parseInt(_0x185c97(0x17f))/0xa;if(_0x129d35===_0x5d9727)break;else _0x5854c7['push'](_0x5854c7['shift']());}catch(_0x4becb4){_0x5854c7['push'](_0x5854c7['shift']());}}}(_0xdfb1,0x44ac7));function _0x2202(_0x2eac1f,_0x170d27){const _0xdfb1b4=_0xdfb1();return _0x2202=function(_0x2202d7,_0x224df5){_0x2202d7=_0x2202d7-0x17a;let _0x4d54a9=_0xdfb1b4[_0x2202d7];return _0x4d54a9;},_0x2202(_0x2eac1f,_0x170d27);}function _0xdfb1(){const _0x2b9dc4=['true','863GKWjmo','parse','56355fjjjAm','isSup','putAccess','4324480sjuCdS','hasOwnProperty','239748okvJLB','name','6055770tXeRaU','actions','forEach','7RPRvzn','1042CHxkUw','2988126NIwRMm','20MTNzmH','authorizationSf','item','string','hasAccess','isArray','Objeto\x20não\x20pode\x20ser\x20indefinido.','3071943fWslZp','parseFromJSON'];_0xdfb1=function(){return _0x2b9dc4;};return _0xdfb1();}class MGEAuthorization{[_0x5b7870(0x18d)](_0x37e96b){const _0x580407=_0x5b7870;_0x37e96b=utxt(_0x37e96b[_0x580407(0x186)]);typeof _0x37e96b==_0x580407(0x188)&&(_0x37e96b=JSON[_0x580407(0x190)](_0x37e96b));if(_0x37e96b==undefined)throw Error(_0x580407(0x18b));const _0x291d34=new MGEAuthorizationData(_0x37e96b[_0x580407(0x192)]==='S'||_0x37e96b[_0x580407(0x192)]===!![]);return Array[_0x580407(0x18a)](_0x37e96b[_0x580407(0x187)])&&_0x37e96b[_0x580407(0x187)][_0x580407(0x181)](_0x58a748=>_0x291d34['putAccess'](_0x58a748[_0x580407(0x17e)],String(_0x58a748['status'])==_0x580407(0x18e))),_0x291d34;}}class MGEAuthorizationData{constructor(_0x51ec5d){const _0x2c8472=_0x5b7870;this['isSup']=_0x51ec5d,this[_0x2c8472(0x180)]={};}[_0x5b7870(0x17a)](_0x5bd0f2,_0x2ef465){const _0x40d701=_0x5b7870;this[_0x40d701(0x180)][_0x5bd0f2]=_0x2ef465;}[_0x5b7870(0x189)](_0x4fd772){const _0x3707c1=_0x5b7870;if(this[_0x3707c1(0x192)])return !![];let _0x25e60a=!![];return this[_0x3707c1(0x180)][_0x3707c1(0x17c)](_0x4fd772)&&(_0x25e60a=this['actions'][_0x4fd772]),_0x25e60a;}['isUserSup'](){return this['isSup'];}}
553
553
 
554
- class GridConfigFetcher extends formConfigFetcher.ResourceFetcher {
555
- constructor() {
556
- super(...arguments);
557
- this.GRID_CONFIG_VERSION = "V3:";
558
- }
559
- getConfig(_gridName, resourceID) {
560
- const completePath = `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}`;
561
- return new Promise((resolve, reject) => {
562
- this.loadResource(completePath)
563
- .then(loadedResource => {
564
- let config = undefined;
565
- if (loadedResource) {
566
- config = JSON.parse(loadedResource);
567
- }
568
- resolve(config);
569
- }).catch((error) => {
570
- reject(error);
571
- });
572
- });
573
- }
574
- saveConfig(config, resourceID) {
575
- const completePath = `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}`;
576
- return new Promise((resolve, reject) => {
577
- this.saveResource(config, completePath)
578
- .then((resp) => {
579
- resolve(resp);
580
- })
581
- .catch((error) => {
582
- reject(error);
583
- });
584
- });
585
- }
586
- }
587
-
588
- class AuthFetcher extends formConfigFetcher.ResourceFetcher {
554
+ class AuthFetcher extends ConfigStorage.ResourceFetcher {
589
555
  getData(resourceID) {
590
556
  const completePath = `cfg://auth/${resourceID}`;
591
557
  return new Promise((resolve, reject) => {
@@ -639,7 +605,7 @@ function normalizeValue(value) {
639
605
  }
640
606
  return value;
641
607
  }
642
- class FilterBarConfigFetcher extends formConfigFetcher.ResourceFetcher {
608
+ class FilterBarConfigFetcher extends ConfigStorage.ResourceFetcher {
643
609
  saveConfig(items, resourceID, configName) {
644
610
  const state = items.map(item => {
645
611
  const { id, value, fixed, visible } = item;
@@ -675,7 +641,7 @@ class FilterBarConfigFetcher extends formConfigFetcher.ResourceFetcher {
675
641
  }
676
642
  }
677
643
 
678
- class DefaultValuesFetcher extends formConfigFetcher.ResourceFetcher {
644
+ class DefaultValuesFetcher extends ConfigStorage.ResourceFetcher {
679
645
  getDefaultValues(resourceID) {
680
646
  return new Promise((resolve, reject) => {
681
647
  this.loadResource(`cfg://defaultValues/${resourceID}`)
@@ -871,7 +837,6 @@ const SnkApplication = class {
871
837
  }
872
838
  /**
873
839
  * Retorna a configuração de um recurso por service broker
874
- * Veja também o método "loadConfig"
875
840
  */
876
841
  async getConfig(key) {
877
842
  let payload = {
@@ -884,7 +849,7 @@ const SnkApplication = class {
884
849
  }
885
850
  };
886
851
  return new Promise((resolve, reject) => {
887
- formConfigFetcher.DataFetcher.get()
852
+ ConfigStorage.DataFetcher.get()
888
853
  .callServiceBroker("SystemUtilsSP.getConf", JSON.stringify(payload))
889
854
  .then(result => { var _a; return resolve((_a = result.config) === null || _a === void 0 ? void 0 : _a.data); })
890
855
  .catch(error => reject(error));
@@ -905,7 +870,7 @@ const SnkApplication = class {
905
870
  }
906
871
  };
907
872
  return new Promise((resolve, reject) => {
908
- formConfigFetcher.DataFetcher.get()
873
+ ConfigStorage.DataFetcher.get()
909
874
  .callServiceBroker("SystemUtilsSP.saveConf", JSON.stringify(payload))
910
875
  .then(result => resolve(result))
911
876
  .catch(error => reject(error));
@@ -1115,7 +1080,7 @@ const SnkApplication = class {
1115
1080
  }
1116
1081
  get urlParams() {
1117
1082
  if (!this._urlParams) {
1118
- this._urlParams = formConfigFetcher.UrlUtils.getQueryParams(location.search);
1083
+ this._urlParams = ConfigStorage.UrlUtils.getQueryParams(location.search);
1119
1084
  }
1120
1085
  return this._urlParams;
1121
1086
  }
@@ -1127,13 +1092,13 @@ const SnkApplication = class {
1127
1092
  }
1128
1093
  get formConfigFetcher() {
1129
1094
  if (!this._formConfigFetcher) {
1130
- this._formConfigFetcher = new formConfigFetcher.FormConfigFetcher();
1095
+ this._formConfigFetcher = new ConfigStorage.FormConfigFetcher();
1131
1096
  }
1132
1097
  return this._formConfigFetcher;
1133
1098
  }
1134
1099
  get gridConfigFetcher() {
1135
1100
  if (!this._gridConfigFetcher) {
1136
- this._gridConfigFetcher = new GridConfigFetcher();
1101
+ this._gridConfigFetcher = new ConfigStorage.GridConfigFetcher();
1137
1102
  }
1138
1103
  return this._gridConfigFetcher;
1139
1104
  }
@@ -1245,7 +1210,7 @@ const SnkApplication = class {
1245
1210
  componentWillLoad() {
1246
1211
  this._errorHandler = new SnkErrorHandler(this);
1247
1212
  this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder();
1248
- core.ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${formConfigFetcher.UrlUtils.getUrlBase()}/mge/upload/file`);
1213
+ core.ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${ConfigStorage.UrlUtils.getUrlBase()}/mge/upload/file`);
1249
1214
  core.ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit) => {
1250
1215
  return this.executeSearch(searchArgument, fieldName, dataUnit);
1251
1216
  });
@@ -1261,16 +1226,17 @@ const SnkApplication = class {
1261
1226
  });
1262
1227
  }
1263
1228
  core.ErrorTracking.init();
1229
+ ConfigStorage.ConfigStorage.get();
1264
1230
  this.getDefaultValues().then((defaultValues) => {
1265
1231
  this._defaultValues = defaultValues;
1266
1232
  });
1267
1233
  }
1268
1234
  connectedCallback() {
1269
1235
  core.ApplicationContext.setContextValue("__SNK__APPLICATION__", this);
1270
- formConfigFetcher.DataFetcher.addRequestListener(this._requestListener);
1236
+ ConfigStorage.DataFetcher.addRequestListener(this._requestListener);
1271
1237
  }
1272
1238
  disconnectedCallback() {
1273
- formConfigFetcher.DataFetcher.removeRequestListener(this._requestListener);
1239
+ ConfigStorage.DataFetcher.removeRequestListener(this._requestListener);
1274
1240
  }
1275
1241
  componentDidLoad() {
1276
1242
  this.applicationLoading.emit(true);
@@ -6,7 +6,7 @@ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
8
8
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
9
- const constants = require('./constants-9056ca9e.js');
9
+ const constants = require('./constants-a47a5190.js');
10
10
 
11
11
  const snkConfigOptionsCss = ".sc-snk-config-options-h{width:100%;border:2px solid var(--color--secondary-200);border-radius:15px}.config-options__switch-row.sc-snk-config-options{margin-top:-30px}";
12
12