@fragiola/primitives-angular 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -0
- package/LICENSE +21 -0
- package/README.md +54 -2
- package/fesm2022/fragiola-primitives-angular-accordion.mjs +567 -0
- package/fesm2022/fragiola-primitives-angular-accordion.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs +562 -0
- package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs +79 -0
- package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-async-list.mjs +44 -0
- package/fesm2022/fragiola-primitives-angular-async-list.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs +243 -0
- package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-autocomplete.mjs +1751 -0
- package/fesm2022/fragiola-primitives-angular-autocomplete.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-avatar.mjs +308 -0
- package/fesm2022/fragiola-primitives-angular-avatar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs +355 -0
- package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-button.mjs +156 -0
- package/fesm2022/fragiola-primitives-angular-button.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs +126 -0
- package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-calendar-view.mjs +289 -0
- package/fesm2022/fragiola-primitives-angular-calendar-view.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-calendar.mjs +1222 -0
- package/fesm2022/fragiola-primitives-angular-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-carousel.mjs +1031 -0
- package/fesm2022/fragiola-primitives-angular-carousel.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-cascade-select.mjs +1391 -0
- package/fesm2022/fragiola-primitives-angular-cascade-select.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs +221 -0
- package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-checkbox.mjs +474 -0
- package/fesm2022/fragiola-primitives-angular-checkbox.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-clipboard.mjs +389 -0
- package/fesm2022/fragiola-primitives-angular-clipboard.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-collapsible.mjs +314 -0
- package/fesm2022/fragiola-primitives-angular-collapsible.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-area.mjs +609 -0
- package/fesm2022/fragiola-primitives-angular-color-area.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-field.mjs +675 -0
- package/fesm2022/fragiola-primitives-angular-color-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs +572 -0
- package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-picker.mjs +528 -0
- package/fesm2022/fragiola-primitives-angular-color-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-slider.mjs +868 -0
- package/fesm2022/fragiola-primitives-angular-color-slider.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs +503 -0
- package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-swatch.mjs +141 -0
- package/fesm2022/fragiola-primitives-angular-color-swatch.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-wheel.mjs +554 -0
- package/fesm2022/fragiola-primitives-angular-color-wheel.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs +247 -0
- package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-combobox.mjs +2083 -0
- package/fesm2022/fragiola-primitives-angular-combobox.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-command-virtual.mjs +263 -0
- package/fesm2022/fragiola-primitives-angular-command-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-command.mjs +977 -0
- package/fesm2022/fragiola-primitives-angular-command.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-context-menu.mjs +1012 -0
- package/fesm2022/fragiola-primitives-angular-context-menu.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-field.mjs +1030 -0
- package/fesm2022/fragiola-primitives-angular-date-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs +511 -0
- package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-picker.mjs +991 -0
- package/fesm2022/fragiola-primitives-angular-date-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-range-field.mjs +847 -0
- package/fesm2022/fragiola-primitives-angular-date-range-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs +260 -0
- package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs +128 -0
- package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-dialog.mjs +1076 -0
- package/fesm2022/fragiola-primitives-angular-dialog.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-direction.mjs +82 -0
- package/fesm2022/fragiola-primitives-angular-direction.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-drawer.mjs +890 -0
- package/fesm2022/fragiola-primitives-angular-drawer.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-drop-zone.mjs +189 -0
- package/fesm2022/fragiola-primitives-angular-drop-zone.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-editable.mjs +955 -0
- package/fesm2022/fragiola-primitives-angular-editable.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-field.mjs +929 -0
- package/fesm2022/fragiola-primitives-angular-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-fieldset.mjs +164 -0
- package/fesm2022/fragiola-primitives-angular-fieldset.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-file-upload.mjs +1370 -0
- package/fesm2022/fragiola-primitives-angular-file-upload.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-form.mjs +162 -0
- package/fesm2022/fragiola-primitives-angular-form.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-hover-card.mjs +906 -0
- package/fesm2022/fragiola-primitives-angular-hover-card.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-internal.mjs +980 -0
- package/fesm2022/fragiola-primitives-angular-internal.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-label.mjs +65 -0
- package/fesm2022/fragiola-primitives-angular-label.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-link.mjs +109 -0
- package/fesm2022/fragiola-primitives-angular-link.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs +657 -0
- package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-listbox.mjs +851 -0
- package/fesm2022/fragiola-primitives-angular-listbox.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-menu.mjs +2258 -0
- package/fesm2022/fragiola-primitives-angular-menu.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-menubar.mjs +303 -0
- package/fesm2022/fragiola-primitives-angular-menubar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-meter.mjs +410 -0
- package/fesm2022/fragiola-primitives-angular-meter.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-month-calendar.mjs +1066 -0
- package/fesm2022/fragiola-primitives-angular-month-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-month-picker.mjs +514 -0
- package/fesm2022/fragiola-primitives-angular-month-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs +163 -0
- package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs +177 -0
- package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs +216 -0
- package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs +1413 -0
- package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-number-field.mjs +1210 -0
- package/fesm2022/fragiola-primitives-angular-number-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-otp-field.mjs +751 -0
- package/fesm2022/fragiola-primitives-angular-otp-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-pagination.mjs +758 -0
- package/fesm2022/fragiola-primitives-angular-pagination.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-password-input.mjs +542 -0
- package/fesm2022/fragiola-primitives-angular-password-input.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-popover.mjs +1011 -0
- package/fesm2022/fragiola-primitives-angular-popover.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-progress.mjs +472 -0
- package/fesm2022/fragiola-primitives-angular-progress.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-radio-group.mjs +321 -0
- package/fesm2022/fragiola-primitives-angular-radio-group.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-radio.mjs +273 -0
- package/fesm2022/fragiola-primitives-angular-radio.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-range-calendar.mjs +108 -0
- package/fesm2022/fragiola-primitives-angular-range-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-rating.mjs +643 -0
- package/fesm2022/fragiola-primitives-angular-rating.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-render.mjs +1 -0
- package/fesm2022/fragiola-primitives-angular-scroll-area.mjs +553 -0
- package/fesm2022/fragiola-primitives-angular-scroll-area.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-search-field.mjs +487 -0
- package/fesm2022/fragiola-primitives-angular-search-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-segmented-control.mjs +762 -0
- package/fesm2022/fragiola-primitives-angular-segmented-control.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-select-virtual.mjs +246 -0
- package/fesm2022/fragiola-primitives-angular-select-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-select.mjs +1433 -0
- package/fesm2022/fragiola-primitives-angular-select.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-separator.mjs +102 -0
- package/fesm2022/fragiola-primitives-angular-separator.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-slider.mjs +1090 -0
- package/fesm2022/fragiola-primitives-angular-slider.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-steps.mjs +819 -0
- package/fesm2022/fragiola-primitives-angular-steps.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-switch.mjs +422 -0
- package/fesm2022/fragiola-primitives-angular-switch.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-tabs.mjs +726 -0
- package/fesm2022/fragiola-primitives-angular-tabs.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-tag-group.mjs +768 -0
- package/fesm2022/fragiola-primitives-angular-tag-group.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-tags-input.mjs +1126 -0
- package/fesm2022/fragiola-primitives-angular-tags-input.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-time-field.mjs +187 -0
- package/fesm2022/fragiola-primitives-angular-time-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-time-range-field.mjs +188 -0
- package/fesm2022/fragiola-primitives-angular-time-range-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-toast.mjs +744 -0
- package/fesm2022/fragiola-primitives-angular-toast.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-toggle-group.mjs +245 -0
- package/fesm2022/fragiola-primitives-angular-toggle-group.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-toggle.mjs +229 -0
- package/fesm2022/fragiola-primitives-angular-toggle.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-toolbar.mjs +623 -0
- package/fesm2022/fragiola-primitives-angular-toolbar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-tooltip.mjs +975 -0
- package/fesm2022/fragiola-primitives-angular-tooltip.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-year-calendar.mjs +163 -0
- package/fesm2022/fragiola-primitives-angular-year-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-year-picker.mjs +177 -0
- package/fesm2022/fragiola-primitives-angular-year-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs +163 -0
- package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs +177 -0
- package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular.mjs +94 -0
- package/package.json +437 -3
- package/types/fragiola-primitives-angular-accordion.d.ts +154 -0
- package/types/fragiola-primitives-angular-alert-dialog.d.ts +176 -0
- package/types/fragiola-primitives-angular-aspect-ratio.d.ts +25 -0
- package/types/fragiola-primitives-angular-async-list.d.ts +32 -0
- package/types/fragiola-primitives-angular-autocomplete-virtual.d.ts +82 -0
- package/types/fragiola-primitives-angular-autocomplete.d.ts +496 -0
- package/types/fragiola-primitives-angular-avatar.d.ts +94 -0
- package/types/fragiola-primitives-angular-breadcrumbs.d.ts +62 -0
- package/types/fragiola-primitives-angular-button.d.ts +66 -0
- package/types/fragiola-primitives-angular-calendar-preset.d.ts +35 -0
- package/types/fragiola-primitives-angular-calendar-view.d.ts +80 -0
- package/types/fragiola-primitives-angular-calendar.d.ts +414 -0
- package/types/fragiola-primitives-angular-carousel.d.ts +300 -0
- package/types/fragiola-primitives-angular-cascade-select.d.ts +404 -0
- package/types/fragiola-primitives-angular-checkbox-group.d.ts +74 -0
- package/types/fragiola-primitives-angular-checkbox.d.ts +111 -0
- package/types/fragiola-primitives-angular-clipboard.d.ts +106 -0
- package/types/fragiola-primitives-angular-collapsible.d.ts +88 -0
- package/types/fragiola-primitives-angular-color-area.d.ts +174 -0
- package/types/fragiola-primitives-angular-color-field.d.ts +174 -0
- package/types/fragiola-primitives-angular-color-picker-popover.d.ts +180 -0
- package/types/fragiola-primitives-angular-color-picker.d.ts +137 -0
- package/types/fragiola-primitives-angular-color-slider.d.ts +228 -0
- package/types/fragiola-primitives-angular-color-swatch-picker.d.ts +146 -0
- package/types/fragiola-primitives-angular-color-swatch.d.ts +43 -0
- package/types/fragiola-primitives-angular-color-wheel.d.ts +144 -0
- package/types/fragiola-primitives-angular-combobox-virtual.d.ts +84 -0
- package/types/fragiola-primitives-angular-combobox.d.ts +582 -0
- package/types/fragiola-primitives-angular-command-virtual.d.ts +93 -0
- package/types/fragiola-primitives-angular-command.d.ts +283 -0
- package/types/fragiola-primitives-angular-context-menu.d.ts +278 -0
- package/types/fragiola-primitives-angular-date-field.d.ts +486 -0
- package/types/fragiola-primitives-angular-date-picker-input.d.ts +139 -0
- package/types/fragiola-primitives-angular-date-picker.d.ts +331 -0
- package/types/fragiola-primitives-angular-date-range-field.d.ts +333 -0
- package/types/fragiola-primitives-angular-date-range-picker-input.d.ts +89 -0
- package/types/fragiola-primitives-angular-date-range-picker.d.ts +35 -0
- package/types/fragiola-primitives-angular-dialog.d.ts +359 -0
- package/types/fragiola-primitives-angular-direction.d.ts +31 -0
- package/types/fragiola-primitives-angular-drawer.d.ts +242 -0
- package/types/fragiola-primitives-angular-drop-zone.d.ts +68 -0
- package/types/fragiola-primitives-angular-editable.d.ts +219 -0
- package/types/fragiola-primitives-angular-field.d.ts +397 -0
- package/types/fragiola-primitives-angular-fieldset.d.ts +47 -0
- package/types/fragiola-primitives-angular-file-upload.d.ts +351 -0
- package/types/fragiola-primitives-angular-form.d.ts +44 -0
- package/types/fragiola-primitives-angular-hover-card.d.ts +279 -0
- package/types/fragiola-primitives-angular-internal.d.ts +695 -0
- package/types/fragiola-primitives-angular-label.d.ts +14 -0
- package/types/fragiola-primitives-angular-link.d.ts +33 -0
- package/types/fragiola-primitives-angular-listbox-virtual.d.ts +193 -0
- package/types/fragiola-primitives-angular-listbox.d.ts +237 -0
- package/types/fragiola-primitives-angular-menu.d.ts +758 -0
- package/types/fragiola-primitives-angular-menubar.d.ts +76 -0
- package/types/fragiola-primitives-angular-meter.d.ts +117 -0
- package/types/fragiola-primitives-angular-month-calendar.d.ts +380 -0
- package/types/fragiola-primitives-angular-month-picker.d.ts +183 -0
- package/types/fragiola-primitives-angular-month-range-calendar.d.ts +54 -0
- package/types/fragiola-primitives-angular-month-range-picker.d.ts +56 -0
- package/types/fragiola-primitives-angular-multiple-calendar.d.ts +73 -0
- package/types/fragiola-primitives-angular-navigation-menu.d.ts +355 -0
- package/types/fragiola-primitives-angular-number-field.d.ts +305 -0
- package/types/fragiola-primitives-angular-otp-field.d.ts +210 -0
- package/types/fragiola-primitives-angular-pagination.d.ts +239 -0
- package/types/fragiola-primitives-angular-password-input.d.ts +149 -0
- package/types/fragiola-primitives-angular-popover.d.ts +303 -0
- package/types/fragiola-primitives-angular-progress.d.ts +126 -0
- package/types/fragiola-primitives-angular-radio-group.d.ts +123 -0
- package/types/fragiola-primitives-angular-radio.d.ts +67 -0
- package/types/fragiola-primitives-angular-range-calendar.d.ts +33 -0
- package/types/fragiola-primitives-angular-rating.d.ts +195 -0
- package/types/fragiola-primitives-angular-render.d.ts +2 -0
- package/types/fragiola-primitives-angular-scroll-area.d.ts +134 -0
- package/types/fragiola-primitives-angular-search-field.d.ts +129 -0
- package/types/fragiola-primitives-angular-segmented-control.d.ts +232 -0
- package/types/fragiola-primitives-angular-select-virtual.d.ts +81 -0
- package/types/fragiola-primitives-angular-select.d.ts +403 -0
- package/types/fragiola-primitives-angular-separator.d.ts +32 -0
- package/types/fragiola-primitives-angular-slider.d.ts +297 -0
- package/types/fragiola-primitives-angular-steps.d.ts +194 -0
- package/types/fragiola-primitives-angular-switch.d.ts +102 -0
- package/types/fragiola-primitives-angular-tabs.d.ts +215 -0
- package/types/fragiola-primitives-angular-tag-group.d.ts +232 -0
- package/types/fragiola-primitives-angular-tags-input.d.ts +318 -0
- package/types/fragiola-primitives-angular-time-field.d.ts +63 -0
- package/types/fragiola-primitives-angular-time-range-field.d.ts +65 -0
- package/types/fragiola-primitives-angular-toast.d.ts +196 -0
- package/types/fragiola-primitives-angular-toggle-group.d.ts +89 -0
- package/types/fragiola-primitives-angular-toggle.d.ts +86 -0
- package/types/fragiola-primitives-angular-toolbar.d.ts +187 -0
- package/types/fragiola-primitives-angular-tooltip.d.ts +330 -0
- package/types/fragiola-primitives-angular-year-calendar.d.ts +54 -0
- package/types/fragiola-primitives-angular-year-picker.d.ts +56 -0
- package/types/fragiola-primitives-angular-year-range-calendar.d.ts +54 -0
- package/types/fragiola-primitives-angular-year-range-picker.d.ts +56 -0
- package/types/fragiola-primitives-angular.d.ts +94 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { PlainDate, PlainDate as PlainDate$1 } from "@fragiola/primitives/date";
|
|
2
|
+
import { DateSegment, DateSegment as DateSegment$1, SegmentEdit, SegmentFormat, SegmentGranularity, SegmentGranularity as SegmentGranularity$1, SegmentKind, SegmentType, SegmentValues } from "@fragiola/primitives/segments";
|
|
3
|
+
import { PlainDateTime, PlainDateTime as PlainDateTime$1, PlainTime, PlainTime as PlainTime$1 } from "@fragiola/primitives/time";
|
|
4
|
+
import { ChangeDetails, ChangeDetails as ChangeDetails$1, ChangeReason, ChangeReason as ChangeReason$1, ValueChangeEvent, ValueChangeEvent as ValueChangeEvent$1 } from "@fragiola/primitives-angular/internal";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import { InjectionToken, OutputEmitterRef, Signal, WritableSignal } from "@angular/core";
|
|
7
|
+
import { CalendarSystem } from "@fragiola/primitives/calendar-systems";
|
|
8
|
+
import { Disambiguation, TimeZone } from "@fragiola/primitives/time-zone";
|
|
9
|
+
import { FieldControlBinding } from "@fragiola/primitives-angular/field";
|
|
10
|
+
/**
|
|
11
|
+
* The `group` of the segments (spec/date-field.md, "Anatomy"), named by the Field's label, else the
|
|
12
|
+
* consumer's (`aria-label`): `<div dateFieldInput #input="dateFieldInput">`. A directive renders no
|
|
13
|
+
* template, so the consumer renders the segments: `@for (segment of input.segments(); track
|
|
14
|
+
* segment.index) { <span [dateFieldSegment]="segment">{{ segment.text }}</span> }`.
|
|
15
|
+
*/
|
|
16
|
+
export declare class DateFieldInput {
|
|
17
|
+
protected readonly dateField: import("@fragiola/primitives-angular/date-field").DateFieldParts;
|
|
18
|
+
/** The segments to render, in the locale's order (the toolkit's `DateSegment`). */
|
|
19
|
+
readonly segments: import("@angular/core").Signal<import("@fragiola/primitives/segments").DateSegment[]>;
|
|
20
|
+
/** The field's state. */
|
|
21
|
+
readonly state: import("@angular/core").Signal<import("@fragiola/primitives-angular/date-field").DateFieldState>;
|
|
22
|
+
constructor();
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFieldInput, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateFieldInput, "[dateFieldInput]", ["dateFieldInput"], {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
/** What a date or time field holds: a date, a date and time, or a time. */
|
|
27
|
+
type FieldValue = PlainDate$1 | PlainDateTime$1 | PlainTime$1;
|
|
28
|
+
/**
|
|
29
|
+
* A value's ISO text at the field's granularity (spec/date-field.md, "Forms"); a zoned value's with
|
|
30
|
+
* its offset and zone (spec/time-zones.md); `""` for none.
|
|
31
|
+
*/
|
|
32
|
+
export declare function isoOf(kind: SegmentKind, granularity: SegmentGranularity$1, value: FieldValue | null | undefined, timeZone?: TimeZone): string;
|
|
33
|
+
/** Orders two values of a field (a `PlainDate` counts as its midnight). */
|
|
34
|
+
export declare function compareValues(kind: SegmentKind, a: FieldValue, b: FieldValue): number;
|
|
35
|
+
/** Whether a value is out of `min` / `max`, or (a date) unavailable (spec/date-field.md). */
|
|
36
|
+
export declare function isOutOfRange(kind: SegmentKind, value: FieldValue, min: FieldValue | null | undefined, max: FieldValue | null | undefined, isDateUnavailable: ((date: PlainDate$1) => boolean) | undefined): boolean;
|
|
37
|
+
/** The value complete segment values make (`null` while one is a placeholder). */
|
|
38
|
+
export declare function composeSegments(format: SegmentFormat, kind: SegmentKind, granularity: SegmentGranularity$1, values: SegmentValues): FieldValue | null;
|
|
39
|
+
/** A bound's ISO text for a hidden input's `min` / `max` (`null` with none). */
|
|
40
|
+
export declare function boundIso(kind: SegmentKind, granularity: SegmentGranularity$1, edge: FieldValue | null | undefined): string | null;
|
|
41
|
+
/** What an edit did: typed a character, erased one (Backspace, Delete), or stepped a segment. */
|
|
42
|
+
type SegmentEditKind = "type" | "erase" | "step";
|
|
43
|
+
/** The change reason of an edit (spec/date-field.md, "API"): `null` after an erase clears. */
|
|
44
|
+
export declare function editReason(edit: SegmentEditKind, value: unknown): ChangeReason$1;
|
|
45
|
+
/** The state every part renders with (spec/date-field.md, "State attributes and ARIA"). */
|
|
46
|
+
interface DateFieldState {
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
readOnly: boolean;
|
|
49
|
+
required: boolean;
|
|
50
|
+
/** Out of range or unavailable, or the Field shows an error. */
|
|
51
|
+
invalid: boolean;
|
|
52
|
+
}
|
|
53
|
+
/** The state attributes of every part: the field's own and its Field's. */
|
|
54
|
+
interface DateFieldData {
|
|
55
|
+
disabled: string | null;
|
|
56
|
+
readonly: string | null;
|
|
57
|
+
required: string | null;
|
|
58
|
+
invalid: string | null;
|
|
59
|
+
valid: string | null;
|
|
60
|
+
dirty: string | null;
|
|
61
|
+
touched: string | null;
|
|
62
|
+
filled: string | null;
|
|
63
|
+
focused: string | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* What the Input and Segment directives read from `DATE_FIELD`: one group of segments with its
|
|
67
|
+
* field's state. A DateField or TimeField provides its own; a range field's and a typed picker's
|
|
68
|
+
* ends each provide theirs (spec/date-range-field.md, spec/calendar.md "Typed input").
|
|
69
|
+
*/
|
|
70
|
+
interface DateFieldParts {
|
|
71
|
+
/** The part attribute of one of its parts. */
|
|
72
|
+
part(name: string): string;
|
|
73
|
+
readonly segments: Signal<DateSegment$1[]>;
|
|
74
|
+
readonly state: Signal<DateFieldState>;
|
|
75
|
+
readonly data: Signal<DateFieldData>;
|
|
76
|
+
readonly disabled: Signal<boolean>;
|
|
77
|
+
readonly readOnly: Signal<boolean>;
|
|
78
|
+
readonly required: Signal<boolean>;
|
|
79
|
+
readonly invalid: Signal<boolean>;
|
|
80
|
+
/** The Input's element, once rendered. */
|
|
81
|
+
readonly inputElement: WritableSignal<HTMLElement | null>;
|
|
82
|
+
readonly field: FieldControlBinding;
|
|
83
|
+
/** What each segment's `aria-labelledby` starts with (the Field's label; a range's Input too). */
|
|
84
|
+
readonly labelledBy: Signal<string | null>;
|
|
85
|
+
/** A key on a segment: whether the field took it (its default is then prevented). */
|
|
86
|
+
segmentKey(segment: DateSegment$1, event: KeyboardEvent, element: HTMLElement): boolean;
|
|
87
|
+
/** Text typed into a segment (`beforeinput`'s data). */
|
|
88
|
+
segmentText(segment: DateSegment$1, text: string, event: Event, element: HTMLElement): void;
|
|
89
|
+
/** A segment lost the focus. */
|
|
90
|
+
segmentBlur(segment: DateSegment$1, event: FocusEvent): void;
|
|
91
|
+
}
|
|
92
|
+
/** What a segment group reads from its root, and reports to it. */
|
|
93
|
+
interface SegmentGroupOwner {
|
|
94
|
+
readonly component: string;
|
|
95
|
+
/** The Input's part attribute, when not `<component>-input` (a picker's `-segments`). */
|
|
96
|
+
readonly inputPart?: string;
|
|
97
|
+
readonly kind: SegmentKind;
|
|
98
|
+
readonly format: Signal<SegmentFormat>;
|
|
99
|
+
readonly granularity: Signal<SegmentGranularity$1>;
|
|
100
|
+
/** The segment values a placeholder's first step starts from (the `placeholderValue`'s). */
|
|
101
|
+
readonly seed: Signal<SegmentValues>;
|
|
102
|
+
readonly state: Signal<DateFieldState>;
|
|
103
|
+
readonly data: Signal<DateFieldData>;
|
|
104
|
+
readonly disabled: Signal<boolean>;
|
|
105
|
+
readonly readOnly: Signal<boolean>;
|
|
106
|
+
readonly required: Signal<boolean>;
|
|
107
|
+
readonly invalid: Signal<boolean>;
|
|
108
|
+
readonly field: FieldControlBinding;
|
|
109
|
+
readonly labelledBy: Signal<string | null>;
|
|
110
|
+
/** The groups the focus moves among (a range's two ends); default: the segment's own. */
|
|
111
|
+
groups?: () => readonly Element[];
|
|
112
|
+
/** An edit changed the segments: the value they make now (`null` while incomplete). */
|
|
113
|
+
onEdit(composed: FieldValue | null, edit: SegmentEditKind, event: Event): void;
|
|
114
|
+
/** The focus left every group (the field's blur). */
|
|
115
|
+
onBlur(): void;
|
|
116
|
+
/** Renders the change at once, before the next key (AGENTS.md, "Porting", 8). */
|
|
117
|
+
flush(): void;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* One group of segments (spec/date-field.md): the values the user set (they follow `source`
|
|
121
|
+
* until the first edit or `replace`), the digits being typed, the segments to render and what
|
|
122
|
+
* their keys and text do. A DateField has one; a range field and a range picker's typed input
|
|
123
|
+
* two, one per end. The value and its reports are the root's (`owner.onEdit`).
|
|
124
|
+
*/
|
|
125
|
+
export declare class SegmentGroup implements DateFieldParts {
|
|
126
|
+
private readonly owner;
|
|
127
|
+
/** The value the segments show until they are edited or replaced. */
|
|
128
|
+
private readonly source;
|
|
129
|
+
/** The segment values the user set; `null` until the first edit (they follow `source`). */
|
|
130
|
+
private readonly ownValues;
|
|
131
|
+
readonly values: Signal<SegmentValues>;
|
|
132
|
+
/** The digits being typed into a segment. */
|
|
133
|
+
readonly edit: WritableSignal<SegmentEdit | null>;
|
|
134
|
+
readonly segments: Signal<DateSegment$1[]>;
|
|
135
|
+
/** The value the segments make (`null` while one is a placeholder). */
|
|
136
|
+
readonly composed: Signal<FieldValue | null>;
|
|
137
|
+
readonly inputElement: WritableSignal<HTMLElement | null>;
|
|
138
|
+
readonly state: Signal<DateFieldState>;
|
|
139
|
+
readonly data: Signal<DateFieldData>;
|
|
140
|
+
readonly disabled: Signal<boolean>;
|
|
141
|
+
readonly readOnly: Signal<boolean>;
|
|
142
|
+
readonly required: Signal<boolean>;
|
|
143
|
+
readonly invalid: Signal<boolean>;
|
|
144
|
+
readonly field: FieldControlBinding;
|
|
145
|
+
readonly labelledBy: Signal<string | null>;
|
|
146
|
+
constructor(owner: SegmentGroupOwner,
|
|
147
|
+
/** The value the segments show until they are edited or replaced. */
|
|
148
|
+
source: Signal<Partial<PlainDateTime$1> | null>);
|
|
149
|
+
part(name: string): string;
|
|
150
|
+
/** Whether every segment is set. */
|
|
151
|
+
complete(): boolean;
|
|
152
|
+
/** Replaces the segments with a value's (`null`: every one a placeholder). */
|
|
153
|
+
replace(value: Partial<PlainDateTime$1> | null): void;
|
|
154
|
+
/** The first focusable segment: the focus target, where a label press and a failed validation go. */
|
|
155
|
+
firstSegment(): HTMLElement | null;
|
|
156
|
+
segmentKey(segment: DateSegment$1, event: KeyboardEvent, element: HTMLElement): boolean;
|
|
157
|
+
segmentText(segment: DateSegment$1, text: string, event: Event, element: HTMLElement): void;
|
|
158
|
+
segmentBlur(segment: DateSegment$1, event: FocusEvent): void;
|
|
159
|
+
private editable;
|
|
160
|
+
private move;
|
|
161
|
+
/** Applies new segment values, reports what they make, and renders before the next key. */
|
|
162
|
+
private apply;
|
|
163
|
+
}
|
|
164
|
+
/** The state attributes of every part: the field's own (`state`) and its Field's. */
|
|
165
|
+
export declare function stateData(state: Signal<DateFieldState>, field: FieldControlBinding): Signal<DateFieldData>;
|
|
166
|
+
/**
|
|
167
|
+
* Which root the shared parts sit in: their part attribute names it (spec/date-field.md; the
|
|
168
|
+
* range fields' and the pickers' typed input, spec/date-range-field.md and spec/calendar.md).
|
|
169
|
+
*/
|
|
170
|
+
type DateFieldComponent = "date-field" | "time-field" | "date-range-field" | "time-range-field" | "date-picker" | "date-range-picker";
|
|
171
|
+
/** A Segment's state: the field's, with its own type and placeholder state. */
|
|
172
|
+
interface DateFieldSegmentState extends DateFieldState {
|
|
173
|
+
type: DateSegment$1["type"];
|
|
174
|
+
placeholder: boolean;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The calendar system and time zone a date field takes (spec/calendar-systems.md,
|
|
178
|
+
* spec/time-zones.md): DateField, DateRangeField and the typed pickers; TimeField and
|
|
179
|
+
* TimeRangeField have none.
|
|
180
|
+
*/
|
|
181
|
+
interface DateFieldSystemInputs {
|
|
182
|
+
/** A calendar system: the segments show and edit its fields; values stay ISO. */
|
|
183
|
+
calendar: Signal<CalendarSystem | undefined>;
|
|
184
|
+
/** A time zone: the values are `ZonedDateTime`s in it. */
|
|
185
|
+
timeZone: Signal<TimeZone | undefined>;
|
|
186
|
+
/** Hides the zone's name segment. */
|
|
187
|
+
hideTimeZone: Signal<boolean>;
|
|
188
|
+
/** How a wall time the zone skips or repeats resolves (default `compatible`). */
|
|
189
|
+
disambiguation: Signal<Disambiguation | undefined>;
|
|
190
|
+
}
|
|
191
|
+
/** The segment format options of a field's calendar system and time zone (none without them). */
|
|
192
|
+
export declare function systemFormat(system: DateFieldSystemInputs | undefined): {
|
|
193
|
+
calendar?: undefined;
|
|
194
|
+
timeZone?: undefined;
|
|
195
|
+
hideTimeZone?: undefined;
|
|
196
|
+
disambiguation?: undefined;
|
|
197
|
+
} | {
|
|
198
|
+
calendar: CalendarSystem | undefined;
|
|
199
|
+
timeZone: TimeZone | undefined;
|
|
200
|
+
hideTimeZone: boolean;
|
|
201
|
+
disambiguation: Disambiguation | undefined;
|
|
202
|
+
};
|
|
203
|
+
/** The hidden input's type: a zoned value's text (`…-05:00[America/New_York]`) is no native date's. */
|
|
204
|
+
export declare function hiddenType(kind: SegmentKind, granularity: SegmentGranularity$1, timeZone: TimeZone | undefined): string;
|
|
205
|
+
/** The inputs a DateField or TimeField root hands its state (spec/date-field.md, "API"). */
|
|
206
|
+
interface DateFieldInputs {
|
|
207
|
+
value: Signal<FieldValue | null | undefined>;
|
|
208
|
+
valueChange: Pick<OutputEmitterRef<FieldValue | null>, "emit">;
|
|
209
|
+
defaultValue: Signal<FieldValue | null>;
|
|
210
|
+
granularity: Signal<SegmentGranularity$1>;
|
|
211
|
+
/** What a placeholder segment's first step gives. */
|
|
212
|
+
placeholderValue: Signal<Partial<PlainDateTime$1>>;
|
|
213
|
+
min: Signal<FieldValue | null | undefined>;
|
|
214
|
+
max: Signal<FieldValue | null | undefined>;
|
|
215
|
+
isDateUnavailable: Signal<((date: PlainDate$1) => boolean) | undefined>;
|
|
216
|
+
hourCycle: Signal<12 | 24 | undefined>;
|
|
217
|
+
locale: Signal<string | undefined>;
|
|
218
|
+
required: Signal<boolean>;
|
|
219
|
+
readOnly: Signal<boolean>;
|
|
220
|
+
disabled: Signal<boolean>;
|
|
221
|
+
name: Signal<string | undefined>;
|
|
222
|
+
/** A DateField's calendar system and time zone (a TimeField has none). */
|
|
223
|
+
system?: DateFieldSystemInputs;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* The enclosing group of segments, for the Input and Segment directives: a DateField's or
|
|
227
|
+
* TimeField's root state, or one end of a range field or a typed picker.
|
|
228
|
+
*/
|
|
229
|
+
export declare const DATE_FIELD: InjectionToken<DateFieldParts>;
|
|
230
|
+
/**
|
|
231
|
+
* The state of a DateField or TimeField (spec/date-field.md): one group of segments
|
|
232
|
+
* (`SegmentGroup`), the value (complete segments only), its validity and its hidden form input,
|
|
233
|
+
* rendered right after the root. The segment editing itself is the toolkit's `/segments`. Created
|
|
234
|
+
* in a root directive's injection context.
|
|
235
|
+
*/
|
|
236
|
+
export declare class DateFieldRootState implements DateFieldParts {
|
|
237
|
+
/** The part attribute's prefix of its parts (`date-field-segment`, `time-field-segment`). */
|
|
238
|
+
readonly component: DateFieldComponent;
|
|
239
|
+
readonly kind: SegmentKind;
|
|
240
|
+
private readonly inputs;
|
|
241
|
+
private readonly emit;
|
|
242
|
+
private readonly flush;
|
|
243
|
+
private readonly document;
|
|
244
|
+
private readonly browser;
|
|
245
|
+
/** Bumped by a change of the document's `lang` in the browser (followed after mount). */
|
|
246
|
+
private readonly language;
|
|
247
|
+
private readonly own;
|
|
248
|
+
/** The value: complete segments, or `null`. */
|
|
249
|
+
readonly value: Signal<FieldValue | null>;
|
|
250
|
+
readonly locale: Signal<string>;
|
|
251
|
+
readonly format: Signal<import("@fragiola/primitives/segments").SegmentFormat>;
|
|
252
|
+
/** The time zone the values are in (spec/time-zones.md), if any. */
|
|
253
|
+
private readonly timeZone;
|
|
254
|
+
private readonly seed;
|
|
255
|
+
/** The value's ISO text (the hidden input's value). */
|
|
256
|
+
readonly iso: Signal<string>;
|
|
257
|
+
readonly field: FieldControlBinding;
|
|
258
|
+
readonly disabled: Signal<boolean>;
|
|
259
|
+
readonly readOnly: Signal<boolean>;
|
|
260
|
+
readonly required: Signal<boolean>;
|
|
261
|
+
/** Out of range or unavailable, or the Field shows an error. */
|
|
262
|
+
readonly invalid: Signal<boolean>;
|
|
263
|
+
readonly state: Signal<DateFieldState>;
|
|
264
|
+
/** The state attributes and the field's, for every part. */
|
|
265
|
+
readonly data: Signal<DateFieldData>;
|
|
266
|
+
readonly labelledBy: Signal<string | null>;
|
|
267
|
+
/** The segments: the one group of a single field. */
|
|
268
|
+
private readonly group;
|
|
269
|
+
readonly segments: Signal<DateSegment$1[]>;
|
|
270
|
+
readonly inputElement: WritableSignal<HTMLElement | null>;
|
|
271
|
+
/** The ISO text the segments reported last: it coming back changes nothing (the typing goes on). */
|
|
272
|
+
private reported;
|
|
273
|
+
constructor(
|
|
274
|
+
/** The part attribute's prefix of its parts (`date-field-segment`, `time-field-segment`). */
|
|
275
|
+
component: DateFieldComponent, kind: SegmentKind, inputs: DateFieldInputs, emit: (value: FieldValue | null, details: ChangeDetails$1) => void, anchor: HTMLElement);
|
|
276
|
+
/** The part attribute of one of its parts. */
|
|
277
|
+
part(name: string): string;
|
|
278
|
+
/** The first focusable segment. */
|
|
279
|
+
firstSegment(): HTMLElement | null;
|
|
280
|
+
segmentKey(segment: DateSegment$1, event: KeyboardEvent, element: HTMLElement): boolean;
|
|
281
|
+
segmentText(segment: DateSegment$1, text: string, event: Event, element: HTMLElement): void;
|
|
282
|
+
segmentBlur(segment: DateSegment$1, event: FocusEvent): void;
|
|
283
|
+
private reset;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* The inputs and the root element both field roots share (spec/date-field.md, "API"). Each root
|
|
287
|
+
* declares its own typed `value`, `granularity`, `placeholderValue` and bounds, and creates the
|
|
288
|
+
* state after them. Every part carries its state (`data-disabled`, `data-readonly`,
|
|
289
|
+
* `data-required`, `data-invalid`, and the Field's).
|
|
290
|
+
*/
|
|
291
|
+
export declare abstract class DateFieldRootBase {
|
|
292
|
+
/** `12` or `24`; default: the locale's. */
|
|
293
|
+
readonly hourCycle: import("@angular/core").InputSignalWithTransform<12 | 24 | undefined, unknown>;
|
|
294
|
+
/** A BCP 47 tag (default: the document's `lang`, then the browser's). */
|
|
295
|
+
readonly locale: import("@angular/core").InputSignal<string | undefined>;
|
|
296
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
297
|
+
readonly readOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
298
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
299
|
+
/** The hidden input's name (inside a Field, the Field's `name` wins). */
|
|
300
|
+
readonly name: import("@angular/core").InputSignal<string | undefined>;
|
|
301
|
+
protected readonly host: HTMLElement;
|
|
302
|
+
/** The root's state, for its parts. */
|
|
303
|
+
abstract readonly dateField: DateFieldRootState;
|
|
304
|
+
/** The state every part renders with, for `exportAs`. */
|
|
305
|
+
get state(): Signal<DateFieldState>;
|
|
306
|
+
/** The inputs the state reads, with the root's own typed ones. */
|
|
307
|
+
protected stateInputs(own: Pick<DateFieldInputs, "value" | "valueChange" | "defaultValue" | "granularity" | "placeholderValue" | "min" | "max" | "isDateUnavailable">, system?: DateFieldSystemInputs): DateFieldInputs;
|
|
308
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFieldRootBase, never>;
|
|
309
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateFieldRootBase, never, never, {
|
|
310
|
+
"hourCycle": {
|
|
311
|
+
"alias": "hourCycle";
|
|
312
|
+
"required": false;
|
|
313
|
+
"isSignal": true;
|
|
314
|
+
};
|
|
315
|
+
"locale": {
|
|
316
|
+
"alias": "locale";
|
|
317
|
+
"required": false;
|
|
318
|
+
"isSignal": true;
|
|
319
|
+
};
|
|
320
|
+
"required": {
|
|
321
|
+
"alias": "required";
|
|
322
|
+
"required": false;
|
|
323
|
+
"isSignal": true;
|
|
324
|
+
};
|
|
325
|
+
"readOnly": {
|
|
326
|
+
"alias": "readOnly";
|
|
327
|
+
"required": false;
|
|
328
|
+
"isSignal": true;
|
|
329
|
+
};
|
|
330
|
+
"disabled": {
|
|
331
|
+
"alias": "disabled";
|
|
332
|
+
"required": false;
|
|
333
|
+
"isSignal": true;
|
|
334
|
+
};
|
|
335
|
+
"name": {
|
|
336
|
+
"alias": "name";
|
|
337
|
+
"required": false;
|
|
338
|
+
"isSignal": true;
|
|
339
|
+
};
|
|
340
|
+
}, {}, never, never, true, never>;
|
|
341
|
+
}
|
|
342
|
+
/** A DateField's value: a date, or a date and time with a time granularity. */
|
|
343
|
+
type DateFieldValue = PlainDate$1 | PlainDateTime$1;
|
|
344
|
+
/**
|
|
345
|
+
* A date (and, with a time granularity, a time) typed in segments, each an APG spinbutton
|
|
346
|
+
* (spec/date-field.md): `<div dateFieldRoot [(value)]="date">` around a `[dateFieldInput]`, its
|
|
347
|
+
* hidden form input rendered right after it.
|
|
348
|
+
*/
|
|
349
|
+
export declare class DateFieldRoot extends DateFieldRootBase {
|
|
350
|
+
/** A `PlainDate` (`day`) or a `PlainDateTime`; `null` while a segment is a placeholder. */
|
|
351
|
+
readonly value: import("@angular/core").InputSignal<DateFieldValue | null | undefined>;
|
|
352
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<DateFieldValue | null>;
|
|
353
|
+
readonly defaultValue: import("@angular/core").InputSignal<DateFieldValue | null>;
|
|
354
|
+
readonly valueChangeDetails: import("@angular/core").OutputEmitterRef<ValueChangeEvent$1<DateFieldValue | null>>;
|
|
355
|
+
/** `day` (the default), or `hour`, `minute`, `second` for a date and time. */
|
|
356
|
+
readonly granularity: import("@angular/core").InputSignal<SegmentGranularity$1>;
|
|
357
|
+
/** What a placeholder segment's first step gives; default: today at midnight. */
|
|
358
|
+
readonly placeholderValue: import("@angular/core").InputSignal<DateFieldValue | undefined>;
|
|
359
|
+
/** Values before it are invalid (a `PlainDate` counts as its midnight). */
|
|
360
|
+
readonly min: import("@angular/core").InputSignal<DateFieldValue | null | undefined>;
|
|
361
|
+
/** Values after it are invalid. */
|
|
362
|
+
readonly max: import("@angular/core").InputSignal<DateFieldValue | null | undefined>;
|
|
363
|
+
/** An unavailable date is invalid. */
|
|
364
|
+
readonly isDateUnavailable: import("@angular/core").InputSignal<((date: PlainDate$1) => boolean) | undefined>;
|
|
365
|
+
/**
|
|
366
|
+
* A calendar system from `@fragiola/primitives/calendar-systems` (spec/calendar-systems.md):
|
|
367
|
+
* the segments show and edit its fields (an era where it has several); values stay ISO.
|
|
368
|
+
*/
|
|
369
|
+
readonly calendar: import("@angular/core").InputSignal<CalendarSystem | undefined>;
|
|
370
|
+
/**
|
|
371
|
+
* A time zone from `@fragiola/primitives/time-zone` (`timeZone("America/New_York")`): the
|
|
372
|
+
* values are `ZonedDateTime`s in it, and a date and time shows the zone's name.
|
|
373
|
+
*/
|
|
374
|
+
readonly timeZone: import("@angular/core").InputSignal<TimeZone | undefined>;
|
|
375
|
+
/** Hides the zone's name segment. */
|
|
376
|
+
readonly hideTimeZone: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
377
|
+
/** How a wall time the zone skips or repeats resolves (Temporal's; default `compatible`). */
|
|
378
|
+
readonly disambiguation: import("@angular/core").InputSignal<Disambiguation | undefined>;
|
|
379
|
+
private readonly todayDate;
|
|
380
|
+
readonly dateField: DateFieldRootState;
|
|
381
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFieldRoot, never>;
|
|
382
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateFieldRoot, "[dateFieldRoot]", ["dateFieldRoot"], {
|
|
383
|
+
"value": {
|
|
384
|
+
"alias": "value";
|
|
385
|
+
"required": false;
|
|
386
|
+
"isSignal": true;
|
|
387
|
+
};
|
|
388
|
+
"defaultValue": {
|
|
389
|
+
"alias": "defaultValue";
|
|
390
|
+
"required": false;
|
|
391
|
+
"isSignal": true;
|
|
392
|
+
};
|
|
393
|
+
"granularity": {
|
|
394
|
+
"alias": "granularity";
|
|
395
|
+
"required": false;
|
|
396
|
+
"isSignal": true;
|
|
397
|
+
};
|
|
398
|
+
"placeholderValue": {
|
|
399
|
+
"alias": "placeholderValue";
|
|
400
|
+
"required": false;
|
|
401
|
+
"isSignal": true;
|
|
402
|
+
};
|
|
403
|
+
"min": {
|
|
404
|
+
"alias": "min";
|
|
405
|
+
"required": false;
|
|
406
|
+
"isSignal": true;
|
|
407
|
+
};
|
|
408
|
+
"max": {
|
|
409
|
+
"alias": "max";
|
|
410
|
+
"required": false;
|
|
411
|
+
"isSignal": true;
|
|
412
|
+
};
|
|
413
|
+
"isDateUnavailable": {
|
|
414
|
+
"alias": "isDateUnavailable";
|
|
415
|
+
"required": false;
|
|
416
|
+
"isSignal": true;
|
|
417
|
+
};
|
|
418
|
+
"calendar": {
|
|
419
|
+
"alias": "calendar";
|
|
420
|
+
"required": false;
|
|
421
|
+
"isSignal": true;
|
|
422
|
+
};
|
|
423
|
+
"timeZone": {
|
|
424
|
+
"alias": "timeZone";
|
|
425
|
+
"required": false;
|
|
426
|
+
"isSignal": true;
|
|
427
|
+
};
|
|
428
|
+
"hideTimeZone": {
|
|
429
|
+
"alias": "hideTimeZone";
|
|
430
|
+
"required": false;
|
|
431
|
+
"isSignal": true;
|
|
432
|
+
};
|
|
433
|
+
"disambiguation": {
|
|
434
|
+
"alias": "disambiguation";
|
|
435
|
+
"required": false;
|
|
436
|
+
"isSignal": true;
|
|
437
|
+
};
|
|
438
|
+
}, {
|
|
439
|
+
"valueChange": "valueChange";
|
|
440
|
+
"valueChangeDetails": "valueChangeDetails";
|
|
441
|
+
}, never, never, true, never>;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* One segment (spec/date-field.md, "State attributes and ARIA"): a `spinbutton` the user types into
|
|
445
|
+
* or steps (the APG), or a literal hidden from assistive technology:
|
|
446
|
+
* `<span [dateFieldSegment]="segment">{{ segment.text }}</span>`, its content the consumer's (the
|
|
447
|
+
* segment's text, or a placeholder's own). Its `aria-label` defaults to the segment's name in the
|
|
448
|
+
* locale; the consumer's static `aria-label` replaces it.
|
|
449
|
+
*/
|
|
450
|
+
export declare class DateFieldSegment {
|
|
451
|
+
/** One of the Input's segments. */
|
|
452
|
+
readonly segment: import("@angular/core").InputSignal<DateSegment$1>;
|
|
453
|
+
protected readonly dateField: import("@fragiola/primitives-angular/date-field").DateFieldParts;
|
|
454
|
+
private readonly host;
|
|
455
|
+
protected readonly id: string;
|
|
456
|
+
private readonly ownLabel;
|
|
457
|
+
protected readonly editable: import("@angular/core").Signal<boolean>;
|
|
458
|
+
protected readonly writable: import("@angular/core").Signal<boolean>;
|
|
459
|
+
private readonly textual;
|
|
460
|
+
protected readonly numeric: import("@angular/core").Signal<boolean>;
|
|
461
|
+
protected readonly inputMode: import("@angular/core").Signal<"numeric" | "text">;
|
|
462
|
+
protected readonly ariaLabel: import("@angular/core").Signal<string | null>;
|
|
463
|
+
protected readonly labelledBy: import("@angular/core").Signal<string | null>;
|
|
464
|
+
/** The segment's state: the field's, with its type and placeholder state. */
|
|
465
|
+
readonly state: import("@angular/core").Signal<DateFieldSegmentState>;
|
|
466
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
467
|
+
protected onBeforeInput(event: InputEvent): void;
|
|
468
|
+
protected onFocus(): void;
|
|
469
|
+
protected onBlur(event: FocusEvent): void;
|
|
470
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFieldSegment, never>;
|
|
471
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateFieldSegment, "[dateFieldSegment]", ["dateFieldSegment"], {
|
|
472
|
+
"segment": {
|
|
473
|
+
"alias": "dateFieldSegment";
|
|
474
|
+
"required": true;
|
|
475
|
+
"isSignal": true;
|
|
476
|
+
};
|
|
477
|
+
}, {}, never, never, true, never>;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* The document's `lang`, then the browser's language (spec/date-field.md, "API", the calendars'
|
|
481
|
+
* rule). A server render has a document (Angular's) but no browser: there it falls back to
|
|
482
|
+
* `en-US`, never the server's own language (Epic #22). The calendars keep their own copy, so their
|
|
483
|
+
* entries are unchanged.
|
|
484
|
+
*/
|
|
485
|
+
export declare function documentLocale(doc: Document, browser: boolean): string;
|
|
486
|
+
export type { ChangeDetails, ChangeReason, DateFieldComponent, DateFieldData, DateFieldInputs, DateFieldParts, DateFieldSegmentState, DateFieldState, DateFieldSystemInputs, DateFieldValue, DateSegment, FieldValue, PlainDate, PlainDateTime, PlainTime, SegmentEditKind, SegmentGranularity, SegmentGroupOwner, SegmentType, ValueChangeEvent };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { DateSegment, SegmentGranularity, SegmentGranularity as SegmentGranularity$1, SegmentType } from "@fragiola/primitives/segments";
|
|
2
|
+
import { PlainDateTime, PlainDateTime as PlainDateTime$1 } from "@fragiola/primitives/time";
|
|
3
|
+
import { DateFieldData, DateFieldInput, DateFieldSegment, DateFieldSegmentState, DateFieldState, DateFieldState as DateFieldState$1, DateFieldSystemInputs, DateFieldValue, DateFieldValue as DateFieldValue$1, FieldValue, SegmentGroup } from "@fragiola/primitives-angular/date-field";
|
|
4
|
+
import { DatePickerComponent, DatePickerInputs, DatePickerRootBase, DatePickerState } from "@fragiola/primitives-angular/date-picker";
|
|
5
|
+
import { Disambiguation, TimeZone } from "@fragiola/primitives/time-zone";
|
|
6
|
+
import { ChangeDetails, OpenChangeEvent, ValueChangeEvent } from "@fragiola/primitives-angular/internal";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import { Signal } from "@angular/core";
|
|
9
|
+
import { CalendarMode } from "@fragiola/primitives-angular/calendar";
|
|
10
|
+
import { FieldRange, RangeEnd, RangeGroups } from "@fragiola/primitives-angular/date-range-field";
|
|
11
|
+
export * from "@fragiola/primitives-angular/date-picker";
|
|
12
|
+
/** A typed picker's value: a date (and time), a range of them, or `null`. */
|
|
13
|
+
type PickerValue = FieldValue | FieldRange | null;
|
|
14
|
+
/** The inputs a typed picker root hands its state: the picker's, and the segments'. */
|
|
15
|
+
interface DatePickerInputInputs extends DatePickerInputs {
|
|
16
|
+
granularity: Signal<SegmentGranularity$1>;
|
|
17
|
+
/** What a placeholder segment's first step gives, and a placeholder time a chosen date takes. */
|
|
18
|
+
placeholderValue: Signal<Partial<PlainDateTime$1>>;
|
|
19
|
+
hourCycle: Signal<12 | 24 | undefined>;
|
|
20
|
+
/** The calendar system and time zone of its segments (spec/calendar-systems.md, spec/time-zones.md). */
|
|
21
|
+
system: DateFieldSystemInputs;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The state of a DatePickerInput or a DateRangePickerInput (spec/calendar.md, "Typed input"): a
|
|
25
|
+
* picker (the open state of its popup, the value its calendar binds to, its form and Field) whose
|
|
26
|
+
* value is also typed into segments, bound both ways: a typed entry sets the value only when it
|
|
27
|
+
* is complete and valid, else `null`; a chosen date replaces the segments; the value the segments
|
|
28
|
+
* reported coming back replaces nothing. The picker's parts read it as a `DatePickerState`;
|
|
29
|
+
* DateField's (and the range field's) parts read its groups. Created in a root directive's
|
|
30
|
+
* injection context.
|
|
31
|
+
*/
|
|
32
|
+
export declare class DatePickerInputState implements RangeGroups {
|
|
33
|
+
readonly component: DatePickerComponent;
|
|
34
|
+
readonly mode: CalendarMode;
|
|
35
|
+
private readonly inputs;
|
|
36
|
+
private readonly emitValue;
|
|
37
|
+
private readonly flush;
|
|
38
|
+
private readonly document;
|
|
39
|
+
private readonly browser;
|
|
40
|
+
private readonly language;
|
|
41
|
+
private readonly own;
|
|
42
|
+
readonly value: Signal<PickerValue>;
|
|
43
|
+
private readonly locale;
|
|
44
|
+
private readonly format;
|
|
45
|
+
private readonly seed;
|
|
46
|
+
private readonly iso;
|
|
47
|
+
/** What the picker's parts read (`DATE_PICKER`). */
|
|
48
|
+
readonly picker: DatePickerState;
|
|
49
|
+
readonly state: Signal<DateFieldState$1>;
|
|
50
|
+
readonly data: Signal<DateFieldData>;
|
|
51
|
+
private readonly start;
|
|
52
|
+
private readonly end;
|
|
53
|
+
private reported;
|
|
54
|
+
constructor(component: DatePickerComponent, mode: CalendarMode, inputs: DatePickerInputInputs, emitOpen: (event: OpenChangeEvent) => void, emitValue: (value: PickerValue, details: ChangeDetails) => void);
|
|
55
|
+
/** One end's group of segments (a single picker's is the start's). */
|
|
56
|
+
group(end: RangeEnd): SegmentGroup;
|
|
57
|
+
private reset;
|
|
58
|
+
}
|
|
59
|
+
/** `hourCycle="24"` and `[hourCycle]="24"` give `24`; nothing gives `undefined`. */
|
|
60
|
+
export declare function hourCycleAttribute(value: unknown): 12 | 24 | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* A DatePicker whose date is also typed into segments (spec/calendar.md, "Typed input"):
|
|
63
|
+
* `<ng-container datePickerInputRoot [(value)]="date">` around a `[dateFieldInput]` (its Segments,
|
|
64
|
+
* named `date-picker-segments`) with `[dateFieldSegment]`s, a `[datePickerTrigger]` and the
|
|
65
|
+
* DatePicker's popup parts.
|
|
66
|
+
*/
|
|
67
|
+
export declare class DatePickerInputRoot extends DatePickerRootBase {
|
|
68
|
+
/** A `PlainDate` (`day`) or a `PlainDateTime`; set only from a complete, valid entry. */
|
|
69
|
+
readonly value: import("@angular/core").InputSignal<DateFieldValue$1 | null | undefined>;
|
|
70
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<DateFieldValue$1 | null>;
|
|
71
|
+
readonly defaultValue: import("@angular/core").InputSignal<DateFieldValue$1 | null | undefined>;
|
|
72
|
+
readonly valueChangeDetails: import("@angular/core").OutputEmitterRef<ValueChangeEvent<DateFieldValue$1 | null>>;
|
|
73
|
+
/** `day` (the default), or `hour`, `minute`, `second`: the time is typed, the calendar chooses the date. */
|
|
74
|
+
readonly granularity: import("@angular/core").InputSignal<SegmentGranularity$1>;
|
|
75
|
+
/** What a placeholder segment's first step gives, and a placeholder time a chosen date takes; default: today at midnight. */
|
|
76
|
+
readonly placeholderValue: import("@angular/core").InputSignal<DateFieldValue$1 | undefined>;
|
|
77
|
+
/** `12` or `24`; default: the locale's. */
|
|
78
|
+
readonly hourCycle: import("@angular/core").InputSignalWithTransform<12 | 24 | undefined, unknown>;
|
|
79
|
+
/**
|
|
80
|
+
* A time zone from `@fragiola/primitives/time-zone` (`timeZone("America/New_York")`): the
|
|
81
|
+
* values are `ZonedDateTime`s in it, and a date and time shows the zone's name.
|
|
82
|
+
*/
|
|
83
|
+
readonly timeZone: import("@angular/core").InputSignal<TimeZone | undefined>;
|
|
84
|
+
/** Hides the zone's name segment. */
|
|
85
|
+
readonly hideTimeZone: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
/** How a wall time the zone skips or repeats resolves (Temporal's; default `compatible`). */
|
|
87
|
+
readonly disambiguation: import("@angular/core").InputSignal<Disambiguation | undefined>;
|
|
88
|
+
private readonly todayDate;
|
|
89
|
+
/** The picker's and the segments' state. */
|
|
90
|
+
readonly typed: DatePickerInputState;
|
|
91
|
+
readonly picker: import("@fragiola/primitives-angular/date-picker").DatePickerState;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerInputRoot, never>;
|
|
93
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatePickerInputRoot, "[datePickerInputRoot]", ["datePickerInputRoot"], {
|
|
94
|
+
"value": {
|
|
95
|
+
"alias": "value";
|
|
96
|
+
"required": false;
|
|
97
|
+
"isSignal": true;
|
|
98
|
+
};
|
|
99
|
+
"defaultValue": {
|
|
100
|
+
"alias": "defaultValue";
|
|
101
|
+
"required": false;
|
|
102
|
+
"isSignal": true;
|
|
103
|
+
};
|
|
104
|
+
"granularity": {
|
|
105
|
+
"alias": "granularity";
|
|
106
|
+
"required": false;
|
|
107
|
+
"isSignal": true;
|
|
108
|
+
};
|
|
109
|
+
"placeholderValue": {
|
|
110
|
+
"alias": "placeholderValue";
|
|
111
|
+
"required": false;
|
|
112
|
+
"isSignal": true;
|
|
113
|
+
};
|
|
114
|
+
"hourCycle": {
|
|
115
|
+
"alias": "hourCycle";
|
|
116
|
+
"required": false;
|
|
117
|
+
"isSignal": true;
|
|
118
|
+
};
|
|
119
|
+
"timeZone": {
|
|
120
|
+
"alias": "timeZone";
|
|
121
|
+
"required": false;
|
|
122
|
+
"isSignal": true;
|
|
123
|
+
};
|
|
124
|
+
"hideTimeZone": {
|
|
125
|
+
"alias": "hideTimeZone";
|
|
126
|
+
"required": false;
|
|
127
|
+
"isSignal": true;
|
|
128
|
+
};
|
|
129
|
+
"disambiguation": {
|
|
130
|
+
"alias": "disambiguation";
|
|
131
|
+
"required": false;
|
|
132
|
+
"isSignal": true;
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
"valueChange": "valueChange";
|
|
136
|
+
"valueChangeDetails": "valueChangeDetails";
|
|
137
|
+
}, never, never, true, never>;
|
|
138
|
+
}
|
|
139
|
+
export { DateFieldInput, DateFieldSegment, type DateFieldSegmentState, type DateFieldState, type DateFieldValue, type DatePickerInputInputs, type DateSegment, type PickerValue, type PlainDateTime, type SegmentGranularity, type SegmentType };
|