@globalpayments/vega 2.59.0 → 2.60.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 (258) hide show
  1. package/dist/cjs/{app-globals-a8f5e755.js → app-globals-8a3536ba.js} +3 -3
  2. package/dist/cjs/{code-block-4bfae76d.js → code-block-7d901dfc.js} +1 -1
  3. package/dist/cjs/{component-value-history-controller-slimmer.abstract-34f4577a.js → component-value-history-controller-slimmer.abstract-d61e5129.js} +2 -2
  4. package/dist/cjs/{content-state-0da174e0.js → content-state-2096aa5a.js} +3 -3
  5. package/dist/cjs/{design-token-deb195e9.js → design-token-52f9da81.js} +3 -3
  6. package/dist/cjs/{element-appender-slimmer-299039f1.js → element-appender-slimmer-2a3e1e51.js} +2 -2
  7. package/dist/cjs/{image-annotation-action-117fee1f.js → image-annotation-action-8c1ecc99.js} +2 -2
  8. package/dist/cjs/index.cjs.js +8 -9
  9. package/dist/cjs/{inject-keyboard-manager-70382bae.js → inject-keyboard-manager-ad865c95.js} +1 -1
  10. package/dist/cjs/{keyboard-manager-6858915b.js → keyboard-manager-7f4e1f43.js} +1 -1
  11. package/dist/cjs/{keyboard-manager-slimmer-faca2038.js → keyboard-manager-slimmer-138a90e5.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +6 -7
  13. package/dist/cjs/{public-rules-d1f7a352.js → public-rules-c711fae3.js} +4 -5
  14. package/dist/cjs/{responsive-format-facade-20c63e07.js → responsive-format-facade-3ab3b18c.js} +2 -2
  15. package/dist/cjs/{rich-text-editor-required-rule-fbf8cbab.js → rich-text-editor-required-rule-4d92437f.js} +1 -1
  16. package/dist/cjs/{state-background-color-formatter-c57409ea.js → state-background-color-formatter-aa5570f6.js} +1 -1
  17. package/dist/cjs/string-format-strategy.abstract-07a95352.js +60 -0
  18. package/dist/cjs/{string-input-formatter-slimmer-1b757bad.js → string-input-formatter-slimmer-941eaec2.js} +1 -224
  19. package/dist/cjs/string-mask-strategy-6bdad95e.js +172 -0
  20. package/dist/cjs/{style-formatter-e08163fd.js → style-formatter-dcb443fb.js} +2 -2
  21. package/dist/cjs/{type-guard-aa8fdeaf.js → type-guard-f12b5bae.js} +13 -3
  22. package/dist/cjs/{valid-credit-card-number-rule-4a1b00b8.js → valid-credit-card-number-rule-ce5c9147.js} +9 -9
  23. package/dist/cjs/vega-accordion.cjs.entry.js +6 -7
  24. package/dist/cjs/vega-app-header-button.cjs.entry.js +6 -7
  25. package/dist/cjs/vega-box.cjs.entry.js +7 -8
  26. package/dist/cjs/vega-button-circle.cjs.entry.js +6 -7
  27. package/dist/cjs/vega-button.cjs.entry.js +4 -5
  28. package/dist/cjs/vega-calendar_4.cjs.entry.js +14 -4
  29. package/dist/cjs/vega-card.cjs.entry.js +6 -7
  30. package/dist/cjs/vega-carousel.cjs.entry.js +4 -5
  31. package/dist/cjs/vega-chip.cjs.entry.js +6 -7
  32. package/dist/cjs/vega-code-block.cjs.entry.js +5 -6
  33. package/dist/cjs/vega-combo-box.cjs.entry.js +3 -4
  34. package/dist/cjs/vega-date-picker_2.cjs.entry.js +36 -11
  35. package/dist/cjs/vega-dialog_2.cjs.entry.js +6 -7
  36. package/dist/cjs/vega-divider.cjs.entry.js +6 -7
  37. package/dist/cjs/vega-dropdown_5.cjs.entry.js +7 -8
  38. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  39. package/dist/cjs/vega-flag-icon.cjs.entry.js +6 -7
  40. package/dist/cjs/vega-flex.cjs.entry.js +7 -8
  41. package/dist/cjs/vega-font.cjs.entry.js +6 -7
  42. package/dist/cjs/vega-grid.cjs.entry.js +6 -7
  43. package/dist/cjs/vega-icon.cjs.entry.js +6 -7
  44. package/dist/cjs/vega-image-uploader.cjs.entry.js +4 -5
  45. package/dist/cjs/vega-input-credit-card.cjs.entry.js +241 -12
  46. package/dist/cjs/vega-input-numeric.cjs.entry.js +3 -4
  47. package/dist/cjs/vega-input-phone-number.cjs.entry.js +110 -21
  48. package/dist/cjs/vega-input-select.cjs.entry.js +4 -5
  49. package/dist/cjs/vega-input.cjs.entry.js +16 -191
  50. package/dist/cjs/vega-left-nav_5.cjs.entry.js +6 -7
  51. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +4 -5
  52. package/dist/cjs/vega-pagination.cjs.entry.js +4 -5
  53. package/dist/cjs/vega-popover_2.cjs.entry.js +9 -10
  54. package/dist/cjs/vega-radio_2.cjs.entry.js +3 -4
  55. package/dist/cjs/vega-rich-text-content.cjs.entry.js +4 -5
  56. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +8 -9
  57. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -5
  58. package/dist/cjs/vega-sidenav_3.cjs.entry.js +4 -5
  59. package/dist/cjs/vega-signature-capture.cjs.entry.js +6 -7
  60. package/dist/cjs/vega-table_8.cjs.entry.js +4 -5
  61. package/dist/cjs/vega-time-picker_2.cjs.entry.js +7 -8
  62. package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -8
  63. package/dist/cjs/vega.cjs.js +6 -7
  64. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +12 -1
  65. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +11 -0
  66. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +4 -0
  67. package/dist/collection/components/vega-date-picker/vega-date-picker.js +43 -0
  68. package/dist/collection/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.js +4 -11
  69. package/dist/collection/components/vega-input/vega-input.js +1 -1
  70. package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +6 -3
  71. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.js +3 -16
  72. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/link-annotation-handler.js +1 -1
  73. package/dist/collection/constants/card-config.js +4 -4
  74. package/dist/collection/helpers/formatter/string-formatter/credit-card-blur-mask-strategy.js +1 -1
  75. package/dist/collection/helpers/formatter/string-formatter/vega-phone-number-input-strategy.js +104 -0
  76. package/dist/collection/helpers/formatter/test/string-formatter/vega-phone-number-input-strategy.test.js +43 -0
  77. package/dist/esm/{app-globals-eec29b87.js → app-globals-c7699395.js} +3 -3
  78. package/dist/esm/{code-block-3d519665.js → code-block-055cae13.js} +1 -1
  79. package/dist/esm/{component-value-history-controller-slimmer.abstract-8b5be007.js → component-value-history-controller-slimmer.abstract-7a64c05a.js} +2 -2
  80. package/dist/esm/{content-state-100d1efd.js → content-state-460f6254.js} +3 -3
  81. package/dist/esm/{design-token-80dd7d60.js → design-token-e1821e4a.js} +3 -3
  82. package/dist/esm/{element-appender-slimmer-e2d3e79a.js → element-appender-slimmer-4260c020.js} +2 -2
  83. package/dist/esm/{image-annotation-action-215f92d6.js → image-annotation-action-95cc9118.js} +2 -2
  84. package/dist/esm/index.js +8 -9
  85. package/dist/esm/{inject-keyboard-manager-a28dfee4.js → inject-keyboard-manager-109817bf.js} +1 -1
  86. package/dist/esm/{keyboard-manager-fa6355cb.js → keyboard-manager-ab521d22.js} +1 -1
  87. package/dist/esm/{keyboard-manager-slimmer-818050ee.js → keyboard-manager-slimmer-cae3a002.js} +1 -1
  88. package/dist/esm/loader.js +6 -7
  89. package/dist/esm/{public-rules-1016ce0c.js → public-rules-71e1883d.js} +4 -5
  90. package/dist/esm/{responsive-format-facade-4bf60125.js → responsive-format-facade-dbeffcd6.js} +2 -2
  91. package/dist/esm/{rich-text-editor-required-rule-423c3c83.js → rich-text-editor-required-rule-6cfdcaaf.js} +1 -1
  92. package/dist/esm/{state-background-color-formatter-da5e76e8.js → state-background-color-formatter-0f01d27a.js} +1 -1
  93. package/dist/esm/string-format-strategy.abstract-452f4398.js +58 -0
  94. package/dist/esm/{string-input-formatter-slimmer-b144e8d7.js → string-input-formatter-slimmer-6d99bb4f.js} +2 -223
  95. package/dist/esm/string-mask-strategy-6232a1c1.js +170 -0
  96. package/dist/esm/{style-formatter-184752b5.js → style-formatter-41ca4df2.js} +2 -2
  97. package/dist/esm/{type-guard-84b1f192.js → type-guard-12f7654b.js} +8 -2
  98. package/dist/esm/{valid-credit-card-number-rule-cc497bec.js → valid-credit-card-number-rule-81443274.js} +1 -1
  99. package/dist/esm/vega-accordion.entry.js +6 -7
  100. package/dist/esm/vega-app-header-button.entry.js +6 -7
  101. package/dist/esm/vega-box.entry.js +7 -8
  102. package/dist/esm/vega-button-circle.entry.js +6 -7
  103. package/dist/esm/vega-button.entry.js +4 -5
  104. package/dist/esm/vega-calendar_4.entry.js +14 -4
  105. package/dist/esm/vega-card.entry.js +6 -7
  106. package/dist/esm/vega-carousel.entry.js +4 -5
  107. package/dist/esm/vega-chip.entry.js +6 -7
  108. package/dist/esm/vega-code-block.entry.js +5 -6
  109. package/dist/esm/vega-combo-box.entry.js +3 -4
  110. package/dist/esm/vega-date-picker_2.entry.js +35 -10
  111. package/dist/esm/vega-dialog_2.entry.js +6 -7
  112. package/dist/esm/vega-divider.entry.js +6 -7
  113. package/dist/esm/vega-dropdown_5.entry.js +7 -8
  114. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  115. package/dist/esm/vega-flag-icon.entry.js +6 -7
  116. package/dist/esm/vega-flex.entry.js +7 -8
  117. package/dist/esm/vega-font.entry.js +6 -7
  118. package/dist/esm/vega-grid.entry.js +6 -7
  119. package/dist/esm/vega-icon.entry.js +6 -7
  120. package/dist/esm/vega-image-uploader.entry.js +4 -5
  121. package/dist/esm/vega-input-credit-card.entry.js +240 -11
  122. package/dist/esm/vega-input-numeric.entry.js +3 -4
  123. package/dist/esm/vega-input-phone-number.entry.js +110 -21
  124. package/dist/esm/vega-input-select.entry.js +4 -5
  125. package/dist/esm/vega-input.entry.js +10 -185
  126. package/dist/esm/vega-left-nav_5.entry.js +6 -7
  127. package/dist/esm/vega-loader-wrapper_2.entry.js +4 -5
  128. package/dist/esm/vega-pagination.entry.js +4 -5
  129. package/dist/esm/vega-popover_2.entry.js +9 -10
  130. package/dist/esm/vega-radio_2.entry.js +3 -4
  131. package/dist/esm/vega-rich-text-content.entry.js +4 -5
  132. package/dist/esm/vega-rich-text-editor_4.entry.js +8 -9
  133. package/dist/esm/vega-selection-chip_2.entry.js +4 -5
  134. package/dist/esm/vega-sidenav_3.entry.js +4 -5
  135. package/dist/esm/vega-signature-capture.entry.js +6 -7
  136. package/dist/esm/vega-table_8.entry.js +4 -5
  137. package/dist/esm/vega-time-picker_2.entry.js +7 -8
  138. package/dist/esm/vega-tooltip_2.entry.js +7 -8
  139. package/dist/esm/vega.js +6 -7
  140. package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +1 -0
  141. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +1 -0
  142. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +14 -0
  143. package/dist/types/components/vega-input/types.d.ts +3 -10
  144. package/dist/types/components.d.ts +14 -0
  145. package/dist/types/helpers/formatter/string-formatter/vega-phone-number-input-strategy.d.ts +49 -0
  146. package/dist/types/helpers/formatter/test/string-formatter/vega-phone-number-input-strategy.test.d.ts +1 -0
  147. package/dist/vega/index.esm.js +1 -1
  148. package/dist/vega/p-0dcec258.js +1 -0
  149. package/dist/vega/p-10063072.entry.js +1 -0
  150. package/dist/vega/p-1152850b.entry.js +1 -0
  151. package/dist/vega/p-165054fb.entry.js +1 -0
  152. package/dist/vega/p-1652cfc6.entry.js +1 -0
  153. package/dist/vega/p-16c6c22f.entry.js +1 -0
  154. package/dist/vega/p-1852ca80.entry.js +1 -0
  155. package/dist/vega/p-1b222c94.entry.js +1 -0
  156. package/dist/vega/p-1b91a882.js +1 -0
  157. package/dist/vega/{p-86f17433.js → p-1cabeb33.js} +1 -1
  158. package/dist/vega/p-1f8c46c4.entry.js +1 -0
  159. package/dist/vega/p-1fdf0f74.entry.js +1 -0
  160. package/dist/vega/{p-7934c09c.js → p-200ba358.js} +1 -1
  161. package/dist/vega/p-20b8b626.entry.js +1 -0
  162. package/dist/vega/{p-0fce930c.js → p-21873037.js} +1 -1
  163. package/dist/vega/{p-b40adb9e.js → p-2608b9fe.js} +1 -1
  164. package/dist/vega/{p-0f0baac3.js → p-27dfa896.js} +1 -1
  165. package/dist/vega/p-2e4bc8aa.entry.js +1 -0
  166. package/dist/vega/p-334e31a3.entry.js +1 -0
  167. package/dist/vega/p-394dfa02.entry.js +1 -0
  168. package/dist/vega/p-433ea113.entry.js +1 -0
  169. package/dist/vega/p-460bbd22.entry.js +1 -0
  170. package/dist/vega/p-46973cf9.entry.js +1 -0
  171. package/dist/vega/p-52c1dde9.entry.js +1 -0
  172. package/dist/vega/p-594ecdab.js +1 -0
  173. package/dist/vega/p-5f377954.js +1 -1
  174. package/dist/vega/p-62898294.entry.js +1 -0
  175. package/dist/vega/p-636f7b17.entry.js +1 -0
  176. package/dist/vega/p-68eae19d.entry.js +1 -0
  177. package/dist/vega/p-69119f58.entry.js +1 -0
  178. package/dist/vega/p-6b71d5d1.entry.js +1 -0
  179. package/dist/vega/p-71f9c4d4.js +1 -0
  180. package/dist/vega/{p-59e990c7.entry.js → p-741a8b61.entry.js} +1 -1
  181. package/dist/vega/{p-436f7e27.js → p-743c5baf.js} +1 -1
  182. package/dist/vega/{p-09d63c0c.js → p-7e4fdccb.js} +1 -1
  183. package/dist/vega/p-824a06ba.js +1 -0
  184. package/dist/vega/{p-a6dacccd.js → p-8539e05e.js} +1 -1
  185. package/dist/vega/p-867a4970.js +1 -0
  186. package/dist/vega/{p-7bb74931.js → p-95ac7c7e.js} +1 -1
  187. package/dist/vega/p-95c30aed.entry.js +1 -0
  188. package/dist/vega/{p-6f90d444.js → p-9ce249a9.js} +1 -1
  189. package/dist/vega/{p-16ec4633.js → p-a433fef4.js} +1 -1
  190. package/dist/vega/p-af2de012.entry.js +1 -0
  191. package/dist/vega/p-b1faebe0.js +1 -0
  192. package/dist/vega/p-b56e2c89.entry.js +1 -0
  193. package/dist/vega/p-b8f50c69.entry.js +1 -0
  194. package/dist/vega/p-b9821a7f.entry.js +1 -0
  195. package/dist/vega/p-c883bce1.entry.js +1 -0
  196. package/dist/vega/p-cc2ceaa8.entry.js +1 -0
  197. package/dist/vega/{p-7f087c8b.js → p-d1ebec08.js} +1 -1
  198. package/dist/vega/{p-fc8badd3.entry.js → p-d35243c8.entry.js} +1 -1
  199. package/dist/vega/p-dbe5daa7.js +1 -0
  200. package/dist/vega/p-dd6a4ea6.entry.js +1 -0
  201. package/dist/vega/p-e3bb1cce.entry.js +13 -0
  202. package/dist/vega/p-e45f8a67.entry.js +1 -0
  203. package/dist/vega/p-e4fbd2b7.entry.js +1 -0
  204. package/dist/vega/p-eaa43f31.entry.js +1 -0
  205. package/dist/vega/p-ed50233f.entry.js +1 -0
  206. package/dist/vega/p-f1a2658b.entry.js +1 -0
  207. package/dist/vega/p-fc4c5265.entry.js +1 -0
  208. package/dist/vega/vega.esm.js +1 -1
  209. package/package.json +4 -3
  210. package/dist/cjs/card-config-2ee5505e.js +0 -65
  211. package/dist/cjs/regex-c1f70fd4.js +0 -15
  212. package/dist/esm/card-config-d2ad484e.js +0 -63
  213. package/dist/esm/regex-dfe11abf.js +0 -8
  214. package/dist/vega/p-0a2ff1e2.js +0 -1
  215. package/dist/vega/p-0b2fef0d.entry.js +0 -1
  216. package/dist/vega/p-11663b1c.js +0 -1
  217. package/dist/vega/p-18711f87.entry.js +0 -1
  218. package/dist/vega/p-19aa2dbe.entry.js +0 -1
  219. package/dist/vega/p-23f0dfeb.entry.js +0 -1
  220. package/dist/vega/p-2cc8e5f0.entry.js +0 -1
  221. package/dist/vega/p-323d2af0.entry.js +0 -1
  222. package/dist/vega/p-33f45d1b.entry.js +0 -1
  223. package/dist/vega/p-35a3c0e5.entry.js +0 -1
  224. package/dist/vega/p-3a0a4d15.js +0 -1
  225. package/dist/vega/p-3ce966b2.entry.js +0 -1
  226. package/dist/vega/p-42632023.entry.js +0 -1
  227. package/dist/vega/p-4452e085.js +0 -1
  228. package/dist/vega/p-49fd1009.js +0 -1
  229. package/dist/vega/p-4ca12302.entry.js +0 -13
  230. package/dist/vega/p-4ee21459.entry.js +0 -1
  231. package/dist/vega/p-4fb159d5.js +0 -1
  232. package/dist/vega/p-53d67971.entry.js +0 -1
  233. package/dist/vega/p-55b4b6ff.entry.js +0 -1
  234. package/dist/vega/p-56290b7e.entry.js +0 -1
  235. package/dist/vega/p-57ea996e.entry.js +0 -1
  236. package/dist/vega/p-5b7d347a.js +0 -1
  237. package/dist/vega/p-5e2c9e69.js +0 -1
  238. package/dist/vega/p-6a24c2d9.entry.js +0 -1
  239. package/dist/vega/p-6e42d500.entry.js +0 -1
  240. package/dist/vega/p-778b1d71.entry.js +0 -1
  241. package/dist/vega/p-7b1bb372.entry.js +0 -1
  242. package/dist/vega/p-7b365345.entry.js +0 -1
  243. package/dist/vega/p-801cb489.entry.js +0 -1
  244. package/dist/vega/p-80aac6eb.entry.js +0 -1
  245. package/dist/vega/p-966a9940.entry.js +0 -1
  246. package/dist/vega/p-a0954e7c.entry.js +0 -1
  247. package/dist/vega/p-aeea4154.entry.js +0 -1
  248. package/dist/vega/p-b6f78c1e.entry.js +0 -1
  249. package/dist/vega/p-c131544b.entry.js +0 -1
  250. package/dist/vega/p-cc20f01f.entry.js +0 -1
  251. package/dist/vega/p-d590402d.entry.js +0 -1
  252. package/dist/vega/p-d7558ed7.entry.js +0 -1
  253. package/dist/vega/p-d8566958.entry.js +0 -1
  254. package/dist/vega/p-e4674c00.entry.js +0 -1
  255. package/dist/vega/p-e9d2e0dc.entry.js +0 -1
  256. package/dist/vega/p-ee1e7389.entry.js +0 -1
  257. package/dist/vega/p-f993bcca.entry.js +0 -1
  258. package/dist/vega/p-ffaee583.entry.js +0 -1
@@ -194,6 +194,19 @@ export class VegaDatePicker {
194
194
  * @vegaVersion 1.3.0
195
195
  */
196
196
  this.disabled = false;
197
+ /**
198
+ * Specifies a predicate function that determines whether a given date in the date picker should be disabled (non-interactive).
199
+ *
200
+ * The function is called for each date cell before rendering.
201
+ *
202
+ * Return `true` to disable the cell, or false to keep it selectable.
203
+ * Default behavior: always returns `false` (no cells are disabled).
204
+ *
205
+ * @param date - The `Date` object for the cell being evaluated.
206
+ * @returns `true` if the cell should be disabled; otherwise `false`.
207
+ * @vegaVersion 2.60.0
208
+ */
209
+ this.isDateDisabled = () => false;
197
210
  }
198
211
  /*
199
212
  * The below method is e2e-test covered in
@@ -714,6 +727,36 @@ export class VegaDatePicker {
714
727
  },
715
728
  "attribute": "timezone",
716
729
  "reflect": false
730
+ },
731
+ "isDateDisabled": {
732
+ "type": "unknown",
733
+ "mutable": false,
734
+ "complexType": {
735
+ "original": "DisabledDate",
736
+ "resolved": "(date: Date) => boolean",
737
+ "references": {
738
+ "DisabledDate": {
739
+ "location": "import",
740
+ "path": "../vega-calendar/types"
741
+ }
742
+ }
743
+ },
744
+ "required": false,
745
+ "optional": false,
746
+ "docs": {
747
+ "tags": [{
748
+ "name": "param",
749
+ "text": "date - The `Date` object for the cell being evaluated."
750
+ }, {
751
+ "name": "returns",
752
+ "text": "`true` if the cell should be disabled; otherwise `false`."
753
+ }, {
754
+ "name": "vegaVersion",
755
+ "text": "2.60.0"
756
+ }],
757
+ "text": "Specifies a predicate function that determines whether a given date in the date picker should be disabled (non-interactive).\n\nThe function is called for each date cell before rendering.\n\nReturn `true` to disable the cell, or false to keep it selectable.\nDefault behavior: always returns `false` (no cells are disabled)."
758
+ },
759
+ "defaultValue": "() => false"
717
760
  }
718
761
  }; }
719
762
  static get events() { return [{
@@ -11,8 +11,6 @@ import { NumberMaskStrategy, } from '../../../../helpers/formatter/string-format
11
11
  import { StringInputFormatterSlimmer } from '../../../../helpers/slimmers/string-input-formatter-slimmer';
12
12
  import { CustomFormatterStrategy } from '../../../../helpers/formatter/string-formatter/custom-formatter-strategy';
13
13
  import { NumberThousandCommaStrategy } from '../../../../helpers/formatter/string-formatter/number-thousand-comma-strategy';
14
- import { CreditCardInputMaskStrategy } from '../../../../helpers/formatter/string-formatter/credit-card-input-mask-strategy';
15
- import { CreditCardBlurMaskStrategy } from '../../../../helpers/formatter/string-formatter/credit-card-blur-mask-strategy';
16
14
  /** The `VegaInputMaskConfigController` class in TypeScript manages input mask configuration and string formatting for an input element within a component's shadow root. */
17
15
  export class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
18
16
  constructor() {
@@ -108,14 +106,10 @@ export class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
108
106
  case 'number':
109
107
  stringFormatStrategy = this.getNumberTypeMaskStrategy(maskConfig.options);
110
108
  break;
111
- case 'credit-card':
112
- stringFormatStrategy =
113
- maskTrigger === 'input'
114
- ? new CreditCardInputMaskStrategy()
115
- : new CreditCardBlurMaskStrategy(maskConfig.hideCardNumberOnBlur);
116
- break;
117
109
  case 'custom':
118
- stringFormatStrategy = new StringMaskStrategy(maskConfig.options);
110
+ stringFormatStrategy = maskConfig.strategy
111
+ ? maskConfig.strategy()
112
+ : new StringMaskStrategy(maskConfig.options);
119
113
  break;
120
114
  case 'custom-formatter':
121
115
  stringFormatStrategy = new CustomFormatterStrategy(maskConfig.formatter, maskConfig.resetCaretPosition);
@@ -148,8 +142,7 @@ export class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
148
142
  * 'custom' and a trigger of 'blur'.
149
143
  */
150
144
  isBlurModeMaskConfig(maskConfig) {
151
- return ((maskConfig.type === 'custom' || maskConfig.type === 'credit-card') &&
152
- maskConfig.trigger === 'blur');
145
+ return maskConfig.type === 'custom' && maskConfig.trigger === 'blur';
153
146
  }
154
147
  }
155
148
  __decorate([
@@ -924,7 +924,7 @@ export class VegaInput {
924
924
  "mutable": false,
925
925
  "complexType": {
926
926
  "original": "MaskConfigType | MaskConfigType[]",
927
- "resolved": "MaskConfigType[] | ({ type: \"number\" | \"phone\" | \"zipcode\" | \"taxId\" | \"custom\" | \"thousand-comma\" | \"custom-formatter\" | \"credit-card\"; options?: MaskConfig | NumberMaskConfig; trigger?: \"blur\" | \"input\"; formatter?: (value: string) => string; resetCaretPosition?: boolean; hideCardNumberOnBlur?: boolean; })",
927
+ "resolved": "MaskConfigType[] | ({ type: \"number\" | \"phone\" | \"zipcode\" | \"taxId\" | \"custom\" | \"thousand-comma\" | \"custom-formatter\"; options?: MaskConfig | NumberMaskConfig; trigger?: \"blur\" | \"input\"; formatter?: (value: string) => string; resetCaretPosition?: boolean; strategy?: () => StringFormatStrategy; })",
928
928
  "references": {
929
929
  "MaskConfigType": {
930
930
  "location": "import",
@@ -22,6 +22,8 @@ import { VegaInternalIconManager } from '../../helpers/icon/internal-icon-manage
22
22
  import { FeatureFlag } from '../../helpers/feature-control/feature-flag-controller';
23
23
  import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../helpers/slimmers/component-usage-runtime-metrics';
24
24
  import { VegaInputCreditCardRuntimeMetricsPayloadDefinition } from '../../constants/runtime-metrics-payload-definition/vega-input-credit-card/runtime-metrics-payload-definition';
25
+ import { CreditCardInputMaskStrategy } from '../../helpers/formatter/string-formatter/credit-card-input-mask-strategy';
26
+ import { CreditCardBlurMaskStrategy } from '../../helpers/formatter/string-formatter/credit-card-blur-mask-strategy';
25
27
  /**
26
28
  * @vegaVersion 1.26.0
27
29
  */
@@ -194,13 +196,14 @@ export class VegaInputCreditCard {
194
196
  getMaskConfig() {
195
197
  return [
196
198
  {
197
- type: 'credit-card',
199
+ type: 'custom',
198
200
  trigger: 'input',
201
+ strategy: () => new CreditCardInputMaskStrategy(),
199
202
  },
200
203
  {
201
- type: 'credit-card',
204
+ type: 'custom',
202
205
  trigger: 'blur',
203
- hideCardNumberOnBlur: this.hideCardNumberOnBlur,
206
+ strategy: () => new CreditCardBlurMaskStrategy(this.hideCardNumberOnBlur),
204
207
  },
205
208
  ];
206
209
  }
@@ -9,24 +9,12 @@ import { MapToComponentField, VegaSlimmer } from 'vega-slimmer/core';
9
9
  import { DomNodeSubjectObserverFactory } from '../../../../helpers/change-manager/subject/dom-node-subject/dom-node-subject-observer-factory';
10
10
  import { VegaChange } from '../../../../helpers/event-manager/event-id/vega-event-id';
11
11
  import { parseIncompletePhoneNumber } from 'libphonenumber-js';
12
+ import { VegaPhoneNumberInputStrategy } from '../../../../helpers/formatter/string-formatter/vega-phone-number-input-strategy';
12
13
  export class PhoneNumberInputRenderer extends VegaSlimmer {
13
14
  constructor() {
14
15
  super(...arguments);
15
16
  this.phoneNumberMaskFormatter = (rawValue) => {
16
17
  const newValue = parseIncompletePhoneNumber(rawValue);
17
- /*
18
- * The below method is e2e-test covered in
19
- * @see{module:vega-input-phone-number-input-delete}
20
- */
21
- /* istanbul ignore next */
22
- /**
23
- * work around for keyboard press Backspace
24
- * (123) -> (123
25
- */
26
- if (newValue === parseIncompletePhoneNumber(this.phoneNumberInputValue) &&
27
- this.phoneNumberInputValue.length > rawValue.length) {
28
- return this.phoneNumberInputValue.slice(0, -1);
29
- }
30
18
  return this.valueController.formatNationalNumber(newValue);
31
19
  };
32
20
  }
@@ -52,9 +40,8 @@ export class PhoneNumberInputRenderer extends VegaSlimmer {
52
40
  this.inputRef = ref;
53
41
  DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaChange, this.handleInputChange.bind(this));
54
42
  }, value: this.phoneNumberInputValue, maskConfig: {
55
- type: 'custom-formatter',
56
- formatter: this.phoneNumberMaskFormatter,
57
- resetCaretPosition: true,
43
+ type: 'custom',
44
+ strategy: () => new VegaPhoneNumberInputStrategy(this.phoneNumberMaskFormatter),
58
45
  } })));
59
46
  }
60
47
  /**
@@ -42,7 +42,7 @@ export class LinkAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
42
42
  */
43
43
  generateLinkAnnotations(element) {
44
44
  const annotations = {
45
- href: element.href,
45
+ href: element.getAttribute('href') || '',
46
46
  groupKey: generateUUID(),
47
47
  };
48
48
  this.handlers.forEach((handler) => {
@@ -6,7 +6,7 @@ export const CARDS_INFO = [
6
6
  iconName: 'visa',
7
7
  pattern: VisaRegex,
8
8
  maskConfig: {
9
- type: 'credit-card',
9
+ type: 'custom',
10
10
  options: {
11
11
  mask: '9999 9999 9999 9999 999',
12
12
  slot: '9',
@@ -20,7 +20,7 @@ export const CARDS_INFO = [
20
20
  iconName: 'mastercard',
21
21
  pattern: MasterCardRegex,
22
22
  maskConfig: {
23
- type: 'credit-card',
23
+ type: 'custom',
24
24
  options: {
25
25
  mask: '9999 9999 9999 9999',
26
26
  slot: '9',
@@ -34,7 +34,7 @@ export const CARDS_INFO = [
34
34
  iconName: 'amex',
35
35
  pattern: AmexRegex,
36
36
  maskConfig: {
37
- type: 'credit-card',
37
+ type: 'custom',
38
38
  options: {
39
39
  mask: '9999 999999 99999',
40
40
  slot: '9',
@@ -48,7 +48,7 @@ export const CARDS_INFO = [
48
48
  iconName: 'discover',
49
49
  pattern: DiscoverRegex,
50
50
  maskConfig: {
51
- type: 'credit-card',
51
+ type: 'custom',
52
52
  options: {
53
53
  mask: '9999 9999 9999 9999',
54
54
  slot: '9',
@@ -48,7 +48,7 @@ export class CreditCardBlurMaskStrategy extends CreditCardMaskStrategy {
48
48
  */
49
49
  generateDynamicMask(value) {
50
50
  const maskConfig = {
51
- type: 'credit-card',
51
+ type: 'custom',
52
52
  options: {
53
53
  mask: '',
54
54
  slot: '9',
@@ -0,0 +1,104 @@
1
+ import { StringFormatStrategy } from './string-format-strategy.abstract';
2
+ import { isNonNullable } from '../../../types/type-guard';
3
+ /**
4
+ * A class for formatting phone number with the given mask format
5
+ *
6
+ * @augments StringFormatStrategy
7
+ */
8
+ export class VegaPhoneNumberInputStrategy extends StringFormatStrategy {
9
+ constructor(formatter) {
10
+ super();
11
+ this.formatter = formatter;
12
+ }
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ format(input) {
17
+ return this.formatter(input);
18
+ }
19
+ /*
20
+ * The below method is e2e-test covered in
21
+ * module: Should show normal when phone number with same country code
22
+ */
23
+ /* istanbul ignore next */
24
+ /**
25
+ * Get the position of
26
+ *
27
+ * @param {string} input - The input string
28
+ * @param {number} caretPosition - The current position of caret
29
+ * @returns {Nullable<number>} The new position of caret
30
+ */
31
+ calculateCaretPosition(input, caretPosition) {
32
+ if (isNonNullable(caretPosition)) {
33
+ const startValue = input.substring(0, caretPosition);
34
+ const numberCount = this.countNumbers(startValue);
35
+ const maskedInputValue = this.format(input);
36
+ const maskedStartValue = this.truncateToNumberCount(maskedInputValue, numberCount);
37
+ if (maskedStartValue.length !== startValue.length &&
38
+ !(maskedStartValue.endsWith(')') && maskedStartValue.slice(0, -1) === startValue)) {
39
+ return caretPosition + (maskedStartValue.length - startValue.length);
40
+ }
41
+ else {
42
+ return caretPosition;
43
+ }
44
+ }
45
+ }
46
+ /**
47
+ * Trigger the formatter at init
48
+ *
49
+ * @returns {boolean} true or false
50
+ */
51
+ shouldTriggerAtInit() {
52
+ return true;
53
+ }
54
+ /**
55
+ * Count the numbers in a given string
56
+ *
57
+ * @param {string} value - given string
58
+ * @returns {number} count
59
+ */
60
+ countNumbers(value) {
61
+ let count = 0;
62
+ for (let i = 0; i < value.length; i++) {
63
+ const char = value[i];
64
+ if (!isNaN(parseInt(char, 10)) && char !== ' ') {
65
+ count++;
66
+ }
67
+ }
68
+ return count;
69
+ }
70
+ /**
71
+ * The below method is e2e-test covered in
72
+ *
73
+ * module:vega-input-phone-number-input-delete
74
+ */
75
+ /* istanbul ignore next */
76
+ /**
77
+ *
78
+ * @param {string} value - a given string
79
+ * @param {number} count - count of numbers
80
+ * @returns {string} the return string
81
+ */
82
+ truncateToNumberCount(value, count) {
83
+ let numberCount = 0;
84
+ let result = '';
85
+ if (count <= 0)
86
+ return '';
87
+ for (let i = 0; i < value.length; i++) {
88
+ const char = value[i];
89
+ if (/^\d$/.test(char)) {
90
+ if (numberCount >= count) {
91
+ break;
92
+ }
93
+ numberCount++;
94
+ result += char;
95
+ }
96
+ else {
97
+ if (numberCount < count || char === ')') {
98
+ result += char;
99
+ }
100
+ }
101
+ }
102
+ return result;
103
+ }
104
+ }
@@ -0,0 +1,43 @@
1
+ import { VegaPhoneNumberInputStrategy } from '../../string-formatter/vega-phone-number-input-strategy';
2
+ test('vega phone number input strategy should work as expected', () => {
3
+ const strategy = new VegaPhoneNumberInputStrategy(formatNumberWithSpaces);
4
+ expect(strategy.format('')).toBe('');
5
+ expect(strategy.format('123')).toBe('123');
6
+ expect(strategy.format('123456')).toBe('(123 456)');
7
+ expect(strategy.format('12345678')).toBe('(12 345 678)');
8
+ expect(strategy.format('12 345 678')).toBe('(12 345 678)');
9
+ });
10
+ test('calculate caret position', () => {
11
+ const strategy = new VegaPhoneNumberInputStrategy(formatNumberWithSpaces);
12
+ expect(strategy.calculateCaretPosition('111', 3)).toEqual(3);
13
+ expect(strategy.calculateCaretPosition('1111', 4)).toEqual(7);
14
+ expect(strategy.calculateCaretPosition('1111111', 7)).toEqual(11);
15
+ expect(strategy.calculateCaretPosition('1 234 512 345 123 451', 21)).toEqual(23);
16
+ expect(strategy.calculateCaretPosition('1 111', 3)).toEqual(4);
17
+ expect(strategy.calculateCaretPosition('1 1111', 4)).toEqual(5);
18
+ expect(strategy.calculateCaretPosition('111 111', 5)).toEqual(6);
19
+ });
20
+ /**
21
+ * Formats a number or numeric string with spaces separating every 3 digits (from the right)
22
+ * and wraps the result in parentheses if input length is more than 3 digits.
23
+ */
24
+ function formatNumberWithSpaces(input) {
25
+ // Validate and convert input to a clean numeric string
26
+ const numericStr = (input || '').replace(/\D/g, '');
27
+ // Return original input if we couldn't get valid digits
28
+ if (!numericStr || numericStr.length === 0)
29
+ return String(input);
30
+ const chunks = [];
31
+ const totalLength = numericStr.length;
32
+ const firstChunkLength = totalLength % 3;
33
+ // Add first chunk if it has content
34
+ if (firstChunkLength > 0) {
35
+ chunks.push(numericStr.substring(0, firstChunkLength));
36
+ }
37
+ // Add remaining 3-digit chunks
38
+ for (let i = firstChunkLength; i < totalLength; i += 3) {
39
+ chunks.push(numericStr.substring(i, i + 3));
40
+ }
41
+ // Wrap the joined chunks in parentheses
42
+ return numericStr.length > 3 ? `(${chunks.join(' ')})` : `${chunks.join(' ')}`;
43
+ }
@@ -6,9 +6,9 @@ import { V as VegaIconManager } from './icon-manager-2ee1c619.js';
6
6
  import './wait-for-vega-handler-c2c07ac3.js';
7
7
  import './ui-c20be16d.js';
8
8
  import { V as VegaInternalTranslation, a as VegaTranslation, s as staticTranslations } from './translation-833d9ef4.js';
9
- import { V as VegaRTEContent } from './content-state-100d1efd.js';
9
+ import { V as VegaRTEContent } from './content-state-460f6254.js';
10
10
  import { T as TypographyUrls } from './typography-396de03f.js';
11
- import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-cc497bec.js';
11
+ import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-81443274.js';
12
12
  import { w as waitForVega } from './index-18a340fb.js';
13
13
  import { U as UPDATE_TRANSLATION } from './static-subject-title-633b3474.js';
14
14
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
@@ -328,7 +328,7 @@ function injectVegaRichTextEditorClassIntoGlobal() {
328
328
  * Inject VegaPublicValidationRules to global as a public api
329
329
  */
330
330
  function injectVegaPublicValidationRules() {
331
- void import('./public-rules-1016ce0c.js').then((module) => {
331
+ void import('./public-rules-71e1883d.js').then((module) => {
332
332
  Object.entries(module).forEach(([name, value]) => {
333
333
  globalThis[name] = value;
334
334
  });
@@ -3,7 +3,7 @@ import { d as domNodeSubjectFactory } from './dom-node-subject-factory-202655e7.
3
3
  import { b as VegaInternalRichTextEditorFlushChanges, c as VegaInternalRichTextEditorSelectionRangeChange } from './vega-internal-event-id-b7c865de.js';
4
4
  import { c as camelToDashCase } from './string-a953eafc.js';
5
5
  import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
6
- import { i as isNonNullable } from './type-guard-84b1f192.js';
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
8
  import { V as VegaInternalThemeManager } from './dark-mode-style-controller-3bbb32dc.js';
9
9
  import { c as cleanObject } from './object-66c37948.js';
@@ -1,5 +1,5 @@
1
1
  import { M as MapToComponentMethod, V as VegaSlimmer, L as LogUtility, c as MapToComponentField } from './global-slimmer-registry-17c4efd4.js';
2
- import { J as RTENode, q as RTEDecoratorNode, s as stateEntityRenderingRegistry, X as RTECodeBlockNode, a as RTETextNode, Z as ZERO_WIDTH_SPACE, T as SelectionChangeAction, O as InternalAnnotationTypeEnum, l as RTEBlock, o as RTECodeBlock } from './code-block-3d519665.js';
2
+ import { J as RTENode, q as RTEDecoratorNode, s as stateEntityRenderingRegistry, X as RTECodeBlockNode, a as RTETextNode, Z as ZERO_WIDTH_SPACE, T as SelectionChangeAction, O as InternalAnnotationTypeEnum, l as RTEBlock, o as RTECodeBlock } from './code-block-055cae13.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';
@@ -9,7 +9,7 @@ import { O as Observer } from './observer-3959f9dd.js';
9
9
  import { i as isHTMLElement } from './ui-c20be16d.js';
10
10
  import { S as SynchronizeTaskQueue } from './synchronize-task-queue-ac8acc3b.js';
11
11
  import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-999e21e3.js';
12
- import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-818050ee.js';
12
+ import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-cae3a002.js';
13
13
 
14
14
  let processing = false;
15
15
  /**
@@ -1,6 +1,6 @@
1
- import { A as ActionHandleStrategy, R as RTETextBlock, a as RTETextNode, b as AppendChildrenAction, c as ActionHandleStrategyRegistry, M as ModifyContentActionType, B as BlockInsertLineBreakStrategy, d as BlockInsertLineBreakWithBlocksStrategy, e as BlockSplitWithTextNodeStrategy, f as BlockReplaceNodesStrategy, g as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, h as RemoveChildrenAction, S as SyncUpSelectionAction, i as InsertChildrenBeforeAction, j as BlockAnnotation, k as BlockAnnotationTypeEnum, l as RTEBlock, C as CustomStyleAnnotation, m as CustomClassAnnotation, n as CustomAttributeAnnotation, o as RTECodeBlock, s as stateEntityRenderingRegistry, N as NodeAnnotation, p as NodeAnnotationTypeEnum, q as RTEDecoratorNode, r as NodeTypeEnum, t as CommonAnnotation, u as AnnotationAction, v as ReplaceChildNodesAction, w as ModifyContentAction, x as SplitBlockWithNodeAction, H as HorizontalAlignmentAnnotationAction, y as BlockUpdateHorizontalAlignmentStrategy, z as RTEDTOClassManager, D as BlockDeleteNodeContentStrategy, U as UpdateTextAction, E as RemoveChildrenStrategy, F as RTE_TEXT_COLORS, G as RTE_DEFAULT_TEXT_COLOR } from './code-block-3d519665.js';
1
+ import { A as ActionHandleStrategy, R as RTETextBlock, a as RTETextNode, b as AppendChildrenAction, c as ActionHandleStrategyRegistry, M as ModifyContentActionType, B as BlockInsertLineBreakStrategy, d as BlockInsertLineBreakWithBlocksStrategy, e as BlockSplitWithTextNodeStrategy, f as BlockReplaceNodesStrategy, g as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, h as RemoveChildrenAction, S as SyncUpSelectionAction, i as InsertChildrenBeforeAction, j as BlockAnnotation, k as BlockAnnotationTypeEnum, l as RTEBlock, C as CustomStyleAnnotation, m as CustomClassAnnotation, n as CustomAttributeAnnotation, o as RTECodeBlock, s as stateEntityRenderingRegistry, N as NodeAnnotation, p as NodeAnnotationTypeEnum, q as RTEDecoratorNode, r as NodeTypeEnum, t as CommonAnnotation, u as AnnotationAction, v as ReplaceChildNodesAction, w as ModifyContentAction, x as SplitBlockWithNodeAction, H as HorizontalAlignmentAnnotationAction, y as BlockUpdateHorizontalAlignmentStrategy, z as RTEDTOClassManager, D as BlockDeleteNodeContentStrategy, U as UpdateTextAction, E as RemoveChildrenStrategy, F as RTE_TEXT_COLORS, G as RTE_DEFAULT_TEXT_COLOR } from './code-block-055cae13.js';
2
2
  import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
3
- import { i as isNonNullable } from './type-guard-84b1f192.js';
3
+ import { i as isNonNullable } from './type-guard-12f7654b.js';
4
4
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
5
5
  import { d as domNodeSubjectFactory } from './dom-node-subject-factory-202655e7.js';
6
6
  import { a as VegaInternalUpdateRTECursorPosition } from './vega-internal-event-id-b7c865de.js';
@@ -2103,7 +2103,7 @@ class LinkAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
2103
2103
  */
2104
2104
  generateLinkAnnotations(element) {
2105
2105
  const annotations = {
2106
- href: element.href,
2106
+ href: element.getAttribute('href') || '',
2107
2107
  groupKey: generateUUID(),
2108
2108
  };
2109
2109
  this.handlers.forEach((handler) => {
@@ -1,9 +1,9 @@
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-84b1f192.js';
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-4bf60125.js';
4
+ import { R as ResponsiveFormatFacade } from './responsive-format-facade-dbeffcd6.js';
5
5
  import { a as TypographyKeys } from './typography-396de03f.js';
6
- import { S as StateVariantFormatter, s as stateBackgroundColorFormatter } from './state-background-color-formatter-da5e76e8.js';
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';
8
8
 
9
9
  /**
@@ -4,8 +4,8 @@ import { I as InternalVegaZIndexManager } from './vega-skeleton-loader-controlle
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
- import { A as isTranslocationType } from './type-guard-84b1f192.js';
8
- import { R as ResponsiveFormatFacade } from './responsive-format-facade-4bf60125.js';
7
+ import { E as isTranslocationType } from './type-guard-12f7654b.js';
8
+ import { R as ResponsiveFormatFacade } from './responsive-format-facade-dbeffcd6.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-633b3474.js';
11
11
  import { O as Observer } from './observer-3959f9dd.js';
@@ -1,11 +1,11 @@
1
1
  import { h } from './index-057d0f70.js';
2
2
  import { V as VegaInternalIconManager } from './internal-icon-manager-7eac52c8.js';
3
3
  import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
4
- import { V as TextSplittableAction, W as TextColorAnnotation, F as RTE_TEXT_COLORS, a as RTETextNode, X as RTECodeBlockNode, p as NodeAnnotationTypeEnum, u as AnnotationAction } from './code-block-3d519665.js';
4
+ import { V as TextSplittableAction, W as TextColorAnnotation, F as RTE_TEXT_COLORS, a as RTETextNode, X as RTECodeBlockNode, p as NodeAnnotationTypeEnum, u as AnnotationAction } from './code-block-055cae13.js';
5
5
  import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-999e21e3.js';
6
6
  import { a as VegaClick, M as VegaPopoverShow, N as VegaPopoverHide, f as VegaChange } from './dom-node-subject-factory-202655e7.js';
7
7
  import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-3bbb32dc.js';
8
- import { I as ImageAnnotation } from './content-state-100d1efd.js';
8
+ import { I as ImageAnnotation } from './content-state-460f6254.js';
9
9
 
10
10
  const text = {
11
11
  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>`,
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export { g as getCurrentBreakpoint } from './page-resize-observer-slimmer-0bf7fbf3.js';
2
2
  export { L as LogUtility, s as setVegaLogLevel } from './global-slimmer-registry-17c4efd4.js';
3
- export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-80dd7d60.js';
3
+ export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-e1821e4a.js';
4
4
  export { c as camelToDashCase } from './string-a953eafc.js';
5
- export { d as BackgroundColorMap, a as BackgroundColors, e as BorderColorMap, b as BorderColors, B as BorderRadius, C as Colors, F as FillBackgroundColors, g as ShadowMap, f as Shadows, h as Spacing, S as StrokeBackgroundColors, c as TextColorMap, T as TextColors } from './type-guard-84b1f192.js';
5
+ export { d as BackgroundColorMap, a as BackgroundColors, e as BorderColorMap, b as BorderColors, B as BorderRadius, C as Colors, F as FillBackgroundColors, g as ShadowMap, f as Shadows, h as Spacing, S as StrokeBackgroundColors, c as TextColorMap, T as TextColors } from './type-guard-12f7654b.js';
6
6
  export { B as Breakpoints } from './breakpoints-d9faf11c.js';
7
7
  export { I as Icons, g as getIconFromToken } from './icons-8627925e.js';
8
8
  export { b as Typography, a as TypographyKeys, T as TypographyUrls } from './typography-396de03f.js';
@@ -12,24 +12,23 @@ export { c as VegaDialog, d as VegaEventManager, V as VegaLoader, a as VegaNotif
12
12
  export { F as FeatureFlag } from './feature-flag-controller-51659753.js';
13
13
  export { B as VegaJQueryDelegatedEventStrategy } from './internal-vega-event-manager-526f8ed1.js';
14
14
  export { V as VegaIconManager } from './icon-manager-2ee1c619.js';
15
- export { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-cc497bec.js';
15
+ export { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-81443274.js';
16
16
  export { w as waitForVega } from './index-18a340fb.js';
17
17
  export { a as VegaTranslation, s as VegaTranslationResourceEN } from './translation-833d9ef4.js';
18
- export { R as RTEImageBlock, c as RTEImageNode, b as RTEListBlock, a as RTEListItemBlock, V as VegaRTEContent } from './content-state-100d1efd.js';
19
- export { K as CodeLanguage, w as ModifyContentAction, l as RTEBlock, J as RTENode, R as RTETextBlock, a as RTETextNode } from './code-block-3d519665.js';
20
- export { G as GridColumns, a as GridRows } from './responsive-format-facade-4bf60125.js';
18
+ export { R as RTEImageBlock, c as RTEImageNode, b as RTEListBlock, a as RTEListItemBlock, V as VegaRTEContent } from './content-state-460f6254.js';
19
+ export { K as CodeLanguage, w as ModifyContentAction, l as RTEBlock, J as RTENode, R as RTETextBlock, a as RTETextNode } from './code-block-055cae13.js';
20
+ export { G as GridColumns, a as GridRows } from './responsive-format-facade-dbeffcd6.js';
21
21
  export { C as CheckBoxRequiredRule } from './check-box-required-rule-cb0aa339.js';
22
22
  export { D as DateRequiredRule } from './date-required-rule-8944f3bf.js';
23
23
  export { I as InputPhoneNumberRequiredRule } from './input-phone-number-required-rule-be6a5572.js';
24
24
  export { I as InputRangeRequiredRule } from './input-range-required-rule-3ad74776.js';
25
25
  export { R as RequiredFieldRule } from './required-field-rule-ab4bdc47.js';
26
- export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-423c3c83.js';
26
+ export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-6cfdcaaf.js';
27
27
  export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-a01163b5.js';
28
28
  export { T as ToggleSwitchRequiredRule } from './toggle-switch-required-rule-b3cf4302.js';
29
29
  export { F as FileUploaderRequiredRule } from './file-uploader-required-rule-ad886d01.js';
30
30
  import './try-get-document-bef0f526.js';
31
- import './state-background-color-formatter-da5e76e8.js';
32
- import './regex-dfe11abf.js';
31
+ import './state-background-color-formatter-0f01d27a.js';
33
32
  import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
34
33
  import './dynamic-slimmer-90b8af32.js';
35
34
  import './ui-c20be16d.js';
@@ -1,4 +1,4 @@
1
- import { K as KeyboardManager } from './keyboard-manager-fa6355cb.js';
1
+ import { K as KeyboardManager } from './keyboard-manager-ab521d22.js';
2
2
 
3
3
  /**
4
4
  * It takes a function that returns an array of keyboard event listeners, and returns a decorator
@@ -1,5 +1,5 @@
1
1
  import { b as isParent, e as getDeepActiveElementInShadow } from './ui-c20be16d.js';
2
- import { i as isNonNullable } from './type-guard-84b1f192.js';
2
+ import { i as isNonNullable } from './type-guard-12f7654b.js';
3
3
 
4
4
  /**
5
5
  * It listens to the keyup event on the window and calls the appropriate method on the registered elements
@@ -1,5 +1,5 @@
1
1
  import { M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
2
- import { K as KeyboardManager } from './keyboard-manager-fa6355cb.js';
2
+ import { K as KeyboardManager } from './keyboard-manager-ab521d22.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;