@mintplayer/ng-bootstrap 22.0.0 → 22.2.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/a11y/package.json +4 -0
- package/accordion/package.json +4 -0
- package/alert/package.json +4 -0
- package/badge/package.json +4 -0
- package/breadcrumb/package.json +4 -0
- package/button-group/package.json +4 -0
- package/button-type/package.json +4 -0
- package/calendar/package.json +4 -0
- package/calendar-month/package.json +4 -0
- package/card/package.json +4 -0
- package/carousel/package.json +4 -0
- package/checkbox/package.json +4 -0
- package/close/package.json +4 -0
- package/code-snippet/package.json +4 -0
- package/color-picker/package.json +4 -0
- package/container/package.json +4 -0
- package/context-menu/package.json +4 -0
- package/copy/package.json +4 -0
- package/datatable/package.json +4 -0
- package/datepicker/package.json +4 -0
- package/datetime-picker/package.json +4 -0
- package/dock/package.json +4 -0
- package/dropdown/package.json +4 -0
- package/dropdown-divider/package.json +4 -0
- package/dropdown-menu/package.json +4 -0
- package/enhanced-paste/package.json +4 -0
- package/enum/package.json +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +470 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +105 -0
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +53 -0
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +26 -0
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +36 -0
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +22 -0
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +37 -0
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +136 -0
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +71 -0
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +338 -0
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +290 -0
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +240 -0
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -0
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +45 -0
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +703 -0
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs +18 -0
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +88 -0
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +47 -0
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +659 -0
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +153 -0
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +166 -0
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +135 -0
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +23 -0
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +206 -0
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +338 -0
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +62 -0
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +38 -0
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +242 -0
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +144 -0
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +25 -0
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs +34 -0
- package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs +42 -0
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +61 -0
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +133 -0
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-has-id.mjs +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-has-id.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +32 -0
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs +23 -0
- package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs +23 -0
- package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +18 -0
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs +185 -0
- package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs +47 -0
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-linify.mjs +28 -0
- package/fesm2022/mintplayer-ng-bootstrap-linify.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +34 -0
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +118 -0
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +22 -0
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +254 -0
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +174 -0
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +33 -0
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +751 -0
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +234 -0
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +31 -0
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +386 -0
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +36 -0
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +264 -0
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +61 -0
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +29 -0
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +66 -0
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +33 -0
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +256 -0
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +272 -0
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +81 -0
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +278 -0
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +189 -0
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +79 -0
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +84 -0
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs +60 -0
- package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +408 -0
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +1028 -0
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +248 -0
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +186 -0
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +215 -0
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +90 -0
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +81 -0
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +30 -0
- package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +30 -0
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +25 -0
- package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +46 -0
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +142 -0
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +46 -0
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +124 -0
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +215 -0
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +233 -0
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +132 -0
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +168 -0
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +178 -0
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +324 -0
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +189 -0
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +28 -0
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +121 -0
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +24 -0
- package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +102 -0
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs +48 -0
- package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +34 -0
- package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs.map +1 -0
- package/file-manager/package.json +4 -0
- package/file-upload/package.json +4 -0
- package/floating-labels/package.json +4 -0
- package/font-color/package.json +4 -0
- package/for/package.json +4 -0
- package/form/package.json +4 -0
- package/grid/package.json +4 -0
- package/has-id/package.json +4 -0
- package/has-overlay/package.json +4 -0
- package/has-property/package.json +4 -0
- package/in-list/package.json +4 -0
- package/input-group/package.json +4 -0
- package/instance-of/package.json +4 -0
- package/let/package.json +4 -0
- package/linify/package.json +4 -0
- package/list-group/package.json +4 -0
- package/markdown/package.json +4 -0
- package/marquee/package.json +4 -0
- package/modal/package.json +4 -0
- package/multi-range/package.json +4 -0
- package/navbar/package.json +4 -0
- package/navbar-toggler/package.json +4 -0
- package/navigation-lock/package.json +4 -0
- package/no-noscript/package.json +4 -0
- package/offcanvas/package.json +4 -0
- package/ordinal-number/package.json +4 -0
- package/otp-input/package.json +4 -0
- package/package.json +376 -2
- package/pagination/package.json +4 -0
- package/parallax/package.json +4 -0
- package/placeholder/package.json +4 -0
- package/playlist-toggler/package.json +4 -0
- package/popover/package.json +4 -0
- package/priority-nav/package.json +4 -0
- package/progress-bar/package.json +4 -0
- package/query-builder/package.json +4 -0
- package/radio/package.json +4 -0
- package/range/package.json +4 -0
- package/rating/package.json +4 -0
- package/reduced-motion/package.json +4 -0
- package/resizable/package.json +4 -0
- package/ribbon/package.json +4 -0
- package/scheduler/package.json +4 -0
- package/scrollspy/package.json +4 -0
- package/select/package.json +4 -0
- package/shell/package.json +4 -0
- package/signature-pad/package.json +4 -0
- package/slugify/package.json +4 -0
- package/spinner/package.json +4 -0
- package/split-string/package.json +4 -0
- package/sticky-footer/package.json +4 -0
- package/tab-control/package.json +4 -0
- package/table/package.json +4 -0
- package/theming/package.json +4 -0
- package/tile-manager/package.json +4 -0
- package/timeline/package.json +4 -0
- package/timepicker/package.json +4 -0
- package/toast/package.json +4 -0
- package/tooltip/package.json +4 -0
- package/tree-select/package.json +4 -0
- package/treeview/package.json +4 -0
- package/trust-html/package.json +4 -0
- package/typeahead/package.json +4 -0
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +196 -0
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +39 -0
- package/types/mintplayer-ng-bootstrap-alert.d.ts +22 -0
- package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -0
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +14 -0
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +9 -0
- package/types/mintplayer-ng-bootstrap-button-type.d.ts +12 -0
- package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +54 -0
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +23 -0
- package/types/mintplayer-ng-bootstrap-card.d.ts +124 -0
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +121 -0
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +94 -0
- package/types/mintplayer-ng-bootstrap-close.d.ts +10 -0
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +27 -0
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +234 -0
- package/types/mintplayer-ng-bootstrap-container.d.ts +8 -0
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +21 -0
- package/types/mintplayer-ng-bootstrap-copy.d.ts +12 -0
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +234 -0
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +41 -0
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +55 -0
- package/types/mintplayer-ng-bootstrap-dock.d.ts +45 -0
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +8 -0
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +66 -0
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +102 -0
- package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +20 -0
- package/types/mintplayer-ng-bootstrap-enum.d.ts +17 -0
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +97 -0
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +51 -0
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +9 -0
- package/types/mintplayer-ng-bootstrap-font-color.d.ts +10 -0
- package/types/mintplayer-ng-bootstrap-for.d.ts +13 -0
- package/types/mintplayer-ng-bootstrap-form.d.ts +24 -0
- package/types/mintplayer-ng-bootstrap-grid.d.ts +50 -0
- package/types/mintplayer-ng-bootstrap-has-id.d.ts +5 -0
- package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +22 -0
- package/types/mintplayer-ng-bootstrap-has-property.d.ts +10 -0
- package/types/mintplayer-ng-bootstrap-in-list.d.ts +11 -0
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +8 -0
- package/types/mintplayer-ng-bootstrap-instance-of.d.ts +74 -0
- package/types/mintplayer-ng-bootstrap-let.d.ts +44 -0
- package/types/mintplayer-ng-bootstrap-linify.d.ts +10 -0
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +14 -0
- package/types/mintplayer-ng-bootstrap-markdown.d.ts +33 -0
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +9 -0
- package/types/mintplayer-ng-bootstrap-modal.d.ts +83 -0
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +43 -0
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +13 -0
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +238 -0
- package/types/mintplayer-ng-bootstrap-navigation-lock.d.ts +128 -0
- package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +11 -0
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +106 -0
- package/types/mintplayer-ng-bootstrap-ordinal-number.d.ts +12 -0
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +50 -0
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +34 -0
- package/types/mintplayer-ng-bootstrap-parallax.d.ts +11 -0
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +23 -0
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +13 -0
- package/types/mintplayer-ng-bootstrap-popover.d.ts +67 -0
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +64 -0
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +27 -0
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +113 -0
- package/types/mintplayer-ng-bootstrap-radio.d.ts +80 -0
- package/types/mintplayer-ng-bootstrap-range.d.ts +28 -0
- package/types/mintplayer-ng-bootstrap-rating.d.ts +20 -0
- package/types/mintplayer-ng-bootstrap-reduced-motion.d.ts +36 -0
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +89 -0
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +279 -0
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +171 -0
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +40 -0
- package/types/mintplayer-ng-bootstrap-select.d.ts +67 -0
- package/types/mintplayer-ng-bootstrap-shell.d.ts +54 -0
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +36 -0
- package/types/mintplayer-ng-bootstrap-slugify.d.ts +10 -0
- package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -0
- package/types/mintplayer-ng-bootstrap-split-string.d.ts +10 -0
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +21 -0
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +50 -0
- package/types/mintplayer-ng-bootstrap-table.d.ts +25 -0
- package/types/mintplayer-ng-bootstrap-theming.d.ts +81 -0
- package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +58 -0
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +112 -0
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +39 -0
- package/types/mintplayer-ng-bootstrap-toast.d.ts +67 -0
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +29 -0
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +117 -0
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +60 -0
- package/types/mintplayer-ng-bootstrap-trust-html.d.ts +12 -0
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +34 -0
- package/types/mintplayer-ng-bootstrap-uc-first.d.ts +10 -0
- package/types/mintplayer-ng-bootstrap-user-agent.d.ts +28 -0
- package/types/mintplayer-ng-bootstrap-viewport.d.ts +16 -0
- package/types/mintplayer-ng-bootstrap-word-count.d.ts +10 -0
- package/uc-first/package.json +4 -0
- package/user-agent/package.json +4 -0
- package/viewport/package.json +4 -0
- package/word-count/package.json +4 -0
|
@@ -0,0 +1,703 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { viewChild, input, model, signal, computed, ChangeDetectionStrategy, Component, Directive, inject, forwardRef } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/forms';
|
|
4
|
+
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { BsCheckboxComponent } from '@mintplayer/ng-bootstrap/checkbox';
|
|
7
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Single source of truth for color-space conversions used by the picker.
|
|
11
|
+
*
|
|
12
|
+
* Conventions across this module:
|
|
13
|
+
* - hue is in degrees [0, 360)
|
|
14
|
+
* - saturation, lightness, value, alpha are in [0, 1]
|
|
15
|
+
* - r, g, b are in [0, 255] (integer on the way out, real-valued internally)
|
|
16
|
+
* - hex is "#RRGGBB" — three-digit "#RGB" is accepted on parse only
|
|
17
|
+
*/
|
|
18
|
+
const TWO_PI = Math.PI * 2;
|
|
19
|
+
const clamp01 = (n) => Math.max(0, Math.min(1, n));
|
|
20
|
+
const clamp255 = (n) => Math.max(0, Math.min(255, Math.round(n)));
|
|
21
|
+
const HEX6_RE = /^[0-9a-fA-F]{6}$/;
|
|
22
|
+
const BLACK = { r: 0, g: 0, b: 0 };
|
|
23
|
+
function hex2rgb(hex) {
|
|
24
|
+
const stripped = hex.startsWith('#') ? hex.slice(1) : hex;
|
|
25
|
+
const expanded = stripped.length === 3
|
|
26
|
+
? stripped.split('').map(c => c + c).join('')
|
|
27
|
+
: stripped;
|
|
28
|
+
if (!HEX6_RE.test(expanded))
|
|
29
|
+
return { ...BLACK };
|
|
30
|
+
return {
|
|
31
|
+
r: parseInt(expanded.slice(0, 2), 16),
|
|
32
|
+
g: parseInt(expanded.slice(2, 4), 16),
|
|
33
|
+
b: parseInt(expanded.slice(4, 6), 16),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function rgb2hex(rgb) {
|
|
37
|
+
const r = clamp255(rgb.r);
|
|
38
|
+
const g = clamp255(rgb.g);
|
|
39
|
+
const b = clamp255(rgb.b);
|
|
40
|
+
return '#' + ((r << 16) + (g << 8) + b).toString(16).padStart(6, '0');
|
|
41
|
+
}
|
|
42
|
+
function rgb2hsv(rgb) {
|
|
43
|
+
const r = rgb.r / 255;
|
|
44
|
+
const g = rgb.g / 255;
|
|
45
|
+
const b = rgb.b / 255;
|
|
46
|
+
const max = Math.max(r, g, b);
|
|
47
|
+
const min = Math.min(r, g, b);
|
|
48
|
+
const d = max - min;
|
|
49
|
+
const value = max;
|
|
50
|
+
const saturation = max === 0 ? 0 : d / max;
|
|
51
|
+
const hue = d === 0 ? 0 : hueFromRgb(r, g, b, max, d);
|
|
52
|
+
return { hue, saturation, value };
|
|
53
|
+
}
|
|
54
|
+
function hsv2rgb(hsv) {
|
|
55
|
+
const s = clamp01(hsv.saturation);
|
|
56
|
+
const v = clamp01(hsv.value);
|
|
57
|
+
const h = ((hsv.hue % 360) + 360) % 360;
|
|
58
|
+
const c = v * s;
|
|
59
|
+
const hp = h / 60;
|
|
60
|
+
const x = c * (1 - Math.abs((hp % 2) - 1));
|
|
61
|
+
const m = v - c;
|
|
62
|
+
let r1 = 0, g1 = 0, b1 = 0;
|
|
63
|
+
if (hp < 1) {
|
|
64
|
+
r1 = c;
|
|
65
|
+
g1 = x;
|
|
66
|
+
}
|
|
67
|
+
else if (hp < 2) {
|
|
68
|
+
r1 = x;
|
|
69
|
+
g1 = c;
|
|
70
|
+
}
|
|
71
|
+
else if (hp < 3) {
|
|
72
|
+
g1 = c;
|
|
73
|
+
b1 = x;
|
|
74
|
+
}
|
|
75
|
+
else if (hp < 4) {
|
|
76
|
+
g1 = x;
|
|
77
|
+
b1 = c;
|
|
78
|
+
}
|
|
79
|
+
else if (hp < 5) {
|
|
80
|
+
r1 = x;
|
|
81
|
+
b1 = c;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
r1 = c;
|
|
85
|
+
b1 = x;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
r: (r1 + m) * 255,
|
|
89
|
+
g: (g1 + m) * 255,
|
|
90
|
+
b: (b1 + m) * 255,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function rgb2hsl(rgb) {
|
|
94
|
+
const r = rgb.r / 255;
|
|
95
|
+
const g = rgb.g / 255;
|
|
96
|
+
const b = rgb.b / 255;
|
|
97
|
+
const max = Math.max(r, g, b);
|
|
98
|
+
const min = Math.min(r, g, b);
|
|
99
|
+
const d = max - min;
|
|
100
|
+
const luminosity = (max + min) / 2;
|
|
101
|
+
const saturation = d === 0
|
|
102
|
+
? 0
|
|
103
|
+
: d / (1 - Math.abs(2 * luminosity - 1));
|
|
104
|
+
const hue = d === 0 ? 0 : hueFromRgb(r, g, b, max, d);
|
|
105
|
+
return { hue, saturation, luminosity };
|
|
106
|
+
}
|
|
107
|
+
function hsl2rgb(hsl) {
|
|
108
|
+
return hsv2rgb(hsl2hsv(hsl));
|
|
109
|
+
}
|
|
110
|
+
function hsv2hsl(hsv) {
|
|
111
|
+
const v = clamp01(hsv.value);
|
|
112
|
+
const s = clamp01(hsv.saturation);
|
|
113
|
+
const luminosity = v * (1 - s / 2);
|
|
114
|
+
const denom = Math.min(luminosity, 1 - luminosity);
|
|
115
|
+
const saturation = denom === 0 ? 0 : (v - luminosity) / denom;
|
|
116
|
+
return { hue: hsv.hue, saturation, luminosity };
|
|
117
|
+
}
|
|
118
|
+
function hsl2hsv(hsl) {
|
|
119
|
+
const l = clamp01(hsl.luminosity);
|
|
120
|
+
const s = clamp01(hsl.saturation);
|
|
121
|
+
const value = l + s * Math.min(l, 1 - l);
|
|
122
|
+
const saturation = value === 0 ? 0 : 2 * (1 - l / value);
|
|
123
|
+
return { hue: hsl.hue, saturation, value };
|
|
124
|
+
}
|
|
125
|
+
function hex2hsv(hex) {
|
|
126
|
+
return rgb2hsv(hex2rgb(hex));
|
|
127
|
+
}
|
|
128
|
+
function hsv2hex(hsv) {
|
|
129
|
+
return rgb2hex(hsv2rgb(hsv));
|
|
130
|
+
}
|
|
131
|
+
/** Polar position (cx, cy) on a disc of radius R → HSV (hue, saturation). */
|
|
132
|
+
function polar2hs(dx, dy, radius) {
|
|
133
|
+
const r = Math.sqrt(dx * dx + dy * dy);
|
|
134
|
+
const saturation = clamp01(r / radius);
|
|
135
|
+
let hue = (Math.atan2(dy, dx) * 360) / TWO_PI;
|
|
136
|
+
if (hue < 0)
|
|
137
|
+
hue += 360;
|
|
138
|
+
return { hue, saturation };
|
|
139
|
+
}
|
|
140
|
+
/** Inverse of polar2hs. Hue in degrees, saturation in [0, 1] → (dx, dy) on a disc of given radius. */
|
|
141
|
+
function hs2polar(hue, saturation, radius) {
|
|
142
|
+
const theta = (hue * TWO_PI) / 360;
|
|
143
|
+
const r = clamp01(saturation) * radius;
|
|
144
|
+
return { dx: r * Math.cos(theta), dy: r * Math.sin(theta) };
|
|
145
|
+
}
|
|
146
|
+
function hueFromRgb(r, g, b, max, d) {
|
|
147
|
+
let h;
|
|
148
|
+
switch (max) {
|
|
149
|
+
case r:
|
|
150
|
+
h = ((g - b) / d) % 6;
|
|
151
|
+
break;
|
|
152
|
+
case g:
|
|
153
|
+
h = (b - r) / d + 2;
|
|
154
|
+
break;
|
|
155
|
+
default:
|
|
156
|
+
h = (r - g) / d + 4;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
h *= 60;
|
|
160
|
+
if (h < 0)
|
|
161
|
+
h += 360;
|
|
162
|
+
return h;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
class BsSliderComponent {
|
|
166
|
+
constructor() {
|
|
167
|
+
this.track = viewChild.required('track');
|
|
168
|
+
this.thumb = viewChild.required('thumb');
|
|
169
|
+
this.disabled = input(false, /* @ts-ignore */
|
|
170
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
171
|
+
this.value = model(0.5, /* @ts-ignore */
|
|
172
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
173
|
+
/** Accessible name for SR users. e.g. "Brightness", "Alpha", "Hue". */
|
|
174
|
+
this.ariaLabel = input(null, /* @ts-ignore */
|
|
175
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
176
|
+
/** Multiplier applied to the 0..1 value when reporting it through aria-valuenow / aria-valuemax / aria-valuetext. 100 = percent (default); 360 = degrees; 255 = byte; etc. */
|
|
177
|
+
this.valueScale = input(100, /* @ts-ignore */
|
|
178
|
+
...(ngDevMode ? [{ debugName: "valueScale" }] : /* istanbul ignore next */ []));
|
|
179
|
+
/** Suffix appended to aria-valuetext after the scaled number. Defaults to "%". Use "°" for hue, "" for unitless. */
|
|
180
|
+
this.valueUnit = input('%', /* @ts-ignore */
|
|
181
|
+
...(ngDevMode ? [{ debugName: "valueUnit" }] : /* istanbul ignore next */ []));
|
|
182
|
+
this.isPointerDown = signal(false, /* @ts-ignore */
|
|
183
|
+
...(ngDevMode ? [{ debugName: "isPointerDown" }] : /* istanbul ignore next */ []));
|
|
184
|
+
this.thumbLeft = computed(() => `${this.value() * 100}%`, /* @ts-ignore */
|
|
185
|
+
...(ngDevMode ? [{ debugName: "thumbLeft" }] : /* istanbul ignore next */ []));
|
|
186
|
+
this.cursorClass = computed(() => 'position-absolute top-0 ' + (this.isPointerDown() ? 'cursor-grabbing' : 'cursor-grab'), /* @ts-ignore */
|
|
187
|
+
...(ngDevMode ? [{ debugName: "cursorClass" }] : /* istanbul ignore next */ []));
|
|
188
|
+
/** Scaled current value for aria-valuenow (e.g. 0..100 for percent, 0..360 for hue). */
|
|
189
|
+
this.ariaValueNow = computed(() => Math.round(this.value() * this.valueScale()), /* @ts-ignore */
|
|
190
|
+
...(ngDevMode ? [{ debugName: "ariaValueNow" }] : /* istanbul ignore next */ []));
|
|
191
|
+
/** Human-readable value for SR with the configured unit. */
|
|
192
|
+
this.ariaValueText = computed(() => `${this.ariaValueNow()}${this.valueUnit()}`, /* @ts-ignore */
|
|
193
|
+
...(ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []));
|
|
194
|
+
}
|
|
195
|
+
onPointerDown(ev) {
|
|
196
|
+
if (this.disabled())
|
|
197
|
+
return;
|
|
198
|
+
ev.preventDefault();
|
|
199
|
+
ev.stopPropagation();
|
|
200
|
+
this.isPointerDown.set(true);
|
|
201
|
+
this.updateColor(ev);
|
|
202
|
+
}
|
|
203
|
+
onPointerMove(ev) {
|
|
204
|
+
if (this.isPointerDown()) {
|
|
205
|
+
ev.preventDefault();
|
|
206
|
+
ev.stopPropagation();
|
|
207
|
+
this.updateColor(ev);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
onPointerUp(_ev) {
|
|
211
|
+
this.isPointerDown.set(false);
|
|
212
|
+
}
|
|
213
|
+
onKeydown(ev) {
|
|
214
|
+
if (this.disabled())
|
|
215
|
+
return;
|
|
216
|
+
const cur = this.value();
|
|
217
|
+
const step = ev.shiftKey ? 0.001 : 0.01; // 1% default, 0.1% with Shift
|
|
218
|
+
const pageStep = 0.1; // 10% with PageUp/PageDown
|
|
219
|
+
let next = null;
|
|
220
|
+
switch (ev.key) {
|
|
221
|
+
case 'ArrowRight':
|
|
222
|
+
case 'ArrowUp':
|
|
223
|
+
next = Math.min(1, cur + step);
|
|
224
|
+
break;
|
|
225
|
+
case 'ArrowLeft':
|
|
226
|
+
case 'ArrowDown':
|
|
227
|
+
next = Math.max(0, cur - step);
|
|
228
|
+
break;
|
|
229
|
+
case 'PageUp':
|
|
230
|
+
next = Math.min(1, cur + pageStep);
|
|
231
|
+
break;
|
|
232
|
+
case 'PageDown':
|
|
233
|
+
next = Math.max(0, cur - pageStep);
|
|
234
|
+
break;
|
|
235
|
+
case 'Home':
|
|
236
|
+
next = 0;
|
|
237
|
+
break;
|
|
238
|
+
case 'End':
|
|
239
|
+
next = 1;
|
|
240
|
+
break;
|
|
241
|
+
default:
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
ev.preventDefault();
|
|
245
|
+
if (next !== cur)
|
|
246
|
+
this.value.set(next);
|
|
247
|
+
}
|
|
248
|
+
updateColor(ev) {
|
|
249
|
+
const rect = this.track().nativeElement.getBoundingClientRect();
|
|
250
|
+
const clientX = 'touches' in ev ? ev.touches[0].clientX : ev.clientX;
|
|
251
|
+
const percent = (clientX - rect.left) / this.track().nativeElement.clientWidth;
|
|
252
|
+
this.value.set(Math.max(0, Math.min(1, percent)));
|
|
253
|
+
}
|
|
254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
255
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsSliderComponent, isStandalone: true, selector: "bs-slider", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, valueScale: { classPropertyName: "valueScale", publicName: "valueScale", isSignal: true, isRequired: false, transformFunction: null }, valueUnit: { classPropertyName: "valueUnit", publicName: "valueUnit", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "slider", "aria-valuemin": "0", "aria-orientation": "horizontal" }, listeners: { "document:mousemove": "onPointerMove($event)", "document:mouseup": "onPointerUp($event)", "keydown": "onKeydown($event)" }, properties: { "attr.aria-valuemax": "valueScale()", "attr.aria-valuenow": "ariaValueNow()", "attr.aria-valuetext": "ariaValueText()", "attr.aria-label": "ariaLabel()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.tabindex": "disabled() ? -1 : 0" }, classAttribute: "d-block position-relative" }, viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }, { propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"wrapper d-block position-relative\">\n <div #track class=\"track2\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\">\n <ng-content select=\"[bsTrack]\"></ng-content>\n </div>\n <div #thumb\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n [class]=\"cursorClass()\"\n [style.left]=\"thumbLeft()\">\n <ng-content select=\"[bsThumb]\"></ng-content>\n </div>\n</div>\n", styles: [".track2{height:8px}.wrapper{padding-top:8px;padding-bottom:8px}:host ::ng-deep .track{height:8px;border-radius:8px}:host ::ng-deep .thumb{width:24px;height:24px;top:0;transform:translate(-50%);border-radius:50%;box-shadow:0 0 0 .1rem #646b7240}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
256
|
+
}
|
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSliderComponent, decorators: [{
|
|
258
|
+
type: Component,
|
|
259
|
+
args: [{ selector: 'bs-slider', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
260
|
+
'class': 'd-block position-relative',
|
|
261
|
+
'role': 'slider',
|
|
262
|
+
'aria-valuemin': '0',
|
|
263
|
+
'aria-orientation': 'horizontal',
|
|
264
|
+
'[attr.aria-valuemax]': 'valueScale()',
|
|
265
|
+
'[attr.aria-valuenow]': 'ariaValueNow()',
|
|
266
|
+
'[attr.aria-valuetext]': 'ariaValueText()',
|
|
267
|
+
'[attr.aria-label]': 'ariaLabel()',
|
|
268
|
+
'[attr.aria-disabled]': 'disabled() ? "true" : null',
|
|
269
|
+
'[attr.tabindex]': 'disabled() ? -1 : 0',
|
|
270
|
+
'(document:mousemove)': 'onPointerMove($event)',
|
|
271
|
+
'(document:mouseup)': 'onPointerUp($event)',
|
|
272
|
+
'(keydown)': 'onKeydown($event)',
|
|
273
|
+
}, template: "<div class=\"wrapper d-block position-relative\">\n <div #track class=\"track2\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\">\n <ng-content select=\"[bsTrack]\"></ng-content>\n </div>\n <div #thumb\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n [class]=\"cursorClass()\"\n [style.left]=\"thumbLeft()\">\n <ng-content select=\"[bsThumb]\"></ng-content>\n </div>\n</div>\n", styles: [".track2{height:8px}.wrapper{padding-top:8px;padding-bottom:8px}:host ::ng-deep .track{height:8px;border-radius:8px}:host ::ng-deep .thumb{width:24px;height:24px;top:0;transform:translate(-50%);border-radius:50%;box-shadow:0 0 0 .1rem #646b7240}\n"] }]
|
|
274
|
+
}], propDecorators: { track: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }], thumb: [{ type: i0.ViewChild, args: ['thumb', { isSignal: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], valueScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueScale", required: false }] }], valueUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueUnit", required: false }] }] } });
|
|
275
|
+
class BsThumbDirective {
|
|
276
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsThumbDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
277
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsThumbDirective, isStandalone: true, selector: "[bsThumb]", host: { classAttribute: "thumb position-absolute" }, ngImport: i0 }); }
|
|
278
|
+
}
|
|
279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsThumbDirective, decorators: [{
|
|
280
|
+
type: Directive,
|
|
281
|
+
args: [{
|
|
282
|
+
selector: '[bsThumb]',
|
|
283
|
+
host: {
|
|
284
|
+
'class': 'thumb position-absolute',
|
|
285
|
+
},
|
|
286
|
+
}]
|
|
287
|
+
}] });
|
|
288
|
+
class BsTrackDirective {
|
|
289
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsTrackDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
290
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsTrackDirective, isStandalone: true, selector: "[bsTrack]", host: { classAttribute: "track" }, ngImport: i0 }); }
|
|
291
|
+
}
|
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsTrackDirective, decorators: [{
|
|
293
|
+
type: Directive,
|
|
294
|
+
args: [{
|
|
295
|
+
selector: '[bsTrack]',
|
|
296
|
+
host: {
|
|
297
|
+
'class': 'track',
|
|
298
|
+
},
|
|
299
|
+
}]
|
|
300
|
+
}] });
|
|
301
|
+
|
|
302
|
+
class BsAlphaStripComponent {
|
|
303
|
+
constructor() {
|
|
304
|
+
this.disabled = input(false, /* @ts-ignore */
|
|
305
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
306
|
+
this.hs = model({ hue: 0, saturation: 0 }, /* @ts-ignore */
|
|
307
|
+
...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
|
|
308
|
+
this.brightness = model(1, /* @ts-ignore */
|
|
309
|
+
...(ngDevMode ? [{ debugName: "brightness" }] : /* istanbul ignore next */ []));
|
|
310
|
+
this.alpha = model(1, /* @ts-ignore */
|
|
311
|
+
...(ngDevMode ? [{ debugName: "alpha" }] : /* istanbul ignore next */ []));
|
|
312
|
+
this.trackGradient = computed(() => {
|
|
313
|
+
const hs = this.hs();
|
|
314
|
+
const brightness = this.brightness();
|
|
315
|
+
const rgb = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: brightness });
|
|
316
|
+
const r = Math.round(rgb.r), g = Math.round(rgb.g), b = Math.round(rgb.b);
|
|
317
|
+
return `linear-gradient(to right, rgba(${r}, ${g}, ${b}, 0), rgba(${r}, ${g}, ${b}, 1))`;
|
|
318
|
+
}, /* @ts-ignore */
|
|
319
|
+
...(ngDevMode ? [{ debugName: "trackGradient" }] : /* istanbul ignore next */ []));
|
|
320
|
+
this.resultBackground = computed(() => {
|
|
321
|
+
const hs = this.hs();
|
|
322
|
+
const brightness = this.brightness();
|
|
323
|
+
const alpha = this.alpha();
|
|
324
|
+
const rgb = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: brightness });
|
|
325
|
+
return `rgba(${Math.round(rgb.r)}, ${Math.round(rgb.g)}, ${Math.round(rgb.b)}, ${alpha})`;
|
|
326
|
+
}, /* @ts-ignore */
|
|
327
|
+
...(ngDevMode ? [{ debugName: "resultBackground" }] : /* istanbul ignore next */ []));
|
|
328
|
+
}
|
|
329
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsAlphaStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
330
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsAlphaStripComponent, isStandalone: true, selector: "bs-alpha-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null }, brightness: { classPropertyName: "brightness", publicName: "brightness", isSignal: true, isRequired: false, transformFunction: null }, alpha: { classPropertyName: "alpha", publicName: "alpha", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange", brightness: "brightnessChange", alpha: "alphaChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"alpha()\" (valueChange)=\"alpha.set($event)\" ariaLabel=\"Alpha\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n", styles: [".track{background-image:linear-gradient(45deg,#C0C0C0 25%,transparent 25%),linear-gradient(-45deg,#C0C0C0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#C0C0C0 75%),linear-gradient(-45deg,transparent 75%,#C0C0C0 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0px}\n"], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
331
|
+
}
|
|
332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsAlphaStripComponent, decorators: [{
|
|
333
|
+
type: Component,
|
|
334
|
+
args: [{ selector: 'bs-alpha-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"alpha()\" (valueChange)=\"alpha.set($event)\" ariaLabel=\"Alpha\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n", styles: [".track{background-image:linear-gradient(45deg,#C0C0C0 25%,transparent 25%),linear-gradient(-45deg,#C0C0C0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#C0C0C0 75%),linear-gradient(-45deg,transparent 75%,#C0C0C0 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0px}\n"] }]
|
|
335
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }], brightness: [{ type: i0.Input, args: [{ isSignal: true, alias: "brightness", required: false }] }, { type: i0.Output, args: ["brightnessChange"] }], alpha: [{ type: i0.Input, args: [{ isSignal: true, alias: "alpha", required: false }] }, { type: i0.Output, args: ["alphaChange"] }] } });
|
|
336
|
+
|
|
337
|
+
class BsBrightnessStripComponent {
|
|
338
|
+
constructor() {
|
|
339
|
+
this.disabled = input(false, /* @ts-ignore */
|
|
340
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
341
|
+
this.hs = model({ hue: 0, saturation: 0 }, /* @ts-ignore */
|
|
342
|
+
...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
|
|
343
|
+
this.brightness = model(1, /* @ts-ignore */
|
|
344
|
+
...(ngDevMode ? [{ debugName: "brightness" }] : /* istanbul ignore next */ []));
|
|
345
|
+
this.trackGradient = computed(() => {
|
|
346
|
+
const hs = this.hs();
|
|
347
|
+
const peak = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: 1 });
|
|
348
|
+
return `linear-gradient(to right, #000, rgb(${Math.round(peak.r)}, ${Math.round(peak.g)}, ${Math.round(peak.b)}))`;
|
|
349
|
+
}, /* @ts-ignore */
|
|
350
|
+
...(ngDevMode ? [{ debugName: "trackGradient" }] : /* istanbul ignore next */ []));
|
|
351
|
+
this.resultBackground = computed(() => {
|
|
352
|
+
const hs = this.hs();
|
|
353
|
+
const brightness = this.brightness();
|
|
354
|
+
const rgb = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: brightness });
|
|
355
|
+
return `rgb(${Math.round(rgb.r)}, ${Math.round(rgb.g)}, ${Math.round(rgb.b)})`;
|
|
356
|
+
}, /* @ts-ignore */
|
|
357
|
+
...(ngDevMode ? [{ debugName: "resultBackground" }] : /* istanbul ignore next */ []));
|
|
358
|
+
}
|
|
359
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsBrightnessStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
360
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsBrightnessStripComponent, isStandalone: true, selector: "bs-brightness-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null }, brightness: { classPropertyName: "brightness", publicName: "brightness", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange", brightness: "brightnessChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"brightness()\" (valueChange)=\"brightness.set($event)\" ariaLabel=\"Brightness\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n", styles: [""], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
361
|
+
}
|
|
362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsBrightnessStripComponent, decorators: [{
|
|
363
|
+
type: Component,
|
|
364
|
+
args: [{ selector: 'bs-brightness-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"brightness()\" (valueChange)=\"brightness.set($event)\" ariaLabel=\"Brightness\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n" }]
|
|
365
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }], brightness: [{ type: i0.Input, args: [{ isSignal: true, alias: "brightness", required: false }] }, { type: i0.Output, args: ["brightnessChange"] }] } });
|
|
366
|
+
|
|
367
|
+
class BsColorPickerValueAccessor {
|
|
368
|
+
constructor() {
|
|
369
|
+
this.host = inject(BsColorPickerComponent);
|
|
370
|
+
this.host.userChanged.pipe(takeUntilDestroyed()).subscribe(() => this.emit());
|
|
371
|
+
}
|
|
372
|
+
emit() {
|
|
373
|
+
this.onTouched?.();
|
|
374
|
+
if (!this.onValueChange)
|
|
375
|
+
return;
|
|
376
|
+
const hs = this.host.hs();
|
|
377
|
+
const brightness = this.host.brightness();
|
|
378
|
+
const rgb = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: brightness });
|
|
379
|
+
this.onValueChange(rgb2hex(rgb));
|
|
380
|
+
}
|
|
381
|
+
registerOnChange(fn) {
|
|
382
|
+
this.onValueChange = fn;
|
|
383
|
+
}
|
|
384
|
+
registerOnTouched(fn) {
|
|
385
|
+
this.onTouched = fn;
|
|
386
|
+
}
|
|
387
|
+
writeValue(value) {
|
|
388
|
+
if (!value)
|
|
389
|
+
return;
|
|
390
|
+
const hsv = hex2hsv(value);
|
|
391
|
+
this.host.hs.set({ hue: hsv.hue, saturation: hsv.saturation });
|
|
392
|
+
this.host.brightness.set(hsv.value);
|
|
393
|
+
}
|
|
394
|
+
setDisabledState(isDisabled) {
|
|
395
|
+
this.host.disabled.set(isDisabled);
|
|
396
|
+
}
|
|
397
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsColorPickerValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
398
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsColorPickerValueAccessor, isStandalone: true, selector: "bs-color-picker", providers: [{
|
|
399
|
+
provide: NG_VALUE_ACCESSOR,
|
|
400
|
+
useExisting: forwardRef(() => BsColorPickerValueAccessor),
|
|
401
|
+
multi: true
|
|
402
|
+
}], exportAs: ["bsColorPicker"], ngImport: i0 }); }
|
|
403
|
+
}
|
|
404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsColorPickerValueAccessor, decorators: [{
|
|
405
|
+
type: Directive,
|
|
406
|
+
args: [{
|
|
407
|
+
selector: 'bs-color-picker',
|
|
408
|
+
providers: [{
|
|
409
|
+
provide: NG_VALUE_ACCESSOR,
|
|
410
|
+
useExisting: forwardRef(() => BsColorPickerValueAccessor),
|
|
411
|
+
multi: true
|
|
412
|
+
}],
|
|
413
|
+
exportAs: 'bsColorPicker'
|
|
414
|
+
}]
|
|
415
|
+
}], ctorParameters: () => [] });
|
|
416
|
+
|
|
417
|
+
class BsColorWheelComponent {
|
|
418
|
+
constructor() {
|
|
419
|
+
this.surface = viewChild.required('surface');
|
|
420
|
+
this.width = model(150, /* @ts-ignore */
|
|
421
|
+
...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
422
|
+
this.height = model(150, /* @ts-ignore */
|
|
423
|
+
...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
424
|
+
this.brightness = model(1, /* @ts-ignore */
|
|
425
|
+
...(ngDevMode ? [{ debugName: "brightness" }] : /* istanbul ignore next */ []));
|
|
426
|
+
// `model()` exposes a `hsChange` output for [(hs)] / (hsChange) consumers;
|
|
427
|
+
// declaring it explicitly collides in Angular 22 (NG1054). Every `hs.set()`
|
|
428
|
+
// below drives that auto-output, so no manual emit/effect is needed.
|
|
429
|
+
this.hs = model({ hue: 0, saturation: 0 }, /* @ts-ignore */
|
|
430
|
+
...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
|
|
431
|
+
this.disabled = input(false, /* @ts-ignore */
|
|
432
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
433
|
+
this.ariaLabel = input('Color wheel: arrow left and right adjust hue, arrow up and down adjust saturation', /* @ts-ignore */
|
|
434
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
435
|
+
this.isPointerDown = signal(false, /* @ts-ignore */
|
|
436
|
+
...(ngDevMode ? [{ debugName: "isPointerDown" }] : /* istanbul ignore next */ []));
|
|
437
|
+
this.squareSize = computed(() => Math.min(this.width(), this.height()), /* @ts-ignore */
|
|
438
|
+
...(ngDevMode ? [{ debugName: "squareSize" }] : /* istanbul ignore next */ []));
|
|
439
|
+
this.shiftX = computed(() => Math.max(0, (this.width() - this.height()) / 2), /* @ts-ignore */
|
|
440
|
+
...(ngDevMode ? [{ debugName: "shiftX" }] : /* istanbul ignore next */ []));
|
|
441
|
+
this.shiftY = computed(() => Math.max(0, (this.height() - this.width()) / 2), /* @ts-ignore */
|
|
442
|
+
...(ngDevMode ? [{ debugName: "shiftY" }] : /* istanbul ignore next */ []));
|
|
443
|
+
this.outerRadius = computed(() => this.squareSize() / 2, /* @ts-ignore */
|
|
444
|
+
...(ngDevMode ? [{ debugName: "outerRadius" }] : /* istanbul ignore next */ []));
|
|
445
|
+
this.overlayOpacity = computed(() => 1 - this.brightness(), /* @ts-ignore */
|
|
446
|
+
...(ngDevMode ? [{ debugName: "overlayOpacity" }] : /* istanbul ignore next */ []));
|
|
447
|
+
this.ariaValueText = computed(() => {
|
|
448
|
+
const hs = this.hs();
|
|
449
|
+
return `Hue ${Math.round(hs.hue)}°, saturation ${Math.round(hs.saturation * 100)}%`;
|
|
450
|
+
}, /* @ts-ignore */
|
|
451
|
+
...(ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []));
|
|
452
|
+
this.markerPosition = computed(() => {
|
|
453
|
+
const hs = this.hs();
|
|
454
|
+
const radius = this.outerRadius();
|
|
455
|
+
const cx = this.shiftX() + radius;
|
|
456
|
+
const cy = this.shiftY() + radius;
|
|
457
|
+
const { dx, dy } = hs2polar(hs.hue, hs.saturation, radius);
|
|
458
|
+
return { x: cx + dx, y: cy + dy };
|
|
459
|
+
}, /* @ts-ignore */
|
|
460
|
+
...(ngDevMode ? [{ debugName: "markerPosition" }] : /* istanbul ignore next */ []));
|
|
461
|
+
}
|
|
462
|
+
onPointerDown(ev) {
|
|
463
|
+
if (this.disabled())
|
|
464
|
+
return;
|
|
465
|
+
if (!('touches' in ev))
|
|
466
|
+
ev.preventDefault();
|
|
467
|
+
ev.stopPropagation();
|
|
468
|
+
this.isPointerDown.set(true);
|
|
469
|
+
this.updateColor(ev);
|
|
470
|
+
}
|
|
471
|
+
onPointerMove(ev) {
|
|
472
|
+
if (!this.isPointerDown())
|
|
473
|
+
return;
|
|
474
|
+
if (!('touches' in ev))
|
|
475
|
+
ev.preventDefault();
|
|
476
|
+
ev.stopPropagation();
|
|
477
|
+
this.updateColor(ev);
|
|
478
|
+
}
|
|
479
|
+
onPointerUp(_ev) {
|
|
480
|
+
this.isPointerDown.set(false);
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Keyboard model for the 2-D wheel:
|
|
484
|
+
* ArrowLeft / ArrowRight → -1° / +1° hue (Shift: stays 1° for "fine")
|
|
485
|
+
* ArrowDown / ArrowUp → -1% / +1% saturation (Shift: stays 1% for "fine")
|
|
486
|
+
* PageDown / PageUp → -30° / +30° hue
|
|
487
|
+
* Home / End → saturation 100% / 0%
|
|
488
|
+
*
|
|
489
|
+
* Hue wraps around; saturation clamps. Sighted-keyboard users get the same
|
|
490
|
+
* wheel as mouse users; blind users typically prefer the channel sliders
|
|
491
|
+
* (toggleable in bs-color-picker), since aria-valuetext on a 2-D widget is
|
|
492
|
+
* harder to spatialise than two 1-D sliders.
|
|
493
|
+
*/
|
|
494
|
+
onKeydown(ev) {
|
|
495
|
+
if (this.disabled())
|
|
496
|
+
return;
|
|
497
|
+
const cur = this.hs();
|
|
498
|
+
const hueStep = ev.shiftKey ? 1 : 5;
|
|
499
|
+
const satStep = ev.shiftKey ? 0.01 : 0.05;
|
|
500
|
+
let nextHue = cur.hue;
|
|
501
|
+
let nextSat = cur.saturation;
|
|
502
|
+
switch (ev.key) {
|
|
503
|
+
case 'ArrowRight':
|
|
504
|
+
nextHue = (cur.hue + hueStep) % 360;
|
|
505
|
+
break;
|
|
506
|
+
case 'ArrowLeft':
|
|
507
|
+
nextHue = (cur.hue - hueStep + 360) % 360;
|
|
508
|
+
break;
|
|
509
|
+
case 'ArrowUp':
|
|
510
|
+
nextSat = Math.min(1, cur.saturation + satStep);
|
|
511
|
+
break;
|
|
512
|
+
case 'ArrowDown':
|
|
513
|
+
nextSat = Math.max(0, cur.saturation - satStep);
|
|
514
|
+
break;
|
|
515
|
+
case 'PageUp':
|
|
516
|
+
nextHue = (cur.hue + 30) % 360;
|
|
517
|
+
break;
|
|
518
|
+
case 'PageDown':
|
|
519
|
+
nextHue = (cur.hue - 30 + 360) % 360;
|
|
520
|
+
break;
|
|
521
|
+
case 'Home':
|
|
522
|
+
nextSat = 1;
|
|
523
|
+
break;
|
|
524
|
+
case 'End':
|
|
525
|
+
nextSat = 0;
|
|
526
|
+
break;
|
|
527
|
+
default:
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
ev.preventDefault();
|
|
531
|
+
if (nextHue !== cur.hue || nextSat !== cur.saturation) {
|
|
532
|
+
this.hs.set({ hue: nextHue, saturation: nextSat });
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
updateColor(ev) {
|
|
536
|
+
const rect = this.surface().nativeElement.getBoundingClientRect();
|
|
537
|
+
const clientX = 'touches' in ev ? ev.touches[0].clientX : ev.clientX;
|
|
538
|
+
const clientY = 'touches' in ev ? ev.touches[0].clientY : ev.clientY;
|
|
539
|
+
const radius = this.outerRadius();
|
|
540
|
+
const dx = clientX - rect.left - radius;
|
|
541
|
+
const dy = clientY - rect.top - radius;
|
|
542
|
+
const hs = polar2hs(dx, dy, radius);
|
|
543
|
+
this.hs.set(hs);
|
|
544
|
+
}
|
|
545
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsColorWheelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
546
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsColorWheelComponent, isStandalone: true, selector: "bs-color-wheel", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, brightness: { classPropertyName: "brightness", publicName: "brightness", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { width: "widthChange", height: "heightChange", brightness: "brightnessChange", hs: "hsChange" }, host: { attributes: { "role": "application" }, listeners: { "document:mousemove": "onPointerMove($event)", "document:mouseup": "onPointerUp($event)", "keydown": "onKeydown($event)" }, properties: { "attr.aria-label": "ariaLabel()", "attr.aria-valuetext": "ariaValueText()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.tabindex": "disabled() ? -1 : 0" }, classAttribute: "position-relative" }, viewQueries: [{ propertyName: "surface", first: true, predicate: ["surface"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [style.width.px]=\"width()\" [style.height.px]=\"height()\" class=\"position-relative\">\n <div class=\"wheel-surface position-absolute\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n #surface></div>\n\n <div class=\"brightness-overlay position-absolute pe-none\"\n [style.opacity]=\"overlayOpacity()\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"></div>\n\n @if (markerPosition(); as markerPosition) {\n <div class=\"marker position-absolute pe-none\" [style.left.px]=\"markerPosition.x\" [style.top.px]=\"markerPosition.y\"></div>\n }\n</div>\n", styles: [".wheel-surface{border-radius:50%;background:radial-gradient(circle closest-side,#fff,transparent),conic-gradient(from 90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);touch-action:none;cursor:crosshair}.brightness-overlay{background:#000;border-radius:50%;transition:opacity 60ms linear}.marker{width:30px;height:30px;border-radius:15px;margin-top:-15px;margin-left:-15px;box-sizing:border-box;border:2px solid var(--bs-body-bg);box-shadow:#0000001a 0 0 10px 5px;pointer-events:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
547
|
+
}
|
|
548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsColorWheelComponent, decorators: [{
|
|
549
|
+
type: Component,
|
|
550
|
+
args: [{ selector: 'bs-color-wheel', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
551
|
+
'class': 'position-relative',
|
|
552
|
+
'role': 'application',
|
|
553
|
+
'[attr.aria-label]': 'ariaLabel()',
|
|
554
|
+
'[attr.aria-valuetext]': 'ariaValueText()',
|
|
555
|
+
'[attr.aria-disabled]': 'disabled() ? "true" : null',
|
|
556
|
+
'[attr.tabindex]': 'disabled() ? -1 : 0',
|
|
557
|
+
'(document:mousemove)': 'onPointerMove($event)',
|
|
558
|
+
'(document:mouseup)': 'onPointerUp($event)',
|
|
559
|
+
'(keydown)': 'onKeydown($event)',
|
|
560
|
+
}, template: "<div [style.width.px]=\"width()\" [style.height.px]=\"height()\" class=\"position-relative\">\n <div class=\"wheel-surface position-absolute\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n #surface></div>\n\n <div class=\"brightness-overlay position-absolute pe-none\"\n [style.opacity]=\"overlayOpacity()\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"></div>\n\n @if (markerPosition(); as markerPosition) {\n <div class=\"marker position-absolute pe-none\" [style.left.px]=\"markerPosition.x\" [style.top.px]=\"markerPosition.y\"></div>\n }\n</div>\n", styles: [".wheel-surface{border-radius:50%;background:radial-gradient(circle closest-side,#fff,transparent),conic-gradient(from 90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);touch-action:none;cursor:crosshair}.brightness-overlay{background:#000;border-radius:50%;transition:opacity 60ms linear}.marker{width:30px;height:30px;border-radius:15px;margin-top:-15px;margin-left:-15px;box-sizing:border-box;border:2px solid var(--bs-body-bg);box-shadow:#0000001a 0 0 10px 5px;pointer-events:none}\n"] }]
|
|
561
|
+
}], propDecorators: { surface: [{ type: i0.ViewChild, args: ['surface', { isSignal: true }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }, { type: i0.Output, args: ["widthChange"] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }, { type: i0.Output, args: ["heightChange"] }], brightness: [{ type: i0.Input, args: [{ isSignal: true, alias: "brightness", required: false }] }, { type: i0.Output, args: ["brightnessChange"] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Hue picker — a horizontal rainbow strip backed by `bs-slider`. Two-way
|
|
565
|
+
* `[(hs)]` keeps the saturation untouched; only `hs.hue` (0–360°) changes.
|
|
566
|
+
* Inherits the slider's APG keyboard model (Arrow keys, Home/End, PageUp/Down).
|
|
567
|
+
*/
|
|
568
|
+
class BsHueStripComponent {
|
|
569
|
+
constructor() {
|
|
570
|
+
this.disabled = input(false, /* @ts-ignore */
|
|
571
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
572
|
+
this.hs = model({ hue: 0, saturation: 0 }, /* @ts-ignore */
|
|
573
|
+
...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
|
|
574
|
+
/** Hue normalized to 0..1 for the underlying bs-slider (which works in 0..1). */
|
|
575
|
+
this.normalizedHue = computed(() => this.hs().hue / 360, /* @ts-ignore */
|
|
576
|
+
...(ngDevMode ? [{ debugName: "normalizedHue" }] : /* istanbul ignore next */ []));
|
|
577
|
+
/** Rainbow gradient — every hue at full saturation/lightness. */
|
|
578
|
+
this.trackGradient = 'linear-gradient(to right,' +
|
|
579
|
+
' hsl(0, 100%, 50%),' +
|
|
580
|
+
' hsl(60, 100%, 50%),' +
|
|
581
|
+
' hsl(120, 100%, 50%),' +
|
|
582
|
+
' hsl(180, 100%, 50%),' +
|
|
583
|
+
' hsl(240, 100%, 50%),' +
|
|
584
|
+
' hsl(300, 100%, 50%),' +
|
|
585
|
+
' hsl(360, 100%, 50%))';
|
|
586
|
+
this.thumbBackground = computed(() => `hsl(${Math.round(this.hs().hue)}, 100%, 50%)`, /* @ts-ignore */
|
|
587
|
+
...(ngDevMode ? [{ debugName: "thumbBackground" }] : /* istanbul ignore next */ []));
|
|
588
|
+
}
|
|
589
|
+
onValueChange(v) {
|
|
590
|
+
this.hs.set({ ...this.hs(), hue: v * 360 });
|
|
591
|
+
}
|
|
592
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsHueStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
593
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsHueStripComponent, isStandalone: true, selector: "bs-hue-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"normalizedHue()\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Hue\" [valueScale]=\"360\" valueUnit=\"\u00B0\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
594
|
+
}
|
|
595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsHueStripComponent, decorators: [{
|
|
596
|
+
type: Component,
|
|
597
|
+
args: [{ selector: 'bs-hue-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"normalizedHue()\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Hue\" [valueScale]=\"360\" valueUnit=\"\u00B0\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"] }]
|
|
598
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }] } });
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Saturation picker — a horizontal grey-to-pure-colour strip backed by
|
|
602
|
+
* `bs-slider`. Two-way `[(hs)]` keeps the hue untouched; only `hs.saturation`
|
|
603
|
+
* (0–1) changes. The track gradient re-derives from the current hue so the
|
|
604
|
+
* preview always matches what the user is about to pick.
|
|
605
|
+
*/
|
|
606
|
+
class BsSaturationStripComponent {
|
|
607
|
+
constructor() {
|
|
608
|
+
this.disabled = input(false, /* @ts-ignore */
|
|
609
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
610
|
+
this.hs = model({ hue: 0, saturation: 0 }, /* @ts-ignore */
|
|
611
|
+
...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
|
|
612
|
+
this.trackGradient = computed(() => {
|
|
613
|
+
const hue = Math.round(this.hs().hue);
|
|
614
|
+
return `linear-gradient(to right, hsl(${hue}, 0%, 50%), hsl(${hue}, 100%, 50%))`;
|
|
615
|
+
}, /* @ts-ignore */
|
|
616
|
+
...(ngDevMode ? [{ debugName: "trackGradient" }] : /* istanbul ignore next */ []));
|
|
617
|
+
this.thumbBackground = computed(() => {
|
|
618
|
+
const hue = Math.round(this.hs().hue);
|
|
619
|
+
const sat = Math.round(this.hs().saturation * 100);
|
|
620
|
+
return `hsl(${hue}, ${sat}%, 50%)`;
|
|
621
|
+
}, /* @ts-ignore */
|
|
622
|
+
...(ngDevMode ? [{ debugName: "thumbBackground" }] : /* istanbul ignore next */ []));
|
|
623
|
+
}
|
|
624
|
+
onValueChange(v) {
|
|
625
|
+
this.hs.set({ ...this.hs(), saturation: v });
|
|
626
|
+
}
|
|
627
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSaturationStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
628
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsSaturationStripComponent, isStandalone: true, selector: "bs-saturation-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"hs().saturation\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Saturation\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
629
|
+
}
|
|
630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSaturationStripComponent, decorators: [{
|
|
631
|
+
type: Component,
|
|
632
|
+
args: [{ selector: 'bs-saturation-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"hs().saturation\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Saturation\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"] }]
|
|
633
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }] } });
|
|
634
|
+
|
|
635
|
+
class BsColorPickerComponent {
|
|
636
|
+
constructor() {
|
|
637
|
+
this.colorWheel = viewChild.required('wheel');
|
|
638
|
+
this.size = input(150, /* @ts-ignore */
|
|
639
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
640
|
+
this.disabled = signal(false, /* @ts-ignore */
|
|
641
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
642
|
+
this.allowAlpha = input(true, /* @ts-ignore */
|
|
643
|
+
...(ngDevMode ? [{ debugName: "allowAlpha" }] : /* istanbul ignore next */ []));
|
|
644
|
+
/**
|
|
645
|
+
* When true (default), a "Show hue + saturation sliders" toggle is rendered
|
|
646
|
+
* below the picker. Toggling it reveals dedicated 1-D sliders for hue and
|
|
647
|
+
* saturation alongside the existing brightness/alpha strips, giving keyboard
|
|
648
|
+
* and screen-reader users a 1-D path for every channel without having to
|
|
649
|
+
* spatialise the 2-D wheel. Set to false to hide both the toggle and the
|
|
650
|
+
* channel sliders entirely (e.g. when the consuming app provides its own
|
|
651
|
+
* accessibility settings UI).
|
|
652
|
+
*/
|
|
653
|
+
this.showAccessibilityToggle = input(true, /* @ts-ignore */
|
|
654
|
+
...(ngDevMode ? [{ debugName: "showAccessibilityToggle" }] : /* istanbul ignore next */ []));
|
|
655
|
+
this.channelSlidersVisible = model(false, /* @ts-ignore */
|
|
656
|
+
...(ngDevMode ? [{ debugName: "channelSlidersVisible" }] : /* istanbul ignore next */ []));
|
|
657
|
+
this.hs = signal({ hue: 0, saturation: 0 }, /* @ts-ignore */
|
|
658
|
+
...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
|
|
659
|
+
this.brightness = signal(1, /* @ts-ignore */
|
|
660
|
+
...(ngDevMode ? [{ debugName: "brightness" }] : /* istanbul ignore next */ []));
|
|
661
|
+
this.alpha = model(1, /* @ts-ignore */
|
|
662
|
+
...(ngDevMode ? [{ debugName: "alpha" }] : /* istanbul ignore next */ []));
|
|
663
|
+
/**
|
|
664
|
+
* Fires when the user drives a change (drags the wheel or the brightness strip).
|
|
665
|
+
* The value accessor subscribes to this so it only emits to the form on real
|
|
666
|
+
* user actions — not on writeValue echoes or initial signal-default state.
|
|
667
|
+
*/
|
|
668
|
+
this.userChanged = new Subject();
|
|
669
|
+
}
|
|
670
|
+
onUserHsChange(hs) {
|
|
671
|
+
this.hs.set(hs);
|
|
672
|
+
this.userChanged.next();
|
|
673
|
+
}
|
|
674
|
+
onUserBrightnessChange(brightness) {
|
|
675
|
+
this.brightness.set(brightness);
|
|
676
|
+
this.userChanged.next();
|
|
677
|
+
}
|
|
678
|
+
onUserAlphaChange(alpha) {
|
|
679
|
+
this.alpha.set(alpha);
|
|
680
|
+
this.userChanged.next();
|
|
681
|
+
}
|
|
682
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
683
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsColorPickerComponent, isStandalone: true, selector: "bs-color-picker", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, allowAlpha: { classPropertyName: "allowAlpha", publicName: "allowAlpha", isSignal: true, isRequired: false, transformFunction: null }, showAccessibilityToggle: { classPropertyName: "showAccessibilityToggle", publicName: "showAccessibilityToggle", isSignal: true, isRequired: false, transformFunction: null }, channelSlidersVisible: { classPropertyName: "channelSlidersVisible", publicName: "channelSlidersVisible", isSignal: true, isRequired: false, transformFunction: null }, alpha: { classPropertyName: "alpha", publicName: "alpha", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { channelSlidersVisible: "channelSlidersVisibleChange", alpha: "alphaChange" }, viewQueries: [{ propertyName: "colorWheel", first: true, predicate: ["wheel"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsColorPickerValueAccessor }], ngImport: i0, template: "@let letDisabled = disabled();\n@let letHS = hs();\n@let letBrightness = brightness();\n@let letAlpha = alpha();\n\n<bs-color-wheel [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" [brightness]=\"letBrightness\" [width]=\"size()\" [height]=\"size()\" #wheel></bs-color-wheel>\n<bs-brightness-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" (brightnessChange)=\"onUserBrightnessChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #strip></bs-brightness-strip>\n@if (allowAlpha()) {\n <bs-alpha-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" [alpha]=\"letAlpha\" (alphaChange)=\"onUserAlphaChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #alphaStrip></bs-alpha-strip>\n}\n@if (showAccessibilityToggle()) {\n <bs-checkbox class=\"mt-2 d-block\" type=\"switch\" [(ngModel)]=\"channelSlidersVisible\" [style.width.px]=\"size()\">Show hue + saturation sliders</bs-checkbox>\n @if (channelSlidersVisible()) {\n <bs-hue-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-hue-strip>\n <bs-saturation-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-saturation-strip>\n }\n}\n", styles: [""], dependencies: [{ kind: "component", type: BsColorWheelComponent, selector: "bs-color-wheel", inputs: ["width", "height", "brightness", "hs", "disabled", "ariaLabel"], outputs: ["widthChange", "heightChange", "brightnessChange", "hsChange"] }, { kind: "component", type: BsBrightnessStripComponent, selector: "bs-brightness-strip", inputs: ["disabled", "hs", "brightness"], outputs: ["hsChange", "brightnessChange"] }, { kind: "component", type: BsAlphaStripComponent, selector: "bs-alpha-strip", inputs: ["disabled", "hs", "brightness", "alpha"], outputs: ["hsChange", "brightnessChange", "alphaChange"] }, { kind: "component", type: BsHueStripComponent, selector: "bs-hue-strip", inputs: ["disabled", "hs"], outputs: ["hsChange"] }, { kind: "component", type: BsSaturationStripComponent, selector: "bs-saturation-strip", inputs: ["disabled", "hs"], outputs: ["hsChange"] }, { kind: "component", type: BsCheckboxComponent, selector: "bs-checkbox", inputs: ["type", "isToggled", "indeterminate", "name", "value", "group"], outputs: ["isToggledChange", "indeterminateChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
684
|
+
}
|
|
685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsColorPickerComponent, decorators: [{
|
|
686
|
+
type: Component,
|
|
687
|
+
args: [{ selector: 'bs-color-picker', imports: [
|
|
688
|
+
BsColorWheelComponent,
|
|
689
|
+
BsBrightnessStripComponent,
|
|
690
|
+
BsAlphaStripComponent,
|
|
691
|
+
BsHueStripComponent,
|
|
692
|
+
BsSaturationStripComponent,
|
|
693
|
+
BsCheckboxComponent,
|
|
694
|
+
FormsModule,
|
|
695
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [BsColorPickerValueAccessor], template: "@let letDisabled = disabled();\n@let letHS = hs();\n@let letBrightness = brightness();\n@let letAlpha = alpha();\n\n<bs-color-wheel [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" [brightness]=\"letBrightness\" [width]=\"size()\" [height]=\"size()\" #wheel></bs-color-wheel>\n<bs-brightness-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" (brightnessChange)=\"onUserBrightnessChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #strip></bs-brightness-strip>\n@if (allowAlpha()) {\n <bs-alpha-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" [alpha]=\"letAlpha\" (alphaChange)=\"onUserAlphaChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #alphaStrip></bs-alpha-strip>\n}\n@if (showAccessibilityToggle()) {\n <bs-checkbox class=\"mt-2 d-block\" type=\"switch\" [(ngModel)]=\"channelSlidersVisible\" [style.width.px]=\"size()\">Show hue + saturation sliders</bs-checkbox>\n @if (channelSlidersVisible()) {\n <bs-hue-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-hue-strip>\n <bs-saturation-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-saturation-strip>\n }\n}\n" }]
|
|
696
|
+
}], propDecorators: { colorWheel: [{ type: i0.ViewChild, args: ['wheel', { isSignal: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], allowAlpha: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowAlpha", required: false }] }], showAccessibilityToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAccessibilityToggle", required: false }] }], channelSlidersVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "channelSlidersVisible", required: false }] }, { type: i0.Output, args: ["channelSlidersVisibleChange"] }], alpha: [{ type: i0.Input, args: [{ isSignal: true, alias: "alpha", required: false }] }, { type: i0.Output, args: ["alphaChange"] }] } });
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Generated bundle index. Do not edit.
|
|
700
|
+
*/
|
|
701
|
+
|
|
702
|
+
export { BsAlphaStripComponent, BsBrightnessStripComponent, BsColorPickerComponent, BsColorPickerValueAccessor, BsColorWheelComponent, BsHueStripComponent, BsSaturationStripComponent, BsSliderComponent, BsThumbDirective, BsTrackDirective, hex2hsv, hex2rgb, hs2polar, hsl2hsv, hsl2rgb, hsv2hex, hsv2hsl, hsv2rgb, polar2hs, rgb2hex, rgb2hsl, rgb2hsv };
|
|
703
|
+
//# sourceMappingURL=mintplayer-ng-bootstrap-color-picker.mjs.map
|