@mintplayer/ng-bootstrap 22.32.0 → 22.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -166
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -140
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +33 -63
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +23 -30
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +37 -22
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +25 -9
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +157 -219
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +6 -8
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +313 -212
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -15
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +12 -24
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +5 -9
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +9 -19
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +18 -32
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +52 -38
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +64 -119
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -38
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +44 -44
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +199 -16
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -261
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +30 -18
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +20 -90
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +52 -401
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +27 -50
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -10
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +26 -54
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +56 -267
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +47 -63
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +7 -15
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +232 -169
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +85 -47
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +14 -22
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -181
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +8 -8
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +35 -40
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -101
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +29 -23
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +9 -13
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +103 -152
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +50 -157
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +159 -234
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +2 -22
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -81
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
- package/types/mintplayer-ng-bootstrap-alert.d.ts +20 -28
- package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -12
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +29 -8
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
- package/types/mintplayer-ng-bootstrap-card.d.ts +93 -78
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +143 -91
- package/types/mintplayer-ng-bootstrap-close.d.ts +16 -5
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +2 -6
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +2 -4
- package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
- package/types/mintplayer-ng-bootstrap-form.d.ts +32 -11
- package/types/mintplayer-ng-bootstrap-grid.d.ts +38 -31
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +28 -14
- package/types/mintplayer-ng-bootstrap-machine.d.ts +95 -4
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
- package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -86
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-nav.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +21 -6
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +15 -42
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +4 -3
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -35
- package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +5 -6
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +17 -16
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
- package/types/mintplayer-ng-bootstrap-popover.d.ts +35 -61
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +34 -19
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
- package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
- package/types/mintplayer-ng-bootstrap-range.d.ts +35 -13
- package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -51
- package/types/mintplayer-ng-bootstrap-select.d.ts +8 -7
- package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -19
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
- package/types/mintplayer-ng-bootstrap-table.d.ts +21 -12
- package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +3 -7
- package/types/mintplayer-ng-bootstrap-toast.d.ts +92 -55
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
- package/calendar-month/package.json +0 -4
- package/dropdown-divider/package.json +0 -4
- package/dropdown-menu/package.json +0 -4
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -30
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -169
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
- package/has-overlay/package.json +0 -4
- package/no-noscript/package.json +0 -4
- package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -9
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
- package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
- package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-phone-input.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/phone-input/src/value-accessor/phone-input-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/phone-input/src/phone-input.angular.ts","../../../../libs/mintplayer-ng-bootstrap/phone-input/src/generated/phone-input.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/phone-input/src/generated/phone-input.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/phone-input/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/phone-input/mintplayer-ng-bootstrap-phone-input.ts"],"sourcesContent":["import { DestroyRef, Directive, ElementRef, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsPhoneInputComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-phone-input` (a host directive of the\n * generated component, see `phone-input.angular.ts`). A bound form control\n * drives the E.164 value through `viewValue`; every change the user makes\n * (typing, paste, a country pick, rules that load and re-derive the E.164)\n * reaches the form through the component's `value` model, which a form write\n * never touches.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsPhoneInputValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsPhoneInputValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the value: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<string | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: string | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const sub = this.injector.get(BsPhoneInputComponent).value.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: string | 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 writeValue(value: string | null | undefined): void {\n this.viewValue.set(value || null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n\n/**\n * `focus()` on the `bs-phone-input` host moves into the number field, not the\n * country picker (D13), so a directive that focuses the element it sits on\n * reaches the field.\n */\n@Directive({})\nexport class BsPhoneInputFocusDirective {\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const tel = () => host.querySelector<HTMLInputElement>('input[type=tel]');\n Object.defineProperty(host, 'focus', {\n // Before the first render there is no input yet; try again once it exists.\n value: (options?: FocusOptions) => {\n const input = tel();\n if (input) input.focus(options);\n else queueMicrotask(() => tel()?.focus(options));\n },\n configurable: true,\n writable: true,\n });\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { PhoneInputInputs } from '@mintplayer/ui-core/phone-input';\nimport { BsPhoneInputFocusDirective, BsPhoneInputValueAccessor } from './value-accessor/phone-input-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-phone-input` (PRD #437 D10 escape\n * hatch): Angular forms, and host focus. A bound form control drives the value\n * and the disabled state, and its validity reaches the number field's ARIA and\n * message.\n */\n\nexport const hostDirectives = [\n BsPhoneInputValueAccessor,\n BsPhoneInputFocusDirective,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => PhoneInputInputs): () => PhoneInputInputs {\n const accessor = inject(BsPhoneInputValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<PhoneInputInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\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 phone-input manifest (phone-input) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, output } from '@angular/core';\nimport { MpPropsDirective, MpTrustedHtmlPipe, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type PhoneChangeEventDetail, phoneInputCore, type PhoneInputInputs, type PhoneInputMethods, phoneInputScopedStyles } from '@mintplayer/ui-core/phone-input';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../phone-input.angular';\n\n/**\n * A phone-number field (#437): country picker with flags, dial code, and a number input that formats as\n * the user types. `value` is two-way E.164 (`+32470123456`); `country` is two-way too.\n *\n * With JavaScript off it is a plain country select and tel input; the typed text submits under `name`.\n * An `aria-label` on the component names the number input; `countryLabel` names the picker.\n */\n@Component({\n selector: 'bs-phone-input',\n templateUrl: './phone-input.view.generated.html',\n imports: [MpPropsDirective, MpTrustedHtmlPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsPhoneInputComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly value = model<PhoneInputInputs['value']>(null);\n readonly country = model<PhoneInputInputs['country']>(null);\n readonly defaultCountry = input<PhoneInputInputs['defaultCountry']>();\n readonly locale = input<PhoneInputInputs['locale']>();\n readonly preferredCountries = input<PhoneInputInputs['preferredCountries']>(null);\n readonly allowedCountries = input<PhoneInputInputs['allowedCountries']>(null);\n readonly disabled = input<PhoneInputInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<PhoneInputInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<PhoneInputInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<PhoneInputInputs['errorText']>();\n readonly placeholder = input<PhoneInputInputs['placeholder']>();\n readonly autocomplete = input<PhoneInputInputs['autocomplete']>('tel-national');\n readonly name = input<PhoneInputInputs['name']>();\n readonly inputLabel = input<PhoneInputInputs['inputLabel']>();\n readonly countryLabel = input<PhoneInputInputs['countryLabel']>();\n /** The E.164 value changed (null while empty). */\n readonly valuechange = output<string | null>();\n /** The user picked a country, or typed a `+XX` that switched it. */\n readonly countrychange = output<string>();\n /** Every edit, pick and rules load: the value with its parts and validity. */\n readonly phonechange = output<PhoneChangeEventDetail>();\n\n readonly #core = useCore(phoneInputCore, { inputs: ext_extendInputs(() => ({ value: this.value(), country: this.country(), defaultCountry: this.defaultCountry(), locale: this.locale(), preferredCountries: this.preferredCountries(), allowedCountries: this.allowedCountries(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), placeholder: this.placeholder(), autocomplete: this.autocomplete(), name: this.name(), inputLabel: this.inputLabel(), countryLabel: this.countryLabel() })), idPrefix: 'bs-phone-input', outputs: { valueChange: this.valuechange, countryChange: this.countrychange, phoneChange: this.phonechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'phone-input' }), models: { value: this.value, country: this.country } });\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('phone-input', phoneInputScopedStyles);\n }\n\n /** Moves focus into the number field, not the country picker. */\n focusInput(...args: Parameters<PhoneInputMethods['focusInput']>): ReturnType<PhoneInputMethods['focusInput']> {\n return this.#core.call('focusInput', args) as ReturnType<PhoneInputMethods['focusInput']>;\n }\n\n /** Settles once the flags and the rules in flight have been applied. */\n whenReady(...args: Parameters<PhoneInputMethods['whenReady']>): ReturnType<PhoneInputMethods['whenReady']> {\n return this.#core.call('whenReady', args) as ReturnType<PhoneInputMethods['whenReady']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/phone-input/src/templates/phone-input.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"phone-input\" [mpProps]=\"p_view.group\">\n <select data-mps=\"phone-input\" [mpProps]=\"p_view.select\">\n @if (p_view.rich) {\n <button data-mps=\"phone-input\" type=\"button\">\n <selectedcontent></selectedcontent>\n </button>\n }\n @for (o of p_view.options; track o.key) {\n <option data-mps=\"phone-input\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.flagBox\" [innerHTML]=\"o.flag | mpTrustedHtml\"></span>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.richLabel\">\n {{ o.name }}\n </span>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.listOnly\">\n {{ o.dial }}\n </span>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.closedOnly\">\n {{ o.iso }}\n </span>\n } @else {\n {{ o.label }}\n }\n </option>\n }\n </select>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.addon\">\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.flag\" [innerHTML]=\"p_view.flagHtml | mpTrustedHtml\"></span>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.dial\">\n {{ p_view.dialText }}\n </span>\n </span>\n <input data-mps=\"phone-input\" [mpProps]=\"p_view.input\">\n</div>\n@if (p_view.hidden) {\n <input data-mps=\"phone-input\" [mpProps]=\"p_view.hidden\">\n}\n@if (p_view.showFeedback) {\n <div data-mps=\"phone-input\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","// GENERATED from the phone-input manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsPhoneInputComponent } from './phone-input.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsPhoneInputValueAccessor","i1.BsPhoneInputFocusDirective","ext_hostDirectives"],"mappings":";;;;;;;;;AAIA;;;;;;;AAOG;MAOU,yBAAyB,CAAA;AANtC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAgB,IAAI;sFAAC;QACvC,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAAmC,MAAM,SAAS;AAClE,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AA4BxC,IAAA;IA1BC,QAAQ,GAAA;;AAEN,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YAC7E,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,CAAC,SAAS,EAAE;gBAAE;AACjD,YAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;AACzB,YAAA,IAAI,CAAC,QA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EAAA,SAAA,EAAAC,0BAAA,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,6tDA4CA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED3BY,gBAAgB,sEAAE,iBAAiB,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIlC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,gBAAgB,EAAA,OAAA,EAEjB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,EAAA,eAAA,EAC7B,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,6tDAAA,EAAA;;;AEnBpC;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-phone-input.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/phone-input/src/value-accessor/phone-input-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/phone-input/src/phone-input.angular.ts","../../../../libs/mintplayer-ng-bootstrap/phone-input/src/generated/phone-input.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/phone-input/src/generated/phone-input.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/phone-input/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/phone-input/mintplayer-ng-bootstrap-phone-input.ts"],"sourcesContent":["import { DestroyRef, Directive, ElementRef, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsPhoneInputComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-phone-input` (a host directive of the\n * generated component, see `phone-input.angular.ts`). A bound form control\n * drives the E.164 value through `viewValue`; every change the user makes\n * (typing, paste, a country pick, rules that load and re-derive the E.164)\n * reaches the form through the component's `value` model, which a form write\n * never touches.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsPhoneInputValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsPhoneInputValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the value: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<string | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: string | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const sub = this.injector.get(BsPhoneInputComponent).value.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: string | 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 writeValue(value: string | null | undefined): void {\n this.viewValue.set(value || null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n\n/**\n * `focus()` on the `bs-phone-input` host moves into the number field, not the\n * country picker (D13), so a directive that focuses the element it sits on\n * reaches the field.\n */\n@Directive({})\nexport class BsPhoneInputFocusDirective {\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const tel = () => host.querySelector<HTMLInputElement>('input[type=tel]');\n Object.defineProperty(host, 'focus', {\n // Before the first render there is no input yet; try again once it exists.\n value: (options?: FocusOptions) => {\n const input = tel();\n if (input) input.focus(options);\n else queueMicrotask(() => tel()?.focus(options));\n },\n configurable: true,\n writable: true,\n });\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { PhoneInputInputs } from '@mintplayer/ui-core/phone-input';\nimport { BsPhoneInputFocusDirective, BsPhoneInputValueAccessor } from './value-accessor/phone-input-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-phone-input` (PRD #437 D10 escape\n * hatch): Angular forms, and host focus. A bound form control drives the value\n * and the disabled state, and its validity reaches the number field's ARIA and\n * message.\n */\n\nexport const hostDirectives = [\n BsPhoneInputValueAccessor,\n BsPhoneInputFocusDirective,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => PhoneInputInputs): () => PhoneInputInputs {\n const accessor = inject(BsPhoneInputValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<PhoneInputInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\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 phone-input manifest (phone-input) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, output } from '@angular/core';\nimport { MpPropsDirective, MpTrustedHtmlPipe, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type PhoneChangeEventDetail, phoneInputCore, type PhoneInputInputs, type PhoneInputMethods, phoneInputScopedStyles } from '@mintplayer/ui-core/phone-input';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../phone-input.angular';\n\n/**\n * A phone-number field (#437): country picker with flags, dial code, and a number input that formats as\n * the user types. `value` is two-way E.164 (`+32470123456`); `country` is two-way too.\n *\n * With JavaScript off it is a plain country select and tel input; the typed text submits under `name`.\n * An `aria-label` on the component names the number input; `countryLabel` names the picker.\n */\n@Component({\n selector: 'bs-phone-input',\n templateUrl: './phone-input.view.generated.html',\n imports: [MpPropsDirective, MpTrustedHtmlPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsPhoneInputComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */\n protected readonly hostAttrs = useHostAttrs();\n\n readonly value = model<PhoneInputInputs['value']>(null);\n readonly country = model<PhoneInputInputs['country']>(null);\n readonly defaultCountry = input<PhoneInputInputs['defaultCountry']>();\n readonly locale = input<PhoneInputInputs['locale']>();\n readonly preferredCountries = input<PhoneInputInputs['preferredCountries']>(null);\n readonly allowedCountries = input<PhoneInputInputs['allowedCountries']>(null);\n readonly disabled = input<PhoneInputInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<PhoneInputInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<PhoneInputInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<PhoneInputInputs['errorText']>();\n readonly placeholder = input<PhoneInputInputs['placeholder']>();\n readonly autocomplete = input<PhoneInputInputs['autocomplete']>('tel-national');\n readonly name = input<PhoneInputInputs['name']>();\n readonly inputLabel = input<PhoneInputInputs['inputLabel']>();\n readonly countryLabel = input<PhoneInputInputs['countryLabel']>();\n /** Every edit, pick and rules load: the value with its parts and validity. */\n readonly phoneChange = output<PhoneChangeEventDetail>();\n\n readonly #core = useCore(phoneInputCore, { inputs: ext_extendInputs(() => ({ value: this.value(), country: this.country(), defaultCountry: this.defaultCountry(), locale: this.locale(), preferredCountries: this.preferredCountries(), allowedCountries: this.allowedCountries(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), placeholder: this.placeholder(), autocomplete: this.autocomplete(), name: this.name(), inputLabel: this.inputLabel(), countryLabel: this.countryLabel() })), idPrefix: 'bs-phone-input', outputs: { phoneChange: this.phoneChange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'phone-input' }), models: { value: this.value, country: this.country } });\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('phone-input', phoneInputScopedStyles);\n }\n\n /** Moves focus into the number field, not the country picker. */\n focusInput(...args: Parameters<PhoneInputMethods['focusInput']>): ReturnType<PhoneInputMethods['focusInput']> {\n return this.#core.call('focusInput', args) as ReturnType<PhoneInputMethods['focusInput']>;\n }\n\n /** Settles once the flags and the rules in flight have been applied. */\n whenReady(...args: Parameters<PhoneInputMethods['whenReady']>): ReturnType<PhoneInputMethods['whenReady']> {\n return this.#core.call('whenReady', args) as ReturnType<PhoneInputMethods['whenReady']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/phone-input/src/templates/phone-input.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"phone-input\" [mpProps]=\"p_view.group\">\n <select data-mps=\"phone-input\" [mpProps]=\"p_view.select\">\n @if (p_view.rich) {\n <button data-mps=\"phone-input\" type=\"button\">\n <selectedcontent></selectedcontent>\n </button>\n }\n @for (o of p_view.options; track o.key) {\n <option data-mps=\"phone-input\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.flagBox\" [innerHTML]=\"o.flag | mpTrustedHtml\"></span>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.richLabel\">\n {{ o.name }}\n </span>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.listOnly\">\n {{ o.dial }}\n </span>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.closedOnly\">\n {{ o.iso }}\n </span>\n } @else {\n {{ o.label }}\n }\n </option>\n }\n </select>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.addon\">\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.flag\" [innerHTML]=\"p_view.flagHtml | mpTrustedHtml\"></span>\n <span data-mps=\"phone-input\" [mpProps]=\"p_view.dial\">\n {{ p_view.dialText }}\n </span>\n </span>\n <input data-mps=\"phone-input\" [mpProps]=\"p_view.input\" [mpHostAttrs]=\"hostAttrs\">\n</div>\n@if (p_view.hidden) {\n <input data-mps=\"phone-input\" [mpProps]=\"p_view.hidden\">\n}\n@if (p_view.showFeedback) {\n <div data-mps=\"phone-input\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","// GENERATED from the phone-input manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsPhoneInputComponent } from './phone-input.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsPhoneInputValueAccessor","i1.BsPhoneInputFocusDirective","ext_hostDirectives"],"mappings":";;;;;;;;;AAIA;;;;;;;AAOG;MAOU,yBAAyB,CAAA;AANtC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAgB,IAAI;sFAAC;QACvC,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAAmC,MAAM,SAAS;AAClE,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AA4BxC,IAAA;IA1BC,QAAQ,GAAA;;AAEN,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YAC7E,IAAI,CAAC,IAAI,CAAC,KAA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AAAC,0BAAA,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,yvDA4CA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED3BY,gBAAgB,mGAAE,iBAAiB,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIlC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,gBAAgB,EAAA,OAAA,EAEjB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,EAAA,eAAA,EAC7B,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,yvDAAA,EAAA;;;AEnBpC;;ACAA;;AAEG;;;;"}
|
|
@@ -1,71 +1,43 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject,
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { placeholderCore, placeholderScopedStyles } from '@mintplayer/ui-core/placeholder';
|
|
4
5
|
import { bootstrapPlaceholders } from '@mintplayer/ui-core/bootstrap/placeholders';
|
|
5
|
-
import { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';
|
|
6
6
|
|
|
7
|
+
// GENERATED from the placeholder manifest (placeholder) by @mintplayer/nx-component-compiler. Do not edit.
|
|
8
|
+
/**
|
|
9
|
+
* A loading region: while `loading`, the content's elements marked `data-placeholder-field` render as
|
|
10
|
+
* Bootstrap's glowing skeleton bars and the region is `aria-busy`; when it ends, `loadedText` is said once.
|
|
11
|
+
*/
|
|
7
12
|
class BsPlaceholderComponent {
|
|
13
|
+
#core;
|
|
8
14
|
constructor() {
|
|
9
|
-
|
|
10
|
-
this.
|
|
11
|
-
...(ngDevMode ?
|
|
12
|
-
this.
|
|
13
|
-
...(ngDevMode ? [{ debugName: "
|
|
14
|
-
this
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (this.wasLoading && !isLoading) {
|
|
20
|
-
this.announcer.announce(this.loadingCompleteText());
|
|
21
|
-
}
|
|
22
|
-
this.wasLoading = isLoading;
|
|
23
|
-
});
|
|
15
|
+
/** The host element. */
|
|
16
|
+
this.elementRef = inject(ElementRef);
|
|
17
|
+
this.loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
18
|
+
this.loadedText = input('Loading complete', /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "loadedText" }] : /* istanbul ignore next */ []));
|
|
20
|
+
this.#core = useCore(placeholderCore, { inputs: () => ({ loading: this.loading(), loadedText: this.loadedText() }), idPrefix: 'bs-placeholder', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'placeholder' }) });
|
|
21
|
+
/** The template's props. */
|
|
22
|
+
this.props = this.#core.props;
|
|
23
|
+
useScopedStyles(bootstrapPlaceholders.key, bootstrapPlaceholders.css, { order: bootstrapPlaceholders.order });
|
|
24
|
+
useScopedStyles('placeholder', placeholderScopedStyles);
|
|
24
25
|
}
|
|
25
26
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsPlaceholderComponent, isStandalone: true, selector: "bs-placeholder", inputs: {
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsPlaceholderComponent, isStandalone: true, selector: "bs-placeholder", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadedText: { classPropertyName: "loadedText", publicName: "loadedText", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/placeholder/src/templates/placeholder.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-content />\n<span data-mps=\"placeholder\" [mpProps]=\"p_view.status\">\n {{ p_view.message }}\n</span>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
28
|
}
|
|
28
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaceholderComponent, decorators: [{
|
|
29
30
|
type: Component,
|
|
30
|
-
args: [{ selector: 'bs-placeholder', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
|
-
|
|
32
|
-
}, template: "<!-- The skeleton is pure decoration: aria-hidden keeps SRs from reading\n shimmering placeholder bars as content. aria-busy on the host (plus the\n announcer's completion message) is the semantic channel \u2014 never a\n subtree-wide aria-live, which would announce every skeleton mutation. -->\n<div data-mps=\"placeholder\" class=\"placeholder-glow\" aria-hidden=\"true\">\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep .placeholder{min-height:calc(1em - 1px)!important}\n"] }]
|
|
33
|
-
}], ctorParameters: () => [], propDecorators: { isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }, { type: i0.Output, args: ["isLoadingChange"] }], loadingCompleteText: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingCompleteText", required: false }] }] } });
|
|
31
|
+
args: [{ selector: 'bs-placeholder', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/placeholder/src/templates/placeholder.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-content />\n<span data-mps=\"placeholder\" [mpProps]=\"p_view.status\">\n {{ p_view.message }}\n</span>\n" }]
|
|
32
|
+
}], ctorParameters: () => [], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadedText: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadedText", required: false }] }] } });
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// Derived, not copied from an effect into plain fields: a host binding re-renders
|
|
39
|
-
// only when a signal it reads changes (zoneless).
|
|
40
|
-
this.isLoading = computed(() => this.placeholder.isLoading(), /* @ts-ignore */
|
|
41
|
-
...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
|
|
42
|
-
this.marginBottom = computed(() => (this.isLoading() ? -1 : 0), /* @ts-ignore */
|
|
43
|
-
...(ngDevMode ? [{ debugName: "marginBottom" }] : /* istanbul ignore next */ []));
|
|
44
|
-
this.html = computed(() => (this.isLoading() ? ' ' : undefined), /* @ts-ignore */
|
|
45
|
-
...(ngDevMode ? [{ debugName: "html" }] : /* istanbul ignore next */ []));
|
|
46
|
-
// #452: the placeholders partial ships with this component, scoped to the elements it stamps (data-mps="placeholder").
|
|
47
|
-
useBootstrap(bootstrapPlaceholders);
|
|
48
|
-
}
|
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaceholderFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
50
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsPlaceholderFieldDirective, isStandalone: true, selector: "[bsPlaceholderField]", host: { properties: { "attr.data-mps": "\"placeholder\"", "attr.innerHtml": "html()", "style.min-width.px": "80", "style.margin-bottom.px": "marginBottom()", "class.placeholder": "isLoading()" } }, ngImport: i0 }); }
|
|
51
|
-
}
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaceholderFieldDirective, decorators: [{
|
|
53
|
-
type: Directive,
|
|
54
|
-
args: [{
|
|
55
|
-
selector: '[bsPlaceholderField]',
|
|
56
|
-
host: {
|
|
57
|
-
'[attr.data-mps]': '"placeholder"',
|
|
58
|
-
'[attr.innerHtml]': 'html()',
|
|
59
|
-
'[style.min-width.px]': '80',
|
|
60
|
-
'[style.margin-bottom.px]': 'marginBottom()',
|
|
61
|
-
'[class.placeholder]': 'isLoading()',
|
|
62
|
-
},
|
|
63
|
-
}]
|
|
64
|
-
}], ctorParameters: () => [] });
|
|
34
|
+
// GENERATED from the placeholder manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
35
|
+
|
|
36
|
+
// Generated from @mintplayer/ui-core/placeholder (#458 D10).
|
|
65
37
|
|
|
66
38
|
/**
|
|
67
39
|
* Generated bundle index. Do not edit.
|
|
68
40
|
*/
|
|
69
41
|
|
|
70
|
-
export { BsPlaceholderComponent
|
|
42
|
+
export { BsPlaceholderComponent };
|
|
71
43
|
//# sourceMappingURL=mintplayer-ng-bootstrap-placeholder.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-placeholder.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/placeholder/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-placeholder.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/placeholder/src/generated/placeholder.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/placeholder/src/generated/placeholder.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/placeholder/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/placeholder/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/placeholder/mintplayer-ng-bootstrap-placeholder.ts"],"sourcesContent":["// GENERATED from the placeholder manifest (placeholder) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { placeholderCore, type PlaceholderInputs, placeholderScopedStyles } from '@mintplayer/ui-core/placeholder';\nimport { bootstrapPlaceholders } from '@mintplayer/ui-core/bootstrap/placeholders';\n\n/**\n * A loading region: while `loading`, the content's elements marked `data-placeholder-field` render as\n * Bootstrap's glowing skeleton bars and the region is `aria-busy`; when it ends, `loadedText` is said once.\n */\n@Component({\n selector: 'bs-placeholder',\n templateUrl: './placeholder.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsPlaceholderComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly loading = input<PlaceholderInputs['loading'], unknown>(false, { transform: booleanAttribute });\n readonly loadedText = input<PlaceholderInputs['loadedText']>('Loading complete');\n\n readonly #core = useCore(placeholderCore, { inputs: () => ({ loading: this.loading(), loadedText: this.loadedText() }), idPrefix: 'bs-placeholder', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'placeholder' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapPlaceholders.key, bootstrapPlaceholders.css, { order: bootstrapPlaceholders.order }); useScopedStyles('placeholder', placeholderScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/placeholder/src/templates/placeholder.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-content />\n<span data-mps=\"placeholder\" [mpProps]=\"p_view.status\">\n {{ p_view.message }}\n</span>\n","// GENERATED from the placeholder manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsPlaceholderComponent } from './placeholder.component.generated';\n","// Generated from @mintplayer/ui-core/placeholder (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;;;AAGG;MAOU,sBAAsB,CAAA;AAOxB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AATS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAwC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC9F,IAAA,CAAA,UAAU,GAAG,KAAK,CAAkC,kBAAkB;uFAAC;QAEvE,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;;AAE3M,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK;AAGzC,QAAA,eAAe,CAAC,qBAAqB,CAAC,GAAG,EAAE,qBAAqB,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,qBAAqB,CAAC,KAAK,EAAE,CAAC;AAAE,QAAA,eAAe,CAAC,aAAa,EAAE,uBAAuB,CAAC;IACxK;8GAbW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChBnC,gSAMA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDOY,gBAAgB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,WAEjB,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gSAAA,EAAA;;;AEdjD;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1,29 +1,43 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { model, input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, model, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { playlistTogglerCore, playlistTogglerScopedStyles } from '@mintplayer/ui-core/playlist-toggler';
|
|
3
5
|
|
|
6
|
+
// GENERATED from the playlist-toggler manifest (playlist-toggler) by @mintplayer/nx-component-compiler. Do not edit.
|
|
7
|
+
/**
|
|
8
|
+
* A button whose bars show a play arrow while closed and a cross while `open` (two-way). `controls`
|
|
9
|
+
* names the playlist it shows and hides; with `toggleOnClick` off it only reports state its owner drives.
|
|
10
|
+
*/
|
|
4
11
|
class BsPlaylistTogglerComponent {
|
|
12
|
+
#core;
|
|
5
13
|
constructor() {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.
|
|
11
|
-
...(ngDevMode ? [{ debugName: "
|
|
14
|
+
/** The host element. */
|
|
15
|
+
this.elementRef = inject(ElementRef);
|
|
16
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
17
|
+
this.hostAttrs = useHostAttrs();
|
|
18
|
+
this.open = model(false, /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
20
|
+
this.toggleOnClick = input(true, { ...(ngDevMode ? { debugName: "toggleOnClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
21
|
+
this.label = input('Toggle playlist', /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
12
23
|
this.controls = input(null, /* @ts-ignore */
|
|
13
24
|
...(ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []));
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
25
|
+
this.#core = useCore(playlistTogglerCore, { inputs: () => ({ open: this.open(), toggleOnClick: this.toggleOnClick(), label: this.label(), controls: this.controls() }), idPrefix: 'bs-playlist-toggler', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'playlist-toggler' }), models: { open: this.open } });
|
|
26
|
+
/** The template's props. */
|
|
27
|
+
this.props = this.#core.props;
|
|
28
|
+
useScopedStyles('playlist-toggler', playlistTogglerScopedStyles);
|
|
19
29
|
}
|
|
20
30
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaylistTogglerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsPlaylistTogglerComponent, isStandalone: true, selector: "bs-playlist-toggler", inputs: {
|
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsPlaylistTogglerComponent, isStandalone: true, selector: "bs-playlist-toggler", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, toggleOnClick: { classPropertyName: "toggleOnClick", publicName: "toggleOnClick", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/playlist-toggler/src/templates/playlist-toggler.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"playlist-toggler\" [mpProps]=\"p_view.button\" [mpHostAttrs]=\"hostAttrs\">\n <span data-mps=\"playlist-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"playlist-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"playlist-toggler\" [mpProps]=\"p_view.line\"></span>\n</button>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
22
32
|
}
|
|
23
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPlaylistTogglerComponent, decorators: [{
|
|
24
34
|
type: Component,
|
|
25
|
-
args: [{ selector: 'bs-playlist-toggler', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button
|
|
26
|
-
}], propDecorators: {
|
|
35
|
+
args: [{ selector: 'bs-playlist-toggler', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/playlist-toggler/src/templates/playlist-toggler.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"playlist-toggler\" [mpProps]=\"p_view.button\" [mpHostAttrs]=\"hostAttrs\">\n <span data-mps=\"playlist-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"playlist-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"playlist-toggler\" [mpProps]=\"p_view.line\"></span>\n</button>\n" }]
|
|
36
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], toggleOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleOnClick", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: false }] }] } });
|
|
37
|
+
|
|
38
|
+
// GENERATED from the playlist-toggler manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
39
|
+
|
|
40
|
+
// Generated from @mintplayer/ui-core/playlist-toggler (PRD #437 D10).
|
|
27
41
|
|
|
28
42
|
/**
|
|
29
43
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-playlist-toggler.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/playlist-toggler/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-playlist-toggler.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/playlist-toggler/src/generated/playlist-toggler.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/playlist-toggler/src/generated/playlist-toggler.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/playlist-toggler/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/playlist-toggler/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/playlist-toggler/mintplayer-ng-bootstrap-playlist-toggler.ts"],"sourcesContent":["// GENERATED from the playlist-toggler manifest (playlist-toggler) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { playlistTogglerCore, type PlaylistTogglerInputs, playlistTogglerScopedStyles } from '@mintplayer/ui-core/playlist-toggler';\n\n/**\n * A button whose bars show a play arrow while closed and a cross while `open` (two-way). `controls`\n * names the playlist it shows and hides; with `toggleOnClick` off it only reports state its owner drives.\n */\n@Component({\n selector: 'bs-playlist-toggler',\n templateUrl: './playlist-toggler.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsPlaylistTogglerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */\n protected readonly hostAttrs = useHostAttrs();\n\n readonly open = model<PlaylistTogglerInputs['open']>(false);\n readonly toggleOnClick = input<PlaylistTogglerInputs['toggleOnClick'], unknown>(true, { transform: booleanAttribute });\n readonly label = input<PlaylistTogglerInputs['label']>('Toggle playlist');\n readonly controls = input<PlaylistTogglerInputs['controls']>(null);\n\n readonly #core = useCore(playlistTogglerCore, { inputs: () => ({ open: this.open(), toggleOnClick: this.toggleOnClick(), label: this.label(), controls: this.controls() }), idPrefix: 'bs-playlist-toggler', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'playlist-toggler' }), models: { open: this.open } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('playlist-toggler', playlistTogglerScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/playlist-toggler/src/templates/playlist-toggler.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"playlist-toggler\" [mpProps]=\"p_view.button\" [mpHostAttrs]=\"hostAttrs\">\n <span data-mps=\"playlist-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"playlist-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"playlist-toggler\" [mpProps]=\"p_view.line\"></span>\n</button>\n","// GENERATED from the playlist-toggler manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsPlaylistTogglerComponent } from './playlist-toggler.component.generated';\n","// Generated from @mintplayer/ui-core/playlist-toggler (PRD #437 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;;;AAGG;MAOU,0BAA0B,CAAA;AAY5B,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAdS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAG9C,IAAA,CAAA,SAAS,GAAG,YAAY,EAAE;QAEpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgC,KAAK;iFAAC;QAClD,IAAA,CAAA,aAAa,GAAG,KAAK,CAAkD,IAAI,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC7G,IAAA,CAAA,KAAK,GAAG,KAAK,CAAiC,iBAAiB;kFAAC;QAChE,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAoC,IAAI;qFAAC;AAEzD,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,EAAE,QAAQ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