@seniorsistemas/angular-components 14.9.14 → 14.10.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 (276) hide show
  1. package/angular-components.module.d.ts +2 -1
  2. package/bundles/seniorsistemas-angular-components.umd.js +1837 -22
  3. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  4. package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
  5. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  6. package/components/code-editor/core/facades/core-facade.d.ts +30 -0
  7. package/components/code-editor/core/facades/linter-facade.d.ts +4 -0
  8. package/components/code-editor/core/models/enums/marker-severity.d.ts +5 -0
  9. package/components/code-editor/core/models/index.d.ts +2 -0
  10. package/components/code-editor/core/models/interfaces/marker.d.ts +7 -0
  11. package/components/code-editor/core/use-cases/core-linters.d.ts +6 -0
  12. package/components/code-editor/index.d.ts +3 -0
  13. package/components/code-editor/infra/cores/codemirror-6/codemirror-6-core.d.ts +25 -0
  14. package/components/code-editor/infra/cores/codemirror-6/languages/editor-languages.d.ts +6 -0
  15. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-empty-state.d.ts +10 -0
  16. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-loading-state.d.ts +10 -0
  17. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-state-wrapper/autocomplete-state-wrapper-style.d.ts +6 -0
  18. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-state-wrapper/autocomplete-state-wrapper.d.ts +15 -0
  19. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/index.d.ts +3 -0
  20. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-style.d.ts +6 -0
  21. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete.d.ts +6 -0
  22. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete.service.d.ts +8 -0
  23. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/base-configs/base-configs.d.ts +2 -0
  24. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/base-configs/grammar.d.ts +2 -0
  25. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/on-paste-completion-items-updater/models/index.d.ts +1 -0
  26. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/on-paste-completion-items-updater/models/interfaces/request-extra-info.d.ts +4 -0
  27. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/on-paste-completion-items-updater/on-paste-completion-items-updater.d.ts +6 -0
  28. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/completion-types.d.ts +8 -0
  29. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/enum-type-order.d.ts +4 -0
  30. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/keywords.d.ts +10 -0
  31. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/meta-type.d.ts +17 -0
  32. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/request-types.d.ts +6 -0
  33. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/index.d.ts +19 -0
  34. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/completion-Item.d.ts +6 -0
  35. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/facade-metadata-name.d.ts +5 -0
  36. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/fields-order-by.d.ts +5 -0
  37. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/get-facade-metadata-by-path.d.ts +9 -0
  38. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/list-context-metadata-by-id.d.ts +9 -0
  39. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/list-expression-metadata.d.ts +11 -0
  40. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/list-facade-metadata-names.d.ts +10 -0
  41. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-expression-metadata.d.ts +10 -0
  42. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-front-context-metadata.d.ts +4 -0
  43. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-front-facade-metadata.d.ts +8 -0
  44. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-front-field-metadata.d.ts +7 -0
  45. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-page-request.d.ts +6 -0
  46. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/safe-http-communication.d.ts +12 -0
  47. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/tax-calculation-configs.d.ts +4 -0
  48. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/tax-calculation-language-configs.d.ts +7 -0
  49. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/tax-calculation.language.d.ts +2 -0
  50. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/get-language-configs.d.ts +6 -0
  51. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/get-safe-response.d.ts +8 -0
  52. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/index.d.ts +3 -0
  53. package/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/update-core-completion-items.d.ts +2 -0
  54. package/components/code-editor/infra/cores/codemirror-6/models/index.d.ts +2 -0
  55. package/components/code-editor/infra/cores/codemirror-6/models/types/diagnostic-severity.d.ts +1 -0
  56. package/components/code-editor/infra/cores/codemirror-6/models/types/editor-theme.d.ts +3 -0
  57. package/components/code-editor/infra/cores/codemirror-6/themes/editor-themes.d.ts +6 -0
  58. package/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/autocomplete-tooltip.d.ts +6 -0
  59. package/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/font-style.d.ts +6 -0
  60. package/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/line-counter.d.ts +6 -0
  61. package/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/scrollbars.d.ts +6 -0
  62. package/components/code-editor/infra/cores/codemirror-6/themes/sds-light/sds-light-highlight-style.d.ts +2 -0
  63. package/components/code-editor/infra/cores/codemirror-6/themes/sds-light/sds-light-style.d.ts +6 -0
  64. package/components/code-editor/infra/cores/codemirror-6/themes/sds-light/sds-light-theme.d.ts +2 -0
  65. package/components/code-editor/infra/cores/codemirror-6/utils/convert-markers-to-diagnostics.d.ts +3 -0
  66. package/components/code-editor/infra/cores/codemirror-6/utils/index.d.ts +2 -0
  67. package/components/code-editor/infra/cores/codemirror-6/utils/is-current-position-inside-string.d.ts +1 -0
  68. package/components/code-editor/infra/linters/tax-calculation/models/index.d.ts +1 -0
  69. package/components/code-editor/infra/linters/tax-calculation/models/interfaces/validation.d.ts +4 -0
  70. package/components/code-editor/infra/linters/tax-calculation/tax-calculation-linter.d.ts +11 -0
  71. package/components/code-editor/infra/linters/tax-calculation/validation-compositors/index.d.ts +2 -0
  72. package/components/code-editor/infra/linters/tax-calculation/validation-compositors/validation-composite.d.ts +6 -0
  73. package/components/code-editor/infra/linters/tax-calculation/validation-compositors/validation-workers-compositor/validations-workers-composite.d.ts +6 -0
  74. package/components/code-editor/infra/utils/custom-http-client/custom-http-client.d.ts +34 -0
  75. package/components/code-editor/infra/utils/custom-http-client/json-response-formatters/format-blob-response.d.ts +6 -0
  76. package/components/code-editor/infra/utils/custom-http-client/json-response-formatters/format-json-response.d.ts +6 -0
  77. package/components/code-editor/infra/utils/custom-http-client/json-response-formatters/index.d.ts +2 -0
  78. package/components/code-editor/infra/utils/custom-translations/custom-translations-service.d.ts +25 -0
  79. package/components/code-editor/infra/utils/custom-translations/custom-translations.module.d.ts +12 -0
  80. package/components/code-editor/infra/utils/custom-translations/index.d.ts +2 -0
  81. package/components/code-editor/infra/utils/custom-translations/models/index.d.ts +1 -0
  82. package/components/code-editor/infra/utils/custom-translations/models/interfaces/translations.d.ts +5 -0
  83. package/components/code-editor/infra/utils/index.d.ts +3 -0
  84. package/components/code-editor/infra/utils/regex-index-of.d.ts +8 -0
  85. package/components/code-editor/models/enums/languages.d.ts +3 -0
  86. package/components/code-editor/models/enums/themes.d.ts +3 -0
  87. package/components/code-editor/models/index.d.ts +3 -0
  88. package/components/code-editor/models/interfaces/editor-options.d.ts +5 -0
  89. package/components/code-editor/presentation/code-editor-component.d.ts +21 -0
  90. package/components/code-editor/presentation/code-editor-module.d.ts +2 -0
  91. package/esm2015/angular-components.module.js +4 -3
  92. package/esm2015/components/code-editor/core/facades/core-facade.js +80 -0
  93. package/esm2015/components/code-editor/core/facades/linter-facade.js +1 -0
  94. package/esm2015/components/code-editor/core/models/enums/marker-severity.js +7 -0
  95. package/esm2015/components/code-editor/core/models/index.js +3 -0
  96. package/esm2015/components/code-editor/core/models/interfaces/marker.js +1 -0
  97. package/esm2015/components/code-editor/core/use-cases/core-linters.js +12 -0
  98. package/esm2015/components/code-editor/index.js +5 -0
  99. package/esm2015/components/code-editor/infra/cores/codemirror-6/codemirror-6-core.js +94 -0
  100. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/editor-languages.js +12 -0
  101. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-empty-state.js +29 -0
  102. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-loading-state.js +29 -0
  103. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-state-wrapper/autocomplete-state-wrapper-style.js +17 -0
  104. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-state-wrapper/autocomplete-state-wrapper.js +75 -0
  105. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/index.js +4 -0
  106. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-style.js +35 -0
  107. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete.js +342 -0
  108. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete.service.js +34 -0
  109. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/base-configs/base-configs.js +18 -0
  110. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/base-configs/grammar.js +37 -0
  111. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/on-paste-completion-items-updater/models/index.js +1 -0
  112. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/on-paste-completion-items-updater/models/interfaces/request-extra-info.js +1 -0
  113. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/on-paste-completion-items-updater/on-paste-completion-items-updater.js +164 -0
  114. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/completion-types.js +10 -0
  115. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/enum-type-order.js +8 -0
  116. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/keywords.js +12 -0
  117. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/meta-type.js +34 -0
  118. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/request-types.js +8 -0
  119. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/index.js +7 -0
  120. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/completion-Item.js +1 -0
  121. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/facade-metadata-name.js +1 -0
  122. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/fields-order-by.js +1 -0
  123. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/get-facade-metadata-by-path.js +1 -0
  124. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/list-context-metadata-by-id.js +1 -0
  125. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/list-expression-metadata.js +1 -0
  126. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/list-facade-metadata-names.js +1 -0
  127. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-expression-metadata.js +1 -0
  128. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-front-context-metadata.js +1 -0
  129. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-front-facade-metadata.js +1 -0
  130. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-front-field-metadata.js +1 -0
  131. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-page-request.js +1 -0
  132. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/safe-http-communication.js +1 -0
  133. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/tax-calculation-configs.js +1 -0
  134. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/tax-calculation-language-configs.js +10 -0
  135. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/tax-calculation.language.js +11 -0
  136. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/get-language-configs.js +15 -0
  137. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/get-safe-response.js +16 -0
  138. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/index.js +4 -0
  139. package/esm2015/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/update-core-completion-items.js +30 -0
  140. package/esm2015/components/code-editor/infra/cores/codemirror-6/models/index.js +1 -0
  141. package/esm2015/components/code-editor/infra/cores/codemirror-6/models/types/diagnostic-severity.js +1 -0
  142. package/esm2015/components/code-editor/infra/cores/codemirror-6/models/types/editor-theme.js +1 -0
  143. package/esm2015/components/code-editor/infra/cores/codemirror-6/themes/editor-themes.js +12 -0
  144. package/esm2015/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/autocomplete-tooltip.js +61 -0
  145. package/esm2015/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/font-style.js +29 -0
  146. package/esm2015/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/line-counter.js +25 -0
  147. package/esm2015/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/scrollbars.js +18 -0
  148. package/esm2015/components/code-editor/infra/cores/codemirror-6/themes/sds-light/sds-light-highlight-style.js +16 -0
  149. package/esm2015/components/code-editor/infra/cores/codemirror-6/themes/sds-light/sds-light-style.js +13 -0
  150. package/esm2015/components/code-editor/infra/cores/codemirror-6/themes/sds-light/sds-light-theme.js +22 -0
  151. package/esm2015/components/code-editor/infra/cores/codemirror-6/utils/convert-markers-to-diagnostics.js +18 -0
  152. package/esm2015/components/code-editor/infra/cores/codemirror-6/utils/index.js +3 -0
  153. package/esm2015/components/code-editor/infra/cores/codemirror-6/utils/is-current-position-inside-string.js +6 -0
  154. package/esm2015/components/code-editor/infra/linters/tax-calculation/models/index.js +1 -0
  155. package/esm2015/components/code-editor/infra/linters/tax-calculation/models/interfaces/validation.js +1 -0
  156. package/esm2015/components/code-editor/infra/linters/tax-calculation/tax-calculation-linter.js +19 -0
  157. package/esm2015/components/code-editor/infra/linters/tax-calculation/validation-compositors/index.js +3 -0
  158. package/esm2015/components/code-editor/infra/linters/tax-calculation/validation-compositors/validation-composite.js +16 -0
  159. package/esm2015/components/code-editor/infra/linters/tax-calculation/validation-compositors/validation-workers-compositor/validations-workers-composite.js +25 -0
  160. package/esm2015/components/code-editor/infra/utils/custom-http-client/custom-http-client.js +80 -0
  161. package/esm2015/components/code-editor/infra/utils/custom-http-client/json-response-formatters/format-blob-response.js +13 -0
  162. package/esm2015/components/code-editor/infra/utils/custom-http-client/json-response-formatters/format-json-response.js +12 -0
  163. package/esm2015/components/code-editor/infra/utils/custom-http-client/json-response-formatters/index.js +3 -0
  164. package/esm2015/components/code-editor/infra/utils/custom-translations/custom-translations-service.js +37 -0
  165. package/esm2015/components/code-editor/infra/utils/custom-translations/custom-translations.module.js +30 -0
  166. package/esm2015/components/code-editor/infra/utils/custom-translations/index.js +3 -0
  167. package/esm2015/components/code-editor/infra/utils/custom-translations/models/index.js +1 -0
  168. package/esm2015/components/code-editor/infra/utils/custom-translations/models/interfaces/translations.js +1 -0
  169. package/esm2015/components/code-editor/infra/utils/index.js +4 -0
  170. package/esm2015/components/code-editor/infra/utils/regex-index-of.js +12 -0
  171. package/esm2015/components/code-editor/models/enums/languages.js +5 -0
  172. package/esm2015/components/code-editor/models/enums/themes.js +5 -0
  173. package/esm2015/components/code-editor/models/index.js +4 -0
  174. package/esm2015/components/code-editor/models/interfaces/editor-options.js +1 -0
  175. package/esm2015/components/code-editor/presentation/code-editor-component.js +90 -0
  176. package/esm2015/components/code-editor/presentation/code-editor-module.js +27 -0
  177. package/esm2015/components/table/table-column/table-columns.component.js +4 -3
  178. package/esm2015/public-api.js +2 -1
  179. package/esm2015/seniorsistemas-angular-components.js +5 -1
  180. package/esm5/angular-components.module.js +4 -3
  181. package/esm5/components/code-editor/core/facades/core-facade.js +91 -0
  182. package/esm5/components/code-editor/core/facades/linter-facade.js +1 -0
  183. package/esm5/components/code-editor/core/models/enums/marker-severity.js +7 -0
  184. package/esm5/components/code-editor/core/models/index.js +3 -0
  185. package/esm5/components/code-editor/core/models/interfaces/marker.js +1 -0
  186. package/esm5/components/code-editor/core/use-cases/core-linters.js +16 -0
  187. package/esm5/components/code-editor/index.js +5 -0
  188. package/esm5/components/code-editor/infra/cores/codemirror-6/codemirror-6-core.js +106 -0
  189. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/editor-languages.js +16 -0
  190. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-empty-state.js +29 -0
  191. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-loading-state.js +29 -0
  192. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-state-wrapper/autocomplete-state-wrapper-style.js +17 -0
  193. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/autocomplete-state-wrapper/autocomplete-state-wrapper.js +68 -0
  194. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-states/index.js +4 -0
  195. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete-style.js +35 -0
  196. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete.js +356 -0
  197. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/autocomplete/autocomplete.service.js +46 -0
  198. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/base-configs/base-configs.js +19 -0
  199. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/base-configs/grammar.js +2 -0
  200. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/on-paste-completion-items-updater/models/index.js +1 -0
  201. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/on-paste-completion-items-updater/models/interfaces/request-extra-info.js +1 -0
  202. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/extensions/on-paste-completion-items-updater/on-paste-completion-items-updater.js +191 -0
  203. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/completion-types.js +10 -0
  204. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/enum-type-order.js +8 -0
  205. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/keywords.js +12 -0
  206. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/meta-type.js +34 -0
  207. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/enums/request-types.js +8 -0
  208. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/index.js +7 -0
  209. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/completion-Item.js +1 -0
  210. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/facade-metadata-name.js +1 -0
  211. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/fields-order-by.js +1 -0
  212. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/get-facade-metadata-by-path.js +1 -0
  213. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/list-context-metadata-by-id.js +1 -0
  214. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/list-expression-metadata.js +1 -0
  215. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/list-facade-metadata-names.js +1 -0
  216. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-expression-metadata.js +1 -0
  217. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-front-context-metadata.js +1 -0
  218. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-front-facade-metadata.js +1 -0
  219. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-front-field-metadata.js +1 -0
  220. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/rec-page-request.js +1 -0
  221. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/safe-http-communication.js +1 -0
  222. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/models/interfaces/tax-calculation-configs.js +1 -0
  223. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/tax-calculation-language-configs.js +14 -0
  224. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/tax-calculation.language.js +11 -0
  225. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/get-language-configs.js +15 -0
  226. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/get-safe-response.js +27 -0
  227. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/index.js +4 -0
  228. package/esm5/components/code-editor/infra/cores/codemirror-6/languages/tax-calculation/utils/update-core-completion-items.js +34 -0
  229. package/esm5/components/code-editor/infra/cores/codemirror-6/models/index.js +1 -0
  230. package/esm5/components/code-editor/infra/cores/codemirror-6/models/types/diagnostic-severity.js +1 -0
  231. package/esm5/components/code-editor/infra/cores/codemirror-6/models/types/editor-theme.js +1 -0
  232. package/esm5/components/code-editor/infra/cores/codemirror-6/themes/editor-themes.js +16 -0
  233. package/esm5/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/autocomplete-tooltip.js +61 -0
  234. package/esm5/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/font-style.js +30 -0
  235. package/esm5/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/line-counter.js +25 -0
  236. package/esm5/components/code-editor/infra/cores/codemirror-6/themes/sds-light/extensions/scrollbars.js +18 -0
  237. package/esm5/components/code-editor/infra/cores/codemirror-6/themes/sds-light/sds-light-highlight-style.js +16 -0
  238. package/esm5/components/code-editor/infra/cores/codemirror-6/themes/sds-light/sds-light-style.js +13 -0
  239. package/esm5/components/code-editor/infra/cores/codemirror-6/themes/sds-light/sds-light-theme.js +22 -0
  240. package/esm5/components/code-editor/infra/cores/codemirror-6/utils/convert-markers-to-diagnostics.js +18 -0
  241. package/esm5/components/code-editor/infra/cores/codemirror-6/utils/index.js +3 -0
  242. package/esm5/components/code-editor/infra/cores/codemirror-6/utils/is-current-position-inside-string.js +6 -0
  243. package/esm5/components/code-editor/infra/linters/tax-calculation/models/index.js +1 -0
  244. package/esm5/components/code-editor/infra/linters/tax-calculation/models/interfaces/validation.js +1 -0
  245. package/esm5/components/code-editor/infra/linters/tax-calculation/tax-calculation-linter.js +21 -0
  246. package/esm5/components/code-editor/infra/linters/tax-calculation/validation-compositors/index.js +3 -0
  247. package/esm5/components/code-editor/infra/linters/tax-calculation/validation-compositors/validation-composite.js +49 -0
  248. package/esm5/components/code-editor/infra/linters/tax-calculation/validation-compositors/validation-workers-compositor/validations-workers-composite.js +42 -0
  249. package/esm5/components/code-editor/infra/utils/custom-http-client/custom-http-client.js +126 -0
  250. package/esm5/components/code-editor/infra/utils/custom-http-client/json-response-formatters/format-blob-response.js +21 -0
  251. package/esm5/components/code-editor/infra/utils/custom-http-client/json-response-formatters/format-json-response.js +14 -0
  252. package/esm5/components/code-editor/infra/utils/custom-http-client/json-response-formatters/index.js +3 -0
  253. package/esm5/components/code-editor/infra/utils/custom-translations/custom-translations-service.js +41 -0
  254. package/esm5/components/code-editor/infra/utils/custom-translations/custom-translations.module.js +31 -0
  255. package/esm5/components/code-editor/infra/utils/custom-translations/index.js +3 -0
  256. package/esm5/components/code-editor/infra/utils/custom-translations/models/index.js +1 -0
  257. package/esm5/components/code-editor/infra/utils/custom-translations/models/interfaces/translations.js +1 -0
  258. package/esm5/components/code-editor/infra/utils/index.js +4 -0
  259. package/esm5/components/code-editor/infra/utils/regex-index-of.js +12 -0
  260. package/esm5/components/code-editor/models/enums/languages.js +5 -0
  261. package/esm5/components/code-editor/models/enums/themes.js +5 -0
  262. package/esm5/components/code-editor/models/index.js +4 -0
  263. package/esm5/components/code-editor/models/interfaces/editor-options.js +1 -0
  264. package/esm5/components/code-editor/presentation/code-editor-component.js +100 -0
  265. package/esm5/components/code-editor/presentation/code-editor-module.js +30 -0
  266. package/esm5/components/table/table-column/table-columns.component.js +4 -3
  267. package/esm5/public-api.js +2 -1
  268. package/esm5/seniorsistemas-angular-components.js +5 -1
  269. package/fesm2015/seniorsistemas-angular-components.js +1679 -40
  270. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  271. package/fesm5/seniorsistemas-angular-components.js +1858 -41
  272. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  273. package/package.json +11 -2
  274. package/public-api.d.ts +1 -0
  275. package/seniorsistemas-angular-components.d.ts +4 -0
  276. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -1,15 +1,15 @@
1
- import { __decorate, __param } from 'tslib';
2
- import { Input, Component, NgModule, EventEmitter, HostBinding, Output, ViewChild, Renderer2, HostListener, Directive, Injectable, Pipe, forwardRef, ViewEncapsulation, TemplateRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef, Inject, ContentChild, ApplicationRef, Injector, ElementRef, ContentChildren } from '@angular/core';
1
+ import { __decorate, __param, __awaiter } from 'tslib';
2
+ import { Input, Component, NgModule, EventEmitter, HostBinding, Output, ViewChild, Renderer2, HostListener, Directive, Injectable, Pipe, forwardRef, ViewEncapsulation, TemplateRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef, InjectionToken, Inject, ContentChild, ApplicationRef, Injector, ElementRef, ContentChildren } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { BreadcrumbModule as BreadcrumbModule$1 } from 'primeng/breadcrumb';
5
5
  import { NavigationEnd, PRIMARY_OUTLET, ActivatedRoute, Router, RouterModule } from '@angular/router';
6
- import { Subject, of, from, forkJoin, throwError } from 'rxjs';
7
- import { takeUntil, filter, tap, map, switchMap, catchError, delay, finalize, debounceTime, repeat } from 'rxjs/operators';
6
+ import { Subject, of, from, forkJoin, throwError, ReplaySubject } from 'rxjs';
7
+ import { takeUntil, filter, tap, map, switchMap, catchError, delay, finalize, debounceTime, repeat, take } from 'rxjs/operators';
8
8
  import { TieredMenu, TieredMenuModule } from 'primeng/tieredmenu';
9
9
  import { TooltipModule } from 'primeng/tooltip';
10
10
  import { DomHandler } from 'primeng/dom';
11
11
  import { Calendar, CalendarModule } from 'primeng/calendar';
12
- import { trigger, state, style, transition, animate, group, query, animateChild } from '@angular/animations';
12
+ import { trigger, state, style as style$7, transition, animate, group, query, animateChild } from '@angular/animations';
13
13
  import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR, FormControl, FormGroup, NG_VALIDATORS, Validators, FormArray } from '@angular/forms';
14
14
  import { HttpClient, HttpEventType, HttpClientModule } from '@angular/common/http';
15
15
  import { Hotkey, HotkeysService, HotkeyModule } from 'angular2-hotkeys';
@@ -18,7 +18,7 @@ import { AutoComplete, AutoCompleteModule } from 'primeng/autocomplete';
18
18
  import { Dialog, DialogModule } from 'primeng/dialog';
19
19
  import { Table, TableService, RowToggler, TableModule as TableModule$1 } from 'primeng/table';
20
20
  import { applyMask, AlignmentOptions, CurrencyMaskDirective as CurrencyMaskDirective$1 } from '@seniorsistemas/ng2-currency-mask';
21
- import { user } from '@seniorsistemas/senior-platform-data';
21
+ import { user, service } from '@seniorsistemas/senior-platform-data';
22
22
  import * as moment_ from 'moment';
23
23
  import { CookieService } from 'ngx-cookie-service';
24
24
  import { CurrencyMaskDirective } from 'ng2-currency-mask';
@@ -42,6 +42,15 @@ import * as elementResizeDetectorMaker_ from 'element-resize-detector';
42
42
  import { FocusTrapFactory, A11yModule } from '@angular/cdk/a11y';
43
43
  import { ScrollPanelModule } from 'primeng/scrollpanel';
44
44
  import { Sidebar, SidebarModule as SidebarModule$1 } from 'primeng/sidebar';
45
+ import { EditorView, keymap } from '@codemirror/view';
46
+ import { StateField, StateEffect, EditorState } from '@codemirror/state';
47
+ import { setDiagnostics } from '@codemirror/lint';
48
+ import { LRLanguage, LanguageSupport } from '@codemirror/language';
49
+ import { buildParser } from '@lezer/generator';
50
+ import { styleTags, tags, HighlightStyle } from '@codemirror/highlight';
51
+ import { autocompletion, pickedCompletion, startCompletion } from '@codemirror/autocomplete';
52
+ import { showTooltip } from '@codemirror/tooltip';
53
+ import { lineNumbers } from '@codemirror/gutter';
45
54
 
46
55
  let BreadcrumbComponent = class BreadcrumbComponent {
47
56
  constructor(activatedRoute, router) {
@@ -878,11 +887,11 @@ CollapseLinkComponent = CollapseLinkComponent_1 = __decorate([
878
887
  template: "<div *ngIf=\"!collapsed\" @collapseContent (@collapseContent.done)=\"onToggleDone()\">\n <ng-content></ng-content>\n</div>\n\n<button [id]=\"buttonId\" type=\"button\" class=\"s-collapse-button\" (click)=\"toggle()\" [disabled]=\"disabled\">\n <span class=\"s-button-icon fa\" [ngClass]=\"{'fa-caret-down': collapsed, 'fa-caret-up': !collapsed}\"\n aria-hidden=\"true\"></span>\n <span class=\"s-button-text\">{{ collapsed ? collapsedLabel : expandedLabel }}</span>\n</button>\n",
879
888
  animations: [
880
889
  trigger("collapseContent", [
881
- state("void", style({
890
+ state("void", style$7({
882
891
  height: 0,
883
892
  opacity: 0,
884
893
  })),
885
- state("*", style({
894
+ state("*", style$7({
886
895
  height: "*",
887
896
  opacity: 1,
888
897
  })),
@@ -2176,20 +2185,20 @@ LookupComponent = LookupComponent_1 = __decorate([
2176
2185
  encapsulation: ViewEncapsulation.None,
2177
2186
  animations: [
2178
2187
  trigger("collapseContent", [
2179
- state("hidden", style({
2188
+ state("hidden", style$7({
2180
2189
  width: "10px",
2181
2190
  padding: 0,
2182
2191
  })),
2183
- state("visible", style({
2192
+ state("visible", style$7({
2184
2193
  width: "*",
2185
2194
  })),
2186
2195
  transition("visible <=> hidden", [group([query("@childCollapseContent", animateChild()), animate("{{transitionParams}}")])]),
2187
2196
  ]),
2188
2197
  trigger("childCollapseContent", [
2189
- state(":leave", style({
2198
+ state(":leave", style$7({
2190
2199
  opacity: 0,
2191
2200
  })),
2192
- state(":enter", style({
2201
+ state(":enter", style$7({
2193
2202
  opacity: 1,
2194
2203
  })),
2195
2204
  transition("* <=> *", animate("{{transitionParams}}")),
@@ -3436,6 +3445,25 @@ var EnumBadgeColors;
3436
3445
  EnumBadgeColors["BLUE"] = "sds-semantic-blue";
3437
3446
  })(EnumBadgeColors || (EnumBadgeColors = {}));
3438
3447
 
3448
+ var AngularComponentsModule_1;
3449
+ const HostProjectConfigsInjectionToken = new InjectionToken("hostProjectConfigs");
3450
+ let AngularComponentsModule = AngularComponentsModule_1 = class AngularComponentsModule {
3451
+ static forRoot(config) {
3452
+ return {
3453
+ ngModule: AngularComponentsModule_1,
3454
+ providers: [
3455
+ {
3456
+ provide: HostProjectConfigsInjectionToken,
3457
+ useValue: config
3458
+ }
3459
+ ]
3460
+ };
3461
+ }
3462
+ };
3463
+ AngularComponentsModule = AngularComponentsModule_1 = __decorate([
3464
+ NgModule({})
3465
+ ], AngularComponentsModule);
3466
+
3439
3467
  let TableColumnsComponent = class TableColumnsComponent {
3440
3468
  constructor(viewContainerRef, translate, hostProjectConfigs) {
3441
3469
  this.viewContainerRef = viewContainerRef;
@@ -3626,7 +3654,7 @@ let TableColumnsComponent = class TableColumnsComponent {
3626
3654
  TableColumnsComponent.ctorParameters = () => [
3627
3655
  { type: ViewContainerRef },
3628
3656
  { type: TranslateService },
3629
- { type: undefined, decorators: [{ type: Inject, args: ["hostProjectConfigs",] }] }
3657
+ { type: undefined, decorators: [{ type: Inject, args: [HostProjectConfigsInjectionToken,] }] }
3630
3658
  ];
3631
3659
  __decorate([
3632
3660
  ViewChild("columnsTemplate", { static: true })
@@ -3646,7 +3674,7 @@ TableColumnsComponent = __decorate([
3646
3674
  selector: "s-table-columns",
3647
3675
  styles: [":host{display:none}"]
3648
3676
  }),
3649
- __param(2, Inject("hostProjectConfigs"))
3677
+ __param(2, Inject(HostProjectConfigsInjectionToken))
3650
3678
  ], TableColumnsComponent);
3651
3679
 
3652
3680
  var TokenListComponent_1;
@@ -5857,13 +5885,13 @@ ObjectCardComponent = ObjectCardComponent_1 = __decorate([
5857
5885
  template: "<div [id]=\"id\" class=\"container\">\n <div\n [id]=\"id + '-main-container'\"\n class=\"main-container\"\n [ngClass]=\"{\n 'with-hidden-fields': fields.length > maxVisibleFields,\n 'with-visible-fields': fields.length && maxVisibleFields\n }\"\n >\n <div class=\"object-content\">\n <div class=\"s-object-card-main\"><ng-content select=\"s-object-card-main\"></ng-content></div>\n\n <div class=\"divider\" *ngIf=\"maxVisibleFields && fields.length\"></div>\n\n <div *ngFor=\"let field of (fields.toArray() | slice: 0:maxVisibleFields)\" class=\"s-object-card-field\">\n <ng-container *ngTemplateOutlet=\"field.content\"></ng-container>\n </div>\n </div>\n\n <div\n [id]=\"id + '-expand-icon-container'\"\n class=\"expand-icon-container\"\n (click)=\"toggle()\"\n [pTooltip]=\"expanded ? collapseTooltip : expandTooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n >\n <span [id]=\"id + '-expand-icon'\" class=\"expand-icon fa\" [ngClass]=\"{ 'fa-minus': expanded, 'fa-plus': !expanded }\"></span>\n </div>\n </div>\n\n <div [id]=\"id + '-expandable-container'\" [@expandableContent]=\"expanded\" class=\"expandable-container\">\n <div class=\"ui-g ui-g-12\">\n <ng-container *ngFor=\"let field of (fields.toArray() | slice: maxVisibleFields:fields.length)\">\n <div class=\"ui-g-{{getExpandedFieldWidth()}}\">\n <div class=\"s-object-card-field\"><ng-container *ngTemplateOutlet=\"field.content\"></ng-container></div>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n",
5858
5886
  animations: [
5859
5887
  trigger("expandableContent", [
5860
- state("*", style({
5888
+ state("*", style$7({
5861
5889
  height: "0",
5862
5890
  })),
5863
- state("false", style({
5891
+ state("false", style$7({
5864
5892
  height: "0",
5865
5893
  })),
5866
- state("true", style({
5894
+ state("true", style$7({
5867
5895
  height: "*",
5868
5896
  })),
5869
5897
  transition("* => true", animate("200ms ease-out")),
@@ -6184,30 +6212,30 @@ StepsComponent = StepsComponent_1 = __decorate([
6184
6212
  },
6185
6213
  animations: [
6186
6214
  trigger("beforeActiveDesative", [
6187
- state("active", style({
6215
+ state("active", style$7({
6188
6216
  "background-position": "left bottom",
6189
6217
  })),
6190
- state("desactive", style({
6218
+ state("desactive", style$7({
6191
6219
  "background-position": "right bottom",
6192
6220
  })),
6193
6221
  transition("active => desactive", [animate("50ms 100ms linear")]),
6194
6222
  transition("desactive => active", [animate("50ms 250ms linear")]),
6195
6223
  ]),
6196
6224
  trigger("activeDesative", [
6197
- state("active", style({
6225
+ state("active", style$7({
6198
6226
  "background-position": "left bottom",
6199
6227
  })),
6200
- state("desactive", style({
6228
+ state("desactive", style$7({
6201
6229
  "background-position": "right bottom",
6202
6230
  })),
6203
6231
  transition("active => desactive", [animate("100ms 150ms linear")]),
6204
6232
  transition("desactive => active", [animate("100ms 150ms linear")]),
6205
6233
  ]),
6206
6234
  trigger("afterActiveDesative", [
6207
- state("active", style({
6235
+ state("active", style$7({
6208
6236
  "background-position": "left bottom",
6209
6237
  })),
6210
- state("desactive", style({
6238
+ state("desactive", style$7({
6211
6239
  "background-position": "right bottom",
6212
6240
  })),
6213
6241
  transition("active => desactive", [animate("50ms 250ms linear")]),
@@ -6491,13 +6519,13 @@ GlobalSearchComponent = __decorate([
6491
6519
  template: "<div class=\"ui-inputgroup\">\n <input #globalSearch class=\"global-search__input\" [(ngModel)]=\"search\" (ngModelChange)=\"onChange()\" pInputText\n [placeholder]=\"placeholder\" (focus)=\"focusIn()\" (blur)=\"focusOut()\">\n <span class=\"ui-inputgroup-addon global-search__span\"><em class=\"fas fa-search\"></em></span>\n <div class=\"global-search__modal\" *ngIf=\"wasSearched\">\n <div *sLoadingState=\"isLoading && !isModalLoading\" class=\"global-search__loader\">\n <div class=\"global-search__container\" *ngIf=\"dropdownItens && dropdownItens.length > 0 || isLoading\">\n <div *ngIf=\"dropdownItens && dropdownItens.length > 0\">\n <div class=\"global-search__modal--total-itens-title\">\n <span class=\"ui-g-11 no-space\">{{totalItensLabel}}</span>\n <span class=\"ui-g-1 no-space global-search__modal--total-itens-title-icon\" (click)=\"close()\"><em\n class=\"fas fa-times\"></em></span>\n </div>\n <div class=\"no-space global-search__dropdown--itens\"\n [@expandableContent]=\"expanded\">\n <ng-container *ngFor=\"let item of dropdownItens\">\n <div class=\"s-object-card-field no-space global-search__dropdown--itens-container\">\n <ng-container *ngTemplateOutlet=\"item.content\"></ng-container>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"showFooter\" class=\"ui-g-12 global-search__modal--footer\">\n <s-button class=\"global-search__show-more\" (click)=\"showMore()\" priority=\"link\">\n {{showMoreLabel}}\n </s-button>\n </div>\n </div>\n </div>\n <s-empty-state *ngIf=\"(!dropdownItens || dropdownItens.length==0) && !isLoading\" [title]=\"emptyTitle\"\n [description]=\"emptyDescription\" ngClass=\"global-search__empty-state--icon\"\n [iconClass]=\"(emptyIcon ? emptyIcon : 'fas fa-search')\">\n </s-empty-state>\n </div>\n </div>\n <div *ngIf=\"wasSearched\" class=\"global-search__background\" (click)=\"close()\"></div>\n</div>\n",
6492
6520
  animations: [
6493
6521
  trigger("expandableContent", [
6494
- state("*", style({
6522
+ state("*", style$7({
6495
6523
  height: "0",
6496
6524
  })),
6497
- state("false", style({
6525
+ state("false", style$7({
6498
6526
  height: "0",
6499
6527
  })),
6500
- state("true", style({
6528
+ state("true", style$7({
6501
6529
  height: "*",
6502
6530
  })),
6503
6531
  transition("* => true", animate("200ms ease-out")),
@@ -6586,27 +6614,1638 @@ GlobalSearchModule = __decorate([
6586
6614
  })
6587
6615
  ], GlobalSearchModule);
6588
6616
 
6589
- var AngularComponentsModule_1;
6590
- let AngularComponentsModule = AngularComponentsModule_1 = class AngularComponentsModule {
6591
- static forRoot(config) {
6592
- return {
6593
- ngModule: AngularComponentsModule_1,
6594
- providers: [
6595
- {
6596
- provide: "hostProjectConfigs",
6597
- useValue: config
6617
+ var Languages;
6618
+ (function (Languages) {
6619
+ Languages["TaxCalculation"] = "TaxCalculation";
6620
+ })(Languages || (Languages = {}));
6621
+
6622
+ var Themes;
6623
+ (function (Themes) {
6624
+ Themes["SDSLight"] = "SDSLight";
6625
+ })(Themes || (Themes = {}));
6626
+
6627
+ /* Enums */
6628
+
6629
+ class ValidationWorkersComposite {
6630
+ constructor() {
6631
+ this._validations = [];
6632
+ }
6633
+ validate(code, completionItems) {
6634
+ return __awaiter(this, void 0, void 0, function* () {
6635
+ return new Promise(resolve => {
6636
+ const markers = [];
6637
+ let finishedWorkers = 0;
6638
+ for (const worker of this._validations) {
6639
+ worker.onmessage = ({ data }) => {
6640
+ markers.concat(data);
6641
+ finishedWorkers++;
6642
+ if (finishedWorkers === this._validations.length) {
6643
+ resolve(markers);
6644
+ }
6645
+ };
6646
+ worker.postMessage({ code, completionItems });
6598
6647
  }
6599
- ]
6648
+ });
6649
+ });
6650
+ }
6651
+ }
6652
+
6653
+ class ValidationComposite {
6654
+ constructor() {
6655
+ this._validations = [];
6656
+ }
6657
+ validate(code, completionItems) {
6658
+ return __awaiter(this, void 0, void 0, function* () {
6659
+ const markers = [];
6660
+ for (const validation of this._validations) {
6661
+ markers.concat(yield validation.validate(code, completionItems));
6662
+ }
6663
+ return markers;
6664
+ });
6665
+ }
6666
+ }
6667
+
6668
+ /**
6669
+ * Linter for the "TaxCalculation" Language
6670
+ */
6671
+ class TaxCalculationLinter {
6672
+ constructor() {
6673
+ this.setValidation();
6674
+ }
6675
+ lint(code, completionItems) {
6676
+ return this._validation.validate(code, completionItems || []);
6677
+ }
6678
+ setValidation() {
6679
+ const browserSupportsWorkers = typeof Worker !== "undefined";
6680
+ this._validation = browserSupportsWorkers
6681
+ ? new ValidationWorkersComposite()
6682
+ : new ValidationComposite();
6683
+ }
6684
+ }
6685
+
6686
+ class CoreLinters {
6687
+ static getLinter(language) {
6688
+ return CoreLinters._LINTERS.get(language);
6689
+ }
6690
+ }
6691
+ CoreLinters._LINTERS = new Map([
6692
+ [Languages.TaxCalculation, new TaxCalculationLinter()]
6693
+ ]);
6694
+
6695
+ class CoreFacade {
6696
+ constructor() {
6697
+ this.$onCoreFinishLoad = new ReplaySubject(1);
6698
+ this.$onCodeChange = new Subject();
6699
+ this.$onCodeValidityChange = new Subject();
6700
+ this._completionItems = [];
6701
+ }
6702
+ changeEditorOptions(options) {
6703
+ if (options) {
6704
+ if (typeof options !== "object")
6705
+ throw new Error("Editor's options must be an EditorOptions object");
6706
+ this.validateLanguage(options.language);
6707
+ this.validateTheme(options.theme);
6708
+ this.setLinter(options.language);
6709
+ this.setCoreEditorOptions(options);
6710
+ }
6711
+ }
6712
+ changeCode(code) {
6713
+ if (code !== this._lastCodeEmitted) {
6714
+ this.setCode(code);
6715
+ }
6716
+ }
6717
+ destroyObservables() { }
6718
+ getOnCoreFinishLoadObservable() {
6719
+ return this.$onCoreFinishLoad.asObservable();
6720
+ }
6721
+ getOnCodeChangeObservable() {
6722
+ return this.$onCodeChange.asObservable();
6723
+ }
6724
+ getOnCodeValidityChangeObservable() {
6725
+ return this.$onCodeValidityChange.asObservable();
6726
+ }
6727
+ notifyCoreFinishLoad() {
6728
+ this.$onCoreFinishLoad.next();
6729
+ }
6730
+ notifyCodeChange(code) {
6731
+ if (code !== this._lastCodeEmitted) {
6732
+ this._lastCodeEmitted = code;
6733
+ this.$onCodeChange.next(code);
6734
+ this.validateCode(code);
6735
+ }
6736
+ }
6737
+ updateCompletionItems(items) {
6738
+ this._completionItems = items;
6739
+ this.validateCode(this._lastCodeEmitted);
6740
+ }
6741
+ setLinter(language) {
6742
+ this._linter = CoreLinters.getLinter(language);
6743
+ }
6744
+ validateCode(code) {
6745
+ return __awaiter(this, void 0, void 0, function* () {
6746
+ if (this._linter) {
6747
+ const markers = yield this._linter.lint(code, this._completionItems);
6748
+ this.highlightCode(markers);
6749
+ this.notifyCodeValidityChange(!!markers.length);
6750
+ }
6751
+ });
6752
+ }
6753
+ notifyCodeValidityChange(validity) {
6754
+ if (validity !== this._lastCodeValidityEmitted) {
6755
+ this._lastCodeValidityEmitted = validity;
6756
+ this.$onCodeValidityChange.next(validity);
6757
+ }
6758
+ }
6759
+ validateLanguage(language) {
6760
+ const languages = Object.values(Languages);
6761
+ if (language && !languages.includes(language))
6762
+ throw new Error(`The informed language "${language}" is not supported`);
6763
+ }
6764
+ validateTheme(theme) {
6765
+ const themes = Object.values(Themes);
6766
+ if (theme && !themes.includes(theme))
6767
+ throw new Error(`The informed theme "${theme}" is not supported`);
6768
+ }
6769
+ }
6770
+
6771
+ let CodeEditorComponent = class CodeEditorComponent {
6772
+ constructor(coreFacade) {
6773
+ this.coreFacade = coreFacade;
6774
+ this._ngUnsubscribe = new Subject();
6775
+ this.codeChange = new EventEmitter();
6776
+ this.isCodeValidChange = new EventEmitter();
6777
+ this.onCodeChange = new EventEmitter();
6778
+ this.onComponentFinishLoad = new EventEmitter();
6779
+ }
6780
+ set editorOptions(options) {
6781
+ this.coreFacade.changeEditorOptions(options);
6782
+ }
6783
+ set code(code) {
6784
+ this.coreFacade.changeCode(code);
6785
+ }
6786
+ ngOnInit() {
6787
+ this.setupCoreListeners();
6788
+ }
6789
+ ngAfterViewInit() {
6790
+ this.setCoreWrapperElement();
6791
+ }
6792
+ ngOnDestroy() {
6793
+ this.coreFacade.destroyObservables();
6794
+ this._ngUnsubscribe.next();
6795
+ this._ngUnsubscribe.complete();
6796
+ }
6797
+ setCoreWrapperElement() {
6798
+ this.coreFacade.setCoreWrapperElement(this.coreWrapperElement.nativeElement);
6799
+ }
6800
+ setupCoreListeners() {
6801
+ this.coreFacade
6802
+ .getOnCoreFinishLoadObservable()
6803
+ .pipe(take(1))
6804
+ .subscribe(() => this.onComponentFinishLoad.emit());
6805
+ this.coreFacade
6806
+ .getOnCodeChangeObservable()
6807
+ .pipe(takeUntil(this._ngUnsubscribe))
6808
+ .subscribe(code => {
6809
+ this.codeChange.emit(code);
6810
+ this.onCodeChange.emit(code);
6811
+ });
6812
+ this.coreFacade
6813
+ .getOnCodeValidityChangeObservable()
6814
+ .pipe(takeUntil(this._ngUnsubscribe))
6815
+ .subscribe(validity => {
6816
+ this.isCodeValidChange.emit(validity);
6817
+ });
6818
+ }
6819
+ };
6820
+ CodeEditorComponent.ctorParameters = () => [
6821
+ { type: CoreFacade }
6822
+ ];
6823
+ __decorate([
6824
+ ViewChild("coreWrapper")
6825
+ ], CodeEditorComponent.prototype, "coreWrapperElement", void 0);
6826
+ __decorate([
6827
+ Input()
6828
+ ], CodeEditorComponent.prototype, "editorOptions", null);
6829
+ __decorate([
6830
+ Input()
6831
+ ], CodeEditorComponent.prototype, "code", null);
6832
+ __decorate([
6833
+ Output()
6834
+ ], CodeEditorComponent.prototype, "codeChange", void 0);
6835
+ __decorate([
6836
+ Input()
6837
+ ], CodeEditorComponent.prototype, "isCodeValid", void 0);
6838
+ __decorate([
6839
+ Output()
6840
+ ], CodeEditorComponent.prototype, "isCodeValidChange", void 0);
6841
+ __decorate([
6842
+ Output()
6843
+ ], CodeEditorComponent.prototype, "onCodeChange", void 0);
6844
+ __decorate([
6845
+ Output()
6846
+ ], CodeEditorComponent.prototype, "onComponentFinishLoad", void 0);
6847
+ CodeEditorComponent = __decorate([
6848
+ Component({
6849
+ selector: "s-code-editor",
6850
+ template: `<div #coreWrapper class="core-wrapper"></div>`,
6851
+ styles: [".core-wrapper{height:100%}"]
6852
+ })
6853
+ ], CodeEditorComponent);
6854
+
6855
+ var parserGrammar = `
6856
+ @top Script { statement+ }
6857
+
6858
+ statement[@isGroup=Statement] {
6859
+ Keyword |
6860
+ String |
6861
+ Number
6862
+ }
6863
+
6864
+ @tokens {
6865
+ String { '"' (![\\n"])* '"'? }
6866
+
6867
+ Number { std.digit+ }
6868
+
6869
+ identifierChar { std.asciiLetter | $[_$\u{a1}-\u{10ffff}] }
6870
+
6871
+ word { identifierChar (identifierChar | std.digit)* }
6872
+
6873
+ identifier { word }
6874
+ }
6875
+
6876
+ Keyword {
6877
+ kw<"SE">
6878
+ kw<"ENTAO">
6879
+ kw<"FIM_SE">
6880
+ kw<"SENAO">
6881
+ kw<"NAO">
6882
+ kw<"CONTENHA">
6883
+ kw<"OU">
6884
+ kw<"E">
6885
+ }
6886
+
6887
+ kw<term> { @specialize[@name={term}]<identifier, term> }
6888
+
6889
+ @detectDelim
6890
+ `;
6891
+
6892
+ var EnumTypeOrder;
6893
+ (function (EnumTypeOrder) {
6894
+ // Tipo de ordenação - Crescente
6895
+ EnumTypeOrder["ASC"] = "ASC";
6896
+ // Tipo de ordenação - Decrescente
6897
+ EnumTypeOrder["DESC"] = "DESC";
6898
+ })(EnumTypeOrder || (EnumTypeOrder = {}));
6899
+
6900
+ var MetaType;
6901
+ (function (MetaType) {
6902
+ // Entity
6903
+ MetaType["ENTITY"] = "ENTITY";
6904
+ // String
6905
+ MetaType["STRING"] = "STRING";
6906
+ // Integer
6907
+ MetaType["INTEGER"] = "INTEGER";
6908
+ // Double
6909
+ MetaType["DOUBLE"] = "DOUBLE";
6910
+ // Long
6911
+ MetaType["LONG"] = "LONG";
6912
+ // BigDecimal
6913
+ MetaType["BIGDECIMAL"] = "BIGDECIMAL";
6914
+ // UUID
6915
+ MetaType["UUID"] = "UUID";
6916
+ // Date
6917
+ MetaType["DATE"] = "DATE";
6918
+ // DateTime
6919
+ MetaType["DATETIME"] = "DATETIME";
6920
+ // Time
6921
+ MetaType["TIME"] = "TIME";
6922
+ // Boolean
6923
+ MetaType["BOOLEAN"] = "BOOLEAN";
6924
+ // List
6925
+ MetaType["LIST"] = "LIST";
6926
+ // Enum
6927
+ MetaType["ENUM"] = "ENUM";
6928
+ // CustomExpression
6929
+ MetaType["CUSTOM_EXPRESSION"] = "CUSTOM_EXPRESSION";
6930
+ // PublicExpression
6931
+ MetaType["PUBLIC_EXPRESSION"] = "PUBLIC_EXPRESSION";
6932
+ })(MetaType || (MetaType = {}));
6933
+
6934
+ var RequestTypes;
6935
+ (function (RequestTypes) {
6936
+ RequestTypes[RequestTypes["ListContextMetadataById"] = 0] = "ListContextMetadataById";
6937
+ RequestTypes[RequestTypes["ListExpressionMetadata"] = 1] = "ListExpressionMetadata";
6938
+ RequestTypes[RequestTypes["ListFacadeMetadataNames"] = 2] = "ListFacadeMetadataNames";
6939
+ RequestTypes[RequestTypes["GetFacadeMetadataByPath"] = 3] = "GetFacadeMetadataByPath";
6940
+ })(RequestTypes || (RequestTypes = {}));
6941
+
6942
+ var CompletionTypes;
6943
+ (function (CompletionTypes) {
6944
+ CompletionTypes["Keyword"] = "keyword";
6945
+ CompletionTypes["Context"] = "context";
6946
+ CompletionTypes["Expression"] = "expression";
6947
+ CompletionTypes["UserExpression"] = "userExpression";
6948
+ CompletionTypes["Entity"] = "entity";
6949
+ CompletionTypes["FinalValue"] = "finalValue";
6950
+ })(CompletionTypes || (CompletionTypes = {}));
6951
+
6952
+ var Keywords;
6953
+ (function (Keywords) {
6954
+ Keywords["SE"] = "SE";
6955
+ Keywords["SENAO"] = "SENAO";
6956
+ Keywords["CONTENHA"] = "CONTENHA";
6957
+ Keywords["ENTAO"] = "ENTAO";
6958
+ Keywords["FIM_SE"] = "FIM_SE";
6959
+ Keywords["NAO"] = "NAO";
6960
+ Keywords["E"] = "E";
6961
+ Keywords["OU"] = "OU";
6962
+ })(Keywords || (Keywords = {}));
6963
+
6964
+ /* Enums */
6965
+
6966
+ const baseConfigs = LRLanguage.define({
6967
+ parser: buildParser(parserGrammar)
6968
+ .configure({
6969
+ props: [
6970
+ styleTags({
6971
+ [Object.values(Keywords).join(" ")]: tags.keyword,
6972
+ "String": tags.string,
6973
+ "Number": tags.number,
6974
+ })
6975
+ ]
6976
+ })
6977
+ });
6978
+
6979
+ /**
6980
+ * Formats a JSON response to a JS object
6981
+ * @param response The response to format
6982
+ * @returns A JS object based on the response's body
6983
+ */
6984
+ function formatJsonResponse(response) {
6985
+ return __awaiter(this, void 0, void 0, function* () {
6986
+ return response.json();
6987
+ });
6988
+ }
6989
+
6990
+ /**
6991
+ * Formats a Blob response to a JS object
6992
+ * @param response The response to format
6993
+ * @returns A JS object based on the response's body
6994
+ */
6995
+ function formatBlobResponse(response) {
6996
+ return __awaiter(this, void 0, void 0, function* () {
6997
+ const textResponse = yield (yield response.blob()).text();
6998
+ return JSON.parse(textResponse);
6999
+ });
7000
+ }
7001
+
7002
+ /**
7003
+ * Custom HttpClient for cases when is not possible to use the Angular's HttpClient
7004
+ */
7005
+ class CustomHttpClient {
7006
+ /**
7007
+ * Executes a Http Get
7008
+ * @param url Url to execute the Get on
7009
+ * @param init Optional additional configs
7010
+ * @returns Whether a Promise<T> on request success or an error in request fail
7011
+ */
7012
+ static GET(url, init = {}) {
7013
+ return __awaiter(this, void 0, void 0, function* () {
7014
+ const response = yield this.interceptRequest(url, Object.assign(Object.assign({}, init), { method: "GET" }));
7015
+ return this.formatResponse(response);
7016
+ });
7017
+ }
7018
+ /**
7019
+ * Executes a Http Post
7020
+ * @param url Url to execute the Post on
7021
+ * @param body Info to send to server on Post
7022
+ * @param init Optional additional configs
7023
+ * @returns Whether a Promise<T> on request success or an error in request fail
7024
+ */
7025
+ static POST(url, body, init = {}) {
7026
+ return __awaiter(this, void 0, void 0, function* () {
7027
+ const headers = new Headers(init.headers);
7028
+ headers.append("Content-Type", "application/json");
7029
+ headers.append("Accept", "application/json");
7030
+ const response = yield this.interceptRequest(url, Object.assign(Object.assign({}, init), { method: "POST", body: JSON.stringify(body), headers }));
7031
+ return this.formatResponse(response);
7032
+ });
7033
+ }
7034
+ /**
7035
+ * Intercepts the original request to add a required header for Senior in case of a internal request
7036
+ * @param url Url from the original request
7037
+ * @param originalReq Configs from the original request
7038
+ * @returns Whether a Promise<Response> if the request was made successfully or an error
7039
+ */
7040
+ static interceptRequest(url, originalReq = {}) {
7041
+ return __awaiter(this, void 0, void 0, function* () {
7042
+ try {
7043
+ if (!url.includes("://")) {
7044
+ const restUrl = yield service.getRestUrl();
7045
+ const authHeader = yield user.getAuthHeader();
7046
+ const headers = new Headers(originalReq.headers);
7047
+ headers.append("Authorization", authHeader);
7048
+ const request = new Request(restUrl + url, Object.assign(Object.assign({}, originalReq), { headers }));
7049
+ return fetch(request);
7050
+ }
7051
+ return fetch(url, originalReq);
7052
+ }
7053
+ catch (err) {
7054
+ throw new Error(`Error fetching requested URL: ${err}`);
7055
+ }
7056
+ });
7057
+ }
7058
+ /**
7059
+ * Formats the request response to an object<T> or {}
7060
+ * @param response The response to be formatted
7061
+ * @returns Whether a Promise<T> if the response status is in the range 200-299 an error
7062
+ */
7063
+ static formatResponse(response) {
7064
+ return __awaiter(this, void 0, void 0, function* () {
7065
+ const contentType = response.headers.get("content-type");
7066
+ const formatter = CustomHttpClient._responseFormatterMap.get(contentType);
7067
+ const formattedContentType = formatter ? yield formatter(response) : {};
7068
+ if (response.ok)
7069
+ return formattedContentType;
7070
+ throw new Error(JSON.stringify(formattedContentType));
7071
+ });
7072
+ }
7073
+ }
7074
+ CustomHttpClient._responseFormatterMap = new Map([
7075
+ ["application/json", formatJsonResponse],
7076
+ ["application/octet-stream", formatBlobResponse]
7077
+ ]);
7078
+
7079
+ /**
7080
+ * Custom translator for cases when is not possible to use the "TranslateService" from "@ngx-translate/core"
7081
+ */
7082
+ class CustomTranslationsService {
7083
+ /**
7084
+ * Method used to get the translation for an key based on the host project's translations. Always use the first available language
7085
+ * @param key Key used to search the translation
7086
+ * @returns The translation for the informed key or the key in case there is no translation
7087
+ */
7088
+ static translate(key) {
7089
+ var _a, _b;
7090
+ if (key === undefined || key === null)
7091
+ return "";
7092
+ const translationKey = `${CustomTranslationsService._TRANSLATION_PREFIX}${key}`;
7093
+ const firstLanguageTranslations = (_a = Object.values(CustomTranslationsService._translations)[0]) !== null && _a !== void 0 ? _a : {};
7094
+ return (_b = firstLanguageTranslations[translationKey]) !== null && _b !== void 0 ? _b : translationKey;
7095
+ }
7096
+ /**
7097
+ * Method used to set the translations that will be used as base when calling the "translate" method
7098
+ * @param translations Translations to use as base
7099
+ */
7100
+ static setTranslations(translations) {
7101
+ CustomTranslationsService._translations = translations !== null && translations !== void 0 ? translations : {};
7102
+ }
7103
+ /**
7104
+ * Method used to set the prefix that will be used when calling the "translate" method
7105
+ * @param hostProjectConfigs The host project's configs used to create the prefix
7106
+ */
7107
+ static setTranslationsPrefix(hostProjectConfigs) {
7108
+ const { domain, service } = hostProjectConfigs !== null && hostProjectConfigs !== void 0 ? hostProjectConfigs : {};
7109
+ const prefix = `${domain}.${service}.`;
7110
+ CustomTranslationsService._TRANSLATION_PREFIX = prefix;
7111
+ }
7112
+ }
7113
+ CustomTranslationsService._translations = {};
7114
+ CustomTranslationsService._TRANSLATION_PREFIX = "";
7115
+
7116
+ /**
7117
+ * Responsible for setting up the translations that will be used by the "CustomTranslationsService".
7118
+ * Uses the host project's translations set by using the "TranslationsModule" from "@seniorsistemas/platform-components"
7119
+ */
7120
+ let CustomTranslationsModule = class CustomTranslationsModule {
7121
+ constructor(translate, hostProjectConfigs) {
7122
+ this.translate = translate;
7123
+ this.hostProjectConfigs = hostProjectConfigs;
7124
+ this.factoryTranslations(this.translate, this.hostProjectConfigs);
7125
+ }
7126
+ factoryTranslations(translate, hostProjectConfigs) {
7127
+ CustomTranslationsService.setTranslations(translate.translations);
7128
+ CustomTranslationsService.setTranslationsPrefix(hostProjectConfigs);
7129
+ }
7130
+ };
7131
+ CustomTranslationsModule.ctorParameters = () => [
7132
+ { type: TranslateService },
7133
+ { type: undefined, decorators: [{ type: Inject, args: [HostProjectConfigsInjectionToken,] }] }
7134
+ ];
7135
+ CustomTranslationsModule = __decorate([
7136
+ NgModule(),
7137
+ __param(1, Inject(HostProjectConfigsInjectionToken))
7138
+ ], CustomTranslationsModule);
7139
+
7140
+ /**
7141
+ * Function to get the position of the first occurrence of a regex in a string
7142
+ * @param string The string to search into
7143
+ * @param regex The regex to search into the string
7144
+ * @param position The index at which to begin searching the string. If omitted, search starts at the index 0.
7145
+ * @returns the position of the first occurrence of the informed regex.
7146
+ */
7147
+ function regexIndexOf(string, regex, position) {
7148
+ const indexOf = string.substring(position || 0).search(regex);
7149
+ return (indexOf >= 0) ? (indexOf + (position || 0)) : indexOf;
7150
+ }
7151
+
7152
+ var MarkerSeverity;
7153
+ (function (MarkerSeverity) {
7154
+ MarkerSeverity[MarkerSeverity["Error"] = 0] = "Error";
7155
+ MarkerSeverity[MarkerSeverity["Info"] = 1] = "Info";
7156
+ MarkerSeverity[MarkerSeverity["Warning"] = 2] = "Warning";
7157
+ })(MarkerSeverity || (MarkerSeverity = {}));
7158
+
7159
+ /* Enums */
7160
+
7161
+ const diagnosticSeverityInMarkerSeverityMap = new Map([
7162
+ [MarkerSeverity.Error, "error"],
7163
+ [MarkerSeverity.Info, "info"],
7164
+ [MarkerSeverity.Warning, "warning"]
7165
+ ]);
7166
+ function convertMarkersToDiagnostics(markers, textLength) {
7167
+ return markers.map(marker => {
7168
+ var _a, _b;
7169
+ return ({
7170
+ from: marker.start || 0,
7171
+ to: marker.end || textLength,
7172
+ message: (_a = marker.message) !== null && _a !== void 0 ? _a : "",
7173
+ severity: (_b = diagnosticSeverityInMarkerSeverityMap.get(marker.severity)) !== null && _b !== void 0 ? _b : "error"
7174
+ });
7175
+ });
7176
+ }
7177
+
7178
+ function isCurrentPositionInsideString(stringBeforeCurrentPosition) {
7179
+ var _a;
7180
+ const doubleQuotesQuantity = ((_a = stringBeforeCurrentPosition.match(/"/g)) === null || _a === void 0 ? void 0 : _a.length) || 0;
7181
+ return doubleQuotesQuantity % 2 !== 0;
7182
+ }
7183
+
7184
+ class AutocompleteService {
7185
+ static listContextMetadataById(request, abortSignal) {
7186
+ return __awaiter(this, void 0, void 0, function* () {
7187
+ return CustomHttpClient.POST(`${AutocompleteService.BASE_URL}/queries/listContextMetadataById`, request, {
7188
+ signal: abortSignal
7189
+ });
7190
+ });
7191
+ }
7192
+ static listExpressionMetadata(request, abortSignal) {
7193
+ return __awaiter(this, void 0, void 0, function* () {
7194
+ return CustomHttpClient.POST(`${AutocompleteService.BASE_URL}/queries/listExpressionMetadata`, request, {
7195
+ signal: abortSignal
7196
+ });
7197
+ });
7198
+ }
7199
+ static listFacadeMetadataNames(request, abortSignal) {
7200
+ return __awaiter(this, void 0, void 0, function* () {
7201
+ return CustomHttpClient.POST(`${AutocompleteService.BASE_URL}/queries/listFacadeMetadataNames`, request, {
7202
+ signal: abortSignal
7203
+ });
7204
+ });
7205
+ }
7206
+ static getFacadeMetadataByPath(request, abortSignal) {
7207
+ return __awaiter(this, void 0, void 0, function* () {
7208
+ return CustomHttpClient.POST(`${AutocompleteService.BASE_URL}/queries/getFacadeMetadataByPath`, request, {
7209
+ signal: abortSignal
7210
+ });
7211
+ });
7212
+ }
7213
+ }
7214
+ AutocompleteService.BASE_URL = "platform/rule_metadata";
7215
+
7216
+ /**
7217
+ * Adds style to autocomplete's state-wrapper
7218
+ * @returns An extension containing the style
7219
+ */
7220
+ function style() {
7221
+ return EditorView.theme({
7222
+ ".s-code-editor-taxCalculation-autocomplete-ul": {
7223
+ "padding": ".75rem !important",
7224
+ },
7225
+ ".s-code-editor-taxCalculation-autocomplete-li": {
7226
+ cursor: "default !important",
7227
+ "line-height": "1.375em !important",
7228
+ },
7229
+ });
7230
+ }
7231
+
7232
+ let htmlElementToBeWrapped = null;
7233
+ /**
7234
+ * Adds a view updates's listener that creates an state over the autocomplete
7235
+ * @returns An extension containing everything needed to listen the updates and create the autocomplete's state
7236
+ */
7237
+ function autocompleteStateWrapper() {
7238
+ return [
7239
+ autocompleteStateWrapperStateField(),
7240
+ style()
7241
+ ];
7242
+ }
7243
+ /**
7244
+ * Shows a state on a non-clickable autocomplete item's format with an HTMLElement inside
7245
+ * @param element The HTMLElement to show inside the state
7246
+ */
7247
+ function showAutocompleteStateWrapper(element) {
7248
+ htmlElementToBeWrapped = element;
7249
+ CodeMirror6Core.updateEditorView();
7250
+ }
7251
+ /**
7252
+ * Removes a possible showed autocomplete state
7253
+ */
7254
+ function hideAutocompleteStateWrapper() {
7255
+ htmlElementToBeWrapped = null;
7256
+ CodeMirror6Core.updateEditorView();
7257
+ }
7258
+ /*
7259
+ * Creates and returns a StateField responsible for listening the view's change and to add the autocomplete state's wrapper
7260
+ */
7261
+ function autocompleteStateWrapperStateField() {
7262
+ return StateField.define({
7263
+ create: getAutocompleteStateWrapper,
7264
+ update(_, transaction) {
7265
+ return getAutocompleteStateWrapper(transaction.state);
7266
+ },
7267
+ provide(field) {
7268
+ return showTooltip.compute([field], state => state.field(field));
7269
+ }
7270
+ });
7271
+ }
7272
+ /*
7273
+ * Function responsible for creating the state's wrapper and returning the same as a Tooltip from "@codemirror/tooltip";
7274
+ * Only creates the Tooltip if the theres is element on the "htmlElementToBeWrapped" variable;
7275
+ * The same will also be removed when any view update is emitted;
7276
+ */
7277
+ function getAutocompleteStateWrapper(state) {
7278
+ if (!htmlElementToBeWrapped)
7279
+ return;
7280
+ const htmlElementToBeWrappedString = htmlElementToBeWrapped.outerHTML;
7281
+ const stateWrapper = {
7282
+ pos: state.selection.ranges[0].head,
7283
+ create: () => ({ dom: getAutocompleteStateWrapperDomElement(htmlElementToBeWrappedString) })
7284
+ };
7285
+ htmlElementToBeWrapped = null;
7286
+ return stateWrapper;
7287
+ }
7288
+ function getAutocompleteStateWrapperDomElement(elementToBeWrappedString) {
7289
+ const wrapperDiv = document.createElement("div");
7290
+ wrapperDiv.className = "cm-tooltip-autocomplete cm-tooltip";
7291
+ wrapperDiv.innerHTML =
7292
+ `
7293
+ <ul class="s-code-editor-taxCalculation-autocomplete-ul">
7294
+ <li class="s-code-editor-taxCalculation-autocomplete-li">
7295
+ ${elementToBeWrappedString}
7296
+ </li>
7297
+ </ul>
7298
+
7299
+ `;
7300
+ return wrapperDiv;
7301
+ }
7302
+
7303
+ let autocompleteLoadingStateHTMLElement;
7304
+ /**
7305
+ * Adds a loading-state over the autocomplete
7306
+ * @returns An extension containing everything needed to add the loading-state
7307
+ */
7308
+ function autocompleteLoadingState() {
7309
+ return [autocompleteStateWrapper()];
7310
+ }
7311
+ /**
7312
+ * Activates the loading state on the autocomplete
7313
+ */
7314
+ /*
7315
+ * Must set the "autocompleteLoadingStateHTMLElement" here for when the document is loaded we do not have
7316
+ * yet the "CustomTranslationsService" ready
7317
+ */
7318
+ function showAutocompleteLoadingState() {
7319
+ if (!autocompleteLoadingStateHTMLElement) {
7320
+ autocompleteLoadingStateHTMLElement = getAutocompleteLoadingStateHTMLElement();
7321
+ }
7322
+ showAutocompleteStateWrapper(autocompleteLoadingStateHTMLElement);
7323
+ }
7324
+ function getAutocompleteLoadingStateHTMLElement() {
7325
+ const loadingStateSpanWrapper = document.createElement("span");
7326
+ loadingStateSpanWrapper.innerText = CustomTranslationsService.translate("core_language_tax_calculation_fetching_suggestions");
7327
+ return loadingStateSpanWrapper;
7328
+ }
7329
+
7330
+ let autocompleteEmptyStateHTMLElement;
7331
+ /**
7332
+ * Adds an empty-state over the autocomplete
7333
+ * @returns An extension containing everything needed to add the empty-state
7334
+ */
7335
+ function autocompleteEmptyState() {
7336
+ return [autocompleteStateWrapper()];
7337
+ }
7338
+ /**
7339
+ * Activates the empty-state on the autocomplete
7340
+ */
7341
+ /*
7342
+ * Must set the "autocompleteEmptyStateHTMLElement" here for when the document is loaded we do not have
7343
+ * yet the "CustomTranslationsService" ready
7344
+ */
7345
+ function showAutocompleteEmptyState() {
7346
+ if (!autocompleteEmptyStateHTMLElement) {
7347
+ autocompleteEmptyStateHTMLElement = getAutocompleteEmptyStateHTMLElement();
7348
+ }
7349
+ showAutocompleteStateWrapper(autocompleteEmptyStateHTMLElement);
7350
+ }
7351
+ function getAutocompleteEmptyStateHTMLElement() {
7352
+ const emptyStateSpanWrapper = document.createElement("span");
7353
+ emptyStateSpanWrapper.innerText = CustomTranslationsService.translate("core_language_tax_calculation_no_suggestions");
7354
+ return emptyStateSpanWrapper;
7355
+ }
7356
+
7357
+ class TaxCalculationLanguageConfigs {
7358
+ static setConfigs(configs) {
7359
+ TaxCalculationLanguageConfigs.CONFIGS = JSON.parse(JSON.stringify(configs));
7360
+ }
7361
+ static getConfigs() {
7362
+ return TaxCalculationLanguageConfigs.CONFIGS;
7363
+ }
7364
+ }
7365
+ TaxCalculationLanguageConfigs.CONFIGS = { contexts: [] };
7366
+
7367
+ /**
7368
+ * Gets the configs for the TaxCalculationLanguage
7369
+ * @returns The configs
7370
+ */
7371
+ function getLanguageConfigs() {
7372
+ var _a;
7373
+ const configs = TaxCalculationLanguageConfigs.getConfigs();
7374
+ if (!((_a = configs.contexts) === null || _a === void 0 ? void 0 : _a.length))
7375
+ throw new Error("In order to use the TaxCalculation Language's autocomplete, "
7376
+ + "one must inform at least one context by using the "
7377
+ + "'TaxCalculationLanguageConfigs.setConfigs()'");
7378
+ return configs;
7379
+ }
7380
+
7381
+ /**
7382
+ * Wraps the request to return the same with an identification or undefined in case of error, so the promise will
7383
+ * always trigger the "then"
7384
+ * @param request Request to wrap
7385
+ * @returns The typed request's response
7386
+ */
7387
+ function getSafeResponse(request) {
7388
+ return __awaiter(this, void 0, void 0, function* () {
7389
+ try {
7390
+ return Object.assign(Object.assign({}, request), { response: yield request.request });
7391
+ }
7392
+ catch (_) { }
7393
+ });
7394
+ }
7395
+
7396
+ const completionItemsMap = new Map();
7397
+ const usefulToCompletionItemsCompletionTypes = [
7398
+ CompletionTypes.Expression,
7399
+ CompletionTypes.UserExpression,
7400
+ CompletionTypes.FinalValue
7401
+ ];
7402
+ /*
7403
+ * Updates the completionItems used by the core.
7404
+ * Utilizes the path and filter to create a key and store the results from the search to the given "path.filter" on a map.
7405
+ * Must save the results to each different filter for the search does not bring all the results, so the user must do a more
7406
+ * specific filter to achieve its objective
7407
+ */
7408
+ function updateCoreCompletionItems(completionItem) {
7409
+ const { path, filter, completions } = completionItem;
7410
+ const mapPath = `${path}.${filter}`;
7411
+ const filteredCompletions = (completions || []).filter(completion => usefulToCompletionItemsCompletionTypes.includes(completion === null || completion === void 0 ? void 0 : completion.type));
7412
+ const formattedSearchResults = filteredCompletions.map(completion => path === "" ? completion === null || completion === void 0 ? void 0 : completion.label : `${path}.${completion === null || completion === void 0 ? void 0 : completion.label}`);
7413
+ completionItemsMap.delete(mapPath);
7414
+ if (formattedSearchResults.length) {
7415
+ completionItemsMap.set(mapPath, formattedSearchResults);
7416
+ }
7417
+ const allArraysFromMap = Array.from(completionItemsMap.values());
7418
+ const unrepeatedCompletionItems = new Set(allArraysFromMap.flat());
7419
+ CodeMirror6Core
7420
+ .$onCompletionItemsUpdate
7421
+ .next(Array.from(unrepeatedCompletionItems));
7422
+ }
7423
+
7424
+ /**
7425
+ * Adds style to the autocomplete
7426
+ * @returns An extension containing the style
7427
+ */
7428
+ function style$1() {
7429
+ return EditorView.theme({
7430
+ ".cm-completionIcon": {
7431
+ "font-family": "'Font Awesome 5 Pro'",
7432
+ "font-weight": "900",
7433
+ },
7434
+ ".cm-completionIcon-keyword::after": {
7435
+ "content": getIconBasedOnUnicode("f084"),
7436
+ },
7437
+ ".cm-completionIcon-context::after": {
7438
+ "content": getIconBasedOnUnicode("f466"),
7439
+ },
7440
+ ".cm-completionIcon-expression::after": {
7441
+ "content": getIconBasedOnUnicode("f505"),
7442
+ },
7443
+ ".cm-completionIcon-userExpression::after": {
7444
+ "content": getIconBasedOnUnicode("f4ff"),
7445
+ },
7446
+ ".cm-completionIcon-entity::after": {
7447
+ "content": getIconBasedOnUnicode("f126"),
7448
+ },
7449
+ ".cm-completionIcon-finalValue::after": {
7450
+ "content": getIconBasedOnUnicode("f192"),
7451
+ },
7452
+ });
7453
+ }
7454
+ function getIconBasedOnUnicode(unicode) {
7455
+ return `"\\${unicode}"`;
7456
+ }
7457
+
7458
+ /**
7459
+ * Adds an autocomplete to the editor
7460
+ * @returns An extension containing everything needed to create the autocomplete
7461
+ */
7462
+ function autocomplete() {
7463
+ return [
7464
+ autocompletion({ override: [getCompletionResults] }),
7465
+ autocompleteLoadingState(),
7466
+ autocompleteEmptyState(),
7467
+ style$1(),
7468
+ ];
7469
+ }
7470
+ const TRANSLATION_PREFIX = "core_language_tax_calculation";
7471
+ let completionResults;
7472
+ /*
7473
+ * A function to be called when a key is pressed, the ctrl+space is triggered or when the search for completionResults is done.
7474
+ * If there is a completionResult, returns it, otherwise starts a new async search.
7475
+ * Will only execute the autocompletion if the current cursor position is not inside a string
7476
+ */
7477
+ function getCompletionResults(context) {
7478
+ const isCursorInsideString = isCurrentPositionInsideString(context.state.doc.toString().substring(0, context.pos));
7479
+ if (isCursorInsideString)
7480
+ return;
7481
+ if (completionResults) {
7482
+ const finalCompletionResults = Object.assign({}, completionResults);
7483
+ const codeLength = context.state.doc.toString().length;
7484
+ finalCompletionResults.from = finalCompletionResults.from > codeLength
7485
+ ? codeLength
7486
+ : finalCompletionResults.from;
7487
+ completionResults = null;
7488
+ return finalCompletionResults;
7489
+ }
7490
+ startCompletionResultsSearch(context);
7491
+ }
7492
+ let cancelLastCompletionSearch = () => { };
7493
+ const ɵ0 = cancelLastCompletionSearch;
7494
+ let codeMirrorViewElement;
7495
+ /*
7496
+ * Starts a new completionResults's async search.
7497
+ * Avoids the last search to be finished by calling the "cancelLastCompletionSearch" callback function
7498
+ */
7499
+ function startCompletionResultsSearch(context) {
7500
+ const token = new AbortController();
7501
+ setTimeout(() => {
7502
+ if (!token.signal.aborted) {
7503
+ showAutocompleteLoadingState();
7504
+ searchCompletionResults(context, token);
7505
+ }
7506
+ }, 500);
7507
+ /*
7508
+ * IMPORTANT: The following lines MUST be the way they are!
7509
+ * Here is being add the listener to any keydown/click event so when any key is downed or mouse clicked, we cancel the last request.
7510
+ * We do this to not show to the user a completionItem in an incorrect place of text, that can be done by either pressing the
7511
+ * arrows, home, end, backspace and etc. The flow is:
7512
+ * 1. We add an eventListener to keydown/click when the autocompletion's request is triggered;
7513
+ * 2. When any key/click is pressed, we remove the listener and cancel the last request by changing the isSearchCanceled on token object
7514
+ * to true;
7515
+ * 3. If any key that requires autocompletion is triggered, the flow repeats;
7516
+ */
7517
+ codeMirrorViewElement = CodeMirror6Core.getEditorView().contentDOM;
7518
+ cancelLastCompletionSearch = () => {
7519
+ codeMirrorViewElement.removeEventListener("keydown", cancelLastCompletionSearch);
7520
+ codeMirrorViewElement.removeEventListener("click", cancelLastCompletionSearch);
7521
+ token.abort();
7522
+ };
7523
+ codeMirrorViewElement.addEventListener("keydown", cancelLastCompletionSearch);
7524
+ codeMirrorViewElement.addEventListener("click", cancelLastCompletionSearch);
7525
+ }
7526
+ /*
7527
+ * Requests the necessary items to fill the completionResults, although it only really opens the autocomplete
7528
+ * box (by calling the "startCompletion()", that calls the "getCompletionResults") if the current search was not cancelled
7529
+ * by a new one
7530
+ */
7531
+ function searchCompletionResults(context, token) {
7532
+ var _a, _b, _c, _d;
7533
+ return __awaiter(this, void 0, void 0, function* () {
7534
+ const codeBeforeCursor = (_d = (_b = (_a = context === null || context === void 0 ? void 0 : context.state) === null || _a === void 0 ? void 0 : _a.doc) === null || _b === void 0 ? void 0 : _b.toString().substring(0, (_c = context === null || context === void 0 ? void 0 : context.pos) !== null && _c !== void 0 ? _c : 0)) !== null && _d !== void 0 ? _d : "";
7535
+ const filter = getFilter(codeBeforeCursor);
7536
+ const path = getPath(codeBeforeCursor, filter.length);
7537
+ const requests = getRequestsBasedOnPath(path, filter, token.signal);
7538
+ Promise
7539
+ .all(requests)
7540
+ .then(responses => {
7541
+ if (!token.signal.aborted) {
7542
+ const completions = [].concat(getKeywordsCompletions(path), getContextsCompletions(responses), getExpressionsCompletions(responses), getEntitiesCompletions(responses));
7543
+ const filteredCompletions = getFilteredCompletions(completions, filter);
7544
+ if (filteredCompletions.length) {
7545
+ const formattedCompletions = getFormattedCompletions(filteredCompletions, filter);
7546
+ const sortedCompletions = getSortedCompletions(formattedCompletions);
7547
+ completionResults = {
7548
+ from: context.pos,
7549
+ filter: false,
7550
+ options: sortedCompletions
7551
+ };
7552
+ updateCoreCompletionItems({ path, filter, completions: sortedCompletions });
7553
+ startCompletion(CodeMirror6Core.getEditorView());
7554
+ }
7555
+ else {
7556
+ showAutocompleteEmptyState();
7557
+ }
7558
+ }
7559
+ });
7560
+ });
7561
+ }
7562
+ /*
7563
+ * Returns the filter in the code written.
7564
+ * For example in the code "controladoria.empresa", "empresa" would be the filter
7565
+ * and in "controladoria", "controladoria" would be the filter.
7566
+ * Allows only alphanumerics, underscore and hashtag on filter's start.
7567
+ * Does not allow spaces
7568
+ */
7569
+ function getFilter(string) {
7570
+ var _a, _b;
7571
+ if (string === undefined || string === null)
7572
+ return "";
7573
+ const filter = (_b = (_a = string.match(/(#|\.|)\w*$/)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : "";
7574
+ return filter.replace(".", "").trim();
7575
+ }
7576
+ /*
7577
+ * Returns the path in the code written based on filter.
7578
+ * For example in the code "controladoria.empresa", "controladoria" would be the path
7579
+ * and in "controladoria", "" would be the path.
7580
+ * Does not allow spaces
7581
+ */
7582
+ function getPath(string, filterLength) {
7583
+ var _a, _b;
7584
+ if (string === undefined || string === null)
7585
+ return "";
7586
+ const stringWithoutPath = string.substring(0, string.length - filterLength);
7587
+ const path = (_b = (_a = stringWithoutPath.match(/(\w*\.)*$/)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : "";
7588
+ return path.replace(/\.$/, "");
7589
+ }
7590
+ function getRequestsBasedOnPath(path, filter, abortSignal) {
7591
+ var _a;
7592
+ const languageConfigs = getLanguageConfigs();
7593
+ const requests = [];
7594
+ if (path === "") {
7595
+ requests.push({
7596
+ requestType: RequestTypes.ListContextMetadataById,
7597
+ request: AutocompleteService.listContextMetadataById({
7598
+ id: languageConfigs.contexts,
7599
+ }, abortSignal)
7600
+ });
7601
+ requests.push({
7602
+ requestType: RequestTypes.ListExpressionMetadata,
7603
+ request: AutocompleteService.listExpressionMetadata({
7604
+ context: languageConfigs.contexts,
7605
+ subcontext: (_a = languageConfigs.subContexts) !== null && _a !== void 0 ? _a : [],
7606
+ name: filter,
7607
+ pageRequest: {
7608
+ offset: 0,
7609
+ size: 20
7610
+ }
7611
+ }, abortSignal)
7612
+ });
7613
+ }
7614
+ else if (path.includes(".")) {
7615
+ const splittedPath = path.split(".");
7616
+ requests.push({
7617
+ requestType: RequestTypes.GetFacadeMetadataByPath,
7618
+ request: AutocompleteService.getFacadeMetadataByPath({
7619
+ context: splittedPath[0],
7620
+ entityName: splittedPath[1],
7621
+ fields: splittedPath[2] === undefined ? undefined : splittedPath.slice(2)
7622
+ }, abortSignal)
7623
+ });
7624
+ }
7625
+ else {
7626
+ requests.push({
7627
+ requestType: RequestTypes.ListFacadeMetadataNames,
7628
+ request: AutocompleteService.listFacadeMetadataNames({
7629
+ context: [path],
7630
+ name: filter,
7631
+ pageRequest: {
7632
+ offset: 0,
7633
+ size: 30
7634
+ }
7635
+ }, abortSignal)
7636
+ });
7637
+ }
7638
+ return requests.map(request => getSafeResponse(request));
7639
+ }
7640
+ function getKeywordsCompletions(path) {
7641
+ if (path !== "")
7642
+ return [];
7643
+ const completions = [
7644
+ {
7645
+ label: Keywords.SE,
7646
+ apply: "SE ()\nENTAO\n\tacao\nFIM_SE",
7647
+ },
7648
+ {
7649
+ label: Keywords.SENAO,
7650
+ apply: "SENAO\n\tacao",
7651
+ },
7652
+ {
7653
+ label: Keywords.CONTENHA,
7654
+ apply: "CONTENHA(condicao)",
7655
+ },
7656
+ {
7657
+ label: Keywords.ENTAO,
7658
+ apply: "ENTAO\n\tacao",
7659
+ },
7660
+ {
7661
+ label: Keywords.FIM_SE,
7662
+ apply: "FIM_SE ",
7663
+ },
7664
+ {
7665
+ label: Keywords.NAO,
7666
+ apply: "NAO ",
7667
+ },
7668
+ {
7669
+ label: Keywords.E,
7670
+ apply: "E ",
7671
+ },
7672
+ {
7673
+ label: Keywords.OU,
7674
+ apply: "OU "
7675
+ },
7676
+ ];
7677
+ return completions.map(completionItem => (Object.assign(Object.assign({}, completionItem), { detail: CustomTranslationsService.translate(`${TRANSLATION_PREFIX}_keyword`), type: CompletionTypes.Keyword })));
7678
+ }
7679
+ function getContextsCompletions(responses) {
7680
+ var _a, _b;
7681
+ const contextsResponse = responses.find(response => (response === null || response === void 0 ? void 0 : response.requestType) === RequestTypes.ListContextMetadataById);
7682
+ if (contextsResponse) {
7683
+ return ((_b = (_a = contextsResponse.response) === null || _a === void 0 ? void 0 : _a.contextMetadata) !== null && _b !== void 0 ? _b : [])
7684
+ .map(contextMetadata => ({
7685
+ label: contextMetadata.name,
7686
+ detail: CustomTranslationsService.translate(`${TRANSLATION_PREFIX}_context`),
7687
+ apply: contextMetadata.name,
7688
+ type: CompletionTypes.Context
7689
+ }));
7690
+ }
7691
+ return [];
7692
+ }
7693
+ function getExpressionsCompletions(responses) {
7694
+ var _a, _b;
7695
+ const expressionsResponse = responses.find(response => (response === null || response === void 0 ? void 0 : response.requestType) === RequestTypes.ListExpressionMetadata);
7696
+ if (expressionsResponse) {
7697
+ return ((_b = (_a = expressionsResponse.response) === null || _a === void 0 ? void 0 : _a.expressionMetadata) !== null && _b !== void 0 ? _b : [])
7698
+ .map(expressionMetadata => ({
7699
+ label: expressionMetadata.name,
7700
+ detail: CustomTranslationsService.translate(`${TRANSLATION_PREFIX}_${expressionMetadata.type === MetaType.PUBLIC_EXPRESSION
7701
+ ? "senior_expression"
7702
+ : "user_expression"}`),
7703
+ apply: expressionMetadata.name,
7704
+ info: expressionMetadata.description,
7705
+ type: expressionMetadata.type === MetaType.PUBLIC_EXPRESSION ? CompletionTypes.Expression : CompletionTypes.UserExpression
7706
+ }));
7707
+ }
7708
+ return [];
7709
+ }
7710
+ function getEntitiesCompletions(responses) {
7711
+ var _a, _b, _c, _d, _e;
7712
+ const facadesResponseFromList = responses.find(response => (response === null || response === void 0 ? void 0 : response.requestType) === RequestTypes.ListFacadeMetadataNames);
7713
+ if (facadesResponseFromList) {
7714
+ return ((_b = (_a = facadesResponseFromList.response) === null || _a === void 0 ? void 0 : _a.facadeMetadataNames) !== null && _b !== void 0 ? _b : [])
7715
+ .map(facade => ({
7716
+ label: facade.name,
7717
+ detail: CustomTranslationsService.translate(`${TRANSLATION_PREFIX}_entity`),
7718
+ apply: facade.name,
7719
+ type: CompletionTypes.Entity
7720
+ }));
7721
+ }
7722
+ const facadesResponseFromGet = responses.find(response => (response === null || response === void 0 ? void 0 : response.requestType) === RequestTypes.GetFacadeMetadataByPath);
7723
+ if (facadesResponseFromGet) {
7724
+ return ((_e = (_d = (_c = facadesResponseFromGet.response) === null || _c === void 0 ? void 0 : _c.facadeMetadata) === null || _d === void 0 ? void 0 : _d.fields) !== null && _e !== void 0 ? _e : [])
7725
+ .map(facade => ({
7726
+ label: facade.name,
7727
+ detail: CustomTranslationsService.translate(`${TRANSLATION_PREFIX}_${facade.type === MetaType.ENTITY
7728
+ ? "entity"
7729
+ : "field"}`),
7730
+ apply: facade.name,
7731
+ type: facade.type === MetaType.ENTITY ? CompletionTypes.Entity : CompletionTypes.FinalValue
7732
+ }));
7733
+ }
7734
+ return [];
7735
+ }
7736
+ /*
7737
+ * Filtering the completions to only deal with the necessary items
7738
+ */
7739
+ function getFilteredCompletions(completions, filter) {
7740
+ return completions
7741
+ .filter(completionItem => completionItem
7742
+ .label
7743
+ .toLowerCase()
7744
+ .startsWith(filter.toLowerCase()));
7745
+ }
7746
+ /*
7747
+ * Overwriting the completions's apply to remove the entire current written value and apply the the entire completion's apply
7748
+ */
7749
+ function getFormattedCompletions(completions, filter) {
7750
+ return completions
7751
+ .map(completionItem => (Object.assign(Object.assign({}, completionItem), { apply: getCompletionApply(filter, `${completionItem.apply}`) })));
7752
+ }
7753
+ function getCompletionApply(filter, oldApplyText) {
7754
+ return (view, completion, from, to) => {
7755
+ const newFrom = from - filter.length;
7756
+ view.dispatch({
7757
+ changes: {
7758
+ from: newFrom,
7759
+ to,
7760
+ insert: oldApplyText
7761
+ },
7762
+ selection: {
7763
+ anchor: newFrom + oldApplyText.length
7764
+ },
7765
+ userEvent: "input.complete",
7766
+ annotations: pickedCompletion.of(completion)
7767
+ });
7768
+ };
7769
+ }
7770
+ const completionsSortOrder = [
7771
+ CompletionTypes.Keyword,
7772
+ CompletionTypes.Context,
7773
+ CompletionTypes.UserExpression,
7774
+ CompletionTypes.Expression,
7775
+ CompletionTypes.Entity,
7776
+ CompletionTypes.FinalValue
7777
+ ];
7778
+ /*
7779
+ * Sorts the completions following the "completionsSortOrder" priority order
7780
+ */
7781
+ function getSortedCompletions(completions) {
7782
+ return completions.sort((x, y) => {
7783
+ const xPriority = completionsSortOrder.indexOf(x.type);
7784
+ const yPriority = completionsSortOrder.indexOf(y.type);
7785
+ return xPriority - yPriority;
7786
+ });
7787
+ }
7788
+
7789
+ /**
7790
+ * Adds an watcher to the paste command that updates the core's completions items
7791
+ * @returns An extension containing everything needed to create the the updater
7792
+ */
7793
+ function onPasteCompletionItemsUpdater() {
7794
+ return [
7795
+ keymap.of([
7796
+ {
7797
+ key: "Ctrl-v",
7798
+ run: searchCompletionResultsCommand,
7799
+ }
7800
+ ])
7801
+ ];
7802
+ }
7803
+ let cancelLastCompletionSearch$1 = () => { };
7804
+ const ɵ0$1 = cancelLastCompletionSearch$1;
7805
+ /*
7806
+ * Must use the setTimeout for we does not have access to the code pasted on the current state, so we need to wait codemirror
7807
+ * remake the state, also it would be way more difficult to work with the clipboard
7808
+ */
7809
+ function searchCompletionResultsCommand(view) {
7810
+ cancelLastCompletionSearch$1();
7811
+ const token = new AbortController();
7812
+ setTimeout(() => {
7813
+ if (!token.signal.aborted) {
7814
+ searchCompletionResults$1(view.state.doc.toString(), token);
7815
+ }
7816
+ }, 200);
7817
+ cancelLastCompletionSearch$1 = () => token.abort();
7818
+ return false;
7819
+ }
7820
+ /*
7821
+ * Requests the necessary items to update the core's completionItems when the user uses the ctrl+v
7822
+ */
7823
+ function searchCompletionResults$1(code, token) {
7824
+ const codeWithoutStrings = getCodeWithoutStringedCode(code);
7825
+ const variablesToVerify = getVariablesToVerify(codeWithoutStrings);
7826
+ const requests = getRequestsBasedOnVariables(variablesToVerify, token.signal);
7827
+ Promise
7828
+ .all(requests)
7829
+ .then(responses => {
7830
+ if (!token.signal.aborted) {
7831
+ const expressionsCompletionItems = getExpressionsCompletionsItems(responses);
7832
+ const entitiesCompletionItems = getEntitiesCompletionsItems(responses);
7833
+ const completionItems = expressionsCompletionItems.concat(entitiesCompletionItems);
7834
+ updateCompletionItems(completionItems);
7835
+ }
7836
+ });
7837
+ }
7838
+ /*
7839
+ * Returns the code itself without its inside double quotes parts, e.g
7840
+ * on string `return this "here not" code`, the return value will be `return this code`;
7841
+ */
7842
+ function getCodeWithoutStringedCode(code) {
7843
+ return (code !== null && code !== void 0 ? code : "").replace(/"([^"])*["]?/g, " ");
7844
+ }
7845
+ /*
7846
+ * Returns the code's parts that need to be verified by requests, excluding the keywords,
7847
+ * special character (except dot/`.` in middle of two regex's \w and at the end and hashtag in sentence's start)
7848
+ * e.g on string `SE (something.another OU expression E something.another.)`, the variables array would be
7849
+ * ["something.another", "expression", "something.another."]
7850
+ */
7851
+ function getVariablesToVerify(code) {
7852
+ var _a;
7853
+ const keywordsRegex = Object
7854
+ .values(Keywords)
7855
+ .map(keyword => `(?!${keyword}\\b)`)
7856
+ .join("");
7857
+ return (_a = (code !== null && code !== void 0 ? code : "").match(new RegExp(`[#]?\\b(${keywordsRegex})(\\w+\\.)*\\w+[\\.]?`, "g"))) !== null && _a !== void 0 ? _a : [];
7858
+ }
7859
+ /*
7860
+ * Only needs to request the expressions and the fields from an entity;
7861
+ * Creates an request to every variable;
7862
+ * Uses the AutocompleteService for the requests needed here are Autocomplete's usage, so we are just
7863
+ * borrowing from it
7864
+ */
7865
+ function getRequestsBasedOnVariables(variables, abortSignal) {
7866
+ var _a;
7867
+ const languageConfigs = getLanguageConfigs();
7868
+ const requests = [];
7869
+ for (const variable of variables) {
7870
+ const splittedVariable = variable.split(".");
7871
+ if (splittedVariable.length === 1) {
7872
+ const extraInfo = {
7873
+ path: "",
7874
+ filter: splittedVariable[0]
7875
+ };
7876
+ requests.push({
7877
+ requestType: RequestTypes.ListExpressionMetadata,
7878
+ request: AutocompleteService.listExpressionMetadata({
7879
+ context: languageConfigs.contexts,
7880
+ subcontext: (_a = languageConfigs.subContexts) !== null && _a !== void 0 ? _a : [],
7881
+ name: splittedVariable[0]
7882
+ }, abortSignal),
7883
+ extraInfo
7884
+ });
7885
+ }
7886
+ else if (splittedVariable.length > 2) {
7887
+ const extraInfo = {
7888
+ path: splittedVariable
7889
+ .slice(0, splittedVariable.length - 1)
7890
+ .join("."),
7891
+ filter: ""
7892
+ };
7893
+ requests.push({
7894
+ requestType: RequestTypes.GetFacadeMetadataByPath,
7895
+ request: AutocompleteService.getFacadeMetadataByPath({
7896
+ context: splittedVariable[0],
7897
+ entityName: splittedVariable[1],
7898
+ fields: splittedVariable.slice(2, splittedVariable.length - 1)
7899
+ }, abortSignal),
7900
+ extraInfo
7901
+ });
7902
+ }
7903
+ }
7904
+ return requests.map(request => getSafeResponse(request));
7905
+ }
7906
+ function getExpressionsCompletionsItems(responses) {
7907
+ const expressionsResponses = responses.filter(response => (response === null || response === void 0 ? void 0 : response.requestType) === RequestTypes.ListExpressionMetadata);
7908
+ return expressionsResponses
7909
+ .map(expressionsResponse => {
7910
+ var _a, _b, _c, _d, _e, _f;
7911
+ return {
7912
+ path: (_b = (_a = expressionsResponse.extraInfo) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : "",
7913
+ filter: (_d = (_c = expressionsResponse.extraInfo) === null || _c === void 0 ? void 0 : _c.filter) !== null && _d !== void 0 ? _d : "",
7914
+ completions: ((_f = (_e = expressionsResponse.response) === null || _e === void 0 ? void 0 : _e.expressionMetadata) !== null && _f !== void 0 ? _f : [])
7915
+ .map(expressionMetadata => ({
7916
+ label: expressionMetadata.name,
7917
+ type: expressionMetadata.type === MetaType.PUBLIC_EXPRESSION
7918
+ ? CompletionTypes.Expression
7919
+ : CompletionTypes.UserExpression
7920
+ }))
7921
+ };
7922
+ })
7923
+ .flat();
7924
+ }
7925
+ function getEntitiesCompletionsItems(responses) {
7926
+ const facadesResponsesFromGet = responses.filter(response => (response === null || response === void 0 ? void 0 : response.requestType) === RequestTypes.GetFacadeMetadataByPath);
7927
+ return facadesResponsesFromGet
7928
+ .map(facadesResponseFromGet => {
7929
+ var _a, _b, _c;
7930
+ return {
7931
+ path: facadesResponseFromGet.extraInfo.path,
7932
+ filter: facadesResponseFromGet.extraInfo.filter,
7933
+ completions: ((_c = (_b = (_a = facadesResponseFromGet.response) === null || _a === void 0 ? void 0 : _a.facadeMetadata) === null || _b === void 0 ? void 0 : _b.fields) !== null && _c !== void 0 ? _c : [])
7934
+ .map(facade => ({
7935
+ label: facade.name,
7936
+ type: facade.type === MetaType.ENTITY ? CompletionTypes.Entity : CompletionTypes.FinalValue
7937
+ }))
6600
7938
  };
7939
+ })
7940
+ .flat();
7941
+ }
7942
+ function updateCompletionItems(completionItems) {
7943
+ for (const completionItem of completionItems) {
7944
+ updateCoreCompletionItems(completionItem);
7945
+ }
7946
+ }
7947
+
7948
+ function TaxCalculation() {
7949
+ return new LanguageSupport(baseConfigs, [
7950
+ autocomplete(),
7951
+ onPasteCompletionItemsUpdater(),
7952
+ ]);
7953
+ }
7954
+
7955
+ class EditorLanguages {
7956
+ static getLanguage(language) {
7957
+ return EditorLanguages._LANGUAGES.get(language) || [];
6601
7958
  }
7959
+ }
7960
+ EditorLanguages._LANGUAGES = new Map([
7961
+ [Languages.TaxCalculation, TaxCalculation()]
7962
+ ]);
7963
+
7964
+ /**
7965
+ * Adds style to the editor in general
7966
+ * @returns An extension containing the style
7967
+ */
7968
+ function style$2() {
7969
+ return EditorView.theme({
7970
+ "&.cm-editor.cm-focused": {
7971
+ outline: "none",
7972
+ },
7973
+ });
7974
+ }
7975
+
7976
+ const SDSLightHighlightStyle = HighlightStyle.define([
7977
+ {
7978
+ tag: tags.keyword,
7979
+ color: "blue",
7980
+ },
7981
+ {
7982
+ tag: tags.string,
7983
+ color: "red",
7984
+ },
7985
+ {
7986
+ tag: tags.number,
7987
+ color: "green",
7988
+ },
7989
+ ]);
7990
+
7991
+ /**
7992
+ * Adds a vertical scrollbar when the editor's height overflows the parent's height
7993
+ * @returns An extension containing everything needed to add the scrollbar
7994
+ */
7995
+ function scrollbars() {
7996
+ return [
7997
+ style$3()
7998
+ ];
7999
+ }
8000
+ function style$3() {
8001
+ return EditorView.baseTheme({
8002
+ "&.cm-editor": {
8003
+ "height": "100%"
8004
+ },
8005
+ });
8006
+ }
8007
+
8008
+ /**
8009
+ * Adds style to editor'font
8010
+ * @returns An extension containing everything needed to add the font style
8011
+ */
8012
+ function fontStyle() {
8013
+ return [style$4()];
8014
+ }
8015
+ const generalFontStyle = {
8016
+ "font-family": "'Noto Sans Mono', 'sans-serif'",
8017
+ "font-style": "normal",
8018
+ "font-size": "1rem",
6602
8019
  };
6603
- AngularComponentsModule = AngularComponentsModule_1 = __decorate([
6604
- NgModule({})
6605
- ], AngularComponentsModule);
8020
+ function style$4() {
8021
+ return EditorView.theme({
8022
+ ".cm-scroller": Object.assign(Object.assign({}, generalFontStyle), { "letter-spacing": "0", "line-height": "1.5em", "font-variation-settings": "'wght' 400", "color": "#333333" }),
8023
+ ".cm-tooltip.cm-tooltip-autocomplete > ul": Object.assign(Object.assign({}, generalFontStyle), { "font-variation-settings": "'wght' 300", "color": "#697882" }),
8024
+ ".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionLabel": {
8025
+ "line-height": "1.5em",
8026
+ "font-variation-settings": "'wght' 500",
8027
+ },
8028
+ ".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail": {
8029
+ "font-size": "0.875em",
8030
+ "font-style": "normal",
8031
+ "margin-left": "0.75rem",
8032
+ },
8033
+ });
8034
+ }
8035
+
8036
+ /**
8037
+ * Adds a line counter
8038
+ * @returns An extension containing everything needed to add the line counter
8039
+ */
8040
+ function lineCounter() {
8041
+ return [
8042
+ lineNumbers(),
8043
+ style$5()
8044
+ ];
8045
+ }
8046
+ function style$5() {
8047
+ return EditorView.theme({
8048
+ ".cm-gutters": {
8049
+ "background-color": "#fff",
8050
+ "color": "#428BCA",
8051
+ "border-right": "none"
8052
+ },
8053
+ ".cm-gutter": {
8054
+ "padding": "0 2rem 0 2rem"
8055
+ }
8056
+ });
8057
+ }
8058
+
8059
+ /**
8060
+ * Adds styles to the autocomplete's tooltip
8061
+ * @returns An extension containing everything needed to add the style
8062
+ */
8063
+ function autocompleteTooltip() {
8064
+ return [style$6()];
8065
+ }
8066
+ function style$6() {
8067
+ return EditorView.baseTheme({
8068
+ ".cm-tooltip": {
8069
+ "border": "none !important",
8070
+ "border-radius": "4px",
8071
+ "background-color": "#E5EAEA !important",
8072
+ },
8073
+ ".cm-tooltip.cm-tooltip-autocomplete > ul[role='listbox']": {
8074
+ "padding": "1rem",
8075
+ },
8076
+ ".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail": {
8077
+ "margin-left": ".75rem",
8078
+ },
8079
+ ".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail::before": {
8080
+ "content": "'[ '",
8081
+ },
8082
+ ".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail::after": {
8083
+ "content": "' ]'",
8084
+ },
8085
+ ".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionIcon": {
8086
+ "padding-right": 0,
8087
+ "margin-right": ".475rem",
8088
+ "width": "1rem",
8089
+ },
8090
+ ".cm-tooltip-autocomplete ul li[aria-selected]": {
8091
+ "border-radius": "4px",
8092
+ "background-color": "#5D96A2 !important",
8093
+ "color": "#fff !important",
8094
+ },
8095
+ ".cm-tooltip.cm-completionInfo.cm-completionInfo-right": {
8096
+ "border-radius": "3px",
8097
+ "box-shadow": "0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%)",
8098
+ "background": "#495057 !important",
8099
+ "color": "#fff",
8100
+ "padding": ".5rem",
8101
+ "left": "101.6%",
8102
+ },
8103
+ ".cm-tooltip.cm-completionInfo.cm-completionInfo-right::before": {
8104
+ "content": "''",
8105
+ "position": "absolute",
8106
+ "width": 0,
8107
+ "height": 0,
8108
+ "top": ".8125rem",
8109
+ "left": "-.25rem",
8110
+ "margin-top": "-.25rem",
8111
+ "border-color": "transparent",
8112
+ "border-style": "solid",
8113
+ "border-right-color": "#495057",
8114
+ "border-width": ".25rem .25rem .25rem 0",
8115
+ },
8116
+ });
8117
+ }
8118
+
8119
+ /* General Style */
8120
+ function SDSLight() {
8121
+ return [
8122
+ [
8123
+ style$2(),
8124
+ scrollbars(),
8125
+ fontStyle(),
8126
+ lineCounter(),
8127
+ autocompleteTooltip()
8128
+ ],
8129
+ SDSLightHighlightStyle
8130
+ ];
8131
+ }
8132
+
8133
+ class EditorThemes {
8134
+ static getTheme(theme) {
8135
+ return EditorThemes._THEMES.get(theme) || [];
8136
+ }
8137
+ }
8138
+ EditorThemes._THEMES = new Map([
8139
+ [Themes.SDSLight, SDSLight()]
8140
+ ]);
8141
+
8142
+ class CodeMirror6Core extends CoreFacade {
8143
+ constructor() {
8144
+ super();
8145
+ /* These are necessary for the setCode and setEditorOptions can be called before view has been created */
8146
+ this._codeReceivedBeforeViewCreation = "";
8147
+ this._editorOptionsReceivedBeforeViewCreation = [];
8148
+ this.setObservablesListeners();
8149
+ }
8150
+ static getEditorView() {
8151
+ return CodeMirror6Core._editorView;
8152
+ }
8153
+ static updateEditorView(...transactionSpecs) {
8154
+ CodeMirror6Core._editorView.dispatch(...transactionSpecs);
8155
+ }
8156
+ setCoreWrapperElement(element) {
8157
+ this.createEditorView(element);
8158
+ }
8159
+ setCode(code) {
8160
+ this.changeEditorContent(code);
8161
+ }
8162
+ // @Override
8163
+ destroyObservables() {
8164
+ CodeMirror6Core._ngUnsubscribe.next();
8165
+ CodeMirror6Core._ngUnsubscribe.complete();
8166
+ }
8167
+ setCoreEditorOptions(options) {
8168
+ const language = EditorLanguages.getLanguage(options.language);
8169
+ const theme = EditorThemes.getTheme(options.theme);
8170
+ if (CodeMirror6Core._editorView) {
8171
+ CodeMirror6Core.updateEditorView({
8172
+ effects: StateEffect.reconfigure.of([
8173
+ language,
8174
+ theme,
8175
+ this.getCodeChangeListenerExtension()
8176
+ ])
8177
+ });
8178
+ }
8179
+ else {
8180
+ this._editorOptionsReceivedBeforeViewCreation = [language, theme];
8181
+ }
8182
+ }
8183
+ highlightCode(markers) {
8184
+ const diagnostics = convertMarkersToDiagnostics(markers, CodeMirror6Core._editorView.state.doc.length);
8185
+ CodeMirror6Core.updateEditorView(setDiagnostics(CodeMirror6Core._editorView.state, diagnostics));
8186
+ }
8187
+ setObservablesListeners() {
8188
+ CodeMirror6Core.$onCompletionItemsUpdate
8189
+ .pipe(takeUntil(CodeMirror6Core._ngUnsubscribe))
8190
+ .subscribe(items => this.updateCompletionItems(items));
8191
+ }
8192
+ createEditorView(parentElement) {
8193
+ CodeMirror6Core._editorView = new EditorView({
8194
+ parent: parentElement,
8195
+ state: EditorState.create({
8196
+ doc: this._codeReceivedBeforeViewCreation,
8197
+ extensions: [
8198
+ this._editorOptionsReceivedBeforeViewCreation,
8199
+ this.getCodeChangeListenerExtension()
8200
+ ]
8201
+ })
8202
+ });
8203
+ this.notifyCoreFinishLoad();
8204
+ }
8205
+ getCodeChangeListenerExtension() {
8206
+ return EditorView.updateListener.of(update => update.docChanged && this.notifyCodeChange(update.state.doc.toString()));
8207
+ }
8208
+ changeEditorContent(code) {
8209
+ if (CodeMirror6Core._editorView) {
8210
+ CodeMirror6Core.updateEditorView({
8211
+ changes: {
8212
+ from: 0,
8213
+ to: CodeMirror6Core._editorView.state.doc.length,
8214
+ insert: code
8215
+ }
8216
+ });
8217
+ }
8218
+ else {
8219
+ this._codeReceivedBeforeViewCreation = code;
8220
+ }
8221
+ }
8222
+ }
8223
+ CodeMirror6Core.$onCompletionItemsUpdate = new Subject();
8224
+ CodeMirror6Core._ngUnsubscribe = new Subject();
8225
+ CodeMirror6Core._editorView = null;
8226
+
8227
+ let CodeEditorModule = class CodeEditorModule {
8228
+ };
8229
+ CodeEditorModule = __decorate([
8230
+ NgModule({
8231
+ imports: [
8232
+ CommonModule,
8233
+ CustomTranslationsModule,
8234
+ ],
8235
+ declarations: [CodeEditorComponent],
8236
+ exports: [CodeEditorComponent],
8237
+ providers: [
8238
+ {
8239
+ provide: CoreFacade,
8240
+ useClass: CodeMirror6Core
8241
+ }
8242
+ ]
8243
+ })
8244
+ ], CodeEditorModule);
6606
8245
 
6607
8246
  /**
6608
8247
  * Generated bundle index. Do not edit.
6609
8248
  */
6610
8249
 
6611
- export { AngularComponentsModule, AutocompleteField, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TextAreaField, TextField, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, LocalizedBignumberPipe as ɵb, DecimalField as ɵba, StructureModule as ɵbb, HeaderComponent as ɵbc, FooterComponent as ɵbd, InfoSignComponent as ɵbe, NumberLocaleOptions as ɵbf, ThumbnailService as ɵbg, InfiniteScrollModule as ɵbh, InfiniteScrollDirective as ɵbi, LocalizedBignumberImpurePipe as ɵc, TokenListModule as ɵd, TableColumnsComponent as ɵe, InfoSignModule as ɵf, AutocompleteFieldComponent as ɵg, BooleanFieldComponent as ɵh, CalendarFieldComponent as ɵi, ChipsFieldComponent as ɵj, CurrencyFieldComponent as ɵk, BaseFieldComponent as ɵl, DynamicFieldComponent as ɵm, DynamicFormDirective as ɵn, FieldsetComponent as ɵo, FileUploadComponent$1 as ɵp, LookupFieldComponent as ɵq, NumberFieldComponent as ɵr, BignumberFieldComponent as ɵs, RadioButtonComponent as ɵt, RowComponent as ɵu, SectionComponent as ɵv, SelectFieldComponent as ɵw, TextAreaFieldComponent as ɵx, TextFieldComponent as ɵy };
8250
+ export { AngularComponentsModule, AutocompleteField, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, LocalizedBignumberPipe as ɵb, DecimalField as ɵba, StructureModule as ɵbb, HeaderComponent as ɵbc, FooterComponent as ɵbd, InfoSignComponent as ɵbe, NumberLocaleOptions as ɵbf, ThumbnailService as ɵbg, InfiniteScrollModule as ɵbh, InfiniteScrollDirective as ɵbi, CustomTranslationsModule as ɵbj, CodeEditorComponent as ɵbk, CoreFacade as ɵbl, CodeMirror6Core as ɵbm, LocalizedBignumberImpurePipe as ɵc, TokenListModule as ɵd, TableColumnsComponent as ɵe, InfoSignModule as ɵf, AutocompleteFieldComponent as ɵg, BooleanFieldComponent as ɵh, CalendarFieldComponent as ɵi, ChipsFieldComponent as ɵj, CurrencyFieldComponent as ɵk, BaseFieldComponent as ɵl, DynamicFieldComponent as ɵm, DynamicFormDirective as ɵn, FieldsetComponent as ɵo, FileUploadComponent$1 as ɵp, LookupFieldComponent as ɵq, NumberFieldComponent as ɵr, BignumberFieldComponent as ɵs, RadioButtonComponent as ɵt, RowComponent as ɵu, SectionComponent as ɵv, SelectFieldComponent as ɵw, TextAreaFieldComponent as ɵx, TextFieldComponent as ɵy };
6612
8251
  //# sourceMappingURL=seniorsistemas-angular-components.js.map