@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 @@
|
|
|
1
|
+
{"version":3,"file":"fragiola-primitives-angular-color-field.mjs","names":[],"sources":["../../color-field/directives/color-field-root.directive.ts","../../color-field/directives/color-field-input.directive.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n effect,\n inject,\n input,\n output,\n signal,\n untracked,\n} from \"@angular/core\";\nimport {\n type Color,\n type ColorChannel,\n type ColorSpace,\n clampColorChannel,\n colorChannelFormat,\n colorChannelRange,\n colorSpaceFor,\n convertColor,\n formatColor,\n formatColorChannel,\n getColorChannel,\n isSameColor,\n parseColor,\n setColorChannel,\n} from \"@fragiola/primitives/color\";\nimport { bridgeForm } from \"@fragiola/primitives/form\";\nimport { parseNumber } from \"@fragiola/primitives/number\";\nimport { fieldControl } from \"@fragiola/primitives-angular/field\";\nimport {\n type ChangeDetails,\n type ChangeReason,\n controllable,\n createHiddenInput,\n dataValues,\n injectColorPickerBinding,\n injectFlush,\n injectHost,\n injectId,\n setInputAttribute,\n type ValueChangeEvent,\n} from \"@fragiola/primitives-angular/internal\";\n\n/** The state every color field part shares. */\nexport interface ColorFieldState {\n /** The value (in the field's space, with `channel`), `null` when empty. */\n value: Color | null;\n /** The Input's text. */\n inputValue: string;\n disabled: boolean;\n readOnly: boolean;\n required: boolean;\n}\n\n/** A `Color`, a string `parseColor` reads (`null` when it reads none), or `null`. */\nfunction toColor(value: Color | string | null): Color | null {\n return value === null ? null : parseColor(value);\n}\n\n/** Black in `space`: what a channel typed into an empty field is set on. */\nfunction black(space: ColorSpace): Color {\n return convertColor(\n { space: \"rgb\", red: 0, green: 0, blue: 0, alpha: 1 },\n space,\n );\n}\n\n/** The 24-bit number of a color, plus `amount`, clamped, back to an rgb color. */\nfunction stepHex(color: Color | null, amount: number): Color {\n const rgb = convertColor(color ?? black(\"rgb\"), \"rgb\") as Extract<\n Color,\n { space: \"rgb\" }\n >;\n const number = Math.min(\n Math.max((rgb.red << 16) + (rgb.green << 8) + rgb.blue + amount, 0),\n 0xffffff,\n );\n return {\n space: \"rgb\",\n red: (number >> 16) & 0xff,\n green: (number >> 8) & 0xff,\n blue: number & 0xff,\n alpha: rgb.alpha,\n };\n}\n\nfunction round2(value: number): number {\n return Math.round(value * 100) / 100 + 0;\n}\n\n/**\n * Holds a ColorField's value, its typed text and its hidden form input, rendered right after it\n * (spec/color-field.md: a hex textbox, or the APG spinbutton for one channel; the text commits on\n * Enter and blur): `<div colorFieldRoot [(value)]=\"color\" name=\"color\">` around its\n * `<input colorFieldInput>`.\n */\n@Directive({\n selector: \"[colorFieldRoot]\",\n exportAs: \"colorFieldRoot\",\n host: {\n \"data-primitives-part\": \"color-field-root\",\n \"[attr.data-disabled]\": \"data().disabled\",\n \"[attr.data-readonly]\": \"data().readonly\",\n \"[attr.data-required]\": \"data().required\",\n \"[attr.data-channel]\": \"data().channel\",\n \"[attr.data-invalid]\": \"data().invalid\",\n \"[attr.data-valid]\": \"data().valid\",\n \"[attr.data-dirty]\": \"data().dirty\",\n \"[attr.data-touched]\": \"data().touched\",\n \"[attr.data-filled]\": \"data().filled\",\n \"[attr.data-focused]\": \"data().focused\",\n },\n})\nexport class ColorFieldRoot {\n /** A `Color`, a string `parseColor` reads, or `null` (empty); bound, the field is controlled. */\n readonly value = input<Color | string | null | undefined>(undefined);\n readonly valueChange = output<Color | null>();\n readonly defaultValue = input<Color | string | null | undefined>(undefined);\n readonly valueChangeDetails = output<ValueChangeEvent<Color | null>>();\n /** The channel the field edits (none: the whole color, as hex). */\n readonly channel = input<ColorChannel | undefined>(undefined);\n /** With `channel`, the space it edits it in. */\n readonly colorSpace = input<ColorSpace | undefined>(undefined);\n /** The locale of the channel's text (BCP 47; default: the runtime's). */\n readonly locale = input<string | undefined>(undefined);\n readonly name = input<string | undefined>(undefined);\n /** The Input's `id` (generated unless given, or the Field's control id). */\n readonly id = input<string | undefined>(undefined);\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readOnly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n\n private readonly host = injectHost();\n private readonly flush = injectFlush();\n private readonly generatedId = injectId(\"primitives-color-field\");\n /** The Input's `id`. */\n readonly inputId = computed(() => this.id() ?? this.generatedId);\n private readonly ownValue = controllable<Color | null, ChangeDetails>(\n computed(() => {\n const value = this.value();\n return value === undefined ? undefined : toColor(value);\n }),\n this.valueChange,\n () => toColor(this.defaultValue() ?? null),\n (value, details) => this.valueChangeDetails.emit({ value, details }),\n );\n\n /** The enclosing ColorPicker's binding (spec/color-picker.md, \"Sharing the color\"). */\n private readonly picker = injectColorPickerBinding();\n /** Bound to the picker's color: inside one, with neither `value` nor `defaultValue`. */\n private readonly bound = computed(() =>\n this.picker !== null &&\n this.value() === undefined &&\n this.defaultValue() === undefined\n ? this.picker\n : null,\n );\n /** The value: the picker's when bound, else its own. */\n private readonly own = {\n value: computed(() => {\n const bound = this.bound();\n return bound === null ? this.ownValue.value() : bound.value();\n }),\n set: (next: Color | null, details: ChangeDetails) => {\n const bound = untracked(this.bound);\n if (bound === null) {\n this.ownValue.set(next, details);\n return;\n }\n // a bound field never commits `null`: its text goes back to the picker's\n if (next === null) {\n return;\n }\n this.valueChange.emit(next);\n this.valueChangeDetails.emit({ value: next, details });\n bound.setValue(next, details);\n bound.commit(next, details);\n },\n };\n private readonly space = computed(() => {\n const current = this.own.value();\n const channel = this.channel();\n return channel === undefined\n ? (current?.space ?? \"rgb\")\n : colorSpaceFor(\n channel,\n current ?? black(\"rgb\"),\n this.colorSpace(),\n );\n });\n /** The value (in the field's space, with `channel`), `null` when empty. */\n readonly color = computed(() => {\n const current = this.own.value();\n return current === null || this.channel() === undefined\n ? current\n : convertColor(current, this.space());\n });\n /** The channel's value (channel mode), `null` when empty. */\n readonly channelValue = computed(() => {\n const value = this.color();\n const channel = this.channel();\n return value === null || channel === undefined\n ? null\n : getColorChannel(value, channel);\n });\n readonly range = computed(() => {\n const channel = this.channel();\n return channel === undefined ? undefined : colorChannelRange(channel);\n });\n /** The text the user typed, until a commit (`null`: the value's text). */\n private readonly typed = signal<string | null>(null);\n /** The value's text (the channel's, with `channel`). */\n readonly valueText = computed(() => {\n const value = this.color();\n const channel = this.channel();\n if (value === null) {\n return \"\";\n }\n return channel === undefined\n ? formatColor(value, \"hex\")\n : formatColorChannel(value, channel, this.locale());\n });\n private readonly formValue = computed(() => {\n const value = this.color();\n if (value === null) {\n return \"\";\n }\n return this.channel() === undefined\n ? formatColor(value, \"hex\")\n : String(this.channelValue());\n });\n /** The Input's text: the typed text while editing, else the value's. */\n readonly inputValue = computed(() => this.typed() ?? this.valueText());\n /** The Input's element, once rendered. */\n readonly inputElement = signal<HTMLInputElement | null>(null);\n private readonly hidden = createHiddenInput(this.host, {\n type: \"text\",\n \"data-primitives-part\": \"color-field-hidden-input\",\n });\n readonly field = fieldControl({\n id: this.inputId,\n labelable: true,\n value: computed(() => {\n const value = this.formValue();\n return value === \"\" ? null : value;\n }),\n filled: computed(() => this.color() !== null),\n input: () => this.hidden,\n focusTarget: () => this.inputElement(),\n // inside a ColorPicker, the picker is the field's control\n part: this.picker !== null,\n });\n readonly isDisabled = computed(\n () =>\n this.disabled() ||\n this.field.disabled() ||\n (this.picker?.disabled() ?? false),\n );\n readonly state = computed<ColorFieldState>(() => ({\n value: this.color(),\n inputValue: this.inputValue(),\n disabled: this.isDisabled(),\n readOnly: this.readOnly(),\n required: this.required(),\n }));\n /** The state attributes and the field's, for every part. */\n readonly data = computed(() => {\n const state = this.state();\n const field = this.field.data();\n return {\n ...dataValues({\n disabled: state.disabled,\n readonly: state.readOnly,\n required: state.required,\n channel: this.channel(),\n }),\n invalid: field.invalid,\n valid: field.valid,\n dirty: field.dirty,\n touched: field.touched,\n filled: field.filled,\n focused: field.focused,\n };\n });\n\n constructor() {\n const hidden = this.hidden;\n const formName = computed(() =>\n this.bound() === null\n ? (this.field.name() ?? this.name() ?? null)\n : null,\n );\n effect(() => {\n const state = this.state();\n setInputAttribute(hidden, \"name\", formName());\n // the attribute follows the value, as React's controlled input\n const value = this.formValue();\n hidden.setAttribute(\"value\", value);\n hidden.value = value;\n hidden.required = state.required;\n hidden.disabled = state.disabled;\n });\n const onHiddenFocus = () => untracked(this.inputElement)?.focus();\n hidden.addEventListener(\"focus\", onHiddenFocus);\n\n // a form reset returns it to its default, and its text with it\n let stop: (() => void) | null = null;\n afterNextRender(() => {\n stop = bridgeForm(hidden, {\n reset: () => {\n this.typed.set(null);\n // a bound field is reset by its picker\n if (untracked(this.bound) !== null) {\n this.flush();\n this.writeText();\n return;\n }\n this.field.reset();\n const next = toColor(untracked(this.defaultValue) ?? null);\n if (!isSameColor(next, untracked(this.color))) {\n this.own.set(next, { reason: \"none\" });\n }\n this.flush();\n // the browser reset the inputs after the state: write the state back\n hidden.value = untracked(this.formValue);\n this.writeText();\n },\n invalid: () => untracked(this.inputElement),\n });\n });\n inject(DestroyRef).onDestroy(() => {\n stop?.();\n hidden.removeEventListener(\"focus\", onHiddenFocus);\n });\n }\n\n /** The Input's text changed: kept until a commit. */\n inputText(text: string): void {\n this.typed.set(text);\n this.flush();\n }\n\n /** Parses the typed text and sets the value, or goes back to the value's text. */\n commitText(reason: \"keyboard\" | \"input-blur\", event: Event): void {\n const text = untracked(this.typed);\n if (text === null) {\n return;\n }\n this.typed.set(null);\n if (untracked(this.channel) === undefined) {\n if (text.trim() === \"\") {\n this.setValue(null, { reason: \"input-clear\", event });\n } else {\n const parsed = parseColor(text);\n if (parsed !== null) {\n this.setValue(parsed, { reason, event });\n }\n }\n } else {\n const number = this.channelOf(text);\n if (number !== null) {\n this.setValue(this.withChannel(number), { reason, event });\n }\n }\n this.render();\n }\n\n /** Handles a step key; returns whether it did. */\n stepKey(key: string, shiftKey: boolean, event: Event): boolean {\n if (untracked(this.isDisabled) || untracked(this.readOnly)) {\n return false;\n }\n const reason: ChangeReason = \"keyboard\";\n const channel = untracked(this.channel);\n const typed = untracked(this.typed);\n const value = untracked(this.color);\n if (channel === undefined) {\n if (key !== \"ArrowUp\" && key !== \"ArrowDown\") {\n return false;\n }\n const base = typed === null ? value : (parseColor(typed) ?? value);\n this.typed.set(null);\n this.setValue(stepHex(base, key === \"ArrowUp\" ? 1 : -1), {\n reason,\n event,\n });\n this.render();\n return true;\n }\n const range = colorChannelRange(channel);\n const typedNumber = typed === null ? null : this.channelOf(typed);\n const base =\n typedNumber ??\n (value === null ? range.min : getColorChannel(value, channel));\n const amount = shiftKey ? range.largeStep : range.step;\n let next: number;\n switch (key) {\n case \"ArrowUp\":\n next = base + amount;\n break;\n case \"ArrowDown\":\n next = base - amount;\n break;\n case \"PageUp\":\n next = base + range.largeStep;\n break;\n case \"PageDown\":\n next = base - range.largeStep;\n break;\n case \"Home\":\n next = range.min;\n break;\n case \"End\":\n next = range.max;\n break;\n default:\n return false;\n }\n this.typed.set(null);\n this.setValue(this.withChannel(next), { reason, event });\n this.render();\n return true;\n }\n\n private setValue(next: Color | null, details: ChangeDetails): void {\n if (!isSameColor(next, untracked(this.color))) {\n this.own.set(next, details);\n }\n }\n\n /** The channel's number in `text` (channel mode), or `null`. */\n private channelOf(text: string): number | null {\n const channel = untracked(this.channel);\n if (channel === undefined) {\n return null;\n }\n const { format, scale } = colorChannelFormat(channel);\n const parsed = parseNumber(text, {\n locale: untracked(this.locale),\n format,\n });\n return parsed === null || Number.isNaN(parsed)\n ? null\n : round2(clampColorChannel(channel, parsed / scale));\n }\n\n private withChannel(number: number): Color {\n const channel = untracked(this.channel) as ColorChannel;\n return setColorChannel(\n untracked(this.color) ?? black(untracked(this.space)),\n channel,\n clampColorChannel(channel, round2(number)),\n );\n }\n\n /**\n * Renders a change at once: a controlled value comes back through its binding before the next\n * key, the hidden input holds it when the Field validates (AGENTS.md, \"Porting\", 8), and the\n * text is the value's even when the binding did not change (a value the consumer kept).\n */\n private render(): void {\n this.flush();\n this.writeText();\n }\n\n private writeText(): void {\n const element = untracked(this.inputElement);\n const text = untracked(this.inputValue);\n if (element !== null && element.value !== text) {\n element.value = text;\n }\n }\n}\n","import { computed, Directive, inject } from \"@angular/core\";\nimport { writeFieldAria } from \"@fragiola/primitives-angular/field\";\nimport { registerHost } from \"@fragiola/primitives-angular/internal\";\nimport { ColorFieldRoot } from \"./color-field-root.directive.ts\";\n\n/**\n * The text (spec/color-field.md): a textbox (hex), or a `spinbutton` with the Root's `channel`:\n * `<input colorFieldInput>`, its name the consumer's (a `<label for>` with the Root's `id`,\n * `aria-label` or `Field.Label`). Enter and blur commit it, the arrows step it.\n */\n@Directive({\n selector: \"input[colorFieldInput]\",\n exportAs: \"colorFieldInput\",\n host: {\n type: \"text\",\n autocomplete: \"off\",\n autocorrect: \"off\",\n spellcheck: \"false\",\n \"data-primitives-part\": \"color-field-input\",\n \"[attr.id]\": \"root.inputId()\",\n \"[attr.role]\": \"channelMode() ? 'spinbutton' : null\",\n \"[attr.inputmode]\": \"channelMode() ? 'decimal' : null\",\n \"[value]\": \"root.inputValue()\",\n // the attribute follows the value, as React's controlled input: a server render writes\n // it, so the page rendered in the browser alone has it too (spec/README.md, \"Server\n // rendering\"), and a form reset restores the rendered text\n \"[attr.value]\": \"root.inputValue()\",\n \"[attr.disabled]\": \"root.data().disabled\",\n \"[attr.readonly]\": \"root.data().readonly\",\n \"[attr.aria-valuenow]\": \"channelMode() ? root.channelValue() : null\",\n \"[attr.aria-valuemin]\": \"root.range()?.min ?? null\",\n \"[attr.aria-valuemax]\": \"root.range()?.max ?? null\",\n \"[attr.aria-valuetext]\": \"valueText()\",\n \"[attr.aria-required]\": \"root.state().required ? 'true' : null\",\n \"[attr.aria-readonly]\": \"root.state().readOnly ? 'true' : null\",\n \"[attr.data-disabled]\": \"root.data().disabled\",\n \"[attr.data-readonly]\": \"root.data().readonly\",\n \"[attr.data-required]\": \"root.data().required\",\n \"[attr.data-channel]\": \"root.data().channel\",\n \"[attr.data-invalid]\": \"root.data().invalid\",\n \"[attr.data-valid]\": \"root.data().valid\",\n \"[attr.data-dirty]\": \"root.data().dirty\",\n \"[attr.data-touched]\": \"root.data().touched\",\n \"[attr.data-filled]\": \"root.data().filled\",\n \"[attr.data-focused]\": \"root.data().focused\",\n \"(input)\": \"root.inputText(input.value)\",\n \"(keydown)\": \"onKeyDown($event)\",\n \"(focus)\": \"root.field.focused()\",\n \"(blur)\": \"onBlur($event)\",\n },\n})\nexport class ColorFieldInput {\n protected readonly root = inject(ColorFieldRoot);\n readonly state = this.root.state;\n protected readonly input = registerHost<HTMLInputElement>(\n this.root.inputElement,\n );\n protected readonly channelMode = computed(\n () => this.root.channel() !== undefined,\n );\n protected readonly valueText = computed(() =>\n this.channelMode() && this.root.color() !== null\n ? this.root.valueText()\n : null,\n );\n\n constructor() {\n const { field } = this.root;\n writeFieldAria(field, this.input, {\n \"aria-labelledby\": field.labelledBy,\n \"aria-describedby\": field.describedBy,\n \"aria-invalid\": field.ariaInvalid,\n });\n }\n\n protected onKeyDown(event: KeyboardEvent): void {\n if (event.key === \"Enter\") {\n this.root.commitText(\"keyboard\", event);\n return;\n }\n if (this.root.stepKey(event.key, event.shiftKey, event)) {\n event.preventDefault();\n }\n }\n\n protected onBlur(event: FocusEvent): void {\n this.root.commitText(\"input-blur\", event);\n this.root.field.blurred();\n }\n}\n"],"mappings":";;;;;;;AA0DA,SAAS,QAAQ,OAA4B;CACzC,OAAO,UAAU,OAAO,OAAO,WAAW,KAAK;AACnD;AAGA,SAAS,MAAM,OAAiB;CAC5B,OAAO,aACH;EAAE,OAAO;EAAO,KAAK;EAAG,OAAO;EAAG,MAAM;EAAG,OAAO;CAAC,GACnD,KAAK;AAEb;AAGA,SAAS,QAAQ,OAAqB,QAAc;CAChD,MAAM,MAAM,aAAa,SAAS,MAAM,KAAK,GAAG,KAAK;CAIrD,MAAM,SAAS,KAAK,IAChB,KAAK,KAAK,IAAI,OAAO,OAAO,IAAI,SAAS,KAAK,IAAI,OAAO,QAAQ,CAAC,GAClE,QAAQ;CAEZ,OAAO;EACH,OAAO;EACP,KAAM,UAAU,KAAM;EACtB,OAAQ,UAAU,IAAK;EACvB,MAAM,SAAS;EACf,OAAO,IAAI;CACd;AACL;AAEA,SAAS,OAAO,OAAa;CACzB,OAAO,KAAK,MAAM,QAAQ,GAAG,IAAI,MAAM;AAC3C;AAyBA,IAAa,iBAAb,MAAa,eAAc;CA4KvB,cAAA;EA1KS,KAAA,QAAQ,MAAyC,QAAU,GAAA,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BAAwB;IACxB,wBAAwB;IACxB,wBAAwB;IACxB,wBAAwB;IACxB,wBAAwB;IACxB,uBAAuB;IACvB,uBAAuB;IACvB,qBAAqB;IACrB,qBAAqB;IACrB,uBAAuB;IACvB,sBAAsB;IACtB,uBAAuB;IACvB,WAAW;IACX,aAAa;IACb,WAAW;IACX,UAAU;GACb;EACJ,CAAA"}
|
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Directive, afterRenderEffect, computed, effect, inject, input, output, untracked } from "@angular/core";
|
|
3
|
+
import { focusInitial, getTabbables, nextTabbableAfter } from "@fragiola/primitives/focus";
|
|
4
|
+
import { openOverlaySession } from "@fragiola/primitives/overlay";
|
|
5
|
+
import { createOverlayRoot, dataValues, injectColorPickerBinding, mountPortal, placementSignal, portalOptions, positionOverlay, registerHost } from "@fragiola/primitives-angular/internal";
|
|
6
|
+
var ColorPickerPopoverRoot = class ColorPickerPopoverRoot {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.open = input(void 0, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
9
|
+
this.openChange = output();
|
|
10
|
+
this.defaultOpen = input(false, ...ngDevMode ? [{ debugName: "defaultOpen" }] : /* istanbul ignore next */ []);
|
|
11
|
+
this.openChangeDetails = output();
|
|
12
|
+
this.openChangeComplete = output();
|
|
13
|
+
this.overlay = createOverlayRoot(this, (event) => this.openChangeDetails.emit(event), "primitives-color-picker-popover");
|
|
14
|
+
this.picker = injectColorPickerBinding();
|
|
15
|
+
this.disabled = computed(() => this.picker?.disabled() ?? false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.placed = placementSignal({
|
|
17
|
+
side: "bottom",
|
|
18
|
+
align: "start"
|
|
19
|
+
});
|
|
20
|
+
this.state = computed(() => ({
|
|
21
|
+
open: this.overlay.open(),
|
|
22
|
+
disabled: this.disabled()
|
|
23
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
24
|
+
effect((onCleanup) => {
|
|
25
|
+
const positioner = this.overlay.positioner();
|
|
26
|
+
const picker = this.picker;
|
|
27
|
+
if (positioner !== null && picker !== null) onCleanup(untracked(() => picker.registerPopup(positioner)));
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
close() {
|
|
31
|
+
this.overlay.close();
|
|
32
|
+
}
|
|
33
|
+
unmount() {
|
|
34
|
+
this.overlay.unmount();
|
|
35
|
+
}
|
|
36
|
+
static {
|
|
37
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
38
|
+
minVersion: "12.0.0",
|
|
39
|
+
version: "22.2.6",
|
|
40
|
+
ngImport: i0,
|
|
41
|
+
type: ColorPickerPopoverRoot,
|
|
42
|
+
deps: [],
|
|
43
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
static {
|
|
47
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
48
|
+
minVersion: "17.1.0",
|
|
49
|
+
version: "22.2.6",
|
|
50
|
+
type: ColorPickerPopoverRoot,
|
|
51
|
+
isStandalone: true,
|
|
52
|
+
selector: "[colorPickerPopoverRoot]",
|
|
53
|
+
inputs: {
|
|
54
|
+
open: {
|
|
55
|
+
classPropertyName: "open",
|
|
56
|
+
publicName: "open",
|
|
57
|
+
isSignal: true,
|
|
58
|
+
isRequired: false,
|
|
59
|
+
transformFunction: null
|
|
60
|
+
},
|
|
61
|
+
defaultOpen: {
|
|
62
|
+
classPropertyName: "defaultOpen",
|
|
63
|
+
publicName: "defaultOpen",
|
|
64
|
+
isSignal: true,
|
|
65
|
+
isRequired: false,
|
|
66
|
+
transformFunction: null
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
outputs: {
|
|
70
|
+
openChange: "openChange",
|
|
71
|
+
openChangeDetails: "openChangeDetails",
|
|
72
|
+
openChangeComplete: "openChangeComplete"
|
|
73
|
+
},
|
|
74
|
+
exportAs: ["colorPickerPopoverRoot"],
|
|
75
|
+
ngImport: i0
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
80
|
+
minVersion: "12.0.0",
|
|
81
|
+
version: "22.2.6",
|
|
82
|
+
ngImport: i0,
|
|
83
|
+
type: ColorPickerPopoverRoot,
|
|
84
|
+
decorators: [{
|
|
85
|
+
type: Directive,
|
|
86
|
+
args: [{
|
|
87
|
+
selector: "[colorPickerPopoverRoot]",
|
|
88
|
+
exportAs: "colorPickerPopoverRoot"
|
|
89
|
+
}]
|
|
90
|
+
}],
|
|
91
|
+
ctorParameters: () => [],
|
|
92
|
+
propDecorators: {
|
|
93
|
+
open: [{
|
|
94
|
+
type: i0.Input,
|
|
95
|
+
args: [{
|
|
96
|
+
isSignal: true,
|
|
97
|
+
alias: "open",
|
|
98
|
+
required: false
|
|
99
|
+
}]
|
|
100
|
+
}],
|
|
101
|
+
openChange: [{
|
|
102
|
+
type: i0.Output,
|
|
103
|
+
args: ["openChange"]
|
|
104
|
+
}],
|
|
105
|
+
defaultOpen: [{
|
|
106
|
+
type: i0.Input,
|
|
107
|
+
args: [{
|
|
108
|
+
isSignal: true,
|
|
109
|
+
alias: "defaultOpen",
|
|
110
|
+
required: false
|
|
111
|
+
}]
|
|
112
|
+
}],
|
|
113
|
+
openChangeDetails: [{
|
|
114
|
+
type: i0.Output,
|
|
115
|
+
args: ["openChangeDetails"]
|
|
116
|
+
}],
|
|
117
|
+
openChangeComplete: [{
|
|
118
|
+
type: i0.Output,
|
|
119
|
+
args: ["openChangeComplete"]
|
|
120
|
+
}]
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
const RETURNS_FOCUS = /* @__PURE__ */ new Set(["escape-key", "trigger-press"]);
|
|
124
|
+
const RETURNS_FOCUS_UNFOCUSED = /* @__PURE__ */ new Set([
|
|
125
|
+
"outside-press",
|
|
126
|
+
"none",
|
|
127
|
+
"imperative-action"
|
|
128
|
+
]);
|
|
129
|
+
var ColorPickerPopoverPopup = class ColorPickerPopoverPopup {
|
|
130
|
+
constructor() {
|
|
131
|
+
this.root = inject(ColorPickerPopoverRoot);
|
|
132
|
+
this.state = computed(() => ({
|
|
133
|
+
open: this.root.overlay.open(),
|
|
134
|
+
...this.root.placed()
|
|
135
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
136
|
+
this.data = computed(() => {
|
|
137
|
+
const status = this.root.overlay.presence.status();
|
|
138
|
+
const state = this.state();
|
|
139
|
+
return dataValues({
|
|
140
|
+
...state,
|
|
141
|
+
closed: !state.open,
|
|
142
|
+
"starting-style": status === "starting",
|
|
143
|
+
"ending-style": status === "ending"
|
|
144
|
+
});
|
|
145
|
+
}, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
146
|
+
this.popup = registerHost(this.root.overlay.popup);
|
|
147
|
+
const overlay = this.root.overlay;
|
|
148
|
+
const popup = this.popup;
|
|
149
|
+
afterRenderEffect((onCleanup) => {
|
|
150
|
+
const open = overlay.open();
|
|
151
|
+
const positioner = overlay.positioner();
|
|
152
|
+
const trigger = overlay.trigger();
|
|
153
|
+
if (!open) return;
|
|
154
|
+
untracked(() => {
|
|
155
|
+
onCleanup(openOverlaySession(popup.ownerDocument, {
|
|
156
|
+
elements: () => [positioner ?? popup],
|
|
157
|
+
ignore: () => [trigger],
|
|
158
|
+
dismiss: (reason, event) => overlay.setOpen(false, reason, event),
|
|
159
|
+
focusOut: () => [trigger],
|
|
160
|
+
returnFocus: {
|
|
161
|
+
when: RETURNS_FOCUS,
|
|
162
|
+
whenUnfocused: RETURNS_FOCUS_UNFOCUSED,
|
|
163
|
+
reason: () => overlay.lastReason.current ?? "none",
|
|
164
|
+
to: () => trigger
|
|
165
|
+
}
|
|
166
|
+
}).end);
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
afterRenderEffect(() => {
|
|
170
|
+
if (overlay.open()) untracked(() => focusInitial(popup, void 0));
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
onKeyDown(event) {
|
|
174
|
+
if (event.key !== "Tab" || event.defaultPrevented) return;
|
|
175
|
+
const overlay = this.root.overlay;
|
|
176
|
+
const popup = this.popup;
|
|
177
|
+
const trigger = overlay.trigger();
|
|
178
|
+
const tabbables = getTabbables(popup);
|
|
179
|
+
const active = popup.ownerDocument.activeElement;
|
|
180
|
+
const first = tabbables[0] ?? popup;
|
|
181
|
+
const last = tabbables.at(-1) ?? popup;
|
|
182
|
+
if (event.shiftKey && (active === first || active === popup)) {
|
|
183
|
+
event.preventDefault();
|
|
184
|
+
overlay.setOpen(false, "focus-out", event);
|
|
185
|
+
trigger?.focus();
|
|
186
|
+
} else if (!event.shiftKey && active === last) {
|
|
187
|
+
event.preventDefault();
|
|
188
|
+
const next = trigger ? nextTabbableAfter(trigger, [overlay.positioner(), popup]) : null;
|
|
189
|
+
overlay.setOpen(false, "focus-out", event);
|
|
190
|
+
next?.focus();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
static {
|
|
194
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
195
|
+
minVersion: "12.0.0",
|
|
196
|
+
version: "22.2.6",
|
|
197
|
+
ngImport: i0,
|
|
198
|
+
type: ColorPickerPopoverPopup,
|
|
199
|
+
deps: [],
|
|
200
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
static {
|
|
204
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
205
|
+
minVersion: "14.0.0",
|
|
206
|
+
version: "22.2.6",
|
|
207
|
+
type: ColorPickerPopoverPopup,
|
|
208
|
+
isStandalone: true,
|
|
209
|
+
selector: "[colorPickerPopoverPopup]",
|
|
210
|
+
host: {
|
|
211
|
+
attributes: {
|
|
212
|
+
"role": "dialog",
|
|
213
|
+
"tabindex": "-1",
|
|
214
|
+
"data-primitives-part": "color-picker-popover-popup"
|
|
215
|
+
},
|
|
216
|
+
listeners: { "keydown": "onKeyDown($event)" },
|
|
217
|
+
properties: {
|
|
218
|
+
"attr.id": "root.overlay.popupId",
|
|
219
|
+
"attr.data-open": "data().open",
|
|
220
|
+
"attr.data-closed": "data().closed",
|
|
221
|
+
"attr.data-side": "data().side",
|
|
222
|
+
"attr.data-align": "data().align",
|
|
223
|
+
"attr.data-starting-style": "data()['starting-style']",
|
|
224
|
+
"attr.data-ending-style": "data()['ending-style']"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
exportAs: ["colorPickerPopoverPopup"],
|
|
228
|
+
ngImport: i0
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
233
|
+
minVersion: "12.0.0",
|
|
234
|
+
version: "22.2.6",
|
|
235
|
+
ngImport: i0,
|
|
236
|
+
type: ColorPickerPopoverPopup,
|
|
237
|
+
decorators: [{
|
|
238
|
+
type: Directive,
|
|
239
|
+
args: [{
|
|
240
|
+
selector: "[colorPickerPopoverPopup]",
|
|
241
|
+
exportAs: "colorPickerPopoverPopup",
|
|
242
|
+
host: {
|
|
243
|
+
role: "dialog",
|
|
244
|
+
tabindex: "-1",
|
|
245
|
+
"data-primitives-part": "color-picker-popover-popup",
|
|
246
|
+
"[attr.id]": "root.overlay.popupId",
|
|
247
|
+
"[attr.data-open]": "data().open",
|
|
248
|
+
"[attr.data-closed]": "data().closed",
|
|
249
|
+
"[attr.data-side]": "data().side",
|
|
250
|
+
"[attr.data-align]": "data().align",
|
|
251
|
+
"[attr.data-starting-style]": "data()['starting-style']",
|
|
252
|
+
"[attr.data-ending-style]": "data()['ending-style']",
|
|
253
|
+
"(keydown)": "onKeyDown($event)"
|
|
254
|
+
}
|
|
255
|
+
}]
|
|
256
|
+
}],
|
|
257
|
+
ctorParameters: () => []
|
|
258
|
+
});
|
|
259
|
+
var ColorPickerPopoverPortal = class ColorPickerPopoverPortal {
|
|
260
|
+
constructor() {
|
|
261
|
+
this.options = input({}, {
|
|
262
|
+
...ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {},
|
|
263
|
+
alias: "colorPickerPopoverPortal",
|
|
264
|
+
transform: portalOptions
|
|
265
|
+
});
|
|
266
|
+
mountPortal(inject(ColorPickerPopoverRoot).overlay.presence.mounted, this.options);
|
|
267
|
+
}
|
|
268
|
+
static {
|
|
269
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
270
|
+
minVersion: "12.0.0",
|
|
271
|
+
version: "22.2.6",
|
|
272
|
+
ngImport: i0,
|
|
273
|
+
type: ColorPickerPopoverPortal,
|
|
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: ColorPickerPopoverPortal,
|
|
283
|
+
isStandalone: true,
|
|
284
|
+
selector: "[colorPickerPopoverPortal]",
|
|
285
|
+
inputs: { options: {
|
|
286
|
+
classPropertyName: "options",
|
|
287
|
+
publicName: "colorPickerPopoverPortal",
|
|
288
|
+
isSignal: true,
|
|
289
|
+
isRequired: false,
|
|
290
|
+
transformFunction: null
|
|
291
|
+
} },
|
|
292
|
+
ngImport: i0
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
297
|
+
minVersion: "12.0.0",
|
|
298
|
+
version: "22.2.6",
|
|
299
|
+
ngImport: i0,
|
|
300
|
+
type: ColorPickerPopoverPortal,
|
|
301
|
+
decorators: [{
|
|
302
|
+
type: Directive,
|
|
303
|
+
args: [{ selector: "[colorPickerPopoverPortal]" }]
|
|
304
|
+
}],
|
|
305
|
+
ctorParameters: () => [],
|
|
306
|
+
propDecorators: { options: [{
|
|
307
|
+
type: i0.Input,
|
|
308
|
+
args: [{
|
|
309
|
+
isSignal: true,
|
|
310
|
+
alias: "colorPickerPopoverPortal",
|
|
311
|
+
required: false
|
|
312
|
+
}]
|
|
313
|
+
}] }
|
|
314
|
+
});
|
|
315
|
+
var ColorPickerPopoverPositioner = class ColorPickerPopoverPositioner {
|
|
316
|
+
constructor() {
|
|
317
|
+
this.root = inject(ColorPickerPopoverRoot);
|
|
318
|
+
this.side = input(void 0, ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
|
|
319
|
+
this.align = input(void 0, ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
|
|
320
|
+
this.sideOffset = input(void 0, ...ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []);
|
|
321
|
+
this.alignOffset = input(void 0, ...ngDevMode ? [{ debugName: "alignOffset" }] : /* istanbul ignore next */ []);
|
|
322
|
+
this.collisionPadding = input(void 0, ...ngDevMode ? [{ debugName: "collisionPadding" }] : /* istanbul ignore next */ []);
|
|
323
|
+
this.anchor = input(void 0, ...ngDevMode ? [{ debugName: "anchor" }] : /* istanbul ignore next */ []);
|
|
324
|
+
this.state = computed(() => ({
|
|
325
|
+
open: this.root.overlay.open(),
|
|
326
|
+
...this.root.placed()
|
|
327
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
328
|
+
this.data = computed(() => dataValues({
|
|
329
|
+
...this.state(),
|
|
330
|
+
closed: !this.state().open
|
|
331
|
+
}), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
332
|
+
const overlay = this.root.overlay;
|
|
333
|
+
positionOverlay(this, {
|
|
334
|
+
side: "bottom",
|
|
335
|
+
align: "start"
|
|
336
|
+
}, {
|
|
337
|
+
anchor: overlay.trigger,
|
|
338
|
+
positioner: registerHost(overlay.positioner),
|
|
339
|
+
mounted: overlay.presence.mounted
|
|
340
|
+
}, this.root.placed);
|
|
341
|
+
}
|
|
342
|
+
static {
|
|
343
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
344
|
+
minVersion: "12.0.0",
|
|
345
|
+
version: "22.2.6",
|
|
346
|
+
ngImport: i0,
|
|
347
|
+
type: ColorPickerPopoverPositioner,
|
|
348
|
+
deps: [],
|
|
349
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
static {
|
|
353
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
354
|
+
minVersion: "17.1.0",
|
|
355
|
+
version: "22.2.6",
|
|
356
|
+
type: ColorPickerPopoverPositioner,
|
|
357
|
+
isStandalone: true,
|
|
358
|
+
selector: "[colorPickerPopoverPositioner]",
|
|
359
|
+
inputs: {
|
|
360
|
+
side: {
|
|
361
|
+
classPropertyName: "side",
|
|
362
|
+
publicName: "side",
|
|
363
|
+
isSignal: true,
|
|
364
|
+
isRequired: false,
|
|
365
|
+
transformFunction: null
|
|
366
|
+
},
|
|
367
|
+
align: {
|
|
368
|
+
classPropertyName: "align",
|
|
369
|
+
publicName: "align",
|
|
370
|
+
isSignal: true,
|
|
371
|
+
isRequired: false,
|
|
372
|
+
transformFunction: null
|
|
373
|
+
},
|
|
374
|
+
sideOffset: {
|
|
375
|
+
classPropertyName: "sideOffset",
|
|
376
|
+
publicName: "sideOffset",
|
|
377
|
+
isSignal: true,
|
|
378
|
+
isRequired: false,
|
|
379
|
+
transformFunction: null
|
|
380
|
+
},
|
|
381
|
+
alignOffset: {
|
|
382
|
+
classPropertyName: "alignOffset",
|
|
383
|
+
publicName: "alignOffset",
|
|
384
|
+
isSignal: true,
|
|
385
|
+
isRequired: false,
|
|
386
|
+
transformFunction: null
|
|
387
|
+
},
|
|
388
|
+
collisionPadding: {
|
|
389
|
+
classPropertyName: "collisionPadding",
|
|
390
|
+
publicName: "collisionPadding",
|
|
391
|
+
isSignal: true,
|
|
392
|
+
isRequired: false,
|
|
393
|
+
transformFunction: null
|
|
394
|
+
},
|
|
395
|
+
anchor: {
|
|
396
|
+
classPropertyName: "anchor",
|
|
397
|
+
publicName: "anchor",
|
|
398
|
+
isSignal: true,
|
|
399
|
+
isRequired: false,
|
|
400
|
+
transformFunction: null
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
host: {
|
|
404
|
+
attributes: {
|
|
405
|
+
"role": "presentation",
|
|
406
|
+
"data-primitives-part": "color-picker-popover-positioner"
|
|
407
|
+
},
|
|
408
|
+
properties: {
|
|
409
|
+
"attr.hidden": "root.overlay.presence.mounted() ? null : ''",
|
|
410
|
+
"attr.data-open": "data().open",
|
|
411
|
+
"attr.data-closed": "data().closed",
|
|
412
|
+
"attr.data-side": "data().side",
|
|
413
|
+
"attr.data-align": "data().align"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
exportAs: ["colorPickerPopoverPositioner"],
|
|
417
|
+
ngImport: i0
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
422
|
+
minVersion: "12.0.0",
|
|
423
|
+
version: "22.2.6",
|
|
424
|
+
ngImport: i0,
|
|
425
|
+
type: ColorPickerPopoverPositioner,
|
|
426
|
+
decorators: [{
|
|
427
|
+
type: Directive,
|
|
428
|
+
args: [{
|
|
429
|
+
selector: "[colorPickerPopoverPositioner]",
|
|
430
|
+
exportAs: "colorPickerPopoverPositioner",
|
|
431
|
+
host: {
|
|
432
|
+
role: "presentation",
|
|
433
|
+
"data-primitives-part": "color-picker-popover-positioner",
|
|
434
|
+
"[attr.hidden]": "root.overlay.presence.mounted() ? null : ''",
|
|
435
|
+
"[attr.data-open]": "data().open",
|
|
436
|
+
"[attr.data-closed]": "data().closed",
|
|
437
|
+
"[attr.data-side]": "data().side",
|
|
438
|
+
"[attr.data-align]": "data().align"
|
|
439
|
+
}
|
|
440
|
+
}]
|
|
441
|
+
}],
|
|
442
|
+
ctorParameters: () => [],
|
|
443
|
+
propDecorators: {
|
|
444
|
+
side: [{
|
|
445
|
+
type: i0.Input,
|
|
446
|
+
args: [{
|
|
447
|
+
isSignal: true,
|
|
448
|
+
alias: "side",
|
|
449
|
+
required: false
|
|
450
|
+
}]
|
|
451
|
+
}],
|
|
452
|
+
align: [{
|
|
453
|
+
type: i0.Input,
|
|
454
|
+
args: [{
|
|
455
|
+
isSignal: true,
|
|
456
|
+
alias: "align",
|
|
457
|
+
required: false
|
|
458
|
+
}]
|
|
459
|
+
}],
|
|
460
|
+
sideOffset: [{
|
|
461
|
+
type: i0.Input,
|
|
462
|
+
args: [{
|
|
463
|
+
isSignal: true,
|
|
464
|
+
alias: "sideOffset",
|
|
465
|
+
required: false
|
|
466
|
+
}]
|
|
467
|
+
}],
|
|
468
|
+
alignOffset: [{
|
|
469
|
+
type: i0.Input,
|
|
470
|
+
args: [{
|
|
471
|
+
isSignal: true,
|
|
472
|
+
alias: "alignOffset",
|
|
473
|
+
required: false
|
|
474
|
+
}]
|
|
475
|
+
}],
|
|
476
|
+
collisionPadding: [{
|
|
477
|
+
type: i0.Input,
|
|
478
|
+
args: [{
|
|
479
|
+
isSignal: true,
|
|
480
|
+
alias: "collisionPadding",
|
|
481
|
+
required: false
|
|
482
|
+
}]
|
|
483
|
+
}],
|
|
484
|
+
anchor: [{
|
|
485
|
+
type: i0.Input,
|
|
486
|
+
args: [{
|
|
487
|
+
isSignal: true,
|
|
488
|
+
alias: "anchor",
|
|
489
|
+
required: false
|
|
490
|
+
}]
|
|
491
|
+
}]
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
var ColorPickerPopoverTrigger = class ColorPickerPopoverTrigger {
|
|
495
|
+
constructor() {
|
|
496
|
+
this.root = inject(ColorPickerPopoverRoot);
|
|
497
|
+
this.state = computed(() => this.root.state(), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
498
|
+
this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
499
|
+
this.String = String;
|
|
500
|
+
registerHost(this.root.overlay.singleTrigger);
|
|
501
|
+
}
|
|
502
|
+
onClick(event) {
|
|
503
|
+
if (this.root.disabled()) return;
|
|
504
|
+
this.root.overlay.setOpen(!this.state().open, "trigger-press", event);
|
|
505
|
+
}
|
|
506
|
+
static {
|
|
507
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
508
|
+
minVersion: "12.0.0",
|
|
509
|
+
version: "22.2.6",
|
|
510
|
+
ngImport: i0,
|
|
511
|
+
type: ColorPickerPopoverTrigger,
|
|
512
|
+
deps: [],
|
|
513
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
static {
|
|
517
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
518
|
+
minVersion: "14.0.0",
|
|
519
|
+
version: "22.2.6",
|
|
520
|
+
type: ColorPickerPopoverTrigger,
|
|
521
|
+
isStandalone: true,
|
|
522
|
+
selector: "[colorPickerPopoverTrigger]",
|
|
523
|
+
host: {
|
|
524
|
+
attributes: {
|
|
525
|
+
"type": "button",
|
|
526
|
+
"aria-haspopup": "dialog",
|
|
527
|
+
"data-primitives-part": "color-picker-popover-trigger"
|
|
528
|
+
},
|
|
529
|
+
listeners: { "click": "onClick($event)" },
|
|
530
|
+
properties: {
|
|
531
|
+
"attr.id": "root.overlay.triggerId",
|
|
532
|
+
"attr.disabled": "data().disabled",
|
|
533
|
+
"attr.aria-expanded": "String(state().open)",
|
|
534
|
+
"attr.aria-controls": "state().open ? root.overlay.popupId : null",
|
|
535
|
+
"attr.data-popup-open": "data().open",
|
|
536
|
+
"attr.data-disabled": "data().disabled"
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
exportAs: ["colorPickerPopoverTrigger"],
|
|
540
|
+
ngImport: i0
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
545
|
+
minVersion: "12.0.0",
|
|
546
|
+
version: "22.2.6",
|
|
547
|
+
ngImport: i0,
|
|
548
|
+
type: ColorPickerPopoverTrigger,
|
|
549
|
+
decorators: [{
|
|
550
|
+
type: Directive,
|
|
551
|
+
args: [{
|
|
552
|
+
selector: "[colorPickerPopoverTrigger]",
|
|
553
|
+
exportAs: "colorPickerPopoverTrigger",
|
|
554
|
+
host: {
|
|
555
|
+
type: "button",
|
|
556
|
+
"aria-haspopup": "dialog",
|
|
557
|
+
"data-primitives-part": "color-picker-popover-trigger",
|
|
558
|
+
"[attr.id]": "root.overlay.triggerId",
|
|
559
|
+
"[attr.disabled]": "data().disabled",
|
|
560
|
+
"[attr.aria-expanded]": "String(state().open)",
|
|
561
|
+
"[attr.aria-controls]": "state().open ? root.overlay.popupId : null",
|
|
562
|
+
"[attr.data-popup-open]": "data().open",
|
|
563
|
+
"[attr.data-disabled]": "data().disabled",
|
|
564
|
+
"(click)": "onClick($event)"
|
|
565
|
+
}
|
|
566
|
+
}]
|
|
567
|
+
}],
|
|
568
|
+
ctorParameters: () => []
|
|
569
|
+
});
|
|
570
|
+
export { ColorPickerPopoverPopup, ColorPickerPopoverPortal, ColorPickerPopoverPositioner, ColorPickerPopoverRoot, ColorPickerPopoverTrigger };
|
|
571
|
+
|
|
572
|
+
//# sourceMappingURL=fragiola-primitives-angular-color-picker-popover.mjs.map
|