@wlcm/angular 18.2.33 → 18.2.34
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/button/esm2022/lib/button.module.mjs +4 -4
- package/button/esm2022/lib/components/button/button.component.mjs +3 -3
- package/button/fesm2022/wlcm-angular-button.mjs +7 -7
- package/core/esm2022/lib/components/default-loader/default-loader.component.mjs +3 -3
- package/core/esm2022/lib/components/icons/calendar-icon/calendar-icon.component.mjs +3 -3
- package/core/esm2022/lib/components/icons/chevron-down-icon/chevron-down-icon.component.mjs +3 -3
- package/core/esm2022/lib/components/icons/close-icon/close-icon.component.mjs +3 -3
- package/core/esm2022/lib/components/icons/search-icon/search-icon.component.mjs +3 -3
- package/core/esm2022/lib/components/loader/loader.component.mjs +3 -3
- package/core/esm2022/lib/directives/icon.directive.mjs +3 -3
- package/core/esm2022/lib/services/scroll-detection.api.mjs +3 -3
- package/core/fesm2022/wlcm-angular-core.mjs +24 -24
- package/datepicker/esm2022/index.mjs +4 -2
- package/datepicker/esm2022/lib/components/calendar-header/calendar-header.component.mjs +3 -3
- package/datepicker/esm2022/lib/components/range/date-range-calendar-header/date-range-calendar-header.component.mjs +3 -3
- package/datepicker/esm2022/lib/components/range/date-range-picker-bottom-panel/date-range-picker-bottom-panel.component.mjs +3 -3
- package/datepicker/esm2022/lib/components/range/date-range-picker-input/date-range-picker-input.component.mjs +3 -3
- package/datepicker/esm2022/lib/components/range/double-calendar-range-picker/double-calendar-range-picker.component.mjs +21 -10
- package/datepicker/esm2022/lib/components/range/single-calendar-range-picker/single-calendar-range-picker.component.mjs +3 -3
- package/datepicker/esm2022/lib/components/single/datepicker-input-container/datepicker-input-container.component.mjs +3 -3
- package/datepicker/esm2022/lib/components/single/datepicker-panel/datepicker-panel.component.mjs +3 -3
- package/datepicker/esm2022/lib/constants/range/date-range-picker.constants.mjs +2 -1
- package/datepicker/esm2022/lib/datepicker.module.mjs +4 -4
- package/datepicker/esm2022/lib/directives/calendar.directive.mjs +3 -3
- package/datepicker/esm2022/lib/directives/datepicker-input.base.mjs +3 -3
- package/datepicker/esm2022/lib/directives/datepicker-trigger.base.mjs +3 -3
- package/datepicker/esm2022/lib/directives/ragne/date-range-picker-input-end.directive.mjs +3 -3
- package/datepicker/esm2022/lib/directives/ragne/date-range-picker-input-start.directive.mjs +3 -3
- package/datepicker/esm2022/lib/directives/ragne/date-range-picker-input.base.mjs +3 -3
- package/datepicker/esm2022/lib/directives/ragne/left-calendar.directive.mjs +3 -3
- package/datepicker/esm2022/lib/directives/ragne/right-calendar.directive.mjs +3 -3
- package/datepicker/esm2022/lib/directives/single/datepicker-input.directive.mjs +3 -3
- package/datepicker/esm2022/lib/models/date-picker.models.mjs +3 -3
- package/datepicker/esm2022/lib/models/range/data-range-calendar.models.mjs +3 -3
- package/datepicker/esm2022/lib/models/range/date-range-picker.models.mjs +7 -4
- package/datepicker/fesm2022/wlcm-angular-datepicker.mjs +85 -70
- package/datepicker/fesm2022/wlcm-angular-datepicker.mjs.map +1 -1
- package/datepicker/index.d.ts +3 -1
- package/datepicker/lib/components/range/double-calendar-range-picker/double-calendar-range-picker.component.d.ts +6 -4
- package/datepicker/lib/constants/range/date-range-picker.constants.d.ts +1 -0
- package/datepicker/lib/models/range/date-range-picker.models.d.ts +4 -3
- package/filters/esm2022/lib/components/filters-group/filters-group.component.mjs +3 -3
- package/filters/esm2022/lib/directives/filter.directive.mjs +3 -3
- package/filters/esm2022/lib/filters.module.mjs +4 -4
- package/filters/esm2022/lib/models/filters-group.models.mjs +3 -3
- package/filters/fesm2022/wlcm-angular-filters.mjs +13 -13
- package/forms/esm2022/lib/forms/components/autocomplete/autocomplete.component.mjs +3 -3
- package/forms/esm2022/lib/forms/components/checkbox/checkbox.component.mjs +5 -5
- package/forms/esm2022/lib/forms/components/checkbox-group/checkbox-group.component.mjs +3 -3
- package/forms/esm2022/lib/forms/components/error/error.component.mjs +3 -3
- package/forms/esm2022/lib/forms/components/form-field/form-field.component.mjs +3 -3
- package/forms/esm2022/lib/forms/components/label/label.component.mjs +3 -3
- package/forms/esm2022/lib/forms/components/partials/autocomplete-suffix/autocomplete-suffix.component.mjs +3 -3
- package/forms/esm2022/lib/forms/components/select/select.component.mjs +3 -3
- package/forms/esm2022/lib/forms/directives/autocomplete.directive.mjs +3 -3
- package/forms/esm2022/lib/forms/directives/form-field-custom-container.directive.mjs +3 -3
- package/forms/esm2022/lib/forms/directives/form-field-hint.directive.mjs +3 -3
- package/forms/esm2022/lib/forms/directives/form-field-prefix.directive.mjs +3 -3
- package/forms/esm2022/lib/forms/directives/form-field-suffix.directive.mjs +3 -3
- package/forms/esm2022/lib/forms/directives/input.directive.mjs +3 -3
- package/forms/esm2022/lib/forms/directives/select-input-binder.directive.mjs +3 -3
- package/forms/esm2022/lib/forms/forms.module.mjs +4 -4
- package/forms/esm2022/lib/forms/models/autocomplete.models.mjs +3 -3
- package/forms/esm2022/lib/forms/pipes/errors-mapper.pipe.mjs +3 -3
- package/forms/esm2022/lib/forms/services/form-state-handler.service.mjs +3 -3
- package/forms/esm2022/lib/forms/services/places.api.mjs +6 -6
- package/forms/fesm2022/wlcm-angular-forms.mjs +65 -65
- package/forms/fesm2022/wlcm-angular-forms.mjs.map +1 -1
- package/forms/lib/forms/services/places.api.d.ts +1 -0
- package/package.json +1 -1
- package/phone-input/esm2022/lib/components/country-code-select/country-code-select.component.mjs +3 -3
- package/phone-input/esm2022/lib/components/phone-input-container/phone-input-container.component.mjs +3 -3
- package/phone-input/esm2022/lib/directives/phone-input.directive.mjs +3 -3
- package/phone-input/esm2022/lib/phone-input.module.mjs +4 -4
- package/phone-input/esm2022/lib/pipes/phone-code.pipe.mjs +3 -3
- package/phone-input/fesm2022/wlcm-angular-phone-input.mjs +16 -16
- package/search-field/esm2022/lib/components/search-field/search-field.component.mjs +3 -3
- package/search-field/esm2022/lib/search-field.module.mjs +4 -4
- package/search-field/fesm2022/wlcm-angular-search-field.mjs +7 -7
- package/stepper/esm2022/lib/components/step/step.component.mjs +3 -3
- package/stepper/esm2022/lib/components/step-header/step-header.component.mjs +3 -3
- package/stepper/esm2022/lib/components/stepper/stepper.component.mjs +3 -3
- package/stepper/esm2022/lib/components/stepper-header/stepper-header.component.mjs +3 -3
- package/stepper/esm2022/lib/directives/load-on-active-step.directive.mjs +3 -3
- package/stepper/esm2022/lib/models/step.models.mjs +3 -3
- package/stepper/esm2022/lib/models/stepper.models.mjs +3 -3
- package/stepper/esm2022/lib/stepper.module.mjs +4 -4
- package/stepper/fesm2022/wlcm-angular-stepper.mjs +25 -25
- package/styles/components/datepicker/date-range-picker/_date-range-picker-body.scss +10 -2
- package/table/esm2022/lib/components/table/table.component.mjs +3 -3
- package/table/esm2022/lib/components/table-head/table-head.component.mjs +3 -3
- package/table/esm2022/lib/components/table-head-actions/table-head-actions.component.mjs +3 -3
- package/table/esm2022/lib/components/table-head-data/table-head-data.component.mjs +3 -3
- package/table/esm2022/lib/components/table-row/table-row.component.mjs +3 -3
- package/table/esm2022/lib/components/table-row-actions/table-row-actions.component.mjs +3 -3
- package/table/esm2022/lib/components/table-row-data/table-row-data.component.mjs +3 -3
- package/table/esm2022/lib/components/table-row-spacer/table-row-spacer.component.mjs +3 -3
- package/table/esm2022/lib/directives/scrollable-table-container.directive.mjs +3 -3
- package/table/esm2022/lib/pipes/table-row-injector.pipe.mjs +3 -3
- package/table/esm2022/lib/table.module.mjs +4 -4
- package/table/fesm2022/wlcm-angular-table.mjs +34 -34
|
@@ -8,6 +8,12 @@ export class WlcmDateRangePicker {
|
|
|
8
8
|
this.isComplete = computed(() => this._isComplete());
|
|
9
9
|
this.handleSelectionChanged();
|
|
10
10
|
}
|
|
11
|
+
setSelection(selection) {
|
|
12
|
+
this.localSelectionModel.updateSelection(selection, this);
|
|
13
|
+
}
|
|
14
|
+
get selected() {
|
|
15
|
+
return this.localSelectionModel.selection;
|
|
16
|
+
}
|
|
11
17
|
calendarSelection(event) {
|
|
12
18
|
const newSelection = this.rangeSelectionStrategy.selectionFinished(event.value, this.localSelectionModel.selection, event.event);
|
|
13
19
|
this.localSelectionModel.updateSelection(newSelection, this);
|
|
@@ -15,13 +21,10 @@ export class WlcmDateRangePicker {
|
|
|
15
21
|
calendarDragDrop(event) {
|
|
16
22
|
this.localSelectionModel.updateSelection(event.value, this);
|
|
17
23
|
}
|
|
18
|
-
get selected() {
|
|
19
|
-
return this.localSelectionModel.selection;
|
|
20
|
-
}
|
|
21
24
|
handleSelectionChanged() {
|
|
22
25
|
this.localSelectionModel.selectionChanged
|
|
23
26
|
.pipe(untilDestroyed(this))
|
|
24
27
|
.subscribe(() => this._isComplete.set(this.localSelectionModel.isComplete()));
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1yYW5nZS1waWNrZXIubW9kZWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9kYXRlcGlja2VyL3NyYy9saWIvbW9kZWxzL3JhbmdlL2RhdGUtcmFuZ2UtcGlja2VyLm1vZGVscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFVLE1BQU0sRUFBd0IsTUFBTSxlQUFlLENBQUM7QUFPL0UsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBRXZELE1BQU0sT0FBZ0IsbUJBQW1CO0lBS3ZDLFlBQ1ksbUJBQTJELEVBQzNELHNCQUEyRDtRQUQzRCx3QkFBbUIsR0FBbkIsbUJBQW1CLENBQXdDO1FBQzNELDJCQUFzQixHQUF0QixzQkFBc0IsQ0FBcUM7UUFON0QsZ0JBQVcsR0FBNEIsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBRXRELGVBQVUsR0FBb0IsUUFBUSxDQUFDLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyxXQUFXLEVBQUUsQ0FBQyxDQUFDO1FBTXhFLElBQUksQ0FBQyxzQkFBc0IsRUFBRSxDQUFDO0lBQ2hDLENBQUM7SUFNRCxZQUFZLENBQUMsU0FBMEI7UUFDckMsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGVBQWUsQ0FBQyxTQUFTLEVBQUUsSUFBSSxDQUFDLENBQUM7SUFDNUQsQ0FBQztJQUVELElBQUksUUFBUTtRQUNWLE9BQU8sSUFBSSxDQUFDLG1CQUFtQixDQUFDLFNBQVMsQ0FBQztJQUM1QyxDQUFDO0lBRVMsaUJBQWlCLENBQUMsS0FBd0M7UUFDbEUsTUFBTSxZQUFZLEdBQW9CLElBQUksQ0FBQyxzQkFBc0IsQ0FBQyxpQkFBaUIsQ0FDakYsS0FBSyxDQUFDLEtBQUssRUFDWCxJQUFJLENBQUMsbUJBQW1CLENBQUMsU0FBUyxFQUNsQyxLQUFLLENBQUMsS0FBSyxDQUNaLENBQUM7UUFFRixJQUFJLENBQUMsbUJBQW1CLENBQUMsZUFBZSxDQUFDLFlBQVksRUFBRSxJQUFJLENBQUMsQ0FBQztJQUMvRCxDQUFDO0lBRVMsZ0JBQWdCLENBQUMsS0FBNEM7UUFDckUsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGVBQWUsQ0FBQyxLQUFLLENBQUMsS0FBSyxFQUFFLElBQUksQ0FBQyxDQUFDO0lBQzlELENBQUM7SUFFTyxzQkFBc0I7UUFDNUIsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGdCQUFnQjthQUN0QyxJQUFJLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxDQUFDO2FBQzFCLFNBQVMsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsbUJBQW1CLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQ2xGLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNvbXB1dGVkLCBTaWduYWwsIHNpZ25hbCwgVHlwZSwgV3JpdGFibGVTaWduYWwgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7XG4gIE1hdERhdGVTZWxlY3Rpb25Nb2RlbCxcbiAgRGF0ZVJhbmdlLFxuICBNYXRDYWxlbmRhclVzZXJFdmVudCxcbiAgTWF0RGF0ZVJhbmdlU2VsZWN0aW9uU3RyYXRlZ3ksXG59IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL2RhdGVwaWNrZXInO1xuaW1wb3J0IHsgdW50aWxEZXN0cm95ZWQgfSBmcm9tICdAbmduZWF0L3VudGlsLWRlc3Ryb3knO1xuXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgV2xjbURhdGVSYW5nZVBpY2tlciB7XG4gIHByb3RlY3RlZCBfaXNDb21wbGV0ZTogV3JpdGFibGVTaWduYWw8Ym9vbGVhbj4gPSBzaWduYWwoZmFsc2UpO1xuXG4gIHJlYWRvbmx5IGlzQ29tcGxldGU6IFNpZ25hbDxib29sZWFuPiA9IGNvbXB1dGVkKCgpID0+IHRoaXMuX2lzQ29tcGxldGUoKSk7XG5cbiAgcHJvdGVjdGVkIGNvbnN0cnVjdG9yKFxuICAgIHByb3RlY3RlZCBsb2NhbFNlbGVjdGlvbk1vZGVsOiBNYXREYXRlU2VsZWN0aW9uTW9kZWw8RGF0ZVJhbmdlPERhdGU+PixcbiAgICBwcm90ZWN0ZWQgcmFuZ2VTZWxlY3Rpb25TdHJhdGVneTogTWF0RGF0ZVJhbmdlU2VsZWN0aW9uU3RyYXRlZ3k8RGF0ZT4sXG4gICkge1xuICAgIHRoaXMuaGFuZGxlU2VsZWN0aW9uQ2hhbmdlZCgpO1xuICB9XG5cbiAgYWJzdHJhY3QgYXBwbHkoKTogdm9pZDtcblxuICBhYnN0cmFjdCByZXNldCgpOiB2b2lkO1xuXG4gIHNldFNlbGVjdGlvbihzZWxlY3Rpb246IERhdGVSYW5nZTxEYXRlPik6IHZvaWQge1xuICAgIHRoaXMubG9jYWxTZWxlY3Rpb25Nb2RlbC51cGRhdGVTZWxlY3Rpb24oc2VsZWN0aW9uLCB0aGlzKTtcbiAgfVxuXG4gIGdldCBzZWxlY3RlZCgpOiBEYXRlUmFuZ2U8RGF0ZT4ge1xuICAgIHJldHVybiB0aGlzLmxvY2FsU2VsZWN0aW9uTW9kZWwuc2VsZWN0aW9uO1xuICB9XG5cbiAgcHJvdGVjdGVkIGNhbGVuZGFyU2VsZWN0aW9uKGV2ZW50OiBNYXRDYWxlbmRhclVzZXJFdmVudDxEYXRlIHwgbnVsbD4pOiB2b2lkIHtcbiAgICBjb25zdCBuZXdTZWxlY3Rpb246IERhdGVSYW5nZTxEYXRlPiA9IHRoaXMucmFuZ2VTZWxlY3Rpb25TdHJhdGVneS5zZWxlY3Rpb25GaW5pc2hlZChcbiAgICAgIGV2ZW50LnZhbHVlLFxuICAgICAgdGhpcy5sb2NhbFNlbGVjdGlvbk1vZGVsLnNlbGVjdGlvbixcbiAgICAgIGV2ZW50LmV2ZW50LFxuICAgICk7XG5cbiAgICB0aGlzLmxvY2FsU2VsZWN0aW9uTW9kZWwudXBkYXRlU2VsZWN0aW9uKG5ld1NlbGVjdGlvbiwgdGhpcyk7XG4gIH1cblxuICBwcm90ZWN0ZWQgY2FsZW5kYXJEcmFnRHJvcChldmVudDogTWF0Q2FsZW5kYXJVc2VyRXZlbnQ8RGF0ZVJhbmdlPERhdGU+Pik6IHZvaWQge1xuICAgIHRoaXMubG9jYWxTZWxlY3Rpb25Nb2RlbC51cGRhdGVTZWxlY3Rpb24oZXZlbnQudmFsdWUsIHRoaXMpO1xuICB9XG5cbiAgcHJpdmF0ZSBoYW5kbGVTZWxlY3Rpb25DaGFuZ2VkKCk6IHZvaWQge1xuICAgIHRoaXMubG9jYWxTZWxlY3Rpb25Nb2RlbC5zZWxlY3Rpb25DaGFuZ2VkXG4gICAgICAucGlwZSh1bnRpbERlc3Ryb3llZCh0aGlzKSlcbiAgICAgIC5zdWJzY3JpYmUoKCkgPT4gdGhpcy5faXNDb21wbGV0ZS5zZXQodGhpcy5sb2NhbFNlbGVjdGlvbk1vZGVsLmlzQ29tcGxldGUoKSkpO1xuICB9XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgV2xjbURhdGVSYW5nZVBpY2tlckNvbmZpZyB7XG4gIGhlYWRlckNvbXBvbmVudD86IFR5cGU8dW5rbm93bj47XG59XG4iXX0=
|
|
@@ -40,10 +40,10 @@ class WlcmDateAdapter extends DateFnsAdapter {
|
|
|
40
40
|
const formatString = style === 'long' ? 'EEEE' : 'EEEEEE';
|
|
41
41
|
return range(7, (i) => format(new Date(2017, 0, i + 1), formatString));
|
|
42
42
|
}
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
44
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateAdapter }); }
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateAdapter, decorators: [{
|
|
47
47
|
type: Injectable
|
|
48
48
|
}] });
|
|
49
49
|
var WlcmDateValidation;
|
|
@@ -149,8 +149,8 @@ let WlcmDatepickerTrigger = class WlcmDatepickerTrigger {
|
|
|
149
149
|
backdropClass: 'transparent',
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
153
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
152
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerTrigger, deps: [{ token: i1.Overlay }, { token: i0.ViewContainerRef }, { token: i2.MatDateSelectionModel }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
153
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.3.5", type: WlcmDatepickerTrigger, inputs: { minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, selectOnly: { classPropertyName: "selectOnly", publicName: "selectOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.wlcm-datepicker-select-only-mode": "this.isOnlySelect" } }, ngImport: i0 }); }
|
|
154
154
|
};
|
|
155
155
|
WlcmDatepickerTrigger = __decorate([
|
|
156
156
|
UntilDestroy(),
|
|
@@ -158,7 +158,7 @@ WlcmDatepickerTrigger = __decorate([
|
|
|
158
158
|
ViewContainerRef,
|
|
159
159
|
MatDateSelectionModel])
|
|
160
160
|
], WlcmDatepickerTrigger);
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerTrigger, decorators: [{
|
|
162
162
|
type: Directive
|
|
163
163
|
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.ViewContainerRef }, { type: i2.MatDateSelectionModel }], propDecorators: { isOnlySelect: [{
|
|
164
164
|
type: HostBinding,
|
|
@@ -243,10 +243,10 @@ class WlcmDatepickerInputBase {
|
|
|
243
243
|
}
|
|
244
244
|
this.inputElement.value = newValue;
|
|
245
245
|
}
|
|
246
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
247
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
246
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerInputBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
247
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.5", type: WlcmDatepickerInputBase, host: { listeners: { "blur": "handleBlur()", "input": "handleInput()" }, properties: { "class": "this.datepickerInputClass" } }, ngImport: i0 }); }
|
|
248
248
|
}
|
|
249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerInputBase, decorators: [{
|
|
250
250
|
type: Directive
|
|
251
251
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$1.DateAdapter }, { type: undefined }, { type: WlcmDatepickerTrigger }], propDecorators: { handleBlur: [{
|
|
252
252
|
type: HostListener,
|
|
@@ -303,10 +303,10 @@ class WlcmDateRangePickerInputBase extends WlcmDatepickerInputBase {
|
|
|
303
303
|
target.style.fontFamily = inputElementStyles.fontFamily;
|
|
304
304
|
target.style.letterSpacing = inputElementStyles.letterSpacing;
|
|
305
305
|
}
|
|
306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
307
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
306
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateRangePickerInputBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
307
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.5", type: WlcmDateRangePickerInputBase, usesInheritance: true, ngImport: i0 }); }
|
|
308
308
|
}
|
|
309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateRangePickerInputBase, decorators: [{
|
|
310
310
|
type: Directive
|
|
311
311
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$1.DateAdapter }, { type: undefined }, { type: WlcmDatepickerTrigger }] });
|
|
312
312
|
|
|
@@ -347,8 +347,8 @@ let DateRangePickerInputStartDirective = class DateRangePickerInputStartDirectiv
|
|
|
347
347
|
this._validatorChanged?.();
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
351
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
350
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: DateRangePickerInputStartDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter }, { token: MAT_DATE_FORMATS, optional: true }, { token: WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL }, { token: WlcmDatepickerTrigger }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
351
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.5", type: DateRangePickerInputStartDirective, isStandalone: true, selector: "[wlcmDateRangePickerInputStart]", host: { classAttribute: "wlcm-date-range-picker-input-field" }, providers: [
|
|
352
352
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateRangePickerInputStartDirective), multi: true },
|
|
353
353
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateRangePickerInputStartDirective), multi: true },
|
|
354
354
|
], usesInheritance: true, ngImport: i0 }); }
|
|
@@ -359,7 +359,7 @@ DateRangePickerInputStartDirective = __decorate([
|
|
|
359
359
|
DateAdapter, Object, MatDateSelectionModel,
|
|
360
360
|
WlcmDatepickerTrigger])
|
|
361
361
|
], DateRangePickerInputStartDirective);
|
|
362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: DateRangePickerInputStartDirective, decorators: [{
|
|
363
363
|
type: Directive,
|
|
364
364
|
args: [{
|
|
365
365
|
selector: '[wlcmDateRangePickerInputStart]',
|
|
@@ -395,6 +395,12 @@ class WlcmDateRangePicker {
|
|
|
395
395
|
this.isComplete = computed(() => this._isComplete());
|
|
396
396
|
this.handleSelectionChanged();
|
|
397
397
|
}
|
|
398
|
+
setSelection(selection) {
|
|
399
|
+
this.localSelectionModel.updateSelection(selection, this);
|
|
400
|
+
}
|
|
401
|
+
get selected() {
|
|
402
|
+
return this.localSelectionModel.selection;
|
|
403
|
+
}
|
|
398
404
|
calendarSelection(event) {
|
|
399
405
|
const newSelection = this.rangeSelectionStrategy.selectionFinished(event.value, this.localSelectionModel.selection, event.event);
|
|
400
406
|
this.localSelectionModel.updateSelection(newSelection, this);
|
|
@@ -402,9 +408,6 @@ class WlcmDateRangePicker {
|
|
|
402
408
|
calendarDragDrop(event) {
|
|
403
409
|
this.localSelectionModel.updateSelection(event.value, this);
|
|
404
410
|
}
|
|
405
|
-
get selected() {
|
|
406
|
-
return this.localSelectionModel.selection;
|
|
407
|
-
}
|
|
408
411
|
handleSelectionChanged() {
|
|
409
412
|
this.localSelectionModel.selectionChanged
|
|
410
413
|
.pipe(untilDestroyed(this))
|
|
@@ -416,16 +419,17 @@ class WlcmDateRangePickerBottomPanelComponent {
|
|
|
416
419
|
constructor(picker) {
|
|
417
420
|
this.picker = picker;
|
|
418
421
|
}
|
|
419
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
420
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateRangePickerBottomPanelComponent, deps: [{ token: WlcmDateRangePicker }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
423
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: WlcmDateRangePickerBottomPanelComponent, isStandalone: true, selector: "wlcm-date-range-picker-bottom-panel", ngImport: i0, template: "<div class=\"wlcm-date-range-picker-bottom-panel\">\n <wlcm-button type=\"paddingless\" (clicked)=\"picker.reset()\">Reset</wlcm-button>\n\n <wlcm-button (clicked)=\"picker.apply()\" [isDisabled]=\"!picker.isComplete()\">\n Apply\n </wlcm-button>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: WlcmButtonModule }, { kind: "component", type: i2$1.WlcmButtonComponent, selector: "wlcm-button", inputs: ["type", "size", "styleType", "buttonColor", "buttonType", "isDisabled", "isLoading"], outputs: ["clicked"] }] }); }
|
|
421
424
|
}
|
|
422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateRangePickerBottomPanelComponent, decorators: [{
|
|
423
426
|
type: Component,
|
|
424
427
|
args: [{ selector: 'wlcm-date-range-picker-bottom-panel', standalone: true, imports: [CommonModule, WlcmButtonModule], template: "<div class=\"wlcm-date-range-picker-bottom-panel\">\n <wlcm-button type=\"paddingless\" (clicked)=\"picker.reset()\">Reset</wlcm-button>\n\n <wlcm-button (clicked)=\"picker.apply()\" [isDisabled]=\"!picker.isComplete()\">\n Apply\n </wlcm-button>\n</div>\n" }]
|
|
425
428
|
}], ctorParameters: () => [{ type: WlcmDateRangePicker }] });
|
|
426
429
|
|
|
427
430
|
const WLCM_DATE_RANGE_PICKER_CONFIG = new InjectionToken('WLCM_DATE_RANGE_PICKER_CONFIG', { providedIn: 'root', factory: () => ({}) });
|
|
428
431
|
const WLCM_DATE_RANGE_PICKER_BP = new InjectionToken('WLCM_DATE_RANGE_PICKER_BP', { providedIn: 'root', factory: () => WlcmDateRangePickerBottomPanelComponent });
|
|
432
|
+
const WLCM_DATE_RANGE_PICKER_LEFT_PANEL = new InjectionToken('WLCM_DATE_RANGE_PICKER_LEFT_PANEL');
|
|
429
433
|
|
|
430
434
|
class WlcmCalendarHeaderComponent {
|
|
431
435
|
constructor(dateAdapter, dateFormats, calendar) {
|
|
@@ -466,10 +470,10 @@ class WlcmCalendarHeaderComponent {
|
|
|
466
470
|
get periodLabel() {
|
|
467
471
|
return this.dateAdapter.format(this.calendar.activeDate, this.dateFormats.display.monthYearLabel);
|
|
468
472
|
}
|
|
469
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
470
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
473
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmCalendarHeaderComponent, deps: [{ token: i1$1.DateAdapter }, { token: MAT_DATE_FORMATS, optional: true }, { token: forwardRef(() => MatCalendar) }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
474
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.5", type: WlcmCalendarHeaderComponent, isStandalone: true, selector: "wlcm-calendar-header", inputs: { next: { classPropertyName: "next", publicName: "next", isSignal: true, isRequired: false, transformFunction: null }, previous: { classPropertyName: "previous", publicName: "previous", isSignal: true, isRequired: false, transformFunction: null }, disableLeftArrow: { classPropertyName: "disableLeftArrow", publicName: "disableLeftArrow", isSignal: true, isRequired: false, transformFunction: null }, disableRightArrow: { classPropertyName: "disableRightArrow", publicName: "disableRightArrow", isSignal: true, isRequired: false, transformFunction: null }, displayLeftArrow: { classPropertyName: "displayLeftArrow", publicName: "displayLeftArrow", isSignal: true, isRequired: false, transformFunction: null }, displayRightArrow: { classPropertyName: "displayRightArrow", publicName: "displayRightArrow", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "wlcm-calendar-header" }, ngImport: i0, template: "<div class=\"wlcm-calendar-header-button-container\">\n @if (displayLeftArrow()) {\n <button\n class=\"wlcm-calendar-header-button wlcm-calendar-header-button-left\"\n [disabled]=\"disableLeftArrow()\"\n (click)=\"previousClicked()\"\n >\n <ng-container [wlcmIcon]=\"WlcmIconName.CHEVRON_DOWN\"></ng-container>\n </button>\n }\n</div>\n\n<button\n class=\"wlcm-calendar-header-change-view-button\"\n (click)=\"changeCalendarView()\"\n>\n <div class=\"wlcm-calendar-header-period-label\">\n {{ periodLabel }}\n </div>\n\n <ng-container [wlcmIcon]=\"WlcmIconName.CHEVRON_DOWN\"></ng-container>\n</button>\n\n<div class=\"wlcm-calendar-header-button-container\">\n @if (displayRightArrow()) {\n <button\n class=\"wlcm-calendar-header-button wlcm-calendar-header-button-right\"\n [disabled]=\"disableRightArrow()\"\n (click)=\"nextClicked()\"\n >\n <ng-container [wlcmIcon]=\"WlcmIconName.CHEVRON_DOWN\"></ng-container>\n </button>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: WlcmIconDirective, selector: "[wlcmIcon]", inputs: ["wlcmIcon", "wlcmIconStopPropagation"], outputs: ["wlcmIconClicked"] }] }); }
|
|
471
475
|
}
|
|
472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmCalendarHeaderComponent, decorators: [{
|
|
473
477
|
type: Component,
|
|
474
478
|
args: [{ selector: 'wlcm-calendar-header', host: { class: 'wlcm-calendar-header' }, standalone: true, imports: [CommonModule, WlcmIconDirective], template: "<div class=\"wlcm-calendar-header-button-container\">\n @if (displayLeftArrow()) {\n <button\n class=\"wlcm-calendar-header-button wlcm-calendar-header-button-left\"\n [disabled]=\"disableLeftArrow()\"\n (click)=\"previousClicked()\"\n >\n <ng-container [wlcmIcon]=\"WlcmIconName.CHEVRON_DOWN\"></ng-container>\n </button>\n }\n</div>\n\n<button\n class=\"wlcm-calendar-header-change-view-button\"\n (click)=\"changeCalendarView()\"\n>\n <div class=\"wlcm-calendar-header-period-label\">\n {{ periodLabel }}\n </div>\n\n <ng-container [wlcmIcon]=\"WlcmIconName.CHEVRON_DOWN\"></ng-container>\n</button>\n\n<div class=\"wlcm-calendar-header-button-container\">\n @if (displayRightArrow()) {\n <button\n class=\"wlcm-calendar-header-button wlcm-calendar-header-button-right\"\n [disabled]=\"disableRightArrow()\"\n (click)=\"nextClicked()\"\n >\n <ng-container [wlcmIcon]=\"WlcmIconName.CHEVRON_DOWN\"></ng-container>\n </button>\n }\n</div>\n" }]
|
|
475
479
|
}], ctorParameters: () => [{ type: i1$1.DateAdapter }, { type: undefined, decorators: [{
|
|
@@ -483,10 +487,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
483
487
|
}] }] });
|
|
484
488
|
|
|
485
489
|
class WlcmCalendarDirective {
|
|
486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
487
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
490
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmCalendarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
491
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.5", type: WlcmCalendarDirective, isStandalone: true, selector: "[wlcmCalendar]", host: { classAttribute: "wlcm-calendar" }, ngImport: i0 }); }
|
|
488
492
|
}
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmCalendarDirective, decorators: [{
|
|
490
494
|
type: Directive,
|
|
491
495
|
args: [{
|
|
492
496
|
selector: '[wlcmCalendar]',
|
|
@@ -524,8 +528,8 @@ let SingleCalendarRangePickerComponent = class SingleCalendarRangePickerComponen
|
|
|
524
528
|
reset() {
|
|
525
529
|
this.trigger.close();
|
|
526
530
|
}
|
|
527
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
528
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
531
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SingleCalendarRangePickerComponent, deps: [{ token: MAT_DATE_RANGE_SELECTION_STRATEGY }, { token: WLCM_DATE_RANGE_SELECTION_MODEL }, { token: WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL }, { token: WlcmDatepickerTrigger }, { token: WLCM_DATEPICKER_CONFIG }, { token: WLCM_DATE_RANGE_PICKER_BP }, { token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
532
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: SingleCalendarRangePickerComponent, isStandalone: true, selector: "wlcm-single-calendar-range-picker", providers: [
|
|
529
533
|
{
|
|
530
534
|
provide: MAT_DATE_RANGE_SELECTION_STRATEGY,
|
|
531
535
|
useClass: DefaultMatCalendarRangeStrategy,
|
|
@@ -541,7 +545,7 @@ SingleCalendarRangePickerComponent = __decorate([
|
|
|
541
545
|
WlcmDatepickerTrigger, Object, Type,
|
|
542
546
|
DateAdapter])
|
|
543
547
|
], SingleCalendarRangePickerComponent);
|
|
544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SingleCalendarRangePickerComponent, decorators: [{
|
|
545
549
|
type: Component,
|
|
546
550
|
args: [{ selector: 'wlcm-single-calendar-range-picker', imports: [CommonModule, MatDatepickerModule, WlcmCalendarDirective], standalone: true, providers: [
|
|
547
551
|
{
|
|
@@ -603,8 +607,8 @@ let DateRangePickerInputEndDirective = class DateRangePickerInputEndDirective ex
|
|
|
603
607
|
this._validatorChanged?.();
|
|
604
608
|
});
|
|
605
609
|
}
|
|
606
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
607
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
610
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: DateRangePickerInputEndDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter }, { token: MAT_DATE_FORMATS, optional: true }, { token: WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL }, { token: WlcmDatepickerTrigger }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
611
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.5", type: DateRangePickerInputEndDirective, isStandalone: true, selector: "[wlcmDateRangePickerInputEnd]", host: { classAttribute: "wlcm-date-range-picker-input-field" }, providers: [
|
|
608
612
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateRangePickerInputEndDirective), multi: true },
|
|
609
613
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateRangePickerInputEndDirective), multi: true },
|
|
610
614
|
], usesInheritance: true, ngImport: i0 }); }
|
|
@@ -615,7 +619,7 @@ DateRangePickerInputEndDirective = __decorate([
|
|
|
615
619
|
DateAdapter, Object, MatDateSelectionModel,
|
|
616
620
|
WlcmDatepickerTrigger])
|
|
617
621
|
], DateRangePickerInputEndDirective);
|
|
618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: DateRangePickerInputEndDirective, decorators: [{
|
|
619
623
|
type: Directive,
|
|
620
624
|
args: [{
|
|
621
625
|
selector: '[wlcmDateRangePickerInputEnd]',
|
|
@@ -703,8 +707,8 @@ class WlcmDateRangePickerInputComponent extends WlcmDatepickerTrigger {
|
|
|
703
707
|
this._focusStream$.next(merge(...focusObservables).pipe(map(voidFn)));
|
|
704
708
|
this._blurStream$.next(merge(...blurObservables).pipe(map(() => this.control?.markAsTouched())));
|
|
705
709
|
}
|
|
706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
707
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
710
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateRangePickerInputComponent, deps: [{ token: i1.Overlay }, { token: i0.ViewContainerRef }, { token: WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL }, { token: WLCM_FORM_FIELD, host: true }, { token: ControlContainer, host: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
711
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: WlcmDateRangePickerInputComponent, isStandalone: true, selector: "wlcm-date-range-picker-input", inputs: { componentType: "componentType" }, host: { classAttribute: "wlcm-date-range-picker-input" }, providers: [
|
|
708
712
|
WLCM_FORM_CONTROL_PROVIDER,
|
|
709
713
|
WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL_PROVIDER,
|
|
710
714
|
{
|
|
@@ -717,7 +721,7 @@ class WlcmDateRangePickerInputComponent extends WlcmDatepickerTrigger {
|
|
|
717
721
|
{ provide: WlcmDatepickerTrigger, useExisting: forwardRef(() => WlcmDateRangePickerInputComponent) },
|
|
718
722
|
], queries: [{ propertyName: "startInput", first: true, predicate: DateRangePickerInputStartDirective, descendants: true }, { propertyName: "endInput", first: true, predicate: DateRangePickerInputEndDirective, descendants: true }], exportAs: ["wlcmDateRangePickerInput"], usesInheritance: true, ngImport: i0, template: "<div class=\"wlcm-date-range-picker-inputs-container\">\n <div class=\"wlcm-date-range-picker-input-field-wrapper\">\n <ng-content select=\"[wlcmDateRangePickerInputStart]\"></ng-content>\n </div>\n\n <div class=\"wlcm-date-range-picker-input-dash\"></div>\n\n <div class=\"wlcm-date-range-picker-input-field-wrapper\">\n <ng-content select=\"[wlcmDateRangePickerInputEnd]\"></ng-content>\n </div>\n</div>\n", styles: [".wlcm-date-range-picker-inputs-container{display:flex;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: WlcmFormsModule }] }); }
|
|
719
723
|
}
|
|
720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateRangePickerInputComponent, decorators: [{
|
|
721
725
|
type: Component,
|
|
722
726
|
args: [{ selector: 'wlcm-date-range-picker-input', host: { class: 'wlcm-date-range-picker-input' }, exportAs: 'wlcmDateRangePickerInput', standalone: true, imports: [CommonModule, WlcmFormsModule, DateRangePickerInputStartDirective, DateRangePickerInputEndDirective], providers: [
|
|
723
727
|
WLCM_FORM_CONTROL_PROVIDER,
|
|
@@ -801,10 +805,10 @@ class WlcmDataRangeCalendar {
|
|
|
801
805
|
return true;
|
|
802
806
|
};
|
|
803
807
|
}
|
|
804
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
805
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
808
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDataRangeCalendar, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
809
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.3.5", type: WlcmDataRangeCalendar, inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateChange: "dateChange", viewChange: "viewChange" }, ngImport: i0 }); }
|
|
806
810
|
}
|
|
807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDataRangeCalendar, decorators: [{
|
|
808
812
|
type: Directive
|
|
809
813
|
}], ctorParameters: () => [{ type: undefined }, { type: i0.ElementRef }, { type: i2.MatCalendar }, { type: i1$1.DateAdapter }, { type: undefined }] });
|
|
810
814
|
|
|
@@ -824,8 +828,8 @@ let WlcmLeftCalendarDirective = class WlcmLeftCalendarDirective extends WlcmData
|
|
|
824
828
|
handleMonthChange() {
|
|
825
829
|
this.calendar.monthSelected.pipe(untilDestroyed(this)).subscribe((date) => this.dateChange.emit(date));
|
|
826
830
|
}
|
|
827
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
828
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
831
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmLeftCalendarDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter }, { token: forwardRef(() => MatCalendar) }, { token: WLCM_DATEPICKER_CONFIG }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
832
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.5", type: WlcmLeftCalendarDirective, isStandalone: true, selector: "[wlcmLeftCalendar]", providers: [{ provide: WlcmDataRangeCalendar, useExisting: forwardRef(() => WlcmLeftCalendarDirective) }], usesInheritance: true, ngImport: i0 }); }
|
|
829
833
|
};
|
|
830
834
|
WlcmLeftCalendarDirective = __decorate([
|
|
831
835
|
UntilDestroy(),
|
|
@@ -833,7 +837,7 @@ WlcmLeftCalendarDirective = __decorate([
|
|
|
833
837
|
DateAdapter,
|
|
834
838
|
MatCalendar, Object])
|
|
835
839
|
], WlcmLeftCalendarDirective);
|
|
836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmLeftCalendarDirective, decorators: [{
|
|
837
841
|
type: Directive,
|
|
838
842
|
args: [{
|
|
839
843
|
selector: '[wlcmLeftCalendar]',
|
|
@@ -877,8 +881,8 @@ let WlcmRightCalendarDirective = class WlcmRightCalendarDirective extends WlcmDa
|
|
|
877
881
|
nextYear() {
|
|
878
882
|
this.dateChange.emit(this.dateAdapter.addCalendarMonths(this.dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? 1 : yearsPerPage), -1));
|
|
879
883
|
}
|
|
880
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
881
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
884
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmRightCalendarDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter }, { token: forwardRef(() => MatCalendar) }, { token: WLCM_DATEPICKER_CONFIG }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
885
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.5", type: WlcmRightCalendarDirective, isStandalone: true, selector: "[wlcmRightCalendar]", providers: [{ provide: WlcmDataRangeCalendar, useExisting: forwardRef(() => WlcmRightCalendarDirective) }], usesInheritance: true, ngImport: i0 }); }
|
|
882
886
|
};
|
|
883
887
|
WlcmRightCalendarDirective = __decorate([
|
|
884
888
|
UntilDestroy(),
|
|
@@ -886,7 +890,7 @@ WlcmRightCalendarDirective = __decorate([
|
|
|
886
890
|
DateAdapter,
|
|
887
891
|
MatCalendar, Object])
|
|
888
892
|
], WlcmRightCalendarDirective);
|
|
889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmRightCalendarDirective, decorators: [{
|
|
890
894
|
type: Directive,
|
|
891
895
|
args: [{
|
|
892
896
|
selector: '[wlcmRightCalendar]',
|
|
@@ -955,10 +959,10 @@ class WlcmDateRangeCalendarHeaderComponent {
|
|
|
955
959
|
get canDisplayRightArrow() {
|
|
956
960
|
return !this.rangeCalendar || this.rangeCalendar.location === 'right' || this.calendar.currentView !== 'month';
|
|
957
961
|
}
|
|
958
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
959
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
962
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateRangeCalendarHeaderComponent, deps: [{ token: WlcmDataRangeCalendar, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: forwardRef(() => MatCalendar) }, { token: WLCM_DATEPICKER_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
963
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: WlcmDateRangeCalendarHeaderComponent, isStandalone: true, selector: "wlcm-date-range-calendar-header", ngImport: i0, template: "<wlcm-calendar-header\n [next]=\"next\"\n [previous]=\"previous\"\n [disableLeftArrow]=\"isPreviousDisabled\"\n [disableRightArrow]=\"isNextDisabled\"\n [displayLeftArrow]=\"canDisplayLeftArrow && !rangeCalendar.disabled()\"\n [displayRightArrow]=\"canDisplayRightArrow && !rangeCalendar.disabled()\"\n></wlcm-calendar-header>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: WlcmCalendarHeaderComponent, selector: "wlcm-calendar-header", inputs: ["next", "previous", "disableLeftArrow", "disableRightArrow", "displayLeftArrow", "displayRightArrow"] }] }); }
|
|
960
964
|
}
|
|
961
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDateRangeCalendarHeaderComponent, decorators: [{
|
|
962
966
|
type: Component,
|
|
963
967
|
args: [{ selector: 'wlcm-date-range-calendar-header', standalone: true, imports: [CommonModule, WlcmCalendarHeaderComponent, WlcmIconDirective], template: "<wlcm-calendar-header\n [next]=\"next\"\n [previous]=\"previous\"\n [disableLeftArrow]=\"isPreviousDisabled\"\n [disableRightArrow]=\"isNextDisabled\"\n [displayLeftArrow]=\"canDisplayLeftArrow && !rangeCalendar.disabled()\"\n [displayRightArrow]=\"canDisplayRightArrow && !rangeCalendar.disabled()\"\n></wlcm-calendar-header>\n" }]
|
|
964
968
|
}], ctorParameters: () => [{ type: WlcmDataRangeCalendar, decorators: [{
|
|
@@ -977,7 +981,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
977
981
|
}] }] });
|
|
978
982
|
|
|
979
983
|
let DoubleCalendarRangePickerComponent = class DoubleCalendarRangePickerComponent extends WlcmDateRangePicker {
|
|
980
|
-
constructor(rangeConfig, rangeSelectionStrategy, localSelectionModel, triggerSelectionModel, trigger, datepickerConfig, pickerBottomPanel, dateAdapter) {
|
|
984
|
+
constructor(rangeConfig, rangeSelectionStrategy, localSelectionModel, triggerSelectionModel, trigger, datepickerConfig, pickerBottomPanel, pickerLeftPanel, dateAdapter) {
|
|
981
985
|
super(localSelectionModel, rangeSelectionStrategy);
|
|
982
986
|
this.rangeConfig = rangeConfig;
|
|
983
987
|
this.rangeSelectionStrategy = rangeSelectionStrategy;
|
|
@@ -986,6 +990,7 @@ let DoubleCalendarRangePickerComponent = class DoubleCalendarRangePickerComponen
|
|
|
986
990
|
this.trigger = trigger;
|
|
987
991
|
this.datepickerConfig = datepickerConfig;
|
|
988
992
|
this.pickerBottomPanel = pickerBottomPanel;
|
|
993
|
+
this.pickerLeftPanel = pickerLeftPanel;
|
|
989
994
|
this.dateAdapter = dateAdapter;
|
|
990
995
|
this.headerComponent = WlcmDateRangeCalendarHeaderComponent;
|
|
991
996
|
this._isViewInitialized = signal(false);
|
|
@@ -1017,6 +1022,9 @@ let DoubleCalendarRangePickerComponent = class DoubleCalendarRangePickerComponen
|
|
|
1017
1022
|
this.rightCalendarYearViewActivated.set(view !== 'month');
|
|
1018
1023
|
});
|
|
1019
1024
|
this.bottomPanelContainer.createComponent(this.pickerBottomPanel);
|
|
1025
|
+
if (this.pickerLeftPanel) {
|
|
1026
|
+
this.leftPanelContainer.createComponent(this.pickerLeftPanel).changeDetectorRef.detectChanges();
|
|
1027
|
+
}
|
|
1020
1028
|
this.handleRightCalendarPreviewChange();
|
|
1021
1029
|
}
|
|
1022
1030
|
apply() {
|
|
@@ -1052,24 +1060,23 @@ let DoubleCalendarRangePickerComponent = class DoubleCalendarRangePickerComponen
|
|
|
1052
1060
|
});
|
|
1053
1061
|
});
|
|
1054
1062
|
}
|
|
1055
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1056
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1063
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: DoubleCalendarRangePickerComponent, deps: [{ token: WLCM_DATE_RANGE_PICKER_CONFIG, optional: true }, { token: MAT_DATE_RANGE_SELECTION_STRATEGY }, { token: WLCM_DATE_RANGE_SELECTION_MODEL }, { token: WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL }, { token: WlcmDatepickerTrigger }, { token: WLCM_DATEPICKER_CONFIG }, { token: WLCM_DATE_RANGE_PICKER_BP }, { token: WLCM_DATE_RANGE_PICKER_LEFT_PANEL, optional: true }, { token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1064
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: DoubleCalendarRangePickerComponent, isStandalone: true, selector: "wlcm-double-calendar-range-picker", providers: [
|
|
1057
1065
|
{
|
|
1058
1066
|
provide: MAT_DATE_RANGE_SELECTION_STRATEGY,
|
|
1059
1067
|
useClass: DefaultMatCalendarRangeStrategy,
|
|
1060
1068
|
},
|
|
1061
1069
|
{ provide: WlcmDateRangePicker, useExisting: forwardRef(() => DoubleCalendarRangePickerComponent) },
|
|
1062
1070
|
WLCM_DATE_RANGE_SELECTION_MODEL_PROVIDER,
|
|
1063
|
-
], viewQueries: [{ propertyName: "leftCalendar", first: true, predicate: WlcmLeftCalendarDirective, descendants: true, read: MatCalendar }, { propertyName: "rightCalendar", first: true, predicate: WlcmRightCalendarDirective, descendants: true, read: MatCalendar }, { propertyName: "leftCalendarElement", first: true, predicate: WlcmLeftCalendarDirective, descendants: true, read: ElementRef }, { propertyName: "bottomPanelContainer", first: true, predicate: ["bottomPanelContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "monthView", first: true, predicate: MatMonthView, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"wlcm-date-range-picker-panel\">\n <div class=\"double-calendar-range-picker-body\">\n <mat-calendar\n
|
|
1071
|
+
], viewQueries: [{ propertyName: "leftCalendar", first: true, predicate: WlcmLeftCalendarDirective, descendants: true, read: MatCalendar }, { propertyName: "rightCalendar", first: true, predicate: WlcmRightCalendarDirective, descendants: true, read: MatCalendar }, { propertyName: "leftCalendarElement", first: true, predicate: WlcmLeftCalendarDirective, descendants: true, read: ElementRef }, { propertyName: "bottomPanelContainer", first: true, predicate: ["bottomPanelContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "leftPanelContainer", first: true, predicate: ["leftPanelContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "monthView", first: true, predicate: MatMonthView, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"wlcm-date-range-picker-panel\">\n <div class=\"double-calendar-range-picker-body\">\n <div class=\"double-calendar-range-picker__left-section\">\n <ng-container #leftPanelContainer></ng-container>\n </div>\n\n <div class=\"double-calendar-range-picker__calendars-container\">\n <mat-calendar\n wlcmCalendar\n wlcmLeftCalendar\n [selected]=\"selected\"\n [disabled]=\"rightCalendarYearViewActivated()\"\n [headerComponent]=\"headerComponent\"\n (_userSelection)=\"calendarSelection($event)\"\n (_userDragDrop)=\"calendarDragDrop($event)\"\n (dateChange)=\"startDate.set($event)\"\n ></mat-calendar>\n\n <mat-calendar\n wlcmCalendar\n wlcmRightCalendar\n [selected]=\"selected\"\n [disabled]=\"leftCalendarYearViewActivated()\"\n [headerComponent]=\"headerComponent\"\n (_userSelection)=\"calendarSelection($event)\"\n (_userDragDrop)=\"calendarDragDrop($event)\"\n (dateChange)=\"startDate.set($event)\"\n ></mat-calendar>\n </div>\n </div>\n\n <ng-container #bottomPanelContainer></ng-container>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i2.MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }, { kind: "directive", type: WlcmCalendarDirective, selector: "[wlcmCalendar]" }, { kind: "directive", type: WlcmLeftCalendarDirective, selector: "[wlcmLeftCalendar]" }, { kind: "directive", type: WlcmRightCalendarDirective, selector: "[wlcmRightCalendar]" }] }); }
|
|
1064
1072
|
};
|
|
1065
1073
|
DoubleCalendarRangePickerComponent = __decorate([
|
|
1066
1074
|
UntilDestroy(),
|
|
1067
1075
|
__metadata("design:paramtypes", [Object, Object, MatDateSelectionModel,
|
|
1068
1076
|
MatDateSelectionModel,
|
|
1069
|
-
WlcmDatepickerTrigger, Object, Type,
|
|
1070
|
-
DateAdapter])
|
|
1077
|
+
WlcmDatepickerTrigger, Object, Type, Object, DateAdapter])
|
|
1071
1078
|
], DoubleCalendarRangePickerComponent);
|
|
1072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: DoubleCalendarRangePickerComponent, decorators: [{
|
|
1073
1080
|
type: Component,
|
|
1074
1081
|
args: [{ selector: 'wlcm-double-calendar-range-picker', imports: [
|
|
1075
1082
|
CommonModule,
|
|
@@ -1084,7 +1091,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1084
1091
|
},
|
|
1085
1092
|
{ provide: WlcmDateRangePicker, useExisting: forwardRef(() => DoubleCalendarRangePickerComponent) },
|
|
1086
1093
|
WLCM_DATE_RANGE_SELECTION_MODEL_PROVIDER,
|
|
1087
|
-
], template: "<div class=\"wlcm-date-range-picker-panel\">\n <div class=\"double-calendar-range-picker-body\">\n <mat-calendar\n
|
|
1094
|
+
], template: "<div class=\"wlcm-date-range-picker-panel\">\n <div class=\"double-calendar-range-picker-body\">\n <div class=\"double-calendar-range-picker__left-section\">\n <ng-container #leftPanelContainer></ng-container>\n </div>\n\n <div class=\"double-calendar-range-picker__calendars-container\">\n <mat-calendar\n wlcmCalendar\n wlcmLeftCalendar\n [selected]=\"selected\"\n [disabled]=\"rightCalendarYearViewActivated()\"\n [headerComponent]=\"headerComponent\"\n (_userSelection)=\"calendarSelection($event)\"\n (_userDragDrop)=\"calendarDragDrop($event)\"\n (dateChange)=\"startDate.set($event)\"\n ></mat-calendar>\n\n <mat-calendar\n wlcmCalendar\n wlcmRightCalendar\n [selected]=\"selected\"\n [disabled]=\"leftCalendarYearViewActivated()\"\n [headerComponent]=\"headerComponent\"\n (_userSelection)=\"calendarSelection($event)\"\n (_userDragDrop)=\"calendarDragDrop($event)\"\n (dateChange)=\"startDate.set($event)\"\n ></mat-calendar>\n </div>\n </div>\n\n <ng-container #bottomPanelContainer></ng-container>\n</div>\n" }]
|
|
1088
1095
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1089
1096
|
type: Optional
|
|
1090
1097
|
}, {
|
|
@@ -1105,6 +1112,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1105
1112
|
}] }, { type: i0.Type, decorators: [{
|
|
1106
1113
|
type: Inject,
|
|
1107
1114
|
args: [WLCM_DATE_RANGE_PICKER_BP]
|
|
1115
|
+
}] }, { type: i0.Type, decorators: [{
|
|
1116
|
+
type: Optional
|
|
1117
|
+
}, {
|
|
1118
|
+
type: Inject,
|
|
1119
|
+
args: [WLCM_DATE_RANGE_PICKER_LEFT_PANEL]
|
|
1108
1120
|
}] }, { type: i1$1.DateAdapter }], propDecorators: { leftCalendar: [{
|
|
1109
1121
|
type: ViewChild,
|
|
1110
1122
|
args: [WlcmLeftCalendarDirective, { read: MatCalendar }]
|
|
@@ -1117,6 +1129,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1117
1129
|
}], bottomPanelContainer: [{
|
|
1118
1130
|
type: ViewChild,
|
|
1119
1131
|
args: ['bottomPanelContainer', { read: ViewContainerRef }]
|
|
1132
|
+
}], leftPanelContainer: [{
|
|
1133
|
+
type: ViewChild,
|
|
1134
|
+
args: ['leftPanelContainer', { read: ViewContainerRef }]
|
|
1120
1135
|
}], monthView: [{
|
|
1121
1136
|
type: ViewChild,
|
|
1122
1137
|
args: [MatMonthView]
|
|
@@ -1147,8 +1162,8 @@ let WlcmDatepickerInputDirective = class WlcmDatepickerInputDirective extends Wl
|
|
|
1147
1162
|
this._touched?.();
|
|
1148
1163
|
});
|
|
1149
1164
|
}
|
|
1150
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1151
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerInputDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter }, { token: MAT_DATE_FORMATS }, { token: i2.MatDateSelectionModel }, { token: WlcmDatepickerTrigger }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1166
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.5", type: WlcmDatepickerInputDirective, isStandalone: true, selector: "[wlcmDatepickerInput]", host: { classAttribute: "wlcm-form-field-input" }, providers: [
|
|
1152
1167
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => WlcmDatepickerInputDirective), multi: true },
|
|
1153
1168
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => WlcmDatepickerInputDirective), multi: true },
|
|
1154
1169
|
], exportAs: ["wlcmDatepickerInput"], usesInheritance: true, ngImport: i0 }); }
|
|
@@ -1159,7 +1174,7 @@ WlcmDatepickerInputDirective = __decorate([
|
|
|
1159
1174
|
DateAdapter, Object, MatDateSelectionModel,
|
|
1160
1175
|
WlcmDatepickerTrigger])
|
|
1161
1176
|
], WlcmDatepickerInputDirective);
|
|
1162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerInputDirective, decorators: [{
|
|
1163
1178
|
type: Directive,
|
|
1164
1179
|
args: [{
|
|
1165
1180
|
selector: '[wlcmDatepickerInput]',
|
|
@@ -1188,10 +1203,10 @@ class WlcmDatepickerPanelComponent {
|
|
|
1188
1203
|
this.selectionModel.updateSelection(date, this);
|
|
1189
1204
|
this.trigger.close();
|
|
1190
1205
|
}
|
|
1191
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1192
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
1206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerPanelComponent, deps: [{ token: i2.MatDateSelectionModel }, { token: WlcmDatepickerTrigger }, { token: WLCM_DATEPICKER_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1207
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "17.3.5", type: WlcmDatepickerPanelComponent, isStandalone: true, selector: "wlcm-datepicker-panel", host: { classAttribute: "wlcm-datepicker-panel" }, viewQueries: [{ propertyName: "matCalendar", first: true, predicate: MatCalendar, descendants: true, isSignal: true }], ngImport: i0, template: "<mat-calendar\n wlcmCalendar\n [minDate]=\"config.minDate?.()\"\n [maxDate]=\"config.maxDate?.()\"\n [startAt]=\"selectionModel.selection\"\n [selected]=\"selectionModel.selection\"\n [headerComponent]=\"headerComponent\"\n (selectedChange)=\"select($event)\"\n></mat-calendar>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i2.MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }, { kind: "directive", type: WlcmCalendarDirective, selector: "[wlcmCalendar]" }] }); }
|
|
1193
1208
|
}
|
|
1194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerPanelComponent, decorators: [{
|
|
1195
1210
|
type: Component,
|
|
1196
1211
|
args: [{ selector: 'wlcm-datepicker-panel', host: { class: 'wlcm-datepicker-panel' }, standalone: true, imports: [CommonModule, MatDatepickerModule, WlcmCalendarDirective], template: "<mat-calendar\n wlcmCalendar\n [minDate]=\"config.minDate?.()\"\n [maxDate]=\"config.maxDate?.()\"\n [startAt]=\"selectionModel.selection\"\n [selected]=\"selectionModel.selection\"\n [headerComponent]=\"headerComponent\"\n (selectedChange)=\"select($event)\"\n></mat-calendar>\n" }]
|
|
1197
1212
|
}], ctorParameters: () => [{ type: i2.MatDateSelectionModel }, { type: WlcmDatepickerTrigger }, { type: undefined, decorators: [{
|
|
@@ -1241,8 +1256,8 @@ class WlcmDatepickerInputContainerComponent extends WlcmDatepickerTrigger {
|
|
|
1241
1256
|
this._focusStream$.next(merge(...focusObservables).pipe(map(voidFn)));
|
|
1242
1257
|
this._blurStream$.next(merge(...blurObservables).pipe(map(voidFn)));
|
|
1243
1258
|
}
|
|
1244
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1245
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
1259
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerInputContainerComponent, deps: [{ token: i1.Overlay }, { token: i0.ViewContainerRef }, { token: i2.MatDateSelectionModel }, { token: WLCM_FORM_FIELD, host: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1260
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "17.3.5", type: WlcmDatepickerInputContainerComponent, isStandalone: true, selector: "wlcm-datepicker-input-container", host: { classAttribute: "wlcm-datepicker-input-container" }, providers: [
|
|
1246
1261
|
{
|
|
1247
1262
|
provide: WLCM_INPUT_BINDER,
|
|
1248
1263
|
useFactory: () => {
|
|
@@ -1256,7 +1271,7 @@ class WlcmDatepickerInputContainerComponent extends WlcmDatepickerTrigger {
|
|
|
1256
1271
|
{ provide: MatDateSelectionModel, useClass: MatSingleDateSelectionModel },
|
|
1257
1272
|
], queries: [{ propertyName: "inputRef", first: true, predicate: WlcmDatepickerInputDirective, descendants: true, read: ElementRef, isSignal: true }], exportAs: ["wlcmDatepicker"], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"[wlcmDatepickerInput]\"></ng-content>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
1258
1273
|
}
|
|
1259
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerInputContainerComponent, decorators: [{
|
|
1260
1275
|
type: Component,
|
|
1261
1276
|
args: [{ selector: 'wlcm-datepicker-input-container', host: { class: 'wlcm-datepicker-input-container' }, exportAs: 'wlcmDatepicker', standalone: true, imports: [CommonModule], providers: [
|
|
1262
1277
|
{
|
|
@@ -1300,15 +1315,15 @@ const publicDirectives = [
|
|
|
1300
1315
|
DateRangePickerInputEndDirective,
|
|
1301
1316
|
];
|
|
1302
1317
|
class WlcmDatepickerModule {
|
|
1303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1304
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1318
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1319
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerModule, imports: [CommonModule, WlcmDatepickerInputContainerComponent, WlcmDateRangePickerInputComponent, WlcmDatepickerInputDirective,
|
|
1305
1320
|
DateRangePickerInputStartDirective,
|
|
1306
1321
|
DateRangePickerInputEndDirective], exports: [WlcmDatepickerInputContainerComponent, WlcmDateRangePickerInputComponent, WlcmDatepickerInputDirective,
|
|
1307
1322
|
DateRangePickerInputStartDirective,
|
|
1308
1323
|
DateRangePickerInputEndDirective] }); }
|
|
1309
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1324
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerModule, providers: [...WLCM_DEFAULT_DATEPICKER_PROVIDERS], imports: [CommonModule, publicComponents] }); }
|
|
1310
1325
|
}
|
|
1311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: WlcmDatepickerModule, decorators: [{
|
|
1312
1327
|
type: NgModule,
|
|
1313
1328
|
args: [{
|
|
1314
1329
|
imports: [CommonModule, ...publicComponents, ...publicDirectives],
|
|
@@ -1321,5 +1336,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1321
1336
|
* Generated bundle index. Do not edit.
|
|
1322
1337
|
*/
|
|
1323
1338
|
|
|
1324
|
-
export { DateRangePickerInputEndDirective, DateRangePickerInputStartDirective, DoubleCalendarRangePickerComponent, SingleCalendarRangePickerComponent, WLCM_DATEPICKER_CONFIG, WLCM_DATE_RANGE_SELECTION_MODEL, WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL_PROVIDER, WlcmDateRangeInputValidator, WlcmDateRangePicker, WlcmDateRangePickerInputComponent, WlcmDateRangeValidation, WlcmDateValidation, WlcmDatepickerInputContainerComponent, WlcmDatepickerInputDirective, WlcmDatepickerModule, WlcmDatepickerTrigger };
|
|
1339
|
+
export { DateRangePickerInputEndDirective, DateRangePickerInputStartDirective, DoubleCalendarRangePickerComponent, SingleCalendarRangePickerComponent, WLCM_DATEPICKER_CONFIG, WLCM_DATE_RANGE_PICKER_BP, WLCM_DATE_RANGE_PICKER_LEFT_PANEL, WLCM_DATE_RANGE_SELECTION_MODEL, WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL, WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL_PROVIDER, WlcmDateRangeInputValidator, WlcmDateRangePicker, WlcmDateRangePickerInputComponent, WlcmDateRangeValidation, WlcmDateValidation, WlcmDatepickerInputContainerComponent, WlcmDatepickerInputDirective, WlcmDatepickerModule, WlcmDatepickerTrigger };
|
|
1325
1340
|
//# sourceMappingURL=wlcm-angular-datepicker.mjs.map
|