@mintplayer/ng-bootstrap 22.31.0 → 22.32.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 +2 -109
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +3 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +12 -5
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +74 -83
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -0
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +9 -5
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +9 -2
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +12 -4
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +2 -0
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +6 -2
- 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 +7 -2
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +40 -12
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +3 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +23 -6
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +16 -4
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +23 -7
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +93 -0
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +43 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +15 -6
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +7 -4
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +22 -16
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +22 -7
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +13 -6
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +9 -5
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +2 -0
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +19 -9
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +4 -2
- 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-sticky-footer.mjs +14 -4
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +3 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +9 -14
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +5 -2
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +23 -8
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +7 -3
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +4 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/nav/package.json +4 -0
- package/package.json +11 -8
- package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -62
- package/types/mintplayer-ng-bootstrap-alert.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-badge.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +2 -0
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-card.d.ts +14 -3
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-close.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
- package/types/mintplayer-ng-bootstrap-form.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-grid.d.ts +14 -0
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +15 -8
- package/types/mintplayer-ng-bootstrap-machine.d.ts +13 -2
- package/types/mintplayer-ng-bootstrap-modal.d.ts +2 -0
- package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +17 -1
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +10 -10
- package/types/mintplayer-ng-bootstrap-popover.d.ts +3 -0
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +2 -0
- package/types/mintplayer-ng-bootstrap-radio.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-range.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-select.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +7 -1
- package/types/mintplayer-ng-bootstrap-table.d.ts +2 -6
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-toast.d.ts +2 -0
- package/container/package.json +0 -4
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
- package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
|
@@ -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":";;;;;;;;AAAA;AAKA;;;;AAIG;MAOU,mBAAmB,CAAA;AAcrB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAhBS,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,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAiC,GAAG;AAClJ,QAAA,IAAA,CAAA,UAAU,GAAG,K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A,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,YAAA,EAAA,oBAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAC,yBAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,eAAA,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, 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';\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 /** 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(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.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/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 /** 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(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;AAcrB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAhBS,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,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAiC,GAAG;AAClJ,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAwC,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,YAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAiC,GAAG;QAClJ,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,MAAM;mFAAC;QAChD,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;QAC9C,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;;QAE9C,IAAA,CAAA,kBAAkB,GAAG,MAAM,EAAQ;Q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,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,YAAA,EAAA,oBAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAC,yBAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,eAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrBlC,qnCA6BA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDZY,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;;;AEnBpC;;ACAA;;AAEG;;;;"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, inject, ElementRef, effect, ChangeDetectionStrategy, Component, Pipe, InjectionToken, makeEnvironmentProviders, Injector, signal, Injectable, Directive } from '@angular/core';
|
|
3
|
+
import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';
|
|
5
|
+
import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
|
|
3
6
|
import { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';
|
|
4
7
|
import { NgTemplateOutlet } from '@angular/common';
|
|
5
8
|
import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
|
|
@@ -15,6 +18,8 @@ class BsToastComponent {
|
|
|
15
18
|
...(ngDevMode ? [{ debugName: "politeness" }] : /* istanbul ignore next */ []));
|
|
16
19
|
this.announcer = inject(BsLiveAnnouncerService);
|
|
17
20
|
this.host = inject(ElementRef);
|
|
21
|
+
// #452: the toasts and transitions partials ship with this component, scoped to the elements it stamps (data-mps="toast").
|
|
22
|
+
useBootstrap(bootstrapToasts, bootstrapTransitions);
|
|
18
23
|
// The old channel was role/aria-live ON the toast div — but the toast and
|
|
19
24
|
// its text mount in one task (ngTemplateOutlet), which most SRs never
|
|
20
25
|
// announce. The shared announcer region pre-exists, so routing the text
|
|
@@ -31,35 +36,45 @@ class BsToastComponent {
|
|
|
31
36
|
});
|
|
32
37
|
}
|
|
33
38
|
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: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- 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", styles: ["
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsToastComponent, isStandalone: true, selector: "bs-toast", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- 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 data-mps=\"toast\" class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
35
40
|
}
|
|
36
41
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastComponent, decorators: [{
|
|
37
42
|
type: Component,
|
|
38
|
-
args: [{ selector: 'bs-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- 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"
|
|
43
|
+
args: [{ selector: 'bs-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- 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 data-mps=\"toast\" class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
39
44
|
}], ctorParameters: () => [], propDecorators: { isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }], politeness: [{ type: i0.Input, args: [{ isSignal: true, alias: "politeness", required: false }] }] } });
|
|
40
45
|
|
|
41
46
|
class BsToastHeaderComponent {
|
|
47
|
+
constructor() {
|
|
48
|
+
// #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps="toast").
|
|
49
|
+
useBootstrap(bootstrapToasts);
|
|
50
|
+
}
|
|
42
51
|
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: "14.0.0", version: "22.0.8", type: BsToastHeaderComponent, isStandalone: true, selector: "bs-toast-header", host: { properties: { "class.toast-header": "true" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
52
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastHeaderComponent, isStandalone: true, selector: "bs-toast-header", host: { properties: { "attr.data-mps": "\"toast\"", "class.toast-header": "true" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
53
|
}
|
|
45
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastHeaderComponent, decorators: [{
|
|
46
55
|
type: Component,
|
|
47
56
|
args: [{ selector: 'bs-toast-header', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
57
|
+
'[attr.data-mps]': '"toast"',
|
|
48
58
|
'[class.toast-header]': 'true',
|
|
49
59
|
}, template: "<ng-content></ng-content>" }]
|
|
50
|
-
}] });
|
|
60
|
+
}], ctorParameters: () => [] });
|
|
51
61
|
|
|
52
62
|
class BsToastBodyComponent {
|
|
63
|
+
constructor() {
|
|
64
|
+
// #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps="toast").
|
|
65
|
+
useBootstrap(bootstrapToasts);
|
|
66
|
+
}
|
|
53
67
|
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", host: { properties: { "class.d-flex": "true", "class.toast-body": "true" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
68
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastBodyComponent, isStandalone: true, selector: "bs-toast-body", host: { properties: { "attr.data-mps": "\"toast\"", "class.d-flex": "true", "class.toast-body": "true" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
55
69
|
}
|
|
56
70
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastBodyComponent, decorators: [{
|
|
57
71
|
type: Component,
|
|
58
72
|
args: [{ selector: 'bs-toast-body', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
73
|
+
'[attr.data-mps]': '"toast"',
|
|
59
74
|
'[class.d-flex]': 'true',
|
|
60
75
|
'[class.toast-body]': 'true',
|
|
61
76
|
}, template: "<ng-content></ng-content>\n" }]
|
|
62
|
-
}] });
|
|
77
|
+
}], ctorParameters: () => [] });
|
|
63
78
|
|
|
64
79
|
class BsAddPropertiesPipe {
|
|
65
80
|
transform(value, toAdd) {
|
|
@@ -141,13 +156,13 @@ class BsToastContainerComponent {
|
|
|
141
156
|
this.toastService = inject(BsToastService);
|
|
142
157
|
}
|
|
143
158
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
144
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsToastContainerComponent, isStandalone: true, selector: "bs-toast-container", host: { properties: { "style.overflow-y": "\"auto\"" } }, ngImport: i0, 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}
|
|
159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsToastContainerComponent, isStandalone: true, selector: "bs-toast-container", host: { properties: { "style.overflow-y": "\"auto\"" } }, ngImport: i0, 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}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "pipe", type: BsAddPropertiesPipe, name: "bsAddProperties" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
145
160
|
}
|
|
146
161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastContainerComponent, decorators: [{
|
|
147
162
|
type: Component,
|
|
148
163
|
args: [{ selector: 'bs-toast-container', imports: [NgTemplateOutlet, BsHasOverlayComponent, BsAddPropertiesPipe], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
149
164
|
'[style.overflow-y]': '"auto"',
|
|
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}
|
|
165
|
+
}, 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}\n"] }]
|
|
151
166
|
}] });
|
|
152
167
|
|
|
153
168
|
class BsToastCloseDirective {
|
|
@@ -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 }\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,qBAAqB,CAAA;AANlC,IAAA,WAAA,GAAA;AAOU,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAChC,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;QAQpC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAgB,IAAI;kFAAC;AAC5C,IAAA;IAPC,OAAO,GAAA;AACL,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,IAAI,EAAE;YACzB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAG,CAAC;QACxC;IACF;8GARW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,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/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 { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\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 // #452: the toasts and transitions partials ship with this component, scoped to the elements it stamps (data-mps=\"toast\").\n useBootstrap(bootstrapToasts, bootstrapTransitions);\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 data-mps=\"toast\" 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';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\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 '[attr.data-mps]': '\"toast\"',\n '[class.toast-header]': 'true',\n },\n})\nexport class BsToastHeaderComponent {\n constructor() {\n // #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps=\"toast\").\n useBootstrap(bootstrapToasts);\n }\n\n}\n","<ng-content></ng-content>","import { Component, ChangeDetectionStrategy} from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\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 '[attr.data-mps]': '\"toast\"',\n '[class.d-flex]': 'true',\n '[class.toast-body]': 'true',\n },\n})\nexport class BsToastBodyComponent {\n constructor() {\n // #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps=\"toast\").\n useBootstrap(bootstrapToasts);\n }\n\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 read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AA;AACF,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -4,6 +4,8 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { InjectionToken, inject, input, computed, ChangeDetectionStrategy, Component, ElementRef, Injector, TemplateRef, DestroyRef, Directive } from '@angular/core';
|
|
5
5
|
import { BsOverlayStackService, BsIdService } from '@mintplayer/ng-bootstrap/a11y';
|
|
6
6
|
import { NgTemplateOutlet } from '@angular/common';
|
|
7
|
+
import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
|
|
8
|
+
import { bootstrapTooltip } from '@mintplayer/ui-core/bootstrap/tooltip';
|
|
7
9
|
import { FadeInOutAnimation } from '@mintplayer/ng-animations';
|
|
8
10
|
import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
|
|
9
11
|
|
|
@@ -29,16 +31,18 @@ class BsTooltipComponent {
|
|
|
29
31
|
}
|
|
30
32
|
}, /* @ts-ignore */
|
|
31
33
|
...(ngDevMode ? [{ debugName: "marginClass" }] : /* istanbul ignore next */ []));
|
|
34
|
+
// #452: the tooltip partial ships with this component, scoped to the elements it stamps (data-mps="tooltip").
|
|
35
|
+
useBootstrap(bootstrapTooltip);
|
|
32
36
|
}
|
|
33
37
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipComponent, isStandalone: true, selector: "bs-tooltip", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.position-relative": "true" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n<div [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: ["
|
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipComponent, isStandalone: true, selector: "bs-tooltip", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.position-relative": "true" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n<div data-mps=\"tooltip\" [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div data-mps=\"tooltip\" class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div data-mps=\"tooltip\" class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(calc(-100% - .3rem))}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }], animations: [FadeInOutAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
35
39
|
}
|
|
36
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipComponent, decorators: [{
|
|
37
41
|
type: Component,
|
|
38
42
|
args: [{ selector: 'bs-tooltip', imports: [NgTemplateOutlet, BsHasOverlayComponent], animations: [FadeInOutAnimation], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
39
43
|
'[class.position-relative]': 'true',
|
|
40
|
-
}, template: "<bs-has-overlay></bs-has-overlay>\n<div [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: ["
|
|
41
|
-
}], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
|
|
44
|
+
}, template: "<bs-has-overlay></bs-has-overlay>\n<div data-mps=\"tooltip\" [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div data-mps=\"tooltip\" class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div data-mps=\"tooltip\" class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(calc(-100% - .3rem))}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"] }]
|
|
45
|
+
}], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
|
|
42
46
|
|
|
43
47
|
/** Where the tooltip attaches for each side of the trigger. */
|
|
44
48
|
const POSITIONS = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-tooltip.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tooltip/src/providers/tooltip-content.provider.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/providers/tooltip-id.provider.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/component/tooltip.component.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/component/tooltip.component.html","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/directive/tooltip.directive.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/mintplayer-ng-bootstrap-tooltip.ts"],"sourcesContent":["import { InjectionToken, TemplateRef } from \"@angular/core\";\n\nexport const TOOLTIP_CONTENT = new InjectionToken<TemplateRef<any>>('TooltipContent');","import { InjectionToken } from '@angular/core';\n\n/** The dom id assigned to the rendered tooltip element so the trigger can point at it via aria-describedby. */\nexport const TOOLTIP_ID = new InjectionToken<string>('TOOLTIP_ID');\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input, TemplateRef } from '@angular/core';\nimport { FadeInOutAnimation } from '@mintplayer/ng-animations';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { TOOLTIP_CONTENT } from '../providers/tooltip-content.provider';\nimport { TOOLTIP_ID } from '../providers/tooltip-id.provider';\n\n@Component({\n selector: 'bs-tooltip',\n templateUrl: './tooltip.component.html',\n styleUrls: ['./tooltip.component.scss'],\n imports: [NgTemplateOutlet, BsHasOverlayComponent],\n animations: [FadeInOutAnimation],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.position-relative]': 'true',\n },\n})\nexport class BsTooltipComponent {\n template = inject<TemplateRef<any>>(TOOLTIP_CONTENT);\n tooltipId = inject(TOOLTIP_ID);\n\n position = input<Position>('bottom');\n\n positionClass = computed(() => `bs-tooltip-${this.position()}`);\n\n marginClass = computed(() => {\n switch (this.position()) {\n case 'start': return 'me-1';\n case 'end': return 'ms-1';\n case 'top': return 'mb-1';\n case 'bottom': return 'mt-1';\n }\n });\n}\n","<bs-has-overlay></bs-has-overlay>\n<div [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n","import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { DestroyRef, Directive, ElementRef, inject, input, Injector, TemplateRef } from '@angular/core';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { BsIdService, BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsTooltipComponent } from '../component/tooltip.component';\nimport { TOOLTIP_CONTENT } from '../providers/tooltip-content.provider';\nimport { TOOLTIP_ID } from '../providers/tooltip-id.provider';\n\n/** Where the tooltip attaches for each side of the trigger. */\nconst POSITIONS: Record<Position, ConnectedPosition> = {\n bottom: { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top' },\n top: { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom' },\n start: { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center' },\n end: { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center' },\n};\n\n/** How long the pointer may travel from the trigger into the tooltip before it hides. */\nexport const TOOLTIP_HIDE_DELAY_MS = 150;\n\n@Directive({\n selector: '*[bsTooltip]',\n host: {\n '(window:blur)': 'onBlur()',\n '(document:keydown.escape)': 'onEscape()',\n },\n})\nexport class BsTooltipDirective {\n private readonly overlay = inject(Overlay);\n private readonly overlayStack = inject(BsOverlayStackService);\n /** The element the structural directive sits on: the tooltip's trigger. */\n private readonly parent = inject<ElementRef<HTMLElement>>(ElementRef, { host: true, skipSelf: true });\n private readonly tooltipId = inject(BsIdService).next('bs-tooltip');\n private readonly portal = new ComponentPortal(BsTooltipComponent, null, Injector.create({\n providers: [\n { provide: TOOLTIP_CONTENT, useValue: inject(TemplateRef) },\n { provide: TOOLTIP_ID, useValue: this.tooltipId },\n ],\n parent: inject(Injector),\n }));\n\n private stackToken: symbol | null = null;\n private overlayRef: OverlayRef | null = null;\n\n readonly bsTooltip = input<Position>('bottom');\n\n constructor() {\n const el = this.parent.nativeElement;\n /* addEventListener rather than the on* properties the old code assigned —\n those silently CLOBBER any handler the consumer set on their own element. */\n // WCAG 1.4.13: content on hover must also appear on FOCUS. A keyboard user\n // could never see these tooltips at all.\n const listeners: [string, () => void][] = [\n ['mouseenter', () => this.showTooltip()],\n ['mouseleave', () => this.scheduleHide()],\n ['focusin', () => this.showTooltip()],\n ['focusout', () => this.hideTooltip()],\n ];\n listeners.map(([type, fn]) => el.addEventListener(type, fn));\n inject(DestroyRef).onDestroy(() => {\n listeners.map(([type, fn]) => el.removeEventListener(type, fn));\n this.hideTooltip();\n });\n }\n\n /**\n * WCAG 1.4.13 \"hoverable\": the pointer must be able to travel INTO the\n * tooltip (to select/zoom its text) without it vanishing. Hide on a short\n * delay; entering the overlay cancels it, leaving the overlay hides.\n */\n private hideTimer: ReturnType<typeof setTimeout> | null = null;\n\n private scheduleHide(): void {\n this.cancelScheduledHide();\n this.hideTimer = setTimeout(() => this.hideTooltip(), TOOLTIP_HIDE_DELAY_MS);\n }\n\n private cancelScheduledHide(): void {\n if (this.hideTimer !== null) {\n clearTimeout(this.hideTimer);\n this.hideTimer = null;\n }\n }\n\n onBlur() {\n this.hideTooltip();\n }\n\n onEscape() {\n if (this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.hideTooltip();\n }\n }\n\n showTooltip() {\n this.cancelScheduledHide();\n if (this.overlayRef) return;\n\n this.overlayRef = this.overlay.create({\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy: this.overlay.position()\n .flexibleConnectedTo(this.parent)\n .withPositions([POSITIONS[this.bsTooltip()]]),\n });\n const component = this.overlayRef.attach<BsTooltipComponent>(this.portal);\n component.setInput('position', this.bsTooltip());\n\n // Hoverable half of 1.4.13 — see scheduleHide().\n this.overlayRef.overlayElement.addEventListener('mouseenter', () => this.cancelScheduledHide());\n this.overlayRef.overlayElement.addEventListener('mouseleave', () => this.scheduleHide());\n\n this.setDescribedBy(true);\n this.stackToken = this.overlayStack.push();\n }\n\n hideTooltip() {\n this.cancelScheduledHide();\n if (!this.overlayRef) return;\n this.overlayRef.dispose();\n this.overlayRef = null;\n this.setDescribedBy(false);\n if (this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n }\n\n /**\n * Adds or removes the tooltip's id in the trigger's `aria-describedby` token list, leaving\n * any description the consumer set (a hint, a validation message) in place.\n */\n private setDescribedBy(present: boolean) {\n const el = this.parent.nativeElement;\n const others = (el.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter((id) => id && id !== this.tooltipId);\n const ids = present ? [...others, this.tooltipId] : others;\n if (ids.length) el.setAttribute('aria-describedby', ids.join(' '));\n else el.removeAttribute('aria-describedby');\n }\n}\n","export * from './directive/tooltip.directive';\n// export * from './component/tooltip.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEO,MAAM,eAAe,GAAG,IAAI,cAAc,CAAmB,gBAAgB,CAAC;;ACArF;AACO,MAAM,UAAU,GAAG,IAAI,cAAc,CAAS,YAAY,CAAC;;MCgBrD,kBAAkB,CAAA;AAX/B,IAAA,WAAA,GAAA;AAYE,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAmB,eAAe,CAAC;AACpD,QA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GAAG,OAAO,GAAG,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM;QAC1D,IAAI,GAAG,CAAC,MAAM;AAAE,YAAA,EAAE,CAAC,YAAY,CAAC,kBAAkB,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;;AAC7D,YAAA,EAAE,CAAC,eAAe,CAAC,kBAAkB,CAAC;IAC7C;8GA9GW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,aAAA,EAAA,UAAA,EAAA,yBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,IAAI,EAAE;AACJ,wBAAA,eAAe,EAAE,UAAU;AAC3B,wBAAA,2BAA2B,EAAE,YAAY;AAC1C,qBAAA;AACF,iBAAA;;;ACzBD;;ACDA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-tooltip.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tooltip/src/providers/tooltip-content.provider.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/providers/tooltip-id.provider.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/component/tooltip.component.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/component/tooltip.component.html","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/directive/tooltip.directive.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/mintplayer-ng-bootstrap-tooltip.ts"],"sourcesContent":["import { InjectionToken, TemplateRef } from \"@angular/core\";\n\nexport const TOOLTIP_CONTENT = new InjectionToken<TemplateRef<any>>('TooltipContent');","import { InjectionToken } from '@angular/core';\n\n/** The dom id assigned to the rendered tooltip element so the trigger can point at it via aria-describedby. */\nexport const TOOLTIP_ID = new InjectionToken<string>('TOOLTIP_ID');\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input, TemplateRef } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapTooltip } from '@mintplayer/ui-core/bootstrap/tooltip';\nimport { FadeInOutAnimation } from '@mintplayer/ng-animations';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { TOOLTIP_CONTENT } from '../providers/tooltip-content.provider';\nimport { TOOLTIP_ID } from '../providers/tooltip-id.provider';\n\n@Component({\n selector: 'bs-tooltip',\n templateUrl: './tooltip.component.html',\n styleUrls: ['./tooltip.component.scss'],\n imports: [NgTemplateOutlet, BsHasOverlayComponent],\n animations: [FadeInOutAnimation],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.position-relative]': 'true',\n },\n})\nexport class BsTooltipComponent {\n constructor() {\n // #452: the tooltip partial ships with this component, scoped to the elements it stamps (data-mps=\"tooltip\").\n useBootstrap(bootstrapTooltip);\n }\n\n template = inject<TemplateRef<any>>(TOOLTIP_CONTENT);\n tooltipId = inject(TOOLTIP_ID);\n\n position = input<Position>('bottom');\n\n positionClass = computed(() => `bs-tooltip-${this.position()}`);\n\n marginClass = computed(() => {\n switch (this.position()) {\n case 'start': return 'me-1';\n case 'end': return 'ms-1';\n case 'top': return 'mb-1';\n case 'bottom': return 'mt-1';\n }\n });\n}\n","<bs-has-overlay></bs-has-overlay>\n<div data-mps=\"tooltip\" [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div data-mps=\"tooltip\" class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div data-mps=\"tooltip\" class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n","import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { DestroyRef, Directive, ElementRef, inject, input, Injector, TemplateRef } from '@angular/core';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { BsIdService, BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsTooltipComponent } from '../component/tooltip.component';\nimport { TOOLTIP_CONTENT } from '../providers/tooltip-content.provider';\nimport { TOOLTIP_ID } from '../providers/tooltip-id.provider';\n\n/** Where the tooltip attaches for each side of the trigger. */\nconst POSITIONS: Record<Position, ConnectedPosition> = {\n bottom: { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top' },\n top: { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom' },\n start: { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center' },\n end: { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center' },\n};\n\n/** How long the pointer may travel from the trigger into the tooltip before it hides. */\nexport const TOOLTIP_HIDE_DELAY_MS = 150;\n\n@Directive({\n selector: '*[bsTooltip]',\n host: {\n '(window:blur)': 'onBlur()',\n '(document:keydown.escape)': 'onEscape()',\n },\n})\nexport class BsTooltipDirective {\n private readonly overlay = inject(Overlay);\n private readonly overlayStack = inject(BsOverlayStackService);\n /** The element the structural directive sits on: the tooltip's trigger. */\n private readonly parent = inject<ElementRef<HTMLElement>>(ElementRef, { host: true, skipSelf: true });\n private readonly tooltipId = inject(BsIdService).next('bs-tooltip');\n private readonly portal = new ComponentPortal(BsTooltipComponent, null, Injector.create({\n providers: [\n { provide: TOOLTIP_CONTENT, useValue: inject(TemplateRef) },\n { provide: TOOLTIP_ID, useValue: this.tooltipId },\n ],\n parent: inject(Injector),\n }));\n\n private stackToken: symbol | null = null;\n private overlayRef: OverlayRef | null = null;\n\n readonly bsTooltip = input<Position>('bottom');\n\n constructor() {\n const el = this.parent.nativeElement;\n /* addEventListener rather than the on* properties the old code assigned —\n those silently CLOBBER any handler the consumer set on their own element. */\n // WCAG 1.4.13: content on hover must also appear on FOCUS. A keyboard user\n // could never see these tooltips at all.\n const listeners: [string, () => void][] = [\n ['mouseenter', () => this.showTooltip()],\n ['mouseleave', () => this.scheduleHide()],\n ['focusin', () => this.showTooltip()],\n ['focusout', () => this.hideTooltip()],\n ];\n listeners.map(([type, fn]) => el.addEventListener(type, fn));\n inject(DestroyRef).onDestroy(() => {\n listeners.map(([type, fn]) => el.removeEventListener(type, fn));\n this.hideTooltip();\n });\n }\n\n /**\n * WCAG 1.4.13 \"hoverable\": the pointer must be able to travel INTO the\n * tooltip (to select/zoom its text) without it vanishing. Hide on a short\n * delay; entering the overlay cancels it, leaving the overlay hides.\n */\n private hideTimer: ReturnType<typeof setTimeout> | null = null;\n\n private scheduleHide(): void {\n this.cancelScheduledHide();\n this.hideTimer = setTimeout(() => this.hideTooltip(), TOOLTIP_HIDE_DELAY_MS);\n }\n\n private cancelScheduledHide(): void {\n if (this.hideTimer !== null) {\n clearTimeout(this.hideTimer);\n this.hideTimer = null;\n }\n }\n\n onBlur() {\n this.hideTooltip();\n }\n\n onEscape() {\n if (this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.hideTooltip();\n }\n }\n\n showTooltip() {\n this.cancelScheduledHide();\n if (this.overlayRef) return;\n\n this.overlayRef = this.overlay.create({\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy: this.overlay.position()\n .flexibleConnectedTo(this.parent)\n .withPositions([POSITIONS[this.bsTooltip()]]),\n });\n const component = this.overlayRef.attach<BsTooltipComponent>(this.portal);\n component.setInput('position', this.bsTooltip());\n\n // Hoverable half of 1.4.13 — see scheduleHide().\n this.overlayRef.overlayElement.addEventListener('mouseenter', () => this.cancelScheduledHide());\n this.overlayRef.overlayElement.addEventListener('mouseleave', () => this.scheduleHide());\n\n this.setDescribedBy(true);\n this.stackToken = this.overlayStack.push();\n }\n\n hideTooltip() {\n this.cancelScheduledHide();\n if (!this.overlayRef) return;\n this.overlayRef.dispose();\n this.overlayRef = null;\n this.setDescribedBy(false);\n if (this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n }\n\n /**\n * Adds or removes the tooltip's id in the trigger's `aria-describedby` token list, leaving\n * any description the consumer set (a hint, a validation message) in place.\n */\n private setDescribedBy(present: boolean) {\n const el = this.parent.nativeElement;\n const others = (el.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter((id) => id && id !== this.tooltipId);\n const ids = present ? [...others, this.tooltipId] : others;\n if (ids.length) el.setAttribute('aria-describedby', ids.join(' '));\n else el.removeAttribute('aria-describedby');\n }\n}\n","export * from './directive/tooltip.directive';\n// export * from './component/tooltip.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAEO,MAAM,eAAe,GAAG,IAAI,cAAc,CAAmB,gBAAgB,CAAC;;ACArF;AACO,MAAM,UAAU,GAAG,IAAI,cAAc,CAAS,YAAY,CAAC;;MCkBrD,kBAAkB,CAAA;AAC7B,IAAA,WAAA,GAAA;AAKA,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAmB,eAAe,CAAC;AACpD,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC;QAE9B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAW,QAAQ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AM;QAC1D,IAAI,GAAG,CAAC,MAAM;AAAE,YAAA,EAAE,CAAC,YAAY,CAAC,kBAAkB,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;;AAC7D,YAAA,EAAE,CAAC,eAAe,CAAC,kBAAkB,CAAC;IAC7C;8GA9GW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,aAAA,EAAA,UAAA,EAAA,yBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,IAAI,EAAE;AACJ,wBAAA,eAAe,EAAE,UAAU;AAC3B,wBAAA,2BAA2B,EAAE,YAAY;AAC1C,qBAAA;AACF,iBAAA;;;ACzBD;;ACDA;;AAEG;;;;"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
|
|
2
|
+
import { bootstrapDropdown } from '@mintplayer/ui-core/bootstrap/dropdown';
|
|
1
3
|
import { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
|
|
2
4
|
import * as i0 from '@angular/core';
|
|
3
5
|
import { inject, TemplateRef, input, Directive, model, output, contentChild, viewChild, ElementRef, signal, computed, DestroyRef, effect, untracked, afterNextRender, PLATFORM_ID, forwardRef, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
7
|
import { isObservable } from 'rxjs';
|
|
6
8
|
import { BsIdService, takeHostAria } from '@mintplayer/ng-bootstrap/a11y';
|
|
7
|
-
import { useScopedStyles, machineSignal, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
9
|
+
import { useBootstrap, useScopedStyles, machineSignal, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
8
10
|
import { abortError } from '@mintplayer/ui-core/async';
|
|
9
11
|
import { preHydrationValue } from '@mintplayer/ui-core/forms';
|
|
10
12
|
import { trackOpenSide } from '@mintplayer/ui-core/overlay';
|
|
@@ -124,6 +126,7 @@ class BsTypeaheadComponent {
|
|
|
124
126
|
this.onTouched = () => undefined;
|
|
125
127
|
this.trackItem = (index, item) => this.machine.itemKeyOf(item) ?? index;
|
|
126
128
|
const host = inject(ElementRef).nativeElement;
|
|
129
|
+
useBootstrap(bootstrapForms, bootstrapDropdown);
|
|
127
130
|
useScopedStyles(TYPEAHEAD_SCOPE, typeaheadScopedStyles);
|
|
128
131
|
this.machine = new TypeaheadMachine({
|
|
129
132
|
id: this.id,
|