@sankhyalabs/sankhyablocks 8.2.0-dev.1 → 8.2.0-rc.1

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 (222) hide show
  1. package/dist/cjs/{ConfigStorage-12397f18.js → ConfigStorage-e9d7fa82.js} +51 -163
  2. package/dist/cjs/{DataFetcher-f2da1f79.js → DataFetcher-39b63a1e.js} +29 -67
  3. package/dist/cjs/{SnkFormConfigManager-13f79e37.js → SnkFormConfigManager-2f8eccd9.js} +21 -19
  4. package/dist/cjs/{auth-fetcher-319a4cb2.js → auth-fetcher-d407c31c.js} +2 -2
  5. package/dist/cjs/{dataunit-fetcher-e72068c1.js → dataunit-fetcher-15a7cc88.js} +1 -1
  6. package/dist/cjs/filter-bar-config-fetcher-24548cec.js +155 -0
  7. package/dist/cjs/{form-config-fetcher-5d62ab62.js → form-config-fetcher-ab3ce222.js} +3 -66
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{pesquisa-fetcher-8c363096.js → pesquisa-fetcher-96c042aa.js} +1 -1
  10. package/dist/cjs/resource-fetcher-64102551.js +68 -0
  11. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  12. package/dist/cjs/snk-actions-button.cjs.entry.js +11 -18
  13. package/dist/cjs/snk-application.cjs.entry.js +44 -49
  14. package/dist/cjs/snk-attach.cjs.entry.js +13 -7
  15. package/dist/cjs/snk-configurator.cjs.entry.js +1 -2
  16. package/dist/cjs/snk-crud.cjs.entry.js +10 -25
  17. package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
  18. package/dist/cjs/{snk-data-unit-80a00ae4.js → snk-data-unit-e89e07bd.js} +3 -4
  19. package/dist/cjs/snk-data-unit.cjs.entry.js +1 -1
  20. package/dist/cjs/snk-detail-view.cjs.entry.js +12 -14
  21. package/dist/cjs/snk-entity-list.cjs.entry.js +4 -0
  22. package/dist/cjs/snk-filter-bar.cjs.entry.js +17 -14
  23. package/dist/cjs/snk-filter-detail.cjs.entry.js +15 -1
  24. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +19 -5
  25. package/dist/cjs/snk-form-config.cjs.entry.js +17 -6
  26. package/dist/cjs/snk-form-view.cjs.entry.js +1 -6
  27. package/dist/cjs/snk-form.cjs.entry.js +8 -12
  28. package/dist/cjs/snk-grid-config.cjs.entry.js +6 -5
  29. package/dist/cjs/snk-grid.cjs.entry.js +20 -17
  30. package/dist/cjs/{snk-guides-viewer-a7cd6fda.js → snk-guides-viewer-8518c61b.js} +7 -17
  31. package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -8
  32. package/dist/cjs/snk-personalized-filter.cjs.entry.js +16 -13
  33. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  34. package/dist/cjs/snk-simple-crud.cjs.entry.js +72 -20
  35. package/dist/cjs/snk-taskbar.cjs.entry.js +1 -2
  36. package/dist/collection/components/snk-actions-button/actions/index.js +4 -3
  37. package/dist/collection/components/snk-actions-button/snk-actions-button.js +4 -8
  38. package/dist/collection/components/snk-application/snk-application.js +65 -60
  39. package/dist/collection/components/snk-configurator/snk-configurator.js +1 -19
  40. package/dist/collection/components/snk-crud/snk-crud.js +6 -40
  41. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -42
  42. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +1 -27
  43. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +28 -47
  44. package/dist/collection/components/snk-data-unit/snk-data-unit.js +4 -21
  45. package/dist/collection/components/snk-entity-list/snk-entity-list.js +23 -0
  46. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +12 -2
  47. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +1 -1
  48. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +16 -21
  49. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +12 -28
  50. package/dist/collection/components/snk-form/SnkFormConfigManager.js +19 -17
  51. package/dist/collection/components/snk-form/snk-form.js +2 -46
  52. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +15 -5
  53. package/dist/collection/components/snk-grid/snk-grid.js +15 -51
  54. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +1 -19
  55. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +12 -28
  56. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +0 -22
  57. package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -19
  58. package/dist/collection/lib/configs/ConfigStorage.js +44 -33
  59. package/dist/collection/lib/dataUnit/InMemoryLoader.js +59 -2
  60. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +29 -38
  61. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +24 -0
  62. package/dist/collection/lib/index.js +0 -10
  63. package/dist/collection/lib/utils/urlutils.js +0 -29
  64. package/dist/components/ConfigStorage.js +48 -161
  65. package/dist/components/DataFetcher.js +29 -67
  66. package/dist/components/SnkFormConfigManager.js +19 -17
  67. package/dist/components/auth-fetcher.js +1 -1
  68. package/dist/components/filter-bar-config-fetcher.js +153 -0
  69. package/dist/components/form-config-fetcher.js +2 -64
  70. package/dist/components/resource-fetcher.js +66 -0
  71. package/dist/components/snk-actions-button2.js +9 -23
  72. package/dist/components/snk-application2.js +128 -134
  73. package/dist/components/snk-attach2.js +8 -1
  74. package/dist/components/snk-configurator2.js +1 -3
  75. package/dist/components/snk-crud.js +6 -23
  76. package/dist/components/snk-data-unit2.js +3 -5
  77. package/dist/components/snk-detail-view2.js +8 -20
  78. package/dist/components/snk-entity-list.js +4 -0
  79. package/dist/components/snk-filter-bar2.js +12 -12
  80. package/dist/components/snk-filter-detail2.js +12 -2
  81. package/dist/components/snk-filter-modal-item2.js +16 -5
  82. package/dist/components/snk-form-config2.js +15 -5
  83. package/dist/components/snk-form-view2.js +1 -6
  84. package/dist/components/snk-form.js +2 -9
  85. package/dist/components/snk-grid-config2.js +2 -4
  86. package/dist/components/snk-grid2.js +16 -17
  87. package/dist/components/snk-personalized-filter2.js +11 -11
  88. package/dist/components/snk-simple-crud2.js +60 -8
  89. package/dist/components/snk-taskbar2.js +1 -3
  90. package/dist/esm/{ConfigStorage-932ab366.js → ConfigStorage-1090289a.js} +49 -162
  91. package/dist/esm/{DataFetcher-7e18aa30.js → DataFetcher-a4ed43e7.js} +29 -67
  92. package/dist/esm/{SnkFormConfigManager-bb9afc3f.js → SnkFormConfigManager-de537eca.js} +21 -19
  93. package/dist/esm/{auth-fetcher-6d9664b7.js → auth-fetcher-c53e0d6c.js} +1 -1
  94. package/dist/esm/{dataunit-fetcher-91a4eb82.js → dataunit-fetcher-8d0bfa4a.js} +1 -1
  95. package/dist/esm/filter-bar-config-fetcher-2417b8cf.js +153 -0
  96. package/dist/esm/{form-config-fetcher-aaaa79a6.js → form-config-fetcher-4065db9a.js} +3 -65
  97. package/dist/esm/loader.js +1 -1
  98. package/dist/esm/{pesquisa-fetcher-56b30fb4.js → pesquisa-fetcher-7460b876.js} +1 -1
  99. package/dist/esm/resource-fetcher-45a70066.js +66 -0
  100. package/dist/esm/sankhyablocks.js +1 -1
  101. package/dist/esm/snk-actions-button.entry.js +11 -18
  102. package/dist/esm/snk-application.entry.js +44 -49
  103. package/dist/esm/snk-attach.entry.js +9 -3
  104. package/dist/esm/snk-configurator.entry.js +1 -2
  105. package/dist/esm/snk-crud.entry.js +10 -25
  106. package/dist/esm/snk-data-exporter.entry.js +2 -2
  107. package/dist/esm/{snk-data-unit-3ab57d1a.js → snk-data-unit-8c4d944d.js} +3 -4
  108. package/dist/esm/snk-data-unit.entry.js +1 -1
  109. package/dist/esm/snk-detail-view.entry.js +12 -14
  110. package/dist/esm/snk-entity-list.entry.js +4 -0
  111. package/dist/esm/snk-filter-bar.entry.js +17 -14
  112. package/dist/esm/snk-filter-detail.entry.js +16 -2
  113. package/dist/esm/snk-filter-modal-item.entry.js +20 -6
  114. package/dist/esm/snk-form-config.entry.js +18 -7
  115. package/dist/esm/snk-form-view.entry.js +1 -6
  116. package/dist/esm/snk-form.entry.js +8 -12
  117. package/dist/esm/snk-grid-config.entry.js +6 -5
  118. package/dist/esm/snk-grid.entry.js +20 -17
  119. package/dist/esm/{snk-guides-viewer-cc709b5f.js → snk-guides-viewer-cdecff6e.js} +7 -17
  120. package/dist/esm/snk-guides-viewer.entry.js +8 -8
  121. package/dist/esm/snk-personalized-filter.entry.js +16 -13
  122. package/dist/esm/snk-print-selector.entry.js +1 -1
  123. package/dist/esm/snk-simple-crud.entry.js +62 -10
  124. package/dist/esm/snk-taskbar.entry.js +1 -2
  125. package/dist/sankhyablocks/{p-d13c00b6.entry.js → p-0848ee4d.entry.js} +1 -1
  126. package/dist/sankhyablocks/p-0bd9c412.js +1 -0
  127. package/dist/sankhyablocks/p-0fb83448.js +1 -0
  128. package/dist/sankhyablocks/p-10b2aedc.entry.js +1 -0
  129. package/dist/sankhyablocks/p-1f63dcd4.entry.js +1 -0
  130. package/dist/sankhyablocks/p-216b2102.entry.js +1 -0
  131. package/dist/sankhyablocks/p-216f081a.entry.js +1 -0
  132. package/dist/sankhyablocks/{p-f8e6b97e.js → p-44e66c8d.js} +1 -1
  133. package/dist/sankhyablocks/p-4514fc6a.entry.js +1 -0
  134. package/dist/sankhyablocks/p-50c13cc8.entry.js +1 -0
  135. package/dist/sankhyablocks/p-52c6b2e7.js +1 -0
  136. package/dist/sankhyablocks/p-564efc43.js +1 -0
  137. package/dist/sankhyablocks/p-5994af77.js +56 -0
  138. package/dist/sankhyablocks/p-6bb904bb.entry.js +1 -0
  139. package/dist/sankhyablocks/p-6e06175e.entry.js +1 -0
  140. package/dist/sankhyablocks/p-6f0795c8.entry.js +1 -0
  141. package/dist/sankhyablocks/p-7588f006.entry.js +1 -0
  142. package/dist/sankhyablocks/p-847e6c20.js +17 -0
  143. package/dist/sankhyablocks/p-8f3652bf.entry.js +11 -0
  144. package/dist/sankhyablocks/p-9471cbc9.entry.js +1 -0
  145. package/dist/sankhyablocks/{p-14eac6fe.js → p-9d18017a.js} +1 -1
  146. package/dist/sankhyablocks/p-a42dd503.entry.js +1 -0
  147. package/dist/sankhyablocks/p-b04fb9d4.js +1 -0
  148. package/dist/sankhyablocks/{p-2d333d22.js → p-b978da60.js} +1 -1
  149. package/dist/sankhyablocks/p-befbc9ee.entry.js +1 -0
  150. package/dist/sankhyablocks/p-c32b9d7c.entry.js +1 -0
  151. package/dist/sankhyablocks/p-c6380ea2.entry.js +1 -0
  152. package/dist/sankhyablocks/{p-03bb1aea.entry.js → p-c6feb995.entry.js} +1 -1
  153. package/dist/sankhyablocks/p-d7c7a289.entry.js +1 -0
  154. package/dist/sankhyablocks/p-de69b4b0.entry.js +1 -0
  155. package/dist/sankhyablocks/p-f3b7b69e.js +10 -0
  156. package/dist/sankhyablocks/p-f7eded3a.entry.js +1 -0
  157. package/dist/sankhyablocks/p-ff7383b0.entry.js +1 -0
  158. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  159. package/dist/types/components/snk-actions-button/actions/index.d.ts +1 -2
  160. package/dist/types/components/snk-application/snk-application.d.ts +13 -8
  161. package/dist/types/components/snk-configurator/snk-configurator.d.ts +0 -4
  162. package/dist/types/components/snk-crud/snk-crud.d.ts +0 -5
  163. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +0 -8
  164. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +0 -5
  165. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +2 -9
  166. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +0 -4
  167. package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +4 -0
  168. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +3 -0
  169. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +1 -1
  170. package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +4 -5
  171. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +0 -4
  172. package/dist/types/components/snk-form/SnkFormConfigManager.d.ts +4 -5
  173. package/dist/types/components/snk-form/snk-form.d.ts +1 -9
  174. package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +2 -0
  175. package/dist/types/components/snk-grid/snk-grid.d.ts +1 -5
  176. package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +0 -4
  177. package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +1 -5
  178. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +0 -4
  179. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +0 -4
  180. package/dist/types/components.d.ts +21 -125
  181. package/dist/types/lib/configs/ConfigStorage.d.ts +13 -11
  182. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +7 -0
  183. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -1
  184. package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +1 -0
  185. package/dist/types/lib/index.d.ts +0 -11
  186. package/dist/types/lib/utils/urlutils.d.ts +0 -14
  187. package/package.json +2 -2
  188. package/dist/cjs/ISave-d68ce3cd.js +0 -8
  189. package/dist/cjs/ResourceIDUtils-5ff86aa7.js +0 -12
  190. package/dist/collection/lib/resourceid/ResourceIDUtils.js +0 -7
  191. package/dist/components/ResourceIDUtils.js +0 -10
  192. package/dist/esm/ISave-4412b20c.js +0 -8
  193. package/dist/esm/ResourceIDUtils-a114189a.js +0 -10
  194. package/dist/sankhyablocks/p-01739b21.entry.js +0 -1
  195. package/dist/sankhyablocks/p-05dbc70e.entry.js +0 -1
  196. package/dist/sankhyablocks/p-41e897f1.js +0 -56
  197. package/dist/sankhyablocks/p-48a40939.js +0 -1
  198. package/dist/sankhyablocks/p-611aa624.entry.js +0 -1
  199. package/dist/sankhyablocks/p-66bb8c20.entry.js +0 -1
  200. package/dist/sankhyablocks/p-688dcb4c.js +0 -1
  201. package/dist/sankhyablocks/p-6f154396.entry.js +0 -1
  202. package/dist/sankhyablocks/p-787071a8.js +0 -1
  203. package/dist/sankhyablocks/p-8481bb59.entry.js +0 -1
  204. package/dist/sankhyablocks/p-8818d8f6.entry.js +0 -1
  205. package/dist/sankhyablocks/p-93f6ca04.entry.js +0 -1
  206. package/dist/sankhyablocks/p-9a270401.entry.js +0 -1
  207. package/dist/sankhyablocks/p-9e7d65a4.js +0 -1
  208. package/dist/sankhyablocks/p-a52a6c9d.js +0 -26
  209. package/dist/sankhyablocks/p-b6003974.entry.js +0 -1
  210. package/dist/sankhyablocks/p-c555075c.entry.js +0 -1
  211. package/dist/sankhyablocks/p-d4f9ee17.entry.js +0 -1
  212. package/dist/sankhyablocks/p-d53a9169.entry.js +0 -1
  213. package/dist/sankhyablocks/p-d7638f45.entry.js +0 -11
  214. package/dist/sankhyablocks/p-e086cc2a.entry.js +0 -1
  215. package/dist/sankhyablocks/p-e64f3e17.entry.js +0 -1
  216. package/dist/sankhyablocks/p-ed41b38c.js +0 -1
  217. package/dist/sankhyablocks/p-ed705cbb.entry.js +0 -1
  218. package/dist/sankhyablocks/p-efc10705.entry.js +0 -1
  219. package/dist/sankhyablocks/p-f74fe358.js +0 -1
  220. package/dist/sankhyablocks/p-f91e0c5d.entry.js +0 -1
  221. package/dist/sankhyablocks/p-fa523d6b.entry.js +0 -1
  222. package/dist/types/lib/resourceid/ResourceIDUtils.d.ts +0 -3
@@ -28,7 +28,6 @@ export class SnkFilterBar {
28
28
  };
29
29
  this.dataUnit = undefined;
30
30
  this.configName = undefined;
31
- this.resourceID = undefined;
32
31
  this.filterConfig = undefined;
33
32
  this.messagesBuilder = undefined;
34
33
  this.allowDefault = undefined;
@@ -104,11 +103,11 @@ export class SnkFilterBar {
104
103
  return;
105
104
  }
106
105
  this._loadingPending = false;
107
- this.dataUnit.loadData(undefined, undefined, true);
106
+ this.dataUnit.loadData();
108
107
  }
109
108
  if (this._configUpdated) {
110
109
  this._configUpdated = false;
111
- ConfigStorage.saveFilterBarConfig(this.filterConfig, this.configName, this.resourceID);
110
+ ConfigStorage.saveFilterBarConfig(this.filterConfig, this.configName);
112
111
  }
113
112
  }
114
113
  /**
@@ -224,13 +223,15 @@ export class SnkFilterBar {
224
223
  }
225
224
  loadConfigFromStorage() {
226
225
  return new Promise(accept => {
227
- ConfigStorage.loadFilterBarConfig(this.configName, this.resourceID, { contextURI: this.dataUnit.name })
228
- .then((filters) => {
229
- accept();
230
- this.filterConfig = filters.map(item => this.normalizeItem(item));
231
- })
232
- .catch(reason => {
233
- throw new ErrorException(this.getMessage("snkFilterBar.failToLoadConfig"), reason);
226
+ ConfigStorage.get().then(instance => {
227
+ instance.loadFilterBarConfig(this.configName, { contextURI: this.dataUnit.name })
228
+ .then((filters) => {
229
+ accept();
230
+ this.filterConfig = filters.map(item => this.normalizeItem(item));
231
+ })
232
+ .catch(reason => {
233
+ throw new ErrorException(this.getMessage("snkFilterBar.failToLoadConfig"), reason);
234
+ });
234
235
  });
235
236
  });
236
237
  }
@@ -315,7 +316,7 @@ export class SnkFilterBar {
315
316
  return undefined;
316
317
  }
317
318
  if (this.showPersonalizedFilter) {
318
- return h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, onEzCancel: () => this.hidePersonalizedFilter(), entityUri: this.dataUnit.name, configName: this.configName, resourceID: this.resourceID });
319
+ return h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, onEzCancel: () => this.hidePersonalizedFilter(), entityUri: this.dataUnit.name, configName: this.configName });
319
320
  }
320
321
  return (h(Host, null, h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), h("ez-button", { class: "ez-padding-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
321
322
  }
@@ -370,23 +371,6 @@ export class SnkFilterBar {
370
371
  "attribute": "config-name",
371
372
  "reflect": false
372
373
  },
373
- "resourceID": {
374
- "type": "string",
375
- "mutable": false,
376
- "complexType": {
377
- "original": "string",
378
- "resolved": "string",
379
- "references": {}
380
- },
381
- "required": false,
382
- "optional": false,
383
- "docs": {
384
- "tags": [],
385
- "text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
386
- },
387
- "attribute": "resource-i-d",
388
- "reflect": false
389
- },
390
374
  "filterConfig": {
391
375
  "type": "unknown",
392
376
  "mutable": true,
@@ -2,27 +2,29 @@ import { ConfigStorage } from "../../lib/configs/ConfigStorage";
2
2
  import { ObjectUtils } from "@sankhyalabs/core";
3
3
  import { FormConfigFetcher } from "../../lib/http/data-fetcher/fetchers/form-config-fetcher";
4
4
  export class SnkFormConfigManager {
5
- constructor(configName, resourceID, onConfigChange) {
6
- this._resourceID = resourceID;
5
+ constructor(configName, onConfigChange) {
7
6
  this._configName = configName;
8
7
  this._onConfigChange = onConfigChange;
9
8
  }
10
9
  async loadConfig() {
11
10
  return new Promise(resolve => {
12
- ConfigStorage.loadFormConfig(this._configName, this._resourceID)
13
- .then((config) => {
14
- this.setConfig(config);
15
- resolve(config);
16
- })
17
- .catch((error) => {
18
- console.warn(error);
11
+ ConfigStorage.get()
12
+ .then((configStorage) => {
13
+ configStorage.loadFormConfig(this._configName)
14
+ .then((config) => {
15
+ this.setConfig(config);
16
+ resolve(config);
17
+ })
18
+ .catch((error) => {
19
+ console.warn(error);
20
+ });
19
21
  });
20
22
  });
21
23
  }
22
24
  saveConfig(config) {
23
25
  const configToSave = ObjectUtils.copy(config);
24
26
  return new Promise(accept => {
25
- ConfigStorage.saveFormConfig(config, this._configName, this._resourceID)
27
+ ConfigStorage.saveFormConfig(config, this._configName)
26
28
  .then((response) => {
27
29
  this.setConfig(Object.assign(Object.assign({}, configToSave), response));
28
30
  accept(Object.assign(Object.assign({}, configToSave), response));
@@ -37,7 +39,7 @@ export class SnkFormConfigManager {
37
39
  cardsState.set(cardId, propertyChanged === "fixed" ?
38
40
  this.updateFixSequence(Object.assign(Object.assign({}, currentConfig), { fixed: cardConfig.fixed }), cardsState)
39
41
  : Object.assign(Object.assign({}, currentConfig), { [propertyChanged]: cardConfig[propertyChanged] }));
40
- ConfigStorage.saveCardState(cardsState, this._configName, this._resourceID)
42
+ ConfigStorage.saveCardState(cardsState, this._configName)
41
43
  .then(savedCardConfig => {
42
44
  this._config = Object.assign(Object.assign({}, this._config), { cardsState });
43
45
  resolve(savedCardConfig);
@@ -113,17 +115,17 @@ export class SnkFormConfigManager {
113
115
  }
114
116
  return this._formConfigFetcher;
115
117
  }
116
- async fetchUserAvailableConfigs() {
118
+ async fetchUserAvailableConfigs(resourceID) {
117
119
  if (this._configName != undefined) {
118
120
  //FIXME: Precisamos preparar o backend para retornar as configurações disponíveis para details;
119
121
  return Promise.resolve(undefined);
120
122
  }
121
- return this.getFormConfigFetcher().fetchUserAvailableConfigs(this._configName, this._resourceID);
123
+ return this.getFormConfigFetcher().fetchUserAvailableConfigs(this._configName, resourceID);
122
124
  }
123
- async fetchLegacyConfig() {
124
- return this.getFormConfigFetcher().fetchLegacyConfig(this._configName, this._resourceID);
125
+ async fetchLegacyConfig(resourceID) {
126
+ return this.getFormConfigFetcher().fetchLegacyConfig(this._configName, resourceID);
125
127
  }
126
- async fetchDefaultConfig() {
127
- return this.getFormConfigFetcher().fetchDefaultConfig(this._configName, this._resourceID);
128
+ async fetchDefaultConfig(resourceID) {
129
+ return this.getFormConfigFetcher().fetchDefaultConfig(this._configName, resourceID);
128
130
  }
129
131
  }
@@ -1,7 +1,6 @@
1
1
  import { ElementIDUtils } from '@sankhyalabs/core';
2
2
  import { h } from '@stencil/core';
3
3
  import { SnkFormConfigManager } from './SnkFormConfigManager';
4
- import ResourceIDUtils from '../../lib/resourceid/ResourceIDUtils';
5
4
  export class SnkForm {
6
5
  constructor() {
7
6
  this._dataUnit = undefined;
@@ -11,7 +10,6 @@ export class SnkForm {
11
10
  this.configName = undefined;
12
11
  this.recordsValidator = undefined;
13
12
  this.messagesBuilder = undefined;
14
- this.resourceID = undefined;
15
13
  }
16
14
  /**
17
15
  * Exibe a janela de configurações do formulário.
@@ -32,7 +30,7 @@ export class SnkForm {
32
30
  const dataInfo = { dataUnit: this._dataUnit };
33
31
  ElementIDUtils.addIDInfo(this._element, null, dataInfo);
34
32
  }
35
- async componentWillLoad() {
33
+ componentWillLoad() {
36
34
  let parent = this._element.parentElement;
37
35
  while (parent) {
38
36
  if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
@@ -54,10 +52,7 @@ export class SnkForm {
54
52
  }
55
53
  parent = parent.parentElement;
56
54
  }
57
- if (this.resourceID == undefined) {
58
- this.resourceID = await ResourceIDUtils.getResourceID();
59
- }
60
- this._configManager = new SnkFormConfigManager(this.configName, this.resourceID);
55
+ this._configManager = new SnkFormConfigManager(this.configName);
61
56
  this._configManager.loadConfig();
62
57
  }
63
58
  render() {
@@ -137,23 +132,6 @@ export class SnkForm {
137
132
  "tags": [],
138
133
  "text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
139
134
  }
140
- },
141
- "resourceID": {
142
- "type": "string",
143
- "mutable": false,
144
- "complexType": {
145
- "original": "string",
146
- "resolved": "string",
147
- "references": {}
148
- },
149
- "required": false,
150
- "optional": false,
151
- "docs": {
152
- "tags": [],
153
- "text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
154
- },
155
- "attribute": "resource-i-d",
156
- "reflect": false
157
135
  }
158
136
  };
159
137
  }
@@ -196,28 +174,6 @@ export class SnkForm {
196
174
  "resolved": "string",
197
175
  "references": {}
198
176
  }
199
- }, {
200
- "method": "formItemsReady",
201
- "name": "formItemsReady",
202
- "bubbles": true,
203
- "cancelable": true,
204
- "composed": true,
205
- "docs": {
206
- "tags": [],
207
- "text": "Respons\u00E1vel por notificar quando ocorrer a renderiza\u00E7\u00E3o de itens do formul\u00E1rio."
208
- },
209
- "complexType": {
210
- "original": "Array<HTMLElement>",
211
- "resolved": "HTMLElement[]",
212
- "references": {
213
- "Array": {
214
- "location": "global"
215
- },
216
- "HTMLElement": {
217
- "location": "global"
218
- }
219
- }
220
- }
221
177
  }];
222
178
  }
223
179
  static get methods() {
@@ -1,6 +1,6 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import { Sortable } from '@shopify/draggable';
3
- import { ObjectUtils, ArrayUtils, ElementIDUtils } from '@sankhyalabs/core';
3
+ import { ApplicationContext, ObjectUtils, ArrayUtils, ElementIDUtils } from '@sankhyalabs/core';
4
4
  import { ApplicationUtils, DialogType } from "@sankhyalabs/ezui/dist/collection/utils";
5
5
  import { ACTION_CONFIG, CONFIG_EVENTS, DEFAULT_TYPE, TAB_NAMES } from "../../../../lib/utils/constants";
6
6
  import { UserConfigType } from "../../../../lib/http/data-fetcher/fetchers/form-config-fetcher";
@@ -446,10 +446,13 @@ export class SnkFormConfig {
446
446
  this._sortableGroup.on(CONFIG_EVENTS.dragStop, (evt) => this.controlStopDraggingGroup(evt));
447
447
  }
448
448
  loadUserConfig() {
449
+ if (this._applicationResourceID == undefined) {
450
+ return;
451
+ }
449
452
  if (this.configManager == undefined) {
450
453
  return;
451
454
  }
452
- this.configManager.fetchUserAvailableConfigs()
455
+ this.configManager.fetchUserAvailableConfigs(this._applicationResourceID)
453
456
  .then((userConfig) => {
454
457
  this._formConfigOptions = userConfig;
455
458
  if (this._formConfigOptions == undefined) {
@@ -503,6 +506,9 @@ export class SnkFormConfig {
503
506
  }
504
507
  }
505
508
  async loadConfigByUser() {
509
+ if (this._applicationResourceID == undefined) {
510
+ return;
511
+ }
506
512
  if (this.configManager == undefined) {
507
513
  return;
508
514
  }
@@ -512,10 +518,10 @@ export class SnkFormConfig {
512
518
  let config;
513
519
  switch (this._optionFormConfigSelected.origin) {
514
520
  case UserConfigType.DEFAULT:
515
- config = await this.configManager.fetchDefaultConfig();
521
+ config = await this.configManager.fetchDefaultConfig(this._applicationResourceID);
516
522
  break;
517
523
  case UserConfigType.DEFAULT:
518
- config = await this.configManager.fetchDefaultConfig();
524
+ config = await this.configManager.fetchDefaultConfig(this._applicationResourceID);
519
525
  break;
520
526
  }
521
527
  if (config != undefined) {
@@ -931,7 +937,11 @@ export class SnkFormConfig {
931
937
  this.controlSortableGroup();
932
938
  }
933
939
  componentWillLoad() {
934
- this.loadConfig();
940
+ this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
941
+ this._application.getResourceID().then(resourceID => {
942
+ this._applicationResourceID = resourceID;
943
+ this.loadConfig();
944
+ });
935
945
  }
936
946
  componentDidLoad() {
937
947
  const dataInfo = { dataUnit: this.dataUnit };
@@ -10,6 +10,7 @@ import SnkMultiSelectionListDataSource from './filtercolumn/SnkMultiSelectionLis
10
10
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
11
11
  export class SnkGrid {
12
12
  constructor() {
13
+ this._multiSelectionListDataSource = new SnkMultiSelectionListDataSource();
13
14
  this._topTaskbarProcessor = new TaskbarProcessor({
14
15
  "snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
15
16
  "snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
@@ -26,9 +27,7 @@ export class SnkGrid {
26
27
  this._dataState = undefined;
27
28
  this._gridConfig = undefined;
28
29
  this._popUpGridConfig = false;
29
- this.columnFilterDataSource = new SnkMultiSelectionListDataSource();
30
30
  this.configName = undefined;
31
- this.resourceID = undefined;
32
31
  this.selectionToastConfig = undefined;
33
32
  this.actionsList = undefined;
34
33
  this.isDetail = undefined;
@@ -87,17 +86,20 @@ export class SnkGrid {
87
86
  this._gridConfig = config;
88
87
  }
89
88
  loadConfig() {
90
- ConfigStorage.loadGridConfig(this.configName, this.resourceID)
91
- .then((config) => {
92
- this.setGridConfig(config);
93
- })
94
- .catch((error) => {
95
- console.warn(error);
89
+ ConfigStorage.get()
90
+ .then((instance) => {
91
+ instance.loadGridConfig(this.configName)
92
+ .then((config) => {
93
+ this.setGridConfig(config);
94
+ })
95
+ .catch((error) => {
96
+ console.warn(error);
97
+ });
96
98
  });
97
99
  }
98
100
  gridConfigChangeHandler(evt) {
99
101
  const config = evt.detail;
100
- ConfigStorage.saveGridConfig(config, this.configName, this.resourceID);
102
+ ConfigStorage.saveGridConfig(config, this.configName);
101
103
  evt.stopPropagation();
102
104
  }
103
105
  modalConfigChangeHandler(evt) {
@@ -210,11 +212,10 @@ export class SnkGrid {
210
212
  ElementIDUtils.addIDInfo(this._element, null, dataInfo);
211
213
  }
212
214
  finshLoading() {
213
- var _a, _b;
214
215
  this._dataUnitLoadLockerResolver = this._dataUnit.addLoadingLocker();
215
216
  this.addElementID();
216
- (_a = this.columnFilterDataSource) === null || _a === void 0 ? void 0 : _a.setApplication(this._application);
217
- (_b = this.columnFilterDataSource) === null || _b === void 0 ? void 0 : _b.setDataUnit(this._dataUnit);
217
+ this._multiSelectionListDataSource.setApplication(this._application);
218
+ this._multiSelectionListDataSource.setDataUnit(this._dataUnit);
218
219
  }
219
220
  componentWillLoad() {
220
221
  this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
@@ -305,8 +306,8 @@ export class SnkGrid {
305
306
  if (!this._dataUnit) {
306
307
  return undefined;
307
308
  }
308
- return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID }), ((_b = (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.filterConfig) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
309
- h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" }), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID })), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, onComponentReady: () => this.onEzGridReady(), columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.actionsList, resourceID: this.resourceID })), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
309
+ return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder }), ((_b = (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.filterConfig) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
310
+ h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" }), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton() })), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, onComponentReady: () => this.onEzGridReady(), columnfilterDataSource: this._multiSelectionListDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.actionsList })), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig() }))));
310
311
  }
311
312
  static get is() { return "snk-grid"; }
312
313
  static get encapsulation() { return "scoped"; }
@@ -322,26 +323,6 @@ export class SnkGrid {
322
323
  }
323
324
  static get properties() {
324
325
  return {
325
- "columnFilterDataSource": {
326
- "type": "unknown",
327
- "mutable": true,
328
- "complexType": {
329
- "original": "SnkMultiSelectionListDataSource",
330
- "resolved": "SnkMultiSelectionListDataSource",
331
- "references": {
332
- "SnkMultiSelectionListDataSource": {
333
- "location": "global"
334
- }
335
- }
336
- },
337
- "required": false,
338
- "optional": false,
339
- "docs": {
340
- "tags": [],
341
- "text": ""
342
- },
343
- "defaultValue": "new SnkMultiSelectionListDataSource()"
344
- },
345
326
  "configName": {
346
327
  "type": "string",
347
328
  "mutable": false,
@@ -359,23 +340,6 @@ export class SnkGrid {
359
340
  "attribute": "config-name",
360
341
  "reflect": false
361
342
  },
362
- "resourceID": {
363
- "type": "string",
364
- "mutable": false,
365
- "complexType": {
366
- "original": "string",
367
- "resolved": "string",
368
- "references": {}
369
- },
370
- "required": false,
371
- "optional": false,
372
- "docs": {
373
- "tags": [],
374
- "text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
375
- },
376
- "attribute": "resource-i-d",
377
- "reflect": false
378
- },
379
343
  "selectionToastConfig": {
380
344
  "type": "unknown",
381
345
  "mutable": false,
@@ -17,7 +17,6 @@ export class SnkGridConfig {
17
17
  this.columns = undefined;
18
18
  this.config = undefined;
19
19
  this.configName = undefined;
20
- this.resourceID = undefined;
21
20
  }
22
21
  /* Creation Methods */
23
22
  /**
@@ -241,7 +240,7 @@ export class SnkGridConfig {
241
240
  }
242
241
  }
243
242
  _newConfig.columns = _newColumnConfigList;
244
- ConfigStorage.saveGridConfig(_newConfig, this.configName, this.resourceID)
243
+ ConfigStorage.saveGridConfig(_newConfig, this.configName)
245
244
  .then((savedConfig) => {
246
245
  this.configChange.emit(savedConfig);
247
246
  this._orderList.clearHistory();
@@ -572,23 +571,6 @@ export class SnkGridConfig {
572
571
  },
573
572
  "attribute": "config-name",
574
573
  "reflect": false
575
- },
576
- "resourceID": {
577
- "type": "string",
578
- "mutable": false,
579
- "complexType": {
580
- "original": "string",
581
- "resolved": "string",
582
- "references": {}
583
- },
584
- "required": false,
585
- "optional": false,
586
- "docs": {
587
- "tags": [],
588
- "text": "Nome usado para salvar/recuperar a configura\u00E7\u00E3o."
589
- },
590
- "attribute": "resource-i-d",
591
- "reflect": false
592
574
  }
593
575
  };
594
576
  }
@@ -30,7 +30,6 @@ export class SnkPersonalizedFilter {
30
30
  this.entityUri = undefined;
31
31
  this.filterId = undefined;
32
32
  this.configName = undefined;
33
- this.resourceID = undefined;
34
33
  }
35
34
  /*
36
35
  * Cria um novo filtro se não houver nenhum filtro existente
@@ -67,15 +66,17 @@ export class SnkPersonalizedFilter {
67
66
  this._filterAssistent = ObjectUtils.copy(newPersonalizedFilter);
68
67
  }
69
68
  loadFilter(newValue, oldValue) {
70
- if (newValue == null || oldValue == newValue || this.resourceID == undefined) {
69
+ if (newValue == null || oldValue == newValue) {
71
70
  return;
72
71
  }
73
- ConfigStorage.loadPersonalizedFilter(newValue, this.resourceID, this.configName)
74
- .then((resp) => {
75
- const personalizedFilter = this.addLabelToItems(resp);
76
- this._filterAssistent = personalizedFilter;
77
- this._originalFilterAssistent = ObjectUtils.copy(personalizedFilter);
78
- this._filterAssistentMode = this._filterAssistent.hasOwnProperty("assistent") && this._filterAssistent.assistent != undefined;
72
+ ConfigStorage.get().then((_instance) => {
73
+ ConfigStorage.loadPersonalizedFilter(newValue, this.configName)
74
+ .then((resp) => {
75
+ const personalizedFilter = this.addLabelToItems(resp);
76
+ this._filterAssistent = personalizedFilter;
77
+ this._originalFilterAssistent = ObjectUtils.copy(personalizedFilter);
78
+ this._filterAssistentMode = this._filterAssistent.hasOwnProperty("assistent") && this._filterAssistent.assistent != undefined;
79
+ });
79
80
  });
80
81
  }
81
82
  componentWillLoad() {
@@ -100,7 +101,7 @@ export class SnkPersonalizedFilter {
100
101
  return this._application.messagesBuilder.getMessage(key, params);
101
102
  }
102
103
  saveFilter() {
103
- ConfigStorage.savePersonalizedFilter(this._filterAssistent, this.resourceID, this.configName).then((personalizedFilter) => {
104
+ ConfigStorage.savePersonalizedFilter(this._filterAssistent, this.configName).then((personalizedFilter) => {
104
105
  this._elButtonSave.enabled = false;
105
106
  const messageToken = !!this._filterAssistent.id ? 'confirmEdit' : 'confirmSave';
106
107
  ApplicationUtils.info(this.getMessage(`snkPersonalizedFilter.${messageToken}.title`), { iconName: "check" });
@@ -111,7 +112,7 @@ export class SnkPersonalizedFilter {
111
112
  });
112
113
  }
113
114
  removeFilter() {
114
- ConfigStorage.removePersonalizedFilter(this._filterAssistent, this.resourceID, this.configName);
115
+ ConfigStorage.removePersonalizedFilter(this._filterAssistent, this.configName);
115
116
  }
116
117
  hasChangesToSave() {
117
118
  return JSON.stringify(this._filterAssistent) === JSON.stringify(this._originalFilterAssistent);
@@ -360,27 +361,10 @@ export class SnkPersonalizedFilter {
360
361
  "optional": false,
361
362
  "docs": {
362
363
  "tags": [],
363
- "text": "Nome da configura\u00E7\u00E3o. Serve para distinguir v\u00E1rias inst\u00E2ncias do componente."
364
+ "text": "Nome da config para buscar no resourceId"
364
365
  },
365
366
  "attribute": "config-name",
366
367
  "reflect": false
367
- },
368
- "resourceID": {
369
- "type": "string",
370
- "mutable": false,
371
- "complexType": {
372
- "original": "string",
373
- "resolved": "string",
374
- "references": {}
375
- },
376
- "required": false,
377
- "optional": false,
378
- "docs": {
379
- "tags": [],
380
- "text": "Nome da configura\u00E7\u00E3o. Serve para distinguir v\u00E1rias inst\u00E2ncias do componente."
381
- },
382
- "attribute": "resource-i-d",
383
- "reflect": false
384
368
  }
385
369
  };
386
370
  }
@@ -452,28 +452,6 @@ export class SnkSimpleCrud {
452
452
  "resolved": "string",
453
453
  "references": {}
454
454
  }
455
- }, {
456
- "method": "formItemsReady",
457
- "name": "formItemsReady",
458
- "bubbles": true,
459
- "cancelable": true,
460
- "composed": true,
461
- "docs": {
462
- "tags": [],
463
- "text": "Respons\u00E1vel por notificar quando ocorrer a renderiza\u00E7\u00E3o de itens do formul\u00E1rio."
464
- },
465
- "complexType": {
466
- "original": "Array<HTMLElement>",
467
- "resolved": "HTMLElement[]",
468
- "references": {
469
- "Array": {
470
- "location": "global"
471
- },
472
- "HTMLElement": {
473
- "location": "global"
474
- }
475
- }
476
- }
477
455
  }];
478
456
  }
479
457
  static get methods() {
@@ -23,7 +23,6 @@ export class SnkTaskbar {
23
23
  };
24
24
  this._permissions = undefined;
25
25
  this.configName = undefined;
26
- this.resourceID = undefined;
27
26
  this.buttons = undefined;
28
27
  this.customButtons = undefined;
29
28
  this.actionsList = undefined;
@@ -165,7 +164,7 @@ export class SnkTaskbar {
165
164
  componentWillLoad() {
166
165
  this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
167
166
  if (this._application) {
168
- this._application.getAllAccess(this.resourceID).then(access => this._permissions = access);
167
+ this._application.getAllAccess().then(access => this._permissions = access);
169
168
  }
170
169
  else {
171
170
  this._permissions = {};
@@ -233,23 +232,6 @@ export class SnkTaskbar {
233
232
  "attribute": "config-name",
234
233
  "reflect": false
235
234
  },
236
- "resourceID": {
237
- "type": "string",
238
- "mutable": false,
239
- "complexType": {
240
- "original": "string",
241
- "resolved": "string",
242
- "references": {}
243
- },
244
- "required": false,
245
- "optional": false,
246
- "docs": {
247
- "tags": [],
248
- "text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
249
- },
250
- "attribute": "resource-i-d",
251
- "reflect": false
252
- },
253
235
  "buttons": {
254
236
  "type": "string",
255
237
  "mutable": false,