@mintplayer/ng-bootstrap 22.27.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 -813
  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 -416
  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-scheduler.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/scheduler/src/components/scheduler/scheduler.component.ts","../../../../libs/mintplayer-ng-bootstrap/scheduler/src/components/scheduler/scheduler.component.html","../../../../libs/mintplayer-ng-bootstrap/scheduler/mintplayer-ng-bootstrap-scheduler.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n viewChild,\n AfterViewInit,\n ChangeDetectionStrategy,\n booleanAttribute,\n CUSTOM_ELEMENTS_SCHEMA,\n input,\n output,\n OutputEmitterRef,\n model,\n computed,\n effect,\n Injector,\n inject,\n runInInjectionContext,\n} from '@angular/core';\n\nimport {\n ViewType,\n SchedulerEvent,\n Resource,\n ResourceGroup,\n SchedulerOptions,\n} from '@mintplayer/web-components/scheduler-core';\n\n// Import the web component to ensure it gets registered\nimport '@mintplayer/web-components/scheduler';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * Interface for the mp-scheduler web component element\n */\ninterface MpSchedulerElement extends HTMLElement {\n view: ViewType;\n date: Date;\n events: SchedulerEvent[];\n resources: (Resource | ResourceGroup)[];\n options: Partial<SchedulerOptions>;\n selectedEvent: SchedulerEvent | null;\n selectedRange: { start: Date; end: Date } | null;\n next(): void;\n prev(): void;\n today(): void;\n gotoDate(date: Date): void;\n changeView(view: ViewType): void;\n clearSelection(): void;\n addEvent(event: SchedulerEvent): void;\n updateEvent(event: SchedulerEvent): void;\n removeEvent(eventId: string): void;\n getEventById(eventId: string): SchedulerEvent | null;\n refetchEvents(): void;\n}\n\n/**\n * Event-selected event detail. Fires on mouse click and on keyboard Tab\n * landing on an event (PRD scheduler-keyboard-grid-nav D3 — renamed from\n * `event-click` because keyboard now triggers the same notification).\n */\nexport interface SchedulerEventSelectedEvent {\n event: SchedulerEvent;\n originalEvent?: Event;\n}\n\n/**\n * Event create *request* event. Per PRD scheduler-controlled-selection, the\n * `mp-scheduler` web-component no longer constructs an event itself on drag-end\n * or `Enter` — it emits the selected range and the consumer decides whether\n * to push a `SchedulerEvent` into its `[events]` input.\n */\nexport interface SchedulerEventCreateEvent {\n /** The selected time range. */\n range: { start: Date; end: Date };\n /** Resource the request targets (timeline view only). */\n resourceId?: string;\n /** View that produced the request. */\n view: ViewType;\n originalEvent?: Event;\n}\n\n/**\n * Selection-change event. Fires on every transition — including the\n * transition to an empty selection. `selectedEvent` and `range` are\n * independent dimensions of the selection state.\n */\nexport interface SchedulerSelectionChangeEvent {\n selectedEvent: SchedulerEvent | null;\n range: { start: Date; end: Date } | null;\n view: ViewType;\n resourceId?: string;\n}\n\n/**\n * Event update event detail\n */\nexport interface SchedulerEventUpdateEvent {\n event: SchedulerEvent;\n oldEvent: SchedulerEvent;\n originalEvent?: Event;\n}\n\n/**\n * Event delete event detail\n */\nexport interface SchedulerEventDeleteEvent {\n event: SchedulerEvent;\n originalEvent?: Event;\n}\n\n/**\n * Date click event detail\n */\nexport interface DateClickEvent {\n date: Date;\n resource?: Resource;\n originalEvent?: Event;\n}\n\n/**\n * Resource/group creation *request*. Like `eventCreate`, the scheduler never\n * edits its own `[resources]` — the consumer decides the id, title and where\n * in the tree the new item goes. `parentId` names the group to insert into and\n * is absent for a root-level item.\n */\nexport interface SchedulerResourceCreateEvent {\n parentId?: string;\n view: ViewType;\n originalEvent?: Event;\n}\n\n/**\n * Resource/group mutation request. `changes` carries only the fields the\n * scheduler is asking to change, so a handler can apply them without diffing.\n */\nexport interface SchedulerResourceUpdateEvent {\n resource: Resource | ResourceGroup;\n changes: Partial<Resource & ResourceGroup>;\n originalEvent?: Event;\n}\n\n/**\n * Resource/group deletion request.\n */\nexport interface SchedulerResourceDeleteEvent {\n resource: Resource | ResourceGroup;\n originalEvent?: Event;\n}\n\n/**\n * Angular wrapper for the mp-scheduler web component using signals\n */\n@Component({\n selector: 'bs-scheduler',\n templateUrl: './scheduler.component.html',\n imports: [BsForwardAriaDirective],\n styleUrls: ['./scheduler.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsSchedulerComponent implements AfterViewInit {\n private readonly injector = inject(Injector);\n\n private readonly schedulerRef = viewChild.required<ElementRef<MpSchedulerElement>>('scheduler');\n\n // Input signals\n readonly events = input<SchedulerEvent[]>([]);\n readonly resources = input<(Resource | ResourceGroup)[]>([]);\n readonly options = input<Partial<SchedulerOptions>>({});\n\n /**\n * Coarse read-only switch — the one-line way to make the whole scheduler\n * look-but-don't-touch. It maps onto the WC's `readonly` attribute rather\n * than a property so plain-HTML and SSR consumers get the same knob;\n * `[options].permissions` still refines individual capabilities beneath it.\n * Aliased because `readonly` cannot name a class member here.\n */\n readonly isReadonly = input(false, { alias: 'readonly', transform: booleanAttribute });\n protected readonly readonlyAttr = computed(() => (this.isReadonly() ? '' : null));\n\n /**\n * The WC's built-in event editor (double-click / right-click / F2 on an\n * event), ON by default. Set false when the app ships its own editor —\n * `(eventDblClick)` keeps firing either way. Rendered as the `event-editor`\n * attribute, whose literal \"false\" is the off switch, so the binding can be\n * unconditional.\n */\n readonly eventEditor = input(true, { transform: booleanAttribute });\n protected readonly eventEditorAttr = computed(() => (this.eventEditor() ? 'true' : 'false'));\n\n // Two-way binding model signals. `view` and `date` are models (not inputs)\n // because the web component changes both from within — prev/next/today\n // navigation and the view switcher — and delivers the new values via its\n // `view-change` event; a one-way input would go stale after any internal\n // navigation.\n readonly view = model<ViewType>('week');\n readonly date = model<Date>(new Date());\n readonly selectedEvent = model<SchedulerEvent | null>(null);\n readonly selectedRange = model<{ start: Date; end: Date } | null>(null);\n\n // Output signals (events). NOTE (breaking, PRD scheduler-resize-glyphs D8):\n // the explicit `viewChange` output<ViewChangeEvent> is gone — `view` and\n // `date` are model() signals now, whose implicit `viewChange`/`dateChange`\n // outputs emit the new ViewType / Date on every internal navigation.\n readonly eventSelected = output<SchedulerEventSelectedEvent>();\n readonly eventDblClick = output<SchedulerEventSelectedEvent>();\n readonly eventCreate = output<SchedulerEventCreateEvent>();\n readonly eventUpdate = output<SchedulerEventUpdateEvent>();\n readonly eventDelete = output<SchedulerEventDeleteEvent>();\n readonly dateClick = output<DateClickEvent>();\n readonly selectionChange = output<SchedulerSelectionChangeEvent>();\n readonly resourceCreate = output<SchedulerResourceCreateEvent>();\n readonly groupCreate = output<SchedulerResourceCreateEvent>();\n readonly resourceUpdate = output<SchedulerResourceUpdateEvent>();\n readonly resourceDelete = output<SchedulerResourceDeleteEvent>();\n\n ngAfterViewInit(): void {\n const el = this.schedulerRef().nativeElement;\n // One effect per property, so a change to one input re-assigns only that\n // property on the element.\n runInInjectionContext(this.injector, () => {\n effect(() => { this.writeNavigation(() => (el.view = this.view())); });\n effect(() => { this.writeNavigation(() => (el.date = this.date())); });\n effect(() => { el.events = this.events(); });\n effect(() => { el.resources = this.resources(); });\n effect(() => { el.options = this.options(); });\n effect(() => { el.selectedEvent = this.selectedEvent(); });\n });\n }\n\n /**\n * True while the wrapper itself assigns `view` / `date`. The element answers\n * such a write with a synchronous `view-change` carrying its state at that\n * moment, i.e. the OTHER value still old; adopting it would overwrite a date\n * the consumer set in the same tick. Only the element's own navigation is\n * written back.\n */\n private writingNavigation = false;\n\n private writeNavigation(write: () => void): void {\n this.writingNavigation = true;\n try {\n write();\n } finally {\n this.writingNavigation = false;\n }\n }\n\n // ----- WC event bridges (bound in the template) --------------------------\n\n protected onEventSelected(e: Event): void {\n const detail = (e as CustomEvent<SchedulerEventSelectedEvent>).detail;\n this.eventSelected.emit(detail);\n this.selectedEvent.set(detail.event);\n }\n\n protected onViewChange(e: Event): void {\n if (this.writingNavigation) return;\n // The WC fires view-change for BOTH view switches and internal date\n // navigation (prev/next/today/gotoDate) — write both back so the\n // consumer's two-way bindings track reality. The model .set() calls\n // emit the implicit viewChange/dateChange outputs.\n const detail = (e as CustomEvent<{ view: ViewType; date: Date }>).detail;\n this.view.set(detail.view);\n this.date.set(detail.date);\n }\n\n protected onSelectionChange(e: Event): void {\n const detail = (e as CustomEvent<SchedulerSelectionChangeEvent>).detail;\n this.selectionChange.emit(detail);\n this.selectedEvent.set(detail.selectedEvent);\n this.selectedRange.set(detail.range);\n }\n\n /** Re-emits a WC event's detail on the matching output, unchanged. */\n protected forward<T>(target: OutputEmitterRef<T>, e: Event): void {\n target.emit((e as CustomEvent<T>).detail);\n }\n\n\n // Public API methods (delegate to web component)\n\n /**\n * Navigate to next period\n */\n next(): void {\n this.schedulerRef().nativeElement.next();\n }\n\n /**\n * Navigate to previous period\n */\n prev(): void {\n this.schedulerRef().nativeElement.prev();\n }\n\n /**\n * Navigate to today\n */\n today(): void {\n this.schedulerRef().nativeElement.today();\n }\n\n /**\n * Navigate to a specific date\n */\n gotoDate(date: Date): void {\n this.schedulerRef().nativeElement.gotoDate(date);\n }\n\n /**\n * Change the current view\n */\n changeView(view: ViewType): void {\n this.schedulerRef().nativeElement.changeView(view);\n }\n\n /**\n * Clear the time-range selection and the focused-cell selection. Call this\n * from your `(eventCreate)` handler if you want the post-create selection\n * cleared — the scheduler no longer auto-clears (PRD: scheduler-controlled-selection).\n */\n clearSelection(): void {\n this.schedulerRef().nativeElement.clearSelection();\n }\n\n /**\n * Add an event\n */\n addEvent(event: SchedulerEvent): void {\n this.schedulerRef().nativeElement.addEvent(event);\n }\n\n /**\n * Update an event\n */\n updateEvent(event: SchedulerEvent): void {\n this.schedulerRef().nativeElement.updateEvent(event);\n }\n\n /**\n * Remove an event\n */\n removeEvent(eventId: string): void {\n this.schedulerRef().nativeElement.removeEvent(eventId);\n }\n\n /**\n * Get an event by ID\n */\n getEventById(eventId: string): SchedulerEvent | null {\n return this.schedulerRef().nativeElement.getEventById(eventId);\n }\n\n /**\n * Refetch/refresh events\n */\n refetchEvents(): void {\n this.schedulerRef().nativeElement.refetchEvents();\n }\n}\n","<mp-scheduler bsForwardAria #scheduler\n [attr.readonly]=\"readonlyAttr()\"\n [attr.event-editor]=\"eventEditorAttr()\"\n (event-selected)=\"onEventSelected($event)\"\n (event-dblclick)=\"forward(eventDblClick, $event)\"\n (event-create)=\"forward(eventCreate, $event)\"\n (event-update)=\"forward(eventUpdate, $event)\"\n (event-delete)=\"forward(eventDelete, $event)\"\n (date-click)=\"forward(dateClick, $event)\"\n (resource-create)=\"forward(resourceCreate, $event)\"\n (group-create)=\"forward(groupCreate, $event)\"\n (resource-update)=\"forward(resourceUpdate, $event)\"\n (resource-delete)=\"forward(resourceDelete, $event)\"\n (view-change)=\"onViewChange($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n></mp-scheduler>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAqJA;;AAEG;MASU,oBAAoB,CAAA;AARjC,IAAA,WAAA,GAAA;AASmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAE3B,QAAA,IAAA,CAAA,YAAY,GAAG,SAAS,CAAC,QAAQ,CAAiC,WAAW;yFAAC;;QAGtF,IAAA,CAAA,MAAM,GAAG,KAAK,CAAmB,EAAE;mFAAC;QACpC,IAAA,CAAA,SAAS,GAAG,KAAK,CAA+B,EAAE;sFAAC;QACnD,IAAA,CAAA,OAAO,GAAG,KAAK,CAA4B,EAAE;oFAAC;AAEvD;;;;;;AAMG;AACM,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,KAAK,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,YAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,GAAG;AACnE,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC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AA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnKhG;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-scheduler.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/scheduler/src/generated/scheduler.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/scheduler/src/generated/scheduler.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/scheduler/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/scheduler/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/scheduler/mintplayer-ng-bootstrap-scheduler.ts"],"sourcesContent":["// GENERATED from the scheduler manifest (scheduler) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { schedulerCore, type SchedulerDateClickDetail, type SchedulerDayPopover, type SchedulerEditor, type SchedulerEvent, type SchedulerEventCreateDetail, type SchedulerEventDblClickDetail, type SchedulerEventDeleteDetail, type SchedulerEventSelectedDetail, type SchedulerEventUpdateDetail, type SchedulerGroupCreateDetail, type SchedulerInputs, type SchedulerMethods, type SchedulerMonth, type SchedulerPopoverEvent, type SchedulerResourceCreateDetail, type SchedulerResourceDeleteDetail, type SchedulerResourceUpdateDetail, type SchedulerRowPanel, schedulerScopedStyles, type SchedulerSelectionChangeDetail, type SchedulerTimeGrid, type SchedulerTimeline, type SchedulerYear, type TimeRange, type ViewType } from '@mintplayer/ui-core/scheduler';\nimport { BsDatetimePickerComponent } from '@mintplayer/ng-bootstrap/datetime-picker';\n\n/** Types the `SchedTimeGrid` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialSchedTimeGrid]' })\nexport class SchedTimeGridPartial {\n static ngTemplateContextGuard(_dir: SchedTimeGridPartial, ctx: unknown): ctx is { grid: SchedulerTimeGrid } {\n return true;\n }\n}\n\n/** Types the `SchedMonth` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialSchedMonth]' })\nexport class SchedMonthPartial {\n static ngTemplateContextGuard(_dir: SchedMonthPartial, ctx: unknown): ctx is { month: SchedulerMonth } {\n return true;\n }\n}\n\n/** Types the `SchedYear` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialSchedYear]' })\nexport class SchedYearPartial {\n static ngTemplateContextGuard(_dir: SchedYearPartial, ctx: unknown): ctx is { year: SchedulerYear } {\n return true;\n }\n}\n\n/** Types the `SchedTimeline` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialSchedTimeline]' })\nexport class SchedTimelinePartial {\n static ngTemplateContextGuard(_dir: SchedTimelinePartial, ctx: unknown): ctx is { timeline: SchedulerTimeline } {\n return true;\n }\n}\n\n/** Types the `SchedPopover` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialSchedPopover]' })\nexport class SchedPopoverPartial {\n static ngTemplateContextGuard(_dir: SchedPopoverPartial, ctx: unknown): ctx is { popover: SchedulerDayPopover } {\n return true;\n }\n}\n\n/** Types the `SchedPopoverEvent` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialSchedPopoverEvent]' })\nexport class SchedPopoverEventPartial {\n static ngTemplateContextGuard(_dir: SchedPopoverEventPartial, ctx: unknown): ctx is { event: SchedulerPopoverEvent } {\n return true;\n }\n}\n\n/** Types the `SchedRowPanel` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialSchedRowPanel]' })\nexport class SchedRowPanelPartial {\n static ngTemplateContextGuard(_dir: SchedRowPanelPartial, ctx: unknown): ctx is { panel: SchedulerRowPanel } {\n return true;\n }\n}\n\n/** Types the `SchedEditor` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialSchedEditor]' })\nexport class SchedEditorPartial {\n static ngTemplateContextGuard(_dir: SchedEditorPartial, ctx: unknown): ctx is { editor: SchedulerEditor } {\n return true;\n }\n}\n\n/**\n * A calendar and resource scheduler (#437): year, month, week, day and timeline views over `events`\n * and `resources`. Drag (or the keyboard) creates, moves and resizes; every change is a request\n * (`eventCreate`, `eventUpdate`, `eventDelete`, `resource*`) the consumer applies to its own data.\n * Two-way: `view`, `date`, `selectedEvent`, `selectedRange`. Strings come from `options.messages`.\n */\n@Component({\n selector: 'bs-scheduler',\n templateUrl: './scheduler.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet, SchedTimeGridPartial, SchedMonthPartial, SchedYearPartial, SchedTimelinePartial, SchedPopoverPartial, SchedPopoverEventPartial, SchedRowPanelPartial, SchedEditorPartial, BsDatetimePickerComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSchedulerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly events = input<SchedulerInputs['events']>([]);\n readonly resources = input<SchedulerInputs['resources']>([]);\n readonly options = input<SchedulerInputs['options']>(null);\n readonly readonly = input<SchedulerInputs['readonly'], unknown>(false, { transform: booleanAttribute });\n readonly eventEditor = input<SchedulerInputs['eventEditor'], unknown>(true, { transform: booleanAttribute });\n readonly locale = input<SchedulerInputs['locale']>(null);\n readonly firstDayOfWeek = input<SchedulerInputs['firstDayOfWeek'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as SchedulerInputs['firstDayOfWeek'] });\n readonly slotDuration = input<SchedulerInputs['slotDuration'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as SchedulerInputs['slotDuration'] });\n readonly timeFormat = input<SchedulerInputs['timeFormat']>(null);\n readonly view = model<SchedulerInputs['view']>(null);\n readonly date = model<SchedulerInputs['date']>(null);\n readonly selectedEvent = model<SchedulerInputs['selectedEvent']>(null);\n readonly selectedRange = model<SchedulerInputs['selectedRange']>(null);\n /** An event was selected by click, tap or focus. */\n readonly eventselected = output<SchedulerEventSelectedDetail>();\n /** An event was activated twice (double click or double tap). */\n readonly eventdblclick = output<SchedulerEventDblClickDetail>();\n /** A request to create an event over a range (drag, Enter, the popover). */\n readonly eventcreate = output<SchedulerEventCreateDetail>();\n /** A request to apply a move, resize or editor change. */\n readonly eventupdate = output<SchedulerEventUpdateDetail>();\n /** A request to delete an event. */\n readonly eventdelete = output<SchedulerEventDeleteDetail>();\n /** A day of the month or year view was clicked. */\n readonly dateclick = output<SchedulerDateClickDetail>();\n /** The selected event or range changed. */\n readonly selectionchanged = output<SchedulerSelectionChangeDetail>();\n /** A request to add a resource (optionally under a group). */\n readonly resourcecreate = output<SchedulerResourceCreateDetail>();\n /** A request to add a group (optionally under a group). */\n readonly groupcreate = output<SchedulerGroupCreateDetail>();\n /** A request to rename or recolour a resource. */\n readonly resourceupdate = output<SchedulerResourceUpdateDetail>();\n /** A request to delete a resource. */\n readonly resourcedelete = output<SchedulerResourceDeleteDetail>();\n /** The view, after it changed. */\n readonly viewchange = output<ViewType>();\n /** The shown date, after it changed. */\n readonly datechange = output<Date>();\n /** The selected event, after it changed. */\n readonly selectedeventchange = output<SchedulerEvent | null>();\n /** The range selection, after it changed. */\n readonly selectedrangechange = output<TimeRange | null>();\n\n readonly #core = useCore(schedulerCore, { inputs: () => ({ events: this.events(), resources: this.resources(), options: this.options(), readonly: this.readonly(), eventEditor: this.eventEditor(), locale: this.locale(), firstDayOfWeek: this.firstDayOfWeek(), slotDuration: this.slotDuration(), timeFormat: this.timeFormat(), view: this.view(), date: this.date(), selectedEvent: this.selectedEvent(), selectedRange: this.selectedRange() }), idPrefix: 'bs-scheduler', outputs: { eventSelected: this.eventselected, eventDblClick: this.eventdblclick, eventCreate: this.eventcreate, eventUpdate: this.eventupdate, eventDelete: this.eventdelete, dateClick: this.dateclick, selectionChanged: this.selectionchanged, resourceCreate: this.resourcecreate, groupCreate: this.groupcreate, resourceUpdate: this.resourceupdate, resourceDelete: this.resourcedelete, viewChange: this.viewchange, dateChange: this.datechange, selectedEventChange: this.selectedeventchange, selectedRangeChange: this.selectedrangechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'scheduler' }), models: { view: this.view, date: this.date, selectedEvent: this.selectedEvent, selectedRange: this.selectedRange } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('scheduler', schedulerScopedStyles);\n }\n\n /** The next period. */\n next(...args: Parameters<SchedulerMethods['next']>): ReturnType<SchedulerMethods['next']> {\n return this.#core.call('next', args) as ReturnType<SchedulerMethods['next']>;\n }\n\n /** The previous period. */\n prev(...args: Parameters<SchedulerMethods['prev']>): ReturnType<SchedulerMethods['prev']> {\n return this.#core.call('prev', args) as ReturnType<SchedulerMethods['prev']>;\n }\n\n /** The period containing today. */\n today(...args: Parameters<SchedulerMethods['today']>): ReturnType<SchedulerMethods['today']> {\n return this.#core.call('today', args) as ReturnType<SchedulerMethods['today']>;\n }\n\n /** The period containing a date. */\n gotoDate(...args: Parameters<SchedulerMethods['gotoDate']>): ReturnType<SchedulerMethods['gotoDate']> {\n return this.#core.call('gotoDate', args) as ReturnType<SchedulerMethods['gotoDate']>;\n }\n\n /** Switch the view, and announce it. */\n changeView(...args: Parameters<SchedulerMethods['changeView']>): ReturnType<SchedulerMethods['changeView']> {\n return this.#core.call('changeView', args) as ReturnType<SchedulerMethods['changeView']>;\n }\n\n /** Clear the range selection. */\n clearSelection(...args: Parameters<SchedulerMethods['clearSelection']>): ReturnType<SchedulerMethods['clearSelection']> {\n return this.#core.call('clearSelection', args) as ReturnType<SchedulerMethods['clearSelection']>;\n }\n\n /** Add an event to the scheduler's own copy, and announce it. */\n addEvent(...args: Parameters<SchedulerMethods['addEvent']>): ReturnType<SchedulerMethods['addEvent']> {\n return this.#core.call('addEvent', args) as ReturnType<SchedulerMethods['addEvent']>;\n }\n\n /** Replace an event in the scheduler's own copy, and announce it. */\n updateEvent(...args: Parameters<SchedulerMethods['updateEvent']>): ReturnType<SchedulerMethods['updateEvent']> {\n return this.#core.call('updateEvent', args) as ReturnType<SchedulerMethods['updateEvent']>;\n }\n\n /** Remove an event from the scheduler's own copy, and announce it. */\n removeEvent(...args: Parameters<SchedulerMethods['removeEvent']>): ReturnType<SchedulerMethods['removeEvent']> {\n return this.#core.call('removeEvent', args) as ReturnType<SchedulerMethods['removeEvent']>;\n }\n\n /** An event by id, or null. */\n getEventById(...args: Parameters<SchedulerMethods['getEventById']>): ReturnType<SchedulerMethods['getEventById']> {\n return this.#core.call('getEventById', args) as ReturnType<SchedulerMethods['getEventById']>;\n }\n\n /** Re-render from the current events. */\n refetchEvents(...args: Parameters<SchedulerMethods['refetchEvents']>): ReturnType<SchedulerMethods['refetchEvents']> {\n return this.#core.call('refetchEvents', args) as ReturnType<SchedulerMethods['refetchEvents']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/scheduler/src/templates/scheduler.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.container\">\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.header\">\n <nav data-mps=\"scheduler\" [mpProps]=\"p_view.nav\">\n <button data-mps=\"scheduler\" [mpProps]=\"p_view.prev\">\n ‹\n </button>\n <button data-mps=\"scheduler\" [mpProps]=\"p_view.next\">\n ›\n </button>\n <button data-mps=\"scheduler\" [mpProps]=\"p_view.today\">\n {{ p_view.todayText }}\n </button>\n </nav>\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.title\">\n {{ p_view.titleText }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.switcher\">\n @for (v of p_view.views; track v.key) {\n <button data-mps=\"scheduler\" [mpProps]=\"v.bag\">\n {{ v.text }}\n </button>\n }\n </div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.content\" [style]=\"p_view.contentStyle\">\n @if (p_view.timeGrid) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedTimeGrid\" [ngTemplateOutletContext]=\"{ grid: p_view.timeGrid }\" />\n }\n @if (p_view.month) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedMonth\" [ngTemplateOutletContext]=\"{ month: p_view.month }\" />\n }\n @if (p_view.year) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedYear\" [ngTemplateOutletContext]=\"{ year: p_view.year }\" />\n }\n @if (p_view.timeline) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedTimeline\" [ngTemplateOutletContext]=\"{ timeline: p_view.timeline }\" />\n }\n @if (p_view.timeline && p_view.timeline.addBar) {\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.timeline.addBar.bag\">\n @for (b of p_view.timeline.addBar.buttons; track b.key) {\n <button data-mps=\"scheduler\" [mpProps]=\"b.bag\">\n {{ b.text }}\n </button>\n }\n </div>\n }\n </div>\n</div>\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.kbdGrid\">\n {{ p_view.kbdGridText }}\n</div>\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.kbdEvent\">\n {{ p_view.kbdEventText }}\n</div>\n@if (p_view.popover) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedPopover\" [ngTemplateOutletContext]=\"{ popover: p_view.popover }\" />\n}\n@if (p_view.rowPanel) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedRowPanel\" [ngTemplateOutletContext]=\"{ panel: p_view.rowPanel }\" />\n}\n@if (p_view.editor) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedEditor\" [ngTemplateOutletContext]=\"{ editor: p_view.editor }\" />\n}\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n<ng-template #partial_SchedTimeGrid mpPartialSchedTimeGrid let-pp_grid=\"grid\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.headerRow\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.gutterSpace\"></div>\n @for (h of pp_grid.headers; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"h.nameBag\">\n {{ h.name }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"h.numberBag\">\n {{ h.number }}\n </div>\n @if (h.monthYearBag) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.monthYearBag\">\n {{ h.monthYear }}\n </div>\n }\n </div>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.grid\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.gutter\">\n @for (l of pp_grid.labels; track l.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"l.bag\">\n {{ l.text }}\n </div>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.days\">\n @for (c of pp_grid.columns; track c.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"c.bag\">\n @for (slot of c.slots; track slot.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"slot.bag\"></div>\n }\n <div data-mps=\"scheduler\" [mpProps]=\"c.events\">\n @for (b of c.boxes; track b.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.bag\" [style]=\"b.style\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.content\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.titleBag\">\n {{ b.title }}\n </div>\n @if (b.timeBag) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.timeBag\">\n {{ b.time }}\n </div>\n }\n </div>\n @for (h of b.handles; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"h.glyph\"></span>\n </div>\n }\n </div>\n }\n @for (p of c.previews; track p.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"p.bag\" [style]=\"p.style\"></div>\n }\n </div>\n @if (c.now) {\n <div data-mps=\"scheduler\" [mpProps]=\"c.now.bag\" [style]=\"c.now.style\"></div>\n }\n </div>\n }\n </div>\n </div>\n</ng-template>\n<ng-template #partial_SchedMonth mpPartialSchedMonth let-pp_month=\"month\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_month.headerRow\">\n @for (h of pp_month.headers; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n {{ h.text }}\n </div>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_month.grid\">\n @for (w of pp_month.weeks; track w.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"w.bag\">\n @for (d of w.days; track d.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"d.numberBag\">\n {{ d.number }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"d.events\">\n @for (e of d.items; track e.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"e.bag\" [style]=\"e.style\">\n {{ e.title }}\n </div>\n }\n @if (d.more) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.more.bag\">\n {{ d.more.text }}\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n</ng-template>\n<ng-template #partial_SchedYear mpPartialSchedYear let-pp_year=\"year\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_year.grid\">\n @for (m of pp_year.months; track m.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"m.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"m.headerBag\">\n {{ m.header }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"m.mini\">\n @for (h of m.dayHeaders; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n {{ h.text }}\n </div>\n }\n @for (d of m.days; track d.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.bag\">\n {{ d.text }}\n </div>\n }\n </div>\n </div>\n }\n </div>\n</ng-template>\n<ng-template #partial_SchedTimeline mpPartialSchedTimeline let-pp_timeline=\"timeline\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.timeline\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.head\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.dayRow\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.resourceHeader\">\n {{ pp_timeline.resourceHeaderText }}\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.resizer\"></div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.dayHeaders\">\n @for (d of pp_timeline.days; track d.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.bag\" [style]=\"d.style\">\n <span data-mps=\"scheduler\" [mpProps]=\"d.labelBag\">\n {{ d.label }}\n </span>\n </div>\n }\n </div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.timeRow\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.emptyHeader\"></div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.timeHeaders\">\n @for (t of pp_timeline.times; track t.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"t.bag\">\n {{ t.text }}\n </div>\n }\n </div>\n </div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.body\">\n @for (r of pp_timeline.rows; track r.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"r.bag\" [style]=\"r.style\">\n <div data-mps=\"scheduler\" [mpProps]=\"r.cell\" [style]=\"r.cellStyle\">\n @if (r.menu) {\n <button data-mps=\"scheduler\" [mpProps]=\"r.menu.bag\" [style]=\"r.menu.style\">\n <span data-mps=\"scheduler\" [mpProps]=\"r.menu.glyph\">\n ⋯\n </span>\n </button>\n }\n @if (r.toggle) {\n <button data-mps=\"scheduler\" [mpProps]=\"r.toggle.bag\">\n {{ r.toggle.text }}\n </button>\n }\n @if (r.rename) {\n <input data-mps=\"scheduler\" [mpProps]=\"r.rename.bag\" [value]=\"r.rename.value\">\n } @else {\n <span data-mps=\"scheduler\" [mpProps]=\"r.titleBag\">\n {{ r.title }}\n </span>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"r.slots\">\n @for (c of r.cells; track c.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"c.bag\"></div>\n }\n @if (r.events) {\n <div data-mps=\"scheduler\" [mpProps]=\"r.events\">\n @for (b of r.boxes; track b.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.bag\" [style]=\"b.style\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.content\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.titleBag\">\n {{ b.title }}\n </div>\n @if (b.timeBag) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.timeBag\">\n {{ b.time }}\n </div>\n }\n </div>\n @for (h of b.handles; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"h.glyph\"></span>\n </div>\n }\n </div>\n }\n @for (p of r.previews; track p.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"p.bag\" [style]=\"p.style\"></div>\n }\n </div>\n }\n </div>\n </div>\n }\n @if (pp_timeline.empty) {\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.empty.bag\">\n {{ pp_timeline.empty.text }}\n </div>\n }\n </div>\n </div>\n</ng-template>\n<ng-template #partial_SchedPopover mpPartialSchedPopover let-pp_popover=\"popover\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.head\">\n <div data-mps=\"scheduler\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.dateBag\">\n {{ pp_popover.date }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.countBag\">\n {{ pp_popover.count }}\n </div>\n </div>\n <button data-mps=\"scheduler\" [mpProps]=\"pp_popover.close\">\n <span data-mps=\"scheduler\" aria-hidden=\"true\">\n ×\n </span>\n </button>\n </div>\n @if (pp_popover.empty) {\n <p data-mps=\"scheduler\" [mpProps]=\"pp_popover.empty.bag\">\n {{ pp_popover.empty.text }}\n </p>\n }\n @if (pp_popover.list) {\n <ul data-mps=\"scheduler\" [mpProps]=\"pp_popover.list\">\n @for (e of pp_popover.events; track e.key) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedPopoverEvent\" [ngTemplateOutletContext]=\"{ event: e }\" />\n }\n </ul>\n }\n @for (g of pp_popover.groups; track g.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"g.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"g.headingBag\">\n {{ g.heading }}\n </div>\n <ul data-mps=\"scheduler\" [mpProps]=\"g.list\">\n @for (e of g.events; track e.key) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedPopoverEvent\" [ngTemplateOutletContext]=\"{ event: e }\" />\n }\n </ul>\n </div>\n }\n @if (pp_popover.resource) {\n <label data-mps=\"scheduler\" [mpProps]=\"pp_popover.resource.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"pp_popover.resource.labelBag\">\n {{ pp_popover.resource.label }}\n </span>\n <select data-mps=\"scheduler\" [mpProps]=\"pp_popover.resource.select\">\n @for (o of pp_popover.resource.options; track o.key) {\n <option data-mps=\"scheduler\" [attr.value]=\"o.value\">\n {{ o.text }}\n </option>\n }\n </select>\n </label>\n }\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.actions\">\n @if (pp_popover.create) {\n <button data-mps=\"scheduler\" [mpProps]=\"pp_popover.create.bag\">\n {{ pp_popover.create.text }}\n </button>\n }\n <button data-mps=\"scheduler\" [mpProps]=\"pp_popover.drill.bag\">\n {{ pp_popover.drill.text }}\n </button>\n </div>\n </div>\n</ng-template>\n<ng-template #partial_SchedPopoverEvent mpPartialSchedPopoverEvent let-pp_event=\"event\">\n <li data-mps=\"scheduler\" [mpProps]=\"pp_event.row\">\n <button data-mps=\"scheduler\" [mpProps]=\"pp_event.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"pp_event.swatch\" [style]=\"pp_event.swatchStyle\"></span>\n <span data-mps=\"scheduler\" [mpProps]=\"pp_event.titleBag\">\n {{ pp_event.title }}\n </span>\n </button>\n @if (pp_event.remove) {\n <button data-mps=\"scheduler\" [mpProps]=\"pp_event.remove\">\n <span data-mps=\"scheduler\" aria-hidden=\"true\">\n ×\n </span>\n </button>\n }\n </li>\n</ng-template>\n<ng-template #partial_SchedRowPanel mpPartialSchedRowPanel let-pp_panel=\"panel\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_panel.bag\">\n @for (a of pp_panel.actions; track a.key) {\n @if (a.color) {\n <label data-mps=\"scheduler\" [mpProps]=\"a.color.label\">\n <span data-mps=\"scheduler\">\n {{ a.color.text }}\n </span>\n <input data-mps=\"scheduler\" [mpProps]=\"a.color.input\" [value]=\"a.color.value\">\n </label>\n }\n @if (a.button) {\n <button data-mps=\"scheduler\" [mpProps]=\"a.button.bag\">\n {{ a.button.text }}\n </button>\n }\n }\n </div>\n</ng-template>\n<ng-template #partial_SchedEditor mpPartialSchedEditor let-pp_editor=\"editor\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.head\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.titleBag\">\n {{ pp_editor.title }}\n </div>\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.close\">\n <span data-mps=\"scheduler\" aria-hidden=\"true\">\n ×\n </span>\n </button>\n </div>\n <label data-mps=\"scheduler\" [mpProps]=\"pp_editor.field\">\n <span data-mps=\"scheduler\">\n {{ pp_editor.titleLabel }}\n </span>\n <input data-mps=\"scheduler\" [mpProps]=\"pp_editor.titleInput\" [value]=\"pp_editor.titleValue\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.titleError\">\n {{ pp_editor.titleErrorText }}\n </div>\n </label>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.startField\">\n <bs-datetime-picker [max]=\"pp_editor.startMax\" [disabled]=\"pp_editor.startDisabled\" [inputLabel]=\"pp_editor.startLabel\" [locale]=\"pp_editor.locale\" [firstDayOfWeek]=\"pp_editor.firstDayOfWeek\" [hour12]=\"pp_editor.hour12\" [step]=\"pp_editor.step\" [value]=\"pp_editor.start.value\" (valueChange)=\"pp_editor.start.set($event)\"></bs-datetime-picker>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.endField\">\n <bs-datetime-picker [min]=\"pp_editor.endMin\" [disabled]=\"pp_editor.endDisabled\" [invalid]=\"pp_editor.endInvalid\" [errorText]=\"pp_editor.endError\" [inputLabel]=\"pp_editor.endLabel\" [locale]=\"pp_editor.locale\" [firstDayOfWeek]=\"pp_editor.firstDayOfWeek\" [hour12]=\"pp_editor.hour12\" [step]=\"pp_editor.step\" [value]=\"pp_editor.end.value\" (valueChange)=\"pp_editor.end.set($event)\"></bs-datetime-picker>\n </div>\n <label data-mps=\"scheduler\" [mpProps]=\"pp_editor.field\">\n <span data-mps=\"scheduler\">\n {{ pp_editor.colorLabel }}\n </span>\n <input data-mps=\"scheduler\" [mpProps]=\"pp_editor.colorInput\" [value]=\"pp_editor.colorValue\">\n </label>\n <label data-mps=\"scheduler\" [mpProps]=\"pp_editor.inherit\">\n <input data-mps=\"scheduler\" [mpProps]=\"pp_editor.inheritInput\" [checked]=\"pp_editor.inheritChecked\">\n <span data-mps=\"scheduler\">\n {{ pp_editor.inheritLabel }}\n </span>\n </label>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.actions\">\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.save.bag\">\n {{ pp_editor.save.text }}\n </button>\n @if (pp_editor.remove) {\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.remove.bag\">\n {{ pp_editor.remove.text }}\n </button>\n }\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.cancel.bag\">\n {{ pp_editor.cancel.text }}\n </button>\n </div>\n </div>\n</ng-template>\n","// GENERATED from the scheduler manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSchedulerComponent } from './scheduler.component.generated';\n","// The scheduler is generated from @mintplayer/ui-core/scheduler (PRD #437 D10).\nexport * from './generated';\nexport { SchedulerStateManager, createInitialState } from '@mintplayer/ui-core/scheduler';\nexport { generateEventId, generateGroupId, generateResourceId } from '@mintplayer/ui-core/scheduler-core';\nexport type {\n DisplayMode,\n DragState,\n EventDetail,\n SchedulerDateClickDetail,\n SchedulerEventCreateDetail,\n SchedulerEventDblClickDetail,\n SchedulerEventDeleteDetail,\n SchedulerEventSelectedDetail,\n SchedulerEventUpdateDetail,\n SchedulerGroupCreateDetail,\n SchedulerResourceCreateDetail,\n SchedulerResourceDeleteDetail,\n SchedulerResourceUpdateDetail,\n SchedulerSelectionChangeDetail,\n PreviewEvent,\n Resource,\n ResourceGroup,\n SchedulerEvent,\n SchedulerEventPart,\n SchedulerMessages,\n SchedulerOptions,\n SchedulerPermissions,\n SchedulerState,\n TimeRange,\n TimeSlot,\n ViewType,\n} from '@mintplayer/ui-core/scheduler';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAOA;MAEa,oBAAoB,CAAA;AAC/B,IAAA,OAAO,sBAAsB,CAAC,IAA0B,EAAE,GAAY,EAAA;AACpE,QAAA,OAAO,IAAI;IACb;8GAHW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,SAAS;mBAAC,EAAE,QAAQ,EAAE,qCAAqC,EAAE;;AAO9D;MAEa,iBAAiB,CAAA;AAC5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rategy, Component } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import '@mintplayer/web-components/select';
2
+ import { inject, ElementRef, input, signal, computed, forwardRef, Directive, Renderer2, effect, TemplateRef, booleanAttribute, numberAttribute, model, output, contentChild, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { NgTemplateOutlet } from '@angular/common';
4
+ import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
5
+ import { syncSelection, selectCore, selectScopedStyles } from '@mintplayer/ui-core/select';
5
6
  import * as i2 from '@mintplayer/ng-bootstrap/a11y';
6
- import { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';
7
+ import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';
8
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
7
9
 
10
+ /**
11
+ * The `ControlValueAccessor` of `bs-select` (a host directive of the generated
12
+ * component, see `select.angular.ts`). The select's value space is strings; an
13
+ * `<option [ngValue]>` maps any value (an object, compared with `compareWith`)
14
+ * to a stable `"<id>: <value>"` string, the way Angular's own
15
+ * `SelectControlValueAccessor` does.
16
+ */
8
17
  class BsSelectValueAccessor {
9
- registerOnTouched(fn) {
10
- this.onTouched = fn;
11
- }
12
- registerOnChange(fn) {
13
- this.onChange = (valueString) => {
14
- // View -> Model
15
- this.value = this.getOptionValue(valueString);
16
- fn(this.value);
17
- };
18
- }
19
- setDisabledState(isDisabled) {
20
- this.setProperty('disabled', isDisabled);
21
- }
22
- setProperty(key, value) {
23
- this._renderer.setProperty(this.selectBox.selectBox().nativeElement, key, value);
24
- }
25
- hostOnChange(event) {
26
- this.onChange(event.target.value);
27
- }
28
18
  constructor() {
29
- this._renderer = inject(Renderer2);
30
- this._elementRef = inject(ElementRef);
31
- this.selectBox = inject(BsSelectComponent);
32
- this.onChange = (_) => { };
33
- this.onTouched = () => { };
19
+ this.element = inject(ElementRef).nativeElement;
20
+ this.compareWith = input(Object.is, /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "compareWith" }] : /* istanbul ignore next */ []));
22
+ /** A form control drives the select: its `viewValue` wins over the `value` input. */
23
+ this.bound = signal(false, /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "bound" }] : /* istanbul ignore next */ []));
25
+ /** The form control's value, as the select's string. */
26
+ this.viewValue = signal(null, /* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "viewValue" }] : /* istanbul ignore next */ []));
28
+ this.disabled = signal(false, /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
30
+ /** The string the select shows, from the form control or the `value` input (set by `extendInputs`). */
31
+ this.selected = computed(() => this.viewValue(), /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
33
+ this.value = null;
34
34
  this.optionMap = new Map();
35
35
  this.idCounter = 0;
36
- this.compareWithFunction = Object.is;
37
- this.compareWith = input(undefined, /* @ts-ignore */
38
- ...(ngDevMode ? [{ debugName: "compareWith" }] : /* istanbul ignore next */ []));
39
- effect(() => {
40
- const value = this.compareWith();
41
- if (value !== undefined) {
42
- if (typeof value !== 'function') {
43
- throw new Error('compareWith must be a function');
44
- }
45
- this.compareWithFunction = value;
46
- }
47
- });
36
+ this.onChange = () => undefined;
37
+ this.onTouched = () => undefined;
48
38
  }
49
- buildValueString(id, value) {
50
- if (id == null) {
51
- return `${value}`;
52
- }
53
- if (value && (typeof value === 'object')) {
54
- value = 'Object';
55
- }
56
- return `${id}: ${value}`.slice(0, 50);
39
+ registerOnChange(fn) {
40
+ this.bound.set(true);
41
+ this.onChange = fn;
57
42
  }
58
- /**
59
- * The id half of a `"<id>: <value>"` string, or null when there is no string
60
- * to read.
61
- *
62
- * Null is a real case, not defensive padding: `<option value="">` is the
63
- * idiomatic way to write a placeholder ("— none —", "Browser locale"), and
64
- * `mp-select` normalizes an empty selection to `null` on its host. The host is
65
- * what `hostOnChange` reads, because `mp-select` re-dispatches a composed
66
- * `change` whose target is the element rather than the inner `<select>`. So
67
- * selecting a placeholder threw `can't access property "split", valueString is
68
- * null` and the model never updated — the control looked frozen on that option.
69
- */
70
- extractId(valueString) {
71
- return valueString == null ? null : valueString.split(':')[0];
43
+ registerOnTouched(fn) {
44
+ this.onTouched = fn;
45
+ }
46
+ setDisabledState(isDisabled) {
47
+ this.disabled.set(isDisabled);
72
48
  }
73
49
  writeValue(value) {
74
50
  this.value = value;
75
- const id = this.getOptionId(value);
76
- const valueString = this.buildValueString(id, value);
77
- this.setProperty('value', valueString);
51
+ const valueString = value == null ? null : this.buildValueString(this.getOptionId(value), value);
52
+ this.viewValue.set(valueString);
53
+ // An option can get its value after the first render; re-select right away.
54
+ const select = this.element.querySelector('select');
55
+ if (select && !select.multiple)
56
+ syncSelection(select, false, valueString, []);
57
+ }
58
+ onNativeChange(event) {
59
+ const select = event.target;
60
+ if (!(select instanceof HTMLSelectElement) || select.multiple)
61
+ return;
62
+ const valueString = select.value || null;
63
+ this.viewValue.set(valueString);
64
+ this.value = this.getOptionValue(valueString);
65
+ this.onChange(this.value);
78
66
  }
79
67
  registerOption() {
80
68
  return (this.idCounter++).toString();
81
69
  }
70
+ setOption(id, value) {
71
+ this.optionMap.set(id, value);
72
+ this.writeValue(this.value);
73
+ }
74
+ removeOption(id) {
75
+ this.optionMap.delete(id);
76
+ this.writeValue(this.value);
77
+ }
78
+ /** Re-select after an option's plain value changed. */
79
+ refresh() {
80
+ this.writeValue(this.value);
81
+ }
82
+ buildValueString(id, value) {
83
+ if (id == null)
84
+ return `${value}`;
85
+ const shown = value && typeof value === 'object' ? 'Object' : value;
86
+ return `${id}: ${shown}`.slice(0, 50);
87
+ }
82
88
  /** The id of the registered option whose value matches, or null when none does. */
83
89
  getOptionId(value) {
84
- return [...this.optionMap.keys()].find((id) => this.compareWithFunction(this.optionMap.get(id), value)) ?? null;
90
+ const compare = this.compareWith();
91
+ return [...this.optionMap.keys()].find((id) => compare(this.optionMap.get(id), value)) ?? null;
85
92
  }
93
+ /**
94
+ * An empty selection (a `<option value="">` placeholder) reaches the model as
95
+ * `null`; a plain `value` option is never registered and passes its string.
96
+ */
86
97
  getOptionValue(valueString) {
87
- const id = this.extractId(valueString);
88
- // Options declared with a plain `value` attribute are never registered in
89
- // optionMap — only `[ngValue]` registers — so falling through to the raw
90
- // string is the normal path for them, and passing null through is how a
91
- // placeholder selection reaches the model as "nothing chosen".
98
+ const id = valueString == null ? null : valueString.split(':')[0];
92
99
  return id !== null && this.optionMap.has(id) ? this.optionMap.get(id) : valueString;
93
100
  }
94
101
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
95
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsSelectValueAccessor, isStandalone: true, selector: "bs-select", inputs: { compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "hostOnChange($event)", "focusout": "onTouched()" } }, providers: [{
96
- provide: NG_VALUE_ACCESSOR,
97
- useExisting: forwardRef(() => BsSelectValueAccessor),
98
- multi: true,
99
- }], ngImport: i0 }); }
102
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsSelectValueAccessor, isStandalone: true, selector: "bs-select", inputs: { compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "onNativeChange($event)", "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSelectValueAccessor), multi: true }], ngImport: i0 }); }
100
103
  }
101
104
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectValueAccessor, decorators: [{
102
105
  type: Directive,
103
106
  args: [{
104
107
  selector: 'bs-select',
105
- providers: [{
106
- provide: NG_VALUE_ACCESSOR,
107
- useExisting: forwardRef(() => BsSelectValueAccessor),
108
- multi: true,
109
- }],
108
+ providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSelectValueAccessor), multi: true }],
110
109
  host: {
111
- '(change)': 'hostOnChange($event)',
112
- // focusout, not blur: the focusable <select> lives in mp-select's shadow root, and blur
113
- // neither bubbles nor reaches an ancestor of the shadow host, so (blur) here never fired
114
- // and the control was never marked touched. focusout is composed and bubbles.
110
+ // The native change bubbles out of the light-DOM <select>.
111
+ '(change)': 'onNativeChange($event)',
115
112
  '(focusout)': 'onTouched()',
116
113
  },
117
114
  }]
118
- }], ctorParameters: () => [], propDecorators: { compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }] } });
115
+ }], propDecorators: { compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }] } });
116
+ /**
117
+ * Every `<option>` in a template that imports it: inside a `bs-select`, an
118
+ * `[ngValue]` (any value) or a `[value]` (a string). It writes the `selected`
119
+ * attribute for the selected option, so the server-rendered page shows the
120
+ * selection with JavaScript off.
121
+ */
119
122
  class BsSelectOption {
120
123
  constructor() {
121
- this.element = inject(ElementRef);
124
+ this.element = inject(ElementRef).nativeElement;
122
125
  this.renderer = inject(Renderer2);
123
126
  this.select = inject(BsSelectValueAccessor, { optional: true, host: true });
127
+ this.id = this.select?.registerOption() ?? '';
124
128
  this.ngValue = input(undefined, /* @ts-ignore */
125
129
  ...(ngDevMode ? [{ debugName: "ngValue" }] : /* istanbul ignore next */ []));
126
130
  this.value = input(undefined, /* @ts-ignore */
127
131
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
128
- if (this.select) {
129
- this.id = this.select.registerOption();
130
- }
132
+ this.valueString = signal(null, /* @ts-ignore */
133
+ ...(ngDevMode ? [{ debugName: "valueString" }] : /* istanbul ignore next */ []));
134
+ this.isSelected = computed(() => !!this.select && this.valueString() !== null && this.select.selected() === this.valueString(), /* @ts-ignore */
135
+ ...(ngDevMode ? [{ debugName: "isSelected" }] : /* istanbul ignore next */ []));
131
136
  effect(() => {
132
- const val = this.ngValue();
133
- if (val !== undefined && this.select) {
134
- this.select.optionMap.set(this.id, val);
135
- this.setElementValue(this.select.buildValueString(this.id, val));
136
- this.select.writeValue(this.select.value);
137
- }
137
+ const ngValue = this.ngValue();
138
+ if (ngValue === undefined || !this.select)
139
+ return;
140
+ this.setValue(this.select.buildValueString(this.id, ngValue));
141
+ this.select.setOption(this.id, ngValue);
138
142
  });
139
143
  effect(() => {
140
- const val = this.value();
141
- if (val !== undefined) {
142
- this.setElementValue(val);
143
- if (this.select) {
144
- this.select.writeValue(this.select.value);
145
- }
146
- }
144
+ const value = this.value();
145
+ if (value === undefined)
146
+ return;
147
+ this.setValue(value);
148
+ this.select?.refresh();
147
149
  });
148
150
  }
149
- setElementValue(value) {
150
- this.renderer.setProperty(this.element.nativeElement, 'value', value);
151
+ setValue(value) {
152
+ // The attribute, so the server-rendered option carries it too.
153
+ this.renderer.setAttribute(this.element, 'value', value);
154
+ this.valueString.set(value);
151
155
  }
152
156
  ngOnDestroy() {
153
- if (this.select) {
154
- this.select.optionMap.delete(this.id);
155
- this.select.writeValue(this.select.value);
156
- }
157
+ this.select?.removeOption(this.id);
157
158
  }
158
159
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
159
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsSelectOption, isStandalone: true, selector: "option", inputs: { ngValue: { classPropertyName: "ngValue", publicName: "ngValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
160
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsSelectOption, isStandalone: true, selector: "option", inputs: { ngValue: { classPropertyName: "ngValue", publicName: "ngValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.selected": "isSelected() ? '' : null" } }, ngImport: i0 }); }
160
161
  }
161
162
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectOption, decorators: [{
162
163
  type: Directive,
163
164
  args: [{
164
165
  selector: 'option',
166
+ host: { '[attr.selected]': "isSelected() ? '' : null" },
165
167
  }]
166
168
  }], ctorParameters: () => [], propDecorators: { ngValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngValue", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
167
169
 
170
+ /*
171
+ * The Angular extension of the generated `bs-select` (PRD #437 D10 escape
172
+ * hatch): Angular forms. A bound form control drives the value and the
173
+ * disabled state, and its validity reaches the select's ARIA and message.
174
+ */
175
+ const hostDirectives = [
176
+ { directive: BsSelectValueAccessor, inputs: ['compareWith'] },
177
+ { directive: BsControlValidityDirective, inputs: ['errorMessages'] },
178
+ ];
179
+ function extendInputs(inputs) {
180
+ const accessor = inject(BsSelectValueAccessor, { self: true });
181
+ const validity = inject(BsControlValidityDirective, { self: true });
182
+ const merged = computed(() => {
183
+ const value = inputs();
184
+ const bound = accessor.bound();
185
+ return {
186
+ ...value,
187
+ value: bound ? accessor.viewValue() : value.value,
188
+ disabled: value.disabled || accessor.disabled(),
189
+ invalid: value.invalid || validity.invalid(),
190
+ required: value.required || validity.required(),
191
+ errorText: value.errorText ?? validity.errorText(),
192
+ };
193
+ }, /* @ts-ignore */
194
+ ...(ngDevMode ? [{ debugName: "merged" }] : /* istanbul ignore next */ []));
195
+ accessor.selected = computed(() => merged().value, /* @ts-ignore */
196
+ ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
197
+ return merged;
198
+ }
199
+
200
+ // GENERATED from the select manifest (select) by @mintplayer/nx-component-compiler. Do not edit.
201
+ /** The `option` slot of `<bs-select>`: `<ng-template bsSelectOption>` or `*bsSelectOption`. */
202
+ class BsSelectOptionDirective {
203
+ constructor() {
204
+ this.templateRef = inject(TemplateRef);
205
+ }
206
+ static ngTemplateContextGuard(_dir, ctx) {
207
+ return true;
208
+ }
209
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectOptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
210
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsSelectOptionDirective, isStandalone: true, selector: "[bsSelectOption]", ngImport: i0 }); }
211
+ }
212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectOptionDirective, decorators: [{
213
+ type: Directive,
214
+ args: [{ selector: '[bsSelectOption]' }]
215
+ }] });
216
+ /**
217
+ * Bootstrap `.form-select` around a native `<select>` (#437): it works and submits with JavaScript off.
218
+ *
219
+ * Give it `options`, or put `<option>` / `<optgroup>` children inside. `value` (or `values` when
220
+ * `multiple`) is two-way. An `aria-label` on the component names the select; so does `inputLabel`.
221
+ * The `option` slot renders rich option content where the engine supports customizable select.
222
+ */
168
223
  class BsSelectComponent {
224
+ #core;
169
225
  constructor() {
170
- // For debugging purposes
171
- this.identifier = input(0, /* @ts-ignore */
172
- ...(ngDevMode ? [{ debugName: "identifier" }] : /* istanbul ignore next */ []));
173
- /** Reference to the underlying `<mp-select>` WC. Read by
174
- * `BsSelectValueAccessor` to drive `value` / `disabled` via property
175
- * setters and listen for the bubbled, composed `change` event. */
176
- this.selectBox = viewChild.required('selectBox', /* @ts-ignore */
177
- ...(ngDevMode ? [{ debugName: "selectBox" }] : /* istanbul ignore next */ []));
226
+ /** The host element. */
227
+ this.elementRef = inject(ElementRef);
178
228
  this.size = input('md', /* @ts-ignore */
179
229
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
180
- this.multiple = input(false, /* @ts-ignore */
181
- ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
182
- this.numberVisible = input(null, /* @ts-ignore */
183
- ...(ngDevMode ? [{ debugName: "numberVisible" }] : /* istanbul ignore next */ []));
184
- this.disabled = input(false, /* @ts-ignore */
185
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
186
- effect(() => {
187
- const el = this.selectBox().nativeElement;
188
- el.size = this.size();
189
- el.multiple = this.multiple();
190
- el.numberVisible = this.numberVisible();
191
- el.disabled = this.disabled();
192
- });
230
+ this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
231
+ this.numberVisible = input(undefined, { ...(ngDevMode ? { debugName: "numberVisible" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
232
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
233
+ this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
234
+ this.invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
235
+ this.errorText = input(/* @ts-ignore */
236
+ ...(ngDevMode ? [undefined, { debugName: "errorText" }] : /* istanbul ignore next */ []));
237
+ this.name = input(/* @ts-ignore */
238
+ ...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
239
+ this.inputLabel = input(/* @ts-ignore */
240
+ ...(ngDevMode ? [undefined, { debugName: "inputLabel" }] : /* istanbul ignore next */ []));
241
+ this.value = model(null, /* @ts-ignore */
242
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
243
+ this.values = model([], /* @ts-ignore */
244
+ ...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
245
+ this.options = input(/* @ts-ignore */
246
+ ...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
247
+ /** The user picked: the value, and every value of a multiple select. */
248
+ this.valuechange = output();
249
+ this.optionSlot = contentChild(BsSelectOptionDirective, /* @ts-ignore */
250
+ ...(ngDevMode ? [{ debugName: "optionSlot" }] : /* istanbul ignore next */ []));
251
+ /** The template's named slots. */
252
+ this.slots = computed(() => ({ option: this.optionSlot()?.templateRef }), /* @ts-ignore */
253
+ ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
254
+ this.#core = useCore(selectCore, { inputs: extendInputs(() => ({ size: this.size(), multiple: this.multiple(), numberVisible: this.numberVisible(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), name: this.name(), inputLabel: this.inputLabel(), value: this.value(), values: this.values(), options: this.options() })), idPrefix: 'bs-select', outputs: { valueChange: this.valuechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'select' }), models: { value: this.value, values: this.values } });
255
+ /** The template's props. */
256
+ this.props = this.#core.props;
257
+ useScopedStyles('select', selectScopedStyles);
193
258
  }
194
259
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
195
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsSelectComponent, isStandalone: true, selector: "bs-select", inputs: { identifier: { classPropertyName: "identifier", publicName: "identifier", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, numberVisible: { classPropertyName: "numberVisible", publicName: "numberVisible", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "selectBox", first: true, predicate: ["selectBox"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i0.forwardRef(() => BsSelectValueAccessor), inputs: ["compareWith", "compareWith"] }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<mp-select bsForwardAria #selectBox>\n <ng-content></ng-content>\n</mp-select>\n", styles: [":host{display:inline-block}mp-select{display:block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
260
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsSelectComponent, isStandalone: true, selector: "bs-select", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, numberVisible: { classPropertyName: "numberVisible", publicName: "numberVisible", 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 }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", values: "valuesChange", valuechange: "valuechange" }, queries: [{ propertyName: "optionSlot", first: true, predicate: BsSelectOptionDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: BsSelectValueAccessor, inputs: ["compareWith", "compareWith"] }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/select/src/templates/select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<select data-mps=\"select\" [mpProps]=\"p_view.select\">\n @if (p_view.rich && slots().option) {\n <button data-mps=\"select\" type=\"button\">\n <selectedcontent></selectedcontent>\n </button>\n }\n @if (p_view.items) {\n @for (item of p_view.items; track item.key) {\n @if (item.group) {\n <optgroup data-mps=\"select\" [mpProps]=\"item.group\">\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: { option: o.option }, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n </optgroup>\n } @else {\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: { option: o.option }, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n }\n }\n } @else {\n <ng-content />\n }\n</select>\n@if (p_view.showFeedback) {\n <div data-mps=\"select\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\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 }); }
196
261
  }
197
262
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectComponent, decorators: [{
198
263
  type: Component,
199
- args: [{ selector: 'bs-select', imports: [BsForwardAriaDirective], changeDetection: ChangeDetectionStrategy.OnPush, schemas: [CUSTOM_ELEMENTS_SCHEMA], hostDirectives: [{
200
- directive: forwardRef(() => BsSelectValueAccessor),
201
- inputs: ['compareWith'],
202
- }, {
203
- directive: BsControlValidityDirective,
204
- inputs: ['errorMessages'],
205
- }], template: "<mp-select bsForwardAria #selectBox>\n <ng-content></ng-content>\n</mp-select>\n", styles: [":host{display:inline-block}mp-select{display:block}\n"] }]
206
- }], ctorParameters: () => [], propDecorators: { identifier: [{ type: i0.Input, args: [{ isSignal: true, alias: "identifier", required: false }] }], selectBox: [{ type: i0.ViewChild, args: ['selectBox', { isSignal: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], numberVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberVisible", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
264
+ args: [{ selector: 'bs-select', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/select/src/templates/select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<select data-mps=\"select\" [mpProps]=\"p_view.select\">\n @if (p_view.rich && slots().option) {\n <button data-mps=\"select\" type=\"button\">\n <selectedcontent></selectedcontent>\n </button>\n }\n @if (p_view.items) {\n @for (item of p_view.items; track item.key) {\n @if (item.group) {\n <optgroup data-mps=\"select\" [mpProps]=\"item.group\">\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: { option: o.option }, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n </optgroup>\n } @else {\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: { option: o.option }, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n }\n }\n } @else {\n <ng-content />\n }\n</select>\n@if (p_view.showFeedback) {\n <div data-mps=\"select\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n" }]
265
+ }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], numberVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberVisible", 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"] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], valuechange: [{ type: i0.Output, args: ["valuechange"] }], optionSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsSelectOptionDirective), { isSignal: true }] }] } });
266
+
267
+ // GENERATED from the select manifest by @mintplayer/nx-component-compiler. Do not edit.
207
268
 
208
269
  /**
209
270
  * Generated bundle index. Do not edit.
210
271
  */
211
272
 
212
- export { BsSelectComponent, BsSelectOption, BsSelectValueAccessor };
273
+ export { BsSelectComponent, BsSelectOption, BsSelectOptionDirective, BsSelectValueAccessor };
213
274
  //# sourceMappingURL=mintplayer-ng-bootstrap-select.mjs.map