@heartlandone/vega 2.74.0-RTE-table-preview → 2.74.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 (682) hide show
  1. package/dist/cjs/{app-globals-be2e868e.js → app-globals-e9f2edcf.js} +17 -18
  2. package/dist/cjs/{code-block-22ee2550.js → code-block-c8ae7e0a.js} +3 -34
  3. package/dist/cjs/{component-value-history-controller-slimmer.abstract-3486cbc0.js → component-value-history-controller-slimmer.abstract-13968181.js} +5 -26
  4. package/dist/cjs/{design-token-505997df.js → design-token-4e23c50a.js} +1 -1
  5. package/dist/cjs/{content-state-0be6fda3.js → dto-renderer-manager-ca753971.js} +58 -15
  6. package/dist/cjs/{element-appender-slimmer-26420c09.js → element-appender-slimmer-dc769946.js} +6 -6
  7. package/dist/cjs/{form-field-controller-slimmer-56c551ea.js → form-field-controller-slimmer-6e3e14fd.js} +2 -2
  8. package/dist/cjs/function-extension-5972c73c.js +2927 -0
  9. package/dist/cjs/{image-annotation-action-462fd073.js → image-annotation-action-92df8979.js} +3 -3
  10. package/dist/cjs/index-58ea899e.js +0 -4
  11. package/dist/cjs/{index-fc538f17.js → index-638a0f0d.js} +1 -1
  12. package/dist/cjs/index.cjs.js +38 -43
  13. package/dist/cjs/{language-extension-414149c2.js → language-extension-d78389f9.js} +8 -8
  14. package/dist/cjs/loader.cjs.js +8 -13
  15. package/dist/cjs/{public-rules-2d18cf41.js → public-rules-23a86d33.js} +4 -4
  16. package/dist/cjs/{range-439a0c0c.js → range-80f19554.js} +1 -1
  17. package/dist/cjs/{responsive-format-facade-0ececeb3.js → responsive-format-facade-8d195366.js} +3 -3
  18. package/dist/cjs/{rich-text-editor-required-rule-5a4f3626.js → rich-text-editor-required-rule-80304585.js} +2 -2
  19. package/dist/cjs/{string-input-formatter-slimmer-a8f4a9b1.js → string-input-formatter-slimmer-338bbd73.js} +2 -2
  20. package/dist/cjs/{style-formatter-142500c0.js → style-formatter-dbda894b.js} +1 -1
  21. package/dist/cjs/{sub-state-notify-slimmer-011866d9.js → sub-state-notify-slimmer-1efa69c4.js} +1 -1
  22. package/dist/cjs/{sub-state-observer-slimmer-23d43f1e.js → sub-state-observer-slimmer-6afa62f5.js} +1 -1
  23. package/dist/cjs/vega-accordion.cjs.entry.js +6 -10
  24. package/dist/cjs/vega-app-header-button.cjs.entry.js +6 -10
  25. package/dist/cjs/vega-box.cjs.entry.js +7 -11
  26. package/dist/cjs/vega-button-circle.cjs.entry.js +6 -10
  27. package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
  28. package/dist/cjs/vega-button.cjs.entry.js +5 -9
  29. package/dist/cjs/vega-calendar_4.cjs.entry.js +3 -3
  30. package/dist/cjs/vega-card.cjs.entry.js +6 -10
  31. package/dist/cjs/vega-carousel.cjs.entry.js +5 -9
  32. package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
  33. package/dist/cjs/vega-chip.cjs.entry.js +6 -10
  34. package/dist/cjs/vega-code-block.cjs.entry.js +4 -4
  35. package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
  36. package/dist/cjs/vega-combo-box.cjs.entry.js +3 -3
  37. package/dist/cjs/vega-date-picker_2.cjs.entry.js +11 -15
  38. package/dist/cjs/vega-dialog_2.cjs.entry.js +13 -17
  39. package/dist/cjs/vega-divider.cjs.entry.js +6 -10
  40. package/dist/cjs/vega-dropdown_5.cjs.entry.js +9 -12
  41. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  42. package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
  43. package/dist/cjs/vega-flag-icon.cjs.entry.js +6 -10
  44. package/dist/cjs/vega-flex.cjs.entry.js +7 -11
  45. package/dist/cjs/vega-font.cjs.entry.js +6 -10
  46. package/dist/cjs/vega-form.cjs.entry.js +4 -4
  47. package/dist/cjs/vega-grid.cjs.entry.js +6 -10
  48. package/dist/cjs/vega-icon.cjs.entry.js +6 -10
  49. package/dist/cjs/vega-image-uploader.cjs.entry.js +8 -12
  50. package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
  51. package/dist/cjs/vega-input-numeric.cjs.entry.js +4 -4
  52. package/dist/cjs/vega-input-passcode.cjs.entry.js +3 -3
  53. package/dist/cjs/vega-input-phone-number.cjs.entry.js +6 -10
  54. package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
  55. package/dist/cjs/vega-input-select.cjs.entry.js +7 -10
  56. package/dist/cjs/vega-input.cjs.entry.js +5 -5
  57. package/dist/cjs/{vega-internal-event-id-73334b4b.js → vega-internal-event-id-f2465f1b.js} +0 -4
  58. package/dist/cjs/vega-left-nav_5.cjs.entry.js +13 -17
  59. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -11
  60. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +1 -1
  61. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
  62. package/dist/cjs/vega-pagination.cjs.entry.js +5 -9
  63. package/dist/cjs/vega-popover_2.cjs.entry.js +7 -11
  64. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +7 -11
  65. package/dist/cjs/vega-radio_2.cjs.entry.js +3 -3
  66. package/dist/cjs/vega-rich-text-content.cjs.entry.js +9 -10
  67. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +53 -59
  68. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -12
  69. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
  70. package/dist/cjs/vega-sidenav_3.cjs.entry.js +11 -15
  71. package/dist/cjs/vega-signature-capture.cjs.entry.js +8 -12
  72. package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
  73. package/dist/cjs/vega-table_11.cjs.entry.js +13 -16
  74. package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
  75. package/dist/cjs/vega-time-picker_2.cjs.entry.js +8 -12
  76. package/dist/cjs/vega-toggle-switch.cjs.entry.js +3 -3
  77. package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -10
  78. package/dist/cjs/vega.cjs.js +8 -13
  79. package/dist/collection/collection-manifest.json +0 -10
  80. package/dist/collection/components/vega-dropdown/vega-dropdown.js +2 -2
  81. package/dist/collection/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.js +0 -1
  82. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +0 -10
  83. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +2 -24
  84. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +1 -2
  85. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +1 -18
  86. package/dist/collection/components/vega-rich-text-editor/public-api.js +0 -1
  87. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +0 -20
  88. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +0 -10
  89. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +2 -23
  90. package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +0 -252
  91. package/dist/collection/components/vega-rich-text-editor/test/spec-utils.js +2 -5
  92. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +0 -4
  93. package/dist/collection/global/scripts/before-vega-load.js +0 -2
  94. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +0 -2
  95. package/dist/collection/utils/spec-utils.js +3 -4
  96. package/dist/esm/{app-globals-8b873b6f.js → app-globals-9203a3e5.js} +6 -7
  97. package/dist/esm/{child-nodes-event-prevent-slimmer-a6afdb1e.js → child-nodes-event-prevent-slimmer-e6f98de5.js} +1 -1
  98. package/dist/esm/{code-block-76b29be1.js → code-block-4e0d321d.js} +5 -36
  99. package/dist/esm/{component-value-history-controller-slimmer.abstract-e1b0e163.js → component-value-history-controller-slimmer.abstract-0ab0d9f0.js} +6 -27
  100. package/dist/esm/{design-token-8fedb532.js → design-token-175c4c0c.js} +1 -1
  101. package/dist/esm/{dom-node-subject-observer-factory-e998eba4.js → dom-node-subject-observer-factory-1aaa1159.js} +1 -1
  102. package/dist/esm/{content-state-03f1d302.js → dto-renderer-manager-402e89d0.js} +59 -14
  103. package/dist/esm/{element-appender-slimmer-7b9326e2.js → element-appender-slimmer-7e7aa230.js} +4 -4
  104. package/dist/esm/{event-emit-slimmer-bbf6668c.js → event-emit-slimmer-2d791d0e.js} +2 -2
  105. package/dist/esm/{form-field-controller-slimmer-a0cff4d3.js → form-field-controller-slimmer-257928c1.js} +3 -3
  106. package/dist/esm/function-extension-45e413ff.js +2908 -0
  107. package/dist/esm/{image-annotation-action-47cdc068.js → image-annotation-action-2cdbbd57.js} +3 -3
  108. package/dist/esm/index-090d31ca.js +0 -4
  109. package/dist/esm/{index-da7e5fe5.js → index-0d487fae.js} +2 -2
  110. package/dist/esm/index.js +13 -17
  111. package/dist/esm/{internal-vega-event-manager-e799c54a.js → internal-vega-event-manager-fdee2a0a.js} +1 -1
  112. package/dist/esm/{language-extension-de6e6caf.js → language-extension-4bed2436.js} +2 -2
  113. package/dist/esm/loader.js +10 -15
  114. package/dist/esm/polyfills/core-js.js +0 -0
  115. package/dist/esm/polyfills/dom.js +0 -0
  116. package/dist/esm/polyfills/es5-html-element.js +0 -0
  117. package/dist/esm/polyfills/index.js +0 -0
  118. package/dist/esm/polyfills/system.js +0 -0
  119. package/dist/esm/{public-rules-c48cc5c9.js → public-rules-05e83e40.js} +5 -5
  120. package/dist/esm/{range-af6150a8.js → range-5086f250.js} +1 -1
  121. package/dist/esm/{responsive-format-facade-16da4623.js → responsive-format-facade-f995d6de.js} +3 -3
  122. package/dist/esm/{rich-text-editor-required-rule-7255832e.js → rich-text-editor-required-rule-0d1147a8.js} +1 -1
  123. package/dist/esm/{string-input-formatter-slimmer-82f85b0b.js → string-input-formatter-slimmer-3a42d9b8.js} +3 -3
  124. package/dist/esm/{style-formatter-6ca58f6b.js → style-formatter-f4067407.js} +1 -1
  125. package/dist/esm/{sub-state-notify-slimmer-4060c333.js → sub-state-notify-slimmer-71b9bbd5.js} +2 -2
  126. package/dist/esm/{sub-state-observer-slimmer-bfa5e63e.js → sub-state-observer-slimmer-41a1b380.js} +2 -2
  127. package/dist/esm/vega-accordion.entry.js +9 -13
  128. package/dist/esm/vega-app-header-button.entry.js +10 -14
  129. package/dist/esm/vega-banner.entry.js +3 -3
  130. package/dist/esm/vega-box.entry.js +9 -13
  131. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  132. package/dist/esm/vega-button-circle.entry.js +10 -14
  133. package/dist/esm/vega-button-group_2.entry.js +7 -7
  134. package/dist/esm/vega-button-link.entry.js +4 -4
  135. package/dist/esm/vega-button.entry.js +9 -13
  136. package/dist/esm/vega-calendar_4.entry.js +7 -7
  137. package/dist/esm/vega-card.entry.js +8 -12
  138. package/dist/esm/vega-carousel.entry.js +8 -12
  139. package/dist/esm/vega-checkbox_2.entry.js +7 -7
  140. package/dist/esm/vega-chip.entry.js +10 -14
  141. package/dist/esm/vega-code-block.entry.js +8 -8
  142. package/dist/esm/vega-color-picker.entry.js +6 -6
  143. package/dist/esm/vega-combo-box.entry.js +7 -7
  144. package/dist/esm/vega-date-picker_2.entry.js +15 -19
  145. package/dist/esm/vega-dialog_2.entry.js +10 -14
  146. package/dist/esm/vega-divider.entry.js +8 -12
  147. package/dist/esm/vega-dropdown_5.entry.js +13 -16
  148. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  149. package/dist/esm/vega-field-label.entry.js +3 -3
  150. package/dist/esm/vega-file-uploader.entry.js +6 -6
  151. package/dist/esm/vega-flag-icon.entry.js +8 -12
  152. package/dist/esm/vega-flex.entry.js +9 -13
  153. package/dist/esm/vega-font.entry.js +8 -12
  154. package/dist/esm/vega-form.entry.js +8 -8
  155. package/dist/esm/vega-grid.entry.js +8 -12
  156. package/dist/esm/vega-icon.entry.js +8 -12
  157. package/dist/esm/vega-image-uploader.entry.js +11 -15
  158. package/dist/esm/vega-input-credit-card.entry.js +7 -7
  159. package/dist/esm/vega-input-numeric.entry.js +8 -8
  160. package/dist/esm/vega-input-passcode.entry.js +7 -7
  161. package/dist/esm/vega-input-phone-number.entry.js +10 -14
  162. package/dist/esm/vega-input-range.entry.js +7 -7
  163. package/dist/esm/vega-input-select.entry.js +11 -14
  164. package/dist/esm/vega-input.entry.js +8 -8
  165. package/dist/esm/{vega-internal-event-id-3edc9b4e.js → vega-internal-event-id-4a06d705.js} +1 -3
  166. package/dist/esm/vega-item-toggle.entry.js +3 -3
  167. package/dist/esm/vega-left-nav_5.entry.js +12 -16
  168. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -11
  169. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  170. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
  171. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
  172. package/dist/esm/vega-pagination.entry.js +9 -13
  173. package/dist/esm/vega-popover_2.entry.js +10 -14
  174. package/dist/esm/vega-progress-tracker_2.entry.js +10 -14
  175. package/dist/esm/vega-radio_2.entry.js +7 -7
  176. package/dist/esm/vega-rich-text-content.entry.js +7 -8
  177. package/dist/esm/vega-rich-text-editor_4.entry.js +34 -40
  178. package/dist/esm/vega-segment-control.entry.js +3 -3
  179. package/dist/esm/vega-selection-chip_2.entry.js +12 -16
  180. package/dist/esm/vega-selection-tile_2.entry.js +8 -8
  181. package/dist/esm/vega-sidenav_3.entry.js +10 -14
  182. package/dist/esm/vega-signature-capture.entry.js +11 -15
  183. package/dist/esm/vega-stepper.entry.js +7 -7
  184. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  185. package/dist/esm/vega-table_11.entry.js +11 -14
  186. package/dist/esm/vega-textarea.entry.js +7 -7
  187. package/dist/esm/vega-time-picker_2.entry.js +12 -16
  188. package/dist/esm/vega-toggle-switch.entry.js +6 -6
  189. package/dist/esm/vega-tooltip_2.entry.js +8 -12
  190. package/dist/esm/vega.js +10 -15
  191. package/dist/sri/vega-sri-manifest.json +304 -704
  192. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +2 -2
  193. package/dist/types/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.d.ts +0 -1
  194. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.d.ts +0 -7
  195. package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +5 -2
  196. package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +3 -3
  197. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +6 -10
  198. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +2 -15
  199. package/dist/types/components/vega-rich-text-editor/interface.d.ts +2 -39
  200. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +0 -1
  201. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +0 -4
  202. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +0 -9
  203. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +6 -19
  204. package/dist/types/components/vega-rich-text-editor/test/spec-utils.d.ts +0 -4
  205. package/dist/types/components.d.ts +3 -140
  206. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +0 -2
  207. package/dist/types/types/components.type.d.ts +0 -4
  208. package/dist/types/utils/spec-utils.d.ts +3 -2
  209. package/dist/vega/index.esm.js +1 -57
  210. package/dist/vega/p-05feab84.entry.js +1 -0
  211. package/dist/vega/p-071f9d00.entry.js +1 -0
  212. package/dist/vega/p-0f601e59.entry.js +1 -0
  213. package/dist/vega/{p-c00adad9.js → p-184d8443.js} +1 -1
  214. package/dist/vega/p-1a7e97d2.entry.js +1 -0
  215. package/dist/vega/{p-24766b9d.entry.js → p-2409a475.entry.js} +1 -1
  216. package/dist/vega/{p-99e3dcab.js → p-29618be2.js} +1 -1
  217. package/dist/vega/{p-206245d2.entry.js → p-2ae5ad30.entry.js} +1 -1
  218. package/dist/vega/{p-d2033624.js → p-301096ee.js} +1 -1
  219. package/dist/vega/{p-16af7681.js → p-30e7544c.js} +1 -1
  220. package/dist/vega/p-310a6294.entry.js +1 -0
  221. package/dist/vega/{p-08b4d097.entry.js → p-3162a7fd.entry.js} +1 -1
  222. package/dist/vega/{p-7ca9f6f1.js → p-3226c208.js} +1 -1
  223. package/dist/vega/p-3398f553.entry.js +1 -0
  224. package/dist/vega/{p-b91c2c9d.js → p-3566ad76.js} +1 -1
  225. package/dist/vega/p-370ee9e3.entry.js +1 -0
  226. package/dist/vega/p-38b8efe5.entry.js +1 -0
  227. package/dist/vega/p-398220f5.entry.js +1 -0
  228. package/dist/vega/p-3a279b71.js +1 -0
  229. package/dist/vega/{p-c3d388b5.entry.js → p-3b32e75d.entry.js} +1 -1
  230. package/dist/vega/p-3ebc8b5b.entry.js +1 -0
  231. package/dist/vega/p-3f56d184.entry.js +1 -0
  232. package/dist/vega/p-42b7b5df.js +1 -0
  233. package/dist/vega/{p-9aac9879.entry.js → p-44bc9ea9.entry.js} +1 -1
  234. package/dist/vega/p-451ddd84.js +1 -0
  235. package/dist/vega/{p-a924c1e2.entry.js → p-4957f07a.entry.js} +1 -1
  236. package/dist/vega/p-59fa3f68.js +1 -0
  237. package/dist/vega/p-5a0c92db.entry.js +1 -0
  238. package/dist/vega/p-5b71c85e.js +1 -0
  239. package/dist/vega/{p-ddf81373.js → p-5be29f14.js} +1 -1
  240. package/dist/vega/p-5c492358.entry.js +1 -0
  241. package/dist/vega/p-5f377954.js +1 -1
  242. package/dist/vega/{p-8162980c.js → p-674fe99e.js} +1 -1
  243. package/dist/vega/{p-dd5d917b.entry.js → p-676eaf3f.entry.js} +1 -1
  244. package/dist/vega/{p-c335088c.js → p-697eb0e1.js} +1 -1
  245. package/dist/vega/{p-e797bf8d.entry.js → p-6b9d2996.entry.js} +1 -1
  246. package/dist/vega/{p-1f4a814e.entry.js → p-6e84e451.entry.js} +1 -1
  247. package/dist/vega/p-73383099.js +1 -0
  248. package/dist/vega/{p-ac4bd1f8.js → p-748eb5a2.js} +1 -1
  249. package/dist/vega/p-779cd090.entry.js +1 -0
  250. package/dist/vega/{p-216f3436.entry.js → p-7a8c4cf8.entry.js} +1 -1
  251. package/dist/vega/p-7c238c19.entry.js +1 -0
  252. package/dist/vega/{p-86caa739.entry.js → p-7f9acdf7.entry.js} +1 -1
  253. package/dist/vega/{p-d4e35d2e.entry.js → p-82dbff54.entry.js} +1 -1
  254. package/dist/vega/{p-ff57c872.js → p-8bd496b4.js} +1 -1
  255. package/dist/vega/p-94cf46ca.entry.js +1 -0
  256. package/dist/vega/p-950bf9a9.entry.js +1 -0
  257. package/dist/vega/p-95b11cdd.entry.js +1 -0
  258. package/dist/vega/{p-c9541fc2.entry.js → p-96797fee.entry.js} +1 -1
  259. package/dist/vega/p-99676172.entry.js +1 -0
  260. package/dist/vega/{p-f6eab527.entry.js → p-9b673fd4.entry.js} +1 -1
  261. package/dist/vega/p-9b7daab0.entry.js +1 -0
  262. package/dist/vega/{p-73688c4e.entry.js → p-9d8e2939.entry.js} +1 -1
  263. package/dist/vega/{p-d466baf7.js → p-9ea8eb49.js} +1 -1
  264. package/dist/vega/{p-780cbfb0.entry.js → p-9fb71d8c.entry.js} +1 -1
  265. package/dist/vega/{p-63246470.js → p-a2d1c2f3.js} +1 -1
  266. package/dist/vega/{p-d07d04e0.entry.js → p-a58bdbad.entry.js} +1 -1
  267. package/dist/vega/{p-e788598a.entry.js → p-a5d4d168.entry.js} +1 -1
  268. package/dist/vega/p-a6dfef41.entry.js +1 -0
  269. package/dist/vega/p-a7f151fe.entry.js +1 -0
  270. package/dist/vega/p-b007d0d5.entry.js +1 -0
  271. package/dist/vega/p-b0ed81e2.js +1 -0
  272. package/dist/vega/p-b18c12cb.entry.js +1 -0
  273. package/dist/vega/p-b19d4e26.entry.js +1 -0
  274. package/dist/vega/p-b4be03bb.entry.js +1 -0
  275. package/dist/vega/p-ba223773.entry.js +1 -0
  276. package/dist/vega/p-bb9db84a.entry.js +1 -0
  277. package/dist/vega/{p-8ac453cb.entry.js → p-be0b67b8.entry.js} +1 -1
  278. package/dist/vega/p-c34feecd.entry.js +1 -0
  279. package/dist/vega/p-c4700277.entry.js +1 -0
  280. package/dist/vega/{p-3bc7e162.entry.js → p-c7194674.entry.js} +1 -1
  281. package/dist/vega/p-c796307d.entry.js +1 -0
  282. package/dist/vega/{p-fa34ace2.entry.js → p-c7f292dd.entry.js} +1 -1
  283. package/dist/vega/p-ca9b4af9.entry.js +1 -0
  284. package/dist/vega/p-cadd84ec.entry.js +1 -0
  285. package/dist/vega/p-ce2ffff7.js +1 -0
  286. package/dist/vega/p-e3fa091a.js +1 -0
  287. package/dist/vega/{p-12a97dad.entry.js → p-ead1da57.entry.js} +1 -1
  288. package/dist/vega/p-edbecf19.entry.js +1 -0
  289. package/dist/vega/{p-c8ad47c9.js → p-f0bde406.js} +1 -1
  290. package/dist/vega/{p-5367eaab.js → p-f2c8c363.js} +1 -1
  291. package/dist/vega/{p-a6e03df4.entry.js → p-f38a4be2.entry.js} +1 -1
  292. package/dist/vega/{p-813b2915.entry.js → p-f6cd7a08.entry.js} +1 -1
  293. package/dist/vega/p-f844f3f1.entry.js +1 -0
  294. package/dist/vega/p-f92752d2.entry.js +1 -0
  295. package/dist/vega/p-fbda4a20.entry.js +1 -0
  296. package/dist/vega/vega.esm.js +1 -172
  297. package/package.json +1 -1
  298. package/dist/cjs/align-left-4a76df69.js +0 -22
  299. package/dist/cjs/dto-renderer-manager-ae5fcbba.js +0 -58
  300. package/dist/cjs/styles.constants-3aff0b56.js +0 -1306
  301. package/dist/cjs/table-extension-2a20da57.js +0 -6018
  302. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +0 -1313
  303. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.js +0 -42
  304. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.js +0 -26
  305. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.js +0 -23
  306. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.js +0 -25
  307. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.js +0 -57
  308. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.js +0 -57
  309. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.js +0 -54
  310. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.js +0 -42
  311. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.js +0 -117
  312. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.js +0 -22
  313. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.js +0 -19
  314. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.js +0 -133
  315. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.js +0 -99
  316. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.js +0 -23
  317. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.js +0 -29
  318. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.js +0 -13
  319. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.js +0 -13
  320. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.js +0 -18
  321. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.js +0 -13
  322. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.js +0 -19
  323. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.js +0 -26
  324. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.js +0 -13
  325. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.js +0 -18
  326. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.js +0 -13
  327. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.js +0 -18
  328. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.js +0 -18
  329. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.js +0 -13
  330. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.js +0 -15
  331. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.js +0 -38
  332. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.js +0 -97
  333. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.js +0 -69
  334. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.js +0 -82
  335. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.js +0 -14
  336. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.js +0 -91
  337. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.js +0 -57
  338. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.js +0 -121
  339. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.js +0 -40
  340. package/dist/collection/components/vega-rich-text-editor/extensions/table/constants/styles.constants.js +0 -21
  341. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +0 -119
  342. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +0 -56
  343. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +0 -69
  344. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +0 -66
  345. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +0 -60
  346. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +0 -53
  347. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +0 -60
  348. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/caption-to-caption-block-strategy.js +0 -50
  349. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.js +0 -42
  350. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.js +0 -42
  351. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.js +0 -71
  352. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.js +0 -42
  353. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.js +0 -42
  354. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.js +0 -15
  355. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.js +0 -22
  356. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.js +0 -74
  357. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.js +0 -254
  358. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.js +0 -12
  359. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.js +0 -15
  360. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +0 -149
  361. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.js +0 -15
  362. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.js +0 -148
  363. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.js +0 -78
  364. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-cancel-event-handler.js +0 -17
  365. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-change-event-handler.js +0 -15
  366. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-save-event-handler.js +0 -19
  367. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties.js +0 -131
  368. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.js +0 -109
  369. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.js +0 -132
  370. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.js +0 -44
  371. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-cancel-event-handler.js +0 -19
  372. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-change-event-handler.js +0 -20
  373. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-save-event-handler.js +0 -20
  374. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties.js +0 -50
  375. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +0 -152
  376. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-icon.js +0 -3
  377. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-selection.js +0 -371
  378. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.js +0 -234
  379. package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/utils.js +0 -102
  380. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-bottom.js +0 -3
  381. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-middle.js +0 -3
  382. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-top.js +0 -3
  383. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-center-horizontal.js +0 -3
  384. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-left.js +0 -3
  385. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-right.js +0 -3
  386. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/controllers/vega-rich-text-table-properties-color-controller.js +0 -27
  387. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-cell-properties-form-field-renderer.js +0 -106
  388. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-basic-form-field-renderer.abstract.js +0 -259
  389. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-field-renderer.js +0 -58
  390. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-renderer.js +0 -93
  391. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.css +0 -148
  392. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.js +0 -241
  393. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.js +0 -36
  394. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.js +0 -83
  395. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.css +0 -41
  396. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.js +0 -80
  397. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.js +0 -20
  398. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.js +0 -27
  399. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.js +0 -26
  400. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.js +0 -86
  401. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.js +0 -101
  402. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.js +0 -26
  403. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.js +0 -75
  404. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.js +0 -50
  405. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.css +0 -20
  406. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +0 -215
  407. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/annotation-handler-registration.test.js +0 -164
  408. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-annotation-handler.test.js +0 -293
  409. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-cell-annotation-handler.test.js +0 -295
  410. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-head-cell-annotation-handler.test.js +0 -415
  411. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.js +0 -99
  412. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.js +0 -89
  413. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.js +0 -79
  414. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.js +0 -128
  415. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-dto.test.js +0 -517
  416. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-element-to-dto-strategies.test.js +0 -1450
  417. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-test-utils.js +0 -172
  418. package/dist/esm/align-left-7f959adf.js +0 -17
  419. package/dist/esm/dto-renderer-manager-12bc9121.js +0 -56
  420. package/dist/esm/styles.constants-0dd6f7fa.js +0 -1277
  421. package/dist/esm/table-extension-c83b7a56.js +0 -5998
  422. package/dist/esm/vega-rich-text-table-properties_3.entry.js +0 -1307
  423. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.d.ts +0 -25
  424. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.d.ts +0 -20
  425. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.d.ts +0 -19
  426. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.d.ts +0 -14
  427. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.d.ts +0 -31
  428. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.d.ts +0 -28
  429. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.d.ts +0 -27
  430. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.d.ts +0 -19
  431. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.d.ts +0 -27
  432. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.d.ts +0 -12
  433. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.d.ts +0 -20
  434. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.d.ts +0 -41
  435. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.d.ts +0 -45
  436. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.d.ts +0 -13
  437. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.d.ts +0 -12
  438. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.d.ts +0 -12
  439. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.d.ts +0 -15
  440. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.d.ts +0 -17
  441. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.d.ts +0 -20
  442. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.d.ts +0 -23
  443. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.d.ts +0 -23
  444. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.d.ts +0 -18
  445. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.d.ts +0 -16
  446. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.d.ts +0 -14
  447. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.d.ts +0 -14
  448. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.d.ts +0 -15
  449. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.d.ts +0 -12
  450. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.d.ts +0 -16
  451. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.d.ts +0 -18
  452. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.d.ts +0 -43
  453. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.d.ts +0 -26
  454. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.d.ts +0 -42
  455. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.d.ts +0 -13
  456. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.d.ts +0 -64
  457. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.d.ts +0 -26
  458. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.d.ts +0 -67
  459. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.d.ts +0 -22
  460. package/dist/types/components/vega-rich-text-editor/extensions/table/constants/styles.constants.d.ts +0 -3
  461. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +0 -79
  462. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +0 -42
  463. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +0 -41
  464. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +0 -45
  465. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +0 -42
  466. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +0 -34
  467. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +0 -44
  468. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/caption-to-caption-block-strategy.d.ts +0 -29
  469. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.d.ts +0 -26
  470. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.d.ts +0 -26
  471. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.d.ts +0 -27
  472. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.d.ts +0 -26
  473. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.d.ts +0 -26
  474. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.d.ts +0 -12
  475. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.d.ts +0 -13
  476. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.d.ts +0 -37
  477. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.d.ts +0 -88
  478. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.d.ts +0 -12
  479. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.d.ts +0 -12
  480. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +0 -61
  481. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.d.ts +0 -12
  482. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.d.ts +0 -66
  483. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.d.ts +0 -36
  484. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-cancel-event-handler.d.ts +0 -17
  485. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-change-event-handler.d.ts +0 -15
  486. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-save-event-handler.d.ts +0 -17
  487. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties.d.ts +0 -62
  488. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.d.ts +0 -55
  489. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.d.ts +0 -61
  490. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.d.ts +0 -47
  491. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-cancel-event-handler.d.ts +0 -19
  492. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-change-event-handler.d.ts +0 -17
  493. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-save-event-handler.d.ts +0 -17
  494. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties.d.ts +0 -33
  495. package/dist/types/components/vega-rich-text-editor/extensions/table/table-extension.d.ts +0 -36
  496. package/dist/types/components/vega-rich-text-editor/extensions/table/table-icon.d.ts +0 -3
  497. package/dist/types/components/vega-rich-text-editor/extensions/table/table-selection.d.ts +0 -149
  498. package/dist/types/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.d.ts +0 -86
  499. package/dist/types/components/vega-rich-text-editor/extensions/table/utils/utils.d.ts +0 -53
  500. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-bottom.d.ts +0 -3
  501. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-middle.d.ts +0 -3
  502. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-top.d.ts +0 -3
  503. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-center-horizontal.d.ts +0 -3
  504. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-left.d.ts +0 -3
  505. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-right.d.ts +0 -3
  506. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/controllers/vega-rich-text-table-properties-color-controller.d.ts +0 -14
  507. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-cell-properties-form-field-renderer.d.ts +0 -49
  508. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-basic-form-field-renderer.abstract.d.ts +0 -99
  509. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-field-renderer.d.ts +0 -27
  510. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-renderer.d.ts +0 -33
  511. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.d.ts +0 -57
  512. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.d.ts +0 -15
  513. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.d.ts +0 -31
  514. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.d.ts +0 -27
  515. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.d.ts +0 -2
  516. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.d.ts +0 -11
  517. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.d.ts +0 -11
  518. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.d.ts +0 -28
  519. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.d.ts +0 -36
  520. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.d.ts +0 -11
  521. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.d.ts +0 -36
  522. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.d.ts +0 -11
  523. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.d.ts +0 -55
  524. package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/annotation-handler-registration.test.d.ts +0 -1
  525. package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-annotation-handler.test.d.ts +0 -1
  526. package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-cell-annotation-handler.test.d.ts +0 -1
  527. package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-head-cell-annotation-handler.test.d.ts +0 -1
  528. package/dist/types/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.d.ts +0 -1
  529. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.d.ts +0 -1
  530. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.d.ts +0 -1
  531. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.d.ts +0 -1
  532. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-dto.test.d.ts +0 -1
  533. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-element-to-dto-strategies.test.d.ts +0 -1
  534. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-test-utils.d.ts +0 -11
  535. package/dist/vega/app-globals-955a2b3b.js +0 -427
  536. package/dist/vega/child-nodes-event-prevent-slimmer-a604a6dd.js +0 -156
  537. package/dist/vega/design-token-56b26205.js +0 -402
  538. package/dist/vega/element-appender-slimmer-8355fb28.js +0 -1508
  539. package/dist/vega/event-emit-slimmer-7a14f5e9.js +0 -265
  540. package/dist/vega/internal-vega-event-manager-8c62c88e.js +0 -458
  541. package/dist/vega/p-068ee55e.entry.js +0 -1
  542. package/dist/vega/p-088f4613.entry.js +0 -1
  543. package/dist/vega/p-0e4cecbd.entry.js +0 -1
  544. package/dist/vega/p-10ffb765.js +0 -1
  545. package/dist/vega/p-151b1deb.js +0 -1
  546. package/dist/vega/p-1b44db34.js +0 -1
  547. package/dist/vega/p-1bda4016.entry.js +0 -1
  548. package/dist/vega/p-213be5e9.entry.js +0 -1
  549. package/dist/vega/p-224a4f3f.entry.js +0 -1
  550. package/dist/vega/p-22c76be7.entry.js +0 -1
  551. package/dist/vega/p-22da15d7.entry.js +0 -1
  552. package/dist/vega/p-29a9c8f5.entry.js +0 -1
  553. package/dist/vega/p-34a994a1.entry.js +0 -1
  554. package/dist/vega/p-39d56e3d.js +0 -1
  555. package/dist/vega/p-40660c09.js +0 -1
  556. package/dist/vega/p-50a506ea.entry.js +0 -1
  557. package/dist/vega/p-550ce71a.entry.js +0 -1
  558. package/dist/vega/p-5d2704c1.entry.js +0 -1
  559. package/dist/vega/p-61ae4e9c.entry.js +0 -1
  560. package/dist/vega/p-6665d083.entry.js +0 -1
  561. package/dist/vega/p-69af3422.entry.js +0 -1
  562. package/dist/vega/p-6d9731c1.entry.js +0 -1
  563. package/dist/vega/p-6f08e3e1.entry.js +0 -1
  564. package/dist/vega/p-7172332a.entry.js +0 -1
  565. package/dist/vega/p-73689ec0.entry.js +0 -1
  566. package/dist/vega/p-79e8236a.entry.js +0 -1
  567. package/dist/vega/p-82ec9721.entry.js +0 -1
  568. package/dist/vega/p-8a4d8139.entry.js +0 -1
  569. package/dist/vega/p-98b78c75.entry.js +0 -1
  570. package/dist/vega/p-a007b493.entry.js +0 -1
  571. package/dist/vega/p-a439e59b.entry.js +0 -1
  572. package/dist/vega/p-a4d0ab07.js +0 -1
  573. package/dist/vega/p-ab0e013c.entry.js +0 -1
  574. package/dist/vega/p-abf871cd.entry.js +0 -1
  575. package/dist/vega/p-c674b07c.js +0 -1
  576. package/dist/vega/p-c6d98c60.entry.js +0 -1
  577. package/dist/vega/p-c78fe943.js +0 -1
  578. package/dist/vega/p-d1349401.entry.js +0 -1
  579. package/dist/vega/p-d4719c14.entry.js +0 -1
  580. package/dist/vega/p-d55365b9.entry.js +0 -1
  581. package/dist/vega/p-db482ee1.js +0 -1
  582. package/dist/vega/p-dc2813eb.entry.js +0 -1
  583. package/dist/vega/p-e0cefd90.entry.js +0 -1
  584. package/dist/vega/p-e13c163c.entry.js +0 -1
  585. package/dist/vega/p-f4b46f6b.entry.js +0 -1
  586. package/dist/vega/p-f519cdc3.entry.js +0 -1
  587. package/dist/vega/p-fbfb4c70.entry.js +0 -1
  588. package/dist/vega/p-fcabf0dc.js +0 -1
  589. package/dist/vega/p-ff921d10.js +0 -1
  590. package/dist/vega/p-ff9a0e6e.js +0 -1
  591. package/dist/vega/public-api-8dd022fa.js +0 -6043
  592. package/dist/vega/public-api-baaf7593.js +0 -4
  593. package/dist/vega/responsive-format-facade-98596535.js +0 -913
  594. package/dist/vega/style-formatter-0ae102e9.js +0 -32
  595. package/dist/vega/vega-accordion.entry.js +0 -291
  596. package/dist/vega/vega-app-header-button.entry.js +0 -452
  597. package/dist/vega/vega-banner.entry.js +0 -351
  598. package/dist/vega/vega-box.entry.js +0 -353
  599. package/dist/vega/vega-breadcrumb.entry.js +0 -249
  600. package/dist/vega/vega-button-circle.entry.js +0 -245
  601. package/dist/vega/vega-button-group.entry.js +0 -203
  602. package/dist/vega/vega-button-link.entry.js +0 -226
  603. package/dist/vega/vega-button.entry.js +0 -259
  604. package/dist/vega/vega-calendar.entry.js +0 -3884
  605. package/dist/vega/vega-card.entry.js +0 -226
  606. package/dist/vega/vega-carousel.entry.js +0 -540
  607. package/dist/vega/vega-checkbox-group.entry.js +0 -266
  608. package/dist/vega/vega-checkbox.entry.js +0 -335
  609. package/dist/vega/vega-chip.entry.js +0 -321
  610. package/dist/vega/vega-code-block.entry.js +0 -4372
  611. package/dist/vega/vega-color-picker.entry.js +0 -258
  612. package/dist/vega/vega-combo-box.entry.js +0 -748
  613. package/dist/vega/vega-date-picker-calendar.entry.js +0 -1381
  614. package/dist/vega/vega-date-picker.entry.js +0 -1646
  615. package/dist/vega/vega-dialog.entry.js +0 -158
  616. package/dist/vega/vega-divider.entry.js +0 -179
  617. package/dist/vega/vega-dropdown-content-box.entry.js +0 -57
  618. package/dist/vega/vega-dropdown-item.entry.js +0 -352
  619. package/dist/vega/vega-dropdown.entry.js +0 -2136
  620. package/dist/vega/vega-field-label.entry.js +0 -182
  621. package/dist/vega/vega-file-uploader.entry.js +0 -751
  622. package/dist/vega/vega-flag-icon.entry.js +0 -216
  623. package/dist/vega/vega-flex.entry.js +0 -224
  624. package/dist/vega/vega-font.entry.js +0 -327
  625. package/dist/vega/vega-form.entry.js +0 -1008
  626. package/dist/vega/vega-grid.entry.js +0 -129
  627. package/dist/vega/vega-icon.entry.js +0 -256
  628. package/dist/vega/vega-image-uploader.entry.js +0 -977
  629. package/dist/vega/vega-input-credit-card.entry.js +0 -549
  630. package/dist/vega/vega-input-numeric.entry.js +0 -471
  631. package/dist/vega/vega-input-passcode.entry.js +0 -728
  632. package/dist/vega/vega-input-phone-number.entry.js +0 -9143
  633. package/dist/vega/vega-input-range.entry.js +0 -693
  634. package/dist/vega/vega-input-select.entry.js +0 -1268
  635. package/dist/vega/vega-input.entry.js +0 -1735
  636. package/dist/vega/vega-item-toggle.entry.js +0 -190
  637. package/dist/vega/vega-left-nav-group.entry.js +0 -433
  638. package/dist/vega/vega-left-nav-link.entry.js +0 -317
  639. package/dist/vega/vega-left-nav-section.entry.js +0 -97
  640. package/dist/vega/vega-left-nav.entry.js +0 -654
  641. package/dist/vega/vega-loading-indicator.entry.js +0 -209
  642. package/dist/vega/vega-modal.entry.js +0 -1287
  643. package/dist/vega/vega-nav-card.entry.js +0 -163
  644. package/dist/vega/vega-pagination-page-selector-mobile.entry.js +0 -214
  645. package/dist/vega/vega-pagination.entry.js +0 -629
  646. package/dist/vega/vega-popover-content-box.entry.js +0 -101
  647. package/dist/vega/vega-popover.entry.js +0 -362
  648. package/dist/vega/vega-progress-tracker.entry.js +0 -757
  649. package/dist/vega/vega-radio-group.entry.js +0 -496
  650. package/dist/vega/vega-radio.entry.js +0 -272
  651. package/dist/vega/vega-rich-text-editor-toolbar-button.entry.js +0 -169
  652. package/dist/vega/vega-rich-text-editor.entry.js +0 -4107
  653. package/dist/vega/vega-rich-text-image-editor.entry.js +0 -216
  654. package/dist/vega/vega-rich-text-link-editor.entry.js +0 -238
  655. package/dist/vega/vega-rich-text-table-properties.entry.js +0 -641
  656. package/dist/vega/vega-rich-text-table-setting.entry.js +0 -525
  657. package/dist/vega/vega-segment-control.entry.js +0 -350
  658. package/dist/vega/vega-selection-chip-group.entry.js +0 -447
  659. package/dist/vega/vega-selection-chip.entry.js +0 -443
  660. package/dist/vega/vega-selection-tile-group.entry.js +0 -438
  661. package/dist/vega/vega-selection-tile.entry.js +0 -409
  662. package/dist/vega/vega-sidenav-link.entry.js +0 -160
  663. package/dist/vega/vega-sidenav.entry.js +0 -766
  664. package/dist/vega/vega-signature-capture.entry.js +0 -589
  665. package/dist/vega/vega-stepper.entry.js +0 -292
  666. package/dist/vega/vega-tab-group-panel.entry.js +0 -79
  667. package/dist/vega/vega-tab-group.entry.js +0 -1281
  668. package/dist/vega/vega-table-body.entry.js +0 -48
  669. package/dist/vega/vega-table-cell.entry.js +0 -243
  670. package/dist/vega/vega-table-foot-cell.entry.js +0 -169
  671. package/dist/vega/vega-table-foot-row.entry.js +0 -219
  672. package/dist/vega/vega-table-foot.entry.js +0 -136
  673. package/dist/vega/vega-table-head-cell.entry.js +0 -339
  674. package/dist/vega/vega-table-head-row.entry.js +0 -416
  675. package/dist/vega/vega-table-head.entry.js +0 -113
  676. package/dist/vega/vega-table-row.entry.js +0 -666
  677. package/dist/vega/vega-table.entry.js +0 -3707
  678. package/dist/vega/vega-textarea.entry.js +0 -329
  679. package/dist/vega/vega-time-picker.entry.js +0 -2039
  680. package/dist/vega/vega-toggle-switch.entry.js +0 -194
  681. package/dist/vega/vega-tooltip.entry.js +0 -339
  682. package/style/vega-icons.css +0 -17266
@@ -1,1735 +0,0 @@
1
- import { h, r as registerInstance, e as createEvent, g as Host, i as getElement } from './index-01a2f9c9.js';
2
- import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
3
- import { M as MinNumberRule, a as MaxNumberRule } from './max-number-rule-da2cb116.js';
4
- import { M as MinStringLengthRule, a as MaxStringLengthRule } from './min-string-length-rule-c31c89f4.js';
5
- import { R as RequiredFieldRule } from './required-field-rule-ab4bdc47.js';
6
- import { s as sanitizeVegaComponent } from './component-0cff85cf.js';
7
- import { C as ComponentLoadRequired } from './component-load-required-db42032a.js';
8
- import { V as VegaSlimmer, b as MapToComponentField, M as MapToComponentMethod, m as methodPlaceholder, d as slotPlaceholder, e as InjectVegaGlobalSlimmer, a as InjectVegaSlimmer } from './vega-slimmer-core-83fd0e22.js';
9
- import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-316ebdb1.js';
10
- import { c as createEventEmitSlimmer } from './event-emit-slimmer-61db3eef.js';
11
- import { a as VegaClick, x as VegaLabelButtonClick, h as VegaChange, F as VegaFocus, G as VegaBlur, H as VegaPaste } from './vega-event-id-61c8bd9f.js';
12
- import { S as StringMaskStrategy } from './string-mask-strategy-9cd2a273.js';
13
- import { S as StringFormatStrategy } from './string-format-strategy.abstract-2d2ce51e.js';
14
- import { i as isNonNullable } from './type-guard-09acedc9.js';
15
- import { S as StringInputFormatterSlimmer } from './string-input-formatter-slimmer-39a7bd95.js';
16
- import { i as isArrayEqual } from './array-a1d98264.js';
17
- import { d as deepEqual } from './object-66c37948.js';
18
- import { U as VegaInternalSetupVegaInputMaskConfig, W as VegaInternalUpdateVegaInputValue, X as VegaInternalFocusVegaInput } from './vega-internal-event-id-b65a01a3.js';
19
- import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-3b49c6b3.js';
20
- import { V as VegaComponentUsageRuntimeMetricsSlimmer } from './component-usage-runtime-metrics-0513698f.js';
21
- import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-ee8774a6.js';
22
- import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-4fc8b3da.js';
23
- import { a as VegaInternalIconManager } from './internal-icon-manager-9279071a.js';
24
- import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
25
- import { C as ChangeManager } from './change-manager-b115783e.js';
26
- import { d as domNodeSubjectFactory } from './dom-node-subject-factory-5798693b.js';
27
- import { F as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-6fdf8c8b.js';
28
- import './number-4398f2e1.js';
29
- import './string-a953eafc.js';
30
- import './observer-3959f9dd.js';
31
- import './ui-5f775fd9.js';
32
- import './create-public-api-runtime-metrics-slimmer-8565f08b.js';
33
- import './index-81ce67e2.js';
34
- import './mutation-observer-slimmer-7065c745.js';
35
- import './mutation-observer-filters-6c515793.js';
36
- import './internal-vega-event-manager-826279b7.js';
37
- import './try-get-document-bef0f526.js';
38
- import './breakpoints-d9faf11c.js';
39
- import './ui-189dae23.js';
40
- import './typography-396de03f.js';
41
- import './index-b04c1ee0.js';
42
-
43
- /**
44
- * This email regex from https://stackoverflow.com/a/201378
45
- * Added valid complete email by this ticket https://gethired.atlassian.net/browse/VD-2616
46
- */
47
- const EMAIL_VALIDATION_REGEX =
48
- // eslint-disable-next-line no-control-regex
49
- /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;
50
-
51
- /**
52
- * This class is a rule that checks if the input is a valid email address
53
- *
54
- * @augments {InternalFormFieldValidationRule<string>}
55
- */
56
- class EmailFieldRule extends InternalFormFieldValidationRule {
57
- /**
58
- * It checks if the input is a valid email address.
59
- *
60
- * @param {string} input - string
61
- * @returns {EvaluateResultTranslation} An object with two properties: isValid and message.
62
- * @throws {Error} if input is unable to evaluate
63
- */
64
- evaluate(input) {
65
- if (!this.isAcceptedInputType(input)) {
66
- throw new Error(`Unexpected type of input: ${typeof input}: ${input}`);
67
- }
68
- const isValid = EMAIL_VALIDATION_REGEX.test(input.toLowerCase());
69
- return {
70
- isValid: isValid,
71
- message: isValid ? '' : 'Please enter the correct email format.',
72
- };
73
- }
74
- /**
75
- * If the input is accepted and the status is not disabled and visible, then return true
76
- *
77
- * @param {unknown} input - The input to be evaluated.
78
- * @param {FormFieldStatusMeta} [status] - FormFieldStatusMeta
79
- * @returns {boolean} A boolean value.
80
- */
81
- canEvaluate(input, status) {
82
- return status
83
- ? this.isAcceptedInputType(input) && !status.disabled && status.visible
84
- : this.isAcceptedInputType(input);
85
- }
86
- /**
87
- * If the field is not disabled, visible, and has been touched or modified, then show the error
88
- *
89
- * @param {FormFieldStatusMeta} status - FormFieldStatusMeta
90
- * @returns {boolean} A boolean value.
91
- */
92
- shouldShowError(status) {
93
- return !status.disabled && status.visible && (status.touched || status.modified);
94
- }
95
- /**
96
- * This function returns true if the input is a string with a length greater than zero, otherwise it returns false.
97
- *
98
- * @param {unknown} input - The input to be validated.
99
- * @returns {boolean} A boolean value.
100
- */
101
- isAcceptedInputType(input) {
102
- return typeof input === 'string' && input.length > 0;
103
- }
104
- }
105
-
106
- var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
107
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
108
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
109
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
110
- return c > 3 && r && Object.defineProperty(target, key, r), r;
111
- };
112
- /** The `VegaInputCopyPasteController` class extends `VegaSlimmer` and provides methods to handle copy, cut, and paste events based on the `disableCopyPaste` property of a `VegaInput` component. */
113
- class VegaInputCopyPasteController extends VegaSlimmer {
114
- /**
115
- * The function `getCopyPasteProps` returns an object with event handlers that prevent default behavior for copy, cut, and paste events if `disableCopyPaste` is true.
116
- *
117
- * @returns {Record<string, (e: ClipboardEvent) => void>} If `this.disableCopyPaste` is true, an object with `onCopy`, `onCut`, and `onPaste`
118
- * properties is being returned. Each property is a function that takes a `ClipboardEvent` parameter
119
- * and prevents the default behavior of the event. If `this.disableCopyPaste` is false, an empty
120
- * object is being returned.
121
- */
122
- getCopyPasteProps() {
123
- if (this.disableCopyPaste) {
124
- return {
125
- onCopy: this.preventDefault,
126
- onCut: this.preventDefault,
127
- onPaste: this.preventDefault,
128
- };
129
- }
130
- else {
131
- return {};
132
- }
133
- }
134
- /**
135
- * The `preventDefault` function in TypeScript prevents the default behavior of a ClipboardEvent.
136
- *
137
- * @param {ClipboardEvent} e - The parameter "e" in the function "preventDefault" is of type
138
- * ClipboardEvent. This parameter represents the event object that is passed to the function when it
139
- * is called.
140
- */
141
- preventDefault(e) {
142
- e.preventDefault();
143
- }
144
- }
145
- __decorate$a([
146
- MapToComponentField()
147
- ], VegaInputCopyPasteController.prototype, "disableCopyPaste", void 0);
148
-
149
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
150
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
151
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
152
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
153
- return c > 3 && r && Object.defineProperty(target, key, r), r;
154
- };
155
- /** The `VegaInputPrefixSlotRenderer` class in TypeScript React renders a prefix icon for a VegaInput component, checking for the existence of a specific slot named "prefix-icon" in the host element. */
156
- class VegaInputPrefixSlotRenderer extends VegaSlimmer {
157
- render() {
158
- const hasSlotContent = this.hasPrefixSlot();
159
- if (this.prefixIcon || hasSlotContent) {
160
- return (h("div", { class: {
161
- 'vega-input-prefix': true,
162
- 'vega-input-prefix-slot': hasSlotContent,
163
- }, part: "prefix-icon-container" },
164
- this.prefixIcon && !hasSlotContent ? (h("vega-icon", { icon: this.prefixIcon, size: "size-16" })) : null,
165
- h("slot", { name: "prefix-icon" })));
166
- }
167
- }
168
- /**
169
- * The function checks if a specific slot named "prefix-icon" exists in the host element.
170
- *
171
- * @returns {boolean} The `hasPrefixSlot()` method returns a boolean value - `true` if the host element has a
172
- * child element with the slot attribute set to "prefix-icon", and `false` otherwise.
173
- */
174
- hasPrefixSlot() {
175
- return this.host.querySelector('[slot="prefix-icon"]') ? true : false;
176
- }
177
- }
178
- __decorate$9([
179
- MapToComponentField()
180
- ], VegaInputPrefixSlotRenderer.prototype, "host", void 0);
181
- __decorate$9([
182
- MapToComponentField()
183
- ], VegaInputPrefixSlotRenderer.prototype, "prefixIcon", void 0);
184
-
185
- /**
186
- * A class for formatting string with the "," as the thousand separator
187
- *
188
- * @augments StringFormatStrategy
189
- */
190
- class ThousandCommaStrategy extends StringFormatStrategy {
191
- /**
192
- * If the input is a number, format it as a string
193
- *
194
- * @param {string} input - string
195
- * @returns {string} The input string, but with commas as thousands separator.
196
- */
197
- format(input) {
198
- if (!input.length)
199
- return input;
200
- const numValue = Number(input.replace(/,/g, ''));
201
- if (!isNaN(numValue) && numValue <= Number.MAX_SAFE_INTEGER) {
202
- return numValue.toLocaleString('en-US');
203
- }
204
- return input;
205
- }
206
- /**
207
- * Get the position of caret
208
- *
209
- * @param {string} input - The input string
210
- * @param {number} caretPosition - The current caret position
211
- * @returns {number} The new position of caret
212
- */
213
- calculateCaretPosition(input, caretPosition) {
214
- const formatInput = this.format(input);
215
- const oldFrontInput = input.substring(0, caretPosition);
216
- const newFrontInput = formatInput.substring(0, caretPosition);
217
- const oldFrontCommaCount = (oldFrontInput.match(/,/g) || []).length;
218
- const newFrontCommaCount = (newFrontInput.match(/,/g) || []).length;
219
- return caretPosition + (newFrontCommaCount - oldFrontCommaCount);
220
- }
221
- }
222
-
223
- /**
224
- * A class for formatting number with the given mask format
225
- */
226
- class NumberMaskStrategy extends StringFormatStrategy {
227
- /**
228
- * It creates a new instance of the Mask class.
229
- *
230
- * @param {NumberMaskConfig} maskConfig - MaskConfig
231
- */
232
- constructor(maskConfig) {
233
- super();
234
- this.maskConfig = { allowNegative: true };
235
- /**
236
- * if allow negative, will skip '-', e.g. when input '-' -> '-1.2'
237
- * if precision is not null, then user can fill input with decimal places, e.g. when input '1.' -> '1.2'
238
- *
239
- * @param {string} input - input number
240
- * @returns {boolean} need skip if return true, otherwise false
241
- */
242
- this.skipFormat = (input) => {
243
- return ((this.maskConfig.allowNegative && input === '-') ||
244
- (this.maskConfig.precision != undefined &&
245
- this.maskConfig.precision > 0 &&
246
- input.split('.').length - 1 === 1 &&
247
- input.endsWith('.') &&
248
- !input.startsWith('.')));
249
- };
250
- this.maskConfig = Object.assign(Object.assign({}, this.maskConfig), maskConfig);
251
- this.mask = new RegExp(this.getRegExp());
252
- }
253
- /**
254
- * Given a number string, it replaces the mask with the matched input value
255
- *
256
- * @param {string} input - input number
257
- * @returns {string} The formatted number string.
258
- */
259
- format(input) {
260
- const redressedInput = this.redressAbnormalNumber(input);
261
- if (this.skipFormat(redressedInput)) {
262
- return redressedInput;
263
- }
264
- const resultStringBuilder = [...redressedInput];
265
- for (let i = redressedInput.length - 1; i >= 0; i--) {
266
- const value = resultStringBuilder.join('');
267
- if (this.inputNeedFormat(value)) {
268
- resultStringBuilder.pop();
269
- }
270
- }
271
- return resultStringBuilder.join('');
272
- }
273
- /**
274
- * Get the position of caret
275
- *
276
- * @param {string} input - input number
277
- * @param {number} caretPosition - The current caret position
278
- * @returns {Nullable<number>} The new position of caret
279
- */
280
- calculateCaretPosition(input, caretPosition) {
281
- if (isNonNullable(caretPosition)) {
282
- const redressedInput = this.redressAbnormalNumber(input);
283
- return caretPosition - (input.length - redressedInput.length);
284
- }
285
- }
286
- /**
287
- * Whether the input string need delete the latest char
288
- *
289
- * @param {string} value - the input value
290
- * @returns {boolean} return true if the value need mask format. otherwise false
291
- */
292
- inputNeedFormat(value) {
293
- return !this.mask.test(value);
294
- }
295
- /**
296
- * Remove zero of beginning, example:
297
- * 00012 -> 12
298
- * 000.12 -> 0.12
299
- * 00123,456 -> 123,456
300
- * .12 -> 0.12
301
- *
302
- * @param {string} input - the input value
303
- * @returns {string} - redressed Number
304
- */
305
- redressAbnormalNumber(input) {
306
- let removedZeroBeginning = input.replace(/^0+(?!$)/, '');
307
- if (removedZeroBeginning.startsWith('.')) {
308
- removedZeroBeginning = `0${removedZeroBeginning}`;
309
- }
310
- return removedZeroBeginning;
311
- }
312
- /**
313
- * Get the number RegExp
314
- *
315
- * @returns {string} - The number regExp
316
- */
317
- getRegExp() {
318
- const negativeMask = this.maskConfig.allowNegative ? `(\\-)?` : '';
319
- let precisionMask;
320
- if (this.maskConfig.precision === 0) {
321
- precisionMask = `^${negativeMask}(0|[1-9][0-9]*)$`;
322
- }
323
- else if (this.maskConfig.precision && this.maskConfig.precision > 0) {
324
- precisionMask = `^${negativeMask}(0|0\\.\\d{1,${this.maskConfig.precision}}|[1-9][0-9]*(\\.\\d{1,${this.maskConfig.precision}})?)$`;
325
- }
326
- else {
327
- precisionMask = `^${negativeMask}(0|0\\.\\d*|[1-9][0-9]*(\\.\\d*)?)$`;
328
- }
329
- return precisionMask;
330
- }
331
- }
332
-
333
- /**
334
- * Used to format a string using a custom formatter.
335
- */
336
- class CustomFormatterStrategy extends StringFormatStrategy {
337
- /**
338
- * The constructor function takes a CustomStringFormatter parameter and assigns it to the formatter
339
- * property of the class.
340
- *
341
- * @param {CustomStringFormatter} formatter - The `formatter` parameter is an instance of a custom
342
- * string formatter class that you are passing to the constructor of the class. This custom string
343
- * formatter class likely contains methods or properties related to formatting strings in a specific
344
- * way according to your requirements.
345
- * @param {boolean} resetCaretPosition - The caret position should update to the last or keep the current position after format
346
- */
347
- constructor(formatter, resetCaretPosition = false) {
348
- super();
349
- this.resetCaretPositionFlag = false;
350
- this.formatter = formatter;
351
- this.resetCaretPositionFlag = resetCaretPosition;
352
- }
353
- /**
354
- * The format function in TypeScript takes a string input and returns the formatted output using a
355
- * formatter method.
356
- *
357
- * @param {string} input - The `format` function takes a string input and passes it to the `formatter`
358
- * function to format it.
359
- * @returns {string} The `format` function is returning the result of calling the `formatter` function with the
360
- * `input` string as its argument.
361
- */
362
- format(input) {
363
- return this.formatter(input);
364
- }
365
- /**
366
- * The function calculates the caret position in a formatted input string.
367
- *
368
- * @param {string} input - The `input` parameter in the `calculateCaretPosition` function is a string
369
- * that represents the text input where you want to calculate the caret position.
370
- * @param {number} caretPosition - The current position of caret
371
- * @returns {Nullable<number>} The `calculateCaretPosition` function is returning the length of the formatted input
372
- * string.
373
- */
374
- calculateCaretPosition(input, caretPosition) {
375
- if (this.resetCaretPositionFlag === true) {
376
- return this.format(input).length;
377
- }
378
- else if (isNonNullable(caretPosition)) {
379
- const startValue = input.substring(0, caretPosition);
380
- const maskedStartValue = this.format(startValue);
381
- return caretPosition + (maskedStartValue.length - startValue.length);
382
- }
383
- }
384
- /**
385
- * Trigger the formatter at init
386
- *
387
- * @returns {boolean} true or false
388
- */
389
- shouldTriggerAtInit() {
390
- return true;
391
- }
392
- }
393
-
394
- /**
395
- * A class for formatting number string with the "," as the thousand separator
396
- */
397
- class NumberThousandCommaStrategy extends NumberMaskStrategy {
398
- /**
399
- * It creates a new instance of the Mask class.
400
- *
401
- * @param {NumberMaskConfig} maskConfig - MaskConfig
402
- */
403
- constructor(maskConfig) {
404
- super(maskConfig);
405
- }
406
- /**
407
- * If the input is a number, format it as a thousand comma string
408
- *
409
- * @param {string} input - string
410
- * @returns {string} The input string, but with commas as thousands separator.
411
- */
412
- format(input) {
413
- const redressedInput = this.redressAbnormalNumber(input);
414
- if (this.skipFormat(redressedInput)) {
415
- return redressedInput;
416
- }
417
- const resultStringBuilder = [...redressedInput];
418
- for (let i = redressedInput.length - 1; i >= 0; i--) {
419
- const value = resultStringBuilder.join('');
420
- if (this.inputNeedFormat(value.replace(/,/g, ''))) {
421
- resultStringBuilder.pop();
422
- }
423
- }
424
- return this.thousandCommaFormat(resultStringBuilder.join(''));
425
- }
426
- /**
427
- * Get the position of caret
428
- *
429
- * @param {string} input - The input string
430
- * @param {number} caretPosition - The current caret position
431
- * @returns {number} The new position of caret
432
- */
433
- calculateCaretPosition(input, caretPosition) {
434
- const redressedInput = this.redressAbnormalNumber(input);
435
- const formattedInput = this.format(input);
436
- const oldFrontInput = input.substring(0, caretPosition);
437
- const newFrontInput = formattedInput.substring(0, caretPosition);
438
- const oldFrontCommaCount = (oldFrontInput.match(/,/g) || []).length;
439
- const newFrontCommaCount = (newFrontInput.match(/,/g) || []).length;
440
- return (caretPosition + (newFrontCommaCount - oldFrontCommaCount) - (input.length - redressedInput.length));
441
- }
442
- /**
443
- * The function `thousandCommaFormat` takes a string input, removes non-numeric characters, formats the number with thousand commas, and returns the result.
444
- *
445
- * @param {string} input - Takes a string input and formats it by adding commas to separate thousands. It also handles decimal values based on the precision specified in the `maskConfig`.
446
- * @returns {string} Returns a formatted string with commas for thousands separator and optional decimal places.
447
- */
448
- thousandCommaFormat(input) {
449
- if (!input.length)
450
- return input;
451
- const inputValue = input.replace(/[^\d.-]/g, '');
452
- const pointIndex = inputValue.indexOf('.');
453
- const decimals = inputValue.length > 1 && pointIndex >= 1 ? inputValue.slice(pointIndex) : '';
454
- const numValue = Number(inputValue.split('.')[0]);
455
- if (!isNaN(numValue) && numValue <= Number.MAX_SAFE_INTEGER) {
456
- return numValue.toLocaleString('en-US') + decimals;
457
- }
458
- else {
459
- return inputValue;
460
- }
461
- }
462
- }
463
-
464
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
465
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
466
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
467
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
468
- return c > 3 && r && Object.defineProperty(target, key, r), r;
469
- };
470
- /** The `VegaInputMaskConfigController` class in TypeScript manages input mask configuration and string formatting for an input element within a component's shadow root. */
471
- class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
472
- constructor() {
473
- super(...arguments);
474
- /**
475
- * Get the input element which will add mask
476
- *
477
- * @returns {Nullable<HTMLInputElement>} the input element
478
- */
479
- this.getInputElementRef = () => {
480
- return this.inputRenderer.getInputRef();
481
- };
482
- /**
483
- * Determining the string format strategy to be applied when the input field trigger is set to 'input'.
484
- *
485
- * @returns {Nullable<StringFormatStrategy>} the input mode mask strategy
486
- */
487
- this.getInputModeStrategy = () => {
488
- return this.generateMaskStrategy('input');
489
- };
490
- /**
491
- * Determining the string format strategy to be applied when the input field trigger is set to 'blur'.
492
- *
493
- * @returns {Nullable<StringFormatStrategy>} the blur mode mask strategy
494
- */
495
- this.getBlurModeStrategy = () => {
496
- return this.generateMaskStrategy('blur');
497
- };
498
- }
499
- /** connectedCallback */
500
- connectedCallback() {
501
- this.initSetupMaskConfigObserver();
502
- }
503
- /** disconnectedCallback */
504
- disconnectedCallback() {
505
- this.removeSetupMaskConfigObserver();
506
- }
507
- /**
508
- * Detect value change and initialize mask formatting
509
- *
510
- * @param {string} newValue The new value
511
- * @param {string} oldValue The new value
512
- */
513
- watchValue(newValue, oldValue) {
514
- if (newValue !== oldValue) {
515
- this.formatValueAfterValueChange();
516
- }
517
- }
518
- /**
519
- * Watch mask changes
520
- *
521
- * @param {MaskConfigType | MaskConfigType[]} newValue The new mask config value
522
- * @param {MaskConfigType | MaskConfigType[]} oldValue The old mask config value
523
- */
524
- watchMaskChange(newValue, oldValue) {
525
- if (this.areMaskConfigsEqual(newValue, oldValue))
526
- return;
527
- this.setup();
528
- }
529
- /*
530
- * The below method is e2e-test covered in
531
- * @see{module:vega-input-on-type-change}
532
- */
533
- /* istanbul ignore next */
534
- /**
535
- * Watch type changes
536
- *
537
- * @param {InputType} newType The new input type
538
- * @param {InputType} oldType The old input type
539
- */
540
- watchTypeChange(newType, oldType) {
541
- if (newType === 'number' || oldType === 'number') {
542
- this.setup();
543
- }
544
- }
545
- /*
546
- * The below method is e2e-test covered in
547
- * @see{module:vega-input-mask-type-thousand-comma-e2e}
548
- * @see{module:vega-input-mask-type-zipcode-e2e}
549
- * @see{module:vega-input-mask-type-taxId-e2e}
550
- * @see{module:vega-input-mask-type-phone-e2e}
551
- */
552
- /* istanbul ignore next */
553
- /**
554
- * This TypeScript function generates a string format strategy based on the provided mask configuration and trigger type.
555
- *
556
- * @param {'blur' | 'input'} maskTrigger - The `maskTrigger` parameter in the `generateMaskStrategy` function determines when the mask should be applied to the input field. It can have two possible values:
557
- * @returns {StringFormatStrategy|null} The function `generateMaskStrategy` returns a nullable `StringFormatStrategy` based on the provided `maskConfig` and `maskTrigger` parameters.
558
- */
559
- generateMaskStrategy(maskTrigger) {
560
- let maskConfig = null;
561
- if (Array.isArray(this.maskConfig)) {
562
- maskConfig = this.maskConfig.find((item) => maskTrigger === 'blur' ? this.isBlurModeMaskConfig(item) : !this.isBlurModeMaskConfig(item));
563
- }
564
- else if (this.maskConfig) {
565
- if (maskTrigger === 'blur' && this.isBlurModeMaskConfig(this.maskConfig)) {
566
- maskConfig = this.maskConfig;
567
- }
568
- else if (maskTrigger === 'input' && !this.isBlurModeMaskConfig(this.maskConfig)) {
569
- maskConfig = this.maskConfig;
570
- }
571
- }
572
- let stringFormatStrategy = null;
573
- switch (maskConfig === null || maskConfig === void 0 ? void 0 : maskConfig.type) {
574
- case 'phone':
575
- stringFormatStrategy = StringMaskStrategy.PHONE_MASK;
576
- break;
577
- case 'taxId':
578
- stringFormatStrategy = StringMaskStrategy.TAX_ID_MASK;
579
- break;
580
- case 'zipcode':
581
- stringFormatStrategy = StringMaskStrategy.ZIPCODE_MASK;
582
- break;
583
- case 'thousand-comma':
584
- stringFormatStrategy = new ThousandCommaStrategy();
585
- break;
586
- case 'number':
587
- stringFormatStrategy = this.getNumberTypeMaskStrategy(maskConfig.options);
588
- break;
589
- case 'custom':
590
- stringFormatStrategy = maskConfig.strategy
591
- ? maskConfig.strategy()
592
- : new StringMaskStrategy(maskConfig.options);
593
- break;
594
- case 'custom-formatter':
595
- stringFormatStrategy = new CustomFormatterStrategy(maskConfig.formatter, maskConfig.resetCaretPosition);
596
- break;
597
- }
598
- if (this.type === 'number' && maskTrigger === 'input' && !maskConfig) {
599
- stringFormatStrategy = new NumberMaskStrategy();
600
- }
601
- return stringFormatStrategy;
602
- }
603
- /**
604
- * The function `getNumberTypeMaskStrategy` returns a specific formatting strategy based on the provided options for number masking.
605
- *
606
- * @param {NumberMaskConfig} options - The `options` parameter is of type `NumberMaskConfig`, which likely contains configuration options for formatting numbers. It seems to have a property `thousandComma` which, if true, indicates that the number should be formatted with thousand commas.
607
- * @returns {StringFormatStrategy} an instance of numberMaskStrategy or numberThousandCommaStrategy
608
- */
609
- getNumberTypeMaskStrategy(options) {
610
- if (options && options.thousandComma) {
611
- return new NumberThousandCommaStrategy(options);
612
- }
613
- else {
614
- return new NumberMaskStrategy(options);
615
- }
616
- }
617
- /**
618
- * The function `isBlurModeMaskConfig` checks if a given `maskConfig` is of type 'custom' and has a trigger of 'blur'.
619
- *
620
- * @param {MaskConfigType} maskConfig - MaskConfigType
621
- * @returns {boolean} a boolean value, which indicates whether the provided `maskConfig` object has a type of
622
- * 'custom' and a trigger of 'blur'.
623
- */
624
- isBlurModeMaskConfig(maskConfig) {
625
- return maskConfig.type === 'custom' && maskConfig.trigger === 'blur';
626
- }
627
- /* istanbul ignore next */
628
- /**
629
- * Compares two MaskConfigType objects or arrays for equality.
630
- *
631
- * @param {MaskConfigType | MaskConfigType[]} a The first MaskConfigType object or array to compare.
632
- * @param {MaskConfigType | MaskConfigType[]} b The second MaskConfigType object or array to compare.
633
- * @returns {boolean} True if the two MaskConfigType objects or arrays are equal, false otherwise.
634
- */
635
- areMaskConfigsEqual(a, b) {
636
- const arrA = Array.isArray(a) ? a : [a];
637
- const arrB = Array.isArray(b) ? b : [b];
638
- return isArrayEqual(arrA, arrB, true, (a, b) => {
639
- return deepEqual(a, b) ? 0 : -1;
640
- });
641
- }
642
- /**
643
- * Initialize calendar clear observer
644
- */
645
- initSetupMaskConfigObserver() {
646
- DomNodeSubjectObserverFactory.addUniqueObserverToNode(this.host, VegaInternalSetupVegaInputMaskConfig, this.setup.bind(this));
647
- }
648
- /**
649
- * Remove calendar clear observer
650
- */
651
- removeSetupMaskConfigObserver() {
652
- DomNodeSubjectObserverFactory.removeUniqueObserverFromNode(this.host, VegaInternalSetupVegaInputMaskConfig);
653
- }
654
- }
655
- __decorate$8([
656
- MapToComponentField()
657
- ], VegaInputMaskConfigController.prototype, "maskConfig", void 0);
658
- __decorate$8([
659
- MapToComponentField()
660
- ], VegaInputMaskConfigController.prototype, "disableCopyPaste", void 0);
661
- __decorate$8([
662
- MapToComponentField()
663
- ], VegaInputMaskConfigController.prototype, "type", void 0);
664
- __decorate$8([
665
- MapToComponentField()
666
- ], VegaInputMaskConfigController.prototype, "inputRenderer", void 0);
667
- __decorate$8([
668
- MapToComponentMethod('connectedCallback')
669
- ], VegaInputMaskConfigController.prototype, "connectedCallback", null);
670
- __decorate$8([
671
- MapToComponentMethod('disconnectedCallback')
672
- ], VegaInputMaskConfigController.prototype, "disconnectedCallback", null);
673
- __decorate$8([
674
- MapToComponentMethod('watchValue')
675
- ], VegaInputMaskConfigController.prototype, "watchValue", null);
676
- __decorate$8([
677
- MapToComponentMethod('watchMaskChange')
678
- ], VegaInputMaskConfigController.prototype, "watchMaskChange", null);
679
- __decorate$8([
680
- MapToComponentMethod('watchTypeChange')
681
- ], VegaInputMaskConfigController.prototype, "watchTypeChange", null);
682
-
683
- const VegaInputRuntimeMetricsPayloadDefinition = [
684
- {
685
- payloadKey: 'AUTO_VALIDATION_IS_TRUE',
686
- payloadDescription: "Determines whether the input field should undergo automatic validation during the user's input",
687
- /**
688
- * The function checks if the `autoValidation` property of the `host` element is equal to 'true'.
689
- * If it is, the function will return `true`.
690
- *
691
- * @param {HTMLElement} host - The element to check
692
- * @returns {boolean} A boolean value
693
- */
694
- payloadValue: (host) => host.autoValidation === true,
695
- },
696
- {
697
- payloadKey: 'AUTO_VALIDATION_IS_FALSE',
698
- payloadDescription: "Determines whether the input field should undergo automatic validation during the user's input",
699
- /**
700
- * The function checks if the `autoValidation` property of the `host` element is equal to 'false'.
701
- * If it is, the function will return `true`.
702
- *
703
- * @param {HTMLElement} host - The element to check
704
- * @returns {boolean} A boolean value
705
- */
706
- payloadValue: (host) => host.autoValidation === false,
707
- },
708
- {
709
- payloadKey: 'EMAIL_IS_TRUE',
710
- payloadDescription: '@deprecated Enforces proper email format validation for the input field.',
711
- /**
712
- * The function checks if the `email` property of the `host` element is equal to 'true'.
713
- * If it is, the function will return `true`.
714
- *
715
- * @param {HTMLElement} host - The element to check
716
- * @returns {boolean} A boolean value
717
- */
718
- payloadValue: (host) => host.email === true,
719
- },
720
- {
721
- payloadKey: 'EMAIL_IS_FALSE',
722
- payloadDescription: '@deprecated Enforces proper email format validation for the input field.',
723
- /**
724
- * The function checks if the `email` property of the `host` element is equal to 'false'.
725
- * If it is, the function will return `true`.
726
- *
727
- * @param {HTMLElement} host - The element to check
728
- * @returns {boolean} A boolean value
729
- */
730
- payloadValue: (host) => host.email === false,
731
- },
732
- ];
733
-
734
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
735
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
736
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
737
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
738
- return c > 3 && r && Object.defineProperty(target, key, r), r;
739
- };
740
- /**
741
- * The input container has a fixed suffix that adapts based on the container size.
742
- * When the input container is large enough to fully display the input content, the suffix appears immediately after the input text.
743
- * this is achieved by setting the input to not grow flexibly while allowing the suffix to grow.
744
- * If the container is too small to display all the input content, the suffix moves to the end of the container,
745
- * with the input width controlled by the vega-input component.
746
- */
747
- class VegaInputCompactWidthController extends VegaSlimmer {
748
- /**
749
- * Component lifecycle - [componentDidLoad]
750
- */
751
- componentDidLoad() {
752
- this.setInputAutoWidth();
753
- }
754
- /**
755
- * While value changed, we should calculate input actual width
756
- */
757
- watchValue() {
758
- this.setInputAutoWidth();
759
- }
760
- /*
761
- * The below method is e2e-test covered in
762
- * @see{module:vega-input-suffix-text-change-e2e}
763
- */
764
- /* istanbul ignore next */
765
- /**
766
- * While suffixText changed, we should calculate input actual width
767
- */
768
- watchSuffixText() {
769
- this.setInputAutoWidth();
770
- }
771
- /*
772
- * The below method is e2e-test covered in
773
- * @see{module:vega-input-compact-input-width-e2e}
774
- */
775
- /* istanbul ignore next */
776
- /**
777
- * Adjusts the width of the input based on its content and container size.
778
- * while actual width of value larger than input width, we use native vega-input to controller the stretch
779
- * otherwise, we should make the input container not flex grow,and the suffix flex grow.
780
- */
781
- setInputAutoWidth() {
782
- const vegaInputContainer = this.host.shadowRoot.querySelector('.vega-input-container');
783
- const inputBox = vegaInputContainer === null || vegaInputContainer === void 0 ? void 0 : vegaInputContainer.querySelector('.vega-input-input');
784
- const input = inputBox === null || inputBox === void 0 ? void 0 : inputBox.querySelector('input');
785
- if (!input)
786
- return;
787
- vegaInputContainer.classList.remove('auto-width');
788
- input.style.removeProperty('width');
789
- if (this.isCompactInputWidth && this.suffixText) {
790
- const actualWidth = this.getActualInputWidth();
791
- if (inputBox.getBoundingClientRect().width > actualWidth) {
792
- input.style.width = `${actualWidth}px`;
793
- vegaInputContainer.classList.add('auto-width');
794
- }
795
- }
796
- }
797
- /**
798
- * Calculates the actual width of the text content.
799
- *
800
- * @returns {number} - The actual width of the text content.
801
- */
802
- getActualInputWidth() {
803
- const container = this.getCalculateTextWidthContainer();
804
- container.style.display = 'inline-block';
805
- container.textContent = `${this.value || this.placeholder || ''}`;
806
- const actualWidth = container.getBoundingClientRect().width;
807
- container.style.display = 'none';
808
- return actualWidth;
809
- }
810
- /**
811
- * Creates and returns a hidden container element for calculating text width.
812
- *
813
- * @returns {HTMLElement} - calculating text width container.
814
- */
815
- getCalculateTextWidthContainer() {
816
- if (!this.calculateTextWidthContainer) {
817
- // eslint-disable-next-line no-restricted-globals
818
- const container = document.createElement('div');
819
- container.classList.add('v-font-field-value');
820
- container.style.visibility = 'hidden';
821
- container.style.display = 'none';
822
- this.host.shadowRoot.append(container);
823
- this.calculateTextWidthContainer = container;
824
- }
825
- return this.calculateTextWidthContainer;
826
- }
827
- }
828
- __decorate$7([
829
- MapToComponentField()
830
- ], VegaInputCompactWidthController.prototype, "host", void 0);
831
- __decorate$7([
832
- MapToComponentField()
833
- ], VegaInputCompactWidthController.prototype, "value", void 0);
834
- __decorate$7([
835
- MapToComponentField()
836
- ], VegaInputCompactWidthController.prototype, "placeholder", void 0);
837
- __decorate$7([
838
- MapToComponentField()
839
- ], VegaInputCompactWidthController.prototype, "isCompactInputWidth", void 0);
840
- __decorate$7([
841
- MapToComponentField()
842
- ], VegaInputCompactWidthController.prototype, "suffixText", void 0);
843
- __decorate$7([
844
- MapToComponentMethod('componentDidLoad')
845
- ], VegaInputCompactWidthController.prototype, "componentDidLoad", null);
846
- __decorate$7([
847
- MapToComponentMethod('watchValue')
848
- ], VegaInputCompactWidthController.prototype, "watchValue", null);
849
- __decorate$7([
850
- MapToComponentMethod('watchSuffixText')
851
- ], VegaInputCompactWidthController.prototype, "watchSuffixText", null);
852
-
853
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
854
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
855
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
856
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
857
- return c > 3 && r && Object.defineProperty(target, key, r), r;
858
- };
859
- /**
860
- * Controller for the vega input states from parent vega-input-numeric
861
- * TODO: Should change to internal prop, https://gethired.atlassian.net/browse/VD-4986
862
- */
863
- class VegaInputStateController extends SubStateObserverSlimmer {
864
- // eslint-disable-next-line jsdoc/require-jsdoc
865
- constructor() {
866
- super({
867
- parent: 'vega-input-numeric',
868
- subStates: [
869
- {
870
- subStateName: 'prefixText',
871
- parentStateName: 'prefixText',
872
- },
873
- {
874
- subStateName: 'suffixText',
875
- parentStateName: 'suffixText',
876
- },
877
- {
878
- subStateName: 'isCompactInputWidth',
879
- parentStateName: 'isCompactInputWidth',
880
- },
881
- ],
882
- });
883
- }
884
- }
885
- __decorate$6([
886
- MapToComponentField()
887
- ], VegaInputStateController.prototype, "host", void 0);
888
- __decorate$6([
889
- MapToComponentField({ writable: true })
890
- ], VegaInputStateController.prototype, "prefixText", void 0);
891
- __decorate$6([
892
- MapToComponentField({ writable: true })
893
- ], VegaInputStateController.prototype, "suffixText", void 0);
894
- __decorate$6([
895
- MapToComponentField({ writable: true })
896
- ], VegaInputStateController.prototype, "isCompactInputWidth", void 0);
897
-
898
- const eye = {
899
- icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>`,
900
- };
901
-
902
- const eyeSlash = {
903
- icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg>`,
904
- };
905
-
906
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
907
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
908
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
909
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
910
- return c > 3 && r && Object.defineProperty(target, key, r), r;
911
- };
912
- class VegaInputPasswordEyeRenderer extends VegaSlimmer {
913
- render() {
914
- const iconKey = this.isPasswordDisplay ? 'eye' : 'eye-slash';
915
- return (h("vega-button-circle", { icon: VegaInternalIconManager.getIconKey(iconKey), variant: "icon-only", size: "small", class: "password-eye-button", ref: (ref) => {
916
- this.addEyeIconObserver(ref);
917
- } }));
918
- }
919
- addEyeIconObserver(eyeIconRef) {
920
- DomNodeSubjectObserverFactory.addUniqueObserverToNode(eyeIconRef, VegaClick, () => {
921
- this.isPasswordDisplay = !this.isPasswordDisplay;
922
- });
923
- }
924
- }
925
- (() => {
926
- VegaInternalIconManager.register({
927
- 'eye': eye,
928
- 'eye-slash': eyeSlash,
929
- });
930
- })();
931
- __decorate$5([
932
- MapToComponentField()
933
- ], VegaInputPasswordEyeRenderer.prototype, "host", void 0);
934
- __decorate$5([
935
- MapToComponentField({ writable: true })
936
- ], VegaInputPasswordEyeRenderer.prototype, "isPasswordDisplay", void 0);
937
- __decorate$5([
938
- MapToComponentField()
939
- ], VegaInputPasswordEyeRenderer.prototype, "type", void 0);
940
-
941
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
942
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
943
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
944
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
945
- return c > 3 && r && Object.defineProperty(target, key, r), r;
946
- };
947
- class VegaInputInputContainerRenderer extends VegaSlimmer {
948
- constructor() {
949
- super(...arguments);
950
- this.renderPrefixText = () => {
951
- return this.prefixText && h("div", { class: "prefix-text" }, this.prefixText);
952
- };
953
- this.renderSuffixText = () => {
954
- return this.suffixText && h("div", { class: "suffix-text" }, this.suffixText);
955
- };
956
- this.onClickClearIcon = () => {
957
- ChangeManager.notify(domNodeSubjectFactory.getSubject(this.host, VegaInternalUpdateVegaInputValue), '');
958
- };
959
- this.isClearIconVisible = () => {
960
- return !this.disabled && Boolean(this.value);
961
- };
962
- this.onClearInputFocus = () => {
963
- this.inputContainerRef.classList.add('no-focus');
964
- };
965
- this.onClearInputBlur = () => {
966
- this.inputContainerRef.classList.remove('no-focus');
967
- };
968
- this.onContainerClick = () => {
969
- ChangeManager.notify(domNodeSubjectFactory.getSubject(this.host, VegaInternalFocusVegaInput), {});
970
- };
971
- }
972
- getInputContainerRef() {
973
- return this.inputContainerRef;
974
- }
975
- render() {
976
- return (h("div", { ref: (e) => (this.inputContainerRef = e), part: "input-container", class: {
977
- 'vega-input-container': true,
978
- 'with-value': !!this.value,
979
- [`vega-input-size-${this.size}`]: true,
980
- 'vega-input-disabled': this.disabled,
981
- 'compact-input-width': this.isCompactInputWidth,
982
- }, onClick: this.onContainerClick, "aria-label": "input container", "aria-disabled": `${this.disabled}`, role: "textbox", tabIndex: !this.disabled ? -1 : null, onKeyDown: createEnterKeyHandlerToTriggerClick() },
983
- this.prefixSlotRenderer.render(),
984
- this.renderPrefixText(),
985
- this.inputRenderer.render(),
986
- this.renderSuffixText(),
987
- this.type === 'password'
988
- ? this.passwordEyeRenderer.render()
989
- : this.showClearIcon && this.renderClearIcon()));
990
- }
991
- renderClearIcon() {
992
- return (h("div", { class: {
993
- 'vega-input-clear-icon': true,
994
- 'invisible': !this.isClearIconVisible(),
995
- }, tabIndex: !this.disabled ? 0 : -1, "aria-label": "clear input", role: "button", onClick: this.onClickClearIcon, onKeyDown: createEnterKeyHandlerToTriggerClick(), onFocusin: this.onClearInputFocus, onFocusout: this.onClearInputBlur },
996
- h("vega-icon", { icon: "close" })));
997
- }
998
- }
999
- __decorate$4([
1000
- MapToComponentField()
1001
- ], VegaInputInputContainerRenderer.prototype, "host", void 0);
1002
- __decorate$4([
1003
- MapToComponentField()
1004
- ], VegaInputInputContainerRenderer.prototype, "value", void 0);
1005
- __decorate$4([
1006
- MapToComponentField()
1007
- ], VegaInputInputContainerRenderer.prototype, "size", void 0);
1008
- __decorate$4([
1009
- MapToComponentField()
1010
- ], VegaInputInputContainerRenderer.prototype, "disabled", void 0);
1011
- __decorate$4([
1012
- MapToComponentField()
1013
- ], VegaInputInputContainerRenderer.prototype, "type", void 0);
1014
- __decorate$4([
1015
- MapToComponentField()
1016
- ], VegaInputInputContainerRenderer.prototype, "showClearIcon", void 0);
1017
- __decorate$4([
1018
- MapToComponentField()
1019
- ], VegaInputInputContainerRenderer.prototype, "prefixText", void 0);
1020
- __decorate$4([
1021
- MapToComponentField()
1022
- ], VegaInputInputContainerRenderer.prototype, "suffixText", void 0);
1023
- __decorate$4([
1024
- MapToComponentField()
1025
- ], VegaInputInputContainerRenderer.prototype, "isCompactInputWidth", void 0);
1026
- __decorate$4([
1027
- MapToComponentField()
1028
- ], VegaInputInputContainerRenderer.prototype, "prefixSlotRenderer", void 0);
1029
- __decorate$4([
1030
- MapToComponentField()
1031
- ], VegaInputInputContainerRenderer.prototype, "passwordEyeRenderer", void 0);
1032
- __decorate$4([
1033
- MapToComponentField()
1034
- ], VegaInputInputContainerRenderer.prototype, "inputRenderer", void 0);
1035
-
1036
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1037
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1038
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1039
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1040
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1041
- };
1042
- class VegaInputInputRenderer extends VegaSlimmer {
1043
- constructor() {
1044
- super(...arguments);
1045
- this.setInputRef = (inputRef) => {
1046
- if (inputRef && this.inputRef !== inputRef) {
1047
- this.inputRef = inputRef;
1048
- this.notifySetupMaskConfig();
1049
- }
1050
- };
1051
- this.handleInputFocus = (e) => {
1052
- this.focusEventEmitter.emit(undefined, e);
1053
- };
1054
- this.handleInputBlur = (e) => {
1055
- this.blurEventEmitter.emit(undefined, e);
1056
- };
1057
- this.handleInputPaste = (e) => {
1058
- const event = this.pasteEventEmitter.emit(e.clipboardData);
1059
- /* istanbul ignore next */
1060
- if (event.defaultPrevented) {
1061
- e.preventDefault();
1062
- }
1063
- };
1064
- /**
1065
- * Handles input event and updates the value based on a specified trigger.
1066
- * The below method is e2e-test covered in
1067
- * @see{module:vega-input-on-value-input}
1068
- */
1069
- /* istanbul ignore next */
1070
- this.onInputHandler = () => {
1071
- if (this.valueUpdateTrigger !== 'change') {
1072
- this.notifyInputValueChange();
1073
- }
1074
- };
1075
- /**
1076
- * Handles input change events and updates the value based on a specified trigger.
1077
- * The below method is e2e-test covered in
1078
- * @see{module:vega-input-on-value-change}
1079
- */
1080
- /* istanbul ignore next */
1081
- this.inputChangeHandler = () => {
1082
- if (this.valueUpdateTrigger === 'change') {
1083
- this.notifyInputValueChange();
1084
- }
1085
- };
1086
- }
1087
- connectedCallback() {
1088
- this.initInputFocusObserver();
1089
- }
1090
- disconnectedCallback() {
1091
- this.removeInputFocusObserver();
1092
- }
1093
- doFocus() {
1094
- this.focusInput();
1095
- }
1096
- doBlur() {
1097
- this.inputRef.blur();
1098
- }
1099
- getInputRef() {
1100
- return this.inputRef;
1101
- }
1102
- render() {
1103
- return (h("div", { class: "vega-input-input" },
1104
- h("input", Object.assign({ part: "input", name: this.name, type: this.getInputType(), autoComplete: this.autocomplete, inputmode: this.inputmode, value: this.value, ref: this.setInputRef, placeholder: this.placeholder, disabled: this.disabled, "aria-label": this.label || 'No label defined', minLength: this.minLength, maxLength: this.maxLength,
1105
- /* eslint-disable-next-line react/jsx-no-bind */
1106
- onBlur: (e) => this.handleInputBlur(e),
1107
- /* eslint-disable-next-line react/jsx-no-bind */
1108
- onFocus: (e) => this.handleInputFocus(e), onChange: this.inputChangeHandler, onInput: this.onInputHandler,
1109
- /* eslint-disable-next-line react/jsx-no-bind */
1110
- onPaste: (e) => this.handleInputPaste(e) }, this.copyPasteController.getCopyPasteProps()))));
1111
- }
1112
- getInputType() {
1113
- switch (this.type) {
1114
- case 'number':
1115
- return 'text';
1116
- case 'password':
1117
- return this.isPasswordDisplay ? 'text' : 'password';
1118
- default:
1119
- return this.type;
1120
- }
1121
- }
1122
- /** Notify to update current period */
1123
- notifyInputValueChange() {
1124
- ChangeManager.notify(domNodeSubjectFactory.getSubject(this.host, VegaInternalUpdateVegaInputValue), this.inputRef.value);
1125
- }
1126
- notifySetupMaskConfig() {
1127
- ChangeManager.notify(domNodeSubjectFactory.getSubject(this.host, VegaInternalSetupVegaInputMaskConfig), {});
1128
- }
1129
- /**
1130
- * Initialize calendar clear observer
1131
- */
1132
- initInputFocusObserver() {
1133
- DomNodeSubjectObserverFactory.addUniqueObserverToNode(this.host, VegaInternalFocusVegaInput, this.focusInput.bind(this));
1134
- }
1135
- /**
1136
- * Remove calendar clear observer
1137
- */
1138
- removeInputFocusObserver() {
1139
- DomNodeSubjectObserverFactory.removeUniqueObserverFromNode(this.host, VegaInternalFocusVegaInput);
1140
- }
1141
- focusInput() {
1142
- this.inputRef.focus();
1143
- }
1144
- }
1145
- __decorate$3([
1146
- MapToComponentField()
1147
- ], VegaInputInputRenderer.prototype, "host", void 0);
1148
- __decorate$3([
1149
- MapToComponentField()
1150
- ], VegaInputInputRenderer.prototype, "value", void 0);
1151
- __decorate$3([
1152
- MapToComponentField()
1153
- ], VegaInputInputRenderer.prototype, "disabled", void 0);
1154
- __decorate$3([
1155
- MapToComponentField()
1156
- ], VegaInputInputRenderer.prototype, "type", void 0);
1157
- __decorate$3([
1158
- MapToComponentField()
1159
- ], VegaInputInputRenderer.prototype, "label", void 0);
1160
- __decorate$3([
1161
- MapToComponentField()
1162
- ], VegaInputInputRenderer.prototype, "name", void 0);
1163
- __decorate$3([
1164
- MapToComponentField()
1165
- ], VegaInputInputRenderer.prototype, "autocomplete", void 0);
1166
- __decorate$3([
1167
- MapToComponentField()
1168
- ], VegaInputInputRenderer.prototype, "inputmode", void 0);
1169
- __decorate$3([
1170
- MapToComponentField()
1171
- ], VegaInputInputRenderer.prototype, "placeholder", void 0);
1172
- __decorate$3([
1173
- MapToComponentField()
1174
- ], VegaInputInputRenderer.prototype, "minLength", void 0);
1175
- __decorate$3([
1176
- MapToComponentField()
1177
- ], VegaInputInputRenderer.prototype, "maxLength", void 0);
1178
- __decorate$3([
1179
- MapToComponentField()
1180
- ], VegaInputInputRenderer.prototype, "isPasswordDisplay", void 0);
1181
- __decorate$3([
1182
- MapToComponentField()
1183
- ], VegaInputInputRenderer.prototype, "valueUpdateTrigger", void 0);
1184
- __decorate$3([
1185
- MapToComponentField()
1186
- ], VegaInputInputRenderer.prototype, "focusEventEmitter", void 0);
1187
- __decorate$3([
1188
- MapToComponentField()
1189
- ], VegaInputInputRenderer.prototype, "blurEventEmitter", void 0);
1190
- __decorate$3([
1191
- MapToComponentField()
1192
- ], VegaInputInputRenderer.prototype, "pasteEventEmitter", void 0);
1193
- __decorate$3([
1194
- MapToComponentField()
1195
- ], VegaInputInputRenderer.prototype, "copyPasteController", void 0);
1196
- __decorate$3([
1197
- MapToComponentMethod('connectedCallback')
1198
- ], VegaInputInputRenderer.prototype, "connectedCallback", null);
1199
- __decorate$3([
1200
- MapToComponentMethod('disconnectedCallback')
1201
- ], VegaInputInputRenderer.prototype, "disconnectedCallback", null);
1202
- __decorate$3([
1203
- MapToComponentMethod('doFocus')
1204
- ], VegaInputInputRenderer.prototype, "doFocus", null);
1205
- __decorate$3([
1206
- MapToComponentMethod('doBlur')
1207
- ], VegaInputInputRenderer.prototype, "doBlur", null);
1208
-
1209
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1210
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1211
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1212
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1213
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1214
- };
1215
- class VegaInputRenderer extends VegaSlimmer {
1216
- constructor() {
1217
- super(...arguments);
1218
- this.handleLabelButtonClick = () => {
1219
- this.labelButtonClickEventEmitter.emit();
1220
- };
1221
- /*
1222
- * The below method is e2e-test covered in
1223
- * @see{module:vega-input-focus-by-label}
1224
- */
1225
- /* istanbul ignore next */
1226
- this.handleLabelClick = () => {
1227
- ChangeManager.notify(domNodeSubjectFactory.getSubject(this.host, VegaInternalFocusVegaInput), {});
1228
- };
1229
- }
1230
- render() {
1231
- return (h("div", { class: "vega-input", part: "container-wrapper" },
1232
- this.renderLabelDom(),
1233
- this.inputContainerRenderer.render(),
1234
- this.renderHintDom()));
1235
- }
1236
- renderLabelDom() {
1237
- return (h("vega-field-label", { "is-field-required": this.required, disabled: this.disabled, label: this.label, suffixButtonProps: this.labelSuffixButtonProps, suffixButtonConfig: this.labelSuffixButtonConfig, ref: (node) => {
1238
- DomNodeSubjectObserverFactory.addUniqueObserverToNode(node, VegaLabelButtonClick, this.handleLabelButtonClick);
1239
- DomNodeSubjectObserverFactory.addUniqueObserverToNode(node, VegaClick, this.handleLabelClick);
1240
- } }));
1241
- }
1242
- renderHintDom() {
1243
- return this.hint !== '' ? (h("div", { class: "vega-hint" },
1244
- h("label", null, this.hint))) : null;
1245
- }
1246
- }
1247
- __decorate$2([
1248
- MapToComponentField()
1249
- ], VegaInputRenderer.prototype, "host", void 0);
1250
- __decorate$2([
1251
- MapToComponentField()
1252
- ], VegaInputRenderer.prototype, "disabled", void 0);
1253
- __decorate$2([
1254
- MapToComponentField()
1255
- ], VegaInputRenderer.prototype, "required", void 0);
1256
- __decorate$2([
1257
- MapToComponentField()
1258
- ], VegaInputRenderer.prototype, "label", void 0);
1259
- __decorate$2([
1260
- MapToComponentField()
1261
- ], VegaInputRenderer.prototype, "hint", void 0);
1262
- __decorate$2([
1263
- MapToComponentField()
1264
- ], VegaInputRenderer.prototype, "labelSuffixButtonProps", void 0);
1265
- __decorate$2([
1266
- MapToComponentField()
1267
- ], VegaInputRenderer.prototype, "labelSuffixButtonConfig", void 0);
1268
- __decorate$2([
1269
- MapToComponentField()
1270
- ], VegaInputRenderer.prototype, "labelButtonClickEventEmitter", void 0);
1271
- __decorate$2([
1272
- MapToComponentField()
1273
- ], VegaInputRenderer.prototype, "inputContainerRenderer", void 0);
1274
-
1275
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1276
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1277
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1278
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1279
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1280
- };
1281
- /** Value controller */
1282
- class VegaInputValueController extends VegaSlimmer {
1283
- /** connectedCallback */
1284
- connectedCallback() {
1285
- this.initValueUpdateObserver();
1286
- }
1287
- /** disconnectedCallback */
1288
- disconnectedCallback() {
1289
- this.removeValueUpdateObserver();
1290
- }
1291
- /**
1292
- * Watch value changes
1293
- *
1294
- * @param {string} value The new value
1295
- */
1296
- watchValue(value) {
1297
- this.changeEventEmitter.emit(value);
1298
- const inputRef = this.inputRenderer.getInputRef();
1299
- if (inputRef.value !== this.value) {
1300
- inputRef.value = this.value;
1301
- }
1302
- ChangeManager.notify(FORM_ELEMENT_VALUE_CHANGE, {
1303
- host: this.host,
1304
- detail: this.value,
1305
- });
1306
- }
1307
- /**
1308
- * Initialize calendar clear observer
1309
- */
1310
- initValueUpdateObserver() {
1311
- DomNodeSubjectObserverFactory.addUniqueObserverToNode(this.host, VegaInternalUpdateVegaInputValue, this.setValue.bind(this));
1312
- }
1313
- /**
1314
- * Remove calendar clear observer
1315
- */
1316
- removeValueUpdateObserver() {
1317
- DomNodeSubjectObserverFactory.removeUniqueObserverFromNode(this.host, VegaInternalUpdateVegaInputValue);
1318
- }
1319
- /**
1320
- * Set value
1321
- *
1322
- * @param {string} newValue The new value
1323
- */
1324
- setValue(newValue) {
1325
- this.value = newValue;
1326
- }
1327
- }
1328
- __decorate$1([
1329
- MapToComponentField()
1330
- ], VegaInputValueController.prototype, "host", void 0);
1331
- __decorate$1([
1332
- MapToComponentField({ writable: true })
1333
- ], VegaInputValueController.prototype, "value", void 0);
1334
- __decorate$1([
1335
- MapToComponentField()
1336
- ], VegaInputValueController.prototype, "changeEventEmitter", void 0);
1337
- __decorate$1([
1338
- MapToComponentField()
1339
- ], VegaInputValueController.prototype, "inputRenderer", void 0);
1340
- __decorate$1([
1341
- MapToComponentMethod('connectedCallback')
1342
- ], VegaInputValueController.prototype, "connectedCallback", null);
1343
- __decorate$1([
1344
- MapToComponentMethod('disconnectedCallback')
1345
- ], VegaInputValueController.prototype, "disconnectedCallback", null);
1346
- __decorate$1([
1347
- MapToComponentMethod('watchValue')
1348
- ], VegaInputValueController.prototype, "watchValue", null);
1349
-
1350
- const vegaInputCss = ":host{cursor:text;display:block;text-align:left;line-height:normal}:host(.vega-input-inline-block){display:inline-block;width:100%}:host(.vega-input-hidden){display:none}vega-field-label{margin-bottom:8px}.vega-input-container{display:flex;align-items:center;border-radius:8px;gap:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}.vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-input-container.vega-input-disabled{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))}.vega-input-container.vega-input-disabled:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.vega-input-container.with-value{border-width:1px;border-style:solid;border-radius:8px}.vega-input-container:not(.no-focus):focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}.vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-input-container.error:not(.no-focus):focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}.vega-input-container.error .vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-input-prefix{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}.vega-input-prefix.vega-input-prefix-slot{height:24px;overflow:hidden}.vega-input-input{flex:1 1 0%;position:relative}.vega-input-input input{width:100%;outline:2px solid transparent;outline-offset:2px;border-style:none;height:24px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-input input{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-input-input input{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-input-input input{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-input input::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}.vega-input-size-small{padding-top:8px;padding-right:12px;padding-bottom:8px;padding-left:12px}.vega-input-size-default{padding-top:12px;padding-right:16px;padding-bottom:12px;padding-left:16px}.vega-input-input input:disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.vega-hint{padding-top:12px;padding-right:8px;padding-left:8px}.vega-hint>label{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){.vega-hint>label{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){.vega-hint>label{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){.vega-hint>label{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-error{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));display:block;padding-top:12px;padding-right:8px;padding-left:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.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){.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){.vega-error{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}.vega-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border-radius:4px;padding:2px}.vega-input-clear-icon.invisible{visibility:hidden}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=password]::-ms-reveal{display:none}.vega-input-container.compact-input-width{gap:0px}.vega-input-container.compact-input-width .vega-input-prefix{margin-right:8px}.vega-input-container.compact-input-width .prefix-text,.vega-input-container.compact-input-width .suffix-text{margin-right:2px}.vega-input-container.compact-input-width .vega-input-clear-icon{margin-left:2px}.vega-input-container.compact-input-width .vega-input-input input{padding:0px;min-width:1px}.vega-input-container.compact-input-width.auto-width .vega-input-input{flex-grow:0}.vega-input-container.compact-input-width.auto-width .suffix-text{flex-grow:1}.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0;flex-grow:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.v-font-field-value{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.v-font-field-value{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.v-font-field-value{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.v-font-field-value{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-container .password-eye-button{width:16px;height:16px}.vega-input-container .password-eye-button::part(button){width:16px;height:16px;padding:0px}.vega-input-container .password-eye-button::part(button):hover{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}@supports (-webkit-touch-callout: none){:host([data-vega-form=pageSelectorMobile_goTo]) .vega-input-container input{box-sizing:border-box;padding-left:0px;padding-right:0px}}";
1351
-
1352
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1353
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1354
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1355
- r = Reflect.decorate(decorators, target, key, desc);
1356
- else
1357
- for (var i = decorators.length - 1; i >= 0; i--)
1358
- if (d = decorators[i])
1359
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1360
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1361
- };
1362
- const VegaInput = class {
1363
- constructor(hostRef) {
1364
- registerInstance(this, hostRef);
1365
- this.vegaChange = createEvent(this, "vegaChange", 7);
1366
- this.change = createEvent(this, "change", 7);
1367
- this.vegaBlur = createEvent(this, "vegaBlur", 7);
1368
- this.blur = createEvent(this, "blur", 7);
1369
- this.vegaFocus = createEvent(this, "vegaFocus", 7);
1370
- this.focus = createEvent(this, "focus", 7);
1371
- this.vegaLabelButtonClick = createEvent(this, "vegaLabelButtonClick", 7);
1372
- this.labelButtonClick = createEvent(this, "labelButtonClick", 7);
1373
- this.vegaPaste = createEvent(this, "vegaPaste", 7);
1374
- this.paste = createEvent(this, "paste", 7);
1375
- this.globalSlimmers = {};
1376
- this.formFieldController = new FormFieldControllerSlimmer({
1377
- propertyRules: [
1378
- {
1379
- propertyName: 'required',
1380
- ruleFactory: (isRequired) => (isRequired ? new RequiredFieldRule() : null),
1381
- },
1382
- {
1383
- propertyName: 'min',
1384
- ruleFactory: (min) => typeof min === 'number' ? new MinNumberRule({ minValue: min }) : null,
1385
- },
1386
- {
1387
- propertyName: 'max',
1388
- ruleFactory: (max) => typeof max === 'number' ? new MaxNumberRule({ maxValue: max }) : null,
1389
- },
1390
- {
1391
- propertyName: 'minLength',
1392
- ruleFactory: (minLength) => minLength ? new MinStringLengthRule({ minStrLength: minLength }) : null,
1393
- },
1394
- {
1395
- propertyName: 'maxLength',
1396
- ruleFactory: (maxLength) => maxLength ? new MaxStringLengthRule({ maxStrLength: maxLength }) : null,
1397
- },
1398
- {
1399
- propertyName: 'email',
1400
- ruleFactory: (email) => (email ? new EmailFieldRule() : null),
1401
- },
1402
- {
1403
- propertyName: 'type',
1404
- ruleFactory: (type) => (type === 'email' ? new EmailFieldRule() : null),
1405
- },
1406
- ],
1407
- validationRulesName: 'validationRules',
1408
- defaultValue: '',
1409
- attributeGetter: (propertyName) => this[propertyName],
1410
- inputContainerGetter: () => this.inputContainerRenderer.getInputContainerRef(),
1411
- touchableAreaGetter: () => [this.inputRenderer.getInputRef()],
1412
- });
1413
- this.pageResizeObserverSlimmer = new PageResizeObserverSlimmer({
1414
- /*
1415
- * The below method is e2e-test covered in
1416
- * @see{module:vega-input-auto-width-e2e}
1417
- */
1418
- callback: /* istanbul ignore next */ () => this.compactWidthController.setInputAutoWidth(),
1419
- });
1420
- this.copyPasteController = new VegaInputCopyPasteController();
1421
- this.compactWidthController = new VegaInputCompactWidthController();
1422
- this.stateController = new VegaInputStateController();
1423
- this.maskConfigController = new VegaInputMaskConfigController();
1424
- this.valueController = new VegaInputValueController();
1425
- this.prefixSlotRenderer = new VegaInputPrefixSlotRenderer();
1426
- this.renderer = new VegaInputRenderer();
1427
- this.inputContainerRenderer = new VegaInputInputContainerRenderer();
1428
- this.inputRenderer = new VegaInputInputRenderer();
1429
- this.changeEventEmitter = createEventEmitSlimmer(VegaInput, VegaChange);
1430
- this.focusEventEmitter = createEventEmitSlimmer(VegaInput, VegaFocus);
1431
- this.blurEventEmitter = createEventEmitSlimmer(VegaInput, VegaBlur);
1432
- this.labelButtonClickEventEmitter = createEventEmitSlimmer(VegaInput, VegaLabelButtonClick);
1433
- this.pasteEventEmitter = createEventEmitSlimmer(VegaInput, VegaPaste);
1434
- this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer(VegaInputRuntimeMetricsPayloadDefinition);
1435
- this.passwordEyeRenderer = new VegaInputPasswordEyeRenderer();
1436
- /**
1437
- * Specifies the label or title for the input field.
1438
- *
1439
- * It provides descriptive text that helps identify the
1440
- * purpose or content expected in the input field.
1441
- *
1442
- * @vegaVersion 1.0.5
1443
- */
1444
- this.label = '';
1445
- /**
1446
- * @deprecated Please use `LabelSuffixButtonConfig` instead
1447
- *
1448
- * Specifies the properties for the suffix button associated with the input.
1449
- *
1450
- * It provides essential information and functionality
1451
- * related to the suffix button's role and behavior.
1452
- *
1453
- * @vegaVersion 2.25.0
1454
- */
1455
- this.labelSuffixButtonProps = null;
1456
- /**
1457
- * Specifies the properties for the suffix button associated with the input.
1458
- *
1459
- * It provides essential information and functionality
1460
- * related to the suffix button's role and behavior.
1461
- *
1462
- * @vegaVersion 2.68.0
1463
- */
1464
- this.labelSuffixButtonConfig = null;
1465
- /**
1466
- * Represents a pre-set or default value for the input field.
1467
- *
1468
- * It allows you to initialize the field with a specific value,
1469
- * which is displayed to the user when the input is
1470
- * initially rendered.
1471
- *
1472
- * If the value is too long, it may be truncated with
1473
- * an ellipsis for visual presentation.
1474
- *
1475
- * @vegaVersion 1.0.5
1476
- */
1477
- /* eslint-disable-next-line @stencil/strict-mutable */
1478
- this.value = '';
1479
- /**
1480
- * Specifies when the vegaChange event is triggered.
1481
- * It controls whether the event is dispatched
1482
- * after typing in the input or after a change event.
1483
- *
1484
- * @vegaVersion 2.24.0
1485
- */
1486
- this.valueUpdateTrigger = 'input';
1487
- /**
1488
- * Defines the specific type or category of the input field.
1489
- *
1490
- * It specifies the intended format or purpose of the
1491
- * data to be entered by the user.
1492
- *
1493
- * @vegaVersion 1.0.9
1494
- */
1495
- this.type = 'text';
1496
- /**
1497
- * Defines the specific name of the input field.
1498
- *
1499
- *
1500
- * @vegaVersion 1.0.5
1501
- */
1502
- this.name = '';
1503
- /**
1504
- * Controls the autofill behavior and specifies whether the
1505
- * input should receive automated suggestions or
1506
- * previously entered values.
1507
- *
1508
- * @vegaVersion 1.0.5
1509
- */
1510
- this.autocomplete = 'off';
1511
- /**
1512
- * Enforces proper email format validation for the input field.
1513
- *
1514
- * It ensures that the user enters a valid email address according to
1515
- * standard email formatting rules.
1516
- *
1517
- * @deprecated Please use `type='email'` instead.
1518
- * @vegaVersion 1.0.5
1519
- */
1520
- this.email = false;
1521
- /**
1522
- * Determines whether the input field is required.
1523
- *
1524
- * @vegaVersion 1.0.5
1525
- */
1526
- /* eslint-disable-next-line @stencil/strict-mutable */
1527
- this.required = false;
1528
- /**
1529
- * Sets the minimum allowable numeric value for the input value.
1530
- *
1531
- * @vegaVersion 1.0.5
1532
- */
1533
- this.min = null;
1534
- /**
1535
- * Sets the maximum allowable numeric value for the input value.
1536
- *
1537
- * @vegaVersion 1.0.5
1538
- */
1539
- this.max = null;
1540
- /**
1541
- * Sets the minimum length requirement for the input value.
1542
- *
1543
- * @vegaVersion 1.0.5
1544
- */
1545
- this.minLength = null;
1546
- /**
1547
- * Sets the maximum length requirement for the input value.
1548
- *
1549
- * @vegaVersion 1.0.5
1550
- */
1551
- this.maxLength = null;
1552
- /**
1553
- * Determines whether the clear icon should be displayed or hidden.
1554
- *
1555
- * @vegaVersion 1.3.0
1556
- */
1557
- this.showClearIcon = true;
1558
- /**
1559
- * Indicates whether the current value in the field is considered valid or
1560
- * invalid based on the defined validation rules.
1561
- *
1562
- * @vegaVersion 1.3.0
1563
- */
1564
- /* eslint-disable-next-line @stencil/strict-mutable */
1565
- this.isValid = null;
1566
- /**
1567
- * Determines whether the input field should undergo automatic validation
1568
- * during the user's input.
1569
- *
1570
- * @vegaVersion 1.0.10
1571
- */
1572
- this.autoValidation = true;
1573
- /**
1574
- * Defines custom validation rules for the input field.
1575
- *
1576
- * @vegaVersion 1.0.10
1577
- */
1578
- this.validationRules = [];
1579
- /**
1580
- * Defines the size of the input field,
1581
- * specifying its width or length.
1582
- *
1583
- * @vegaVersion 1.3.0
1584
- */
1585
- this.size = 'default';
1586
- /**
1587
- * Determines whether the input field is disabled.
1588
- *
1589
- * @vegaVersion 1.3.0
1590
- */
1591
- this.disabled = false;
1592
- /**
1593
- * Provides a supplementary prompt message that assists users in
1594
- * understanding the expected value for the input field.
1595
- *
1596
- * @vegaVersion 1.3.0
1597
- */
1598
- this.hint = '';
1599
- /**
1600
- * Controls whether copying or pasting is enabled for the input.
1601
- *
1602
- * @vegaVersion 2.1.0
1603
- */
1604
- this.disableCopyPaste = false;
1605
- }
1606
- watchSuffixText() {
1607
- methodPlaceholder();
1608
- }
1609
- /**
1610
- * The input component is embedded in other components.
1611
- *
1612
- * If modifying the input value does not meet the requirements
1613
- * of other components, such as limiting the maximum value, etc.,
1614
- * you need to modify the value of the input component and
1615
- * display it in real time.
1616
- *
1617
- * Since the value of `inputRef` is still the old value retained,
1618
- * when the value changes, which needs to be updated manually.
1619
- */
1620
- watchValue(value) {
1621
- methodPlaceholder(value);
1622
- }
1623
- /**
1624
- * The below method is e2e-test covered in
1625
- * @see{module:vega-input-on-type-change}
1626
- */
1627
- /* istanbul ignore next */
1628
- watchTypeChange(newType, oldType) {
1629
- methodPlaceholder(newType, oldType);
1630
- }
1631
- watchValidationRules() {
1632
- methodPlaceholder();
1633
- }
1634
- /**
1635
- * The below method is e2e-test covered in
1636
- * @see{module:vega-input-mask-change-with-custom-e2e}
1637
- * For the ComponentLoadRequired, the test can not be added in e2e at now, we will add it while have better solution,
1638
- * releated issue: https://gitlab.com/heartland1/vega/tiger/-/issues/646
1639
- */
1640
- /* istanbul ignore next */
1641
- watchMaskChange(newValue, oldValue) {
1642
- methodPlaceholder(newValue, oldValue);
1643
- }
1644
- /**
1645
- * Invoke this method to focus the current input.
1646
- *
1647
- * @vegaVersion 1.12.0
1648
- */
1649
- async doFocus() {
1650
- methodPlaceholder();
1651
- }
1652
- /**
1653
- * Invoke this method to blur the current input.
1654
- *
1655
- * @vegaVersion 1.12.0
1656
- */
1657
- async doBlur() {
1658
- methodPlaceholder();
1659
- }
1660
- render() {
1661
- slotPlaceholder(h("slot", null));
1662
- return sanitizeVegaComponent(h(Host, { class: this.type === 'hidden' ? 'vega-input-hidden' : 'vega-input-inline-block' }, this.renderer.render()), this.host);
1663
- }
1664
- get host() { return getElement(this); }
1665
- static get watchers() { return {
1666
- "suffixText": ["watchSuffixText"],
1667
- "value": ["watchValue"],
1668
- "type": ["watchTypeChange"],
1669
- "validationRules": ["watchValidationRules"],
1670
- "maskConfig": ["watchMaskChange"]
1671
- }; }
1672
- };
1673
- __decorate([
1674
- InjectVegaGlobalSlimmer()
1675
- ], VegaInput.prototype, "globalSlimmers", void 0);
1676
- __decorate([
1677
- InjectVegaSlimmer()
1678
- ], VegaInput.prototype, "formFieldController", void 0);
1679
- __decorate([
1680
- InjectVegaSlimmer()
1681
- ], VegaInput.prototype, "pageResizeObserverSlimmer", void 0);
1682
- __decorate([
1683
- InjectVegaSlimmer()
1684
- ], VegaInput.prototype, "copyPasteController", void 0);
1685
- __decorate([
1686
- InjectVegaSlimmer()
1687
- ], VegaInput.prototype, "compactWidthController", void 0);
1688
- __decorate([
1689
- InjectVegaSlimmer()
1690
- ], VegaInput.prototype, "stateController", void 0);
1691
- __decorate([
1692
- InjectVegaSlimmer()
1693
- ], VegaInput.prototype, "maskConfigController", void 0);
1694
- __decorate([
1695
- InjectVegaSlimmer()
1696
- ], VegaInput.prototype, "valueController", void 0);
1697
- __decorate([
1698
- InjectVegaSlimmer()
1699
- ], VegaInput.prototype, "prefixSlotRenderer", void 0);
1700
- __decorate([
1701
- InjectVegaSlimmer()
1702
- ], VegaInput.prototype, "renderer", void 0);
1703
- __decorate([
1704
- InjectVegaSlimmer()
1705
- ], VegaInput.prototype, "inputContainerRenderer", void 0);
1706
- __decorate([
1707
- InjectVegaSlimmer()
1708
- ], VegaInput.prototype, "inputRenderer", void 0);
1709
- __decorate([
1710
- InjectVegaSlimmer()
1711
- ], VegaInput.prototype, "changeEventEmitter", void 0);
1712
- __decorate([
1713
- InjectVegaSlimmer()
1714
- ], VegaInput.prototype, "focusEventEmitter", void 0);
1715
- __decorate([
1716
- InjectVegaSlimmer()
1717
- ], VegaInput.prototype, "blurEventEmitter", void 0);
1718
- __decorate([
1719
- InjectVegaSlimmer()
1720
- ], VegaInput.prototype, "labelButtonClickEventEmitter", void 0);
1721
- __decorate([
1722
- InjectVegaSlimmer()
1723
- ], VegaInput.prototype, "pasteEventEmitter", void 0);
1724
- __decorate([
1725
- InjectVegaSlimmer()
1726
- ], VegaInput.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
1727
- __decorate([
1728
- InjectVegaSlimmer()
1729
- ], VegaInput.prototype, "passwordEyeRenderer", void 0);
1730
- __decorate([
1731
- ComponentLoadRequired()
1732
- ], VegaInput.prototype, "watchMaskChange", null);
1733
- VegaInput.style = vegaInputCss;
1734
-
1735
- export { VegaInput as vega_input };