@hokulea/ember 0.0.3 → 0.0.4
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/README.md +56 -0
- package/declarations/-private/form/components/description.d.ts +10 -0
- package/declarations/-private/form/components/description.d.ts.map +1 -0
- package/declarations/-private/form/components/errors.d.ts +15 -0
- package/declarations/-private/form/components/errors.d.ts.map +1 -0
- package/declarations/-private/form/components/field.d.ts +141 -0
- package/declarations/-private/form/components/field.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/checkbox.d.ts +15 -0
- package/declarations/-private/form/components/fields/checkbox.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/currency.d.ts +15 -0
- package/declarations/-private/form/components/fields/currency.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/date.d.ts +15 -0
- package/declarations/-private/form/components/fields/date.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/email.d.ts +15 -0
- package/declarations/-private/form/components/fields/email.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/list.d.ts +27 -0
- package/declarations/-private/form/components/fields/list.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/multiple-choice.d.ts +58 -0
- package/declarations/-private/form/components/fields/multiple-choice.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/number.d.ts +15 -0
- package/declarations/-private/form/components/fields/number.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/password.d.ts +15 -0
- package/declarations/-private/form/components/fields/password.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/phone.d.ts +15 -0
- package/declarations/-private/form/components/fields/phone.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/select.d.ts +16 -0
- package/declarations/-private/form/components/fields/select.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/singular-choice.d.ts +56 -0
- package/declarations/-private/form/components/fields/singular-choice.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/stories-utils.d.ts +50 -0
- package/declarations/-private/form/components/fields/stories-utils.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/text-area.d.ts +15 -0
- package/declarations/-private/form/components/fields/text-area.d.ts.map +1 -0
- package/declarations/-private/form/components/fields/text.d.ts +15 -0
- package/declarations/-private/form/components/fields/text.d.ts.map +1 -0
- package/declarations/-private/form/components/label.d.ts +16 -0
- package/declarations/-private/form/components/label.d.ts.map +1 -0
- package/declarations/-private/form/components/reset.d.ts +24 -0
- package/declarations/-private/form/components/reset.d.ts.map +1 -0
- package/declarations/-private/form/components/submit.d.ts +24 -0
- package/declarations/-private/form/components/submit.d.ts.map +1 -0
- package/declarations/-private/form/index.d.ts +49 -0
- package/declarations/-private/form/index.d.ts.map +1 -0
- package/declarations/-private/form/modifiers/capture-events.d.ts +21 -0
- package/declarations/-private/form/modifiers/capture-events.d.ts.map +1 -0
- package/declarations/-private/form/modifiers/manage-validation.d.ts +21 -0
- package/declarations/-private/form/modifiers/manage-validation.d.ts.map +1 -0
- package/declarations/-private/helpers.d.ts +10 -0
- package/declarations/-private/helpers.d.ts.map +1 -0
- package/declarations/-private/modifiers/disabled.d.ts +20 -0
- package/declarations/-private/modifiers/disabled.d.ts.map +1 -0
- package/declarations/components/-input.d.ts +7 -0
- package/declarations/components/-input.d.ts.map +1 -0
- package/declarations/components/-menu.d.ts +22 -0
- package/declarations/components/-menu.d.ts.map +1 -0
- package/declarations/components/app-header.d.ts +49 -0
- package/declarations/components/app-header.d.ts.map +1 -0
- package/declarations/components/box.d.ts +16 -0
- package/declarations/components/box.d.ts.map +1 -0
- package/declarations/components/button.d.ts +26 -0
- package/declarations/components/button.d.ts.map +1 -0
- package/declarations/components/card.d.ts +13 -0
- package/declarations/components/card.d.ts.map +1 -0
- package/declarations/components/checkbox.d.ts +9 -0
- package/declarations/components/checkbox.d.ts.map +1 -0
- package/declarations/components/currency-input.d.ts +9 -0
- package/declarations/components/currency-input.d.ts.map +1 -0
- package/declarations/components/date-input.d.ts +9 -0
- package/declarations/components/date-input.d.ts.map +1 -0
- package/declarations/components/dialog.d.ts +26 -0
- package/declarations/components/dialog.d.ts.map +1 -0
- package/declarations/components/email-input.d.ts +9 -0
- package/declarations/components/email-input.d.ts.map +1 -0
- package/declarations/components/form.d.ts +312 -0
- package/declarations/components/form.d.ts.map +1 -0
- package/declarations/components/icon-button.d.ts +27 -0
- package/declarations/components/icon-button.d.ts.map +1 -0
- package/declarations/components/icon.d.ts +13698 -0
- package/declarations/components/icon.d.ts.map +1 -0
- package/declarations/components/input-builder.d.ts +29 -0
- package/declarations/components/input-builder.d.ts.map +1 -0
- package/declarations/components/list.d.ts +51 -0
- package/declarations/components/list.d.ts.map +1 -0
- package/declarations/components/list.stories copy.d.ts +27 -0
- package/declarations/components/list.stories copy.d.ts.map +1 -0
- package/declarations/components/main.d.ts +18 -0
- package/declarations/components/main.d.ts.map +1 -0
- package/declarations/components/menu.d.ts +36 -0
- package/declarations/components/menu.d.ts.map +1 -0
- package/declarations/components/menu.stories copy.d.ts +25 -0
- package/declarations/components/menu.stories copy.d.ts.map +1 -0
- package/declarations/components/number-input.d.ts +9 -0
- package/declarations/components/number-input.d.ts.map +1 -0
- package/declarations/components/page copy.d.ts +17 -0
- package/declarations/components/page copy.d.ts.map +1 -0
- package/declarations/components/page-header.d.ts +16 -0
- package/declarations/components/page-header.d.ts.map +1 -0
- package/declarations/components/page.d.ts +32 -0
- package/declarations/components/page.d.ts.map +1 -0
- package/declarations/components/password-input.d.ts +9 -0
- package/declarations/components/password-input.d.ts.map +1 -0
- package/declarations/components/phone-input.d.ts +9 -0
- package/declarations/components/phone-input.d.ts.map +1 -0
- package/declarations/components/popover.d.ts +10 -0
- package/declarations/components/popover.d.ts.map +1 -0
- package/declarations/components/radio.d.ts +9 -0
- package/declarations/components/radio.d.ts.map +1 -0
- package/declarations/components/section.d.ts +19 -0
- package/declarations/components/section.d.ts.map +1 -0
- package/declarations/components/section.stories copy.d.ts +18 -0
- package/declarations/components/section.stories copy.d.ts.map +1 -0
- package/declarations/components/select.d.ts +36 -0
- package/declarations/components/select.d.ts.map +1 -0
- package/declarations/components/test.d.ts +26 -0
- package/declarations/components/test.d.ts.map +1 -0
- package/declarations/components/text-area.d.ts +9 -0
- package/declarations/components/text-area.d.ts.map +1 -0
- package/declarations/components/text-input.d.ts +9 -0
- package/declarations/components/text-input.d.ts.map +1 -0
- package/declarations/helpers/popover.d.ts +30 -0
- package/declarations/helpers/popover.d.ts.map +1 -0
- package/declarations/index.d.ts +27 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/modifiers/popover.d.ts +31 -0
- package/declarations/modifiers/popover.d.ts.map +1 -0
- package/declarations/src/-private/form/components/description.d.ts +11 -0
- package/declarations/src/-private/form/components/description.d.ts.map +1 -0
- package/declarations/src/-private/form/components/errors.d.ts +15 -0
- package/declarations/src/-private/form/components/errors.d.ts.map +1 -0
- package/declarations/src/-private/form/components/field.d.ts +141 -0
- package/declarations/src/-private/form/components/field.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/checkbox.d.ts +15 -0
- package/declarations/src/-private/form/components/fields/checkbox.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/currency.d.ts +15 -0
- package/declarations/src/-private/form/components/fields/currency.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/date.d.ts +15 -0
- package/declarations/src/-private/form/components/fields/date.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/email.d.ts +15 -0
- package/declarations/src/-private/form/components/fields/email.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/list.d.ts +27 -0
- package/declarations/src/-private/form/components/fields/list.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/multiple-choice.d.ts +58 -0
- package/declarations/src/-private/form/components/fields/multiple-choice.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/number.d.ts +15 -0
- package/declarations/src/-private/form/components/fields/number.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/password.d.ts +15 -0
- package/declarations/src/-private/form/components/fields/password.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/phone.d.ts +15 -0
- package/declarations/src/-private/form/components/fields/phone.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/select.d.ts +16 -0
- package/declarations/src/-private/form/components/fields/select.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/singular-choice.d.ts +56 -0
- package/declarations/src/-private/form/components/fields/singular-choice.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/stories-utils.d.ts +50 -0
- package/declarations/src/-private/form/components/fields/stories-utils.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/text-area.d.ts +15 -0
- package/declarations/src/-private/form/components/fields/text-area.d.ts.map +1 -0
- package/declarations/src/-private/form/components/fields/text.d.ts +15 -0
- package/declarations/src/-private/form/components/fields/text.d.ts.map +1 -0
- package/declarations/src/-private/form/components/label.d.ts +17 -0
- package/declarations/src/-private/form/components/label.d.ts.map +1 -0
- package/declarations/src/-private/form/components/reset.d.ts +25 -0
- package/declarations/src/-private/form/components/reset.d.ts.map +1 -0
- package/declarations/src/-private/form/components/submit.d.ts +25 -0
- package/declarations/src/-private/form/components/submit.d.ts.map +1 -0
- package/declarations/src/-private/form/index.d.ts +49 -0
- package/declarations/src/-private/form/index.d.ts.map +1 -0
- package/declarations/src/-private/form/modifiers/capture-events.d.ts +21 -0
- package/declarations/src/-private/form/modifiers/capture-events.d.ts.map +1 -0
- package/declarations/src/-private/form/modifiers/manage-validation.d.ts +21 -0
- package/declarations/src/-private/form/modifiers/manage-validation.d.ts.map +1 -0
- package/declarations/src/-private/helpers.d.ts +10 -0
- package/declarations/src/-private/helpers.d.ts.map +1 -0
- package/declarations/src/-private/modifiers/disabled.d.ts +20 -0
- package/declarations/src/-private/modifiers/disabled.d.ts.map +1 -0
- package/declarations/src/components/-input.d.ts +7 -0
- package/declarations/src/components/-input.d.ts.map +1 -0
- package/declarations/src/components/-menu.d.ts +22 -0
- package/declarations/src/components/-menu.d.ts.map +1 -0
- package/declarations/src/components/app-header.d.ts +48 -0
- package/declarations/src/components/app-header.d.ts.map +1 -0
- package/declarations/src/components/box.d.ts +16 -0
- package/declarations/src/components/box.d.ts.map +1 -0
- package/declarations/src/components/button.d.ts +27 -0
- package/declarations/src/components/button.d.ts.map +1 -0
- package/declarations/src/components/card.d.ts +14 -0
- package/declarations/src/components/card.d.ts.map +1 -0
- package/declarations/src/components/checkbox.d.ts +10 -0
- package/declarations/src/components/checkbox.d.ts.map +1 -0
- package/declarations/src/components/currency-input.d.ts +10 -0
- package/declarations/src/components/currency-input.d.ts.map +1 -0
- package/declarations/src/components/date-input.d.ts +10 -0
- package/declarations/src/components/date-input.d.ts.map +1 -0
- package/declarations/src/components/email-input.d.ts +10 -0
- package/declarations/src/components/email-input.d.ts.map +1 -0
- package/declarations/src/components/form.d.ts +313 -0
- package/declarations/src/components/form.d.ts.map +1 -0
- package/declarations/src/components/icon-button.d.ts +23 -0
- package/declarations/src/components/icon-button.d.ts.map +1 -0
- package/declarations/src/components/icon.d.ts +11 -0
- package/declarations/src/components/icon.d.ts.map +1 -0
- package/declarations/src/components/input-builder.d.ts +30 -0
- package/declarations/src/components/input-builder.d.ts.map +1 -0
- package/declarations/src/components/list.d.ts +55 -0
- package/declarations/src/components/list.d.ts.map +1 -0
- package/declarations/src/components/menu.d.ts +40 -0
- package/declarations/src/components/menu.d.ts.map +1 -0
- package/declarations/src/components/number-input.d.ts +10 -0
- package/declarations/src/components/number-input.d.ts.map +1 -0
- package/declarations/src/components/password-input.d.ts +10 -0
- package/declarations/src/components/password-input.d.ts.map +1 -0
- package/declarations/src/components/phone-input.d.ts +10 -0
- package/declarations/src/components/phone-input.d.ts.map +1 -0
- package/declarations/src/components/radio.d.ts +10 -0
- package/declarations/src/components/radio.d.ts.map +1 -0
- package/declarations/src/components/section.d.ts +20 -0
- package/declarations/src/components/section.d.ts.map +1 -0
- package/declarations/src/components/select.d.ts +37 -0
- package/declarations/src/components/select.d.ts.map +1 -0
- package/declarations/src/components/text-area.d.ts +10 -0
- package/declarations/src/components/text-area.d.ts.map +1 -0
- package/declarations/src/components/text-input.d.ts +10 -0
- package/declarations/src/components/text-input.d.ts.map +1 -0
- package/declarations/src/helpers/popover.d.ts +32 -0
- package/declarations/src/helpers/popover.d.ts.map +1 -0
- package/declarations/src/index.d.ts +25 -0
- package/declarations/src/index.d.ts.map +1 -0
- package/declarations/src/template-registry.d.ts +49 -0
- package/declarations/src/template-registry.d.ts.map +1 -0
- package/declarations/src/test-support/index.d.ts +16 -0
- package/declarations/src/test-support/index.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/-menu.d.ts +11 -0
- package/declarations/src/test-support/page-objects/-menu.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/-private/choices.d.ts +61 -0
- package/declarations/src/test-support/page-objects/-private/choices.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/-private/field.d.ts +50 -0
- package/declarations/src/test-support/page-objects/-private/field.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/app-header.d.ts +73 -0
- package/declarations/src/test-support/page-objects/app-header.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/button.d.ts +14 -0
- package/declarations/src/test-support/page-objects/button.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/choice.d.ts +12 -0
- package/declarations/src/test-support/page-objects/choice.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/form.d.ts +15 -0
- package/declarations/src/test-support/page-objects/form.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/icon-button.d.ts +13 -0
- package/declarations/src/test-support/page-objects/icon-button.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/icon.d.ts +8 -0
- package/declarations/src/test-support/page-objects/icon.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/input-builder.d.ts +15 -0
- package/declarations/src/test-support/page-objects/input-builder.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/input.d.ts +17 -0
- package/declarations/src/test-support/page-objects/input.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/list.d.ts +10 -0
- package/declarations/src/test-support/page-objects/list.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/menu.d.ts +19 -0
- package/declarations/src/test-support/page-objects/menu.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/pill-button.d.ts +14 -0
- package/declarations/src/test-support/page-objects/pill-button.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/section.d.ts +9 -0
- package/declarations/src/test-support/page-objects/section.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/select.d.ts +10 -0
- package/declarations/src/test-support/page-objects/select.d.ts.map +1 -0
- package/declarations/src/test-support/page-objects/text-area.d.ts +9 -0
- package/declarations/src/test-support/page-objects/text-area.d.ts.map +1 -0
- package/declarations/template-registry.d.ts +53 -0
- package/declarations/template-registry.d.ts.map +1 -0
- package/declarations/test-support/index.d.ts +18 -0
- package/declarations/test-support/index.d.ts.map +1 -0
- package/declarations/test-support/page-objects/-menu.d.ts +12 -0
- package/declarations/test-support/page-objects/-menu.d.ts.map +1 -0
- package/declarations/test-support/page-objects/-private/choices.d.ts +15 -0
- package/declarations/test-support/page-objects/-private/choices.d.ts.map +1 -0
- package/declarations/test-support/page-objects/-private/field.d.ts +51 -0
- package/declarations/test-support/page-objects/-private/field.d.ts.map +1 -0
- package/declarations/test-support/page-objects/app-header.d.ts +103 -0
- package/declarations/test-support/page-objects/app-header.d.ts.map +1 -0
- package/declarations/test-support/page-objects/button.d.ts +14 -0
- package/declarations/test-support/page-objects/button.d.ts.map +1 -0
- package/declarations/test-support/page-objects/choice.d.ts +12 -0
- package/declarations/test-support/page-objects/choice.d.ts.map +1 -0
- package/declarations/test-support/page-objects/form.d.ts +15 -0
- package/declarations/test-support/page-objects/form.d.ts.map +1 -0
- package/declarations/test-support/page-objects/icon-button.d.ts +13 -0
- package/declarations/test-support/page-objects/icon-button.d.ts.map +1 -0
- package/declarations/test-support/page-objects/icon.d.ts +9 -0
- package/declarations/test-support/page-objects/icon.d.ts.map +1 -0
- package/declarations/test-support/page-objects/input-builder.d.ts +15 -0
- package/declarations/test-support/page-objects/input-builder.d.ts.map +1 -0
- package/declarations/test-support/page-objects/input.d.ts +17 -0
- package/declarations/test-support/page-objects/input.d.ts.map +1 -0
- package/declarations/test-support/page-objects/list copy.d.ts +10 -0
- package/declarations/test-support/page-objects/list copy.d.ts.map +1 -0
- package/declarations/test-support/page-objects/list.d.ts +10 -0
- package/declarations/test-support/page-objects/list.d.ts.map +1 -0
- package/declarations/test-support/page-objects/menu copy.d.ts +9 -0
- package/declarations/test-support/page-objects/menu copy.d.ts.map +1 -0
- package/declarations/test-support/page-objects/menu.d.ts +20 -0
- package/declarations/test-support/page-objects/menu.d.ts.map +1 -0
- package/declarations/test-support/page-objects/page.d.ts +12 -0
- package/declarations/test-support/page-objects/page.d.ts.map +1 -0
- package/declarations/test-support/page-objects/pill-button.d.ts +14 -0
- package/declarations/test-support/page-objects/pill-button.d.ts.map +1 -0
- package/declarations/test-support/page-objects/popover.d.ts +7 -0
- package/declarations/test-support/page-objects/popover.d.ts.map +1 -0
- package/declarations/test-support/page-objects/section copy.d.ts +9 -0
- package/declarations/test-support/page-objects/section copy.d.ts.map +1 -0
- package/declarations/test-support/page-objects/section.d.ts +9 -0
- package/declarations/test-support/page-objects/section.d.ts.map +1 -0
- package/declarations/test-support/page-objects/select.d.ts +10 -0
- package/declarations/test-support/page-objects/select.d.ts.map +1 -0
- package/declarations/test-support/page-objects/text-area.d.ts +9 -0
- package/declarations/test-support/page-objects/text-area.d.ts.map +1 -0
- package/dist/-input-DGR-n9U_.js +9 -0
- package/dist/-input-DGR-n9U_.js.map +1 -0
- package/dist/_app_/components/app-header.js +1 -0
- package/dist/_app_/components/box.js +1 -0
- package/dist/_app_/components/button.js +1 -0
- package/dist/_app_/components/card.js +1 -0
- package/dist/_app_/components/checkbox.js +1 -0
- package/dist/_app_/components/currency-input.js +1 -0
- package/dist/_app_/components/date-input.js +1 -0
- package/dist/_app_/components/email-input.js +1 -0
- package/dist/_app_/components/form.js +1 -0
- package/dist/_app_/components/icon-button.js +1 -0
- package/dist/_app_/components/icon.js +1 -0
- package/dist/_app_/components/input-builder.js +1 -0
- package/dist/_app_/components/list.js +1 -0
- package/dist/_app_/components/menu.js +1 -0
- package/dist/_app_/components/number-input.js +1 -0
- package/dist/_app_/components/page.js +1 -0
- package/dist/_app_/components/password-input.js +1 -0
- package/dist/_app_/components/phone-input.js +1 -0
- package/dist/_app_/components/popover.js +1 -0
- package/dist/_app_/components/radio.js +1 -0
- package/dist/_app_/components/section.js +1 -0
- package/dist/_app_/components/select.js +1 -0
- package/dist/_app_/components/text-area.js +1 -0
- package/dist/_app_/components/text-input.js +1 -0
- package/dist/_app_/helpers/popover.js +1 -0
- package/dist/components/app-header.js +126 -0
- package/dist/components/app-header.js.map +1 -0
- package/dist/components/box.js +20 -0
- package/dist/components/box.js.map +1 -0
- package/dist/components/button.js +47 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/card.js +16 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/checkbox.js +18 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/currency-input.js +22 -0
- package/dist/components/currency-input.js.map +1 -0
- package/dist/components/date-input.js +18 -0
- package/dist/components/date-input.js.map +1 -0
- package/dist/components/email-input.js +18 -0
- package/dist/components/email-input.js.map +1 -0
- package/dist/components/form.js +826 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/icon-button.js +29 -0
- package/dist/components/icon-button.js.map +1 -0
- package/dist/components/icon.js +41 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/input-builder.js +20 -0
- package/dist/components/input-builder.js.map +1 -0
- package/dist/components/list.js +66 -0
- package/dist/components/list.js.map +1 -0
- package/dist/components/menu.js +106 -0
- package/dist/components/menu.js.map +1 -0
- package/dist/components/number-input.js +20 -0
- package/dist/components/number-input.js.map +1 -0
- package/dist/components/page.js +65 -0
- package/dist/components/page.js.map +1 -0
- package/dist/components/password-input.js +18 -0
- package/dist/components/password-input.js.map +1 -0
- package/dist/components/phone-input.js +18 -0
- package/dist/components/phone-input.js.map +1 -0
- package/dist/components/popover.js +14 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/radio.js +18 -0
- package/dist/components/radio.js.map +1 -0
- package/dist/components/section.js +25 -0
- package/dist/components/section.js.map +1 -0
- package/dist/components/select.js +39 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/text-area.js +18 -0
- package/dist/components/text-area.js.map +1 -0
- package/dist/components/text-input.js +18 -0
- package/dist/components/text-input.js.map +1 -0
- package/dist/disabled-B_FQ0Z51.js +27 -0
- package/dist/disabled-B_FQ0Z51.js.map +1 -0
- package/dist/helpers/popover.js +74 -0
- package/dist/helpers/popover.js.map +1 -0
- package/dist/helpers-DApiJrHl.js +28 -0
- package/dist/helpers-DApiJrHl.js.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/template-registry.js +2 -0
- package/dist/template-registry.js.map +1 -0
- package/dist/test-support/index.js +381 -0
- package/dist/test-support/index.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/-internals/owner" />
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { TrackedAsyncData } from 'ember-async-data';
|
|
4
|
+
import Field from '../-private/form/components/field';
|
|
5
|
+
import CheckboxField from '../-private/form/components/fields/checkbox';
|
|
6
|
+
import CurrencyField from '../-private/form/components/fields/currency';
|
|
7
|
+
import DateField from '../-private/form/components/fields/date';
|
|
8
|
+
import EmailField from '../-private/form/components/fields/email';
|
|
9
|
+
import ListField from '../-private/form/components/fields/list';
|
|
10
|
+
import MultipleChoiceField from '../-private/form/components/fields/multiple-choice';
|
|
11
|
+
import NumberField from '../-private/form/components/fields/number';
|
|
12
|
+
import PasswordField from '../-private/form/components/fields/password';
|
|
13
|
+
import PhoneField from '../-private/form/components/fields/phone';
|
|
14
|
+
import SelectField from '../-private/form/components/fields/select';
|
|
15
|
+
import SingularChoiceField from '../-private/form/components/fields/singular-choice';
|
|
16
|
+
import TextField from '../-private/form/components/fields/text';
|
|
17
|
+
import TextAreaField from '../-private/form/components/fields/text-area';
|
|
18
|
+
import Reset from '../-private/form/components/reset';
|
|
19
|
+
import Submit from '../-private/form/components/submit';
|
|
20
|
+
import ManagaValidationModifier from '../-private/form/modifiers/manage-validation';
|
|
21
|
+
import type { ErrorRecord, FieldRegistrationData, FieldValidateCallback, FormData, FormKey, FormValidateCallback, UserData, ValidationError } from '../-private/form';
|
|
22
|
+
import type { BoundField } from '../-private/form/components/field';
|
|
23
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
24
|
+
type ValidateOn = 'change' | 'focusout' | 'submit' | 'input';
|
|
25
|
+
export interface FormSignature<DATA extends UserData, SUBMISSION_VALUE> {
|
|
26
|
+
Element: HTMLFormElement;
|
|
27
|
+
Args: {
|
|
28
|
+
/**
|
|
29
|
+
* The initial data the form will use to pre-populate the fields.
|
|
30
|
+
*
|
|
31
|
+
* Make sure the type of it matches what you expect the form to represent, i.e. the names of all form fields match the properties of the data and their respective types!
|
|
32
|
+
*/
|
|
33
|
+
data?: DATA;
|
|
34
|
+
/**
|
|
35
|
+
* By default the data you pass as `@data` is never mutated by the form component, you will only receive the updated data (a copy) on successful submission via `@onSubmit`.
|
|
36
|
+
* Setting this to `'mutable'` will mutate the data whenever the user updates a field. This is especially useful when the data already has some "buffering" behavior, like with `ember-changeset`.
|
|
37
|
+
*/
|
|
38
|
+
dataMode?: 'mutable' | 'immutable';
|
|
39
|
+
/**
|
|
40
|
+
* Specify when to dynamically validate a field before even submitting the whole form. By default this is `submit`, which means no dynamic validation happens. Another common setting is to validate on `focusout`.
|
|
41
|
+
*/
|
|
42
|
+
validateOn?: ValidateOn;
|
|
43
|
+
/**
|
|
44
|
+
* Specify when to revalidate a previously validated field that is invalid. By default this happens on `change`. Another common setting is to revalidate on `input`.
|
|
45
|
+
* Mind that text-based inputs don't emit the `change` event on every key stroke, but only on focusing out. Changing this to `input` would make text-based inputs revalidate on every key stroke.
|
|
46
|
+
*/
|
|
47
|
+
revalidateOn?: ValidateOn;
|
|
48
|
+
/**
|
|
49
|
+
* Provide a custom validation function, that operates on all fields of the form. Eventual validation errors are merged with native validation errors to determine the effective set of errors rendered in the form.
|
|
50
|
+
*
|
|
51
|
+
* Return undefined when no validation errors are present, otherwise an `ErrorRecord` mapping (one or multiple) `ValidationError`s to each invalid field.
|
|
52
|
+
*/
|
|
53
|
+
validate?: FormValidateCallback<DATA>;
|
|
54
|
+
/**
|
|
55
|
+
* Allows you to opt-out of native validation.
|
|
56
|
+
*
|
|
57
|
+
* This can be useful if all of the validation logic is already handled by the `@validate` hooks, but you have form controls that have validation requirements (e.g. `email` type) that would cause the native validation to interfere.
|
|
58
|
+
*/
|
|
59
|
+
ignoreNativeValidation?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Called when the user has submitted the form and no validation errors have been determined. Receives the new form data, or in case of `@dataMode="mutable"` the original data object.
|
|
62
|
+
*/
|
|
63
|
+
submit?: (data: FormData<DATA>) => SUBMISSION_VALUE | Promise<SUBMISSION_VALUE>;
|
|
64
|
+
/**
|
|
65
|
+
* Called when the user tried to submit the form, but validation failed. Receives the new data (or in case of `@dataMode="mutable"` the original data object), and the record of validation errors by field.
|
|
66
|
+
*/
|
|
67
|
+
invalidated?: (data: FormData<DATA>, errors: ErrorRecord<FormData<DATA>>) => void;
|
|
68
|
+
};
|
|
69
|
+
Blocks: {
|
|
70
|
+
default: [
|
|
71
|
+
{
|
|
72
|
+
Checkbox: WithBoundArgs<typeof CheckboxField<DATA>, 'Field'>;
|
|
73
|
+
Currency: WithBoundArgs<typeof CurrencyField<DATA>, 'Field'>;
|
|
74
|
+
Date: WithBoundArgs<typeof DateField<DATA>, 'Field'>;
|
|
75
|
+
Email: WithBoundArgs<typeof EmailField<DATA>, 'Field'>;
|
|
76
|
+
List: WithBoundArgs<typeof ListField<DATA>, 'Field'>;
|
|
77
|
+
MultipleChoice: WithBoundArgs<typeof MultipleChoiceField<DATA>, 'Field'>;
|
|
78
|
+
Number: WithBoundArgs<typeof NumberField<DATA>, 'Field'>;
|
|
79
|
+
Password: WithBoundArgs<typeof PasswordField<DATA>, 'Field'>;
|
|
80
|
+
Phone: WithBoundArgs<typeof PhoneField<DATA>, 'Field'>;
|
|
81
|
+
Select: WithBoundArgs<typeof SelectField<DATA>, 'Field'>;
|
|
82
|
+
SingularChoice: WithBoundArgs<typeof SingularChoiceField<DATA>, 'Field'>;
|
|
83
|
+
Text: WithBoundArgs<typeof TextField<DATA>, 'Field'>;
|
|
84
|
+
TextArea: WithBoundArgs<typeof TextAreaField<DATA>, 'Field'>;
|
|
85
|
+
Field: BoundField<DATA>;
|
|
86
|
+
Submit: typeof Submit;
|
|
87
|
+
Reset: typeof Reset;
|
|
88
|
+
/**
|
|
89
|
+
* The (async) validation state as `TrackedAsyncData`.
|
|
90
|
+
*
|
|
91
|
+
* Use derived state like `.isPending` to render the UI conditionally.
|
|
92
|
+
*/
|
|
93
|
+
validationState?: TrackedAsyncData<ErrorRecord<DATA>>;
|
|
94
|
+
/**
|
|
95
|
+
* The (async) submission state as `TrackedAsyncData`.
|
|
96
|
+
*
|
|
97
|
+
* Use derived state like `.isPending` to render the UI conditionally.
|
|
98
|
+
*/
|
|
99
|
+
submissionState?: TrackedAsyncData<SUBMISSION_VALUE>;
|
|
100
|
+
/**
|
|
101
|
+
* Will be true if at least one form field is invalid.
|
|
102
|
+
*/
|
|
103
|
+
invalid: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* An ErrorRecord, for custom rendering of error output
|
|
106
|
+
*/
|
|
107
|
+
rawErrors?: ErrorRecord<DATA>;
|
|
108
|
+
/**
|
|
109
|
+
* Yielded action that will trigger form validation and submission, same as when triggering the native `submit` event on the form.
|
|
110
|
+
*/
|
|
111
|
+
submit: () => void;
|
|
112
|
+
/**
|
|
113
|
+
* Yielded action that will reset form state, same as when triggering the native `reset` event on the form.
|
|
114
|
+
*/
|
|
115
|
+
reset: () => void;
|
|
116
|
+
}
|
|
117
|
+
];
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* This internal data structure maintains information about each field that is registered to the form by `registerField`.
|
|
122
|
+
*/
|
|
123
|
+
declare class FieldData<DATA extends FormData, KEY extends FormKey<DATA> = FormKey<DATA>> {
|
|
124
|
+
constructor(fieldRegistration: FieldRegistrationData<DATA, KEY>);
|
|
125
|
+
/**
|
|
126
|
+
* tracked state that enabled a dynamic validation of a field *before* the whole form is submitted, e.g. by `@validateOn="blur" and the blur event being triggered for that particular field.
|
|
127
|
+
*/
|
|
128
|
+
validationEnabled: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The *field* level validation callback passed to the field as in `<form.field @name="foo" @validate={{this.validateCallback}}>`
|
|
131
|
+
*/
|
|
132
|
+
validate?: FieldValidateCallback<DATA, KEY>;
|
|
133
|
+
}
|
|
134
|
+
export default class Form<DATA extends UserData, SUBMISSION_VALUE> extends Component<FormSignature<DATA, SUBMISSION_VALUE>> {
|
|
135
|
+
Field: {
|
|
136
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & {
|
|
137
|
+
data: FormData<DATA>;
|
|
138
|
+
set: (key: FormKey<FormData<DATA>>, value: DATA[FormKey<FormData<DATA>>]) => void;
|
|
139
|
+
errors?: Partial<Record<FormKey<FormData<DATA>>, ValidationError<DATA[FormKey<FormData<DATA>>]>[]>> | undefined;
|
|
140
|
+
registerField: import("../-private/form").RegisterFieldCallback<FormData<DATA>, FormKey<FormData<DATA>>>;
|
|
141
|
+
unregisterField: import("../-private/form").UnregisterFieldCallback<FormData<DATA>, FormKey<FormData<DATA>>>;
|
|
142
|
+
triggerValidationFor(name: FormKey<FormData<DATA>>): Promise<void>;
|
|
143
|
+
fieldValidationEvent: "input" | "change" | "focusout" | undefined;
|
|
144
|
+
fieldRevalidationEvent: "input" | "change" | "focusout" | undefined;
|
|
145
|
+
element?: import("@glint/template").ComponentLike<{
|
|
146
|
+
Element: HTMLElement;
|
|
147
|
+
Blocks: {
|
|
148
|
+
default: [];
|
|
149
|
+
};
|
|
150
|
+
}> | undefined;
|
|
151
|
+
labelComponent?: import("@glint/template").ComponentLike<import("../-private/form/components/label").LabelSignature> | undefined;
|
|
152
|
+
manageValidation: import("@glint/template/-private/integration").Invokable<(element: HTMLInputElement | HTMLDivElement | HTMLSelectElement | HTMLTextAreaElement, named: import("@glint/template/-private/signature").PrebindArgs<import("../-private/form/modifiers/manage-validation").NamedOptions<DATA>, "showErrorsFor">) => import("@glint/template/-private/integration").ModifierReturn>;
|
|
153
|
+
}): Field<DATA, FormKey<FormData<DATA>>>;
|
|
154
|
+
};
|
|
155
|
+
CheckboxField: {
|
|
156
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<import("./-input").InputArgs<boolean>, "value" | "update"> & {
|
|
157
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
158
|
+
}): CheckboxField<DATA, FormKey<FormData<DATA>>>;
|
|
159
|
+
};
|
|
160
|
+
CurrencyField: {
|
|
161
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<import("./-input").InputArgs<number>, "value" | "update"> & {
|
|
162
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
163
|
+
}): CurrencyField<DATA, FormKey<FormData<DATA>>>;
|
|
164
|
+
};
|
|
165
|
+
DateField: {
|
|
166
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<import("./-input").InputArgs<string>, "value" | "update"> & {
|
|
167
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
168
|
+
}): DateField<DATA, FormKey<FormData<DATA>>>;
|
|
169
|
+
};
|
|
170
|
+
EmailField: {
|
|
171
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<import("./-input").InputArgs<string>, "value" | "update"> & {
|
|
172
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
173
|
+
}): EmailField<DATA, FormKey<FormData<DATA>>>;
|
|
174
|
+
};
|
|
175
|
+
ListField: {
|
|
176
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<{
|
|
177
|
+
multiple?: boolean | undefined;
|
|
178
|
+
disabled?: boolean | undefined;
|
|
179
|
+
value?: DATA[FormKey<FormData<DATA>>] | DATA[FormKey<FormData<DATA>>][] | undefined;
|
|
180
|
+
update?: ((value: DATA[FormKey<FormData<DATA>>] | DATA[FormKey<FormData<DATA>>][]) => void) | undefined;
|
|
181
|
+
activateItem?: ((value: DATA[FormKey<FormData<DATA>>]) => void) | undefined;
|
|
182
|
+
}, "update" | "selection"> & {
|
|
183
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
184
|
+
}): ListField<DATA, FormKey<FormData<DATA>>>;
|
|
185
|
+
};
|
|
186
|
+
MultipleChoiceField: {
|
|
187
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & {
|
|
188
|
+
disabled?: boolean | undefined;
|
|
189
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
190
|
+
}): MultipleChoiceField<DATA, FormKey<FormData<DATA>>>;
|
|
191
|
+
};
|
|
192
|
+
NumberField: {
|
|
193
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<import("./-input").InputArgs<number>, "value" | "update"> & {
|
|
194
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
195
|
+
}): NumberField<DATA, FormKey<FormData<DATA>>>;
|
|
196
|
+
};
|
|
197
|
+
PasswordField: {
|
|
198
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<import("./-input").InputArgs<string>, "value" | "update"> & {
|
|
199
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
200
|
+
}): PasswordField<DATA, FormKey<FormData<DATA>>>;
|
|
201
|
+
};
|
|
202
|
+
PhoneField: {
|
|
203
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<import("./-input").InputArgs<string>, "value" | "update"> & {
|
|
204
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
205
|
+
}): PhoneField<DATA, FormKey<FormData<DATA>>>;
|
|
206
|
+
};
|
|
207
|
+
SelectField: {
|
|
208
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<{
|
|
209
|
+
value?: import("./select").Value | import("./select").Value[] | undefined;
|
|
210
|
+
update?: ((value: import("./select").Value | import("./select").Value[]) => void) | undefined;
|
|
211
|
+
disabled?: boolean | undefined;
|
|
212
|
+
}, "update" | "selection"> & {
|
|
213
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
214
|
+
}): SelectField<DATA, FormKey<FormData<DATA>>>;
|
|
215
|
+
};
|
|
216
|
+
SingularChoiceField: {
|
|
217
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & {
|
|
218
|
+
disabled?: boolean | undefined;
|
|
219
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
220
|
+
}): SingularChoiceField<DATA, FormKey<FormData<DATA>>>;
|
|
221
|
+
};
|
|
222
|
+
TextField: {
|
|
223
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<import("./-input").InputArgs<string>, "value" | "update"> & {
|
|
224
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
225
|
+
}): TextField<DATA, FormKey<FormData<DATA>>>;
|
|
226
|
+
};
|
|
227
|
+
TextAreaField: {
|
|
228
|
+
new (owner: unknown, args: import("../-private/form/components/field").FieldArgs<DATA, FormKey<FormData<DATA>>> & Omit<import("./-input").InputArgs<string>, "value" | "update"> & {
|
|
229
|
+
Field: BoundField<DATA, FormKey<FormData<DATA>>>;
|
|
230
|
+
}): TextAreaField<DATA, FormKey<FormData<DATA>>>;
|
|
231
|
+
};
|
|
232
|
+
ManagaValidationModifier: {
|
|
233
|
+
new (owner: import("@ember/-internals/owner").default, args: import("ember-modifier").ArgsFor<import("../-private/form/modifiers/manage-validation").ManagaValidationSignature<DATA>>): ManagaValidationModifier<DATA>;
|
|
234
|
+
};
|
|
235
|
+
formElement?: HTMLFormElement;
|
|
236
|
+
registerForm: import("ember-modifier").FunctionBasedModifier<{
|
|
237
|
+
Args: {
|
|
238
|
+
Positional: [];
|
|
239
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
240
|
+
};
|
|
241
|
+
Element: HTMLFormElement;
|
|
242
|
+
}>;
|
|
243
|
+
submit: (e?: Event) => Promise<void>;
|
|
244
|
+
reset: (e?: Event) => Promise<void>;
|
|
245
|
+
/**
|
|
246
|
+
* A copy of the passed `@data` stored internally, which is only passed back to the component consumer after a (successful) form submission.
|
|
247
|
+
*/
|
|
248
|
+
internalData: DATA;
|
|
249
|
+
get effectiveData(): DATA;
|
|
250
|
+
fields: Map<FormKey<FormData<DATA>>, FieldData<FormData<DATA>, FormKey<FormData<DATA>>>>;
|
|
251
|
+
registerField: (name: FormKey<FormData<DATA>>, field: FieldRegistrationData<FormData<DATA>>) => void;
|
|
252
|
+
unregisterField: (name: FormKey<FormData<DATA>>) => void;
|
|
253
|
+
set: <KEY extends FormKey<FormData<DATA>>>(key: KEY, value: DATA[KEY]) => void;
|
|
254
|
+
validationState?: TrackedAsyncData<ErrorRecord<DATA>>;
|
|
255
|
+
submissionState?: TrackedAsyncData<SUBMISSION_VALUE>;
|
|
256
|
+
/**
|
|
257
|
+
* When this is set to true by submitting the form, eventual validation errors are show for *all* field, regardless of their individual dynamic validation status in `FieldData#validationEnabled`
|
|
258
|
+
*/
|
|
259
|
+
showAllValidations: boolean;
|
|
260
|
+
get validateOn(): ValidateOn;
|
|
261
|
+
get revalidateOn(): ValidateOn;
|
|
262
|
+
/**
|
|
263
|
+
* Return the event type that will be listened on for dynamic validation (i.e. *before* submitting)
|
|
264
|
+
*/
|
|
265
|
+
get fieldValidationEvent(): 'focusout' | 'change' | 'input' | undefined;
|
|
266
|
+
/**
|
|
267
|
+
* Return the event type that will be listened on for dynamic *re*validation, i.e. updating the validation status of a field that has been previously marked as invalid
|
|
268
|
+
*/
|
|
269
|
+
get fieldRevalidationEvent(): 'focusout' | 'change' | 'input' | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* Return true if validation has happened (by submitting or by an `@validateOn` event being triggered) and at least one field is invalid
|
|
272
|
+
*/
|
|
273
|
+
get validationErrorsExist(): boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Call the passed validation callbacks, defined both on the whole form as well as on field level, and return the merged result for all fields.
|
|
276
|
+
*/
|
|
277
|
+
validate(): Promise<ErrorRecord<FormData<DATA>>>;
|
|
278
|
+
validateWithState: () => Promise<ErrorRecord<FormData<DATA>>>;
|
|
279
|
+
validateNative(): ErrorRecord<FormData<DATA>> | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* Return a mapping of field to validation errors, for all fields that are invalid *and* for which validation errors should be visible.
|
|
282
|
+
* Validation errors will be visible for a certain field, if validation errors for *all* fields are visible, which is the case when trying to submit the form,
|
|
283
|
+
* or when that field has triggered the event given by `@validateOn` for showing validation errors before submitting, e.g. on blur.
|
|
284
|
+
*/
|
|
285
|
+
get visibleErrors(): ErrorRecord<FormData<DATA>> | undefined;
|
|
286
|
+
/**
|
|
287
|
+
* Given a field name, return if eventual errors for the field should be visible. See `visibleErrors` for further details.
|
|
288
|
+
*/
|
|
289
|
+
showErrorsFor: (field: FormKey<FormData<DATA>>) => boolean;
|
|
290
|
+
/**
|
|
291
|
+
* Handle the `@validateOn` event for a certain field, e.g. "blur".
|
|
292
|
+
* Associating the event with a field is done by looking at the event target's `name` attribute, which must match one of the `<form.field @name="...">` invocations by the user's template.
|
|
293
|
+
* Validation will be triggered, and the particular field will be marked to show eventual validation errors.
|
|
294
|
+
*/
|
|
295
|
+
handleFieldValidation: (e: Event | string) => Promise<void>;
|
|
296
|
+
/**
|
|
297
|
+
* Handle the `@revalidateOn` event for a certain field, e.g. "blur".
|
|
298
|
+
* Associating the event with a field is done by looking at the event target's `name` attribute, which must match one of the `<form.field @name="...">` invocations by the user's template.
|
|
299
|
+
* When a field has been already marked to show validation errors by `@validateOn`, then for revalidation another validation will be triggered.
|
|
300
|
+
*
|
|
301
|
+
* The use case here is to allow this to happen more frequently than the initial validation, e.g. `@validateOn="blur" @revalidateOn="change"`.
|
|
302
|
+
*/
|
|
303
|
+
handleFieldRevalidation: (e: Event) => Promise<void>;
|
|
304
|
+
attachValidation: import("ember-modifier").FunctionBasedModifier<{
|
|
305
|
+
Args: {
|
|
306
|
+
Positional: [string | undefined, (e: Event) => void];
|
|
307
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
308
|
+
};
|
|
309
|
+
Element: HTMLFormElement;
|
|
310
|
+
}>;
|
|
311
|
+
}
|
|
312
|
+
export {};
|
|
313
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/form.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAO3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAOpD,OAAO,KAAK,MAAM,mCAAmC,CAAC;AACtD,OAAO,aAAa,MAAM,6CAA6C,CAAC;AACxE,OAAO,aAAa,MAAM,6CAA6C,CAAC;AACxE,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAChE,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAChE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;IAED;;OAEG;IACH,IAAI,sBAAsB,IAAI,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAYxE;IAED;;OAEG;IACH,IAAI,qBAAqB,IAAI,OAAO,CASnC;IAED;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAyBtD,iBAAiB,QAAa,QAAQ,YAAY,SAAS,IAAI,CAAC,CAAC,CAAC,CAMhE;IAEF,cAAc,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS;IAoDzD;;;;OAIG;IACH,IAAI,aAAa,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAiB3D;IAED;;OAEG;IACH,aAAa,UAAW,QAAQ,SAAS,IAAI,CAAC,CAAC,KAAG,OAAO,CAEvD;IAEF;;;;OAIG;IACH,qBAAqB,MAAa,KAAK,GAAG,MAAM,KAAG,QAAQ,IAAI,CAAC,CAyB9D;IAEF;;;;;;OAMG;IACH,uBAAuB,MAAa,KAAK,KAAG,QAAQ,IAAI,CAAC,CAcvD;IAEF,gBAAgB;;iDACuD,KAAK,KAAK,IAAI;;;;OASnF;CAkDH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { Importance, Importances, Intent, Intents, Spacing, Spacings } from '@hokulea/tokens';
|
|
3
|
+
import type { CommandAction } from 'ember-command';
|
|
4
|
+
export interface IconButtonSignature {
|
|
5
|
+
Element: HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement;
|
|
6
|
+
Args: {
|
|
7
|
+
push?: CommandAction;
|
|
8
|
+
intent?: Intent | Intents;
|
|
9
|
+
importance?: Importance | Importances;
|
|
10
|
+
spacing?: Spacing | Spacings;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
label: string;
|
|
13
|
+
/** The name of the icon */
|
|
14
|
+
icon: string;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
default: [];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export default class IconButton extends Component<IconButtonSignature> {
|
|
21
|
+
get label(): string;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAU3C,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,eAAe,CAAC;IACjE,IAAI,EAAE;QACJ,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAC1B,UAAU,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;QACtC,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;QAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,2BAA2B;QAC3B,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACpE,IAAI,KAAK,WAOR;CA4BF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
2
|
+
import type { TOC } from '@ember/component/template-only';
|
|
3
|
+
export interface IconSignature {
|
|
4
|
+
Element: HTMLSpanElement;
|
|
5
|
+
Args: {
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
declare const Icon: TOC<IconSignature>;
|
|
10
|
+
export default Icon;
|
|
11
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,QAAA,MAAM,IAAI,EAAE,GAAG,CAAC,aAAa,CAU3B,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
2
|
+
import type { TOC } from '@ember/component/template-only';
|
|
3
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
4
|
+
interface AffixSignature {
|
|
5
|
+
Args: {
|
|
6
|
+
class: string;
|
|
7
|
+
identity: 'prefix' | 'affix' | 'suffix';
|
|
8
|
+
};
|
|
9
|
+
Blocks: {
|
|
10
|
+
default: [];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
declare const Affix: TOC<AffixSignature>;
|
|
14
|
+
export interface InputBuilderSignature {
|
|
15
|
+
Args: {
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
};
|
|
18
|
+
Blocks: {
|
|
19
|
+
default: [
|
|
20
|
+
{
|
|
21
|
+
Affix: WithBoundArgs<typeof Affix, 'class' | 'identity'>;
|
|
22
|
+
Prefix: WithBoundArgs<typeof Affix, 'class' | 'identity'>;
|
|
23
|
+
Suffix: WithBoundArgs<typeof Affix, 'class' | 'identity'>;
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const TextInput: TOC<InputBuilderSignature>;
|
|
29
|
+
export default TextInput;
|
|
30
|
+
//# sourceMappingURL=input-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-builder.d.ts","sourceRoot":"","sources":["../../../src/components/input-builder.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,UAAU,cAAc;IACtB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;KACzC,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,QAAA,MAAM,KAAK,EAAE,GAAG,CAAC,cAAc,CAU7B,CAAC;AAEH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBAEE,KAAK,EAAE,aAAa,CAAC,OAAO,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;gBAEzD,MAAM,EAAE,aAAa,CAAC,OAAO,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;gBAE1D,MAAM,EAAE,aAAa,CAAC,OAAO,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;aAC3D;SACF,CAAC;KACH,CAAC;CACH;AAED,QAAA,MAAM,SAAS,EAAE,GAAG,CAAC,qBAAqB,CAgBxC,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/owner" />
|
|
2
|
+
/// <reference types="ember-source/types/stable/@ember/controller/owner-ext" />
|
|
3
|
+
/// <reference types="ember-source/types/stable/@ember/routing/owner-ext" />
|
|
4
|
+
/// <reference types="ember-source/types/stable/@ember/service/owner-ext" />
|
|
5
|
+
import Component from '@glimmer/component';
|
|
6
|
+
import type Owner from '@ember/owner';
|
|
7
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
+
export interface OptionSignature<V> {
|
|
9
|
+
Element: HTMLOptionElement;
|
|
10
|
+
Args: {
|
|
11
|
+
value: V;
|
|
12
|
+
isSelected: (option: V) => boolean;
|
|
13
|
+
registerItem: (item: V) => void;
|
|
14
|
+
unregisterItem: (item: V) => void;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
default: [];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare class Option<V> extends Component<OptionSignature<V>> {
|
|
21
|
+
constructor(owner: Owner, args: OptionSignature<V>['Args']);
|
|
22
|
+
}
|
|
23
|
+
export interface ListSignature<V> {
|
|
24
|
+
Element: HTMLDivElement;
|
|
25
|
+
Args: {
|
|
26
|
+
multiple?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
value?: V | V[];
|
|
29
|
+
update?: (value: V | V[]) => void;
|
|
30
|
+
activateItem?: (value: V) => void;
|
|
31
|
+
};
|
|
32
|
+
Blocks: {
|
|
33
|
+
default: [
|
|
34
|
+
{
|
|
35
|
+
Option: WithBoundArgs<typeof Option<V>, 'isSelected' | 'registerItem' | 'unregisterItem'>;
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export default class List<V> extends Component<ListSignature<V>> {
|
|
41
|
+
Option: {
|
|
42
|
+
new (owner: Owner, args: {
|
|
43
|
+
value: V;
|
|
44
|
+
isSelected: (option: V) => boolean;
|
|
45
|
+
registerItem: (item: V) => void;
|
|
46
|
+
unregisterItem: (item: V) => void;
|
|
47
|
+
}): Option<V>;
|
|
48
|
+
};
|
|
49
|
+
items: V[];
|
|
50
|
+
registerItem: (item: V) => void;
|
|
51
|
+
unregisterItem: (item: V) => void;
|
|
52
|
+
isSelected: (option: V) => boolean;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list.ts"],"names":[],"mappings":";;;;AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAW3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE;QACJ,KAAK,EAAE,CAAC,CAAC;QACT,UAAU,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;QACnC,YAAY,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;QAChC,cAAc,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;KACnC,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,cAAM,MAAM,CAAC,CAAC,CAAE,SAAQ,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBACvC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;CAqB3D;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;QAChB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC;QAClC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;KACnC,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,MAAM,EAAE,aAAa,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,GAAG,cAAc,GAAG,gBAAgB,CAAC,CAAC;aAC3F;SACF,CAAC;KACH,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,IAAI,CAAC,CAAC,CAAE,SAAQ,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC9D,MAAM;;;;;;;MAAa;IAEV,KAAK,EAAE,CAAC,EAAE,CAAsB;IAEzC,YAAY,SAAU,CAAC,UAKrB;IAEF,cAAc,SAAU,CAAC,UAKvB;IAEF,UAAU,WAAY,CAAC,aAMrB;CAkBH"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/owner" />
|
|
2
|
+
/// <reference types="ember-source/types/stable/@ember/controller/owner-ext" />
|
|
3
|
+
/// <reference types="ember-source/types/stable/@ember/routing/owner-ext" />
|
|
4
|
+
/// <reference types="ember-source/types/stable/@ember/service/owner-ext" />
|
|
5
|
+
import Component from '@glimmer/component';
|
|
6
|
+
import type { MenuItemArgs, MenuItemBlocks, MenuItemElement } from './-menu';
|
|
7
|
+
import type Owner from '@ember/owner';
|
|
8
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
9
|
+
export type MenuDefaultBlock = {
|
|
10
|
+
Item: WithBoundArgs<typeof MenuItem, 'registerItem' | 'unregisterItem'>;
|
|
11
|
+
};
|
|
12
|
+
export interface MenuItemSignature {
|
|
13
|
+
Element: MenuItemElement;
|
|
14
|
+
Args: MenuItemArgs & {
|
|
15
|
+
registerItem: (item: MenuItem) => void;
|
|
16
|
+
unregisterItem: (item: MenuItem) => void;
|
|
17
|
+
};
|
|
18
|
+
Blocks: MenuItemBlocks & {
|
|
19
|
+
menu?: [MenuDefaultBlock];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
declare class MenuItem extends Component<MenuItemSignature> {
|
|
23
|
+
constructor(owner: Owner, args: MenuItemSignature['Args']);
|
|
24
|
+
}
|
|
25
|
+
export interface MenuSignature {
|
|
26
|
+
Element: HTMLDivElement;
|
|
27
|
+
Args: {
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
};
|
|
30
|
+
Blocks: {
|
|
31
|
+
default: [MenuDefaultBlock];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export default class Menu extends Component<MenuSignature> {
|
|
35
|
+
items: MenuItem[];
|
|
36
|
+
registerItem: (item: MenuItem) => void;
|
|
37
|
+
unregisterItem: (item: MenuItem) => void;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu.ts"],"names":[],"mappings":";;;;AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAe3C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,aAAa,CAAC,OAAO,QAAQ,EAAE,cAAc,GAAG,gBAAgB,CAAC,CAAC;CACzE,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE,YAAY,GAAG;QACnB,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;QACvC,cAAc,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;KAC1C,CAAC;IACF,MAAM,EAAE,cAAc,GAAG;QACvB,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC;KAC3B,CAAC;CACH;AAyCD,cAAM,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;gBACrC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC;CAuD1D;AAGD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,CAAC,gBAAgB,CAAC,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,SAAS,CAAC,aAAa,CAAC;IAC/C,KAAK,EAAE,QAAQ,EAAE,CAAsB;IAEhD,YAAY,SAAU,QAAQ,UAK5B;IAEF,cAAc,SAAU,QAAQ,UAK9B;CAiBH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
2
|
+
import type { InputArgs } from './-input';
|
|
3
|
+
import type { TOC } from '@ember/component/template-only';
|
|
4
|
+
export interface NumberInputSignature {
|
|
5
|
+
Element: HTMLInputElement;
|
|
6
|
+
Args: InputArgs<number>;
|
|
7
|
+
}
|
|
8
|
+
declare const NumberInput: TOC<NumberInputSignature>;
|
|
9
|
+
export default NumberInput;
|
|
10
|
+
//# sourceMappingURL=number-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../../src/components/number-input.ts"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,QAAA,MAAM,WAAW,EAAE,GAAG,CAAC,oBAAoB,CAczC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
2
|
+
import type { InputArgs } from './-input';
|
|
3
|
+
import type { TOC } from '@ember/component/template-only';
|
|
4
|
+
export interface PasswordInputSignature {
|
|
5
|
+
Element: HTMLInputElement;
|
|
6
|
+
Args: InputArgs<string>;
|
|
7
|
+
}
|
|
8
|
+
declare const PasswordInput: TOC<PasswordInputSignature>;
|
|
9
|
+
export default PasswordInput;
|
|
10
|
+
//# sourceMappingURL=password-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../src/components/password-input.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,QAAA,MAAM,aAAa,EAAE,GAAG,CAAC,sBAAsB,CAc7C,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
2
|
+
import type { InputArgs } from './-input';
|
|
3
|
+
import type { TOC } from '@ember/component/template-only';
|
|
4
|
+
export interface PhoneInputSignature {
|
|
5
|
+
Element: HTMLInputElement;
|
|
6
|
+
Args: InputArgs<string>;
|
|
7
|
+
}
|
|
8
|
+
declare const PhoneInput: TOC<PhoneInputSignature>;
|
|
9
|
+
export default PhoneInput;
|
|
10
|
+
//# sourceMappingURL=phone-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone-input.d.ts","sourceRoot":"","sources":["../../../src/components/phone-input.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,QAAA,MAAM,UAAU,EAAE,GAAG,CAAC,mBAAmB,CAcvC,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
2
|
+
import type { InputArgs } from './-input';
|
|
3
|
+
import type { TOC } from '@ember/component/template-only';
|
|
4
|
+
export interface RadioSignature {
|
|
5
|
+
Element: HTMLInputElement;
|
|
6
|
+
Args: InputArgs<boolean>;
|
|
7
|
+
}
|
|
8
|
+
declare const Radio: TOC<RadioSignature>;
|
|
9
|
+
export default Radio;
|
|
10
|
+
//# sourceMappingURL=radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/components/radio.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC1B;AAED,QAAA,MAAM,KAAK,EAAE,GAAG,CAAC,cAAc,CAc7B,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
2
|
+
import type { TOC } from '@ember/component/template-only';
|
|
3
|
+
export interface SectionSignature {
|
|
4
|
+
Element: HTMLElement;
|
|
5
|
+
Args: {
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The level of the component, 1-6 as in `<h1>` to `<h6>`
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue 2
|
|
11
|
+
*/
|
|
12
|
+
level?: string;
|
|
13
|
+
};
|
|
14
|
+
Blocks: {
|
|
15
|
+
default: [];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare const Section: TOC<SectionSignature>;
|
|
19
|
+
export default Section;
|
|
20
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/components/section.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;;;WAIG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAUD,QAAA,MAAM,OAAO,EAAE,GAAG,CAAC,gBAAgB,CA2CjC,CAAC;AAEH,eAAe,OAAO,CAAC"}
|