@ember-eui/validated-form 11.0.3 → 12.0.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 (783) hide show
  1. package/README.md +9 -20
  2. package/declarations/-private/random-id.d.ts +1 -1
  3. package/declarations/-private/random-id.d.ts.map +1 -1
  4. package/declarations/components/validated-form/field-base.d.ts +9 -6
  5. package/declarations/components/validated-form/field-base.d.ts.map +1 -1
  6. package/declarations/components/validated-form/field-checkbox-group.d.ts +2 -2
  7. package/declarations/components/validated-form/field-combo-box.d.ts +2 -2
  8. package/declarations/components/validated-form/field-dual-range-slider.d.ts +2 -2
  9. package/declarations/components/validated-form/field-markdown-editor.d.ts +2 -2
  10. package/declarations/components/validated-form/field-number.d.ts +2 -2
  11. package/declarations/components/validated-form/field-password.d.ts +2 -2
  12. package/declarations/components/validated-form/field-radio-group.d.ts +2 -2
  13. package/declarations/components/validated-form/field-range-slider.d.ts +2 -2
  14. package/declarations/components/validated-form/field-select.d.ts +2 -2
  15. package/declarations/components/validated-form/field-switch.d.ts +2 -2
  16. package/declarations/components/validated-form/field-text-area.d.ts +2 -2
  17. package/declarations/components/validated-form/field-text.d.ts +2 -2
  18. package/declarations/components/validated-form.d.ts +6 -3
  19. package/declarations/components/validated-form.d.ts.map +1 -1
  20. package/declarations/validators/messages.d.ts +1 -2
  21. package/declarations/validators/messages.d.ts.map +1 -1
  22. package/dist/-private/random-id.js.map +1 -1
  23. package/dist/components/default-theme.js +4 -4
  24. package/dist/components/default-theme.js.map +1 -1
  25. package/dist/components/validated-form/field-base.js +16 -16
  26. package/dist/components/validated-form/field-base.js.map +1 -1
  27. package/dist/components/validated-form/field-checkbox-group.js +17 -17
  28. package/dist/components/validated-form/field-checkbox-group.js.map +1 -1
  29. package/dist/components/validated-form/field-combo-box.js +2 -2
  30. package/dist/components/validated-form/field-combo-box.js.map +1 -1
  31. package/dist/components/validated-form/field-dual-range-slider.js +3 -3
  32. package/dist/components/validated-form/field-dual-range-slider.js.map +1 -1
  33. package/dist/components/validated-form/field-markdown-editor.js +2 -2
  34. package/dist/components/validated-form/field-markdown-editor.js.map +1 -1
  35. package/dist/components/validated-form/field-number.js.map +1 -1
  36. package/dist/components/validated-form/field-password.js.map +1 -1
  37. package/dist/components/validated-form/field-radio-group.js +17 -17
  38. package/dist/components/validated-form/field-radio-group.js.map +1 -1
  39. package/dist/components/validated-form/field-range-slider.js.map +1 -1
  40. package/dist/components/validated-form/field-select.js.map +1 -1
  41. package/dist/components/validated-form/field-switch.js +4 -4
  42. package/dist/components/validated-form/field-switch.js.map +1 -1
  43. package/dist/components/validated-form/field-text-area.js.map +1 -1
  44. package/dist/components/validated-form/field-text.js.map +1 -1
  45. package/dist/components/validated-form.js +24 -24
  46. package/dist/components/validated-form.js.map +1 -1
  47. package/dist/field-base-CPyNVTul.js +207 -0
  48. package/dist/field-base-CPyNVTul.js.map +1 -0
  49. package/dist/utils/build-validation-messages.js.map +1 -1
  50. package/dist/utils/get-messages.js.map +1 -1
  51. package/dist/utils/validation-errors.js.map +1 -1
  52. package/dist/utils/with-defaults.js.map +1 -1
  53. package/package.json +48 -39
  54. package/declarations/core/src/-private/random-id.d.ts +0 -9
  55. package/declarations/core/src/-private/random-id.d.ts.map +0 -1
  56. package/declarations/core/src/components/common.d.ts +0 -42
  57. package/declarations/core/src/components/common.d.ts.map +0 -1
  58. package/declarations/core/src/components/eui-accordion.d.ts +0 -101
  59. package/declarations/core/src/components/eui-accordion.d.ts.map +0 -1
  60. package/declarations/core/src/components/eui-auto-sizer.d.ts +0 -64
  61. package/declarations/core/src/components/eui-auto-sizer.d.ts.map +0 -1
  62. package/declarations/core/src/components/eui-avatar.d.ts +0 -22
  63. package/declarations/core/src/components/eui-avatar.d.ts.map +0 -1
  64. package/declarations/core/src/components/eui-badge-group.d.ts +0 -23
  65. package/declarations/core/src/components/eui-badge-group.d.ts.map +0 -1
  66. package/declarations/core/src/components/eui-badge.d.ts +0 -30
  67. package/declarations/core/src/components/eui-badge.d.ts.map +0 -1
  68. package/declarations/core/src/components/eui-beta-badge.d.ts +0 -63
  69. package/declarations/core/src/components/eui-beta-badge.d.ts.map +0 -1
  70. package/declarations/core/src/components/eui-bottom-bar.d.ts +0 -35
  71. package/declarations/core/src/components/eui-bottom-bar.d.ts.map +0 -1
  72. package/declarations/core/src/components/eui-breadcrumbs.d.ts +0 -70
  73. package/declarations/core/src/components/eui-breadcrumbs.d.ts.map +0 -1
  74. package/declarations/core/src/components/eui-button-content.d.ts +0 -21
  75. package/declarations/core/src/components/eui-button-content.d.ts.map +0 -1
  76. package/declarations/core/src/components/eui-button-empty.d.ts +0 -33
  77. package/declarations/core/src/components/eui-button-empty.d.ts.map +0 -1
  78. package/declarations/core/src/components/eui-button-group-button.d.ts +0 -29
  79. package/declarations/core/src/components/eui-button-group-button.d.ts.map +0 -1
  80. package/declarations/core/src/components/eui-button-group.d.ts +0 -41
  81. package/declarations/core/src/components/eui-button-group.d.ts.map +0 -1
  82. package/declarations/core/src/components/eui-button-icon.d.ts +0 -25
  83. package/declarations/core/src/components/eui-button-icon.d.ts.map +0 -1
  84. package/declarations/core/src/components/eui-button.d.ts +0 -34
  85. package/declarations/core/src/components/eui-button.d.ts.map +0 -1
  86. package/declarations/core/src/components/eui-call-out.d.ts +0 -21
  87. package/declarations/core/src/components/eui-call-out.d.ts.map +0 -1
  88. package/declarations/core/src/components/eui-card-select.d.ts +0 -29
  89. package/declarations/core/src/components/eui-card-select.d.ts.map +0 -1
  90. package/declarations/core/src/components/eui-card.d.ts +0 -68
  91. package/declarations/core/src/components/eui-card.d.ts.map +0 -1
  92. package/declarations/core/src/components/eui-checkable-card.d.ts +0 -21
  93. package/declarations/core/src/components/eui-checkable-card.d.ts.map +0 -1
  94. package/declarations/core/src/components/eui-checkbox-group.d.ts +0 -27
  95. package/declarations/core/src/components/eui-checkbox-group.d.ts.map +0 -1
  96. package/declarations/core/src/components/eui-checkbox.d.ts +0 -27
  97. package/declarations/core/src/components/eui-checkbox.d.ts.map +0 -1
  98. package/declarations/core/src/components/eui-code-block/controls.d.ts +0 -13
  99. package/declarations/core/src/components/eui-code-block/controls.d.ts.map +0 -1
  100. package/declarations/core/src/components/eui-code-block/full-screen-display.d.ts +0 -11
  101. package/declarations/core/src/components/eui-code-block/full-screen-display.d.ts.map +0 -1
  102. package/declarations/core/src/components/eui-code-block/virtualized.d.ts +0 -20
  103. package/declarations/core/src/components/eui-code-block/virtualized.d.ts.map +0 -1
  104. package/declarations/core/src/components/eui-code-block.d.ts +0 -92
  105. package/declarations/core/src/components/eui-code-block.d.ts.map +0 -1
  106. package/declarations/core/src/components/eui-code.d.ts +0 -21
  107. package/declarations/core/src/components/eui-code.d.ts.map +0 -1
  108. package/declarations/core/src/components/eui-collapsible-nav.d.ts +0 -66
  109. package/declarations/core/src/components/eui-collapsible-nav.d.ts.map +0 -1
  110. package/declarations/core/src/components/eui-combo-box/create-option.d.ts +0 -18
  111. package/declarations/core/src/components/eui-combo-box/create-option.d.ts.map +0 -1
  112. package/declarations/core/src/components/eui-combo-box/group.d.ts +0 -16
  113. package/declarations/core/src/components/eui-combo-box/group.d.ts.map +0 -1
  114. package/declarations/core/src/components/eui-combo-box/no-matches-message.d.ts +0 -11
  115. package/declarations/core/src/components/eui-combo-box/no-matches-message.d.ts.map +0 -1
  116. package/declarations/core/src/components/eui-combo-box/options.d.ts +0 -12
  117. package/declarations/core/src/components/eui-combo-box/options.d.ts.map +0 -1
  118. package/declarations/core/src/components/eui-combo-box/search-message.d.ts +0 -11
  119. package/declarations/core/src/components/eui-combo-box/search-message.d.ts.map +0 -1
  120. package/declarations/core/src/components/eui-combo-box/trigger/input.d.ts +0 -6
  121. package/declarations/core/src/components/eui-combo-box/trigger/input.d.ts.map +0 -1
  122. package/declarations/core/src/components/eui-combo-box/trigger.d.ts +0 -4
  123. package/declarations/core/src/components/eui-combo-box/trigger.d.ts.map +0 -1
  124. package/declarations/core/src/components/eui-combo-box-pill.d.ts +0 -22
  125. package/declarations/core/src/components/eui-combo-box-pill.d.ts.map +0 -1
  126. package/declarations/core/src/components/eui-combo-box.d.ts +0 -93
  127. package/declarations/core/src/components/eui-combo-box.d.ts.map +0 -1
  128. package/declarations/core/src/components/eui-comment-list.d.ts +0 -10
  129. package/declarations/core/src/components/eui-comment-list.d.ts.map +0 -1
  130. package/declarations/core/src/components/eui-comment-timeline.d.ts +0 -15
  131. package/declarations/core/src/components/eui-comment-timeline.d.ts.map +0 -1
  132. package/declarations/core/src/components/eui-comment.d.ts +0 -20
  133. package/declarations/core/src/components/eui-comment.d.ts.map +0 -1
  134. package/declarations/core/src/components/eui-confirm-modal.d.ts +0 -23
  135. package/declarations/core/src/components/eui-confirm-modal.d.ts.map +0 -1
  136. package/declarations/core/src/components/eui-context-menu-item.d.ts +0 -25
  137. package/declarations/core/src/components/eui-context-menu-item.d.ts.map +0 -1
  138. package/declarations/core/src/components/eui-context-menu-panel.d.ts +0 -10
  139. package/declarations/core/src/components/eui-context-menu-panel.d.ts.map +0 -1
  140. package/declarations/core/src/components/eui-copy.d.ts +0 -36
  141. package/declarations/core/src/components/eui-copy.d.ts.map +0 -1
  142. package/declarations/core/src/components/eui-described-form-group.d.ts +0 -27
  143. package/declarations/core/src/components/eui-described-form-group.d.ts.map +0 -1
  144. package/declarations/core/src/components/eui-description-list-description.d.ts +0 -10
  145. package/declarations/core/src/components/eui-description-list-description.d.ts.map +0 -1
  146. package/declarations/core/src/components/eui-description-list-title.d.ts +0 -10
  147. package/declarations/core/src/components/eui-description-list-title.d.ts.map +0 -1
  148. package/declarations/core/src/components/eui-description-list.d.ts +0 -27
  149. package/declarations/core/src/components/eui-description-list.d.ts.map +0 -1
  150. package/declarations/core/src/components/eui-dual-range.d.ts +0 -141
  151. package/declarations/core/src/components/eui-dual-range.d.ts.map +0 -1
  152. package/declarations/core/src/components/eui-empty-prompt.d.ts +0 -29
  153. package/declarations/core/src/components/eui-empty-prompt.d.ts.map +0 -1
  154. package/declarations/core/src/components/eui-field-number.d.ts +0 -57
  155. package/declarations/core/src/components/eui-field-number.d.ts.map +0 -1
  156. package/declarations/core/src/components/eui-field-password.d.ts +0 -28
  157. package/declarations/core/src/components/eui-field-password.d.ts.map +0 -1
  158. package/declarations/core/src/components/eui-field-search.d.ts +0 -52
  159. package/declarations/core/src/components/eui-field-search.d.ts.map +0 -1
  160. package/declarations/core/src/components/eui-field-text.d.ts +0 -29
  161. package/declarations/core/src/components/eui-field-text.d.ts.map +0 -1
  162. package/declarations/core/src/components/eui-file-picker.d.ts +0 -60
  163. package/declarations/core/src/components/eui-file-picker.d.ts.map +0 -1
  164. package/declarations/core/src/components/eui-flex-grid.d.ts +0 -33
  165. package/declarations/core/src/components/eui-flex-grid.d.ts.map +0 -1
  166. package/declarations/core/src/components/eui-flex-group.d.ts +0 -20
  167. package/declarations/core/src/components/eui-flex-group.d.ts.map +0 -1
  168. package/declarations/core/src/components/eui-flex-item.d.ts +0 -15
  169. package/declarations/core/src/components/eui-flex-item.d.ts.map +0 -1
  170. package/declarations/core/src/components/eui-flyout-body.d.ts +0 -12
  171. package/declarations/core/src/components/eui-flyout-body.d.ts.map +0 -1
  172. package/declarations/core/src/components/eui-flyout-footer.d.ts +0 -10
  173. package/declarations/core/src/components/eui-flyout-footer.d.ts.map +0 -1
  174. package/declarations/core/src/components/eui-flyout-header.d.ts +0 -13
  175. package/declarations/core/src/components/eui-flyout-header.d.ts.map +0 -1
  176. package/declarations/core/src/components/eui-flyout.d.ts +0 -92
  177. package/declarations/core/src/components/eui-flyout.d.ts.map +0 -1
  178. package/declarations/core/src/components/eui-form-control-layout-clear-button.d.ts +0 -14
  179. package/declarations/core/src/components/eui-form-control-layout-clear-button.d.ts.map +0 -1
  180. package/declarations/core/src/components/eui-form-control-layout-custom-icon.d.ts +0 -16
  181. package/declarations/core/src/components/eui-form-control-layout-custom-icon.d.ts.map +0 -1
  182. package/declarations/core/src/components/eui-form-control-layout-delimited.d.ts +0 -25
  183. package/declarations/core/src/components/eui-form-control-layout-delimited.d.ts.map +0 -1
  184. package/declarations/core/src/components/eui-form-control-layout-icons.d.ts +0 -17
  185. package/declarations/core/src/components/eui-form-control-layout-icons.d.ts.map +0 -1
  186. package/declarations/core/src/components/eui-form-control-layout.d.ts +0 -30
  187. package/declarations/core/src/components/eui-form-control-layout.d.ts.map +0 -1
  188. package/declarations/core/src/components/eui-form-error-text.d.ts +0 -10
  189. package/declarations/core/src/components/eui-form-error-text.d.ts.map +0 -1
  190. package/declarations/core/src/components/eui-form-fieldset.d.ts +0 -18
  191. package/declarations/core/src/components/eui-form-fieldset.d.ts.map +0 -1
  192. package/declarations/core/src/components/eui-form-help-text.d.ts +0 -13
  193. package/declarations/core/src/components/eui-form-help-text.d.ts.map +0 -1
  194. package/declarations/core/src/components/eui-form-label.d.ts +0 -17
  195. package/declarations/core/src/components/eui-form-label.d.ts.map +0 -1
  196. package/declarations/core/src/components/eui-form-legend.d.ts +0 -14
  197. package/declarations/core/src/components/eui-form-legend.d.ts.map +0 -1
  198. package/declarations/core/src/components/eui-form-row.d.ts +0 -35
  199. package/declarations/core/src/components/eui-form-row.d.ts.map +0 -1
  200. package/declarations/core/src/components/eui-form.d.ts +0 -20
  201. package/declarations/core/src/components/eui-form.d.ts.map +0 -1
  202. package/declarations/core/src/components/eui-header-alert.d.ts +0 -14
  203. package/declarations/core/src/components/eui-header-alert.d.ts.map +0 -1
  204. package/declarations/core/src/components/eui-header-breadcrumbs.d.ts +0 -14
  205. package/declarations/core/src/components/eui-header-breadcrumbs.d.ts.map +0 -1
  206. package/declarations/core/src/components/eui-header-link.d.ts +0 -14
  207. package/declarations/core/src/components/eui-header-link.d.ts.map +0 -1
  208. package/declarations/core/src/components/eui-header-links.d.ts +0 -20
  209. package/declarations/core/src/components/eui-header-links.d.ts.map +0 -1
  210. package/declarations/core/src/components/eui-header-logo.d.ts +0 -17
  211. package/declarations/core/src/components/eui-header-logo.d.ts.map +0 -1
  212. package/declarations/core/src/components/eui-header-section-item-button.d.ts +0 -26
  213. package/declarations/core/src/components/eui-header-section-item-button.d.ts.map +0 -1
  214. package/declarations/core/src/components/eui-header-section-item.d.ts +0 -14
  215. package/declarations/core/src/components/eui-header-section-item.d.ts.map +0 -1
  216. package/declarations/core/src/components/eui-header-section.d.ts +0 -15
  217. package/declarations/core/src/components/eui-header-section.d.ts.map +0 -1
  218. package/declarations/core/src/components/eui-header.d.ts +0 -23
  219. package/declarations/core/src/components/eui-header.d.ts.map +0 -1
  220. package/declarations/core/src/components/eui-health.d.ts +0 -21
  221. package/declarations/core/src/components/eui-health.d.ts.map +0 -1
  222. package/declarations/core/src/components/eui-hide-for.d.ts +0 -21
  223. package/declarations/core/src/components/eui-hide-for.d.ts.map +0 -1
  224. package/declarations/core/src/components/eui-horizontal-rule.d.ts +0 -12
  225. package/declarations/core/src/components/eui-horizontal-rule.d.ts.map +0 -1
  226. package/declarations/core/src/components/eui-i18n/render.d.ts +0 -12
  227. package/declarations/core/src/components/eui-i18n/render.d.ts.map +0 -1
  228. package/declarations/core/src/components/eui-i18n.d.ts +0 -32
  229. package/declarations/core/src/components/eui-i18n.d.ts.map +0 -1
  230. package/declarations/core/src/components/eui-icon-tip.d.ts +0 -29
  231. package/declarations/core/src/components/eui-icon-tip.d.ts.map +0 -1
  232. package/declarations/core/src/components/eui-icon.d.ts +0 -80
  233. package/declarations/core/src/components/eui-icon.d.ts.map +0 -1
  234. package/declarations/core/src/components/eui-image.d.ts +0 -62
  235. package/declarations/core/src/components/eui-image.d.ts.map +0 -1
  236. package/declarations/core/src/components/eui-inner-text.d.ts +0 -21
  237. package/declarations/core/src/components/eui-inner-text.d.ts.map +0 -1
  238. package/declarations/core/src/components/eui-input-popover.d.ts +0 -44
  239. package/declarations/core/src/components/eui-input-popover.d.ts.map +0 -1
  240. package/declarations/core/src/components/eui-key-pad-menu-item.d.ts +0 -26
  241. package/declarations/core/src/components/eui-key-pad-menu-item.d.ts.map +0 -1
  242. package/declarations/core/src/components/eui-key-pad-menu.d.ts +0 -23
  243. package/declarations/core/src/components/eui-key-pad-menu.d.ts.map +0 -1
  244. package/declarations/core/src/components/eui-link.d.ts +0 -18
  245. package/declarations/core/src/components/eui-link.d.ts.map +0 -1
  246. package/declarations/core/src/components/eui-list-group-item.d.ts +0 -26
  247. package/declarations/core/src/components/eui-list-group-item.d.ts.map +0 -1
  248. package/declarations/core/src/components/eui-list-group.d.ts +0 -16
  249. package/declarations/core/src/components/eui-list-group.d.ts.map +0 -1
  250. package/declarations/core/src/components/eui-loading-content.d.ts +0 -14
  251. package/declarations/core/src/components/eui-loading-content.d.ts.map +0 -1
  252. package/declarations/core/src/components/eui-loading-logo.d.ts +0 -13
  253. package/declarations/core/src/components/eui-loading-logo.d.ts.map +0 -1
  254. package/declarations/core/src/components/eui-loading-spinner.d.ts +0 -11
  255. package/declarations/core/src/components/eui-loading-spinner.d.ts.map +0 -1
  256. package/declarations/core/src/components/eui-markdown-editor-drop-zone.d.ts +0 -17
  257. package/declarations/core/src/components/eui-markdown-editor-drop-zone.d.ts.map +0 -1
  258. package/declarations/core/src/components/eui-markdown-editor-footer/icons/markdown-logo.d.ts +0 -10
  259. package/declarations/core/src/components/eui-markdown-editor-footer/icons/markdown-logo.d.ts.map +0 -1
  260. package/declarations/core/src/components/eui-markdown-editor-footer.d.ts +0 -13
  261. package/declarations/core/src/components/eui-markdown-editor-footer.d.ts.map +0 -1
  262. package/declarations/core/src/components/eui-markdown-editor-text-area.d.ts +0 -14
  263. package/declarations/core/src/components/eui-markdown-editor-text-area.d.ts.map +0 -1
  264. package/declarations/core/src/components/eui-markdown-editor-toolbar/icons/markdown-checkmark.d.ts +0 -11
  265. package/declarations/core/src/components/eui-markdown-editor-toolbar/icons/markdown-checkmark.d.ts.map +0 -1
  266. package/declarations/core/src/components/eui-markdown-editor-toolbar.d.ts +0 -61
  267. package/declarations/core/src/components/eui-markdown-editor-toolbar.d.ts.map +0 -1
  268. package/declarations/core/src/components/eui-markdown-editor.d.ts +0 -99
  269. package/declarations/core/src/components/eui-markdown-editor.d.ts.map +0 -1
  270. package/declarations/core/src/components/eui-markdown-format/markdown-checkbox.d.ts +0 -24
  271. package/declarations/core/src/components/eui-markdown-format/markdown-checkbox.d.ts.map +0 -1
  272. package/declarations/core/src/components/eui-markdown-format/markdown-code-block.d.ts +0 -15
  273. package/declarations/core/src/components/eui-markdown-format/markdown-code-block.d.ts.map +0 -1
  274. package/declarations/core/src/components/eui-markdown-format/markdown-code.d.ts +0 -13
  275. package/declarations/core/src/components/eui-markdown-format/markdown-code.d.ts.map +0 -1
  276. package/declarations/core/src/components/eui-markdown-format/markdown-tooltip.d.ts +0 -15
  277. package/declarations/core/src/components/eui-markdown-format/markdown-tooltip.d.ts.map +0 -1
  278. package/declarations/core/src/components/eui-markdown-format.d.ts +0 -23
  279. package/declarations/core/src/components/eui-markdown-format.d.ts.map +0 -1
  280. package/declarations/core/src/components/eui-modal-body.d.ts +0 -10
  281. package/declarations/core/src/components/eui-modal-body.d.ts.map +0 -1
  282. package/declarations/core/src/components/eui-modal-footer.d.ts +0 -10
  283. package/declarations/core/src/components/eui-modal-footer.d.ts.map +0 -1
  284. package/declarations/core/src/components/eui-modal-header-title.d.ts +0 -10
  285. package/declarations/core/src/components/eui-modal-header-title.d.ts.map +0 -1
  286. package/declarations/core/src/components/eui-modal-header.d.ts +0 -10
  287. package/declarations/core/src/components/eui-modal-header.d.ts.map +0 -1
  288. package/declarations/core/src/components/eui-modal.d.ts +0 -27
  289. package/declarations/core/src/components/eui-modal.d.ts.map +0 -1
  290. package/declarations/core/src/components/eui-notification-badge.d.ts +0 -15
  291. package/declarations/core/src/components/eui-notification-badge.d.ts.map +0 -1
  292. package/declarations/core/src/components/eui-notification-event-messages.d.ts +0 -13
  293. package/declarations/core/src/components/eui-notification-event-messages.d.ts.map +0 -1
  294. package/declarations/core/src/components/eui-notification-event-meta.d.ts +0 -24
  295. package/declarations/core/src/components/eui-notification-event-meta.d.ts.map +0 -1
  296. package/declarations/core/src/components/eui-notification-event-read-button.d.ts +0 -13
  297. package/declarations/core/src/components/eui-notification-event-read-button.d.ts.map +0 -1
  298. package/declarations/core/src/components/eui-notification-event-read-icon.d.ts +0 -14
  299. package/declarations/core/src/components/eui-notification-event-read-icon.d.ts.map +0 -1
  300. package/declarations/core/src/components/eui-notification-event.d.ts +0 -40
  301. package/declarations/core/src/components/eui-notification-event.d.ts.map +0 -1
  302. package/declarations/core/src/components/eui-overlay-mask.d.ts +0 -20
  303. package/declarations/core/src/components/eui-overlay-mask.d.ts.map +0 -1
  304. package/declarations/core/src/components/eui-page-body.d.ts +0 -22
  305. package/declarations/core/src/components/eui-page-body.d.ts.map +0 -1
  306. package/declarations/core/src/components/eui-page-content-body.d.ts +0 -18
  307. package/declarations/core/src/components/eui-page-content-body.d.ts.map +0 -1
  308. package/declarations/core/src/components/eui-page-content-header-section.d.ts +0 -10
  309. package/declarations/core/src/components/eui-page-content-header-section.d.ts.map +0 -1
  310. package/declarations/core/src/components/eui-page-content-header.d.ts +0 -13
  311. package/declarations/core/src/components/eui-page-content-header.d.ts.map +0 -1
  312. package/declarations/core/src/components/eui-page-content.d.ts +0 -22
  313. package/declarations/core/src/components/eui-page-content.d.ts.map +0 -1
  314. package/declarations/core/src/components/eui-page-header-content.d.ts +0 -98
  315. package/declarations/core/src/components/eui-page-header-content.d.ts.map +0 -1
  316. package/declarations/core/src/components/eui-page-header-section.d.ts +0 -10
  317. package/declarations/core/src/components/eui-page-header-section.d.ts.map +0 -1
  318. package/declarations/core/src/components/eui-page-header.d.ts +0 -89
  319. package/declarations/core/src/components/eui-page-header.d.ts.map +0 -1
  320. package/declarations/core/src/components/eui-page-side-bar.d.ts +0 -15
  321. package/declarations/core/src/components/eui-page-side-bar.d.ts.map +0 -1
  322. package/declarations/core/src/components/eui-page-template.d.ts +0 -77
  323. package/declarations/core/src/components/eui-page-template.d.ts.map +0 -1
  324. package/declarations/core/src/components/eui-page.d.ts +0 -17
  325. package/declarations/core/src/components/eui-page.d.ts.map +0 -1
  326. package/declarations/core/src/components/eui-pagination/button-wrapper.d.ts +0 -16
  327. package/declarations/core/src/components/eui-pagination/button-wrapper.d.ts.map +0 -1
  328. package/declarations/core/src/components/eui-pagination/next-button.d.ts +0 -19
  329. package/declarations/core/src/components/eui-pagination/next-button.d.ts.map +0 -1
  330. package/declarations/core/src/components/eui-pagination/previous-button.d.ts +0 -18
  331. package/declarations/core/src/components/eui-pagination/previous-button.d.ts.map +0 -1
  332. package/declarations/core/src/components/eui-pagination-button.d.ts +0 -20
  333. package/declarations/core/src/components/eui-pagination-button.d.ts.map +0 -1
  334. package/declarations/core/src/components/eui-pagination.d.ts +0 -79
  335. package/declarations/core/src/components/eui-pagination.d.ts.map +0 -1
  336. package/declarations/core/src/components/eui-panel.d.ts +0 -45
  337. package/declarations/core/src/components/eui-panel.d.ts.map +0 -1
  338. package/declarations/core/src/components/eui-popover-footer.d.ts +0 -14
  339. package/declarations/core/src/components/eui-popover-footer.d.ts.map +0 -1
  340. package/declarations/core/src/components/eui-popover-title.d.ts +0 -14
  341. package/declarations/core/src/components/eui-popover-title.d.ts.map +0 -1
  342. package/declarations/core/src/components/eui-popover.d.ts +0 -217
  343. package/declarations/core/src/components/eui-popover.d.ts.map +0 -1
  344. package/declarations/core/src/components/eui-portal.d.ts +0 -28
  345. package/declarations/core/src/components/eui-portal.d.ts.map +0 -1
  346. package/declarations/core/src/components/eui-progress.d.ts +0 -22
  347. package/declarations/core/src/components/eui-progress.d.ts.map +0 -1
  348. package/declarations/core/src/components/eui-radio-group.d.ts +0 -25
  349. package/declarations/core/src/components/eui-radio-group.d.ts.map +0 -1
  350. package/declarations/core/src/components/eui-radio.d.ts +0 -24
  351. package/declarations/core/src/components/eui-radio.d.ts.map +0 -1
  352. package/declarations/core/src/components/eui-range-highlight.d.ts +0 -16
  353. package/declarations/core/src/components/eui-range-highlight.d.ts.map +0 -1
  354. package/declarations/core/src/components/eui-range-input.d.ts +0 -25
  355. package/declarations/core/src/components/eui-range-input.d.ts.map +0 -1
  356. package/declarations/core/src/components/eui-range-label.d.ts +0 -13
  357. package/declarations/core/src/components/eui-range-label.d.ts.map +0 -1
  358. package/declarations/core/src/components/eui-range-levels.d.ts +0 -27
  359. package/declarations/core/src/components/eui-range-levels.d.ts.map +0 -1
  360. package/declarations/core/src/components/eui-range-slider.d.ts +0 -25
  361. package/declarations/core/src/components/eui-range-slider.d.ts.map +0 -1
  362. package/declarations/core/src/components/eui-range-thumb.d.ts +0 -15
  363. package/declarations/core/src/components/eui-range-thumb.d.ts.map +0 -1
  364. package/declarations/core/src/components/eui-range-ticks.d.ts +0 -29
  365. package/declarations/core/src/components/eui-range-ticks.d.ts.map +0 -1
  366. package/declarations/core/src/components/eui-range-tooltip.d.ts +0 -33
  367. package/declarations/core/src/components/eui-range-tooltip.d.ts.map +0 -1
  368. package/declarations/core/src/components/eui-range-track.d.ts +0 -43
  369. package/declarations/core/src/components/eui-range-track.d.ts.map +0 -1
  370. package/declarations/core/src/components/eui-range-wrapper.d.ts +0 -14
  371. package/declarations/core/src/components/eui-range-wrapper.d.ts.map +0 -1
  372. package/declarations/core/src/components/eui-range.d.ts +0 -112
  373. package/declarations/core/src/components/eui-range.d.ts.map +0 -1
  374. package/declarations/core/src/components/eui-select.d.ts +0 -31
  375. package/declarations/core/src/components/eui-select.d.ts.map +0 -1
  376. package/declarations/core/src/components/eui-selectable-list-item.d.ts +0 -15
  377. package/declarations/core/src/components/eui-selectable-list-item.d.ts.map +0 -1
  378. package/declarations/core/src/components/eui-show-for.d.ts +0 -30
  379. package/declarations/core/src/components/eui-show-for.d.ts.map +0 -1
  380. package/declarations/core/src/components/eui-side-nav-item/button.d.ts +0 -16
  381. package/declarations/core/src/components/eui-side-nav-item/button.d.ts.map +0 -1
  382. package/declarations/core/src/components/eui-side-nav-item.d.ts +0 -32
  383. package/declarations/core/src/components/eui-side-nav-item.d.ts.map +0 -1
  384. package/declarations/core/src/components/eui-side-nav.d.ts +0 -48
  385. package/declarations/core/src/components/eui-side-nav.d.ts.map +0 -1
  386. package/declarations/core/src/components/eui-spacer.d.ts +0 -11
  387. package/declarations/core/src/components/eui-spacer.d.ts.map +0 -1
  388. package/declarations/core/src/components/eui-stat/description.d.ts +0 -15
  389. package/declarations/core/src/components/eui-stat/description.d.ts.map +0 -1
  390. package/declarations/core/src/components/eui-stat/title.d.ts +0 -17
  391. package/declarations/core/src/components/eui-stat/title.d.ts.map +0 -1
  392. package/declarations/core/src/components/eui-stat.d.ts +0 -28
  393. package/declarations/core/src/components/eui-stat.d.ts.map +0 -1
  394. package/declarations/core/src/components/eui-step-horizontal.d.ts +0 -38
  395. package/declarations/core/src/components/eui-step-horizontal.d.ts.map +0 -1
  396. package/declarations/core/src/components/eui-step-number.d.ts +0 -31
  397. package/declarations/core/src/components/eui-step-number.d.ts.map +0 -1
  398. package/declarations/core/src/components/eui-step.d.ts +0 -18
  399. package/declarations/core/src/components/eui-step.d.ts.map +0 -1
  400. package/declarations/core/src/components/eui-steps.d.ts +0 -13
  401. package/declarations/core/src/components/eui-steps.d.ts.map +0 -1
  402. package/declarations/core/src/components/eui-sub-steps.d.ts +0 -10
  403. package/declarations/core/src/components/eui-sub-steps.d.ts.map +0 -1
  404. package/declarations/core/src/components/eui-super-date-picker/date-popover/absolute-tab.d.ts +0 -27
  405. package/declarations/core/src/components/eui-super-date-picker/date-popover/absolute-tab.d.ts.map +0 -1
  406. package/declarations/core/src/components/eui-super-date-picker/date-popover/datetime-picker.d.ts +0 -65
  407. package/declarations/core/src/components/eui-super-date-picker/date-popover/datetime-picker.d.ts.map +0 -1
  408. package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-button.d.ts +0 -45
  409. package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-button.d.ts.map +0 -1
  410. package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts +0 -49
  411. package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts.map +0 -1
  412. package/declarations/core/src/components/eui-super-date-picker/date-popover/now-tab.d.ts +0 -10
  413. package/declarations/core/src/components/eui-super-date-picker/date-popover/now-tab.d.ts.map +0 -1
  414. package/declarations/core/src/components/eui-super-date-picker/date-popover/relative-tab.d.ts +0 -31
  415. package/declarations/core/src/components/eui-super-date-picker/date-popover/relative-tab.d.ts.map +0 -1
  416. package/declarations/core/src/components/eui-super-date-picker/eui-date-picker-range.d.ts +0 -18
  417. package/declarations/core/src/components/eui-super-date-picker/eui-date-picker-range.d.ts.map +0 -1
  418. package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.d.ts +0 -14
  419. package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.d.ts.map +0 -1
  420. package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts +0 -37
  421. package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts.map +0 -1
  422. package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.d.ts +0 -14
  423. package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.d.ts.map +0 -1
  424. package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover.d.ts +0 -33
  425. package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover.d.ts.map +0 -1
  426. package/declarations/core/src/components/eui-super-date-picker/eui-super-update-button.d.ts +0 -20
  427. package/declarations/core/src/components/eui-super-date-picker/eui-super-update-button.d.ts.map +0 -1
  428. package/declarations/core/src/components/eui-super-date-picker/utils/index.d.ts +0 -31
  429. package/declarations/core/src/components/eui-super-date-picker/utils/index.d.ts.map +0 -1
  430. package/declarations/core/src/components/eui-super-date-picker/utils/quick-select.d.ts +0 -14
  431. package/declarations/core/src/components/eui-super-date-picker/utils/quick-select.d.ts.map +0 -1
  432. package/declarations/core/src/components/eui-super-date-picker/utils/time-options.d.ts +0 -20
  433. package/declarations/core/src/components/eui-super-date-picker/utils/time-options.d.ts.map +0 -1
  434. package/declarations/core/src/components/eui-super-date-picker.d.ts +0 -102
  435. package/declarations/core/src/components/eui-super-date-picker.d.ts.map +0 -1
  436. package/declarations/core/src/components/eui-switch.d.ts +0 -30
  437. package/declarations/core/src/components/eui-switch.d.ts.map +0 -1
  438. package/declarations/core/src/components/eui-tab.d.ts +0 -21
  439. package/declarations/core/src/components/eui-tab.d.ts.map +0 -1
  440. package/declarations/core/src/components/eui-tabbed-content.d.ts +0 -65
  441. package/declarations/core/src/components/eui-tabbed-content.d.ts.map +0 -1
  442. package/declarations/core/src/components/eui-tabs.d.ts +0 -18
  443. package/declarations/core/src/components/eui-tabs.d.ts.map +0 -1
  444. package/declarations/core/src/components/eui-text-align.d.ts +0 -13
  445. package/declarations/core/src/components/eui-text-align.d.ts.map +0 -1
  446. package/declarations/core/src/components/eui-text-area.d.ts +0 -22
  447. package/declarations/core/src/components/eui-text-area.d.ts.map +0 -1
  448. package/declarations/core/src/components/eui-text-color.d.ts +0 -14
  449. package/declarations/core/src/components/eui-text-color.d.ts.map +0 -1
  450. package/declarations/core/src/components/eui-text.d.ts +0 -19
  451. package/declarations/core/src/components/eui-text.d.ts.map +0 -1
  452. package/declarations/core/src/components/eui-title.d.ts +0 -17
  453. package/declarations/core/src/components/eui-title.d.ts.map +0 -1
  454. package/declarations/core/src/components/eui-toast.d.ts +0 -35
  455. package/declarations/core/src/components/eui-toast.d.ts.map +0 -1
  456. package/declarations/core/src/components/eui-tool-tip-popover.d.ts +0 -26
  457. package/declarations/core/src/components/eui-tool-tip-popover.d.ts.map +0 -1
  458. package/declarations/core/src/components/eui-tool-tip.d.ts +0 -108
  459. package/declarations/core/src/components/eui-tool-tip.d.ts.map +0 -1
  460. package/declarations/core/src/components/text-block.d.ts +0 -13
  461. package/declarations/core/src/components/text-block.d.ts.map +0 -1
  462. package/declarations/core/src/components.d.ts +0 -150
  463. package/declarations/core/src/components.d.ts.map +0 -1
  464. package/declarations/core/src/helpers/arg-or-default.d.ts +0 -21
  465. package/declarations/core/src/helpers/arg-or-default.d.ts.map +0 -1
  466. package/declarations/core/src/helpers/cast-to.d.ts +0 -14
  467. package/declarations/core/src/helpers/cast-to.d.ts.map +0 -1
  468. package/declarations/core/src/helpers/class-names.d.ts +0 -47
  469. package/declarations/core/src/helpers/class-names.d.ts.map +0 -1
  470. package/declarations/core/src/helpers/eui-page-restrict-width.d.ts +0 -30
  471. package/declarations/core/src/helpers/eui-page-restrict-width.d.ts.map +0 -1
  472. package/declarations/core/src/helpers/get-eui-config.d.ts +0 -14
  473. package/declarations/core/src/helpers/get-eui-config.d.ts.map +0 -1
  474. package/declarations/core/src/helpers/get-range-tick.d.ts +0 -21
  475. package/declarations/core/src/helpers/get-range-tick.d.ts.map +0 -1
  476. package/declarations/core/src/helpers/hex-to-rgb.d.ts +0 -10
  477. package/declarations/core/src/helpers/hex-to-rgb.d.ts.map +0 -1
  478. package/declarations/core/src/helpers/inline-styles.d.ts +0 -19
  479. package/declarations/core/src/helpers/inline-styles.d.ts.map +0 -1
  480. package/declarations/core/src/helpers/is-color-dark.d.ts +0 -10
  481. package/declarations/core/src/helpers/is-color-dark.d.ts.map +0 -1
  482. package/declarations/core/src/helpers/is-item-open.d.ts +0 -16
  483. package/declarations/core/src/helpers/is-item-open.d.ts.map +0 -1
  484. package/declarations/core/src/helpers/is-valid-hex.d.ts +0 -10
  485. package/declarations/core/src/helpers/is-valid-hex.d.ts.map +0 -1
  486. package/declarations/core/src/helpers/merge.d.ts +0 -9
  487. package/declarations/core/src/helpers/merge.d.ts.map +0 -1
  488. package/declarations/core/src/helpers/to-initials.d.ts +0 -11
  489. package/declarations/core/src/helpers/to-initials.d.ts.map +0 -1
  490. package/declarations/core/src/helpers/type-of.d.ts +0 -10
  491. package/declarations/core/src/helpers/type-of.d.ts.map +0 -1
  492. package/declarations/core/src/helpers/use-state.d.ts +0 -21
  493. package/declarations/core/src/helpers/use-state.d.ts.map +0 -1
  494. package/declarations/core/src/helpers.d.ts +0 -9
  495. package/declarations/core/src/helpers.d.ts.map +0 -1
  496. package/declarations/core/src/i18n/util.d.ts +0 -12
  497. package/declarations/core/src/i18n/util.d.ts.map +0 -1
  498. package/declarations/core/src/modifiers/mutation-observer.d.ts +0 -12
  499. package/declarations/core/src/modifiers/mutation-observer.d.ts.map +0 -1
  500. package/declarations/core/src/modifiers/outside-click-detector.d.ts +0 -38
  501. package/declarations/core/src/modifiers/outside-click-detector.d.ts.map +0 -1
  502. package/declarations/core/src/modifiers/resize-observer.d.ts +0 -36
  503. package/declarations/core/src/modifiers/resize-observer.d.ts.map +0 -1
  504. package/declarations/core/src/modifiers/screen-reader-only.d.ts +0 -9
  505. package/declarations/core/src/modifiers/screen-reader-only.d.ts.map +0 -1
  506. package/declarations/core/src/modifiers/simple-style.d.ts +0 -12
  507. package/declarations/core/src/modifiers/simple-style.d.ts.map +0 -1
  508. package/declarations/core/src/modifiers/use-is-within-breakpoints.d.ts +0 -15
  509. package/declarations/core/src/modifiers/use-is-within-breakpoints.d.ts.map +0 -1
  510. package/declarations/core/src/modifiers/validatable-control.d.ts +0 -9
  511. package/declarations/core/src/modifiers/validatable-control.d.ts.map +0 -1
  512. package/declarations/core/src/services/eui-config.d.ts +0 -15
  513. package/declarations/core/src/services/eui-config.d.ts.map +0 -1
  514. package/declarations/core/src/services/eui-i18n.d.ts +0 -24
  515. package/declarations/core/src/services/eui-i18n.d.ts.map +0 -1
  516. package/declarations/core/src/utils/accesibility/accessible-click-keys.d.ts +0 -5
  517. package/declarations/core/src/utils/accesibility/accessible-click-keys.d.ts.map +0 -1
  518. package/declarations/core/src/utils/accesibility/cascading-menu-keys.d.ts +0 -9
  519. package/declarations/core/src/utils/accesibility/cascading-menu-keys.d.ts.map +0 -1
  520. package/declarations/core/src/utils/accesibility/combo-box-keys.d.ts +0 -8
  521. package/declarations/core/src/utils/accesibility/combo-box-keys.d.ts.map +0 -1
  522. package/declarations/core/src/utils/accesibility/index.d.ts +0 -4
  523. package/declarations/core/src/utils/accesibility/index.d.ts.map +0 -1
  524. package/declarations/core/src/utils/breakpoint.d.ts +0 -50
  525. package/declarations/core/src/utils/breakpoint.d.ts.map +0 -1
  526. package/declarations/core/src/utils/browser/browser.d.ts +0 -6
  527. package/declarations/core/src/utils/browser/browser.d.ts.map +0 -1
  528. package/declarations/core/src/utils/browser/index.d.ts +0 -2
  529. package/declarations/core/src/utils/browser/index.d.ts.map +0 -1
  530. package/declarations/core/src/utils/code/utils.d.ts +0 -32
  531. package/declarations/core/src/utils/code/utils.d.ts.map +0 -1
  532. package/declarations/core/src/utils/color/color_palette.d.ts +0 -24
  533. package/declarations/core/src/utils/color/color_palette.d.ts.map +0 -1
  534. package/declarations/core/src/utils/color/eui_palettes.d.ts +0 -37
  535. package/declarations/core/src/utils/color/eui_palettes.d.ts.map +0 -1
  536. package/declarations/core/src/utils/color/index.d.ts +0 -6
  537. package/declarations/core/src/utils/color/index.d.ts.map +0 -1
  538. package/declarations/core/src/utils/copy-to-clipboard.d.ts +0 -2
  539. package/declarations/core/src/utils/copy-to-clipboard.d.ts.map +0 -1
  540. package/declarations/core/src/utils/css-mappings/eui-accordion.d.ts +0 -12
  541. package/declarations/core/src/utils/css-mappings/eui-accordion.d.ts.map +0 -1
  542. package/declarations/core/src/utils/css-mappings/eui-avatar.d.ts +0 -23
  543. package/declarations/core/src/utils/css-mappings/eui-avatar.d.ts.map +0 -1
  544. package/declarations/core/src/utils/css-mappings/eui-badge-group.d.ts +0 -8
  545. package/declarations/core/src/utils/css-mappings/eui-badge-group.d.ts.map +0 -1
  546. package/declarations/core/src/utils/css-mappings/eui-badge.d.ts +0 -31
  547. package/declarations/core/src/utils/css-mappings/eui-badge.d.ts.map +0 -1
  548. package/declarations/core/src/utils/css-mappings/eui-beta-badge.d.ts +0 -13
  549. package/declarations/core/src/utils/css-mappings/eui-beta-badge.d.ts.map +0 -1
  550. package/declarations/core/src/utils/css-mappings/eui-bottom-bar.d.ts +0 -4
  551. package/declarations/core/src/utils/css-mappings/eui-bottom-bar.d.ts.map +0 -1
  552. package/declarations/core/src/utils/css-mappings/eui-button-empty.d.ts +0 -22
  553. package/declarations/core/src/utils/css-mappings/eui-button-empty.d.ts.map +0 -1
  554. package/declarations/core/src/utils/css-mappings/eui-button-group-button.d.ts +0 -4
  555. package/declarations/core/src/utils/css-mappings/eui-button-group-button.d.ts.map +0 -1
  556. package/declarations/core/src/utils/css-mappings/eui-button-group.d.ts +0 -4
  557. package/declarations/core/src/utils/css-mappings/eui-button-group.d.ts.map +0 -1
  558. package/declarations/core/src/utils/css-mappings/eui-button-icon.d.ts +0 -23
  559. package/declarations/core/src/utils/css-mappings/eui-button-icon.d.ts.map +0 -1
  560. package/declarations/core/src/utils/css-mappings/eui-button.d.ts +0 -13
  561. package/declarations/core/src/utils/css-mappings/eui-button.d.ts.map +0 -1
  562. package/declarations/core/src/utils/css-mappings/eui-call-out.d.ts +0 -13
  563. package/declarations/core/src/utils/css-mappings/eui-call-out.d.ts.map +0 -1
  564. package/declarations/core/src/utils/css-mappings/eui-card-select.d.ts +0 -4
  565. package/declarations/core/src/utils/css-mappings/eui-card-select.d.ts.map +0 -1
  566. package/declarations/core/src/utils/css-mappings/eui-card.d.ts +0 -9
  567. package/declarations/core/src/utils/css-mappings/eui-card.d.ts.map +0 -1
  568. package/declarations/core/src/utils/css-mappings/eui-code-block.d.ts +0 -15
  569. package/declarations/core/src/utils/css-mappings/eui-code-block.d.ts.map +0 -1
  570. package/declarations/core/src/utils/css-mappings/eui-collapsible-nav-group.d.ts +0 -9
  571. package/declarations/core/src/utils/css-mappings/eui-collapsible-nav-group.d.ts.map +0 -1
  572. package/declarations/core/src/utils/css-mappings/eui-comment-event.d.ts +0 -4
  573. package/declarations/core/src/utils/css-mappings/eui-comment-event.d.ts.map +0 -1
  574. package/declarations/core/src/utils/css-mappings/eui-comment-timeline-icon.d.ts +0 -7
  575. package/declarations/core/src/utils/css-mappings/eui-comment-timeline-icon.d.ts.map +0 -1
  576. package/declarations/core/src/utils/css-mappings/eui-context-menu-item.d.ts +0 -15
  577. package/declarations/core/src/utils/css-mappings/eui-context-menu-item.d.ts.map +0 -1
  578. package/declarations/core/src/utils/css-mappings/eui-described-form-group.d.ts +0 -12
  579. package/declarations/core/src/utils/css-mappings/eui-described-form-group.d.ts.map +0 -1
  580. package/declarations/core/src/utils/css-mappings/eui-description-list.d.ts +0 -18
  581. package/declarations/core/src/utils/css-mappings/eui-description-list.d.ts.map +0 -1
  582. package/declarations/core/src/utils/css-mappings/eui-empty-prompt.d.ts +0 -10
  583. package/declarations/core/src/utils/css-mappings/eui-empty-prompt.d.ts.map +0 -1
  584. package/declarations/core/src/utils/css-mappings/eui-file-picker.d.ts +0 -8
  585. package/declarations/core/src/utils/css-mappings/eui-file-picker.d.ts.map +0 -1
  586. package/declarations/core/src/utils/css-mappings/eui-flex-grid.d.ts +0 -22
  587. package/declarations/core/src/utils/css-mappings/eui-flex-grid.d.ts.map +0 -1
  588. package/declarations/core/src/utils/css-mappings/eui-flex-group.d.ts +0 -33
  589. package/declarations/core/src/utils/css-mappings/eui-flex-group.d.ts.map +0 -1
  590. package/declarations/core/src/utils/css-mappings/eui-flex-item.d.ts +0 -17
  591. package/declarations/core/src/utils/css-mappings/eui-flex-item.d.ts.map +0 -1
  592. package/declarations/core/src/utils/css-mappings/eui-flyout.d.ts +0 -23
  593. package/declarations/core/src/utils/css-mappings/eui-flyout.d.ts.map +0 -1
  594. package/declarations/core/src/utils/css-mappings/eui-form-control-layout-clear-button.d.ts +0 -8
  595. package/declarations/core/src/utils/css-mappings/eui-form-control-layout-clear-button.d.ts.map +0 -1
  596. package/declarations/core/src/utils/css-mappings/eui-form-row.d.ts +0 -12
  597. package/declarations/core/src/utils/css-mappings/eui-form-row.d.ts.map +0 -1
  598. package/declarations/core/src/utils/css-mappings/eui-global-toast-list.d.ts +0 -8
  599. package/declarations/core/src/utils/css-mappings/eui-global-toast-list.d.ts.map +0 -1
  600. package/declarations/core/src/utils/css-mappings/eui-header-links.d.ts +0 -18
  601. package/declarations/core/src/utils/css-mappings/eui-header-links.d.ts.map +0 -1
  602. package/declarations/core/src/utils/css-mappings/eui-header-section-item.d.ts +0 -9
  603. package/declarations/core/src/utils/css-mappings/eui-header-section-item.d.ts.map +0 -1
  604. package/declarations/core/src/utils/css-mappings/eui-header-section.d.ts +0 -12
  605. package/declarations/core/src/utils/css-mappings/eui-header-section.d.ts.map +0 -1
  606. package/declarations/core/src/utils/css-mappings/eui-header.d.ts +0 -12
  607. package/declarations/core/src/utils/css-mappings/eui-header.d.ts.map +0 -1
  608. package/declarations/core/src/utils/css-mappings/eui-health.d.ts +0 -10
  609. package/declarations/core/src/utils/css-mappings/eui-health.d.ts.map +0 -1
  610. package/declarations/core/src/utils/css-mappings/eui-horizontal-rule.d.ts +0 -18
  611. package/declarations/core/src/utils/css-mappings/eui-horizontal-rule.d.ts.map +0 -1
  612. package/declarations/core/src/utils/css-mappings/eui-icon.d.ts +0 -494
  613. package/declarations/core/src/utils/css-mappings/eui-icon.d.ts.map +0 -1
  614. package/declarations/core/src/utils/css-mappings/eui-image.d.ts +0 -22
  615. package/declarations/core/src/utils/css-mappings/eui-image.d.ts.map +0 -1
  616. package/declarations/core/src/utils/css-mappings/eui-link.d.ts +0 -14
  617. package/declarations/core/src/utils/css-mappings/eui-link.d.ts.map +0 -1
  618. package/declarations/core/src/utils/css-mappings/eui-list-group-item.d.ts +0 -17
  619. package/declarations/core/src/utils/css-mappings/eui-list-group-item.d.ts.map +0 -1
  620. package/declarations/core/src/utils/css-mappings/eui-list-group.d.ts +0 -12
  621. package/declarations/core/src/utils/css-mappings/eui-list-group.d.ts.map +0 -1
  622. package/declarations/core/src/utils/css-mappings/eui-loading-spinner.d.ts +0 -10
  623. package/declarations/core/src/utils/css-mappings/eui-loading-spinner.d.ts.map +0 -1
  624. package/declarations/core/src/utils/css-mappings/eui-modal.d.ts +0 -7
  625. package/declarations/core/src/utils/css-mappings/eui-modal.d.ts.map +0 -1
  626. package/declarations/core/src/utils/css-mappings/eui-notification-badge.d.ts +0 -11
  627. package/declarations/core/src/utils/css-mappings/eui-notification-badge.d.ts.map +0 -1
  628. package/declarations/core/src/utils/css-mappings/eui-page-body.d.ts +0 -16
  629. package/declarations/core/src/utils/css-mappings/eui-page-body.d.ts.map +0 -1
  630. package/declarations/core/src/utils/css-mappings/eui-page-content-body.d.ts +0 -10
  631. package/declarations/core/src/utils/css-mappings/eui-page-content-body.d.ts.map +0 -1
  632. package/declarations/core/src/utils/css-mappings/eui-page-content.d.ts +0 -10
  633. package/declarations/core/src/utils/css-mappings/eui-page-content.d.ts.map +0 -1
  634. package/declarations/core/src/utils/css-mappings/eui-page-header.d.ts +0 -10
  635. package/declarations/core/src/utils/css-mappings/eui-page-header.d.ts.map +0 -1
  636. package/declarations/core/src/utils/css-mappings/eui-page-side-bar.d.ts +0 -10
  637. package/declarations/core/src/utils/css-mappings/eui-page-side-bar.d.ts.map +0 -1
  638. package/declarations/core/src/utils/css-mappings/eui-page.d.ts +0 -24
  639. package/declarations/core/src/utils/css-mappings/eui-page.d.ts.map +0 -1
  640. package/declarations/core/src/utils/css-mappings/eui-panel.d.ts +0 -24
  641. package/declarations/core/src/utils/css-mappings/eui-panel.d.ts.map +0 -1
  642. package/declarations/core/src/utils/css-mappings/eui-popover-footer.d.ts +0 -10
  643. package/declarations/core/src/utils/css-mappings/eui-popover-footer.d.ts.map +0 -1
  644. package/declarations/core/src/utils/css-mappings/eui-popover-title.d.ts +0 -10
  645. package/declarations/core/src/utils/css-mappings/eui-popover-title.d.ts.map +0 -1
  646. package/declarations/core/src/utils/css-mappings/eui-popover.d.ts +0 -22
  647. package/declarations/core/src/utils/css-mappings/eui-popover.d.ts.map +0 -1
  648. package/declarations/core/src/utils/css-mappings/eui-progress-data.d.ts +0 -3
  649. package/declarations/core/src/utils/css-mappings/eui-progress-data.d.ts.map +0 -1
  650. package/declarations/core/src/utils/css-mappings/eui-progress.d.ts +0 -50
  651. package/declarations/core/src/utils/css-mappings/eui-progress.d.ts.map +0 -1
  652. package/declarations/core/src/utils/css-mappings/eui-range-highlight.d.ts +0 -11
  653. package/declarations/core/src/utils/css-mappings/eui-range-highlight.d.ts.map +0 -1
  654. package/declarations/core/src/utils/css-mappings/eui-range-input.d.ts +0 -8
  655. package/declarations/core/src/utils/css-mappings/eui-range-input.d.ts.map +0 -1
  656. package/declarations/core/src/utils/css-mappings/eui-range-levels.d.ts +0 -13
  657. package/declarations/core/src/utils/css-mappings/eui-range-levels.d.ts.map +0 -1
  658. package/declarations/core/src/utils/css-mappings/eui-selectable-list-item.d.ts +0 -7
  659. package/declarations/core/src/utils/css-mappings/eui-selectable-list-item.d.ts.map +0 -1
  660. package/declarations/core/src/utils/css-mappings/eui-spacer.d.ts +0 -12
  661. package/declarations/core/src/utils/css-mappings/eui-spacer.d.ts.map +0 -1
  662. package/declarations/core/src/utils/css-mappings/eui-stat.d.ts +0 -17
  663. package/declarations/core/src/utils/css-mappings/eui-stat.d.ts.map +0 -1
  664. package/declarations/core/src/utils/css-mappings/eui-step-number.d.ts +0 -11
  665. package/declarations/core/src/utils/css-mappings/eui-step-number.d.ts.map +0 -1
  666. package/declarations/core/src/utils/css-mappings/eui-tabs.d.ts +0 -14
  667. package/declarations/core/src/utils/css-mappings/eui-tabs.d.ts.map +0 -1
  668. package/declarations/core/src/utils/css-mappings/eui-text-align.d.ts +0 -9
  669. package/declarations/core/src/utils/css-mappings/eui-text-align.d.ts.map +0 -1
  670. package/declarations/core/src/utils/css-mappings/eui-text-area.d.ts +0 -10
  671. package/declarations/core/src/utils/css-mappings/eui-text-area.d.ts.map +0 -1
  672. package/declarations/core/src/utils/css-mappings/eui-text-color.d.ts +0 -14
  673. package/declarations/core/src/utils/css-mappings/eui-text-color.d.ts.map +0 -1
  674. package/declarations/core/src/utils/css-mappings/eui-text.d.ts +0 -9
  675. package/declarations/core/src/utils/css-mappings/eui-text.d.ts.map +0 -1
  676. package/declarations/core/src/utils/css-mappings/eui-title.d.ts +0 -15
  677. package/declarations/core/src/utils/css-mappings/eui-title.d.ts.map +0 -1
  678. package/declarations/core/src/utils/css-mappings/eui-toast.d.ts +0 -11
  679. package/declarations/core/src/utils/css-mappings/eui-toast.d.ts.map +0 -1
  680. package/declarations/core/src/utils/css-mappings/eui-tool-tip.d.ts +0 -10
  681. package/declarations/core/src/utils/css-mappings/eui-tool-tip.d.ts.map +0 -1
  682. package/declarations/core/src/utils/css-mappings/index.d.ts +0 -3
  683. package/declarations/core/src/utils/css-mappings/index.d.ts.map +0 -1
  684. package/declarations/core/src/utils/detect-element-resize.d.ts +0 -17
  685. package/declarations/core/src/utils/detect-element-resize.d.ts.map +0 -1
  686. package/declarations/core/src/utils/keys.d.ts +0 -31
  687. package/declarations/core/src/utils/keys.d.ts.map +0 -1
  688. package/declarations/core/src/utils/markdown/markdown-actions.d.ts +0 -45
  689. package/declarations/core/src/utils/markdown/markdown-actions.d.ts.map +0 -1
  690. package/declarations/core/src/utils/markdown/markdown-modes.d.ts +0 -4
  691. package/declarations/core/src/utils/markdown/markdown-modes.d.ts.map +0 -1
  692. package/declarations/core/src/utils/markdown/markdown-types.d.ts +0 -100
  693. package/declarations/core/src/utils/markdown/markdown-types.d.ts.map +0 -1
  694. package/declarations/core/src/utils/markdown/plugins/markdown-add-components/index.d.ts +0 -3
  695. package/declarations/core/src/utils/markdown/plugins/markdown-add-components/index.d.ts.map +0 -1
  696. package/declarations/core/src/utils/markdown/plugins/markdown-add-components/processor.d.ts +0 -6
  697. package/declarations/core/src/utils/markdown/plugins/markdown-add-components/processor.d.ts.map +0 -1
  698. package/declarations/core/src/utils/markdown/plugins/markdown-checkbox/index.d.ts +0 -2
  699. package/declarations/core/src/utils/markdown/plugins/markdown-checkbox/index.d.ts.map +0 -1
  700. package/declarations/core/src/utils/markdown/plugins/markdown-checkbox/parser.d.ts +0 -3
  701. package/declarations/core/src/utils/markdown/plugins/markdown-checkbox/parser.d.ts.map +0 -1
  702. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/index.d.ts +0 -5
  703. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/index.d.ts.map +0 -1
  704. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.d.ts +0 -7
  705. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.d.ts.map +0 -1
  706. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts +0 -11
  707. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts.map +0 -1
  708. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts +0 -21
  709. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts.map +0 -1
  710. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts +0 -7
  711. package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts.map +0 -1
  712. package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/index.d.ts +0 -3
  713. package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/index.d.ts.map +0 -1
  714. package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/parser.d.ts +0 -3
  715. package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/parser.d.ts.map +0 -1
  716. package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/plugin.d.ts +0 -14
  717. package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/plugin.d.ts.map +0 -1
  718. package/declarations/core/src/utils/markdown/plugins/to-dom.d.ts +0 -20
  719. package/declarations/core/src/utils/markdown/plugins/to-dom.d.ts.map +0 -1
  720. package/declarations/core/src/utils/markdown/remark/remark-prismjs.d.ts +0 -5
  721. package/declarations/core/src/utils/markdown/remark/remark-prismjs.d.ts.map +0 -1
  722. package/declarations/core/src/utils/maybe-unwrap-proxy.d.ts +0 -5
  723. package/declarations/core/src/utils/maybe-unwrap-proxy.d.ts.map +0 -1
  724. package/declarations/core/src/utils/number/index.d.ts +0 -2
  725. package/declarations/core/src/utils/number/index.d.ts.map +0 -1
  726. package/declarations/core/src/utils/number/number.d.ts +0 -3
  727. package/declarations/core/src/utils/number/number.d.ts.map +0 -1
  728. package/declarations/core/src/utils/popover/index.d.ts +0 -154
  729. package/declarations/core/src/utils/popover/index.d.ts.map +0 -1
  730. package/declarations/core/src/utils/popover/types.d.ts +0 -2
  731. package/declarations/core/src/utils/popover/types.d.ts.map +0 -1
  732. package/declarations/core/src/utils/predicate/common_predicates.d.ts +0 -6
  733. package/declarations/core/src/utils/predicate/common_predicates.d.ts.map +0 -1
  734. package/declarations/core/src/utils/predicate/index.d.ts +0 -3
  735. package/declarations/core/src/utils/predicate/index.d.ts.map +0 -1
  736. package/declarations/core/src/utils/predicate/lodash_predicates.d.ts +0 -8
  737. package/declarations/core/src/utils/predicate/lodash_predicates.d.ts.map +0 -1
  738. package/declarations/core/src/utils/range/index.d.ts +0 -2
  739. package/declarations/core/src/utils/range/index.d.ts.map +0 -1
  740. package/declarations/core/src/utils/transition.d.ts +0 -8
  741. package/declarations/core/src/utils/transition.d.ts.map +0 -1
  742. package/declarations/validated-form/src/-private/random-id.d.ts +0 -9
  743. package/declarations/validated-form/src/-private/random-id.d.ts.map +0 -1
  744. package/declarations/validated-form/src/components/default-theme.d.ts +0 -18
  745. package/declarations/validated-form/src/components/default-theme.d.ts.map +0 -1
  746. package/declarations/validated-form/src/components/validated-form/field-base.d.ts +0 -58
  747. package/declarations/validated-form/src/components/validated-form/field-base.d.ts.map +0 -1
  748. package/declarations/validated-form/src/components/validated-form/field-checkbox-group.d.ts +0 -30
  749. package/declarations/validated-form/src/components/validated-form/field-checkbox-group.d.ts.map +0 -1
  750. package/declarations/validated-form/src/components/validated-form/field-combo-box.d.ts +0 -27
  751. package/declarations/validated-form/src/components/validated-form/field-combo-box.d.ts.map +0 -1
  752. package/declarations/validated-form/src/components/validated-form/field-dual-range-slider.d.ts +0 -32
  753. package/declarations/validated-form/src/components/validated-form/field-dual-range-slider.d.ts.map +0 -1
  754. package/declarations/validated-form/src/components/validated-form/field-markdown-editor.d.ts +0 -25
  755. package/declarations/validated-form/src/components/validated-form/field-markdown-editor.d.ts.map +0 -1
  756. package/declarations/validated-form/src/components/validated-form/field-number.d.ts +0 -24
  757. package/declarations/validated-form/src/components/validated-form/field-number.d.ts.map +0 -1
  758. package/declarations/validated-form/src/components/validated-form/field-password.d.ts +0 -24
  759. package/declarations/validated-form/src/components/validated-form/field-password.d.ts.map +0 -1
  760. package/declarations/validated-form/src/components/validated-form/field-radio-group.d.ts +0 -29
  761. package/declarations/validated-form/src/components/validated-form/field-radio-group.d.ts.map +0 -1
  762. package/declarations/validated-form/src/components/validated-form/field-range-slider.d.ts +0 -28
  763. package/declarations/validated-form/src/components/validated-form/field-range-slider.d.ts.map +0 -1
  764. package/declarations/validated-form/src/components/validated-form/field-select.d.ts +0 -23
  765. package/declarations/validated-form/src/components/validated-form/field-select.d.ts.map +0 -1
  766. package/declarations/validated-form/src/components/validated-form/field-switch.d.ts +0 -24
  767. package/declarations/validated-form/src/components/validated-form/field-switch.d.ts.map +0 -1
  768. package/declarations/validated-form/src/components/validated-form/field-text-area.d.ts +0 -29
  769. package/declarations/validated-form/src/components/validated-form/field-text-area.d.ts.map +0 -1
  770. package/declarations/validated-form/src/components/validated-form/field-text.d.ts +0 -22
  771. package/declarations/validated-form/src/components/validated-form/field-text.d.ts.map +0 -1
  772. package/declarations/validated-form/src/components/validated-form.d.ts +0 -93
  773. package/declarations/validated-form/src/components/validated-form.d.ts.map +0 -1
  774. package/declarations/validated-form/src/utils/build-validation-messages.d.ts +0 -13
  775. package/declarations/validated-form/src/utils/build-validation-messages.d.ts.map +0 -1
  776. package/declarations/validated-form/src/utils/get-messages.d.ts +0 -11
  777. package/declarations/validated-form/src/utils/get-messages.d.ts.map +0 -1
  778. package/declarations/validated-form/src/utils/validation-errors.d.ts +0 -2
  779. package/declarations/validated-form/src/utils/validation-errors.d.ts.map +0 -1
  780. package/declarations/validated-form/src/utils/with-defaults.d.ts +0 -10
  781. package/declarations/validated-form/src/utils/with-defaults.d.ts.map +0 -1
  782. package/declarations/validated-form/src/validators/messages.d.ts +0 -4
  783. package/declarations/validated-form/src/validators/messages.d.ts.map +0 -1
package/README.md CHANGED
@@ -1,38 +1,27 @@
1
- @ember-eui/validated-form
2
- ==============================================================================
1
+ # @ember-eui/validated-form
3
2
 
4
3
  Validated form for easy render oriented validations, depends on @ember/eui-core
5
4
 
5
+ ## Compatibility
6
6
 
7
- Compatibility
8
- ------------------------------------------------------------------------------
7
+ - Ember.js v5.8 or above
8
+ - Ember CLI v5.8 or above
9
+ - Node.js v18 or above
9
10
 
10
- * Ember.js v3.24 or above
11
- * Ember CLI v3.24 or above
12
- * Node.js v12 or above
13
-
14
-
15
- Installation
16
- ------------------------------------------------------------------------------
11
+ ## Installation
17
12
 
18
13
  ```
19
14
  ember install @ember-eui/validated-form
20
15
  ```
21
16
 
22
-
23
- Usage
24
- ------------------------------------------------------------------------------
17
+ ## Usage
25
18
 
26
19
  [Longer description of how to use the addon in apps.]
27
20
 
28
-
29
- Contributing
30
- ------------------------------------------------------------------------------
21
+ ## Contributing
31
22
 
32
23
  See the [Contributing](CONTRIBUTING.md) guide for details.
33
24
 
34
-
35
- License
36
- ------------------------------------------------------------------------------
25
+ ## License
37
26
 
38
27
  This project is licensed under the [MIT License](LICENSE.md).
@@ -1,7 +1,7 @@
1
1
  declare const _default: import("@ember/component/helper").FunctionBasedHelper<{
2
2
  Args: {
3
3
  Positional: unknown[];
4
- Named: import("@ember/component/helper").EmptyObject;
4
+ Named: object;
5
5
  };
6
6
  Return: any;
7
7
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"random-id.d.ts","sourceRoot":"","sources":["../../src/-private/random-id.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"random-id.d.ts","sourceRoot":"","sources":["../../src/-private/random-id.ts"],"names":[],"mappings":";;;;;;;AAWA,wBAAgC"}
@@ -1,4 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
+ import type Owner from '@ember/owner';
2
3
  import type { ComponentLike } from '@glint/template';
3
4
  export interface FieldBaseSignature<T = ComponentLike> {
4
5
  Args: {
@@ -32,14 +33,16 @@ export default class ValidatedFormFieldBase<T extends FieldBaseSignature = Field
32
33
  get isInvalidAndTouched(): boolean;
33
34
  get formHasBeenValidated(): boolean;
34
35
  set formHasBeenValidated(value: boolean);
35
- get customValidations(): never[] | NonNullable<import("@glimmer/component/-private/component.js").Args<T>["customValidations"]>;
36
- get rowClasses(): "" | NonNullable<import("@glimmer/component/-private/component.js").Args<T>["rowClasses"]>;
36
+ get customValidations(): {
37
+ validation(value: any, options?: Record<string, unknown>): boolean;
38
+ }[];
39
+ get rowClasses(): string;
37
40
  get rowExtra(): {};
38
- get label(): "" | NonNullable<import("@glimmer/component/-private/component.js").Args<T>["label"]>;
39
- get error(): never[] | NonNullable<import("@glimmer/component/-private/component.js").Args<T>["error"]>;
40
- get options(): never[] | NonNullable<import("@glimmer/component/-private/component.js").Args<T>["options"]>;
41
+ get label(): string;
42
+ get error(): string[];
43
+ get options(): any[];
41
44
  get validationErrorMessages(): string[] | null;
42
- constructor(owner: unknown, args: T['Args']);
45
+ constructor(owner: Owner, args: T['Args']);
43
46
  setValidationMessages(): void;
44
47
  didUpdateValue(): void;
45
48
  notifyValidityChange(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"field-base.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-base.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAU3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,aAAa;IACnD,IAAI,EAAE;QACJ,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACjB,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,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;KAChC,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,sBAAsB,CACzC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,CACjD,SAAQ,SAAS,CAAC,CAAC,CAAC;IACpB,kBAAkB,SAAgB;IAGlC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IAEf,wBAAwB,EAAE,IAAI,GAAG,MAAM,EAAE,CAAQ;IAEjD,SAAS,UAAS;IAE3B,IAAI,WAAW,OAEd;IAED,IAAI,gBAAgB,qBAEnB;IAED,IAAI,OAAO,YAEV;IAED,IAAI,SAAS,qBAEZ;IAED,IAAI,mBAAmB,YAEtB;IAED,IAAI,oBAAoB,YAEvB;IAED,IAAI,oBAAoB,CAAC,KAAK,SAAA,EAE7B;IAED,IAAI,iBAAiB,IAAI;QACvB,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;KACpE,EAAE,CAEF;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,IAAI,QAAQ,OAEX;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,IAAI,MAAM,EAAE,CAEpB;IAED,IAAI,OAAO,IAAI,GAAG,EAAE,CAEnB;IAED,IAAI,uBAAuB,oBAmB1B;gBAEW,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IAOzC,qBAAqB;IASrB,cAAc;IAUd,oBAAoB;IAKpB,YAAY,CAAC,GAAG,EAAE,OAAO;IAKzB;;;;;;;OAOG;IAEH,YAAY,CAAC,CAAC,EAAE,KAAK;IAOrB,WAAW;CAUZ"}
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiCheckboxGroupSignature } from '@ember-eui/core/components/eui-checkbox-group';
4
4
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
5
5
  export interface FieldCheckboxGroupSignature {
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiComboBoxSignature } from '@ember-eui/core/components/eui-combo-box';
4
4
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
5
5
  export interface FieldComboBoxSignature {
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiDualRangeSignature, ValueMember } from '@ember-eui/core/components/eui-dual-range';
4
4
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
5
5
  export interface FieldDualRangeSliderSignature {
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
4
4
  import type { EuiMarkdownEditorSignature } from '@ember-eui/core/components/eui-markdown-editor';
5
5
  import type { ComponentLike } from '@glint/template';
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiFieldNumberSignature } from '@ember-eui/core/components/eui-field-number';
4
4
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
5
5
  export interface FieldNumberSignature {
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiFieldPasswordSignature } from '@ember-eui/core/components/eui-field-password';
4
4
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
5
5
  export interface FieldPasswordSignature {
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
4
4
  import type { EuiRadioGroupSignature } from '@ember-eui/core/components/eui-radio-group';
5
5
  export interface FieldRadioGroupSignature {
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
4
4
  import type { EuiRangeSignature } from '@ember-eui/core/components/eui-range';
5
5
  export interface FieldRangeSliderSignature {
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
4
4
  import type { EuiSelectSignature } from '@ember-eui/core/components/eui-select';
5
5
  export interface FieldSelectSignature {
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
4
4
  import type { EuiSwitchSignature } from '@ember-eui/core/components/eui-switch';
5
5
  export interface FieldSwitchSignature {
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
4
4
  import type { EuiTextAreaSignature } from '@ember-eui/core/components/eui-text-area';
5
5
  import type { ComponentLike } from '@glint/template';
@@ -1,5 +1,5 @@
1
- import ValidatedFormFieldBase from "./field-base";
2
- import type { FieldBaseSignature } from "./field-base";
1
+ import ValidatedFormFieldBase from './field-base';
2
+ import type { FieldBaseSignature } from './field-base';
3
3
  import type { EuiFieldTextSignature } from '@ember-eui/core/components/eui-field-text';
4
4
  import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
5
5
  export interface FieldTextSignature {
@@ -1,6 +1,8 @@
1
1
  import Component from '@glimmer/component';
2
+ import { A } from '@ember/array';
3
+ import type Owner from '@ember/owner';
2
4
  import type { IValidatedFormTheme } from './default-theme';
3
- import type FieldBase from "./validated-form/field-base";
5
+ import type FieldBase from './validated-form/field-base';
4
6
  import type { EuiFormSignature } from '@ember-eui/core/components/eui-form';
5
7
  export interface ValidatedFormSignature {
6
8
  Element: EuiFormSignature['Element'];
@@ -17,6 +19,7 @@ export interface ValidatedFormSignature {
17
19
  theme?: Partial<IValidatedFormTheme>;
18
20
  isDisabled?: boolean;
19
21
  fullWidth?: boolean;
22
+ compressed?: boolean;
20
23
  tagName?: EuiFormSignature['Args']['tagName'];
21
24
  isInvalid?: EuiFormSignature['Args']['isInvalid'];
22
25
  invalidCallout?: EuiFormSignature['Args']['invalidCallout'];
@@ -52,12 +55,12 @@ export interface ValidatedFormSignature {
52
55
  };
53
56
  }
54
57
  export default class ValidatedFormComponent extends Component<ValidatedFormSignature> {
55
- childComponents: import("@ember/array/-private/native-array").default<FieldBase<import("./validated-form/field-base").FieldBaseSignature<import("@glint/template").ComponentLike>>>;
58
+ childComponents: ReturnType<typeof A<FieldBase>>;
56
59
  lastIsValid?: boolean;
57
60
  lastIsTouched?: boolean;
58
61
  isInvalid: boolean;
59
62
  isTouched: boolean;
60
- constructor(owner: unknown, args: ValidatedFormSignature['Args']);
63
+ constructor(owner: Owner, args: ValidatedFormSignature['Args']);
61
64
  willDestroy(): void;
62
65
  get isValid(): boolean;
63
66
  get isInvalidAndTouched(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"validated-form.d.ts","sourceRoot":"","sources":["../../src/components/validated-form.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAc3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;QACnD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;QACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;QACtC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;QACzC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;QACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;QAC7B,gBAAgB,CAAC,EAAE,CACjB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,OAAO,EAClB,mBAAmB,EAAE,OAAO,KACzB,IAAI,CA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BAAkB,CAAC,CAAC;gBAC1D,oBAAoB,EAAE,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;gBAClE,WAAW,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;gBAChD,mBAAmB,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;aACjE;SACF,CAAC;KACH,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,SAAS,CAAC,sBAAsB,CAAC;IAC1E,eAAe,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,CAAoB;IAE7E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IAEf,SAAS,UAAS;IAClB,SAAS,UAAS;gBAEf,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;IAK9D,WAAW;IAKX,IAAI,OAAO,YAEV;IAED,IAAI,mBAAmB,YAEtB;IAED,QAAQ,CAAC,KAAK,EAAE,SAAS;IAIzB,WAAW,CAAC,KAAK,EAAE,SAAS;IAKtB,YAAY,CAAC,CAAC,EAAE,KAAK;IAkB3B,WAAW,CAAC,CAAC,EAAE,KAAK;IAMpB,QAAQ,CAAC,KAAK,EAAE,SAAS;IAOzB,UAAU,CAAC,KAAK,EAAE,SAAS;IAU3B,cAAc;IAId,UAAU;IAIV,YAAY;IAIZ,qBAAqB;IAarB,cAAc;IAgBd,qBAAqB;IAMrB,IAAI,KAAK;;;;;;;;;;;;;;MAIR;CAiDF"}
@@ -1,4 +1,3 @@
1
- declare const _default: Readonly<typeof EmberObject> & (new (properties?: object | undefined) => any) & (new (...args: any[]) => any);
1
+ declare const _default: any;
2
2
  export default _default;
3
- import EmberObject from '@ember/object';
4
3
  //# sourceMappingURL=messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/validators/messages.js"],"names":[],"mappings":";;wBAAwB,eAAe"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/validators/messages.js"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"random-id.js","sources":["../../src/-private/random-id.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\n// Copy-pasted from the ember-source implementation:\n// https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/glimmer/lib/helpers/unique-id.ts\nfunction randomId() {\n //@ts-expect-error\n return ([3e7] + -1e3 + -4e3 + -2e3 + -1e11).replace(/[0-3]/g, (a) =>\n ((a * 4) ^ ((Math.random() * 16) >> (a & 2))).toString(16)\n );\n}\n\nexport default helper(randomId);\n\n\n"],"names":["randomId","replace","a","Math","random","toString","helper"],"mappings":";;AAEA;AACA;AACA,SAASA,QAAQA,GAAG;AAClB;EACA,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,EAAEC,OAAO,CAAC,QAAQ,EAAGC,CAAC,IAC9D,CAAEA,CAAC,GAAG,CAAC,GAAMC,IAAI,CAACC,MAAM,EAAE,GAAG,EAAE,KAAMF,CAAC,GAAG,CAAC,CAAE,EAAEG,QAAQ,CAAC,EAAE,CAC3D,CAAC,CAAA;AACH,CAAA;AAEA,iBAAeC,MAAM,CAACN,QAAQ,CAAC;;;;"}
1
+ {"version":3,"file":"random-id.js","sources":["../../src/-private/random-id.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\n// Copy-pasted from the ember-source implementation:\n// https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/glimmer/lib/helpers/unique-id.ts\nfunction randomId() {\n //@ts-expect-error\n return ([3e7] + -1e3 + -4e3 + -2e3 + -1e11).replace(/[0-3]/g, (a) =>\n ((a * 4) ^ ((Math.random() * 16) >> (a & 2))).toString(16)\n );\n}\n\nexport default helper(randomId);\n\n\n"],"names":["randomId","replace","a","Math","random","toString","helper"],"mappings":";;AAEA;AACA;AACA,SAASA,QAAQA,GAAG;AAClB;EACA,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,EAAEC,OAAO,CAAC,QAAQ,EAAGC,CAAC,IAC9D,CAAEA,CAAC,GAAG,CAAC,GAAMC,IAAI,CAACC,MAAM,EAAE,GAAG,EAAE,KAAMF,CAAC,GAAG,CAAC,CAAE,EAAEG,QAAQ,CAAC,EAAE,CAC3D,CAAC;AACH;AAEA,iBAAeC,MAAM,CAACN,QAAQ,CAAC;;;;"}
@@ -1,12 +1,12 @@
1
1
  import ValidatedFormFieldBase from './validated-form/field-base.js';
2
2
  import ValidatedFormFieldCheckboxGroup from './validated-form/field-checkbox-group.js';
3
3
  import ValidatedFormFieldComboBox from './validated-form/field-combo-box.js';
4
- import ValidatedFormFieldRangeSlider$1 from './validated-form/field-dual-range-slider.js';
4
+ import ValidatedFormFieldRangeSlider from './validated-form/field-dual-range-slider.js';
5
5
  import ValidatedFormFieldMarkdownEditor from './validated-form/field-markdown-editor.js';
6
6
  import ValidatedFormFieldNumber from './validated-form/field-number.js';
7
7
  import ValidatedFormFieldPassword from './validated-form/field-password.js';
8
8
  import ValidatedFormFieldRadioGroup from './validated-form/field-radio-group.js';
9
- import ValidatedFormFieldRangeSlider from './validated-form/field-range-slider.js';
9
+ import ValidatedFormFieldRangeSlider$1 from './validated-form/field-range-slider.js';
10
10
  import ValidatedFormFieldSelect from './validated-form/field-select.js';
11
11
  import ValidatedFormFieldSwitch from './validated-form/field-switch.js';
12
12
  import ValidatedFormFieldText from './validated-form/field-text.js';
@@ -22,8 +22,8 @@ const ValidatedFormDefaultTheme = {
22
22
  FieldComboBox: ValidatedFormFieldComboBox,
23
23
  FieldCheckboxGroup: ValidatedFormFieldCheckboxGroup,
24
24
  FieldRadioGroup: ValidatedFormFieldRadioGroup,
25
- FieldRangeSlider: ValidatedFormFieldRangeSlider,
26
- FieldDualRangeSlider: ValidatedFormFieldRangeSlider$1,
25
+ FieldRangeSlider: ValidatedFormFieldRangeSlider$1,
26
+ FieldDualRangeSlider: ValidatedFormFieldRangeSlider,
27
27
  FieldSwitch: ValidatedFormFieldSwitch,
28
28
  FieldMarkdownEditor: ValidatedFormFieldMarkdownEditor
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"default-theme.js","sources":["../../src/components/default-theme.ts"],"sourcesContent":["import FieldBase from './validated-form/field-base.gts';\nimport FieldCheckboxGroupComponent from './validated-form/field-checkbox-group.gts';\nimport FieldComboBoxComponent from './validated-form/field-combo-box.gts';\nimport FieldDualRangeSliderComponent from './validated-form/field-dual-range-slider.gts';\nimport FieldMarkdownEditorComponent from './validated-form/field-markdown-editor.gts';\nimport FieldNumberComponent from './validated-form/field-number.gts';\nimport FieldPasswordComponent from './validated-form/field-password.gts';\nimport FieldRadioGroupComponent from './validated-form/field-radio-group.gts';\nimport FieldRangeSliderComponent from './validated-form/field-range-slider.gts';\nimport FieldSelectComponent from './validated-form/field-select.gts';\nimport FieldSwitchComponent from './validated-form/field-switch.gts';\nimport FieldTextComponent from './validated-form/field-text.gts';\nimport FieldTextAreaComponent from './validated-form/field-text-area.gts';\n\nimport type { ComponentLike } from '@glint/template';\n\nexport interface IValidatedFormTheme {\n FieldBase: ComponentLike<any>;\n FieldNumber: ComponentLike<any>;\n FieldText: ComponentLike<any>;\n FieldPassword: ComponentLike<any>;\n FieldTextArea: ComponentLike<any>;\n FieldSelect: ComponentLike<any>;\n FieldComboBox: ComponentLike<any>;\n FieldCheckboxGroup: ComponentLike<any>;\n FieldRadioGroup: ComponentLike<any>;\n FieldRangeSlider: ComponentLike<any>;\n FieldDualRangeSlider: ComponentLike<any>;\n FieldSwitch: ComponentLike<any>;\n FieldMarkdownEditor: ComponentLike<any>;\n}\n\nexport const ValidatedFormDefaultTheme: IValidatedFormTheme = {\n FieldBase: FieldBase,\n FieldNumber: FieldNumberComponent,\n FieldText: FieldTextComponent,\n FieldPassword: FieldPasswordComponent,\n FieldTextArea: FieldTextAreaComponent,\n FieldSelect: FieldSelectComponent,\n FieldComboBox: FieldComboBoxComponent,\n FieldCheckboxGroup: FieldCheckboxGroupComponent,\n FieldRadioGroup: FieldRadioGroupComponent,\n FieldRangeSlider: FieldRangeSliderComponent,\n FieldDualRangeSlider: FieldDualRangeSliderComponent,\n FieldSwitch: FieldSwitchComponent,\n FieldMarkdownEditor: FieldMarkdownEditorComponent\n};\n"],"names":["ValidatedFormDefaultTheme","FieldBase","FieldNumber","FieldNumberComponent","FieldText","FieldTextComponent","FieldPassword","FieldPasswordComponent","FieldTextArea","FieldTextAreaComponent","FieldSelect","FieldSelectComponent","FieldComboBox","FieldComboBoxComponent","FieldCheckboxGroup","FieldCheckboxGroupComponent","FieldRadioGroup","FieldRadioGroupComponent","FieldRangeSlider","FieldRangeSliderComponent","FieldDualRangeSlider","FieldDualRangeSliderComponent","FieldSwitch","FieldSwitchComponent","FieldMarkdownEditor","FieldMarkdownEditorComponent"],"mappings":";;;;;;;;;;;;;;AAgCO,MAAMA,yBAA8C,GAAG;AAC5DC,EAAAA,SAAS,EAAEA,sBAAS;AACpBC,EAAAA,WAAW,EAAEC,wBAAoB;AACjCC,EAAAA,SAAS,EAAEC,sBAAkB;AAC7BC,EAAAA,aAAa,EAAEC,0BAAsB;AACrCC,EAAAA,aAAa,EAAEC,0BAAsB;AACrCC,EAAAA,WAAW,EAAEC,wBAAoB;AACjCC,EAAAA,aAAa,EAAEC,0BAAsB;AACrCC,EAAAA,kBAAkB,EAAEC,+BAA2B;AAC/CC,EAAAA,eAAe,EAAEC,4BAAwB;AACzCC,EAAAA,gBAAgB,EAAEC,6BAAyB;AAC3CC,EAAAA,oBAAoB,EAAEC,+BAA6B;AACnDC,EAAAA,WAAW,EAAEC,wBAAoB;AACjCC,EAAAA,mBAAmB,EAAEC,gCAAAA;AACvB;;;;"}
1
+ {"version":3,"file":"default-theme.js","sources":["../../src/components/default-theme.ts"],"sourcesContent":["import FieldBase from './validated-form/field-base.gts';\nimport FieldCheckboxGroupComponent from './validated-form/field-checkbox-group.gts';\nimport FieldComboBoxComponent from './validated-form/field-combo-box.gts';\nimport FieldDualRangeSliderComponent from './validated-form/field-dual-range-slider.gts';\nimport FieldMarkdownEditorComponent from './validated-form/field-markdown-editor.gts';\nimport FieldNumberComponent from './validated-form/field-number.gts';\nimport FieldPasswordComponent from './validated-form/field-password.gts';\nimport FieldRadioGroupComponent from './validated-form/field-radio-group.gts';\nimport FieldRangeSliderComponent from './validated-form/field-range-slider.gts';\nimport FieldSelectComponent from './validated-form/field-select.gts';\nimport FieldSwitchComponent from './validated-form/field-switch.gts';\nimport FieldTextComponent from './validated-form/field-text.gts';\nimport FieldTextAreaComponent from './validated-form/field-text-area.gts';\n\nimport type { ComponentLike } from '@glint/template';\n\nexport interface IValidatedFormTheme {\n FieldBase: ComponentLike<any>;\n FieldNumber: ComponentLike<any>;\n FieldText: ComponentLike<any>;\n FieldPassword: ComponentLike<any>;\n FieldTextArea: ComponentLike<any>;\n FieldSelect: ComponentLike<any>;\n FieldComboBox: ComponentLike<any>;\n FieldCheckboxGroup: ComponentLike<any>;\n FieldRadioGroup: ComponentLike<any>;\n FieldRangeSlider: ComponentLike<any>;\n FieldDualRangeSlider: ComponentLike<any>;\n FieldSwitch: ComponentLike<any>;\n FieldMarkdownEditor: ComponentLike<any>;\n}\n\nexport const ValidatedFormDefaultTheme: IValidatedFormTheme = {\n FieldBase: FieldBase,\n FieldNumber: FieldNumberComponent,\n FieldText: FieldTextComponent,\n FieldPassword: FieldPasswordComponent,\n FieldTextArea: FieldTextAreaComponent,\n FieldSelect: FieldSelectComponent,\n FieldComboBox: FieldComboBoxComponent,\n FieldCheckboxGroup: FieldCheckboxGroupComponent,\n FieldRadioGroup: FieldRadioGroupComponent,\n FieldRangeSlider: FieldRangeSliderComponent,\n FieldDualRangeSlider: FieldDualRangeSliderComponent,\n FieldSwitch: FieldSwitchComponent,\n FieldMarkdownEditor: FieldMarkdownEditorComponent\n};\n"],"names":["ValidatedFormDefaultTheme","FieldBase","FieldNumber","FieldNumberComponent","FieldText","FieldTextComponent","FieldPassword","FieldPasswordComponent","FieldTextArea","FieldTextAreaComponent","FieldSelect","FieldSelectComponent","FieldComboBox","FieldComboBoxComponent","FieldCheckboxGroup","FieldCheckboxGroupComponent","FieldRadioGroup","FieldRadioGroupComponent","FieldRangeSlider","FieldRangeSliderComponent","FieldDualRangeSlider","FieldDualRangeSliderComponent","FieldSwitch","FieldSwitchComponent","FieldMarkdownEditor","FieldMarkdownEditorComponent"],"mappings":";;;;;;;;;;;;;;AAgCO,MAAMA,yBAA8C,GAAG;AAC5DC,EAAAA,SAAS,EAAEA,sBAAS;AACpBC,EAAAA,WAAW,EAAEC,wBAAoB;AACjCC,EAAAA,SAAS,EAAEC,sBAAkB;AAC7BC,EAAAA,aAAa,EAAEC,0BAAsB;AACrCC,EAAAA,aAAa,EAAEC,0BAAsB;AACrCC,EAAAA,WAAW,EAAEC,wBAAoB;AACjCC,EAAAA,aAAa,EAAEC,0BAAsB;AACrCC,EAAAA,kBAAkB,EAAEC,+BAA2B;AAC/CC,EAAAA,eAAe,EAAEC,4BAAwB;AACzCC,EAAAA,gBAAgB,EAAEC,+BAAyB;AAC3CC,EAAAA,oBAAoB,EAAEC,6BAA6B;AACnDC,EAAAA,WAAW,EAAEC,wBAAoB;AACjCC,EAAAA,mBAAmB,EAAEC;AACvB;;;;"}
@@ -17,13 +17,13 @@ class ValidatedFormFieldBase extends Component {
17
17
  return null;
18
18
  });
19
19
  }
20
- #_validationErrorMessages = (i(this, "_validationErrorMessages"), void 0);
20
+ #_validationErrorMessages = (i(this, "_validationErrorMessages"), undefined);
21
21
  static {
22
22
  g(this.prototype, "isTouched", [tracked], function () {
23
23
  return false;
24
24
  });
25
25
  }
26
- #isTouched = (i(this, "isTouched"), void 0);
26
+ #isTouched = (i(this, "isTouched"), undefined);
27
27
  get validations() {
28
28
  return this.args.validations || {};
29
29
  }
@@ -42,8 +42,8 @@ class ValidatedFormFieldBase extends Component {
42
42
  get formHasBeenValidated() {
43
43
  return this.isTouched;
44
44
  }
45
- set formHasBeenValidated(value1) {
46
- this.isTouched = value1;
45
+ set formHasBeenValidated(value) {
46
+ this.isTouched = value;
47
47
  }
48
48
  get customValidations() {
49
49
  return this.args.customValidations || [];
@@ -64,20 +64,20 @@ class ValidatedFormFieldBase extends Component {
64
64
  return this.args.options || [];
65
65
  }
66
66
  get validationErrorMessages() {
67
- let error1 = [];
67
+ let error = [];
68
68
  if (this.error.length > 0) {
69
- error1.push(...this.error);
69
+ error.push(...this.error);
70
70
  }
71
71
  if (this._validationErrorMessages && this._validationErrorMessages.length > 0) {
72
- error1.push(...this._validationErrorMessages);
72
+ error.push(...this._validationErrorMessages);
73
73
  }
74
- if (error1.length === 0) {
74
+ if (error.length === 0) {
75
75
  return null;
76
76
  }
77
- return error1;
77
+ return error;
78
78
  }
79
- constructor(owner1, args1) {
80
- super(owner1, args1);
79
+ constructor(owner, args) {
80
+ super(owner, args);
81
81
  this.args.register?.(this);
82
82
  }
83
83
  //Should be executed by the child on start
@@ -105,8 +105,8 @@ class ValidatedFormFieldBase extends Component {
105
105
  static {
106
106
  n(this.prototype, "notifyValidityChange", [action]);
107
107
  }
108
- setIsTouched(val1) {
109
- this.isTouched = val1;
108
+ setIsTouched(val) {
109
+ this.isTouched = val;
110
110
  this.notifyValidityChange();
111
111
  }
112
112
  /**
@@ -120,9 +120,9 @@ class ValidatedFormFieldBase extends Component {
120
120
  static {
121
121
  n(this.prototype, "setIsTouched", [action]);
122
122
  }
123
- handleChange(e1) {
124
- const value1 = e1.target.value;
125
- this.args.onChange(value1);
123
+ handleChange(e) {
124
+ const value = e.target.value;
125
+ this.args.onChange(value);
126
126
  this.notifyValidityChange();
127
127
  }
128
128
  static {
@@ -1 +1 @@
1
- {"version":3,"file":"field-base.js","sources":["../../../src/components/validated-form/field-base.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport { buildValidationMessages, notifyValidityChange } from '../../utils/build-validation-messages.js';\nimport type { ComponentLike } from '@glint/template';\nexport interface FieldBaseSignature<T = ComponentLike> {\n Args: {\n id?: string;\n value: any;\n label?: string;\n error?: string[];\n options?: any[];\n validations?: any;\n customValidations?: {\n validation(value: any, options?: Record<string, unknown>): boolean;\n }[];\n rowClasses?: string;\n rowExtra?: Record<string, unknown>;\n onChange: (value: any) => void;\n onValidityChange: (isValid: boolean) => void;\n register: (field: T) => void;\n unregister: (field: T) => void;\n };\n}\nexport default class ValidatedFormFieldBase<T extends FieldBaseSignature = FieldBaseSignature> extends Component<T> {\n validationProperty = 'args.value';\n //cache for comparing\n lastIsValid?: boolean;\n lastIsTouched?: boolean;\n @tracked\n _validationErrorMessages: null | string[] = null;\n @tracked\n isTouched = false;\n get validations() {\n return this.args.validations || {};\n }\n get hasErrorMessages() {\n return this._validationErrorMessages?.length || this.error?.length > 0;\n }\n get isValid() {\n return !this.isInvalid;\n }\n get isInvalid() {\n return this.hasErrorMessages;\n }\n get isInvalidAndTouched() {\n return !!(this.isInvalid && this.isTouched);\n }\n get formHasBeenValidated() {\n return this.isTouched;\n }\n set formHasBeenValidated(value1) {\n this.isTouched = value1;\n }\n get customValidations() {\n return this.args.customValidations || [];\n }\n get rowClasses() {\n return this.args.rowClasses || '';\n }\n get rowExtra() {\n return this.args.rowExtra || {};\n }\n get label() {\n return this.args.label || '';\n }\n get error() {\n return this.args.error || [];\n }\n get options() {\n return this.args.options || [];\n }\n get validationErrorMessages() {\n let error1 = [];\n if (this.error.length > 0) {\n error1.push(...this.error);\n }\n if (this._validationErrorMessages && this._validationErrorMessages.length > 0) {\n error1.push(...this._validationErrorMessages);\n }\n if (error1.length === 0) {\n return null;\n }\n return error1;\n }\n constructor(owner1: unknown, args1: T['Args']){\n super(owner1, args1);\n this.args.register?.(this as unknown as ComponentLike);\n }\n //Should be executed by the child on start\n @action\n setValidationMessages() {\n this._validationErrorMessages = buildValidationMessages.call(this, this.validationProperty);\n }\n //Should be executed by the child on value update\n @action\n didUpdateValue() {\n later(()=>{\n if (!this.isDestroyed && !this.isDestroying) {\n this.setValidationMessages();\n this.notifyValidityChange();\n }\n }, 1);\n }\n @action\n notifyValidityChange() {\n notifyValidityChange(this, this.args.onValidityChange);\n }\n @action\n setIsTouched(val1: boolean) {\n this.isTouched = val1;\n this.notifyValidityChange();\n }\n /**\n * This is just a default handleChange, you should override this method\n * if you need to or use whatever mechanism to bubble the changed\n * value outside and then notifyValidityChanges\n *\n * @override\n * @param {*} e\n */ @action\n handleChange(e1: Event) {\n const value1 = (e1.target as HTMLInputElement).value;\n this.args.onChange(value1);\n this.notifyValidityChange();\n }\n willDestroy() {\n super.willDestroy();\n this.args.unregister?.(this as unknown as ComponentLike);\n }\n static{\n template(`\n {{!@glint-expect-error}}\n {{yield this}}\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9iZXRvY2FudHU5My9wcnlzbWV4L2VtYmVyLWV1aS9wYWNrYWdlcy92YWxpZGF0ZWQtZm9ybS9zcmMvY29tcG9uZW50cy92YWxpZGF0ZWQtZm9ybS9maWVsZC1iYXNlLmd0cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgQ29tcG9uZW50IGZyb20gJ0BnbGltbWVyL2NvbXBvbmVudCc7XG5pbXBvcnQgeyB0cmFja2VkIH0gZnJvbSAnQGdsaW1tZXIvdHJhY2tpbmcnO1xuaW1wb3J0IHsgYWN0aW9uIH0gZnJvbSAnQGVtYmVyL29iamVjdCc7XG5pbXBvcnQgeyBsYXRlciB9IGZyb20gJ0BlbWJlci9ydW5sb29wJztcblxuaW1wb3J0IHtcbiAgYnVpbGRWYWxpZGF0aW9uTWVzc2FnZXMsXG4gIG5vdGlmeVZhbG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UVBLGNBQWM7UUFDWixLQUFLLENBQUM7UUFDTixJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLElBQUksT0FBTyxJQUFJO0lBQzVDO0lBRUEsTUFBQTtRQUFBLFNBQVUsQ0FBQTs7O0VBR1YsQ0FBQSxFQUFBO1lBQUEsV0FBQSxJQUFXO1lBQVg7Z0JBQUEsT0FBQSxLQUFBLFNBQUEsQ0FBQSxFQUFXO1lBQUQ7UUFBQTtJQUFBLENBSEE7QUFJWiJ9"],"names":["ValidatedFormFieldBase","Component","validationProperty","lastIsValid","lastIsTouched","g","this","prototype","tracked","i","void 0","validations","args","hasErrorMessages","_validationErrorMessages","length","error","isValid","isInvalid","isInvalidAndTouched","isTouched","formHasBeenValidated","value1","customValidations","rowClasses","rowExtra","label","options","validationErrorMessages","error1","push","constructor","owner1","args1","register","setValidationMessages","buildValidationMessages","call","n","action","didUpdateValue","later","isDestroyed","isDestroying","notifyValidityChange","onValidityChange","setIsTouched","val1","handleChange","e1","target","value","onChange","willDestroy","unregister","setComponentTemplate","precompileTemplate","strictMode"],"mappings":";;;;;;;;;AAgCe,MAAMA,sBAAA,SAEXC,SAAA,CAAU;AAClBC,EAAAA,kBAAA,GAAqB,YAAA,CAAA;AAErB;EACAC,WAAA,CAAA;EACAC,aAAA,CAAA;AAAwB,EAAA;AAAAC,IAAAA,CAAA,CAAAC,IAAA,CAAAC,SAAA,+BAEvBC,OAAA,CAAA,EAAA,YAAA;MAAA,OAAoD,IAAA,CAAA;AAAA,KAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,yBAAA,IAAAC,CAAA,CAAAH,IAAA,+BAAAI,KAAA,CAAA,EAAA;AAAA,EAAA;AAAAL,IAAAA,CAAA,CAAAC,IAAA,CAAAC,SAAA,gBAEpDC,OAAA,CAAA,EAAA,YAAA;MAAA,OAAoB,KAAA,CAAA;AAAA,KAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,UAAA,IAAAC,CA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,UAAU,GAAG,IAAmB,CAAA,CAAA;AAC5C,GAAA;AAEA,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAGA,4DAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAU,KAAA,CAAA,EAAV,IAAW,CAAA,CAAA;AAAD,GAAA;AACZ;;;;"}
1
+ {"version":3,"file":"field-base.js","sources":["../../../src/components/validated-form/field-base.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport type Owner from '@ember/owner';\n\nimport {\n buildValidationMessages,\n notifyValidityChange\n} from '../../utils/build-validation-messages.js';\n\nimport type { ComponentLike } from '@glint/template';\n\nexport interface FieldBaseSignature<T = ComponentLike> {\n Args: {\n id?: string;\n value: any;\n label?: string;\n error?: string[];\n options?: any[];\n validations?: any;\n customValidations?: {\n validation(value: any, options?: Record<string, unknown>): boolean;\n }[];\n rowClasses?: string;\n rowExtra?: Record<string, unknown>;\n onChange: (value: any) => void;\n onValidityChange: (isValid: boolean) => void;\n register: (field: T) => void;\n unregister: (field: T) => void;\n };\n}\n\nexport default class ValidatedFormFieldBase<\n T extends FieldBaseSignature = FieldBaseSignature\n> extends Component<T> {\n validationProperty = 'args.value';\n\n //cache for comparing\n lastIsValid?: boolean;\n lastIsTouched?: boolean;\n\n @tracked _validationErrorMessages: null | string[] = null;\n\n @tracked isTouched = false;\n\n get validations() {\n return this.args.validations || {};\n }\n\n get hasErrorMessages() {\n return this._validationErrorMessages?.length || this.error?.length > 0;\n }\n\n get isValid() {\n return !this.isInvalid;\n }\n\n get isInvalid() {\n return this.hasErrorMessages;\n }\n\n get isInvalidAndTouched() {\n return !!(this.isInvalid && this.isTouched);\n }\n\n get formHasBeenValidated() {\n return this.isTouched;\n }\n\n set formHasBeenValidated(value) {\n this.isTouched = value;\n }\n\n get customValidations(): {\n validation(value: any, options?: Record<string, unknown>): boolean;\n }[] {\n return this.args.customValidations || [];\n }\n\n get rowClasses(): string {\n return this.args.rowClasses || '';\n }\n\n get rowExtra() {\n return this.args.rowExtra || {};\n }\n\n get label(): string {\n return this.args.label || '';\n }\n\n get error(): string[] {\n return this.args.error || [];\n }\n\n get options(): any[] {\n return this.args.options || [];\n }\n\n get validationErrorMessages() {\n let error = [];\n\n if (this.error.length > 0) {\n error.push(...this.error);\n }\n\n if (\n this._validationErrorMessages &&\n this._validationErrorMessages.length > 0\n ) {\n error.push(...this._validationErrorMessages);\n }\n\n if (error.length === 0) {\n return null;\n }\n\n return error;\n }\n\n constructor(owner: Owner, args: T['Args']) {\n super(owner, args);\n this.args.register?.(this as unknown as ComponentLike);\n }\n\n //Should be executed by the child on start\n @action\n setValidationMessages() {\n this._validationErrorMessages = buildValidationMessages.call(\n this,\n this.validationProperty\n );\n }\n\n //Should be executed by the child on value update\n @action\n didUpdateValue() {\n later(() => {\n if (!this.isDestroyed && !this.isDestroying) {\n this.setValidationMessages();\n this.notifyValidityChange();\n }\n }, 1);\n }\n\n @action\n notifyValidityChange() {\n notifyValidityChange(this, this.args.onValidityChange);\n }\n\n @action\n setIsTouched(val: boolean) {\n this.isTouched = val;\n this.notifyValidityChange();\n }\n\n /**\n * This is just a default handleChange, you should override this method\n * if you need to or use whatever mechanism to bubble the changed\n * value outside and then notifyValidityChanges\n *\n * @override\n * @param {*} e\n */\n @action\n handleChange(e: Event) {\n const value = (e.target as HTMLInputElement).value;\n\n this.args.onChange(value);\n this.notifyValidityChange();\n }\n\n willDestroy() {\n super.willDestroy();\n this.args.unregister?.(this as unknown as ComponentLike);\n }\n\n <template>\n {{!@glint-expect-error}}\n {{yield this}}\n </template>\n}\n"],"names":["ValidatedFormFieldBase","Component","validationProperty","lastIsValid","lastIsTouched","g","prototype","tracked","i","void 0","validations","args","hasErrorMessages","_validationErrorMessages","length","error","isValid","isInvalid","isInvalidAndTouched","isTouched","formHasBeenValidated","value","customValidations","rowClasses","rowExtra","label","options","validationErrorMessages","push","constructor","owner","register","setValidationMessages","buildValidationMessages","call","n","action","didUpdateValue","later","isDestroyed","isDestroying","notifyValidityChange","onValidityChange","setIsTouched","val","handleChange","e","target","onChange","willDestroy","unregister","setComponentTemplate","precompileTemplate","strictMode"],"mappings":";;;;;;;;;AAiCe,MAAMA,sBAAA,SAEXC,SAAU,CAAA;AAClBC,EAAAA,kBAAA,GAAqB,YAAa;AAElC;EACAC,WAAA;EACAC,aAAA;AAAwB,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,0BAAA,EAAA,CAEvBC,OAAA,CAAA,EAAA,YAAA;AAAA,MAAA,OAAoD,IAAK;AAAA,KAAA,CAAA;AAAA;AAAA,EAAA,yBAAA,IAAAC,CAAA,CAAA,IAAA,EAAA,0BAAA,CAAA,EAAAC,SAAA;AAAA,EAAA;IAAAJ,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CAEzDC,OAAA,CAAA,EAAA,YAAA;AAAA,MAAA,OAAoB,KAAM;AAAA,KAAA,CAAA;AAAA;AAAA,EAAA,UAAA,IAAAC,CAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAAC,SAAA;EAE3B,IAAIC,WAAcA,GAAA;AAChB,IAAA,OAAO,IAAI,CAACC,IAAI,CAACD,WAAW,IAAI,EAAC;AACnC;EAEA,IAAIE,gBAAmBA,GAAA;AACrB,IAAA,OAAO,IAAI,CAACC,wBAAwB,EAAEC,UAAU,IAAI,CAACC,KAAK,EAAED,MAAS,GAAA,CAAA;AACvE;EAEA,IAAIE,OAAUA,GAAA;IACZ,OAAO,CAAC,IAAI,CAACC,SAAS;AACxB;EAEA,IAAIA,SAAYA,GAAA;IACd,OAAO,IAAI,CAACL,gBAAgB;AAC9B;EAEA,IAAIM,mBAAsBA,GAAA;IACxB,OAAO,CAAC,EAAE,IAAI,CAACD,SAAS,IAAI,IAAI,CAACE,SAAS,CAAA;AAC5C;EAEA,IAAIC,oBAAuBA,GAAA;IACzB,OAAO,IAAI,CAACD,S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B1B,KAAK;AAElD,IAAA,IAAI,CAACV,IAAI,CAACqC,QAAQ,CAAC3B,KAAA,CAAA;IACnB,IAAI,CAACoB,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAN,CAAA,CAAA,IAAA,CAAA7B,SAAA,EAAA,cAAA,EAAA,CANC8B,MAAA,CAAA,CAAA;AAAA;AAQDa,EAAAA,WAAcA,GAAA;IACZ,KAAK,CAACA,WAAA,EAAA;AACN,IAAA,IAAI,CAACtC,IAAI,CAACuC,UAAU,GAAG,IAAmB,CAAA;AAC5C;AAEA,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAGA,4DAAA,EAAA;MAAAC,UAAA,EAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -14,31 +14,31 @@ import { n } from 'decorator-transforms/runtime';
14
14
 
15
15
  class ValidatedFormFieldCheckboxGroup extends ValidatedFormFieldBase {
16
16
  get value() {
17
- let value1 = maybeUnwrapProxy(this.args.value);
18
- return value1?.toArray?.() || value1;
17
+ let value = maybeUnwrapProxy(this.args.value);
18
+ return value?.toArray?.() || value;
19
19
  }
20
20
  get arrayToMap() {
21
- const currArr1 = this.value || [];
22
- return this.transformToMap(currArr1);
21
+ const currArr = this.value || [];
22
+ return this.transformToMap(currArr);
23
23
  }
24
- transformToMap(value1 = []) {
25
- let valuesMap1 = value1.reduce((acc1, val1) => {
26
- acc1[val1] = true;
27
- return acc1;
24
+ transformToMap(value = []) {
25
+ let valuesMap = value.reduce((acc, val) => {
26
+ acc[val] = true;
27
+ return acc;
28
28
  }, {});
29
- return valuesMap1;
29
+ return valuesMap;
30
30
  }
31
31
  //@ts-expect-error
32
- handleChange(optionId1) {
33
- const value1 = this.value || [];
34
- const found1 = value1.find(v1 => v1 === optionId1);
35
- let newArr1 = [];
36
- if (found1) {
37
- newArr1 = value1.filter(v1 => v1 !== optionId1);
32
+ handleChange(optionId) {
33
+ const value = this.value || [];
34
+ const found = value.find(v => v === optionId);
35
+ let newArr = [];
36
+ if (found) {
37
+ newArr = value.filter(v => v !== optionId);
38
38
  } else {
39
- newArr1 = [...value1, optionId1];
39
+ newArr = [...value, optionId];
40
40
  }
41
- this.args.onChange?.(newArr1);
41
+ this.args.onChange?.(newArr);
42
42
  this.notifyValidityChange();
43
43
  this.isTouched = true;
44
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"field-checkbox-group.js","sources":["../../../src/components/validated-form/field-checkbox-group.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiCheckboxGroup from '@ember-eui/core/components/eui-checkbox-group';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport { maybeUnwrapProxy } from '@ember-eui/core/utils/maybe-unwrap-proxy';\nimport { not } from 'ember-truth-helpers';\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiCheckboxGroupSignature } from '@ember-eui/core/components/eui-checkbox-group';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nexport interface FieldCheckboxGroupSignature {\n Element: EuiCheckboxGroupSignature['Element'];\n Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiCheckboxGroupSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n };\n}\nexport default class ValidatedFormFieldCheckboxGroup extends ValidatedFormFieldBase<FieldCheckboxGroupSignature> {\n get value(): string[] {\n let value1 = maybeUnwrapProxy(this.args.value);\n return value1?.toArray?.() || value1;\n }\n get arrayToMap() {\n const currArr1 = this.value || [];\n return this.transformToMap(currArr1);\n }\n transformToMap(value1: string[] = []) {\n let valuesMap1 = value1.reduce((acc1, val1)=>{\n acc1[val1] = true;\n return acc1;\n }, {} as {\n [key: string]: boolean;\n });\n return valuesMap1;\n }\n @action\n //@ts-expect-error\n handleChange(optionId1: string) {\n const value1 = this.value || [];\n const found1 = value1.find((v1)=>v1 === optionId1);\n let newArr1 = [];\n if (found1) {\n newArr1 = value1.filter((v1)=>v1 !== optionId1);\n } else {\n newArr1 = [\n ...value1,\n optionId1\n ];\n }\n this.args.onChange?.(newArr1);\n this.notifyValidityChange();\n this.isTouched = true;\n }\n static{\n template(`\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiCheckboxGroup\n class={{@fieldClasses}}\n @formId={{@formId}}\n @valueKey={{@valueKey}}\n @labelKey={{@labelKey}}\n aria-label={{@ariaLabel}}\n @disabled={{@disabled}}\n @compressed={{@compressed}}\n @isInvalid={{this.isInvalidAndTouched}}\n @options={{this.options}}\n @idToSelectedMap={{this.arrayToMap}}\n @legend={{@legend}}\n @onChange={{this.handleChange}}\n autofocus={{@autofocus}}\n ...attributes\n />\n </:field>\n </EuiFormRow>\n {{/let}}\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n//# sourceMappingURL=data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E7QUE4Q1oifQ"],"names":["ValidatedFormFieldCheckboxGroup","ValidatedFormFieldBase","value","value1","maybeUnwrapProxy","args","toArray","arrayToMap","currArr1","transformToMap","valuesMap1","reduce","acc1","val1","handleChange","optionId1","found1","find","v1","newArr1","filter","onChange","notifyValidityChange","isTouched","n","this","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiCheckboxGroup"],"mappings":";;;;;;;;;;;;;;AAmCe,MAAMA,+BAAA,SAAwCC,sBAAA,CAAuB;AAClF,EAAA,IAAIC,QAAkB;IACpB,IAAIC,MAAA,GAAQC,gBAAA,CAAiB,IAAI,CAACC,IAAI,CAACH,KAAK,CAAA,CAAA;AAE5C,IAAA,OAAOC,MAAA,EAAOG,OAAA,IAAA,IAAeH,MAAA,CAAA;AAC/B,GAAA;AAEA,EAAA,IAAII,aAAa;AACf,IAAA,MAAMC,QAAA,GAAU,IAAI,CAACN,KAAK,IAAI,EAAE,CAAA;AAEhC,IAAA,OAAO,IAAI,CAACO,cAAc,CAACD,QAAA,CAAA,CAAA;AAC7B,GAAA;EAEAC,cAAeN,CAAAA,MAAa,GAAK,EAAE,EAAE;IACnC,IAAIO,UAAA,GAAYP,MAAA,CAAMQ,MAAM,CAC1B,CAACC,IAAA,EAAKC,IAAA,KAAA;MACJD,IAAG,CAACC,IAAA,CAAI,GAAG,IAAA,CAAA;AAEX,MAAA,OAAOD,IAAA,CAAA;AACT,KAAA,EACA;AAGF,IAAA,OAAOF,UAAA,CAAA;AACT,GAAA;AAGA;AACAI,EAAAA,YAAAA,CAAaC,SAAgB,EAAE;AAC7B,IAAA,MAAMZ,MAAA,GAAQ,IAAI,CAACD,KAAK,IAAI,EAAE,CAAA;IAE9B,MAAMc,MAAA,GAAQb,MAAA,CAAMc,IAAI,CAAEC,EAAA,IAAMA,EAAA,KAAMH,SAAA,CAAA,CAAA;IACtC,IAAII,OAAA,GAAS,EAAE,CAAA;AAEf,IAAA,IAAIH,MAAA,EAAO;MACTG,OAAA,GAAShB,MAAA,CAAMiB,MAAM,CAAEF,EAAA,IAAMA,EAAA,KAAMH,SAAA,CAAA,CAAA;KAC9B,MAAA;AACLI,MAAAA,OAAA,GAAS,IAAIhB,MAAA,EAAOY,SAAA,CAAS,CAAA;AAC/B,KAAA;AAEA,IAAA,IAAI,CAACV,IAAI,CAACgB,QAAQ,GAAGF,OAAA,CAAA,CAAA;AAErB,IAAA,IAAI,CAACG,oBAAoB,EAAA,CAAA;IACzB,IAAI,CAACC,SAAS,GAAG,IAAA,CAAA;AACnB,GAAA;AAAA,EAAA;AAAAC,IAAAA,CAAA,CAAAC,IAAA,CAAAC,SAAA,mBAlBCC,MAAA,CAAA,CAAA,CAAA;AAAA,GAAA;AAoBD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA6CA,2pCAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;AAAAC,QAAAA,gBAAAA;AAAA,OAAA,CAAA;AAAU,KAAA,CAAA,EAAV,IAAW,CAAA,CAAA;AAAD,GAAA;AACZ;;;;"}
1
+ {"version":3,"file":"field-checkbox-group.js","sources":["../../../src/components/validated-form/field-checkbox-group.gts"],"sourcesContent":["import { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiCheckboxGroup from '@ember-eui/core/components/eui-checkbox-group';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport { maybeUnwrapProxy } from '@ember-eui/core/utils/maybe-unwrap-proxy';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiCheckboxGroupSignature } from '@ember-eui/core/components/eui-checkbox-group';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldCheckboxGroupSignature {\n Element: EuiCheckboxGroupSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiCheckboxGroupSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n };\n}\n\nexport default class ValidatedFormFieldCheckboxGroup extends ValidatedFormFieldBase<FieldCheckboxGroupSignature> {\n get value(): string[] {\n let value = maybeUnwrapProxy(this.args.value);\n\n return value?.toArray?.() || value;\n }\n\n get arrayToMap() {\n const currArr = this.value || [];\n\n return this.transformToMap(currArr);\n }\n\n transformToMap(value: string[] = []) {\n let valuesMap = value.reduce(\n (acc, val) => {\n acc[val] = true;\n\n return acc;\n },\n {} as { [key: string]: boolean }\n );\n\n return valuesMap;\n }\n\n @action\n //@ts-expect-error\n handleChange(optionId: string) {\n const value = this.value || [];\n\n const found = value.find((v) => v === optionId);\n let newArr = [];\n\n if (found) {\n newArr = value.filter((v) => v !== optionId);\n } else {\n newArr = [...value, optionId];\n }\n\n this.args.onChange?.(newArr);\n\n this.notifyValidityChange();\n this.isTouched = true;\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiCheckboxGroup\n class={{@fieldClasses}}\n @formId={{@formId}}\n @valueKey={{@valueKey}}\n @labelKey={{@labelKey}}\n aria-label={{@ariaLabel}}\n @disabled={{@disabled}}\n @compressed={{@compressed}}\n @isInvalid={{this.isInvalidAndTouched}}\n @options={{this.options}}\n @idToSelectedMap={{this.arrayToMap}}\n @legend={{@legend}}\n @onChange={{this.handleChange}}\n autofocus={{@autofocus}}\n ...attributes\n />\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldCheckboxGroup","ValidatedFormFieldBase","value","maybeUnwrapProxy","args","toArray","arrayToMap","currArr","transformToMap","valuesMap","reduce","acc","val","handleChange","optionId","found","find","v","newArr","filter","onChange","notifyValidityChange","isTouched","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiCheckboxGroup"],"mappings":";;;;;;;;;;;;;;AAmCe,MAAMA,wCAAwCC,sBAAuB,CAAA;EAClF,IAAIC,KAAAA,GAAkB;IACpB,IAAIA,QAAQC,gBAAiB,CAAA,IAAI,CAACC,IAAI,CAACF,KAAK,CAAA;AAE5C,IAAA,OAAOA,OAAOG,OAAe,IAAA,IAAAH,KAAA;AAC/B;EAEA,IAAII,UAAaA,GAAA;AACf,IAAA,MAAMC,OAAU,GAAA,IAAI,CAACL,KAAK,IAAI,EAAE;AAEhC,IAAA,OAAO,IAAI,CAACM,cAAc,CAACD,OAAA,CAAA;AAC7B;AAEAC,EAAAA,cAAAA,CAAeN,KAAkB,GAAA,EAAE,EAAE;IACnC,IAAIO,SAAY,GAAAP,KAAA,CAAMQ,MAAM,CAC1B,CAACC,GAAK,EAAAC,GAAA,KAAA;AACJD,MAAAA,GAAG,CAACC,IAAI,GAAG,IAAA;AAEX,MAAA,OAAOD,GAAA;KACT,EACA;AAGF,IAAA,OAAOF,SAAA;AACT;AAGA;EACAI,YAAaA,CAAAC,QAAgB,EAAE;AAC7B,IAAA,MAAMZ,KAAQ,GAAA,IAAI,CAACA,KAAK,IAAI,EAAE;IAE9B,MAAMa,QAAQb,KAAM,CAAAc,IAAI,CAAEC,KAAMA,CAAM,KAAAH,QAAA,CAAA;IACtC,IAAII,SAAS,EAAE;AAEf,IAAA,IAAIH,KAAO,EAAA;MACTG,MAAA,GAAShB,KAAM,CAAAiB,MAAM,CAAEF,KAAMA,CAAM,KAAAH,QAAA,CAAA;AACrC,KAAO,MAAA;AACLI,MAAAA,MAAS,GAAA,CAAI,GAAAhB,KAAA,EAAOY,QAAA,CAAS;AAC/B;AAEA,IAAA,IAAI,CAACV,IAAI,CAACgB,QAAQ,GAAGF,MAAA,CAAA;IAErB,IAAI,CAACG,oBAAoB,EAAA;IACzB,IAAI,CAACC,SAAS,GAAG,IAAA;AACnB;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CAlBCC,MAAA,CAAA,CAAA;AAAA;AAoBD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA6CA,2pCAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -17,8 +17,8 @@ import { n } from 'decorator-transforms/runtime';
17
17
  class ValidatedFormFieldComboBox extends ValidatedFormFieldBase {
18
18
  validationProperty = 'args.selectedOptions';
19
19
  //@ts-expect-error
20
- handleChange(options1) {
21
- this.args.onChange(options1);
20
+ handleChange(options) {
21
+ this.args.onChange(options);
22
22
  this.notifyValidityChange();
23
23
  }
24
24
  static {