@mintplayer/ng-bootstrap 22.31.0 → 22.33.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/README.md +12 -11
- package/_bootstrap.scss +2 -4
- package/a11y/forms/package.json +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -273
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +72 -139
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +34 -60
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +24 -27
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +39 -17
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +26 -6
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +169 -240
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +9 -8
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +316 -211
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +26 -12
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +16 -24
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +11 -19
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +19 -29
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +54 -35
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +72 -99
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -36
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +45 -28
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +214 -19
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -245
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +92 -0
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +31 -15
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +49 -77
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +53 -393
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +11 -9
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +29 -49
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +12 -12
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +27 -49
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +57 -253
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +48 -57
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +11 -15
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +235 -168
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +86 -44
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -22
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -171
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +12 -10
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +37 -32
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -99
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +31 -30
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +14 -15
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +109 -143
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +51 -154
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +160 -232
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/nav/package.json +4 -0
- package/package.json +11 -28
- package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +3 -142
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
- package/types/mintplayer-ng-bootstrap-alert.d.ts +21 -28
- package/types/mintplayer-ng-bootstrap-badge.d.ts +13 -12
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +31 -8
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +15 -4
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
- package/types/mintplayer-ng-bootstrap-card.d.ts +102 -76
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +144 -92
- package/types/mintplayer-ng-bootstrap-close.d.ts +17 -5
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +3 -7
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +3 -5
- package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
- package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
- package/types/mintplayer-ng-bootstrap-form.d.ts +33 -11
- package/types/mintplayer-ng-bootstrap-grid.d.ts +42 -21
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +31 -10
- package/types/mintplayer-ng-bootstrap-machine.d.ts +107 -5
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
- package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -84
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +22 -6
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +27 -38
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +5 -4
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -34
- package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +6 -7
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +19 -18
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
- package/types/mintplayer-ng-bootstrap-popover.d.ts +36 -59
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +35 -18
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
- package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
- package/types/mintplayer-ng-bootstrap-range.d.ts +36 -13
- package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -50
- package/types/mintplayer-ng-bootstrap-select.d.ts +9 -8
- package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +5 -7
- package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -13
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
- package/types/mintplayer-ng-bootstrap-table.d.ts +23 -18
- package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +4 -8
- package/types/mintplayer-ng-bootstrap-toast.d.ts +94 -55
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
- package/calendar-month/package.json +0 -4
- package/container/package.json +0 -4
- package/dropdown-divider/package.json +0 -4
- package/dropdown-menu/package.json +0 -4
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -161
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
- package/has-overlay/package.json +0 -4
- package/no-noscript/package.json +0 -4
- package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
- package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
- package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
- package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-timepicker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/value-accessor/timepicker-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/timepicker.angular.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/mintplayer-ng-bootstrap-timepicker.ts"],"sourcesContent":["// GENERATED from the timepicker manifest (time-list) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timeListCore, type TimeListInputs, type TimeListMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\n\n/**\n * A listbox of time slots (#437): one real button per option, a roving tabindex, the APG keymap\n * (arrows, Home/End, PageUp/PageDown one hour). Bounds are minutes from midnight.\n * With JavaScript off the slots render inert.\n */\n@Component({\n selector: 'bs-time-list',\n templateUrl: './time-list.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTimeListComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimeListInputs['selectedTime']>(null);\n readonly step = input<TimeListInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['step'] });\n readonly minMinutes = input<TimeListInputs['minMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['minMinutes'] });\n readonly maxMinutes = input<TimeListInputs['maxMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['maxMinutes'] });\n readonly hour12 = input<TimeListInputs['hour12']>('auto');\n readonly locale = input<TimeListInputs['locale']>(null);\n readonly labels = input<TimeListInputs['labels']>(null);\n /** A slot chosen by click, Enter or Space. */\n readonly selectedtimechange = output<Date>();\n\n readonly #core = useCore(timeListCore, { inputs: () => ({ selectedTime: this.selectedTime(), step: this.step(), minMinutes: this.minMinutes(), maxMinutes: this.maxMinutes(), hour12: this.hour12(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-time-list', outputs: { selectedTimeChange: this.selectedtimechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Focus the roving slot. */\n focusList(...args: Parameters<TimeListMethods['focusList']>): ReturnType<TimeListMethods['focusList']> {\n return this.#core.call('focusList', args) as ReturnType<TimeListMethods['focusList']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/time-list.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"timepicker\" [mpProps]=\"p_view.list\">\n @for (slot of p_view.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n</ul>\n","import { DestroyRef, Directive, Injector, OnInit, effect, forwardRef, inject, signal, untracked } from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { minutesOfDay } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` and `Validator` of `bs-timepicker` (a host\n * directive of the generated component, see `timepicker.angular.ts`). A bound\n * form control drives the picked time through `viewValue`; a pick reaches the\n * form through the component's `selectedTime` model, which a form write never\n * echoes. A null form value clears the field.\n *\n * Validation compares times of day: `min` (`{ min, actual }`) and `max`\n * (`{ max, actual }`).\n */\n@Directive({\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n ],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTimepickerValueAccessor implements ControlValueAccessor, Validator, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private component?: BsTimepickerComponent;\n\n /** A form control drives the time: its `viewValue` wins over the `selectedTime` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Date | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: Date | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n private onValidatorChange: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = (this.component = this.injector.get(BsTimepickerComponent));\n const sub = component.selectedtimechange.subscribe((value) => {\n if (!this.bound() || minutesOfDay(value) === minutesOfDay(this.viewValue())) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n // The limits are inputs: a change re-runs validation.\n effect(\n () => {\n component.min();\n component.max();\n untracked(() => this.onValidatorChange());\n },\n { injector: this.injector },\n );\n }\n\n registerOnChange(fn: (value: Date | null) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n registerOnValidatorChange(fn: () => void): void {\n this.onValidatorChange = fn;\n }\n\n writeValue(value: Date | null | undefined): void {\n this.viewValue.set(value instanceof Date ? value : null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const value = control.value;\n const component = this.component;\n if (!(value instanceof Date) || !component) return null;\n const minutes = minutesOfDay(value)!;\n const min = component.min();\n const max = component.max();\n const errors: ValidationErrors = {\n ...(min && minutes < minutesOfDay(min)! ? { min: { min, actual: value } } : {}),\n ...(max && minutes > minutesOfDay(max)! ? { max: { max, actual: value } } : {}),\n };\n return Object.keys(errors).length ? errors : null;\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport type { TimepickerInputs } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerValueAccessor } from './value-accessor/timepicker-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-timepicker` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the picked time and the\n * disabled state, its validity reaches the field's ARIA and message, and it is\n * validated against min and max.\n */\n\nexport const hostDirectives = [\n BsTimepickerValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => TimepickerInputs): () => TimepickerInputs {\n const accessor = inject(BsTimepickerValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<TimepickerInputs>(() => {\n const value = inputs();\n return {\n ...value,\n selectedTime: accessor.bound() ? accessor.viewValue() : value.selectedTime,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the timepicker manifest (timepicker) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timepickerCore, type TimepickerInputs, type TimepickerMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../timepicker.angular';\n\n/**\n * A time field with a slot-list popup (#437).\n *\n * With JavaScript off it is a native time field that submits `name` as HH:MM. Once hydrated the\n * field becomes a readonly display, a button opens the list in a native popover, and a hidden\n * input carries the submitted value.\n */\n@Component({\n selector: 'bs-timepicker',\n templateUrl: './timepicker.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTimepickerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimepickerInputs['selectedTime']>(null);\n readonly step = input<TimepickerInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimepickerInputs['step'] });\n readonly min = input<TimepickerInputs['min']>(null);\n readonly max = input<TimepickerInputs['max']>(null);\n readonly hour12 = input<TimepickerInputs['hour12']>('auto');\n readonly locale = input<TimepickerInputs['locale']>(null);\n readonly disabled = input<TimepickerInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TimepickerInputs['placeholder']>(null);\n readonly required = input<TimepickerInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<TimepickerInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<TimepickerInputs['errorText']>(null);\n readonly inputLabel = input<TimepickerInputs['inputLabel']>(null);\n readonly name = input<TimepickerInputs['name']>(null);\n readonly labels = input<TimepickerInputs['labels']>(null);\n /** A slot picked in the list, or a time typed into the field before hydration. */\n readonly selectedtimechange = output<Date>();\n /** The popup opened (true) or closed (false). */\n readonly openchange = output<boolean>();\n\n readonly #core = useCore(timepickerCore, { inputs: ext_extendInputs(() => ({ selectedTime: this.selectedTime(), step: this.step(), min: this.min(), max: this.max(), hour12: this.hour12(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels() })), idPrefix: 'bs-timepicker', outputs: { selectedTimeChange: this.selectedtimechange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Open the list (ignored when disabled). */\n open(...args: Parameters<TimepickerMethods['open']>): ReturnType<TimepickerMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TimepickerMethods['open']>;\n }\n\n /** Close the list. */\n close(...args: Parameters<TimepickerMethods['close']>): ReturnType<TimepickerMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TimepickerMethods['close']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/timepicker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.trigger) {\n <button data-mps=\"timepicker\" [mpProps]=\"p_view.trigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.popup\">\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.root\">\n <ul data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.list\">\n @for (slot of p_view.timeList.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n </ul>\n </div>\n</div>\n","// GENERATED from the timepicker manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTimeListComponent } from './time-list.component.generated';\nexport { BsTimepickerComponent } from './timepicker.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTimepickerValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAA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,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpBlC,qnCA6BA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDbY,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,eAAe,EAAA,OAAA,EAEhB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,qnCAAA,EAAA;;;AElBpC;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-timepicker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/value-accessor/timepicker-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/timepicker.angular.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/mintplayer-ng-bootstrap-timepicker.ts"],"sourcesContent":["// GENERATED from the timepicker manifest (time-list) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model, numberAttribute } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timeListCore, type TimeListInputs, type TimeListMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\n\n/**\n * A listbox of time slots (#437): one real button per option, a roving tabindex, the APG keymap\n * (arrows, Home/End, PageUp/PageDown one hour). Bounds are minutes from midnight.\n * With JavaScript off the slots render inert.\n */\n@Component({\n selector: 'bs-time-list',\n templateUrl: './time-list.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTimeListComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimeListInputs['selectedTime']>(null);\n readonly step = input<TimeListInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['step'] });\n readonly minMinutes = input<TimeListInputs['minMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['minMinutes'] });\n readonly maxMinutes = input<TimeListInputs['maxMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['maxMinutes'] });\n readonly hour12 = input<TimeListInputs['hour12']>('auto');\n readonly locale = input<TimeListInputs['locale']>(null);\n readonly labels = input<TimeListInputs['labels']>(null);\n\n readonly #core = useCore(timeListCore, { inputs: () => ({ selectedTime: this.selectedTime(), step: this.step(), minMinutes: this.minMinutes(), maxMinutes: this.maxMinutes(), hour12: this.hour12(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-time-list', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Focus the roving slot. */\n focusList(...args: Parameters<TimeListMethods['focusList']>): ReturnType<TimeListMethods['focusList']> {\n return this.#core.call('focusList', args) as ReturnType<TimeListMethods['focusList']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/time-list.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"timepicker\" [mpProps]=\"p_view.list\">\n @for (slot of p_view.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n</ul>\n","import { DestroyRef, Directive, Injector, OnInit, effect, forwardRef, inject, signal, untracked } from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { minutesOfDay } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` and `Validator` of `bs-timepicker` (a host\n * directive of the generated component, see `timepicker.angular.ts`). A bound\n * form control drives the picked time through `viewValue`; a pick reaches the\n * form through the component's `selectedTime` model, which a form write never\n * echoes. A null form value clears the field.\n *\n * Validation compares times of day: `min` (`{ min, actual }`) and `max`\n * (`{ max, actual }`).\n */\n@Directive({\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n ],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTimepickerValueAccessor implements ControlValueAccessor, Validator, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private component?: BsTimepickerComponent;\n\n /** A form control drives the time: its `viewValue` wins over the `selectedTime` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Date | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: Date | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n private onValidatorChange: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = (this.component = this.injector.get(BsTimepickerComponent));\n const sub = component.selectedTime.subscribe((value) => {\n if (!this.bound() || minutesOfDay(value) === minutesOfDay(this.viewValue())) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n // The limits are inputs: a change re-runs validation.\n effect(\n () => {\n component.min();\n component.max();\n untracked(() => this.onValidatorChange());\n },\n { injector: this.injector },\n );\n }\n\n registerOnChange(fn: (value: Date | null) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n registerOnValidatorChange(fn: () => void): void {\n this.onValidatorChange = fn;\n }\n\n writeValue(value: Date | null | undefined): void {\n this.viewValue.set(value instanceof Date ? value : null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const value = control.value;\n const component = this.component;\n if (!(value instanceof Date) || !component) return null;\n const minutes = minutesOfDay(value)!;\n const min = component.min();\n const max = component.max();\n const errors: ValidationErrors = {\n ...(min && minutes < minutesOfDay(min)! ? { min: { min, actual: value } } : {}),\n ...(max && minutes > minutesOfDay(max)! ? { max: { max, actual: value } } : {}),\n };\n return Object.keys(errors).length ? errors : null;\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { TimepickerInputs } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerValueAccessor } from './value-accessor/timepicker-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-timepicker` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the picked time and the\n * disabled state, its validity reaches the field's ARIA and message, and it is\n * validated against min and max.\n */\n\nexport const hostDirectives = [\n BsTimepickerValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => TimepickerInputs): () => TimepickerInputs {\n const accessor = inject(BsTimepickerValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<TimepickerInputs>(() => {\n const value = inputs();\n return {\n ...value,\n selectedTime: accessor.bound() ? accessor.viewValue() : value.selectedTime,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the timepicker manifest (timepicker) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timepickerCore, type TimepickerInputs, type TimepickerMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../timepicker.angular';\n\n/**\n * A time field with a slot-list popup (#437).\n *\n * With JavaScript off it is a native time field that submits `name` as HH:MM. Once hydrated the\n * field becomes a readonly display, a button opens the list in a native popover, and a hidden\n * input carries the submitted value.\n */\n@Component({\n selector: 'bs-timepicker',\n templateUrl: './timepicker.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTimepickerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimepickerInputs['selectedTime']>(null);\n readonly step = input<TimepickerInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimepickerInputs['step'] });\n readonly min = input<TimepickerInputs['min']>(null);\n readonly max = input<TimepickerInputs['max']>(null);\n readonly hour12 = input<TimepickerInputs['hour12']>('auto');\n readonly locale = input<TimepickerInputs['locale']>(null);\n readonly disabled = input<TimepickerInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TimepickerInputs['placeholder']>(null);\n readonly required = input<TimepickerInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<TimepickerInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<TimepickerInputs['errorText']>(null);\n readonly inputLabel = input<TimepickerInputs['inputLabel']>(null);\n readonly name = input<TimepickerInputs['name']>(null);\n readonly labels = input<TimepickerInputs['labels']>(null);\n /** The popup opened (true) or closed (false). */\n readonly openChange = output<boolean>();\n\n readonly #core = useCore(timepickerCore, { inputs: ext_extendInputs(() => ({ selectedTime: this.selectedTime(), step: this.step(), min: this.min(), max: this.max(), hour12: this.hour12(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels() })), idPrefix: 'bs-timepicker', outputs: { openChange: this.openChange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Open the list (ignored when disabled). */\n open(...args: Parameters<TimepickerMethods['open']>): ReturnType<TimepickerMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TimepickerMethods['open']>;\n }\n\n /** Close the list. */\n close(...args: Parameters<TimepickerMethods['close']>): ReturnType<TimepickerMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TimepickerMethods['close']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/timepicker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.trigger) {\n <button data-mps=\"timepicker\" [mpProps]=\"p_view.trigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.popup\">\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.root\">\n <ul data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.list\">\n @for (slot of p_view.timeList.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n </ul>\n </div>\n</div>\n","// GENERATED from the timepicker manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTimeListComponent } from './time-list.component.generated';\nexport { BsTimepickerComponent } from './timepicker.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTimepickerValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;AAAA;AAMA;;;;AAIG;MAOU,mBAAmB,CAAA;AAYrB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAdS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,YAAY,GAAG,KAAK,CAAiC,IAAI;yFAAC;AAC1D,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAkC,EAAE,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,MAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAA2B,GAAG;AAC9H,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAwC,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,YAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SA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183 +1,149 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, model, input, ChangeDetectionStrategy, Component, booleanAttribute, TemplateRef, Directive, contentChild, computed } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { toastCore, toastScopedStyles, toastHeaderCore, toastBodyCore, toasterCore } from '@mintplayer/ui-core/toast';
|
|
5
|
+
import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
|
|
6
|
+
import { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';
|
|
7
|
+
import { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';
|
|
4
8
|
import { NgTemplateOutlet } from '@angular/common';
|
|
5
|
-
import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
|
|
6
|
-
import { Overlay } from '@angular/cdk/overlay';
|
|
7
|
-
import { ComponentPortal } from '@angular/cdk/portal';
|
|
8
9
|
|
|
10
|
+
// GENERATED from the toast manifest (toast) by @mintplayer/nx-component-compiler. Do not edit.
|
|
11
|
+
/**
|
|
12
|
+
* Bootstrap's toast. `visible` is two-way: it fades in and out with Bootstrap's phases, and
|
|
13
|
+
* turning visible announces its text (`politeness`). A `toast-header` close button hides it.
|
|
14
|
+
*/
|
|
9
15
|
class BsToastComponent {
|
|
16
|
+
#core;
|
|
10
17
|
constructor() {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
/** The host element. */
|
|
19
|
+
this.elementRef = inject(ElementRef);
|
|
20
|
+
this.visible = model(false, /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
22
|
+
this.politeness = input('polite', /* @ts-ignore */
|
|
15
23
|
...(ngDevMode ? [{ debugName: "politeness" }] : /* istanbul ignore next */ []));
|
|
16
|
-
this
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (!this.isVisible())
|
|
24
|
-
return;
|
|
25
|
-
const politeness = this.politeness();
|
|
26
|
-
queueMicrotask(() => {
|
|
27
|
-
const text = this.host.nativeElement.textContent?.trim();
|
|
28
|
-
if (text)
|
|
29
|
-
void this.announcer.announce(text, politeness);
|
|
30
|
-
});
|
|
31
|
-
});
|
|
24
|
+
this.#core = useCore(toastCore, { inputs: () => ({ visible: this.visible(), politeness: this.politeness() }), idPrefix: 'bs-toast', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }), models: { visible: this.visible } });
|
|
25
|
+
/** The template's props. */
|
|
26
|
+
this.props = this.#core.props;
|
|
27
|
+
useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
|
|
28
|
+
useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
|
|
29
|
+
useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order });
|
|
30
|
+
useScopedStyles('toast', toastScopedStyles);
|
|
32
31
|
}
|
|
33
32
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsToastComponent, isStandalone: true, selector: "bs-toast", inputs: {
|
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsToastComponent, isStandalone: true, selector: "bs-toast", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
35
34
|
}
|
|
36
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastComponent, decorators: [{
|
|
37
36
|
type: Component,
|
|
38
|
-
args: [{ selector: 'bs-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--
|
|
39
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
37
|
+
args: [{ selector: 'bs-toast', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
38
|
+
}], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], politeness: [{ type: i0.Input, args: [{ isSignal: true, alias: "politeness", required: false }] }] } });
|
|
40
39
|
|
|
40
|
+
// GENERATED from the toast manifest (toast-header) by @mintplayer/nx-component-compiler. Do not edit.
|
|
41
|
+
/** The toast's header; `dismissible` adds a close button named by `closeLabel`. */
|
|
41
42
|
class BsToastHeaderComponent {
|
|
43
|
+
#core;
|
|
44
|
+
constructor() {
|
|
45
|
+
/** The host element. */
|
|
46
|
+
this.elementRef = inject(ElementRef);
|
|
47
|
+
this.dismissible = input(true, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
48
|
+
this.closeLabel = input('Close', /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
|
|
50
|
+
this.#core = useCore(toastHeaderCore, { inputs: () => ({ dismissible: this.dismissible(), closeLabel: this.closeLabel() }), idPrefix: 'bs-toast-header', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });
|
|
51
|
+
/** The template's props. */
|
|
52
|
+
this.props = this.#core.props;
|
|
53
|
+
useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
|
|
54
|
+
useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
|
|
55
|
+
useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order });
|
|
56
|
+
useScopedStyles('toast', toastScopedStyles);
|
|
57
|
+
}
|
|
42
58
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
59
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsToastHeaderComponent, isStandalone: true, selector: "bs-toast-header", inputs: { dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-header.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_close = props().close;\n<ng-content />\n@if (p_close) {\n <button data-mps=\"toast\" [mpProps]=\"p_close\"></button>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
60
|
}
|
|
45
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastHeaderComponent, decorators: [{
|
|
46
62
|
type: Component,
|
|
47
|
-
args: [{ selector: 'bs-toast-header', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
48
|
-
|
|
49
|
-
}, template: "<ng-content></ng-content>" }]
|
|
50
|
-
}] });
|
|
63
|
+
args: [{ selector: 'bs-toast-header', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-header.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_close = props().close;\n<ng-content />\n@if (p_close) {\n <button data-mps=\"toast\" [mpProps]=\"p_close\"></button>\n}\n" }]
|
|
64
|
+
}], ctorParameters: () => [], propDecorators: { dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }] } });
|
|
51
65
|
|
|
66
|
+
// GENERATED from the toast manifest (toast-body) by @mintplayer/nx-component-compiler. Do not edit.
|
|
67
|
+
/** The toast's body. */
|
|
52
68
|
class BsToastBodyComponent {
|
|
69
|
+
#core;
|
|
70
|
+
constructor() {
|
|
71
|
+
/** The host element. */
|
|
72
|
+
this.elementRef = inject(ElementRef);
|
|
73
|
+
this.#core = useCore(toastBodyCore, { inputs: () => ({}), idPrefix: 'bs-toast-body', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });
|
|
74
|
+
/** The template's props. */
|
|
75
|
+
this.props = this.#core.props;
|
|
76
|
+
useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
|
|
77
|
+
useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
|
|
78
|
+
useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order });
|
|
79
|
+
useScopedStyles('toast', toastScopedStyles);
|
|
80
|
+
}
|
|
53
81
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastBodyComponent, isStandalone: true, selector: "bs-toast-body",
|
|
82
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastBodyComponent, isStandalone: true, selector: "bs-toast-body", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-body.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
55
83
|
}
|
|
56
84
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastBodyComponent, decorators: [{
|
|
57
85
|
type: Component,
|
|
58
|
-
args: [{ selector: 'bs-toast-body', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
59
|
-
|
|
60
|
-
'[class.toast-body]': 'true',
|
|
61
|
-
}, template: "<ng-content></ng-content>\n" }]
|
|
62
|
-
}] });
|
|
63
|
-
|
|
64
|
-
class BsAddPropertiesPipe {
|
|
65
|
-
transform(value, toAdd) {
|
|
66
|
-
return Object.assign({}, value ?? {}, toAdd);
|
|
67
|
-
}
|
|
68
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAddPropertiesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
69
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: BsAddPropertiesPipe, isStandalone: true, name: "bsAddProperties" }); }
|
|
70
|
-
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAddPropertiesPipe, decorators: [{
|
|
72
|
-
type: Pipe,
|
|
73
|
-
args: [{
|
|
74
|
-
name: 'bsAddProperties',
|
|
75
|
-
}]
|
|
76
|
-
}] });
|
|
77
|
-
|
|
78
|
-
const PORTAL_FACTORY = new InjectionToken('ToastPortalFactory', {
|
|
79
|
-
providedIn: 'root',
|
|
80
|
-
factory: () => (injector) => new ComponentPortal(BsToastContainerComponent, null, injector),
|
|
81
|
-
});
|
|
82
|
-
function provideToast() {
|
|
83
|
-
return makeEnvironmentProviders([
|
|
84
|
-
{
|
|
85
|
-
provide: PORTAL_FACTORY,
|
|
86
|
-
useValue: (injector) => {
|
|
87
|
-
return new ComponentPortal(BsToastContainerComponent, null, injector);
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
]);
|
|
91
|
-
}
|
|
86
|
+
args: [{ selector: 'bs-toast-body', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-body.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
87
|
+
}], ctorParameters: () => [] });
|
|
92
88
|
|
|
93
|
-
|
|
89
|
+
// GENERATED from the toast manifest (toaster) by @mintplayer/nx-component-compiler. Do not edit.
|
|
90
|
+
/** The `toast` slot of `<bs-toaster>`: `<ng-template bsToasterToast>` or `*bsToasterToast`. */
|
|
91
|
+
class BsToasterToastDirective {
|
|
94
92
|
constructor() {
|
|
95
|
-
this.
|
|
96
|
-
this.rootInjector = inject(Injector);
|
|
97
|
-
this.portalFactory = inject(PORTAL_FACTORY);
|
|
98
|
-
this.overlayRef = null;
|
|
99
|
-
this.toasts = signal([], /* @ts-ignore */
|
|
100
|
-
...(ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []));
|
|
101
|
-
}
|
|
102
|
-
pushToast(toast, context) {
|
|
103
|
-
if (!this.overlayRef) {
|
|
104
|
-
const injector = Injector.create({
|
|
105
|
-
providers: [],
|
|
106
|
-
parent: this.rootInjector,
|
|
107
|
-
});
|
|
108
|
-
const portal = this.portalFactory(injector);
|
|
109
|
-
this.overlayRef = this.overlayService.create({
|
|
110
|
-
scrollStrategy: this.overlayService.scrollStrategies.block(),
|
|
111
|
-
positionStrategy: this.overlayService.position().global()
|
|
112
|
-
.top('0').left('0').bottom('0').right('0'),
|
|
113
|
-
hasBackdrop: false
|
|
114
|
-
});
|
|
115
|
-
const component = this.overlayRef.attach(portal);
|
|
116
|
-
}
|
|
117
|
-
context = context ?? {};
|
|
118
|
-
const ctx = Object.assign(context, { isVisible: false });
|
|
119
|
-
const item = { template: toast, context: ctx };
|
|
120
|
-
this.toasts.update(toasts => [...toasts, item]);
|
|
121
|
-
setTimeout(() => {
|
|
122
|
-
this.toasts.update(toasts => toasts.map(t => t === item ? { ...t, context: Object.assign({}, t.context, { isVisible: true }) } : t));
|
|
123
|
-
}, 20);
|
|
93
|
+
this.templateRef = inject(TemplateRef);
|
|
124
94
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
setTimeout(() => {
|
|
128
|
-
this.toasts.update(toasts => toasts.filter((_, i) => i !== index));
|
|
129
|
-
}, 400);
|
|
95
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
96
|
+
return true;
|
|
130
97
|
}
|
|
131
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
132
|
-
static { this.ɵ
|
|
98
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToasterToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
99
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsToasterToastDirective, isStandalone: true, selector: "[bsToasterToast]", ngImport: i0 }); }
|
|
133
100
|
}
|
|
134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
135
|
-
type:
|
|
136
|
-
args: [{
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToasterToastDirective, decorators: [{
|
|
102
|
+
type: Directive,
|
|
103
|
+
args: [{ selector: '[bsToasterToast]' }]
|
|
137
104
|
}] });
|
|
138
|
-
|
|
139
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Renders a `ToastQueue`: a fixed `toast-container` at `placement`, with the `toast` slot once per
|
|
107
|
+
* entry (bind the entry's `visible`, and close it on `visibleChange`). Autohide pauses while the
|
|
108
|
+
* pointer or focus is inside.
|
|
109
|
+
*/
|
|
110
|
+
class BsToasterComponent {
|
|
111
|
+
#core;
|
|
140
112
|
constructor() {
|
|
141
|
-
|
|
113
|
+
/** The host element. */
|
|
114
|
+
this.elementRef = inject(ElementRef);
|
|
115
|
+
this.queue = input(null, /* @ts-ignore */
|
|
116
|
+
...(ngDevMode ? [{ debugName: "queue" }] : /* istanbul ignore next */ []));
|
|
117
|
+
this.placement = input('bottom-end', /* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
119
|
+
this.toastSlot = contentChild(BsToasterToastDirective, /* @ts-ignore */
|
|
120
|
+
...(ngDevMode ? [{ debugName: "toastSlot" }] : /* istanbul ignore next */ []));
|
|
121
|
+
/** The template's named slots. */
|
|
122
|
+
this.slots = computed(() => ({ toast: this.toastSlot()?.templateRef }), /* @ts-ignore */
|
|
123
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
124
|
+
this.#core = useCore(toasterCore, { inputs: () => ({ queue: this.queue(), placement: this.placement() }), idPrefix: 'bs-toaster', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'toast' }) });
|
|
125
|
+
/** The template's props. */
|
|
126
|
+
this.props = this.#core.props;
|
|
127
|
+
useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
|
|
128
|
+
useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
|
|
129
|
+
useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order });
|
|
130
|
+
useScopedStyles('toast', toastScopedStyles);
|
|
142
131
|
}
|
|
143
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
144
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type:
|
|
132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToasterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
133
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsToasterComponent, isStandalone: true, selector: "bs-toaster", inputs: { queue: { classPropertyName: "queue", publicName: "queue", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "toastSlot", first: true, predicate: BsToasterToastDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toaster.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (t of p_view.toasts; track t.id) {\n @if (slots().toast; as slot_toast) {\n <ng-container [ngTemplateOutlet]=\"slot_toast\" [ngTemplateOutletContext]=\"{ $implicit: t, toast: t }\" />\n }\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
145
134
|
}
|
|
146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToasterComponent, decorators: [{
|
|
147
136
|
type: Component,
|
|
148
|
-
args: [{ selector: 'bs-
|
|
149
|
-
|
|
150
|
-
}, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host{pointer-events:none}:host ::ng-deep .toast{pointer-events:auto}:host ::ng-deep .toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}:host ::ng-deep .toast.showing{opacity:0}:host ::ng-deep .toast:not(.show){display:none}:host ::ng-deep .toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}:host ::ng-deep .toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}:host ::ng-deep .toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}:host ::ng-deep .toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}:host ::ng-deep .toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}\n"] }]
|
|
151
|
-
}] });
|
|
137
|
+
args: [{ selector: 'bs-toaster', imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toaster.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (t of p_view.toasts; track t.id) {\n @if (slots().toast; as slot_toast) {\n <ng-container [ngTemplateOutlet]=\"slot_toast\" [ngTemplateOutletContext]=\"{ $implicit: t, toast: t }\" />\n }\n}\n" }]
|
|
138
|
+
}], ctorParameters: () => [], propDecorators: { queue: [{ type: i0.Input, args: [{ isSignal: true, alias: "queue", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], toastSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsToasterToastDirective), { isSignal: true }] }] } });
|
|
152
139
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
this.toastService = inject(BsToastService);
|
|
157
|
-
this.index = input(null, /* @ts-ignore */
|
|
158
|
-
...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
159
|
-
}
|
|
160
|
-
onClick() {
|
|
161
|
-
if (this.index() !== null) {
|
|
162
|
-
this.toastService.close(this.index());
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
166
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsToastCloseDirective, isStandalone: true, selector: "bs-close", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
167
|
-
}
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastCloseDirective, decorators: [{
|
|
169
|
-
type: Directive,
|
|
170
|
-
args: [{
|
|
171
|
-
selector: 'bs-close',
|
|
172
|
-
host: {
|
|
173
|
-
'(click)': 'onClick()',
|
|
174
|
-
},
|
|
175
|
-
}]
|
|
176
|
-
}], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: false }] }] } });
|
|
140
|
+
// GENERATED from the toast manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
141
|
+
|
|
142
|
+
// Generated from @mintplayer/ui-core/toast (#458 D10).
|
|
177
143
|
|
|
178
144
|
/**
|
|
179
145
|
* Generated bundle index. Do not edit.
|
|
180
146
|
*/
|
|
181
147
|
|
|
182
|
-
export {
|
|
148
|
+
export { BsToastBodyComponent, BsToastComponent, BsToastHeaderComponent, BsToasterComponent, BsToasterToastDirective };
|
|
183
149
|
//# sourceMappingURL=mintplayer-ng-bootstrap-toast.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-toast.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast/toast.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast/toast.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-header/toast-header.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-header/toast-header.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-body/toast-body.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-body/toast-body.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/pipes/add-properties.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/providers/portal-factory.provider.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/services/toast/toast.service.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-container/toast-container.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-container/toast-container.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/directives/toast-close/toast-close.directive.ts","../../../../libs/mintplayer-ng-bootstrap/toast/mintplayer-ng-bootstrap-toast.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, computed, effect, inject, input } from '@angular/core';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\n\nexport type BsToastPoliteness = 'polite' | 'assertive';\n\n@Component({\n selector: 'bs-toast',\n templateUrl: './toast.component.html',\n styleUrls: ['./toast.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastComponent {\n isVisible = input(false);\n /** SR announcement urgency. 'assertive' for time-critical (errors), 'polite' for everything else. */\n politeness = input<BsToastPoliteness>('assertive');\n\n private readonly announcer = inject(BsLiveAnnouncerService);\n private readonly host = inject(ElementRef) as ElementRef<HTMLElement>;\n\n constructor() {\n // The old channel was role/aria-live ON the toast div — but the toast and\n // its text mount in one task (ngTemplateOutlet), which most SRs never\n // announce. The shared announcer region pre-exists, so routing the text\n // through it on the show transition is reliably spoken.\n effect(() => {\n if (!this.isVisible()) return;\n const politeness = this.politeness();\n queueMicrotask(() => {\n const text = this.host.nativeElement.textContent?.trim();\n if (text) void this.announcer.announce(text, politeness);\n });\n });\n }\n}\n","<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n","import { Component, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-toast-header',\n templateUrl: './toast-header.component.html',\n styleUrls: ['./toast-header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.toast-header]': 'true',\n },\n})\nexport class BsToastHeaderComponent {\n}\n","<ng-content></ng-content>","import { Component, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-toast-body',\n templateUrl: './toast-body.component.html',\n styleUrls: ['./toast-body.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.d-flex]': 'true',\n '[class.toast-body]': 'true',\n },\n})\nexport class BsToastBodyComponent {\n}\n","<ng-content></ng-content>\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsAddProperties',\n})\nexport class BsAddPropertiesPipe implements PipeTransform {\n transform(value: Object | null, toAdd: Object) {\n return Object.assign({}, value ?? {}, toAdd);\n }\n}\n","import { ComponentPortal } from \"@angular/cdk/portal\";\nimport { EnvironmentProviders, InjectionToken, Injector, makeEnvironmentProviders } from \"@angular/core\";\nimport { BsToastContainerComponent } from \"../components/toast-container/toast-container.component\";\n\nexport const PORTAL_FACTORY = new InjectionToken<(injector: Injector) => ComponentPortal<any>>('ToastPortalFactory', {\n providedIn: 'root',\n factory: () => (injector: Injector) => new ComponentPortal(BsToastContainerComponent, null, injector),\n});\n\nexport function provideToast(): EnvironmentProviders {\n return makeEnvironmentProviders([\n {\n provide: PORTAL_FACTORY,\n useValue: (injector: Injector) => {\n return new ComponentPortal(BsToastContainerComponent, null, injector);\n }\n },\n ]);\n}","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { inject, Injectable, Injector, signal, TemplateRef } from '@angular/core';\nimport { BsToastContainerComponent } from '../../components/toast-container/toast-container.component';\nimport { PORTAL_FACTORY } from '../../providers/portal-factory.provider';\n\n@Injectable({ providedIn: 'root' })\nexport class BsToastService {\n\n private overlayService = inject(Overlay);\n private rootInjector = inject(Injector);\n private portalFactory = inject<(injector: Injector) => ComponentPortal<any>>(PORTAL_FACTORY);\n\n overlayRef: OverlayRef | null = null;\n toasts = signal<ToastItem[]>([]);\n\n public pushToast(toast: TemplateRef<any>, context?: Object) {\n if (!this.overlayRef) {\n const injector = Injector.create({\n providers: [],\n parent: this.rootInjector,\n });\n const portal = this.portalFactory(injector);\n this.overlayRef = this.overlayService.create({\n scrollStrategy: this.overlayService.scrollStrategies.block(),\n positionStrategy: this.overlayService.position().global()\n .top('0').left('0').bottom('0').right('0'),\n hasBackdrop: false\n });\n const component = this.overlayRef.attach<BsToastContainerComponent>(portal);\n }\n\n context = context ?? {};\n const ctx = Object.assign(context, { isVisible: false });\n const item: ToastItem = { template: toast, context: ctx };\n this.toasts.update(toasts => [...toasts, item]);\n setTimeout(() => {\n this.toasts.update(toasts => toasts.map(t =>\n t === item ? { ...t, context: Object.assign({}, t.context, { isVisible: true }) } : t\n ));\n }, 20);\n }\n\n public close(index: number) {\n this.toasts.update(toasts => toasts.map((t, i) =>\n i === index ? { ...t, context: Object.assign({}, t.context, { isVisible: false }) } : t\n ));\n\n setTimeout(() => {\n this.toasts.update(toasts => toasts.filter((_, i) => i !== index));\n }, 400);\n }\n}\n\ninterface ToastItem {\n template: TemplateRef<any>;\n context: Object | null;\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsAddPropertiesPipe } from '../../pipes/add-properties.pipe';\nimport { BsToastService } from '../../services/toast/toast.service';\n\n@Component({\n selector: 'bs-toast-container',\n templateUrl: './toast-container.component.html',\n styleUrls: ['./toast-container.component.scss'],\n imports: [NgTemplateOutlet, BsHasOverlayComponent, BsAddPropertiesPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.overflow-y]': '\"auto\"',\n },\n})\nexport class BsToastContainerComponent {\n toastService = inject(BsToastService);\n}\n","<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n","import { Directive, inject, input } from '@angular/core';\nimport { BsToastService } from '../../services/toast/toast.service';\nimport { BsToastComponent } from '../../components/toast/toast.component';\n\n@Directive({\n selector: 'bs-close',\n host: {\n '(click)': 'onClick()',\n },\n})\nexport class BsToastCloseDirective {\n private toast = inject(BsToastComponent);\n private toastService = inject(BsToastService);\n\n onClick() {\n if (this.index() !== null) {\n this.toastService.close(this.index()!);\n }\n }\n\n readonly index = input<number | null>(null);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAWa,gBAAgB,CAAA;AAQ3B,IAAA,WAAA,GAAA;QAPA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK;sFAAC;;QAExB,IAAA,CAAA,UAAU,GAAG,KAAK,CAAoB,WAAW;uFAAC;AAEjC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAC1C,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAA4B;;;;;QAOnE,MAAM,CAAC,MAAK;AACV,YAAA,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;gBAAE;AACvB,YAAA,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE;YACpC,cAAc,CAAC,MAAK;AAClB,gBAAA,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE;AACxD,gBAAA,IAAI,IAAI;oBAAE,KAAK,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;AAC1D,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;IACJ;8GArBW,gBAAgB,EAAA,IAAA,EAA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A,EAAA,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACvB,qBAAA;AACF,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-toast.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-header.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-header.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-body.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-body.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toaster.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toaster.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/toast/mintplayer-ng-bootstrap-toast.ts"],"sourcesContent":["// GENERATED from the toast manifest (toast) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastCore, type ToastInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/**\n * Bootstrap's toast. `visible` is two-way: it fades in and out with Bootstrap's phases, and\n * turning visible announces its text (`politeness`). A `toast-header` close button hides it.\n */\n@Component({\n selector: 'bs-toast',\n templateUrl: './toast.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly visible = model<ToastInputs['visible']>(false);\n readonly politeness = input<ToastInputs['politeness']>('polite');\n\n readonly #core = useCore(toastCore, { inputs: () => ({ visible: this.visible(), politeness: this.politeness() }), idPrefix: 'bs-toast', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }), models: { visible: this.visible } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the toast manifest (toast-header) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastHeaderCore, type ToastHeaderInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The toast's header; `dismissible` adds a close button named by `closeLabel`. */\n@Component({\n selector: 'bs-toast-header',\n templateUrl: './toast-header.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastHeaderComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly dismissible = input<ToastHeaderInputs['dismissible'], unknown>(true, { transform: booleanAttribute });\n readonly closeLabel = input<ToastHeaderInputs['closeLabel']>('Close');\n\n readonly #core = useCore(toastHeaderCore, { inputs: () => ({ dismissible: this.dismissible(), closeLabel: this.closeLabel() }), idPrefix: 'bs-toast-header', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-header.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_close = props().close;\n<ng-content />\n@if (p_close) {\n <button data-mps=\"toast\" [mpProps]=\"p_close\"></button>\n}\n","// GENERATED from the toast manifest (toast-body) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastBodyCore, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The toast's body. */\n@Component({\n selector: 'bs-toast-body',\n templateUrl: './toast-body.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastBodyComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(toastBodyCore, { inputs: () => ({ }), idPrefix: 'bs-toast-body', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-body.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the toast manifest (toaster) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, computed, contentChild, inject, input } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type ToastEntry, toasterCore, type ToasterInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The `toast` slot of `<bs-toaster>`: `<ng-template bsToasterToast>` or `*bsToasterToast`. */\n@Directive({ selector: '[bsToasterToast]' })\nexport class BsToasterToastDirective {\n readonly templateRef = inject<TemplateRef<{ toast: ToastEntry<unknown> } & { $implicit: { toast: ToastEntry<unknown> }['toast'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsToasterToastDirective, ctx: unknown): ctx is { toast: ToastEntry<unknown> } & { $implicit: { toast: ToastEntry<unknown> }['toast'] } {\n return true;\n }\n}\n\n/**\n * Renders a `ToastQueue`: a fixed `toast-container` at `placement`, with the `toast` slot once per\n * entry (bind the entry's `visible`, and close it on `visibleChange`). Autohide pauses while the\n * pointer or focus is inside.\n */\n@Component({\n selector: 'bs-toaster',\n templateUrl: './toaster.view.generated.html',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToasterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly queue = input<ToasterInputs['queue']>(null);\n readonly placement = input<ToasterInputs['placement']>('bottom-end');\n\n private readonly toastSlot = contentChild(BsToasterToastDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ toast: this.toastSlot()?.templateRef }));\n readonly #core = useCore(toasterCore, { inputs: () => ({ queue: this.queue(), placement: this.placement() }), idPrefix: 'bs-toaster', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'toast' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toaster.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (t of p_view.toasts; track t.id) {\n @if (slots().toast; as slot_toast) {\n <ng-container [ngTemplateOutlet]=\"slot_toast\" [ngTemplateOutletContext]=\"{ $implicit: t, toast: t }\" />\n }\n}\n","// GENERATED from the toast manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsToastComponent } from './toast.component.generated';\nexport { BsToastHeaderComponent } from './toast-header.component.generated';\nexport { BsToastBodyComponent } from './toast-body.component.generated';\nexport { BsToasterComponent, BsToasterToastDirective } from './toaster.component.generated';\n","// Generated from @mintplayer/ui-core/toast (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],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