@globalpayments/vega 2.68.1 → 2.69.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/dist/cjs/{app-globals-f7106a22.js → app-globals-837be7a6.js} +7 -7
  2. package/dist/cjs/{code-block-39074880.js → code-block-bb4cbafa.js} +1 -1
  3. package/dist/cjs/{component-global-style-slimmer-d5216fa7.js → component-global-style-slimmer-adfa2e59.js} +1 -1
  4. package/dist/cjs/{component-value-history-controller-slimmer.abstract-ddedf543.js → component-value-history-controller-slimmer.abstract-cf7b4bda.js} +2 -2
  5. package/dist/cjs/{dark-mode-style-controller-27809ff8.js → dark-mode-style-controller-c21172aa.js} +1 -1
  6. package/dist/cjs/{design-token-e14a4e66.js → design-token-00fe8d2f.js} +1 -1
  7. package/dist/cjs/{dto-renderer-manager-b7969d6c.js → dto-renderer-manager-c917dade.js} +1 -1
  8. package/dist/cjs/{element-appender-slimmer-7ee27ab3.js → element-appender-slimmer-f8e89f37.js} +2 -2
  9. package/dist/cjs/{form-field-controller-slimmer-2a091912.js → form-field-controller-slimmer-f865d397.js} +1 -1
  10. package/dist/cjs/{function-extension-f0e845f2.js → function-extension-28a4d781.js} +15 -10
  11. package/dist/cjs/{image-annotation-action-7f0626c8.js → image-annotation-action-8843adbf.js} +3 -3
  12. package/dist/cjs/index.cjs.js +11 -11
  13. package/dist/cjs/{language-extension-d0103d1a.js → language-extension-99c6fb40.js} +2 -2
  14. package/dist/cjs/loader.cjs.js +9 -9
  15. package/dist/cjs/{public-rules-8b67eaba.js → public-rules-759c745b.js} +5 -5
  16. package/dist/cjs/{range-002671b6.js → range-0b597850.js} +1 -1
  17. package/dist/cjs/{responsive-format-facade-347db035.js → responsive-format-facade-1d9c13a9.js} +5 -5
  18. package/dist/cjs/{rich-text-editor-required-rule-5392bd8a.js → rich-text-editor-required-rule-92d0640e.js} +1 -1
  19. package/dist/cjs/{style-formatter-0a09f0dd.js → style-formatter-1daa8371.js} +1 -1
  20. package/dist/cjs/{translation-f5adcb9f.js → translation-5f9f9c0c.js} +2 -0
  21. package/dist/cjs/{translation-slimmer-4b6239d1.js → translation-slimmer-f0ebe710.js} +1 -1
  22. package/dist/cjs/vega-accordion.cjs.entry.js +8 -8
  23. package/dist/cjs/vega-app-footer.cjs.entry.js +2 -2
  24. package/dist/cjs/vega-app-header-button.cjs.entry.js +8 -8
  25. package/dist/cjs/vega-box.cjs.entry.js +9 -9
  26. package/dist/cjs/vega-brand-logo.cjs.entry.js +2 -2
  27. package/dist/cjs/vega-breadcrumb.cjs.entry.js +2 -2
  28. package/dist/cjs/vega-button-circle.cjs.entry.js +8 -8
  29. package/dist/cjs/vega-button.cjs.entry.js +8 -8
  30. package/dist/cjs/vega-calendar_4.cjs.entry.js +3 -3
  31. package/dist/cjs/vega-card.cjs.entry.js +8 -8
  32. package/dist/cjs/vega-carousel.cjs.entry.js +7 -7
  33. package/dist/cjs/vega-checkbox_2.cjs.entry.js +2 -2
  34. package/dist/cjs/vega-chip.cjs.entry.js +8 -8
  35. package/dist/cjs/vega-code-block.cjs.entry.js +8 -8
  36. package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
  37. package/dist/cjs/vega-combo-box.cjs.entry.js +2 -2
  38. package/dist/cjs/vega-date-picker_2.cjs.entry.js +10 -10
  39. package/dist/cjs/vega-dialog_2.cjs.entry.js +9 -9
  40. package/dist/cjs/vega-divider.cjs.entry.js +8 -8
  41. package/dist/cjs/vega-dropdown_5.cjs.entry.js +20 -11
  42. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  43. package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
  44. package/dist/cjs/vega-flag-icon.cjs.entry.js +8 -8
  45. package/dist/cjs/vega-flex.cjs.entry.js +9 -9
  46. package/dist/cjs/vega-font.cjs.entry.js +8 -8
  47. package/dist/cjs/vega-form.cjs.entry.js +2 -2
  48. package/dist/cjs/vega-grid.cjs.entry.js +8 -8
  49. package/dist/cjs/vega-icon.cjs.entry.js +8 -8
  50. package/dist/cjs/vega-image-uploader.cjs.entry.js +9 -9
  51. package/dist/cjs/vega-input-credit-card.cjs.entry.js +2 -2
  52. package/dist/cjs/vega-input-numeric.cjs.entry.js +2 -2
  53. package/dist/cjs/vega-input-passcode.cjs.entry.js +2 -2
  54. package/dist/cjs/vega-input-phone-number.cjs.entry.js +7 -7
  55. package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
  56. package/dist/cjs/vega-input-select.cjs.entry.js +143 -17
  57. package/dist/cjs/vega-input.cjs.entry.js +89 -29
  58. package/dist/cjs/vega-left-nav_5.cjs.entry.js +9 -9
  59. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -7
  60. package/dist/cjs/{vega-nonce-manager-f927497f.js → vega-nonce-manager-df69d3ed.js} +2 -2
  61. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
  62. package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
  63. package/dist/cjs/vega-popover_2.cjs.entry.js +9 -9
  64. package/dist/cjs/vega-radio_2.cjs.entry.js +2 -2
  65. package/dist/cjs/vega-rich-text-content.cjs.entry.js +5 -5
  66. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +11 -11
  67. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
  68. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +2 -2
  69. package/dist/cjs/vega-sidenav_3.cjs.entry.js +7 -7
  70. package/dist/cjs/vega-signature-capture.cjs.entry.js +12 -10
  71. package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
  72. package/dist/cjs/vega-tab-group_2.cjs.entry.js +1 -1
  73. package/dist/cjs/vega-table_11.cjs.entry.js +8 -8
  74. package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
  75. package/dist/cjs/vega-time-picker_2.cjs.entry.js +10 -10
  76. package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
  77. package/dist/cjs/vega-tooltip_2.cjs.entry.js +8 -8
  78. package/dist/cjs/vega.cjs.js +9 -9
  79. package/dist/collection/components/vega-button/vega-button.css +20 -12
  80. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.js +4 -1
  81. package/dist/collection/components/vega-dropdown/vega-dropdown.js +27 -0
  82. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-password-eye-renderer.js +41 -0
  83. package/dist/collection/components/vega-input/vega-input.css +13 -0
  84. package/dist/collection/components/vega-input/vega-input.js +21 -3
  85. package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.js +4 -0
  86. package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.js +18 -4
  87. package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +17 -3
  88. package/dist/collection/components/vega-input-select/vega-input-select.js +14 -1
  89. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +3 -1
  90. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.js +9 -6
  91. package/dist/collection/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.js +1 -0
  92. package/dist/collection/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.js +1 -0
  93. package/dist/collection/components/vega-tab-group/vega-tab-group.js +2 -2
  94. package/dist/collection/components/vega-textarea/vega-textarea.js +2 -2
  95. package/dist/collection/global/icons/eye-slash.js +3 -0
  96. package/dist/collection/global/icons/eye.js +3 -0
  97. package/dist/collection/helpers/csp/test/vega-nonce-manager.test.js +11 -0
  98. package/dist/collection/helpers/csp/vega-nonce-manager.js +2 -2
  99. package/dist/collection/helpers/translation/locales/en.js +2 -0
  100. package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +2 -0
  101. package/dist/collection/helpers/validator/rules/input-select-value-in-source-rule.js +85 -0
  102. package/dist/collection/helpers/validator/test/rules/input-select-value-in-source-rule.test.js +99 -0
  103. package/dist/esm/{app-globals-2f689986.js → app-globals-fd4b7d97.js} +7 -7
  104. package/dist/esm/{code-block-e8839202.js → code-block-ecb4491b.js} +1 -1
  105. package/dist/esm/{component-global-style-slimmer-5d437fdf.js → component-global-style-slimmer-08046b38.js} +1 -1
  106. package/dist/esm/{component-value-history-controller-slimmer.abstract-c6f94113.js → component-value-history-controller-slimmer.abstract-5d618b88.js} +2 -2
  107. package/dist/esm/{dark-mode-style-controller-b7e85b6a.js → dark-mode-style-controller-de88a117.js} +1 -1
  108. package/dist/esm/{design-token-e9e6b011.js → design-token-2d77e8f5.js} +1 -1
  109. package/dist/esm/{dto-renderer-manager-7abc53bf.js → dto-renderer-manager-d862ae78.js} +1 -1
  110. package/dist/esm/{element-appender-slimmer-8dbc8387.js → element-appender-slimmer-6791c332.js} +2 -2
  111. package/dist/esm/{form-field-controller-slimmer-b23d9ff3.js → form-field-controller-slimmer-bf071b75.js} +1 -1
  112. package/dist/esm/{function-extension-eb1d062f.js → function-extension-8d39db56.js} +15 -10
  113. package/dist/esm/{image-annotation-action-7957653a.js → image-annotation-action-d0af138c.js} +3 -3
  114. package/dist/esm/index.js +11 -11
  115. package/dist/esm/{language-extension-3331131f.js → language-extension-8f51f5ff.js} +2 -2
  116. package/dist/esm/loader.js +9 -9
  117. package/dist/esm/{public-rules-e613dead.js → public-rules-d10e76f4.js} +5 -5
  118. package/dist/esm/{range-adf206fd.js → range-f7b9e2fb.js} +1 -1
  119. package/dist/esm/{responsive-format-facade-b0712993.js → responsive-format-facade-267935ae.js} +5 -5
  120. package/dist/esm/{rich-text-editor-required-rule-43857573.js → rich-text-editor-required-rule-774b822b.js} +1 -1
  121. package/dist/esm/{style-formatter-a20a1ef4.js → style-formatter-3f88c491.js} +1 -1
  122. package/dist/esm/{translation-f10b1e19.js → translation-96e5debd.js} +2 -0
  123. package/dist/esm/{translation-slimmer-984c9ce6.js → translation-slimmer-c936cb1b.js} +1 -1
  124. package/dist/esm/vega-accordion.entry.js +8 -8
  125. package/dist/esm/vega-app-footer.entry.js +2 -2
  126. package/dist/esm/vega-app-header-button.entry.js +8 -8
  127. package/dist/esm/vega-box.entry.js +9 -9
  128. package/dist/esm/vega-brand-logo.entry.js +2 -2
  129. package/dist/esm/vega-breadcrumb.entry.js +2 -2
  130. package/dist/esm/vega-button-circle.entry.js +8 -8
  131. package/dist/esm/vega-button.entry.js +8 -8
  132. package/dist/esm/vega-calendar_4.entry.js +3 -3
  133. package/dist/esm/vega-card.entry.js +8 -8
  134. package/dist/esm/vega-carousel.entry.js +7 -7
  135. package/dist/esm/vega-checkbox_2.entry.js +2 -2
  136. package/dist/esm/vega-chip.entry.js +8 -8
  137. package/dist/esm/vega-code-block.entry.js +8 -8
  138. package/dist/esm/vega-color-picker.entry.js +2 -2
  139. package/dist/esm/vega-combo-box.entry.js +2 -2
  140. package/dist/esm/vega-date-picker_2.entry.js +10 -10
  141. package/dist/esm/vega-dialog_2.entry.js +9 -9
  142. package/dist/esm/vega-divider.entry.js +8 -8
  143. package/dist/esm/vega-dropdown_5.entry.js +20 -11
  144. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  145. package/dist/esm/vega-file-uploader.entry.js +3 -3
  146. package/dist/esm/vega-flag-icon.entry.js +8 -8
  147. package/dist/esm/vega-flex.entry.js +9 -9
  148. package/dist/esm/vega-font.entry.js +8 -8
  149. package/dist/esm/vega-form.entry.js +2 -2
  150. package/dist/esm/vega-grid.entry.js +8 -8
  151. package/dist/esm/vega-icon.entry.js +8 -8
  152. package/dist/esm/vega-image-uploader.entry.js +9 -9
  153. package/dist/esm/vega-input-credit-card.entry.js +2 -2
  154. package/dist/esm/vega-input-numeric.entry.js +2 -2
  155. package/dist/esm/vega-input-passcode.entry.js +2 -2
  156. package/dist/esm/vega-input-phone-number.entry.js +7 -7
  157. package/dist/esm/vega-input-range.entry.js +3 -3
  158. package/dist/esm/vega-input-select.entry.js +143 -17
  159. package/dist/esm/vega-input.entry.js +90 -30
  160. package/dist/esm/vega-left-nav_5.entry.js +9 -9
  161. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -7
  162. package/dist/esm/{vega-nonce-manager-87615d3c.js → vega-nonce-manager-497e5eb5.js} +2 -2
  163. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
  164. package/dist/esm/vega-pagination.entry.js +8 -8
  165. package/dist/esm/vega-popover_2.entry.js +9 -9
  166. package/dist/esm/vega-radio_2.entry.js +2 -2
  167. package/dist/esm/vega-rich-text-content.entry.js +5 -5
  168. package/dist/esm/vega-rich-text-editor_4.entry.js +11 -11
  169. package/dist/esm/vega-selection-chip_2.entry.js +8 -8
  170. package/dist/esm/vega-selection-tile_2.entry.js +2 -2
  171. package/dist/esm/vega-sidenav_3.entry.js +7 -7
  172. package/dist/esm/vega-signature-capture.entry.js +12 -10
  173. package/dist/esm/vega-stepper.entry.js +2 -2
  174. package/dist/esm/vega-tab-group_2.entry.js +1 -1
  175. package/dist/esm/vega-table_11.entry.js +8 -8
  176. package/dist/esm/vega-textarea.entry.js +3 -3
  177. package/dist/esm/vega-time-picker_2.entry.js +10 -10
  178. package/dist/esm/vega-toggle-switch.entry.js +2 -2
  179. package/dist/esm/vega-tooltip_2.entry.js +8 -8
  180. package/dist/esm/vega.js +9 -9
  181. package/dist/sri/vega-sri-manifest.json +258 -258
  182. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.d.ts +1 -0
  183. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +6 -0
  184. package/dist/types/components/vega-input/slimmers/renderers/vega-input-password-eye-renderer.d.ts +9 -0
  185. package/dist/types/components/vega-input/vega-input.d.ts +4 -0
  186. package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.d.ts +1 -0
  187. package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.d.ts +1 -0
  188. package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +1 -0
  189. package/dist/types/components/vega-input-select/types.d.ts +1 -0
  190. package/dist/types/components/vega-input-select/vega-input-select.d.ts +1 -0
  191. package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +1 -1
  192. package/dist/types/components/vega-textarea/vega-textarea.d.ts +1 -1
  193. package/dist/types/components.d.ts +14 -4
  194. package/dist/types/global/icons/eye-slash.d.ts +3 -0
  195. package/dist/types/global/icons/eye.d.ts +3 -0
  196. package/dist/types/helpers/translation/interface.d.ts +2 -0
  197. package/dist/types/helpers/validator/rules/input-select-value-in-source-rule.d.ts +60 -0
  198. package/dist/types/helpers/validator/test/rules/input-select-value-in-source-rule.test.d.ts +1 -0
  199. package/dist/vega/index.esm.js +1 -1
  200. package/dist/vega/{p-8506e8c3.js → p-0cdb38d3.js} +1 -1
  201. package/dist/vega/{p-22fe8c61.entry.js → p-0e5297b9.entry.js} +1 -1
  202. package/dist/vega/{p-c54148fb.entry.js → p-0feceaac.entry.js} +1 -1
  203. package/dist/vega/{p-7747c163.js → p-1372b984.js} +1 -1
  204. package/dist/vega/{p-00376f71.entry.js → p-1739a877.entry.js} +1 -1
  205. package/dist/vega/{p-1dd7f8b2.entry.js → p-1a59703b.entry.js} +1 -1
  206. package/dist/vega/{p-85407fb9.js → p-1bb0c934.js} +1 -1
  207. package/dist/vega/{p-7dde3be9.entry.js → p-1e92737c.entry.js} +1 -1
  208. package/dist/vega/{p-9fb6fbcc.js → p-1f26de89.js} +1 -1
  209. package/dist/vega/{p-76b1dae4.entry.js → p-235bf01b.entry.js} +1 -1
  210. package/dist/vega/{p-99bf5993.entry.js → p-257ff60b.entry.js} +1 -1
  211. package/dist/vega/{p-3ad87199.entry.js → p-25a3fad7.entry.js} +1 -1
  212. package/dist/vega/{p-a6fb5a40.entry.js → p-2622f0a8.entry.js} +1 -1
  213. package/dist/vega/{p-24419ebe.entry.js → p-26c4f07c.entry.js} +1 -1
  214. package/dist/vega/{p-e0979451.entry.js → p-2e6ce1e9.entry.js} +1 -1
  215. package/dist/vega/{p-de8c5fae.entry.js → p-2ec7e020.entry.js} +1 -1
  216. package/dist/vega/{p-0849f85e.js → p-2f09c6aa.js} +1 -1
  217. package/dist/vega/p-330c224f.entry.js +1 -0
  218. package/dist/vega/{p-369810ae.js → p-33f3f306.js} +1 -1
  219. package/dist/vega/{p-2f04d2ac.js → p-35252108.js} +1 -1
  220. package/dist/vega/p-35cd469a.entry.js +1 -0
  221. package/dist/vega/p-366825fa.entry.js +1 -0
  222. package/dist/vega/{p-83a50ac2.entry.js → p-37020002.entry.js} +1 -1
  223. package/dist/vega/{p-69d27eaf.entry.js → p-379f1b40.entry.js} +1 -1
  224. package/dist/vega/{p-2478f65e.js → p-38cb2b40.js} +1 -1
  225. package/dist/vega/{p-19256107.entry.js → p-3c865f86.entry.js} +1 -1
  226. package/dist/vega/{p-56636a58.entry.js → p-3e040167.entry.js} +1 -1
  227. package/dist/vega/{p-54ae02db.js → p-4866e390.js} +1 -1
  228. package/dist/vega/{p-79e6e12c.js → p-4a467973.js} +1 -1
  229. package/dist/vega/{p-d4893487.js → p-4e13a26f.js} +1 -1
  230. package/dist/vega/{p-238afe1b.entry.js → p-52efaadb.entry.js} +1 -1
  231. package/dist/vega/{p-b78670c9.entry.js → p-54e56f0d.entry.js} +1 -1
  232. package/dist/vega/{p-48bc03fa.entry.js → p-58769a72.entry.js} +1 -1
  233. package/dist/vega/{p-de02f404.entry.js → p-5972c101.entry.js} +1 -1
  234. package/dist/vega/{p-16d68187.js → p-5d827fe5.js} +1 -1
  235. package/dist/vega/p-5e708ad5.entry.js +1 -0
  236. package/dist/vega/p-5f377954.js +1 -1
  237. package/dist/vega/{p-6609d87e.entry.js → p-652626b6.entry.js} +1 -1
  238. package/dist/vega/{p-0a55f984.entry.js → p-65a9af84.entry.js} +1 -1
  239. package/dist/vega/{p-f3399ef1.entry.js → p-67eb405d.entry.js} +1 -1
  240. package/dist/vega/{p-a2506cb5.entry.js → p-69aec6af.entry.js} +1 -1
  241. package/dist/vega/{p-b5060e84.entry.js → p-71ddccf2.entry.js} +1 -1
  242. package/dist/vega/{p-d5ff8b7f.js → p-75f981ce.js} +1 -1
  243. package/dist/vega/{p-2c945862.entry.js → p-785d9ac3.entry.js} +1 -1
  244. package/dist/vega/{p-c26332ae.entry.js → p-796d840c.entry.js} +1 -1
  245. package/dist/vega/{p-8dba59a6.entry.js → p-7a590741.entry.js} +1 -1
  246. package/dist/vega/{p-ad5393f0.entry.js → p-7b42da4f.entry.js} +1 -1
  247. package/dist/vega/{p-5a555092.entry.js → p-8ac2f43f.entry.js} +1 -1
  248. package/dist/vega/{p-1dcb1fcd.entry.js → p-8c6b6ad7.entry.js} +1 -1
  249. package/dist/vega/{p-d3905af1.entry.js → p-8ff96b8c.entry.js} +2 -2
  250. package/dist/vega/{p-56f77466.entry.js → p-91d71ae9.entry.js} +1 -1
  251. package/dist/vega/{p-94e167b8.entry.js → p-9794fd88.entry.js} +1 -1
  252. package/dist/vega/{p-1922303e.entry.js → p-9e59345f.entry.js} +1 -1
  253. package/dist/vega/{p-6ce1e9d4.entry.js → p-9fd503e9.entry.js} +1 -1
  254. package/dist/vega/{p-626246b4.entry.js → p-a630ce73.entry.js} +1 -1
  255. package/dist/vega/{p-787caad3.entry.js → p-b27fcac4.entry.js} +1 -1
  256. package/dist/vega/{p-a211ae63.js → p-b5ba0c11.js} +1 -1
  257. package/dist/vega/{p-018d70a5.js → p-b8b9ed2c.js} +1 -1
  258. package/dist/vega/{p-bb37a401.js → p-b9798158.js} +1 -1
  259. package/dist/vega/{p-2e32fbe6.entry.js → p-bcc396c2.entry.js} +1 -1
  260. package/dist/vega/{p-b8558278.entry.js → p-bfb86c3e.entry.js} +1 -1
  261. package/dist/vega/p-c224b44c.js +1 -0
  262. package/dist/vega/{p-54ddd06f.entry.js → p-c2f21426.entry.js} +1 -1
  263. package/dist/vega/{p-117be41b.js → p-c616c592.js} +1 -1
  264. package/dist/vega/p-c6ae78f2.entry.js +1 -0
  265. package/dist/vega/{p-f0fb3fdd.entry.js → p-cbabb07a.entry.js} +1 -1
  266. package/dist/vega/{p-bd0e55a2.entry.js → p-dde03224.entry.js} +1 -1
  267. package/dist/vega/{p-719354e7.entry.js → p-ea04a387.entry.js} +1 -1
  268. package/dist/vega/{p-d67200e8.entry.js → p-ea96635b.entry.js} +1 -1
  269. package/dist/vega/{p-4c192985.js → p-ef9cbad1.js} +1 -1
  270. package/dist/vega/{p-30a8d9d6.entry.js → p-f21b893b.entry.js} +1 -1
  271. package/dist/vega/p-f69f84a7.js +1 -0
  272. package/dist/vega/{p-3b800f1b.entry.js → p-fb320b50.entry.js} +1 -1
  273. package/dist/vega/{p-82ef2de0.entry.js → p-ff470366.entry.js} +1 -1
  274. package/dist/vega/vega.esm.js +1 -1
  275. package/package.json +2 -1
  276. package/dist/vega/p-113d305b.entry.js +0 -1
  277. package/dist/vega/p-16358fec.entry.js +0 -1
  278. package/dist/vega/p-240d9d35.entry.js +0 -1
  279. package/dist/vega/p-39482a1a.js +0 -1
  280. package/dist/vega/p-437f865f.js +0 -1
  281. package/dist/vega/p-705dad87.entry.js +0 -1
  282. package/dist/vega/p-bb0f2b5f.entry.js +0 -1
@@ -25,6 +25,7 @@ import { VegaInputSelectSourceController } from './slimmers/controllers/vega-inp
25
25
  import { VegaInputSelectItemsSlotController } from './slimmers/controllers/vega-input-select-items-slot-controler';
26
26
  import { TranslationSlimmer } from '../../helpers/slimmers/translation';
27
27
  import { VegaInputSelectPrefixIconRenderer } from './slimmers/renderers/vega-input-select-prefix-icon-renderer';
28
+ import { InputSelectValueInSourceRule } from '../../helpers/validator/rules/input-select-value-in-source-rule';
28
29
  /**
29
30
  * @vegaVersion 1.0.7
30
31
  */
@@ -45,6 +46,12 @@ export class VegaInputSelect {
45
46
  propertyName: 'required',
46
47
  ruleFactory: (isRequired) => (isRequired ? new RequiredFieldRule() : null),
47
48
  },
49
+ {
50
+ propertyName: 'data-source',
51
+ ruleFactory: () => {
52
+ return new InputSelectValueInSourceRule(() => this.source);
53
+ },
54
+ },
48
55
  ],
49
56
  validationRulesName: 'validationRules',
50
57
  defaultValue: (target) => (target.selectType === 'multiple' ? [] : ''),
@@ -189,6 +196,9 @@ export class VegaInputSelect {
189
196
  watchValidationRules() {
190
197
  methodPlaceholder();
191
198
  }
199
+ watchVegaDropdownProps() {
200
+ methodPlaceholder();
201
+ }
192
202
  componentWillLoad() {
193
203
  methodPlaceholder();
194
204
  }
@@ -556,7 +566,7 @@ export class VegaInputSelect {
556
566
  "mutable": false,
557
567
  "complexType": {
558
568
  "original": "VegaDropdownPropsForSelect",
559
- "resolved": "{ size?: ResponsiveType<SizeType>; matchTargetWidth?: boolean; maxHeight?: number; positionRelativeTo?: string; searchable?: boolean; itemDisplayRule?: \"ellipsis\" | \"newline\"; matchContainerHeight?: boolean; caseSensitive?: boolean; useDefaultFilter?: boolean; searchTriggerBy?: VegaDropdownSearchTriggerByType; isScreenPosition?: boolean; resettable?: boolean; }",
569
+ "resolved": "{ size?: ResponsiveType<SizeType>; matchTargetWidth?: boolean; maxHeight?: number; positionRelativeTo?: string; searchable?: boolean; itemDisplayRule?: \"ellipsis\" | \"newline\"; matchContainerHeight?: boolean; caseSensitive?: boolean; useDefaultFilter?: boolean; searchTriggerBy?: VegaDropdownSearchTriggerByType; isScreenPosition?: boolean; resettable?: boolean; preserveValueIfNotInSource?: boolean; }",
560
570
  "references": {
561
571
  "VegaDropdownPropsForSelect": {
562
572
  "location": "import",
@@ -935,6 +945,9 @@ export class VegaInputSelect {
935
945
  }, {
936
946
  "propName": "validationRules",
937
947
  "methodName": "watchValidationRules"
948
+ }, {
949
+ "propName": "vegaDropdownProps",
950
+ "methodName": "watchVegaDropdownProps"
938
951
  }]; }
939
952
  }
940
953
  __decorate([
@@ -92,7 +92,9 @@ export class VegaRTEExtensionRenderer extends VegaRTEBaseRenderer {
92
92
  * @param {RTEBlock | RTENode} renderData - The data to register with the element.
93
93
  */
94
94
  fallbackRegisterRef(element, renderData) {
95
- if (!renderData[VegaRTEExtensionRenderer.REGISTER_REF_FLAG] && element['$attrs$']) {
95
+ if (!renderData[VegaRTEExtensionRenderer.REGISTER_REF_FLAG] &&
96
+ element['$attrs$'] &&
97
+ !element['$attrs$']['ref']) {
96
98
  // eslint-disable-next-line jsdoc/require-jsdoc
97
99
  element['$attrs$']['ref'] = this.useRef(renderData);
98
100
  }
@@ -32,13 +32,16 @@ export class FunctionToolbarButtonRenderer extends VegaRTEToolbarButtonRenderer
32
32
  * @returns {boolean} - true if the button should be disabled, false otherwise.
33
33
  */
34
34
  isDisabled() {
35
- const { host, getSelectedNodes } = this.extensionContext;
36
- const focusNode = getSelectedNodes()[0];
37
- let enableInsert = true;
38
- if (focusNode) {
39
- enableInsert = ActionHandleStrategyRegistry.canHandle(INSERT_FUNCTION_BLOCK, focusNode.parent);
35
+ if (this.extensionContext) {
36
+ const { host, getSelectedNodes } = this.extensionContext;
37
+ const focusNode = getSelectedNodes()[0];
38
+ let enableInsert = true;
39
+ if (focusNode) {
40
+ enableInsert = ActionHandleStrategyRegistry.canHandle(INSERT_FUNCTION_BLOCK, focusNode.parent);
41
+ }
42
+ return host.disabled || !enableInsert;
40
43
  }
41
- return host.disabled || !enableInsert;
44
+ return false;
42
45
  }
43
46
  /* istanbul ignore next */
44
47
  // eslint-disable-next-line jsdoc/require-jsdoc
@@ -164,6 +164,7 @@ export class WrittenModeSvgController extends VegaSlimmer {
164
164
  */
165
165
  generateSignatureImage() {
166
166
  const serializer = new XMLSerializer();
167
+ // TODO: Adding the SVG attribute will cause changes to the generated base64 value, leading to problems. https://gethired.atlassian.net/browse/VD-7854
167
168
  const svgData = serializer.serializeToString(this.signatureContainerRef);
168
169
  const base64Svg = btoa(unescape(encodeURIComponent(svgData)));
169
170
  return `data:image/svg+xml;base64,${base64Svg}`;
@@ -57,6 +57,7 @@ export class WrittenModeRenderer extends VegaSlimmer {
57
57
  * When the clear button is displayed, since the error message and the clear button are in the same line, this element is displayed.
58
58
  */
59
59
  renderSignaturePad() {
60
+ // TODO: Adding the SVG attribute will cause changes to the generated base64 value, leading to problems. https://gethired.atlassian.net/browse/VD-7854
60
61
  return (h("svg", { width: "100%", height: formatAndValidResponsiveToken(this.height, 'widthAndHeight'), "touch-action": "none", ref: (ref) => this.writtenModeSvgController.setSignatureContainerRef(ref) }));
61
62
  }
62
63
  renderFooter() {
@@ -87,7 +87,7 @@ export class VegaTabGroup {
87
87
  /**
88
88
  * Specifies the overflow navigation for many tab items within the tab group.
89
89
  *
90
- * @vegaVersion __VERSION__
90
+ * @vegaVersion 2.49.0
91
91
  */
92
92
  this.overflow = 'menu';
93
93
  }
@@ -316,7 +316,7 @@ export class VegaTabGroup {
316
316
  "docs": {
317
317
  "tags": [{
318
318
  "name": "vegaVersion",
319
- "text": "__VERSION__"
319
+ "text": "2.49.0"
320
320
  }],
321
321
  "text": "Specifies the overflow navigation for many tab items within the tab group."
322
322
  },
@@ -90,7 +90,7 @@ export class VegaTextarea {
90
90
  * It provides essential information and functionality
91
91
  * related to the suffix button's role and behavior.
92
92
  *
93
- * @vegaVersion __VERSION__
93
+ * @vegaVersion 2.68.0
94
94
  */
95
95
  this.labelSuffixButtonConfig = null;
96
96
  /**
@@ -363,7 +363,7 @@ export class VegaTextarea {
363
363
  "docs": {
364
364
  "tags": [{
365
365
  "name": "vegaVersion",
366
- "text": "__VERSION__"
366
+ "text": "2.68.0"
367
367
  }],
368
368
  "text": "Specifies the properties for the suffix button associated with the input.\n\nIt provides essential information and functionality\n related to the suffix button's role and behavior."
369
369
  },
@@ -0,0 +1,3 @@
1
+ export default {
2
+ icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg>`,
3
+ };
@@ -0,0 +1,3 @@
1
+ export default {
2
+ icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>`,
3
+ };
@@ -151,6 +151,17 @@ describe('VegaNonceManager', () => {
151
151
  head.insertBefore(style, null);
152
152
  expect(style.getAttribute('nonce')).toBeNull();
153
153
  });
154
+ it('patchHeadInsertBeforeWithNonceToStencil should set nonce if style innerHTML includes .hydrated', () => {
155
+ const style = document.createElement('style');
156
+ style.setAttribute('data-styles', '');
157
+ style.innerHTML = '{visibility:hidden}.hydrated{visibility:inherit}';
158
+ const head = document.head;
159
+ setVegaNonce('hydrated-nonce');
160
+ vegaNonceManager.patchHeadInsertBeforeWithNonceToStencil();
161
+ head.insertBefore(style, null);
162
+ expect(style.getAttribute('nonce')).toBe('hydrated-nonce');
163
+ setVegaNonce(undefined);
164
+ });
154
165
  it('patchHeadInsertBeforeWithNonceToStencil should not overwrite existing nonce', () => {
155
166
  const style = document.createElement('style');
156
167
  style.setAttribute('data-styles', '');
@@ -67,11 +67,11 @@ export class VegaNonceManager {
67
67
  // If no nonce is set, use the original insertBefore
68
68
  if (!vegaNonceManager.nonce)
69
69
  return originalHeadInsertBefore.call(this, newElement, referenceElement);
70
- // Check if the new element is a <style> tag injected by Stencil (with data-styles and vega- marker)
70
+ // Check if the new element is a <style> tag injected by Stencil (with data-styles and vega- marker or .hydrated)
71
71
  if (newElement.nodeType === Node.ELEMENT_NODE &&
72
72
  newElement instanceof HTMLStyleElement &&
73
73
  newElement.hasAttribute('data-styles') &&
74
- newElement.innerHTML.includes('vega-') &&
74
+ (newElement.innerHTML.includes('vega-') || newElement.innerHTML.includes('.hydrated')) &&
75
75
  !newElement.hasAttribute('nonce')) {
76
76
  newElement.setAttribute('nonce', vegaNonceManager.nonce);
77
77
  }
@@ -18,6 +18,8 @@ export const staticTranslations = {
18
18
  'The end time should be later than start time': 'The end time should be later than start time',
19
19
  'Phone number is not valid': 'Phone number is not valid',
20
20
  'Phone number is valid but it belongs to country {0}, not country {1}': 'Phone number is valid but it belongs to country {0}, not country {1}',
21
+ 'The value does not exist in the source': 'The value does not exist in the source',
22
+ 'There are values that do not exist in the source': 'There are values that do not exist in the source',
21
23
  // Component internal text
22
24
  'Viewing': 'Viewing',
23
25
  'Show': 'Show',
@@ -233,6 +233,8 @@ describe('VegaTranslationController', () => {
233
233
  'Saturday': 'Saturday',
234
234
  'am': 'am',
235
235
  'pm': 'pm',
236
+ 'The value does not exist in the source': 'The value does not exist in the source',
237
+ 'There are values that do not exist in the source': 'There are values that do not exist in the source',
236
238
  });
237
239
  /* eslint-enable @typescript-eslint/naming-convention,spellcheck/spell-checker */
238
240
  });
@@ -0,0 +1,85 @@
1
+ import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
2
+ /**
3
+ * A rule that checks if the value exists in the source or not
4
+ *
5
+ * @augments {InternalFormFieldValidationRule<SelectValueType<SelectType>>}
6
+ */
7
+ export class InputSelectValueInSourceRule extends InternalFormFieldValidationRule {
8
+ /**
9
+ * It creates a new instance of the class with the given config.
10
+ *
11
+ * @param {() => SelectSourceItem[]} inputSelectSourceGetter - The input select source getter function
12
+ */
13
+ constructor(inputSelectSourceGetter) {
14
+ super();
15
+ this.inputSelectSourceGetter = inputSelectSourceGetter;
16
+ /**
17
+ * Generate an invalid result
18
+ *
19
+ * @param {string} message Error message
20
+ * @returns {EvaluateResultTranslation} invalid validation result
21
+ */
22
+ this.invalidResult = (message) => ({
23
+ isValid: false,
24
+ message,
25
+ });
26
+ /**
27
+ * Generate a valid result
28
+ *
29
+ * @returns {EvaluateResultTranslation} invalid validation result
30
+ */
31
+ this.validResult = () => ({
32
+ isValid: true,
33
+ message: '',
34
+ });
35
+ }
36
+ /**
37
+ * If the input is accepted and the status is not disabled and visible, then return true
38
+ *
39
+ * @param {unknown} input - The input to be evaluated.
40
+ * @param {FormFieldStatusMeta} [status] - FormFieldStatusMeta
41
+ * @returns {boolean} A boolean value.
42
+ */
43
+ canEvaluate(input, status) {
44
+ return status
45
+ ? this.isAcceptedInputType(input) && !status.disabled && status.visible
46
+ : this.isAcceptedInputType(input);
47
+ }
48
+ /**
49
+ * check if the value exists in the source
50
+ *
51
+ * @param {SelectValueType<SelectType>} input - The input to be evaluated.
52
+ * @returns {EvaluateResultTranslation} - The result of the evaluation.
53
+ */
54
+ evaluate(input) {
55
+ if (typeof input === 'string' &&
56
+ !this.inputSelectSourceGetter().find((item) => item.id === input)) {
57
+ return this.invalidResult(`The value does not exist in the source`);
58
+ }
59
+ else if (Array.isArray(input) &&
60
+ !input.every((value) => this.inputSelectSourceGetter().find((item) => item.id === value))) {
61
+ return this.invalidResult(`There are values that do not exist in the source`);
62
+ }
63
+ return this.validResult();
64
+ }
65
+ /**
66
+ * If the field is not disabled, visible, and has been touched or modified, then show the error
67
+ *
68
+ * @param {FormFieldStatusMeta} status - FormFieldStatusMeta
69
+ * @returns {boolean} A boolean value.
70
+ */
71
+ shouldShowError(status) {
72
+ return !status.disabled && status.visible && (status.touched || status.modified);
73
+ }
74
+ /**
75
+ * It returns true if the input is a string or an array of two strings, and each string is a valid string
76
+ *
77
+ * @param {unknown} input - The input value to be validated.
78
+ * @returns {boolean} A boolean value.
79
+ */
80
+ isAcceptedInputType(input) {
81
+ return ((typeof input === 'string' ||
82
+ (Array.isArray(input) && input.every((item) => typeof item === 'string'))) &&
83
+ input.length > 0);
84
+ }
85
+ }
@@ -0,0 +1,99 @@
1
+ import { InputSelectValueInSourceRule } from '../../rules/input-select-value-in-source-rule';
2
+ describe('inputSelectValueInSourceRule', () => {
3
+ test('return true if input can be evaluated', () => {
4
+ const rule = new InputSelectValueInSourceRule(() => [
5
+ { id: 'Maple', displayName: 'Maple' },
6
+ { id: 'Banana', displayName: 'Banana' },
7
+ ]);
8
+ expect(rule.canEvaluate('Maple')).toEqual(true);
9
+ expect(rule.canEvaluate('Maple', {
10
+ touched: true,
11
+ modified: true,
12
+ disabled: false,
13
+ visible: true,
14
+ })).toEqual(true);
15
+ });
16
+ test('return false if input can not be evaluated', () => {
17
+ const rule = new InputSelectValueInSourceRule(() => [
18
+ { id: 'Maple', displayName: 'Maple' },
19
+ { id: 'Banana', displayName: 'Banana' },
20
+ ]);
21
+ expect(rule.canEvaluate('')).toEqual(false);
22
+ expect(rule.canEvaluate(null)).toEqual(false);
23
+ expect(rule.canEvaluate(undefined)).toEqual(false);
24
+ expect(rule.canEvaluate([])).toEqual(false);
25
+ expect(rule.canEvaluate({})).toEqual(false);
26
+ });
27
+ test('return the valid evaluate result', () => {
28
+ const rule = new InputSelectValueInSourceRule(() => [
29
+ { id: 'Maple', displayName: 'Maple' },
30
+ { id: 'Banana', displayName: 'Banana' },
31
+ ]);
32
+ expect(rule.evaluate(['Maple', 'Banana'])).toEqual({
33
+ isValid: true,
34
+ message: ``,
35
+ });
36
+ expect(rule.evaluate(['Maple'])).toEqual({
37
+ isValid: true,
38
+ message: ``,
39
+ });
40
+ expect(rule.evaluate('Maple')).toEqual({
41
+ isValid: true,
42
+ message: ``,
43
+ });
44
+ });
45
+ test('return the invalid evaluate result as expected', () => {
46
+ const rule = new InputSelectValueInSourceRule(() => [
47
+ { id: 'Maple', displayName: 'Maple' },
48
+ { id: 'Banana', displayName: 'Banana' },
49
+ ]);
50
+ expect(rule.evaluate(['Map'])).toEqual({
51
+ isValid: false,
52
+ message: `There are values that do not exist in the source`,
53
+ });
54
+ expect(rule.evaluate(['Map', 'Banana'])).toEqual({
55
+ isValid: false,
56
+ message: `There are values that do not exist in the source`,
57
+ });
58
+ expect(rule.evaluate('Map')).toEqual({
59
+ isValid: false,
60
+ message: `The value does not exist in the source`,
61
+ });
62
+ });
63
+ test('should not show error message if status is disabled or invisible', () => {
64
+ const rule = new InputSelectValueInSourceRule(() => [
65
+ { id: 'Maple', displayName: 'Maple' },
66
+ { id: 'Banana', displayName: 'Banana' },
67
+ ]);
68
+ expect(rule.shouldShowError({
69
+ touched: true,
70
+ modified: true,
71
+ disabled: true,
72
+ visible: false,
73
+ })).toEqual(false);
74
+ });
75
+ test('should show error message if status is not disabled or invisible', () => {
76
+ const rule = new InputSelectValueInSourceRule(() => [
77
+ { id: 'Maple', displayName: 'Maple' },
78
+ { id: 'Banana', displayName: 'Banana' },
79
+ ]);
80
+ expect(rule.shouldShowError({
81
+ touched: true,
82
+ modified: true,
83
+ disabled: false,
84
+ visible: true,
85
+ })).toEqual(true);
86
+ });
87
+ test('should not show error message if status is not touched or not modified', () => {
88
+ const rule = new InputSelectValueInSourceRule(() => [
89
+ { id: 'Maple', displayName: 'Maple' },
90
+ { id: 'Banana', displayName: 'Banana' },
91
+ ]);
92
+ expect(rule.shouldShowError({
93
+ touched: false,
94
+ modified: false,
95
+ disabled: false,
96
+ visible: true,
97
+ })).toEqual(false);
98
+ });
99
+ });
@@ -1,18 +1,18 @@
1
1
  import { F as FeatureFlag } from './feature-flag-controller-51659753.js';
2
- import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader, g as VegaRTETokenExtension, h as VegaRTEFunctionExtension } from './function-extension-eb1d062f.js';
2
+ import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader, g as VegaRTETokenExtension, h as VegaRTEFunctionExtension } from './function-extension-8d39db56.js';
3
3
  import { M as MapToComponentMethod, V as VegaSlimmer, s as setVegaLogLevel, G as GlobalSlimmersRegistry } from './global-slimmer-registry-17c4efd4.js';
4
4
  import { v as vegaEnvManager } from './vega-env-manager-8f8dc473.js';
5
5
  import { V as VegaIconManager } from './internal-icon-manager-f0486245.js';
6
6
  import './wait-for-vega-handler-c2c07ac3.js';
7
7
  import './ui-bb99c0c2.js';
8
- import { V as VegaInternalTranslation, a as VegaTranslation, s as staticTranslations } from './translation-f10b1e19.js';
9
- import { V as VegaRTEContent } from './dto-renderer-manager-7abc53bf.js';
10
- import { v as vegaNonceManager, s as setVegaNonce } from './vega-nonce-manager-87615d3c.js';
11
- import { V as VegaRTEPresetToolbarItems } from './code-block-e8839202.js';
8
+ import { V as VegaInternalTranslation, a as VegaTranslation, s as staticTranslations } from './translation-96e5debd.js';
9
+ import { V as VegaRTEContent } from './dto-renderer-manager-d862ae78.js';
10
+ import { v as vegaNonceManager, s as setVegaNonce } from './vega-nonce-manager-497e5eb5.js';
11
+ import { V as VegaRTEPresetToolbarItems } from './code-block-ecb4491b.js';
12
12
  import { T as TypographyUrls } from './typography-396de03f.js';
13
13
  import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-81443274.js';
14
14
  import { w as waitForVega } from './index-c943d263.js';
15
- import { V as VegaRTELanguageExtension } from './language-extension-3331131f.js';
15
+ import { V as VegaRTELanguageExtension } from './language-extension-8f51f5ff.js';
16
16
  import { U as UPDATE_TRANSLATION } from './static-subject-title-52f93124.js';
17
17
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
18
18
  import { O as Observer } from './observer-3959f9dd.js';
@@ -397,7 +397,7 @@ function injectVegaRichTextEditorClassIntoGlobal() {
397
397
  * Inject VegaPublicValidationRules to global as a public api
398
398
  */
399
399
  function injectVegaPublicValidationRules() {
400
- void import('./public-rules-e613dead.js').then((module) => {
400
+ void import('./public-rules-d10e76f4.js').then((module) => {
401
401
  Object.entries(module).forEach(([name, value]) => {
402
402
  globalThis[name] = value;
403
403
  });
@@ -5,7 +5,7 @@ import { c as camelToDashCase } from './string-a953eafc.js';
5
5
  import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
6
6
  import { i as isNonNullable } from './type-guard-12f7654b.js';
7
7
  import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
8
- import { V as VegaInternalThemeManager } from './dark-mode-style-controller-b7e85b6a.js';
8
+ import { V as VegaInternalThemeManager } from './dark-mode-style-controller-de88a117.js';
9
9
  import { c as cleanObject } from './object-66c37948.js';
10
10
  import { f as findParent } from './ui-bb99c0c2.js';
11
11
 
@@ -1,5 +1,5 @@
1
1
  import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
2
- import { v as vegaNonceManager } from './vega-nonce-manager-87615d3c.js';
2
+ import { v as vegaNonceManager } from './vega-nonce-manager-497e5eb5.js';
3
3
 
4
4
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -1,12 +1,12 @@
1
1
  import { M as MapToComponentMethod, V as VegaSlimmer, L as LogUtility, c as MapToComponentField } from './global-slimmer-registry-17c4efd4.js';
2
- import { a0 as RTECodeBlockNode, b as RTETextNode, Z as ZERO_WIDTH_SPACE, _ as SelectionChangeAction, k as InternalAnnotationTypeEnum, s as stateEntityRenderingRegistry, f as RTEBlock, i as RTENode, z as RTEDecoratorNode, x as RTECodeBlock } from './code-block-e8839202.js';
2
+ import { a0 as RTECodeBlockNode, b as RTETextNode, Z as ZERO_WIDTH_SPACE, _ as SelectionChangeAction, k as InternalAnnotationTypeEnum, s as stateEntityRenderingRegistry, f as RTEBlock, i as RTENode, z as RTEDecoratorNode, x as RTECodeBlock } from './code-block-ecb4491b.js';
3
3
  import { d as debounce } from './timer-9321173b.js';
4
4
  import { g as getActiveElement } from './component-7d906393.js';
5
5
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
6
6
  import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-dca87b70.js';
7
7
  import { c as VegaInternalRichTextEditorSelectionRangeChange, a as VegaInternalUpdateRTECursorPosition } from './vega-internal-event-id-5c3e5f7f.js';
8
8
  import { O as Observer } from './observer-3959f9dd.js';
9
- import { R as RTERange } from './range-adf206fd.js';
9
+ import { R as RTERange } from './range-f7b9e2fb.js';
10
10
  import { S as SynchronizeTaskQueue } from './synchronize-task-queue-ac8acc3b.js';
11
11
  import { i as isHTMLElement } from './ui-bb99c0c2.js';
12
12
  import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-f39214e4.js';
@@ -2,7 +2,7 @@ import { D as DARK_MODE_CHANGE, G as GP_BRAND_CHANGE } from './static-subject-ti
2
2
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
3
3
  import { O as Observer } from './observer-3959f9dd.js';
4
4
  import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-9943807e.js';
5
- import { v as vegaNonceManager } from './vega-nonce-manager-87615d3c.js';
5
+ import { v as vegaNonceManager } from './vega-nonce-manager-497e5eb5.js';
6
6
 
7
7
  /* This file is generated by vega-design 2.0.80 */
8
8
  const DarkModeColorTokens$1 = {
@@ -1,7 +1,7 @@
1
1
  import { j as isBorderColorTokenType, b as BorderColors, e as BorderColorMap, k as isShadowsTokenType, f as Shadows, g as ShadowMap, l as isBorderTokenType, m as Borders, n as BorderMap, o as isSpacingTokenType, p as isBorderRadiusTokenType, q as isBackgroundColorTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, h as Spacing, t as isBorderStyleType, B as BorderRadius, C as Colors, u as isTypographyTokenType } from './type-guard-12f7654b.js';
2
2
  import { B as Breakpoints } from './breakpoints-d9faf11c.js';
3
3
  import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
4
- import { R as ResponsiveFormatFacade } from './responsive-format-facade-b0712993.js';
4
+ import { R as ResponsiveFormatFacade } from './responsive-format-facade-267935ae.js';
5
5
  import { a as TypographyKeys } from './typography-396de03f.js';
6
6
  import { S as StateVariantFormatter, s as stateBackgroundColorFormatter } from './state-background-color-formatter-0f01d27a.js';
7
7
  import { a as BorderStyle } from './ui-8424715a.js';
@@ -1,4 +1,4 @@
1
- import { d as ActionHandleStrategy, e as RTETextBlock, b as RTETextNode, h as AppendChildrenAction, A as ActionHandleStrategyRegistry, T as TextStyleAnnotationAction, B as BlockUpdateTextStyleStrategy, H as HorizontalAlignmentAnnotationAction, l as BlockUpdateHorizontalAlignmentStrategy, c as ModifyContentActionType, m as BlockInsertLineBreakStrategy, n as BlockInsertLineBreakWithBlocksStrategy, o as BlockSplitWithTextNodeStrategy, p as BlockReplaceNodesStrategy, q as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, r as RemoveChildrenAction, S as SyncUpSelectionAction, j as InsertChildrenBeforeAction, t as BlockAnnotation, u as BlockAnnotationTypeEnum, f as RTEBlock, C as CustomStyleAnnotation, v as CustomClassAnnotation, w as CustomAttributeAnnotation, x as RTECodeBlock, s as stateEntityRenderingRegistry, N as NodeAnnotation, y as NodeAnnotationTypeEnum, z as RTEDecoratorNode, D as NodeTypeEnum, E as CommonAnnotation, F as AnnotationAction, G as ReplaceChildNodesAction, M as ModifyContentAction, J as SplitBlockWithNodeAction, K as BlockDeleteNodeContentStrategy, U as UpdateTextAction, L as RemoveChildrenStrategy, O as RTE_TEXT_COLORS, P as RTE_DEFAULT_TEXT_COLOR, R as RTEDTOClassManager } from './code-block-e8839202.js';
1
+ import { d as ActionHandleStrategy, e as RTETextBlock, b as RTETextNode, h as AppendChildrenAction, A as ActionHandleStrategyRegistry, T as TextStyleAnnotationAction, B as BlockUpdateTextStyleStrategy, H as HorizontalAlignmentAnnotationAction, l as BlockUpdateHorizontalAlignmentStrategy, c as ModifyContentActionType, m as BlockInsertLineBreakStrategy, n as BlockInsertLineBreakWithBlocksStrategy, o as BlockSplitWithTextNodeStrategy, p as BlockReplaceNodesStrategy, q as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, r as RemoveChildrenAction, S as SyncUpSelectionAction, j as InsertChildrenBeforeAction, t as BlockAnnotation, u as BlockAnnotationTypeEnum, f as RTEBlock, C as CustomStyleAnnotation, v as CustomClassAnnotation, w as CustomAttributeAnnotation, x as RTECodeBlock, s as stateEntityRenderingRegistry, N as NodeAnnotation, y as NodeAnnotationTypeEnum, z as RTEDecoratorNode, D as NodeTypeEnum, E as CommonAnnotation, F as AnnotationAction, G as ReplaceChildNodesAction, M as ModifyContentAction, J as SplitBlockWithNodeAction, K as BlockDeleteNodeContentStrategy, U as UpdateTextAction, L as RemoveChildrenStrategy, O as RTE_TEXT_COLORS, P as RTE_DEFAULT_TEXT_COLOR, R as RTEDTOClassManager } from './code-block-ecb4491b.js';
2
2
  import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
3
3
  import { i as isNonNullable } from './type-guard-12f7654b.js';
4
4
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
@@ -1,11 +1,11 @@
1
1
  import { c as MapToComponentField, I as InjectVegaSlimmer, V as VegaSlimmer, L as LogUtility, M as MapToComponentMethod } from './global-slimmer-registry-17c4efd4.js';
2
2
  import { f as findParent, d as isElementVisible, b as isParent } from './ui-bb99c0c2.js';
3
- import { n as InternalVegaZIndexManager } from './function-extension-eb1d062f.js';
3
+ import { n as InternalVegaZIndexManager } from './function-extension-8d39db56.js';
4
4
  import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
5
5
  import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-0bf7fbf3.js';
6
6
  import { P as Placements, A as Alignments } from './ui-8424715a.js';
7
7
  import { E as isTranslocationType } from './type-guard-12f7654b.js';
8
- import { R as ResponsiveFormatFacade } from './responsive-format-facade-b0712993.js';
8
+ import { R as ResponsiveFormatFacade } from './responsive-format-facade-267935ae.js';
9
9
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
10
10
  import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-52f93124.js';
11
11
  import { O as Observer } from './observer-3959f9dd.js';
@@ -8,7 +8,7 @@ import { i as isAsyncFunction, g as generateUUID } from './create-public-api-run
8
8
  import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
9
9
  import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-dca87b70.js';
10
10
  import { f as VegaInternalFieldErrorStateChange, d as VegaInternalFormSubmit, g as VegaInternalValid } from './vega-internal-event-id-5c3e5f7f.js';
11
- import { V as VegaInternalTranslation } from './translation-f10b1e19.js';
11
+ import { V as VegaInternalTranslation } from './translation-96e5debd.js';
12
12
  import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-0bf7fbf3.js';
13
13
  import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
14
14
  import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-58ebc13c.js';
@@ -3,11 +3,11 @@ import { a as arrayToClassString, g as getDeviceType, D as DeviceType } from './
3
3
  import { L as LogUtility, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
4
4
  import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
5
5
  import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-0bf7fbf3.js';
6
- import { V as VegaInternalThemeManager } from './dark-mode-style-controller-b7e85b6a.js';
6
+ import { V as VegaInternalThemeManager } from './dark-mode-style-controller-de88a117.js';
7
7
  import { i as internalVegaEventManager } from './internal-vega-event-manager-516aa721.js';
8
8
  import { c as convertToNumber } from './number-4398f2e1.js';
9
- import { R as RTEDTORendererManager, a as RTEDTOActionStrategyManager, E as ElementToDTOClassStrategyManager, U as UpdateCursorPositionAction, b as ElementToDTOStrategy, h as htmlElementToAnnotationGenerator, c as RTEListItemBlock, V as VegaRTEContent, B as BlockToRTEBlockStrategyAbstract, I as InsertNewParagraphAction, d as RTEImageBlock } from './dto-renderer-manager-7abc53bf.js';
10
- import { s as stateEntityRenderingRegistry, A as ActionHandleStrategyRegistry, a as ActionHandlerInterceptorRegistry, R as RTEDTOClassManager, M as ModifyContentAction, b as RTETextNode, c as ModifyContentActionType, d as ActionHandleStrategy, e as RTETextBlock, f as RTEBlock, g as RTEAnnotationStyle, I as InsertChildrenAfterAction, h as AppendChildrenAction, i as RTENode, j as InsertChildrenBeforeAction, k as InternalAnnotationTypeEnum } from './code-block-e8839202.js';
9
+ import { R as RTEDTORendererManager, a as RTEDTOActionStrategyManager, E as ElementToDTOClassStrategyManager, U as UpdateCursorPositionAction, b as ElementToDTOStrategy, h as htmlElementToAnnotationGenerator, c as RTEListItemBlock, V as VegaRTEContent, B as BlockToRTEBlockStrategyAbstract, I as InsertNewParagraphAction, d as RTEImageBlock } from './dto-renderer-manager-d862ae78.js';
10
+ import { s as stateEntityRenderingRegistry, A as ActionHandleStrategyRegistry, a as ActionHandlerInterceptorRegistry, R as RTEDTOClassManager, M as ModifyContentAction, b as RTETextNode, c as ModifyContentActionType, d as ActionHandleStrategy, e as RTETextBlock, f as RTEBlock, g as RTEAnnotationStyle, I as InsertChildrenAfterAction, h as AppendChildrenAction, i as RTENode, j as InsertChildrenBeforeAction, k as InternalAnnotationTypeEnum } from './code-block-ecb4491b.js';
11
11
  import { a as VegaInternalIconManager } from './internal-icon-manager-f0486245.js';
12
12
  import { i as isNonNullable } from './type-guard-12f7654b.js';
13
13
  import { V as VegaRTEBaseRenderer } from './base-renderer-101f6d04.js';
@@ -1385,7 +1385,9 @@ class VegaRTEExtensionRenderer extends VegaRTEBaseRenderer {
1385
1385
  * @param {RTEBlock | RTENode} renderData - The data to register with the element.
1386
1386
  */
1387
1387
  fallbackRegisterRef(element, renderData) {
1388
- if (!renderData[VegaRTEExtensionRenderer.REGISTER_REF_FLAG] && element['$attrs$']) {
1388
+ if (!renderData[VegaRTEExtensionRenderer.REGISTER_REF_FLAG] &&
1389
+ element['$attrs$'] &&
1390
+ !element['$attrs$']['ref']) {
1389
1391
  // eslint-disable-next-line jsdoc/require-jsdoc
1390
1392
  element['$attrs$']['ref'] = this.useRef(renderData);
1391
1393
  }
@@ -2437,13 +2439,16 @@ class FunctionToolbarButtonRenderer extends VegaRTEToolbarButtonRenderer {
2437
2439
  * @returns {boolean} - true if the button should be disabled, false otherwise.
2438
2440
  */
2439
2441
  isDisabled() {
2440
- const { host, getSelectedNodes } = this.extensionContext;
2441
- const focusNode = getSelectedNodes()[0];
2442
- let enableInsert = true;
2443
- if (focusNode) {
2444
- enableInsert = ActionHandleStrategyRegistry.canHandle(INSERT_FUNCTION_BLOCK, focusNode.parent);
2442
+ if (this.extensionContext) {
2443
+ const { host, getSelectedNodes } = this.extensionContext;
2444
+ const focusNode = getSelectedNodes()[0];
2445
+ let enableInsert = true;
2446
+ if (focusNode) {
2447
+ enableInsert = ActionHandleStrategyRegistry.canHandle(INSERT_FUNCTION_BLOCK, focusNode.parent);
2448
+ }
2449
+ return host.disabled || !enableInsert;
2445
2450
  }
2446
- return host.disabled || !enableInsert;
2451
+ return false;
2447
2452
  }
2448
2453
  /* istanbul ignore next */
2449
2454
  // eslint-disable-next-line jsdoc/require-jsdoc
@@ -1,10 +1,10 @@
1
1
  import { h } from './index-090d31ca.js';
2
2
  import { a as VegaInternalIconManager } from './internal-icon-manager-f0486245.js';
3
3
  import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
4
- import { A as ActionHandleStrategyRegistry, O as RTE_TEXT_COLORS, b as RTETextNode, $ as TextColorAnnotationAction, y as NodeAnnotationTypeEnum, F as AnnotationAction } from './code-block-e8839202.js';
4
+ import { A as ActionHandleStrategyRegistry, O as RTE_TEXT_COLORS, b as RTETextNode, $ as TextColorAnnotationAction, y as NodeAnnotationTypeEnum, F as AnnotationAction } from './code-block-ecb4491b.js';
5
5
  import { D as DomNodeSubjectObserverFactory, a as VegaClick, R as VegaPopoverShow, S as VegaPopoverHide, f as VegaChange } from './dom-node-subject-observer-factory-dca87b70.js';
6
- import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-b7e85b6a.js';
7
- import { g as ImageAnnotation } from './dto-renderer-manager-7abc53bf.js';
6
+ import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-de88a117.js';
7
+ import { g as ImageAnnotation } from './dto-renderer-manager-d862ae78.js';
8
8
 
9
9
  const text = {
10
10
  icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M64 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V80C0 53.5 21.5 32 48 32H224 400c26.5 0 48 21.5 48 48v48c0 17.7-14.3 32-32 32s-32-14.3-32-32V96H256l0 320h48c17.7 0 32 14.3 32 32s-14.3 32-32 32H144c-17.7 0-32-14.3-32-32s14.3-32 32-32h48l0-320H64z"/></svg>`,