ng-primitives 0.120.5 → 0.121.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/fesm2022/ng-primitives-a11y.mjs +5 -5
- package/fesm2022/ng-primitives-a11y.mjs.map +1 -1
- package/fesm2022/ng-primitives-accordion.mjs +30 -47
- package/fesm2022/ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/ng-primitives-ai.mjs +39 -52
- package/fesm2022/ng-primitives-ai.mjs.map +1 -1
- package/fesm2022/ng-primitives-autofill.mjs +4 -4
- package/fesm2022/ng-primitives-autofill.mjs.map +1 -1
- package/fesm2022/ng-primitives-avatar.mjs +14 -17
- package/fesm2022/ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/ng-primitives-breadcrumbs.mjs +21 -21
- package/fesm2022/ng-primitives-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ng-primitives-button.mjs +7 -9
- package/fesm2022/ng-primitives-button.mjs.map +1 -1
- package/fesm2022/ng-primitives-checkbox.mjs +15 -30
- package/fesm2022/ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-combobox.mjs +60 -92
- package/fesm2022/ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/ng-primitives-common.mjs +4 -4
- package/fesm2022/ng-primitives-common.mjs.map +1 -1
- package/fesm2022/ng-primitives-context-menu.mjs +66 -119
- package/fesm2022/ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-date-picker.mjs +70 -108
- package/fesm2022/ng-primitives-date-picker.mjs.map +1 -1
- package/fesm2022/ng-primitives-dialog.mjs +33 -49
- package/fesm2022/ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/ng-primitives-file-upload.mjs +26 -53
- package/fesm2022/ng-primitives-file-upload.mjs.map +1 -1
- package/fesm2022/ng-primitives-focus-trap.mjs +5 -8
- package/fesm2022/ng-primitives-focus-trap.mjs.map +1 -1
- package/fesm2022/ng-primitives-form-field.mjs +39 -44
- package/fesm2022/ng-primitives-form-field.mjs.map +1 -1
- package/fesm2022/ng-primitives-input-otp.mjs +30 -43
- package/fesm2022/ng-primitives-input-otp.mjs.map +1 -1
- package/fesm2022/ng-primitives-input.mjs +6 -8
- package/fesm2022/ng-primitives-input.mjs.map +1 -1
- package/fesm2022/ng-primitives-interactions.mjs +31 -48
- package/fesm2022/ng-primitives-interactions.mjs.map +1 -1
- package/fesm2022/ng-primitives-internal.mjs +12 -12
- package/fesm2022/ng-primitives-internal.mjs.map +1 -1
- package/fesm2022/ng-primitives-listbox.mjs +34 -48
- package/fesm2022/ng-primitives-listbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-menu.mjs +83 -149
- package/fesm2022/ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-meter.mjs +25 -36
- package/fesm2022/ng-primitives-meter.mjs.map +1 -1
- package/fesm2022/ng-primitives-navigation-menu.mjs +60 -108
- package/fesm2022/ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-number-field.mjs +35 -59
- package/fesm2022/ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/ng-primitives-pagination.mjs +270 -297
- package/fesm2022/ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/ng-primitives-popover.mjs +42 -87
- package/fesm2022/ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/ng-primitives-portal.mjs +81 -57
- package/fesm2022/ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/ng-primitives-progress.mjs +30 -41
- package/fesm2022/ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/ng-primitives-radio.mjs +20 -30
- package/fesm2022/ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/ng-primitives-resize.mjs +3 -3
- package/fesm2022/ng-primitives-resize.mjs.map +1 -1
- package/fesm2022/ng-primitives-roving-focus.mjs +20 -34
- package/fesm2022/ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/ng-primitives-search.mjs +9 -9
- package/fesm2022/ng-primitives-search.mjs.map +1 -1
- package/fesm2022/ng-primitives-select.mjs +50 -81
- package/fesm2022/ng-primitives-select.mjs.map +1 -1
- package/fesm2022/ng-primitives-separator.mjs +4 -6
- package/fesm2022/ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/ng-primitives-slider.mjs +63 -100
- package/fesm2022/ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/ng-primitives-state.mjs +3 -3
- package/fesm2022/ng-primitives-state.mjs.map +1 -1
- package/fesm2022/ng-primitives-switch.mjs +15 -21
- package/fesm2022/ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/ng-primitives-tabs.mjs +31 -41
- package/fesm2022/ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/ng-primitives-textarea.mjs +5 -7
- package/fesm2022/ng-primitives-textarea.mjs.map +1 -1
- package/fesm2022/ng-primitives-toast.mjs +19 -19
- package/fesm2022/ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle-group.mjs +20 -36
- package/fesm2022/ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle.mjs +10 -19
- package/fesm2022/ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/ng-primitives-toolbar.mjs +4 -6
- package/fesm2022/ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/ng-primitives-tooltip.mjs +401 -402
- package/fesm2022/ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/ng-primitives-utils.mjs +5 -4
- package/fesm2022/ng-primitives-utils.mjs.map +1 -1
- package/package.json +56 -55
- package/{a11y/index.d.ts → types/ng-primitives-a11y.d.ts} +15 -14
- package/{accordion/index.d.ts → types/ng-primitives-accordion.d.ts} +78 -77
- package/{button/index.d.ts → types/ng-primitives-button.d.ts} +21 -20
- package/{checkbox/index.d.ts → types/ng-primitives-checkbox.d.ts} +67 -66
- package/{combobox/index.d.ts → types/ng-primitives-combobox.d.ts} +35 -35
- package/{date-picker/index.d.ts → types/ng-primitives-date-picker.d.ts} +2 -2
- package/{number-field/index.d.ts → types/ng-primitives-number-field.d.ts} +72 -71
- package/types/ng-primitives-pagination.d.ts +502 -0
- package/{popover/index.d.ts → types/ng-primitives-popover.d.ts} +3 -2
- package/{portal/index.d.ts → types/ng-primitives-portal.d.ts} +19 -3
- package/{roving-focus/index.d.ts → types/ng-primitives-roving-focus.d.ts} +61 -60
- package/{select/index.d.ts → types/ng-primitives-select.d.ts} +39 -38
- package/{slider/index.d.ts → types/ng-primitives-slider.d.ts} +59 -58
- package/{switch/index.d.ts → types/ng-primitives-switch.d.ts} +45 -44
- package/{toast/index.d.ts → types/ng-primitives-toast.d.ts} +2 -1
- package/{toggle-group/index.d.ts → types/ng-primitives-toggle-group.d.ts} +69 -68
- package/{toggle/index.d.ts → types/ng-primitives-toggle.d.ts} +48 -47
- package/types/ng-primitives-tooltip.d.ts +691 -0
- package/pagination/index.d.ts +0 -211
- package/tooltip/index.d.ts +0 -376
- /package/{ai/index.d.ts → types/ng-primitives-ai.d.ts} +0 -0
- /package/{autofill/index.d.ts → types/ng-primitives-autofill.d.ts} +0 -0
- /package/{avatar/index.d.ts → types/ng-primitives-avatar.d.ts} +0 -0
- /package/{breadcrumbs/index.d.ts → types/ng-primitives-breadcrumbs.d.ts} +0 -0
- /package/{common/index.d.ts → types/ng-primitives-common.d.ts} +0 -0
- /package/{context-menu/index.d.ts → types/ng-primitives-context-menu.d.ts} +0 -0
- /package/{date-time-luxon/index.d.ts → types/ng-primitives-date-time-luxon.d.ts} +0 -0
- /package/{date-time/index.d.ts → types/ng-primitives-date-time.d.ts} +0 -0
- /package/{dialog/index.d.ts → types/ng-primitives-dialog.d.ts} +0 -0
- /package/{file-upload/index.d.ts → types/ng-primitives-file-upload.d.ts} +0 -0
- /package/{focus-trap/index.d.ts → types/ng-primitives-focus-trap.d.ts} +0 -0
- /package/{form-field/index.d.ts → types/ng-primitives-form-field.d.ts} +0 -0
- /package/{input-otp/index.d.ts → types/ng-primitives-input-otp.d.ts} +0 -0
- /package/{input/index.d.ts → types/ng-primitives-input.d.ts} +0 -0
- /package/{interactions/index.d.ts → types/ng-primitives-interactions.d.ts} +0 -0
- /package/{internal/index.d.ts → types/ng-primitives-internal.d.ts} +0 -0
- /package/{listbox/index.d.ts → types/ng-primitives-listbox.d.ts} +0 -0
- /package/{menu/index.d.ts → types/ng-primitives-menu.d.ts} +0 -0
- /package/{meter/index.d.ts → types/ng-primitives-meter.d.ts} +0 -0
- /package/{navigation-menu/index.d.ts → types/ng-primitives-navigation-menu.d.ts} +0 -0
- /package/{progress/index.d.ts → types/ng-primitives-progress.d.ts} +0 -0
- /package/{radio/index.d.ts → types/ng-primitives-radio.d.ts} +0 -0
- /package/{resize/index.d.ts → types/ng-primitives-resize.d.ts} +0 -0
- /package/{search/index.d.ts → types/ng-primitives-search.d.ts} +0 -0
- /package/{separator/index.d.ts → types/ng-primitives-separator.d.ts} +0 -0
- /package/{state/index.d.ts → types/ng-primitives-state.d.ts} +0 -0
- /package/{tabs/index.d.ts → types/ng-primitives-tabs.d.ts} +0 -0
- /package/{textarea/index.d.ts → types/ng-primitives-textarea.d.ts} +0 -0
- /package/{toolbar/index.d.ts → types/ng-primitives-toolbar.d.ts} +0 -0
- /package/{utils/index.d.ts → types/ng-primitives-utils.d.ts} +0 -0
- /package/{index.d.ts → types/ng-primitives.d.ts} +0 -0
|
@@ -113,10 +113,10 @@ class NgpDatePickerCellRender {
|
|
|
113
113
|
ngOnDestroy() {
|
|
114
114
|
this.viewRefs.forEach(viewRef => viewRef.destroy());
|
|
115
115
|
}
|
|
116
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
117
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerCellRender, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
117
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.14", type: NgpDatePickerCellRender, isStandalone: true, selector: "[ngpDatePickerCellRender]", providers: [{ provide: NgpDatePickerCellRenderToken, useExisting: NgpDatePickerCellRender }], exportAs: ["ngpDatePickerCellRender"], ngImport: i0 }); }
|
|
118
118
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerCellRender, decorators: [{
|
|
120
120
|
type: Directive,
|
|
121
121
|
args: [{
|
|
122
122
|
selector: '[ngpDatePickerCellRender]',
|
|
@@ -180,18 +180,16 @@ class NgpDatePickerCell {
|
|
|
180
180
|
/**
|
|
181
181
|
* Access the child date picker date button.
|
|
182
182
|
*/
|
|
183
|
-
this.datePickerButton = contentChild(NgpDatePickerDateButtonToken, ...(ngDevMode ?
|
|
184
|
-
descendants: true,
|
|
185
|
-
}]));
|
|
183
|
+
this.datePickerButton = contentChild(NgpDatePickerDateButtonToken, { ...(ngDevMode ? { debugName: "datePickerButton" } : /* istanbul ignore next */ {}), descendants: true });
|
|
186
184
|
/**
|
|
187
185
|
* Access the label id.
|
|
188
186
|
*/
|
|
189
|
-
this.labelId = computed(() => this.state().label()?.id(), ...(ngDevMode ? [{ debugName: "labelId" }] : []));
|
|
187
|
+
this.labelId = computed(() => this.state().label()?.id(), ...(ngDevMode ? [{ debugName: "labelId" }] : /* istanbul ignore next */ []));
|
|
190
188
|
}
|
|
191
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
192
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerCell, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
190
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.14", type: NgpDatePickerCell, isStandalone: true, selector: "[ngpDatePickerCell]", host: { attributes: { "role": "gridcell" }, properties: { "attr.data-selected": "datePickerButton()?.selected() ? \"\" : null", "attr.aria-selected": "datePickerButton()?.selected()", "attr.aria-disabled": "datePickerButton()?.disabled()", "attr.data-disabled": "datePickerButton()?.disabled() ? \"\" : null", "attr.aria-labelledby": "labelId()" } }, queries: [{ propertyName: "datePickerButton", first: true, predicate: NgpDatePickerDateButtonToken, descendants: true, isSignal: true }], exportAs: ["ngpDatePickerCell"], ngImport: i0 }); }
|
|
193
191
|
}
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerCell, decorators: [{
|
|
195
193
|
type: Directive,
|
|
196
194
|
args: [{
|
|
197
195
|
selector: '[ngpDatePickerCell]',
|
|
@@ -237,32 +235,32 @@ class NgpDatePickerDateButton {
|
|
|
237
235
|
/**
|
|
238
236
|
* Determine if this is the focused date.
|
|
239
237
|
*/
|
|
240
|
-
this.focused = computed(() => this.dateAdapter.isSameDay(this.date, this.state().focusedDate()), ...(ngDevMode ? [{ debugName: "focused" }] : []));
|
|
238
|
+
this.focused = computed(() => this.dateAdapter.isSameDay(this.date, this.state().focusedDate()), ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
241
239
|
/**
|
|
242
240
|
* Determine if this is the selected date.
|
|
243
241
|
* @internal
|
|
244
242
|
*/
|
|
245
|
-
this.selected = computed(() => this.state().isSelected(this.date), ...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
243
|
+
this.selected = computed(() => this.state().isSelected(this.date), ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
246
244
|
/**
|
|
247
245
|
* Determine if this is the start date of the range.
|
|
248
246
|
*/
|
|
249
|
-
this.start = computed(() => this.state().isStartOfRange(this.date), ...(ngDevMode ? [{ debugName: "start" }] : []));
|
|
247
|
+
this.start = computed(() => this.state().isStartOfRange(this.date), ...(ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []));
|
|
250
248
|
/**
|
|
251
249
|
* Determine if this is the end date of the range.
|
|
252
250
|
*/
|
|
253
|
-
this.end = computed(() => this.state().isEndOfRange(this.date), ...(ngDevMode ? [{ debugName: "end" }] : []));
|
|
251
|
+
this.end = computed(() => this.state().isEndOfRange(this.date), ...(ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []));
|
|
254
252
|
/**
|
|
255
253
|
* Determine if this is between the start and end dates of the range.
|
|
256
254
|
*/
|
|
257
|
-
this.betweenRange = computed(() => this.state().isBetweenRange(this.date), ...(ngDevMode ? [{ debugName: "betweenRange" }] : []));
|
|
255
|
+
this.betweenRange = computed(() => this.state().isBetweenRange(this.date), ...(ngDevMode ? [{ debugName: "betweenRange" }] : /* istanbul ignore next */ []));
|
|
258
256
|
/**
|
|
259
257
|
* Determine if this date is outside the current month.
|
|
260
258
|
*/
|
|
261
|
-
this.outside = computed(() => !this.dateAdapter.isSameMonth(this.date, this.state().focusedDate()), ...(ngDevMode ? [{ debugName: "outside" }] : []));
|
|
259
|
+
this.outside = computed(() => !this.dateAdapter.isSameMonth(this.date, this.state().focusedDate()), ...(ngDevMode ? [{ debugName: "outside" }] : /* istanbul ignore next */ []));
|
|
262
260
|
/**
|
|
263
261
|
* Determine if this date is today.
|
|
264
262
|
*/
|
|
265
|
-
this.today = computed(() => this.dateAdapter.isSameDay(this.date, this.dateAdapter.now()), ...(ngDevMode ? [{ debugName: "today" }] : []));
|
|
263
|
+
this.today = computed(() => this.dateAdapter.isSameDay(this.date, this.dateAdapter.now()), ...(ngDevMode ? [{ debugName: "today" }] : /* istanbul ignore next */ []));
|
|
266
264
|
/**
|
|
267
265
|
* Determine if this date is disabled.
|
|
268
266
|
* @internal
|
|
@@ -280,7 +278,7 @@ class NgpDatePickerDateButton {
|
|
|
280
278
|
return true;
|
|
281
279
|
}
|
|
282
280
|
return false;
|
|
283
|
-
}, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
281
|
+
}, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
284
282
|
/**
|
|
285
283
|
* Determine if the element is a button.
|
|
286
284
|
*/
|
|
@@ -425,10 +423,10 @@ class NgpDatePickerDateButton {
|
|
|
425
423
|
getDirection() {
|
|
426
424
|
return getComputedStyle(this.elementRef.nativeElement).direction === 'rtl' ? 'rtl' : 'ltr';
|
|
427
425
|
}
|
|
428
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
429
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerDateButton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
427
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.14", type: NgpDatePickerDateButton, isStandalone: true, selector: "[ngpDatePickerDateButton]", host: { listeners: { "click": "select()", "keydown.enter": "select($event)", "keydown.space": "select($event)", "keydown.arrowLeft": "focusPrevious($event)", "keydown.arrowRight": "focusNext($event)", "keydown.arrowUp": "focusAbove($event)", "keydown.arrowDown": "focusBelow($event)", "keydown.home": "focusFirst($event)", "keydown.end": "focusLast($event)", "keydown.pageUp": "focusPreviousMonth($event)", "keydown.pageDown": "focusNextMonth($event)" }, properties: { "attr.role": "!isButton ? \"button\" : null", "attr.tabindex": "focused() ? 0 : -1", "attr.data-selected": "selected() ? \"\" : null", "attr.aria-disabled": "disabled()", "attr.data-outside-month": "outside() ? \"\" : null", "attr.data-today": "today() ? \"\" : null", "attr.data-range-start": "start() ? \"\" : null", "attr.data-range-end": "end() ? \"\" : null", "attr.data-range-between": "betweenRange() ? \"\" : null" } }, providers: [{ provide: NgpDatePickerDateButtonToken, useExisting: NgpDatePickerDateButton }], exportAs: ["ngpDatePickerDateButton"], ngImport: i0 }); }
|
|
430
428
|
}
|
|
431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerDateButton, decorators: [{
|
|
432
430
|
type: Directive,
|
|
433
431
|
args: [{
|
|
434
432
|
selector: '[ngpDatePickerDateButton]',
|
|
@@ -493,12 +491,12 @@ class NgpDatePickerGrid {
|
|
|
493
491
|
/**
|
|
494
492
|
* Determine the id for the label.
|
|
495
493
|
*/
|
|
496
|
-
this.labelId = computed(() => this.state().label()?.id(), ...(ngDevMode ? [{ debugName: "labelId" }] : []));
|
|
494
|
+
this.labelId = computed(() => this.state().label()?.id(), ...(ngDevMode ? [{ debugName: "labelId" }] : /* istanbul ignore next */ []));
|
|
497
495
|
}
|
|
498
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
499
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
496
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerGrid, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
497
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.14", type: NgpDatePickerGrid, isStandalone: true, selector: "[ngpDatePickerGrid]", host: { attributes: { "role": "grid" }, properties: { "attr.aria-labelledby": "labelId()", "attr.data-disabled": "state().disabled() ? \"\" : null" } }, exportAs: ["ngpDatePickerGrid"], ngImport: i0 }); }
|
|
500
498
|
}
|
|
501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerGrid, decorators: [{
|
|
502
500
|
type: Directive,
|
|
503
501
|
args: [{
|
|
504
502
|
selector: '[ngpDatePickerGrid]',
|
|
@@ -531,18 +529,16 @@ class NgpDatePickerLabel {
|
|
|
531
529
|
/**
|
|
532
530
|
* Define a unique id for the label.
|
|
533
531
|
*/
|
|
534
|
-
this.id = input(uniqueId('ngp-date-picker-label'), ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
532
|
+
this.id = input(uniqueId('ngp-date-picker-label'), ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
535
533
|
/**
|
|
536
534
|
* Define the aria live attribute.
|
|
537
535
|
*/
|
|
538
|
-
this.ariaLive = input('polite', ...(ngDevMode ?
|
|
539
|
-
alias: 'aria-live',
|
|
540
|
-
}]));
|
|
536
|
+
this.ariaLive = input('polite', { ...(ngDevMode ? { debugName: "ariaLive" } : /* istanbul ignore next */ {}), alias: 'aria-live' });
|
|
541
537
|
}
|
|
542
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
543
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
538
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
539
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.14", type: NgpDatePickerLabel, isStandalone: true, selector: "[ngpDatePickerLabel]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLive: { classPropertyName: "ariaLive", publicName: "aria-live", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "id": "id()", "attr.aria-live": "ariaLive()", "attr.data-disabled": "state().disabled() ? \"\" : null" } }, providers: [{ provide: NgpDatePickerLabelToken, useExisting: NgpDatePickerLabel }], exportAs: ["ngpDatePickerLabel"], ngImport: i0 }); }
|
|
544
540
|
}
|
|
545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerLabel, decorators: [{
|
|
546
542
|
type: Directive,
|
|
547
543
|
args: [{
|
|
548
544
|
selector: '[ngpDatePickerLabel]',
|
|
@@ -597,7 +593,7 @@ class NgpDatePickerNextMonth {
|
|
|
597
593
|
return true;
|
|
598
594
|
}
|
|
599
595
|
return false;
|
|
600
|
-
}, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
596
|
+
}, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
601
597
|
ngpButton({ disabled: this.disabled });
|
|
602
598
|
}
|
|
603
599
|
/**
|
|
@@ -626,10 +622,10 @@ class NgpDatePickerNextMonth {
|
|
|
626
622
|
date = this.dateAdapter.set(date, { day: Math.min(day, lastDay) });
|
|
627
623
|
this.state().setFocusedDate(date, 'mouse', 'forward');
|
|
628
624
|
}
|
|
629
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
630
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
625
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerNextMonth, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
626
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.14", type: NgpDatePickerNextMonth, isStandalone: true, selector: "[ngpDatePickerNextMonth]", host: { listeners: { "click": "navigateToNextMonth()" }, properties: { "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.type": "isButton ? \"button\" : null" } }, exportAs: ["ngpDatePickerNextMonth"], ngImport: i0 }); }
|
|
631
627
|
}
|
|
632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerNextMonth, decorators: [{
|
|
633
629
|
type: Directive,
|
|
634
630
|
args: [{
|
|
635
631
|
selector: '[ngpDatePickerNextMonth]',
|
|
@@ -686,7 +682,7 @@ class NgpDatePickerPreviousMonth {
|
|
|
686
682
|
return true;
|
|
687
683
|
}
|
|
688
684
|
return false;
|
|
689
|
-
}, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
685
|
+
}, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
690
686
|
ngpButton({ disabled: this.disabled });
|
|
691
687
|
}
|
|
692
688
|
/**
|
|
@@ -715,10 +711,10 @@ class NgpDatePickerPreviousMonth {
|
|
|
715
711
|
date = this.dateAdapter.set(date, { day: Math.min(day, lastDay) });
|
|
716
712
|
this.state().setFocusedDate(date, 'mouse', 'backward');
|
|
717
713
|
}
|
|
718
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
719
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
714
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerPreviousMonth, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
715
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.14", type: NgpDatePickerPreviousMonth, isStandalone: true, selector: "[ngpDatePickerPreviousMonth]", host: { listeners: { "click": "navigateToPreviouMonth()" }, properties: { "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.type": "isButton ? \"button\" : null" } }, exportAs: ["ngpDatePickerPreviousMonth"], ngImport: i0 }); }
|
|
720
716
|
}
|
|
721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerPreviousMonth, decorators: [{
|
|
722
718
|
type: Directive,
|
|
723
719
|
args: [{
|
|
724
720
|
selector: '[ngpDatePickerPreviousMonth]',
|
|
@@ -785,7 +781,7 @@ class NgpDatePickerRowRender {
|
|
|
785
781
|
firstDay = this.dateAdapter.add(firstDay, { days: 1 });
|
|
786
782
|
}
|
|
787
783
|
return days;
|
|
788
|
-
}, ...(ngDevMode ? [{ debugName: "days" }] : []));
|
|
784
|
+
}, ...(ngDevMode ? [{ debugName: "days" }] : /* istanbul ignore next */ []));
|
|
789
785
|
// get the weeks to display.
|
|
790
786
|
this.weeks = computed(() => {
|
|
791
787
|
const days = this.days();
|
|
@@ -794,7 +790,7 @@ class NgpDatePickerRowRender {
|
|
|
794
790
|
weeks.push(days.slice(i, i + 7));
|
|
795
791
|
}
|
|
796
792
|
return weeks;
|
|
797
|
-
}, ...(ngDevMode ? [{ debugName: "weeks" }] : []));
|
|
793
|
+
}, ...(ngDevMode ? [{ debugName: "weeks" }] : /* istanbul ignore next */ []));
|
|
798
794
|
/**
|
|
799
795
|
* Store the embedded view refs of each rendered row.
|
|
800
796
|
*/
|
|
@@ -873,10 +869,10 @@ class NgpDatePickerRowRender {
|
|
|
873
869
|
const firstDay = this.state().firstDayOfWeek();
|
|
874
870
|
return (DAYS_PER_WEEK + firstDay + DAYS_PER_WEEK - 1 - lastDay) % DAYS_PER_WEEK;
|
|
875
871
|
}
|
|
876
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
877
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
872
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerRowRender, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
873
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.14", type: NgpDatePickerRowRender, isStandalone: true, selector: "[ngpDatePickerRowRender]", providers: [{ provide: NgpDatePickerRowRenderToken, useExisting: NgpDatePickerRowRender }], exportAs: ["ngpDatePickerRowRender"], ngImport: i0 }); }
|
|
878
874
|
}
|
|
879
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePickerRowRender, decorators: [{
|
|
880
876
|
type: Directive,
|
|
881
877
|
args: [{
|
|
882
878
|
selector: '[ngpDatePickerRowRender]',
|
|
@@ -918,29 +914,20 @@ class NgpDatePicker {
|
|
|
918
914
|
/**
|
|
919
915
|
* The minimum date that can be selected.
|
|
920
916
|
*/
|
|
921
|
-
this.min = input(undefined, ...(ngDevMode ?
|
|
922
|
-
alias: 'ngpDatePickerMin',
|
|
923
|
-
}]));
|
|
917
|
+
this.min = input(undefined, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), alias: 'ngpDatePickerMin' });
|
|
924
918
|
/**
|
|
925
919
|
* The maximum date that can be selected.
|
|
926
920
|
*/
|
|
927
|
-
this.max = input(undefined, ...(ngDevMode ?
|
|
928
|
-
alias: 'ngpDatePickerMax',
|
|
929
|
-
}]));
|
|
921
|
+
this.max = input(undefined, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), alias: 'ngpDatePickerMax' });
|
|
930
922
|
/**
|
|
931
923
|
* Determine if the date picker is disabled.
|
|
932
924
|
*/
|
|
933
|
-
this.disabled = input(false, ...(ngDevMode ?
|
|
934
|
-
|
|
935
|
-
alias: 'ngpDatePickerDisabled',
|
|
936
|
-
transform: booleanAttribute,
|
|
937
|
-
}]));
|
|
925
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), alias: 'ngpDatePickerDisabled',
|
|
926
|
+
transform: booleanAttribute });
|
|
938
927
|
/**
|
|
939
928
|
* A function that is called to determine if a specific date should be disabled.
|
|
940
929
|
*/
|
|
941
|
-
this.dateDisabled = input(() => false, ...(ngDevMode ?
|
|
942
|
-
alias: 'ngpDatePickerDateDisabled',
|
|
943
|
-
}]));
|
|
930
|
+
this.dateDisabled = input(() => false, { ...(ngDevMode ? { debugName: "dateDisabled" } : /* istanbul ignore next */ {}), alias: 'ngpDatePickerDateDisabled' });
|
|
944
931
|
/**
|
|
945
932
|
* Sets which day starts the week in the calendar.
|
|
946
933
|
* Accepts 0-7 where 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday.
|
|
@@ -948,17 +935,12 @@ class NgpDatePicker {
|
|
|
948
935
|
* Note: Update calendar header column order when changing from Sunday start.
|
|
949
936
|
* @default 7 (Sunday)
|
|
950
937
|
*/
|
|
951
|
-
this.firstDayOfWeek = input(transformToFirstDayOfWeekNumber(this.config.firstDayOfWeek), ...(ngDevMode ?
|
|
952
|
-
|
|
953
|
-
alias: 'ngpDatePickerFirstDayOfWeek',
|
|
954
|
-
transform: transformToFirstDayOfWeekNumber,
|
|
955
|
-
}]));
|
|
938
|
+
this.firstDayOfWeek = input(transformToFirstDayOfWeekNumber(this.config.firstDayOfWeek), { ...(ngDevMode ? { debugName: "firstDayOfWeek" } : /* istanbul ignore next */ {}), alias: 'ngpDatePickerFirstDayOfWeek',
|
|
939
|
+
transform: transformToFirstDayOfWeekNumber });
|
|
956
940
|
/**
|
|
957
941
|
* The selected value.
|
|
958
942
|
*/
|
|
959
|
-
this.date = input(undefined, ...(ngDevMode ?
|
|
960
|
-
alias: 'ngpDatePickerDate',
|
|
961
|
-
}]));
|
|
943
|
+
this.date = input(undefined, { ...(ngDevMode ? { debugName: "date" } : /* istanbul ignore next */ {}), alias: 'ngpDatePickerDate' });
|
|
962
944
|
/**
|
|
963
945
|
* Emit when the date changes.
|
|
964
946
|
*/
|
|
@@ -968,9 +950,7 @@ class NgpDatePicker {
|
|
|
968
950
|
/**
|
|
969
951
|
* The focused value.
|
|
970
952
|
*/
|
|
971
|
-
this.focusedDate = input(this.dateAdapter.now(), ...(ngDevMode ?
|
|
972
|
-
alias: 'ngpDatePickerFocusedDate',
|
|
973
|
-
}]));
|
|
953
|
+
this.focusedDate = input(this.dateAdapter.now(), { ...(ngDevMode ? { debugName: "focusedDate" } : /* istanbul ignore next */ {}), alias: 'ngpDatePickerFocusedDate' });
|
|
974
954
|
/**
|
|
975
955
|
* Emit when the focused date changes.
|
|
976
956
|
*/
|
|
@@ -981,11 +961,11 @@ class NgpDatePicker {
|
|
|
981
961
|
* Detect the label element.
|
|
982
962
|
* @internal
|
|
983
963
|
*/
|
|
984
|
-
this.label = contentChild(NgpDatePickerLabelToken, ...(ngDevMode ?
|
|
964
|
+
this.label = contentChild(NgpDatePickerLabelToken, { ...(ngDevMode ? { debugName: "label" } : /* istanbul ignore next */ {}), descendants: true });
|
|
985
965
|
/**
|
|
986
966
|
* Access all the date picker buttons
|
|
987
967
|
*/
|
|
988
|
-
this.buttons = signal([], ...(ngDevMode ? [{ debugName: "buttons" }] : []));
|
|
968
|
+
this.buttons = signal([], ...(ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []));
|
|
989
969
|
/**
|
|
990
970
|
* The date picker state.
|
|
991
971
|
*/
|
|
@@ -1105,10 +1085,10 @@ class NgpDatePicker {
|
|
|
1105
1085
|
isBetweenRange(_) {
|
|
1106
1086
|
return false;
|
|
1107
1087
|
}
|
|
1108
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1109
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
1088
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePicker, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1089
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.14", type: NgpDatePicker, isStandalone: true, selector: "[ngpDatePicker]", inputs: { min: { classPropertyName: "min", publicName: "ngpDatePickerMin", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "ngpDatePickerMax", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "ngpDatePickerDisabled", isSignal: true, isRequired: false, transformFunction: null }, dateDisabled: { classPropertyName: "dateDisabled", publicName: "ngpDatePickerDateDisabled", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "ngpDatePickerFirstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "ngpDatePickerDate", isSignal: true, isRequired: false, transformFunction: null }, focusedDate: { classPropertyName: "focusedDate", publicName: "ngpDatePickerFocusedDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateChange: "ngpDatePickerDateChange", focusedDateChange: "ngpDatePickerFocusedDateChange" }, host: { properties: { "attr.data-disabled": "state.disabled() ? \"\" : null" } }, providers: [provideDatePickerState()], queries: [{ propertyName: "label", first: true, predicate: NgpDatePickerLabelToken, descendants: true, isSignal: true }], exportAs: ["ngpDatePicker"], ngImport: i0 }); }
|
|
1110
1090
|
}
|
|
1111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1091
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDatePicker, decorators: [{
|
|
1112
1092
|
type: Directive,
|
|
1113
1093
|
args: [{
|
|
1114
1094
|
selector: '[ngpDatePicker]',
|
|
@@ -1134,29 +1114,20 @@ class NgpDateRangePicker {
|
|
|
1134
1114
|
/**
|
|
1135
1115
|
* The minimum date that can be selected.
|
|
1136
1116
|
*/
|
|
1137
|
-
this.min = input(undefined, ...(ngDevMode ?
|
|
1138
|
-
alias: 'ngpDateRangePickerMin',
|
|
1139
|
-
}]));
|
|
1117
|
+
this.min = input(undefined, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), alias: 'ngpDateRangePickerMin' });
|
|
1140
1118
|
/**
|
|
1141
1119
|
* The maximum date that can be selected.
|
|
1142
1120
|
*/
|
|
1143
|
-
this.max = input(undefined, ...(ngDevMode ?
|
|
1144
|
-
alias: 'ngpDateRangePickerMax',
|
|
1145
|
-
}]));
|
|
1121
|
+
this.max = input(undefined, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), alias: 'ngpDateRangePickerMax' });
|
|
1146
1122
|
/**
|
|
1147
1123
|
* Determine if the date picker is disabled.
|
|
1148
1124
|
*/
|
|
1149
|
-
this.disabled = input(false, ...(ngDevMode ?
|
|
1150
|
-
|
|
1151
|
-
alias: 'ngpDateRangePickerDisabled',
|
|
1152
|
-
transform: booleanAttribute,
|
|
1153
|
-
}]));
|
|
1125
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), alias: 'ngpDateRangePickerDisabled',
|
|
1126
|
+
transform: booleanAttribute });
|
|
1154
1127
|
/**
|
|
1155
1128
|
* A function that is called to determine if a specific date should be disabled.
|
|
1156
1129
|
*/
|
|
1157
|
-
this.dateDisabled = input(() => false, ...(ngDevMode ?
|
|
1158
|
-
alias: 'ngpDateRangePickerDateDisabled',
|
|
1159
|
-
}]));
|
|
1130
|
+
this.dateDisabled = input(() => false, { ...(ngDevMode ? { debugName: "dateDisabled" } : /* istanbul ignore next */ {}), alias: 'ngpDateRangePickerDateDisabled' });
|
|
1160
1131
|
/**
|
|
1161
1132
|
* Sets which day starts the week in the calendar.
|
|
1162
1133
|
* Accepts 0-7 where 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday.
|
|
@@ -1164,17 +1135,12 @@ class NgpDateRangePicker {
|
|
|
1164
1135
|
* Note: Update calendar header column order when changing from Sunday start.
|
|
1165
1136
|
* @default 7 (Sunday)
|
|
1166
1137
|
*/
|
|
1167
|
-
this.firstDayOfWeek = input(transformToFirstDayOfWeekNumber(this.config.firstDayOfWeek), ...(ngDevMode ?
|
|
1168
|
-
|
|
1169
|
-
alias: 'ngpDateRangePickerFirstDayOfWeek',
|
|
1170
|
-
transform: transformToFirstDayOfWeekNumber,
|
|
1171
|
-
}]));
|
|
1138
|
+
this.firstDayOfWeek = input(transformToFirstDayOfWeekNumber(this.config.firstDayOfWeek), { ...(ngDevMode ? { debugName: "firstDayOfWeek" } : /* istanbul ignore next */ {}), alias: 'ngpDateRangePickerFirstDayOfWeek',
|
|
1139
|
+
transform: transformToFirstDayOfWeekNumber });
|
|
1172
1140
|
/**
|
|
1173
1141
|
* The selected start date
|
|
1174
1142
|
*/
|
|
1175
|
-
this.startDate = input(undefined, ...(ngDevMode ?
|
|
1176
|
-
alias: 'ngpDateRangePickerStartDate',
|
|
1177
|
-
}]));
|
|
1143
|
+
this.startDate = input(undefined, { ...(ngDevMode ? { debugName: "startDate" } : /* istanbul ignore next */ {}), alias: 'ngpDateRangePickerStartDate' });
|
|
1178
1144
|
/**
|
|
1179
1145
|
* Emit when the date changes.
|
|
1180
1146
|
*/
|
|
@@ -1184,9 +1150,7 @@ class NgpDateRangePicker {
|
|
|
1184
1150
|
/**
|
|
1185
1151
|
* The selected end date
|
|
1186
1152
|
*/
|
|
1187
|
-
this.endDate = input(undefined, ...(ngDevMode ?
|
|
1188
|
-
alias: 'ngpDateRangePickerEndDate',
|
|
1189
|
-
}]));
|
|
1153
|
+
this.endDate = input(undefined, { ...(ngDevMode ? { debugName: "endDate" } : /* istanbul ignore next */ {}), alias: 'ngpDateRangePickerEndDate' });
|
|
1190
1154
|
/**
|
|
1191
1155
|
* Emit when the end date changes.
|
|
1192
1156
|
*/
|
|
@@ -1196,9 +1160,7 @@ class NgpDateRangePicker {
|
|
|
1196
1160
|
/**
|
|
1197
1161
|
* The focused value.
|
|
1198
1162
|
*/
|
|
1199
|
-
this.focusedDate = input(this.dateAdapter.now(), ...(ngDevMode ?
|
|
1200
|
-
alias: 'ngpDateRangePickerFocusedDate',
|
|
1201
|
-
}]));
|
|
1163
|
+
this.focusedDate = input(this.dateAdapter.now(), { ...(ngDevMode ? { debugName: "focusedDate" } : /* istanbul ignore next */ {}), alias: 'ngpDateRangePickerFocusedDate' });
|
|
1202
1164
|
/**
|
|
1203
1165
|
* Emit when the focused date changes.
|
|
1204
1166
|
*/
|
|
@@ -1209,11 +1171,11 @@ class NgpDateRangePicker {
|
|
|
1209
1171
|
* Detect the label element.
|
|
1210
1172
|
* @internal
|
|
1211
1173
|
*/
|
|
1212
|
-
this.label = contentChild(NgpDatePickerLabelToken, ...(ngDevMode ?
|
|
1174
|
+
this.label = contentChild(NgpDatePickerLabelToken, { ...(ngDevMode ? { debugName: "label" } : /* istanbul ignore next */ {}), descendants: true });
|
|
1213
1175
|
/**
|
|
1214
1176
|
* Access all the date picker buttons
|
|
1215
1177
|
*/
|
|
1216
|
-
this.buttons = signal([], ...(ngDevMode ? [{ debugName: "buttons" }] : []));
|
|
1178
|
+
this.buttons = signal([], ...(ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []));
|
|
1217
1179
|
/**
|
|
1218
1180
|
* The date range picker state.
|
|
1219
1181
|
*/
|
|
@@ -1393,10 +1355,10 @@ class NgpDateRangePicker {
|
|
|
1393
1355
|
}
|
|
1394
1356
|
return this.dateAdapter.isAfter(date, start) && this.dateAdapter.isBefore(date, end);
|
|
1395
1357
|
}
|
|
1396
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1397
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
1358
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDateRangePicker, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1359
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.14", type: NgpDateRangePicker, isStandalone: true, selector: "[ngpDateRangePicker]", inputs: { min: { classPropertyName: "min", publicName: "ngpDateRangePickerMin", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "ngpDateRangePickerMax", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "ngpDateRangePickerDisabled", isSignal: true, isRequired: false, transformFunction: null }, dateDisabled: { classPropertyName: "dateDisabled", publicName: "ngpDateRangePickerDateDisabled", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "ngpDateRangePickerFirstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, startDate: { classPropertyName: "startDate", publicName: "ngpDateRangePickerStartDate", isSignal: true, isRequired: false, transformFunction: null }, endDate: { classPropertyName: "endDate", publicName: "ngpDateRangePickerEndDate", isSignal: true, isRequired: false, transformFunction: null }, focusedDate: { classPropertyName: "focusedDate", publicName: "ngpDateRangePickerFocusedDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { startDateChange: "ngpDateRangePickerStartDateChange", endDateChange: "ngpDateRangePickerEndDateChange", focusedDateChange: "ngpDateRangePickerFocusedDateChange" }, host: { properties: { "attr.data-disabled": "state.disabled() ? \"\" : null" } }, providers: [provideDateRangePickerState()], queries: [{ propertyName: "label", first: true, predicate: NgpDatePickerLabelToken, descendants: true, isSignal: true }], exportAs: ["ngpDateRangePicker"], ngImport: i0 }); }
|
|
1398
1360
|
}
|
|
1399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpDateRangePicker, decorators: [{
|
|
1400
1362
|
type: Directive,
|
|
1401
1363
|
args: [{
|
|
1402
1364
|
selector: '[ngpDateRangePicker]',
|