@egose/shadcn-theme-ng-tw 0.0.28 → 0.2.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.
- package/README.md +130 -13
- package/accordion/README.md +376 -34
- package/accordion/fesm2022/accordion.mjs +20 -20
- package/alert/README.md +343 -34
- package/alert/fesm2022/alert.mjs +18 -18
- package/alert-dialog/README.md +471 -5
- package/alert-dialog/fesm2022/alert-dialog.mjs +48 -48
- package/alert-dialog/types/alert-dialog.d.ts +1 -1
- package/aspect-ratio/README.md +272 -5
- package/aspect-ratio/fesm2022/aspect-ratio.mjs +9 -9
- package/autocomplete/README.md +473 -34
- package/autocomplete/fesm2022/autocomplete.mjs +54 -54
- package/autocomplete/types/autocomplete.d.ts +1 -1
- package/avatar/README.md +357 -5
- package/avatar/fesm2022/avatar.mjs +32 -32
- package/badge/README.md +289 -34
- package/badge/fesm2022/badge.mjs +4 -4
- package/basic-alert/README.md +324 -34
- package/basic-alert/fesm2022/basic-alert.mjs +4 -4
- package/basic-alert/types/basic-alert.d.ts +1 -1
- package/breadcrumb/README.md +406 -5
- package/breadcrumb/fesm2022/breadcrumb.mjs +34 -34
- package/button/README.md +453 -34
- package/button/fesm2022/button.mjs +96 -118
- package/button/types/button.d.ts +7 -10
- package/button-group/README.md +318 -5
- package/button-group/fesm2022/button-group.mjs +20 -20
- package/calendar/README.md +328 -34
- package/calendar/fesm2022/calendar.mjs +154 -154
- package/card/README.md +331 -5
- package/card/fesm2022/card.mjs +33 -33
- package/carousel/README.md +333 -5
- package/carousel/fesm2022/carousel.mjs +47 -44
- package/carousel/types/carousel.d.ts +1 -1
- package/checkbox/README.md +291 -34
- package/checkbox/fesm2022/checkbox.mjs +22 -20
- package/checkbox/types/checkbox.d.ts +5 -4
- package/collapsible/README.md +332 -5
- package/collapsible/fesm2022/collapsible.mjs +15 -15
- package/combobox/README.md +507 -5
- package/combobox/fesm2022/combobox.mjs +95 -92
- package/combobox/types/combobox.d.ts +1 -1
- package/command/README.md +435 -5
- package/command/fesm2022/command.mjs +56 -56
- package/confirmation-dialog/README.md +272 -34
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +13 -12
- package/confirmation-dialog/types/confirmation-dialog.d.ts +9 -5
- package/context-menu/README.md +366 -5
- package/context-menu/fesm2022/context-menu.mjs +9 -9
- package/date-picker/README.md +436 -34
- package/date-picker/fesm2022/date-picker.mjs +79 -68
- package/date-picker/types/date-picker.d.ts +8 -4
- package/dialog/README.md +419 -34
- package/dialog/fesm2022/dialog.mjs +48 -48
- package/drawer/README.md +395 -5
- package/drawer/fesm2022/drawer.mjs +45 -45
- package/dropdown-menu/README.md +417 -5
- package/dropdown-menu/fesm2022/dropdown-menu.mjs +85 -73
- package/dropdown-menu/types/dropdown-menu.d.ts +4 -0
- package/empty/README.md +329 -5
- package/empty/fesm2022/empty.mjs +31 -31
- package/field/README.md +385 -5
- package/field/fesm2022/field.mjs +59 -59
- package/field/types/field.d.ts +1 -1
- package/form-checkbox/README.md +283 -34
- package/form-checkbox/fesm2022/form-checkbox.mjs +37 -19
- package/form-checkbox/types/form-checkbox.d.ts +7 -1
- package/form-date-picker/README.md +293 -34
- package/form-date-picker/fesm2022/form-date-picker.mjs +59 -24
- package/form-date-picker/types/form-date-picker.d.ts +7 -1
- package/form-field/README.md +327 -34
- package/form-field/fesm2022/form-field.mjs +30 -16
- package/form-field/types/form-field.d.ts +28 -20
- package/form-field-simple/README.md +311 -34
- package/form-field-simple/fesm2022/form-field-simple.mjs +4 -4
- package/form-searchable-multiselect/README.md +332 -34
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +41 -21
- package/form-searchable-multiselect/types/form-searchable-multiselect.d.ts +8 -2
- package/form-select/README.md +321 -34
- package/form-select/fesm2022/form-select.mjs +62 -29
- package/form-select/types/form-select.d.ts +7 -1
- package/form-text-input/README.md +342 -34
- package/form-text-input/fesm2022/form-text-input.mjs +43 -55
- package/form-text-input/types/form-text-input.d.ts +9 -12
- package/form-textarea/README.md +318 -34
- package/form-textarea/fesm2022/form-textarea.mjs +42 -23
- package/form-textarea/types/form-textarea.d.ts +8 -1
- package/hover-card/README.md +256 -5
- package/hover-card/fesm2022/hover-card.mjs +19 -19
- package/icon/README.md +210 -34
- package/icon/fesm2022/icon.mjs +8 -8
- package/input/README.md +240 -34
- package/input/fesm2022/input.mjs +17 -12
- package/input/types/input.d.ts +2 -1
- package/input-group/README.md +335 -5
- package/input-group/fesm2022/input-group.mjs +37 -37
- package/input-group/types/input-group.d.ts +3 -3
- package/input-otp/README.md +375 -5
- package/input-otp/fesm2022/input-otp.mjs +27 -27
- package/item/README.md +385 -5
- package/item/fesm2022/item.mjs +54 -54
- package/kbd/README.md +291 -5
- package/kbd/fesm2022/kbd.mjs +13 -13
- package/label/README.md +243 -34
- package/label/fesm2022/label.mjs +9 -9
- package/label/types/label.d.ts +1 -1
- package/layout-simple/README.md +174 -44
- package/layout-simple/fesm2022/layout-simple.mjs +917 -398
- package/layout-simple/types/layout-simple.d.ts +180 -129
- package/menu/README.md +418 -0
- package/menu/fesm2022/menu.mjs +461 -0
- package/menu/package.json +24 -0
- package/menu/types/menu.d.ts +137 -0
- package/menubar/README.md +343 -5
- package/menubar/fesm2022/menubar.mjs +13 -13
- package/native-select/README.md +323 -5
- package/native-select/fesm2022/native-select.mjs +19 -19
- package/navigation-menu/README.md +369 -5
- package/navigation-menu/fesm2022/navigation-menu.mjs +37 -37
- package/package.json +183 -154
- package/pagination/README.md +388 -5
- package/pagination/fesm2022/pagination.mjs +63 -63
- package/popover/README.md +302 -34
- package/popover/fesm2022/popover.mjs +30 -30
- package/progress/README.md +311 -5
- package/progress/fesm2022/progress.mjs +13 -13
- package/radio-group/README.md +335 -34
- package/radio-group/fesm2022/radio-group.mjs +26 -19
- package/resizable/README.md +269 -5
- package/resizable/fesm2022/resizable.mjs +19 -19
- package/scroll-area/README.md +233 -5
- package/scroll-area/fesm2022/scroll-area.mjs +9 -9
- package/searchable-multiselect/README.md +294 -34
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +63 -16
- package/searchable-multiselect/types/searchable-multiselect.d.ts +8 -2
- package/select/README.md +408 -34
- package/select/fesm2022/select.mjs +80 -72
- package/select/types/select.d.ts +3 -1
- package/separator/README.md +193 -34
- package/separator/fesm2022/separator.mjs +9 -9
- package/separator/types/separator.d.ts +1 -1
- package/sheet/README.md +282 -34
- package/sheet/fesm2022/sheet.mjs +30 -30
- package/sidebar/README.md +457 -5
- package/sidebar/fesm2022/sidebar.mjs +136 -134
- package/sidebar/types/sidebar.d.ts +3 -3
- package/skeleton/README.md +217 -5
- package/skeleton/fesm2022/skeleton.mjs +9 -9
- package/slider/README.md +273 -5
- package/slider/fesm2022/slider.mjs +29 -25
- package/sonner/README.md +317 -34
- package/sonner/fesm2022/sonner.mjs +9 -9
- package/spinner/README.md +255 -34
- package/spinner/fesm2022/spinner.mjs +8 -8
- package/switch/README.md +281 -34
- package/switch/fesm2022/switch.mjs +12 -14
- package/table/README.md +423 -5
- package/table/fesm2022/table.mjs +41 -41
- package/tabs/README.md +382 -34
- package/tabs/fesm2022/tabs.mjs +48 -38
- package/textarea/README.md +282 -5
- package/textarea/fesm2022/textarea.mjs +9 -9
- package/toggle/README.md +270 -5
- package/toggle/fesm2022/toggle.mjs +14 -14
- package/toggle-group/README.md +340 -5
- package/toggle-group/fesm2022/toggle-group.mjs +13 -13
- package/toggle-group/types/toggle-group.d.ts +13 -7
- package/tooltip/README.md +240 -34
- package/tooltip/fesm2022/tooltip.mjs +14 -14
- package/typography/README.md +271 -5
- package/typography/fesm2022/typography.mjs +53 -53
- package/typography/types/typography.d.ts +12 -12
- package/utils/README.md +274 -34
- package/utils/fesm2022/utils.mjs +68 -44
- package/accordion/fesm2022/accordion.mjs.map +0 -1
- package/alert/fesm2022/alert.mjs.map +0 -1
- package/alert-dialog/fesm2022/alert-dialog.mjs.map +0 -1
- package/aspect-ratio/fesm2022/aspect-ratio.mjs.map +0 -1
- package/autocomplete/fesm2022/autocomplete.mjs.map +0 -1
- package/avatar/fesm2022/avatar.mjs.map +0 -1
- package/badge/fesm2022/badge.mjs.map +0 -1
- package/basic-alert/fesm2022/basic-alert.mjs.map +0 -1
- package/breadcrumb/fesm2022/breadcrumb.mjs.map +0 -1
- package/button/fesm2022/button.mjs.map +0 -1
- package/button-group/fesm2022/button-group.mjs.map +0 -1
- package/calendar/fesm2022/calendar.mjs.map +0 -1
- package/card/fesm2022/card.mjs.map +0 -1
- package/carousel/fesm2022/carousel.mjs.map +0 -1
- package/checkbox/fesm2022/checkbox.mjs.map +0 -1
- package/collapsible/fesm2022/collapsible.mjs.map +0 -1
- package/combobox/fesm2022/combobox.mjs.map +0 -1
- package/command/fesm2022/command.mjs.map +0 -1
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +0 -1
- package/context-menu/fesm2022/context-menu.mjs.map +0 -1
- package/date-picker/fesm2022/date-picker.mjs.map +0 -1
- package/dialog/fesm2022/dialog.mjs.map +0 -1
- package/drawer/fesm2022/drawer.mjs.map +0 -1
- package/dropdown-menu/fesm2022/dropdown-menu.mjs.map +0 -1
- package/empty/fesm2022/empty.mjs.map +0 -1
- package/field/fesm2022/field.mjs.map +0 -1
- package/form-checkbox/fesm2022/form-checkbox.mjs.map +0 -1
- package/form-date-picker/fesm2022/form-date-picker.mjs.map +0 -1
- package/form-field/fesm2022/form-field.mjs.map +0 -1
- package/form-field-simple/fesm2022/form-field-simple.mjs.map +0 -1
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +0 -1
- package/form-select/fesm2022/form-select.mjs.map +0 -1
- package/form-text-input/fesm2022/form-text-input.mjs.map +0 -1
- package/form-textarea/fesm2022/form-textarea.mjs.map +0 -1
- package/hover-card/fesm2022/hover-card.mjs.map +0 -1
- package/icon/fesm2022/icon.mjs.map +0 -1
- package/input/fesm2022/input.mjs.map +0 -1
- package/input-group/fesm2022/input-group.mjs.map +0 -1
- package/input-otp/fesm2022/input-otp.mjs.map +0 -1
- package/item/fesm2022/item.mjs.map +0 -1
- package/kbd/fesm2022/kbd.mjs.map +0 -1
- package/label/fesm2022/label.mjs.map +0 -1
- package/layout-simple/fesm2022/layout-simple.mjs.map +0 -1
- package/menubar/fesm2022/menubar.mjs.map +0 -1
- package/native-select/fesm2022/native-select.mjs.map +0 -1
- package/navigation-menu/fesm2022/navigation-menu.mjs.map +0 -1
- package/pagination/fesm2022/pagination.mjs.map +0 -1
- package/popover/fesm2022/popover.mjs.map +0 -1
- package/progress/fesm2022/progress.mjs.map +0 -1
- package/radio-group/fesm2022/radio-group.mjs.map +0 -1
- package/resizable/fesm2022/resizable.mjs.map +0 -1
- package/scroll-area/fesm2022/scroll-area.mjs.map +0 -1
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +0 -1
- package/select/fesm2022/select.mjs.map +0 -1
- package/separator/fesm2022/separator.mjs.map +0 -1
- package/sheet/fesm2022/sheet.mjs.map +0 -1
- package/sidebar/fesm2022/sidebar.mjs.map +0 -1
- package/skeleton/fesm2022/skeleton.mjs.map +0 -1
- package/slider/fesm2022/slider.mjs.map +0 -1
- package/sonner/fesm2022/sonner.mjs.map +0 -1
- package/spinner/fesm2022/spinner.mjs.map +0 -1
- package/switch/fesm2022/switch.mjs.map +0 -1
- package/table/fesm2022/table.mjs.map +0 -1
- package/tabs/fesm2022/tabs.mjs.map +0 -1
- package/textarea/fesm2022/textarea.mjs.map +0 -1
- package/toggle/fesm2022/toggle.mjs.map +0 -1
- package/toggle-group/fesm2022/toggle-group.mjs.map +0 -1
- package/tooltip/fesm2022/tooltip.mjs.map +0 -1
- package/typography/fesm2022/typography.mjs.map +0 -1
- package/utils/fesm2022/utils.mjs.map +0 -1
|
@@ -93,8 +93,8 @@ class HlmDateMultiInput extends BrnDateInput {
|
|
|
93
93
|
formatInputValue(value) {
|
|
94
94
|
return this.formatInputDates()(value);
|
|
95
95
|
}
|
|
96
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
97
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
96
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDateMultiInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
97
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: HlmDateMultiInput, isStandalone: true, selector: "hlm-date-multi-input", inputs: { parseDate: { classPropertyName: "parseDate", publicName: "parseDate", isSignal: true, isRequired: false, transformFunction: null }, formatInputDates: { classPropertyName: "formatInputDates", publicName: "formatInputDates", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideIcons({ lucideCalendar, lucideX }), provideBrnDatePickerTrigger(HlmDateMultiInput)], usesInheritance: true, hostDirectives: [{ directive: i1.HlmInputGroup }], ngImport: i0, template: `
|
|
98
98
|
<input
|
|
99
99
|
#input
|
|
100
100
|
hlmInputGroupInput
|
|
@@ -135,7 +135,7 @@ class HlmDateMultiInput extends BrnDateInput {
|
|
|
135
135
|
</hlm-input-group-addon>
|
|
136
136
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.HlmInputGroupAddon, selector: "[hlmInputGroupAddon],hlm-input-group-addon", inputs: ["align"] }, { kind: "directive", type: i1.HlmInputGroupButton, selector: "button[hlmInputGroupButton]", inputs: ["size", "type"] }, { kind: "directive", type: i1.HlmInputGroupInput, selector: "input[hlmInputGroupInput]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
137
137
|
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDateMultiInput, decorators: [{
|
|
139
139
|
type: Component,
|
|
140
140
|
args: [{
|
|
141
141
|
selector: 'hlm-date-multi-input',
|
|
@@ -229,6 +229,8 @@ class HlmDatePicker {
|
|
|
229
229
|
...(ngDevMode ? [undefined, { debugName: "max" }] : /* istanbul ignore next */ []));
|
|
230
230
|
/** Determine if the date picker is disabled. */
|
|
231
231
|
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
232
|
+
/** Additional interaction lock that does not write to a reactive form control. */
|
|
233
|
+
wrapperDisabled = input(false, { ...(ngDevMode ? { debugName: "wrapperDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
232
234
|
/** The selected value. */
|
|
233
235
|
date = input(/* @ts-ignore */
|
|
234
236
|
...(ngDevMode ? [undefined, { debugName: "date" }] : /* istanbul ignore next */ []));
|
|
@@ -247,10 +249,11 @@ class HlmDatePicker {
|
|
|
247
249
|
...(ngDevMode ? [{ debugName: "transformDate" }] : /* istanbul ignore next */ []));
|
|
248
250
|
_popoverState = signal(null, /* @ts-ignore */
|
|
249
251
|
...(ngDevMode ? [{ debugName: "_popoverState" }] : /* istanbul ignore next */ []));
|
|
250
|
-
|
|
251
|
-
...(ngDevMode ? [{ debugName: "
|
|
252
|
+
_formDisabled = signal(false, /* @ts-ignore */
|
|
253
|
+
...(ngDevMode ? [{ debugName: "_formDisabled" }] : /* istanbul ignore next */ []));
|
|
252
254
|
/** @internal The disabled state as a readonly signal */
|
|
253
|
-
disabledState = this.
|
|
255
|
+
disabledState = computed(() => this.disabled() || this.wrapperDisabled() || this._formDisabled(), /* @ts-ignore */
|
|
256
|
+
...(ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []));
|
|
254
257
|
formattedDate = computed(() => {
|
|
255
258
|
const date = this._mutableDate();
|
|
256
259
|
return date ? this.formatDate()(date) : undefined;
|
|
@@ -272,7 +275,7 @@ class HlmDatePicker {
|
|
|
272
275
|
this._onTouched?.();
|
|
273
276
|
}
|
|
274
277
|
_handleChange(value) {
|
|
275
|
-
if (this.
|
|
278
|
+
if (this.disabledState())
|
|
276
279
|
return;
|
|
277
280
|
this.updateDate(value ?? null);
|
|
278
281
|
if (this.autoCloseOnSelect()) {
|
|
@@ -286,7 +289,7 @@ class HlmDatePicker {
|
|
|
286
289
|
* is parsing user-entered values while typing.
|
|
287
290
|
*/
|
|
288
291
|
updateDate(value) {
|
|
289
|
-
if (this.
|
|
292
|
+
if (this.disabledState())
|
|
290
293
|
return;
|
|
291
294
|
const transformedDate = value != null ? this.transformDate()(value) : undefined;
|
|
292
295
|
this._mutableDate.set(transformedDate);
|
|
@@ -307,7 +310,7 @@ class HlmDatePicker {
|
|
|
307
310
|
this._onTouched?.();
|
|
308
311
|
}
|
|
309
312
|
setDisabledState(isDisabled) {
|
|
310
|
-
this.
|
|
313
|
+
this._formDisabled.set(isDisabled);
|
|
311
314
|
}
|
|
312
315
|
open() {
|
|
313
316
|
this._popoverState.set('open');
|
|
@@ -320,21 +323,21 @@ class HlmDatePicker {
|
|
|
320
323
|
this._onChange?.(null);
|
|
321
324
|
this.dateChange.emit(null);
|
|
322
325
|
}
|
|
323
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
324
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.
|
|
326
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
327
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.3", type: HlmDatePicker, isStandalone: true, selector: "hlm-date-picker", inputs: { captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", 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 }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, wrapperDisabled: { classPropertyName: "wrapperDisabled", publicName: "wrapperDisabled", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, defaultFocusedDate: { classPropertyName: "defaultFocusedDate", publicName: "defaultFocusedDate", isSignal: true, isRequired: false, transformFunction: null }, autoCloseOnSelect: { classPropertyName: "autoCloseOnSelect", publicName: "autoCloseOnSelect", isSignal: true, isRequired: false, transformFunction: null }, formatDate: { classPropertyName: "formatDate", publicName: "formatDate", isSignal: true, isRequired: false, transformFunction: null }, transformDate: { classPropertyName: "transformDate", publicName: "transformDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateChange: "dateChange" }, host: { classAttribute: "tw:block tw:w-full tw:min-w-0 tw:max-w-full" }, providers: [HLM_DATE_PICKER_VALUE_ACCESSOR, provideBrnDatePicker(HlmDatePicker), provideBrnLabelable(HlmDatePicker)], queries: [{ propertyName: "_trigger", first: true, predicate: BrnDatePickerTriggerToken, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: BrnPopover, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.BrnFieldControl }], ngImport: i0, template: `
|
|
325
328
|
<hlm-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_onStateChange($event)">
|
|
326
329
|
<ng-content />
|
|
327
330
|
|
|
328
|
-
<hlm-popover-content class="w-fit p-0" *hlmPopoverPortal="let ctx">
|
|
331
|
+
<hlm-popover-content class="tw:w-fit tw:p-0" *hlmPopoverPortal="let ctx">
|
|
329
332
|
<ng-content select="[hlmDatePickerHeader]" />
|
|
330
333
|
<hlm-calendar
|
|
331
|
-
class="rounded-none border-0"
|
|
334
|
+
class="tw:rounded-none tw:border-0"
|
|
332
335
|
[captionLayout]="captionLayout()"
|
|
333
336
|
[date]="_mutableDate()"
|
|
334
337
|
[defaultFocusedDate]="_mutableDate() ?? defaultFocusedDate()"
|
|
335
338
|
[min]="min()"
|
|
336
339
|
[max]="max()"
|
|
337
|
-
[disabled]="
|
|
340
|
+
[disabled]="disabledState()"
|
|
338
341
|
(dateChange)="_handleChange($event)"
|
|
339
342
|
/>
|
|
340
343
|
<ng-content select="[hlmDatePickerFooter]" />
|
|
@@ -342,7 +345,7 @@ class HlmDatePicker {
|
|
|
342
345
|
</hlm-popover>
|
|
343
346
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.HlmPopover, selector: "[hlmPopover],hlm-popover" }, { kind: "directive", type: i2.HlmPopoverContent, selector: "[hlmPopoverContent],hlm-popover-content" }, { kind: "directive", type: i2.HlmPopoverPortal, selector: "[hlmPopoverPortal]" }, { kind: "component", type: HlmCalendar, selector: "hlm-calendar", inputs: ["captionLayout"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
344
347
|
}
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePicker, decorators: [{
|
|
346
349
|
type: Component,
|
|
347
350
|
args: [{
|
|
348
351
|
selector: 'hlm-date-picker',
|
|
@@ -350,21 +353,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
350
353
|
providers: [HLM_DATE_PICKER_VALUE_ACCESSOR, provideBrnDatePicker(HlmDatePicker), provideBrnLabelable(HlmDatePicker)],
|
|
351
354
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
352
355
|
hostDirectives: [BrnFieldControl],
|
|
353
|
-
host: { class: 'block' },
|
|
356
|
+
host: { class: 'tw:block tw:w-full tw:min-w-0 tw:max-w-full' },
|
|
354
357
|
template: `
|
|
355
358
|
<hlm-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_onStateChange($event)">
|
|
356
359
|
<ng-content />
|
|
357
360
|
|
|
358
|
-
<hlm-popover-content class="w-fit p-0" *hlmPopoverPortal="let ctx">
|
|
361
|
+
<hlm-popover-content class="tw:w-fit tw:p-0" *hlmPopoverPortal="let ctx">
|
|
359
362
|
<ng-content select="[hlmDatePickerHeader]" />
|
|
360
363
|
<hlm-calendar
|
|
361
|
-
class="rounded-none border-0"
|
|
364
|
+
class="tw:rounded-none tw:border-0"
|
|
362
365
|
[captionLayout]="captionLayout()"
|
|
363
366
|
[date]="_mutableDate()"
|
|
364
367
|
[defaultFocusedDate]="_mutableDate() ?? defaultFocusedDate()"
|
|
365
368
|
[min]="min()"
|
|
366
369
|
[max]="max()"
|
|
367
|
-
[disabled]="
|
|
370
|
+
[disabled]="disabledState()"
|
|
368
371
|
(dateChange)="_handleChange($event)"
|
|
369
372
|
/>
|
|
370
373
|
<ng-content select="[hlmDatePickerFooter]" />
|
|
@@ -372,7 +375,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
372
375
|
</hlm-popover>
|
|
373
376
|
`,
|
|
374
377
|
}]
|
|
375
|
-
}], propDecorators: { popover: [{ type: i0.ViewChild, args: [i0.forwardRef(() => BrnPopover), { isSignal: true }] }], _trigger: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BrnDatePickerTriggerToken), { isSignal: true }] }], captionLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionLayout", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], date: [{ type: i0.Input, args: [{ isSignal: true, alias: "date", required: false }] }], defaultFocusedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultFocusedDate", required: false }] }], autoCloseOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoCloseOnSelect", required: false }] }], formatDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatDate", required: false }] }], transformDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "transformDate", required: false }] }], dateChange: [{ type: i0.Output, args: ["dateChange"] }] } });
|
|
378
|
+
}], propDecorators: { popover: [{ type: i0.ViewChild, args: [i0.forwardRef(() => BrnPopover), { isSignal: true }] }], _trigger: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BrnDatePickerTriggerToken), { isSignal: true }] }], captionLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionLayout", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], wrapperDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrapperDisabled", required: false }] }], date: [{ type: i0.Input, args: [{ isSignal: true, alias: "date", required: false }] }], defaultFocusedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultFocusedDate", required: false }] }], autoCloseOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoCloseOnSelect", required: false }] }], formatDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatDate", required: false }] }], transformDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "transformDate", required: false }] }], dateChange: [{ type: i0.Output, args: ["dateChange"] }] } });
|
|
376
379
|
|
|
377
380
|
class HlmDatePickerAnchor {
|
|
378
381
|
_host = inject(ElementRef, { host: true });
|
|
@@ -386,16 +389,20 @@ class HlmDatePickerAnchor {
|
|
|
386
389
|
});
|
|
387
390
|
this._brnOverlay?.setOrigin(this._host.nativeElement);
|
|
388
391
|
}
|
|
389
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
390
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
392
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerAnchor, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
393
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmDatePickerAnchor, isStandalone: true, selector: "[hlmDatePickerAnchor]", inputs: { hlmDatePickerAnchorForInput: { classPropertyName: "hlmDatePickerAnchorForInput", publicName: "hlmDatePickerAnchorFor", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
391
394
|
}
|
|
392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerAnchor, decorators: [{
|
|
393
396
|
type: Directive,
|
|
394
397
|
args: [{ selector: '[hlmDatePickerAnchor]' }]
|
|
395
398
|
}], ctorParameters: () => [], propDecorators: { hlmDatePickerAnchorForInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "hlmDatePickerAnchorFor", required: false }] }] } });
|
|
396
399
|
|
|
397
400
|
class HlmDatePickerInput extends BrnDateInput {
|
|
398
401
|
_config = injectHlmDatePickerConfig();
|
|
402
|
+
ariaLabel = input(undefined, /* @ts-ignore */
|
|
403
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
404
|
+
ariaDescribedby = input(null, /* @ts-ignore */
|
|
405
|
+
...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
|
|
399
406
|
/**
|
|
400
407
|
* Parses input text into a date value. Return `null` for invalid
|
|
401
408
|
* input - the picker's date is cleared while the text is preserved so
|
|
@@ -419,13 +426,15 @@ class HlmDatePickerInput extends BrnDateInput {
|
|
|
419
426
|
formatInputValue(value) {
|
|
420
427
|
return this.formatInputDate()(value);
|
|
421
428
|
}
|
|
422
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
423
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
429
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
430
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: HlmDatePickerInput, isStandalone: true, selector: "hlm-date-picker-input", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, parseDate: { classPropertyName: "parseDate", publicName: "parseDate", isSignal: true, isRequired: false, transformFunction: null }, formatInputDate: { classPropertyName: "formatInputDate", publicName: "formatInputDate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideIcons({ lucideCalendar, lucideX }), provideBrnDatePickerTrigger(HlmDatePickerInput)], usesInheritance: true, hostDirectives: [{ directive: i1.HlmInputGroup }], ngImport: i0, template: `
|
|
424
431
|
<input
|
|
425
432
|
#input
|
|
426
433
|
hlmInputGroupInput
|
|
427
434
|
[value]="_inputValue()"
|
|
428
435
|
[id]="inputId()"
|
|
436
|
+
[attr.aria-label]="ariaLabel()"
|
|
437
|
+
[attr.aria-describedby]="ariaDescribedby()"
|
|
429
438
|
[placeholder]="placeholder()"
|
|
430
439
|
[disabled]="_disabled()"
|
|
431
440
|
[forceInvalid]="forceInvalid()"
|
|
@@ -461,7 +470,7 @@ class HlmDatePickerInput extends BrnDateInput {
|
|
|
461
470
|
</hlm-input-group-addon>
|
|
462
471
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.HlmInputGroupAddon, selector: "[hlmInputGroupAddon],hlm-input-group-addon", inputs: ["align"] }, { kind: "directive", type: i1.HlmInputGroupButton, selector: "button[hlmInputGroupButton]", inputs: ["size", "type"] }, { kind: "directive", type: i1.HlmInputGroupInput, selector: "input[hlmInputGroupInput]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
463
472
|
}
|
|
464
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerInput, decorators: [{
|
|
465
474
|
type: Component,
|
|
466
475
|
args: [{
|
|
467
476
|
selector: 'hlm-date-picker-input',
|
|
@@ -475,6 +484,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
475
484
|
hlmInputGroupInput
|
|
476
485
|
[value]="_inputValue()"
|
|
477
486
|
[id]="inputId()"
|
|
487
|
+
[attr.aria-label]="ariaLabel()"
|
|
488
|
+
[attr.aria-describedby]="ariaDescribedby()"
|
|
478
489
|
[placeholder]="placeholder()"
|
|
479
490
|
[disabled]="_disabled()"
|
|
480
491
|
[forceInvalid]="forceInvalid()"
|
|
@@ -510,7 +521,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
510
521
|
</hlm-input-group-addon>
|
|
511
522
|
`,
|
|
512
523
|
}]
|
|
513
|
-
}], propDecorators: { parseDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "parseDate", required: false }] }], formatInputDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatInputDate", required: false }] }] } });
|
|
524
|
+
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], parseDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "parseDate", required: false }] }], formatInputDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatInputDate", required: false }] }] } });
|
|
514
525
|
|
|
515
526
|
const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR = {
|
|
516
527
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -630,8 +641,8 @@ class HlmDatePickerMulti {
|
|
|
630
641
|
this._onChange?.([]);
|
|
631
642
|
this.dateChange.emit([]);
|
|
632
643
|
}
|
|
633
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
634
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.
|
|
644
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerMulti, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
645
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.3", type: HlmDatePickerMulti, isStandalone: true, selector: "hlm-date-picker-multi", inputs: { captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", 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 }, minSelection: { classPropertyName: "minSelection", publicName: "minSelection", isSignal: true, isRequired: false, transformFunction: null }, maxSelection: { classPropertyName: "maxSelection", publicName: "maxSelection", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, autoCloseOnMaxSelection: { classPropertyName: "autoCloseOnMaxSelection", publicName: "autoCloseOnMaxSelection", isSignal: true, isRequired: false, transformFunction: null }, formatDates: { classPropertyName: "formatDates", publicName: "formatDates", isSignal: true, isRequired: false, transformFunction: null }, transformDates: { classPropertyName: "transformDates", publicName: "transformDates", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateChange: "dateChange" }, host: { classAttribute: "block" }, providers: [
|
|
635
646
|
HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR,
|
|
636
647
|
provideBrnDatePicker(HlmDatePickerMulti),
|
|
637
648
|
provideBrnLabelable(HlmDatePickerMulti),
|
|
@@ -639,10 +650,10 @@ class HlmDatePickerMulti {
|
|
|
639
650
|
<hlm-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_onStateChange($event)">
|
|
640
651
|
<ng-content />
|
|
641
652
|
|
|
642
|
-
<hlm-popover-content class="w-fit p-0" *hlmPopoverPortal="let ctx">
|
|
653
|
+
<hlm-popover-content class="tw:w-fit tw:p-0" *hlmPopoverPortal="let ctx">
|
|
643
654
|
<ng-content select="[hlmDatePickerHeader]" />
|
|
644
655
|
<hlm-calendar-multi
|
|
645
|
-
class="rounded-none border-0"
|
|
656
|
+
class="tw:rounded-none tw:border-0"
|
|
646
657
|
[date]="_mutableDate()"
|
|
647
658
|
[captionLayout]="captionLayout()"
|
|
648
659
|
[min]="min()"
|
|
@@ -657,7 +668,7 @@ class HlmDatePickerMulti {
|
|
|
657
668
|
</hlm-popover>
|
|
658
669
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.HlmPopover, selector: "[hlmPopover],hlm-popover" }, { kind: "directive", type: i2.HlmPopoverContent, selector: "[hlmPopoverContent],hlm-popover-content" }, { kind: "directive", type: i2.HlmPopoverPortal, selector: "[hlmPopoverPortal]" }, { kind: "component", type: HlmCalendarMulti, selector: "hlm-calendar-multi", inputs: ["captionLayout"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
659
670
|
}
|
|
660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerMulti, decorators: [{
|
|
661
672
|
type: Component,
|
|
662
673
|
args: [{
|
|
663
674
|
selector: 'hlm-date-picker-multi',
|
|
@@ -669,15 +680,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
669
680
|
],
|
|
670
681
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
671
682
|
hostDirectives: [BrnFieldControl],
|
|
672
|
-
host: { class:
|
|
683
|
+
host: { class: "tw:block" },
|
|
673
684
|
template: `
|
|
674
685
|
<hlm-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_onStateChange($event)">
|
|
675
686
|
<ng-content />
|
|
676
687
|
|
|
677
|
-
<hlm-popover-content class="w-fit p-0" *hlmPopoverPortal="let ctx">
|
|
688
|
+
<hlm-popover-content class="tw:w-fit tw:p-0" *hlmPopoverPortal="let ctx">
|
|
678
689
|
<ng-content select="[hlmDatePickerHeader]" />
|
|
679
690
|
<hlm-calendar-multi
|
|
680
|
-
class="rounded-none border-0"
|
|
691
|
+
class="tw:rounded-none tw:border-0"
|
|
681
692
|
[date]="_mutableDate()"
|
|
682
693
|
[captionLayout]="captionLayout()"
|
|
683
694
|
[min]="min()"
|
|
@@ -706,7 +717,7 @@ class HlmDatePickerTrigger {
|
|
|
706
717
|
_ariaInvalid = computed(() => (this._invalid?.() ? 'true' : null), /* @ts-ignore */
|
|
707
718
|
...(ngDevMode ? [{ debugName: "_ariaInvalid" }] : /* istanbul ignore next */ []));
|
|
708
719
|
userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
|
|
709
|
-
_computedClass = computed(() => hlm('data-placeholder:text-muted-foreground justify-between', this.userClass()), /* @ts-ignore */
|
|
720
|
+
_computedClass = computed(() => hlm('tw:data-placeholder:text-muted-foreground tw:justify-between', this.userClass()), /* @ts-ignore */
|
|
710
721
|
...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
|
|
711
722
|
_isPlaceholder = computed(() => !this._datePicker.hasDate(), /* @ts-ignore */
|
|
712
723
|
...(ngDevMode ? [{ debugName: "_isPlaceholder" }] : /* istanbul ignore next */ []));
|
|
@@ -723,8 +734,8 @@ class HlmDatePickerTrigger {
|
|
|
723
734
|
_popover = this._datePicker.popover;
|
|
724
735
|
_disabled = this._datePicker.disabledState;
|
|
725
736
|
_formattedDate = this._datePicker.formattedDate;
|
|
726
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
727
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
737
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerTrigger, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
738
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: HlmDatePickerTrigger, isStandalone: true, selector: "hlm-date-picker-trigger", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, buttonId: { classPropertyName: "buttonId", publicName: "buttonId", isSignal: true, isRequired: false, transformFunction: null }, forceInvalid: { classPropertyName: "forceInvalid", publicName: "forceInvalid", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showTrigger: { classPropertyName: "showTrigger", publicName: "showTrigger", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "date-picker-trigger" } }, providers: [provideIcons({ lucideChevronDown }), provideBrnDatePickerTrigger(HlmDatePickerTrigger)], ngImport: i0, template: `
|
|
728
739
|
<button
|
|
729
740
|
[id]="buttonId()"
|
|
730
741
|
type="button"
|
|
@@ -742,7 +753,7 @@ class HlmDatePickerTrigger {
|
|
|
742
753
|
brnFieldControlDescribedBy
|
|
743
754
|
[attr.data-placeholder]="_isPlaceholder() ? '' : null"
|
|
744
755
|
>
|
|
745
|
-
<span class="truncate">
|
|
756
|
+
<span class="tw:truncate">
|
|
746
757
|
@if (_formattedDate(); as formattedDate) {
|
|
747
758
|
{{ formattedDate }}
|
|
748
759
|
} @else {
|
|
@@ -756,7 +767,7 @@ class HlmDatePickerTrigger {
|
|
|
756
767
|
</button>
|
|
757
768
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$2.HlmBtn, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size", "class", "type"], exportAs: ["hlmBtn"] }, { kind: "directive", type: HlmPopoverTrigger, selector: "button[hlmPopoverTrigger],button[hlmPopoverTriggerFor]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: BrnFieldControlDescribedBy, selector: "[brnFieldControlDescribedBy]", inputs: ["aria-describedby"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
758
769
|
}
|
|
759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerTrigger, decorators: [{
|
|
760
771
|
type: Component,
|
|
761
772
|
args: [{
|
|
762
773
|
selector: 'hlm-date-picker-trigger',
|
|
@@ -782,7 +793,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
782
793
|
brnFieldControlDescribedBy
|
|
783
794
|
[attr.data-placeholder]="_isPlaceholder() ? '' : null"
|
|
784
795
|
>
|
|
785
|
-
<span class="truncate">
|
|
796
|
+
<span class="tw:truncate">
|
|
786
797
|
@if (_formattedDate(); as formattedDate) {
|
|
787
798
|
{{ formattedDate }}
|
|
788
799
|
} @else {
|
|
@@ -858,8 +869,8 @@ class HlmDateRangeInput extends BrnDateInput {
|
|
|
858
869
|
formatInputValue(value) {
|
|
859
870
|
return this.formatInputDates()(value);
|
|
860
871
|
}
|
|
861
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
862
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDateRangeInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
873
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: HlmDateRangeInput, isStandalone: true, selector: "hlm-date-range-input", inputs: { parseDate: { classPropertyName: "parseDate", publicName: "parseDate", isSignal: true, isRequired: false, transformFunction: null }, formatInputDates: { classPropertyName: "formatInputDates", publicName: "formatInputDates", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideIcons({ lucideCalendar, lucideX }), provideBrnDatePickerTrigger(HlmDateRangeInput)], usesInheritance: true, hostDirectives: [{ directive: i1.HlmInputGroup }], ngImport: i0, template: `
|
|
863
874
|
<input
|
|
864
875
|
#input
|
|
865
876
|
hlmInputGroupInput
|
|
@@ -900,7 +911,7 @@ class HlmDateRangeInput extends BrnDateInput {
|
|
|
900
911
|
</hlm-input-group-addon>
|
|
901
912
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.HlmInputGroupAddon, selector: "[hlmInputGroupAddon],hlm-input-group-addon", inputs: ["align"] }, { kind: "directive", type: i1.HlmInputGroupButton, selector: "button[hlmInputGroupButton]", inputs: ["size", "type"] }, { kind: "directive", type: i1.HlmInputGroupInput, selector: "input[hlmInputGroupInput]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
902
913
|
}
|
|
903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDateRangeInput, decorators: [{
|
|
904
915
|
type: Component,
|
|
905
916
|
args: [{
|
|
906
917
|
selector: 'hlm-date-range-input',
|
|
@@ -1103,8 +1114,8 @@ class HlmDateRangePicker {
|
|
|
1103
1114
|
this._end.set(dates[1]);
|
|
1104
1115
|
}
|
|
1105
1116
|
}
|
|
1106
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1107
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.
|
|
1117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDateRangePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.3", type: HlmDateRangePicker, isStandalone: true, selector: "hlm-date-range-picker", inputs: { captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", 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 }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, autoCloseOnEndSelection: { classPropertyName: "autoCloseOnEndSelection", publicName: "autoCloseOnEndSelection", isSignal: true, isRequired: false, transformFunction: null }, formatDates: { classPropertyName: "formatDates", publicName: "formatDates", isSignal: true, isRequired: false, transformFunction: null }, transformDates: { classPropertyName: "transformDates", publicName: "transformDates", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateChange: "dateChange" }, host: { classAttribute: "block" }, providers: [
|
|
1108
1119
|
HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR,
|
|
1109
1120
|
provideBrnDatePicker(HlmDateRangePicker),
|
|
1110
1121
|
provideBrnLabelable(HlmDateRangePicker),
|
|
@@ -1112,10 +1123,10 @@ class HlmDateRangePicker {
|
|
|
1112
1123
|
<hlm-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_onStateChange($event)">
|
|
1113
1124
|
<ng-content />
|
|
1114
1125
|
|
|
1115
|
-
<hlm-popover-content class="w-fit p-0" *hlmPopoverPortal="let ctx">
|
|
1126
|
+
<hlm-popover-content class="tw:w-fit tw:p-0" *hlmPopoverPortal="let ctx">
|
|
1116
1127
|
<ng-content select="[hlmDatePickerHeader]" />
|
|
1117
1128
|
<hlm-calendar-range
|
|
1118
|
-
class="rounded-none border-0"
|
|
1129
|
+
class="tw:rounded-none tw:border-0"
|
|
1119
1130
|
[startDate]="_start()"
|
|
1120
1131
|
[captionLayout]="captionLayout()"
|
|
1121
1132
|
[endDate]="_end()"
|
|
@@ -1130,7 +1141,7 @@ class HlmDateRangePicker {
|
|
|
1130
1141
|
</hlm-popover>
|
|
1131
1142
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.HlmPopover, selector: "[hlmPopover],hlm-popover" }, { kind: "directive", type: i2.HlmPopoverContent, selector: "[hlmPopoverContent],hlm-popover-content" }, { kind: "directive", type: i2.HlmPopoverPortal, selector: "[hlmPopoverPortal]" }, { kind: "component", type: HlmCalendarRange, selector: "hlm-calendar-range", inputs: ["captionLayout"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1132
1143
|
}
|
|
1133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDateRangePicker, decorators: [{
|
|
1134
1145
|
type: Component,
|
|
1135
1146
|
args: [{
|
|
1136
1147
|
selector: 'hlm-date-range-picker',
|
|
@@ -1142,15 +1153,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1142
1153
|
],
|
|
1143
1154
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1144
1155
|
hostDirectives: [BrnFieldControl],
|
|
1145
|
-
host: { class:
|
|
1156
|
+
host: { class: "tw:block" },
|
|
1146
1157
|
template: `
|
|
1147
1158
|
<hlm-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_onStateChange($event)">
|
|
1148
1159
|
<ng-content />
|
|
1149
1160
|
|
|
1150
|
-
<hlm-popover-content class="w-fit p-0" *hlmPopoverPortal="let ctx">
|
|
1161
|
+
<hlm-popover-content class="tw:w-fit tw:p-0" *hlmPopoverPortal="let ctx">
|
|
1151
1162
|
<ng-content select="[hlmDatePickerHeader]" />
|
|
1152
1163
|
<hlm-calendar-range
|
|
1153
|
-
class="rounded-none border-0"
|
|
1164
|
+
class="tw:rounded-none tw:border-0"
|
|
1154
1165
|
[startDate]="_start()"
|
|
1155
1166
|
[captionLayout]="captionLayout()"
|
|
1156
1167
|
[endDate]="_end()"
|
|
@@ -1229,8 +1240,8 @@ class HlmMonthYearInput extends BrnDateInput {
|
|
|
1229
1240
|
formatInputValue(value) {
|
|
1230
1241
|
return this.formatInputDate()(value);
|
|
1231
1242
|
}
|
|
1232
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1233
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
1243
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmMonthYearInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1244
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: HlmMonthYearInput, isStandalone: true, selector: "hlm-month-year-input", inputs: { parseDate: { classPropertyName: "parseDate", publicName: "parseDate", isSignal: true, isRequired: false, transformFunction: null }, formatInputDate: { classPropertyName: "formatInputDate", publicName: "formatInputDate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideIcons({ lucideCalendar, lucideX }), provideBrnDatePickerTrigger(HlmMonthYearInput)], usesInheritance: true, hostDirectives: [{ directive: i1.HlmInputGroup }], ngImport: i0, template: `
|
|
1234
1245
|
<input
|
|
1235
1246
|
#input
|
|
1236
1247
|
hlmInputGroupInput
|
|
@@ -1271,7 +1282,7 @@ class HlmMonthYearInput extends BrnDateInput {
|
|
|
1271
1282
|
</hlm-input-group-addon>
|
|
1272
1283
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.HlmInputGroupAddon, selector: "[hlmInputGroupAddon],hlm-input-group-addon", inputs: ["align"] }, { kind: "directive", type: i1.HlmInputGroupButton, selector: "button[hlmInputGroupButton]", inputs: ["size", "type"] }, { kind: "directive", type: i1.HlmInputGroupInput, selector: "input[hlmInputGroupInput]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1273
1284
|
}
|
|
1274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmMonthYearInput, decorators: [{
|
|
1275
1286
|
type: Component,
|
|
1276
1287
|
args: [{
|
|
1277
1288
|
selector: 'hlm-month-year-input',
|
|
@@ -1432,8 +1443,8 @@ class HlmMonthYearPicker {
|
|
|
1432
1443
|
this._onChange?.(null);
|
|
1433
1444
|
this.dateChange.emit(null);
|
|
1434
1445
|
}
|
|
1435
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1436
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.
|
|
1446
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmMonthYearPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1447
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.3", type: HlmMonthYearPicker, isStandalone: true, selector: "hlm-month-year-picker", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, defaultFocusedDate: { classPropertyName: "defaultFocusedDate", publicName: "defaultFocusedDate", isSignal: true, isRequired: false, transformFunction: null }, autoCloseOnSelect: { classPropertyName: "autoCloseOnSelect", publicName: "autoCloseOnSelect", isSignal: true, isRequired: false, transformFunction: null }, formatDate: { classPropertyName: "formatDate", publicName: "formatDate", isSignal: true, isRequired: false, transformFunction: null }, transformDate: { classPropertyName: "transformDate", publicName: "transformDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateChange: "dateChange" }, host: { classAttribute: "block" }, providers: [
|
|
1437
1448
|
HLM_MONTH_YEAR_PICKER_VALUE_ACCESSOR,
|
|
1438
1449
|
provideBrnDatePicker(HlmMonthYearPicker),
|
|
1439
1450
|
provideBrnLabelable(HlmMonthYearPicker),
|
|
@@ -1441,10 +1452,10 @@ class HlmMonthYearPicker {
|
|
|
1441
1452
|
<hlm-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_onStateChange($event)">
|
|
1442
1453
|
<ng-content />
|
|
1443
1454
|
|
|
1444
|
-
<hlm-popover-content class="w-fit p-0" *hlmPopoverPortal="let ctx">
|
|
1455
|
+
<hlm-popover-content class="tw:w-fit tw:p-0" *hlmPopoverPortal="let ctx">
|
|
1445
1456
|
<ng-content select="[hlmDatePickerHeader]" />
|
|
1446
1457
|
<hlm-month-year-calendar
|
|
1447
|
-
class="rounded-none border-0"
|
|
1458
|
+
class="tw:rounded-none tw:border-0"
|
|
1448
1459
|
[date]="_mutableDate()"
|
|
1449
1460
|
[defaultFocusedDate]="_mutableDate() ?? defaultFocusedDate()"
|
|
1450
1461
|
[min]="min()"
|
|
@@ -1457,7 +1468,7 @@ class HlmMonthYearPicker {
|
|
|
1457
1468
|
</hlm-popover>
|
|
1458
1469
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.HlmPopover, selector: "[hlmPopover],hlm-popover" }, { kind: "directive", type: i2.HlmPopoverContent, selector: "[hlmPopoverContent],hlm-popover-content" }, { kind: "directive", type: i2.HlmPopoverPortal, selector: "[hlmPopoverPortal]" }, { kind: "component", type: i3.HlmMonthYearCalendar, selector: "hlm-month-year-calendar" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1459
1470
|
}
|
|
1460
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmMonthYearPicker, decorators: [{
|
|
1461
1472
|
type: Component,
|
|
1462
1473
|
args: [{
|
|
1463
1474
|
selector: 'hlm-month-year-picker',
|
|
@@ -1469,15 +1480,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1469
1480
|
],
|
|
1470
1481
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1471
1482
|
hostDirectives: [BrnFieldControl],
|
|
1472
|
-
host: { class:
|
|
1483
|
+
host: { class: "tw:block" },
|
|
1473
1484
|
template: `
|
|
1474
1485
|
<hlm-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_onStateChange($event)">
|
|
1475
1486
|
<ng-content />
|
|
1476
1487
|
|
|
1477
|
-
<hlm-popover-content class="w-fit p-0" *hlmPopoverPortal="let ctx">
|
|
1488
|
+
<hlm-popover-content class="tw:w-fit tw:p-0" *hlmPopoverPortal="let ctx">
|
|
1478
1489
|
<ng-content select="[hlmDatePickerHeader]" />
|
|
1479
1490
|
<hlm-month-year-calendar
|
|
1480
|
-
class="rounded-none border-0"
|
|
1491
|
+
class="tw:rounded-none tw:border-0"
|
|
1481
1492
|
[date]="_mutableDate()"
|
|
1482
1493
|
[defaultFocusedDate]="_mutableDate() ?? defaultFocusedDate()"
|
|
1483
1494
|
[min]="min()"
|
|
@@ -1508,8 +1519,8 @@ const HlmDatePickerImports = [
|
|
|
1508
1519
|
HlmMonthYearInput,
|
|
1509
1520
|
];
|
|
1510
1521
|
class HlmDatePickerModule {
|
|
1511
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1512
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
1522
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1523
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerModule, imports: [HlmDatePicker,
|
|
1513
1524
|
HlmDatePickerAnchor,
|
|
1514
1525
|
HlmDatePickerInput,
|
|
1515
1526
|
HlmDatePickerMulti,
|
|
@@ -1528,7 +1539,7 @@ class HlmDatePickerModule {
|
|
|
1528
1539
|
HlmDatePickerTrigger,
|
|
1529
1540
|
HlmMonthYearPicker,
|
|
1530
1541
|
HlmMonthYearInput] });
|
|
1531
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
1542
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerModule, imports: [HlmDatePicker,
|
|
1532
1543
|
HlmDatePickerInput,
|
|
1533
1544
|
HlmDatePickerMulti,
|
|
1534
1545
|
HlmDateMultiInput,
|
|
@@ -1538,7 +1549,7 @@ class HlmDatePickerModule {
|
|
|
1538
1549
|
HlmMonthYearPicker,
|
|
1539
1550
|
HlmMonthYearInput] });
|
|
1540
1551
|
}
|
|
1541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmDatePickerModule, decorators: [{
|
|
1542
1553
|
type: NgModule,
|
|
1543
1554
|
args: [{
|
|
1544
1555
|
imports: [...HlmDatePickerImports],
|
|
@@ -1551,4 +1562,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1551
1562
|
*/
|
|
1552
1563
|
|
|
1553
1564
|
export { HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR, HLM_DATE_PICKER_VALUE_ACCESSOR, HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR, HLM_MONTH_YEAR_PICKER_VALUE_ACCESSOR, HlmDateMultiInput, HlmDatePicker, HlmDatePickerAnchor, HlmDatePickerImports, HlmDatePickerInput, HlmDatePickerModule, HlmDatePickerMulti, HlmDatePickerTrigger, HlmDateRangeInput, HlmDateRangePicker, HlmMonthYearInput, HlmMonthYearPicker, injectHlmDatePickerConfig, injectHlmDatePickerMultiConfig, injectHlmDateRangePickerConfig, injectHlmMonthYearPickerConfig, provideHlmDatePickerConfig, provideHlmDatePickerMultiConfig, provideHlmDateRangePickerConfig, provideHlmMonthYearPickerConfig };
|
|
1554
|
-
|
|
1565
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ValueProvider } from '@angular/core';
|
|
3
3
|
import { BrnDateInput, BrnDatePickerTriggerBase, BrnDatePickerBase } from '@spartan-ng/brain/date-picker';
|
|
4
|
-
import * as i1 from '@egose/shadcn-theme-ng/input-group';
|
|
4
|
+
import * as i1 from '@egose/shadcn-theme-ng-tw/input-group';
|
|
5
5
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
6
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
7
|
import { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
@@ -51,6 +51,8 @@ declare class HlmDatePicker<T> implements BrnDatePickerBase<T>, ControlValueAcce
|
|
|
51
51
|
readonly max: _angular_core.InputSignal<T | undefined>;
|
|
52
52
|
/** Determine if the date picker is disabled. */
|
|
53
53
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
54
|
+
/** Additional interaction lock that does not write to a reactive form control. */
|
|
55
|
+
readonly wrapperDisabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
54
56
|
/** The selected value. */
|
|
55
57
|
readonly date: _angular_core.InputSignal<T | undefined>;
|
|
56
58
|
/** The date the calendar focuses on first open when no date is selected. */
|
|
@@ -63,7 +65,7 @@ declare class HlmDatePicker<T> implements BrnDatePickerBase<T>, ControlValueAcce
|
|
|
63
65
|
/** Defines how the date should be transformed before saving to model/form. */
|
|
64
66
|
readonly transformDate: _angular_core.InputSignal<(date: T) => T>;
|
|
65
67
|
protected readonly _popoverState: _angular_core.WritableSignal<BrnOverlayState | null>;
|
|
66
|
-
|
|
68
|
+
private readonly _formDisabled;
|
|
67
69
|
/** @internal The disabled state as a readonly signal */
|
|
68
70
|
readonly disabledState: _angular_core.Signal<boolean>;
|
|
69
71
|
readonly formattedDate: _angular_core.Signal<string | undefined>;
|
|
@@ -93,7 +95,7 @@ declare class HlmDatePicker<T> implements BrnDatePickerBase<T>, ControlValueAcce
|
|
|
93
95
|
close(): void;
|
|
94
96
|
reset(): void;
|
|
95
97
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePicker<any>, never>;
|
|
96
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePicker<any>, "hlm-date-picker", never, { "captionLayout": { "alias": "captionLayout"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; "autoCloseOnSelect": { "alias": "autoCloseOnSelect"; "required": false; "isSignal": true; }; "formatDate": { "alias": "formatDate"; "required": false; "isSignal": true; }; "transformDate": { "alias": "transformDate"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{ directive: typeof i1$1.BrnFieldControl; inputs: {}; outputs: {}; }]>;
|
|
98
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePicker<any>, "hlm-date-picker", never, { "captionLayout": { "alias": "captionLayout"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "wrapperDisabled": { "alias": "wrapperDisabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; "autoCloseOnSelect": { "alias": "autoCloseOnSelect"; "required": false; "isSignal": true; }; "formatDate": { "alias": "formatDate"; "required": false; "isSignal": true; }; "transformDate": { "alias": "transformDate"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{ directive: typeof i1$1.BrnFieldControl; inputs: {}; outputs: {}; }]>;
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
declare class HlmDatePickerAnchor {
|
|
@@ -108,6 +110,8 @@ declare class HlmDatePickerAnchor {
|
|
|
108
110
|
|
|
109
111
|
declare class HlmDatePickerInput<T> extends BrnDateInput<T> implements BrnDatePickerTriggerBase {
|
|
110
112
|
private readonly _config;
|
|
113
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
114
|
+
readonly ariaDescribedby: _angular_core.InputSignal<string | null>;
|
|
111
115
|
/**
|
|
112
116
|
* Parses input text into a date value. Return `null` for invalid
|
|
113
117
|
* input - the picker's date is cleared while the text is preserved so
|
|
@@ -126,7 +130,7 @@ declare class HlmDatePickerInput<T> extends BrnDateInput<T> implements BrnDatePi
|
|
|
126
130
|
protected parseValue(value: string): T | null;
|
|
127
131
|
protected formatInputValue(value: T): string;
|
|
128
132
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePickerInput<any>, never>;
|
|
129
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePickerInput<any>, "hlm-date-picker-input", never, { "parseDate": { "alias": "parseDate"; "required": false; "isSignal": true; }; "formatInputDate": { "alias": "formatInputDate"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmInputGroup; inputs: {}; outputs: {}; }]>;
|
|
133
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePickerInput<any>, "hlm-date-picker-input", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; "isSignal": true; }; "parseDate": { "alias": "parseDate"; "required": false; "isSignal": true; }; "formatInputDate": { "alias": "formatInputDate"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmInputGroup; inputs: {}; outputs: {}; }]>;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
declare const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR: {
|