@sankhyalabs/sankhyablocks 0.0.0-feat-dev-kb-4158.0

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 (817) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +75 -0
  3. package/dist/cjs/AuthorizationConfig-79ffae4b.js +7 -0
  4. package/dist/cjs/ConfigStorage-73e7afff.js +310 -0
  5. package/dist/cjs/DataFetcher-004811c6.js +7087 -0
  6. package/dist/cjs/ParamType-90b440a0.js +13 -0
  7. package/dist/cjs/PersonalizedFilterUtils-1aeb625d.js +220 -0
  8. package/dist/cjs/SnkFormConfigManager-d1f1a222.js +136 -0
  9. package/dist/cjs/SnkMessageBuilder-d0abb63d.js +651 -0
  10. package/dist/cjs/SnkMultiSelectionListDataSource-804ff4c7.js +34 -0
  11. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  12. package/dist/cjs/auth-fetcher-58237931.js +34 -0
  13. package/dist/cjs/constants-d187e03e.js +101 -0
  14. package/dist/cjs/dataunit-fetcher-029eafbd.js +356 -0
  15. package/dist/cjs/draggable.bundle-82a25c06.js +6886 -0
  16. package/dist/cjs/filter-bar-config-fetcher-2b8ed9d0.js +155 -0
  17. package/dist/cjs/filter-item-type.enum-aa823a00.js +17 -0
  18. package/dist/cjs/filter-type.enum-b14ce507.js +11 -0
  19. package/dist/cjs/form-config-fetcher-181767c9.js +181 -0
  20. package/dist/cjs/index-0e663819.js +33 -0
  21. package/dist/cjs/index-102ba62d.js +201 -0
  22. package/dist/cjs/index-8d94b7e0.js +7 -0
  23. package/dist/cjs/index-c5771aba.js +44 -0
  24. package/dist/cjs/index-f9e81701.js +2328 -0
  25. package/dist/cjs/index.cjs.js +2 -0
  26. package/dist/cjs/loader.cjs.js +22 -0
  27. package/dist/cjs/pesquisa-fetcher-9a97994a.js +167 -0
  28. package/dist/cjs/presentationMode-52ec3bdd.js +7 -0
  29. package/dist/cjs/resource-fetcher-c0332609.js +68 -0
  30. package/dist/cjs/sankhyablocks.cjs.js +23 -0
  31. package/dist/cjs/snk-actions-button.cjs.entry.js +705 -0
  32. package/dist/cjs/snk-actions-form.cjs.entry.js +200 -0
  33. package/dist/cjs/snk-application.cjs.entry.js +931 -0
  34. package/dist/cjs/snk-attach.cjs.entry.js +452 -0
  35. package/dist/cjs/snk-client-confirm.cjs.entry.js +52 -0
  36. package/dist/cjs/snk-config-options.cjs.entry.js +239 -0
  37. package/dist/cjs/snk-configurator.cjs.entry.js +99 -0
  38. package/dist/cjs/snk-crud.cjs.entry.js +183 -0
  39. package/dist/cjs/snk-data-exporter.cjs.entry.js +520 -0
  40. package/dist/cjs/snk-data-unit-cc7a7ed0.js +453 -0
  41. package/dist/cjs/snk-data-unit.cjs.entry.js +13 -0
  42. package/dist/cjs/snk-detail-view.cjs.entry.js +269 -0
  43. package/dist/cjs/snk-entity-list.cjs.entry.js +118 -0
  44. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +132 -0
  45. package/dist/cjs/snk-expression-group_2.cjs.entry.js +545 -0
  46. package/dist/cjs/snk-field-config.cjs.entry.js +60 -0
  47. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +60 -0
  48. package/dist/cjs/snk-filter-bar.cjs.entry.js +510 -0
  49. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +91 -0
  50. package/dist/cjs/snk-filter-detail.cjs.entry.js +178 -0
  51. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +408 -0
  52. package/dist/cjs/snk-filter-item.cjs.entry.js +281 -0
  53. package/dist/cjs/snk-filter-list.cjs.entry.js +152 -0
  54. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +126 -0
  55. package/dist/cjs/snk-filter-modal.cjs.entry.js +217 -0
  56. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +43 -0
  57. package/dist/cjs/snk-filter-number.cjs.entry.js +44 -0
  58. package/dist/cjs/snk-filter-period.cjs.entry.js +73 -0
  59. package/dist/cjs/snk-filter-search.cjs.entry.js +54 -0
  60. package/dist/cjs/snk-filter-text.cjs.entry.js +36 -0
  61. package/dist/cjs/snk-form-config.cjs.entry.js +991 -0
  62. package/dist/cjs/snk-form-summary.cjs.entry.js +61 -0
  63. package/dist/cjs/snk-form-view.cjs.entry.js +99 -0
  64. package/dist/cjs/snk-form.cjs.entry.js +87 -0
  65. package/dist/cjs/snk-grid-config.cjs.entry.js +484 -0
  66. package/dist/cjs/snk-grid.cjs.entry.js +332 -0
  67. package/dist/cjs/snk-guides-viewer-27f87d90.js +334 -0
  68. package/dist/cjs/snk-guides-viewer.cjs.entry.js +28 -0
  69. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +210 -0
  70. package/dist/cjs/snk-personalized-filter.cjs.entry.js +305 -0
  71. package/dist/cjs/snk-pesquisa.cjs.entry.js +324 -0
  72. package/dist/cjs/snk-print-selector.cjs.entry.js +169 -0
  73. package/dist/cjs/snk-select-box.cjs.entry.js +25 -0
  74. package/dist/cjs/snk-simple-bar.cjs.entry.js +45 -0
  75. package/dist/cjs/snk-simple-crud.cjs.entry.js +338 -0
  76. package/dist/cjs/snk-tab-config.cjs.entry.js +331 -0
  77. package/dist/cjs/snk-taskbar.cjs.entry.js +221 -0
  78. package/dist/cjs/taskbar-elements-b98dd6e9.js +121 -0
  79. package/dist/cjs/taskbar-processor-bce3f499.js +49 -0
  80. package/dist/cjs/teste-pesquisa.cjs.entry.js +37 -0
  81. package/dist/collection/collection-manifest.json +171 -0
  82. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js +8 -0
  83. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js +11 -0
  84. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js +7 -0
  85. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js +22 -0
  86. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js +20 -0
  87. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js +42 -0
  88. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js +26 -0
  89. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js +26 -0
  90. package/dist/collection/components/snk-actions-button/actions/index.js +343 -0
  91. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js +7 -0
  92. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js +1 -0
  93. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js +1 -0
  94. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js +1 -0
  95. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js +1 -0
  96. package/dist/collection/components/snk-actions-button/clientEvent/index.js +87 -0
  97. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js +1 -0
  98. package/dist/collection/components/snk-actions-button/snk-actions-button.css +38 -0
  99. package/dist/collection/components/snk-actions-button/snk-actions-button.js +139 -0
  100. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js +263 -0
  101. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js +134 -0
  102. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +60 -0
  103. package/dist/collection/components/snk-application/snk-application.css +5 -0
  104. package/dist/collection/components/snk-application/snk-application.js +2000 -0
  105. package/dist/collection/components/snk-attach/interfaces/index.js +1 -0
  106. package/dist/collection/components/snk-attach/snk-attach.css +8 -0
  107. package/dist/collection/components/snk-attach/snk-attach.js +203 -0
  108. package/dist/collection/components/snk-attach/structure/crud-config-builder.js +37 -0
  109. package/dist/collection/components/snk-attach/structure/data-unit-builder.js +105 -0
  110. package/dist/collection/components/snk-attach/structure/index.js +3 -0
  111. package/dist/collection/components/snk-attach/structure/taskbar-builder.js +47 -0
  112. package/dist/collection/components/snk-configurator/AuthorizationConfig.js +5 -0
  113. package/dist/collection/components/snk-configurator/snk-configurator.css +159 -0
  114. package/dist/collection/components/snk-configurator/snk-configurator.js +293 -0
  115. package/dist/collection/components/snk-crud/snk-crud.css +6 -0
  116. package/dist/collection/components/snk-crud/snk-crud.js +536 -0
  117. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js +26 -0
  118. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +43 -0
  119. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +26 -0
  120. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +548 -0
  121. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css +37 -0
  122. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js +91 -0
  123. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css +52 -0
  124. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +376 -0
  125. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +91 -0
  126. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +690 -0
  127. package/dist/collection/components/snk-data-exporter/data/attachment.js +1 -0
  128. package/dist/collection/components/snk-data-exporter/data/email.js +1 -0
  129. package/dist/collection/components/snk-data-exporter/data/export-config.js +1 -0
  130. package/dist/collection/components/snk-data-exporter/data/export-result.js +1 -0
  131. package/dist/collection/components/snk-data-exporter/data/report.js +1 -0
  132. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js +7 -0
  133. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +21 -0
  134. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +172 -0
  135. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -0
  136. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js +1 -0
  137. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js +1 -0
  138. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css +38 -0
  139. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +375 -0
  140. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +140 -0
  141. package/dist/collection/components/snk-data-unit/snk-data-unit.css +6 -0
  142. package/dist/collection/components/snk-data-unit/snk-data-unit.js +838 -0
  143. package/dist/collection/components/snk-entity-list/snk-entity-list.css +35 -0
  144. package/dist/collection/components/snk-entity-list/snk-entity-list.js +257 -0
  145. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +128 -0
  146. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js +5 -0
  147. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +197 -0
  148. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +123 -0
  149. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +124 -0
  150. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +191 -0
  151. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +137 -0
  152. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +96 -0
  153. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css +66 -0
  154. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +396 -0
  155. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +13 -0
  156. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +250 -0
  157. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +415 -0
  158. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +323 -0
  159. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +35 -0
  160. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +345 -0
  161. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css +8 -0
  162. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +214 -0
  163. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +184 -0
  164. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +463 -0
  165. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js +1 -0
  166. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js +7 -0
  167. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +42 -0
  168. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js +411 -0
  169. package/dist/collection/components/snk-filter-field-search/interfaces/index.js +5 -0
  170. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css +41 -0
  171. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js +335 -0
  172. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js +1 -0
  173. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js +24 -0
  174. package/dist/collection/components/snk-form/SnkFormConfigManager.js +131 -0
  175. package/dist/collection/components/snk-form/snk-form.css +11 -0
  176. package/dist/collection/components/snk-form/snk-form.js +216 -0
  177. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.css +16 -0
  178. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +344 -0
  179. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.css +219 -0
  180. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +184 -0
  181. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +237 -0
  182. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +1107 -0
  183. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.css +323 -0
  184. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +525 -0
  185. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +29 -0
  186. package/dist/collection/components/snk-grid/snk-grid.css +28 -0
  187. package/dist/collection/components/snk-grid/snk-grid.js +682 -0
  188. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.css +181 -0
  189. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +616 -0
  190. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.css +9 -0
  191. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +70 -0
  192. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js +0 -0
  193. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js +5 -0
  194. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js +1 -0
  195. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js +1 -0
  196. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js +1 -0
  197. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js +1 -0
  198. package/dist/collection/components/snk-personalized-filter/interfaces/index.js +39 -0
  199. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css +45 -0
  200. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +440 -0
  201. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css +73 -0
  202. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +448 -0
  203. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +26 -0
  204. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css +111 -0
  205. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +412 -0
  206. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css +10 -0
  207. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js +88 -0
  208. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css +66 -0
  209. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js +158 -0
  210. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css +12 -0
  211. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js +291 -0
  212. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +215 -0
  213. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +151 -0
  214. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +394 -0
  215. package/dist/collection/components/snk-print-selector/snk-print-selector.css +35 -0
  216. package/dist/collection/components/snk-print-selector/snk-print-selector.js +203 -0
  217. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css +32 -0
  218. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +146 -0
  219. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +22 -0
  220. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +575 -0
  221. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +114 -0
  222. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +45 -0
  223. package/dist/collection/components/snk-taskbar/snk-taskbar.css +3 -0
  224. package/dist/collection/components/snk-taskbar/snk-taskbar.js +427 -0
  225. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css +3 -0
  226. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js +36 -0
  227. package/dist/collection/index.js +1 -0
  228. package/dist/collection/lib/@types/index.js +31 -0
  229. package/dist/collection/lib/applet-caller/applet-caller.js +6 -0
  230. package/dist/collection/lib/auth/mgeauthorization.module.js +1 -0
  231. package/dist/collection/lib/configs/ConfigStorage.js +95 -0
  232. package/dist/collection/lib/dataUnit/InMemoryLoader.js +134 -0
  233. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +408 -0
  234. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js +23 -0
  235. package/dist/collection/lib/http/data-fetcher/fetchers/attach-fetcher.js +136 -0
  236. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js +29 -0
  237. package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +353 -0
  238. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.js +1 -0
  239. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.js +1 -0
  240. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/ISave.js +6 -0
  241. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/index.js +3 -0
  242. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +33 -0
  243. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js +1 -0
  244. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js +1 -0
  245. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js +1 -0
  246. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js +1 -0
  247. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js +7 -0
  248. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js +18 -0
  249. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +151 -0
  250. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +177 -0
  251. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +40 -0
  252. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +66 -0
  253. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +169 -0
  254. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +163 -0
  255. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +64 -0
  256. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js +63 -0
  257. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js +1 -0
  258. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js +28 -0
  259. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js +1 -0
  260. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js +15 -0
  261. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js +66 -0
  262. package/dist/collection/lib/index.js +4 -0
  263. package/dist/collection/lib/licenses/sankhyalicense.module.js +1 -0
  264. package/dist/collection/lib/message/SnkMessageBuilder.js +163 -0
  265. package/dist/collection/lib/message/resources/crud-utils.msg.js +4 -0
  266. package/dist/collection/lib/message/resources/file-viewer.msg.js +10 -0
  267. package/dist/collection/lib/message/resources/snk-actions-button.msg.js +27 -0
  268. package/dist/collection/lib/message/resources/snk-attach.msg.js +27 -0
  269. package/dist/collection/lib/message/resources/snk-configurator.msg.js +8 -0
  270. package/dist/collection/lib/message/resources/snk-crud.msg.js +10 -0
  271. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +32 -0
  272. package/dist/collection/lib/message/resources/snk-data-unit.msg.js +31 -0
  273. package/dist/collection/lib/message/resources/snk-entity-list.msg.js +3 -0
  274. package/dist/collection/lib/message/resources/snk-exporter.msg.js +21 -0
  275. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +58 -0
  276. package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js +7 -0
  277. package/dist/collection/lib/message/resources/snk-filter-param-config.msg.js +18 -0
  278. package/dist/collection/lib/message/resources/snk-form.msg.js +62 -0
  279. package/dist/collection/lib/message/resources/snk-grid.msg.js +26 -0
  280. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +83 -0
  281. package/dist/collection/lib/message/resources/snk-print-selector.msg.js +23 -0
  282. package/dist/collection/lib/message/resources/snk-simple-bar.msg.js +3 -0
  283. package/dist/collection/lib/message/resources/snk-taskbar.msg.js +18 -0
  284. package/dist/collection/lib/store/index.js +6 -0
  285. package/dist/collection/lib/utils/CrudUtils.js +73 -0
  286. package/dist/collection/lib/utils/PrintUtils.js +201 -0
  287. package/dist/collection/lib/utils/constants.js +102 -0
  288. package/dist/collection/lib/utils/fileViewer/index.js +11 -0
  289. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js +1 -0
  290. package/dist/collection/lib/utils/pesquisa.js +16 -0
  291. package/dist/collection/lib/utils/urlutils.js +25 -0
  292. package/dist/collection/lib/workspace/workspace.js +19 -0
  293. package/dist/components/AuthorizationConfig.js +7 -0
  294. package/dist/components/ConfigStorage.js +306 -0
  295. package/dist/components/DataFetcher.js +7082 -0
  296. package/dist/components/ParamType.js +13 -0
  297. package/dist/components/PersonalizedFilterUtils.js +260 -0
  298. package/dist/components/SnkFormConfigManager.js +134 -0
  299. package/dist/components/SnkMessageBuilder.js +629 -0
  300. package/dist/components/SnkMultiSelectionListDataSource.js +78 -0
  301. package/dist/components/_commonjsHelpers.js +17 -0
  302. package/dist/components/auth-fetcher.js +32 -0
  303. package/dist/components/constants.js +90 -0
  304. package/dist/components/dataunit-fetcher.js +354 -0
  305. package/dist/components/filter-bar-config-fetcher.js +153 -0
  306. package/dist/components/filter-item-type.enum.js +15 -0
  307. package/dist/components/form-config-fetcher.js +179 -0
  308. package/dist/components/index.d.ts +79 -0
  309. package/dist/components/index.js +50 -0
  310. package/dist/components/index2.js +33 -0
  311. package/dist/components/index3.js +199 -0
  312. package/dist/components/pesquisa-fetcher.js +165 -0
  313. package/dist/components/presentationMode.js +7 -0
  314. package/dist/components/resource-fetcher.js +66 -0
  315. package/dist/components/snk-actions-button.d.ts +11 -0
  316. package/dist/components/snk-actions-button.js +6 -0
  317. package/dist/components/snk-actions-button2.js +718 -0
  318. package/dist/components/snk-actions-form.d.ts +11 -0
  319. package/dist/components/snk-actions-form.js +218 -0
  320. package/dist/components/snk-application.d.ts +11 -0
  321. package/dist/components/snk-application.js +6 -0
  322. package/dist/components/snk-application2.js +988 -0
  323. package/dist/components/snk-attach.d.ts +11 -0
  324. package/dist/components/snk-attach.js +6 -0
  325. package/dist/components/snk-attach2.js +504 -0
  326. package/dist/components/snk-client-confirm.d.ts +11 -0
  327. package/dist/components/snk-client-confirm.js +71 -0
  328. package/dist/components/snk-config-options.d.ts +11 -0
  329. package/dist/components/snk-config-options.js +6 -0
  330. package/dist/components/snk-config-options2.js +255 -0
  331. package/dist/components/snk-configurator.d.ts +11 -0
  332. package/dist/components/snk-configurator.js +6 -0
  333. package/dist/components/snk-configurator2.js +118 -0
  334. package/dist/components/snk-crud.d.ts +11 -0
  335. package/dist/components/snk-crud.js +391 -0
  336. package/dist/components/snk-data-exporter.d.ts +11 -0
  337. package/dist/components/snk-data-exporter.js +6 -0
  338. package/dist/components/snk-data-exporter2.js +539 -0
  339. package/dist/components/snk-data-unit.d.ts +11 -0
  340. package/dist/components/snk-data-unit.js +6 -0
  341. package/dist/components/snk-data-unit2.js +479 -0
  342. package/dist/components/snk-detail-view.d.ts +11 -0
  343. package/dist/components/snk-detail-view.js +6 -0
  344. package/dist/components/snk-detail-view2.js +927 -0
  345. package/dist/components/snk-entity-list.d.ts +11 -0
  346. package/dist/components/snk-entity-list.js +138 -0
  347. package/dist/components/snk-exporter-email-sender.d.ts +11 -0
  348. package/dist/components/snk-exporter-email-sender.js +6 -0
  349. package/dist/components/snk-exporter-email-sender2.js +149 -0
  350. package/dist/components/snk-expression-group.d.ts +11 -0
  351. package/dist/components/snk-expression-group.js +6 -0
  352. package/dist/components/snk-expression-group2.js +296 -0
  353. package/dist/components/snk-expression-item.d.ts +11 -0
  354. package/dist/components/snk-expression-item.js +6 -0
  355. package/dist/components/snk-expression-item2.js +332 -0
  356. package/dist/components/snk-field-config.d.ts +11 -0
  357. package/dist/components/snk-field-config.js +6 -0
  358. package/dist/components/snk-field-config2.js +76 -0
  359. package/dist/components/snk-filter-advanced-mode.d.ts +11 -0
  360. package/dist/components/snk-filter-advanced-mode.js +6 -0
  361. package/dist/components/snk-filter-advanced-mode2.js +39 -0
  362. package/dist/components/snk-filter-assistent-mode.d.ts +11 -0
  363. package/dist/components/snk-filter-assistent-mode.js +6 -0
  364. package/dist/components/snk-filter-assistent-mode2.js +77 -0
  365. package/dist/components/snk-filter-bar.d.ts +11 -0
  366. package/dist/components/snk-filter-bar.js +6 -0
  367. package/dist/components/snk-filter-bar2.js +583 -0
  368. package/dist/components/snk-filter-binary-select.d.ts +11 -0
  369. package/dist/components/snk-filter-binary-select.js +109 -0
  370. package/dist/components/snk-filter-detail.d.ts +11 -0
  371. package/dist/components/snk-filter-detail.js +6 -0
  372. package/dist/components/snk-filter-detail2.js +187 -0
  373. package/dist/components/snk-filter-field-search.d.ts +11 -0
  374. package/dist/components/snk-filter-field-search.js +6 -0
  375. package/dist/components/snk-filter-field-search2.js +228 -0
  376. package/dist/components/snk-filter-item.d.ts +11 -0
  377. package/dist/components/snk-filter-item.js +6 -0
  378. package/dist/components/snk-filter-item2.js +303 -0
  379. package/dist/components/snk-filter-list.d.ts +11 -0
  380. package/dist/components/snk-filter-list.js +176 -0
  381. package/dist/components/snk-filter-modal-item.d.ts +11 -0
  382. package/dist/components/snk-filter-modal-item.js +6 -0
  383. package/dist/components/snk-filter-modal-item2.js +140 -0
  384. package/dist/components/snk-filter-modal.d.ts +11 -0
  385. package/dist/components/snk-filter-modal.js +242 -0
  386. package/dist/components/snk-filter-multi-select.d.ts +11 -0
  387. package/dist/components/snk-filter-multi-select.js +60 -0
  388. package/dist/components/snk-filter-number.d.ts +11 -0
  389. package/dist/components/snk-filter-number.js +61 -0
  390. package/dist/components/snk-filter-param-config.d.ts +11 -0
  391. package/dist/components/snk-filter-param-config.js +6 -0
  392. package/dist/components/snk-filter-param-config2.js +229 -0
  393. package/dist/components/snk-filter-period.d.ts +11 -0
  394. package/dist/components/snk-filter-period.js +92 -0
  395. package/dist/components/snk-filter-search.d.ts +11 -0
  396. package/dist/components/snk-filter-search.js +71 -0
  397. package/dist/components/snk-filter-text.d.ts +11 -0
  398. package/dist/components/snk-filter-text.js +52 -0
  399. package/dist/components/snk-form-config.d.ts +11 -0
  400. package/dist/components/snk-form-config.js +6 -0
  401. package/dist/components/snk-form-config2.js +1027 -0
  402. package/dist/components/snk-form-summary.d.ts +11 -0
  403. package/dist/components/snk-form-summary.js +6 -0
  404. package/dist/components/snk-form-summary2.js +75 -0
  405. package/dist/components/snk-form-view.d.ts +11 -0
  406. package/dist/components/snk-form-view.js +6 -0
  407. package/dist/components/snk-form-view2.js +129 -0
  408. package/dist/components/snk-form.d.ts +11 -0
  409. package/dist/components/snk-form.js +126 -0
  410. package/dist/components/snk-grid-config.d.ts +11 -0
  411. package/dist/components/snk-grid-config.js +6 -0
  412. package/dist/components/snk-grid-config2.js +499 -0
  413. package/dist/components/snk-grid.d.ts +11 -0
  414. package/dist/components/snk-grid.js +6 -0
  415. package/dist/components/snk-grid2.js +457 -0
  416. package/dist/components/snk-guides-viewer.d.ts +11 -0
  417. package/dist/components/snk-guides-viewer.js +6 -0
  418. package/dist/components/snk-personalized-filter-editor.d.ts +11 -0
  419. package/dist/components/snk-personalized-filter-editor.js +230 -0
  420. package/dist/components/snk-personalized-filter.d.ts +11 -0
  421. package/dist/components/snk-personalized-filter.js +6 -0
  422. package/dist/components/snk-personalized-filter2.js +357 -0
  423. package/dist/components/snk-pesquisa.d.ts +11 -0
  424. package/dist/components/snk-pesquisa.js +6 -0
  425. package/dist/components/snk-pesquisa2.js +340 -0
  426. package/dist/components/snk-print-selector.d.ts +11 -0
  427. package/dist/components/snk-print-selector.js +183 -0
  428. package/dist/components/snk-select-box.d.ts +11 -0
  429. package/dist/components/snk-select-box.js +6 -0
  430. package/dist/components/snk-select-box2.js +38 -0
  431. package/dist/components/snk-simple-bar.d.ts +11 -0
  432. package/dist/components/snk-simple-bar.js +6 -0
  433. package/dist/components/snk-simple-bar2.js +59 -0
  434. package/dist/components/snk-simple-crud.d.ts +11 -0
  435. package/dist/components/snk-simple-crud.js +6 -0
  436. package/dist/components/snk-simple-crud2.js +390 -0
  437. package/dist/components/snk-tab-config.d.ts +11 -0
  438. package/dist/components/snk-tab-config.js +6 -0
  439. package/dist/components/snk-tab-config2.js +7232 -0
  440. package/dist/components/snk-taskbar.d.ts +11 -0
  441. package/dist/components/snk-taskbar.js +6 -0
  442. package/dist/components/snk-taskbar2.js +372 -0
  443. package/dist/components/teste-pesquisa.d.ts +11 -0
  444. package/dist/components/teste-pesquisa.js +63 -0
  445. package/dist/esm/AuthorizationConfig-dcbd207a.js +7 -0
  446. package/dist/esm/ConfigStorage-19a7260b.js +306 -0
  447. package/dist/esm/DataFetcher-e0fc5549.js +7082 -0
  448. package/dist/esm/ParamType-d5152b06.js +13 -0
  449. package/dist/esm/PersonalizedFilterUtils-75fb0106.js +218 -0
  450. package/dist/esm/SnkFormConfigManager-1a42eb02.js +134 -0
  451. package/dist/esm/SnkMessageBuilder-68c1c25a.js +629 -0
  452. package/dist/esm/SnkMultiSelectionListDataSource-892f37f9.js +32 -0
  453. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  454. package/dist/esm/auth-fetcher-83a946f8.js +32 -0
  455. package/dist/esm/constants-3644f1b6.js +90 -0
  456. package/dist/esm/dataunit-fetcher-6a695723.js +354 -0
  457. package/dist/esm/draggable.bundle-41d56f06.js +6884 -0
  458. package/dist/esm/filter-bar-config-fetcher-06e02851.js +153 -0
  459. package/dist/esm/filter-item-type.enum-5028ed3f.js +15 -0
  460. package/dist/esm/filter-type.enum-a80c1b6b.js +9 -0
  461. package/dist/esm/form-config-fetcher-9e167008.js +179 -0
  462. package/dist/esm/index-1564817d.js +33 -0
  463. package/dist/esm/index-620ac460.js +7 -0
  464. package/dist/esm/index-a7d3d3f1.js +2296 -0
  465. package/dist/esm/index-ae591a44.js +44 -0
  466. package/dist/esm/index-bdf75557.js +199 -0
  467. package/dist/esm/index.js +1 -0
  468. package/dist/esm/loader.js +18 -0
  469. package/dist/esm/pesquisa-fetcher-9118eb7a.js +165 -0
  470. package/dist/esm/polyfills/core-js.js +11 -0
  471. package/dist/esm/polyfills/css-shim.js +1 -0
  472. package/dist/esm/polyfills/dom.js +79 -0
  473. package/dist/esm/polyfills/es5-html-element.js +1 -0
  474. package/dist/esm/polyfills/index.js +34 -0
  475. package/dist/esm/polyfills/system.js +6 -0
  476. package/dist/esm/presentationMode-783bbf9d.js +7 -0
  477. package/dist/esm/resource-fetcher-768d5556.js +66 -0
  478. package/dist/esm/sankhyablocks.js +18 -0
  479. package/dist/esm/snk-actions-button.entry.js +701 -0
  480. package/dist/esm/snk-actions-form.entry.js +196 -0
  481. package/dist/esm/snk-application.entry.js +927 -0
  482. package/dist/esm/snk-attach.entry.js +448 -0
  483. package/dist/esm/snk-client-confirm.entry.js +48 -0
  484. package/dist/esm/snk-config-options.entry.js +235 -0
  485. package/dist/esm/snk-configurator.entry.js +95 -0
  486. package/dist/esm/snk-crud.entry.js +179 -0
  487. package/dist/esm/snk-data-exporter.entry.js +516 -0
  488. package/dist/esm/snk-data-unit-77508763.js +451 -0
  489. package/dist/esm/snk-data-unit.entry.js +5 -0
  490. package/dist/esm/snk-detail-view.entry.js +265 -0
  491. package/dist/esm/snk-entity-list.entry.js +114 -0
  492. package/dist/esm/snk-exporter-email-sender.entry.js +128 -0
  493. package/dist/esm/snk-expression-group_2.entry.js +540 -0
  494. package/dist/esm/snk-field-config.entry.js +56 -0
  495. package/dist/esm/snk-filter-advanced-mode_2.entry.js +55 -0
  496. package/dist/esm/snk-filter-bar.entry.js +506 -0
  497. package/dist/esm/snk-filter-binary-select.entry.js +87 -0
  498. package/dist/esm/snk-filter-detail.entry.js +174 -0
  499. package/dist/esm/snk-filter-field-search_2.entry.js +403 -0
  500. package/dist/esm/snk-filter-item.entry.js +277 -0
  501. package/dist/esm/snk-filter-list.entry.js +148 -0
  502. package/dist/esm/snk-filter-modal-item.entry.js +122 -0
  503. package/dist/esm/snk-filter-modal.entry.js +213 -0
  504. package/dist/esm/snk-filter-multi-select.entry.js +39 -0
  505. package/dist/esm/snk-filter-number.entry.js +40 -0
  506. package/dist/esm/snk-filter-period.entry.js +69 -0
  507. package/dist/esm/snk-filter-search.entry.js +50 -0
  508. package/dist/esm/snk-filter-text.entry.js +32 -0
  509. package/dist/esm/snk-form-config.entry.js +987 -0
  510. package/dist/esm/snk-form-summary.entry.js +57 -0
  511. package/dist/esm/snk-form-view.entry.js +95 -0
  512. package/dist/esm/snk-form.entry.js +83 -0
  513. package/dist/esm/snk-grid-config.entry.js +480 -0
  514. package/dist/esm/snk-grid.entry.js +328 -0
  515. package/dist/esm/snk-guides-viewer-c47cd45e.js +332 -0
  516. package/dist/esm/snk-guides-viewer.entry.js +20 -0
  517. package/dist/esm/snk-personalized-filter-editor.entry.js +206 -0
  518. package/dist/esm/snk-personalized-filter.entry.js +301 -0
  519. package/dist/esm/snk-pesquisa.entry.js +320 -0
  520. package/dist/esm/snk-print-selector.entry.js +161 -0
  521. package/dist/esm/snk-select-box.entry.js +21 -0
  522. package/dist/esm/snk-simple-bar.entry.js +41 -0
  523. package/dist/esm/snk-simple-crud.entry.js +334 -0
  524. package/dist/esm/snk-tab-config.entry.js +327 -0
  525. package/dist/esm/snk-taskbar.entry.js +217 -0
  526. package/dist/esm/taskbar-elements-2c761819.js +118 -0
  527. package/dist/esm/taskbar-processor-94402e6e.js +47 -0
  528. package/dist/esm/teste-pesquisa.entry.js +33 -0
  529. package/dist/index.cjs.js +1 -0
  530. package/dist/index.js +1 -0
  531. package/dist/sankhyablocks/index.esm.js +0 -0
  532. package/dist/sankhyablocks/p-0885ed3c.entry.js +1 -0
  533. package/dist/sankhyablocks/p-0a4c753d.js +6 -0
  534. package/dist/sankhyablocks/p-0ed0fc02.entry.js +1 -0
  535. package/dist/sankhyablocks/p-112455b1.js +1 -0
  536. package/dist/sankhyablocks/p-118e769b.entry.js +1 -0
  537. package/dist/sankhyablocks/p-1a68fb59.js +1 -0
  538. package/dist/sankhyablocks/p-216f081a.entry.js +1 -0
  539. package/dist/sankhyablocks/p-219f888d.entry.js +1 -0
  540. package/dist/sankhyablocks/p-22c6fe1a.entry.js +1 -0
  541. package/dist/sankhyablocks/p-247a8b36.entry.js +1 -0
  542. package/dist/sankhyablocks/p-25c5428f.entry.js +1 -0
  543. package/dist/sankhyablocks/p-26ad62b9.entry.js +1 -0
  544. package/dist/sankhyablocks/p-26b0ce3e.entry.js +1 -0
  545. package/dist/sankhyablocks/p-2ac9c585.js +76 -0
  546. package/dist/sankhyablocks/p-34085ced.entry.js +1 -0
  547. package/dist/sankhyablocks/p-34a1357a.entry.js +1 -0
  548. package/dist/sankhyablocks/p-4721c3db.js +1 -0
  549. package/dist/sankhyablocks/p-4a78e118.js +1 -0
  550. package/dist/sankhyablocks/p-5534e08c.js +1 -0
  551. package/dist/sankhyablocks/p-584d7212.js +1 -0
  552. package/dist/sankhyablocks/p-5c1aacc7.js +1 -0
  553. package/dist/sankhyablocks/p-5d04ae42.entry.js +1 -0
  554. package/dist/sankhyablocks/p-6759adae.entry.js +1 -0
  555. package/dist/sankhyablocks/p-6dc031de.js +1 -0
  556. package/dist/sankhyablocks/p-7b8b8ae9.js +10 -0
  557. package/dist/sankhyablocks/p-7e285d6c.entry.js +11 -0
  558. package/dist/sankhyablocks/p-815a42c0.entry.js +1 -0
  559. package/dist/sankhyablocks/p-838f8234.entry.js +1 -0
  560. package/dist/sankhyablocks/p-88aa931b.entry.js +1 -0
  561. package/dist/sankhyablocks/p-8a41172a.entry.js +1 -0
  562. package/dist/sankhyablocks/p-8f8184ff.js +56 -0
  563. package/dist/sankhyablocks/p-933c0c0b.js +1 -0
  564. package/dist/sankhyablocks/p-9531fd46.entry.js +1 -0
  565. package/dist/sankhyablocks/p-959e0835.entry.js +1 -0
  566. package/dist/sankhyablocks/p-968741cc.js +1 -0
  567. package/dist/sankhyablocks/p-96a89d58.entry.js +1 -0
  568. package/dist/sankhyablocks/p-976e56e9.js +1 -0
  569. package/dist/sankhyablocks/p-98f9d076.js +17 -0
  570. package/dist/sankhyablocks/p-9d3a025a.entry.js +1 -0
  571. package/dist/sankhyablocks/p-a1e1b305.entry.js +1 -0
  572. package/dist/sankhyablocks/p-a2493d11.js +1 -0
  573. package/dist/sankhyablocks/p-ac8d1cd6.entry.js +1 -0
  574. package/dist/sankhyablocks/p-ae6aff81.js +1 -0
  575. package/dist/sankhyablocks/p-b6d6b172.js +1 -0
  576. package/dist/sankhyablocks/p-bc735728.entry.js +1 -0
  577. package/dist/sankhyablocks/p-bd628455.entry.js +1 -0
  578. package/dist/sankhyablocks/p-be684b38.entry.js +1 -0
  579. package/dist/sankhyablocks/p-befbc9ee.entry.js +1 -0
  580. package/dist/sankhyablocks/p-c0f656af.entry.js +1 -0
  581. package/dist/sankhyablocks/p-c2beb95c.js +1 -0
  582. package/dist/sankhyablocks/p-c44f6aaf.entry.js +1 -0
  583. package/dist/sankhyablocks/p-c57bd935.entry.js +1 -0
  584. package/dist/sankhyablocks/p-c6380ea2.entry.js +1 -0
  585. package/dist/sankhyablocks/p-cb37982f.entry.js +1 -0
  586. package/dist/sankhyablocks/p-cfd7da4a.entry.js +1 -0
  587. package/dist/sankhyablocks/p-d1b89765.js +1 -0
  588. package/dist/sankhyablocks/p-d2d301a6.js +2 -0
  589. package/dist/sankhyablocks/p-d3ec3586.entry.js +1 -0
  590. package/dist/sankhyablocks/p-d9804798.js +1 -0
  591. package/dist/sankhyablocks/p-dc36cfbf.js +1 -0
  592. package/dist/sankhyablocks/p-de69b4b0.entry.js +1 -0
  593. package/dist/sankhyablocks/p-df8621b4.js +1 -0
  594. package/dist/sankhyablocks/p-e28129aa.entry.js +1 -0
  595. package/dist/sankhyablocks/p-e3a82e1c.entry.js +1 -0
  596. package/dist/sankhyablocks/p-e7e54737.entry.js +1 -0
  597. package/dist/sankhyablocks/p-eaad0aa8.js +1 -0
  598. package/dist/sankhyablocks/p-eb636e15.entry.js +1 -0
  599. package/dist/sankhyablocks/p-f30526a7.entry.js +1 -0
  600. package/dist/sankhyablocks/p-f31bfdee.entry.js +1 -0
  601. package/dist/sankhyablocks/p-f4184ce7.js +1 -0
  602. package/dist/sankhyablocks/p-f88c45bf.js +1 -0
  603. package/dist/sankhyablocks/p-f9395c20.entry.js +1 -0
  604. package/dist/sankhyablocks/p-fa9d3f73.js +1 -0
  605. package/dist/sankhyablocks/p-fe010e54.entry.js +1 -0
  606. package/dist/sankhyablocks/p-fe49067d.entry.js +1 -0
  607. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -0
  608. package/dist/types/components/snk-actions-button/actions/enum/ActionsType.d.ts +7 -0
  609. package/dist/types/components/snk-actions-button/actions/enum/ParamType.d.ts +10 -0
  610. package/dist/types/components/snk-actions-button/actions/enum/RefreshType.d.ts +6 -0
  611. package/dist/types/components/snk-actions-button/actions/executor/java.executor.d.ts +6 -0
  612. package/dist/types/components/snk-actions-button/actions/executor/javascript.executor.d.ts +6 -0
  613. package/dist/types/components/snk-actions-button/actions/executor/launch-screen.executor.d.ts +10 -0
  614. package/dist/types/components/snk-actions-button/actions/executor/procedure.executor.d.ts +6 -0
  615. package/dist/types/components/snk-actions-button/actions/factory/executor.factory.d.ts +7 -0
  616. package/dist/types/components/snk-actions-button/actions/index.d.ts +27 -0
  617. package/dist/types/components/snk-actions-button/actions/interfaces/IAction.d.ts +55 -0
  618. package/dist/types/components/snk-actions-button/actions/interfaces/IExecSource.d.ts +17 -0
  619. package/dist/types/components/snk-actions-button/actions/interfaces/IExecuteActions.d.ts +4 -0
  620. package/dist/types/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.d.ts +4 -0
  621. package/dist/types/components/snk-actions-button/actions/interfaces/IResultParam.d.ts +14 -0
  622. package/dist/types/components/snk-actions-button/clientEvent/index.d.ts +4 -0
  623. package/dist/types/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.d.ts +35 -0
  624. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +27 -0
  625. package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +41 -0
  626. package/dist/types/components/snk-actions-button/subcomponents/snk-client-confirm.d.ts +31 -0
  627. package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +9 -0
  628. package/dist/types/components/snk-application/snk-application.d.ts +288 -0
  629. package/dist/types/components/snk-attach/interfaces/index.d.ts +10 -0
  630. package/dist/types/components/snk-attach/snk-attach.d.ts +45 -0
  631. package/dist/types/components/snk-attach/structure/crud-config-builder.d.ts +7 -0
  632. package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +15 -0
  633. package/dist/types/components/snk-attach/structure/index.d.ts +3 -0
  634. package/dist/types/components/snk-attach/structure/taskbar-builder.d.ts +8 -0
  635. package/dist/types/components/snk-configurator/AuthorizationConfig.d.ts +4 -0
  636. package/dist/types/components/snk-configurator/snk-configurator.d.ts +68 -0
  637. package/dist/types/components/snk-crud/snk-crud.d.ts +114 -0
  638. package/dist/types/components/snk-crud/subcomponents/CardFormResizeObserver.d.ts +1 -0
  639. package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +11 -0
  640. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +98 -0
  641. package/dist/types/components/snk-crud/subcomponents/snk-form-summary.d.ts +22 -0
  642. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +76 -0
  643. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +127 -0
  644. package/dist/types/components/snk-data-exporter/data/attachment.d.ts +4 -0
  645. package/dist/types/components/snk-data-exporter/data/email.d.ts +7 -0
  646. package/dist/types/components/snk-data-exporter/data/export-config.d.ts +10 -0
  647. package/dist/types/components/snk-data-exporter/data/export-result.d.ts +8 -0
  648. package/dist/types/components/snk-data-exporter/data/report.d.ts +4 -0
  649. package/dist/types/components/snk-data-exporter/exporter-email-sender/email-info-step.d.ts +9 -0
  650. package/dist/types/components/snk-data-exporter/exporter-email-sender/options-step.d.ts +9 -0
  651. package/dist/types/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.d.ts +40 -0
  652. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +15 -0
  653. package/dist/types/components/snk-data-exporter/interfaces/IRecordID.d.ts +6 -0
  654. package/dist/types/components/snk-data-exporter/interfaces/ISelectedID.d.ts +13 -0
  655. package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +52 -0
  656. package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +61 -0
  657. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +141 -0
  658. package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +46 -0
  659. package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
  660. package/dist/types/components/snk-filter-bar/filter-item/editors/enum/presentationMode.d.ts +4 -0
  661. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +43 -0
  662. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +28 -0
  663. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +28 -0
  664. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +47 -0
  665. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +30 -0
  666. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +24 -0
  667. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.d.ts +68 -0
  668. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +12 -0
  669. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +49 -0
  670. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +80 -0
  671. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +74 -0
  672. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +56 -0
  673. package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +33 -0
  674. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +79 -0
  675. package/dist/types/components/snk-filter-bar/types/custom-element-filter.d.ts +6 -0
  676. package/dist/types/components/snk-filter-bar/types/filter-type.enum.d.ts +6 -0
  677. package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +28 -0
  678. package/dist/types/components/snk-filter-bar/utils/filters-mock.d.ts +263 -0
  679. package/dist/types/components/snk-filter-field-search/interfaces/index.d.ts +39 -0
  680. package/dist/types/components/snk-filter-field-search/snk-filter-field-search.d.ts +68 -0
  681. package/dist/types/components/snk-filter-field-search/subcomponents/index.d.ts +1 -0
  682. package/dist/types/components/snk-filter-field-search/subcomponents/list-item.d.ts +2 -0
  683. package/dist/types/components/snk-form/SnkFormConfigManager.d.ts +23 -0
  684. package/dist/types/components/snk-form/snk-form.d.ts +46 -0
  685. package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +57 -0
  686. package/dist/types/components/snk-form/subcomponents/snk-field-config/snk-field-config.d.ts +43 -0
  687. package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +148 -0
  688. package/dist/types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.d.ts +105 -0
  689. package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +12 -0
  690. package/dist/types/components/snk-grid/snk-grid.d.ts +123 -0
  691. package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +74 -0
  692. package/dist/types/components/snk-grid/subcomponents/snk-select-box/snk-select-box.d.ts +13 -0
  693. package/dist/types/components/snk-personalized-filter/interfaces/IExpressionGroup.d.ts +0 -0
  694. package/dist/types/components/snk-personalized-filter/interfaces/IExpressionItem.d.ts +35 -0
  695. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +37 -0
  696. package/dist/types/components/snk-personalized-filter/interfaces/IPersonalizedFilter.d.ts +15 -0
  697. package/dist/types/components/snk-personalized-filter/interfaces/ISystemFilterConfig.d.ts +4 -0
  698. package/dist/types/components/snk-personalized-filter/interfaces/IUserFilterConfig.d.ts +5 -0
  699. package/dist/types/components/snk-personalized-filter/interfaces/index.d.ts +35 -0
  700. package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +66 -0
  701. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.d.ts +85 -0
  702. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.d.ts +9 -0
  703. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +68 -0
  704. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.d.ts +19 -0
  705. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.d.ts +31 -0
  706. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.d.ts +52 -0
  707. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.d.ts +27 -0
  708. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +61 -0
  709. package/dist/types/components/snk-print-selector/snk-print-selector.d.ts +46 -0
  710. package/dist/types/components/snk-simple-bar/snk-simple-bar.d.ts +37 -0
  711. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +80 -0
  712. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +33 -0
  713. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +12 -0
  714. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +106 -0
  715. package/dist/types/components/teste-pesquisa/teste-pesquisa.d.ts +6 -0
  716. package/dist/types/components.d.ts +3076 -0
  717. package/dist/types/global.d.ts +9 -0
  718. package/dist/types/index.d.ts +1 -0
  719. package/dist/types/lib/@types/index.d.ts +27 -0
  720. package/dist/types/lib/applet-caller/applet-caller.d.ts +9 -0
  721. package/dist/types/lib/configs/ConfigStorage.d.ts +27 -0
  722. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +24 -0
  723. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +73 -0
  724. package/dist/types/lib/http/data-fetcher/fetchers/application-config-fetcher.d.ts +6 -0
  725. package/dist/types/lib/http/data-fetcher/fetchers/attach-fetcher.d.ts +14 -0
  726. package/dist/types/lib/http/data-fetcher/fetchers/auth-fetcher.d.ts +17 -0
  727. package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +16 -0
  728. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.d.ts +9 -0
  729. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.d.ts +13 -0
  730. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/ISave.d.ts +26 -0
  731. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/index.d.ts +3 -0
  732. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +3 -0
  733. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +9 -0
  734. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +29 -0
  735. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.d.ts +8 -0
  736. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.d.ts +4 -0
  737. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.d.ts +1 -0
  738. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.d.ts +4 -0
  739. package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +11 -0
  740. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +26 -0
  741. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +8 -0
  742. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +13 -0
  743. package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +13 -0
  744. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +42 -0
  745. package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +12 -0
  746. package/dist/types/lib/http/data-fetcher/fetchers/totals-fetcher.d.ts +9 -0
  747. package/dist/types/lib/http/data-fetcher/interfaces/IClientEventResponse.d.ts +4 -0
  748. package/dist/types/lib/http/data-fetcher/recaller/GraphQLRecaller.d.ts +10 -0
  749. package/dist/types/lib/http/data-fetcher/recaller/IDataFetcherRecaller.d.ts +3 -0
  750. package/dist/types/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.d.ts +9 -0
  751. package/dist/types/lib/http/data-fetcher/state/LoadStateManager.d.ts +23 -0
  752. package/dist/types/lib/index.d.ts +4 -0
  753. package/dist/types/lib/message/SnkMessageBuilder.d.ts +45 -0
  754. package/dist/types/lib/message/resources/crud-utils.msg.d.ts +2 -0
  755. package/dist/types/lib/message/resources/file-viewer.msg.d.ts +2 -0
  756. package/dist/types/lib/message/resources/snk-actions-button.msg.d.ts +1 -0
  757. package/dist/types/lib/message/resources/snk-attach.msg.d.ts +2 -0
  758. package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +1 -0
  759. package/dist/types/lib/message/resources/snk-crud.msg.d.ts +2 -0
  760. package/dist/types/lib/message/resources/snk-data-exporter.msg.d.ts +1 -0
  761. package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +2 -0
  762. package/dist/types/lib/message/resources/snk-entity-list.msg.d.ts +1 -0
  763. package/dist/types/lib/message/resources/snk-exporter.msg.d.ts +2 -0
  764. package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +2 -0
  765. package/dist/types/lib/message/resources/snk-filter-field-search.msg.d.ts +1 -0
  766. package/dist/types/lib/message/resources/snk-filter-param-config.msg.d.ts +1 -0
  767. package/dist/types/lib/message/resources/snk-form.msg.d.ts +4 -0
  768. package/dist/types/lib/message/resources/snk-grid.msg.d.ts +2 -0
  769. package/dist/types/lib/message/resources/snk-personalized-filter.msg.d.ts +1 -0
  770. package/dist/types/lib/message/resources/snk-print-selector.msg.d.ts +1 -0
  771. package/dist/types/lib/message/resources/snk-simple-bar.msg.d.ts +1 -0
  772. package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +2 -0
  773. package/dist/types/lib/store/index.d.ts +5 -0
  774. package/dist/types/lib/utils/CrudUtils.d.ts +6 -0
  775. package/dist/types/lib/utils/PrintUtils.d.ts +54 -0
  776. package/dist/types/lib/utils/constants.d.ts +103 -0
  777. package/dist/types/lib/utils/fileViewer/index.d.ts +2 -0
  778. package/dist/types/lib/utils/fileViewer/interfaces/IFileViewerParams.d.ts +4 -0
  779. package/dist/types/lib/utils/pesquisa.d.ts +3 -0
  780. package/dist/types/lib/utils/urlutils.d.ts +4 -0
  781. package/dist/types/lib/workspace/workspace.d.ts +5 -0
  782. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  783. package/loader/cdn.js +3 -0
  784. package/loader/index.cjs.js +3 -0
  785. package/loader/index.d.ts +21 -0
  786. package/loader/index.es2017.js +3 -0
  787. package/loader/index.js +4 -0
  788. package/loader/package.json +11 -0
  789. package/package.json +71 -0
  790. package/react/.keepfolder +1 -0
  791. package/react/components.d.ts +51 -0
  792. package/react/components.js +54 -0
  793. package/react/components.js.map +1 -0
  794. package/react/react-component-lib/createComponent.d.ts +10 -0
  795. package/react/react-component-lib/createComponent.js +59 -0
  796. package/react/react-component-lib/createComponent.js.map +1 -0
  797. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  798. package/react/react-component-lib/createOverlayComponent.js +89 -0
  799. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  800. package/react/react-component-lib/index.d.ts +2 -0
  801. package/react/react-component-lib/index.js +3 -0
  802. package/react/react-component-lib/index.js.map +1 -0
  803. package/react/react-component-lib/interfaces.d.ts +29 -0
  804. package/react/react-component-lib/interfaces.js +2 -0
  805. package/react/react-component-lib/interfaces.js.map +1 -0
  806. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  807. package/react/react-component-lib/utils/attachProps.js +96 -0
  808. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  809. package/react/react-component-lib/utils/case.d.ts +2 -0
  810. package/react/react-component-lib/utils/case.js +7 -0
  811. package/react/react-component-lib/utils/case.js.map +1 -0
  812. package/react/react-component-lib/utils/dev.d.ts +2 -0
  813. package/react/react-component-lib/utils/dev.js +13 -0
  814. package/react/react-component-lib/utils/dev.js.map +1 -0
  815. package/react/react-component-lib/utils/index.d.ts +7 -0
  816. package/react/react-component-lib/utils/index.js +21 -0
  817. package/react/react-component-lib/utils/index.js.map +1 -0
@@ -0,0 +1,2328 @@
1
+ 'use strict';
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () {
13
+ return e[k];
14
+ }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n['default'] = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ const NAMESPACE = 'sankhyablocks';
24
+
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
33
+ let scopeId;
34
+ let contentRef;
35
+ let hostTagName;
36
+ let useNativeShadowDom = false;
37
+ let checkSlotFallbackVisibility = false;
38
+ let checkSlotRelocate = false;
39
+ let isSvgMode = false;
40
+ let renderingRef = null;
41
+ let queuePending = false;
42
+ const createTime = (fnName, tagName = '') => {
43
+ {
44
+ return () => {
45
+ return;
46
+ };
47
+ }
48
+ };
49
+ const uniqueTime = (key, measureText) => {
50
+ {
51
+ return () => {
52
+ return;
53
+ };
54
+ }
55
+ };
56
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
57
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
58
+ /**
59
+ * Default style mode id
60
+ */
61
+ /**
62
+ * Reusable empty obj/array
63
+ * Don't add values to these!!
64
+ */
65
+ const EMPTY_OBJ = {};
66
+ const isDef = (v) => v != null;
67
+ const isComplexType = (o) => {
68
+ // https://jsperf.com/typeof-fn-object/5
69
+ o = typeof o;
70
+ return o === 'object' || o === 'function';
71
+ };
72
+ /**
73
+ * Helper method for querying a `meta` tag that contains a nonce value
74
+ * out of a DOM's head.
75
+ *
76
+ * @param doc The DOM containing the `head` to query against
77
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
78
+ * exists or the tag has no content.
79
+ */
80
+ function queryNonceMetaTagContent(doc) {
81
+ var _a, _b, _c;
82
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
83
+ }
84
+ /**
85
+ * Production h() function based on Preact by
86
+ * Jason Miller (@developit)
87
+ * Licensed under the MIT License
88
+ * https://github.com/developit/preact/blob/master/LICENSE
89
+ *
90
+ * Modified for Stencil's compiler and vdom
91
+ */
92
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
93
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
94
+ const h = (nodeName, vnodeData, ...children) => {
95
+ let child = null;
96
+ let key = null;
97
+ let slotName = null;
98
+ let simple = false;
99
+ let lastSimple = false;
100
+ const vNodeChildren = [];
101
+ const walk = (c) => {
102
+ for (let i = 0; i < c.length; i++) {
103
+ child = c[i];
104
+ if (Array.isArray(child)) {
105
+ walk(child);
106
+ }
107
+ else if (child != null && typeof child !== 'boolean') {
108
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
109
+ child = String(child);
110
+ }
111
+ if (simple && lastSimple) {
112
+ // If the previous child was simple (string), we merge both
113
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
114
+ }
115
+ else {
116
+ // Append a new vNode, if it's text, we create a text vNode
117
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
118
+ }
119
+ lastSimple = simple;
120
+ }
121
+ }
122
+ };
123
+ walk(children);
124
+ if (vnodeData) {
125
+ // normalize class / classname attributes
126
+ if (vnodeData.key) {
127
+ key = vnodeData.key;
128
+ }
129
+ if (vnodeData.name) {
130
+ slotName = vnodeData.name;
131
+ }
132
+ {
133
+ const classData = vnodeData.className || vnodeData.class;
134
+ if (classData) {
135
+ vnodeData.class =
136
+ typeof classData !== 'object'
137
+ ? classData
138
+ : Object.keys(classData)
139
+ .filter((k) => classData[k])
140
+ .join(' ');
141
+ }
142
+ }
143
+ }
144
+ if (typeof nodeName === 'function') {
145
+ // nodeName is a functional component
146
+ return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
147
+ }
148
+ const vnode = newVNode(nodeName, null);
149
+ vnode.$attrs$ = vnodeData;
150
+ if (vNodeChildren.length > 0) {
151
+ vnode.$children$ = vNodeChildren;
152
+ }
153
+ {
154
+ vnode.$key$ = key;
155
+ }
156
+ {
157
+ vnode.$name$ = slotName;
158
+ }
159
+ return vnode;
160
+ };
161
+ /**
162
+ * A utility function for creating a virtual DOM node from a tag and some
163
+ * possible text content.
164
+ *
165
+ * @param tag the tag for this element
166
+ * @param text possible text content for the node
167
+ * @returns a newly-minted virtual DOM node
168
+ */
169
+ const newVNode = (tag, text) => {
170
+ const vnode = {
171
+ $flags$: 0,
172
+ $tag$: tag,
173
+ $text$: text,
174
+ $elm$: null,
175
+ $children$: null,
176
+ };
177
+ {
178
+ vnode.$attrs$ = null;
179
+ }
180
+ {
181
+ vnode.$key$ = null;
182
+ }
183
+ {
184
+ vnode.$name$ = null;
185
+ }
186
+ return vnode;
187
+ };
188
+ const Host = {};
189
+ /**
190
+ * Check whether a given node is a Host node or not
191
+ *
192
+ * @param node the virtual DOM node to check
193
+ * @returns whether it's a Host node or not
194
+ */
195
+ const isHost = (node) => node && node.$tag$ === Host;
196
+ /**
197
+ * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
198
+ *
199
+ * Note that these functions convert from {@link d.VNode} to
200
+ * {@link d.ChildNode} to give functional component developers a friendly
201
+ * interface.
202
+ */
203
+ const vdomFnUtils = {
204
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
205
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
206
+ };
207
+ /**
208
+ * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
209
+ * friendlier public interface (hence, 'convertToPublic').
210
+ *
211
+ * @param node the virtual DOM node to convert
212
+ * @returns a converted child node
213
+ */
214
+ const convertToPublic = (node) => ({
215
+ vattrs: node.$attrs$,
216
+ vchildren: node.$children$,
217
+ vkey: node.$key$,
218
+ vname: node.$name$,
219
+ vtag: node.$tag$,
220
+ vtext: node.$text$,
221
+ });
222
+ /**
223
+ * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
224
+ * order to use the resulting object in the virtual DOM. The initial object was
225
+ * likely created as part of presenting a public API, so converting it back
226
+ * involved making it 'private' again (hence, `convertToPrivate`).
227
+ *
228
+ * @param node the child node to convert
229
+ * @returns a converted virtual DOM node
230
+ */
231
+ const convertToPrivate = (node) => {
232
+ if (typeof node.vtag === 'function') {
233
+ const vnodeData = Object.assign({}, node.vattrs);
234
+ if (node.vkey) {
235
+ vnodeData.key = node.vkey;
236
+ }
237
+ if (node.vname) {
238
+ vnodeData.name = node.vname;
239
+ }
240
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
241
+ }
242
+ const vnode = newVNode(node.vtag, node.vtext);
243
+ vnode.$attrs$ = node.vattrs;
244
+ vnode.$children$ = node.vchildren;
245
+ vnode.$key$ = node.vkey;
246
+ vnode.$name$ = node.vname;
247
+ return vnode;
248
+ };
249
+ /**
250
+ * Parse a new property value for a given property type.
251
+ *
252
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
253
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
254
+ * 1. `any`, the type given to `propValue` in the function signature
255
+ * 2. the type stored from `propType`.
256
+ *
257
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
258
+ *
259
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
260
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
261
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
262
+ * ```tsx
263
+ * <my-cmp prop-val={0}></my-cmp>
264
+ * ```
265
+ *
266
+ * HTML prop values on the other hand, will always a string
267
+ *
268
+ * @param propValue the new value to coerce to some type
269
+ * @param propType the type of the prop, expressed as a binary number
270
+ * @returns the parsed/coerced value
271
+ */
272
+ const parsePropertyValue = (propValue, propType) => {
273
+ // ensure this value is of the correct prop type
274
+ if (propValue != null && !isComplexType(propValue)) {
275
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
276
+ // per the HTML spec, any string value means it is a boolean true value
277
+ // but we'll cheat here and say that the string "false" is the boolean false
278
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
279
+ }
280
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
281
+ // force it to be a number
282
+ return parseFloat(propValue);
283
+ }
284
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
285
+ // could have been passed as a number or boolean
286
+ // but we still want it as a string
287
+ return String(propValue);
288
+ }
289
+ // redundant return here for better minification
290
+ return propValue;
291
+ }
292
+ // not sure exactly what type we want
293
+ // so no need to change to a different type
294
+ return propValue;
295
+ };
296
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
297
+ const createEvent = (ref, name, flags) => {
298
+ const elm = getElement(ref);
299
+ return {
300
+ emit: (detail) => {
301
+ return emitEvent(elm, name, {
302
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
303
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
304
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
305
+ detail,
306
+ });
307
+ },
308
+ };
309
+ };
310
+ /**
311
+ * Helper function to create & dispatch a custom Event on a provided target
312
+ * @param elm the target of the Event
313
+ * @param name the name to give the custom Event
314
+ * @param opts options for configuring a custom Event
315
+ * @returns the custom Event
316
+ */
317
+ const emitEvent = (elm, name, opts) => {
318
+ const ev = plt.ce(name, opts);
319
+ elm.dispatchEvent(ev);
320
+ return ev;
321
+ };
322
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
323
+ const registerStyle = (scopeId, cssText, allowCS) => {
324
+ let style = styles.get(scopeId);
325
+ if (supportsConstructableStylesheets && allowCS) {
326
+ style = (style || new CSSStyleSheet());
327
+ if (typeof style === 'string') {
328
+ style = cssText;
329
+ }
330
+ else {
331
+ style.replaceSync(cssText);
332
+ }
333
+ }
334
+ else {
335
+ style = cssText;
336
+ }
337
+ styles.set(scopeId, style);
338
+ };
339
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
340
+ var _a;
341
+ let scopeId = getScopeId(cmpMeta);
342
+ const style = styles.get(scopeId);
343
+ // if an element is NOT connected then getRootNode() will return the wrong root node
344
+ // so the fallback is to always use the document for the root node in those cases
345
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
346
+ if (style) {
347
+ if (typeof style === 'string') {
348
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
349
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
350
+ let styleElm;
351
+ if (!appliedStyles) {
352
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
353
+ }
354
+ if (!appliedStyles.has(scopeId)) {
355
+ {
356
+ {
357
+ styleElm = doc.createElement('style');
358
+ styleElm.innerHTML = style;
359
+ }
360
+ // Apply CSP nonce to the style tag if it exists
361
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
362
+ if (nonce != null) {
363
+ styleElm.setAttribute('nonce', nonce);
364
+ }
365
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
366
+ }
367
+ if (appliedStyles) {
368
+ appliedStyles.add(scopeId);
369
+ }
370
+ }
371
+ }
372
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
373
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
374
+ }
375
+ }
376
+ return scopeId;
377
+ };
378
+ const attachStyles = (hostRef) => {
379
+ const cmpMeta = hostRef.$cmpMeta$;
380
+ const elm = hostRef.$hostElement$;
381
+ const flags = cmpMeta.$flags$;
382
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
383
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
384
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
385
+ // only required when we're NOT using native shadow dom (slot)
386
+ // or this browser doesn't support native shadow dom
387
+ // and this host element was NOT created with SSR
388
+ // let's pick out the inner content for slot projection
389
+ // create a node to represent where the original
390
+ // content was first placed, which is useful later on
391
+ // DOM WRITE!!
392
+ elm['s-sc'] = scopeId;
393
+ elm.classList.add(scopeId + '-h');
394
+ if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
395
+ elm.classList.add(scopeId + '-s');
396
+ }
397
+ }
398
+ endAttachStyles();
399
+ };
400
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
401
+ /**
402
+ * Production setAccessor() function based on Preact by
403
+ * Jason Miller (@developit)
404
+ * Licensed under the MIT License
405
+ * https://github.com/developit/preact/blob/master/LICENSE
406
+ *
407
+ * Modified for Stencil's compiler and vdom
408
+ */
409
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
+ if (oldValue !== newValue) {
411
+ let isProp = isMemberInElement(elm, memberName);
412
+ let ln = memberName.toLowerCase();
413
+ if (memberName === 'class') {
414
+ const classList = elm.classList;
415
+ const oldClasses = parseClassList(oldValue);
416
+ const newClasses = parseClassList(newValue);
417
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
418
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
419
+ }
420
+ else if (memberName === 'style') {
421
+ // update style attribute, css properties and values
422
+ {
423
+ for (const prop in oldValue) {
424
+ if (!newValue || newValue[prop] == null) {
425
+ if (prop.includes('-')) {
426
+ elm.style.removeProperty(prop);
427
+ }
428
+ else {
429
+ elm.style[prop] = '';
430
+ }
431
+ }
432
+ }
433
+ }
434
+ for (const prop in newValue) {
435
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
436
+ if (prop.includes('-')) {
437
+ elm.style.setProperty(prop, newValue[prop]);
438
+ }
439
+ else {
440
+ elm.style[prop] = newValue[prop];
441
+ }
442
+ }
443
+ }
444
+ }
445
+ else if (memberName === 'key')
446
+ ;
447
+ else if (memberName === 'ref') {
448
+ // minifier will clean this up
449
+ if (newValue) {
450
+ newValue(elm);
451
+ }
452
+ }
453
+ else if ((!isProp ) &&
454
+ memberName[0] === 'o' &&
455
+ memberName[1] === 'n') {
456
+ // Event Handlers
457
+ // so if the member name starts with "on" and the 3rd characters is
458
+ // a capital letter, and it's not already a member on the element,
459
+ // then we're assuming it's an event listener
460
+ if (memberName[2] === '-') {
461
+ // on- prefixed events
462
+ // allows to be explicit about the dom event to listen without any magic
463
+ // under the hood:
464
+ // <my-cmp on-click> // listens for "click"
465
+ // <my-cmp on-Click> // listens for "Click"
466
+ // <my-cmp on-ionChange> // listens for "ionChange"
467
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
468
+ memberName = memberName.slice(3);
469
+ }
470
+ else if (isMemberInElement(win, ln)) {
471
+ // standard event
472
+ // the JSX attribute could have been "onMouseOver" and the
473
+ // member name "onmouseover" is on the window's prototype
474
+ // so let's add the listener "mouseover", which is all lowercased
475
+ memberName = ln.slice(2);
476
+ }
477
+ else {
478
+ // custom event
479
+ // the JSX attribute could have been "onMyCustomEvent"
480
+ // so let's trim off the "on" prefix and lowercase the first character
481
+ // and add the listener "myCustomEvent"
482
+ // except for the first character, we keep the event name case
483
+ memberName = ln[2] + memberName.slice(3);
484
+ }
485
+ if (oldValue) {
486
+ plt.rel(elm, memberName, oldValue, false);
487
+ }
488
+ if (newValue) {
489
+ plt.ael(elm, memberName, newValue, false);
490
+ }
491
+ }
492
+ else {
493
+ // Set property if it exists and it's not a SVG
494
+ const isComplex = isComplexType(newValue);
495
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
496
+ try {
497
+ if (!elm.tagName.includes('-')) {
498
+ const n = newValue == null ? '' : newValue;
499
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
500
+ if (memberName === 'list') {
501
+ isProp = false;
502
+ }
503
+ else if (oldValue == null || elm[memberName] != n) {
504
+ elm[memberName] = n;
505
+ }
506
+ }
507
+ else {
508
+ elm[memberName] = newValue;
509
+ }
510
+ }
511
+ catch (e) { }
512
+ }
513
+ /**
514
+ * Need to manually update attribute if:
515
+ * - memberName is not an attribute
516
+ * - if we are rendering the host element in order to reflect attribute
517
+ * - if it's a SVG, since properties might not work in <svg>
518
+ * - if the newValue is null/undefined or 'false'.
519
+ */
520
+ let xlink = false;
521
+ {
522
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
523
+ memberName = ln;
524
+ xlink = true;
525
+ }
526
+ }
527
+ if (newValue == null || newValue === false) {
528
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
529
+ if (xlink) {
530
+ elm.removeAttributeNS(XLINK_NS, memberName);
531
+ }
532
+ else {
533
+ elm.removeAttribute(memberName);
534
+ }
535
+ }
536
+ }
537
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
538
+ newValue = newValue === true ? '' : newValue;
539
+ if (xlink) {
540
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
541
+ }
542
+ else {
543
+ elm.setAttribute(memberName, newValue);
544
+ }
545
+ }
546
+ }
547
+ }
548
+ };
549
+ const parseClassListRegex = /\s/;
550
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
551
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
552
+ // if the element passed in is a shadow root, which is a document fragment
553
+ // then we want to be adding attrs/props to the shadow root's "host" element
554
+ // if it's not a shadow root, then we add attrs/props to the same element
555
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
556
+ ? newVnode.$elm$.host
557
+ : newVnode.$elm$;
558
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
559
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
560
+ {
561
+ // remove attributes no longer present on the vnode by setting them to undefined
562
+ for (memberName in oldVnodeAttrs) {
563
+ if (!(memberName in newVnodeAttrs)) {
564
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
565
+ }
566
+ }
567
+ }
568
+ // add new & update changed attributes
569
+ for (memberName in newVnodeAttrs) {
570
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
571
+ }
572
+ };
573
+ /**
574
+ * Create a DOM Node corresponding to one of the children of a given VNode.
575
+ *
576
+ * @param oldParentVNode the parent VNode from the previous render
577
+ * @param newParentVNode the parent VNode from the current render
578
+ * @param childIndex the index of the VNode, in the _new_ parent node's
579
+ * children, for which we will create a new DOM node
580
+ * @param parentElm the parent DOM node which our new node will be a child of
581
+ * @returns the newly created node
582
+ */
583
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
584
+ // tslint:disable-next-line: prefer-const
585
+ const newVNode = newParentVNode.$children$[childIndex];
586
+ let i = 0;
587
+ let elm;
588
+ let childNode;
589
+ let oldVNode;
590
+ if (!useNativeShadowDom) {
591
+ // remember for later we need to check to relocate nodes
592
+ checkSlotRelocate = true;
593
+ if (newVNode.$tag$ === 'slot') {
594
+ if (scopeId) {
595
+ // scoped css needs to add its scoped id to the parent element
596
+ parentElm.classList.add(scopeId + '-s');
597
+ }
598
+ newVNode.$flags$ |= newVNode.$children$
599
+ ? // slot element has fallback content
600
+ 2 /* VNODE_FLAGS.isSlotFallback */
601
+ : // slot element does not have fallback content
602
+ 1 /* VNODE_FLAGS.isSlotReference */;
603
+ }
604
+ }
605
+ if (newVNode.$text$ !== null) {
606
+ // create text node
607
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
608
+ }
609
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
610
+ // create a slot reference node
611
+ elm = newVNode.$elm$ =
612
+ doc.createTextNode('');
613
+ }
614
+ else {
615
+ // create element
616
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
617
+ ? 'slot-fb'
618
+ : newVNode.$tag$));
619
+ // add css classes, attrs, props, listeners, etc.
620
+ {
621
+ updateElement(null, newVNode, isSvgMode);
622
+ }
623
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
624
+ // if there is a scopeId and this is the initial render
625
+ // then let's add the scopeId as a css class
626
+ elm.classList.add((elm['s-si'] = scopeId));
627
+ }
628
+ if (newVNode.$children$) {
629
+ for (i = 0; i < newVNode.$children$.length; ++i) {
630
+ // create the node
631
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
632
+ // return node could have been null
633
+ if (childNode) {
634
+ // append our new node
635
+ elm.appendChild(childNode);
636
+ }
637
+ }
638
+ }
639
+ }
640
+ {
641
+ elm['s-hn'] = hostTagName;
642
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
643
+ // remember the content reference comment
644
+ elm['s-sr'] = true;
645
+ // remember the content reference comment
646
+ elm['s-cr'] = contentRef;
647
+ // remember the slot name, or empty string for default slot
648
+ elm['s-sn'] = newVNode.$name$ || '';
649
+ // check if we've got an old vnode for this slot
650
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
651
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
652
+ // we've got an old slot vnode and the wrapper is being replaced
653
+ // so let's move the old slot content back to it's original location
654
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
655
+ }
656
+ }
657
+ }
658
+ return elm;
659
+ };
660
+ const putBackInOriginalLocation = (parentElm, recursive) => {
661
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
662
+ const oldSlotChildNodes = parentElm.childNodes;
663
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
664
+ const childNode = oldSlotChildNodes[i];
665
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
666
+ // // this child node in the old element is from another component
667
+ // // remove this node from the old slot's parent
668
+ // childNode.remove();
669
+ // and relocate it back to it's original location
670
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
671
+ // remove the old original location comment entirely
672
+ // later on the patch function will know what to do
673
+ // and move this to the correct spot in need be
674
+ childNode['s-ol'].remove();
675
+ childNode['s-ol'] = undefined;
676
+ checkSlotRelocate = true;
677
+ }
678
+ if (recursive) {
679
+ putBackInOriginalLocation(childNode, recursive);
680
+ }
681
+ }
682
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
683
+ };
684
+ /**
685
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
686
+ * add them to the DOM in the appropriate place.
687
+ *
688
+ * @param parentElm the DOM node which should be used as a parent for the new
689
+ * DOM nodes
690
+ * @param before a child of the `parentElm` which the new children should be
691
+ * inserted before (optional)
692
+ * @param parentVNode the parent virtual DOM node
693
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
694
+ * @param startIdx the index in the child virtual DOM nodes at which to start
695
+ * creating DOM nodes (inclusive)
696
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
697
+ * creating DOM nodes (inclusive)
698
+ */
699
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
700
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
701
+ let childNode;
702
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
703
+ containerElm = containerElm.shadowRoot;
704
+ }
705
+ for (; startIdx <= endIdx; ++startIdx) {
706
+ if (vnodes[startIdx]) {
707
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
708
+ if (childNode) {
709
+ vnodes[startIdx].$elm$ = childNode;
710
+ containerElm.insertBefore(childNode, referenceNode(before) );
711
+ }
712
+ }
713
+ }
714
+ };
715
+ /**
716
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
717
+ * This can be used to, for instance, clean up after a list of children which
718
+ * should no longer be shown.
719
+ *
720
+ * This function also handles some of Stencil's slot relocation logic.
721
+ *
722
+ * @param vnodes a list of virtual DOM nodes to remove
723
+ * @param startIdx the index at which to start removing nodes (inclusive)
724
+ * @param endIdx the index at which to stop removing nodes (inclusive)
725
+ * @param vnode a VNode
726
+ * @param elm an element
727
+ */
728
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
729
+ for (; startIdx <= endIdx; ++startIdx) {
730
+ if ((vnode = vnodes[startIdx])) {
731
+ elm = vnode.$elm$;
732
+ callNodeRefs(vnode);
733
+ {
734
+ // we're removing this element
735
+ // so it's possible we need to show slot fallback content now
736
+ checkSlotFallbackVisibility = true;
737
+ if (elm['s-ol']) {
738
+ // remove the original location comment
739
+ elm['s-ol'].remove();
740
+ }
741
+ else {
742
+ // it's possible that child nodes of the node
743
+ // that's being removed are slot nodes
744
+ putBackInOriginalLocation(elm, true);
745
+ }
746
+ }
747
+ // remove the vnode's element from the dom
748
+ elm.remove();
749
+ }
750
+ }
751
+ };
752
+ /**
753
+ * Reconcile the children of a new VNode with the children of an old VNode by
754
+ * traversing the two collections of children, identifying nodes that are
755
+ * conserved or changed, calling out to `patch` to make any necessary
756
+ * updates to the DOM, and rearranging DOM nodes as needed.
757
+ *
758
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
759
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
760
+ * 'windows' by storing start and end indices and references to the
761
+ * corresponding array entries. Initially the two 'windows' are basically equal
762
+ * to the entire array, but we progressively narrow the windows until there are
763
+ * no children left to update by doing the following:
764
+ *
765
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
766
+ * that if we have an initial array like the following we'll end up dealing
767
+ * only with a window bounded by the highlighted elements:
768
+ *
769
+ * [null, null, VNode1 , ... , VNode2, null, null]
770
+ * ^^^^^^ ^^^^^^
771
+ *
772
+ * 2. Check to see if the elements at the head and tail positions are equal
773
+ * across the windows. This will basically detect elements which haven't
774
+ * been added, removed, or changed position, i.e. if you had the following
775
+ * VNode elements (represented as HTML):
776
+ *
777
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
778
+ * newVNode: `<div><p><span>THERE</span></p></div>`
779
+ *
780
+ * Then when comparing the children of the `<div>` tag we check the equality
781
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
782
+ * same tag in the same position, we'd be able to avoid completely
783
+ * re-rendering the subtree under them with a new DOM element and would just
784
+ * call out to `patch` to handle reconciling their children and so on.
785
+ *
786
+ * 3. Check, for both windows, to see if the element at the beginning of the
787
+ * window corresponds to the element at the end of the other window. This is
788
+ * a heuristic which will let us identify _some_ situations in which
789
+ * elements have changed position, for instance it _should_ detect that the
790
+ * children nodes themselves have not changed but merely moved in the
791
+ * following example:
792
+ *
793
+ * oldVNode: `<div><element-one /><element-two /></div>`
794
+ * newVNode: `<div><element-two /><element-one /></div>`
795
+ *
796
+ * If we find cases like this then we also need to move the concrete DOM
797
+ * elements corresponding to the moved children to write the re-order to the
798
+ * DOM.
799
+ *
800
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
801
+ * nodes in the old children which have the same key as the first element in
802
+ * our window on the new children. If we find such a node we handle calling
803
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
804
+ * what we find.
805
+ *
806
+ * Finally, once we've narrowed our 'windows' to the point that either of them
807
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
808
+ * insertion or deletion that needs to happen to get a DOM state that correctly
809
+ * reflects the new child VNodes. If, for instance, after our window on the old
810
+ * children has collapsed we still have more nodes on the new children that
811
+ * we haven't dealt with yet then we need to add them, or if the new children
812
+ * collapse but we still have unhandled _old_ children then we need to make
813
+ * sure the corresponding DOM nodes are removed.
814
+ *
815
+ * @param parentElm the node into which the parent VNode is rendered
816
+ * @param oldCh the old children of the parent node
817
+ * @param newVNode the new VNode which will replace the parent
818
+ * @param newCh the new children of the parent node
819
+ */
820
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
821
+ let oldStartIdx = 0;
822
+ let newStartIdx = 0;
823
+ let idxInOld = 0;
824
+ let i = 0;
825
+ let oldEndIdx = oldCh.length - 1;
826
+ let oldStartVnode = oldCh[0];
827
+ let oldEndVnode = oldCh[oldEndIdx];
828
+ let newEndIdx = newCh.length - 1;
829
+ let newStartVnode = newCh[0];
830
+ let newEndVnode = newCh[newEndIdx];
831
+ let node;
832
+ let elmToMove;
833
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
834
+ if (oldStartVnode == null) {
835
+ // VNode might have been moved left
836
+ oldStartVnode = oldCh[++oldStartIdx];
837
+ }
838
+ else if (oldEndVnode == null) {
839
+ oldEndVnode = oldCh[--oldEndIdx];
840
+ }
841
+ else if (newStartVnode == null) {
842
+ newStartVnode = newCh[++newStartIdx];
843
+ }
844
+ else if (newEndVnode == null) {
845
+ newEndVnode = newCh[--newEndIdx];
846
+ }
847
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
848
+ // if the start nodes are the same then we should patch the new VNode
849
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
850
+ // indices to reflect that. We don't need to move any DOM Nodes around
851
+ // since things are matched up in order.
852
+ patch(oldStartVnode, newStartVnode);
853
+ oldStartVnode = oldCh[++oldStartIdx];
854
+ newStartVnode = newCh[++newStartIdx];
855
+ }
856
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
857
+ // likewise, if the end nodes are the same we patch new onto old and
858
+ // decrement our end indices, and also likewise in this case we don't
859
+ // need to move any DOM Nodes.
860
+ patch(oldEndVnode, newEndVnode);
861
+ oldEndVnode = oldCh[--oldEndIdx];
862
+ newEndVnode = newCh[--newEndIdx];
863
+ }
864
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
865
+ // case: "Vnode moved right"
866
+ //
867
+ // We've found that the last node in our window on the new children is
868
+ // the same VNode as the _first_ node in our window on the old children
869
+ // we're dealing with now. Visually, this is the layout of these two
870
+ // nodes:
871
+ //
872
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
873
+ // ^^^^^^^^^^^
874
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
875
+ // ^^^^^^^^^^^^^
876
+ //
877
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
878
+ // and move the DOM element for `oldStartVnode`.
879
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
880
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
881
+ }
882
+ patch(oldStartVnode, newEndVnode);
883
+ // We need to move the element for `oldStartVnode` into a position which
884
+ // will be appropriate for `newEndVnode`. For this we can use
885
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
886
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
887
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
888
+ //
889
+ // <old-start-node />
890
+ // <some-intervening-node />
891
+ // <old-end-node />
892
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
893
+ // <next-sibling />
894
+ //
895
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
896
+ // the node for `oldStartVnode` at the end of the children of
897
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
898
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
899
+ // append it to the children of the parent element.
900
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
901
+ oldStartVnode = oldCh[++oldStartIdx];
902
+ newEndVnode = newCh[--newEndIdx];
903
+ }
904
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
905
+ // case: "Vnode moved left"
906
+ //
907
+ // We've found that the first node in our window on the new children is
908
+ // the same VNode as the _last_ node in our window on the old children.
909
+ // Visually, this is the layout of these two nodes:
910
+ //
911
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
912
+ // ^^^^^^^^^^^^^
913
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
914
+ // ^^^^^^^^^^^
915
+ //
916
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
917
+ // (which will handle updating any changed attributes, reconciling their
918
+ // children etc) but we also need to move the DOM node to which
919
+ // `oldEndVnode` corresponds.
920
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
921
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
922
+ }
923
+ patch(oldEndVnode, newStartVnode);
924
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
925
+ // the same node, so since we're here we know that they are not. Thus we
926
+ // can move the element for `oldEndVnode` _before_ the element for
927
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
928
+ // future.
929
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
930
+ oldEndVnode = oldCh[--oldEndIdx];
931
+ newStartVnode = newCh[++newStartIdx];
932
+ }
933
+ else {
934
+ // Here we do some checks to match up old and new nodes based on the
935
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
936
+ // in the JSX for a DOM element in the implementation of a Stencil
937
+ // component.
938
+ //
939
+ // First we check to see if there are any nodes in the array of old
940
+ // children which have the same key as the first node in the new
941
+ // children.
942
+ idxInOld = -1;
943
+ {
944
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
945
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
946
+ idxInOld = i;
947
+ break;
948
+ }
949
+ }
950
+ }
951
+ if (idxInOld >= 0) {
952
+ // We found a node in the old children which matches up with the first
953
+ // node in the new children! So let's deal with that
954
+ elmToMove = oldCh[idxInOld];
955
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
956
+ // the tag doesn't match so we'll need a new DOM element
957
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
958
+ }
959
+ else {
960
+ patch(elmToMove, newStartVnode);
961
+ // invalidate the matching old node so that we won't try to update it
962
+ // again later on
963
+ oldCh[idxInOld] = undefined;
964
+ node = elmToMove.$elm$;
965
+ }
966
+ newStartVnode = newCh[++newStartIdx];
967
+ }
968
+ else {
969
+ // We either didn't find an element in the old children that matches
970
+ // the key of the first new child OR the build is not using `key`
971
+ // attributes at all. In either case we need to create a new element
972
+ // for the new node.
973
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
974
+ newStartVnode = newCh[++newStartIdx];
975
+ }
976
+ if (node) {
977
+ // if we created a new node then handle inserting it to the DOM
978
+ {
979
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
980
+ }
981
+ }
982
+ }
983
+ }
984
+ if (oldStartIdx > oldEndIdx) {
985
+ // we have some more new nodes to add which don't match up with old nodes
986
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
987
+ }
988
+ else if (newStartIdx > newEndIdx) {
989
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
990
+ // in the new array, so lets remove them (which entails cleaning up the
991
+ // relevant DOM nodes)
992
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
993
+ }
994
+ };
995
+ /**
996
+ * Compare two VNodes to determine if they are the same
997
+ *
998
+ * **NB**: This function is an equality _heuristic_ based on the available
999
+ * information set on the two VNodes and can be misleading under certain
1000
+ * circumstances. In particular, if the two nodes do not have `key` attrs
1001
+ * (available under `$key$` on VNodes) then the function falls back on merely
1002
+ * checking that they have the same tag.
1003
+ *
1004
+ * So, in other words, if `key` attrs are not set on VNodes which may be
1005
+ * changing order within a `children` array or something along those lines then
1006
+ * we could obtain a false negative and then have to do needless re-rendering
1007
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1008
+ *
1009
+ * @param leftVNode the first VNode to check
1010
+ * @param rightVNode the second VNode to check
1011
+ * @returns whether they're equal or not
1012
+ */
1013
+ const isSameVnode = (leftVNode, rightVNode) => {
1014
+ // compare if two vnode to see if they're "technically" the same
1015
+ // need to have the same element tag, and same key to be the same
1016
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1017
+ if (leftVNode.$tag$ === 'slot') {
1018
+ return leftVNode.$name$ === rightVNode.$name$;
1019
+ }
1020
+ // this will be set if components in the build have `key` attrs set on them
1021
+ {
1022
+ return leftVNode.$key$ === rightVNode.$key$;
1023
+ }
1024
+ }
1025
+ return false;
1026
+ };
1027
+ const referenceNode = (node) => {
1028
+ // this node was relocated to a new location in the dom
1029
+ // because of some other component's slot
1030
+ // but we still have an html comment in place of where
1031
+ // it's original location was according to it's original vdom
1032
+ return (node && node['s-ol']) || node;
1033
+ };
1034
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1035
+ /**
1036
+ * Handle reconciling an outdated VNode with a new one which corresponds to
1037
+ * it. This function handles flushing updates to the DOM and reconciling the
1038
+ * children of the two nodes (if any).
1039
+ *
1040
+ * @param oldVNode an old VNode whose DOM element and children we want to update
1041
+ * @param newVNode a new VNode representing an updated version of the old one
1042
+ */
1043
+ const patch = (oldVNode, newVNode) => {
1044
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
1045
+ const oldChildren = oldVNode.$children$;
1046
+ const newChildren = newVNode.$children$;
1047
+ const tag = newVNode.$tag$;
1048
+ const text = newVNode.$text$;
1049
+ let defaultHolder;
1050
+ if (text === null) {
1051
+ {
1052
+ if (tag === 'slot')
1053
+ ;
1054
+ else {
1055
+ // either this is the first render of an element OR it's an update
1056
+ // AND we already know it's possible it could have changed
1057
+ // this updates the element's css classes, attrs, props, listeners, etc.
1058
+ updateElement(oldVNode, newVNode, isSvgMode);
1059
+ }
1060
+ }
1061
+ if (oldChildren !== null && newChildren !== null) {
1062
+ // looks like there's child vnodes for both the old and new vnodes
1063
+ // so we need to call `updateChildren` to reconcile them
1064
+ updateChildren(elm, oldChildren, newVNode, newChildren);
1065
+ }
1066
+ else if (newChildren !== null) {
1067
+ // no old child vnodes, but there are new child vnodes to add
1068
+ if (oldVNode.$text$ !== null) {
1069
+ // the old vnode was text, so be sure to clear it out
1070
+ elm.textContent = '';
1071
+ }
1072
+ // add the new vnode children
1073
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1074
+ }
1075
+ else if (oldChildren !== null) {
1076
+ // no new child vnodes, but there are old child vnodes to remove
1077
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1078
+ }
1079
+ }
1080
+ else if ((defaultHolder = elm['s-cr'])) {
1081
+ // this element has slotted content
1082
+ defaultHolder.parentNode.textContent = text;
1083
+ }
1084
+ else if (oldVNode.$text$ !== text) {
1085
+ // update the text content for the text only vnode
1086
+ // and also only if the text is different than before
1087
+ elm.data = text;
1088
+ }
1089
+ };
1090
+ const updateFallbackSlotVisibility = (elm) => {
1091
+ // tslint:disable-next-line: prefer-const
1092
+ const childNodes = elm.childNodes;
1093
+ let childNode;
1094
+ let i;
1095
+ let ilen;
1096
+ let j;
1097
+ let slotNameAttr;
1098
+ let nodeType;
1099
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1100
+ childNode = childNodes[i];
1101
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1102
+ if (childNode['s-sr']) {
1103
+ // this is a slot fallback node
1104
+ // get the slot name for this slot reference node
1105
+ slotNameAttr = childNode['s-sn'];
1106
+ // by default always show a fallback slot node
1107
+ // then hide it if there are other slots in the light dom
1108
+ childNode.hidden = false;
1109
+ for (j = 0; j < ilen; j++) {
1110
+ nodeType = childNodes[j].nodeType;
1111
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1112
+ // this sibling node is from a different component OR is a named fallback slot node
1113
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1114
+ childNode.hidden = true;
1115
+ break;
1116
+ }
1117
+ }
1118
+ else {
1119
+ // this is a default fallback slot node
1120
+ // any element or text node (with content)
1121
+ // should hide the default fallback slot node
1122
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1123
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1124
+ childNode.hidden = true;
1125
+ break;
1126
+ }
1127
+ }
1128
+ }
1129
+ }
1130
+ // keep drilling down
1131
+ updateFallbackSlotVisibility(childNode);
1132
+ }
1133
+ }
1134
+ };
1135
+ const relocateNodes = [];
1136
+ const relocateSlotContent = (elm) => {
1137
+ // tslint:disable-next-line: prefer-const
1138
+ let childNode;
1139
+ let node;
1140
+ let hostContentNodes;
1141
+ let slotNameAttr;
1142
+ let relocateNodeData;
1143
+ let j;
1144
+ let i = 0;
1145
+ const childNodes = elm.childNodes;
1146
+ const ilen = childNodes.length;
1147
+ for (; i < ilen; i++) {
1148
+ childNode = childNodes[i];
1149
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1150
+ // first got the content reference comment node
1151
+ // then we got it's parent, which is where all the host content is in now
1152
+ hostContentNodes = node.parentNode.childNodes;
1153
+ slotNameAttr = childNode['s-sn'];
1154
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1155
+ node = hostContentNodes[j];
1156
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1157
+ // let's do some relocating to its new home
1158
+ // but never relocate a content reference node
1159
+ // that is suppose to always represent the original content location
1160
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
1161
+ // it's possible we've already decided to relocate this node
1162
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1163
+ // made some changes to slots
1164
+ // let's make sure we also double check
1165
+ // fallbacks are correctly hidden or shown
1166
+ checkSlotFallbackVisibility = true;
1167
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
1168
+ if (relocateNodeData) {
1169
+ // previously we never found a slot home for this node
1170
+ // but turns out we did, so let's remember it now
1171
+ relocateNodeData.$slotRefNode$ = childNode;
1172
+ }
1173
+ else {
1174
+ // add to our list of nodes to relocate
1175
+ relocateNodes.push({
1176
+ $slotRefNode$: childNode,
1177
+ $nodeToRelocate$: node,
1178
+ });
1179
+ }
1180
+ if (node['s-sr']) {
1181
+ relocateNodes.map((relocateNode) => {
1182
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1183
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1184
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1185
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1186
+ }
1187
+ }
1188
+ });
1189
+ }
1190
+ }
1191
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1192
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
1193
+ // if we never find a home for this element then we'll need to hide it
1194
+ relocateNodes.push({
1195
+ $nodeToRelocate$: node,
1196
+ });
1197
+ }
1198
+ }
1199
+ }
1200
+ }
1201
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1202
+ relocateSlotContent(childNode);
1203
+ }
1204
+ }
1205
+ };
1206
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1207
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1208
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1209
+ return true;
1210
+ }
1211
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1212
+ return true;
1213
+ }
1214
+ return false;
1215
+ }
1216
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
1217
+ return true;
1218
+ }
1219
+ return slotNameAttr === '';
1220
+ };
1221
+ const callNodeRefs = (vNode) => {
1222
+ {
1223
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1224
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
1225
+ }
1226
+ };
1227
+ /**
1228
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1229
+ *
1230
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1231
+ * function will handle creating a virtual DOM tree with a single root, patching
1232
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1233
+ * relocation, and reflecting attributes.
1234
+ *
1235
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1236
+ * the DOM node into which it should be rendered.
1237
+ * @param renderFnResults the virtual DOM nodes to be rendered
1238
+ */
1239
+ const renderVdom = (hostRef, renderFnResults) => {
1240
+ const hostElm = hostRef.$hostElement$;
1241
+ const cmpMeta = hostRef.$cmpMeta$;
1242
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1243
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1244
+ hostTagName = hostElm.tagName;
1245
+ if (cmpMeta.$attrsToReflect$) {
1246
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1247
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1248
+ }
1249
+ rootVnode.$tag$ = null;
1250
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1251
+ hostRef.$vnode$ = rootVnode;
1252
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1253
+ {
1254
+ scopeId = hostElm['s-sc'];
1255
+ }
1256
+ {
1257
+ contentRef = hostElm['s-cr'];
1258
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1259
+ // always reset
1260
+ checkSlotFallbackVisibility = false;
1261
+ }
1262
+ // synchronous patch
1263
+ patch(oldVNode, rootVnode);
1264
+ {
1265
+ // while we're moving nodes around existing nodes, temporarily disable
1266
+ // the disconnectCallback from working
1267
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1268
+ if (checkSlotRelocate) {
1269
+ relocateSlotContent(rootVnode.$elm$);
1270
+ let relocateData;
1271
+ let nodeToRelocate;
1272
+ let orgLocationNode;
1273
+ let parentNodeRef;
1274
+ let insertBeforeNode;
1275
+ let refNode;
1276
+ let i = 0;
1277
+ for (; i < relocateNodes.length; i++) {
1278
+ relocateData = relocateNodes[i];
1279
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1280
+ if (!nodeToRelocate['s-ol']) {
1281
+ // add a reference node marking this node's original location
1282
+ // keep a reference to this node for later lookups
1283
+ orgLocationNode =
1284
+ doc.createTextNode('');
1285
+ orgLocationNode['s-nr'] = nodeToRelocate;
1286
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1287
+ }
1288
+ }
1289
+ for (i = 0; i < relocateNodes.length; i++) {
1290
+ relocateData = relocateNodes[i];
1291
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1292
+ if (relocateData.$slotRefNode$) {
1293
+ // by default we're just going to insert it directly
1294
+ // after the slot reference node
1295
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1296
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1297
+ orgLocationNode = nodeToRelocate['s-ol'];
1298
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1299
+ refNode = orgLocationNode['s-nr'];
1300
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1301
+ refNode = refNode.nextSibling;
1302
+ if (!refNode || !refNode['s-nr']) {
1303
+ insertBeforeNode = refNode;
1304
+ break;
1305
+ }
1306
+ }
1307
+ }
1308
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1309
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1310
+ // we've checked that it's worth while to relocate
1311
+ // since that the node to relocate
1312
+ // has a different next sibling or parent relocated
1313
+ if (nodeToRelocate !== insertBeforeNode) {
1314
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1315
+ // probably a component in the index.html that doesn't have it's hostname set
1316
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1317
+ }
1318
+ // add it back to the dom but in its new home
1319
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1320
+ }
1321
+ }
1322
+ }
1323
+ else {
1324
+ // this node doesn't have a slot home to go to, so let's hide it
1325
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1326
+ nodeToRelocate.hidden = true;
1327
+ }
1328
+ }
1329
+ }
1330
+ }
1331
+ if (checkSlotFallbackVisibility) {
1332
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1333
+ }
1334
+ // done moving nodes around
1335
+ // allow the disconnect callback to work again
1336
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1337
+ // always reset
1338
+ relocateNodes.length = 0;
1339
+ }
1340
+ };
1341
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1342
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1343
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1344
+ }
1345
+ };
1346
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1347
+ {
1348
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1349
+ }
1350
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1351
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1352
+ return;
1353
+ }
1354
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1355
+ // there is no ancestor component or the ancestor component
1356
+ // has already fired off its lifecycle update then
1357
+ // fire off the initial update
1358
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1359
+ return writeTask(dispatch) ;
1360
+ };
1361
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1362
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1363
+ const instance = hostRef.$lazyInstance$ ;
1364
+ let promise;
1365
+ if (isInitialLoad) {
1366
+ {
1367
+ hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1368
+ if (hostRef.$queuedListeners$) {
1369
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1370
+ hostRef.$queuedListeners$ = null;
1371
+ }
1372
+ }
1373
+ {
1374
+ promise = safeCall(instance, 'componentWillLoad');
1375
+ }
1376
+ }
1377
+ else {
1378
+ {
1379
+ promise = safeCall(instance, 'componentWillUpdate');
1380
+ }
1381
+ }
1382
+ {
1383
+ promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1384
+ }
1385
+ endSchedule();
1386
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1387
+ };
1388
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1389
+ // updateComponent
1390
+ const elm = hostRef.$hostElement$;
1391
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1392
+ const rc = elm['s-rc'];
1393
+ if (isInitialLoad) {
1394
+ // DOM WRITE!
1395
+ attachStyles(hostRef);
1396
+ }
1397
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1398
+ {
1399
+ callRender(hostRef, instance);
1400
+ }
1401
+ if (rc) {
1402
+ // ok, so turns out there are some child host elements
1403
+ // waiting on this parent element to load
1404
+ // let's fire off all update callbacks waiting
1405
+ rc.map((cb) => cb());
1406
+ elm['s-rc'] = undefined;
1407
+ }
1408
+ endRender();
1409
+ endUpdate();
1410
+ {
1411
+ const childrenPromises = elm['s-p'];
1412
+ const postUpdate = () => postUpdateComponent(hostRef);
1413
+ if (childrenPromises.length === 0) {
1414
+ postUpdate();
1415
+ }
1416
+ else {
1417
+ Promise.all(childrenPromises).then(postUpdate);
1418
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1419
+ childrenPromises.length = 0;
1420
+ }
1421
+ }
1422
+ };
1423
+ const callRender = (hostRef, instance, elm) => {
1424
+ try {
1425
+ renderingRef = instance;
1426
+ instance = instance.render() ;
1427
+ {
1428
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1429
+ }
1430
+ {
1431
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1432
+ }
1433
+ {
1434
+ {
1435
+ // looks like we've got child nodes to render into this host element
1436
+ // or we need to update the css class/attrs on the host element
1437
+ // DOM WRITE!
1438
+ {
1439
+ renderVdom(hostRef, instance);
1440
+ }
1441
+ }
1442
+ }
1443
+ }
1444
+ catch (e) {
1445
+ consoleError(e, hostRef.$hostElement$);
1446
+ }
1447
+ renderingRef = null;
1448
+ return null;
1449
+ };
1450
+ const getRenderingRef = () => renderingRef;
1451
+ const postUpdateComponent = (hostRef) => {
1452
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1453
+ const elm = hostRef.$hostElement$;
1454
+ const endPostUpdate = createTime('postUpdate', tagName);
1455
+ const instance = hostRef.$lazyInstance$ ;
1456
+ const ancestorComponent = hostRef.$ancestorComponent$;
1457
+ {
1458
+ safeCall(instance, 'componentDidRender');
1459
+ }
1460
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1461
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1462
+ {
1463
+ // DOM WRITE!
1464
+ addHydratedFlag(elm);
1465
+ }
1466
+ {
1467
+ safeCall(instance, 'componentDidLoad');
1468
+ }
1469
+ endPostUpdate();
1470
+ {
1471
+ hostRef.$onReadyResolve$(elm);
1472
+ if (!ancestorComponent) {
1473
+ appDidLoad();
1474
+ }
1475
+ }
1476
+ }
1477
+ else {
1478
+ {
1479
+ safeCall(instance, 'componentDidUpdate');
1480
+ }
1481
+ endPostUpdate();
1482
+ }
1483
+ {
1484
+ hostRef.$onInstanceResolve$(elm);
1485
+ }
1486
+ // load events fire from bottom to top
1487
+ // the deepest elements load first then bubbles up
1488
+ {
1489
+ if (hostRef.$onRenderResolve$) {
1490
+ hostRef.$onRenderResolve$();
1491
+ hostRef.$onRenderResolve$ = undefined;
1492
+ }
1493
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1494
+ nextTick(() => scheduleUpdate(hostRef, false));
1495
+ }
1496
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1497
+ }
1498
+ // ( •_•)
1499
+ // ( •_•)>⌐■-■
1500
+ // (⌐■_■)
1501
+ };
1502
+ const forceUpdate = (ref) => {
1503
+ {
1504
+ const hostRef = getHostRef(ref);
1505
+ const isConnected = hostRef.$hostElement$.isConnected;
1506
+ if (isConnected &&
1507
+ (hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1508
+ scheduleUpdate(hostRef, false);
1509
+ }
1510
+ // Returns "true" when the forced update was successfully scheduled
1511
+ return isConnected;
1512
+ }
1513
+ };
1514
+ const appDidLoad = (who) => {
1515
+ // on appload
1516
+ // we have finish the first big initial render
1517
+ {
1518
+ addHydratedFlag(doc.documentElement);
1519
+ }
1520
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1521
+ };
1522
+ const safeCall = (instance, method, arg) => {
1523
+ if (instance && instance[method]) {
1524
+ try {
1525
+ return instance[method](arg);
1526
+ }
1527
+ catch (e) {
1528
+ consoleError(e);
1529
+ }
1530
+ }
1531
+ return undefined;
1532
+ };
1533
+ const then = (promise, thenFn) => {
1534
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1535
+ };
1536
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1537
+ ;
1538
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1539
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1540
+ // check our new property value against our internal value
1541
+ const hostRef = getHostRef(ref);
1542
+ const elm = hostRef.$hostElement$ ;
1543
+ const oldVal = hostRef.$instanceValues$.get(propName);
1544
+ const flags = hostRef.$flags$;
1545
+ const instance = hostRef.$lazyInstance$ ;
1546
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1547
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1548
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1549
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1550
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1551
+ // gadzooks! the property's value has changed!!
1552
+ // set our new value!
1553
+ hostRef.$instanceValues$.set(propName, newVal);
1554
+ if (instance) {
1555
+ // get an array of method names of watch functions to call
1556
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1557
+ const watchMethods = cmpMeta.$watchers$[propName];
1558
+ if (watchMethods) {
1559
+ // this instance is watching for when this property changed
1560
+ watchMethods.map((watchMethodName) => {
1561
+ try {
1562
+ // fire off each of the watch methods that are watching this property
1563
+ instance[watchMethodName](newVal, oldVal, propName);
1564
+ }
1565
+ catch (e) {
1566
+ consoleError(e, elm);
1567
+ }
1568
+ });
1569
+ }
1570
+ }
1571
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1572
+ if (instance.componentShouldUpdate) {
1573
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1574
+ return;
1575
+ }
1576
+ }
1577
+ // looks like this value actually changed, so we've got work to do!
1578
+ // but only if we've already rendered, otherwise just chill out
1579
+ // queue that we need to do an update, but don't worry about queuing
1580
+ // up millions cuz this function ensures it only runs once
1581
+ scheduleUpdate(hostRef, false);
1582
+ }
1583
+ }
1584
+ }
1585
+ };
1586
+ /**
1587
+ * Attach a series of runtime constructs to a compiled Stencil component
1588
+ * constructor, including getters and setters for the `@Prop` and `@State`
1589
+ * decorators, callbacks for when attributes change, and so on.
1590
+ *
1591
+ * @param Cstr the constructor for a component that we need to process
1592
+ * @param cmpMeta metadata collected previously about the component
1593
+ * @param flags a number used to store a series of bit flags
1594
+ * @returns a reference to the same constructor passed in (but now mutated)
1595
+ */
1596
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1597
+ if (cmpMeta.$members$) {
1598
+ if (Cstr.watchers) {
1599
+ cmpMeta.$watchers$ = Cstr.watchers;
1600
+ }
1601
+ // It's better to have a const than two Object.entries()
1602
+ const members = Object.entries(cmpMeta.$members$);
1603
+ const prototype = Cstr.prototype;
1604
+ members.map(([memberName, [memberFlags]]) => {
1605
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1606
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1607
+ // proxyComponent - prop
1608
+ Object.defineProperty(prototype, memberName, {
1609
+ get() {
1610
+ // proxyComponent, get value
1611
+ return getValue(this, memberName);
1612
+ },
1613
+ set(newValue) {
1614
+ // proxyComponent, set value
1615
+ setValue(this, memberName, newValue, cmpMeta);
1616
+ },
1617
+ configurable: true,
1618
+ enumerable: true,
1619
+ });
1620
+ }
1621
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1622
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1623
+ // proxyComponent - method
1624
+ Object.defineProperty(prototype, memberName, {
1625
+ value(...args) {
1626
+ const ref = getHostRef(this);
1627
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1628
+ },
1629
+ });
1630
+ }
1631
+ });
1632
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1633
+ const attrNameToPropName = new Map();
1634
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1635
+ plt.jmp(() => {
1636
+ const propName = attrNameToPropName.get(attrName);
1637
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1638
+ // in the case where an attribute was set inline.
1639
+ // ```html
1640
+ // <my-component some-attribute="some-value"></my-component>
1641
+ // ```
1642
+ //
1643
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1644
+ // programmatically changes it before it has been upgraded as shown below:
1645
+ //
1646
+ // ```html
1647
+ // <!-- this component has _not_ been upgraded yet -->
1648
+ // <my-component id="test" some-attribute="some-value"></my-component>
1649
+ // <script>
1650
+ // // grab non-upgraded component
1651
+ // el = document.querySelector("#test");
1652
+ // el.someAttribute = "another-value";
1653
+ // // upgrade component
1654
+ // customElements.define('my-component', MyComponent);
1655
+ // </script>
1656
+ // ```
1657
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1658
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1659
+ // to the value that was set inline i.e. "some-value" from above example. When
1660
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1661
+ //
1662
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1663
+ // by connectedCallback as this attributeChangedCallback will not fire.
1664
+ //
1665
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1666
+ //
1667
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1668
+ // properties here given that this goes against best practices outlined here
1669
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1670
+ if (this.hasOwnProperty(propName)) {
1671
+ newValue = this[propName];
1672
+ delete this[propName];
1673
+ }
1674
+ else if (prototype.hasOwnProperty(propName) &&
1675
+ typeof this[propName] === 'number' &&
1676
+ this[propName] == newValue) {
1677
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1678
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1679
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1680
+ return;
1681
+ }
1682
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1683
+ });
1684
+ };
1685
+ // create an array of attributes to observe
1686
+ // and also create a map of html attribute name to js property name
1687
+ Cstr.observedAttributes = members
1688
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1689
+ .map(([propName, m]) => {
1690
+ const attrName = m[1] || propName;
1691
+ attrNameToPropName.set(attrName, propName);
1692
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1693
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1694
+ }
1695
+ return attrName;
1696
+ });
1697
+ }
1698
+ }
1699
+ return Cstr;
1700
+ };
1701
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1702
+ // initializeComponent
1703
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1704
+ {
1705
+ // we haven't initialized this element yet
1706
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1707
+ // lazy loaded components
1708
+ // request the component's implementation to be
1709
+ // wired up with the host element
1710
+ Cstr = loadModule(cmpMeta);
1711
+ if (Cstr.then) {
1712
+ // Await creates a micro-task avoid if possible
1713
+ const endLoad = uniqueTime();
1714
+ Cstr = await Cstr;
1715
+ endLoad();
1716
+ }
1717
+ if (!Cstr.isProxied) {
1718
+ // we've never proxied this Constructor before
1719
+ // let's add the getters/setters to its prototype before
1720
+ // the first time we create an instance of the implementation
1721
+ {
1722
+ cmpMeta.$watchers$ = Cstr.watchers;
1723
+ }
1724
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1725
+ Cstr.isProxied = true;
1726
+ }
1727
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1728
+ // ok, time to construct the instance
1729
+ // but let's keep track of when we start and stop
1730
+ // so that the getters/setters don't incorrectly step on data
1731
+ {
1732
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1733
+ }
1734
+ // construct the lazy-loaded component implementation
1735
+ // passing the hostRef is very important during
1736
+ // construction in order to directly wire together the
1737
+ // host element and the lazy-loaded instance
1738
+ try {
1739
+ new Cstr(hostRef);
1740
+ }
1741
+ catch (e) {
1742
+ consoleError(e);
1743
+ }
1744
+ {
1745
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1746
+ }
1747
+ {
1748
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1749
+ }
1750
+ endNewInstance();
1751
+ fireConnectedCallback(hostRef.$lazyInstance$);
1752
+ }
1753
+ if (Cstr.style) {
1754
+ // this component has styles but we haven't registered them yet
1755
+ let style = Cstr.style;
1756
+ const scopeId = getScopeId(cmpMeta);
1757
+ if (!styles.has(scopeId)) {
1758
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1759
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1760
+ endRegisterStyles();
1761
+ }
1762
+ }
1763
+ }
1764
+ // we've successfully created a lazy instance
1765
+ const ancestorComponent = hostRef.$ancestorComponent$;
1766
+ const schedule = () => scheduleUpdate(hostRef, true);
1767
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1768
+ // this is the initial load and this component it has an ancestor component
1769
+ // but the ancestor component has NOT fired its will update lifecycle yet
1770
+ // so let's just cool our jets and wait for the ancestor to continue first
1771
+ // this will get fired off when the ancestor component
1772
+ // finally gets around to rendering its lazy self
1773
+ // fire off the initial update
1774
+ ancestorComponent['s-rc'].push(schedule);
1775
+ }
1776
+ else {
1777
+ schedule();
1778
+ }
1779
+ };
1780
+ const fireConnectedCallback = (instance) => {
1781
+ {
1782
+ safeCall(instance, 'connectedCallback');
1783
+ }
1784
+ };
1785
+ const connectedCallback = (elm) => {
1786
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1787
+ const hostRef = getHostRef(elm);
1788
+ const cmpMeta = hostRef.$cmpMeta$;
1789
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1790
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1791
+ // first time this component has connected
1792
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1793
+ {
1794
+ // initUpdate
1795
+ // if the slot polyfill is required we'll need to put some nodes
1796
+ // in here to act as original content anchors as we move nodes around
1797
+ // host element has been connected to the DOM
1798
+ if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1799
+ setContentReference(elm);
1800
+ }
1801
+ }
1802
+ {
1803
+ // find the first ancestor component (if there is one) and register
1804
+ // this component as one of the actively loading child components for its ancestor
1805
+ let ancestorComponent = elm;
1806
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1807
+ // climb up the ancestors looking for the first
1808
+ // component that hasn't finished its lifecycle update yet
1809
+ if (ancestorComponent['s-p']) {
1810
+ // we found this components first ancestor component
1811
+ // keep a reference to this component's ancestor component
1812
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1813
+ break;
1814
+ }
1815
+ }
1816
+ }
1817
+ // Lazy properties
1818
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1819
+ if (cmpMeta.$members$) {
1820
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1821
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1822
+ const value = elm[memberName];
1823
+ delete elm[memberName];
1824
+ elm[memberName] = value;
1825
+ }
1826
+ });
1827
+ }
1828
+ {
1829
+ initializeComponent(elm, hostRef, cmpMeta);
1830
+ }
1831
+ }
1832
+ else {
1833
+ // not the first time this has connected
1834
+ // reattach any event listeners to the host
1835
+ // since they would have been removed when disconnected
1836
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1837
+ // fire off connectedCallback() on component instance
1838
+ fireConnectedCallback(hostRef.$lazyInstance$);
1839
+ }
1840
+ endConnected();
1841
+ }
1842
+ };
1843
+ const setContentReference = (elm) => {
1844
+ // only required when we're NOT using native shadow dom (slot)
1845
+ // or this browser doesn't support native shadow dom
1846
+ // and this host element was NOT created with SSR
1847
+ // let's pick out the inner content for slot projection
1848
+ // create a node to represent where the original
1849
+ // content was first placed, which is useful later on
1850
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1851
+ contentRefElm['s-cn'] = true;
1852
+ elm.insertBefore(contentRefElm, elm.firstChild);
1853
+ };
1854
+ const disconnectedCallback = (elm) => {
1855
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1856
+ const hostRef = getHostRef(elm);
1857
+ const instance = hostRef.$lazyInstance$ ;
1858
+ {
1859
+ if (hostRef.$rmListeners$) {
1860
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1861
+ hostRef.$rmListeners$ = undefined;
1862
+ }
1863
+ }
1864
+ {
1865
+ safeCall(instance, 'disconnectedCallback');
1866
+ }
1867
+ }
1868
+ };
1869
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1870
+ var _a;
1871
+ const endBootstrap = createTime();
1872
+ const cmpTags = [];
1873
+ const exclude = options.exclude || [];
1874
+ const customElements = win.customElements;
1875
+ const head = doc.head;
1876
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1877
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1878
+ const deferredConnectedCallbacks = [];
1879
+ let appLoadFallback;
1880
+ let isBootstrapping = true;
1881
+ Object.assign(plt, options);
1882
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1883
+ lazyBundles.map((lazyBundle) => {
1884
+ lazyBundle[1].map((compactMeta) => {
1885
+ const cmpMeta = {
1886
+ $flags$: compactMeta[0],
1887
+ $tagName$: compactMeta[1],
1888
+ $members$: compactMeta[2],
1889
+ $listeners$: compactMeta[3],
1890
+ };
1891
+ {
1892
+ cmpMeta.$members$ = compactMeta[2];
1893
+ }
1894
+ {
1895
+ cmpMeta.$listeners$ = compactMeta[3];
1896
+ }
1897
+ {
1898
+ cmpMeta.$attrsToReflect$ = [];
1899
+ }
1900
+ {
1901
+ cmpMeta.$watchers$ = {};
1902
+ }
1903
+ const tagName = cmpMeta.$tagName$;
1904
+ const HostElement = class extends HTMLElement {
1905
+ // StencilLazyHost
1906
+ constructor(self) {
1907
+ // @ts-ignore
1908
+ super(self);
1909
+ self = this;
1910
+ registerHost(self, cmpMeta);
1911
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1912
+ // this component is using shadow dom
1913
+ // and this browser supports shadow dom
1914
+ // add the read-only property "shadowRoot" to the host element
1915
+ // adding the shadow root build conditionals to minimize runtime
1916
+ {
1917
+ {
1918
+ self.attachShadow({ mode: 'open' });
1919
+ }
1920
+ }
1921
+ }
1922
+ }
1923
+ connectedCallback() {
1924
+ if (appLoadFallback) {
1925
+ clearTimeout(appLoadFallback);
1926
+ appLoadFallback = null;
1927
+ }
1928
+ if (isBootstrapping) {
1929
+ // connectedCallback will be processed once all components have been registered
1930
+ deferredConnectedCallbacks.push(this);
1931
+ }
1932
+ else {
1933
+ plt.jmp(() => connectedCallback(this));
1934
+ }
1935
+ }
1936
+ disconnectedCallback() {
1937
+ plt.jmp(() => disconnectedCallback(this));
1938
+ }
1939
+ componentOnReady() {
1940
+ return getHostRef(this).$onReadyPromise$;
1941
+ }
1942
+ };
1943
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1944
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1945
+ cmpTags.push(tagName);
1946
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1947
+ }
1948
+ });
1949
+ });
1950
+ {
1951
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1952
+ visibilityStyle.setAttribute('data-styles', '');
1953
+ // Apply CSP nonce to the style tag if it exists
1954
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1955
+ if (nonce != null) {
1956
+ visibilityStyle.setAttribute('nonce', nonce);
1957
+ }
1958
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1959
+ }
1960
+ // Process deferred connectedCallbacks now all components have been registered
1961
+ isBootstrapping = false;
1962
+ if (deferredConnectedCallbacks.length) {
1963
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1964
+ }
1965
+ else {
1966
+ {
1967
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1968
+ }
1969
+ }
1970
+ // Fallback appLoad event
1971
+ endBootstrap();
1972
+ };
1973
+ const Fragment = (_, children) => children;
1974
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1975
+ if (listeners) {
1976
+ listeners.map(([flags, name, method]) => {
1977
+ const target = getHostListenerTarget(elm, flags) ;
1978
+ const handler = hostListenerProxy(hostRef, method);
1979
+ const opts = hostListenerOpts(flags);
1980
+ plt.ael(target, name, handler, opts);
1981
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1982
+ });
1983
+ }
1984
+ };
1985
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
1986
+ try {
1987
+ {
1988
+ if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
1989
+ // instance is ready, let's call it's member method for this event
1990
+ hostRef.$lazyInstance$[methodName](ev);
1991
+ }
1992
+ else {
1993
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1994
+ }
1995
+ }
1996
+ }
1997
+ catch (e) {
1998
+ consoleError(e);
1999
+ }
2000
+ };
2001
+ const getHostListenerTarget = (elm, flags) => {
2002
+ if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
2003
+ return win;
2004
+ return elm;
2005
+ };
2006
+ // prettier-ignore
2007
+ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
2008
+ /**
2009
+ * Assigns the given value to the nonce property on the runtime platform object.
2010
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2011
+ * @param nonce The value to be assigned to the platform nonce property.
2012
+ * @returns void
2013
+ */
2014
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
2015
+ const hostRefs = /*@__PURE__*/ new WeakMap();
2016
+ const getHostRef = (ref) => hostRefs.get(ref);
2017
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2018
+ const registerHost = (elm, cmpMeta) => {
2019
+ const hostRef = {
2020
+ $flags$: 0,
2021
+ $hostElement$: elm,
2022
+ $cmpMeta$: cmpMeta,
2023
+ $instanceValues$: new Map(),
2024
+ };
2025
+ {
2026
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2027
+ }
2028
+ {
2029
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2030
+ elm['s-p'] = [];
2031
+ elm['s-rc'] = [];
2032
+ }
2033
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2034
+ return hostRefs.set(elm, hostRef);
2035
+ };
2036
+ const isMemberInElement = (elm, memberName) => memberName in elm;
2037
+ const consoleError = (e, el) => (0, console.error)(e, el);
2038
+ const cmpModules = /*@__PURE__*/ new Map();
2039
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2040
+ // loadModuleImport
2041
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2042
+ const bundleId = cmpMeta.$lazyBundleId$;
2043
+ const module = cmpModules.get(bundleId) ;
2044
+ if (module) {
2045
+ return module[exportName];
2046
+ }
2047
+
2048
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2049
+ const processMod = importedModule => {
2050
+ cmpModules.set(bundleId, importedModule);
2051
+ return importedModule[exportName];
2052
+ }
2053
+ switch(bundleId) {
2054
+
2055
+ case 'snk-application.cjs':
2056
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2057
+ /* webpackMode: "lazy" */
2058
+ './snk-application.cjs.entry.js')); }).then(processMod, consoleError);
2059
+ case 'snk-form.cjs':
2060
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2061
+ /* webpackMode: "lazy" */
2062
+ './snk-form.cjs.entry.js')); }).then(processMod, consoleError);
2063
+ case 'snk-form-config.cjs':
2064
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2065
+ /* webpackMode: "lazy" */
2066
+ './snk-form-config.cjs.entry.js')); }).then(processMod, consoleError);
2067
+ case 'snk-config-options.cjs':
2068
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2069
+ /* webpackMode: "lazy" */
2070
+ './snk-config-options.cjs.entry.js')); }).then(processMod, consoleError);
2071
+ case 'snk-tab-config.cjs':
2072
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2073
+ /* webpackMode: "lazy" */
2074
+ './snk-tab-config.cjs.entry.js')); }).then(processMod, consoleError);
2075
+ case 'snk-configurator.cjs':
2076
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2077
+ /* webpackMode: "lazy" */
2078
+ './snk-configurator.cjs.entry.js')); }).then(processMod, consoleError);
2079
+ case 'snk-crud.cjs':
2080
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2081
+ /* webpackMode: "lazy" */
2082
+ './snk-crud.cjs.entry.js')); }).then(processMod, consoleError);
2083
+ case 'snk-detail-view.cjs':
2084
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2085
+ /* webpackMode: "lazy" */
2086
+ './snk-detail-view.cjs.entry.js')); }).then(processMod, consoleError);
2087
+ case 'snk-form-summary.cjs':
2088
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2089
+ /* webpackMode: "lazy" */
2090
+ './snk-form-summary.cjs.entry.js')); }).then(processMod, consoleError);
2091
+ case 'snk-form-view.cjs':
2092
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2093
+ /* webpackMode: "lazy" */
2094
+ './snk-form-view.cjs.entry.js')); }).then(processMod, consoleError);
2095
+ case 'snk-guides-viewer.cjs':
2096
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2097
+ /* webpackMode: "lazy" */
2098
+ './snk-guides-viewer.cjs.entry.js')); }).then(processMod, consoleError);
2099
+ case 'snk-data-exporter.cjs':
2100
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2101
+ /* webpackMode: "lazy" */
2102
+ './snk-data-exporter.cjs.entry.js')); }).then(processMod, consoleError);
2103
+ case 'snk-exporter-email-sender.cjs':
2104
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2105
+ /* webpackMode: "lazy" */
2106
+ './snk-exporter-email-sender.cjs.entry.js')); }).then(processMod, consoleError);
2107
+ case 'snk-data-unit.cjs':
2108
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2109
+ /* webpackMode: "lazy" */
2110
+ './snk-data-unit.cjs.entry.js')); }).then(processMod, consoleError);
2111
+ case 'snk-filter-bar.cjs':
2112
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2113
+ /* webpackMode: "lazy" */
2114
+ './snk-filter-bar.cjs.entry.js')); }).then(processMod, consoleError);
2115
+ case 'snk-filter-item.cjs':
2116
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2117
+ /* webpackMode: "lazy" */
2118
+ './snk-filter-item.cjs.entry.js')); }).then(processMod, consoleError);
2119
+ case 'snk-filter-list.cjs':
2120
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2121
+ /* webpackMode: "lazy" */
2122
+ './snk-filter-list.cjs.entry.js')); }).then(processMod, consoleError);
2123
+ case 'snk-filter-modal.cjs':
2124
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2125
+ /* webpackMode: "lazy" */
2126
+ './snk-filter-modal.cjs.entry.js')); }).then(processMod, consoleError);
2127
+ case 'snk-field-config.cjs':
2128
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2129
+ /* webpackMode: "lazy" */
2130
+ './snk-field-config.cjs.entry.js')); }).then(processMod, consoleError);
2131
+ case 'snk-grid.cjs':
2132
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2133
+ /* webpackMode: "lazy" */
2134
+ './snk-grid.cjs.entry.js')); }).then(processMod, consoleError);
2135
+ case 'snk-pesquisa.cjs':
2136
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2137
+ /* webpackMode: "lazy" */
2138
+ './snk-pesquisa.cjs.entry.js')); }).then(processMod, consoleError);
2139
+ case 'snk-taskbar.cjs':
2140
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2141
+ /* webpackMode: "lazy" */
2142
+ './snk-taskbar.cjs.entry.js')); }).then(processMod, consoleError);
2143
+ case 'snk-actions-form.cjs':
2144
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2145
+ /* webpackMode: "lazy" */
2146
+ './snk-actions-form.cjs.entry.js')); }).then(processMod, consoleError);
2147
+ case 'snk-client-confirm.cjs':
2148
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2149
+ /* webpackMode: "lazy" */
2150
+ './snk-client-confirm.cjs.entry.js')); }).then(processMod, consoleError);
2151
+ case 'snk-entity-list.cjs':
2152
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2153
+ /* webpackMode: "lazy" */
2154
+ './snk-entity-list.cjs.entry.js')); }).then(processMod, consoleError);
2155
+ case 'snk-filter-binary-select.cjs':
2156
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2157
+ /* webpackMode: "lazy" */
2158
+ './snk-filter-binary-select.cjs.entry.js')); }).then(processMod, consoleError);
2159
+ case 'snk-filter-multi-select.cjs':
2160
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2161
+ /* webpackMode: "lazy" */
2162
+ './snk-filter-multi-select.cjs.entry.js')); }).then(processMod, consoleError);
2163
+ case 'snk-filter-number.cjs':
2164
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2165
+ /* webpackMode: "lazy" */
2166
+ './snk-filter-number.cjs.entry.js')); }).then(processMod, consoleError);
2167
+ case 'snk-filter-period.cjs':
2168
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2169
+ /* webpackMode: "lazy" */
2170
+ './snk-filter-period.cjs.entry.js')); }).then(processMod, consoleError);
2171
+ case 'snk-filter-search.cjs':
2172
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2173
+ /* webpackMode: "lazy" */
2174
+ './snk-filter-search.cjs.entry.js')); }).then(processMod, consoleError);
2175
+ case 'snk-filter-text.cjs':
2176
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2177
+ /* webpackMode: "lazy" */
2178
+ './snk-filter-text.cjs.entry.js')); }).then(processMod, consoleError);
2179
+ case 'snk-personalized-filter-editor.cjs':
2180
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2181
+ /* webpackMode: "lazy" */
2182
+ './snk-personalized-filter-editor.cjs.entry.js')); }).then(processMod, consoleError);
2183
+ case 'snk-print-selector.cjs':
2184
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2185
+ /* webpackMode: "lazy" */
2186
+ './snk-print-selector.cjs.entry.js')); }).then(processMod, consoleError);
2187
+ case 'teste-pesquisa.cjs':
2188
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2189
+ /* webpackMode: "lazy" */
2190
+ './teste-pesquisa.cjs.entry.js')); }).then(processMod, consoleError);
2191
+ case 'snk-filter-modal-item.cjs':
2192
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2193
+ /* webpackMode: "lazy" */
2194
+ './snk-filter-modal-item.cjs.entry.js')); }).then(processMod, consoleError);
2195
+ case 'snk-attach.cjs':
2196
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2197
+ /* webpackMode: "lazy" */
2198
+ './snk-attach.cjs.entry.js')); }).then(processMod, consoleError);
2199
+ case 'snk-grid-config.cjs':
2200
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2201
+ /* webpackMode: "lazy" */
2202
+ './snk-grid-config.cjs.entry.js')); }).then(processMod, consoleError);
2203
+ case 'snk-simple-crud.cjs':
2204
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2205
+ /* webpackMode: "lazy" */
2206
+ './snk-simple-crud.cjs.entry.js')); }).then(processMod, consoleError);
2207
+ case 'snk-personalized-filter.cjs':
2208
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2209
+ /* webpackMode: "lazy" */
2210
+ './snk-personalized-filter.cjs.entry.js')); }).then(processMod, consoleError);
2211
+ case 'snk-select-box.cjs':
2212
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2213
+ /* webpackMode: "lazy" */
2214
+ './snk-select-box.cjs.entry.js')); }).then(processMod, consoleError);
2215
+ case 'snk-filter-advanced-mode_2.cjs':
2216
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2217
+ /* webpackMode: "lazy" */
2218
+ './snk-filter-advanced-mode_2.cjs.entry.js')); }).then(processMod, consoleError);
2219
+ case 'snk-filter-detail.cjs':
2220
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2221
+ /* webpackMode: "lazy" */
2222
+ './snk-filter-detail.cjs.entry.js')); }).then(processMod, consoleError);
2223
+ case 'snk-actions-button.cjs':
2224
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2225
+ /* webpackMode: "lazy" */
2226
+ './snk-actions-button.cjs.entry.js')); }).then(processMod, consoleError);
2227
+ case 'snk-simple-bar.cjs':
2228
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2229
+ /* webpackMode: "lazy" */
2230
+ './snk-simple-bar.cjs.entry.js')); }).then(processMod, consoleError);
2231
+ case 'snk-expression-group_2.cjs':
2232
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2233
+ /* webpackMode: "lazy" */
2234
+ './snk-expression-group_2.cjs.entry.js')); }).then(processMod, consoleError);
2235
+ case 'snk-filter-field-search_2.cjs':
2236
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2237
+ /* webpackMode: "lazy" */
2238
+ './snk-filter-field-search_2.cjs.entry.js')); }).then(processMod, consoleError);
2239
+ }
2240
+ }
2241
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2242
+ /* @vite-ignore */
2243
+ /* webpackInclude: /\.entry\.js$/ */
2244
+ /* webpackExclude: /\.system\.entry\.js$/ */
2245
+ /* webpackMode: "lazy" */
2246
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
2247
+ {
2248
+ cmpModules.set(bundleId, importedModule);
2249
+ }
2250
+ return importedModule[exportName];
2251
+ }, consoleError);
2252
+ };
2253
+ const styles = /*@__PURE__*/ new Map();
2254
+ const win = typeof window !== 'undefined' ? window : {};
2255
+ const doc = win.document || { head: {} };
2256
+ const plt = {
2257
+ $flags$: 0,
2258
+ $resourcesUrl$: '',
2259
+ jmp: (h) => h(),
2260
+ raf: (h) => requestAnimationFrame(h),
2261
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2262
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2263
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2264
+ };
2265
+ const promiseResolve = (v) => Promise.resolve(v);
2266
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2267
+ try {
2268
+ new CSSStyleSheet();
2269
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2270
+ }
2271
+ catch (e) { }
2272
+ return false;
2273
+ })()
2274
+ ;
2275
+ const queueDomReads = [];
2276
+ const queueDomWrites = [];
2277
+ const queueTask = (queue, write) => (cb) => {
2278
+ queue.push(cb);
2279
+ if (!queuePending) {
2280
+ queuePending = true;
2281
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2282
+ nextTick(flush);
2283
+ }
2284
+ else {
2285
+ plt.raf(flush);
2286
+ }
2287
+ }
2288
+ };
2289
+ const consume = (queue) => {
2290
+ for (let i = 0; i < queue.length; i++) {
2291
+ try {
2292
+ queue[i](performance.now());
2293
+ }
2294
+ catch (e) {
2295
+ consoleError(e);
2296
+ }
2297
+ }
2298
+ queue.length = 0;
2299
+ };
2300
+ const flush = () => {
2301
+ // always force a bunch of medium callbacks to run, but still have
2302
+ // a throttle on how many can run in a certain time
2303
+ // DOM READS!!!
2304
+ consume(queueDomReads);
2305
+ // DOM WRITES!!!
2306
+ {
2307
+ consume(queueDomWrites);
2308
+ if ((queuePending = queueDomReads.length > 0)) {
2309
+ // still more to do yet, but we've run out of time
2310
+ // let's let this thing cool off and try again in the next tick
2311
+ plt.raf(flush);
2312
+ }
2313
+ }
2314
+ };
2315
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2316
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2317
+
2318
+ exports.Fragment = Fragment;
2319
+ exports.Host = Host;
2320
+ exports.bootstrapLazy = bootstrapLazy;
2321
+ exports.createEvent = createEvent;
2322
+ exports.forceUpdate = forceUpdate;
2323
+ exports.getElement = getElement;
2324
+ exports.getRenderingRef = getRenderingRef;
2325
+ exports.h = h;
2326
+ exports.promiseResolve = promiseResolve;
2327
+ exports.registerInstance = registerInstance;
2328
+ exports.setNonce = setNonce;