@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,31 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/-internals/glimmer/lib/helper" />
|
|
2
|
+
/// <reference types="ember-source/types/stable/@ember/component/helper" />
|
|
3
|
+
import { type Placement } from '@floating-ui/dom';
|
|
4
|
+
declare const popover: import("@ember/component/helper").FunctionBasedHelper<{
|
|
5
|
+
Args: {
|
|
6
|
+
Positional: unknown[];
|
|
7
|
+
Named: {
|
|
8
|
+
position?: Placement | undefined;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
Return: {
|
|
12
|
+
trigger: import("ember-modifier").FunctionBasedModifier<{
|
|
13
|
+
Args: {
|
|
14
|
+
Positional: unknown[];
|
|
15
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
16
|
+
};
|
|
17
|
+
Element: HTMLElement;
|
|
18
|
+
}>;
|
|
19
|
+
target: import("ember-modifier").FunctionBasedModifier<{
|
|
20
|
+
Args: {
|
|
21
|
+
Positional: unknown[];
|
|
22
|
+
Named: {
|
|
23
|
+
manual: boolean;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
Element: HTMLElement;
|
|
27
|
+
}>;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
export default popover;
|
|
31
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/modifiers/popover.ts"],"names":[],"mappings":";;AAGA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAQnE,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;4BASyD,OAAO;;;;;;EAgC3E,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
|
@@ -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 DescriptionSignature {
|
|
4
|
+
Element: HTMLParagraphElement;
|
|
5
|
+
Blocks: {
|
|
6
|
+
default: [];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
declare const Description: TOC<DescriptionSignature>;
|
|
10
|
+
export default Description;
|
|
11
|
+
//# sourceMappingURL=description.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description.d.ts","sourceRoot":"","sources":["../../../../../src/-private/form/components/description.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,oBAAoB,CAAC;IAC9B,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,QAAA,MAAM,WAAW,EAAE,GAAG,CAAC,oBAAoB,CAWzC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { ValidationError } from '../';
|
|
3
|
+
export interface ErrorsSignature<VALUE> {
|
|
4
|
+
Element: HTMLDivElement;
|
|
5
|
+
Args: {
|
|
6
|
+
errors: ValidationError<VALUE>[];
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
Blocks: {
|
|
10
|
+
default?: [ValidationError<VALUE>[]];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export default class Errors<VALUE> extends Component<ErrorsSignature<VALUE>> {
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../src/-private/form/components/errors.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C,MAAM,WAAW,eAAe,CAAC,KAAK;IACpC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QAMJ,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC;QAKjC,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,MAAM,EAAE;QACN,OAAO,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;KACtC,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,MAAM,CAAC,KAAK,CAAE,SAAQ,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;CAuC3E"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { ErrorRecord, FieldValidateCallback, FormData, FormKey, RegisterFieldCallback, UnregisterFieldCallback, UserData, ValidationError } from '../';
|
|
3
|
+
import type { CaptureEventsModifierSignature } from '../modifiers/capture-events';
|
|
4
|
+
import type { ManagaValidationSignature } from '../modifiers/manage-validation';
|
|
5
|
+
import type { LabelSignature } from './label';
|
|
6
|
+
import type { ComponentLike, ModifierLike, WithBoundArgs } from '@glint/template';
|
|
7
|
+
export type BoundField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> = WithBoundArgs<typeof Field<DATA, KEY>, 'data' | 'set' | 'errors' | 'registerField' | 'unregisterField' | 'triggerValidationFor' | 'fieldValidationEvent' | 'fieldRevalidationEvent' | 'manageValidation'>;
|
|
8
|
+
export interface FieldArgs<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
9
|
+
/**
|
|
10
|
+
* The name of your field, which must match a property of the `@data` passed to the form
|
|
11
|
+
*/
|
|
12
|
+
name: KEY;
|
|
13
|
+
/**
|
|
14
|
+
* Provide a custom validation function, that operates only on this specific field. Eventual validation errors are merged with native validation errors to determine the effective set of errors rendered for the field.
|
|
15
|
+
*
|
|
16
|
+
* Return undefined when no validation errors are present, otherwise an array of (one or multiple) `ValidationError`s.
|
|
17
|
+
*/
|
|
18
|
+
validate?: FieldValidateCallback<FormData<DATA>, KEY>;
|
|
19
|
+
/**
|
|
20
|
+
* The label for your field.
|
|
21
|
+
*
|
|
22
|
+
* Alternatively you can use `<:label>` block for more fine-control (which
|
|
23
|
+
* takes precendence if both are given)
|
|
24
|
+
*/
|
|
25
|
+
label: string;
|
|
26
|
+
/**
|
|
27
|
+
* The description for your field.
|
|
28
|
+
*
|
|
29
|
+
* Alternatively you can use `<:description>` block for more fine-control (which
|
|
30
|
+
* takes precendence if both are given)
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface FieldBlock<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
35
|
+
/**
|
|
36
|
+
* The current value of the field's form data.
|
|
37
|
+
*
|
|
38
|
+
* If you don't use one of the supplied control components, then use this to pass the value to your custom component.
|
|
39
|
+
*/
|
|
40
|
+
value?: DATA[KEY];
|
|
41
|
+
/**
|
|
42
|
+
* Action to update the (internal) form data for this field.
|
|
43
|
+
*
|
|
44
|
+
* If you don't use one of the supplied control components, then use this to update the value whenever your custom component's value has changed.
|
|
45
|
+
*/
|
|
46
|
+
setValue: (value: DATA[KEY]) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Unique ID of this field, used to associate the control with its label.
|
|
49
|
+
*
|
|
50
|
+
* If you don't use the supplied components, then you can use this as the `id` of the control and the `for` attribute of the `<label>`.
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
/**
|
|
54
|
+
* Unique error ID of this field, used to associate the control with its validation error message.
|
|
55
|
+
*
|
|
56
|
+
* If you don't use the supplied components, then you can use this as the `id` of the validation error element and the `aria-errormessage` or `aria-describedby` attribute of the control.
|
|
57
|
+
*/
|
|
58
|
+
errorId: string;
|
|
59
|
+
/**
|
|
60
|
+
* Will be `true` when validation was triggered and this field is invalid.
|
|
61
|
+
*
|
|
62
|
+
* You can use this to customize your markup, e.g. apply HTML classes for error styling.
|
|
63
|
+
*/
|
|
64
|
+
invalid: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* An array of raw ValidationError objects, for custom rendering of error output
|
|
67
|
+
*/
|
|
68
|
+
rawErrors?: ValidationError<DATA[KEY]>[];
|
|
69
|
+
/**
|
|
70
|
+
* When calling this action, validation will be triggered.
|
|
71
|
+
*
|
|
72
|
+
* Can be used for custom controls that don't emit the `@validateOn` events that would normally trigger a dynamic validation.
|
|
73
|
+
*/
|
|
74
|
+
triggerValidation: () => void;
|
|
75
|
+
/**
|
|
76
|
+
* Yielded modifier that when applied to the control element or any other element wrapping it will be able to recognize the `@validateOn` events and associate them to this field.
|
|
77
|
+
*
|
|
78
|
+
* This is only needed for very special cases, where the control is not a native form control or does not have the `@name` of the field assigned to the `name` attribute of the control.
|
|
79
|
+
*/
|
|
80
|
+
captureEvents: WithBoundArgs<ModifierLike<CaptureEventsModifierSignature>, 'event' | 'triggerValidation'>;
|
|
81
|
+
manageValidation: WithBoundArgs<ModifierLike<ManagaValidationSignature<DATA>>, 'invalid' | 'errorMessageId' | 'name' | 'showErrorsFor'>;
|
|
82
|
+
}
|
|
83
|
+
export type MultipleFieldBlock<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> = FieldBlock<DATA, KEY> & {
|
|
84
|
+
/**
|
|
85
|
+
* The current value of the field's form data.
|
|
86
|
+
*
|
|
87
|
+
* If you don't use one of the supplied control components, then use this to pass the value to your custom component.
|
|
88
|
+
*/
|
|
89
|
+
value?: DATA[KEY][];
|
|
90
|
+
/**
|
|
91
|
+
* Action to update the (internal) form data for this field.
|
|
92
|
+
*
|
|
93
|
+
* If you don't use one of the supplied control components, then use this to update the value whenever your custom component's value has changed.
|
|
94
|
+
*/
|
|
95
|
+
setValue: (value: DATA[KEY][]) => void;
|
|
96
|
+
};
|
|
97
|
+
export interface FieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
98
|
+
Element: HTMLDivElement;
|
|
99
|
+
Args: FieldArgs<DATA, KEY> & {
|
|
100
|
+
data: FormData<DATA>;
|
|
101
|
+
set: (key: KEY, value: DATA[KEY]) => void;
|
|
102
|
+
errors?: ErrorRecord<DATA, KEY>;
|
|
103
|
+
registerField: RegisterFieldCallback<FormData<DATA>, KEY>;
|
|
104
|
+
unregisterField: UnregisterFieldCallback<FormData<DATA>, KEY>;
|
|
105
|
+
triggerValidationFor(name: KEY): Promise<void>;
|
|
106
|
+
fieldValidationEvent: 'focusout' | 'change' | 'input' | undefined;
|
|
107
|
+
fieldRevalidationEvent: 'focusout' | 'change' | 'input' | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
element?: ComponentLike<{
|
|
112
|
+
Element: HTMLElement;
|
|
113
|
+
Blocks: {
|
|
114
|
+
default: [];
|
|
115
|
+
};
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
labelComponent?: ComponentLike<LabelSignature>;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
manageValidation: WithBoundArgs<ModifierLike<ManagaValidationSignature<DATA>>, 'showErrorsFor'>;
|
|
125
|
+
};
|
|
126
|
+
Blocks: {
|
|
127
|
+
default: [FieldBlock<DATA, KEY>];
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export default class Field<DATA extends FormData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<FieldSignature<DATA, KEY>> {
|
|
131
|
+
constructor(owner: unknown, args: FieldSignature<DATA, KEY>['Args']);
|
|
132
|
+
willDestroy(): void;
|
|
133
|
+
get value(): FormData<DATA>[KEY];
|
|
134
|
+
get errors(): ValidationError<DATA[KEY]>[] | undefined;
|
|
135
|
+
get invalid(): boolean;
|
|
136
|
+
get valueAsString(): string | undefined;
|
|
137
|
+
get valueAsStringOrNumber(): string | number | undefined;
|
|
138
|
+
get valueAsBoolean(): boolean | undefined;
|
|
139
|
+
setValue: (value: DATA[KEY]) => void;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../../src/-private/form/components/field.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAc3C,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,QAAQ,EACR,OAAO,EACP,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACR,eAAe,EAChB,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,aA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EAAE,GAAG,CAAC,CAAC,MAAM,CAAC;IAanE,WAAW,IAAI,IAAI;IAMnB,IAAI,KAAK,wBAIR;IAED,IAAI,MAAM,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,SAAS,CAErD;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAQtC;IAED,IAAI,qBAAqB,IAAI,MAAM,GAAG,MAAM,GAAG,SAAS,CAWvD;IAED,IAAI,cAAc,IAAI,OAAO,GAAG,SAAS,CAQxC;IAED,QAAQ,UAAW,IAAI,CAAC,GAAG,CAAC,KAAG,IAAI,CAEjC;CAuEH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { CheckboxSignature } from '../../../../components/checkbox';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs } from '../field';
|
|
5
|
+
export interface RadioFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
6
|
+
Element: CheckboxSignature['Element'];
|
|
7
|
+
Args: FieldArgs<DATA, KEY> & Omit<CheckboxSignature['Args'], 'value' | 'update'> & {
|
|
8
|
+
Field: BoundField<DATA, KEY>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default class RadioField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<RadioFieldSignature<DATA, KEY>> {
|
|
12
|
+
Field: BoundField<DATA, KEY>;
|
|
13
|
+
setBooleanValue: (setValue: (value: DATA[KEY]) => void) => (value: boolean) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAS3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,mBAAmB,CAClC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACtC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GACxB,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;QACpD,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;CACL;AAED,MAAM,CAAC,OAAO,OAAO,UAAU,CAC7B,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACjD,KAAK,wBAAmB;IAExB,eAAe,aAAc,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,aACtC,OAAO,UACtB;CAiEH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { CurrencyInputSignature } from '../../../../components/currency-input';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs } from '../field';
|
|
5
|
+
export interface CurrencyFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
6
|
+
Element: CurrencyInputSignature['Element'];
|
|
7
|
+
Args: FieldArgs<DATA, KEY> & Omit<CurrencyInputSignature['Args'], 'value' | 'update'> & {
|
|
8
|
+
Field: BoundField<DATA, KEY>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default class CurrencyField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<CurrencyFieldSignature<DATA, KEY>> {
|
|
12
|
+
Field: BoundField<DATA, KEY>;
|
|
13
|
+
setNumberValue: (setValue: (value: DATA[KEY]) => void) => (value: number) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=currency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/currency.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,sBAAsB,CACrC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAC3C,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GACxB,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;QACzD,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;CACL;AAED,MAAM,CAAC,OAAO,OAAO,aAAa,CAChC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,sBAAsB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACpD,KAAK,wBAAmB;IAExB,cAAc,aAAc,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,aACrC,MAAM,UACrB;CAuBH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { DateInputSignature } from '../../../../components/date-input';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs } from '../field';
|
|
5
|
+
export interface DateFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
6
|
+
Element: DateInputSignature['Element'];
|
|
7
|
+
Args: FieldArgs<DATA, KEY> & Omit<DateInputSignature['Args'], 'value' | 'update'> & {
|
|
8
|
+
Field: BoundField<DATA, KEY>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default class DateField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<DateFieldSignature<DATA, KEY>> {
|
|
12
|
+
Field: BoundField<DATA, KEY>;
|
|
13
|
+
setStringValue: (setValue: (value: DATA[KEY]) => void) => (value: string) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/date.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,kBAAkB,CACjC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACvC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GACxB,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;QACrD,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;CACL;AAED,MAAM,CAAC,OAAO,OAAO,SAAS,CAC5B,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAChD,KAAK,wBAAmB;IAExB,cAAc,aAAc,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,aACrC,MAAM,UACrB;CAuBH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { EmailInputSignature } from '../../../../components/email-input';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs } from '../field';
|
|
5
|
+
export interface EmailFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
6
|
+
Element: EmailInputSignature['Element'];
|
|
7
|
+
Args: FieldArgs<DATA, KEY> & Omit<EmailInputSignature['Args'], 'value' | 'update'> & {
|
|
8
|
+
Field: BoundField<DATA, KEY>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default class EmailField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<EmailFieldSignature<DATA, KEY>> {
|
|
12
|
+
Field: BoundField<DATA, KEY>;
|
|
13
|
+
setStringValue: (setValue: (value: DATA[KEY]) => void) => (value: string) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=email.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/email.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,mBAAmB,CAClC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IACxC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GACxB,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;QACtD,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;CACL;AAED,MAAM,CAAC,OAAO,OAAO,UAAU,CAC7B,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACjD,KAAK,wBAAmB;IAExB,cAAc,aAAc,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,aACrC,MAAM,UACrB;CAuBH"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import List from '../../../../components/list';
|
|
3
|
+
import type { ListSignature } from '../../../../components/list';
|
|
4
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
5
|
+
import type { BoundField, FieldArgs } from '../field';
|
|
6
|
+
export interface ListFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
7
|
+
Element: ListSignature<DATA[KEY]>['Element'];
|
|
8
|
+
Args: FieldArgs<DATA, KEY> & Omit<ListSignature<DATA[KEY]>['Args'], 'selection' | 'update'> & {
|
|
9
|
+
Field: BoundField<DATA, KEY>;
|
|
10
|
+
};
|
|
11
|
+
Blocks: ListSignature<DATA[KEY]>['Blocks'];
|
|
12
|
+
}
|
|
13
|
+
export default class ListField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<ListFieldSignature<DATA, KEY>> {
|
|
14
|
+
Field: BoundField<DATA, KEY>;
|
|
15
|
+
List: {
|
|
16
|
+
new (owner: unknown, args: {
|
|
17
|
+
multiple?: boolean | undefined;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
value?: DATA[KEY] | DATA[KEY][] | undefined;
|
|
20
|
+
update?: ((value: DATA[KEY] | DATA[KEY][]) => void) | undefined;
|
|
21
|
+
activateItem?: ((value: DATA[KEY]) => void) | undefined;
|
|
22
|
+
}): List<DATA[KEY]>;
|
|
23
|
+
};
|
|
24
|
+
setValue: (setValue: (value: DATA[KEY]) => void) => (value: DATA[KEY] | DATA[KEY][]) => void;
|
|
25
|
+
asValue: (value: unknown) => DATA[KEY];
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/list.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,IAAI,MAAM,6BAA6B,CAAC;AAG/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AA4BtD,MAAM,WAAW,kBAAkB,CACjC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7C,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GACxB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC,GAAG;QAC/D,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;IACJ,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,OAAO,SAAS,CAC5B,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAChD,KAAK,wBAAmB;IACxB,IAAI;;;;;;;;MAAmB;IAEvB,QAAQ,aAAc,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,aAC/B,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,UACtC;IAEF,OAAO,UAAW,OAAO,eAAwB;CAmClD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { RadioSignature } from '../../../../components/radio';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs, FieldBlock, MultipleFieldBlock } from '../field';
|
|
5
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
6
|
+
export interface OptionSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
7
|
+
Element: RadioSignature['Element'];
|
|
8
|
+
Args: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
/** @internal */
|
|
13
|
+
name: string;
|
|
14
|
+
/** @internal */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** @internal */
|
|
17
|
+
field: MultipleFieldBlock<DATA, KEY>;
|
|
18
|
+
};
|
|
19
|
+
Blocks: {
|
|
20
|
+
default: [];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
declare class Option<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<OptionSignature<DATA, KEY>> {
|
|
24
|
+
select: (checked: boolean) => void;
|
|
25
|
+
get checked(): boolean | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface MultipleChoiceFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
28
|
+
Args: FieldArgs<DATA, KEY> & {
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
Field: BoundField<DATA, KEY>;
|
|
31
|
+
};
|
|
32
|
+
Blocks: {
|
|
33
|
+
default: [
|
|
34
|
+
{
|
|
35
|
+
Option: WithBoundArgs<typeof Option<DATA, KEY>, 'field' | 'name'>;
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export default class MultipleChoiceField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<MultipleChoiceFieldSignature<DATA, KEY>> {
|
|
41
|
+
Field: BoundField<DATA, KEY>;
|
|
42
|
+
Option: {
|
|
43
|
+
new (owner: unknown, args: {
|
|
44
|
+
value: string;
|
|
45
|
+
label: string;
|
|
46
|
+
description?: string | undefined;
|
|
47
|
+
/** @internal */
|
|
48
|
+
name: string;
|
|
49
|
+
/** @internal */
|
|
50
|
+
disabled?: boolean | undefined;
|
|
51
|
+
/** @internal */
|
|
52
|
+
field: MultipleFieldBlock<DATA, KEY>;
|
|
53
|
+
}): Option<DATA, KEY>;
|
|
54
|
+
};
|
|
55
|
+
asMultiField: (field: FieldBlock<DATA, KEY>) => MultipleFieldBlock<DATA, KEY>;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=multiple-choice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multiple-choice.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/multiple-choice.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAW3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC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AI,CAAC,CAAC;IAE7D,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG;QAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,MAAM,EAAE,aAAa,CAAC,OAAO,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;aACnE;SACF,CAAC;KACH,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,mBAAmB,CACtC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,4BAA4B,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1D,KAAK,wBAAmB;IACxB,MAAM;;;;;YAxHJ,gBAAgB;;YAGhB,gBAAgB;;YAGhB,gBAAgB;;;MAkHS;IAE3B,YAAY,UAAW,WAAW,IAAI,EAAE,GAAG,CAAC,mCAE1C;CAuBH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { NumberInputSignature } from '../../../../components/number-input';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs } from '../field';
|
|
5
|
+
export interface NumberFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
6
|
+
Element: NumberInputSignature['Element'];
|
|
7
|
+
Args: FieldArgs<DATA, KEY> & Omit<NumberInputSignature['Args'], 'value' | 'update'> & {
|
|
8
|
+
Field: BoundField<DATA, KEY>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default class NumberField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<NumberFieldSignature<DATA, KEY>> {
|
|
12
|
+
Field: BoundField<DATA, KEY>;
|
|
13
|
+
setNumberValue: (setValue: (value: DATA[KEY]) => void) => (value: number) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/number.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,oBAAoB,CACnC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACzC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GACxB,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;QACvD,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;CACL;AAED,MAAM,CAAC,OAAO,OAAO,WAAW,CAC9B,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClD,KAAK,wBAAmB;IAExB,cAAc,aAAc,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,aACrC,MAAM,UACrB;CAuBH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { PasswordInputSignature } from '../../../../components/password-input';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs } from '../field';
|
|
5
|
+
export interface PasswordFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
6
|
+
Element: PasswordInputSignature['Element'];
|
|
7
|
+
Args: FieldArgs<DATA, KEY> & Omit<PasswordInputSignature['Args'], 'value' | 'update'> & {
|
|
8
|
+
Field: BoundField<DATA, KEY>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default class PasswordField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<PasswordFieldSignature<DATA, KEY>> {
|
|
12
|
+
Field: BoundField<DATA, KEY>;
|
|
13
|
+
setStringValue: (setValue: (value: DATA[KEY]) => void) => (value: string) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/password.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,sBAAsB,CACrC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAC3C,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GACxB,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;QACzD,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;CACL;AAED,MAAM,CAAC,OAAO,OAAO,aAAa,CAChC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,sBAAsB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACpD,KAAK,wBAAmB;IAExB,cAAc,aAAc,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,aACrC,MAAM,UACrB;CAuBH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { PhoneInputSignature } from '../../../../components/phone-input';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs } from '../field';
|
|
5
|
+
export interface PhoneFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
6
|
+
Element: PhoneInputSignature['Element'];
|
|
7
|
+
Args: FieldArgs<DATA, KEY> & Omit<PhoneInputSignature['Args'], 'value' | 'update'> & {
|
|
8
|
+
Field: BoundField<DATA, KEY>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default class PhoneField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<PhoneFieldSignature<DATA, KEY>> {
|
|
12
|
+
Field: BoundField<DATA, KEY>;
|
|
13
|
+
setStringValue: (setValue: (value: DATA[KEY]) => void) => (value: string) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=phone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/phone.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,mBAAmB,CAClC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IACxC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GACxB,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;QACtD,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;CACL;AAED,MAAM,CAAC,OAAO,OAAO,UAAU,CAC7B,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACjD,KAAK,wBAAmB;IAExB,cAAc,aAAc,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,aACrC,MAAM,UACrB;CAuBH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { SelectSignature, Value } from '../../../../components/select';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs } from '../field';
|
|
5
|
+
export interface SelectFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
6
|
+
Element: SelectSignature['Element'];
|
|
7
|
+
Args: FieldArgs<DATA, KEY> & Omit<SelectSignature['Args'], 'selection' | 'update'> & {
|
|
8
|
+
Field: BoundField<DATA, KEY>;
|
|
9
|
+
};
|
|
10
|
+
Blocks: SelectSignature['Blocks'];
|
|
11
|
+
}
|
|
12
|
+
export default class SelectField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<SelectFieldSignature<DATA, KEY>> {
|
|
13
|
+
Field: BoundField<DATA, KEY>;
|
|
14
|
+
setValue: (setValue: (value: DATA[KEY]) => void) => (value: Value | Value[]) => void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/select.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,oBAAoB,CACnC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GACxB,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC,GAAG;QACtD,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;IACJ,MAAM,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,OAAO,WAAW,CAC9B,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClD,KAAK,wBAAmB;IAExB,QAAQ,aAAc,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,aAC/B,KAAK,GAAG,KAAK,EAAE,UAC9B;CA4BH"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { RadioSignature } from '../../../../components/radio';
|
|
3
|
+
import type { FormData, FormKey, UserData } from '../../';
|
|
4
|
+
import type { BoundField, FieldArgs, FieldBlock } from '../field';
|
|
5
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
6
|
+
export interface OptionSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
7
|
+
Element: RadioSignature['Element'];
|
|
8
|
+
Args: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
/** @internal */
|
|
13
|
+
name: string;
|
|
14
|
+
/** @internal */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** @internal */
|
|
17
|
+
field: FieldBlock<DATA, KEY>;
|
|
18
|
+
};
|
|
19
|
+
Blocks: {
|
|
20
|
+
default: [];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
declare class Option<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<OptionSignature<DATA, KEY>> {
|
|
24
|
+
select: () => void;
|
|
25
|
+
}
|
|
26
|
+
export interface SingularChoiceFieldSignature<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> {
|
|
27
|
+
Args: FieldArgs<DATA, KEY> & {
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
Field: BoundField<DATA, KEY>;
|
|
30
|
+
};
|
|
31
|
+
Blocks: {
|
|
32
|
+
default: [
|
|
33
|
+
{
|
|
34
|
+
Option: WithBoundArgs<typeof Option<DATA, KEY>, 'field' | 'name'>;
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export default class SingularChoiceField<DATA extends UserData, KEY extends FormKey<FormData<DATA>> = FormKey<FormData<DATA>>> extends Component<SingularChoiceFieldSignature<DATA, KEY>> {
|
|
40
|
+
Field: BoundField<DATA, KEY>;
|
|
41
|
+
Option: {
|
|
42
|
+
new (owner: unknown, args: {
|
|
43
|
+
value: string;
|
|
44
|
+
label: string;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
/** @internal */
|
|
47
|
+
name: string;
|
|
48
|
+
/** @internal */
|
|
49
|
+
disabled?: boolean | undefined;
|
|
50
|
+
/** @internal */
|
|
51
|
+
field: FieldBlock<DATA, KEY>;
|
|
52
|
+
}): Option<DATA, KEY>;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=singular-choice.d.ts.map
|
|
@@ -0,0 +1 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6DH;AAED,MAAM,WAAW,4BAA4B,CAC3C,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG;QAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC9B,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,MAAM,EAAE,aAAa,CAAC,OAAO,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;aACnE;SACF,CAAC;KACH,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,mBAAmB,CACtC,IAAI,SAAS,QAAQ,EACrB,GAAG,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAC7D,SAAQ,SAAS,CAAC,4BAA4B,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1D,KAAK,wBAAmB;IACxB,MAAM;;;;;YAzGJ,gBAAgB;;YAGhB,gBAAgB;;YAGhB,gBAAgB;;;MAmGS;CAuB5B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface FieldArgs {
|
|
2
|
+
label: string;
|
|
3
|
+
description: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
disabled?: boolean | string;
|
|
6
|
+
required?: boolean | string;
|
|
7
|
+
submit: (data: object) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const baseArgTypes: {
|
|
10
|
+
label: {
|
|
11
|
+
name: string;
|
|
12
|
+
control: string;
|
|
13
|
+
};
|
|
14
|
+
description: {
|
|
15
|
+
name: string;
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
name: string;
|
|
20
|
+
control: string;
|
|
21
|
+
};
|
|
22
|
+
required: {
|
|
23
|
+
name: string;
|
|
24
|
+
control: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const argTypesWithPlaceholder: {
|
|
28
|
+
placeholder: {
|
|
29
|
+
name: string;
|
|
30
|
+
control: string;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
name: string;
|
|
34
|
+
control: string;
|
|
35
|
+
};
|
|
36
|
+
description: {
|
|
37
|
+
name: string;
|
|
38
|
+
control: string;
|
|
39
|
+
};
|
|
40
|
+
disabled: {
|
|
41
|
+
name: string;
|
|
42
|
+
control: string;
|
|
43
|
+
};
|
|
44
|
+
required: {
|
|
45
|
+
name: string;
|
|
46
|
+
control: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare function parseArgs(args: FieldArgs): FieldArgs;
|
|
50
|
+
//# sourceMappingURL=stories-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stories-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/-private/form/components/fields/stories-utils.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;CAiBxB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAC;AAEF,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,CAepD"}
|