@mintplayer/ng-bootstrap 21.47.0 → 22.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/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 +383 -11
- 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,278 @@
|
|
|
1
|
+
import { MpQueryBuilderElement, emptyGroup, validateOperatorOverrides } from '@mintplayer/web-components/query-builder';
|
|
2
|
+
export * from '@mintplayer/web-components/query-builder';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { input, Directive, model, output, viewChild, inject, ViewContainerRef, signal, effect, forwardRef, ContentChildren, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
5
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* `*bsQueryBuilderEditor="<fieldName>"` projects an Angular template as the
|
|
9
|
+
* value editor for the named field of the parent `bs-query-builder`.
|
|
10
|
+
*
|
|
11
|
+
* The template's context exposes the `EditorContext` (`let ctx`):
|
|
12
|
+
*
|
|
13
|
+
* <bs-datepicker *bsQueryBuilderEditor="'orderDate'; let ctx"
|
|
14
|
+
* [value]="ctx.value"
|
|
15
|
+
* (valueChange)="ctx.onChange($event)">
|
|
16
|
+
* </bs-datepicker>
|
|
17
|
+
*
|
|
18
|
+
* The wrapper collects these via @ContentChildren and assembles them into
|
|
19
|
+
* an `EditorRegistry` it forwards to the WC. Each factory invocation creates
|
|
20
|
+
* a fresh embedded view, exposes `view.rootNodes[0]` as the EditorHandle.element,
|
|
21
|
+
* and returns `dispose: () => view.destroy()` so M4's disposal contract holds.
|
|
22
|
+
*/
|
|
23
|
+
class BsQueryBuilderEditorDirective {
|
|
24
|
+
constructor(templateRef) {
|
|
25
|
+
this.templateRef = templateRef;
|
|
26
|
+
this.fieldName = input.required({ ...(ngDevMode ? { debugName: "fieldName" } : /* istanbul ignore next */ {}), alias: 'bsQueryBuilderEditor' });
|
|
27
|
+
}
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsQueryBuilderEditorDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
29
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: BsQueryBuilderEditorDirective, isStandalone: true, selector: "[bsQueryBuilderEditor]", inputs: { fieldName: { classPropertyName: "fieldName", publicName: "bsQueryBuilderEditor", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsQueryBuilderEditorDirective, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: '[bsQueryBuilderEditor]',
|
|
35
|
+
standalone: true,
|
|
36
|
+
}]
|
|
37
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { fieldName: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsQueryBuilderEditor", required: true }] }] } });
|
|
38
|
+
|
|
39
|
+
void MpQueryBuilderElement;
|
|
40
|
+
function browserTimezone() {
|
|
41
|
+
try {
|
|
42
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC';
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return 'UTC';
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
class BsQueryBuilderComponent {
|
|
49
|
+
constructor() {
|
|
50
|
+
// [(query)] two-way binding for ngModel/formControl-equivalent use.
|
|
51
|
+
this.query = model(emptyGroup('and'), /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
53
|
+
this.schema = input([], /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "schema" }] : /* istanbul ignore next */ []));
|
|
55
|
+
/**
|
|
56
|
+
* Two-way bindable since M18: when `[multiEntityPickerEnabled]` is on and
|
|
57
|
+
* the user picks a different entity in the toolbar, the model emits the
|
|
58
|
+
* new value. Existing `[rootEntity]="'orders'"` static bindings keep
|
|
59
|
+
* working (read-only model usage).
|
|
60
|
+
*/
|
|
61
|
+
this.rootEntity = model('', /* @ts-ignore */
|
|
62
|
+
...(ngDevMode ? [{ debugName: "rootEntity" }] : /* istanbul ignore next */ []));
|
|
63
|
+
/**
|
|
64
|
+
* Opt-in: render an entity-picker dropdown in the top toolbar (and any
|
|
65
|
+
* other Phase-2 toolbar widgets — field projection, sort builder — once
|
|
66
|
+
* those land). Default `false` preserves today's compact rendering with
|
|
67
|
+
* no toolbar.
|
|
68
|
+
*/
|
|
69
|
+
this.multiEntityPickerEnabled = input(false, /* @ts-ignore */
|
|
70
|
+
...(ngDevMode ? [{ debugName: "multiEntityPickerEnabled" }] : /* istanbul ignore next */ []));
|
|
71
|
+
/**
|
|
72
|
+
* Two-way bindable list of currently-selected field names for projection.
|
|
73
|
+
* Presentation-only — does NOT affect the query tree. Consumers typically
|
|
74
|
+
* map this to which datatable columns to render. Empty array = nothing
|
|
75
|
+
* selected; the consumer decides how to interpret that (commonly "show
|
|
76
|
+
* all"). When `rootEntity` changes, stale field names just disappear
|
|
77
|
+
* from the checkbox list (no auto-reset).
|
|
78
|
+
*/
|
|
79
|
+
this.selectedFields = model([], /* @ts-ignore */
|
|
80
|
+
...(ngDevMode ? [{ debugName: "selectedFields" }] : /* istanbul ignore next */ []));
|
|
81
|
+
/**
|
|
82
|
+
* Two-way bindable list of sort descriptors. Same shape as the
|
|
83
|
+
* `QueryRequest.sort[]` wire-format field — `{ field, direction }`.
|
|
84
|
+
* Multi-priority allowed: array order is the priority order.
|
|
85
|
+
*/
|
|
86
|
+
this.sortBy = model([], /* @ts-ignore */
|
|
87
|
+
...(ngDevMode ? [{ debugName: "sortBy" }] : /* istanbul ignore next */ []));
|
|
88
|
+
this.messages = input(undefined, /* @ts-ignore */
|
|
89
|
+
...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
90
|
+
this.showPreview = input(false, /* @ts-ignore */
|
|
91
|
+
...(ngDevMode ? [{ debugName: "showPreview" }] : /* istanbul ignore next */ []));
|
|
92
|
+
this.showSavedQueries = input(false, /* @ts-ignore */
|
|
93
|
+
...(ngDevMode ? [{ debugName: "showSavedQueries" }] : /* istanbul ignore next */ []));
|
|
94
|
+
this.maxDepth = input(32, /* @ts-ignore */
|
|
95
|
+
...(ngDevMode ? [{ debugName: "maxDepth" }] : /* istanbul ignore next */ []));
|
|
96
|
+
this.timezone = input(browserTimezone(), /* @ts-ignore */
|
|
97
|
+
...(ngDevMode ? [{ debugName: "timezone" }] : /* istanbul ignore next */ []));
|
|
98
|
+
this.savedQueries = input([], /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "savedQueries" }] : /* istanbul ignore next */ []));
|
|
100
|
+
this.operatorOverrides = input(undefined, /* @ts-ignore */
|
|
101
|
+
...(ngDevMode ? [{ debugName: "operatorOverrides" }] : /* istanbul ignore next */ []));
|
|
102
|
+
this.disabled = input(false, /* @ts-ignore */
|
|
103
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
104
|
+
this.editorRegistry = input(undefined, /* @ts-ignore */
|
|
105
|
+
...(ngDevMode ? [{ debugName: "editorRegistry" }] : /* istanbul ignore next */ []));
|
|
106
|
+
this.saveQuery = output();
|
|
107
|
+
this.loadQuery = output();
|
|
108
|
+
this.deleteQuery = output();
|
|
109
|
+
this.wcRef = viewChild('wc', /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "wcRef" }] : /* istanbul ignore next */ []));
|
|
111
|
+
this.vcr = inject(ViewContainerRef);
|
|
112
|
+
this.formDisabled = signal(false, /* @ts-ignore */
|
|
113
|
+
...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
|
|
114
|
+
/** Combined effective disabled state used by the template. */
|
|
115
|
+
this.effectiveDisabled = signal(false, /* @ts-ignore */
|
|
116
|
+
...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
|
|
117
|
+
/** Re-entrancy guard for writeValue ↔ model() round-tripping (FR-18). */
|
|
118
|
+
this.writingFromForm = false;
|
|
119
|
+
this.onChangeFn = () => undefined;
|
|
120
|
+
this.onTouchedFn = () => undefined;
|
|
121
|
+
/** Editor registry built from @ContentChildren + the [editorRegistry] input. */
|
|
122
|
+
this.directiveRegistry = signal({}, /* @ts-ignore */
|
|
123
|
+
...(ngDevMode ? [{ debugName: "directiveRegistry" }] : /* istanbul ignore next */ []));
|
|
124
|
+
// Compute effective disabled (input OR formDisabled from setDisabledState).
|
|
125
|
+
effect(() => {
|
|
126
|
+
this.effectiveDisabled.set(this.disabled() || this.formDisabled());
|
|
127
|
+
});
|
|
128
|
+
// Push every reactive input down to the WC. Lit reflects via property assignment.
|
|
129
|
+
effect(() => {
|
|
130
|
+
const wc = this.wcRef()?.nativeElement;
|
|
131
|
+
if (!wc)
|
|
132
|
+
return;
|
|
133
|
+
wc.query = this.query();
|
|
134
|
+
wc.schema = this.schema();
|
|
135
|
+
wc.rootEntity = this.rootEntity();
|
|
136
|
+
wc.multiEntityPickerEnabled = this.multiEntityPickerEnabled();
|
|
137
|
+
wc.selectedFields = this.selectedFields();
|
|
138
|
+
wc.sortBy = this.sortBy();
|
|
139
|
+
wc.messages = this.messages();
|
|
140
|
+
wc.showPreview = this.showPreview();
|
|
141
|
+
wc.showSavedQueries = this.showSavedQueries();
|
|
142
|
+
wc.maxDepth = this.maxDepth();
|
|
143
|
+
wc.savedQueries = this.savedQueries();
|
|
144
|
+
wc.disabled = this.effectiveDisabled();
|
|
145
|
+
// Merge directive-projected editors with the programmatic registry input.
|
|
146
|
+
// Programmatic entries take precedence (consumer's explicit override).
|
|
147
|
+
const directive = this.directiveRegistry();
|
|
148
|
+
const programmatic = this.editorRegistry() ?? {};
|
|
149
|
+
wc.editorRegistry = { ...directive, ...programmatic };
|
|
150
|
+
// Trigger a render after batched property assignments.
|
|
151
|
+
wc.requestUpdate?.();
|
|
152
|
+
});
|
|
153
|
+
// Validate [operatorOverrides] on every change. We log warnings; the
|
|
154
|
+
// sanitized result isn't currently consumed by the WC (the WC's operator
|
|
155
|
+
// <select> already filters by OperatorCatalog[field.type] — see M6).
|
|
156
|
+
// This validation surfaces consumer mistakes early via console.warn.
|
|
157
|
+
effect(() => {
|
|
158
|
+
const overrides = this.operatorOverrides();
|
|
159
|
+
if (!overrides)
|
|
160
|
+
return;
|
|
161
|
+
const result = validateOperatorOverrides(this.schema(), overrides);
|
|
162
|
+
for (const w of result.warnings) {
|
|
163
|
+
console.warn(w);
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
// Propagate model() changes to the form onChange, guarded by writingFromForm.
|
|
167
|
+
effect(() => {
|
|
168
|
+
const tree = this.query();
|
|
169
|
+
if (this.writingFromForm)
|
|
170
|
+
return;
|
|
171
|
+
this.onChangeFn(tree);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
ngAfterContentInit() {
|
|
175
|
+
this.rebuildDirectiveRegistry();
|
|
176
|
+
this.editorDirectives.changes.subscribe(() => this.rebuildDirectiveRegistry());
|
|
177
|
+
}
|
|
178
|
+
rebuildDirectiveRegistry() {
|
|
179
|
+
const next = {};
|
|
180
|
+
for (const dir of this.editorDirectives.toArray()) {
|
|
181
|
+
const fieldName = dir.fieldName();
|
|
182
|
+
const factory = (ctx) => {
|
|
183
|
+
const view = this.vcr.createEmbeddedView(dir.templateRef, { $implicit: ctx, ctx });
|
|
184
|
+
view.detectChanges();
|
|
185
|
+
const root = view.rootNodes.find((n) => n instanceof HTMLElement)
|
|
186
|
+
?? document.createElement('span');
|
|
187
|
+
return {
|
|
188
|
+
element: root,
|
|
189
|
+
dispose: () => view.destroy(),
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
next[fieldName] = factory;
|
|
193
|
+
}
|
|
194
|
+
this.directiveRegistry.set(next);
|
|
195
|
+
}
|
|
196
|
+
onQueryChange(event) {
|
|
197
|
+
const detail = event.detail;
|
|
198
|
+
if (!detail)
|
|
199
|
+
return;
|
|
200
|
+
// Coming FROM the WC; do NOT re-enter onChangeFn → writeValue loop.
|
|
201
|
+
this.writingFromForm = true;
|
|
202
|
+
this.query.set(detail.tree);
|
|
203
|
+
queueMicrotask(() => { this.writingFromForm = false; });
|
|
204
|
+
this.onChangeFn(detail.tree);
|
|
205
|
+
this.onTouchedFn();
|
|
206
|
+
}
|
|
207
|
+
onRootEntityChange(event) {
|
|
208
|
+
const detail = event.detail;
|
|
209
|
+
if (!detail)
|
|
210
|
+
return;
|
|
211
|
+
this.rootEntity.set(detail.rootEntity);
|
|
212
|
+
}
|
|
213
|
+
onSelectedFieldsChange(event) {
|
|
214
|
+
const detail = event.detail;
|
|
215
|
+
if (!detail)
|
|
216
|
+
return;
|
|
217
|
+
this.selectedFields.set(detail.selectedFields);
|
|
218
|
+
}
|
|
219
|
+
onSortByChange(event) {
|
|
220
|
+
const detail = event.detail;
|
|
221
|
+
if (!detail)
|
|
222
|
+
return;
|
|
223
|
+
this.sortBy.set(detail.sortBy);
|
|
224
|
+
}
|
|
225
|
+
onSaveQuery(event) {
|
|
226
|
+
this.saveQuery.emit(event.detail);
|
|
227
|
+
}
|
|
228
|
+
onLoadQuery(event) {
|
|
229
|
+
this.loadQuery.emit(event.detail);
|
|
230
|
+
}
|
|
231
|
+
onDeleteQuery(event) {
|
|
232
|
+
this.deleteQuery.emit(event.detail);
|
|
233
|
+
}
|
|
234
|
+
/* ---- ControlValueAccessor ---- */
|
|
235
|
+
writeValue(value) {
|
|
236
|
+
if (value == null) {
|
|
237
|
+
this.writingFromForm = true;
|
|
238
|
+
this.query.set(emptyGroup('and'));
|
|
239
|
+
queueMicrotask(() => { this.writingFromForm = false; });
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
this.writingFromForm = true;
|
|
243
|
+
this.query.set(value);
|
|
244
|
+
queueMicrotask(() => { this.writingFromForm = false; });
|
|
245
|
+
}
|
|
246
|
+
registerOnChange(fn) {
|
|
247
|
+
this.onChangeFn = fn;
|
|
248
|
+
}
|
|
249
|
+
registerOnTouched(fn) {
|
|
250
|
+
this.onTouchedFn = fn;
|
|
251
|
+
}
|
|
252
|
+
setDisabledState(isDisabled) {
|
|
253
|
+
this.formDisabled.set(isDisabled);
|
|
254
|
+
}
|
|
255
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsQueryBuilderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
256
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsQueryBuilderComponent, isStandalone: true, selector: "bs-query-builder", inputs: { query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, schema: { classPropertyName: "schema", publicName: "schema", isSignal: true, isRequired: false, transformFunction: null }, rootEntity: { classPropertyName: "rootEntity", publicName: "rootEntity", isSignal: true, isRequired: false, transformFunction: null }, multiEntityPickerEnabled: { classPropertyName: "multiEntityPickerEnabled", publicName: "multiEntityPickerEnabled", isSignal: true, isRequired: false, transformFunction: null }, selectedFields: { classPropertyName: "selectedFields", publicName: "selectedFields", isSignal: true, isRequired: false, transformFunction: null }, sortBy: { classPropertyName: "sortBy", publicName: "sortBy", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, showPreview: { classPropertyName: "showPreview", publicName: "showPreview", isSignal: true, isRequired: false, transformFunction: null }, showSavedQueries: { classPropertyName: "showSavedQueries", publicName: "showSavedQueries", isSignal: true, isRequired: false, transformFunction: null }, maxDepth: { classPropertyName: "maxDepth", publicName: "maxDepth", isSignal: true, isRequired: false, transformFunction: null }, timezone: { classPropertyName: "timezone", publicName: "timezone", isSignal: true, isRequired: false, transformFunction: null }, savedQueries: { classPropertyName: "savedQueries", publicName: "savedQueries", isSignal: true, isRequired: false, transformFunction: null }, operatorOverrides: { classPropertyName: "operatorOverrides", publicName: "operatorOverrides", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, editorRegistry: { classPropertyName: "editorRegistry", publicName: "editorRegistry", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { query: "queryChange", rootEntity: "rootEntityChange", selectedFields: "selectedFieldsChange", sortBy: "sortByChange", saveQuery: "saveQuery", loadQuery: "loadQuery", deleteQuery: "deleteQuery" }, providers: [
|
|
257
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsQueryBuilderComponent), multi: true },
|
|
258
|
+
], queries: [{ propertyName: "editorDirectives", predicate: BsQueryBuilderEditorDirective }], viewQueries: [{ propertyName: "wcRef", first: true, predicate: ["wc"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-query-builder\n #wc\n [attr.disabled]=\"effectiveDisabled() ? '' : null\"\n (query-change)=\"onQueryChange($event)\"\n (root-entity-change)=\"onRootEntityChange($event)\"\n (selected-fields-change)=\"onSelectedFieldsChange($event)\"\n (sort-by-change)=\"onSortByChange($event)\"\n (save-query)=\"onSaveQuery($event)\"\n (load-query)=\"onLoadQuery($event)\"\n (delete-query)=\"onDeleteQuery($event)\"\n></mp-query-builder>\n", styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
259
|
+
}
|
|
260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsQueryBuilderComponent, decorators: [{
|
|
261
|
+
type: Component,
|
|
262
|
+
args: [{ selector: 'bs-query-builder', standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
263
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsQueryBuilderComponent), multi: true },
|
|
264
|
+
], template: "<mp-query-builder\n #wc\n [attr.disabled]=\"effectiveDisabled() ? '' : null\"\n (query-change)=\"onQueryChange($event)\"\n (root-entity-change)=\"onRootEntityChange($event)\"\n (selected-fields-change)=\"onSelectedFieldsChange($event)\"\n (sort-by-change)=\"onSortByChange($event)\"\n (save-query)=\"onSaveQuery($event)\"\n (load-query)=\"onLoadQuery($event)\"\n (delete-query)=\"onDeleteQuery($event)\"\n></mp-query-builder>\n", styles: [":host{display:block}\n"] }]
|
|
265
|
+
}], ctorParameters: () => [], propDecorators: { query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }, { type: i0.Output, args: ["queryChange"] }], schema: [{ type: i0.Input, args: [{ isSignal: true, alias: "schema", required: false }] }], rootEntity: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootEntity", required: false }] }, { type: i0.Output, args: ["rootEntityChange"] }], multiEntityPickerEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiEntityPickerEnabled", required: false }] }], selectedFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedFields", required: false }] }, { type: i0.Output, args: ["selectedFieldsChange"] }], sortBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortBy", required: false }] }, { type: i0.Output, args: ["sortByChange"] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], showPreview: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPreview", required: false }] }], showSavedQueries: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSavedQueries", required: false }] }], maxDepth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDepth", required: false }] }], timezone: [{ type: i0.Input, args: [{ isSignal: true, alias: "timezone", required: false }] }], savedQueries: [{ type: i0.Input, args: [{ isSignal: true, alias: "savedQueries", required: false }] }], operatorOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "operatorOverrides", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], editorRegistry: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorRegistry", required: false }] }], saveQuery: [{ type: i0.Output, args: ["saveQuery"] }], loadQuery: [{ type: i0.Output, args: ["loadQuery"] }], deleteQuery: [{ type: i0.Output, args: ["deleteQuery"] }], wcRef: [{ type: i0.ViewChild, args: ['wc', { isSignal: true }] }], editorDirectives: [{
|
|
266
|
+
type: ContentChildren,
|
|
267
|
+
args: [BsQueryBuilderEditorDirective]
|
|
268
|
+
}] } });
|
|
269
|
+
|
|
270
|
+
// Re-export everything framework-agnostic from the WC entry. The Angular
|
|
271
|
+
// wrapper component + editor directive remain Angular-specific.
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Generated bundle index. Do not edit.
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
export { BsQueryBuilderComponent, BsQueryBuilderEditorDirective };
|
|
278
|
+
//# sourceMappingURL=mintplayer-ng-bootstrap-query-builder.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-query-builder.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/query-builder/src/lib/components/query-builder-editor.directive.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/lib/components/query-builder.component.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/lib/components/query-builder.component.html","../../../../libs/mintplayer-ng-bootstrap/query-builder/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/query-builder/mintplayer-ng-bootstrap-query-builder.ts"],"sourcesContent":["import { Directive, TemplateRef, input } from '@angular/core';\n\n/**\n * `*bsQueryBuilderEditor=\"<fieldName>\"` projects an Angular template as the\n * value editor for the named field of the parent `bs-query-builder`.\n *\n * The template's context exposes the `EditorContext` (`let ctx`):\n *\n * <bs-datepicker *bsQueryBuilderEditor=\"'orderDate'; let ctx\"\n * [value]=\"ctx.value\"\n * (valueChange)=\"ctx.onChange($event)\">\n * </bs-datepicker>\n *\n * The wrapper collects these via @ContentChildren and assembles them into\n * an `EditorRegistry` it forwards to the WC. Each factory invocation creates\n * a fresh embedded view, exposes `view.rootNodes[0]` as the EditorHandle.element,\n * and returns `dispose: () => view.destroy()` so M4's disposal contract holds.\n */\n@Directive({\n selector: '[bsQueryBuilderEditor]',\n standalone: true,\n})\nexport class BsQueryBuilderEditorDirective {\n fieldName = input.required<string>({ alias: 'bsQueryBuilderEditor' });\n\n constructor(public readonly templateRef: TemplateRef<unknown>) {}\n}\n","import {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n output,\n QueryList,\n signal,\n ViewContainerRef,\n viewChild,\n} from '@angular/core';\nimport {\n ControlValueAccessor,\n NG_VALUE_ACCESSOR,\n} from '@angular/forms';\nimport {\n MpQueryBuilderElement,\n emptyGroup,\n validateOperatorOverrides,\n type Expression,\n type EntitySchema,\n type EditorContext,\n type EditorFactory,\n type EditorRegistry,\n type QueryBuilderMessages,\n type SavedQuery,\n type SortDescriptor,\n type OperatorOverrides,\n} from '@mintplayer/web-components/query-builder';\nimport { BsQueryBuilderEditorDirective } from './query-builder-editor.directive';\n\nvoid MpQueryBuilderElement;\n\nfunction browserTimezone(): string {\n try {\n return Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC';\n } catch {\n return 'UTC';\n }\n}\n\n@Component({\n selector: 'bs-query-builder',\n standalone: true,\n templateUrl: './query-builder.component.html',\n styleUrls: ['./query-builder.component.scss'],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsQueryBuilderComponent), multi: true },\n ],\n})\nexport class BsQueryBuilderComponent implements AfterContentInit, ControlValueAccessor {\n // [(query)] two-way binding for ngModel/formControl-equivalent use.\n query = model<Expression>(emptyGroup('and'));\n\n schema = input<EntitySchema[]>([]);\n /**\n * Two-way bindable since M18: when `[multiEntityPickerEnabled]` is on and\n * the user picks a different entity in the toolbar, the model emits the\n * new value. Existing `[rootEntity]=\"'orders'\"` static bindings keep\n * working (read-only model usage).\n */\n rootEntity = model<string>('');\n /**\n * Opt-in: render an entity-picker dropdown in the top toolbar (and any\n * other Phase-2 toolbar widgets — field projection, sort builder — once\n * those land). Default `false` preserves today's compact rendering with\n * no toolbar.\n */\n multiEntityPickerEnabled = input<boolean>(false);\n /**\n * Two-way bindable list of currently-selected field names for projection.\n * Presentation-only — does NOT affect the query tree. Consumers typically\n * map this to which datatable columns to render. Empty array = nothing\n * selected; the consumer decides how to interpret that (commonly \"show\n * all\"). When `rootEntity` changes, stale field names just disappear\n * from the checkbox list (no auto-reset).\n */\n selectedFields = model<string[]>([]);\n /**\n * Two-way bindable list of sort descriptors. Same shape as the\n * `QueryRequest.sort[]` wire-format field — `{ field, direction }`.\n * Multi-priority allowed: array order is the priority order.\n */\n sortBy = model<SortDescriptor[]>([]);\n messages = input<Partial<QueryBuilderMessages> | undefined>(undefined);\n showPreview = input<boolean>(false);\n showSavedQueries = input<boolean>(false);\n maxDepth = input<number>(32);\n timezone = input<string>(browserTimezone());\n savedQueries = input<SavedQuery[]>([]);\n operatorOverrides = input<OperatorOverrides | undefined>(undefined);\n disabled = input<boolean>(false);\n editorRegistry = input<EditorRegistry | undefined>(undefined);\n\n readonly saveQuery = output<{ name: string; tree: Expression }>();\n readonly loadQuery = output<{ name: string }>();\n readonly deleteQuery = output<{ name: string }>();\n\n readonly wcRef = viewChild<ElementRef<MpQueryBuilderElement>>('wc');\n\n @ContentChildren(BsQueryBuilderEditorDirective)\n protected editorDirectives!: QueryList<BsQueryBuilderEditorDirective>;\n\n private vcr = inject(ViewContainerRef);\n\n protected readonly formDisabled = signal(false);\n /** Combined effective disabled state used by the template. */\n protected readonly effectiveDisabled = signal(false);\n\n /** Re-entrancy guard for writeValue ↔ model() round-tripping (FR-18). */\n private writingFromForm = false;\n\n private onChangeFn: (value: Expression) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n\n /** Editor registry built from @ContentChildren + the [editorRegistry] input. */\n private directiveRegistry = signal<EditorRegistry>({});\n\n constructor() {\n // Compute effective disabled (input OR formDisabled from setDisabledState).\n effect(() => {\n this.effectiveDisabled.set(this.disabled() || this.formDisabled());\n });\n\n // Push every reactive input down to the WC. Lit reflects via property assignment.\n effect(() => {\n const wc = this.wcRef()?.nativeElement;\n if (!wc) return;\n wc.query = this.query();\n wc.schema = this.schema();\n wc.rootEntity = this.rootEntity();\n wc.multiEntityPickerEnabled = this.multiEntityPickerEnabled();\n wc.selectedFields = this.selectedFields();\n wc.sortBy = this.sortBy();\n wc.messages = this.messages();\n wc.showPreview = this.showPreview();\n wc.showSavedQueries = this.showSavedQueries();\n wc.maxDepth = this.maxDepth();\n wc.savedQueries = this.savedQueries();\n wc.disabled = this.effectiveDisabled();\n // Merge directive-projected editors with the programmatic registry input.\n // Programmatic entries take precedence (consumer's explicit override).\n const directive = this.directiveRegistry();\n const programmatic = this.editorRegistry() ?? {};\n wc.editorRegistry = { ...directive, ...programmatic };\n // Trigger a render after batched property assignments.\n (wc as MpQueryBuilderElement & { requestUpdate?: () => void }).requestUpdate?.();\n });\n\n // Validate [operatorOverrides] on every change. We log warnings; the\n // sanitized result isn't currently consumed by the WC (the WC's operator\n // <select> already filters by OperatorCatalog[field.type] — see M6).\n // This validation surfaces consumer mistakes early via console.warn.\n effect(() => {\n const overrides = this.operatorOverrides();\n if (!overrides) return;\n const result = validateOperatorOverrides(this.schema(), overrides);\n for (const w of result.warnings) {\n console.warn(w);\n }\n });\n\n // Propagate model() changes to the form onChange, guarded by writingFromForm.\n effect(() => {\n const tree = this.query();\n if (this.writingFromForm) return;\n this.onChangeFn(tree);\n });\n }\n\n ngAfterContentInit(): void {\n this.rebuildDirectiveRegistry();\n this.editorDirectives.changes.subscribe(() => this.rebuildDirectiveRegistry());\n }\n\n private rebuildDirectiveRegistry(): void {\n const next: EditorRegistry = {};\n for (const dir of this.editorDirectives.toArray()) {\n const fieldName = dir.fieldName();\n const factory: EditorFactory = (ctx: EditorContext) => {\n const view = this.vcr.createEmbeddedView(dir.templateRef, { $implicit: ctx, ctx });\n view.detectChanges();\n const root = view.rootNodes.find((n) => n instanceof HTMLElement) as HTMLElement | undefined\n ?? document.createElement('span');\n return {\n element: root,\n dispose: () => view.destroy(),\n };\n };\n next[fieldName] = factory;\n }\n this.directiveRegistry.set(next);\n }\n\n protected onQueryChange(event: Event): void {\n const detail = (event as CustomEvent<{ tree: Expression }>).detail;\n if (!detail) return;\n // Coming FROM the WC; do NOT re-enter onChangeFn → writeValue loop.\n this.writingFromForm = true;\n this.query.set(detail.tree);\n queueMicrotask(() => { this.writingFromForm = false; });\n this.onChangeFn(detail.tree);\n this.onTouchedFn();\n }\n\n protected onRootEntityChange(event: Event): void {\n const detail = (event as CustomEvent<{ rootEntity: string }>).detail;\n if (!detail) return;\n this.rootEntity.set(detail.rootEntity);\n }\n\n protected onSelectedFieldsChange(event: Event): void {\n const detail = (event as CustomEvent<{ selectedFields: string[] }>).detail;\n if (!detail) return;\n this.selectedFields.set(detail.selectedFields);\n }\n\n protected onSortByChange(event: Event): void {\n const detail = (event as CustomEvent<{ sortBy: SortDescriptor[] }>).detail;\n if (!detail) return;\n this.sortBy.set(detail.sortBy);\n }\n\n protected onSaveQuery(event: Event): void {\n this.saveQuery.emit((event as CustomEvent<{ name: string; tree: Expression }>).detail);\n }\n\n protected onLoadQuery(event: Event): void {\n this.loadQuery.emit((event as CustomEvent<{ name: string }>).detail);\n }\n\n protected onDeleteQuery(event: Event): void {\n this.deleteQuery.emit((event as CustomEvent<{ name: string }>).detail);\n }\n\n /* ---- ControlValueAccessor ---- */\n\n writeValue(value: Expression | null | undefined): void {\n if (value == null) {\n this.writingFromForm = true;\n this.query.set(emptyGroup('and'));\n queueMicrotask(() => { this.writingFromForm = false; });\n return;\n }\n this.writingFromForm = true;\n this.query.set(value);\n queueMicrotask(() => { this.writingFromForm = false; });\n }\n\n registerOnChange(fn: (value: Expression) => void): void {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n","<mp-query-builder\n #wc\n [attr.disabled]=\"effectiveDisabled() ? '' : null\"\n (query-change)=\"onQueryChange($event)\"\n (root-entity-change)=\"onRootEntityChange($event)\"\n (selected-fields-change)=\"onSelectedFieldsChange($event)\"\n (sort-by-change)=\"onSortByChange($event)\"\n (save-query)=\"onSaveQuery($event)\"\n (load-query)=\"onLoadQuery($event)\"\n (delete-query)=\"onDeleteQuery($event)\"\n></mp-query-builder>\n","// Re-export everything framework-agnostic from the WC entry. The Angular\n// wrapper component + editor directive remain Angular-specific.\nexport * from '@mintplayer/web-components/query-builder';\n\nexport { BsQueryBuilderComponent } from './lib/components/query-builder.component';\nexport { BsQueryBuilderEditorDirective } from './lib/components/query-builder-editor.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEA;;;;;;;;;;;;;;;AAeG;MAKU,6BAA6B,CAAA;AAGxC,IAAA,WAAA,CAA4B,WAAiC,EAAA;QAAjC,IAAA,CAAA,WAAW,GAAX,WAAW;QAFvC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,gFAAW,KAAK,EAAE,sBAAsB,EAAA,CAAG;IAEL;8GAHrD,6BAA6B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAJzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACiBD,KAAK,qBAAqB;AAE1B,SAAS,eAAe,GAAA;AACtB,IAAA,IAAI;QACF,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC,eAAe,EAAE,CAA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AE,WAAW,EAAE,UAAU,CAAC,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE;AACpG,qBAAA,EAAA,QAAA,EAAA,sbAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;m8DAkD6D,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,gBAAA,EAAA,CAAA;sBAEjE,eAAe;uBAAC,6BAA6B;;;AE7GhD;AACA;;ACDA;;AAEG;;;;"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, contentChildren, forwardRef, signal, effect, Directive, inject, ElementRef, PLATFORM_ID, DestroyRef, viewChild, model, computed, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
3
|
+
import { isPlatformServer } from '@angular/common';
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
|
+
import '@mintplayer/web-components/radio';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Groups N `<bs-radio>` children into a single-select FormControl whose
|
|
9
|
+
* value is the selected radio's `value()`. The group owns the shared
|
|
10
|
+
* `[name]` (radios don't carry their own).
|
|
11
|
+
*
|
|
12
|
+
* Each `<bs-radio>` renders an `<mp-radio>` WC; each WC keeps its own
|
|
13
|
+
* `<input type="radio">` inside its own shadow root, so the browser's
|
|
14
|
+
* native one-of-N (auto-unchecking siblings on selection) does not fire
|
|
15
|
+
* across `<mp-radio>` boundaries. This directive coordinates explicitly:
|
|
16
|
+
* on every bubbled `change`, the originating WC is identified by the
|
|
17
|
+
* event target, every other radio's `checked` property is set to `false`,
|
|
18
|
+
* and the new FormControl value is emitted.
|
|
19
|
+
*
|
|
20
|
+
* Acts as its own `ControlValueAccessor` — bind `[formControl]` /
|
|
21
|
+
* `[(ngModel)]` on the element carrying `[bsRadioGroup]`.
|
|
22
|
+
*/
|
|
23
|
+
class BsRadioGroupDirective {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.name = input(null, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
27
|
+
// Wrap in forwardRef: BsRadioComponent imports this directive (for
|
|
28
|
+
// `inject(BsRadioGroupDirective, {...})`), so the two modules form a cycle.
|
|
29
|
+
// Whichever side webpack/vite evaluates first sees `undefined` for the
|
|
30
|
+
// other's exports at field-initialiser time, which makes the recorded query
|
|
31
|
+
// predicate null — ng-mocks' MockDirective then fails with "the query
|
|
32
|
+
// selector wasn't defined" on consumers (e.g. shell.component.spec.ts).
|
|
33
|
+
this.radios = contentChildren(forwardRef(() => BsRadioComponent), { ...(ngDevMode ? { debugName: "radios" } : /* istanbul ignore next */ {}), descendants: true });
|
|
34
|
+
/** Most-recently-written form value. An effect syncs each child's
|
|
35
|
+
* `isToggled` (and the WC's `checked` property) whenever this OR the
|
|
36
|
+
* `radios()` set changes, so an initial `writeValue` that lands before
|
|
37
|
+
* children register still applies once the `contentChildren` query
|
|
38
|
+
* populates. */
|
|
39
|
+
this.currentValue = signal(null, /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "currentValue" }] : /* istanbul ignore next */ []));
|
|
41
|
+
effect(() => {
|
|
42
|
+
const value = this.currentValue();
|
|
43
|
+
this.radios().forEach(r => {
|
|
44
|
+
const isSelected = r.value() === value;
|
|
45
|
+
r.isToggled.set(isSelected);
|
|
46
|
+
const wc = r.radioRef()?.nativeElement;
|
|
47
|
+
if (wc)
|
|
48
|
+
wc.checked = isSelected;
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
onChildChange(ev) {
|
|
53
|
+
if (!this.onValueChange)
|
|
54
|
+
return;
|
|
55
|
+
const target = ev.target;
|
|
56
|
+
let selectedValue = null;
|
|
57
|
+
this.radios().forEach(r => {
|
|
58
|
+
const wc = r.radioRef()?.nativeElement;
|
|
59
|
+
const isTarget = !!wc && wc === target;
|
|
60
|
+
const isChecked = isTarget && wc.checked;
|
|
61
|
+
// Shadow DOM blocks native one-of-N — uncheck every non-target sibling.
|
|
62
|
+
if (!isTarget && wc && wc.checked)
|
|
63
|
+
wc.checked = false;
|
|
64
|
+
r.isToggled.set(isChecked);
|
|
65
|
+
if (isChecked)
|
|
66
|
+
selectedValue = r.value();
|
|
67
|
+
});
|
|
68
|
+
this.onValueChange(selectedValue);
|
|
69
|
+
}
|
|
70
|
+
registerOnChange(fn) {
|
|
71
|
+
this.onValueChange = fn;
|
|
72
|
+
}
|
|
73
|
+
registerOnTouched(fn) {
|
|
74
|
+
this.onTouched = fn;
|
|
75
|
+
}
|
|
76
|
+
writeValue(value) {
|
|
77
|
+
this.currentValue.set(value);
|
|
78
|
+
}
|
|
79
|
+
setDisabledState(isDisabled) {
|
|
80
|
+
this.radios().forEach(r => {
|
|
81
|
+
const wc = r.radioRef()?.nativeElement;
|
|
82
|
+
if (wc)
|
|
83
|
+
wc.disabled = isDisabled;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsRadioGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
87
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.0", type: BsRadioGroupDirective, isStandalone: true, selector: "[bsRadioGroup]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "onChildChange($event)" } }, providers: [{
|
|
88
|
+
provide: NG_VALUE_ACCESSOR,
|
|
89
|
+
useExisting: forwardRef(() => BsRadioGroupDirective),
|
|
90
|
+
multi: true,
|
|
91
|
+
}], queries: [{ propertyName: "radios", predicate: i0.forwardRef(() => BsRadioComponent), descendants: true, isSignal: true }], exportAs: ["bsRadioGroup"], ngImport: i0 }); }
|
|
92
|
+
}
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsRadioGroupDirective, decorators: [{
|
|
94
|
+
type: Directive,
|
|
95
|
+
args: [{
|
|
96
|
+
selector: '[bsRadioGroup]',
|
|
97
|
+
exportAs: 'bsRadioGroup',
|
|
98
|
+
providers: [{
|
|
99
|
+
provide: NG_VALUE_ACCESSOR,
|
|
100
|
+
useExisting: forwardRef(() => BsRadioGroupDirective),
|
|
101
|
+
multi: true,
|
|
102
|
+
}],
|
|
103
|
+
host: {
|
|
104
|
+
'(change)': 'onChildChange($event)',
|
|
105
|
+
},
|
|
106
|
+
}]
|
|
107
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], radios: [{ type: i0.ContentChildren, args: [forwardRef(() => BsRadioComponent), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
108
|
+
|
|
109
|
+
class BsRadioComponent {
|
|
110
|
+
constructor() {
|
|
111
|
+
this.hostRef = inject(ElementRef);
|
|
112
|
+
this.platformId = inject(PLATFORM_ID);
|
|
113
|
+
this.destroyRef = inject(DestroyRef);
|
|
114
|
+
this.parentGroup = inject(BsRadioGroupDirective, { optional: true, skipSelf: true });
|
|
115
|
+
/** Reference to the underlying `<mp-radio>` WC. Read by `[bsRadioGroup]`
|
|
116
|
+
* to write the WC's `checked` property — shadow DOM blocks the browser's
|
|
117
|
+
* native radio one-of-N across <mp-radio> instances, so the group
|
|
118
|
+
* directive must coordinate unchecking explicitly. */
|
|
119
|
+
this.radioRef = viewChild.required('radio');
|
|
120
|
+
this.type = input('radio', /* @ts-ignore */
|
|
121
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
122
|
+
this.isToggled = model(false, /* @ts-ignore */
|
|
123
|
+
...(ngDevMode ? [{ debugName: "isToggled" }] : /* istanbul ignore next */ []));
|
|
124
|
+
this.value = input(null, /* @ts-ignore */
|
|
125
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
126
|
+
this.group = input(null, /* @ts-ignore */
|
|
127
|
+
...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
|
|
128
|
+
/** Explicit `[group]` input wins over the DI-injected ancestor. */
|
|
129
|
+
this.resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null, /* @ts-ignore */
|
|
130
|
+
...(ngDevMode ? [{ debugName: "resolvedGroup" }] : /* istanbul ignore next */ []));
|
|
131
|
+
/** Name comes from the resolved group; `<bs-radio>` has no `[name]` input. */
|
|
132
|
+
this.nameResult = computed(() => this.resolvedGroup()?.name() ?? null, /* @ts-ignore */
|
|
133
|
+
...(ngDevMode ? [{ debugName: "nameResult" }] : /* istanbul ignore next */ []));
|
|
134
|
+
effect(() => {
|
|
135
|
+
const el = this.radioRef()?.nativeElement;
|
|
136
|
+
if (!el)
|
|
137
|
+
return;
|
|
138
|
+
el.type = this.type();
|
|
139
|
+
el.value = this.value();
|
|
140
|
+
el.name = this.nameResult();
|
|
141
|
+
el.checked = this.isToggled();
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
onChange(ev) {
|
|
145
|
+
const detail = ev.detail;
|
|
146
|
+
this.isToggled.set(detail.checked);
|
|
147
|
+
}
|
|
148
|
+
ngAfterViewInit() {
|
|
149
|
+
this.mirrorAriaAttributesToRadio();
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Mirror every `aria-*` attribute from the host element onto the inner
|
|
153
|
+
* `<mp-radio>`. ATs read the accessible name from the focused element
|
|
154
|
+
* (the inner input, which the WC mirrors aria-* to internally) — surfacing
|
|
155
|
+
* host-level `[attr.aria-…]` bindings on the wrapper means hopping them
|
|
156
|
+
* through the WC. A MutationObserver keeps the mirror in sync with
|
|
157
|
+
* runtime aria attribute changes.
|
|
158
|
+
*/
|
|
159
|
+
mirrorAriaAttributesToRadio() {
|
|
160
|
+
if (isPlatformServer(this.platformId))
|
|
161
|
+
return;
|
|
162
|
+
const host = this.hostRef.nativeElement;
|
|
163
|
+
const radio = this.radioRef().nativeElement;
|
|
164
|
+
const mirror = () => {
|
|
165
|
+
Array.from(host.attributes)
|
|
166
|
+
.filter(attr => attr.name.startsWith('aria-'))
|
|
167
|
+
.forEach(({ name, value }) => radio.setAttribute(name, value));
|
|
168
|
+
};
|
|
169
|
+
mirror();
|
|
170
|
+
const observer = new MutationObserver(mirror);
|
|
171
|
+
observer.observe(host, { attributes: true });
|
|
172
|
+
this.destroyRef.onDestroy(() => observer.disconnect());
|
|
173
|
+
}
|
|
174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
175
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsRadioComponent, isStandalone: true, selector: "bs-radio", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, isToggled: { classPropertyName: "isToggled", publicName: "isToggled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isToggled: "isToggledChange" }, host: { classAttribute: "d-inline-block" }, viewQueries: [{ propertyName: "radioRef", first: true, predicate: ["radio"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-radio #radio (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-radio>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
176
|
+
}
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsRadioComponent, decorators: [{
|
|
178
|
+
type: Component,
|
|
179
|
+
args: [{ selector: 'bs-radio', schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
180
|
+
'class': 'd-inline-block',
|
|
181
|
+
}, template: "<mp-radio #radio (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-radio>\n" }]
|
|
182
|
+
}], ctorParameters: () => [], propDecorators: { radioRef: [{ type: i0.ViewChild, args: ['radio', { isSignal: true }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], isToggled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isToggled", required: false }] }, { type: i0.Output, args: ["isToggledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }] } });
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Generated bundle index. Do not edit.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
export { BsRadioComponent, BsRadioGroupDirective };
|
|
189
|
+
//# sourceMappingURL=mintplayer-ng-bootstrap-radio.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-radio.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/radio/src/directives/radio-group/radio-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/component/radio.component.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/component/radio.component.html","../../../../libs/mintplayer-ng-bootstrap/radio/mintplayer-ng-bootstrap-radio.ts"],"sourcesContent":["import { contentChildren, Directive, effect, forwardRef, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { MpRadio } from '@mintplayer/web-components/radio';\nimport { BsRadioComponent } from '../../component/radio.component';\n\n/**\n * Groups N `<bs-radio>` children into a single-select FormControl whose\n * value is the selected radio's `value()`. The group owns the shared\n * `[name]` (radios don't carry their own).\n *\n * Each `<bs-radio>` renders an `<mp-radio>` WC; each WC keeps its own\n * `<input type=\"radio\">` inside its own shadow root, so the browser's\n * native one-of-N (auto-unchecking siblings on selection) does not fire\n * across `<mp-radio>` boundaries. This directive coordinates explicitly:\n * on every bubbled `change`, the originating WC is identified by the\n * event target, every other radio's `checked` property is set to `false`,\n * and the new FormControl value is emitted.\n *\n * Acts as its own `ControlValueAccessor` — bind `[formControl]` /\n * `[(ngModel)]` on the element carrying `[bsRadioGroup]`.\n */\n@Directive({\n selector: '[bsRadioGroup]',\n exportAs: 'bsRadioGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsRadioGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange($event)',\n },\n})\nexport class BsRadioGroupDirective implements ControlValueAccessor {\n\n readonly name = input<string | null>(null);\n // Wrap in forwardRef: BsRadioComponent imports this directive (for\n // `inject(BsRadioGroupDirective, {...})`), so the two modules form a cycle.\n // Whichever side webpack/vite evaluates first sees `undefined` for the\n // other's exports at field-initialiser time, which makes the recorded query\n // predicate null — ng-mocks' MockDirective then fails with \"the query\n // selector wasn't defined\" on consumers (e.g. shell.component.spec.ts).\n readonly radios = contentChildren<BsRadioComponent>(forwardRef(() => BsRadioComponent), { descendants: true });\n\n /** Most-recently-written form value. An effect syncs each child's\n * `isToggled` (and the WC's `checked` property) whenever this OR the\n * `radios()` set changes, so an initial `writeValue` that lands before\n * children register still applies once the `contentChildren` query\n * populates. */\n private readonly currentValue = signal<string | null>(null);\n\n private onValueChange?: (value: string | null) => void;\n private onTouched?: () => void;\n\n constructor() {\n effect(() => {\n const value = this.currentValue();\n this.radios().forEach(r => {\n const isSelected = r.value() === value;\n r.isToggled.set(isSelected);\n const wc = r.radioRef()?.nativeElement;\n if (wc) wc.checked = isSelected;\n });\n });\n }\n\n onChildChange(ev: Event) {\n if (!this.onValueChange) return;\n const target = ev.target as HTMLElement;\n let selectedValue: string | null = null;\n this.radios().forEach(r => {\n const wc = r.radioRef()?.nativeElement as MpRadio | undefined;\n const isTarget = !!wc && wc === target;\n const isChecked = isTarget && wc.checked;\n // Shadow DOM blocks native one-of-N — uncheck every non-target sibling.\n if (!isTarget && wc && wc.checked) wc.checked = false;\n r.isToggled.set(isChecked);\n if (isChecked) selectedValue = r.value();\n });\n this.onValueChange(selectedValue);\n }\n\n registerOnChange(fn: (_: string | null) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: string | null) {\n this.currentValue.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.radios().forEach(r => {\n const wc = r.radioRef()?.nativeElement;\n if (wc) wc.disabled = isDisabled;\n });\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n model,\n PLATFORM_ID,\n viewChild,\n} from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { BsRadioGroupDirective } from '../directives/radio-group/radio-group.directive';\nimport { BsRadioType } from '../types/radio-type';\nimport type { MpRadio, RadioChangeEventDetail } from '@mintplayer/web-components/radio';\n\n// Side-effect import: registers <mp-radio>.\nimport '@mintplayer/web-components/radio';\n\n@Component({\n selector: 'bs-radio',\n templateUrl: './radio.component.html',\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsRadioComponent implements AfterViewInit {\n\n private readonly hostRef = inject(ElementRef);\n private readonly platformId = inject(PLATFORM_ID);\n private readonly destroyRef = inject(DestroyRef);\n private readonly parentGroup = inject(BsRadioGroupDirective, { optional: true, skipSelf: true });\n\n /** Reference to the underlying `<mp-radio>` WC. Read by `[bsRadioGroup]`\n * to write the WC's `checked` property — shadow DOM blocks the browser's\n * native radio one-of-N across <mp-radio> instances, so the group\n * directive must coordinate unchecking explicitly. */\n readonly radioRef = viewChild.required<ElementRef<MpRadio>>('radio');\n\n type = input<BsRadioType>('radio');\n isToggled = model<boolean>(false);\n value = input<string | null>(null);\n group = input<BsRadioGroupDirective | null>(null);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Name comes from the resolved group; `<bs-radio>` has no `[name]` input. */\n readonly nameResult = computed(() => this.resolvedGroup()?.name() ?? null);\n\n constructor() {\n effect(() => {\n const el = this.radioRef()?.nativeElement;\n if (!el) return;\n el.type = this.type();\n el.value = this.value();\n el.name = this.nameResult();\n el.checked = this.isToggled();\n });\n }\n\n onChange(ev: Event) {\n const detail = (ev as CustomEvent<RadioChangeEventDetail>).detail;\n this.isToggled.set(detail.checked);\n }\n\n ngAfterViewInit() {\n this.mirrorAriaAttributesToRadio();\n }\n\n /**\n * Mirror every `aria-*` attribute from the host element onto the inner\n * `<mp-radio>`. ATs read the accessible name from the focused element\n * (the inner input, which the WC mirrors aria-* to internally) — surfacing\n * host-level `[attr.aria-…]` bindings on the wrapper means hopping them\n * through the WC. A MutationObserver keeps the mirror in sync with\n * runtime aria attribute changes.\n */\n private mirrorAriaAttributesToRadio() {\n if (isPlatformServer(this.platformId)) return;\n const host = this.hostRef.nativeElement as HTMLElement;\n const radio = this.radioRef().nativeElement as HTMLElement;\n const mirror = () => {\n Array.from(host.attributes)\n .filter(attr => attr.name.startsWith('aria-'))\n .forEach(({ name, value }) => radio.setAttribute(name, value));\n };\n mirror();\n const observer = new MutationObserver(mirror);\n observer.observe(host, { attributes: true });\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n}\n","<mp-radio #radio (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-radio>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAKA;;;;;;;;;;;;;;;AAeG;MAaU,qBAAqB,CAAA;AAqBhC,IAAA,WAAA,GAAA;QAnBS,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,IAAI;iFAAC;;;;;;;AAOjC,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