@mintplayer/ng-bootstrap 22.33.0 → 22.35.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-accordion.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +7 -5
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +9 -7
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +9 -7
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +7 -5
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +7 -5
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +2 -2
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +4 -2
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +4 -2
- package/types/mintplayer-ng-bootstrap-machine.d.ts +6 -0
- package/types/mintplayer-ng-bootstrap-popover.d.ts +3 -2
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-toast.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-header.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-header.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-body.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-body.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toaster.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toaster.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/toast/mintplayer-ng-bootstrap-toast.ts"],"sourcesContent":["// GENERATED from the toast manifest (toast) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastCore, type ToastInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/**\n * Bootstrap's toast. `visible` is two-way: it fades in and out with Bootstrap's phases, and\n * turning visible announces its text (`politeness`). A `toast-header` close button hides it.\n */\n@Component({\n selector: 'bs-toast',\n templateUrl: './toast.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly visible = model<ToastInputs['visible']>(false);\n readonly politeness = input<ToastInputs['politeness']>('polite');\n\n readonly #core = useCore(toastCore, { inputs: () => ({ visible: this.visible(), politeness: this.politeness() }), idPrefix: 'bs-toast', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }), models: { visible: this.visible } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the toast manifest (toast-header) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastHeaderCore, type ToastHeaderInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The toast's header; `dismissible` adds a close button named by `closeLabel`. */\n@Component({\n selector: 'bs-toast-header',\n templateUrl: './toast-header.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastHeaderComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly dismissible = input<ToastHeaderInputs['dismissible'], unknown>(true, { transform: booleanAttribute });\n readonly closeLabel = input<ToastHeaderInputs['closeLabel']>('Close');\n\n readonly #core = useCore(toastHeaderCore, { inputs: () => ({ dismissible: this.dismissible(), closeLabel: this.closeLabel() }), idPrefix: 'bs-toast-header', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-header.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_close = props().close;\n<ng-content />\n@if (p_close) {\n <button data-mps=\"toast\" [mpProps]=\"p_close\"></button>\n}\n","// GENERATED from the toast manifest (toast-body) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastBodyCore, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The toast's body. */\n@Component({\n selector: 'bs-toast-body',\n templateUrl: './toast-body.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastBodyComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(toastBodyCore, { inputs: () => ({ }), idPrefix: 'bs-toast-body', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-body.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the toast manifest (toaster) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, computed, contentChild, inject, input } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type ToastEntry, toasterCore, type ToasterInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The `toast` slot of `<bs-toaster>`: `<ng-template bsToasterToast>` or `*bsToasterToast`. */\n@Directive({ selector: '[bsToasterToast]' })\nexport class BsToasterToastDirective {\n readonly templateRef = inject<TemplateRef<{ toast: ToastEntry<unknown> } & { $implicit: { toast: ToastEntry<unknown> }['toast'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsToasterToastDirective, ctx: unknown): ctx is { toast: ToastEntry<unknown> } & { $implicit: { toast: ToastEntry<unknown> }['toast'] } {\n return true;\n }\n}\n\n/**\n * Renders a `ToastQueue`: a fixed `toast-container` at `placement`, with the `toast` slot once per\n * entry (bind the entry's `visible`, and close it on `visibleChange`). Autohide pauses while the\n * pointer or focus is inside.\n */\n@Component({\n selector: 'bs-toaster',\n templateUrl: './toaster.view.generated.html',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToasterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly queue = input<ToasterInputs['queue']>(null);\n readonly placement = input<ToasterInputs['placement']>('bottom-end');\n\n private readonly toastSlot = contentChild(BsToasterToastDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ toast: this.toastSlot()?.templateRef }));\n readonly #core = useCore(toasterCore, { inputs: () => ({ queue: this.queue(), placement: this.placement() }), idPrefix: 'bs-toaster', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'toast' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toaster.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (t of p_view.toasts; track t.id) {\n @if (slots().toast; as slot_toast) {\n <ng-container [ngTemplateOutlet]=\"slot_toast\" [ngTemplateOutletContext]=\"{ $implicit: t, toast: t }\" />\n }\n}\n","// GENERATED from the toast manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsToastComponent } from './toast.component.generated';\nexport { BsToastHeaderComponent } from './toast-header.component.generated';\nexport { BsToastBodyComponent } from './toast-body.component.generated';\nexport { BsToasterComponent, BsToasterToastDirective } from './toaster.component.generated';\n","// Generated from @mintplayer/ui-core/toast (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAQA;;;AAGG;MAOU,gBAAgB,CAAA;AAOlB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AATS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAyB,KAAK;oFAAC;QAC9C,IAAA,CAAA,UAAU,GAAG,KAAK,CAA4B,QAAQ;uFAAC;AAEvD,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE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AAA,CAAA;kBAN9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WAEb,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kXAAA,EAAA;oTASL,uBAAuB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpCnE;;ACAA;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-toast.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-header.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-header.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-body.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-body.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toaster.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toaster.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/toast/mintplayer-ng-bootstrap-toast.ts"],"sourcesContent":["// GENERATED from the toast manifest (toast) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastCore, type ToastInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/**\n * Bootstrap's toast. `visible` is two-way: it fades in and out with Bootstrap's phases, and\n * turning visible announces its text (`politeness`). A `toast-header` close button hides it.\n */\n@Component({\n selector: 'bs-toast',\n templateUrl: './toast.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly visible = model<ToastInputs['visible']>(false);\n readonly politeness = input<ToastInputs['politeness']>('polite');\n\n readonly #core = useCore(toastCore, { inputs: () => ({ visible: this.visible(), politeness: this.politeness() }), idPrefix: 'bs-toast', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }), models: {visible: this.visible } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the toast manifest (toast-header) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastHeaderCore, type ToastHeaderInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The toast's header; `dismissible` adds a close button named by `closeLabel`. */\n@Component({\n selector: 'bs-toast-header',\n templateUrl: './toast-header.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastHeaderComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly dismissible = input<ToastHeaderInputs['dismissible'], unknown>(true, { transform: booleanAttribute });\n readonly closeLabel = input<ToastHeaderInputs['closeLabel']>('Close');\n\n readonly #core = useCore(toastHeaderCore, { inputs: () => ({ dismissible: this.dismissible(), closeLabel: this.closeLabel() }), idPrefix: 'bs-toast-header', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-header.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_close = props().close;\n<ng-content />\n@if (p_close) {\n <button data-mps=\"toast\" [mpProps]=\"p_close\"></button>\n}\n","// GENERATED from the toast manifest (toast-body) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastBodyCore, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The toast's body. */\n@Component({\n selector: 'bs-toast-body',\n templateUrl: './toast-body.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastBodyComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(toastBodyCore, { inputs: () => ({ }), idPrefix: 'bs-toast-body', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-body.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the toast manifest (toaster) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, computed, contentChild, inject, input } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type ToastEntry, toasterCore, type ToasterInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The `toast` slot of `<bs-toaster>`: `<ng-template bsToasterToast>` or `*bsToasterToast`. */\n@Directive({ selector: '[bsToasterToast]' })\nexport class BsToasterToastDirective {\n readonly templateRef = inject<TemplateRef<{ toast: ToastEntry<unknown> } & { $implicit: { toast: ToastEntry<unknown> }['toast'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsToasterToastDirective, ctx: unknown): ctx is { toast: ToastEntry<unknown> } & { $implicit: { toast: ToastEntry<unknown> }['toast'] } {\n return true;\n }\n}\n\n/**\n * Renders a `ToastQueue`: a fixed `toast-container` at `placement`, with the `toast` slot once per\n * entry (bind the entry's `visible`, and close it on `visibleChange`). Autohide pauses while the\n * pointer or focus is inside.\n */\n@Component({\n selector: 'bs-toaster',\n templateUrl: './toaster.view.generated.html',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToasterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly queue = input<ToasterInputs['queue']>(null);\n readonly placement = input<ToasterInputs['placement']>('bottom-end');\n\n private readonly toastSlot = contentChild(BsToasterToastDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ toast: this.toastSlot()?.templateRef }));\n readonly #core = useCore(toasterCore, { inputs: () => ({ queue: this.queue(), placement: this.placement() }), idPrefix: 'bs-toaster', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'toast' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toaster.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (t of p_view.toasts; track t.id) {\n @if (slots().toast; as slot_toast) {\n <ng-container [ngTemplateOutlet]=\"slot_toast\" [ngTemplateOutletContext]=\"{ $implicit: t, toast: t }\" />\n }\n}\n","// GENERATED from the toast manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsToastComponent } from './toast.component.generated';\nexport { BsToastHeaderComponent } from './toast-header.component.generated';\nexport { BsToastBodyComponent } from './toast-body.component.generated';\nexport { BsToasterComponent, BsToasterToastDirective } from './toaster.component.generated';\n","// Generated from @mintplayer/ui-core/toast (#458 D10).\nexport * from './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A,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,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,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,WAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAOa,uBAAuB,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpCnE,kXAOA,4CDmBY,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WAEb,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kXAAA,EAAA;oTASL,uBAAuB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpCnE;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, input,
|
|
2
|
+
import { inject, ElementRef, input, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
|
|
3
3
|
import { useCore, useScopedStyles, MpPropsDirective, anchorElement, useOverlayComponent } from '@mintplayer/ng-bootstrap/machine';
|
|
4
4
|
import { tooltipPanelCore, tooltipScopedStyles, tooltipCore } from '@mintplayer/ui-core/tooltip';
|
|
5
5
|
import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
|
|
@@ -17,8 +17,10 @@ class BsTooltipPanelComponent {
|
|
|
17
17
|
...(ngDevMode ? [{ debugName: "overlayId" }] : /* istanbul ignore next */ []));
|
|
18
18
|
this.side = input('top', /* @ts-ignore */
|
|
19
19
|
...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
20
|
-
|
|
21
|
-
this
|
|
20
|
+
/** The overlay phase: `.show` while shown, `hidden` while closed (#465). */
|
|
21
|
+
this.phase = input('closed', /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "phase" }] : /* istanbul ignore next */ []));
|
|
23
|
+
this.#core = useCore(tooltipPanelCore, { inputs: () => ({ overlayId: this.overlayId(), side: this.side(), phase: this.phase() }), idPrefix: 'bs-tooltip-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tooltip' }) });
|
|
22
24
|
/** The template's props. */
|
|
23
25
|
this.props = this.#core.props;
|
|
24
26
|
useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
|
|
@@ -26,12 +28,12 @@ class BsTooltipPanelComponent {
|
|
|
26
28
|
useScopedStyles('tooltip', tooltipScopedStyles);
|
|
27
29
|
}
|
|
28
30
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
29
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipPanelComponent, isStandalone: true, selector: "bs-tooltip-panel", inputs: { overlayId: { classPropertyName: "overlayId", publicName: "overlayId", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null },
|
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipPanelComponent, isStandalone: true, selector: "bs-tooltip-panel", inputs: { overlayId: { classPropertyName: "overlayId", publicName: "overlayId", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, phase: { classPropertyName: "phase", publicName: "phase", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/tooltip/src/templates/tooltip-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.arrow\"></div>\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.inner\">\n <ng-content />\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
30
32
|
}
|
|
31
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipPanelComponent, decorators: [{
|
|
32
34
|
type: Component,
|
|
33
35
|
args: [{ selector: 'bs-tooltip-panel', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/tooltip/src/templates/tooltip-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.arrow\"></div>\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.inner\">\n <ng-content />\n</div>\n" }]
|
|
34
|
-
}], ctorParameters: () => [], propDecorators: { overlayId: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlayId", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }],
|
|
36
|
+
}], ctorParameters: () => [], propDecorators: { overlayId: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlayId", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], phase: [{ type: i0.Input, args: [{ isSignal: true, alias: "phase", required: false }] }] } });
|
|
35
37
|
|
|
36
38
|
// GENERATED from the tooltip manifest (tooltip) by @mintplayer/nx-component-compiler. Do not edit.
|
|
37
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-tooltip.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/tooltip-panel.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/tooltip-panel.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/tooltip.directive.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/mintplayer-ng-bootstrap-tooltip.ts"],"sourcesContent":["// GENERATED from the tooltip manifest (tooltip-panel) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef,
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-tooltip.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/tooltip-panel.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/tooltip-panel.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/tooltip.directive.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/mintplayer-ng-bootstrap-tooltip.ts"],"sourcesContent":["// GENERATED from the tooltip manifest (tooltip-panel) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { tooltipPanelCore, type TooltipPanelInputs, tooltipScopedStyles } from '@mintplayer/ui-core/tooltip';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapTooltip } from '@mintplayer/ui-core/bootstrap/tooltip';\n\n/** Bootstrap's tooltip panel, as the tooltip directive renders it; not used on its own. */\n@Component({\n selector: 'bs-tooltip-panel',\n templateUrl: './tooltip-panel.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTooltipPanelComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The panel's id, which the trigger's `aria-describedby` names. */\n readonly overlayId = input<TooltipPanelInputs['overlayId']>('');\n readonly side = input<TooltipPanelInputs['side']>('top');\n /** The overlay phase: `.show` while shown, `hidden` while closed (#465). */\n readonly phase = input<TooltipPanelInputs['phase']>('closed');\n\n readonly #core = useCore(tooltipPanelCore, { inputs: () => ({ overlayId: this.overlayId(), side: this.side(), phase: this.phase() }), idPrefix: 'bs-tooltip-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tooltip' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapTooltip.key, bootstrapTooltip.css, { order: bootstrapTooltip.order }); useScopedStyles('tooltip', tooltipScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/tooltip/src/templates/tooltip-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.arrow\"></div>\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.inner\">\n <ng-content />\n</div>\n","// GENERATED from the tooltip manifest (tooltip) by @mintplayer/nx-component-compiler. Do not edit.\nimport { Directive, input } from '@angular/core';\nimport { anchorElement, useCore, useOverlayComponent, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { tooltipCore, type TooltipInputs, tooltipScopedStyles } from '@mintplayer/ui-core/tooltip';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapTooltip } from '@mintplayer/ui-core/bootstrap/tooltip';\nimport { BsTooltipPanelComponent } from './tooltip-panel.component.generated';\n\n/**\n * A tooltip on the element: shown on hover and on focus, dismissed by Escape, hoverable (WCAG 1.4.13).\n * While it shows, the element's `aria-describedby` names it.\n */\n@Directive({ selector: '[bsTooltip]' })\nexport class BsTooltipDirective {\n /** The side of the element it shows on; it flips when it does not fit. */\n readonly position = input<TooltipInputs['position'], TooltipInputs['position'] | ''>('top', { transform: (v: TooltipInputs['position'] | '') => (v === '' ? 'top' : v), alias: 'bsTooltip' });\n\n /** The element the template sits in: the trigger. */\n readonly #anchor = anchorElement();\n protected readonly core = useCore(tooltipCore, { inputs: () => ({ position: this.position() }), idPrefix: 'bs-tooltip', element: this.#anchor, hostBag: (props) => props.anchor });\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapTooltip.key, bootstrapTooltip.css, { order: bootstrapTooltip.order }); useScopedStyles('tooltip', tooltipScopedStyles);\n useOverlayComponent(BsTooltipPanelComponent, () => this.core.props().overlay, this.#anchor);\n }\n}\n","// GENERATED from the tooltip manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTooltipPanelComponent } from './tooltip-panel.component.generated';\nexport { BsTooltipDirective } from './tooltip.directive.generated';\n","// Generated from @mintplayer/ui-core/tooltip (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AAOA;MAOa,uBAAuB,CAAA;AAUzB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAZS,QAAA,IAAA,CAAA,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;;"}
|
|
@@ -205,7 +205,7 @@ class BsTreeSelectComponent {
|
|
|
205
205
|
this.panelScrollHeight = input('300px', /* @ts-ignore */
|
|
206
206
|
...(ngDevMode ? [{ debugName: "panelScrollHeight" }] : /* istanbul ignore next */ []));
|
|
207
207
|
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
208
|
-
this.searchDebounceMs = input(200, { ...(ngDevMode ? { debugName: "searchDebounceMs" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
208
|
+
this.searchDebounceMs = input(200, { ...(ngDevMode ? { debugName: "searchDebounceMs" } : /* istanbul ignore next */ {}), transform: (v) => (v == null || v === '' ? 200 : numberAttribute(v)) });
|
|
209
209
|
this.inputLabel = input(null, /* @ts-ignore */
|
|
210
210
|
...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
|
|
211
211
|
this.labels = input(null, /* @ts-ignore */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-tree-select.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tree-select/src/value-accessor/tree-select-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/tree-select.angular.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/tree-select.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/tree-select.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/mintplayer-ng-bootstrap-tree-select.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { TreeSelectValue } from '@mintplayer/ui-core/tree-select';\nimport { BsTreeSelectComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-tree-select` (a host directive of the\n * generated component, see `tree-select.angular.ts`). A bound form control\n * drives the value through `viewValue`; a user's change reaches the form\n * through the component's `value` model, which a form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTreeSelectValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTreeSelectValueAccessor 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<TreeSelectValue>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: TreeSelectValue) => 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 component = this.injector.get(BsTreeSelectComponent);\n const sub = component.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: TreeSelectValue) => 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: TreeSelectValue | undefined): void {\n this.viewValue.set(value ?? null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { TreeSelectInputs } from '@mintplayer/ui-core/tree-select';\nimport { BsTreeSelectValueAccessor } from './value-accessor/tree-select-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-tree-select` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the value and the\n * disabled state.\n */\n\nexport const hostDirectives = [BsTreeSelectValueAccessor];\n\nexport function extendInputs(inputs: () => TreeSelectInputs): () => TreeSelectInputs {\n const accessor = inject(BsTreeSelectValueAccessor, { self: true });\n return computed<TreeSelectInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the tree-select manifest (tree-select) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type TreeSelectChangeEventDetail, treeSelectCore, type TreeSelectInputs, type TreeSelectLoadErrorEventDetail, type TreeSelectMethods, treeSelectScopedStyles, type TreeSelectSearchEventDetail, type TreeSelectValue } from '@mintplayer/ui-core/tree-select';\nimport { type TreeNode } from '@mintplayer/ui-core/tree';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../tree-select.angular';\n\n/** The `item` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectItem>` or `*bsTreeSelectItem`. */\n@Directive({ selector: '[bsTreeSelectItem]' })\nexport class BsTreeSelectItemDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectItemDirective, ctx: unknown): ctx is { node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] } {\n return true;\n }\n}\n\n/** The `suggestion` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectSuggestion>` or `*bsTreeSelectSuggestion`. */\n@Directive({ selector: '[bsTreeSelectSuggestion]' })\nexport class BsTreeSelectSuggestionDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectSuggestionDirective, ctx: unknown): ctx is { node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] } {\n return true;\n }\n}\n\n/** The `button` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectButton>` or `*bsTreeSelectButton`. */\n@Directive({ selector: '[bsTreeSelectButton]' })\nexport class BsTreeSelectButtonDirective {\n readonly templateRef = inject<TemplateRef<{ value: TreeSelectValue } & { $implicit: { value: TreeSelectValue }['value'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectButtonDirective, ctx: unknown): ctx is { value: TreeSelectValue } & { $implicit: { value: TreeSelectValue }['value'] } {\n return true;\n }\n}\n\n/** The `header` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectHeader>` or `*bsTreeSelectHeader`. */\n@Directive({ selector: '[bsTreeSelectHeader]' })\nexport class BsTreeSelectHeaderDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `footer` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectFooter>` or `*bsTreeSelectFooter`. */\n@Directive({ selector: '[bsTreeSelectFooter]' })\nexport class BsTreeSelectFooterDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `noResults` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectNoResults>` or `*bsTreeSelectNoResults`. */\n@Directive({ selector: '[bsTreeSelectNoResults]' })\nexport class BsTreeSelectNoResultsDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `enterSearchTerm` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectEnterSearchTerm>` or `*bsTreeSelectEnterSearchTerm`. */\n@Directive({ selector: '[bsTreeSelectEnterSearchTerm]' })\nexport class BsTreeSelectEnterSearchTermDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * A hierarchical, async, searchable select (#437): a combobox, or a button, opening a tree in\n * a native popover.\n *\n * Data comes from a `provider` (roots, search and lazy children, each paged); `value` holds\n * whole nodes, one in `single` mode and an array in `multiple` / `checkbox`. `cascadeSelect`\n * checks a branch with its loaded children. Slots: `item` (a chosen node), `suggestion` (a\n * tree row's body), `button` (the button variant's body), `header`, `footer`, `noResults`,\n * `enterSearchTerm`. An `aria-label` names the combobox.\n */\n@Component({\n selector: 'bs-tree-select',\n templateUrl: './tree-select.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTreeSelectComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly provider = input<TreeSelectInputs['provider']>(null);\n readonly value = model<TreeSelectInputs['value']>(null);\n readonly mode = input<TreeSelectInputs['mode']>('single');\n readonly variant = input<TreeSelectInputs['variant']>('textbox');\n readonly cascadeSelect = input<TreeSelectInputs['cascadeSelect'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TreeSelectInputs['placeholder']>('');\n readonly showClear = input<TreeSelectInputs['showClear'], unknown>(false, { transform: booleanAttribute });\n readonly panelScrollHeight = input<TreeSelectInputs['panelScrollHeight']>('300px');\n readonly disabled = input<TreeSelectInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly searchDebounceMs = input<TreeSelectInputs['searchDebounceMs'], unknown>(200, { transform: (v: unknown) => numberAttribute(v) as TreeSelectInputs['searchDebounceMs'] });\n readonly inputLabel = input<TreeSelectInputs['inputLabel']>(null);\n readonly labels = input<TreeSelectInputs['labels']>(null);\n /** The node added or removed (neither for a clear), with the value. */\n readonly selectionChanged = output<TreeSelectChangeEventDetail>();\n /** The panel opened (true) or closed (false). */\n readonly openChange = output<boolean>();\n /** A search started (an empty query restores the browse tree). */\n readonly searchStart = output<TreeSelectSearchEventDetail>();\n /** A provider call rejected. */\n readonly loadError = output<TreeSelectLoadErrorEventDetail>();\n\n private readonly itemSlot = contentChild(BsTreeSelectItemDirective);\n private readonly suggestionSlot = contentChild(BsTreeSelectSuggestionDirective);\n private readonly buttonSlot = contentChild(BsTreeSelectButtonDirective);\n private readonly headerSlot = contentChild(BsTreeSelectHeaderDirective);\n private readonly footerSlot = contentChild(BsTreeSelectFooterDirective);\n private readonly noResultsSlot = contentChild(BsTreeSelectNoResultsDirective);\n private readonly enterSearchTermSlot = contentChild(BsTreeSelectEnterSearchTermDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ item: this.itemSlot()?.templateRef, suggestion: this.suggestionSlot()?.templateRef, button: this.buttonSlot()?.templateRef, header: this.headerSlot()?.templateRef, footer: this.footerSlot()?.templateRef, noResults: this.noResultsSlot()?.templateRef, enterSearchTerm: this.enterSearchTermSlot()?.templateRef }));\n readonly #core = useCore(treeSelectCore, { inputs: ext_extendInputs(() => ({ provider: this.provider(), value: this.value(), mode: this.mode(), variant: this.variant(), cascadeSelect: this.cascadeSelect(), placeholder: this.placeholder(), showClear: this.showClear(), panelScrollHeight: this.panelScrollHeight(), disabled: this.disabled(), searchDebounceMs: this.searchDebounceMs(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-tree-select', outputs: { selectionChanged: this.selectionChanged, openChange: this.openChange, searchStart: this.searchStart, loadError: this.loadError }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tree-select' }), models: { value: this.value } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('tree-select', treeSelectScopedStyles);\n }\n\n /** Open the panel (ignored when disabled or without a provider). */\n open(...args: Parameters<TreeSelectMethods['open']>): ReturnType<TreeSelectMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TreeSelectMethods['open']>;\n }\n\n /** Close the panel. */\n close(...args: Parameters<TreeSelectMethods['close']>): ReturnType<TreeSelectMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TreeSelectMethods['close']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/tree-select/src/templates/tree-select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n@if (p_view.textbox) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.control\">\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: chip.node, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n @if (chip.remove) {\n <button data-mps=\"tree-select\" [mpProps]=\"chip.remove\">\n ×\n </button>\n }\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: p_view.single, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.input\" [value]=\"p_view.query\">\n @if (p_view.clear) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.clear\">\n ×\n </button>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </div>\n} @else {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.button\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.buttonBody\">\n @if (slots().button; as slot_button) {\n <ng-container [ngTemplateOutlet]=\"slot_button\" [ngTemplateOutletContext]=\"{ $implicit: p_view.value, value: p_view.value }\" />\n } @else {\n @if (p_view.showPlaceholder) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.placeholder\">\n {{ p_view.placeholderText }}\n </span>\n }\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: chip.node, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: p_view.single, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </button>\n}\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.panel\">\n @if (slots().header) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </div>\n }\n @if (p_view.panelSearch) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.panelSearch\" [value]=\"p_view.query\">\n </div>\n }\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.body\" [style]=\"p_view.bodyStyle\">\n @if (p_view.noProvider) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n {{ p_view.labels.noProvider }}\n </div>\n } @else if (p_view.busy) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n </div>\n } @else if (p_view.noResults) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().noResults; as slot_noResults) {\n <ng-container [ngTemplateOutlet]=\"slot_noResults\" />\n } @else {\n {{ p_view.labels.noResults }}\n }\n </div>\n } @else if (p_view.noItems) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().enterSearchTerm; as slot_enterSearchTerm) {\n <ng-container [ngTemplateOutlet]=\"slot_enterSearchTerm\" />\n } @else {\n {{ p_view.labels.noItems }}\n }\n </div>\n }\n @if (p_view.showTree) {\n <ul data-mps=\"tree-select\" [mpProps]=\"p_view.tree.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"tree-select\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.spinner\"></span>\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.body\">\n @if (row.check) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.check\"></span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.label\">\n @if (slots().suggestion; as slot_suggestion) {\n <ng-container [ngTemplateOutlet]=\"slot_suggestion\" [ngTemplateOutletContext]=\"{ $implicit: row.node, node: row.node, query: p_view.query }\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </span>\n </li>\n }\n </ul>\n }\n </div>\n @if (p_view.loadMore) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.loadMore\">\n @if (p_view.loadMoreBusy) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n } @else {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.loadMoreLabel\">\n {{ p_view.labels.loadMore }}\n </span>\n }\n </button>\n }\n @if (slots().footer) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n</div>\n","// GENERATED from the tree-select manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTreeSelectComponent, BsTreeSelectItemDirective, BsTreeSelectSuggestionDirective, BsTreeSelectButtonDirective, BsTreeSelectHeaderDirective, BsTreeSelectFooterDirective, BsTreeSelectNoResultsDirective, BsTreeSelectEnterSearchTermDirective } from './tree-select.component.generated';\n","// The tree-select is generated from @mintplayer/ui-core/tree-select (PRD #437 D10).\nexport * from './generated';\nexport * from './value-accessor/tree-select-value-accessor';\nexport { InMemoryTreeSelectProvider } from '@mintplayer/ui-core/tree-select';\nexport type {\n InMemoryProviderOptions,\n NodePage,\n NodeRequest,\n TreeNode,\n TreeSelectChangeEventDetail,\n TreeSelectLabels,\n TreeSelectLoadErrorEventDetail,\n TreeSelectMode,\n TreeSelectProvider,\n TreeSelectSearchEventDetail,\n TreeSelectValue,\n TreeSelectVariant,\n} from '@mintplayer/ui-core/tree-select';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTreeSelectValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAKA;;;;;AAKG;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,CAAkB,IAAI;sFAAC;QACzC,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAAqC,MAAM,SAAS;AACpE,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AA6BxC,IAAA;IA3BC,QAAQ,GAAA;;QAEN,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,qBAAqB,CAAC;QAC1D,MAAM,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YAC9C,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,KA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,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACxB,8BAA8B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACxB,oCAAoC,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3G1F;;ACAA;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-tree-select.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tree-select/src/value-accessor/tree-select-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/tree-select.angular.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/tree-select.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/tree-select.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/mintplayer-ng-bootstrap-tree-select.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { TreeSelectValue } from '@mintplayer/ui-core/tree-select';\nimport { BsTreeSelectComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-tree-select` (a host directive of the\n * generated component, see `tree-select.angular.ts`). A bound form control\n * drives the value through `viewValue`; a user's change reaches the form\n * through the component's `value` model, which a form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTreeSelectValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTreeSelectValueAccessor 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<TreeSelectValue>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: TreeSelectValue) => 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 component = this.injector.get(BsTreeSelectComponent);\n const sub = component.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: TreeSelectValue) => 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: TreeSelectValue | undefined): void {\n this.viewValue.set(value ?? null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { TreeSelectInputs } from '@mintplayer/ui-core/tree-select';\nimport { BsTreeSelectValueAccessor } from './value-accessor/tree-select-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-tree-select` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the value and the\n * disabled state.\n */\n\nexport const hostDirectives = [BsTreeSelectValueAccessor];\n\nexport function extendInputs(inputs: () => TreeSelectInputs): () => TreeSelectInputs {\n const accessor = inject(BsTreeSelectValueAccessor, { self: true });\n return computed<TreeSelectInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the tree-select manifest (tree-select) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type TreeSelectChangeEventDetail, treeSelectCore, type TreeSelectInputs, type TreeSelectLoadErrorEventDetail, type TreeSelectMethods, treeSelectScopedStyles, type TreeSelectSearchEventDetail, type TreeSelectValue } from '@mintplayer/ui-core/tree-select';\nimport { type TreeNode } from '@mintplayer/ui-core/tree';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../tree-select.angular';\n\n/** The `item` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectItem>` or `*bsTreeSelectItem`. */\n@Directive({ selector: '[bsTreeSelectItem]' })\nexport class BsTreeSelectItemDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectItemDirective, ctx: unknown): ctx is { node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] } {\n return true;\n }\n}\n\n/** The `suggestion` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectSuggestion>` or `*bsTreeSelectSuggestion`. */\n@Directive({ selector: '[bsTreeSelectSuggestion]' })\nexport class BsTreeSelectSuggestionDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectSuggestionDirective, ctx: unknown): ctx is { node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] } {\n return true;\n }\n}\n\n/** The `button` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectButton>` or `*bsTreeSelectButton`. */\n@Directive({ selector: '[bsTreeSelectButton]' })\nexport class BsTreeSelectButtonDirective {\n readonly templateRef = inject<TemplateRef<{ value: TreeSelectValue } & { $implicit: { value: TreeSelectValue }['value'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectButtonDirective, ctx: unknown): ctx is { value: TreeSelectValue } & { $implicit: { value: TreeSelectValue }['value'] } {\n return true;\n }\n}\n\n/** The `header` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectHeader>` or `*bsTreeSelectHeader`. */\n@Directive({ selector: '[bsTreeSelectHeader]' })\nexport class BsTreeSelectHeaderDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `footer` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectFooter>` or `*bsTreeSelectFooter`. */\n@Directive({ selector: '[bsTreeSelectFooter]' })\nexport class BsTreeSelectFooterDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `noResults` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectNoResults>` or `*bsTreeSelectNoResults`. */\n@Directive({ selector: '[bsTreeSelectNoResults]' })\nexport class BsTreeSelectNoResultsDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `enterSearchTerm` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectEnterSearchTerm>` or `*bsTreeSelectEnterSearchTerm`. */\n@Directive({ selector: '[bsTreeSelectEnterSearchTerm]' })\nexport class BsTreeSelectEnterSearchTermDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * A hierarchical, async, searchable select (#437): a combobox, or a button, opening a tree in\n * a native popover.\n *\n * Data comes from a `provider` (roots, search and lazy children, each paged); `value` holds\n * whole nodes, one in `single` mode and an array in `multiple` / `checkbox`. `cascadeSelect`\n * checks a branch with its loaded children. Slots: `item` (a chosen node), `suggestion` (a\n * tree row's body), `button` (the button variant's body), `header`, `footer`, `noResults`,\n * `enterSearchTerm`. An `aria-label` names the combobox.\n */\n@Component({\n selector: 'bs-tree-select',\n templateUrl: './tree-select.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTreeSelectComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly provider = input<TreeSelectInputs['provider']>(null);\n readonly value = model<TreeSelectInputs['value']>(null);\n readonly mode = input<TreeSelectInputs['mode']>('single');\n readonly variant = input<TreeSelectInputs['variant']>('textbox');\n readonly cascadeSelect = input<TreeSelectInputs['cascadeSelect'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TreeSelectInputs['placeholder']>('');\n readonly showClear = input<TreeSelectInputs['showClear'], unknown>(false, { transform: booleanAttribute });\n readonly panelScrollHeight = input<TreeSelectInputs['panelScrollHeight']>('300px');\n readonly disabled = input<TreeSelectInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly searchDebounceMs = input<TreeSelectInputs['searchDebounceMs'], unknown>(200, { transform: (v: unknown) => (v == null || v === '' ? 200 : numberAttribute(v)) as TreeSelectInputs['searchDebounceMs'] });\n readonly inputLabel = input<TreeSelectInputs['inputLabel']>(null);\n readonly labels = input<TreeSelectInputs['labels']>(null);\n /** The node added or removed (neither for a clear), with the value. */\n readonly selectionChanged = output<TreeSelectChangeEventDetail>();\n /** The panel opened (true) or closed (false). */\n readonly openChange = output<boolean>();\n /** A search started (an empty query restores the browse tree). */\n readonly searchStart = output<TreeSelectSearchEventDetail>();\n /** A provider call rejected. */\n readonly loadError = output<TreeSelectLoadErrorEventDetail>();\n\n private readonly itemSlot = contentChild(BsTreeSelectItemDirective);\n private readonly suggestionSlot = contentChild(BsTreeSelectSuggestionDirective);\n private readonly buttonSlot = contentChild(BsTreeSelectButtonDirective);\n private readonly headerSlot = contentChild(BsTreeSelectHeaderDirective);\n private readonly footerSlot = contentChild(BsTreeSelectFooterDirective);\n private readonly noResultsSlot = contentChild(BsTreeSelectNoResultsDirective);\n private readonly enterSearchTermSlot = contentChild(BsTreeSelectEnterSearchTermDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ item: this.itemSlot()?.templateRef, suggestion: this.suggestionSlot()?.templateRef, button: this.buttonSlot()?.templateRef, header: this.headerSlot()?.templateRef, footer: this.footerSlot()?.templateRef, noResults: this.noResultsSlot()?.templateRef, enterSearchTerm: this.enterSearchTermSlot()?.templateRef }));\n readonly #core = useCore(treeSelectCore, { inputs: ext_extendInputs(() => ({ provider: this.provider(), value: this.value(), mode: this.mode(), variant: this.variant(), cascadeSelect: this.cascadeSelect(), placeholder: this.placeholder(), showClear: this.showClear(), panelScrollHeight: this.panelScrollHeight(), disabled: this.disabled(), searchDebounceMs: this.searchDebounceMs(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-tree-select', outputs: { selectionChanged: this.selectionChanged, openChange: this.openChange, searchStart: this.searchStart, loadError: this.loadError }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tree-select' }), models: {value: this.value } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('tree-select', treeSelectScopedStyles);\n }\n\n /** Open the panel (ignored when disabled or without a provider). */\n open(...args: Parameters<TreeSelectMethods['open']>): ReturnType<TreeSelectMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TreeSelectMethods['open']>;\n }\n\n /** Close the panel. */\n close(...args: Parameters<TreeSelectMethods['close']>): ReturnType<TreeSelectMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TreeSelectMethods['close']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/tree-select/src/templates/tree-select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n@if (p_view.textbox) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.control\">\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: chip.node, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n @if (chip.remove) {\n <button data-mps=\"tree-select\" [mpProps]=\"chip.remove\">\n ×\n </button>\n }\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: p_view.single, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.input\" [value]=\"p_view.query\">\n @if (p_view.clear) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.clear\">\n ×\n </button>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </div>\n} @else {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.button\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.buttonBody\">\n @if (slots().button; as slot_button) {\n <ng-container [ngTemplateOutlet]=\"slot_button\" [ngTemplateOutletContext]=\"{ $implicit: p_view.value, value: p_view.value }\" />\n } @else {\n @if (p_view.showPlaceholder) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.placeholder\">\n {{ p_view.placeholderText }}\n </span>\n }\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: chip.node, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: p_view.single, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </button>\n}\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.panel\">\n @if (slots().header) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </div>\n }\n @if (p_view.panelSearch) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.panelSearch\" [value]=\"p_view.query\">\n </div>\n }\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.body\" [style]=\"p_view.bodyStyle\">\n @if (p_view.noProvider) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n {{ p_view.labels.noProvider }}\n </div>\n } @else if (p_view.busy) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n </div>\n } @else if (p_view.noResults) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().noResults; as slot_noResults) {\n <ng-container [ngTemplateOutlet]=\"slot_noResults\" />\n } @else {\n {{ p_view.labels.noResults }}\n }\n </div>\n } @else if (p_view.noItems) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().enterSearchTerm; as slot_enterSearchTerm) {\n <ng-container [ngTemplateOutlet]=\"slot_enterSearchTerm\" />\n } @else {\n {{ p_view.labels.noItems }}\n }\n </div>\n }\n @if (p_view.showTree) {\n <ul data-mps=\"tree-select\" [mpProps]=\"p_view.tree.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"tree-select\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.spinner\"></span>\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.body\">\n @if (row.check) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.check\"></span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.label\">\n @if (slots().suggestion; as slot_suggestion) {\n <ng-container [ngTemplateOutlet]=\"slot_suggestion\" [ngTemplateOutletContext]=\"{ $implicit: row.node, node: row.node, query: p_view.query }\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </span>\n </li>\n }\n </ul>\n }\n </div>\n @if (p_view.loadMore) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.loadMore\">\n @if (p_view.loadMoreBusy) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n } @else {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.loadMoreLabel\">\n {{ p_view.labels.loadMore }}\n </span>\n }\n </button>\n }\n @if (slots().footer) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n</div>\n","// GENERATED from the tree-select manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTreeSelectComponent, BsTreeSelectItemDirective, BsTreeSelectSuggestionDirective, BsTreeSelectButtonDirective, BsTreeSelectHeaderDirective, BsTreeSelectFooterDirective, BsTreeSelectNoResultsDirective, BsTreeSelectEnterSearchTermDirective } from './tree-select.component.generated';\n","// The tree-select is generated from @mintplayer/ui-core/tree-select (PRD #437 D10).\nexport * from './generated';\nexport * from './value-accessor/tree-select-value-accessor';\nexport { InMemoryTreeSelectProvider } from '@mintplayer/ui-core/tree-select';\nexport type {\n InMemoryProviderOptions,\n NodePage,\n NodeRequest,\n TreeNode,\n TreeSelectChangeEventDetail,\n TreeSelectLabels,\n TreeSelectLoadErrorEventDetail,\n TreeSelectMode,\n TreeSelectProvider,\n TreeSelectSearchEventDetail,\n TreeSelectValue,\n TreeSelectVariant,\n} from '@mintplayer/ui-core/tree-select';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTreeSelectValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAKA;;;;;AAKG;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,CAAkB,IAAI;sFAAC;QACzC,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAAqC,MAAM,SAAS;AACpE,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AA6BxC,IAAA;IA3BC,QAAQ,GAAA;;QAEN,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,qBAAqB,CAAC;QAC1D,MAAM,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YAC9C,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,QAAQ,CAAC,KAAK,CAAC;AACtB,QAAA,CAAC,CAAC;AACF,QAAA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CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACxB,oCAAoC,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3G1F;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-treeview.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/treeview.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/treeview.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/mintplayer-ng-bootstrap-treeview.ts"],"sourcesContent":["// GENERATED from the treeview manifest (treeview) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, MpTrustedHtmlPipe, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type TreeNodeCollapseEventDetail, type TreeNodeExpandEventDetail, type TreeNodeLoadErrorEventDetail, type TreeNodeRenderContext, type TreeNodeSelectEventDetail, treeviewCore, type TreeviewInputs, treeviewScopedStyles } from '@mintplayer/ui-core/treeview';\nimport { type TreeNode } from '@mintplayer/ui-core/tree';\n\n/** The `node` slot of `<bs-treeview>`: `<ng-template bsTreeviewNode>` or `*bsTreeviewNode`. */\n@Directive({ selector: '[bsTreeviewNode]' })\nexport class BsTreeviewNodeDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; ctx: TreeNodeRenderContext } & { $implicit: { node: TreeNode; ctx: TreeNodeRenderContext }['node'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeviewNodeDirective, ctx: unknown): ctx is { node: TreeNode; ctx: TreeNodeRenderContext } & { $implicit: { node: TreeNode; ctx: TreeNodeRenderContext }['node'] } {\n return true;\n }\n}\n\n/**\n * A data-driven tree (WAI-ARIA tree pattern, #437).\n *\n * Give it `items`; `expandedIds` and `selectedIds` are two-way. The `node` slot renders a\n * node's body (the chevron stays). Lazy nodes (`lazy: true`) load through `loadChildren` on\n * first expansion. The server render shows every expanded level. An `aria-label` names it.\n */\n@Component({\n selector: 'bs-treeview',\n templateUrl: './treeview.view.generated.html',\n imports: [MpPropsDirective, MpTrustedHtmlPipe, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTreeviewComponent {\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 items = input<TreeviewInputs['items']>([]);\n readonly expandedIds = model<TreeviewInputs['expandedIds']>([]);\n readonly selectedIds = model<TreeviewInputs['selectedIds']>([]);\n readonly selectionMode = input<TreeviewInputs['selectionMode']>('single');\n readonly hideBorders = input<TreeviewInputs['hideBorders'], unknown>(false, { transform: booleanAttribute });\n readonly iconResolver = input<TreeviewInputs['iconResolver']>();\n readonly loadChildren = input<TreeviewInputs['loadChildren']>();\n readonly inputLabel = input<TreeviewInputs['inputLabel']>(null);\n readonly labels = input<TreeviewInputs['labels']>();\n /** A node was selected or deselected. */\n readonly nodeSelect = output<TreeNodeSelectEventDetail>();\n /** A node expanded (after its lazy load, if any). */\n readonly nodeExpand = output<TreeNodeExpandEventDetail>();\n /** A node collapsed. */\n readonly nodeCollapse = output<TreeNodeCollapseEventDetail>();\n /** A lazy node's loader rejected. */\n readonly nodeLoadError = output<TreeNodeLoadErrorEventDetail>();\n\n private readonly nodeSlot = contentChild(BsTreeviewNodeDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ node: this.nodeSlot()?.templateRef }));\n readonly #core = useCore(treeviewCore, { inputs: () => ({ items: this.items(), expandedIds: this.expandedIds(), selectedIds: this.selectedIds(), selectionMode: this.selectionMode(), hideBorders: this.hideBorders(), iconResolver: this.iconResolver(), loadChildren: this.loadChildren(), inputLabel: this.inputLabel(), labels: this.labels() }), idPrefix: 'bs-treeview', outputs: { nodeSelect: this.nodeSelect, nodeExpand: this.nodeExpand, nodeCollapse: this.nodeCollapse, nodeLoadError: this.nodeLoadError }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'treeview' }), models: { expandedIds: this.expandedIds, selectedIds: this.selectedIds } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('treeview', treeviewScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/treeview/src/templates/treeview.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"treeview\" [mpProps]=\"p_view.tree\" [mpHostAttrs]=\"hostAttrs\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"treeview\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"treeview\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.spinner\"></span>\n }\n </span>\n <span data-mps=\"treeview\" [mpProps]=\"p_view.body\">\n @if (slots().node; as slot_node) {\n <ng-container [ngTemplateOutlet]=\"slot_node\" [ngTemplateOutletContext]=\"{ $implicit: row.node, node: row.node, ctx: row.ctx }\" />\n } @else {\n @if (row.icon) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.icon\" [innerHTML]=\"row.icon | mpTrustedHtml\"></span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"p_view.label\">\n {{ row.node.label }}\n </span>\n }\n </span>\n </li>\n }\n</ul>\n<div data-mps=\"treeview\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n","// GENERATED from the treeview manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTreeviewComponent, BsTreeviewNodeDirective } from './treeview.component.generated';\n","// The treeview is generated from @mintplayer/ui-core/treeview (PRD #437 D10).\nexport * from './generated';\nexport type {\n IconResolver,\n TreeChildrenLoader,\n TreeNode,\n TreeNodeCollapseEventDetail,\n TreeNodeExpandEventDetail,\n TreeNodeLoadErrorEventDetail,\n TreeNodeRenderContext,\n TreeNodeSelectEventDetail,\n TreeviewIds,\n TreeviewLabels,\n TreeviewSelectionMode,\n} from '@mintplayer/ui-core/treeview';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAOA;MAEa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAsI,WAAW,CAAC;AAIhL,IAAA;AAHC,IAAA,OAAO,sBAAsB,CAAC,IAA6B,EAAE,GAAY,EAAA;AACvE,QAAA,OAAO,IAAI;IACb;8GAJW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,SAAS;mBAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE;;AAQ3C;;;;;;AAMG;MAOU,mBAAmB,CAAA;AA4BrB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AA9BS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAG9C,IAAA,CAAA,SAAS,GAAG,YAAY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AAA,EAyBW,uBAAuB,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECtDlE,y3CAiCA,4CDPY,gBAAgB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAqB,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAnC,iBAAiB,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGlC,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;+BACE,aAAa,EAAA,OAAA,EAEd,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAC/C,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,y3CAAA,EAAA;+0CA2BN,uBAAuB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtDlE;;ACAA;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-treeview.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/treeview.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/treeview.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/mintplayer-ng-bootstrap-treeview.ts"],"sourcesContent":["// GENERATED from the treeview manifest (treeview) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, MpTrustedHtmlPipe, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type TreeNodeCollapseEventDetail, type TreeNodeExpandEventDetail, type TreeNodeLoadErrorEventDetail, type TreeNodeRenderContext, type TreeNodeSelectEventDetail, treeviewCore, type TreeviewInputs, treeviewScopedStyles } from '@mintplayer/ui-core/treeview';\nimport { type TreeNode } from '@mintplayer/ui-core/tree';\n\n/** The `node` slot of `<bs-treeview>`: `<ng-template bsTreeviewNode>` or `*bsTreeviewNode`. */\n@Directive({ selector: '[bsTreeviewNode]' })\nexport class BsTreeviewNodeDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; ctx: TreeNodeRenderContext } & { $implicit: { node: TreeNode; ctx: TreeNodeRenderContext }['node'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeviewNodeDirective, ctx: unknown): ctx is { node: TreeNode; ctx: TreeNodeRenderContext } & { $implicit: { node: TreeNode; ctx: TreeNodeRenderContext }['node'] } {\n return true;\n }\n}\n\n/**\n * A data-driven tree (WAI-ARIA tree pattern, #437).\n *\n * Give it `items`; `expandedIds` and `selectedIds` are two-way. The `node` slot renders a\n * node's body (the chevron stays). Lazy nodes (`lazy: true`) load through `loadChildren` on\n * first expansion. The server render shows every expanded level. An `aria-label` names it.\n */\n@Component({\n selector: 'bs-treeview',\n templateUrl: './treeview.view.generated.html',\n imports: [MpPropsDirective, MpTrustedHtmlPipe, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTreeviewComponent {\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 items = input<TreeviewInputs['items']>([]);\n readonly expandedIds = model<TreeviewInputs['expandedIds']>([]);\n readonly selectedIds = model<TreeviewInputs['selectedIds']>([]);\n readonly selectionMode = input<TreeviewInputs['selectionMode']>('single');\n readonly hideBorders = input<TreeviewInputs['hideBorders'], unknown>(false, { transform: booleanAttribute });\n readonly iconResolver = input<TreeviewInputs['iconResolver']>();\n readonly loadChildren = input<TreeviewInputs['loadChildren']>();\n readonly inputLabel = input<TreeviewInputs['inputLabel']>(null);\n readonly labels = input<TreeviewInputs['labels']>();\n /** A node was selected or deselected. */\n readonly nodeSelect = output<TreeNodeSelectEventDetail>();\n /** A node expanded (after its lazy load, if any). */\n readonly nodeExpand = output<TreeNodeExpandEventDetail>();\n /** A node collapsed. */\n readonly nodeCollapse = output<TreeNodeCollapseEventDetail>();\n /** A lazy node's loader rejected. */\n readonly nodeLoadError = output<TreeNodeLoadErrorEventDetail>();\n\n private readonly nodeSlot = contentChild(BsTreeviewNodeDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ node: this.nodeSlot()?.templateRef }));\n readonly #core = useCore(treeviewCore, { inputs: () => ({ items: this.items(), expandedIds: this.expandedIds(), selectedIds: this.selectedIds(), selectionMode: this.selectionMode(), hideBorders: this.hideBorders(), iconResolver: this.iconResolver(), loadChildren: this.loadChildren(), inputLabel: this.inputLabel(), labels: this.labels() }), idPrefix: 'bs-treeview', outputs: { nodeSelect: this.nodeSelect, nodeExpand: this.nodeExpand, nodeCollapse: this.nodeCollapse, nodeLoadError: this.nodeLoadError }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'treeview' }), models: {expandedIds: this.expandedIds, selectedIds: this.selectedIds } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('treeview', treeviewScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/treeview/src/templates/treeview.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"treeview\" [mpProps]=\"p_view.tree\" [mpHostAttrs]=\"hostAttrs\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"treeview\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"treeview\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.spinner\"></span>\n }\n </span>\n <span data-mps=\"treeview\" [mpProps]=\"p_view.body\">\n @if (slots().node; as slot_node) {\n <ng-container [ngTemplateOutlet]=\"slot_node\" [ngTemplateOutletContext]=\"{ $implicit: row.node, node: row.node, ctx: row.ctx }\" />\n } @else {\n @if (row.icon) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.icon\" [innerHTML]=\"row.icon | mpTrustedHtml\"></span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"p_view.label\">\n {{ row.node.label }}\n </span>\n }\n </span>\n </li>\n }\n</ul>\n<div data-mps=\"treeview\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n","// GENERATED from the treeview manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTreeviewComponent, BsTreeviewNodeDirective } from './treeview.component.generated';\n","// The treeview is generated from @mintplayer/ui-core/treeview (PRD #437 D10).\nexport * from './generated';\nexport type {\n IconResolver,\n TreeChildrenLoader,\n TreeNode,\n TreeNodeCollapseEventDetail,\n TreeNodeExpandEventDetail,\n TreeNodeLoadErrorEventDetail,\n TreeNodeRenderContext,\n TreeNodeSelectEventDetail,\n TreeviewIds,\n TreeviewLabels,\n TreeviewSelectionMode,\n} from '@mintplayer/ui-core/treeview';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAOA;MAEa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAA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EAAA,OAAA,EAEd,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAC/C,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,y3CAAA,EAAA;+0CA2BN,uBAAuB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtDlE;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -144,8 +144,8 @@ class BsTypeaheadComponent {
|
|
|
144
144
|
this.hostAttrs = useHostAttrs();
|
|
145
145
|
this.provider = input(null, /* @ts-ignore */
|
|
146
146
|
...(ngDevMode ? [{ debugName: "provider" }] : /* istanbul ignore next */ []));
|
|
147
|
-
this.debounceMs = input(200, { ...(ngDevMode ? { debugName: "debounceMs" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
148
|
-
this.minLength = input(1, { ...(ngDevMode ? { debugName: "minLength" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
147
|
+
this.debounceMs = input(200, { ...(ngDevMode ? { debugName: "debounceMs" } : /* istanbul ignore next */ {}), transform: (v) => (v == null || v === '' ? 200 : numberAttribute(v)) });
|
|
148
|
+
this.minLength = input(1, { ...(ngDevMode ? { debugName: "minLength" } : /* istanbul ignore next */ {}), transform: (v) => (v == null || v === '' ? 1 : numberAttribute(v)) });
|
|
149
149
|
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
150
150
|
this.itemText = input(null, /* @ts-ignore */
|
|
151
151
|
...(ngDevMode ? [{ debugName: "itemText" }] : /* istanbul ignore next */ []));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-typeahead.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.accessor.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.angular.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/generated/typeahead.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/generated/typeahead.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/mintplayer-ng-bootstrap-typeahead.ts"],"sourcesContent":["import { afterNextRender, DestroyRef, Directive, ElementRef, forwardRef, inject, Injector, OnInit, PLATFORM_ID, signal } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { preHydrationValue } from '@mintplayer/ui-core/forms';\nimport { BsTypeaheadComponent } from './generated';\n\nconst INPUT = 'input[role=combobox]';\n\n/**\n * The `ControlValueAccessor` of `bs-typeahead` (a host directive of the\n * generated component, see `typeahead.angular.ts`). The value is the term. A\n * bound form control drives it through `viewValue`; what the user types reaches\n * the form through the component's `valuechange`, which a form write never\n * echoes (a programmatic set does not query either).\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTypeaheadValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTypeaheadValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n /** A form control drives the term: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n readonly viewValue = signal('');\n readonly disabled = signal(false);\n\n private onChange: (value: string) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n constructor() {\n this.adoptPreHydrationText();\n }\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = this.injector.get(BsTypeaheadComponent);\n const sub = component.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) => 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 ?? '');\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n /**\n * Text typed into the server-rendered input before hydration would be\n * overwritten by the `value` binding. Read it while the host still holds the\n * server DOM, and replay it as typing once the form directives have written\n * their initial value (ngModel writes in a microtask after the first render)\n * and the core has attached: a real `input` event, so the term, the model,\n * the form control and the query all take the path live typing takes.\n */\n private adoptPreHydrationText(): void {\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const server = this.host.querySelector<HTMLInputElement>(INPUT);\n const typed = preHydrationValue(this.host, server?.getAttribute('value') ?? '', INPUT);\n if (typed === null) return;\n afterNextRender(() =>\n queueMicrotask(() => {\n const input = this.host.querySelector<HTMLInputElement>(INPUT);\n if (!input || input.value) return; // the consumer or the user already wrote a term\n input.value = typed;\n input.dispatchEvent(new Event('input', { bubbles: true }));\n }),\n );\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { TypeaheadInputs } from '@mintplayer/ui-core/typeahead';\nimport { BsTypeaheadValueAccessor } from './typeahead.accessor';\n\n/*\n * The Angular extension of the generated `bs-typeahead` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the term and the\n * disabled state. (An Observable provider needs nothing here: the core\n * accepts any observable-like answer.)\n */\n\nexport const hostDirectives = [BsTypeaheadValueAccessor];\n\nexport function extendInputs(inputs: () => TypeaheadInputs): () => TypeaheadInputs {\n const accessor = inject(BsTypeaheadValueAccessor, { self: true });\n return computed<TypeaheadInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the typeahead manifest (typeahead) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { typeaheadCore, type TypeaheadInputs, type TypeaheadItem, type TypeaheadItemSelectDetail, type TypeaheadMethods, typeaheadScopedStyles } from '@mintplayer/ui-core/typeahead';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { bootstrapDropdown } from '@mintplayer/ui-core/bootstrap/dropdown';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../typeahead.angular';\n\n/** The `item` slot of `<bs-typeahead>`: `<ng-template bsTypeaheadItem>` or `*bsTypeaheadItem`. */\n@Directive({ selector: '[bsTypeaheadItem]' })\nexport class BsTypeaheadItemDirective {\n readonly templateRef = inject<TemplateRef<{ item: TypeaheadItem; term: string } & { $implicit: { item: TypeaheadItem; term: string }['item'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTypeaheadItemDirective, ctx: unknown): ctx is { item: TypeaheadItem; term: string } & { $implicit: { item: TypeaheadItem; term: string }['item'] } {\n return true;\n }\n}\n\n/**\n * A text input with asynchronous suggestions and free text (#436). The value is the term; a\n * pick writes its text into the input and emits `itemSelect`. The `provider` answers with a\n * Promise or an Observable, and a newer term aborts the previous request. Server-rendered as a\n * real, named `<input>` that submits free text with JavaScript off. Slot: `item` (a\n * suggestion's content, with the `item` and the `term`). An `aria-label` names the input.\n */\n@Component({\n selector: 'bs-typeahead',\n templateUrl: './typeahead.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTypeaheadComponent {\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 provider = input<TypeaheadInputs['provider']>(null);\n readonly debounceMs = input<TypeaheadInputs['debounceMs'], unknown>(200, { transform: (v: unknown) => numberAttribute(v) as TypeaheadInputs['debounceMs'] });\n readonly minLength = input<TypeaheadInputs['minLength'], unknown>(1, { transform: (v: unknown) => numberAttribute(v) as TypeaheadInputs['minLength'] });\n readonly disabled = input<TypeaheadInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly itemText = input<TypeaheadInputs['itemText']>(null);\n readonly itemKey = input<TypeaheadInputs['itemKey']>(null);\n readonly name = input<TypeaheadInputs['name']>(null);\n readonly inputLabel = input<TypeaheadInputs['inputLabel']>(null);\n readonly loadingLabel = input<TypeaheadInputs['loadingLabel']>(null);\n readonly noResultsLabel = input<TypeaheadInputs['noResultsLabel']>(null);\n readonly resultsLabel = input<TypeaheadInputs['resultsLabel']>(null);\n readonly errorText = input<TypeaheadInputs['errorText']>(null);\n readonly value = model<TypeaheadInputs['value']>('');\n /** A suggestion was picked, with the text it wrote. */\n readonly itemSelect = output<TypeaheadItemSelectDetail>();\n /** Enter with no suggestion highlighted. */\n readonly termSubmit = output<string>();\n /** The list opened (true) or closed (false). */\n readonly openChange = output<boolean>();\n /** A provider call started for this term. */\n readonly searchStart = output<string>();\n /** The provider rejected. */\n readonly loadError = output<unknown>();\n\n private readonly itemSlot = contentChild(BsTypeaheadItemDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ item: this.itemSlot()?.templateRef }));\n readonly #core = useCore(typeaheadCore, { inputs: ext_extendInputs(() => ({ provider: this.provider(), debounceMs: this.debounceMs(), minLength: this.minLength(), disabled: this.disabled(), itemText: this.itemText(), itemKey: this.itemKey(), name: this.name(), inputLabel: this.inputLabel(), loadingLabel: this.loadingLabel(), noResultsLabel: this.noResultsLabel(), resultsLabel: this.resultsLabel(), errorText: this.errorText(), value: this.value() })), idPrefix: 'bs-typeahead', outputs: { itemSelect: this.itemSelect, termSubmit: this.termSubmit, openChange: this.openChange, searchStart: this.searchStart, loadError: this.loadError }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'typeahead' }), models: { value: this.value } });\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(bootstrapDropdown.key, bootstrapDropdown.css, { order: bootstrapDropdown.order }); useScopedStyles('typeahead', typeaheadScopedStyles);\n }\n\n /** Focus the input. */\n focus(...args: Parameters<TypeaheadMethods['focus']>): ReturnType<TypeaheadMethods['focus']> {\n return this.#core.call('focus', args) as ReturnType<TypeaheadMethods['focus']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/typeahead/src/templates/typeahead.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<input data-mps=\"typeahead\" [mpProps]=\"p_view.input\" [value]=\"p_view.term\" [mpHostAttrs]=\"hostAttrs\">\n<ul data-mps=\"typeahead\" [mpProps]=\"p_view.listbox\">\n @if (p_view.status) {\n <li data-mps=\"typeahead\" [mpProps]=\"p_view.status.attrs\">\n {{ p_view.status.text }}\n </li>\n }\n @for (option of p_view.options; track option.key) {\n <li data-mps=\"typeahead\" [mpProps]=\"option.bag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: option.item, item: option.item, term: p_view.term }\" />\n } @else {\n {{ option.text }}\n }\n </li>\n }\n</ul>\n<span data-mps=\"typeahead\" [mpProps]=\"p_view.live.attrs\">\n {{ p_view.live.text }}\n</span>\n@if (p_view.error) {\n <div data-mps=\"typeahead\" [mpProps]=\"p_view.error.attrs\">\n {{ p_view.error.text }}\n </div>\n}\n","// GENERATED from the typeahead manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTypeaheadComponent, BsTypeaheadItemDirective } from './typeahead.component.generated';\n","// The typeahead is generated from @mintplayer/ui-core/typeahead (#458 M3).\nexport * from './generated';\nexport * from './typeahead.accessor';\nexport { inMemoryTypeaheadProvider } from '@mintplayer/ui-core/typeahead';\nexport type {\n TypeaheadItem,\n TypeaheadItemSelectDetail,\n TypeaheadLabels,\n TypeaheadProvider,\n TypeaheadRequest,\n TypeaheadSource,\n TypeaheadSubscribable,\n} from '@mintplayer/ui-core/typeahead';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTypeaheadValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;;;AAMA,MAAM,KAAK,GAAG,sBAAsB;AAEpC;;;;;;AAMG;MAOU,wBAAwB,CAAA;AAanC,IAAA,WAAA,GAAA;AAZiB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;;QAGxE,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,EAAE;sFAAC;QACtB,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAA4B,MAAM,SAAS;AAC3D,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;QAGrC,IAAI,CAAC,qBAAqB,EAAE;IAC9B;IAEA,QAAQ,GAAA;;QAEN,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC;QACzD,MAAM,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YAC9C,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,CAAC,SAAS,EAAE;gBA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,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/DnE;;ACAA;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-typeahead.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.accessor.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.angular.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/generated/typeahead.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/generated/typeahead.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/mintplayer-ng-bootstrap-typeahead.ts"],"sourcesContent":["import { afterNextRender, DestroyRef, Directive, ElementRef, forwardRef, inject, Injector, OnInit, PLATFORM_ID, signal } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { preHydrationValue } from '@mintplayer/ui-core/forms';\nimport { BsTypeaheadComponent } from './generated';\n\nconst INPUT = 'input[role=combobox]';\n\n/**\n * The `ControlValueAccessor` of `bs-typeahead` (a host directive of the\n * generated component, see `typeahead.angular.ts`). The value is the term. A\n * bound form control drives it through `viewValue`; what the user types reaches\n * the form through the component's `valuechange`, which a form write never\n * echoes (a programmatic set does not query either).\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTypeaheadValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTypeaheadValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n /** A form control drives the term: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n readonly viewValue = signal('');\n readonly disabled = signal(false);\n\n private onChange: (value: string) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n constructor() {\n this.adoptPreHydrationText();\n }\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = this.injector.get(BsTypeaheadComponent);\n const sub = component.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) => 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 ?? '');\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n /**\n * Text typed into the server-rendered input before hydration would be\n * overwritten by the `value` binding. Read it while the host still holds the\n * server DOM, and replay it as typing once the form directives have written\n * their initial value (ngModel writes in a microtask after the first render)\n * and the core has attached: a real `input` event, so the term, the model,\n * the form control and the query all take the path live typing takes.\n */\n private adoptPreHydrationText(): void {\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const server = this.host.querySelector<HTMLInputElement>(INPUT);\n const typed = preHydrationValue(this.host, server?.getAttribute('value') ?? '', INPUT);\n if (typed === null) return;\n afterNextRender(() =>\n queueMicrotask(() => {\n const input = this.host.querySelector<HTMLInputElement>(INPUT);\n if (!input || input.value) return; // the consumer or the user already wrote a term\n input.value = typed;\n input.dispatchEvent(new Event('input', { bubbles: true }));\n }),\n );\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { TypeaheadInputs } from '@mintplayer/ui-core/typeahead';\nimport { BsTypeaheadValueAccessor } from './typeahead.accessor';\n\n/*\n * The Angular extension of the generated `bs-typeahead` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the term and the\n * disabled state. (An Observable provider needs nothing here: the core\n * accepts any observable-like answer.)\n */\n\nexport const hostDirectives = [BsTypeaheadValueAccessor];\n\nexport function extendInputs(inputs: () => TypeaheadInputs): () => TypeaheadInputs {\n const accessor = inject(BsTypeaheadValueAccessor, { self: true });\n return computed<TypeaheadInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the typeahead manifest (typeahead) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { typeaheadCore, type TypeaheadInputs, type TypeaheadItem, type TypeaheadItemSelectDetail, type TypeaheadMethods, typeaheadScopedStyles } from '@mintplayer/ui-core/typeahead';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { bootstrapDropdown } from '@mintplayer/ui-core/bootstrap/dropdown';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../typeahead.angular';\n\n/** The `item` slot of `<bs-typeahead>`: `<ng-template bsTypeaheadItem>` or `*bsTypeaheadItem`. */\n@Directive({ selector: '[bsTypeaheadItem]' })\nexport class BsTypeaheadItemDirective {\n readonly templateRef = inject<TemplateRef<{ item: TypeaheadItem; term: string } & { $implicit: { item: TypeaheadItem; term: string }['item'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTypeaheadItemDirective, ctx: unknown): ctx is { item: TypeaheadItem; term: string } & { $implicit: { item: TypeaheadItem; term: string }['item'] } {\n return true;\n }\n}\n\n/**\n * A text input with asynchronous suggestions and free text (#436). The value is the term; a\n * pick writes its text into the input and emits `itemSelect`. The `provider` answers with a\n * Promise or an Observable, and a newer term aborts the previous request. Server-rendered as a\n * real, named `<input>` that submits free text with JavaScript off. Slot: `item` (a\n * suggestion's content, with the `item` and the `term`). An `aria-label` names the input.\n */\n@Component({\n selector: 'bs-typeahead',\n templateUrl: './typeahead.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTypeaheadComponent {\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 provider = input<TypeaheadInputs['provider']>(null);\n readonly debounceMs = input<TypeaheadInputs['debounceMs'], unknown>(200, { transform: (v: unknown) => (v == null || v === '' ? 200 : numberAttribute(v)) as TypeaheadInputs['debounceMs'] });\n readonly minLength = input<TypeaheadInputs['minLength'], unknown>(1, { transform: (v: unknown) => (v == null || v === '' ? 1 : numberAttribute(v)) as TypeaheadInputs['minLength'] });\n readonly disabled = input<TypeaheadInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly itemText = input<TypeaheadInputs['itemText']>(null);\n readonly itemKey = input<TypeaheadInputs['itemKey']>(null);\n readonly name = input<TypeaheadInputs['name']>(null);\n readonly inputLabel = input<TypeaheadInputs['inputLabel']>(null);\n readonly loadingLabel = input<TypeaheadInputs['loadingLabel']>(null);\n readonly noResultsLabel = input<TypeaheadInputs['noResultsLabel']>(null);\n readonly resultsLabel = input<TypeaheadInputs['resultsLabel']>(null);\n readonly errorText = input<TypeaheadInputs['errorText']>(null);\n readonly value = model<TypeaheadInputs['value']>('');\n /** A suggestion was picked, with the text it wrote. */\n readonly itemSelect = output<TypeaheadItemSelectDetail>();\n /** Enter with no suggestion highlighted. */\n readonly termSubmit = output<string>();\n /** The list opened (true) or closed (false). */\n readonly openChange = output<boolean>();\n /** A provider call started for this term. */\n readonly searchStart = output<string>();\n /** The provider rejected. */\n readonly loadError = output<unknown>();\n\n private readonly itemSlot = contentChild(BsTypeaheadItemDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ item: this.itemSlot()?.templateRef }));\n readonly #core = useCore(typeaheadCore, { inputs: ext_extendInputs(() => ({ provider: this.provider(), debounceMs: this.debounceMs(), minLength: this.minLength(), disabled: this.disabled(), itemText: this.itemText(), itemKey: this.itemKey(), name: this.name(), inputLabel: this.inputLabel(), loadingLabel: this.loadingLabel(), noResultsLabel: this.noResultsLabel(), resultsLabel: this.resultsLabel(), errorText: this.errorText(), value: this.value() })), idPrefix: 'bs-typeahead', outputs: { itemSelect: this.itemSelect, termSubmit: this.termSubmit, openChange: this.openChange, searchStart: this.searchStart, loadError: this.loadError }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'typeahead' }), models: {value: this.value } });\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(bootstrapDropdown.key, bootstrapDropdown.css, { order: bootstrapDropdown.order }); useScopedStyles('typeahead', typeaheadScopedStyles);\n }\n\n /** Focus the input. */\n focus(...args: Parameters<TypeaheadMethods['focus']>): ReturnType<TypeaheadMethods['focus']> {\n return this.#core.call('focus', args) as ReturnType<TypeaheadMethods['focus']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/typeahead/src/templates/typeahead.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<input data-mps=\"typeahead\" [mpProps]=\"p_view.input\" [value]=\"p_view.term\" [mpHostAttrs]=\"hostAttrs\">\n<ul data-mps=\"typeahead\" [mpProps]=\"p_view.listbox\">\n @if (p_view.status) {\n <li data-mps=\"typeahead\" [mpProps]=\"p_view.status.attrs\">\n {{ p_view.status.text }}\n </li>\n }\n @for (option of p_view.options; track option.key) {\n <li data-mps=\"typeahead\" [mpProps]=\"option.bag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: option.item, item: option.item, term: p_view.term }\" />\n } @else {\n {{ option.text }}\n }\n </li>\n }\n</ul>\n<span data-mps=\"typeahead\" [mpProps]=\"p_view.live.attrs\">\n {{ p_view.live.text }}\n</span>\n@if (p_view.error) {\n <div data-mps=\"typeahead\" [mpProps]=\"p_view.error.attrs\">\n {{ p_view.error.text }}\n </div>\n}\n","// GENERATED from the typeahead manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTypeaheadComponent, BsTypeaheadItemDirective } from './typeahead.component.generated';\n","// The typeahead is generated from @mintplayer/ui-core/typeahead (#458 M3).\nexport * from './generated';\nexport * from './typeahead.accessor';\nexport { inMemoryTypeaheadProvider } from '@mintplayer/ui-core/typeahead';\nexport type {\n TypeaheadItem,\n TypeaheadItemSelectDetail,\n TypeaheadLabels,\n TypeaheadProvider,\n TypeaheadRequest,\n TypeaheadSource,\n TypeaheadSubscribable,\n} from '@mintplayer/ui-core/typeahead';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTypeaheadValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;;;AAMA,MAAM,KAAK,GAAG,sBAAsB;AAEpC;;;;;;AAMG;MAOU,wBAAwB,CAAA;AAanC,IAAA,WAAA,GAAA;AAZiB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;;QAGxE,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,EAAE;sFAAC;QACtB,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAA4B,MAAM,SAAS;AAC3D,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;QAGrC,IAAI,CA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IjC,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;+BACE,cAAc,EAAA,OAAA,EAEf,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAC5B,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,ukCAAA,EAAA;wrDAiCO,wBAAwB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/DnE;;ACAA;;ACAA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/ng-bootstrap",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "22.
|
|
4
|
+
"version": "22.35.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
401
|
"peerDependencies": {
|
|
402
|
-
"@mintplayer/ui-core": "^1.
|
|
402
|
+
"@mintplayer/ui-core": "^1.9.0",
|
|
403
403
|
"@angular/common": "^22.0.0",
|
|
404
404
|
"@angular/core": "^22.0.0",
|
|
405
405
|
"@angular/cdk": "^22.0.0",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _mintplayer_ui_core_component from '@mintplayer/ui-core/component';
|
|
2
|
+
import * as _mintplayer_ui_core_overlay from '@mintplayer/ui-core/overlay';
|
|
2
3
|
import * as _angular_core from '@angular/core';
|
|
3
4
|
import { ElementRef } from '@angular/core';
|
|
4
5
|
import * as _mintplayer_ng_bootstrap_machine from '@mintplayer/ng-bootstrap/machine';
|
|
@@ -11,14 +12,15 @@ declare class BsContextMenuPanelComponent {
|
|
|
11
12
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
12
13
|
/** The panel's id. */
|
|
13
14
|
readonly overlayId: _angular_core.InputSignal<string>;
|
|
14
|
-
|
|
15
|
+
/** The overlay phase: `.show` while shown, `hidden` while closed (#465). */
|
|
16
|
+
readonly phase: _angular_core.InputSignal<_mintplayer_ui_core_overlay.OverlayPhase>;
|
|
15
17
|
/** The template's props. */
|
|
16
18
|
protected readonly props: _angular_core.Signal<{
|
|
17
19
|
root: _mintplayer_ui_core_component.CoreBag;
|
|
18
20
|
}>;
|
|
19
21
|
constructor();
|
|
20
22
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsContextMenuPanelComponent, never>;
|
|
21
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsContextMenuPanelComponent, "bs-context-menu-panel", never, { "overlayId": { "alias": "overlayId"; "required": false; "isSignal": true; }; "
|
|
23
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsContextMenuPanelComponent, "bs-context-menu-panel", never, { "overlayId": { "alias": "overlayId"; "required": false; "isSignal": true; }; "phase": { "alias": "phase"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
/**
|