@mintplayer/ng-bootstrap 22.28.0 → 22.29.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.
Files changed (134) hide show
  1. package/_bootstrap.scss +4 -101
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
  3. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
  5. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  6. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
  7. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
  9. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
  11. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
  13. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
  15. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
  17. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
  19. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
  21. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +150 -824
  25. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
  27. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
  29. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
  31. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
  33. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
  35. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
  37. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
  39. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
  41. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +220 -20
  43. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
  45. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
  47. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
  49. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
  51. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
  53. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
  55. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
  57. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
  59. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
  61. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
  63. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
  65. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
  67. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
  69. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
  71. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
  73. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
  75. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
  77. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
  79. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
  81. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
  83. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
  85. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
  87. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
  89. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  90. package/package.json +11 -9
  91. package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
  92. package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
  93. package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
  94. package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
  95. package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
  96. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
  97. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
  98. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
  99. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
  100. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
  101. package/types/mintplayer-ng-bootstrap-datatable.d.ts +217 -422
  102. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
  103. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
  104. package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
  105. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
  106. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
  107. package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
  108. package/types/mintplayer-ng-bootstrap-machine.d.ts +112 -4
  109. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
  110. package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
  111. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
  112. package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
  113. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
  114. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
  115. package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
  116. package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
  117. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
  118. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
  119. package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
  120. package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
  121. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
  122. package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
  123. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
  124. package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
  125. package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
  126. package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
  127. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
  128. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
  129. package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
  130. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
  131. package/src/styles/utilities/cursor.scss +0 -12
  132. package/src/styles/utilities/overflow.scss +0 -12
  133. package/src/styles/utilities/white-space.scss +0 -12
  134. package/src/styles/utilities/width.scss +0 -14
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-navbar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar/navbar.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar/navbar.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-nav/navbar-nav.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-item/navbar-item.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-brand/navbar-brand.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-dropdown/navbar-dropdown-label.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-dropdown/navbar-dropdown.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-dropdown/navbar-dropdown.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-toggler-slot/navbar-toggler.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-content/navbar-content.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/mintplayer-ng-bootstrap-navbar.ts"],"sourcesContent":["import { afterNextRender, ChangeDetectionStrategy, Component, computed, CUSTOM_ELEMENTS_SCHEMA, ElementRef, inject, input, output } from '@angular/core';\nimport type { NavbarBreakpoint, NavbarExpandedChangeEventDetail } from '@mintplayer/web-components/navbar';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-navbar>` — Angular wrapper around the `<mp-navbar>` web component.\n *\n * Layout, the responsive collapse behaviour, the pure-CSS no-JS toggle and the\n * theme-aware styling all live in the WC (single source of UI truth). This\n * wrapper only bridges inputs to attributes and projects content into the WC's\n * slots:\n * - mark the brand with `bs-navbar-brand` (→ `slot=\"brand\"`);\n * - left-aligned items go in the default slot;\n * - right-aligned items get `slot=\"end\"`.\n *\n * The WC is registered **client-side only** (`afterNextRender`); on the server\n * Angular emits a bare `<mp-navbar>` tag and the SSR layer injects its\n * Declarative Shadow DOM (see `injectMpNavbarDsd`), so it renders with JS off.\n */\n@Component({\n selector: 'bs-navbar',\n templateUrl: './navbar.component.html',\n imports: [BsForwardAriaDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsNavbarComponent {\n /** Host element — measured by `[bsNavbarContent]` to offset page content. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Bootstrap breakpoint the navbar expands at; collapses below it. */\n readonly breakpoint = input<NavbarBreakpoint>('md');\n /** Theme color of the navbar background (e.g. `primary`, `dark`, `body-tertiary`). */\n readonly color = input<string>();\n /** Accessible label for the `<nav>` landmark. */\n /** Whether the collapse is (visually) expanded; reflected to the WC. */\n readonly expanded = input(false);\n /** `fixed` pins the bar to the top of the viewport, full width; omit for in-flow. */\n readonly positioning = input<'fixed'>();\n\n /** Fires when the collapse toggles (re-emits the WC's `expandedchange`). */\n readonly expandedchange = output<NavbarExpandedChangeEventDetail>();\n\n /** String-or-absent attributes derived once via signals. */\n protected readonly colorAttr = computed(() => this.color() ?? null);\n protected readonly positioningAttr = computed(() => this.positioning() ?? null);\n /** Presence attribute: `''` when expanded, `null` when collapsed. */\n protected readonly expandedAttr = computed(() => (this.expanded() ? '' : null));\n\n protected onExpandedchange(event: Event) {\n // The WC's `expandedchange` is a general-purpose DOM event (bubbles +\n // composed). The public Angular API is this typed `output()`, so consume\n // the raw event here. Without `stopPropagation` it keeps bubbling to the\n // consumer's `<bs-navbar>` host, where their `(expandedchange)` binding\n // fires a SECOND time with the raw `CustomEvent` (Angular doesn't unwrap\n // `.detail`).\n event.stopPropagation();\n this.expandedchange.emit((event as CustomEvent<NavbarExpandedChangeEventDetail>).detail);\n }\n\n constructor() {\n afterNextRender(() => {\n // Side-effect import registers <mp-navbar> and friends; client-only so\n // SSR stays a bare tag for DSD injection.\n import('@mintplayer/web-components/navbar');\n });\n }\n}\n","<mp-navbar bsForwardAria [attr.breakpoint]=\"breakpoint()\" [attr.color]=\"colorAttr()\" [attr.expanded]=\"expandedAttr()\" [attr.positioning]=\"positioningAttr()\" (expandedchange)=\"onExpandedchange($event)\">\n <ng-content></ng-content>\n</mp-navbar>\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\n\n/**\n * `<bs-navbar-nav>` — groups navbar items into one of the WC's two nav lists.\n *\n * `align=\"start\"` (default) joins the left list, `align=\"end\"` the list pushed\n * to the far edge in wide mode. The host is `display: contents`, so the grouped\n * `<bs-navbar-item>` / `<bs-navbar-dropdown>` children flatten into the WC's\n * `.navbar-nav` flex layout exactly like directly-slotted items — the same\n * mechanism `<mp-navbar>` itself uses for its slots. The WC slot name stays an\n * internal detail (mirrors `bs-navbar-brand` hiding `slot=\"brand\"`).\n *\n * `display: contents` MUST stay static CSS (never applied via JS) so the no-JS\n * SSR path lays out identically from first paint.\n */\n@Component({\n selector: 'bs-navbar-nav',\n template: '<ng-content></ng-content>',\n styles: ':host { display: contents; }',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.slot]': 'slotAttr()',\n },\n})\nexport class BsNavbarNavComponent {\n /** Which nav group the items join: `start` (default) or `end` (pushed to the far edge in wide mode). */\n readonly align = input<'start' | 'end'>('start');\n\n protected readonly slotAttr = computed(() => (this.align() === 'end' ? 'end' : null));\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, CUSTOM_ELEMENTS_SCHEMA, inject, input } from '@angular/core';\nimport { BS_DROPDOWN_MENU_CONTEXT } from '@mintplayer/ng-bootstrap/dropdown-menu';\n\n/**\n * `<bs-navbar-item>` — one navbar entry, uniform at EVERY nesting level.\n *\n * Wraps a consumer light-DOM link: project an `<a routerLink>` / `<a href>` (or\n * a `<button>`) as content. The rendered shape is context-aware:\n *\n * - **Directly in the navbar** (top level, or inside `<bs-navbar-nav>`): wraps\n * the link in `<mp-navbar-item>`, which styles it as a `.nav-link` in its\n * own shadow.\n * - **Inside a dropdown** (`<bs-navbar-dropdown>` / `<bs-dropdown-menu>`,\n * detected via `BS_DROPDOWN_MENU_CONTEXT`): the HOST itself becomes the\n * `.dropdown-item` — the shape `mp-dropdown-menu` queries (roving tabindex,\n * `role=menuitem` on the inner control) and styles via\n * `::slotted(.dropdown-item)`. The link stays a DIRECT child of the host so\n * the menu wrapper's companion `.dropdown-item > a` reset reaches it\n * (`NgTemplateOutlet` through `<ng-container>` adds no wrapper element).\n *\n * `active` / `disabled` bridge to the WC's presence attributes (nav mode) or\n * Bootstrap's item classes + `aria-disabled` (menu mode).\n */\n@Component({\n selector: 'bs-navbar-item',\n template: `\n <ng-template #content><ng-content></ng-content></ng-template>\n @if (inMenu) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n } @else {\n <mp-navbar-item [attr.active]=\"activeAttr()\" [attr.disabled]=\"disabledAttr()\" [attr.aria-current]=\"active() ? 'page' : null\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </mp-navbar-item>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n imports: [NgTemplateOutlet],\n host: {\n '[class.dropdown-item]': 'inMenu',\n '[class.active]': 'inMenu && active()',\n '[class.disabled]': 'inMenu && disabled()',\n '[attr.aria-disabled]': \"inMenu && disabled() ? 'true' : null\",\n // Menu mode: the same active state is the current page.\n '[attr.aria-current]': \"inMenu && active() ? 'page' : null\",\n },\n})\nexport class BsNavbarItemComponent {\n readonly active = input(false);\n readonly disabled = input(false);\n\n /** Menu mode when authored inside a dropdown; fixed per instance. */\n protected readonly inMenu = inject(BS_DROPDOWN_MENU_CONTEXT, { optional: true }) ?? false;\n\n /** Presence attributes: `''` when set, `null` when absent. */\n protected readonly activeAttr = computed(() => (this.active() ? '' : null));\n protected readonly disabledAttr = computed(() => (this.disabled() ? '' : null));\n}\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n/**\n * `<bs-navbar-brand>` — Angular wrapper around `<mp-navbar-brand>`.\n *\n * Project an `<a routerLink>` / text as the brand. The host sets\n * `slot=\"brand\"` so the wrapper element lands in `<mp-navbar>`'s `brand` slot\n * (mirrors `BsShellSidebarDirective`, which sets `slot=\"sidebar\"`).\n */\n@Component({\n selector: 'bs-navbar-brand',\n template: '<mp-navbar-brand><ng-content></ng-content></mp-navbar-brand>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.slot]': \"'brand'\",\n },\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsNavbarBrandComponent {}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * Marks the trigger-label template for `<bs-navbar-dropdown>` — any HTML\n * (text, icon + text, badges, …). Rendered into the WC's trigger via\n * `ngTemplateOutlet`; the trigger's accessible name derives from this content,\n * so give an icon-only label an `aria-label`.\n *\n * ```html\n * <bs-navbar-dropdown>\n * <span *bsNavbarDropdownLabel>Products</span>\n * <bs-navbar-item><a routerLink=\"/p1\">Product 1</a></bs-navbar-item>\n * </bs-navbar-dropdown>\n * ```\n */\n@Directive({ selector: '[bsNavbarDropdownLabel]' })\nexport class BsNavbarDropdownLabelDirective {\n readonly templateRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, contentChild, CUSTOM_ELEMENTS_SCHEMA, inject, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { RouterLinkActive } from '@angular/router';\nimport { BS_DROPDOWN_MENU_CONTEXT, BsDropdownMenuComponent } from '@mintplayer/ng-bootstrap/dropdown-menu';\nimport { BsNavbarDropdownLabelDirective } from './navbar-dropdown-label.directive';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-navbar-dropdown>` — Angular wrapper around `<mp-navbar-dropdown>`.\n *\n * The trigger content is the `*bsNavbarDropdownLabel` template — any HTML\n * (matches the React/Vue wrappers, which take the WC's `label` slot directly).\n * The dropdown panel (`<bs-dropdown-menu>`) is rendered internally — author\n * the items directly between the tags, uniformly with the rest of the navbar:\n *\n * <bs-navbar-dropdown>\n * <span *bsNavbarDropdownLabel>Basic</span>\n * <bs-navbar-item><a routerLink=\"/basic/alert\">Alert</a></bs-navbar-item>\n * <bs-navbar-dropdown>…</bs-navbar-dropdown> <!-- submenu -->\n * </bs-navbar-dropdown>\n *\n * `BS_DROPDOWN_MENU_CONTEXT` is provided here (element injectors follow the\n * consumer template's nesting, not the projection site — the internally\n * rendered menu is invisible to projected children's injectors), so nested\n * `<bs-navbar-item>`s render their `.dropdown-item` shape.\n *\n * **Active-route trigger highlighting:** a `RouterLinkActive` host directive\n * collects the projected descendant `routerLink`s; when any is active\n * (non-exact — the whole subtree counts, like the legacy `[bsNavbarTrigger]`\n * prefix match) the WC gets its `active` attribute, which recolors the\n * shadow-rendered trigger (primary background for submenu triggers). Nested\n * dropdowns each report their own subtree, so the full trigger chain of the\n * active route highlights. Renders server-side, so it works with JS off.\n *\n * Reveal/positioning and the no-JS `:focus-within` fallback all live in the WC.\n */\n@Component({\n selector: 'bs-navbar-dropdown',\n templateUrl: './navbar-dropdown.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n imports: [BsForwardAriaDirective, NgTemplateOutlet, BsDropdownMenuComponent],\n providers: [{ provide: BS_DROPDOWN_MENU_CONTEXT, useValue: true }],\n hostDirectives: [RouterLinkActive],\n})\nexport class BsNavbarDropdownComponent {\n protected readonly label = contentChild.required(BsNavbarDropdownLabelDirective);\n\n /** A projected descendant link's route is active → highlight the trigger. */\n protected readonly routeActive = signal(false);\n\n constructor() {\n const rla = inject(RouterLinkActive, { self: true });\n // No class on this host — the state is bridged to the WC's `active`\n // attribute instead (the trigger lives in the WC's shadow, out of reach\n // of any class-based styling from here).\n rla.routerLinkActive = [];\n rla.isActiveChange.pipe(takeUntilDestroyed()).subscribe((active) => this.routeActive.set(active));\n }\n}\n","<mp-navbar-dropdown bsForwardAria [attr.active]=\"routeActive() ? '' : null\">\n <span slot=\"label\"><ng-container [ngTemplateOutlet]=\"label().templateRef\"></ng-container></span>\n <bs-dropdown-menu>\n <ng-content></ng-content>\n </bs-dropdown-menu>\n</mp-navbar-dropdown>\n","import { Directive } from '@angular/core';\n\n/**\n * `[bsNavbarToggler]` — marks an element as the navbar's custom hamburger\n * glyph, replacing the WC's built-in animated 3-bar → X toggler (the `toggler`\n * slot's fallback). The slot name stays an internal detail of the WC.\n *\n * The glyph is a first-class no-JS citizen: DSD slot assignment happens at\n * parse time (no fallback flash), the click reaches the in-shadow checkbox via\n * native label activation, and the open-state arrives as the inherited\n * `--mp-navbar-expanded: 0|1` custom property — derive the morph in CSS, e.g.\n * `transform: rotate(calc(var(--mp-navbar-expanded, 0) * 45deg))`.\n *\n * The host must be NON-interactive: labels do not forward clicks from\n * interactive descendants, so a `<button>`/`<a href>` here would kill the\n * no-JS toggle. Use a `<span>`/`<div>` glyph. (For a programmatic boolean, use\n * `[expanded]`/`(expandedchange)` on `bs-navbar` instead.)\n */\n@Directive({\n selector: '[bsNavbarToggler]',\n host: {\n slot: 'toggler',\n },\n})\nexport class BsNavbarTogglerDirective {}\n","import { afterNextRender, Directive, ElementRef, inject, input, OnDestroy, PLATFORM_ID, Renderer2 } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { BsNavbarComponent } from '../navbar/navbar.component';\n\n/**\n * `[bsNavbarContent]` — offsets page content below a `positioning=\"fixed\"`\n * navbar by its LIVE height (replaces hand-maintained `padding-top` constants).\n *\n * <bs-navbar [positioning]=\"'fixed'\" #nav>…</bs-navbar>\n * <div [bsNavbarContent]=\"nav\"><router-outlet /></div>\n *\n * On the client a `ResizeObserver` tracks the bar (theme/viewport changes\n * resize it) and sets `padding-top` = the element's own initial padding + the\n * bar height. On the server — where the bar can't be measured — a fixed 58px\n * approximation is serialized into the HTML so SSR/no-JS pages still clear the\n * bar (same contract as the pre-WC directive).\n */\n@Directive({\n selector: '[bsNavbarContent]',\n})\nexport class BsNavbarContentDirective implements OnDestroy {\n /** The `bs-navbar` to clear — pass its template reference (`#nav`). */\n readonly navbar = input.required<BsNavbarComponent>({ alias: 'bsNavbarContent' });\n\n /** Server-side height approximation (px) — the bar isn't measurable there. */\n static readonly SSR_NAVBAR_HEIGHT = 58;\n\n readonly #element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n readonly #renderer = inject(Renderer2);\n #observer?: ResizeObserver;\n\n constructor() {\n if (isPlatformServer(inject(PLATFORM_ID))) {\n this.#setPadding(BsNavbarContentDirective.SSR_NAVBAR_HEIGHT);\n return;\n }\n afterNextRender(() => {\n // The measurable bar is the WC inside the wrapper host (the host itself\n // is inline and reports no height for a fixed child).\n const bar = this.navbar().elementRef.nativeElement.querySelector('mp-navbar');\n if (!bar) return;\n // Hydration reuses the SSR element, so the 58px approximation this\n // directive wrote server-side is still inline here. Remove it BEFORE\n // measuring, or the author's baseline would double-count it.\n this.#renderer.removeStyle(this.#element, 'padding-top');\n const initial = parseFloat(getComputedStyle(this.#element).paddingTop) || 0;\n this.#observer = new ResizeObserver(() =>\n this.#setPadding(initial + (bar as HTMLElement).offsetHeight),\n );\n this.#observer.observe(bar);\n });\n }\n\n #setPadding(px: number): void {\n this.#renderer.setStyle(this.#element, 'padding-top', `${px}px`);\n }\n\n ngOnDestroy(): void {\n this.#observer?.disconnect();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAIA;;;;;;;;;;;;;;AAcG;MAQU,iBAAiB,CAAA;AAuBlB,IAAA,gBAAgB,C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AA,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;YAC3E,IAAI,CAAC,SAAS,GAAG,IAAI,cAAc,CAAC,MAClC,IAAI,CAAC,WAAW,CAAC,OAAO,GAAI,GAAmB,CAAC,YAAY,CAAC,CAC9D;AACD,YAAA,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC;AAC7B,QAAA,CAAC,CAAC;IACJ;AAEA,IAAA,WAAW,CAAC,EAAU,EAAA;AACpB,QAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAA,EAAG,EAAE,CAAA,EAAA,CAAI,CAAC;IAClE;IAEA,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,SAAS,EAAE,UAAU,EAAE;IAC9B;8GAvCW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACnBD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-navbar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/navbar/src/generated/navbar.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/generated/navbar.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/generated/navbar-nav.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/generated/navbar-nav.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/generated/navbar-item.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/generated/navbar-item.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-dropdown.angular.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/generated/navbar-dropdown.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/generated/navbar-dropdown.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-content/navbar-content.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/mintplayer-ng-bootstrap-navbar.ts"],"sourcesContent":["// GENERATED from the navbar manifest (navbar) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, computed, contentChild, inject, input, model, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { navbarCore, type NavbarExpandedChangeEventDetail, type NavbarInputs, type NavbarMethods, navbarScopedStyles } from '@mintplayer/ui-core/navbar';\n\n/** The `brand` slot of `<bs-navbar>`: `<ng-template bsNavbarBrand>` or `*bsNavbarBrand`. */\n@Directive({ selector: '[bsNavbarBrand]' })\nexport class BsNavbarBrandDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `toggler` slot of `<bs-navbar>`: `<ng-template bsNavbarToggler>` or `*bsNavbarToggler`. */\n@Directive({ selector: '[bsNavbarToggler]' })\nexport class BsNavbarTogglerDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * Bootstrap navbar with a no-JS collapse and native `<details>` dropdowns (#437).\n *\n * The server-rendered page is the working navbar: the collapse is a checkbox and every\n * dropdown a `<details>`, both of which work with JavaScript off. An `aria-label` names\n * the landmark. The `brand` slot holds the brand; the `toggler` slot replaces the three\n * hamburger bars and reads the open state from `--mp-navbar-expanded: 0|1`.\n */\n@Component({\n selector: 'bs-navbar',\n templateUrl: './navbar.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavbarComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly breakpoint = input<NavbarInputs['breakpoint']>('md');\n readonly color = input<NavbarInputs['color']>();\n readonly expanded = model<NavbarInputs['expanded']>(false);\n readonly positioning = input<NavbarInputs['positioning']>();\n readonly labels = input<NavbarInputs['labels']>();\n /** The collapse opened or closed through the bar. */\n readonly expandedchange = output<NavbarExpandedChangeEventDetail>();\n\n private readonly brandSlot = contentChild(BsNavbarBrandDirective);\n private readonly togglerSlot = contentChild(BsNavbarTogglerDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ brand: this.brandSlot()?.templateRef, toggler: this.togglerSlot()?.templateRef }));\n readonly #core = useCore(navbarCore, { inputs: () => ({ breakpoint: this.breakpoint(), color: this.color(), expanded: this.expanded(), positioning: this.positioning(), labels: this.labels() }), idPrefix: 'bs-navbar', outputs: { expandedChange: this.expandedchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'navbar', role: 'navigation' }), models: { expanded: this.expanded } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('navbar', navbarScopedStyles);\n }\n\n /** Opens or closes the collapse (flips it without an argument), and reports it. */\n toggle(...args: Parameters<NavbarMethods['toggle']>): ReturnType<NavbarMethods['toggle']> {\n return this.#core.call('toggle', args) as ReturnType<NavbarMethods['toggle']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_brand = props().brand;\n@let p_view = props().view;\n@if (slots().brand) {\n <div data-mps=\"navbar\" [mpProps]=\"p_brand\">\n @if (slots().brand; as slot_brand) {\n <ng-container [ngTemplateOutlet]=\"slot_brand\" />\n }\n </div>\n}\n<input data-mps=\"navbar\" [mpProps]=\"p_view.toggle\">\n<label data-mps=\"navbar\" [mpProps]=\"p_view.toggler\">\n @if (slots().toggler; as slot_toggler) {\n <ng-container [ngTemplateOutlet]=\"slot_toggler\" />\n } @else {\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n }\n</label>\n<div data-mps=\"navbar\" [mpProps]=\"p_view.collapse\">\n <div data-mps=\"navbar\" [mpProps]=\"p_view.inner\">\n <ng-content />\n </div>\n</div>\n","// GENERATED from the navbar manifest (navbar-nav) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { navbarNavCore, type NavbarNavInputs, navbarScopedStyles } from '@mintplayer/ui-core/navbar';\n\n/** A group of navbar items; `align=\"end\"` pushes it to the far side when the bar is wide. */\n@Component({\n selector: 'bs-navbar-nav',\n templateUrl: './navbar-nav.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavbarNavComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly align = input<NavbarNavInputs['align']>('start');\n\n readonly #core = useCore(navbarNavCore, { inputs: () => ({ align: this.align() }), idPrefix: 'bs-navbar-nav', hostBag: (props) => ({ ...props.bag, 'data-mps': 'navbar' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('navbar', navbarScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-nav.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the navbar manifest (navbar-item) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { navbarItemCore, type NavbarItemInputs, navbarScopedStyles } from '@mintplayer/ui-core/navbar';\n\n/** One entry around a consumer link: a `.nav-item` in a nav group, a `.dropdown-item` in a dropdown. */\n@Component({\n selector: 'bs-navbar-item',\n templateUrl: './navbar-item.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavbarItemComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly active = input<NavbarItemInputs['active'], unknown>(false, { transform: booleanAttribute });\n readonly disabled = input<NavbarItemInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(navbarItemCore, { inputs: () => ({ active: this.active(), disabled: this.disabled() }), idPrefix: 'bs-navbar-item', hostBag: (props) => ({ ...props.bag, 'data-mps': 'navbar' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('navbar', navbarScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","import { inject, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { RouterLinkActive } from '@angular/router';\nimport type { NavbarDropdownInputs } from '@mintplayer/ui-core/navbar';\n\n/*\n * The Angular extension of the generated `bs-navbar-dropdown` (PRD #437 D10\n * escape hatch): a dropdown whose content holds the active route's link marks\n * its trigger, the way Bootstrap marks an active nav link.\n */\n\n/** `RouterLinkActive` on the host watches the `routerLink`s in the content. */\nexport const hostDirectives = [RouterLinkActive];\n\nexport function extendInputs(inputs: () => NavbarDropdownInputs): () => NavbarDropdownInputs {\n const rla = inject(RouterLinkActive, { self: true });\n // No class on this host: the state goes on the summary through the bag.\n rla.routerLinkActive = [];\n const routeActive = signal(false);\n rla.isActiveChange.pipe(takeUntilDestroyed()).subscribe((active) => routeActive.set(active));\n return () => {\n const value = inputs();\n return { ...value, active: value.active || routeActive() };\n };\n}\n","// GENERATED from the navbar manifest (navbar-dropdown) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, provideCoreContext, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { NAVBAR_NESTING, navbarDropdownCore, type NavbarDropdownInputs, navbarScopedStyles } from '@mintplayer/ui-core/navbar';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../navbar-dropdown.angular';\n\n/** The `labelTemplate` slot of `<bs-navbar-dropdown>`: `<ng-template bsNavbarDropdownLabelTemplate>` or `*bsNavbarDropdownLabelTemplate`. */\n@Directive({ selector: '[bsNavbarDropdownLabelTemplate]' })\nexport class BsNavbarDropdownLabelTemplateDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** A navbar dropdown, or a submenu when nested: a native `<details>`, so it opens with JavaScript off. */\n@Component({\n selector: 'bs-navbar-dropdown',\n templateUrl: './navbar-dropdown.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [provideCoreContext(NAVBAR_NESTING, BsNavbarDropdownComponent)],\n hostDirectives: ext_hostDirectives,\n})\nexport class BsNavbarDropdownComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly label = input<NavbarDropdownInputs['label']>();\n readonly active = input<NavbarDropdownInputs['active'], unknown>(false, { transform: booleanAttribute });\n\n private readonly labelTemplateSlot = contentChild(BsNavbarDropdownLabelTemplateDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ labelTemplate: this.labelTemplateSlot()?.templateRef }));\n readonly #core = useCore(navbarDropdownCore, { inputs: ext_extendInputs(() => ({ label: this.label(), active: this.active() })), idPrefix: 'bs-navbar-dropdown' });\n /** What this component hands its content. */\n readonly provided = this.#core.provided;\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('navbar', navbarScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-dropdown.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@let p_label = props().label;\n<details data-mps=\"navbar\" [mpProps]=\"p_view.details\" #root>\n <summary data-mps=\"navbar\" [mpProps]=\"p_view.summary\">\n @if (slots().labelTemplate; as slot_labelTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_labelTemplate\" />\n } @else {\n {{ p_label }}\n }\n </summary>\n <div data-mps=\"navbar\" [mpProps]=\"p_view.panel\">\n <ng-content />\n </div>\n</details>\n","// GENERATED from the navbar manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsNavbarComponent, BsNavbarBrandDirective, BsNavbarTogglerDirective } from './navbar.component.generated';\nexport { BsNavbarNavComponent } from './navbar-nav.component.generated';\nexport { BsNavbarItemComponent } from './navbar-item.component.generated';\nexport { BsNavbarDropdownComponent, BsNavbarDropdownLabelTemplateDirective } from './navbar-dropdown.component.generated';\n","import { isPlatformServer } from '@angular/common';\nimport { afterNextRender, Directive, ElementRef, inject, input, OnDestroy, PLATFORM_ID, Renderer2, RendererStyleFlags2 } from '@angular/core';\nimport { BsNavbarComponent } from '../generated';\n\n/** The offset before the bar is measured: Bootstrap's default navbar is 3.5rem tall. */\nconst ESTIMATE = 'var(--bs-navbar-content-offset, 3.5rem)';\n\n/**\n * `[bsNavbarContent]` — offsets page content below a `positioning=\"fixed\"`\n * navbar by its LIVE height (replaces hand-maintained `padding-top` constants).\n *\n * <bs-navbar [positioning]=\"'fixed'\" #nav>…</bs-navbar>\n * <div [bsNavbarContent]=\"nav\"><router-outlet /></div>\n *\n * On the client a `ResizeObserver` tracks the bar (theme/viewport changes\n * resize it) and sets `padding-top` = the element's own initial padding + the\n * bar height. Until then (on the server, and with JavaScript off) the offset\n * is CSS: `--bs-navbar-content-offset`, defaulting to 3.5rem, the height of\n * Bootstrap's default navbar. A theme with a taller bar sets that property.\n */\n@Directive({\n selector: '[bsNavbarContent]',\n})\nexport class BsNavbarContentDirective implements OnDestroy {\n /** The `bs-navbar` to clear — pass its template reference (`#nav`). */\n readonly navbar = input.required<BsNavbarComponent>({ alias: 'bsNavbarContent' });\n\n readonly #element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n readonly #renderer = inject(Renderer2);\n #observer?: ResizeObserver;\n\n constructor() {\n this.#renderer.setStyle(this.#element, 'padding-top', ESTIMATE, RendererStyleFlags2.DashCase);\n if (isPlatformServer(inject(PLATFORM_ID))) return;\n afterNextRender(() => {\n // The bs-navbar host is the .navbar itself.\n const bar = this.navbar().elementRef.nativeElement;\n // The CSS estimate is still inline here (hydration reuses the server\n // element). Remove it BEFORE measuring, or the author's baseline would\n // count it.\n this.#renderer.removeStyle(this.#element, 'padding-top');\n const initial = parseFloat(getComputedStyle(this.#element).paddingTop) || 0;\n this.#observer = new ResizeObserver(() => this.#setPadding(initial + bar.offsetHeight));\n this.#observer.observe(bar);\n });\n }\n\n #setPadding(px: number): void {\n this.#renderer.setStyle(this.#element, 'padding-top', `${px}px`);\n }\n\n ngOnDestroy(): void {\n this.#observer?.disconnect();\n }\n}\n","// The navbar components are generated from @mintplayer/ui-core/navbar (PRD #437 D10).\nexport * from './generated';\nexport * from './navbar-content/navbar-content.directive';\n","/**\n * Generated bundle index.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YAC3E,IAAI,CAAC,SAAS,GAAG,IAAI,cAAc,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,GAAG,CAAC,YAAY,CAAC,CAAC;AACvF,YAAA,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC;AAC7B,QAAA,CAAC,CAAC;IACJ;AAEA,IAAA,WAAW,CAAC,EAAU,EAAA;AACpB,QAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAA,EAAG,EAAE,CAAA,EAAA,CAAI,CAAC;IAClE;IAEA,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,SAAS,EAAE,UAAU,EAAE;IAC9B;8GA9BW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACtBD;;ACAA;;AAEG;;;;"}
@@ -1,268 +1,184 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Injector, DestroyRef, forwardRef, Directive, input, model, output, viewChild, ElementRef, computed, effect, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
3
- import { NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
4
- export * from '@mintplayer/web-components/otp-input';
2
+ import { inject, Injector, DestroyRef, signal, forwardRef, Directive, ElementRef, computed, input, booleanAttribute, model, output, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { otpInputCore, otpInputScopedStyles } from '@mintplayer/ui-core/otp-input';
5
+ import * as i2 from '@mintplayer/ng-bootstrap/a11y';
6
+ import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';
7
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
8
 
9
+ /**
10
+ * The `ControlValueAccessor` of `bs-otp-input` (a host directive of the
11
+ * generated component, see `otp-input.angular.ts`). A bound form control drives
12
+ * the code through `viewValue`; every change the user makes (typing, paste,
13
+ * `clear()`, a layout change that drops characters) reaches the form through
14
+ * the component's `value` model, which a form write never touches.
15
+ */
6
16
  class BsOtpInputValueAccessor {
7
17
  constructor() {
8
- this.host = inject(BsOtpInputComponent);
9
- // Inject NgControl LAZILY via the injector. Eager `inject(NgControl)` here
10
- // creates a cycle: NgControl → NG_VALUE_ACCESSOR token → this directive →
11
- // NgControl. Looking it up in ngOnInit (after the form directive has
12
- // finished its own construction) breaks the cycle.
13
18
  this.injector = inject(Injector);
14
19
  this.destroyRef = inject(DestroyRef);
15
- this.ngControl = null;
20
+ /** A form control drives the code: its `viewValue` wins over the `value` input. */
21
+ this.bound = signal(false, /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "bound" }] : /* istanbul ignore next */ []));
23
+ this.viewValue = signal('', /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "viewValue" }] : /* istanbul ignore next */ []));
25
+ this.disabled = signal(false, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
27
+ this.onChange = () => undefined;
28
+ this.onTouched = () => undefined;
16
29
  }
17
30
  ngOnInit() {
18
- this.ngControl = this.injector.get(NgControl, null);
19
- // Push invalid state to the WC whenever the form control's status or
20
- // touched state changes. Mirrors Bootstrap's .is-invalid convention: only
21
- // mark the boxes red after the control has been touched, otherwise we'd
22
- // light up a "required" field the moment the form mounts.
23
- if (!this.ngControl?.control)
24
- return;
25
- const sub = this.ngControl.statusChanges?.subscribe(() => this.syncInvalid());
26
- if (sub)
27
- this.destroyRef.onDestroy(() => sub.unsubscribe());
28
- // Sync once now in case the control was created already invalid+touched
29
- // (e.g. server-side validation rehydrate).
30
- queueMicrotask(() => this.syncInvalid());
31
- }
32
- onValueChangeEvent(ev) {
33
- if (!this.onValueChange)
34
- return;
35
- const detail = ev.detail ?? '';
36
- this.onValueChange(detail);
37
- }
38
- onTouchEvent() {
39
- if (this.onTouched)
40
- this.onTouched();
41
- // Re-sync invalid on touch — statusChanges doesn't always fire on touched
42
- // alone, so we trigger the recompute here.
43
- this.syncInvalid();
44
- }
45
- syncInvalid() {
46
- // Guard async-scheduled invocations: queueMicrotask in ngOnInit + the
47
- // statusChanges subscription are both possible after destroy. Reading
48
- // `host.elementRef()` (a required viewChild) on a destroyed view throws.
49
- if (this.destroyRef.destroyed)
50
- return;
51
- const ref = this.host.elementRef();
52
- if (!ref || !this.ngControl)
53
- return;
54
- const invalid = (this.ngControl.invalid ?? false) && (this.ngControl.touched ?? false);
55
- ref.nativeElement.invalid = invalid;
31
+ // The component is created after its host directives, so it is looked up here.
32
+ const sub = this.injector.get(BsOtpInputComponent).value.subscribe((value) => {
33
+ if (!this.bound() || value === this.viewValue())
34
+ return;
35
+ this.viewValue.set(value);
36
+ this.onChange(value);
37
+ });
38
+ this.destroyRef.onDestroy(() => sub.unsubscribe());
56
39
  }
57
40
  registerOnChange(fn) {
58
- this.onValueChange = fn;
41
+ this.bound.set(true);
42
+ this.onChange = fn;
59
43
  }
60
44
  registerOnTouched(fn) {
61
45
  this.onTouched = fn;
62
46
  }
63
47
  writeValue(value) {
64
- const ref = this.host.elementRef();
65
- if (!ref)
66
- return;
67
- ref.nativeElement.value = value ?? '';
48
+ this.viewValue.set(value ?? '');
68
49
  }
69
50
  setDisabledState(isDisabled) {
70
- const ref = this.host.elementRef();
71
- if (!ref)
72
- return;
73
- if (isDisabled) {
74
- ref.nativeElement.setAttribute('disabled', '');
75
- }
76
- else {
77
- ref.nativeElement.removeAttribute('disabled');
78
- }
51
+ this.disabled.set(isDisabled);
79
52
  }
80
53
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
81
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsOtpInputValueAccessor, isStandalone: true, selector: "bs-otp-input", host: { listeners: { "value-change": "onValueChangeEvent($event)", "focusout": "onTouchEvent()" } }, providers: [{
82
- provide: NG_VALUE_ACCESSOR,
83
- useExisting: forwardRef(() => BsOtpInputValueAccessor),
84
- multi: true,
85
- }], ngImport: i0 }); }
54
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsOtpInputValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsOtpInputValueAccessor), multi: true }], ngImport: i0 }); }
86
55
  }
87
56
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputValueAccessor, decorators: [{
88
57
  type: Directive,
89
58
  args: [{
90
- selector: 'bs-otp-input',
91
- providers: [{
92
- provide: NG_VALUE_ACCESSOR,
93
- useExisting: forwardRef(() => BsOtpInputValueAccessor),
94
- multi: true,
95
- }],
59
+ providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsOtpInputValueAccessor), multi: true }],
96
60
  host: {
97
- '(value-change)': 'onValueChangeEvent($event)',
98
- '(focusout)': 'onTouchEvent()',
61
+ '(focusout)': 'onTouched()',
99
62
  },
100
63
  }]
101
64
  }] });
65
+ /**
66
+ * `focus()` on the `bs-otp-input` host moves into its input, so a directive that
67
+ * focuses the element it sits on (`autofocus` through FocusOnLoadDirective)
68
+ * reaches the field.
69
+ */
70
+ class BsOtpInputFocusDirective {
71
+ constructor() {
72
+ const host = inject(ElementRef).nativeElement;
73
+ Object.defineProperty(host, 'focus', {
74
+ // Before the first render there is no input yet; try again once it exists.
75
+ value: (options) => {
76
+ const input = host.querySelector('input');
77
+ if (input)
78
+ input.focus(options);
79
+ else
80
+ queueMicrotask(() => host.querySelector('input')?.focus(options));
81
+ },
82
+ configurable: true,
83
+ writable: true,
84
+ });
85
+ }
86
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputFocusDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
87
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsOtpInputFocusDirective, isStandalone: true, ngImport: i0 }); }
88
+ }
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputFocusDirective, decorators: [{
90
+ type: Directive,
91
+ args: [{}]
92
+ }], ctorParameters: () => [] });
93
+
94
+ /*
95
+ * The Angular extension of the generated `bs-otp-input` (PRD #437 D10 escape
96
+ * hatch): Angular forms, and host focus. A bound form control drives the value
97
+ * and the disabled state, and its validity reaches the input's ARIA and message.
98
+ */
99
+ const hostDirectives = [
100
+ BsOtpInputValueAccessor,
101
+ BsOtpInputFocusDirective,
102
+ { directive: BsControlValidityDirective, inputs: ['errorMessages'] },
103
+ ];
104
+ function extendInputs(inputs) {
105
+ const accessor = inject(BsOtpInputValueAccessor, { self: true });
106
+ const validity = inject(BsControlValidityDirective, { self: true });
107
+ return computed(() => {
108
+ const value = inputs();
109
+ return {
110
+ ...value,
111
+ value: accessor.bound() ? accessor.viewValue() : value.value,
112
+ disabled: value.disabled || accessor.disabled(),
113
+ invalid: value.invalid || validity.invalid(),
114
+ required: value.required || validity.required(),
115
+ errorText: value.errorText ?? validity.errorText(),
116
+ };
117
+ });
118
+ }
102
119
 
120
+ // GENERATED from the otp-input manifest (otp-input) by @mintplayer/nx-component-compiler. Do not edit.
121
+ /**
122
+ * A segmented one-time-code input (#437): one real `<input>` behind decorative boxes.
123
+ *
124
+ * With JavaScript off it is a plain `.form-control` that takes the code and submits under `name`.
125
+ * `groups` sets the boxes (`[1,1,1,1,1,1]`, or `[5,5,5,5,5]` for a product key). `value` is two-way;
126
+ * `complete` fires when the user fills the last box. An `aria-label` on the component names the input.
127
+ */
103
128
  class BsOtpInputComponent {
129
+ #core;
104
130
  constructor() {
131
+ /** The host element. */
132
+ this.elementRef = inject(ElementRef);
105
133
  this.groups = input([1, 1, 1, 1, 1, 1], /* @ts-ignore */
106
134
  ...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
107
135
  this.type = input('numeric', /* @ts-ignore */
108
136
  ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
109
- this.case = input('upper', /* @ts-ignore */
110
- ...(ngDevMode ? [{ debugName: "case" }] : /* istanbul ignore next */ []));
137
+ this.letterCase = input('upper', /* @ts-ignore */
138
+ ...(ngDevMode ? [{ debugName: "letterCase" }] : /* istanbul ignore next */ []));
111
139
  this.size = input('md', /* @ts-ignore */
112
140
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
113
- this.disabled = input(false, /* @ts-ignore */
114
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
115
- this.invalid = input(false, /* @ts-ignore */
116
- ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
117
- this.inputLabel = input(null, /* @ts-ignore */
118
- ...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
119
- // `model()` already exposes a `valueChange` output for two-way [(value)]
120
- // binding; declaring it explicitly is an error in Angular 22 (NG1054).
121
- // `value.set()` in onValueChange drives that auto-output.
122
- this.value = model(undefined, /* @ts-ignore */
141
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
142
+ this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
143
+ this.invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
144
+ this.errorText = input(/* @ts-ignore */
145
+ ...(ngDevMode ? [undefined, { debugName: "errorText" }] : /* istanbul ignore next */ []));
146
+ this.name = input(/* @ts-ignore */
147
+ ...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
148
+ this.inputLabel = input(/* @ts-ignore */
149
+ ...(ngDevMode ? [undefined, { debugName: "inputLabel" }] : /* istanbul ignore next */ []));
150
+ this.value = model('', /* @ts-ignore */
123
151
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
152
+ /** Every keystroke, paste and clear: the current, possibly partial, code. */
153
+ this.valuechange = output();
154
+ /** The user filled the last box. */
124
155
  this.complete = output();
125
- // Deliberately NOT viewChild.required: the host's focus() override below can run before
126
- // this view exists (a directive on the host focusing it from its constructor), and a
127
- // required query throws NG0951 there instead of reaching the deferred-focus fallback.
128
- this.elementRef = viewChild('el', /* @ts-ignore */
129
- ...(ngDevMode ? [{ debugName: "elementRef" }] : /* istanbul ignore next */ []));
130
- this.hostRef = inject((ElementRef));
131
- this.invalidAttr = computed(() => (this.invalid() ? '' : null), /* @ts-ignore */
132
- ...(ngDevMode ? [{ debugName: "invalidAttr" }] : /* istanbul ignore next */ []));
133
- // Override the host DOM element's `.focus` so external directives that look
134
- // up the element and call `.focus()` on it (e.g. FocusOnLoadDirective's
135
- // `*[autofocus]`) route into the internal hidden input. Without this, the
136
- // call hits HTMLElement.prototype.focus which is a no-op on a non-focusable
137
- // host. Capture the WC ref lazily because viewChild isn't available in the
138
- // constructor and external directives may call .focus() before our
139
- // ngAfterViewInit runs.
140
- const host = this.hostRef.nativeElement;
141
- Object.defineProperty(host, 'focus', {
142
- value: (options) => {
143
- const wc = this.elementRef()?.nativeElement;
144
- if (wc) {
145
- wc.focus(options);
146
- }
147
- else {
148
- // Defer to a microtask so a focus() call landing before the view is
149
- // ready still hits the WC once it mounts. FocusOnLoadDirective uses
150
- // setTimeout(10) which runs after microtasks, so this path is mostly
151
- // defensive — but it cheaply handles the race.
152
- Promise.resolve().then(() => this.elementRef()?.nativeElement.focus(options));
153
- }
154
- },
155
- configurable: true,
156
- writable: true,
157
- });
158
- // Forward signal inputs that aren't attributes (groups is a number[] —
159
- // attribute serialisation works for it, but property write is the canonical
160
- // path and avoids the "string-from-attribute" parse round-trip).
161
- effect(() => {
162
- const ref = this.elementRef();
163
- if (!ref)
164
- return;
165
- ref.nativeElement.groups = this.groups();
166
- });
167
- // Forward `value` model writes to the WC. Skip undefined so a freshly-set
168
- // form control's writeValue(null) can still clear the field (we map null
169
- // to '' inside the WC's normaliseValue).
170
- effect(() => {
171
- const ref = this.elementRef();
172
- if (!ref)
173
- return;
174
- const v = this.value();
175
- if (v === undefined)
176
- return;
177
- ref.nativeElement.value = v;
178
- });
179
- // Forward the `invalid` boolean to the WC's invalid property (mirrors the
180
- // attribute, but property write is the canonical path for a boolean).
181
- effect(() => {
182
- const ref = this.elementRef();
183
- if (!ref)
184
- return;
185
- ref.nativeElement.invalid = this.invalid();
186
- });
187
- // Forward `disabled` via attribute. This used to be `[attr.disabled]` in the
188
- // template, but that creates a race with the CVA's `setDisabledState`:
189
- // both write to the same DOM attribute, and any signal change in the
190
- // wrapper re-fires the template binding which clobbers the CVA's
191
- // form-disabled state. Using an effect makes the write fire only when the
192
- // `disabled` signal actually changes; the CVA's imperative writes are
193
- // unaffected because Angular doesn't reconcile attribute bindings in the
194
- // template anymore for this attr.
195
- effect(() => {
196
- const ref = this.elementRef();
197
- if (!ref)
198
- return;
199
- if (this.disabled()) {
200
- ref.nativeElement.setAttribute('disabled', '');
201
- }
202
- else {
203
- ref.nativeElement.removeAttribute('disabled');
204
- }
205
- });
206
- }
207
- onValueChange(event) {
208
- const detail = event.detail ?? '';
209
- this.value.set(detail);
156
+ this.#core = useCore(otpInputCore, { inputs: extendInputs(() => ({ groups: this.groups(), type: this.type(), letterCase: this.letterCase(), size: this.size(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), name: this.name(), inputLabel: this.inputLabel(), value: this.value() })), idPrefix: 'bs-otp-input', outputs: { valueChange: this.valuechange, complete: this.complete }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'otp-input' }), models: { value: this.value } });
157
+ /** The template's props. */
158
+ this.props = this.#core.props;
159
+ useScopedStyles('otp-input', otpInputScopedStyles);
210
160
  }
211
- onCompleteEvent(event) {
212
- // The WC's `complete` DOM event bubbles. The wrapper's Output is also
213
- // named `complete`. Without stopPropagation, the parent's `(complete)`
214
- // binding would catch BOTH the bubbled DOM event AND the Output emit
215
- // below — Angular's `(name)` binding on a child component listens to
216
- // both channels when their names collide.
217
- event.stopPropagation();
218
- const detail = event.detail ?? '';
219
- this.complete.emit(detail);
161
+ /** Empties the code, and reports it. */
162
+ clear(...args) {
163
+ return this.#core.call('clear', args);
220
164
  }
221
- /** Move focus into the hidden input. */
222
- focus(options) {
223
- this.elementRef()?.nativeElement.focus(options);
224
- }
225
- /** Reset the value to empty string. */
226
- clear() {
227
- this.elementRef()?.nativeElement.clear();
165
+ /** Moves focus into the input. */
166
+ focusInput(...args) {
167
+ return this.#core.call('focusInput', args);
228
168
  }
229
169
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
230
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsOtpInputComponent, isStandalone: true, selector: "bs-otp-input", inputs: { groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, case: { classPropertyName: "case", publicName: "case", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", complete: "complete" }, host: { properties: { "attr.size": "size()" } }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["el"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsOtpInputValueAccessor }], ngImport: i0, template: `
231
- <mp-otp-input
232
- #el
233
- class="bs-otp-input"
234
- [attr.type]="type()"
235
- [attr.case]="case()"
236
- [attr.size]="size()"
237
- [attr.invalid]="invalidAttr()"
238
- [attr.input-label]="inputLabel()"
239
- (value-change)="onValueChange($event)"
240
- (complete)="onCompleteEvent($event)"
241
- ></mp-otp-input>
242
- `, isInline: true, styles: [":host{display:inline-block}.bs-otp-input{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
170
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsOtpInputComponent, isStandalone: true, selector: "bs-otp-input", inputs: { groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, letterCase: { classPropertyName: "letterCase", publicName: "letterCase", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valuechange: "valuechange", complete: "complete" }, hostDirectives: [{ directive: BsOtpInputValueAccessor }, { directive: BsOtpInputFocusDirective }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/otp-input/src/templates/otp-input.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"otp-input\" [mpProps]=\"p_view.container\">\n <input data-mps=\"otp-input\" [mpProps]=\"p_view.input\">\n @for (box of p_view.boxes; track box.key) {\n <span data-mps=\"otp-input\" [mpProps]=\"box.bag\">\n <span data-mps=\"otp-input\" [mpProps]=\"p_view.spacer\">\n {{ box.spacer }}\n </span>\n <span data-mps=\"otp-input\" [mpProps]=\"p_view.content\">\n {{ box.content }}\n </span>\n </span>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"otp-input\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
243
171
  }
244
172
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOtpInputComponent, decorators: [{
245
173
  type: Component,
246
- args: [{ selector: 'bs-otp-input', template: `
247
- <mp-otp-input
248
- #el
249
- class="bs-otp-input"
250
- [attr.type]="type()"
251
- [attr.case]="case()"
252
- [attr.size]="size()"
253
- [attr.invalid]="invalidAttr()"
254
- [attr.input-label]="inputLabel()"
255
- (value-change)="onValueChange($event)"
256
- (complete)="onCompleteEvent($event)"
257
- ></mp-otp-input>
258
- `, host: {
259
- '[attr.size]': 'size()',
260
- }, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [BsOtpInputValueAccessor], styles: [":host{display:inline-block}.bs-otp-input{display:inline-flex}\n"] }]
261
- }], ctorParameters: () => [], propDecorators: { groups: [{ type: i0.Input, args: [{ isSignal: true, alias: "groups", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], case: [{ type: i0.Input, args: [{ isSignal: true, alias: "case", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], complete: [{ type: i0.Output, args: ["complete"] }], elementRef: [{ type: i0.ViewChild, args: ['el', { isSignal: true }] }] } });
174
+ args: [{ selector: 'bs-otp-input', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/otp-input/src/templates/otp-input.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"otp-input\" [mpProps]=\"p_view.container\">\n <input data-mps=\"otp-input\" [mpProps]=\"p_view.input\">\n @for (box of p_view.boxes; track box.key) {\n <span data-mps=\"otp-input\" [mpProps]=\"box.bag\">\n <span data-mps=\"otp-input\" [mpProps]=\"p_view.spacer\">\n {{ box.spacer }}\n </span>\n <span data-mps=\"otp-input\" [mpProps]=\"p_view.content\">\n {{ box.content }}\n </span>\n </span>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"otp-input\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n" }]
175
+ }], ctorParameters: () => [], propDecorators: { groups: [{ type: i0.Input, args: [{ isSignal: true, alias: "groups", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], letterCase: [{ type: i0.Input, args: [{ isSignal: true, alias: "letterCase", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], valuechange: [{ type: i0.Output, args: ["valuechange"] }], complete: [{ type: i0.Output, args: ["complete"] }] } });
176
+
177
+ // GENERATED from the otp-input manifest by @mintplayer/nx-component-compiler. Do not edit.
262
178
 
263
179
  /**
264
180
  * Generated bundle index. Do not edit.
265
181
  */
266
182
 
267
- export { BsOtpInputComponent, BsOtpInputValueAccessor };
183
+ export { BsOtpInputComponent, BsOtpInputFocusDirective, BsOtpInputValueAccessor };
268
184
  //# sourceMappingURL=mintplayer-ng-bootstrap-otp-input.mjs.map