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

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 (47) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  3. package/dist/cjs/snk-application.cjs.entry.js +3 -3
  4. package/dist/cjs/snk-crud.cjs.entry.js +6 -0
  5. package/dist/cjs/snk-filter-bar_5.cjs.entry.js +7 -26
  6. package/dist/cjs/snk-filter-detail.cjs.entry.js +30 -19
  7. package/dist/cjs/snk-filter-personalized.cjs.entry.js +0 -9
  8. package/dist/cjs/snk-filter-search.cjs.entry.js +0 -9
  9. package/dist/collection/components/snk-crud/snk-crud.js +29 -0
  10. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +0 -39
  11. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +0 -39
  12. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +30 -36
  13. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +3 -14
  14. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +4 -12
  15. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +3 -3
  16. package/dist/components/snk-application2.js +3 -3
  17. package/dist/components/snk-crud.js +8 -1
  18. package/dist/components/snk-filter-detail2.js +30 -20
  19. package/dist/components/snk-filter-item2.js +3 -14
  20. package/dist/components/snk-filter-list2.js +4 -12
  21. package/dist/components/snk-filter-personalized.js +1 -12
  22. package/dist/components/snk-filter-search.js +1 -12
  23. package/dist/esm/loader.js +1 -1
  24. package/dist/esm/sankhyablocks.js +1 -1
  25. package/dist/esm/snk-application.entry.js +3 -3
  26. package/dist/esm/snk-crud.entry.js +6 -0
  27. package/dist/esm/snk-filter-bar_5.entry.js +7 -26
  28. package/dist/esm/snk-filter-detail.entry.js +30 -19
  29. package/dist/esm/snk-filter-personalized.entry.js +0 -9
  30. package/dist/esm/snk-filter-search.entry.js +0 -9
  31. package/dist/sankhyablocks/p-01823784.entry.js +1 -0
  32. package/dist/sankhyablocks/{p-dc482a42.entry.js → p-6f8303f3.entry.js} +1 -1
  33. package/dist/sankhyablocks/p-746fc78b.entry.js +1 -0
  34. package/dist/sankhyablocks/p-77216252.entry.js +1 -0
  35. package/dist/sankhyablocks/{p-9be74b46.entry.js → p-8bbc0cbb.entry.js} +1 -1
  36. package/dist/sankhyablocks/p-eea6444c.entry.js +1 -0
  37. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  38. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +0 -2
  39. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +0 -2
  40. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -1
  41. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +1 -1
  42. package/dist/types/components.d.ts +4 -10
  43. package/package.json +1 -1
  44. package/dist/sankhyablocks/p-322c0df2.entry.js +0 -1
  45. package/dist/sankhyablocks/p-473cedf9.entry.js +0 -1
  46. package/dist/sankhyablocks/p-a8b59c61.entry.js +0 -1
  47. package/dist/sankhyablocks/p-c78cb79a.entry.js +0 -1
@@ -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([["snk-crud.cjs",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"_dataUnit":[32],"_dataState":[32]}]]],["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]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"fix":[16],"unfix":[16]},[[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-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],"alert":[64],"error":[64],"success":[64],"message":[64],"confirm":[64],"info":[64],"loadFormConfig":[64],"loadGridConfig":[64],"loadTotals":[64],"saveGridConfig":[64],"getFilterBarConfig":[64],"saveFilterBarConfig":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"keepOpened":[1028,"keep-opened"],"getMessage":[16]}]]],["snk-filter-bar_5.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32]},[[0,"filterChange","filterChangeListener"]]],[0,"snk-filter-item",{"config":[1040],"getMessage":[16],"detailIsVisible":[32],"showUp":[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]}],[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]}],[6,"snk-taskbar",{"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"_permissions":[32]}]]],["snk-form_2.cjs",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_gridConfig":[32]}],[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32]}]]]], options);
17
+ return index.bootstrapLazy([["snk-crud.cjs",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"_dataUnit":[32],"_dataState":[32],"goToView":[64]}]]],["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]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16]},[[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-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],"alert":[64],"error":[64],"success":[64],"message":[64],"confirm":[64],"info":[64],"loadFormConfig":[64],"loadGridConfig":[64],"loadTotals":[64],"saveGridConfig":[64],"getFilterBarConfig":[64],"saveFilterBarConfig":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16]}]]],["snk-filter-bar_5.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32]},[[0,"filterChange","filterChangeListener"]]],[0,"snk-filter-item",{"config":[1040],"getMessage":[16],"detailIsVisible":[32],"showUp":[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]}],[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]}],[6,"snk-taskbar",{"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"_permissions":[32]}]]],["snk-form_2.cjs",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_gridConfig":[32]}],[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32]}]]]], 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([["snk-crud.cjs",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"_dataUnit":[32],"_dataState":[32]}]]],["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]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"fix":[16],"unfix":[16]},[[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-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],"alert":[64],"error":[64],"success":[64],"message":[64],"confirm":[64],"info":[64],"loadFormConfig":[64],"loadGridConfig":[64],"loadTotals":[64],"saveGridConfig":[64],"getFilterBarConfig":[64],"saveFilterBarConfig":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"keepOpened":[1028,"keep-opened"],"getMessage":[16]}]]],["snk-filter-bar_5.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32]},[[0,"filterChange","filterChangeListener"]]],[0,"snk-filter-item",{"config":[1040],"getMessage":[16],"detailIsVisible":[32],"showUp":[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]}],[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]}],[6,"snk-taskbar",{"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"_permissions":[32]}]]],["snk-form_2.cjs",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_gridConfig":[32]}],[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32]}]]]], options);
18
+ return index.bootstrapLazy([["snk-crud.cjs",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"_dataUnit":[32],"_dataState":[32],"goToView":[64]}]]],["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]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16]},[[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-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],"alert":[64],"error":[64],"success":[64],"message":[64],"confirm":[64],"info":[64],"loadFormConfig":[64],"loadGridConfig":[64],"loadTotals":[64],"saveGridConfig":[64],"getFilterBarConfig":[64],"saveFilterBarConfig":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16]}]]],["snk-filter-bar_5.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32]},[[0,"filterChange","filterChangeListener"]]],[0,"snk-filter-item",{"config":[1040],"getMessage":[16],"detailIsVisible":[32],"showUp":[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]}],[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]}],[6,"snk-taskbar",{"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"_permissions":[32]}]]],["snk-form_2.cjs",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_gridConfig":[32]}],[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32]}]]]], options);
19
19
  });
@@ -6538,14 +6538,14 @@ class DataFetcher {
6538
6538
  return UrlUtils.getUrlBase();
6539
6539
  }
6540
6540
  getContext(module) {
6541
+ var _a;
6541
6542
  const urlParams = UrlUtils.getQueryParams(location.search);
6542
6543
  return {
6543
6544
  baseUrl: `${this.resolveURL()}/${module}/service.sbr`,
6544
6545
  appName: "SankhyaBlocks",
6545
- mgeSession: `${window['skw_session'] || urlParams.mgeSession}`,
6546
+ mgeSession: `${window['skw_session'] || urlParams.get("mgeSession")}`,
6546
6547
  globalID: "85C0093DFA240EAB699B4E47A10215BD",
6547
- //FIXME: Precisamos ajustar para buscar o resourceId pela aplicação
6548
- resourceID: "br.com.sankhya.mov.bancaria"
6548
+ resourceID: (window["resourceID"] || ((_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID))
6549
6549
  };
6550
6550
  }
6551
6551
  async callServiceBroker(serviceName, payload) {
@@ -14,6 +14,12 @@ const SnkCrud = class {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.actionClick = index.createEvent(this, "actionClick", 7);
16
16
  }
17
+ /**
18
+ * Usado para alternar a visão entre GRID e FORM externamente.
19
+ */
20
+ async goToView(mode) {
21
+ this.executeAction(mode);
22
+ }
17
23
  async gridToForm(keepFormMode = false) {
18
24
  this._backToGrid = !keepFormMode && await this._viewStack.getSelectedIndex() === GRID_MODE;
19
25
  this._viewStack.show(FORM_MODE);
@@ -469,21 +469,10 @@ const SnkFilterItem = class {
469
469
  constructor(hostRef) {
470
470
  index.registerInstance(this, hostRef);
471
471
  this.filterChange = index.createEvent(this, "filterChange", 7);
472
- this.innerClickCheck = (floatingContainer, node) => {
473
- if (this._popover.keepOpened) {
472
+ this.innerClickCheck = (_floatingContainer, node) => {
473
+ if (node.id != core.FloatingManager.MODAL_ELEMENT_ID) {
474
474
  return true;
475
475
  }
476
- if (node && floatingContainer) {
477
- if (!node.offsetParent) {
478
- return true;
479
- }
480
- let current = node;
481
- do {
482
- if (current === floatingContainer) {
483
- return true;
484
- }
485
- } while ((current = current.offsetParent) != null);
486
- }
487
476
  this.detailIsVisible = false;
488
477
  this.executeCloseCallback();
489
478
  return false;
@@ -501,7 +490,7 @@ const SnkFilterItem = class {
501
490
  });
502
491
  }
503
492
  showDetail() {
504
- this._floatingID = core.FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck, left: this.getScrollOffset() });
493
+ this._floatingID = core.FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck, left: this.getScrollOffset(), useOverlay: true });
505
494
  this.detailIsVisible = true;
506
495
  }
507
496
  getScrollOffset() {
@@ -639,24 +628,16 @@ const SnkFilterList = class {
639
628
  constructor(hostRef) {
640
629
  index.registerInstance(this, hostRef);
641
630
  this.snkItemSelected = index.createEvent(this, "snkItemSelected", 7);
642
- this.innerClickCheck = (floatingContainer, node) => {
643
- if (node && floatingContainer) {
644
- if (!node.offsetParent) {
645
- return true;
646
- }
647
- let current = node;
648
- do {
649
- if (current === floatingContainer || current === this._element) {
650
- return true;
651
- }
652
- } while ((current = current.offsetParent) != null);
631
+ this.innerClickCheck = (_floatingContainer, node) => {
632
+ if (node.id != core.FloatingManager.MODAL_ELEMENT_ID) {
633
+ return true;
653
634
  }
654
635
  this._detailIsVisible = false;
655
636
  return false;
656
637
  };
657
638
  }
658
639
  showList() {
659
- this._floatingID = core.FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck });
640
+ this._floatingID = core.FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck, useOverlay: true });
660
641
  this._detailIsVisible = true;
661
642
  this._showAll = false;
662
643
  this._filterArgument = "";
@@ -45,39 +45,50 @@ const SnkFilterDetail = class {
45
45
  }
46
46
  apply() {
47
47
  var _a;
48
+ let value = this._editor["value"];
48
49
  let isValid = true;
49
- const value = this._editor["value"];
50
- /* WARNING: Temporário. Isso só está sendo feito até desconsiderar os parametros não informados para PersonalizedFilter*/
51
- if (value != undefined && this.config.type === filterItemType_enum.FilterItemType.PERSONALIZED) {
50
+ if (this.config.type === filterItemType_enum.FilterItemType.PERSONALIZED) {
52
51
  const params = ((_a = this.config.props.personalizedFilter) === null || _a === void 0 ? void 0 : _a.parameters) || [];
53
- if (params.length > 1) {
54
- if (params.length > value.length) {
55
- isValid = false;
56
- }
57
- else {
58
- value.forEach(item => {
59
- if (item == undefined) {
60
- isValid = false;
61
- }
62
- });
63
- }
52
+ const paramsCount = params.length;
53
+ if (paramsCount === 0) {
54
+ //Valor do filtro personalizado sem parametros deve ser um array vazio
55
+ value = [];
64
56
  }
65
- if (!isValid) {
66
- this.keepOpened = true;
67
- utils.ApplicationUtils.alert("Filtro parcialmente preenchido", "Favor completar todas as informações do filtro.").then(() => setTimeout(() => this.keepOpened = false, 1));
57
+ else {
58
+ isValid = this.validateAllFilled(paramsCount, value);
68
59
  }
69
60
  }
70
- /* WARNING: Temporário.*/
71
61
  if (isValid) {
72
62
  this.changeConfig(Object.assign(Object.assign({}, this.config), { value: value }));
73
63
  }
74
64
  }
65
+ /* WARNING: Temporário. Isso só está sendo feito até desconsiderar os parametros não informados para PersonalizedFilter*/
66
+ validateAllFilled(paramsCount, value) {
67
+ let isValid = true;
68
+ if (value != undefined && paramsCount > 1) {
69
+ if (paramsCount > value.length) {
70
+ isValid = false;
71
+ }
72
+ else {
73
+ value.forEach(item => {
74
+ if (item == undefined) {
75
+ isValid = false;
76
+ }
77
+ });
78
+ }
79
+ }
80
+ if (!isValid) {
81
+ utils.ApplicationUtils.alert("Filtro parcialmente preenchido", "Favor completar todas as informações do filtro.");
82
+ }
83
+ return isValid;
84
+ }
85
+ /* WARNING: Temporário.*/
75
86
  clear() {
76
87
  this.changeConfig(Object.assign(Object.assign({}, this.config), { value: undefined }));
77
88
  }
78
89
  render() {
79
90
  const ContentEditor = this.getContentEditor();
80
- return (index.h(index.Host, null, index.h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, index.h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), index.h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config, fix: () => this.keepOpened = true, unfix: () => this.keepOpened = false }), index.h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), index.h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, index.h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), index.h("ez-button", { label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
91
+ return (index.h(index.Host, null, index.h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, index.h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), index.h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config }), index.h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), index.h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, index.h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), index.h("ez-button", { label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
81
92
  }
82
93
  };
83
94
 
@@ -35,21 +35,12 @@ const SnkFilterPersonalized = class {
35
35
  }
36
36
  doSearch(mode, argument, param) {
37
37
  const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
38
- if (this.fix) {
39
- this.fix();
40
- }
41
38
  return new Promise((resolve, reject) => {
42
39
  application.executePreparedSearch(mode, argument, param.searchContext)
43
40
  .then(result => {
44
41
  resolve(result);
45
- if (this.unfix) {
46
- this.unfix();
47
- }
48
42
  }).catch(reason => {
49
43
  reject(reason);
50
- if (this.unfix) {
51
- this.unfix();
52
- }
53
44
  });
54
45
  });
55
46
  }
@@ -15,21 +15,12 @@ const SnkFilterSearch = class {
15
15
  }
16
16
  doSearch(mode, argument) {
17
17
  const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
18
- if (this.fix) {
19
- this.fix();
20
- }
21
18
  return new Promise((resolve, reject) => {
22
19
  application.executePreparedSearch(mode, argument, this.config.props.searchContext)
23
20
  .then(result => {
24
21
  resolve(result);
25
- if (this.unfix) {
26
- this.unfix();
27
- }
28
22
  }).catch(reason => {
29
23
  reject(reason);
30
- if (this.unfix) {
31
- this.unfix();
32
- }
33
24
  });
34
25
  });
35
26
  }
@@ -8,6 +8,12 @@ const FORM_MODE = 1;
8
8
  * Para conhecer os detalhes do módulo, vide os arquivos neste projeto "/src/lib/message/resources/*.msg.ts"
9
9
  */
10
10
  export class SnkCrud {
11
+ /**
12
+ * Usado para alternar a visão entre GRID e FORM externamente.
13
+ */
14
+ async goToView(mode) {
15
+ this.executeAction(mode);
16
+ }
11
17
  async gridToForm(keepFormMode = false) {
12
18
  this._backToGrid = !keepFormMode && await this._viewStack.getSelectedIndex() === GRID_MODE;
13
19
  this._viewStack.show(FORM_MODE);
@@ -197,5 +203,28 @@ export class SnkCrud {
197
203
  }
198
204
  }];
199
205
  }
206
+ static get methods() {
207
+ return {
208
+ "goToView": {
209
+ "complexType": {
210
+ "signature": "(mode: string) => Promise<void>",
211
+ "parameters": [{
212
+ "tags": [],
213
+ "text": ""
214
+ }],
215
+ "references": {
216
+ "Promise": {
217
+ "location": "global"
218
+ }
219
+ },
220
+ "return": "Promise<void>"
221
+ },
222
+ "docs": {
223
+ "text": "Usado para alternar a vis\u00E3o entre GRID e FORM externamente.",
224
+ "tags": []
225
+ }
226
+ }
227
+ };
228
+ }
200
229
  static get elementRef() { return "_element"; }
201
230
  }
@@ -27,21 +27,12 @@ export class SnkFilterPersonalized {
27
27
  }
28
28
  doSearch(mode, argument, param) {
29
29
  const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
30
- if (this.fix) {
31
- this.fix();
32
- }
33
30
  return new Promise((resolve, reject) => {
34
31
  application.executePreparedSearch(mode, argument, param.searchContext)
35
32
  .then(result => {
36
33
  resolve(result);
37
- if (this.unfix) {
38
- this.unfix();
39
- }
40
34
  }).catch(reason => {
41
35
  reject(reason);
42
- if (this.unfix) {
43
- this.unfix();
44
- }
45
36
  });
46
37
  });
47
38
  }
@@ -125,36 +116,6 @@ export class SnkFilterPersonalized {
125
116
  "tags": [],
126
117
  "text": ""
127
118
  }
128
- },
129
- "fix": {
130
- "type": "unknown",
131
- "mutable": false,
132
- "complexType": {
133
- "original": "()=>void",
134
- "resolved": "() => void",
135
- "references": {}
136
- },
137
- "required": false,
138
- "optional": false,
139
- "docs": {
140
- "tags": [],
141
- "text": ""
142
- }
143
- },
144
- "unfix": {
145
- "type": "unknown",
146
- "mutable": false,
147
- "complexType": {
148
- "original": "()=>void",
149
- "resolved": "() => void",
150
- "references": {}
151
- },
152
- "required": false,
153
- "optional": false,
154
- "docs": {
155
- "tags": [],
156
- "text": ""
157
- }
158
119
  }
159
120
  };
160
121
  }
@@ -7,21 +7,12 @@ export class SnkFilterSearch {
7
7
  }
8
8
  doSearch(mode, argument) {
9
9
  const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
10
- if (this.fix) {
11
- this.fix();
12
- }
13
10
  return new Promise((resolve, reject) => {
14
11
  application.executePreparedSearch(mode, argument, this.config.props.searchContext)
15
12
  .then(result => {
16
13
  resolve(result);
17
- if (this.unfix) {
18
- this.unfix();
19
- }
20
14
  }).catch(reason => {
21
15
  reject(reason);
22
- if (this.unfix) {
23
- this.unfix();
24
- }
25
16
  });
26
17
  });
27
18
  }
@@ -73,36 +64,6 @@ export class SnkFilterSearch {
73
64
  "tags": [],
74
65
  "text": ""
75
66
  }
76
- },
77
- "fix": {
78
- "type": "unknown",
79
- "mutable": false,
80
- "complexType": {
81
- "original": "()=>void",
82
- "resolved": "() => void",
83
- "references": {}
84
- },
85
- "required": false,
86
- "optional": false,
87
- "docs": {
88
- "tags": [],
89
- "text": ""
90
- }
91
- },
92
- "unfix": {
93
- "type": "unknown",
94
- "mutable": false,
95
- "complexType": {
96
- "original": "()=>void",
97
- "resolved": "() => void",
98
- "references": {}
99
- },
100
- "required": false,
101
- "optional": false,
102
- "docs": {
103
- "tags": [],
104
- "text": ""
105
- }
106
67
  }
107
68
  };
108
69
  }
@@ -36,39 +36,50 @@ export class SnkFilterDetail {
36
36
  }
37
37
  apply() {
38
38
  var _a;
39
+ let value = this._editor["value"];
39
40
  let isValid = true;
40
- const value = this._editor["value"];
41
- /* WARNING: Temporário. Isso só está sendo feito até desconsiderar os parametros não informados para PersonalizedFilter*/
42
- if (value != undefined && this.config.type === FilterItemType.PERSONALIZED) {
41
+ if (this.config.type === FilterItemType.PERSONALIZED) {
43
42
  const params = ((_a = this.config.props.personalizedFilter) === null || _a === void 0 ? void 0 : _a.parameters) || [];
44
- if (params.length > 1) {
45
- if (params.length > value.length) {
46
- isValid = false;
47
- }
48
- else {
49
- value.forEach(item => {
50
- if (item == undefined) {
51
- isValid = false;
52
- }
53
- });
54
- }
43
+ const paramsCount = params.length;
44
+ if (paramsCount === 0) {
45
+ //Valor do filtro personalizado sem parametros deve ser um array vazio
46
+ value = [];
55
47
  }
56
- if (!isValid) {
57
- this.keepOpened = true;
58
- ApplicationUtils.alert("Filtro parcialmente preenchido", "Favor completar todas as informações do filtro.").then(() => setTimeout(() => this.keepOpened = false, 1));
48
+ else {
49
+ isValid = this.validateAllFilled(paramsCount, value);
59
50
  }
60
51
  }
61
- /* WARNING: Temporário.*/
62
52
  if (isValid) {
63
53
  this.changeConfig(Object.assign(Object.assign({}, this.config), { value: value }));
64
54
  }
65
55
  }
56
+ /* WARNING: Temporário. Isso só está sendo feito até desconsiderar os parametros não informados para PersonalizedFilter*/
57
+ validateAllFilled(paramsCount, value) {
58
+ let isValid = true;
59
+ if (value != undefined && paramsCount > 1) {
60
+ if (paramsCount > value.length) {
61
+ isValid = false;
62
+ }
63
+ else {
64
+ value.forEach(item => {
65
+ if (item == undefined) {
66
+ isValid = false;
67
+ }
68
+ });
69
+ }
70
+ }
71
+ if (!isValid) {
72
+ ApplicationUtils.alert("Filtro parcialmente preenchido", "Favor completar todas as informações do filtro.");
73
+ }
74
+ return isValid;
75
+ }
76
+ /* WARNING: Temporário.*/
66
77
  clear() {
67
78
  this.changeConfig(Object.assign(Object.assign({}, this.config), { value: undefined }));
68
79
  }
69
80
  render() {
70
81
  const ContentEditor = this.getContentEditor();
71
- return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config, fix: () => this.keepOpened = true, unfix: () => this.keepOpened = false }), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), h("ez-button", { label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
82
+ return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config }), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), h("ez-button", { label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
72
83
  }
73
84
  static get is() { return "snk-filter-detail"; }
74
85
  static get properties() {
@@ -93,23 +104,6 @@ export class SnkFilterDetail {
93
104
  "text": ""
94
105
  }
95
106
  },
96
- "keepOpened": {
97
- "type": "boolean",
98
- "mutable": true,
99
- "complexType": {
100
- "original": "boolean",
101
- "resolved": "boolean",
102
- "references": {}
103
- },
104
- "required": false,
105
- "optional": false,
106
- "docs": {
107
- "tags": [],
108
- "text": ""
109
- },
110
- "attribute": "keep-opened",
111
- "reflect": false
112
- },
113
107
  "getMessage": {
114
108
  "type": "unknown",
115
109
  "mutable": false,
@@ -3,21 +3,10 @@ import { h, Host } from '@stencil/core';
3
3
  import FilterItemType from './filter-item-type.enum';
4
4
  export class SnkFilterItem {
5
5
  constructor() {
6
- this.innerClickCheck = (floatingContainer, node) => {
7
- if (this._popover.keepOpened) {
6
+ this.innerClickCheck = (_floatingContainer, node) => {
7
+ if (node.id != FloatingManager.MODAL_ELEMENT_ID) {
8
8
  return true;
9
9
  }
10
- if (node && floatingContainer) {
11
- if (!node.offsetParent) {
12
- return true;
13
- }
14
- let current = node;
15
- do {
16
- if (current === floatingContainer) {
17
- return true;
18
- }
19
- } while ((current = current.offsetParent) != null);
20
- }
21
10
  this.detailIsVisible = false;
22
11
  this.executeCloseCallback();
23
12
  return false;
@@ -35,7 +24,7 @@ export class SnkFilterItem {
35
24
  });
36
25
  }
37
26
  showDetail() {
38
- this._floatingID = FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck, left: this.getScrollOffset() });
27
+ this._floatingID = FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck, left: this.getScrollOffset(), useOverlay: true });
39
28
  this.detailIsVisible = true;
40
29
  }
41
30
  getScrollOffset() {
@@ -4,24 +4,16 @@ const SHOW_MORE_ITEM_NAME = "__SHOWMORE__";
4
4
  const MAX_FILTERS = 5;
5
5
  export class SnkFilterList {
6
6
  constructor() {
7
- this.innerClickCheck = (floatingContainer, node) => {
8
- if (node && floatingContainer) {
9
- if (!node.offsetParent) {
10
- return true;
11
- }
12
- let current = node;
13
- do {
14
- if (current === floatingContainer || current === this._element) {
15
- return true;
16
- }
17
- } while ((current = current.offsetParent) != null);
7
+ this.innerClickCheck = (_floatingContainer, node) => {
8
+ if (node.id != FloatingManager.MODAL_ELEMENT_ID) {
9
+ return true;
18
10
  }
19
11
  this._detailIsVisible = false;
20
12
  return false;
21
13
  };
22
14
  }
23
15
  showList() {
24
- this._floatingID = FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck });
16
+ this._floatingID = FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck, useOverlay: true });
25
17
  this._detailIsVisible = true;
26
18
  this._showAll = false;
27
19
  this._filterArgument = "";
@@ -83,14 +83,14 @@ export class DataFetcher {
83
83
  return UrlUtils.getUrlBase();
84
84
  }
85
85
  getContext(module) {
86
+ var _a;
86
87
  const urlParams = UrlUtils.getQueryParams(location.search);
87
88
  return {
88
89
  baseUrl: `${this.resolveURL()}/${module}/service.sbr`,
89
90
  appName: "SankhyaBlocks",
90
- mgeSession: `${window['skw_session'] || urlParams.mgeSession}`,
91
+ mgeSession: `${window['skw_session'] || urlParams.get("mgeSession")}`,
91
92
  globalID: "85C0093DFA240EAB699B4E47A10215BD",
92
- //FIXME: Precisamos ajustar para buscar o resourceId pela aplicação
93
- resourceID: "br.com.sankhya.mov.bancaria"
93
+ resourceID: (window["resourceID"] || ((_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID))
94
94
  };
95
95
  }
96
96
  async callServiceBroker(serviceName, payload) {
@@ -6535,14 +6535,14 @@ class DataFetcher {
6535
6535
  return UrlUtils.getUrlBase();
6536
6536
  }
6537
6537
  getContext(module) {
6538
+ var _a;
6538
6539
  const urlParams = UrlUtils.getQueryParams(location.search);
6539
6540
  return {
6540
6541
  baseUrl: `${this.resolveURL()}/${module}/service.sbr`,
6541
6542
  appName: "SankhyaBlocks",
6542
- mgeSession: `${window['skw_session'] || urlParams.mgeSession}`,
6543
+ mgeSession: `${window['skw_session'] || urlParams.get("mgeSession")}`,
6543
6544
  globalID: "85C0093DFA240EAB699B4E47A10215BD",
6544
- //FIXME: Precisamos ajustar para buscar o resourceId pela aplicação
6545
- resourceID: "br.com.sankhya.mov.bancaria"
6545
+ resourceID: (window["resourceID"] || ((_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID))
6546
6546
  };
6547
6547
  }
6548
6548
  async callServiceBroker(serviceName, payload) {