@globalpayments/vega 2.53.0 → 2.55.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 (264) hide show
  1. package/dist/cjs/{app-globals-4ecf85bb.js → app-globals-f1ff47e3.js} +1 -1
  2. package/dist/cjs/{selection-controller-1d7c0999.js → component-value-history-controller-slimmer.abstract-6bfb9145.js} +82 -0
  3. package/dist/cjs/{design-token-3f4f0bc3.js → design-token-d15e60fa.js} +1 -1
  4. package/dist/cjs/{element-appender-slimmer-1946ff07.js → element-appender-slimmer-2f16891f.js} +3 -3
  5. package/dist/cjs/{form-field-controller-slimmer-e721359b.js → form-field-controller-slimmer-dc6d0fe1.js} +1 -1
  6. package/dist/cjs/index.cjs.js +5 -4
  7. package/dist/cjs/{inject-keyboard-manager-dd628ccc.js → inject-keyboard-manager-11df8296.js} +1 -1
  8. package/dist/cjs/{keyboard-manager-8c74eeb9.js → keyboard-manager-1843112c.js} +6 -0
  9. package/dist/cjs/{keyboard-manager-slimmer-eb364bee.js → keyboard-manager-slimmer-0a5f5770.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +5 -4
  11. package/dist/cjs/{page-resize-observer-slimmer-efa79728.js → page-resize-observer-slimmer-11937d6f.js} +3 -3
  12. package/dist/cjs/{responsive-format-facade-6b81192d.js → responsive-format-facade-4a19e115.js} +2 -2
  13. package/dist/cjs/{style-formatter-497d0fa4.js → style-formatter-b8cea5ee.js} +1 -1
  14. package/dist/cjs/vega-accordion.cjs.entry.js +5 -5
  15. package/dist/cjs/vega-app-footer.cjs.entry.js +2 -2
  16. package/dist/cjs/vega-app-header-button.cjs.entry.js +4 -4
  17. package/dist/cjs/vega-box.cjs.entry.js +6 -5
  18. package/dist/cjs/vega-button-circle.cjs.entry.js +5 -5
  19. package/dist/cjs/vega-button.cjs.entry.js +4 -4
  20. package/dist/cjs/vega-calendar_3.cjs.entry.js +1 -1
  21. package/dist/cjs/vega-card.cjs.entry.js +5 -4
  22. package/dist/cjs/vega-carousel.cjs.entry.js +22 -23
  23. package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
  24. package/dist/cjs/vega-chip.cjs.entry.js +5 -5
  25. package/dist/cjs/vega-code-block.cjs.entry.js +210 -94
  26. package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
  27. package/dist/cjs/vega-combo-box.cjs.entry.js +5 -5
  28. package/dist/cjs/vega-date-picker_2.cjs.entry.js +8 -8
  29. package/dist/cjs/vega-dialog_2.cjs.entry.js +5 -5
  30. package/dist/cjs/vega-divider.cjs.entry.js +5 -4
  31. package/dist/cjs/vega-dropdown_5.cjs.entry.js +24 -9
  32. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  33. package/dist/cjs/vega-file-uploader.cjs.entry.js +2 -2
  34. package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -4
  35. package/dist/cjs/vega-flex.cjs.entry.js +6 -5
  36. package/dist/cjs/vega-font.cjs.entry.js +5 -4
  37. package/dist/cjs/vega-form.cjs.entry.js +3 -3
  38. package/dist/cjs/vega-grid.cjs.entry.js +5 -4
  39. package/dist/cjs/vega-icon.cjs.entry.js +4 -4
  40. package/dist/cjs/vega-image-uploader.cjs.entry.js +5 -5
  41. package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
  42. package/dist/cjs/vega-input-numeric.cjs.entry.js +4 -4
  43. package/dist/cjs/vega-input-phone-number.cjs.entry.js +4 -4
  44. package/dist/cjs/vega-input-range.cjs.entry.js +2 -2
  45. package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
  46. package/dist/cjs/vega-input.cjs.entry.js +2 -2
  47. package/dist/cjs/vega-left-nav_5.cjs.entry.js +6 -6
  48. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +4 -3
  49. package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
  50. package/dist/cjs/vega-popover_2.cjs.entry.js +6 -6
  51. package/dist/cjs/vega-radio_2.cjs.entry.js +4 -4
  52. package/dist/cjs/vega-rich-text-content.cjs.entry.js +28 -4
  53. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +37 -75
  54. package/dist/cjs/vega-segment-control.cjs.entry.js +1 -1
  55. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +5 -5
  56. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +2 -2
  57. package/dist/cjs/vega-sidenav_3.cjs.entry.js +4 -4
  58. package/dist/cjs/vega-signature-capture.cjs.entry.js +5 -5
  59. package/dist/cjs/{vega-skeleton-loader-controller-ae2ab090.js → vega-skeleton-loader-controller-3833c813.js} +1 -1
  60. package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
  61. package/dist/cjs/vega-tab-group_2.cjs.entry.js +2 -2
  62. package/dist/cjs/vega-table_8.cjs.entry.js +4 -4
  63. package/dist/cjs/vega-text.cjs.entry.js +2 -1
  64. package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
  65. package/dist/cjs/vega-time-picker_2.cjs.entry.js +8 -8
  66. package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
  67. package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -6
  68. package/dist/cjs/vega.cjs.js +5 -4
  69. package/dist/collection/components/vega-app-footer/vega-app-footer.js +43 -3
  70. package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +1 -1
  71. package/dist/collection/components/vega-box/vega-box.js +4 -4
  72. package/dist/collection/components/vega-carousel/vega-carousel.js +19 -19
  73. package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-history-controller.js +88 -0
  74. package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-input-controller.js +36 -23
  75. package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-value-controller.js +11 -1
  76. package/dist/collection/components/vega-code-block/vega-code-block.js +5 -0
  77. package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +4 -1
  78. package/dist/collection/components/vega-dropdown/vega-dropdown.js +29 -0
  79. package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.css +1 -1
  80. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.js +28 -4
  81. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/history-controller.js +28 -67
  82. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +2 -2
  83. package/dist/collection/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-mode-controller.js +4 -1
  84. package/dist/collection/components/vega-virtual-scroll/vega-virtual-scroll.js +2 -1
  85. package/dist/collection/helpers/keyboard/keyboard-manager.js +6 -0
  86. package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +31 -0
  87. package/dist/collection/helpers/slimmers/component-value-history-controller-slimmer.abstract.js +81 -0
  88. package/dist/collection/helpers/slimmers/page-resize-observer-slimmer.js +3 -3
  89. package/dist/collection/helpers/slimmers/test/page-resize-observer-slimmer.test.js +56 -0
  90. package/dist/esm/{app-globals-d96d623d.js → app-globals-4881974a.js} +1 -1
  91. package/dist/esm/{selection-controller-3d6dfc87.js → component-value-history-controller-slimmer.abstract-0a0ef33f.js} +82 -1
  92. package/dist/esm/{design-token-2060cd0d.js → design-token-9bbefd23.js} +1 -1
  93. package/dist/esm/{element-appender-slimmer-dbdad1df.js → element-appender-slimmer-8652e8d7.js} +3 -3
  94. package/dist/esm/{form-field-controller-slimmer-846cda92.js → form-field-controller-slimmer-6f49d396.js} +1 -1
  95. package/dist/esm/index.js +5 -4
  96. package/dist/esm/{inject-keyboard-manager-e39c0fd9.js → inject-keyboard-manager-a15cf43c.js} +1 -1
  97. package/dist/esm/{keyboard-manager-9564ad83.js → keyboard-manager-f496a623.js} +6 -0
  98. package/dist/esm/{keyboard-manager-slimmer-2218e6ba.js → keyboard-manager-slimmer-a4cc9593.js} +1 -1
  99. package/dist/esm/loader.js +5 -4
  100. package/dist/esm/{page-resize-observer-slimmer-c51f1912.js → page-resize-observer-slimmer-0bf7fbf3.js} +3 -3
  101. package/dist/esm/{responsive-format-facade-8c0ce819.js → responsive-format-facade-bcc2fd21.js} +2 -2
  102. package/dist/esm/{style-formatter-1eca1299.js → style-formatter-00d6c32f.js} +1 -1
  103. package/dist/esm/vega-accordion.entry.js +5 -5
  104. package/dist/esm/vega-app-footer.entry.js +2 -2
  105. package/dist/esm/vega-app-header-button.entry.js +4 -4
  106. package/dist/esm/vega-box.entry.js +6 -5
  107. package/dist/esm/vega-button-circle.entry.js +5 -5
  108. package/dist/esm/vega-button.entry.js +4 -4
  109. package/dist/esm/vega-calendar_3.entry.js +1 -1
  110. package/dist/esm/vega-card.entry.js +5 -4
  111. package/dist/esm/vega-carousel.entry.js +22 -23
  112. package/dist/esm/vega-checkbox_2.entry.js +3 -3
  113. package/dist/esm/vega-chip.entry.js +5 -5
  114. package/dist/esm/vega-code-block.entry.js +207 -91
  115. package/dist/esm/vega-color-picker.entry.js +3 -3
  116. package/dist/esm/vega-combo-box.entry.js +5 -5
  117. package/dist/esm/vega-date-picker_2.entry.js +8 -8
  118. package/dist/esm/vega-dialog_2.entry.js +5 -5
  119. package/dist/esm/vega-divider.entry.js +5 -4
  120. package/dist/esm/vega-dropdown_5.entry.js +24 -9
  121. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  122. package/dist/esm/vega-file-uploader.entry.js +2 -2
  123. package/dist/esm/vega-flag-icon.entry.js +5 -4
  124. package/dist/esm/vega-flex.entry.js +6 -5
  125. package/dist/esm/vega-font.entry.js +5 -4
  126. package/dist/esm/vega-form.entry.js +3 -3
  127. package/dist/esm/vega-grid.entry.js +5 -4
  128. package/dist/esm/vega-icon.entry.js +4 -4
  129. package/dist/esm/vega-image-uploader.entry.js +5 -5
  130. package/dist/esm/vega-input-credit-card.entry.js +3 -3
  131. package/dist/esm/vega-input-numeric.entry.js +4 -4
  132. package/dist/esm/vega-input-phone-number.entry.js +4 -4
  133. package/dist/esm/vega-input-range.entry.js +2 -2
  134. package/dist/esm/vega-input-select.entry.js +5 -5
  135. package/dist/esm/vega-input.entry.js +2 -2
  136. package/dist/esm/vega-left-nav_5.entry.js +6 -6
  137. package/dist/esm/vega-loader-wrapper_2.entry.js +4 -3
  138. package/dist/esm/vega-pagination.entry.js +3 -3
  139. package/dist/esm/vega-popover_2.entry.js +6 -6
  140. package/dist/esm/vega-radio_2.entry.js +4 -4
  141. package/dist/esm/vega-rich-text-content.entry.js +28 -4
  142. package/dist/esm/vega-rich-text-editor_4.entry.js +35 -73
  143. package/dist/esm/vega-segment-control.entry.js +1 -1
  144. package/dist/esm/vega-selection-chip_2.entry.js +5 -5
  145. package/dist/esm/vega-selection-tile_2.entry.js +2 -2
  146. package/dist/esm/vega-sidenav_3.entry.js +4 -4
  147. package/dist/esm/vega-signature-capture.entry.js +5 -5
  148. package/dist/esm/{vega-skeleton-loader-controller-06f48dd2.js → vega-skeleton-loader-controller-9d1ffa6c.js} +1 -1
  149. package/dist/esm/vega-stepper.entry.js +3 -3
  150. package/dist/esm/vega-tab-group_2.entry.js +2 -2
  151. package/dist/esm/vega-table_8.entry.js +4 -4
  152. package/dist/esm/vega-text.entry.js +2 -1
  153. package/dist/esm/vega-textarea.entry.js +3 -3
  154. package/dist/esm/vega-time-picker_2.entry.js +8 -8
  155. package/dist/esm/vega-toggle-switch.entry.js +2 -2
  156. package/dist/esm/vega-tooltip_2.entry.js +7 -6
  157. package/dist/esm/vega.js +5 -4
  158. package/dist/types/components/vega-app-footer/types.d.ts +1 -0
  159. package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +12 -0
  160. package/dist/types/components/vega-app-header-button/types.d.ts +1 -0
  161. package/dist/types/components/vega-box/vega-box.d.ts +4 -4
  162. package/dist/types/components/vega-carousel/vega-carousel.d.ts +1 -1
  163. package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-history-controller.d.ts +47 -0
  164. package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-value-controller.d.ts +8 -1
  165. package/dist/types/components/vega-code-block/vega-code-block.d.ts +2 -0
  166. package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.d.ts +1 -0
  167. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +8 -0
  168. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.d.ts +6 -0
  169. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/history-controller.d.ts +8 -19
  170. package/dist/types/components/vega-virtual-scroll/vega-virtual-scroll.d.ts +1 -0
  171. package/dist/types/components.d.ts +40 -10
  172. package/dist/types/helpers/slimmers/component-value-history-controller-slimmer.abstract.d.ts +48 -0
  173. package/dist/types/utils/timer.d.ts +1 -1
  174. package/dist/vega/index.esm.js +1 -1
  175. package/dist/vega/{p-05588c85.entry.js → p-002062c3.entry.js} +1 -1
  176. package/dist/vega/{p-2490a391.entry.js → p-063d0bee.entry.js} +1 -1
  177. package/dist/vega/{p-029300db.entry.js → p-0e8324f2.entry.js} +1 -1
  178. package/dist/vega/{p-62734ef7.entry.js → p-13ca73c7.entry.js} +1 -1
  179. package/dist/vega/p-1b165fbb.entry.js +1 -0
  180. package/dist/vega/{p-2a4c313e.entry.js → p-1d41f551.entry.js} +1 -1
  181. package/dist/vega/p-1e4b6f0a.entry.js +1 -0
  182. package/dist/vega/{p-abac6b00.entry.js → p-23064067.entry.js} +1 -1
  183. package/dist/vega/{p-a2d47741.entry.js → p-246090cf.entry.js} +1 -1
  184. package/dist/vega/{p-5f594deb.entry.js → p-29262ad6.entry.js} +1 -1
  185. package/dist/vega/p-327be043.js +1 -0
  186. package/dist/vega/p-43ba9a8a.entry.js +1 -0
  187. package/dist/vega/{p-685939dc.entry.js → p-468bf93a.entry.js} +1 -1
  188. package/dist/vega/{p-310f0791.entry.js → p-4df90a1b.entry.js} +1 -1
  189. package/dist/vega/p-4f5079bc.entry.js +1 -0
  190. package/dist/vega/p-547692bf.entry.js +1 -0
  191. package/dist/vega/{p-e00da6d4.entry.js → p-56dc1345.entry.js} +1 -1
  192. package/dist/vega/{p-06db5a2e.entry.js → p-57005931.entry.js} +1 -1
  193. package/dist/vega/p-5a6b8846.entry.js +1 -0
  194. package/dist/vega/p-5e8e4aba.js +1 -0
  195. package/dist/vega/p-5f377954.js +1 -1
  196. package/dist/vega/{p-888e3f52.entry.js → p-61e1e356.entry.js} +1 -1
  197. package/dist/vega/p-6bd7114d.entry.js +1 -0
  198. package/dist/vega/{p-10edaab7.entry.js → p-72e14f49.entry.js} +1 -1
  199. package/dist/vega/p-73821eba.entry.js +1 -0
  200. package/dist/vega/{p-75855aaf.entry.js → p-7704a608.entry.js} +1 -1
  201. package/dist/vega/{p-7f2c98df.entry.js → p-78937642.entry.js} +1 -1
  202. package/dist/vega/{p-ca0294c9.entry.js → p-79370ad4.entry.js} +1 -1
  203. package/dist/vega/p-7cb11f3f.entry.js +1 -0
  204. package/dist/vega/p-7d9cd9c8.js +1 -0
  205. package/dist/vega/{p-40577e8e.js → p-822cd8e5.js} +1 -1
  206. package/dist/vega/{p-517615af.entry.js → p-8270bb8f.entry.js} +1 -1
  207. package/dist/vega/{p-c22c628b.entry.js → p-84a31a31.entry.js} +1 -1
  208. package/dist/vega/{p-092c87b5.entry.js → p-9a0d3d2d.entry.js} +1 -1
  209. package/dist/vega/p-9dc9fcf3.js +1 -0
  210. package/dist/vega/{p-fb306e0e.entry.js → p-a2c4c241.entry.js} +1 -1
  211. package/dist/vega/p-a46ac2eb.js +1 -0
  212. package/dist/vega/{p-adadb1a1.entry.js → p-a63e2fee.entry.js} +1 -1
  213. package/dist/vega/p-ad858290.entry.js +1 -0
  214. package/dist/vega/{p-3e8a8aa5.entry.js → p-b6e0d996.entry.js} +1 -1
  215. package/dist/vega/{p-33bd7e31.js → p-b89a9760.js} +1 -1
  216. package/dist/vega/{p-72eb8998.entry.js → p-bbdc6170.entry.js} +1 -1
  217. package/dist/vega/{p-35c9cd1d.entry.js → p-c10b4f47.entry.js} +1 -1
  218. package/dist/vega/{p-eeab4167.entry.js → p-c212a1e3.entry.js} +1 -1
  219. package/dist/vega/{p-e1ba6325.entry.js → p-c48a8510.entry.js} +1 -1
  220. package/dist/vega/{p-ab2a6d14.entry.js → p-c5afd9aa.entry.js} +1 -1
  221. package/dist/vega/{p-efb06a25.entry.js → p-c7e2a155.entry.js} +1 -1
  222. package/dist/vega/p-c8a87f06.entry.js +1 -0
  223. package/dist/vega/p-c990e249.js +1 -0
  224. package/dist/vega/{p-8d3764d3.entry.js → p-ca91268b.entry.js} +1 -1
  225. package/dist/vega/p-cae183fd.entry.js +1 -0
  226. package/dist/vega/p-cb36ccf0.entry.js +1 -0
  227. package/dist/vega/{p-55563f5f.js → p-cc6410e6.js} +1 -1
  228. package/dist/vega/{p-eb832119.js → p-d5f1794e.js} +1 -1
  229. package/dist/vega/{p-72e64237.js → p-da1d0c02.js} +1 -1
  230. package/dist/vega/{p-812b9d6d.entry.js → p-da95668c.entry.js} +1 -1
  231. package/dist/vega/p-e66f6b59.entry.js +9 -0
  232. package/dist/vega/p-e8b56d3f.entry.js +1 -0
  233. package/dist/vega/p-ec3495de.entry.js +1 -0
  234. package/dist/vega/{p-44dee180.entry.js → p-ecd9a973.entry.js} +1 -1
  235. package/dist/vega/p-f17c9093.entry.js +1 -0
  236. package/dist/vega/{p-b13fff4d.entry.js → p-f50cd6c3.entry.js} +1 -1
  237. package/dist/vega/{p-b4a1a8e1.entry.js → p-f7062473.entry.js} +1 -1
  238. package/dist/vega/{p-a0dab2d0.js → p-f9cf7e36.js} +1 -1
  239. package/dist/vega/{p-d8eec0bb.entry.js → p-fc790de5.entry.js} +1 -1
  240. package/dist/vega/vega.esm.js +1 -1
  241. package/package.json +1 -1
  242. package/dist/vega/p-06fb002a.js +0 -1
  243. package/dist/vega/p-0f034db5.entry.js +0 -1
  244. package/dist/vega/p-0fb26be0.entry.js +0 -9
  245. package/dist/vega/p-1df029c2.js +0 -1
  246. package/dist/vega/p-2f5d9aab.js +0 -1
  247. package/dist/vega/p-32a24ef1.entry.js +0 -1
  248. package/dist/vega/p-3a6b4208.entry.js +0 -1
  249. package/dist/vega/p-3b34389d.js +0 -1
  250. package/dist/vega/p-52905c68.entry.js +0 -1
  251. package/dist/vega/p-642da014.entry.js +0 -1
  252. package/dist/vega/p-65cca90f.js +0 -1
  253. package/dist/vega/p-7f0def5a.entry.js +0 -1
  254. package/dist/vega/p-834434d5.js +0 -1
  255. package/dist/vega/p-8a0d7805.entry.js +0 -1
  256. package/dist/vega/p-90954fe4.entry.js +0 -1
  257. package/dist/vega/p-afc49b98.entry.js +0 -1
  258. package/dist/vega/p-b7594b78.entry.js +0 -1
  259. package/dist/vega/p-c91190df.entry.js +0 -1
  260. package/dist/vega/p-cb643d8d.entry.js +0 -1
  261. package/dist/vega/p-e16e23b7.entry.js +0 -1
  262. package/dist/vega/p-e5f1fd0b.entry.js +0 -1
  263. package/dist/vega/p-f2f31686.entry.js +0 -1
  264. package/dist/vega/p-f41ae5e0.entry.js +0 -1
@@ -1,21 +1,28 @@
1
1
  import { VegaSlimmer } from '../../../../vega-slimmer/vega-slimmer-core';
2
2
  import { VegaCodeBlock } from '../../vega-code-block';
3
3
  import { VegaCodeBlockValue } from '../../types';
4
+ declare type CodeBlockHistoryState = {
5
+ offset?: number;
6
+ recordHistory: boolean;
7
+ };
4
8
  /**
5
9
  * The component value controller.
6
10
  */
7
11
  export declare class VegaCodeBlockValueController extends VegaSlimmer {
8
12
  protected value: VegaCodeBlock['value'];
9
13
  protected changeEventEmitter: VegaCodeBlock['changeEventEmitter'];
14
+ protected historyController: VegaCodeBlock['historyController'];
10
15
  /**
11
16
  * Update the component value if code content or code language update.
12
17
  *
13
18
  * @param {string} code - The new code content.
14
19
  * @param {string} language - The new code language.
20
+ * @param {CodeBlockHistoryState} codeBlockHistoryState - Update the history or not.
15
21
  */
16
- updateValue(code: string, language: VegaCodeBlockValue['language']): void;
22
+ updateValue(code: string, language: VegaCodeBlockValue['language'], codeBlockHistoryState?: CodeBlockHistoryState): void;
17
23
  /**
18
24
  * Set a default value if the value is not defined.
19
25
  */
20
26
  protected initialValue(): void;
21
27
  }
28
+ export {};
@@ -17,6 +17,7 @@ import { PrismCodeHighlightParseController } from './slimmers/controllers/prism-
17
17
  import { DefaultCodeHighlightParseController } from './slimmers/controllers/default-code-highlight-parse-controller';
18
18
  import { ComponentGlobalStyleSlimmer } from '../../helpers/slimmers/component-global-style-slimmer';
19
19
  import { InsertCompositionTextController } from './slimmers/controllers/insert-composition-text-controller';
20
+ import { VegaCodeBlockHistoryController } from './slimmers/controllers/vega-code-block-history-controller';
20
21
  /**
21
22
  * A component for capturing and displaying syntax-highlighted code blocks with copy-to-clipboard functionality.
22
23
  *
@@ -38,6 +39,7 @@ export declare class VegaCodeBlock {
38
39
  protected inputController: CodeBlockInputController;
39
40
  protected insertCompositionTextController: InsertCompositionTextController;
40
41
  protected focusController: VegaCodeBlockFocusController;
42
+ protected historyController: VegaCodeBlockHistoryController;
41
43
  protected changeEventEmitter: EventEmitSlimmerBase;
42
44
  protected removeEventEmitter: EventEmitSlimmerBase;
43
45
  protected eventPreventSlimmer: ChildNodesEventPreventSlimmer;
@@ -13,6 +13,7 @@ export declare class VegaDropdownListRenderer extends VegaSlimmer {
13
13
  renderModeController: VegaDropdown['renderModeController'];
14
14
  scrollableController: VegaDropdown['scrollableController'];
15
15
  translationSlimmer: VegaDropdown['translationSlimmer'];
16
+ virtualizationThreshold: VegaDropdown['virtualizationThreshold'];
16
17
  private virtualScrollRef;
17
18
  private templateContainerRef;
18
19
  private defaultMaxHeightOfItemsContainer;
@@ -274,6 +274,14 @@ export declare class VegaDropdown {
274
274
  * @vegaVersion 2.46.0
275
275
  */
276
276
  resettable: boolean;
277
+ /**
278
+ * The count of the source that will be used as the threshold for determining whether to use virtual scrolling.
279
+ * If the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used
280
+ * If the value is 0, it means we will disable the virtualization all the time.
281
+ *
282
+ * @vegaVersion 2.54.0
283
+ */
284
+ virtualizationThreshold: number;
277
285
  /**
278
286
  * An event emitter notifying that a dropdown item has been clicked.
279
287
  *
@@ -34,6 +34,12 @@ declare class RTECodeBlockRenderer extends RTEBlockRenderer {
34
34
  * @param {MouseEvent} e - The event object.
35
35
  */
36
36
  private preventParentDoFocus;
37
+ /**
38
+ * If redo and undo in code block, here need a mock keydown event to make the helper class `KeyboardManager` could monitor the current keydown event.
39
+ *
40
+ * @param {KeyboardEvent} e - The keyboard event object.
41
+ */
42
+ private dispatchMockKeydownEvent;
37
43
  }
38
44
  declare const _default: RTECodeBlockRenderer;
39
45
  export default _default;
@@ -1,20 +1,15 @@
1
1
  import { RTEEditorState } from '../../dto/editor-state';
2
2
  import { VegaRichTextEditor } from '../../vega-rich-text-editor';
3
- import { KeyboardManagerSlimmer } from '../../../../helpers/slimmers/keyboard-manager-slimmer';
3
+ import { ComponentValueHistoryControllerSlimmer } from '../../../../helpers/slimmers/component-value-history-controller-slimmer.abstract';
4
4
  /**
5
5
  * History controller for RTE.
6
6
  */
7
- export declare class HistoryController extends KeyboardManagerSlimmer {
7
+ export declare class HistoryController extends ComponentValueHistoryControllerSlimmer<RTEEditorState> {
8
8
  protected host: VegaRichTextEditor['host'];
9
9
  protected vegaRichTextEditorRenderer: VegaRichTextEditor['vegaRichTextEditorRenderer'];
10
10
  protected valueController: VegaRichTextEditor['valueController'];
11
11
  protected value: VegaRichTextEditor['value'];
12
12
  protected selectionController: VegaRichTextEditor['selectionController'];
13
- private redoStack;
14
- private undoStack;
15
- private readonly registerHistoryDelay;
16
- private readonly registerHistoryDebounced;
17
- constructor();
18
13
  /**
19
14
  * Component lifecycle - [componentDidLoad]
20
15
  */
@@ -28,27 +23,21 @@ export declare class HistoryController extends KeyboardManagerSlimmer {
28
23
  */
29
24
  redo(): Promise<void>;
30
25
  /**
31
- * Registers history based on the editor state.
26
+ * Gets the effective target elements for the RTE history.
32
27
  *
33
- * @param {RTEEditorState} editorState - The state to record in history.
28
+ * @returns {HTMLElement[]} - An array of effective target elements.
34
29
  */
35
- registerHistory(editorState: RTEEditorState): void;
30
+ protected getEffectiveTargets: () => HTMLElement[];
36
31
  /**
37
- * Internal function to register history immediately.
32
+ * Gets the ineffective target elements for the RTE history.
38
33
  *
39
- * @param {RTEEditorState} state - The state to record in history.
34
+ * @returns {HTMLElement[]} - An array of ineffective target elements.
40
35
  */
41
- private internalRegisterHistory;
36
+ protected getIneffectiveTargets: () => HTMLElement[];
42
37
  /**
43
38
  * Restores the editor state based on the provided history state.
44
39
  *
45
40
  * @param {RTEEditorState} state - The state to restore to.
46
41
  */
47
42
  private restoreState;
48
- /**
49
- * Returns the keyboard shortcut options for undo/redo functionality.
50
- *
51
- * @returns {KeyboardEventListener[]} - An array of keyboard shortcut options.
52
- */
53
- private getKeyboardShortcutOptions;
54
43
  }
@@ -46,6 +46,7 @@ export declare class VegaVirtualScroll {
46
46
  /**
47
47
  * The count of the source that will be used as the threshold for determining whether to use virtual scrolling.
48
48
  * If the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used
49
+ * If the value is 0, it means we will disable the virtualization all the time.
49
50
  *
50
51
  * @vegaVersion 2.3.0
51
52
  */
@@ -140,6 +140,11 @@ export namespace Components {
140
140
  * @defaultValue https://www.globalpayments.com/privacy-statement
141
141
  */
142
142
  "privacyPolicyUrl": string;
143
+ /**
144
+ * Specifies the unique identifier for the Privacy Policy Link.
145
+ * @vegaVersion 2.54.0
146
+ */
147
+ "privacyPolicyUrlId": string;
143
148
  /**
144
149
  * Specifies the target window or browsing context in which the Privacy Policy URL should be opened when the user clicks on the link.
145
150
  * @vegaVersion 1.27.3
@@ -161,6 +166,11 @@ export namespace Components {
161
166
  * @defaultValue https://www.globalpayments.com/terms-of-use
162
167
  */
163
168
  "termOfUseUrl": string;
169
+ /**
170
+ * Specifies the unique identifier for the Terms of Use Link.
171
+ * @vegaVersion 2.54.0
172
+ */
173
+ "termOfUseUrlId": string;
164
174
  /**
165
175
  * Specifies the target window or browsing context in which the Terms of Use URL should be opened when the user clicks on the link.
166
176
  * @vegaVersion 1.27.3
@@ -355,7 +365,7 @@ export namespace Components {
355
365
  */
356
366
  "gridRow": ResponsiveType<GridRowType>;
357
367
  /**
358
- * Specifies the height of the box. It accepts values in numeric, string and spacing token formats. For numeric values, use a number to indicate the height in pixels, e.g., 100 will be translated to 100px. For string values, you can use CSS units like '%' or 'calc' expressions. For example, '100%' and 'calc(100vh - 20px)' which allows for more complex calculations to determine the height. For spacing tokens, you can set 'size-2', 'size-16' and etc. Please refer to https://vega.hlprd.com/tokens/spacing to check the full list of spacing tokens.
368
+ * Specifies the height of the box. It accepts values in numeric, string and spacing token formats. For numeric values, use a number to indicate the height in pixels, e.g., 100 will be translated to 100px. For string values, you can use CSS units like '%' or 'calc' expressions. For example, '100%' and 'calc(100vh - 20px)' which allows for more complex calculations to determine the height. For spacing tokens, you can set 'size-2', 'size-16' and etc. Please refer to https://vega.globalpayments.com/tokens/spacing to check the full list of spacing tokens.
359
369
  * @vegaVersion 2.0.0
360
370
  */
361
371
  "height": ResponsiveType<HeightType>;
@@ -371,12 +381,12 @@ export namespace Components {
371
381
  */
372
382
  "margin": ResponsiveType<MarginType>;
373
383
  /**
374
- * Specifies the maximum height of the box. It accepts values in numeric, string and spacing token formats. Numeric values represent maximum heights in pixels (e.g., 100 translates to 100px). String values allow the use of CSS units such as '%' or keyword values like 'min-content' (e.g., '100%' or 'min-content'). Spacing tokens like 'size-2' or 'size-16' can also be used. Please refer to https://vega.hlprd.com/tokens/spacing to check the full list of spacing tokens.
384
+ * Specifies the maximum height of the box. It accepts values in numeric, string and spacing token formats. Numeric values represent maximum heights in pixels (e.g., 100 translates to 100px). String values allow the use of CSS units such as '%' or keyword values like 'min-content' (e.g., '100%' or 'min-content'). Spacing tokens like 'size-2' or 'size-16' can also be used. Please refer to https://vega.globalpayments.com/tokens/spacing to check the full list of spacing tokens.
375
385
  * @vegaVersion 2.7.0
376
386
  */
377
387
  "maxHeight": ResponsiveType<MaxHeightType>;
378
388
  /**
379
- * Specifies the minimum height of the box. It accepts values in numeric, string and spacing token formats. Numeric values represent minimum heights in pixels (e.g., 100 translates to 100px). String values allow the use of CSS units such as '%' or keyword values like 'max-content' (e.g., '100%' or 'max-content'). Spacing tokens like 'size-2' or 'size-16' can also be used. Please refer to https://vega.hlprd.com/tokens/spacing to check the full list of spacing tokens.
389
+ * Specifies the minimum height of the box. It accepts values in numeric, string and spacing token formats. Numeric values represent minimum heights in pixels (e.g., 100 translates to 100px). String values allow the use of CSS units such as '%' or keyword values like 'max-content' (e.g., '100%' or 'max-content'). Spacing tokens like 'size-2' or 'size-16' can also be used. Please refer to https://vega.globalpayments.com/tokens/spacing to check the full list of spacing tokens.
380
390
  * @vegaVersion 2.7.0
381
391
  */
382
392
  "minHeight": ResponsiveType<MinHeightType>;
@@ -402,7 +412,7 @@ export namespace Components {
402
412
  */
403
413
  "shadow": StateVariantType<ShadowsTokenType, 'default' | 'focus-visible' | 'hover'>;
404
414
  /**
405
- * Specifies the width of the box. It accepts values in numeric, string and spacing token formats. For numeric values, use a number to indicate the width in pixels, e.g., 100 will be translated to 100px. For string values, you can use CSS units like '%' or 'calc' expressions. For example, '100%' and 'calc(100vw - 20px)' which allows for more complex calculations to determine the width. For spacing tokens, you can set 'size-2', 'size-16' and etc. Please refer to https://vega.hlprd.com/tokens/spacing to check the full list of spacing tokens.
415
+ * Specifies the width of the box. It accepts values in numeric, string and spacing token formats. For numeric values, use a number to indicate the width in pixels, e.g., 100 will be translated to 100px. For string values, you can use CSS units like '%' or 'calc' expressions. For example, '100%' and 'calc(100vw - 20px)' which allows for more complex calculations to determine the width. For spacing tokens, you can set 'size-2', 'size-16' and etc. Please refer to https://vega.globalpayments.com/tokens/spacing to check the full list of spacing tokens.
406
416
  * @vegaVersion 2.0.0
407
417
  */
408
418
  "width": ResponsiveType<WidthType>;
@@ -1424,6 +1434,11 @@ export namespace Components {
1424
1434
  * @vegaVersion 1.24.0
1425
1435
  */
1426
1436
  "useDefaultFilter": boolean;
1437
+ /**
1438
+ * The count of the source that will be used as the threshold for determining whether to use virtual scrolling. If the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used If the value is 0, it means we will disable the virtualization all the time.
1439
+ * @vegaVersion 2.54.0
1440
+ */
1441
+ "virtualizationThreshold": number;
1427
1442
  }
1428
1443
  interface VegaDropdownContentBox {
1429
1444
  }
@@ -4154,7 +4169,7 @@ export namespace Components {
4154
4169
  */
4155
4170
  "viewportMaxHeight": number;
4156
4171
  /**
4157
- * The count of the source that will be used as the threshold for determining whether to use virtual scrolling. If the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used
4172
+ * The count of the source that will be used as the threshold for determining whether to use virtual scrolling. If the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used If the value is 0, it means we will disable the virtualization all the time.
4158
4173
  * @vegaVersion 2.3.0
4159
4174
  */
4160
4175
  "virtualizationThreshold": number;
@@ -5251,6 +5266,11 @@ declare namespace LocalJSX {
5251
5266
  * @defaultValue https://www.globalpayments.com/privacy-statement
5252
5267
  */
5253
5268
  "privacyPolicyUrl"?: string;
5269
+ /**
5270
+ * Specifies the unique identifier for the Privacy Policy Link.
5271
+ * @vegaVersion 2.54.0
5272
+ */
5273
+ "privacyPolicyUrlId"?: string;
5254
5274
  /**
5255
5275
  * Specifies the target window or browsing context in which the Privacy Policy URL should be opened when the user clicks on the link.
5256
5276
  * @vegaVersion 1.27.3
@@ -5272,6 +5292,11 @@ declare namespace LocalJSX {
5272
5292
  * @defaultValue https://www.globalpayments.com/terms-of-use
5273
5293
  */
5274
5294
  "termOfUseUrl"?: string;
5295
+ /**
5296
+ * Specifies the unique identifier for the Terms of Use Link.
5297
+ * @vegaVersion 2.54.0
5298
+ */
5299
+ "termOfUseUrlId"?: string;
5275
5300
  /**
5276
5301
  * Specifies the target window or browsing context in which the Terms of Use URL should be opened when the user clicks on the link.
5277
5302
  * @vegaVersion 1.27.3
@@ -5510,7 +5535,7 @@ declare namespace LocalJSX {
5510
5535
  */
5511
5536
  "gridRow"?: ResponsiveType<GridRowType>;
5512
5537
  /**
5513
- * Specifies the height of the box. It accepts values in numeric, string and spacing token formats. For numeric values, use a number to indicate the height in pixels, e.g., 100 will be translated to 100px. For string values, you can use CSS units like '%' or 'calc' expressions. For example, '100%' and 'calc(100vh - 20px)' which allows for more complex calculations to determine the height. For spacing tokens, you can set 'size-2', 'size-16' and etc. Please refer to https://vega.hlprd.com/tokens/spacing to check the full list of spacing tokens.
5538
+ * Specifies the height of the box. It accepts values in numeric, string and spacing token formats. For numeric values, use a number to indicate the height in pixels, e.g., 100 will be translated to 100px. For string values, you can use CSS units like '%' or 'calc' expressions. For example, '100%' and 'calc(100vh - 20px)' which allows for more complex calculations to determine the height. For spacing tokens, you can set 'size-2', 'size-16' and etc. Please refer to https://vega.globalpayments.com/tokens/spacing to check the full list of spacing tokens.
5514
5539
  * @vegaVersion 2.0.0
5515
5540
  */
5516
5541
  "height"?: ResponsiveType<HeightType>;
@@ -5526,12 +5551,12 @@ declare namespace LocalJSX {
5526
5551
  */
5527
5552
  "margin"?: ResponsiveType<MarginType>;
5528
5553
  /**
5529
- * Specifies the maximum height of the box. It accepts values in numeric, string and spacing token formats. Numeric values represent maximum heights in pixels (e.g., 100 translates to 100px). String values allow the use of CSS units such as '%' or keyword values like 'min-content' (e.g., '100%' or 'min-content'). Spacing tokens like 'size-2' or 'size-16' can also be used. Please refer to https://vega.hlprd.com/tokens/spacing to check the full list of spacing tokens.
5554
+ * Specifies the maximum height of the box. It accepts values in numeric, string and spacing token formats. Numeric values represent maximum heights in pixels (e.g., 100 translates to 100px). String values allow the use of CSS units such as '%' or keyword values like 'min-content' (e.g., '100%' or 'min-content'). Spacing tokens like 'size-2' or 'size-16' can also be used. Please refer to https://vega.globalpayments.com/tokens/spacing to check the full list of spacing tokens.
5530
5555
  * @vegaVersion 2.7.0
5531
5556
  */
5532
5557
  "maxHeight"?: ResponsiveType<MaxHeightType>;
5533
5558
  /**
5534
- * Specifies the minimum height of the box. It accepts values in numeric, string and spacing token formats. Numeric values represent minimum heights in pixels (e.g., 100 translates to 100px). String values allow the use of CSS units such as '%' or keyword values like 'max-content' (e.g., '100%' or 'max-content'). Spacing tokens like 'size-2' or 'size-16' can also be used. Please refer to https://vega.hlprd.com/tokens/spacing to check the full list of spacing tokens.
5559
+ * Specifies the minimum height of the box. It accepts values in numeric, string and spacing token formats. Numeric values represent minimum heights in pixels (e.g., 100 translates to 100px). String values allow the use of CSS units such as '%' or keyword values like 'max-content' (e.g., '100%' or 'max-content'). Spacing tokens like 'size-2' or 'size-16' can also be used. Please refer to https://vega.globalpayments.com/tokens/spacing to check the full list of spacing tokens.
5535
5560
  * @vegaVersion 2.7.0
5536
5561
  */
5537
5562
  "minHeight"?: ResponsiveType<MinHeightType>;
@@ -5557,7 +5582,7 @@ declare namespace LocalJSX {
5557
5582
  */
5558
5583
  "shadow"?: StateVariantType<ShadowsTokenType, 'default' | 'focus-visible' | 'hover'>;
5559
5584
  /**
5560
- * Specifies the width of the box. It accepts values in numeric, string and spacing token formats. For numeric values, use a number to indicate the width in pixels, e.g., 100 will be translated to 100px. For string values, you can use CSS units like '%' or 'calc' expressions. For example, '100%' and 'calc(100vw - 20px)' which allows for more complex calculations to determine the width. For spacing tokens, you can set 'size-2', 'size-16' and etc. Please refer to https://vega.hlprd.com/tokens/spacing to check the full list of spacing tokens.
5585
+ * Specifies the width of the box. It accepts values in numeric, string and spacing token formats. For numeric values, use a number to indicate the width in pixels, e.g., 100 will be translated to 100px. For string values, you can use CSS units like '%' or 'calc' expressions. For example, '100%' and 'calc(100vw - 20px)' which allows for more complex calculations to determine the width. For spacing tokens, you can set 'size-2', 'size-16' and etc. Please refer to https://vega.globalpayments.com/tokens/spacing to check the full list of spacing tokens.
5561
5586
  * @vegaVersion 2.0.0
5562
5587
  */
5563
5588
  "width"?: ResponsiveType<WidthType>;
@@ -6807,6 +6832,11 @@ declare namespace LocalJSX {
6807
6832
  * @vegaVersion 1.24.0
6808
6833
  */
6809
6834
  "useDefaultFilter"?: boolean;
6835
+ /**
6836
+ * The count of the source that will be used as the threshold for determining whether to use virtual scrolling. If the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used If the value is 0, it means we will disable the virtualization all the time.
6837
+ * @vegaVersion 2.54.0
6838
+ */
6839
+ "virtualizationThreshold"?: number;
6810
6840
  }
6811
6841
  interface VegaDropdownContentBox {
6812
6842
  }
@@ -10094,7 +10124,7 @@ declare namespace LocalJSX {
10094
10124
  */
10095
10125
  "viewportMaxHeight"?: number;
10096
10126
  /**
10097
- * The count of the source that will be used as the threshold for determining whether to use virtual scrolling. If the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used
10127
+ * The count of the source that will be used as the threshold for determining whether to use virtual scrolling. If the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used If the value is 0, it means we will disable the virtualization all the time.
10098
10128
  * @vegaVersion 2.3.0
10099
10129
  */
10100
10130
  "virtualizationThreshold"?: number;
@@ -0,0 +1,48 @@
1
+ import { KeyboardManagerSlimmer } from './keyboard-manager-slimmer';
2
+ /**
3
+ * An abstract class that manages the history of component values.
4
+ */
5
+ export declare abstract class ComponentValueHistoryControllerSlimmer<T> extends KeyboardManagerSlimmer {
6
+ protected redoStack: T[];
7
+ protected undoStack: T[];
8
+ private readonly registerHistoryDelay;
9
+ private readonly registerHistoryDebounced;
10
+ constructor();
11
+ /**
12
+ * Registers history based on the editor state.
13
+ *
14
+ * @typedef T generic type parameter
15
+ * @param {T} editorState - The state to record in history.
16
+ * @param {boolean} [isForce] - If true, the history will be registered immediately without debounce.
17
+ */
18
+ registerHistory(editorState: T, isForce?: boolean): void;
19
+ /**
20
+ * Internal function to register history immediately.
21
+ *
22
+ * @typedef T generic type parameter
23
+ * @param {T} state - The state to record in history.
24
+ */
25
+ private internalRegisterHistory;
26
+ /**
27
+ * Returns the keyboard shortcut options for undo/redo functionality.
28
+ *
29
+ * @returns {KeyboardEventListener[]} - An array of keyboard shortcut options.
30
+ */
31
+ private getKeyboardShortcutOptions;
32
+ /**
33
+ * Restores the previous state from the undo stack.
34
+ */
35
+ abstract undo(): Promise<void>;
36
+ /**
37
+ * Restores the next state from the redo stack.
38
+ */
39
+ abstract redo(): Promise<void>;
40
+ /**
41
+ * Get the effective target elements for the component value history.
42
+ */
43
+ protected abstract getEffectiveTargets(): HTMLElement[];
44
+ /**
45
+ * Get the ineffective target elements for the component value history.
46
+ */
47
+ protected abstract getIneffectiveTargets(): HTMLElement[];
48
+ }
@@ -8,4 +8,4 @@
8
8
  * @param {T} context - The context to be used when calling the function.
9
9
  * @returns {(() => void)} A function that will call the original function with the given arguments after the given delay.
10
10
  */
11
- export declare const debounce: <T>(fn: () => void, delay: number, context: T) => (() => void);
11
+ export declare const debounce: <T>(fn: (...args: unknown[]) => void, delay: number, context: T) => (() => void);
@@ -1 +1 @@
1
- export{g as getCurrentBreakpoint}from"./p-834434d5.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";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"./p-a0dab2d0.js";export{c as camelToDashCase}from"./p-0bb29d98.js";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"./p-b1f65b13.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{e as BoxDisplay,B as BreakpointKeys,C as CssStates,F as FlexDirections}from"./p-74168615.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{c as VegaDialog,d as VegaEventManager,V as VegaLoader,a as VegaNotify,f as VegaSkeletonLoader,b as VegaThemeManager,e as VegaZIndexManager}from"./p-eb832119.js";export{F as FeatureFlag}from"./p-4d793cb0.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-613ee009.js";export{V as VegaIconManager}from"./p-cc63e827.js";export{V as ValidCreditCardNumberRule}from"./p-6f90d444.js";export{w as waitForVega}from"./p-f4a13f3f.js";export{a as VegaTranslation,s as VegaTranslationResourceEN}from"./p-4ab3df00.js";export{R as RTEImageBlock,b as RTEListBlock,a as RTEListItemBlock,V as VegaRTEContent}from"./p-fecb4044.js";export{M as ModifyContentAction,i as RTEBlock,a as RTEImageNode,v as RTENode,d as RTETextBlock,g as RTETextNode}from"./p-3eb2d433.js";export{G as GridColumns,a as GridRows}from"./p-06fb002a.js";export{C as CheckBoxRequiredRule}from"./p-590fd123.js";export{D as DateRequiredRule}from"./p-8fae8f9e.js";export{I as InputPhoneNumberRequiredRule}from"./p-07c2725a.js";export{I as InputRangeRequiredRule}from"./p-f396c69a.js";export{R as RequiredFieldRule}from"./p-280cbcdb.js";export{R as RichTextEditorRequiredRule}from"./p-3fa7d356.js";export{T as TimeRangeRequiredRule,a as TimeRequiredRule}from"./p-924b4e24.js";export{T as ToggleSwitchRequiredRule}from"./p-7c0b4c36.js";export{F as FileUploaderRequiredRule}from"./p-0bb860cc.js";import"./p-2205ee4c.js";import"./p-3a0a4d15.js";import"./p-37b05e0b.js";import"./p-6a334573.js";import"./p-d5776087.js";import"./p-0c8bd757.js";import"./p-5773a9a3.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-262ec334.js";import"./p-7a40e033.js";import"./p-6e01f0a2.js";import"./p-abd7aeaa.js";import"./p-fa5eb496.js";import"./p-425ba7d6.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-08835909.js";const o=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{o as Rings}
1
+ export{g as getCurrentBreakpoint}from"./p-7d9cd9c8.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";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"./p-f9cf7e36.js";export{c as camelToDashCase}from"./p-0bb29d98.js";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"./p-b1f65b13.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{e as BoxDisplay,B as BreakpointKeys,C as CssStates,F as FlexDirections}from"./p-74168615.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{c as VegaDialog,d as VegaEventManager,V as VegaLoader,a as VegaNotify,f as VegaSkeletonLoader,b as VegaThemeManager,e as VegaZIndexManager}from"./p-d5f1794e.js";export{F as FeatureFlag}from"./p-4d793cb0.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-613ee009.js";export{V as VegaIconManager}from"./p-cc63e827.js";export{V as ValidCreditCardNumberRule}from"./p-6f90d444.js";export{w as waitForVega}from"./p-f4a13f3f.js";export{a as VegaTranslation,s as VegaTranslationResourceEN}from"./p-4ab3df00.js";export{R as RTEImageBlock,b as RTEListBlock,a as RTEListItemBlock,V as VegaRTEContent}from"./p-fecb4044.js";export{M as ModifyContentAction,i as RTEBlock,a as RTEImageNode,v as RTENode,d as RTETextBlock,g as RTETextNode}from"./p-3eb2d433.js";export{G as GridColumns,a as GridRows}from"./p-327be043.js";export{C as CheckBoxRequiredRule}from"./p-590fd123.js";export{D as DateRequiredRule}from"./p-8fae8f9e.js";export{I as InputPhoneNumberRequiredRule}from"./p-07c2725a.js";export{I as InputRangeRequiredRule}from"./p-f396c69a.js";export{R as RequiredFieldRule}from"./p-280cbcdb.js";export{R as RichTextEditorRequiredRule}from"./p-3fa7d356.js";export{T as TimeRangeRequiredRule,a as TimeRequiredRule}from"./p-924b4e24.js";export{T as ToggleSwitchRequiredRule}from"./p-7c0b4c36.js";export{F as FileUploaderRequiredRule}from"./p-0bb860cc.js";import"./p-b75ee3ba.js";import"./p-2205ee4c.js";import"./p-3a0a4d15.js";import"./p-37b05e0b.js";import"./p-6a334573.js";import"./p-d5776087.js";import"./p-0c8bd757.js";import"./p-5773a9a3.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-262ec334.js";import"./p-7a40e033.js";import"./p-6e01f0a2.js";import"./p-abd7aeaa.js";import"./p-fa5eb496.js";import"./p-425ba7d6.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-08835909.js";const o=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{o as Rings}
@@ -1 +1 @@
1
- import{r as i,c as e,h as t,H as a,g as r}from"./p-21d26bb4.js";import{f as n}from"./p-6e01f0a2.js";import{c as s}from"./p-012cbd8f.js";import{c as o}from"./p-86194314.js";import{s as p}from"./p-519a7d55.js";import{I as d}from"./p-6e1ab235.js";import{V as l,I as h}from"./p-4387d550.js";import{F as c}from"./p-72e64237.js";import{T as g}from"./p-7c0b4c36.js";import{b as v}from"./p-5773a9a3.js";import{C as m}from"./p-2d0d575f.js";import"./p-d5776087.js";import"./p-6a334573.js";import"./p-e7b00bf0.js";import"./p-331a62d5.js";import"./p-613ee009.js";import"./p-b75ee3ba.js";import"./p-0bb29d98.js";import"./p-37b05e0b.js";import"./p-425ba7d6.js";import"./p-4ab3df00.js";import"./p-834434d5.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-abd7aeaa.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-138fcf6e.js";var b=function(i,e,t,a){var r,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(i,e,t,a);else for(var o=i.length-1;o>=0;o--)(r=i[o])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const f=class{constructor(t){i(this,t),this.vegaChange=e(this,"vegaChange",7),this.change=e(this,"change",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new l,this.formFieldController=new c({propertyRules:[{propertyName:"required",ruleFactory:i=>i?new g:null}],validationRulesName:"validationRules",defaultValue:!1,attributeGetter:i=>this[i],inputContainerGetter:()=>this.toggleSwitchContainer,touchableAreaGetter:()=>[this.toggleSwitchContainer]}),this.changeEventEmitter=s(f,n),this.checked=!1,this.value=!1,this.size="default",this.required=!1,this.disabled=!1,this.validationRules=[],this.autoValidation=!0,this.isValid=null,this.toggleSwitch=()=>{this.disabled||(this.checked=!this.checked)},this.updateValue=i=>{this.checked=i.currentTarget.checked,i.stopPropagation()}}watchCheckedChange(){this.value=this.checked,this.changeEventEmitter.emit(this.checked),m.notify(v,{host:this.host,detail:this.value})}watchValue(i){this.checked=!0===i}watchValidationRules(){}componentWillLoad(){this.checked||!0!==this.value?this.value=this.checked:this.checked=!0}render(){let i=this.checked?"vega-container vega-container-checked":"vega-container";return i+=this.disabled?" vega-container-disabled":"",i+="small"===this.size?" vega-container-small-size":"",p(t(a,null,t("vega-flex",{gap:"size-8",ref:i=>this.toggleSwitchContainer=i},t("div",{class:`${i} vega-flex-shrink-0 v-min-w-min`},t("input",{type:"checkbox",name:"switch",disabled:this.disabled,checked:this.checked,onChange:this.updateValue,"aria-label":this.label||"No label defined",role:"button",tabIndex:0,onKeyDown:o()}),t("span",{class:this.disabled?"v-bg-tertiary":"v-bg-primary"})),this.renderLabelDom())),this.host)}renderLabelDom(){return this.label?t("div",{class:"vega-flex-basis-0 vega-flex-grow"},t("vega-field-label",{onClick:this.toggleSwitch,disabled:this.disabled,label:this.label,isFieldRequired:this.required})):null}get host(){return r(this)}static get watchers(){return{checked:["watchCheckedChange"],value:["watchValue"],validationRules:["watchValidationRules"]}}};b([h()],f.prototype,"globalSlimmers",void 0),b([d()],f.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b([d()],f.prototype,"formFieldController",void 0),b([d()],f.prototype,"changeEventEmitter",void 0),f.style=':host{display:inline-block}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}div.vega-container{display:flex;justify-content:flex-start;align-items:center;border-radius:9999px;position:relative;box-sizing:content-box;height:24px;width:48px;padding:4px;background-color:rgba(var(--v-bg-toggle-switch, 107, 116, 125, 0.7))}div.vega-container:hover{background-color:rgba(var(--v-bg-toggle-switch-hover, 107, 116, 125, 1))}div.vega-container.vega-container-checked{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}div.vega-container.vega-container-checked:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}div.vega-container.vega-container-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}div.vega-container.vega-container-checked.vega-container-disabled{background-color:rgba(var(--v-bg-toggle-switch-selected-disabled, 153, 192, 255, 1))}div.vega-container-small-size{box-sizing:border-box;height:20px;width:32px;padding:2px}div.vega-container>span{margin-left:0px;transition-property:margin;transition-duration:0.1s;transition-timing-function:linear}div.vega-container:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}div.vega-container-checked>span{margin-left:24px}div.vega-container-checked.vega-container-small-size>span{margin-left:12px}div.vega-container>input{position:absolute;cursor:pointer;opacity:0;left:0px;top:0px;width:100%;height:100%;margin:0px;-webkit-tap-highlight-color:transparent}div.vega-container input:disabled{cursor:default}div.vega-container>span{display:inline-block;border-radius:9999px;box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));width:24px;height:24px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));transition-property:margin;transition-duration:0.1s;transition-timing-function:linear}div.vega-container-small-size{height:20px}div.vega-container-small-size>span{width:16px;height:16px}div{align-self:center}';export{f as vega_toggle_switch}
1
+ import{r as i,c as e,h as t,H as a,g as r}from"./p-21d26bb4.js";import{f as n}from"./p-6e01f0a2.js";import{c as s}from"./p-012cbd8f.js";import{c as o}from"./p-86194314.js";import{s as p}from"./p-519a7d55.js";import{I as d}from"./p-6e1ab235.js";import{V as l,I as h}from"./p-4387d550.js";import{F as c}from"./p-da1d0c02.js";import{T as g}from"./p-7c0b4c36.js";import{b as v}from"./p-5773a9a3.js";import{C as m}from"./p-2d0d575f.js";import"./p-d5776087.js";import"./p-6a334573.js";import"./p-e7b00bf0.js";import"./p-331a62d5.js";import"./p-613ee009.js";import"./p-b75ee3ba.js";import"./p-0bb29d98.js";import"./p-37b05e0b.js";import"./p-425ba7d6.js";import"./p-4ab3df00.js";import"./p-7d9cd9c8.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-abd7aeaa.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-138fcf6e.js";var b=function(i,e,t,a){var r,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(i,e,t,a);else for(var o=i.length-1;o>=0;o--)(r=i[o])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const f=class{constructor(t){i(this,t),this.vegaChange=e(this,"vegaChange",7),this.change=e(this,"change",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new l,this.formFieldController=new c({propertyRules:[{propertyName:"required",ruleFactory:i=>i?new g:null}],validationRulesName:"validationRules",defaultValue:!1,attributeGetter:i=>this[i],inputContainerGetter:()=>this.toggleSwitchContainer,touchableAreaGetter:()=>[this.toggleSwitchContainer]}),this.changeEventEmitter=s(f,n),this.checked=!1,this.value=!1,this.size="default",this.required=!1,this.disabled=!1,this.validationRules=[],this.autoValidation=!0,this.isValid=null,this.toggleSwitch=()=>{this.disabled||(this.checked=!this.checked)},this.updateValue=i=>{this.checked=i.currentTarget.checked,i.stopPropagation()}}watchCheckedChange(){this.value=this.checked,this.changeEventEmitter.emit(this.checked),m.notify(v,{host:this.host,detail:this.value})}watchValue(i){this.checked=!0===i}watchValidationRules(){}componentWillLoad(){this.checked||!0!==this.value?this.value=this.checked:this.checked=!0}render(){let i=this.checked?"vega-container vega-container-checked":"vega-container";return i+=this.disabled?" vega-container-disabled":"",i+="small"===this.size?" vega-container-small-size":"",p(t(a,null,t("vega-flex",{gap:"size-8",ref:i=>this.toggleSwitchContainer=i},t("div",{class:`${i} vega-flex-shrink-0 v-min-w-min`},t("input",{type:"checkbox",name:"switch",disabled:this.disabled,checked:this.checked,onChange:this.updateValue,"aria-label":this.label||"No label defined",role:"button",tabIndex:0,onKeyDown:o()}),t("span",{class:this.disabled?"v-bg-tertiary":"v-bg-primary"})),this.renderLabelDom())),this.host)}renderLabelDom(){return this.label?t("div",{class:"vega-flex-basis-0 vega-flex-grow"},t("vega-field-label",{onClick:this.toggleSwitch,disabled:this.disabled,label:this.label,isFieldRequired:this.required})):null}get host(){return r(this)}static get watchers(){return{checked:["watchCheckedChange"],value:["watchValue"],validationRules:["watchValidationRules"]}}};b([h()],f.prototype,"globalSlimmers",void 0),b([d()],f.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b([d()],f.prototype,"formFieldController",void 0),b([d()],f.prototype,"changeEventEmitter",void 0),f.style=':host{display:inline-block}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}div.vega-container{display:flex;justify-content:flex-start;align-items:center;border-radius:9999px;position:relative;box-sizing:content-box;height:24px;width:48px;padding:4px;background-color:rgba(var(--v-bg-toggle-switch, 107, 116, 125, 0.7))}div.vega-container:hover{background-color:rgba(var(--v-bg-toggle-switch-hover, 107, 116, 125, 1))}div.vega-container.vega-container-checked{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}div.vega-container.vega-container-checked:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}div.vega-container.vega-container-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}div.vega-container.vega-container-checked.vega-container-disabled{background-color:rgba(var(--v-bg-toggle-switch-selected-disabled, 153, 192, 255, 1))}div.vega-container-small-size{box-sizing:border-box;height:20px;width:32px;padding:2px}div.vega-container>span{margin-left:0px;transition-property:margin;transition-duration:0.1s;transition-timing-function:linear}div.vega-container:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}div.vega-container-checked>span{margin-left:24px}div.vega-container-checked.vega-container-small-size>span{margin-left:12px}div.vega-container>input{position:absolute;cursor:pointer;opacity:0;left:0px;top:0px;width:100%;height:100%;margin:0px;-webkit-tap-highlight-color:transparent}div.vega-container input:disabled{cursor:default}div.vega-container>span{display:inline-block;border-radius:9999px;box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));width:24px;height:24px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));transition-property:margin;transition-duration:0.1s;transition-timing-function:linear}div.vega-container-small-size{height:20px}div.vega-container-small-size>span{width:16px;height:16px}div{align-self:center}';export{f as vega_toggle_switch}
@@ -1 +1 @@
1
- import{r as e,c as t,h as i,H as r,g as o}from"./p-21d26bb4.js";import{R as s}from"./p-280cbcdb.js";import{c as a}from"./p-86194314.js";import{s as n}from"./p-519a7d55.js";import{a as l,h as p,b as h}from"./p-d5776087.js";import{F as d}from"./p-72e64237.js";import{I as c}from"./p-6e1ab235.js";import{V as m,I as f}from"./p-4387d550.js";import{b}from"./p-5773a9a3.js";import{c as g}from"./p-012cbd8f.js";import{C as x}from"./p-2d0d575f.js";import{f as v}from"./p-6e01f0a2.js";import"./p-abd7aeaa.js";import"./p-0bb29d98.js";import"./p-331a62d5.js";import"./p-37b05e0b.js";import"./p-6a334573.js";import"./p-425ba7d6.js";import"./p-4ab3df00.js";import"./p-834434d5.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-e7b00bf0.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-138fcf6e.js";import"./p-613ee009.js";import"./p-b75ee3ba.js";const u=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the color picker when a color is selected",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the color picker when a color is selected",payloadValue:e=>!1===e.autoValidation}];var w=function(e,t,i,r){var o,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(t,i,a):o(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a};const y=class{constructor(r){e(this,r),this.vegaChange=t(this,"vegaChange",7),this.change=t(this,"change",7),this.globalSlimmers={},this.formFieldController=new d({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new s:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.colorPickerContainerRef,touchableAreaGetter:()=>[this.colorPickerTouchableAreaRef]}),this.changeEventEmitter=g(y,v),this.vegaComponentUsageRuntimeMetricsSlimmer=new m(u),this.value="",this.hint="",this.disabled=!1,this.required=!1,this.label="",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.colors=["#73E6DC","#806BFF","#FFDC83","#FF9571","#00BBFF","#FF82C9","#259F9F","#563D82"],this.isInline=!1,this.renderColorPickerContainer=()=>i("div",{class:l([this.isInline?null:"color-picker-inline"]),ref:e=>this.colorPickerContainerRef=e},i("vega-flex",{direction:"row",gap:"size-8",alignItems:"center"},this.colors.map((e=>{const t=this.value===e;return i("div",{id:e,class:{"color-picker-inline-items":!0,selected:t},ref:e=>this.colorPickerTouchableAreaRef=e,style:{backgroundColor:e},onClick:this.updateValueProp,role:"button",tabIndex:0,"aria-label":"color",onKeyDown:a()},t?i("vega-icon",{icon:"checkmark",size:"size-16",class:{"v-text-black":this.isDarkColorCheckmark(this.value),"v-text-white":!this.isDarkColorCheckmark(this.value)}}):null)})))),this.renderHintMessage=()=>i("vega-text",null,this.hint),this.updateValueProp=async e=>{this.disabled||(this.value=String(e.currentTarget.getAttribute("id")))}}watchValue(){this.resetValueIfInvalid(),this.changeEventEmitter.emit(this.value),x.notify(b,{host:this.host,detail:this.value})}watchValidationRules(){}connectedCallback(){this.resetValueIfInvalid()}render(){return n(i(r,{class:{disabled:this.disabled}},this.renderLabelDom(),this.renderColorPickerContainer(),this.hint&&this.renderHintMessage()),this.host)}renderLabelDom(){return i("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label})}isDarkColorCheckmark(e,t="#fcfcfc",i="#203645"){const r=this.getLuminance(e),o=this.getLuminance(t),s=this.getLuminance(i);return r>Math.sqrt((o+.05)*(s+.05))-.05}getLuminance(e){const t=[p(e).r/255,p(e).g/255,p(e).b/255].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return.2126*t[0]+.7152*t[1]+.0722*t[2]}resetValueIfInvalid(){this.colors.some((e=>h(e).toUpperCase()==h(this.value).toUpperCase()))||(this.value="")}get host(){return o(this)}static get watchers(){return{value:["watchValue"],validationRules:["watchValidationRules"]}}};w([f()],y.prototype,"globalSlimmers",void 0),w([c()],y.prototype,"formFieldController",void 0),w([c()],y.prototype,"changeEventEmitter",void 0),w([c()],y.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),y.style=':host{display:inline-block;text-align:left;line-height:normal}:host vega-field-label{margin-bottom:8px}:host(.disabled) .color-picker-inline{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.disabled) .color-picker-inline-items:hover{box-shadow:none}:host(.disabled) .color-picker-inline-items:focus-within{box-shadow:none}:host .color-picker-inline{border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));padding:12px;max-width:max-content}:host .color-picker-inline-items{display:flex;border:1px solid rgba(var(--v-border-chip, 205, 209, 211, 1));border-radius:4px;width:24px;height:24px;cursor:pointer;align-items:center;justify-content:center}:host .color-picker-inline-items.selected{border-color:rgba(var(--v-bg-inverted-primary, 4, 4, 28, 1))}:host .color-picker-inline-items:hover{box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}:host .color-picker-inline-items:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));box-shadow:0px 0px 0px 1px rgba(var(--v-bg-primary, 252, 252, 252, 1)) inset;border:1px solid rgba(var(--v-bg-primary, 252, 252, 252, 1))}:host .checkmark-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host .checkmark-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host vega-text{padding-left:8px;padding-right:8px;padding-top:4px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .color-picker-inline.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-hidden{display:none}:host vega-flex{flex-wrap:wrap;max-width:264px}';export{y as vega_color_picker}
1
+ import{r as e,c as t,h as i,H as r,g as o}from"./p-21d26bb4.js";import{R as s}from"./p-280cbcdb.js";import{c as a}from"./p-86194314.js";import{s as n}from"./p-519a7d55.js";import{a as l,h as p,b as d}from"./p-d5776087.js";import{F as h}from"./p-da1d0c02.js";import{I as c}from"./p-6e1ab235.js";import{V as m,I as f}from"./p-4387d550.js";import{b}from"./p-5773a9a3.js";import{c as g}from"./p-012cbd8f.js";import{C as x}from"./p-2d0d575f.js";import{f as v}from"./p-6e01f0a2.js";import"./p-abd7aeaa.js";import"./p-0bb29d98.js";import"./p-331a62d5.js";import"./p-37b05e0b.js";import"./p-6a334573.js";import"./p-425ba7d6.js";import"./p-4ab3df00.js";import"./p-7d9cd9c8.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-b75ee3ba.js";import"./p-e7b00bf0.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-138fcf6e.js";import"./p-613ee009.js";const u=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the color picker when a color is selected",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the color picker when a color is selected",payloadValue:e=>!1===e.autoValidation}];var w=function(e,t,i,r){var o,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(t,i,a):o(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a};const y=class{constructor(r){e(this,r),this.vegaChange=t(this,"vegaChange",7),this.change=t(this,"change",7),this.globalSlimmers={},this.formFieldController=new h({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new s:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.colorPickerContainerRef,touchableAreaGetter:()=>[this.colorPickerTouchableAreaRef]}),this.changeEventEmitter=g(y,v),this.vegaComponentUsageRuntimeMetricsSlimmer=new m(u),this.value="",this.hint="",this.disabled=!1,this.required=!1,this.label="",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.colors=["#73E6DC","#806BFF","#FFDC83","#FF9571","#00BBFF","#FF82C9","#259F9F","#563D82"],this.isInline=!1,this.renderColorPickerContainer=()=>i("div",{class:l([this.isInline?null:"color-picker-inline"]),ref:e=>this.colorPickerContainerRef=e},i("vega-flex",{direction:"row",gap:"size-8",alignItems:"center"},this.colors.map((e=>{const t=this.value===e;return i("div",{id:e,class:{"color-picker-inline-items":!0,selected:t},ref:e=>this.colorPickerTouchableAreaRef=e,style:{backgroundColor:e},onClick:this.updateValueProp,role:"button",tabIndex:0,"aria-label":"color",onKeyDown:a()},t?i("vega-icon",{icon:"checkmark",size:"size-16",class:{"v-text-black":this.isDarkColorCheckmark(this.value),"v-text-white":!this.isDarkColorCheckmark(this.value)}}):null)})))),this.renderHintMessage=()=>i("vega-text",null,this.hint),this.updateValueProp=async e=>{this.disabled||(this.value=String(e.currentTarget.getAttribute("id")))}}watchValue(){this.resetValueIfInvalid(),this.changeEventEmitter.emit(this.value),x.notify(b,{host:this.host,detail:this.value})}watchValidationRules(){}connectedCallback(){this.resetValueIfInvalid()}render(){return n(i(r,{class:{disabled:this.disabled}},this.renderLabelDom(),this.renderColorPickerContainer(),this.hint&&this.renderHintMessage()),this.host)}renderLabelDom(){return i("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label})}isDarkColorCheckmark(e,t="#fcfcfc",i="#203645"){const r=this.getLuminance(e),o=this.getLuminance(t),s=this.getLuminance(i);return r>Math.sqrt((o+.05)*(s+.05))-.05}getLuminance(e){const t=[p(e).r/255,p(e).g/255,p(e).b/255].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return.2126*t[0]+.7152*t[1]+.0722*t[2]}resetValueIfInvalid(){this.colors.some((e=>d(e).toUpperCase()==d(this.value).toUpperCase()))||(this.value="")}get host(){return o(this)}static get watchers(){return{value:["watchValue"],validationRules:["watchValidationRules"]}}};w([f()],y.prototype,"globalSlimmers",void 0),w([c()],y.prototype,"formFieldController",void 0),w([c()],y.prototype,"changeEventEmitter",void 0),w([c()],y.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),y.style=':host{display:inline-block;text-align:left;line-height:normal}:host vega-field-label{margin-bottom:8px}:host(.disabled) .color-picker-inline{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.disabled) .color-picker-inline-items:hover{box-shadow:none}:host(.disabled) .color-picker-inline-items:focus-within{box-shadow:none}:host .color-picker-inline{border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));padding:12px;max-width:max-content}:host .color-picker-inline-items{display:flex;border:1px solid rgba(var(--v-border-chip, 205, 209, 211, 1));border-radius:4px;width:24px;height:24px;cursor:pointer;align-items:center;justify-content:center}:host .color-picker-inline-items.selected{border-color:rgba(var(--v-bg-inverted-primary, 4, 4, 28, 1))}:host .color-picker-inline-items:hover{box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}:host .color-picker-inline-items:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));box-shadow:0px 0px 0px 1px rgba(var(--v-bg-primary, 252, 252, 252, 1)) inset;border:1px solid rgba(var(--v-bg-primary, 252, 252, 252, 1))}:host .checkmark-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host .checkmark-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host vega-text{padding-left:8px;padding-right:8px;padding-top:4px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .color-picker-inline.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-hidden{display:none}:host vega-flex{flex-wrap:wrap;max-width:264px}';export{y as vega_color_picker}