@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,151 +1,205 @@
1
1
  import * as i0 from '@angular/core';
2
- import { model, input, signal, viewChild, effect, forwardRef, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
2
+ import { inject, Injector, DestroyRef, signal, effect, untracked, forwardRef, Directive, computed, ElementRef, model, input, numberAttribute, booleanAttribute, output, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { datepickerCore, datepickerScopedStyles } from '@mintplayer/ui-core/datepicker';
5
+ import * as i2 from '@mintplayer/ng-bootstrap/a11y';
6
+ import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';
3
7
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
4
- import { MpDatepickerElement } from '@mintplayer/web-components/datepicker';
5
- export * from '@mintplayer/web-components/datepicker';
8
+ import { isSameDate, dateOnly } from '@mintplayer/ui-core/calendar';
6
9
 
7
- // Side-effect: registers <mp-datepicker>.
8
- void MpDatepickerElement;
9
- function dateOnly(d) {
10
- return new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();
11
- }
12
- class BsDatepickerComponent {
10
+ /**
11
+ * The `ControlValueAccessor` and `Validator` of `bs-datepicker` (a host
12
+ * directive of the generated component, see `datepicker.angular.ts`). A bound
13
+ * form control drives the picked day through `viewValue`; a pick reaches the
14
+ * form through the component's `selectedDate` model, which a form write never
15
+ * echoes. A null form value clears the field.
16
+ *
17
+ * Validation: `min` / `max` (`{ min, actual }`, `{ max, actual }`) and
18
+ * `disabledDate` (the value is a day `disableDateFn` refuses).
19
+ */
20
+ class BsDatepickerValueAccessor {
13
21
  constructor() {
14
- this.selectedDate = model(new Date(), /* @ts-ignore */
15
- ...(ngDevMode ? [{ debugName: "selectedDate" }] : /* istanbul ignore next */ []));
16
- this.currentMonth = model(new Date(), /* @ts-ignore */
17
- ...(ngDevMode ? [{ debugName: "currentMonth" }] : /* istanbul ignore next */ []));
18
- this.disableDateFn = input(undefined, /* @ts-ignore */
19
- ...(ngDevMode ? [{ debugName: "disableDateFn" }] : /* istanbul ignore next */ []));
20
- this.min = input(undefined, /* @ts-ignore */
21
- ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
22
- this.max = input(undefined, /* @ts-ignore */
23
- ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
24
- this.firstDayOfWeek = input(1, /* @ts-ignore */
25
- ...(ngDevMode ? [{ debugName: "firstDayOfWeek" }] : /* istanbul ignore next */ []));
26
- this.locale = input(undefined, /* @ts-ignore */
27
- ...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
28
- this.placeholder = input('', /* @ts-ignore */
29
- ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
30
- this.triggerLabel = input('Choose date', /* @ts-ignore */
31
- ...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
32
- /** Disabled state driven by form's disable() (via setDisabledState) or [disabled] input. */
33
- this.formDisabled = signal(false, /* @ts-ignore */
34
- ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
35
- this.disabled = input(false, /* @ts-ignore */
22
+ this.injector = inject(Injector);
23
+ this.destroyRef = inject(DestroyRef);
24
+ /** A form control drives the day: its `viewValue` wins over the `selectedDate` input. */
25
+ this.bound = signal(false, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "bound" }] : /* istanbul ignore next */ []));
27
+ this.viewValue = signal(null, /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "viewValue" }] : /* istanbul ignore next */ []));
29
+ this.disabled = signal(false, /* @ts-ignore */
36
30
  ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
37
- this.effectiveDisabled = signal(false, /* @ts-ignore */
38
- ...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
39
- this.wcRef = viewChild.required('wc', /* @ts-ignore */
40
- ...(ngDevMode ? [{ debugName: "wcRef" }] : /* istanbul ignore next */ []));
41
- this.onChange = () => { };
42
- this.onTouched = () => { };
43
- this.onValidatorChange = () => { };
44
- // Mirror inputs to the WC.
45
- effect(() => {
46
- const wc = this.wcRef().nativeElement;
47
- wc.selectedDate = this.selectedDate();
48
- wc.currentMonth = this.currentMonth();
49
- wc.disableDateFn = this.disableDateFn() ?? null;
50
- wc.min = this.min() ?? null;
51
- wc.max = this.max() ?? null;
52
- wc.firstDayOfWeek = this.firstDayOfWeek();
53
- wc.locale = this.locale();
54
- wc.placeholder = this.placeholder();
55
- wc.triggerLabel = this.triggerLabel();
56
- wc.disabled = this.effectiveDisabled();
57
- wc.requestUpdate?.();
58
- });
59
- // Effective disabled = input OR form-disabled.
60
- effect(() => {
61
- this.effectiveDisabled.set(this.disabled() || this.formDisabled());
31
+ this.onChange = () => undefined;
32
+ this.onTouched = () => undefined;
33
+ this.onValidatorChange = () => undefined;
34
+ }
35
+ ngOnInit() {
36
+ // The component is created after its host directives, so it is looked up here.
37
+ const component = (this.component = this.injector.get(BsDatepickerComponent));
38
+ const sub = component.selecteddatechange.subscribe((value) => {
39
+ if (!this.bound() || isSameDate(value, this.viewValue()))
40
+ return;
41
+ this.viewValue.set(value);
42
+ this.onChange(value);
62
43
  });
63
- // Notify validator pipeline when min/max/disableDateFn change.
44
+ this.destroyRef.onDestroy(() => sub.unsubscribe());
45
+ // The limits are inputs: a change re-runs validation.
64
46
  effect(() => {
65
- // Establish reactive deps.
66
- this.min();
67
- this.max();
68
- this.disableDateFn();
69
- this.onValidatorChange();
70
- });
71
- }
72
- ngAfterViewInit() {
73
- // Initial sync via effect once viewChild resolves.
74
- }
75
- onSelectedDateChange(event) {
76
- const detail = event.detail;
77
- if (!(detail instanceof Date))
78
- return;
79
- this.selectedDate.set(detail);
80
- this.onChange(detail);
47
+ component.min();
48
+ component.max();
49
+ component.disableDateFn();
50
+ untracked(() => this.onValidatorChange());
51
+ }, { injector: this.injector });
81
52
  }
82
- onCurrentMonthChange(event) {
83
- const detail = event.detail;
84
- if (detail instanceof Date)
85
- this.currentMonth.set(detail);
86
- }
87
- onClosed() {
88
- // Treat closing the popup as a "touched" event for forms.
89
- this.onTouched();
90
- }
91
- /* ---- ControlValueAccessor ---- */
92
- writeValue(value) {
93
- if (value instanceof Date) {
94
- this.selectedDate.set(value);
95
- }
96
- // If value is null/undefined, leave the model alone — Angular forms call
97
- // writeValue(null) on form reset; we honor it by leaving the prior date
98
- // as a stable default. Consumers wanting to clear should bind to value or
99
- // use a separate clear gesture.
53
+ registerOnValidatorChange(fn) {
54
+ this.onValidatorChange = fn;
100
55
  }
101
56
  registerOnChange(fn) {
57
+ this.bound.set(true);
102
58
  this.onChange = fn;
103
59
  }
104
60
  registerOnTouched(fn) {
105
61
  this.onTouched = fn;
106
62
  }
63
+ writeValue(value) {
64
+ this.viewValue.set(value instanceof Date ? value : null);
65
+ }
107
66
  setDisabledState(isDisabled) {
108
- this.formDisabled.set(isDisabled);
67
+ this.disabled.set(isDisabled);
109
68
  }
110
- /* ---- Validator ---- */
111
69
  validate(control) {
112
70
  const value = control.value;
113
- if (!(value instanceof Date))
71
+ const component = this.component;
72
+ if (!(value instanceof Date) || !component)
114
73
  return null;
115
- const errors = {};
116
- const min = this.min();
117
- const max = this.max();
118
- if (min && dateOnly(value) < dateOnly(min)) {
119
- errors['min'] = { min, actual: value };
120
- }
121
- if (max && dateOnly(value) > dateOnly(max)) {
122
- errors['max'] = { max, actual: value };
123
- }
124
- const fn = this.disableDateFn();
125
- if (fn && fn(value))
126
- errors['disabledDate'] = true;
74
+ const day = dateOnly(value);
75
+ const min = component.min();
76
+ const max = component.max();
77
+ const disable = component.disableDateFn();
78
+ const errors = {
79
+ ...(min && day < dateOnly(min) ? { min: { min, actual: value } } : {}),
80
+ ...(max && day > dateOnly(max) ? { max: { max, actual: value } } : {}),
81
+ ...(disable?.(value) ? { disabledDate: true } : {}),
82
+ };
127
83
  return Object.keys(errors).length ? errors : null;
128
84
  }
129
- registerOnValidatorChange(fn) {
130
- this.onValidatorChange = fn;
85
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatepickerValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
86
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsDatepickerValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [
87
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatepickerValueAccessor), multi: true },
88
+ { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatepickerValueAccessor), multi: true },
89
+ ], ngImport: i0 }); }
90
+ }
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatepickerValueAccessor, decorators: [{
92
+ type: Directive,
93
+ args: [{
94
+ providers: [
95
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatepickerValueAccessor), multi: true },
96
+ { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatepickerValueAccessor), multi: true },
97
+ ],
98
+ host: {
99
+ '(focusout)': 'onTouched()',
100
+ },
101
+ }]
102
+ }] });
103
+
104
+ /*
105
+ * The Angular extension of the generated `bs-datepicker` (PRD #437 D10 escape
106
+ * hatch): Angular forms. A bound form control drives the picked day and the
107
+ * disabled state, its validity reaches the field's ARIA and message, and it is
108
+ * validated against min, max and disableDateFn.
109
+ */
110
+ const hostDirectives = [
111
+ BsDatepickerValueAccessor,
112
+ { directive: BsControlValidityDirective, inputs: ['errorMessages'] },
113
+ ];
114
+ function extendInputs(inputs) {
115
+ const accessor = inject(BsDatepickerValueAccessor, { self: true });
116
+ const validity = inject(BsControlValidityDirective, { self: true });
117
+ return computed(() => {
118
+ const value = inputs();
119
+ return {
120
+ ...value,
121
+ selectedDate: accessor.bound() ? accessor.viewValue() : value.selectedDate,
122
+ disabled: value.disabled || accessor.disabled(),
123
+ invalid: value.invalid || validity.invalid(),
124
+ required: value.required || validity.required(),
125
+ errorText: value.errorText ?? validity.errorText(),
126
+ };
127
+ });
128
+ }
129
+
130
+ // GENERATED from the datepicker manifest (datepicker) by @mintplayer/nx-component-compiler. Do not edit.
131
+ /**
132
+ * A date field with a month-grid popup (#437): the APG date picker dialog.
133
+ *
134
+ * With JavaScript off it is a native date field that submits `name` as YYYY-MM-DD. Once
135
+ * hydrated the field becomes a readonly display, a button opens the grid in a native popover,
136
+ * and a hidden input carries the submitted value.
137
+ */
138
+ class BsDatepickerComponent {
139
+ #core;
140
+ constructor() {
141
+ /** The host element. */
142
+ this.elementRef = inject(ElementRef);
143
+ this.selectedDate = model(null, /* @ts-ignore */
144
+ ...(ngDevMode ? [{ debugName: "selectedDate" }] : /* istanbul ignore next */ []));
145
+ this.currentMonth = model(null, /* @ts-ignore */
146
+ ...(ngDevMode ? [{ debugName: "currentMonth" }] : /* istanbul ignore next */ []));
147
+ this.min = input(null, /* @ts-ignore */
148
+ ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
149
+ this.max = input(null, /* @ts-ignore */
150
+ ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
151
+ this.disableDateFn = input(null, /* @ts-ignore */
152
+ ...(ngDevMode ? [{ debugName: "disableDateFn" }] : /* istanbul ignore next */ []));
153
+ this.firstDayOfWeek = input(1, { ...(ngDevMode ? { debugName: "firstDayOfWeek" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
154
+ this.locale = input(null, /* @ts-ignore */
155
+ ...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
156
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
157
+ this.placeholder = input(null, /* @ts-ignore */
158
+ ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
159
+ this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
160
+ this.invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
161
+ this.errorText = input(null, /* @ts-ignore */
162
+ ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
163
+ this.inputLabel = input(null, /* @ts-ignore */
164
+ ...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
165
+ this.name = input(null, /* @ts-ignore */
166
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
167
+ this.labels = input(null, /* @ts-ignore */
168
+ ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
169
+ this.calendarLabels = input(null, /* @ts-ignore */
170
+ ...(ngDevMode ? [{ debugName: "calendarLabels" }] : /* istanbul ignore next */ []));
171
+ /** A day picked in the grid, or typed into the field before hydration. */
172
+ this.selecteddatechange = output();
173
+ /** The grid moved to another month. */
174
+ this.currentmonthchange = output();
175
+ /** The popup opened (true) or closed (false). */
176
+ this.openchange = output();
177
+ this.#core = useCore(datepickerCore, { inputs: extendInputs(() => ({ selectedDate: this.selectedDate(), currentMonth: this.currentMonth(), min: this.min(), max: this.max(), disableDateFn: this.disableDateFn(), firstDayOfWeek: this.firstDayOfWeek(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels(), calendarLabels: this.calendarLabels() })), idPrefix: 'bs-datepicker', outputs: { selectedDateChange: this.selecteddatechange, currentMonthChange: this.currentmonthchange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'datepicker' }), models: { selectedDate: this.selectedDate, currentMonth: this.currentMonth } });
178
+ /** The template's props. */
179
+ this.props = this.#core.props;
180
+ useScopedStyles('datepicker', datepickerScopedStyles);
181
+ }
182
+ /** Open the grid (ignored when disabled). */
183
+ open(...args) {
184
+ return this.#core.call('open', args);
185
+ }
186
+ /** Close the grid. */
187
+ close(...args) {
188
+ return this.#core.call('close', args);
131
189
  }
132
190
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
133
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsDatepickerComponent, isStandalone: true, selector: "bs-datepicker", inputs: { selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: false, transformFunction: null }, currentMonth: { classPropertyName: "currentMonth", publicName: "currentMonth", isSignal: true, isRequired: false, transformFunction: null }, disableDateFn: { classPropertyName: "disableDateFn", publicName: "disableDateFn", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, triggerLabel: { classPropertyName: "triggerLabel", publicName: "triggerLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedDate: "selectedDateChange", currentMonth: "currentMonthChange" }, providers: [
134
- { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatepickerComponent), multi: true },
135
- { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatepickerComponent), multi: true },
136
- ], viewQueries: [{ propertyName: "wcRef", first: true, predicate: ["wc"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-datepicker\n #wc\n (selected-date-change)=\"onSelectedDateChange($event)\"\n (current-month-change)=\"onCurrentMonthChange($event)\"\n (closed)=\"onClosed()\">\n</mp-datepicker>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
191
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsDatepickerComponent, isStandalone: true, selector: "bs-datepicker", inputs: { selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: false, transformFunction: null }, currentMonth: { classPropertyName: "currentMonth", publicName: "currentMonth", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, disableDateFn: { classPropertyName: "disableDateFn", publicName: "disableDateFn", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", 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 }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, calendarLabels: { classPropertyName: "calendarLabels", publicName: "calendarLabels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedDate: "selectedDateChange", currentMonth: "currentMonthChange", selecteddatechange: "selecteddatechange", currentmonthchange: "currentmonthchange", openchange: "openchange" }, hostDirectives: [{ directive: BsDatepickerValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/datepicker/src/templates/datepicker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"datepicker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"datepicker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"datepicker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.trigger) {\n <button data-mps=\"datepicker\" [mpProps]=\"p_view.trigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"datepicker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"datepicker\" [mpProps]=\"p_view.popup\">\n <div data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.root\">\n <div data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.nav\">\n <button data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.previous\"></button>\n <span data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.monthLabel\">\n {{ p_view.calendar.monthText }}\n </span>\n <button data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.next\"></button>\n </div>\n <table data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.grid\">\n <tbody data-mps=\"datepicker\">\n <tr data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.headRow\">\n <th data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.weekHeader\">\n <span data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.weekHeaderText\">\n {{ p_view.calendar.weekLabel }}\n </span>\n </th>\n @for (day of p_view.calendar.weekdays; track day.key) {\n <th data-mps=\"datepicker\" [mpProps]=\"day.bag\">\n {{ day.text }}\n </th>\n }\n </tr>\n @for (week of p_view.calendar.weeks; track week.key) {\n <tr data-mps=\"datepicker\" [mpProps]=\"week.row\">\n <th data-mps=\"datepicker\" [mpProps]=\"week.header\">\n {{ week.number }}\n </th>\n @for (cell of week.cells; track cell.key) {\n <td data-mps=\"datepicker\" [mpProps]=\"cell.cell\">\n @if (cell.content) {\n <span data-mps=\"datepicker\" [mpProps]=\"cell.content\">\n {{ cell.text }}\n </span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
137
192
  }
138
193
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatepickerComponent, decorators: [{
139
194
  type: Component,
140
- args: [{ selector: 'bs-datepicker', schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
141
- { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatepickerComponent), multi: true },
142
- { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatepickerComponent), multi: true },
143
- ], template: "<mp-datepicker\n #wc\n (selected-date-change)=\"onSelectedDateChange($event)\"\n (current-month-change)=\"onCurrentMonthChange($event)\"\n (closed)=\"onClosed()\">\n</mp-datepicker>\n" }]
144
- }], ctorParameters: () => [], propDecorators: { selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: false }] }, { type: i0.Output, args: ["selectedDateChange"] }], currentMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentMonth", required: false }] }, { type: i0.Output, args: ["currentMonthChange"] }], disableDateFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableDateFn", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], triggerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerLabel", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], wcRef: [{ type: i0.ViewChild, args: ['wc', { isSignal: true }] }] } });
195
+ args: [{ selector: 'bs-datepicker', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/datepicker/src/templates/datepicker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"datepicker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"datepicker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"datepicker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.trigger) {\n <button data-mps=\"datepicker\" [mpProps]=\"p_view.trigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"datepicker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"datepicker\" [mpProps]=\"p_view.popup\">\n <div data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.root\">\n <div data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.nav\">\n <button data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.previous\"></button>\n <span data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.monthLabel\">\n {{ p_view.calendar.monthText }}\n </span>\n <button data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.next\"></button>\n </div>\n <table data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.grid\">\n <tbody data-mps=\"datepicker\">\n <tr data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.headRow\">\n <th data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.weekHeader\">\n <span data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.weekHeaderText\">\n {{ p_view.calendar.weekLabel }}\n </span>\n </th>\n @for (day of p_view.calendar.weekdays; track day.key) {\n <th data-mps=\"datepicker\" [mpProps]=\"day.bag\">\n {{ day.text }}\n </th>\n }\n </tr>\n @for (week of p_view.calendar.weeks; track week.key) {\n <tr data-mps=\"datepicker\" [mpProps]=\"week.row\">\n <th data-mps=\"datepicker\" [mpProps]=\"week.header\">\n {{ week.number }}\n </th>\n @for (cell of week.cells; track cell.key) {\n <td data-mps=\"datepicker\" [mpProps]=\"cell.cell\">\n @if (cell.content) {\n <span data-mps=\"datepicker\" [mpProps]=\"cell.content\">\n {{ cell.text }}\n </span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n</div>\n" }]
196
+ }], ctorParameters: () => [], propDecorators: { selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: false }] }, { type: i0.Output, args: ["selectedDateChange"] }], currentMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentMonth", required: false }] }, { type: i0.Output, args: ["currentMonthChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], disableDateFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableDateFn", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", 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 }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], calendarLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "calendarLabels", required: false }] }], selecteddatechange: [{ type: i0.Output, args: ["selecteddatechange"] }], currentmonthchange: [{ type: i0.Output, args: ["currentmonthchange"] }], openchange: [{ type: i0.Output, args: ["openchange"] }] } });
197
+
198
+ // GENERATED from the datepicker manifest by @mintplayer/nx-component-compiler. Do not edit.
145
199
 
146
200
  /**
147
201
  * Generated bundle index. Do not edit.
148
202
  */
149
203
 
150
- export { BsDatepickerComponent };
204
+ export { BsDatepickerComponent, BsDatepickerValueAccessor };
151
205
  //# sourceMappingURL=mintplayer-ng-bootstrap-datepicker.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-datepicker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/datepicker/src/datepicker.component.ts","../../../../libs/mintplayer-ng-bootstrap/datepicker/src/datepicker.component.html","../../../../libs/mintplayer-ng-bootstrap/datepicker/mintplayer-ng-bootstrap-datepicker.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n forwardRef,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport type { FirstDayOfWeek } from '@mintplayer/web-components/calendar';\nimport { MpDatepickerElement } from '@mintplayer/web-components/datepicker';\n\n// Side-effect: registers <mp-datepicker>.\nvoid MpDatepickerElement;\n\nfunction dateOnly(d: Date): number {\n return new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();\n}\n\n@Component({\n selector: 'bs-datepicker',\n templateUrl: './datepicker.component.html',\n styleUrls: ['./datepicker.component.scss'],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatepickerComponent), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatepickerComponent), multi: true },\n ],\n})\nexport class BsDatepickerComponent implements AfterViewInit, ControlValueAccessor, Validator {\n selectedDate = model<Date>(new Date());\n currentMonth = model<Date>(new Date());\n disableDateFn = input<((date: Date) => boolean) | undefined>(undefined);\n min = input<Date | undefined>(undefined);\n max = input<Date | undefined>(undefined);\n firstDayOfWeek = input<FirstDayOfWeek>(1);\n locale = input<string | undefined>(undefined);\n placeholder = input<string>('');\n triggerLabel = input<string>('Choose date');\n\n /** Disabled state driven by form's disable() (via setDisabledState) or [disabled] input. */\n protected readonly formDisabled = signal(false);\n disabled = input<boolean>(false);\n protected readonly effectiveDisabled = signal(false);\n\n readonly wcRef = viewChild.required<ElementRef<MpDatepickerElement>>('wc');\n\n private onChange: (value: Date | null) => void = () => {};\n private onTouched: () => void = () => {};\n private onValidatorChange: () => void = () => {};\n\n constructor() {\n // Mirror inputs to the WC.\n effect(() => {\n const wc = this.wcRef().nativeElement;\n wc.selectedDate = this.selectedDate();\n wc.currentMonth = this.currentMonth();\n wc.disableDateFn = this.disableDateFn() ?? null;\n wc.min = this.min() ?? null;\n wc.max = this.max() ?? null;\n wc.firstDayOfWeek = this.firstDayOfWeek();\n wc.locale = this.locale();\n wc.placeholder = this.placeholder();\n wc.triggerLabel = this.triggerLabel();\n wc.disabled = this.effectiveDisabled();\n wc.requestUpdate?.();\n });\n\n // Effective disabled = input OR form-disabled.\n effect(() => {\n this.effectiveDisabled.set(this.disabled() || this.formDisabled());\n });\n\n // Notify validator pipeline when min/max/disableDateFn change.\n effect(() => {\n // Establish reactive deps.\n this.min();\n this.max();\n this.disableDateFn();\n this.onValidatorChange();\n });\n }\n\n ngAfterViewInit(): void {\n // Initial sync via effect once viewChild resolves.\n }\n\n onSelectedDateChange(event: Event): void {\n const detail = (event as CustomEvent<Date>).detail;\n if (!(detail instanceof Date)) return;\n this.selectedDate.set(detail);\n this.onChange(detail);\n }\n\n onCurrentMonthChange(event: Event): void {\n const detail = (event as CustomEvent<Date>).detail;\n if (detail instanceof Date) this.currentMonth.set(detail);\n }\n\n onClosed(): void {\n // Treat closing the popup as a \"touched\" event for forms.\n this.onTouched();\n }\n\n /* ---- ControlValueAccessor ---- */\n\n writeValue(value: Date | null | undefined): void {\n if (value instanceof Date) {\n this.selectedDate.set(value);\n }\n // If value is null/undefined, leave the model alone — Angular forms call\n // writeValue(null) on form reset; we honor it by leaving the prior date\n // as a stable default. Consumers wanting to clear should bind to value or\n // use a separate clear gesture.\n }\n\n registerOnChange(fn: (value: Date | null) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n /* ---- Validator ---- */\n\n validate(control: AbstractControl): ValidationErrors | null {\n const value = control.value;\n if (!(value instanceof Date)) return null;\n const errors: ValidationErrors = {};\n const min = this.min();\n const max = this.max();\n if (min && dateOnly(value) < dateOnly(min)) {\n errors['min'] = { min, actual: value };\n }\n if (max && dateOnly(value) > dateOnly(max)) {\n errors['max'] = { max, actual: value };\n }\n const fn = this.disableDateFn();\n if (fn && fn(value)) errors['disabledDate'] = true;\n return Object.keys(errors).length ? errors : null;\n }\n\n registerOnValidatorChange(fn: () => void): void {\n this.onValidatorChange = fn;\n }\n}\n","<mp-datepicker\n #wc\n (selected-date-change)=\"onSelectedDateChange($event)\"\n (current-month-change)=\"onCurrentMonthChange($event)\"\n (closed)=\"onClosed()\">\n</mp-datepicker>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAwBA;AACA,KAAK,mBAAmB;AAExB,SAAS,QAAQ,CAAC,CAAO,EAAA;IACvB,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;AACvE;MAaa,qBAAqB,CAAA;AAsBhC,IAAA,WAAA,GAAA;AArBA,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAO,IAAI,IAAI,EAAE;yFAAC;AACtC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAO,IAAI,IAAI,EAAE;yFAAC;QACtC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAwC,SAAS;0FAAC;QACvE,IAAA,CAAA,GAAG,GAAG,KAAK,CAAmB,SAAS;gFAAC;QACxC,IAAA,CAAA,GAAG,GAAG,KAAK,CAAmB,SAAS;gFAAC;QACxC,IAAA,CAAA,cAAc,GAAG,KAAK,CAAiB,CAAC;2FAAC;QACzC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAqB,SAAS;mFAAC;QAC7C,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE;wFAAC;QAC/B,IAAA,CAAA,YAAY,GAAG,KAAK,CAAS,aAAa;yFAAC;;QAGxB,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,KAAK;yFAAC;QAC/C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK;qFAAC;QACb,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,KAAK;8FAAC;AA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C9F,qBAAA,EAAA,QAAA,EAAA,6LAAA,EAAA;+pCAkBoE,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1D3E;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-datepicker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/datepicker/src/value-accessor/datepicker-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/datepicker/src/datepicker.angular.ts","../../../../libs/mintplayer-ng-bootstrap/datepicker/src/generated/datepicker.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/datepicker/src/generated/datepicker.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/datepicker/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/datepicker/mintplayer-ng-bootstrap-datepicker.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, effect, forwardRef, inject, signal, untracked } from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { dateOnly, isSameDate } from '@mintplayer/ui-core/calendar';\nimport { BsDatepickerComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` and `Validator` of `bs-datepicker` (a host\n * directive of the generated component, see `datepicker.angular.ts`). A bound\n * form control drives the picked day through `viewValue`; a pick reaches the\n * form through the component's `selectedDate` model, which a form write never\n * echoes. A null form value clears the field.\n *\n * Validation: `min` / `max` (`{ min, actual }`, `{ max, actual }`) and\n * `disabledDate` (the value is a day `disableDateFn` refuses).\n */\n@Directive({\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatepickerValueAccessor), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatepickerValueAccessor), multi: true },\n ],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsDatepickerValueAccessor implements ControlValueAccessor, Validator, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private component?: BsDatepickerComponent;\n\n /** A form control drives the day: its `viewValue` wins over the `selectedDate` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Date | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: Date | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n private onValidatorChange: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = (this.component = this.injector.get(BsDatepickerComponent));\n const sub = component.selecteddatechange.subscribe((value) => {\n if (!this.bound() || isSameDate(value, this.viewValue())) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n // The limits are inputs: a change re-runs validation.\n effect(\n () => {\n component.min();\n component.max();\n component.disableDateFn();\n untracked(() => this.onValidatorChange());\n },\n { injector: this.injector },\n );\n }\n\n registerOnValidatorChange(fn: () => void): void {\n this.onValidatorChange = fn;\n }\n\n registerOnChange(fn: (value: Date | null) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: Date | null | undefined): void {\n this.viewValue.set(value instanceof Date ? value : null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const value = control.value;\n const component = this.component;\n if (!(value instanceof Date) || !component) return null;\n const day = dateOnly(value);\n const min = component.min();\n const max = component.max();\n const disable = component.disableDateFn();\n const errors: ValidationErrors = {\n ...(min && day < dateOnly(min) ? { min: { min, actual: value } } : {}),\n ...(max && day > dateOnly(max) ? { max: { max, actual: value } } : {}),\n ...(disable?.(value) ? { disabledDate: true } : {}),\n };\n return Object.keys(errors).length ? errors : null;\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport type { DatepickerInputs } from '@mintplayer/ui-core/datepicker';\nimport { BsDatepickerValueAccessor } from './value-accessor/datepicker-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-datepicker` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the picked day and the\n * disabled state, its validity reaches the field's ARIA and message, and it is\n * validated against min, max and disableDateFn.\n */\n\nexport const hostDirectives = [\n BsDatepickerValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => DatepickerInputs): () => DatepickerInputs {\n const accessor = inject(BsDatepickerValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<DatepickerInputs>(() => {\n const value = inputs();\n return {\n ...value,\n selectedDate: accessor.bound() ? accessor.viewValue() : value.selectedDate,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the datepicker manifest (datepicker) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { datepickerCore, type DatepickerInputs, type DatepickerMethods, datepickerScopedStyles } from '@mintplayer/ui-core/datepicker';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../datepicker.angular';\n\n/**\n * A date field with a month-grid popup (#437): the APG date picker dialog.\n *\n * With JavaScript off it is a native date field that submits `name` as YYYY-MM-DD. Once\n * hydrated the field becomes a readonly display, a button opens the grid in a native popover,\n * and a hidden input carries the submitted value.\n */\n@Component({\n selector: 'bs-datepicker',\n templateUrl: './datepicker.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsDatepickerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedDate = model<DatepickerInputs['selectedDate']>(null);\n readonly currentMonth = model<DatepickerInputs['currentMonth']>(null);\n readonly min = input<DatepickerInputs['min']>(null);\n readonly max = input<DatepickerInputs['max']>(null);\n readonly disableDateFn = input<DatepickerInputs['disableDateFn']>(null);\n readonly firstDayOfWeek = input<DatepickerInputs['firstDayOfWeek'], unknown>(1, { transform: (v: unknown) => numberAttribute(v) as DatepickerInputs['firstDayOfWeek'] });\n readonly locale = input<DatepickerInputs['locale']>(null);\n readonly disabled = input<DatepickerInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<DatepickerInputs['placeholder']>(null);\n readonly required = input<DatepickerInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<DatepickerInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<DatepickerInputs['errorText']>(null);\n readonly inputLabel = input<DatepickerInputs['inputLabel']>(null);\n readonly name = input<DatepickerInputs['name']>(null);\n readonly labels = input<DatepickerInputs['labels']>(null);\n readonly calendarLabels = input<DatepickerInputs['calendarLabels']>(null);\n /** A day picked in the grid, or typed into the field before hydration. */\n readonly selecteddatechange = output<Date>();\n /** The grid moved to another month. */\n readonly currentmonthchange = output<Date>();\n /** The popup opened (true) or closed (false). */\n readonly openchange = output<boolean>();\n\n readonly #core = useCore(datepickerCore, { inputs: ext_extendInputs(() => ({ selectedDate: this.selectedDate(), currentMonth: this.currentMonth(), min: this.min(), max: this.max(), disableDateFn: this.disableDateFn(), firstDayOfWeek: this.firstDayOfWeek(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels(), calendarLabels: this.calendarLabels() })), idPrefix: 'bs-datepicker', outputs: { selectedDateChange: this.selecteddatechange, currentMonthChange: this.currentmonthchange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'datepicker' }), models: { selectedDate: this.selectedDate, currentMonth: this.currentMonth } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('datepicker', datepickerScopedStyles);\n }\n\n /** Open the grid (ignored when disabled). */\n open(...args: Parameters<DatepickerMethods['open']>): ReturnType<DatepickerMethods['open']> {\n return this.#core.call('open', args) as ReturnType<DatepickerMethods['open']>;\n }\n\n /** Close the grid. */\n close(...args: Parameters<DatepickerMethods['close']>): ReturnType<DatepickerMethods['close']> {\n return this.#core.call('close', args) as ReturnType<DatepickerMethods['close']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/datepicker/src/templates/datepicker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"datepicker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"datepicker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"datepicker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.trigger) {\n <button data-mps=\"datepicker\" [mpProps]=\"p_view.trigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"datepicker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"datepicker\" [mpProps]=\"p_view.popup\">\n <div data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.root\">\n <div data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.nav\">\n <button data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.previous\"></button>\n <span data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.monthLabel\">\n {{ p_view.calendar.monthText }}\n </span>\n <button data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.next\"></button>\n </div>\n <table data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.grid\">\n <tbody data-mps=\"datepicker\">\n <tr data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.headRow\">\n <th data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.weekHeader\">\n <span data-mps=\"datepicker\" [mpProps]=\"p_view.calendar.weekHeaderText\">\n {{ p_view.calendar.weekLabel }}\n </span>\n </th>\n @for (day of p_view.calendar.weekdays; track day.key) {\n <th data-mps=\"datepicker\" [mpProps]=\"day.bag\">\n {{ day.text }}\n </th>\n }\n </tr>\n @for (week of p_view.calendar.weeks; track week.key) {\n <tr data-mps=\"datepicker\" [mpProps]=\"week.row\">\n <th data-mps=\"datepicker\" [mpProps]=\"week.header\">\n {{ week.number }}\n </th>\n @for (cell of week.cells; track cell.key) {\n <td data-mps=\"datepicker\" [mpProps]=\"cell.cell\">\n @if (cell.content) {\n <span data-mps=\"datepicker\" [mpProps]=\"cell.content\">\n {{ cell.text }}\n </span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n</div>\n","// GENERATED from the datepicker manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsDatepickerComponent } from './datepicker.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsDatepickerValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;AAYA;;;;;;;;;AASG;MAUU,yBAAyB,CAAA;AATtC,IAAA,WAAA,GAAA;AAUmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAIvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAc,IAAI;sFAAC;QACrC,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAAiC,MAAM,SAAS;AAChE,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AAC/B,QAAA,IAAA,CAAA,iBAAiB,GAAe,MAAM,SAAS;AA2DxD,IAAA;IAzDC,QAAQ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