@ember-eui/validated-form 9.0.0 → 10.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.
- package/declarations/components/validated-form/field-checkbox-group.d.ts +2 -2
- package/declarations/components/validated-form/field-combo-box.d.ts +2 -2
- package/declarations/components/validated-form/field-dual-range-slider.d.ts +2 -2
- package/declarations/components/validated-form/field-markdown-editor.d.ts +2 -2
- package/declarations/components/validated-form/field-number.d.ts +2 -2
- package/declarations/components/validated-form/field-password.d.ts +2 -2
- package/declarations/components/validated-form/field-radio-group.d.ts +2 -2
- package/declarations/components/validated-form/field-range-slider.d.ts +2 -2
- package/declarations/components/validated-form/field-select.d.ts +2 -2
- package/declarations/components/validated-form/field-switch.d.ts +2 -2
- package/declarations/components/validated-form/field-text-area.d.ts +2 -2
- package/declarations/components/validated-form/field-text.d.ts +2 -2
- package/declarations/components/validated-form.d.ts +2 -2
- package/declarations/core/src/components/eui-accordion.d.ts +1 -1
- package/declarations/core/src/components/eui-accordion.d.ts.map +1 -1
- package/declarations/core/src/components/eui-avatar.d.ts +1 -1
- package/declarations/core/src/components/eui-avatar.d.ts.map +1 -1
- package/declarations/core/src/components/eui-badge-group.d.ts +1 -1
- package/declarations/core/src/components/eui-badge-group.d.ts.map +1 -1
- package/declarations/core/src/components/eui-badge.d.ts +1 -1
- package/declarations/core/src/components/eui-badge.d.ts.map +1 -1
- package/declarations/core/src/components/eui-beta-badge.d.ts +1 -1
- package/declarations/core/src/components/eui-beta-badge.d.ts.map +1 -1
- package/declarations/core/src/components/eui-breadcrumbs.d.ts +1 -1
- package/declarations/core/src/components/eui-breadcrumbs.d.ts.map +1 -1
- package/declarations/core/src/components/eui-button-empty.d.ts +1 -1
- package/declarations/core/src/components/eui-button-empty.d.ts.map +1 -1
- package/declarations/core/src/components/eui-button-icon.d.ts +1 -1
- package/declarations/core/src/components/eui-button-icon.d.ts.map +1 -1
- package/declarations/core/src/components/eui-call-out.d.ts +1 -1
- package/declarations/core/src/components/eui-call-out.d.ts.map +1 -1
- package/declarations/core/src/components/eui-code-block.d.ts +1 -1
- package/declarations/core/src/components/eui-code-block.d.ts.map +1 -1
- package/declarations/core/src/components/eui-code.d.ts +1 -1
- package/declarations/core/src/components/eui-code.d.ts.map +1 -1
- package/declarations/core/src/components/eui-collapsible-nav.d.ts +1 -1
- package/declarations/core/src/components/eui-collapsible-nav.d.ts.map +1 -1
- package/declarations/core/src/components/eui-comment-timeline.d.ts +1 -1
- package/declarations/core/src/components/eui-comment-timeline.d.ts.map +1 -1
- package/declarations/core/src/components/eui-context-menu-item.d.ts +1 -1
- package/declarations/core/src/components/eui-context-menu-item.d.ts.map +1 -1
- package/declarations/core/src/components/eui-description-list.d.ts +1 -1
- package/declarations/core/src/components/eui-description-list.d.ts.map +1 -1
- package/declarations/core/src/components/eui-field-number.d.ts +1 -1
- package/declarations/core/src/components/eui-field-number.d.ts.map +1 -1
- package/declarations/core/src/components/eui-file-picker.d.ts +1 -1
- package/declarations/core/src/components/eui-file-picker.d.ts.map +1 -1
- package/declarations/core/src/components/eui-flex-grid.d.ts +1 -1
- package/declarations/core/src/components/eui-flex-grid.d.ts.map +1 -1
- package/declarations/core/src/components/eui-flex-group.d.ts +1 -1
- package/declarations/core/src/components/eui-flex-group.d.ts.map +1 -1
- package/declarations/core/src/components/eui-flex-item.d.ts +1 -1
- package/declarations/core/src/components/eui-flex-item.d.ts.map +1 -1
- package/declarations/core/src/components/eui-flyout.d.ts +1 -1
- package/declarations/core/src/components/eui-flyout.d.ts.map +1 -1
- package/declarations/core/src/components/eui-form-control-layout-clear-button.d.ts +2 -2
- package/declarations/core/src/components/eui-form-control-layout-clear-button.d.ts.map +1 -1
- package/declarations/core/src/components/eui-form-control-layout-custom-icon.d.ts +2 -2
- package/declarations/core/src/components/eui-form-control-layout-custom-icon.d.ts.map +1 -1
- package/declarations/core/src/components/eui-form-row.d.ts +1 -1
- package/declarations/core/src/components/eui-form-row.d.ts.map +1 -1
- package/declarations/core/src/components/eui-header-links.d.ts +2 -2
- package/declarations/core/src/components/eui-header-links.d.ts.map +1 -1
- package/declarations/core/src/components/eui-header-section-item-button.d.ts +1 -1
- package/declarations/core/src/components/eui-header-section-item-button.d.ts.map +1 -1
- package/declarations/core/src/components/eui-header-section-item.d.ts +1 -1
- package/declarations/core/src/components/eui-header-section-item.d.ts.map +1 -1
- package/declarations/core/src/components/eui-header-section.d.ts +1 -1
- package/declarations/core/src/components/eui-header-section.d.ts.map +1 -1
- package/declarations/core/src/components/eui-health.d.ts +1 -1
- package/declarations/core/src/components/eui-health.d.ts.map +1 -1
- package/declarations/core/src/components/eui-hide-for.d.ts +1 -1
- package/declarations/core/src/components/eui-hide-for.d.ts.map +1 -1
- package/declarations/core/src/components/eui-horizontal-rule.d.ts +1 -1
- package/declarations/core/src/components/eui-horizontal-rule.d.ts.map +1 -1
- package/declarations/core/src/components/eui-i18n.d.ts +1 -1
- package/declarations/core/src/components/eui-icon.d.ts +3 -3
- package/declarations/core/src/components/eui-icon.d.ts.map +1 -1
- package/declarations/core/src/components/eui-image.d.ts +1 -1
- package/declarations/core/src/components/eui-image.d.ts.map +1 -1
- package/declarations/core/src/components/eui-list-group-item.d.ts +1 -1
- package/declarations/core/src/components/eui-list-group-item.d.ts.map +1 -1
- package/declarations/core/src/components/eui-loading-spinner.d.ts +1 -1
- package/declarations/core/src/components/eui-loading-spinner.d.ts.map +1 -1
- package/declarations/core/src/components/eui-markdown-editor-toolbar.d.ts +7 -2
- package/declarations/core/src/components/eui-markdown-editor-toolbar.d.ts.map +1 -1
- package/declarations/core/src/components/eui-markdown-editor.d.ts +2 -2
- package/declarations/core/src/components/eui-markdown-editor.d.ts.map +1 -1
- package/declarations/core/src/components/eui-markdown-format.d.ts +3 -3
- package/declarations/core/src/components/eui-markdown-format.d.ts.map +1 -1
- package/declarations/core/src/components/eui-notification-badge.d.ts +1 -1
- package/declarations/core/src/components/eui-notification-badge.d.ts.map +1 -1
- package/declarations/core/src/components/eui-page-content-body.d.ts +1 -1
- package/declarations/core/src/components/eui-page-content-body.d.ts.map +1 -1
- package/declarations/core/src/components/eui-page-header-content.d.ts +2 -2
- package/declarations/core/src/components/eui-page-header-content.d.ts.map +1 -1
- package/declarations/core/src/components/eui-page-header.d.ts +1 -1
- package/declarations/core/src/components/eui-page-header.d.ts.map +1 -1
- package/declarations/core/src/components/eui-page-side-bar.d.ts +1 -1
- package/declarations/core/src/components/eui-page-side-bar.d.ts.map +1 -1
- package/declarations/core/src/components/eui-pagination-button.d.ts +1 -1
- package/declarations/core/src/components/eui-pagination-button.d.ts.map +1 -1
- package/declarations/core/src/components/eui-panel.d.ts +1 -1
- package/declarations/core/src/components/eui-panel.d.ts.map +1 -1
- package/declarations/core/src/components/eui-popover-footer.d.ts +1 -1
- package/declarations/core/src/components/eui-popover-footer.d.ts.map +1 -1
- package/declarations/core/src/components/eui-popover-title.d.ts +1 -1
- package/declarations/core/src/components/eui-popover-title.d.ts.map +1 -1
- package/declarations/core/src/components/eui-popover.d.ts +2 -2
- package/declarations/core/src/components/eui-popover.d.ts.map +1 -1
- package/declarations/core/src/components/eui-progress.d.ts +1 -1
- package/declarations/core/src/components/eui-progress.d.ts.map +1 -1
- package/declarations/core/src/components/eui-range-slider.d.ts +1 -1
- package/declarations/core/src/components/eui-range-slider.d.ts.map +1 -1
- package/declarations/core/src/components/eui-range-track.d.ts +1 -1
- package/declarations/core/src/components/eui-show-for.d.ts +1 -1
- package/declarations/core/src/components/eui-show-for.d.ts.map +1 -1
- package/declarations/core/src/components/eui-side-nav.d.ts +1 -1
- package/declarations/core/src/components/eui-side-nav.d.ts.map +1 -1
- package/declarations/core/src/components/eui-spacer.d.ts +1 -1
- package/declarations/core/src/components/eui-spacer.d.ts.map +1 -1
- package/declarations/core/src/components/eui-stat.d.ts +2 -2
- package/declarations/core/src/components/eui-stat.d.ts.map +1 -1
- package/declarations/core/src/components/eui-step-number.d.ts +1 -1
- package/declarations/core/src/components/eui-step-number.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/relative-tab.d.ts +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/relative-tab.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts +1 -1
- package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker.d.ts +1 -1
- package/declarations/core/src/components/eui-super-date-picker.d.ts.map +1 -1
- package/declarations/core/src/components/eui-tabbed-content.d.ts +1 -1
- package/declarations/core/src/components/eui-tabbed-content.d.ts.map +1 -1
- package/declarations/core/src/components/eui-tabs.d.ts +1 -1
- package/declarations/core/src/components/eui-tabs.d.ts.map +1 -1
- package/declarations/core/src/components/eui-text-area.d.ts +1 -1
- package/declarations/core/src/components/eui-text-area.d.ts.map +1 -1
- package/declarations/core/src/components/eui-text.d.ts +3 -3
- package/declarations/core/src/components/eui-text.d.ts.map +1 -1
- package/declarations/core/src/components/eui-title.d.ts +1 -1
- package/declarations/core/src/components/eui-title.d.ts.map +1 -1
- package/declarations/core/src/components/eui-tool-tip-popover.d.ts +1 -1
- package/declarations/core/src/components/eui-tool-tip-popover.d.ts.map +1 -1
- package/declarations/core/src/components.d.ts +148 -148
- package/declarations/core/src/components.d.ts.map +1 -1
- package/declarations/core/src/helpers/class-names.d.ts +1 -1
- package/declarations/core/src/helpers/class-names.d.ts.map +1 -1
- package/declarations/core/src/helpers/get-range-tick.d.ts +1 -1
- package/declarations/core/src/helpers/get-range-tick.d.ts.map +1 -1
- package/declarations/core/src/helpers.d.ts +7 -7
- package/declarations/core/src/helpers.d.ts.map +1 -1
- package/declarations/core/src/i18n/util.d.ts.map +1 -1
- package/declarations/core/src/modifiers/use-is-within-breakpoints.d.ts +1 -1
- package/declarations/core/src/modifiers/use-is-within-breakpoints.d.ts.map +1 -1
- package/declarations/core/src/utils/accesibility/index.d.ts +3 -3
- package/declarations/core/src/utils/accesibility/index.d.ts.map +1 -1
- package/declarations/core/src/utils/browser/index.d.ts +1 -1
- package/declarations/core/src/utils/browser/index.d.ts.map +1 -1
- package/declarations/core/src/utils/code/utils.d.ts +1 -1
- package/declarations/core/src/utils/code/utils.d.ts.map +1 -1
- package/declarations/core/src/utils/color/index.d.ts +5 -5
- package/declarations/core/src/utils/color/index.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/markdown-actions.d.ts +3 -3
- package/declarations/core/src/utils/markdown/markdown-actions.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-add-components/index.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-add-components/index.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-add-components/processor.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-add-components/processor.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-checkbox/index.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-checkbox/index.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/index.d.ts +4 -4
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/index.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts +3 -3
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/index.d.ts +2 -2
- package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/index.d.ts.map +1 -1
- package/declarations/core/src/utils/number/index.d.ts +1 -1
- package/declarations/core/src/utils/number/index.d.ts.map +1 -1
- package/declarations/core/src/utils/predicate/index.d.ts +2 -2
- package/declarations/core/src/utils/predicate/index.d.ts.map +1 -1
- package/declarations/validated-form/src/-private/random-id.d.ts.map +1 -1
- package/declarations/validated-form/src/components/validated-form/field-checkbox-group.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-combo-box.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-dual-range-slider.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-markdown-editor.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-number.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-password.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-radio-group.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-range-slider.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-select.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-switch.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-text-area.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form/field-text.d.ts +2 -2
- package/declarations/validated-form/src/components/validated-form.d.ts +2 -2
- package/dist/-private/random-id.js +3 -4
- package/dist/-private/random-id.js.map +1 -1
- package/dist/components/validated-form/field-base.js.map +1 -1
- package/dist/components/validated-form/field-checkbox-group.js +6 -6
- package/dist/components/validated-form/field-checkbox-group.js.map +1 -1
- package/dist/components/validated-form/field-combo-box.js +8 -8
- package/dist/components/validated-form/field-combo-box.js.map +1 -1
- package/dist/components/validated-form/field-dual-range-slider.js +8 -8
- package/dist/components/validated-form/field-dual-range-slider.js.map +1 -1
- package/dist/components/validated-form/field-markdown-editor.js +8 -8
- package/dist/components/validated-form/field-markdown-editor.js.map +1 -1
- package/dist/components/validated-form/field-number.js +7 -7
- package/dist/components/validated-form/field-number.js.map +1 -1
- package/dist/components/validated-form/field-password.js +7 -7
- package/dist/components/validated-form/field-password.js.map +1 -1
- package/dist/components/validated-form/field-radio-group.js +6 -6
- package/dist/components/validated-form/field-radio-group.js.map +1 -1
- package/dist/components/validated-form/field-range-slider.js +7 -7
- package/dist/components/validated-form/field-range-slider.js.map +1 -1
- package/dist/components/validated-form/field-select.js +7 -7
- package/dist/components/validated-form/field-select.js.map +1 -1
- package/dist/components/validated-form/field-switch.js +8 -8
- package/dist/components/validated-form/field-switch.js.map +1 -1
- package/dist/components/validated-form/field-text-area.js +7 -7
- package/dist/components/validated-form/field-text-area.js.map +1 -1
- package/dist/components/validated-form/field-text.js +7 -7
- package/dist/components/validated-form/field-text.js.map +1 -1
- package/dist/components/validated-form.js +6 -6
- package/dist/components/validated-form.js.map +1 -1
- package/package.json +9 -8
- package/declarations/components/validated-form/field-base/index.d.ts +0 -37
- package/declarations/components/validated-form/field-base/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-checkbox-group/index.d.ts +0 -8
- package/declarations/components/validated-form/field-checkbox-group/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-combo-box/index.d.ts +0 -5
- package/declarations/components/validated-form/field-combo-box/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-dual-range-slider/index.d.ts +0 -5
- package/declarations/components/validated-form/field-dual-range-slider/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-markdown-editor/index.d.ts +0 -5
- package/declarations/components/validated-form/field-markdown-editor/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-number/index.d.ts +0 -4
- package/declarations/components/validated-form/field-number/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-password/index.d.ts +0 -4
- package/declarations/components/validated-form/field-password/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-radio-group/index.d.ts +0 -8
- package/declarations/components/validated-form/field-radio-group/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-range-slider/index.d.ts +0 -4
- package/declarations/components/validated-form/field-range-slider/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-select/index.d.ts +0 -4
- package/declarations/components/validated-form/field-select/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-switch/index.d.ts +0 -5
- package/declarations/components/validated-form/field-switch/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-text/index.d.ts +0 -4
- package/declarations/components/validated-form/field-text/index.d.ts.map +0 -1
- package/declarations/components/validated-form/field-text-area/index.d.ts +0 -4
- package/declarations/components/validated-form/field-text-area/index.d.ts.map +0 -1
- package/declarations/components/validated-form/index.d.ts +0 -30
- package/declarations/components/validated-form/index.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-names.d.ts","sourceRoot":"","sources":["../../../../../core/src/helpers/class-names.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"class-names.d.ts","sourceRoot":"","sources":["../../../../../core/src/helpers/class-names.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,gCAAgC,CAAC;AAEzD,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,EAAE,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,UAAU,oCAA6B,EACvC,OAAO,EAAE,OAAO,GACf,MAAM,CA2BR;;;;;;;;AAED,wBAA2E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EuiRangeTick } from
|
|
1
|
+
import type { EuiRangeTick } from "../components/eui-range-ticks";
|
|
2
2
|
export declare function calculateOffset(position: number, value: number, bound: number): number;
|
|
3
3
|
export declare function calculateThumbPosition(value: number, min: number, max: number, width: number, thumbSize?: number): number;
|
|
4
4
|
export declare function getRangeTick([ticks, tickValue, min, max, percentageWidth, trackWidth]: [EuiRangeTick[], number, number, number, number, number]): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-range-tick.d.ts","sourceRoot":"","sources":["../../../../../core/src/helpers/get-range-tick.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"get-range-tick.d.ts","sourceRoot":"","sources":["../../../../../core/src/helpers/get-range-tick.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEtE,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,UAgBd;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,MAAuB,GACjC,MAAM,CAaR;AAED,wBAAgB,YAAY,CAAC,CAC3B,KAAK,EACL,SAAS,EACT,GAAG,EACH,GAAG,EACH,eAAe,EACf,UAAc,CACf,EAAE,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;;;;EAsB1D;;;;;;;;;;;;AAED,wBAAoC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import argOrDefault from './helpers/arg-or-default';
|
|
2
|
-
import castTo from './helpers/cast-to';
|
|
3
|
-
import classNames from './helpers/class-names';
|
|
4
|
-
import getEuiConfig from './helpers/get-eui-config';
|
|
5
|
-
import inlineStyles from './helpers/inline-styles';
|
|
6
|
-
import isColorDark from './helpers/is-color-dark';
|
|
7
|
-
import useState from './helpers/use-state';
|
|
1
|
+
import argOrDefault from './helpers/arg-or-default.ts';
|
|
2
|
+
import castTo from './helpers/cast-to.ts';
|
|
3
|
+
import classNames from './helpers/class-names.ts';
|
|
4
|
+
import getEuiConfig from './helpers/get-eui-config.ts';
|
|
5
|
+
import inlineStyles from './helpers/inline-styles.ts';
|
|
6
|
+
import isColorDark from './helpers/is-color-dark.ts';
|
|
7
|
+
import useState from './helpers/use-state.ts';
|
|
8
8
|
export { argOrDefault, castTo, classNames, getEuiConfig, inlineStyles, isColorDark, useState };
|
|
9
9
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../core/src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../core/src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EACL,YAAY,EACZ,MAAM,EACN,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,QAAQ,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../core/src/i18n/util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../core/src/i18n/util.ts"],"names":[],"mappings":"AAoCA;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC9B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAC1C,GAAG,EAAE,GAAG,MAAM,CAqFhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-is-within-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../core/src/modifiers/use-is-within-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-is-within-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../core/src/modifiers/use-is-within-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,2BAA2B,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACvD;;;;;;;;AAED,wBAoBG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { accessibleClickKeys } from './accessible-click-keys';
|
|
2
|
-
export { cascadingMenuKeys } from './cascading-menu-keys';
|
|
3
|
-
export { comboBoxKeys } from './combo-box-keys';
|
|
1
|
+
export { accessibleClickKeys } from './accessible-click-keys.ts';
|
|
2
|
+
export { cascadingMenuKeys } from './cascading-menu-keys.ts';
|
|
3
|
+
export { comboBoxKeys } from './combo-box-keys.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/accesibility/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/accesibility/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Browser } from './browser';
|
|
1
|
+
export { Browser } from './browser.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/browser/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/browser/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/code/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/code/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAEpD;;GAEG;AAEH,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAC5C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAkB,CAAC;AACnD,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAEzD,CAAC;AAiBF,MAAM,WAAW,gBAAgB;CAAG;AAEpC,eAAO,MAAM,cAAc,UAAW,aAAa,EAAE;;;CAqGpD,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,aAAa,wBAEG,CAAC;AAWpD,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,eAAO,MAAM,eAAe,WAAY,MAAM,aAmB7C,CAAC;AAmIF,eAAO,MAAM,eAAe,aAChB,MAAM,YACN,MAAM,QACV,iBAAiB,oBAMxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { hexToRgb } from '../../helpers/hex-to-rgb';
|
|
2
|
-
export { isColorDark } from '../../helpers/is-color-dark';
|
|
3
|
-
export { isValidHex } from '../../helpers/is-valid-hex';
|
|
4
|
-
export { colorPalette } from './color_palette';
|
|
5
|
-
export { euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplimentary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteNegative, euiPalettePositive, euiPaletteWarm } from './eui_palettes';
|
|
1
|
+
export { hexToRgb } from '../../helpers/hex-to-rgb.ts';
|
|
2
|
+
export { isColorDark } from '../../helpers/is-color-dark.ts';
|
|
3
|
+
export { isValidHex } from '../../helpers/is-valid-hex.ts';
|
|
4
|
+
export { colorPalette } from './color_palette.ts';
|
|
5
|
+
export { euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplimentary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteNegative, euiPalettePositive, euiPaletteWarm } from './eui_palettes.ts';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/color/index.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/color/index.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,oBAAoB,EACpB,8BAA8B,EAC9B,uBAAuB,EACvB,cAAc,EACd,2BAA2B,EAC3B,4BAA4B,EAC5B,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACf,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EuiMarkdownEditorUiPlugin, EuiMarkdownFormatting } from './markdown-types';
|
|
1
|
+
import type { EuiMarkdownEditorUiPlugin, EuiMarkdownFormatting } from './markdown-types.ts';
|
|
2
2
|
/**
|
|
3
3
|
* Class for applying styles to a text editor. Accepts the HTML ID for the textarea
|
|
4
4
|
* desired, and exposes the `.do(ACTION)` method for manipulating the text.
|
|
@@ -21,10 +21,10 @@ declare class MarkdownActions {
|
|
|
21
21
|
name: string;
|
|
22
22
|
button: {
|
|
23
23
|
label: string;
|
|
24
|
-
iconType: import("../../components/eui-icon").IconType;
|
|
24
|
+
iconType: import("../../components/eui-icon.ts").IconType;
|
|
25
25
|
};
|
|
26
26
|
helpText?: import("@glimmer/component").default<unknown> | undefined;
|
|
27
|
-
} & import("./markdown-types").PluginWithDelayedFormatting<any>) | undefined;
|
|
27
|
+
} & import("./markdown-types.ts").PluginWithDelayedFormatting<any>) | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Sets the default styling object and then superimposes the changes to make on top of
|
|
30
30
|
* it. Calls the `styleSelectedText` helper function that does the heavy lifting.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-actions.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/markdown/markdown-actions.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,
|
|
1
|
+
{"version":3,"file":"markdown-actions.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/markdown/markdown-actions.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;GAMG;AACH,cAAM,eAAe;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IAClD,QAAQ,EAAE,MAAM,CAAM;gBAEV,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,yBAAyB,EAAE;IA4FpE;;;;;;OAMG;IACH,EAAE,CAAC,UAAU,EAAE,MAAM;;;;;;;;IAYrB;;;;;;;OAOG;IACH,UAAU,CAAC,aAAa,EAAE,qBAAqB;CA4BhD;AAaD,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAqDD,wBAAgB,UAAU,CACxB,QAAQ,EAAE,mBAAmB,EAC7B,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,cAAc,QAmDvD;AA0UD,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-add-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-add-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAC,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAC,KAAK,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RehypeNode } from '../../markdown-types';
|
|
1
|
+
import type { RehypeNode } from '../../markdown-types.ts';
|
|
2
2
|
type Visitor = (node: RehypeNode) => RehypeNode;
|
|
3
3
|
export declare const visit: (node: RehypeNode, visitor: Visitor) => RehypeNode;
|
|
4
4
|
export declare const processor: () => (tree: RehypeNode) => void;
|
package/declarations/core/src/utils/markdown/plugins/markdown-add-components/processor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-add-components/processor.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-add-components/processor.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,KAAK,OAAO,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,UAAU,CAAC;AAEhD,eAAO,MAAM,KAAK,SAAU,UAAU,WAAW,OAAO,eAmBvD,CAAC;AAEF,eAAO,MAAM,SAAS,eACd,UAAU,KACb,IAuDJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CheckboxParser as parser } from './parser';
|
|
1
|
+
export { CheckboxParser as parser } from './parser.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-checkbox/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-checkbox/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './parsing-plugins';
|
|
2
|
-
export * from './plugins';
|
|
3
|
-
export * from './processing-plugins';
|
|
4
|
-
export * from './ui-plugins';
|
|
1
|
+
export * from './parsing-plugins.ts';
|
|
2
|
+
export * from './plugins.ts';
|
|
3
|
+
export * from './processing-plugins.ts';
|
|
4
|
+
export * from './ui-plugins.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/index.ts"],"names":[],"mappings":"AAQA,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DefaultEuiMarkdownParsingPlugins } from './parsing-plugins';
|
|
2
|
-
import type { DefaultEuiMarkdownProcessingPlugins } from './processing-plugins';
|
|
3
|
-
import type { DefaultEuiMarkdownUiPlugins } from './ui-plugins';
|
|
1
|
+
import type { DefaultEuiMarkdownParsingPlugins } from './parsing-plugins.ts';
|
|
2
|
+
import type { DefaultEuiMarkdownProcessingPlugins } from './processing-plugins.ts';
|
|
3
|
+
import type { DefaultEuiMarkdownUiPlugins } from './ui-plugins.ts';
|
|
4
4
|
export declare const getDefaultEuiMarkdownPlugins: (config: undefined | {
|
|
5
5
|
exclude?: 'tooltip'[];
|
|
6
6
|
}) => {
|
package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/plugins.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/plugins.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAEnE,eAAO,MAAM,4BAA4B,WAC/B,SAAS,GAAG;IAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;CAAE,KAC5C;IACD,cAAc,EAAE,gCAAgC,CAAC;IACjD,iBAAiB,EAAE,mCAAmC,CAAC;IACvD,SAAS,EAAE,2BAA2B,CAAC;CAKvC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import remark2Rehype from 'remark-rehype';
|
|
2
|
-
import * as MarkdownAddComponents from '../markdown-add-components';
|
|
2
|
+
import * as MarkdownAddComponents from '../markdown-add-components/index.ts';
|
|
3
3
|
import type { Options as Remark2RehypeOptions } from 'mdast-util-to-hast';
|
|
4
4
|
import type { PluggableList } from 'unified';
|
|
5
5
|
export interface Rehype2ReactOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processing-plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.ts"],"names":[],"mappings":"AAwBA,OAAO,aAAa,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,qBAAqB,MAAM,
|
|
1
|
+
{"version":3,"file":"processing-plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.ts"],"names":[],"mappings":"AAwBA,OAAO,aAAa,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAE7E,OAAO,KAAK,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAO7C,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,mCAAmC,GAAG;IAChD;QAAC,OAAO,aAAa;QAAE,oBAAoB;KAAC;IAC5C;QAAC,OAAO,qBAAqB,CAAC,SAAS;QAAE,mBAAmB;KAAC;IAC7D,GAAG,aAAa;CACjB,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,GAWpD,CAAC;AAEF,eAAO,MAAM,wBAAwB,KACK,CAAC"}
|
package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EuiMarkdownEditorUiPlugin } from '../../markdown-types';
|
|
1
|
+
import type { EuiMarkdownEditorUiPlugin } from '../../markdown-types.ts';
|
|
2
2
|
export type DefaultEuiMarkdownUiPlugins = EuiMarkdownEditorUiPlugin[];
|
|
3
3
|
export declare const getDefaultEuiMarkdownUiPlugins: ({ exclude }?: {
|
|
4
4
|
exclude?: "tooltip"[] | undefined;
|
package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ui-plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,MAAM,MAAM,2BAA2B,GAAG,yBAAyB,EAAE,CAAC;AAEtE,eAAO,MAAM,8BAA8B;;iCAa1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAAmC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TooltipParser as parser } from './parser';
|
|
2
|
-
export { tooltipPlugin as plugin } from './plugin';
|
|
1
|
+
export { TooltipParser as parser } from './parser.ts';
|
|
2
|
+
export { tooltipPlugin as plugin } from './plugin.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './number';
|
|
1
|
+
export * from './number.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/number/index.ts"],"names":[],"mappings":"AAmBA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/number/index.ts"],"names":[],"mappings":"AAmBA,cAAc,aAAa,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './common_predicates';
|
|
2
|
-
export * from './lodash_predicates';
|
|
1
|
+
export * from './common_predicates.ts';
|
|
2
|
+
export * from './lodash_predicates.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/predicate/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/predicate/index.ts"],"names":[],"mappings":"AAQA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random-id.d.ts","sourceRoot":"","sources":["../../../../src/-private/random-id.
|
|
1
|
+
{"version":3,"file":"random-id.d.ts","sourceRoot":"","sources":["../../../../src/-private/random-id.ts"],"names":[],"mappings":";;;;;;;AAWA,wBAAgC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ValidatedFormFieldBase from
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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 {
|
package/declarations/validated-form/src/components/validated-form/field-dual-range-slider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ValidatedFormFieldBase from
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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 {
|
package/declarations/validated-form/src/components/validated-form/field-markdown-editor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ValidatedFormFieldBase from
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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
|
|
2
|
-
import type { FieldBaseSignature } from
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import FieldBase from
|
|
2
|
+
import FieldBase from "./validated-form/field-base";
|
|
3
3
|
import type { EuiFormSignature } from '@ember-eui/core/components/eui-form';
|
|
4
4
|
import type { ComponentLike } from '@glint/template';
|
|
5
5
|
export interface IValidatedFormTheme {
|
|
@@ -69,7 +69,7 @@ export interface ValidatedFormSignature {
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
export default class ValidatedFormComponent extends Component<ValidatedFormSignature> {
|
|
72
|
-
childComponents: import("@ember/array/-private/native-array").default<FieldBase<import("./validated-form/field-base
|
|
72
|
+
childComponents: import("@ember/array/-private/native-array").default<FieldBase<import("./validated-form/field-base").FieldBaseSignature<ComponentLike>>>;
|
|
73
73
|
lastIsValid?: boolean;
|
|
74
74
|
lastIsTouched?: boolean;
|
|
75
75
|
isInvalid: boolean;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { helper } from '@ember/component/helper';
|
|
2
2
|
|
|
3
|
-
var randomId = helper(randomId$1);
|
|
4
|
-
|
|
5
3
|
// Copy-pasted from the ember-source implementation:
|
|
6
4
|
// https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/glimmer/lib/helpers/unique-id.ts
|
|
7
|
-
function randomId
|
|
5
|
+
function randomId() {
|
|
8
6
|
//@ts-expect-error
|
|
9
7
|
return ([3e7] + -1e3 + -4e3 + -2e3 + -1e11).replace(/[0-3]/g, a => (a * 4 ^ Math.random() * 16 >> (a & 2)).toString(16));
|
|
10
8
|
}
|
|
9
|
+
var randomId$1 = helper(randomId);
|
|
11
10
|
|
|
12
|
-
export { randomId as default };
|
|
11
|
+
export { randomId$1 as default };
|
|
13
12
|
//# sourceMappingURL=random-id.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random-id.js","sources":["../../src/-private/random-id.
|
|
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 +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"],"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":";;;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AAAAN,IAAAA,CAAA,CAAAhC,IAAA,CAAAC,SAAA,mBALCgC,MAAM,CAAA,CAAA,CAAA;AAAA,GAAA;EAaPS,YAAYA,CAACC,EAAS,EAAE;AACpB,IAAA,MAAM3B,MAAM,GAAI2B,EAAE,CAACC,MAAM,CAAsBC,KAAK,CAAA;AACpD,IAAA,IAAI,CAACvC,IAAI,CAACwC,QAAQ,CAAC9B,MAAM,CAAC,CAAA;IAC1B,IAAI,CAACsB,oBAAoB,EAAE,CAAA;AAC/B,GAAA;AAAC,EAAA;AAAAN,IAAAA,CAAA,CAAAhC,IAAA,CAAAC,SAAA,mBALEgC,MAAM,CAAA,CAAA,CAAA;AAAA,GAAA;AAMTc,EAAAA,WAAWA,GAAG;IACV,KAAK,CAACA,WAAW,EAAE,CAAA;AACnB,IAAA,IAAI,CAACzC,IAAI,CAAC0C,UAAU,GAAG,IAAgC,CAAC,CAAA;AAC5D,GAAA;AACA,EAAA;IACIC,oBAAA,CAAAC,kBAAA,CAGH,4DAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;KAKI,CAAC,EAJa,IAAI,CAAA,CAAA;AAKvB,GAAA;AACJ;;;;"}
|
|
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9iZXRvY2FudHU5My9wcnlzbWV4L2VtYmVyLWV1aS9wYWNrYWdlcy92YWxpZGF0ZWQtZm9ybS9zcmMvY29tcG9uZW50cy92YWxpZGF0ZWQtZm9ybS9maWVsZC1iYXNlLmd0cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgQ29tcG9uZW50IGZyb20gJ0BnbGltbWVyL2NvbXBvbmVudCc7XG5pbXBvcnQgeyB0cmFja2VkIH0gZnJvbSAnQGdsaW1tZXIvdHJhY2tpbmcnO1xuaW1wb3J0IHsgYWN0aW9uIH0gZnJvbSAnQGVtYmVyL29iamVjdCc7XG5pbXBvcnQgeyBsYXRlciB9IGZyb20gJ0BlbWJlci9ydW5sb29wJztcblxuaW1wb3J0IHtcbiAgYnVpbGRWYWxpZGF0aW9uTWVzc2FnZXMsXG4gIG5vdGlmeVZhbGlkaXR5Q2hhbmdlXG59IGZyb20gJy4uLy4uL3V0aWxzL2J1aWxkLXZhbGlkYXRpb24tbWVzc2FnZXMuanMnO1xuXG5pbXBvcnQgdHlwZSB7IENvbXBvbmVudExpa2UgfSBmcm9tICdAZ2xpbnQvdGVtcGxhdGUnO1xuXG5leHBvcnQgaW50ZXJmYWNlIEZpZWxkQmFzZVNpZ25hdHVyZTxUID0gQ29tcG9uZW50TGlrZT4ge1xuICBBcmdzOiB7XG4gICAgaWQ_OiBzdHJpbmc7XG4gICAgdmFsdWU6IGFueTtcbiAgICBsYWJlbD86IHN0cmluZztcbiAgICBl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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,CAAA,CAAAH,IAAA,gBAAAI,KAAA,CAAA,EAAA;AAErB,EAAA,IAAIC,cAAc;AAChB,IAAA,OAAO,IAAI,CAACC,IAAI,CAACD,WAAW,IAAI,EAAC,CAAA;AACnC,GAAA;AAEA,EAAA,IAAIE,mBAAmB;IACrB,OAAO,IAAI,CAACC,wBAAwB,EAAEC,MAAA,IAAU,IAAI,CAACC,KAAK,EAAED,MAAA,GAAS,CAAA,CAAA;AACvE,GAAA;AAEA,EAAA,IAAIE,UAAU;IACZ,OAAO,CAAC,IAAI,CAACC,SAAS,CAAA;AACxB,GAAA;AAEA,EAAA,IAAIA,Y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AA;AACvD,GAAA;AAAA,EAAA;AAAAP,IAAAA,CAAA,CAAAhC,IAAA,CAAAC,SAAA,2BAHCgC,MAAA,CAAA,CAAA,CAAA;AAAA,GAAA;AAMDO,EAAAA,YAAAA,CAAaC,IAAY,EAAE;IACzB,IAAI,CAAC3B,SAAS,GAAG2B,IAAA,CAAA;AACjB,IAAA,IAAI,CAACH,oBAAoB,EAAA,CAAA;AAC3B,GAAA;AAEA;;;;;;;;AAAA,EAAA;AAAAN,IAAAA,CAAA,CAAAhC,IAAA,CAAAC,SAAA,mBANCgC,MAAA,CAAA,CAAA,CAAA;AAAA,GAAA;AAeDS,EAAAA,YAAAA,CAAaC,EAAQ,EAAE;AACrB,IAAA,MAAM3B,MAAA,GAAS2B,EAAA,CAAEC,MAAM,CAAsBC,KAAK,CAAA;AAElD,IAAA,IAAI,CAACvC,IAAI,CAACwC,QAAQ,CAAC9B,MAAA,CAAA,CAAA;AACnB,IAAA,IAAI,CAACsB,oBAAoB,EAAA,CAAA;AAC3B,GAAA;AAAA,EAAA;AAAAN,IAAAA,CAAA,CAAAhC,IAAA,CAAAC,SAAA,mBANCgC,MAAA,CAAA,CAAA,CAAA;AAAA,GAAA;AAQDc,EAAAA,WAAAA,GAAc;AACZ,IAAA,KAAK,CAACA,WAAA,EAAA,CAAA;AACN,IAAA,IAAI,CAACzC,IAAI,CAAC0C,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,13 +1,13 @@
|
|
|
1
1
|
import { action } from '@ember/object';
|
|
2
|
-
import didInsert from '@ember/render-modifiers/modifiers/did-insert';
|
|
3
|
-
import didUpdate from '@ember/render-modifiers/modifiers/did-update';
|
|
4
|
-
import { EuiFormRow, EuiCheckboxGroup } from '@ember-eui/core/components';
|
|
5
|
-
import { argOrDefault } from '@ember-eui/core/helpers';
|
|
6
2
|
import { maybeUnwrapProxy } from '@ember-eui/core/utils/maybe-unwrap-proxy';
|
|
7
|
-
import { not } from 'ember-truth-helpers';
|
|
8
|
-
import randomId from '../../-private/random-id.js';
|
|
9
3
|
import ValidatedFormFieldBase from './field-base.js';
|
|
10
4
|
import { n } from 'decorator-transforms/runtime';
|
|
5
|
+
import { argOrDefault } from '@ember-eui/core/helpers';
|
|
6
|
+
import randomId from '../../-private/random-id.js';
|
|
7
|
+
import { EuiFormRow, EuiCheckboxGroup } from '@ember-eui/core/components';
|
|
8
|
+
import { not } from 'ember-truth-helpers';
|
|
9
|
+
import didInsert from '@ember/render-modifiers/modifiers/did-insert';
|
|
10
|
+
import didUpdate from '@ember/render-modifiers/modifiers/did-update';
|
|
11
11
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
12
12
|
import { setComponentTemplate } from '@ember/component';
|
|
13
13
|
|