@wlcm/angular 19.2.4 → 19.2.6

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.
@@ -11,6 +11,8 @@ export { WlcmDateRangePicker } from './lib/models/range/date-range-picker.models
11
11
  export { WlcmDatepickerTrigger } from './lib/directives/datepicker-trigger.base';
12
12
  export { WlcmDateValidation } from './lib/models/date-picker.models';
13
13
  export { WlcmDatepickerModule } from './lib/datepicker.module';
14
- export { WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL_PROVIDER } from './lib/constants/range/date-range-trigger-selection-model.constants';
15
- export { WLCM_DATEPICKER_CONFIG } from './lib/constants/datepicker.constants';
14
+ export { WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL, WLCM_DATE_RANGE_TRIGGER_SELECTION_MODEL_PROVIDER, } from './lib/constants/range/date-range-trigger-selection-model.constants';
15
+ export { WLCM_DATE_RANGE_SELECTION_MODEL } from './lib/constants/range/date-range-selection-model.constants';
16
+ export { WLCM_DATE_RANGE_PICKER_LEFT_PANEL } from './lib/constants/range/date-range-picker.constants';
16
17
  export { WLCM_DATE_RANGE_PICKER_BP } from './lib/constants/range/date-range-picker.constants';
18
+ export { WLCM_DATEPICKER_CONFIG } from './lib/constants/datepicker.constants';
@@ -1,11 +1,11 @@
1
- import { ElementRef, Type, ViewContainerRef, WritableSignal } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, Type, ViewContainerRef, WritableSignal } from '@angular/core';
2
2
  import { WlcmDateRangePicker, WlcmDateRangePickerConfig } from '../../../models/range/date-range-picker.models';
3
3
  import { DateAdapter } from '@angular/material/core';
4
4
  import { MatDateRangeSelectionStrategy, MatDateSelectionModel, DateRange, MatCalendar, MatMonthView } from '@angular/material/datepicker';
5
5
  import { WlcmDatepickerTrigger } from '../../../directives/datepicker-trigger.base';
6
6
  import { WlcmDatepickerConfig } from '../../../models/date-picker.models';
7
7
  import * as i0 from "@angular/core";
8
- export declare class DoubleCalendarRangePickerComponent extends WlcmDateRangePicker {
8
+ export declare class DoubleCalendarRangePickerComponent extends WlcmDateRangePicker implements AfterViewInit {
9
9
  private rangeConfig;
10
10
  protected rangeSelectionStrategy: MatDateRangeSelectionStrategy<Date>;
11
11
  protected localSelectionModel: MatDateSelectionModel<DateRange<Date>>;
@@ -13,14 +13,16 @@ export declare class DoubleCalendarRangePickerComponent extends WlcmDateRangePic
13
13
  protected trigger: WlcmDatepickerTrigger<DoubleCalendarRangePickerComponent>;
14
14
  protected datepickerConfig: WlcmDatepickerConfig;
15
15
  protected pickerBottomPanel: Type<unknown>;
16
+ protected pickerLeftPanel: Type<unknown> | null;
16
17
  protected dateAdapter: DateAdapter<Date>;
17
18
  protected headerComponent: Type<unknown>;
18
19
  private _isViewInitialized;
19
- constructor(rangeConfig: WlcmDateRangePickerConfig, rangeSelectionStrategy: MatDateRangeSelectionStrategy<Date>, localSelectionModel: MatDateSelectionModel<DateRange<Date>>, triggerSelectionModel: MatDateSelectionModel<DateRange<Date>>, trigger: WlcmDatepickerTrigger<DoubleCalendarRangePickerComponent>, datepickerConfig: WlcmDatepickerConfig, pickerBottomPanel: Type<unknown>, dateAdapter: DateAdapter<Date>);
20
+ constructor(rangeConfig: WlcmDateRangePickerConfig, rangeSelectionStrategy: MatDateRangeSelectionStrategy<Date>, localSelectionModel: MatDateSelectionModel<DateRange<Date>>, triggerSelectionModel: MatDateSelectionModel<DateRange<Date>>, trigger: WlcmDatepickerTrigger<DoubleCalendarRangePickerComponent>, datepickerConfig: WlcmDatepickerConfig, pickerBottomPanel: Type<unknown>, pickerLeftPanel: Type<unknown> | null, dateAdapter: DateAdapter<Date>);
20
21
  leftCalendar: MatCalendar<Date>;
21
22
  rightCalendar: MatCalendar<Date>;
22
23
  leftCalendarElement: ElementRef<HTMLElement>;
23
24
  bottomPanelContainer: ViewContainerRef;
25
+ leftPanelContainer: ViewContainerRef;
24
26
  monthView: MatMonthView<Date>;
25
27
  startDate: WritableSignal<Date>;
26
28
  leftCalendarYearViewActivated: WritableSignal<boolean>;
@@ -30,6 +32,6 @@ export declare class DoubleCalendarRangePickerComponent extends WlcmDateRangePic
30
32
  reset(): void;
31
33
  private get leftCalendarActiveCell();
32
34
  private handleRightCalendarPreviewChange;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<DoubleCalendarRangePickerComponent, [{ optional: true; }, null, null, null, null, null, null, null]>;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<DoubleCalendarRangePickerComponent, [{ optional: true; }, null, null, null, null, null, null, { optional: true; }, null]>;
34
36
  static ɵcmp: i0.ɵɵComponentDeclaration<DoubleCalendarRangePickerComponent, "wlcm-double-calendar-range-picker", never, {}, {}, never, never, true, never>;
35
37
  }
@@ -2,3 +2,4 @@ import { InjectionToken, Type } from '@angular/core';
2
2
  import { WlcmDateRangePickerConfig } from '../../models/range/date-range-picker.models';
3
3
  export declare const WLCM_DATE_RANGE_PICKER_CONFIG: InjectionToken<WlcmDateRangePickerConfig>;
4
4
  export declare const WLCM_DATE_RANGE_PICKER_BP: InjectionToken<Type<unknown>>;
5
+ export declare const WLCM_DATE_RANGE_PICKER_LEFT_PANEL: InjectionToken<Type<unknown>>;
@@ -5,12 +5,13 @@ export declare abstract class WlcmDateRangePicker {
5
5
  protected rangeSelectionStrategy: MatDateRangeSelectionStrategy<Date>;
6
6
  protected _isComplete: WritableSignal<boolean>;
7
7
  readonly isComplete: Signal<boolean>;
8
- constructor(localSelectionModel: MatDateSelectionModel<DateRange<Date>>, rangeSelectionStrategy: MatDateRangeSelectionStrategy<Date>);
8
+ protected constructor(localSelectionModel: MatDateSelectionModel<DateRange<Date>>, rangeSelectionStrategy: MatDateRangeSelectionStrategy<Date>);
9
9
  abstract apply(): void;
10
10
  abstract reset(): void;
11
- calendarSelection(event: MatCalendarUserEvent<Date | null>): void;
12
- calendarDragDrop(event: MatCalendarUserEvent<DateRange<Date>>): void;
11
+ setSelection(selection: DateRange<Date>): void;
13
12
  get selected(): DateRange<Date>;
13
+ protected calendarSelection(event: MatCalendarUserEvent<Date | null>): void;
14
+ protected calendarDragDrop(event: MatCalendarUserEvent<DateRange<Date>>): void;
14
15
  private handleSelectionChanged;
15
16
  }
16
17
  export interface WlcmDateRangePickerConfig {
@@ -1,7 +1,7 @@
1
1
  import { BehaviorSubject, startWith, switchMap, combineLatest, map } from 'rxjs';
2
2
  import { __decorate } from 'tslib';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, Directive, ContentChildren, forwardRef, Component, NgModule } from '@angular/core';
4
+ import { InjectionToken, ContentChildren, Directive, forwardRef, Component, NgModule } from '@angular/core';
5
5
  import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
6
6
  import { CommonModule } from '@angular/common';
7
7
 
@@ -157,13 +157,13 @@ let WlcmFiltersGroup = class WlcmFiltersGroup {
157
157
  return list;
158
158
  }));
159
159
  }
160
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: WlcmFiltersGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
161
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.4", type: WlcmFiltersGroup, isStandalone: true, queries: [{ propertyName: "filters", predicate: WLCM_FILTER, descendants: true }], ngImport: i0 }); }
160
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: WlcmFiltersGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
161
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: WlcmFiltersGroup, isStandalone: true, queries: [{ propertyName: "filters", predicate: WLCM_FILTER, descendants: true }], ngImport: i0 }); }
162
162
  };
163
163
  WlcmFiltersGroup = __decorate([
164
164
  UntilDestroy()
165
165
  ], WlcmFiltersGroup);
166
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: WlcmFiltersGroup, decorators: [{
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: WlcmFiltersGroup, decorators: [{
167
167
  type: Directive
168
168
  }], propDecorators: { filters: [{
169
169
  type: ContentChildren,
@@ -171,19 +171,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
171
171
  }] } });
172
172
 
173
173
  class FilterDirective {
174
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: FilterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
175
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.4", type: FilterDirective, isStandalone: true, selector: "[wlcmFilter]", ngImport: i0 }); }
174
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: FilterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
175
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: FilterDirective, isStandalone: true, selector: "[wlcmFilter]", ngImport: i0 }); }
176
176
  }
177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: FilterDirective, decorators: [{
177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: FilterDirective, decorators: [{
178
178
  type: Directive,
179
179
  args: [{ selector: '[wlcmFilter]', standalone: true }]
180
180
  }] });
181
181
 
182
182
  class FiltersGroupComponent extends WlcmFiltersGroup {
183
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: FiltersGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
184
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: FiltersGroupComponent, isStandalone: true, selector: "wlcm-filters-group", host: { classAttribute: "wlcm-filters-group" }, providers: [{ provide: WlcmFiltersGroup, useExisting: forwardRef(() => FiltersGroupComponent) }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"[wlcmFilter]\"></ng-content>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
183
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: FiltersGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
184
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: FiltersGroupComponent, isStandalone: true, selector: "wlcm-filters-group", host: { classAttribute: "wlcm-filters-group" }, providers: [{ provide: WlcmFiltersGroup, useExisting: forwardRef(() => FiltersGroupComponent) }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"[wlcmFilter]\"></ng-content>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
185
185
  }
186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: FiltersGroupComponent, decorators: [{
186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: FiltersGroupComponent, decorators: [{
187
187
  type: Component,
188
188
  args: [{ selector: 'wlcm-filters-group', standalone: true, imports: [CommonModule], host: { class: 'wlcm-filters-group' }, providers: [{ provide: WlcmFiltersGroup, useExisting: forwardRef(() => FiltersGroupComponent) }], template: "<ng-content select=\"[wlcmFilter]\"></ng-content>\n", styles: [":host{display:block}\n"] }]
189
189
  }] });
@@ -191,11 +191,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
191
191
  const publicComponents = [FiltersGroupComponent];
192
192
  const publicDirectives = [FilterDirective];
193
193
  class WlcmFiltersModule {
194
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: WlcmFiltersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
195
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.4", ngImport: i0, type: WlcmFiltersModule, imports: [CommonModule, FiltersGroupComponent, FilterDirective], exports: [FiltersGroupComponent, FilterDirective] }); }
196
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: WlcmFiltersModule, imports: [CommonModule, publicComponents] }); }
194
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: WlcmFiltersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
195
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.9", ngImport: i0, type: WlcmFiltersModule, imports: [CommonModule, FiltersGroupComponent, FilterDirective], exports: [FiltersGroupComponent, FilterDirective] }); }
196
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: WlcmFiltersModule, imports: [CommonModule, publicComponents] }); }
197
197
  }
198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: WlcmFiltersModule, decorators: [{
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: WlcmFiltersModule, decorators: [{
199
199
  type: NgModule,
200
200
  args: [{
201
201
  imports: [CommonModule, ...publicComponents, ...publicDirectives],