@mintplayer/ng-bootstrap 22.28.0 → 22.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/_bootstrap.scss +4 -101
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
  3. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
  5. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  6. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
  7. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
  9. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
  11. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
  13. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
  15. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
  17. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
  19. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
  21. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +157 -824
  25. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
  27. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
  29. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
  31. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
  33. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
  35. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
  37. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
  39. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
  41. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +283 -20
  43. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
  45. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
  47. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
  49. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
  51. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
  53. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
  55. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
  57. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
  59. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
  61. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
  63. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
  65. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
  67. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
  69. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
  71. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
  73. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
  75. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
  77. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
  79. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
  81. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
  83. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
  85. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
  87. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
  89. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  90. package/package.json +11 -9
  91. package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
  92. package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
  93. package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
  94. package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
  95. package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
  96. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
  97. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
  98. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
  99. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
  100. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
  101. package/types/mintplayer-ng-bootstrap-datatable.d.ts +222 -422
  102. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
  103. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
  104. package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
  105. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
  106. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
  107. package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
  108. package/types/mintplayer-ng-bootstrap-machine.d.ts +124 -4
  109. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
  110. package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
  111. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
  112. package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
  113. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
  114. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
  115. package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
  116. package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
  117. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
  118. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
  119. package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
  120. package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
  121. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
  122. package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
  123. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
  124. package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
  125. package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
  126. package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
  127. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
  128. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
  129. package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
  130. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
  131. package/src/styles/utilities/cursor.scss +0 -12
  132. package/src/styles/utilities/overflow.scss +0 -12
  133. package/src/styles/utilities/white-space.scss +0 -12
  134. package/src/styles/utilities/width.scss +0 -14
@@ -1,176 +1,214 @@
1
1
  import * as i0 from '@angular/core';
2
- import { model, input, signal, output, 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 { datetimePickerCore, datetimePickerScopedStyles } from '@mintplayer/ui-core/datetime-picker';
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 { MpDatetimePickerElement } from '@mintplayer/web-components/datetime-picker';
5
- export * from '@mintplayer/web-components/datetime-picker';
6
8
 
7
- void MpDatetimePickerElement;
8
- function dateOnly(d) {
9
- return new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();
9
+ /**
10
+ * The `ControlValueAccessor` and `Validator` of `bs-datetime-picker` (a host
11
+ * directive of the generated component, see `datetime-picker.angular.ts`). A
12
+ * bound form control drives the value through `viewValue`; a user's change
13
+ * reaches the form through the component's `value` model, which a form write
14
+ * never echoes.
15
+ *
16
+ * Validation: `min` / `max` compare the full date and time (`{ min, actual }`,
17
+ * `{ max, actual }`), the same bounds the grid and the list enforce, and
18
+ * `disabledDate` reports a day `disableDateFn` refuses.
19
+ */
20
+ class BsDatetimePickerValueAccessor {
21
+ constructor() {
22
+ this.injector = inject(Injector);
23
+ this.destroyRef = inject(DestroyRef);
24
+ /** A form control drives the value: its `viewValue` wins over the `value` 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 */
30
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
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(BsDatetimePickerComponent));
38
+ const sub = component.valuechange.subscribe((value) => {
39
+ if (!this.bound() || value?.getTime() === this.viewValue()?.getTime())
40
+ return;
41
+ this.viewValue.set(value);
42
+ this.onChange(value);
43
+ });
44
+ this.destroyRef.onDestroy(() => sub.unsubscribe());
45
+ // The limits are inputs: a change re-runs validation.
46
+ effect(() => {
47
+ component.min();
48
+ component.max();
49
+ component.disableDateFn();
50
+ untracked(() => this.onValidatorChange());
51
+ }, { injector: this.injector });
52
+ }
53
+ registerOnChange(fn) {
54
+ this.bound.set(true);
55
+ this.onChange = fn;
56
+ }
57
+ registerOnTouched(fn) {
58
+ this.onTouched = fn;
59
+ }
60
+ registerOnValidatorChange(fn) {
61
+ this.onValidatorChange = fn;
62
+ }
63
+ writeValue(value) {
64
+ this.viewValue.set(value instanceof Date ? value : null);
65
+ }
66
+ setDisabledState(isDisabled) {
67
+ this.disabled.set(isDisabled);
68
+ }
69
+ validate(control) {
70
+ const value = control.value;
71
+ const component = this.component;
72
+ if (!(value instanceof Date) || !component)
73
+ return null;
74
+ const min = component.min();
75
+ const max = component.max();
76
+ const disable = component.disableDateFn();
77
+ const errors = {
78
+ ...(min && value.getTime() < min.getTime() ? { min: { min, actual: value } } : {}),
79
+ ...(max && value.getTime() > max.getTime() ? { max: { max, actual: value } } : {}),
80
+ ...(disable?.(value) ? { disabledDate: true } : {}),
81
+ };
82
+ return Object.keys(errors).length ? errors : null;
83
+ }
84
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatetimePickerValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
85
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsDatetimePickerValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [
86
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatetimePickerValueAccessor), multi: true },
87
+ { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatetimePickerValueAccessor), multi: true },
88
+ ], ngImport: i0 }); }
89
+ }
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatetimePickerValueAccessor, decorators: [{
91
+ type: Directive,
92
+ args: [{
93
+ providers: [
94
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatetimePickerValueAccessor), multi: true },
95
+ { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatetimePickerValueAccessor), multi: true },
96
+ ],
97
+ host: {
98
+ '(focusout)': 'onTouched()',
99
+ },
100
+ }]
101
+ }] });
102
+
103
+ /*
104
+ * The Angular extension of the generated `bs-datetime-picker` (PRD #437 D10
105
+ * escape hatch): Angular forms. A bound form control drives the value and the
106
+ * disabled state, its validity reaches the field's ARIA and message, and it is
107
+ * validated against min, max and disableDateFn.
108
+ */
109
+ const hostDirectives = [
110
+ BsDatetimePickerValueAccessor,
111
+ { directive: BsControlValidityDirective, inputs: ['errorMessages'] },
112
+ ];
113
+ function extendInputs(inputs) {
114
+ const accessor = inject(BsDatetimePickerValueAccessor, { self: true });
115
+ const validity = inject(BsControlValidityDirective, { self: true });
116
+ return computed(() => {
117
+ const value = inputs();
118
+ return {
119
+ ...value,
120
+ value: accessor.bound() ? accessor.viewValue() : value.value,
121
+ disabled: value.disabled || accessor.disabled(),
122
+ invalid: value.invalid || validity.invalid(),
123
+ required: value.required || validity.required(),
124
+ errorText: value.errorText ?? validity.errorText(),
125
+ };
126
+ });
10
127
  }
128
+
129
+ // GENERATED from the datetime-picker manifest (datetime-picker) by @mintplayer/nx-component-compiler. Do not edit.
130
+ /**
131
+ * A date-and-time field with a month-grid popup and a slot-list popup (#437).
132
+ *
133
+ * With JavaScript off it is a native datetime-local field that submits `name` as
134
+ * YYYY-MM-DDTHH:MM. Once hydrated the field becomes a readonly display, two buttons open the
135
+ * grid and the list in native popovers, and a hidden input carries the submitted value.
136
+ */
11
137
  class BsDatetimePickerComponent {
138
+ #core;
12
139
  constructor() {
140
+ /** The host element. */
141
+ this.elementRef = inject(ElementRef);
13
142
  this.value = model(null, /* @ts-ignore */
14
143
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
15
- this.min = input(undefined, /* @ts-ignore */
144
+ this.min = input(null, /* @ts-ignore */
16
145
  ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
17
- this.max = input(undefined, /* @ts-ignore */
146
+ this.max = input(null, /* @ts-ignore */
18
147
  ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
19
- this.disableDateFn = input(undefined, /* @ts-ignore */
148
+ this.disableDateFn = input(null, /* @ts-ignore */
20
149
  ...(ngDevMode ? [{ debugName: "disableDateFn" }] : /* istanbul ignore next */ []));
21
- this.firstDayOfWeek = input(1, /* @ts-ignore */
22
- ...(ngDevMode ? [{ debugName: "firstDayOfWeek" }] : /* istanbul ignore next */ []));
23
- this.locale = input(undefined, /* @ts-ignore */
150
+ this.firstDayOfWeek = input(1, { ...(ngDevMode ? { debugName: "firstDayOfWeek" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
151
+ this.locale = input(null, /* @ts-ignore */
24
152
  ...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
25
153
  this.hour12 = input('auto', /* @ts-ignore */
26
154
  ...(ngDevMode ? [{ debugName: "hour12" }] : /* istanbul ignore next */ []));
27
- this.step = input(15, /* @ts-ignore */
28
- ...(ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []));
155
+ this.step = input(15, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
29
156
  this.defaultTime = input({ hour: 0, minute: 0 }, /* @ts-ignore */
30
157
  ...(ngDevMode ? [{ debugName: "defaultTime" }] : /* istanbul ignore next */ []));
31
- this.placeholder = input('', /* @ts-ignore */
158
+ this.placeholder = input(null, /* @ts-ignore */
32
159
  ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
33
- this.showClear = input(false, /* @ts-ignore */
34
- ...(ngDevMode ? [{ debugName: "showClear" }] : /* istanbul ignore next */ []));
35
- this.dateButtonLabel = input('Choose date', /* @ts-ignore */
36
- ...(ngDevMode ? [{ debugName: "dateButtonLabel" }] : /* istanbul ignore next */ []));
37
- this.timeButtonLabel = input('Choose time', /* @ts-ignore */
38
- ...(ngDevMode ? [{ debugName: "timeButtonLabel" }] : /* istanbul ignore next */ []));
39
- this.clearLabel = input('Clear', /* @ts-ignore */
40
- ...(ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []));
41
- this.todayLabel = input('Today', /* @ts-ignore */
42
- ...(ngDevMode ? [{ debugName: "todayLabel" }] : /* istanbul ignore next */ []));
43
- this.nowLabel = input('Now', /* @ts-ignore */
44
- ...(ngDevMode ? [{ debugName: "nowLabel" }] : /* istanbul ignore next */ []));
45
- /**
46
- * The `error-text` channel. A validation message for this control cannot be
47
- * supplied from outside — its role lives on an input inside the WC's shadow
48
- * root, and an IDREF does not cross that boundary — so it travels in as
49
- * text and is wired up in there.
50
- */
51
- this.invalid = input(false, /* @ts-ignore */
52
- ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
160
+ this.showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
161
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
162
+ this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
163
+ this.invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
53
164
  this.errorText = input(null, /* @ts-ignore */
54
165
  ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
55
- this.disabled = input(false, /* @ts-ignore */
56
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
57
- this.formDisabled = signal(false, /* @ts-ignore */
58
- ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
59
- this.effectiveDisabled = signal(false, /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
61
- this.opened = output();
62
- this.closed = output();
63
- this.wcRef = viewChild.required('wc', /* @ts-ignore */
64
- ...(ngDevMode ? [{ debugName: "wcRef" }] : /* istanbul ignore next */ []));
65
- this.onChange = () => { };
66
- this.onTouched = () => { };
67
- this.onValidatorChange = () => { };
68
- effect(() => {
69
- const wc = this.wcRef().nativeElement;
70
- wc.value = this.value();
71
- wc.min = this.min() ?? null;
72
- wc.max = this.max() ?? null;
73
- wc.disableDateFn = this.disableDateFn() ?? null;
74
- wc.firstDayOfWeek = this.firstDayOfWeek();
75
- wc.locale = this.locale();
76
- wc.hour12 = this.hour12();
77
- wc.step = this.step();
78
- wc.defaultTime = this.defaultTime();
79
- wc.placeholder = this.placeholder();
80
- wc.showClear = this.showClear();
81
- wc.dateButtonLabel = this.dateButtonLabel();
82
- wc.timeButtonLabel = this.timeButtonLabel();
83
- wc.clearLabel = this.clearLabel();
84
- wc.todayLabel = this.todayLabel();
85
- wc.nowLabel = this.nowLabel();
86
- wc.disabled = this.effectiveDisabled();
87
- wc.invalid = this.invalid();
88
- wc.errorText = this.errorText();
89
- wc.requestUpdate?.();
90
- });
91
- effect(() => {
92
- this.effectiveDisabled.set(this.disabled() || this.formDisabled());
93
- });
94
- effect(() => {
95
- this.min();
96
- this.max();
97
- this.disableDateFn();
98
- this.onValidatorChange();
99
- });
100
- }
101
- ngAfterViewInit() { }
102
- onValueChange(event) {
103
- const detail = event.detail;
104
- const next = detail instanceof Date ? detail : null;
105
- this.value.set(next);
106
- this.onChange(next);
107
- }
108
- onOpened(event) {
109
- const detail = event.detail;
110
- this.opened.emit(detail);
111
- }
112
- onClosed(event) {
113
- const detail = event.detail;
114
- this.closed.emit(detail);
115
- this.onTouched();
116
- }
117
- /* ---- ControlValueAccessor ---- */
118
- writeValue(value) {
119
- if (value instanceof Date) {
120
- this.value.set(value);
121
- }
122
- else if (value === null) {
123
- this.value.set(null);
124
- }
166
+ this.inputLabel = input(null, /* @ts-ignore */
167
+ ...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
168
+ this.name = input(null, /* @ts-ignore */
169
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
170
+ this.labels = input(null, /* @ts-ignore */
171
+ ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
172
+ this.calendarLabels = input(null, /* @ts-ignore */
173
+ ...(ngDevMode ? [{ debugName: "calendarLabels" }] : /* istanbul ignore next */ []));
174
+ /** The value changed by the user: a picked day or time, Today, Now, clear. */
175
+ this.valuechange = output();
176
+ /** Which popup is open now: 'date', 'time', or null. */
177
+ this.openchange = output();
178
+ this.#core = useCore(datetimePickerCore, { inputs: extendInputs(() => ({ value: this.value(), min: this.min(), max: this.max(), disableDateFn: this.disableDateFn(), firstDayOfWeek: this.firstDayOfWeek(), locale: this.locale(), hour12: this.hour12(), step: this.step(), defaultTime: this.defaultTime(), placeholder: this.placeholder(), showClear: this.showClear(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels(), calendarLabels: this.calendarLabels() })), idPrefix: 'bs-datetime-picker', outputs: { valueChange: this.valuechange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'datetime-picker' }), models: { value: this.value } });
179
+ /** The template's props. */
180
+ this.props = this.#core.props;
181
+ useScopedStyles('datetime-picker', datetimePickerScopedStyles);
125
182
  }
126
- registerOnChange(fn) {
127
- this.onChange = fn;
183
+ /** Open the month grid (ignored when disabled). */
184
+ openDate(...args) {
185
+ return this.#core.call('openDate', args);
128
186
  }
129
- registerOnTouched(fn) {
130
- this.onTouched = fn;
131
- }
132
- setDisabledState(isDisabled) {
133
- this.formDisabled.set(isDisabled);
187
+ /** Open the slot list (ignored when disabled). */
188
+ openTime(...args) {
189
+ return this.#core.call('openTime', args);
134
190
  }
135
- /* ---- Validator ---- */
136
- validate(control) {
137
- const value = control.value;
138
- if (!(value instanceof Date))
139
- return null;
140
- const errors = {};
141
- const min = this.min();
142
- const max = this.max();
143
- if (min && dateOnly(value) < dateOnly(min)) {
144
- errors['min'] = { min, actual: value };
145
- }
146
- if (max && dateOnly(value) > dateOnly(max)) {
147
- errors['max'] = { max, actual: value };
148
- }
149
- const fn = this.disableDateFn();
150
- if (fn && fn(value))
151
- errors['disabledDate'] = true;
152
- return Object.keys(errors).length ? errors : null;
191
+ /** Close whichever popup is open. */
192
+ closePopups(...args) {
193
+ return this.#core.call('closePopups', args);
153
194
  }
154
- registerOnValidatorChange(fn) {
155
- this.onValidatorChange = fn;
195
+ /** Clear the value (ignored when disabled). */
196
+ clear(...args) {
197
+ return this.#core.call('clear', args);
156
198
  }
157
199
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatetimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
158
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsDatetimePickerComponent, isStandalone: true, selector: "bs-datetime-picker", inputs: { value: { classPropertyName: "value", publicName: "value", 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 }, hour12: { classPropertyName: "hour12", publicName: "hour12", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, defaultTime: { classPropertyName: "defaultTime", publicName: "defaultTime", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, dateButtonLabel: { classPropertyName: "dateButtonLabel", publicName: "dateButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, timeButtonLabel: { classPropertyName: "timeButtonLabel", publicName: "timeButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, todayLabel: { classPropertyName: "todayLabel", publicName: "todayLabel", isSignal: true, isRequired: false, transformFunction: null }, nowLabel: { classPropertyName: "nowLabel", publicName: "nowLabel", 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 }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", opened: "opened", closed: "closed" }, providers: [
159
- { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatetimePickerComponent), multi: true },
160
- { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatetimePickerComponent), multi: true },
161
- ], viewQueries: [{ propertyName: "wcRef", first: true, predicate: ["wc"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-datetime-picker\n #wc\n (value-change)=\"onValueChange($event)\"\n (opened)=\"onOpened($event)\"\n (closed)=\"onClosed($event)\">\n</mp-datetime-picker>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
200
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsDatetimePickerComponent, isStandalone: true, selector: "bs-datetime-picker", inputs: { value: { classPropertyName: "value", publicName: "value", 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 }, hour12: { classPropertyName: "hour12", publicName: "hour12", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, defaultTime: { classPropertyName: "defaultTime", publicName: "defaultTime", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", 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 }, 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: { value: "valueChange", valuechange: "valuechange", openchange: "openchange" }, hostDirectives: [{ directive: BsDatetimePickerValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/datetime-picker/src/templates/datetime-picker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"datetime-picker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"datetime-picker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.clear) {\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.clear\"></button>\n }\n @if (p_view.dateTrigger) {\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.dateTrigger\"></button>\n }\n @if (p_view.timeTrigger) {\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeTrigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</div>\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.datePopup\">\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.root\">\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.nav\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.previous\"></button>\n <span data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.monthLabel\">\n {{ p_view.calendar.monthText }}\n </span>\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.next\"></button>\n </div>\n <table data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.grid\">\n <tbody data-mps=\"datetime-picker\">\n <tr data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.headRow\">\n <th data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.weekHeader\">\n <span data-mps=\"datetime-picker\" [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=\"datetime-picker\" [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=\"datetime-picker\" [mpProps]=\"week.row\">\n <th data-mps=\"datetime-picker\" [mpProps]=\"week.header\">\n {{ week.number }}\n </th>\n @for (cell of week.cells; track cell.key) {\n <td data-mps=\"datetime-picker\" [mpProps]=\"cell.cell\">\n @if (cell.content) {\n <span data-mps=\"datetime-picker\" [mpProps]=\"cell.content\">\n {{ cell.text }}\n </span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.dateFooter\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.today\">\n {{ p_view.todayText }}\n </button>\n </div>\n</div>\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.timePopup\">\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeList.root\">\n <ul data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeList.list\">\n @for (slot of p_view.timeList.slots; track slot.key) {\n <li data-mps=\"datetime-picker\" [mpProps]=\"slot.item\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n </ul>\n </div>\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeFooter\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.now\">\n {{ p_view.nowText }}\n </button>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
162
201
  }
163
202
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDatetimePickerComponent, decorators: [{
164
203
  type: Component,
165
- args: [{ selector: 'bs-datetime-picker', schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
166
- { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatetimePickerComponent), multi: true },
167
- { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatetimePickerComponent), multi: true },
168
- ], template: "<mp-datetime-picker\n #wc\n (value-change)=\"onValueChange($event)\"\n (opened)=\"onOpened($event)\"\n (closed)=\"onClosed($event)\">\n</mp-datetime-picker>\n" }]
169
- }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], 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 }] }], hour12: [{ type: i0.Input, args: [{ isSignal: true, alias: "hour12", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], defaultTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultTime", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], dateButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateButtonLabel", required: false }] }], timeButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeButtonLabel", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], todayLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "todayLabel", required: false }] }], nowLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nowLabel", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], wcRef: [{ type: i0.ViewChild, args: ['wc', { isSignal: true }] }] } });
204
+ args: [{ selector: 'bs-datetime-picker', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/datetime-picker/src/templates/datetime-picker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"datetime-picker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"datetime-picker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.clear) {\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.clear\"></button>\n }\n @if (p_view.dateTrigger) {\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.dateTrigger\"></button>\n }\n @if (p_view.timeTrigger) {\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeTrigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</div>\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.datePopup\">\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.root\">\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.nav\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.previous\"></button>\n <span data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.monthLabel\">\n {{ p_view.calendar.monthText }}\n </span>\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.next\"></button>\n </div>\n <table data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.grid\">\n <tbody data-mps=\"datetime-picker\">\n <tr data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.headRow\">\n <th data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.weekHeader\">\n <span data-mps=\"datetime-picker\" [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=\"datetime-picker\" [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=\"datetime-picker\" [mpProps]=\"week.row\">\n <th data-mps=\"datetime-picker\" [mpProps]=\"week.header\">\n {{ week.number }}\n </th>\n @for (cell of week.cells; track cell.key) {\n <td data-mps=\"datetime-picker\" [mpProps]=\"cell.cell\">\n @if (cell.content) {\n <span data-mps=\"datetime-picker\" [mpProps]=\"cell.content\">\n {{ cell.text }}\n </span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.dateFooter\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.today\">\n {{ p_view.todayText }}\n </button>\n </div>\n</div>\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.timePopup\">\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeList.root\">\n <ul data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeList.list\">\n @for (slot of p_view.timeList.slots; track slot.key) {\n <li data-mps=\"datetime-picker\" [mpProps]=\"slot.item\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n </ul>\n </div>\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeFooter\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.now\">\n {{ p_view.nowText }}\n </button>\n </div>\n</div>\n" }]
205
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], 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 }] }], hour12: [{ type: i0.Input, args: [{ isSignal: true, alias: "hour12", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], defaultTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultTime", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", 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 }] }], 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 }] }], valuechange: [{ type: i0.Output, args: ["valuechange"] }], openchange: [{ type: i0.Output, args: ["openchange"] }] } });
206
+
207
+ // GENERATED from the datetime-picker manifest by @mintplayer/nx-component-compiler. Do not edit.
170
208
 
171
209
  /**
172
210
  * Generated bundle index. Do not edit.
173
211
  */
174
212
 
175
- export { BsDatetimePickerComponent };
213
+ export { BsDatetimePickerComponent, BsDatetimePickerValueAccessor };
176
214
  //# sourceMappingURL=mintplayer-ng-bootstrap-datetime-picker.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-datetime-picker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/datetime-picker/src/datetime-picker.component.ts","../../../../libs/mintplayer-ng-bootstrap/datetime-picker/src/datetime-picker.component.html","../../../../libs/mintplayer-ng-bootstrap/datetime-picker/mintplayer-ng-bootstrap-datetime-picker.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n forwardRef,\n input,\n model,\n output,\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 type { Hour12Mode, TimeStep } from '@mintplayer/web-components/timepicker';\nimport { MpDatetimePickerElement, type DatetimePopup } from '@mintplayer/web-components/datetime-picker';\n\nvoid MpDatetimePickerElement;\n\nexport interface TimePartInput {\n hour: number;\n minute: number;\n}\n\nfunction dateOnly(d: Date): number {\n return new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();\n}\n\n@Component({\n selector: 'bs-datetime-picker',\n templateUrl: './datetime-picker.component.html',\n styleUrls: ['./datetime-picker.component.scss'],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatetimePickerComponent), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatetimePickerComponent), multi: true },\n ],\n})\nexport class BsDatetimePickerComponent implements AfterViewInit, ControlValueAccessor, Validator {\n value = model<Date | null>(null);\n\n min = input<Date | undefined>(undefined);\n max = input<Date | undefined>(undefined);\n disableDateFn = input<((date: Date) => boolean) | undefined>(undefined);\n firstDayOfWeek = input<FirstDayOfWeek>(1);\n locale = input<string | undefined>(undefined);\n hour12 = input<Hour12Mode>('auto');\n step = input<TimeStep>(15);\n defaultTime = input<TimePartInput>({ hour: 0, minute: 0 });\n placeholder = input<string>('');\n showClear = input<boolean>(false);\n dateButtonLabel = input<string>('Choose date');\n timeButtonLabel = input<string>('Choose time');\n clearLabel = input<string>('Clear');\n todayLabel = input<string>('Today');\n nowLabel = input<string>('Now');\n\n /**\n * The `error-text` channel. A validation message for this control cannot be\n * supplied from outside — its role lives on an input inside the WC's shadow\n * root, and an IDREF does not cross that boundary — so it travels in as\n * text and is wired up in there.\n */\n invalid = input<boolean>(false);\n errorText = input<string | null>(null);\n\n disabled = input<boolean>(false);\n protected readonly formDisabled = signal(false);\n protected readonly effectiveDisabled = signal(false);\n\n readonly opened = output<DatetimePopup>();\n readonly closed = output<DatetimePopup>();\n\n readonly wcRef = viewChild.required<ElementRef<MpDatetimePickerElement>>('wc');\n\n private onChange: (value: Date | null) => void = () => {};\n private onTouched: () => void = () => {};\n private onValidatorChange: () => void = () => {};\n\n constructor() {\n effect(() => {\n const wc = this.wcRef().nativeElement;\n wc.value = this.value();\n wc.min = this.min() ?? null;\n wc.max = this.max() ?? null;\n wc.disableDateFn = this.disableDateFn() ?? null;\n wc.firstDayOfWeek = this.firstDayOfWeek();\n wc.locale = this.locale();\n wc.hour12 = this.hour12();\n wc.step = this.step();\n wc.defaultTime = this.defaultTime();\n wc.placeholder = this.placeholder();\n wc.showClear = this.showClear();\n wc.dateButtonLabel = this.dateButtonLabel();\n wc.timeButtonLabel = this.timeButtonLabel();\n wc.clearLabel = this.clearLabel();\n wc.todayLabel = this.todayLabel();\n wc.nowLabel = this.nowLabel();\n wc.disabled = this.effectiveDisabled();\n wc.invalid = this.invalid();\n wc.errorText = this.errorText();\n wc.requestUpdate?.();\n });\n\n effect(() => {\n this.effectiveDisabled.set(this.disabled() || this.formDisabled());\n });\n\n effect(() => {\n this.min();\n this.max();\n this.disableDateFn();\n this.onValidatorChange();\n });\n }\n\n ngAfterViewInit(): void {}\n\n onValueChange(event: Event): void {\n const detail = (event as CustomEvent<Date | null>).detail;\n const next: Date | null = detail instanceof Date ? detail : null;\n this.value.set(next);\n this.onChange(next);\n }\n\n onOpened(event: Event): void {\n const detail = (event as CustomEvent<DatetimePopup>).detail;\n this.opened.emit(detail);\n }\n\n onClosed(event: Event): void {\n const detail = (event as CustomEvent<DatetimePopup>).detail;\n this.closed.emit(detail);\n this.onTouched();\n }\n\n /* ---- ControlValueAccessor ---- */\n\n writeValue(value: Date | null | undefined): void {\n if (value instanceof Date) {\n this.value.set(value);\n } else if (value === null) {\n this.value.set(null);\n }\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-datetime-picker\n #wc\n (value-change)=\"onValueChange($event)\"\n (opened)=\"onOpened($event)\"\n (closed)=\"onClosed($event)\">\n</mp-datetime-picker>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AA0BA,KAAK,uBAAuB;AAO5B,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,yBAAyB,CAAA;AAyCpC,IAAA,WAAA,GAAA;QAxCA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAc,IAAI;kFAAC;QAEhC,IAAA,CAAA,GAAG,GAAG,KAAK,CAAmB,SAAS;gFAAC;QACxC,IAAA,CAAA,GAAG,GAAG,KAAK,CAAmB,SAAS;gFAAC;QACxC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAwC,SAAS;0FAAC;QACvE,IAAA,CAAA,cAAc,GAAG,KAAK,CAAiB,CAAC;2FAAC;QACzC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAqB,SAAS;mFAAC;QAC7C,IAAA,CAAA,MAAM,GAAG,K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AA,IAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9CH,oKAMA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FD0Ca,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAXrC,SAAS;+BACE,oBAAoB,EAAA,OAAA,EAGrB,CAAC,sBAAsB,CAAC,mBAChB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;AACT,wBAAA,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,+BAA+B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE;AACrG,wBAAA,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,CAAC,+BAA+B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE;AAClG,qBAAA,EAAA,QAAA,EAAA,oKAAA,EAAA;yiEAqCwE,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnF/E;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-datetime-picker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/datetime-picker/src/value-accessor/datetime-picker-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/datetime-picker/src/datetime-picker.angular.ts","../../../../libs/mintplayer-ng-bootstrap/datetime-picker/src/generated/datetime-picker.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/datetime-picker/src/generated/datetime-picker.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/datetime-picker/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/datetime-picker/mintplayer-ng-bootstrap-datetime-picker.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 { BsDatetimePickerComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` and `Validator` of `bs-datetime-picker` (a host\n * directive of the generated component, see `datetime-picker.angular.ts`). A\n * bound form control drives the value through `viewValue`; a user's change\n * reaches the form through the component's `value` model, which a form write\n * never echoes.\n *\n * Validation: `min` / `max` compare the full date and time (`{ min, actual }`,\n * `{ max, actual }`), the same bounds the grid and the list enforce, and\n * `disabledDate` reports a day `disableDateFn` refuses.\n */\n@Directive({\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsDatetimePickerValueAccessor), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsDatetimePickerValueAccessor), multi: true },\n ],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsDatetimePickerValueAccessor implements ControlValueAccessor, Validator, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private component?: BsDatetimePickerComponent;\n\n /** A form control drives the value: its `viewValue` wins over the `value` 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(BsDatetimePickerComponent));\n const sub = component.valuechange.subscribe((value) => {\n if (!this.bound() || value?.getTime() === this.viewValue()?.getTime()) 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 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 registerOnValidatorChange(fn: () => void): void {\n this.onValidatorChange = 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 min = component.min();\n const max = component.max();\n const disable = component.disableDateFn();\n const errors: ValidationErrors = {\n ...(min && value.getTime() < min.getTime() ? { min: { min, actual: value } } : {}),\n ...(max && value.getTime() > max.getTime() ? { 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 { DatetimePickerInputs } from '@mintplayer/ui-core/datetime-picker';\nimport { BsDatetimePickerValueAccessor } from './value-accessor/datetime-picker-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-datetime-picker` (PRD #437 D10\n * escape hatch): Angular forms. A bound form control drives the value 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 BsDatetimePickerValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => DatetimePickerInputs): () => DatetimePickerInputs {\n const accessor = inject(BsDatetimePickerValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<DatetimePickerInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\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 datetime-picker manifest (datetime-picker) 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 { datetimePickerCore, type DatetimePickerInputs, type DatetimePickerMethods, datetimePickerScopedStyles, type DatetimePopup } from '@mintplayer/ui-core/datetime-picker';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../datetime-picker.angular';\n\n/**\n * A date-and-time field with a month-grid popup and a slot-list popup (#437).\n *\n * With JavaScript off it is a native datetime-local field that submits `name` as\n * YYYY-MM-DDTHH:MM. Once hydrated the field becomes a readonly display, two buttons open the\n * grid and the list in native popovers, and a hidden input carries the submitted value.\n */\n@Component({\n selector: 'bs-datetime-picker',\n templateUrl: './datetime-picker.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsDatetimePickerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly value = model<DatetimePickerInputs['value']>(null);\n readonly min = input<DatetimePickerInputs['min']>(null);\n readonly max = input<DatetimePickerInputs['max']>(null);\n readonly disableDateFn = input<DatetimePickerInputs['disableDateFn']>(null);\n readonly firstDayOfWeek = input<DatetimePickerInputs['firstDayOfWeek'], unknown>(1, { transform: (v: unknown) => numberAttribute(v) as DatetimePickerInputs['firstDayOfWeek'] });\n readonly locale = input<DatetimePickerInputs['locale']>(null);\n readonly hour12 = input<DatetimePickerInputs['hour12']>('auto');\n readonly step = input<DatetimePickerInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as DatetimePickerInputs['step'] });\n readonly defaultTime = input<DatetimePickerInputs['defaultTime']>({ hour: 0, minute: 0 });\n readonly placeholder = input<DatetimePickerInputs['placeholder']>(null);\n readonly showClear = input<DatetimePickerInputs['showClear'], unknown>(false, { transform: booleanAttribute });\n readonly disabled = input<DatetimePickerInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<DatetimePickerInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<DatetimePickerInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<DatetimePickerInputs['errorText']>(null);\n readonly inputLabel = input<DatetimePickerInputs['inputLabel']>(null);\n readonly name = input<DatetimePickerInputs['name']>(null);\n readonly labels = input<DatetimePickerInputs['labels']>(null);\n readonly calendarLabels = input<DatetimePickerInputs['calendarLabels']>(null);\n /** The value changed by the user: a picked day or time, Today, Now, clear. */\n readonly valuechange = output<Date | null>();\n /** Which popup is open now: 'date', 'time', or null. */\n readonly openchange = output<DatetimePopup>();\n\n readonly #core = useCore(datetimePickerCore, { inputs: ext_extendInputs(() => ({ value: this.value(), min: this.min(), max: this.max(), disableDateFn: this.disableDateFn(), firstDayOfWeek: this.firstDayOfWeek(), locale: this.locale(), hour12: this.hour12(), step: this.step(), defaultTime: this.defaultTime(), placeholder: this.placeholder(), showClear: this.showClear(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels(), calendarLabels: this.calendarLabels() })), idPrefix: 'bs-datetime-picker', outputs: { valueChange: this.valuechange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'datetime-picker' }), models: { value: this.value } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('datetime-picker', datetimePickerScopedStyles);\n }\n\n /** Open the month grid (ignored when disabled). */\n openDate(...args: Parameters<DatetimePickerMethods['openDate']>): ReturnType<DatetimePickerMethods['openDate']> {\n return this.#core.call('openDate', args) as ReturnType<DatetimePickerMethods['openDate']>;\n }\n\n /** Open the slot list (ignored when disabled). */\n openTime(...args: Parameters<DatetimePickerMethods['openTime']>): ReturnType<DatetimePickerMethods['openTime']> {\n return this.#core.call('openTime', args) as ReturnType<DatetimePickerMethods['openTime']>;\n }\n\n /** Close whichever popup is open. */\n closePopups(...args: Parameters<DatetimePickerMethods['closePopups']>): ReturnType<DatetimePickerMethods['closePopups']> {\n return this.#core.call('closePopups', args) as ReturnType<DatetimePickerMethods['closePopups']>;\n }\n\n /** Clear the value (ignored when disabled). */\n clear(...args: Parameters<DatetimePickerMethods['clear']>): ReturnType<DatetimePickerMethods['clear']> {\n return this.#core.call('clear', args) as ReturnType<DatetimePickerMethods['clear']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/datetime-picker/src/templates/datetime-picker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"datetime-picker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"datetime-picker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.clear) {\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.clear\"></button>\n }\n @if (p_view.dateTrigger) {\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.dateTrigger\"></button>\n }\n @if (p_view.timeTrigger) {\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeTrigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</div>\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.datePopup\">\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.root\">\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.nav\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.previous\"></button>\n <span data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.monthLabel\">\n {{ p_view.calendar.monthText }}\n </span>\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.next\"></button>\n </div>\n <table data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.grid\">\n <tbody data-mps=\"datetime-picker\">\n <tr data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.headRow\">\n <th data-mps=\"datetime-picker\" [mpProps]=\"p_view.calendar.weekHeader\">\n <span data-mps=\"datetime-picker\" [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=\"datetime-picker\" [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=\"datetime-picker\" [mpProps]=\"week.row\">\n <th data-mps=\"datetime-picker\" [mpProps]=\"week.header\">\n {{ week.number }}\n </th>\n @for (cell of week.cells; track cell.key) {\n <td data-mps=\"datetime-picker\" [mpProps]=\"cell.cell\">\n @if (cell.content) {\n <span data-mps=\"datetime-picker\" [mpProps]=\"cell.content\">\n {{ cell.text }}\n </span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.dateFooter\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.today\">\n {{ p_view.todayText }}\n </button>\n </div>\n</div>\n<div data-mps=\"datetime-picker\" [mpProps]=\"p_view.timePopup\">\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeList.root\">\n <ul data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeList.list\">\n @for (slot of p_view.timeList.slots; track slot.key) {\n <li data-mps=\"datetime-picker\" [mpProps]=\"slot.item\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n </ul>\n </div>\n <div data-mps=\"datetime-picker\" [mpProps]=\"p_view.timeFooter\">\n <button data-mps=\"datetime-picker\" [mpProps]=\"p_view.now\">\n {{ p_view.nowText }}\n </button>\n </div>\n</div>\n","// GENERATED from the datetime-picker manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsDatetimePickerComponent } from './datetime-picker.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsDatetimePickerValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAWA;;;;;;;;;;AAUG;MAUU,6BAA6B,CAAA;AAT1C,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;AA0DxD,IAAA;IAxDC,QAAQ,GAAA;;AAEN,QAAA,MAAM,SAAS,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACjF,MAAM,GAAG,GAAG,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;AACpD,YAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE;gBAAE;AACvE,YAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;AACzB,YAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;AACtB,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