@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,657 @@
|
|
|
1
|
+
import { ListboxRoot } from "@fragiola/primitives-angular/listbox";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { DestroyRef, Directive, afterNextRender, afterRenderEffect, booleanAttribute, computed, forwardRef, inject, input, numberAttribute, output, signal, untracked } from "@angular/core";
|
|
4
|
+
import { createTypeahead } from "@fragiola/primitives/collection";
|
|
5
|
+
import { getDirection } from "@fragiola/primitives/direction";
|
|
6
|
+
import { VISUALLY_HIDDEN_INPUT_STYLE, bridgeForm } from "@fragiola/primitives/form";
|
|
7
|
+
import { applySelection, createListModel, listKeyTarget, listPressSelection, sameSelection } from "@fragiola/primitives/selection";
|
|
8
|
+
import { createVirtualizer } from "@fragiola/primitives/virtual";
|
|
9
|
+
import { fieldControl, writeFieldAria } from "@fragiola/primitives-angular/field";
|
|
10
|
+
import { bindVirtualRow, controllable, dataValues, injectFlush, injectHost, injectProvidedDirection, injectVirtualRows } from "@fragiola/primitives-angular/internal";
|
|
11
|
+
export * from "@fragiola/primitives-angular/listbox";
|
|
12
|
+
const NONE = [];
|
|
13
|
+
const orientation = "vertical";
|
|
14
|
+
var ListboxVirtualRoot = class ListboxVirtualRoot {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
17
|
+
this.multiple = input(false, {
|
|
18
|
+
...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
|
|
19
|
+
transform: booleanAttribute
|
|
20
|
+
});
|
|
21
|
+
this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
22
|
+
this.valueChange = output();
|
|
23
|
+
this.defaultValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
|
|
24
|
+
this.valueChangeDetails = output();
|
|
25
|
+
this.selectionBehavior = input("toggle", ...ngDevMode ? [{ debugName: "selectionBehavior" }] : /* istanbul ignore next */ []);
|
|
26
|
+
this.loopFocus = input(true, {
|
|
27
|
+
...ngDevMode ? { debugName: "loopFocus" } : /* istanbul ignore next */ {},
|
|
28
|
+
transform: booleanAttribute
|
|
29
|
+
});
|
|
30
|
+
this.disabled = input(false, {
|
|
31
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
32
|
+
transform: booleanAttribute
|
|
33
|
+
});
|
|
34
|
+
this.name = input(void 0, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
35
|
+
this.required = input(false, {
|
|
36
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
37
|
+
transform: booleanAttribute
|
|
38
|
+
});
|
|
39
|
+
this.itemSize = input(36, ...ngDevMode ? [{ debugName: "itemSize" }] : /* istanbul ignore next */ []);
|
|
40
|
+
this.measure = input(true, {
|
|
41
|
+
...ngDevMode ? { debugName: "measure" } : /* istanbul ignore next */ {},
|
|
42
|
+
transform: booleanAttribute
|
|
43
|
+
});
|
|
44
|
+
this.overscan = input(4, {
|
|
45
|
+
...ngDevMode ? { debugName: "overscan" } : /* istanbul ignore next */ {},
|
|
46
|
+
transform: numberAttribute
|
|
47
|
+
});
|
|
48
|
+
this.loading = input(false, {
|
|
49
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
50
|
+
transform: booleanAttribute
|
|
51
|
+
});
|
|
52
|
+
this.loadMore = output();
|
|
53
|
+
this.host = injectHost();
|
|
54
|
+
this.direction = injectProvidedDirection();
|
|
55
|
+
this.flush = injectFlush();
|
|
56
|
+
this.selection = controllable(this.value, this.valueChange, () => this.defaultValue() ?? (this.multiple() ? NONE : null), (value, details) => this.valueChangeDetails.emit({
|
|
57
|
+
value,
|
|
58
|
+
details
|
|
59
|
+
}));
|
|
60
|
+
this.selected = computed(() => {
|
|
61
|
+
const value = this.selection.value();
|
|
62
|
+
if (Array.isArray(value)) return value;
|
|
63
|
+
return value === null || value === void 0 ? NONE : [value];
|
|
64
|
+
}, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
|
|
65
|
+
this.entries = signal([], ...ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []);
|
|
66
|
+
this.focusedValue = signal(null, ...ngDevMode ? [{ debugName: "focusedValue" }] : /* istanbul ignore next */ []);
|
|
67
|
+
this.within = signal(false, ...ngDevMode ? [{ debugName: "within" }] : /* istanbul ignore next */ []);
|
|
68
|
+
this.anchor = null;
|
|
69
|
+
this.typeahead = createTypeahead();
|
|
70
|
+
this.indexOf = computed(() => new Map(this.items().map((item, index) => [item.value, index])), ...ngDevMode ? [{ debugName: "indexOf" }] : /* istanbul ignore next */ []);
|
|
71
|
+
this.model = computed(() => createListModel(this.items().map((item) => ({
|
|
72
|
+
key: item.value,
|
|
73
|
+
textValue: item.label,
|
|
74
|
+
disabled: item.disabled === true
|
|
75
|
+
}))), ...ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []);
|
|
76
|
+
this.tabStopValue = computed(() => {
|
|
77
|
+
const focused = this.focusedValue();
|
|
78
|
+
if (this.within() && focused !== null && this.indexOf().has(focused)) return focused;
|
|
79
|
+
const selected = this.selected();
|
|
80
|
+
const items = this.items();
|
|
81
|
+
return items.find((item) => selected.includes(item.value))?.value ?? items[0]?.value ?? null;
|
|
82
|
+
}, ...ngDevMode ? [{ debugName: "tabStopValue" }] : /* istanbul ignore next */ []);
|
|
83
|
+
this.virtual = injectVirtualRows({
|
|
84
|
+
createVirtualizer,
|
|
85
|
+
host: this.host,
|
|
86
|
+
items: () => this.items(),
|
|
87
|
+
pinned: () => [this.tabStopValue(), this.focusedValue()].flatMap((key) => key === null ? [] : [this.indexOf().get(key) ?? -1]),
|
|
88
|
+
itemSize: this.itemSize,
|
|
89
|
+
measure: this.measure,
|
|
90
|
+
overscan: this.overscan,
|
|
91
|
+
loading: this.loading,
|
|
92
|
+
loadMore: () => this.loadMore.emit()
|
|
93
|
+
});
|
|
94
|
+
this.rows = this.virtual.rows;
|
|
95
|
+
this.field = fieldControl({
|
|
96
|
+
id: signal(void 0),
|
|
97
|
+
labelable: false,
|
|
98
|
+
value: computed(() => this.selection.value()),
|
|
99
|
+
filled: computed(() => this.selected().length > 0),
|
|
100
|
+
input: () => this.validation,
|
|
101
|
+
element: () => this.host,
|
|
102
|
+
focusTarget: () => this.tabStopElement()
|
|
103
|
+
});
|
|
104
|
+
this.isDisabled = computed(() => this.disabled() || this.field.disabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
|
|
105
|
+
this.formName = computed(() => this.field.name() ?? this.name(), ...ngDevMode ? [{ debugName: "formName" }] : /* istanbul ignore next */ []);
|
|
106
|
+
this.tabStop = computed(() => this.isDisabled() ? null : this.elementOf(this.tabStopValue()), ...ngDevMode ? [{ debugName: "tabStop" }] : /* istanbul ignore next */ []);
|
|
107
|
+
this.highlighted = computed(() => this.within() && !this.isDisabled() ? this.elementOf(this.focusedValue()) : null, ...ngDevMode ? [{ debugName: "highlighted" }] : /* istanbul ignore next */ []);
|
|
108
|
+
this.state = computed(() => ({
|
|
109
|
+
multiple: this.multiple(),
|
|
110
|
+
disabled: this.isDisabled(),
|
|
111
|
+
orientation
|
|
112
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
113
|
+
this.data = computed(() => dataValues({
|
|
114
|
+
...this.state(),
|
|
115
|
+
loading: this.loading()
|
|
116
|
+
}), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
117
|
+
const host = this.host;
|
|
118
|
+
writeFieldAria(this.field, host, {
|
|
119
|
+
"aria-labelledby": this.field.labelledBy,
|
|
120
|
+
"aria-describedby": this.field.describedBy,
|
|
121
|
+
"aria-invalid": this.field.ariaInvalid
|
|
122
|
+
});
|
|
123
|
+
const validation = host.ownerDocument.createElement("input");
|
|
124
|
+
validation.setAttribute("aria-hidden", "true");
|
|
125
|
+
validation.tabIndex = -1;
|
|
126
|
+
validation.setAttribute("data-primitives-part", "listbox-input");
|
|
127
|
+
Object.assign(validation.style, VISUALLY_HIDDEN_INPUT_STYLE);
|
|
128
|
+
this.validation = validation;
|
|
129
|
+
const hidden = [];
|
|
130
|
+
const destroyRef = inject(DestroyRef);
|
|
131
|
+
let mounted = false;
|
|
132
|
+
let stop = null;
|
|
133
|
+
afterNextRender(() => {
|
|
134
|
+
mounted = true;
|
|
135
|
+
host.appendChild(validation);
|
|
136
|
+
stop = bridgeForm(validation, {
|
|
137
|
+
reset: () => {
|
|
138
|
+
this.field.reset();
|
|
139
|
+
this.anchor = null;
|
|
140
|
+
this.selection.set(untracked(this.defaultValue) ?? (untracked(this.multiple) ? NONE : null), { reason: "none" });
|
|
141
|
+
},
|
|
142
|
+
invalid: () => this.tabStopElement()
|
|
143
|
+
});
|
|
144
|
+
this.writeInputs(hidden);
|
|
145
|
+
});
|
|
146
|
+
afterRenderEffect({ write: () => {
|
|
147
|
+
this.selected();
|
|
148
|
+
this.formName();
|
|
149
|
+
this.isDisabled();
|
|
150
|
+
this.required();
|
|
151
|
+
this.multiple();
|
|
152
|
+
if (mounted) untracked(() => this.writeInputs(hidden));
|
|
153
|
+
} });
|
|
154
|
+
destroyRef.onDestroy(() => {
|
|
155
|
+
stop?.();
|
|
156
|
+
validation.remove();
|
|
157
|
+
for (const input of hidden) input.remove();
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
writeInputs(hidden) {
|
|
161
|
+
const validation = this.validation;
|
|
162
|
+
const multiple = this.multiple();
|
|
163
|
+
const selected = this.selected();
|
|
164
|
+
const name = this.formName();
|
|
165
|
+
const disabled = this.isDisabled();
|
|
166
|
+
const required = this.required();
|
|
167
|
+
if (multiple || name === void 0) validation.removeAttribute("name");
|
|
168
|
+
else validation.setAttribute("name", name);
|
|
169
|
+
validation.value = multiple ? "" : selected[0] ?? "";
|
|
170
|
+
validation.required = multiple ? required && selected.length === 0 : required;
|
|
171
|
+
validation.disabled = disabled;
|
|
172
|
+
const values = multiple && name !== void 0 ? selected : NONE;
|
|
173
|
+
while (hidden.length > values.length) hidden.pop()?.remove();
|
|
174
|
+
while (hidden.length < values.length) {
|
|
175
|
+
const input = this.host.ownerDocument.createElement("input");
|
|
176
|
+
input.type = "hidden";
|
|
177
|
+
input.setAttribute("data-primitives-part", "listbox-input");
|
|
178
|
+
hidden.push(input);
|
|
179
|
+
}
|
|
180
|
+
let previous = validation;
|
|
181
|
+
for (const [index, input] of hidden.entries()) {
|
|
182
|
+
input.name = name ?? "";
|
|
183
|
+
input.value = values[index] ?? "";
|
|
184
|
+
input.disabled = disabled;
|
|
185
|
+
if (previous.nextSibling !== input) this.host.insertBefore(input, previous.nextSibling);
|
|
186
|
+
previous = input;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
elementOf(key) {
|
|
190
|
+
if (key === null) return null;
|
|
191
|
+
return this.entries().find((entry) => entry.value === key)?.element ?? null;
|
|
192
|
+
}
|
|
193
|
+
tabStopElement() {
|
|
194
|
+
return untracked(() => this.elementOf(this.tabStopValue()));
|
|
195
|
+
}
|
|
196
|
+
commit(change, reason, event) {
|
|
197
|
+
if (change === null) return;
|
|
198
|
+
const current = untracked(this.selected);
|
|
199
|
+
const multiple = untracked(this.multiple);
|
|
200
|
+
const next = applySelection(untracked(this.model), {
|
|
201
|
+
selected: current,
|
|
202
|
+
anchor: this.anchor
|
|
203
|
+
}, change, {
|
|
204
|
+
mode: multiple ? "multiple" : "single",
|
|
205
|
+
behavior: untracked(this.selectionBehavior)
|
|
206
|
+
});
|
|
207
|
+
this.anchor = next.anchor;
|
|
208
|
+
if (sameSelection(next.selected, current)) return;
|
|
209
|
+
this.selection.set(multiple ? [...next.selected] : next.selected[0] ?? null, {
|
|
210
|
+
reason,
|
|
211
|
+
event
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
onKeyDown(event) {
|
|
215
|
+
if (untracked(this.isDisabled) || event.defaultPrevented) return;
|
|
216
|
+
const entry = untracked(this.entries).find((candidate) => candidate.element === event.target);
|
|
217
|
+
const index = entry === void 0 ? -1 : untracked(this.indexOf).get(entry.value) ?? -1;
|
|
218
|
+
if (index === -1) return;
|
|
219
|
+
const model = untracked(this.model);
|
|
220
|
+
const virtualizer = this.virtual.virtualizer;
|
|
221
|
+
const result = listKeyTarget(event, model, index, {
|
|
222
|
+
orientation,
|
|
223
|
+
rtl: getDirection(this.host, this.direction()) === "rtl",
|
|
224
|
+
loop: untracked(this.loopFocus),
|
|
225
|
+
mode: untracked(this.multiple) ? "multiple" : "single",
|
|
226
|
+
behavior: untracked(this.selectionBehavior),
|
|
227
|
+
page: (from, delta) => virtualizer.pageIndex(from, delta),
|
|
228
|
+
typeahead: (character, from) => this.typeahead.match(character, model.labels, from)
|
|
229
|
+
});
|
|
230
|
+
if (result === null) return;
|
|
231
|
+
event.preventDefault();
|
|
232
|
+
const target = untracked(this.items)[result.index];
|
|
233
|
+
if (target !== void 0) {
|
|
234
|
+
this.focusedValue.set(target.value);
|
|
235
|
+
virtualizer.scrollToIndex(result.index);
|
|
236
|
+
this.flush();
|
|
237
|
+
this.host.querySelector(`[data-index="${result.index}"]`)?.focus();
|
|
238
|
+
}
|
|
239
|
+
this.commit(result.selection, "keyboard", event);
|
|
240
|
+
this.flush();
|
|
241
|
+
}
|
|
242
|
+
onFocusOut(event) {
|
|
243
|
+
const next = event.relatedTarget;
|
|
244
|
+
if (next instanceof Node && this.host.contains(next)) return;
|
|
245
|
+
this.within.set(false);
|
|
246
|
+
this.typeahead.reset();
|
|
247
|
+
this.field.blurred();
|
|
248
|
+
}
|
|
249
|
+
register(entry) {
|
|
250
|
+
this.entries.update((current) => [...current, entry]);
|
|
251
|
+
return () => this.entries.update((current) => current.filter((item) => item !== entry));
|
|
252
|
+
}
|
|
253
|
+
focused(element) {
|
|
254
|
+
const entry = untracked(this.entries).find((candidate) => candidate.element === element);
|
|
255
|
+
if (entry !== void 0) this.focusedValue.set(entry.value);
|
|
256
|
+
this.within.set(true);
|
|
257
|
+
}
|
|
258
|
+
press(element, event) {
|
|
259
|
+
const entry = untracked(this.entries).find((candidate) => candidate.element === element);
|
|
260
|
+
if (entry === void 0 || untracked(this.isDisabled)) return;
|
|
261
|
+
element.focus();
|
|
262
|
+
this.commit(listPressSelection(entry.value, event, {
|
|
263
|
+
mode: untracked(this.multiple) ? "multiple" : "single",
|
|
264
|
+
behavior: untracked(this.selectionBehavior)
|
|
265
|
+
}), "item-press", event);
|
|
266
|
+
this.flush();
|
|
267
|
+
}
|
|
268
|
+
static {
|
|
269
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
270
|
+
minVersion: "12.0.0",
|
|
271
|
+
version: "22.2.6",
|
|
272
|
+
ngImport: i0,
|
|
273
|
+
type: ListboxVirtualRoot,
|
|
274
|
+
deps: [],
|
|
275
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
static {
|
|
279
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
280
|
+
minVersion: "17.1.0",
|
|
281
|
+
version: "22.2.6",
|
|
282
|
+
type: ListboxVirtualRoot,
|
|
283
|
+
isStandalone: true,
|
|
284
|
+
selector: "[listboxVirtualRoot]",
|
|
285
|
+
inputs: {
|
|
286
|
+
items: {
|
|
287
|
+
classPropertyName: "items",
|
|
288
|
+
publicName: "items",
|
|
289
|
+
isSignal: true,
|
|
290
|
+
isRequired: true,
|
|
291
|
+
transformFunction: null
|
|
292
|
+
},
|
|
293
|
+
multiple: {
|
|
294
|
+
classPropertyName: "multiple",
|
|
295
|
+
publicName: "multiple",
|
|
296
|
+
isSignal: true,
|
|
297
|
+
isRequired: false,
|
|
298
|
+
transformFunction: null
|
|
299
|
+
},
|
|
300
|
+
value: {
|
|
301
|
+
classPropertyName: "value",
|
|
302
|
+
publicName: "value",
|
|
303
|
+
isSignal: true,
|
|
304
|
+
isRequired: false,
|
|
305
|
+
transformFunction: null
|
|
306
|
+
},
|
|
307
|
+
defaultValue: {
|
|
308
|
+
classPropertyName: "defaultValue",
|
|
309
|
+
publicName: "defaultValue",
|
|
310
|
+
isSignal: true,
|
|
311
|
+
isRequired: false,
|
|
312
|
+
transformFunction: null
|
|
313
|
+
},
|
|
314
|
+
selectionBehavior: {
|
|
315
|
+
classPropertyName: "selectionBehavior",
|
|
316
|
+
publicName: "selectionBehavior",
|
|
317
|
+
isSignal: true,
|
|
318
|
+
isRequired: false,
|
|
319
|
+
transformFunction: null
|
|
320
|
+
},
|
|
321
|
+
loopFocus: {
|
|
322
|
+
classPropertyName: "loopFocus",
|
|
323
|
+
publicName: "loopFocus",
|
|
324
|
+
isSignal: true,
|
|
325
|
+
isRequired: false,
|
|
326
|
+
transformFunction: null
|
|
327
|
+
},
|
|
328
|
+
disabled: {
|
|
329
|
+
classPropertyName: "disabled",
|
|
330
|
+
publicName: "disabled",
|
|
331
|
+
isSignal: true,
|
|
332
|
+
isRequired: false,
|
|
333
|
+
transformFunction: null
|
|
334
|
+
},
|
|
335
|
+
name: {
|
|
336
|
+
classPropertyName: "name",
|
|
337
|
+
publicName: "name",
|
|
338
|
+
isSignal: true,
|
|
339
|
+
isRequired: false,
|
|
340
|
+
transformFunction: null
|
|
341
|
+
},
|
|
342
|
+
required: {
|
|
343
|
+
classPropertyName: "required",
|
|
344
|
+
publicName: "required",
|
|
345
|
+
isSignal: true,
|
|
346
|
+
isRequired: false,
|
|
347
|
+
transformFunction: null
|
|
348
|
+
},
|
|
349
|
+
itemSize: {
|
|
350
|
+
classPropertyName: "itemSize",
|
|
351
|
+
publicName: "itemSize",
|
|
352
|
+
isSignal: true,
|
|
353
|
+
isRequired: false,
|
|
354
|
+
transformFunction: null
|
|
355
|
+
},
|
|
356
|
+
measure: {
|
|
357
|
+
classPropertyName: "measure",
|
|
358
|
+
publicName: "measure",
|
|
359
|
+
isSignal: true,
|
|
360
|
+
isRequired: false,
|
|
361
|
+
transformFunction: null
|
|
362
|
+
},
|
|
363
|
+
overscan: {
|
|
364
|
+
classPropertyName: "overscan",
|
|
365
|
+
publicName: "overscan",
|
|
366
|
+
isSignal: true,
|
|
367
|
+
isRequired: false,
|
|
368
|
+
transformFunction: null
|
|
369
|
+
},
|
|
370
|
+
loading: {
|
|
371
|
+
classPropertyName: "loading",
|
|
372
|
+
publicName: "loading",
|
|
373
|
+
isSignal: true,
|
|
374
|
+
isRequired: false,
|
|
375
|
+
transformFunction: null
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
outputs: {
|
|
379
|
+
valueChange: "valueChange",
|
|
380
|
+
valueChangeDetails: "valueChangeDetails",
|
|
381
|
+
loadMore: "loadMore"
|
|
382
|
+
},
|
|
383
|
+
host: {
|
|
384
|
+
attributes: {
|
|
385
|
+
"role": "listbox",
|
|
386
|
+
"data-primitives-part": "listbox-root",
|
|
387
|
+
"aria-orientation": "vertical"
|
|
388
|
+
},
|
|
389
|
+
listeners: {
|
|
390
|
+
"keydown": "onKeyDown($event)",
|
|
391
|
+
"focusin": "field.focused()",
|
|
392
|
+
"focusout": "onFocusOut($event)"
|
|
393
|
+
},
|
|
394
|
+
properties: {
|
|
395
|
+
"attr.aria-multiselectable": "multiple() ? 'true' : null",
|
|
396
|
+
"attr.aria-required": "required() ? 'true' : null",
|
|
397
|
+
"attr.aria-disabled": "isDisabled() ? 'true' : null",
|
|
398
|
+
"attr.aria-busy": "loading() ? 'true' : null",
|
|
399
|
+
"attr.data-invalid": "field.data().invalid",
|
|
400
|
+
"attr.data-valid": "field.data().valid",
|
|
401
|
+
"attr.data-dirty": "field.data().dirty",
|
|
402
|
+
"attr.data-touched": "field.data().touched",
|
|
403
|
+
"attr.data-filled": "field.data().filled",
|
|
404
|
+
"attr.data-focused": "field.data().focused",
|
|
405
|
+
"attr.data-multiple": "data().multiple",
|
|
406
|
+
"attr.data-disabled": "data().disabled",
|
|
407
|
+
"attr.data-orientation": "data().orientation",
|
|
408
|
+
"attr.data-loading": "data().loading"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
providers: [{
|
|
412
|
+
provide: ListboxRoot,
|
|
413
|
+
useExisting: forwardRef(() => ListboxVirtualRoot)
|
|
414
|
+
}],
|
|
415
|
+
exportAs: ["listboxVirtualRoot"],
|
|
416
|
+
ngImport: i0
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
421
|
+
minVersion: "12.0.0",
|
|
422
|
+
version: "22.2.6",
|
|
423
|
+
ngImport: i0,
|
|
424
|
+
type: ListboxVirtualRoot,
|
|
425
|
+
decorators: [{
|
|
426
|
+
type: Directive,
|
|
427
|
+
args: [{
|
|
428
|
+
selector: "[listboxVirtualRoot]",
|
|
429
|
+
exportAs: "listboxVirtualRoot",
|
|
430
|
+
providers: [{
|
|
431
|
+
provide: ListboxRoot,
|
|
432
|
+
useExisting: forwardRef(() => ListboxVirtualRoot)
|
|
433
|
+
}],
|
|
434
|
+
host: {
|
|
435
|
+
role: "listbox",
|
|
436
|
+
"data-primitives-part": "listbox-root",
|
|
437
|
+
"aria-orientation": "vertical",
|
|
438
|
+
"[attr.aria-multiselectable]": "multiple() ? 'true' : null",
|
|
439
|
+
"[attr.aria-required]": "required() ? 'true' : null",
|
|
440
|
+
"[attr.aria-disabled]": "isDisabled() ? 'true' : null",
|
|
441
|
+
"[attr.aria-busy]": "loading() ? 'true' : null",
|
|
442
|
+
"[attr.data-invalid]": "field.data().invalid",
|
|
443
|
+
"[attr.data-valid]": "field.data().valid",
|
|
444
|
+
"[attr.data-dirty]": "field.data().dirty",
|
|
445
|
+
"[attr.data-touched]": "field.data().touched",
|
|
446
|
+
"[attr.data-filled]": "field.data().filled",
|
|
447
|
+
"[attr.data-focused]": "field.data().focused",
|
|
448
|
+
"[attr.data-multiple]": "data().multiple",
|
|
449
|
+
"[attr.data-disabled]": "data().disabled",
|
|
450
|
+
"[attr.data-orientation]": "data().orientation",
|
|
451
|
+
"[attr.data-loading]": "data().loading",
|
|
452
|
+
"(keydown)": "onKeyDown($event)",
|
|
453
|
+
"(focusin)": "field.focused()",
|
|
454
|
+
"(focusout)": "onFocusOut($event)"
|
|
455
|
+
}
|
|
456
|
+
}]
|
|
457
|
+
}],
|
|
458
|
+
ctorParameters: () => [],
|
|
459
|
+
propDecorators: {
|
|
460
|
+
items: [{
|
|
461
|
+
type: i0.Input,
|
|
462
|
+
args: [{
|
|
463
|
+
isSignal: true,
|
|
464
|
+
alias: "items",
|
|
465
|
+
required: true
|
|
466
|
+
}]
|
|
467
|
+
}],
|
|
468
|
+
multiple: [{
|
|
469
|
+
type: i0.Input,
|
|
470
|
+
args: [{
|
|
471
|
+
isSignal: true,
|
|
472
|
+
alias: "multiple",
|
|
473
|
+
required: false
|
|
474
|
+
}]
|
|
475
|
+
}],
|
|
476
|
+
value: [{
|
|
477
|
+
type: i0.Input,
|
|
478
|
+
args: [{
|
|
479
|
+
isSignal: true,
|
|
480
|
+
alias: "value",
|
|
481
|
+
required: false
|
|
482
|
+
}]
|
|
483
|
+
}],
|
|
484
|
+
valueChange: [{
|
|
485
|
+
type: i0.Output,
|
|
486
|
+
args: ["valueChange"]
|
|
487
|
+
}],
|
|
488
|
+
defaultValue: [{
|
|
489
|
+
type: i0.Input,
|
|
490
|
+
args: [{
|
|
491
|
+
isSignal: true,
|
|
492
|
+
alias: "defaultValue",
|
|
493
|
+
required: false
|
|
494
|
+
}]
|
|
495
|
+
}],
|
|
496
|
+
valueChangeDetails: [{
|
|
497
|
+
type: i0.Output,
|
|
498
|
+
args: ["valueChangeDetails"]
|
|
499
|
+
}],
|
|
500
|
+
selectionBehavior: [{
|
|
501
|
+
type: i0.Input,
|
|
502
|
+
args: [{
|
|
503
|
+
isSignal: true,
|
|
504
|
+
alias: "selectionBehavior",
|
|
505
|
+
required: false
|
|
506
|
+
}]
|
|
507
|
+
}],
|
|
508
|
+
loopFocus: [{
|
|
509
|
+
type: i0.Input,
|
|
510
|
+
args: [{
|
|
511
|
+
isSignal: true,
|
|
512
|
+
alias: "loopFocus",
|
|
513
|
+
required: false
|
|
514
|
+
}]
|
|
515
|
+
}],
|
|
516
|
+
disabled: [{
|
|
517
|
+
type: i0.Input,
|
|
518
|
+
args: [{
|
|
519
|
+
isSignal: true,
|
|
520
|
+
alias: "disabled",
|
|
521
|
+
required: false
|
|
522
|
+
}]
|
|
523
|
+
}],
|
|
524
|
+
name: [{
|
|
525
|
+
type: i0.Input,
|
|
526
|
+
args: [{
|
|
527
|
+
isSignal: true,
|
|
528
|
+
alias: "name",
|
|
529
|
+
required: false
|
|
530
|
+
}]
|
|
531
|
+
}],
|
|
532
|
+
required: [{
|
|
533
|
+
type: i0.Input,
|
|
534
|
+
args: [{
|
|
535
|
+
isSignal: true,
|
|
536
|
+
alias: "required",
|
|
537
|
+
required: false
|
|
538
|
+
}]
|
|
539
|
+
}],
|
|
540
|
+
itemSize: [{
|
|
541
|
+
type: i0.Input,
|
|
542
|
+
args: [{
|
|
543
|
+
isSignal: true,
|
|
544
|
+
alias: "itemSize",
|
|
545
|
+
required: false
|
|
546
|
+
}]
|
|
547
|
+
}],
|
|
548
|
+
measure: [{
|
|
549
|
+
type: i0.Input,
|
|
550
|
+
args: [{
|
|
551
|
+
isSignal: true,
|
|
552
|
+
alias: "measure",
|
|
553
|
+
required: false
|
|
554
|
+
}]
|
|
555
|
+
}],
|
|
556
|
+
overscan: [{
|
|
557
|
+
type: i0.Input,
|
|
558
|
+
args: [{
|
|
559
|
+
isSignal: true,
|
|
560
|
+
alias: "overscan",
|
|
561
|
+
required: false
|
|
562
|
+
}]
|
|
563
|
+
}],
|
|
564
|
+
loading: [{
|
|
565
|
+
type: i0.Input,
|
|
566
|
+
args: [{
|
|
567
|
+
isSignal: true,
|
|
568
|
+
alias: "loading",
|
|
569
|
+
required: false
|
|
570
|
+
}]
|
|
571
|
+
}],
|
|
572
|
+
loadMore: [{
|
|
573
|
+
type: i0.Output,
|
|
574
|
+
args: ["loadMore"]
|
|
575
|
+
}]
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
var ListboxVirtualRow = class ListboxVirtualRow {
|
|
579
|
+
constructor() {
|
|
580
|
+
this.row = input.required({
|
|
581
|
+
...ngDevMode ? { debugName: "row" } : /* istanbul ignore next */ {},
|
|
582
|
+
alias: "listboxVirtualRow"
|
|
583
|
+
});
|
|
584
|
+
bindVirtualRow(inject(ListboxVirtualRoot).virtual, this.row, injectHost());
|
|
585
|
+
}
|
|
586
|
+
static {
|
|
587
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
588
|
+
minVersion: "12.0.0",
|
|
589
|
+
version: "22.2.6",
|
|
590
|
+
ngImport: i0,
|
|
591
|
+
type: ListboxVirtualRow,
|
|
592
|
+
deps: [],
|
|
593
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
static {
|
|
597
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
598
|
+
minVersion: "17.1.0",
|
|
599
|
+
version: "22.2.6",
|
|
600
|
+
type: ListboxVirtualRow,
|
|
601
|
+
isStandalone: true,
|
|
602
|
+
selector: "[listboxVirtualRow]",
|
|
603
|
+
inputs: { row: {
|
|
604
|
+
classPropertyName: "row",
|
|
605
|
+
publicName: "listboxVirtualRow",
|
|
606
|
+
isSignal: true,
|
|
607
|
+
isRequired: true,
|
|
608
|
+
transformFunction: null
|
|
609
|
+
} },
|
|
610
|
+
host: { properties: {
|
|
611
|
+
"attr.aria-setsize": "row().setSize",
|
|
612
|
+
"attr.aria-posinset": "row().index + 1",
|
|
613
|
+
"attr.data-index": "row().index",
|
|
614
|
+
"style.flex-shrink": "'0'",
|
|
615
|
+
"style.overflow-anchor": "'none'",
|
|
616
|
+
"style.margin-block-start.px": "row().spaceBefore",
|
|
617
|
+
"style.margin-block-end.px": "row().spaceAfter"
|
|
618
|
+
} },
|
|
619
|
+
exportAs: ["listboxVirtualRow"],
|
|
620
|
+
ngImport: i0
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
625
|
+
minVersion: "12.0.0",
|
|
626
|
+
version: "22.2.6",
|
|
627
|
+
ngImport: i0,
|
|
628
|
+
type: ListboxVirtualRow,
|
|
629
|
+
decorators: [{
|
|
630
|
+
type: Directive,
|
|
631
|
+
args: [{
|
|
632
|
+
selector: "[listboxVirtualRow]",
|
|
633
|
+
exportAs: "listboxVirtualRow",
|
|
634
|
+
host: {
|
|
635
|
+
"[attr.aria-setsize]": "row().setSize",
|
|
636
|
+
"[attr.aria-posinset]": "row().index + 1",
|
|
637
|
+
"[attr.data-index]": "row().index",
|
|
638
|
+
"[style.flex-shrink]": "'0'",
|
|
639
|
+
"[style.overflow-anchor]": "'none'",
|
|
640
|
+
"[style.margin-block-start.px]": "row().spaceBefore",
|
|
641
|
+
"[style.margin-block-end.px]": "row().spaceAfter"
|
|
642
|
+
}
|
|
643
|
+
}]
|
|
644
|
+
}],
|
|
645
|
+
ctorParameters: () => [],
|
|
646
|
+
propDecorators: { row: [{
|
|
647
|
+
type: i0.Input,
|
|
648
|
+
args: [{
|
|
649
|
+
isSignal: true,
|
|
650
|
+
alias: "listboxVirtualRow",
|
|
651
|
+
required: true
|
|
652
|
+
}]
|
|
653
|
+
}] }
|
|
654
|
+
});
|
|
655
|
+
export { ListboxVirtualRoot, ListboxVirtualRow };
|
|
656
|
+
|
|
657
|
+
//# sourceMappingURL=fragiola-primitives-angular-listbox-virtual.mjs.map
|