@mintplayer/ng-bootstrap 22.28.0 → 22.30.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 +157 -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 +283 -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 +222 -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 +124 -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-theming.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/theming/src/lib/service/bs-theme.service.ts","../../../../libs/mintplayer-ng-bootstrap/theming/src/lib/provide-bs-theme.ts","../../../../libs/mintplayer-ng-bootstrap/theming/src/lib/theme-toggle/theme-toggle.component.ts","../../../../libs/mintplayer-ng-bootstrap/theming/src/lib/theme-toggle/theme-toggle.component.html","../../../../libs/mintplayer-ng-bootstrap/theming/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/theming/mintplayer-ng-bootstrap-theming.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser, isPlatformServer } from '@angular/common';\nimport {\n DestroyRef,\n inject,\n Injectable,\n PLATFORM_ID,\n REQUEST,\n signal,\n type Signal,\n} from '@angular/core';\nimport {\n getBsThemeStore,\n readDefaultModeMeta,\n resolveServerTheme,\n type BsEffectiveThemeMode,\n type BsThemeMode,\n} from '@mintplayer/web-components/theming';\n\n/**\n * Angular's view of the document's Bootstrap colour mode (PRD dark-mode D4).\n *\n * - `mode` is the *authored* value (`'auto' | 'light' | 'dark' | custom`).\n * - `effectiveMode` is the value on `<html data-bs-theme>`: `'auto'` resolved\n * against `prefers-color-scheme`, everything else passed through.\n * - `setMode()` changes it. Both signals are read-only views.\n *\n * **This service is a pure mirror of the framework-neutral store.** In the\n * browser it holds no state of its own: `mode`/`effectiveMode` are refreshed\n * from `getBsThemeStore().subscribe()`, and `setMode()` forwards to the store's\n * `setMode()` (libs/mintplayer-web-components/theming/src/store.ts), which owns\n * validation, the `bs-theme-mode` cookie, the `data-bs-theme` write, the\n * `prefers-color-scheme` listener and cross-tab sync. So a change made anywhere\n * else (`<mp-theme-toggle>`, another tab, the OS) reaches these signals, and a\n * copy here could never drift. Any behaviour added to the store's `setMode()`\n * must be reflected here, and vice versa; the mirror tests in\n * bs-theme.service.spec.ts pin it.\n *\n * **Server:** Angular SSR creates a root injector per request, which is the one\n * thing the store cannot do (it is a document singleton and never exists on a\n * server). The service resolves the request's `bs-theme-mode` cookie against the\n * page's `<meta name=\"bs-theme-default-mode\">` with `resolveServerTheme()`,\n * seeds the signals and, for an explicit mode, writes `data-bs-theme` on the\n * server `<html>` synchronously in the constructor, so the first byte of HTML is\n * already themed. Hydration never touches `<html>`, and the browser branch never\n * writes anything itself, so the server's attribute survives client boot.\n * `REQUEST` is `null` during prerender and route extraction: that is treated as\n * \"no cookie\", and the pre-boot script themes those pages on the client.\n *\n * Usage:\n * ```ts\n * const theme = inject(BsThemeService);\n * theme.setMode('dark'); // explicit\n * theme.setMode('auto'); // follow the OS\n * theme.setMode('sepia'); // custom variant: ship a matching [data-bs-theme=sepia] block\n * theme.mode(); // 'sepia'\n * theme.effectiveMode(); // 'sepia' (auto would resolve to 'light' | 'dark')\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class BsThemeService {\n private readonly platformId = inject(PLATFORM_ID);\n\n private readonly _mode = signal<BsThemeMode>('auto');\n private readonly _effectiveMode = signal<BsEffectiveThemeMode>('light');\n\n /** The mode the user picked. Use `setMode()` to change it. */\n readonly mode: Signal<BsThemeMode> = this._mode.asReadonly();\n\n /** The mode applied to `<html data-bs-theme>`. */\n readonly effectiveMode: Signal<BsEffectiveThemeMode> = this._effectiveMode.asReadonly();\n\n constructor() {\n // REQUEST, DOCUMENT and DestroyRef are injected INSIDE the platform checks,\n // never at field level: pulling them for every platform meant the SSR\n // injector resolved tokens whose destroy-time callbacks fire during\n // ApplicationRef teardown and surface as NG0953 (\"Unexpected emit for\n // destroyed OutputRef\") on the dev server.\n if (isPlatformServer(this.platformId)) {\n const request = inject(REQUEST);\n const document = inject(DOCUMENT);\n const resolved = resolveServerTheme(request?.headers.get('cookie') ?? null, {\n defaultMode: readDefaultModeMeta(document),\n });\n if (resolved !== null) {\n this._mode.set(resolved);\n this._effectiveMode.set(resolved);\n // resolveServerTheme only returns values that pass isValidThemeMode.\n document.documentElement.setAttribute('data-bs-theme', resolved);\n }\n return;\n }\n\n if (isPlatformBrowser(this.platformId)) {\n const destroyRef = inject(DestroyRef);\n const store = getBsThemeStore();\n const sync = () => {\n this._mode.set(store.getMode());\n this._effectiveMode.set(store.effectiveMode());\n };\n sync();\n destroyRef.onDestroy(store.subscribe(sync));\n }\n }\n\n /**\n * Set the user's mode. Forwards to the store's `setMode()`\n * (libs/mintplayer-web-components/theming/src/store.ts): an invalid mode is a\n * no-op with a warning, a valid one is persisted to the cookie and applied to\n * `<html>`, and the signals update through the store subscription. Custom\n * variants need a matching `[data-bs-theme=\"<value>\"] { ... }` rule.\n * A no-op on the server, where a mode comes only from the request cookie.\n */\n setMode(mode: BsThemeMode): void {\n if (!isPlatformBrowser(this.platformId)) return;\n getBsThemeStore().setMode(mode);\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n inject,\n makeEnvironmentProviders,\n PLATFORM_ID,\n provideEnvironmentInitializer,\n type EnvironmentProviders,\n} from '@angular/core';\nimport { configureBsTheme, type BsThemeConfig } from '@mintplayer/web-components/theming';\nimport { BsThemeService } from './service/bs-theme.service';\n\n/**\n * Configure the document's theme store (PRD dark-mode D4). The only option is\n * `cookieDomain`, passed through verbatim as the `bs-theme-mode` cookie's\n * `Domain=`, so a theme picked on `www.example.com` also applies on\n * `app.example.com`. The store is configured in the browser only; on a server\n * there is no store to configure.\n *\n * It also constructs `BsThemeService` eagerly on every platform. That is what\n * makes SSR render `<html data-bs-theme>` from the request cookie: the service\n * does that in its constructor, and nothing else is guaranteed to inject it\n * (`<bs-theme-toggle>` talks to the store directly).\n *\n * `defaultMode` is deliberately not an option. It is declared once, in the HTML\n * (`<meta name=\"bs-theme-default-mode\" content=\"dark\">`), because the pre-boot\n * script has to read it before Angular loads.\n *\n * ```ts\n * bootstrapApplication(App, {\n * providers: [provideBsTheme({ cookieDomain: '.example.com' })],\n * });\n * ```\n */\nexport function provideBsTheme(config: BsThemeConfig = {}): EnvironmentProviders {\n return makeEnvironmentProviders([\n provideEnvironmentInitializer(() => {\n if (isPlatformBrowser(inject(PLATFORM_ID))) configureBsTheme(config);\n inject(BsThemeService);\n }),\n ]);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n inject,\n input,\n viewChild,\n} from '@angular/core';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport {\n BS_THEME_DEFAULT_MODES,\n MpThemeToggle,\n type BsThemeToggleMode,\n} from '@mintplayer/web-components/theming';\nimport { BsThemeService } from '../service/bs-theme.service';\n\n// Load-bearing: referencing the class keeps the module (and its\n// customElements.define) from being tree-shaken out of the bundle.\nvoid MpThemeToggle;\n\n/**\n * Angular wrapper around `<mp-theme-toggle>` (PRD dark-mode D7): a button that\n * cycles the document's colour mode. The element talks to the theme store\n * directly, so `BsThemeService` signals follow every click with no wiring here.\n *\n * `modes` is the cycle, in order (default `BS_THEME_DEFAULT_MODES`). Localize it\n * by mapping over the default and overriding `label` / `announcement`.\n *\n * A consumer's `aria-*`, `role`, `id` and `tabindex` on `<bs-theme-toggle>`\n * reach the `<mp-theme-toggle>` element through `bsForwardAria`.\n *\n * no-JS: none (control requires script).\n */\n@Component({\n selector: 'bs-theme-toggle',\n templateUrl: './theme-toggle.component.html',\n styles: `:host { display: inline-block; }`,\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsThemeToggleComponent {\n readonly modes = input<readonly BsThemeToggleMode[]>(BS_THEME_DEFAULT_MODES);\n\n private readonly toggleRef = viewChild.required<ElementRef<MpThemeToggle>>('toggle');\n\n constructor() {\n // Construct the service even though the element never calls it: on the\n // server its constructor is what renders <html data-bs-theme> from the\n // request cookie, so an app that only renders a toggle still gets SSR.\n inject(BsThemeService);\n effect(() => {\n this.toggleRef().nativeElement.modes = this.modes();\n });\n }\n}\n","<mp-theme-toggle bsForwardAria #toggle></mp-theme-toggle>\n","// The framework-neutral core, re-exported BY NAME so Angular consumers need one\n// import without inheriting store internals. Deliberately not re-exported:\n// getBsThemeStore / configureBsTheme (browser-only; use BsThemeService and\n// provideBsTheme, which are SSR-safe), writeThemeCookie (the store owns writes),\n// MpThemeToggle (use <bs-theme-toggle>) and __resetBsThemeStoreForTests.\nexport {\n BS_THEME_COOKIE_NAME,\n BS_THEME_DEFAULT_MODE_META,\n BS_THEME_DEFAULT_MODES,\n injectThemeAttribute,\n isValidThemeMode,\n readDefaultModeMeta,\n readThemeCookie,\n resolveMode,\n resolveServerTheme,\n} from '@mintplayer/web-components/theming';\nexport type {\n BsEffectiveThemeMode,\n BsThemeConfig,\n BsThemeMode,\n BsThemeToggleMode,\n ResolveServerThemeOptions,\n} from '@mintplayer/web-components/theming';\nexport * from './lib/service/bs-theme.service';\nexport * from './lib/provide-bs-theme';\nexport * from './lib/theme-toggle/theme-toggle.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCG;MAEU,cAAc,CAAA;AAYzB,IAAA,WAAA,GAAA;AAXiB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;QAEhC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAc,MAAM;kFAAC;QACnC,IAAA,CAAA,cAAc,GAAG,MAAM,CAAuB,OAAO;2FAAC;;AAG9D,QAAA,IAAA,CAAA,IAAI,GAAwB,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE;;AAGnD,QAAA,IAAA,CAAA,aAAa,GAAiC,IAAI,CAAC,cAAc,CAAC,UA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-bootstrap/theming/src/lib/provide-bs-theme.ts","../../../../libs/mintplayer-ng-bootstrap/theming/src/theme-toggle.angular.ts","../../../../libs/mintplayer-ng-bootstrap/theming/src/generated/theme-toggle.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/theming/src/generated/theme-toggle.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/theming/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/theming/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/theming/mintplayer-ng-bootstrap-theming.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser, isPlatformServer } from '@angular/common';\nimport {\n DestroyRef,\n inject,\n Injectable,\n PLATFORM_ID,\n REQUEST,\n signal,\n type Signal,\n} from '@angular/core';\nimport {\n getBsThemeStore,\n readDefaultModeMeta,\n resolveServerTheme,\n type BsEffectiveThemeMode,\n type BsThemeMode,\n} from '@mintplayer/ui-core/theming';\n\n/**\n * Angular's view of the document's Bootstrap colour mode (PRD dark-mode D4).\n *\n * - `mode` is the *authored* value (`'auto' | 'light' | 'dark' | custom`).\n * - `effectiveMode` is the value on `<html data-bs-theme>`: `'auto'` resolved\n * against `prefers-color-scheme`, everything else passed through.\n * - `setMode()` changes it. Both signals are read-only views.\n *\n * **This service is a pure mirror of the framework-neutral store.** In the\n * browser it holds no state of its own: `mode`/`effectiveMode` are refreshed\n * from `getBsThemeStore().subscribe()`, and `setMode()` forwards to the store's\n * `setMode()` (libs/mintplayer-ui-core/theming/src/store.ts), which owns\n * validation, the `bs-theme-mode` cookie, the `data-bs-theme` write, the\n * `prefers-color-scheme` listener and cross-tab sync. So a change made anywhere\n * else (`<bs-theme-toggle>`, another tab, the OS) reaches these signals, and a\n * copy here could never drift. Any behaviour added to the store's `setMode()`\n * must be reflected here, and vice versa; the mirror tests in\n * bs-theme.service.spec.ts pin it.\n *\n * **Server:** Angular SSR creates a root injector per request, which is the one\n * thing the store cannot do (it is a document singleton and never exists on a\n * server). The service resolves the request's `bs-theme-mode` cookie against the\n * page's `<meta name=\"bs-theme-default-mode\">` with `resolveServerTheme()`,\n * seeds the signals and, for an explicit mode, writes `data-bs-theme` on the\n * server `<html>` synchronously in the constructor, so the first byte of HTML is\n * already themed. Hydration never touches `<html>`, and the browser branch never\n * writes anything itself, so the server's attribute survives client boot.\n * `REQUEST` is `null` during prerender and route extraction: that is treated as\n * \"no cookie\", and the pre-boot script themes those pages on the client.\n *\n * Usage:\n * ```ts\n * const theme = inject(BsThemeService);\n * theme.setMode('dark'); // explicit\n * theme.setMode('auto'); // follow the OS\n * theme.setMode('sepia'); // custom variant: ship a matching [data-bs-theme=sepia] block\n * theme.mode(); // 'sepia'\n * theme.effectiveMode(); // 'sepia' (auto would resolve to 'light' | 'dark')\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class BsThemeService {\n private readonly platformId = inject(PLATFORM_ID);\n\n private readonly _mode = signal<BsThemeMode>('auto');\n private readonly _effectiveMode = signal<BsEffectiveThemeMode>('light');\n\n /** The mode the user picked. Use `setMode()` to change it. */\n readonly mode: Signal<BsThemeMode> = this._mode.asReadonly();\n\n /** The mode applied to `<html data-bs-theme>`. */\n readonly effectiveMode: Signal<BsEffectiveThemeMode> = this._effectiveMode.asReadonly();\n\n constructor() {\n // REQUEST, DOCUMENT and DestroyRef are injected INSIDE the platform checks,\n // never at field level: pulling them for every platform meant the SSR\n // injector resolved tokens whose destroy-time callbacks fire during\n // ApplicationRef teardown and surface as NG0953 (\"Unexpected emit for\n // destroyed OutputRef\") on the dev server.\n if (isPlatformServer(this.platformId)) {\n const request = inject(REQUEST);\n const document = inject(DOCUMENT);\n const resolved = resolveServerTheme(request?.headers.get('cookie') ?? null, {\n defaultMode: readDefaultModeMeta(document),\n });\n if (resolved !== null) {\n this._mode.set(resolved);\n this._effectiveMode.set(resolved);\n // resolveServerTheme only returns values that pass isValidThemeMode.\n document.documentElement.setAttribute('data-bs-theme', resolved);\n }\n return;\n }\n\n if (isPlatformBrowser(this.platformId)) {\n const destroyRef = inject(DestroyRef);\n const store = getBsThemeStore();\n const sync = () => {\n this._mode.set(store.getMode());\n this._effectiveMode.set(store.effectiveMode());\n };\n sync();\n destroyRef.onDestroy(store.subscribe(sync));\n }\n }\n\n /**\n * Set the user's mode. Forwards to the store's `setMode()`\n * (libs/mintplayer-ui-core/theming/src/store.ts): an invalid mode is a\n * no-op with a warning, a valid one is persisted to the cookie and applied to\n * `<html>`, and the signals update through the store subscription. Custom\n * variants need a matching `[data-bs-theme=\"<value>\"] { ... }` rule.\n * A no-op on the server, where a mode comes only from the request cookie.\n */\n setMode(mode: BsThemeMode): void {\n if (!isPlatformBrowser(this.platformId)) return;\n getBsThemeStore().setMode(mode);\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n inject,\n makeEnvironmentProviders,\n PLATFORM_ID,\n provideEnvironmentInitializer,\n type EnvironmentProviders,\n} from '@angular/core';\nimport { configureBsTheme, type BsThemeConfig } from '@mintplayer/ui-core/theming';\nimport { BsThemeService } from './service/bs-theme.service';\n\n/**\n * Configure the document's theme store (PRD dark-mode D4). The only option is\n * `cookieDomain`, passed through verbatim as the `bs-theme-mode` cookie's\n * `Domain=`, so a theme picked on `www.example.com` also applies on\n * `app.example.com`. The store is configured in the browser only; on a server\n * there is no store to configure.\n *\n * It also constructs `BsThemeService` eagerly on every platform. That is what\n * makes SSR render `<html data-bs-theme>` from the request cookie: the service\n * does that in its constructor, and nothing else is guaranteed to inject it\n * (`<bs-theme-toggle>` talks to the store directly).\n *\n * `defaultMode` is deliberately not an option. It is declared once, in the HTML\n * (`<meta name=\"bs-theme-default-mode\" content=\"dark\">`), because the pre-boot\n * script has to read it before Angular loads.\n *\n * ```ts\n * bootstrapApplication(App, {\n * providers: [provideBsTheme({ cookieDomain: '.example.com' })],\n * });\n * ```\n */\nexport function provideBsTheme(config: BsThemeConfig = {}): EnvironmentProviders {\n return makeEnvironmentProviders([\n provideEnvironmentInitializer(() => {\n if (isPlatformBrowser(inject(PLATFORM_ID))) configureBsTheme(config);\n inject(BsThemeService);\n }),\n ]);\n}\n","import { inject } from '@angular/core';\nimport type { ThemeToggleInputs } from '@mintplayer/ui-core/theming';\nimport { BsThemeService } from './lib/service/bs-theme.service';\n\n/*\n * The Angular extension of the generated `bs-theme-toggle` (PRD #437 D10\n * escape hatch). It changes no input: it constructs `BsThemeService`, which the\n * toggle never calls. On the server that constructor is what renders\n * `<html data-bs-theme>` from the request cookie, so an app that renders only a\n * toggle still gets the theme in its SSR output.\n */\nexport function extendInputs(inputs: () => ThemeToggleInputs): () => ThemeToggleInputs {\n inject(BsThemeService);\n return inputs;\n}\n","// GENERATED from the theming manifest (theme-toggle) 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 { themeToggleCore, type ThemeToggleInputs, themeToggleScopedStyles } from '@mintplayer/ui-core/theming';\nimport { extendInputs as ext_extendInputs } from '../theme-toggle.angular';\n\n/**\n * A button that cycles the document colour mode through `modes` (dark-mode D7, #437).\n *\n * Its name is the next mode (the action), its description the current one. The mode lives in the\n * theme store, so a framework service or another tab re-renders it. A toggle cannot work without\n * JavaScript, so the button is disabled until it hydrates.\n */\n@Component({\n selector: 'bs-theme-toggle',\n templateUrl: './theme-toggle.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsThemeToggleComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly modes = input<ThemeToggleInputs['modes']>(null);\n\n readonly #core = useCore(themeToggleCore, { inputs: ext_extendInputs(() => ({ modes: this.modes() })), idPrefix: 'bs-theme-toggle', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'theme-toggle' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('theme-toggle', themeToggleScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/theming/src/templates/theme-toggle.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"theme-toggle\" [mpProps]=\"p_view.button\">\n <svg data-mps=\"theme-toggle\" [mpProps]=\"p_view.icon\">\n <path data-mps=\"theme-toggle\" [mpProps]=\"p_view.path\"></path>\n </svg>\n</button>\n<span data-mps=\"theme-toggle\" [mpProps]=\"p_view.description\">\n {{ p_view.descriptionText }}\n</span>\n<span data-mps=\"theme-toggle\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</span>\n","// GENERATED from the theming manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsThemeToggleComponent } from './theme-toggle.component.generated';\n","// The framework-neutral core, re-exported BY NAME so Angular consumers need one\n// import without inheriting store internals. Deliberately not re-exported:\n// getBsThemeStore / configureBsTheme (browser-only; use BsThemeService and\n// provideBsTheme, which are SSR-safe), writeThemeCookie (the store owns writes),\n// and __resetBsThemeStoreForTests.\nexport {\n BS_THEME_COOKIE_NAME,\n BS_THEME_DEFAULT_MODE_META,\n BS_THEME_DEFAULT_MODES,\n injectThemeAttribute,\n isValidThemeMode,\n readDefaultModeMeta,\n readThemeCookie,\n resolveMode,\n resolveServerTheme,\n} from '@mintplayer/ui-core/theming';\nexport type {\n BsEffectiveThemeMode,\n BsThemeConfig,\n BsThemeMode,\n BsThemeToggleMode,\n ResolveServerThemeOptions,\n} from '@mintplayer/ui-core/theming';\nexport * from './lib/service/bs-theme.service';\nexport * from './lib/provide-bs-theme';\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs"],"mappings":";;;;;;;AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCG;MAEU,cAAc,CAAA;AAYzB,IAAA,WAAA,GAAA;AAXiB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;QAEhC,IAAA,CAA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iBAAiB,WAElB,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,klBAAA,EAAA;;;AEjBjD;;ACAA;AACA;AACA;AACA;AACA;;ACJA;;AAEG;;;;"}
@@ -1,16 +1,17 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, TemplateRef, Directive, input, booleanAttribute, model, output, viewChild, contentChild, computed, effect, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
2
+ import { inject, TemplateRef, Directive, ElementRef, input, booleanAttribute, model, output, contentChild, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
- import { resolveSides } from '@mintplayer/web-components/timeline';
5
- import { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';
6
- export { resolveSides } from '@mintplayer/web-components/timeline-core';
4
+ import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
5
+ import { timelineCore, timelineScopedStyles, timelineItemCore } from '@mintplayer/ui-core/timeline';
6
+ export { resolveSides } from '@mintplayer/ui-core/timeline';
7
7
 
8
- /** Custom bullet / marker template. */
8
+ // GENERATED from the timeline manifest (timeline) by @mintplayer/nx-component-compiler. Do not edit.
9
+ /** The `marker` slot of `<bs-timeline>`: `<ng-template bsTimelineMarker>` or `*bsTimelineMarker`. */
9
10
  class BsTimelineMarkerDirective {
10
11
  constructor() {
11
12
  this.templateRef = inject(TemplateRef);
12
13
  }
13
- static ngTemplateContextGuard(_d, ctx) {
14
+ static ngTemplateContextGuard(_dir, ctx) {
14
15
  return true;
15
16
  }
16
17
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineMarkerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
@@ -20,27 +21,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
20
21
  type: Directive,
21
22
  args: [{ selector: '[bsTimelineMarker]' }]
22
23
  }] });
23
- /** Custom title template. */
24
- class BsTimelineTitleDirective {
24
+ /** The `heading` slot of `<bs-timeline>`: `<ng-template bsTimelineHeading>` or `*bsTimelineHeading`. */
25
+ class BsTimelineHeadingDirective {
25
26
  constructor() {
26
27
  this.templateRef = inject(TemplateRef);
27
28
  }
28
- static ngTemplateContextGuard(_d, ctx) {
29
+ static ngTemplateContextGuard(_dir, ctx) {
29
30
  return true;
30
31
  }
31
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
32
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineTitleDirective, isStandalone: true, selector: "[bsTimelineTitle]", ngImport: i0 }); }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineHeadingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
33
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineHeadingDirective, isStandalone: true, selector: "[bsTimelineHeading]", ngImport: i0 }); }
33
34
  }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineTitleDirective, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineHeadingDirective, decorators: [{
35
36
  type: Directive,
36
- args: [{ selector: '[bsTimelineTitle]' }]
37
+ args: [{ selector: '[bsTimelineHeading]' }]
37
38
  }] });
38
- /** Custom timestamp template (rendered in the opposite region). */
39
+ /** The `timestamp` slot of `<bs-timeline>`: `<ng-template bsTimelineTimestamp>` or `*bsTimelineTimestamp`. */
39
40
  class BsTimelineTimestampDirective {
40
41
  constructor() {
41
42
  this.templateRef = inject(TemplateRef);
42
43
  }
43
- static ngTemplateContextGuard(_d, ctx) {
44
+ static ngTemplateContextGuard(_dir, ctx) {
44
45
  return true;
45
46
  }
46
47
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineTimestampDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
@@ -50,42 +51,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
50
51
  type: Directive,
51
52
  args: [{ selector: '[bsTimelineTimestamp]' }]
52
53
  }] });
53
- /** Custom content / body template. */
54
- class BsTimelineContentDirective {
54
+ /** The `opposite` slot of `<bs-timeline>`: `<ng-template bsTimelineOpposite>` or `*bsTimelineOpposite`. */
55
+ class BsTimelineOppositeDirective {
55
56
  constructor() {
56
57
  this.templateRef = inject(TemplateRef);
57
58
  }
58
- static ngTemplateContextGuard(_d, ctx) {
59
+ static ngTemplateContextGuard(_dir, ctx) {
59
60
  return true;
60
61
  }
61
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
62
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineContentDirective, isStandalone: true, selector: "[bsTimelineContent]", ngImport: i0 }); }
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineOppositeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
63
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineOppositeDirective, isStandalone: true, selector: "[bsTimelineOpposite]", ngImport: i0 }); }
63
64
  }
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineContentDirective, decorators: [{
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineOppositeDirective, decorators: [{
65
66
  type: Directive,
66
- args: [{ selector: '[bsTimelineContent]' }]
67
+ args: [{ selector: '[bsTimelineOpposite]' }]
67
68
  }] });
68
- /** Custom opposite-region template. */
69
- class BsTimelineOppositeDirective {
69
+ /** The `content` slot of `<bs-timeline>`: `<ng-template bsTimelineContent>` or `*bsTimelineContent`. */
70
+ class BsTimelineContentDirective {
70
71
  constructor() {
71
72
  this.templateRef = inject(TemplateRef);
72
73
  }
73
- static ngTemplateContextGuard(_d, ctx) {
74
+ static ngTemplateContextGuard(_dir, ctx) {
74
75
  return true;
75
76
  }
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineOppositeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
77
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineOppositeDirective, isStandalone: true, selector: "[bsTimelineOpposite]", ngImport: i0 }); }
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
78
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineContentDirective, isStandalone: true, selector: "[bsTimelineContent]", ngImport: i0 }); }
78
79
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineOppositeDirective, decorators: [{
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineContentDirective, decorators: [{
80
81
  type: Directive,
81
- args: [{ selector: '[bsTimelineOpposite]' }]
82
+ args: [{ selector: '[bsTimelineContent]' }]
82
83
  }] });
83
- /** Custom connector template. */
84
+ /** The `connector` slot of `<bs-timeline>`: `<ng-template bsTimelineConnector>` or `*bsTimelineConnector`. */
84
85
  class BsTimelineConnectorDirective {
85
86
  constructor() {
86
87
  this.templateRef = inject(TemplateRef);
87
88
  }
88
- static ngTemplateContextGuard(_d, ctx) {
89
+ static ngTemplateContextGuard(_dir, ctx) {
89
90
  return true;
90
91
  }
91
92
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineConnectorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
@@ -95,142 +96,171 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
95
96
  type: Directive,
96
97
  args: [{ selector: '[bsTimelineConnector]' }]
97
98
  }] });
98
-
99
99
  /**
100
- * `<bs-timeline>` — Angular wrapper around `<mp-timeline>`.
100
+ * A sequence of events along a connecting line, vertical or horizontal (#437).
101
101
  *
102
- * Data-driven: bind `[items]` and supply any of the `*bsTimeline*` template
103
- * directives; the wrapper lowers each into a `<mp-timeline-item>` child with the
104
- * template projected into the matching slot. Declarative: drop
105
- * `<mp-timeline-item>` elements directly inside `<bs-timeline>` (no items).
102
+ * Give it `items`, and restyle each region of a row through the `marker`, `heading`,
103
+ * `timestamp`, `opposite`, `content` and `connector` slots; or put timeline items inside.
104
+ * Layout is CSS, so the server render is already laid out. `selectable` makes it a listbox
105
+ * with a roving tab stop (`selectedIds` is two-way); `activatable` makes click-only rows
106
+ * keyboard-reachable buttons. An `aria-label` names it.
106
107
  */
107
108
  class BsTimelineComponent {
109
+ #core;
108
110
  constructor() {
109
- this.items = input([], /* @ts-ignore */
110
- ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
111
+ /** The host element. */
112
+ this.elementRef = inject(ElementRef);
113
+ this.items = input(/* @ts-ignore */
114
+ ...(ngDevMode ? [undefined, { debugName: "items" }] : /* istanbul ignore next */ []));
111
115
  this.orientation = input('vertical', /* @ts-ignore */
112
116
  ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
113
117
  this.align = input('start', /* @ts-ignore */
114
118
  ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
115
- this.reverse = input(false, /* @ts-ignore */
116
- ...(ngDevMode ? [{ debugName: "reverse" }] : /* istanbul ignore next */ []));
119
+ this.reverse = input(false, { ...(ngDevMode ? { debugName: "reverse" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
117
120
  this.selectable = input('none', /* @ts-ignore */
118
121
  ...(ngDevMode ? [{ debugName: "selectable" }] : /* istanbul ignore next */ []));
119
- /**
120
- * Make the rows keyboard-operable without selection: they become buttons
121
- * with a roving tab stop, and Enter/Space emit `(itemClick)`. Set this when
122
- * `(itemClick)` is used without `selectable`, or the click is pointer-only.
123
- */
124
122
  this.activatable = input(false, { ...(ngDevMode ? { debugName: "activatable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
125
- /** Two-way bound array of selected items (identity via `id`). */
126
- this.selection = model([], /* @ts-ignore */
127
- ...(ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []));
128
- /** Emitted when a non-disabled item is activated. */
129
- this.itemClick = output();
130
- this.timelineRef = viewChild('timeline', /* @ts-ignore */
131
- ...(ngDevMode ? [{ debugName: "timelineRef" }] : /* istanbul ignore next */ []));
132
- this.markerTpl = contentChild(BsTimelineMarkerDirective, /* @ts-ignore */
133
- ...(ngDevMode ? [{ debugName: "markerTpl" }] : /* istanbul ignore next */ []));
134
- this.titleTpl = contentChild(BsTimelineTitleDirective, /* @ts-ignore */
135
- ...(ngDevMode ? [{ debugName: "titleTpl" }] : /* istanbul ignore next */ []));
136
- this.timestampTpl = contentChild(BsTimelineTimestampDirective, /* @ts-ignore */
137
- ...(ngDevMode ? [{ debugName: "timestampTpl" }] : /* istanbul ignore next */ []));
138
- this.contentTpl = contentChild(BsTimelineContentDirective, /* @ts-ignore */
139
- ...(ngDevMode ? [{ debugName: "contentTpl" }] : /* istanbul ignore next */ []));
140
- this.oppositeTpl = contentChild(BsTimelineOppositeDirective, /* @ts-ignore */
141
- ...(ngDevMode ? [{ debugName: "oppositeTpl" }] : /* istanbul ignore next */ []));
142
- this.connectorTpl = contentChild(BsTimelineConnectorDirective, /* @ts-ignore */
143
- ...(ngDevMode ? [{ debugName: "connectorTpl" }] : /* istanbul ignore next */ []));
144
- this.sides = computed(() => resolveSides(this.items().length, this.align(), this.reverse()), /* @ts-ignore */
145
- ...(ngDevMode ? [{ debugName: "sides" }] : /* istanbul ignore next */ []));
146
- /**
147
- * The selection most recently reported BY the element. Writing it back would
148
- * be an echo at best, and at worst lossy: a declarative id-less item has no
149
- * key the wrapper could send.
150
- */
151
- this.selectionFromElement = null;
152
- // Push the selection model into the WC, keyed the way the WC keys it.
153
- effect(() => {
154
- const el = this.timelineRef()?.nativeElement;
155
- const selection = this.selection();
156
- if (!el || selection === this.selectionFromElement)
157
- return;
158
- const items = this.items();
159
- el.selectedIds = selection.flatMap((item) => {
160
- if (item.id != null)
161
- return [String(item.id)];
162
- const index = items.indexOf(item);
163
- return index >= 0 ? [index] : [];
164
- });
165
- });
166
- }
167
- // ----- template helpers --------------------------------------------------
168
- /**
169
- * The key the WC gives an item. The items are lowered to attributes, and an
170
- * attribute is always a string, so a numeric id is keyed as its string form;
171
- * an id-less item is keyed by its position.
172
- */
173
- keyFor(item, index) {
174
- return item.id != null ? String(item.id) : index;
175
- }
176
- idAttr(item) {
177
- return item.id ?? null;
178
- }
179
- timeAttr(item) {
180
- if (item.time == null)
181
- return null;
182
- return item.time instanceof Date ? item.time.toLocaleDateString() : item.time;
183
- }
184
- ctx(item, index) {
185
- const len = this.items().length;
186
- const visualIndex = this.reverse() ? len - 1 - index : index;
187
- return {
188
- $implicit: item,
189
- index,
190
- visualIndex,
191
- isFirst: visualIndex === 0,
192
- isLast: visualIndex === len - 1,
193
- orientation: this.orientation(),
194
- side: this.sides()[index],
195
- };
196
- }
197
- connectorCtx(item, index) {
198
- return {
199
- $implicit: item,
200
- toItem: this.items()[index + 1],
201
- index,
202
- orientation: this.orientation(),
203
- };
204
- }
205
- // ----- WC event handlers -------------------------------------------------
206
- onItemClick(event) {
207
- this.itemClick.emit(event.detail);
208
- }
209
- onSelectionChange(event) {
210
- const items = this.items();
211
- // Declarative mode: surface the attribute-derived models from the event.
212
- const next = items.length
213
- ? this.boundItems(event.currentTarget.selectedIds, items)
214
- : event.detail.selected;
215
- this.selectionFromElement = next;
216
- this.selection.set(next);
217
- }
218
- /** Maps the element's selected keys back onto the consumer's own items. */
219
- boundItems(ids, items) {
220
- const byKey = new Map(items.map((it, i) => [this.keyFor(it, i), it]));
221
- return ids.map((id) => byKey.get(id)).filter((it) => it !== undefined);
123
+ this.selectedIds = model([], /* @ts-ignore */
124
+ ...(ngDevMode ? [{ debugName: "selectedIds" }] : /* istanbul ignore next */ []));
125
+ this.inputLabel = input(null, /* @ts-ignore */
126
+ ...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
127
+ /** An enabled row was clicked, or activated with Enter/Space when only activatable. */
128
+ this.itemclick = output();
129
+ /** The selection changed: the selected, added and removed items. */
130
+ this.selectionchanged = output();
131
+ /** The keys of the selected rows. */
132
+ this.selectedidschange = output();
133
+ this.markerSlot = contentChild(BsTimelineMarkerDirective, /* @ts-ignore */
134
+ ...(ngDevMode ? [{ debugName: "markerSlot" }] : /* istanbul ignore next */ []));
135
+ this.headingSlot = contentChild(BsTimelineHeadingDirective, /* @ts-ignore */
136
+ ...(ngDevMode ? [{ debugName: "headingSlot" }] : /* istanbul ignore next */ []));
137
+ this.timestampSlot = contentChild(BsTimelineTimestampDirective, /* @ts-ignore */
138
+ ...(ngDevMode ? [{ debugName: "timestampSlot" }] : /* istanbul ignore next */ []));
139
+ this.oppositeSlot = contentChild(BsTimelineOppositeDirective, /* @ts-ignore */
140
+ ...(ngDevMode ? [{ debugName: "oppositeSlot" }] : /* istanbul ignore next */ []));
141
+ this.contentSlot = contentChild(BsTimelineContentDirective, /* @ts-ignore */
142
+ ...(ngDevMode ? [{ debugName: "contentSlot" }] : /* istanbul ignore next */ []));
143
+ this.connectorSlot = contentChild(BsTimelineConnectorDirective, /* @ts-ignore */
144
+ ...(ngDevMode ? [{ debugName: "connectorSlot" }] : /* istanbul ignore next */ []));
145
+ /** The template's named slots. */
146
+ this.slots = computed(() => ({ marker: this.markerSlot()?.templateRef, heading: this.headingSlot()?.templateRef, timestamp: this.timestampSlot()?.templateRef, opposite: this.oppositeSlot()?.templateRef, content: this.contentSlot()?.templateRef, connector: this.connectorSlot()?.templateRef }), /* @ts-ignore */
147
+ ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
148
+ this.#core = useCore(timelineCore, { inputs: () => ({ items: this.items(), orientation: this.orientation(), align: this.align(), reverse: this.reverse(), selectable: this.selectable(), activatable: this.activatable(), selectedIds: this.selectedIds(), inputLabel: this.inputLabel() }), idPrefix: 'bs-timeline', outputs: { itemClick: this.itemclick, selectionChanged: this.selectionchanged, selectedIdsChange: this.selectedidschange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timeline' }), models: { selectedIds: this.selectedIds } });
149
+ /** The template's props. */
150
+ this.props = this.#core.props;
151
+ useScopedStyles('timeline', timelineScopedStyles);
222
152
  }
223
153
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
224
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTimelineComponent, isStandalone: true, selector: "bs-timeline", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, activatable: { classPropertyName: "activatable", publicName: "activatable", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", itemClick: "itemClick" }, queries: [{ propertyName: "markerTpl", first: true, predicate: BsTimelineMarkerDirective, descendants: true, isSignal: true }, { propertyName: "titleTpl", first: true, predicate: BsTimelineTitleDirective, descendants: true, isSignal: true }, { propertyName: "timestampTpl", first: true, predicate: BsTimelineTimestampDirective, descendants: true, isSignal: true }, { propertyName: "contentTpl", first: true, predicate: BsTimelineContentDirective, descendants: true, isSignal: true }, { propertyName: "oppositeTpl", first: true, predicate: BsTimelineOppositeDirective, descendants: true, isSignal: true }, { propertyName: "connectorTpl", first: true, predicate: BsTimelineConnectorDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "timelineRef", first: true, predicate: ["timeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-timeline bsForwardAria\n #timeline\n [attr.orientation]=\"orientation()\"\n [attr.align]=\"align()\"\n [attr.reverse]=\"reverse() ? '' : null\"\n [attr.selectable]=\"selectable()\"\n [attr.activatable]=\"activatable() ? '' : null\"\n (item-click)=\"onItemClick($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n>\n @if (items().length) {\n @for (item of items(); track item.id ?? $index; let i = $index) {\n <mp-timeline-item\n [attr.item-id]=\"idAttr(item)\"\n [attr.title]=\"item.title ?? null\"\n [attr.description]=\"item.description ?? null\"\n [attr.time]=\"timeAttr(item)\"\n [attr.icon]=\"item.icon ?? null\"\n [attr.color]=\"item.color ?? null\"\n [attr.item-class]=\"item.cssClass ?? null\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n >\n @if (markerTpl()) {\n <span slot=\"marker\">\n <ng-container [ngTemplateOutlet]=\"markerTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (titleTpl()) {\n <span slot=\"title\">\n <ng-container [ngTemplateOutlet]=\"titleTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (timestampTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"timestampTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (oppositeTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"oppositeTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (contentTpl()) {\n <div slot=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </div>\n }\n @if (connectorTpl()) {\n <span slot=\"connector\">\n <ng-container [ngTemplateOutlet]=\"connectorTpl()!.templateRef\" [ngTemplateOutletContext]=\"connectorCtx(item, i)\"></ng-container>\n </span>\n }\n </mp-timeline-item>\n }\n } @else {\n <ng-content></ng-content>\n }\n</mp-timeline>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
154
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTimelineComponent, isStandalone: true, selector: "bs-timeline", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, activatable: { classPropertyName: "activatable", publicName: "activatable", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIds: "selectedIdsChange", itemclick: "itemclick", selectionchanged: "selectionchanged", selectedidschange: "selectedidschange" }, queries: [{ propertyName: "markerSlot", first: true, predicate: BsTimelineMarkerDirective, descendants: true, isSignal: true }, { propertyName: "headingSlot", first: true, predicate: BsTimelineHeadingDirective, descendants: true, isSignal: true }, { propertyName: "timestampSlot", first: true, predicate: BsTimelineTimestampDirective, descendants: true, isSignal: true }, { propertyName: "oppositeSlot", first: true, predicate: BsTimelineOppositeDirective, descendants: true, isSignal: true }, { propertyName: "contentSlot", first: true, predicate: BsTimelineContentDirective, descendants: true, isSignal: true }, { propertyName: "connectorSlot", first: true, predicate: BsTimelineConnectorDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/timeline/src/templates/timeline.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.rows) {\n @for (row of p_view.rows; track row.key) {\n <div data-mps=\"timeline\" [mpProps]=\"row.bag\">\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.opposite\">\n @if (slots().opposite) {\n @if (slots().opposite; as slot_opposite) {\n <ng-container [ngTemplateOutlet]=\"slot_opposite\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n }\n } @else {\n @if (slots().timestamp; as slot_timestamp) {\n <ng-container [ngTemplateOutlet]=\"slot_timestamp\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n } @else {\n {{ row.time }}\n }\n }\n </div>\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.line\" [style]=\"row.style\">\n <span data-mps=\"timeline\" [mpProps]=\"p_view.parts.marker\">\n @if (slots().marker; as slot_marker) {\n <ng-container [ngTemplateOutlet]=\"slot_marker\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n } @else {\n <span data-mps=\"timeline\" [mpProps]=\"p_view.parts.dot\">\n @if (row.icon) {\n <i data-mps=\"timeline\" [mpProps]=\"row.icon\"></i>\n }\n </span>\n }\n </span>\n <span data-mps=\"timeline\" [mpProps]=\"p_view.parts.connector\">\n @if (slots().connector; as slot_connector) {\n <ng-container [ngTemplateOutlet]=\"slot_connector\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.connector }, item: row.item, ctx: row.connector }\" />\n }\n </span>\n </div>\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.content\">\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.heading\">\n @if (slots().heading; as slot_heading) {\n <ng-container [ngTemplateOutlet]=\"slot_heading\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n } @else {\n {{ row.item.title }}\n }\n </div>\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.body\">\n @if (slots().content; as slot_content) {\n <ng-container [ngTemplateOutlet]=\"slot_content\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n } @else {\n {{ row.item.description }}\n }\n </div>\n </div>\n </div>\n }\n} @else {\n <ng-content />\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
225
155
  }
226
156
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineComponent, decorators: [{
227
157
  type: Component,
228
- args: [{ selector: 'bs-timeline', imports: [BsForwardAriaDirective, NgTemplateOutlet], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mp-timeline bsForwardAria\n #timeline\n [attr.orientation]=\"orientation()\"\n [attr.align]=\"align()\"\n [attr.reverse]=\"reverse() ? '' : null\"\n [attr.selectable]=\"selectable()\"\n [attr.activatable]=\"activatable() ? '' : null\"\n (item-click)=\"onItemClick($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n>\n @if (items().length) {\n @for (item of items(); track item.id ?? $index; let i = $index) {\n <mp-timeline-item\n [attr.item-id]=\"idAttr(item)\"\n [attr.title]=\"item.title ?? null\"\n [attr.description]=\"item.description ?? null\"\n [attr.time]=\"timeAttr(item)\"\n [attr.icon]=\"item.icon ?? null\"\n [attr.color]=\"item.color ?? null\"\n [attr.item-class]=\"item.cssClass ?? null\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n >\n @if (markerTpl()) {\n <span slot=\"marker\">\n <ng-container [ngTemplateOutlet]=\"markerTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (titleTpl()) {\n <span slot=\"title\">\n <ng-container [ngTemplateOutlet]=\"titleTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (timestampTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"timestampTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (oppositeTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"oppositeTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (contentTpl()) {\n <div slot=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </div>\n }\n @if (connectorTpl()) {\n <span slot=\"connector\">\n <ng-container [ngTemplateOutlet]=\"connectorTpl()!.templateRef\" [ngTemplateOutletContext]=\"connectorCtx(item, i)\"></ng-container>\n </span>\n }\n </mp-timeline-item>\n }\n } @else {\n <ng-content></ng-content>\n }\n</mp-timeline>\n", styles: [":host{display:block}\n"] }]
229
- }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], reverse: [{ type: i0.Input, args: [{ isSignal: true, alias: "reverse", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], activatable: [{ type: i0.Input, args: [{ isSignal: true, alias: "activatable", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], timelineRef: [{ type: i0.ViewChild, args: ['timeline', { isSignal: true }] }], markerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineMarkerDirective), { isSignal: true }] }], titleTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineTitleDirective), { isSignal: true }] }], timestampTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineTimestampDirective), { isSignal: true }] }], contentTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineContentDirective), { isSignal: true }] }], oppositeTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineOppositeDirective), { isSignal: true }] }], connectorTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineConnectorDirective), { isSignal: true }] }] } });
158
+ args: [{ selector: 'bs-timeline', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/timeline/src/templates/timeline.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.rows) {\n @for (row of p_view.rows; track row.key) {\n <div data-mps=\"timeline\" [mpProps]=\"row.bag\">\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.opposite\">\n @if (slots().opposite) {\n @if (slots().opposite; as slot_opposite) {\n <ng-container [ngTemplateOutlet]=\"slot_opposite\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n }\n } @else {\n @if (slots().timestamp; as slot_timestamp) {\n <ng-container [ngTemplateOutlet]=\"slot_timestamp\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n } @else {\n {{ row.time }}\n }\n }\n </div>\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.line\" [style]=\"row.style\">\n <span data-mps=\"timeline\" [mpProps]=\"p_view.parts.marker\">\n @if (slots().marker; as slot_marker) {\n <ng-container [ngTemplateOutlet]=\"slot_marker\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n } @else {\n <span data-mps=\"timeline\" [mpProps]=\"p_view.parts.dot\">\n @if (row.icon) {\n <i data-mps=\"timeline\" [mpProps]=\"row.icon\"></i>\n }\n </span>\n }\n </span>\n <span data-mps=\"timeline\" [mpProps]=\"p_view.parts.connector\">\n @if (slots().connector; as slot_connector) {\n <ng-container [ngTemplateOutlet]=\"slot_connector\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.connector }, item: row.item, ctx: row.connector }\" />\n }\n </span>\n </div>\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.content\">\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.heading\">\n @if (slots().heading; as slot_heading) {\n <ng-container [ngTemplateOutlet]=\"slot_heading\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n } @else {\n {{ row.item.title }}\n }\n </div>\n <div data-mps=\"timeline\" [mpProps]=\"p_view.parts.body\">\n @if (slots().content; as slot_content) {\n <ng-container [ngTemplateOutlet]=\"slot_content\" [ngTemplateOutletContext]=\"{ $implicit: { item: row.item, ctx: row.ctx }, item: row.item, ctx: row.ctx }\" />\n } @else {\n {{ row.item.description }}\n }\n </div>\n </div>\n </div>\n }\n} @else {\n <ng-content />\n}\n" }]
159
+ }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], reverse: [{ type: i0.Input, args: [{ isSignal: true, alias: "reverse", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], activatable: [{ type: i0.Input, args: [{ isSignal: true, alias: "activatable", required: false }] }], selectedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIds", required: false }] }, { type: i0.Output, args: ["selectedIdsChange"] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], itemclick: [{ type: i0.Output, args: ["itemclick"] }], selectionchanged: [{ type: i0.Output, args: ["selectionchanged"] }], selectedidschange: [{ type: i0.Output, args: ["selectedidschange"] }], markerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineMarkerDirective), { isSignal: true }] }], headingSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineHeadingDirective), { isSignal: true }] }], timestampSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineTimestampDirective), { isSignal: true }] }], oppositeSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineOppositeDirective), { isSignal: true }] }], contentSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineContentDirective), { isSignal: true }] }], connectorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineConnectorDirective), { isSignal: true }] }] } });
160
+
161
+ // GENERATED from the timeline manifest (timeline-item) by @mintplayer/nx-component-compiler. Do not edit.
162
+ /** The `marker` slot of `<bs-timeline-item>`: `<ng-template bsTimelineItemMarker>` or `*bsTimelineItemMarker`. */
163
+ class BsTimelineItemMarkerDirective {
164
+ constructor() {
165
+ this.templateRef = inject(TemplateRef);
166
+ }
167
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemMarkerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
168
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineItemMarkerDirective, isStandalone: true, selector: "[bsTimelineItemMarker]", ngImport: i0 }); }
169
+ }
170
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemMarkerDirective, decorators: [{
171
+ type: Directive,
172
+ args: [{ selector: '[bsTimelineItemMarker]' }]
173
+ }] });
174
+ /** The `heading` slot of `<bs-timeline-item>`: `<ng-template bsTimelineItemHeading>` or `*bsTimelineItemHeading`. */
175
+ class BsTimelineItemHeadingDirective {
176
+ constructor() {
177
+ this.templateRef = inject(TemplateRef);
178
+ }
179
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemHeadingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
180
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineItemHeadingDirective, isStandalone: true, selector: "[bsTimelineItemHeading]", ngImport: i0 }); }
181
+ }
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemHeadingDirective, decorators: [{
183
+ type: Directive,
184
+ args: [{ selector: '[bsTimelineItemHeading]' }]
185
+ }] });
186
+ /** The `opposite` slot of `<bs-timeline-item>`: `<ng-template bsTimelineItemOpposite>` or `*bsTimelineItemOpposite`. */
187
+ class BsTimelineItemOppositeDirective {
188
+ constructor() {
189
+ this.templateRef = inject(TemplateRef);
190
+ }
191
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemOppositeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
192
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineItemOppositeDirective, isStandalone: true, selector: "[bsTimelineItemOpposite]", ngImport: i0 }); }
193
+ }
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemOppositeDirective, decorators: [{
195
+ type: Directive,
196
+ args: [{ selector: '[bsTimelineItemOpposite]' }]
197
+ }] });
198
+ /** The `connector` slot of `<bs-timeline-item>`: `<ng-template bsTimelineItemConnector>` or `*bsTimelineItemConnector`. */
199
+ class BsTimelineItemConnectorDirective {
200
+ constructor() {
201
+ this.templateRef = inject(TemplateRef);
202
+ }
203
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemConnectorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
204
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTimelineItemConnectorDirective, isStandalone: true, selector: "[bsTimelineItemConnector]", ngImport: i0 }); }
205
+ }
206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemConnectorDirective, decorators: [{
207
+ type: Directive,
208
+ args: [{ selector: '[bsTimelineItemConnector]' }]
209
+ }] });
210
+ /**
211
+ * One declarative timeline event. `itemTitle`, `description` and `time` fill its regions;
212
+ * the `heading`, `opposite`, `marker` and `connector` slots and its content replace them.
213
+ * `itemId` is its selection key.
214
+ */
215
+ class BsTimelineItemComponent {
216
+ #core;
217
+ constructor() {
218
+ /** The host element. */
219
+ this.elementRef = inject(ElementRef);
220
+ this.itemId = input(/* @ts-ignore */
221
+ ...(ngDevMode ? [undefined, { debugName: "itemId" }] : /* istanbul ignore next */ []));
222
+ this.itemTitle = input(/* @ts-ignore */
223
+ ...(ngDevMode ? [undefined, { debugName: "itemTitle" }] : /* istanbul ignore next */ []));
224
+ this.description = input(/* @ts-ignore */
225
+ ...(ngDevMode ? [undefined, { debugName: "description" }] : /* istanbul ignore next */ []));
226
+ this.time = input(/* @ts-ignore */
227
+ ...(ngDevMode ? [undefined, { debugName: "time" }] : /* istanbul ignore next */ []));
228
+ this.icon = input(/* @ts-ignore */
229
+ ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
230
+ this.color = input(/* @ts-ignore */
231
+ ...(ngDevMode ? [undefined, { debugName: "color" }] : /* istanbul ignore next */ []));
232
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
233
+ this.markerSlot = contentChild(BsTimelineItemMarkerDirective, /* @ts-ignore */
234
+ ...(ngDevMode ? [{ debugName: "markerSlot" }] : /* istanbul ignore next */ []));
235
+ this.headingSlot = contentChild(BsTimelineItemHeadingDirective, /* @ts-ignore */
236
+ ...(ngDevMode ? [{ debugName: "headingSlot" }] : /* istanbul ignore next */ []));
237
+ this.oppositeSlot = contentChild(BsTimelineItemOppositeDirective, /* @ts-ignore */
238
+ ...(ngDevMode ? [{ debugName: "oppositeSlot" }] : /* istanbul ignore next */ []));
239
+ this.connectorSlot = contentChild(BsTimelineItemConnectorDirective, /* @ts-ignore */
240
+ ...(ngDevMode ? [{ debugName: "connectorSlot" }] : /* istanbul ignore next */ []));
241
+ /** The template's named slots. */
242
+ this.slots = computed(() => ({ marker: this.markerSlot()?.templateRef, heading: this.headingSlot()?.templateRef, opposite: this.oppositeSlot()?.templateRef, connector: this.connectorSlot()?.templateRef }), /* @ts-ignore */
243
+ ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
244
+ this.#core = useCore(timelineItemCore, { inputs: () => ({ itemId: this.itemId(), itemTitle: this.itemTitle(), description: this.description(), time: this.time(), icon: this.icon(), color: this.color(), disabled: this.disabled() }), idPrefix: 'bs-timeline-item', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timeline' }) });
245
+ /** The template's props. */
246
+ this.props = this.#core.props;
247
+ useScopedStyles('timeline', timelineScopedStyles);
248
+ }
249
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
250
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTimelineItemComponent, isStandalone: true, selector: "bs-timeline-item", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, itemTitle: { classPropertyName: "itemTitle", publicName: "itemTitle", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, time: { classPropertyName: "time", publicName: "time", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "markerSlot", first: true, predicate: BsTimelineItemMarkerDirective, descendants: true, isSignal: true }, { propertyName: "headingSlot", first: true, predicate: BsTimelineItemHeadingDirective, descendants: true, isSignal: true }, { propertyName: "oppositeSlot", first: true, predicate: BsTimelineItemOppositeDirective, descendants: true, isSignal: true }, { propertyName: "connectorSlot", first: true, predicate: BsTimelineItemConnectorDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/timeline/src/templates/timeline-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"timeline\" [mpProps]=\"p_view.opposite\">\n @if (slots().opposite; as slot_opposite) {\n <ng-container [ngTemplateOutlet]=\"slot_opposite\" />\n } @else {\n {{ p_view.time }}\n }\n</div>\n<div data-mps=\"timeline\" [mpProps]=\"p_view.line\" [style]=\"p_view.lineStyle\">\n <span data-mps=\"timeline\" [mpProps]=\"p_view.marker\">\n @if (slots().marker; as slot_marker) {\n <ng-container [ngTemplateOutlet]=\"slot_marker\" />\n } @else {\n <span data-mps=\"timeline\" [mpProps]=\"p_view.dot\">\n @if (p_view.icon) {\n <i data-mps=\"timeline\" [mpProps]=\"p_view.icon\"></i>\n }\n </span>\n }\n </span>\n <span data-mps=\"timeline\" [mpProps]=\"p_view.connector\">\n @if (slots().connector; as slot_connector) {\n <ng-container [ngTemplateOutlet]=\"slot_connector\" />\n }\n </span>\n</div>\n<div data-mps=\"timeline\" [mpProps]=\"p_view.content\">\n <div data-mps=\"timeline\" [mpProps]=\"p_view.heading\">\n @if (slots().heading; as slot_heading) {\n <ng-container [ngTemplateOutlet]=\"slot_heading\" />\n } @else {\n {{ p_view.title }}\n }\n </div>\n <div data-mps=\"timeline\" [mpProps]=\"p_view.body\">\n <ng-content>\n {{ p_view.description }}\n </ng-content>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
251
+ }
252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTimelineItemComponent, decorators: [{
253
+ type: Component,
254
+ args: [{ selector: 'bs-timeline-item', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/timeline/src/templates/timeline-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"timeline\" [mpProps]=\"p_view.opposite\">\n @if (slots().opposite; as slot_opposite) {\n <ng-container [ngTemplateOutlet]=\"slot_opposite\" />\n } @else {\n {{ p_view.time }}\n }\n</div>\n<div data-mps=\"timeline\" [mpProps]=\"p_view.line\" [style]=\"p_view.lineStyle\">\n <span data-mps=\"timeline\" [mpProps]=\"p_view.marker\">\n @if (slots().marker; as slot_marker) {\n <ng-container [ngTemplateOutlet]=\"slot_marker\" />\n } @else {\n <span data-mps=\"timeline\" [mpProps]=\"p_view.dot\">\n @if (p_view.icon) {\n <i data-mps=\"timeline\" [mpProps]=\"p_view.icon\"></i>\n }\n </span>\n }\n </span>\n <span data-mps=\"timeline\" [mpProps]=\"p_view.connector\">\n @if (slots().connector; as slot_connector) {\n <ng-container [ngTemplateOutlet]=\"slot_connector\" />\n }\n </span>\n</div>\n<div data-mps=\"timeline\" [mpProps]=\"p_view.content\">\n <div data-mps=\"timeline\" [mpProps]=\"p_view.heading\">\n @if (slots().heading; as slot_heading) {\n <ng-container [ngTemplateOutlet]=\"slot_heading\" />\n } @else {\n {{ p_view.title }}\n }\n </div>\n <div data-mps=\"timeline\" [mpProps]=\"p_view.body\">\n <ng-content>\n {{ p_view.description }}\n </ng-content>\n </div>\n</div>\n" }]
255
+ }], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], itemTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTitle", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], time: [{ type: i0.Input, args: [{ isSignal: true, alias: "time", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], markerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineItemMarkerDirective), { isSignal: true }] }], headingSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineItemHeadingDirective), { isSignal: true }] }], oppositeSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineItemOppositeDirective), { isSignal: true }] }], connectorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineItemConnectorDirective), { isSignal: true }] }] } });
256
+
257
+ // GENERATED from the timeline manifest by @mintplayer/nx-component-compiler. Do not edit.
258
+
259
+ // The timeline is generated from @mintplayer/ui-core/timeline (PRD #437 D10).
230
260
 
231
261
  /**
232
262
  * Generated bundle index. Do not edit.
233
263
  */
234
264
 
235
- export { BsTimelineComponent, BsTimelineConnectorDirective, BsTimelineContentDirective, BsTimelineMarkerDirective, BsTimelineOppositeDirective, BsTimelineTimestampDirective, BsTimelineTitleDirective };
265
+ export { BsTimelineComponent, BsTimelineConnectorDirective, BsTimelineContentDirective, BsTimelineHeadingDirective, BsTimelineItemComponent, BsTimelineItemConnectorDirective, BsTimelineItemHeadingDirective, BsTimelineItemMarkerDirective, BsTimelineItemOppositeDirective, BsTimelineMarkerDirective, BsTimelineOppositeDirective, BsTimelineTimestampDirective };
236
266
  //# sourceMappingURL=mintplayer-ng-bootstrap-timeline.mjs.map