@yuuvis/material 3.0.0-beta.20.1 → 3.0.0-beta.21.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/yuuvis-material-badge.mjs +6 -6
- package/fesm2022/yuuvis-material-badge.mjs.map +1 -1
- package/fesm2022/yuuvis-material-layout.mjs +34 -34
- package/fesm2022/yuuvis-material-layout.mjs.map +1 -1
- package/fesm2022/yuuvis-material-panes.mjs +41 -41
- package/fesm2022/yuuvis-material-panes.mjs.map +1 -1
- package/fesm2022/yuuvis-material.mjs +66 -66
- package/fesm2022/yuuvis-material.mjs.map +1 -1
- package/package.json +11 -10
- /package/{badge/index.d.ts → types/yuuvis-material-badge.d.ts} +0 -0
- /package/{layout/index.d.ts → types/yuuvis-material-layout.d.ts} +0 -0
- /package/{panes/index.d.ts → types/yuuvis-material-panes.d.ts} +0 -0
- /package/{index.d.ts → types/yuuvis-material.d.ts} +0 -0
|
@@ -40,10 +40,10 @@ class YmtMatIconRegistryService extends MatIconRegistry {
|
|
|
40
40
|
}
|
|
41
41
|
return false;
|
|
42
42
|
}
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtMatIconRegistryService, deps: [{ token: i1.HttpClient }, { token: i2.DomSanitizer }, { token: DOCUMENT }, { token: i0.ErrorHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtMatIconRegistryService, providedIn: 'root' });
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtMatIconRegistryService, decorators: [{
|
|
47
47
|
type: Injectable,
|
|
48
48
|
args: [{
|
|
49
49
|
providedIn: 'root'
|
|
@@ -85,10 +85,10 @@ class YmtDatepickerIntlService extends MatDatepickerIntl {
|
|
|
85
85
|
formatYearRangeLabel(start, end) {
|
|
86
86
|
return super.formatYearRangeLabel(start, end);
|
|
87
87
|
}
|
|
88
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
89
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
88
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtDatepickerIntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
89
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtDatepickerIntlService, providedIn: 'root' });
|
|
90
90
|
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtDatepickerIntlService, decorators: [{
|
|
92
92
|
type: Injectable,
|
|
93
93
|
args: [{ providedIn: 'root' }]
|
|
94
94
|
}], ctorParameters: () => [] });
|
|
@@ -159,10 +159,10 @@ class YmtDateAdapterService extends NativeDateAdapter {
|
|
|
159
159
|
};
|
|
160
160
|
return date;
|
|
161
161
|
}
|
|
162
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
163
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtDateAdapterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtDateAdapterService });
|
|
164
164
|
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtDateAdapterService, decorators: [{
|
|
166
166
|
type: Injectable
|
|
167
167
|
}], ctorParameters: () => [] });
|
|
168
168
|
|
|
@@ -263,8 +263,8 @@ class DeviceService {
|
|
|
263
263
|
*
|
|
264
264
|
* @default false
|
|
265
265
|
*/
|
|
266
|
-
smallScreenLayout = signal(false, ...(ngDevMode ? [{ debugName: "smallScreenLayout" }] : []));
|
|
267
|
-
#supportsSmallScreens = signal(false, ...(ngDevMode ? [{ debugName: "#supportsSmallScreens" }] : []));
|
|
266
|
+
smallScreenLayout = signal(false, ...(ngDevMode ? [{ debugName: "smallScreenLayout" }] : /* istanbul ignore next */ []));
|
|
267
|
+
#supportsSmallScreens = signal(false, ...(ngDevMode ? [{ debugName: "#supportsSmallScreens" }] : /* istanbul ignore next */ []));
|
|
268
268
|
/**
|
|
269
269
|
* `true` if the current device is a mobile phone (Android, iPhone, Windows Phone, etc.).
|
|
270
270
|
* Populated once at service creation from `ngx-device-detector`.
|
|
@@ -419,10 +419,10 @@ class DeviceService {
|
|
|
419
419
|
// keyboard appears, so we don't need to debounce
|
|
420
420
|
return this.isMobile ? 0 : 500;
|
|
421
421
|
}
|
|
422
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
423
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
422
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DeviceService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
423
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DeviceService, providedIn: 'root' });
|
|
424
424
|
}
|
|
425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DeviceService, decorators: [{
|
|
426
426
|
type: Injectable,
|
|
427
427
|
args: [{
|
|
428
428
|
providedIn: 'root'
|
|
@@ -462,10 +462,10 @@ class YmtMatPaginatorIntlService extends MatPaginatorIntl {
|
|
|
462
462
|
this.rangeLabelSeparator = this.#translate.instant('ymt.paginator.rangeLabelSeparator');
|
|
463
463
|
this.changes.next();
|
|
464
464
|
}
|
|
465
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
466
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
465
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtMatPaginatorIntlService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
466
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtMatPaginatorIntlService });
|
|
467
467
|
}
|
|
468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtMatPaginatorIntlService, decorators: [{
|
|
469
469
|
type: Injectable
|
|
470
470
|
}] });
|
|
471
471
|
|
|
@@ -576,11 +576,11 @@ var YMT_ICON_BUTTON_SIZE;
|
|
|
576
576
|
})(YMT_ICON_BUTTON_SIZE || (YMT_ICON_BUTTON_SIZE = {}));
|
|
577
577
|
|
|
578
578
|
class YmtIconButtonDirective {
|
|
579
|
-
disabled = input(false, ...(ngDevMode ?
|
|
580
|
-
disableRipple = input(false, ...(ngDevMode ?
|
|
581
|
-
ariaDisabled = input(false, ...(ngDevMode ?
|
|
582
|
-
disabledInteractive = input(false, ...(ngDevMode ?
|
|
583
|
-
size = input(YMT_ICON_BUTTON_SIZE.medium, ...(ngDevMode ?
|
|
579
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
580
|
+
disableRipple = input(false, { ...(ngDevMode ? { debugName: "disableRipple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
581
|
+
ariaDisabled = input(false, { ...(ngDevMode ? { debugName: "ariaDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute, alias: 'aria-disabled' });
|
|
582
|
+
disabledInteractive = input(false, { ...(ngDevMode ? { debugName: "disabledInteractive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
583
|
+
size = input(YMT_ICON_BUTTON_SIZE.medium, { ...(ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {}), alias: 'icon-button-size' });
|
|
584
584
|
#elRef = inject(ElementRef);
|
|
585
585
|
#host = this.#elRef.nativeElement;
|
|
586
586
|
#injector = inject(EnvironmentInjector);
|
|
@@ -622,10 +622,10 @@ class YmtIconButtonDirective {
|
|
|
622
622
|
componentRef.changeDetectorRef.detectChanges();
|
|
623
623
|
return componentRef;
|
|
624
624
|
}
|
|
625
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
626
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
625
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtIconButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
626
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: YmtIconButtonDirective, isStandalone: true, selector: "button[ymtIconButton],button[ymt-icon-button],a[ymtIconButton],a[ymt-icon-button]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, ariaDisabled: { classPropertyName: "ariaDisabled", publicName: "aria-disabled", isSignal: true, isRequired: false, transformFunction: null }, disabledInteractive: { classPropertyName: "disabledInteractive", publicName: "disabledInteractive", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "icon-button-size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "mat-icon-button": "" } }, ngImport: i0 });
|
|
627
627
|
}
|
|
628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtIconButtonDirective, decorators: [{
|
|
629
629
|
type: Directive,
|
|
630
630
|
args: [{
|
|
631
631
|
selector: 'button[ymtIconButton],button[ymt-icon-button],a[ymtIconButton],a[ymt-icon-button]',
|
|
@@ -649,12 +649,12 @@ const MatButtonAttributeMap = {
|
|
|
649
649
|
danger: 'mat-flat-button'
|
|
650
650
|
};
|
|
651
651
|
class YmtButtonDirective {
|
|
652
|
-
ymtButton = input('primary', ...(ngDevMode ? [{ debugName: "ymtButton" }] : []));
|
|
653
|
-
disabled = input(false, ...(ngDevMode ?
|
|
654
|
-
ariaDisabled = input(false, ...(ngDevMode ?
|
|
655
|
-
disableRipple = input(false, ...(ngDevMode ?
|
|
656
|
-
disabledInteractive = input(false, ...(ngDevMode ?
|
|
657
|
-
size = input(YMT_BUTTON_SIZE.medium, ...(ngDevMode ?
|
|
652
|
+
ymtButton = input('primary', ...(ngDevMode ? [{ debugName: "ymtButton" }] : /* istanbul ignore next */ []));
|
|
653
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
654
|
+
ariaDisabled = input(false, { ...(ngDevMode ? { debugName: "ariaDisabled" } : /* istanbul ignore next */ {}), alias: 'aria-disabled', transform: booleanAttribute });
|
|
655
|
+
disableRipple = input(false, { ...(ngDevMode ? { debugName: "disableRipple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
656
|
+
disabledInteractive = input(false, { ...(ngDevMode ? { debugName: "disabledInteractive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
657
|
+
size = input(YMT_BUTTON_SIZE.medium, { ...(ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {}), alias: 'button-size' });
|
|
658
658
|
// Todo: Add input "isBusy" as "busy inactive state": not clickable and with mat-spinner in button
|
|
659
659
|
#environmentInjector = inject(EnvironmentInjector);
|
|
660
660
|
#applicationRef = inject(ApplicationRef);
|
|
@@ -735,10 +735,10 @@ class YmtButtonDirective {
|
|
|
735
735
|
? this.#hostElement.classList.add(`ymt-button--size-m`)
|
|
736
736
|
: this.#hostElement.classList.remove(`ymt-button--size-m`);
|
|
737
737
|
}
|
|
738
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
739
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
738
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
739
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: YmtButtonDirective, isStandalone: true, selector: "button[ymtButton], a[ymtButton]", inputs: { ymtButton: { classPropertyName: "ymtButton", publicName: "ymtButton", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaDisabled: { classPropertyName: "ariaDisabled", publicName: "aria-disabled", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, disabledInteractive: { classPropertyName: "disabledInteractive", publicName: "disabledInteractive", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "button-size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
740
740
|
}
|
|
741
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YmtButtonDirective, decorators: [{
|
|
742
742
|
type: Directive,
|
|
743
743
|
args: [{
|
|
744
744
|
selector: 'button[ymtButton], a[ymtButton]',
|
|
@@ -777,7 +777,7 @@ class DatepickerComponent {
|
|
|
777
777
|
// Done: Check how to get the ngControl instance of this component (optionally set)
|
|
778
778
|
#translate = inject(TranslateService);
|
|
779
779
|
#dateAdapter = inject(DateAdapter);
|
|
780
|
-
#locale = signal(inject(MAT_DATE_LOCALE), ...(ngDevMode ? [{ debugName: "#locale" }] : []));
|
|
780
|
+
#locale = signal(inject(MAT_DATE_LOCALE), ...(ngDevMode ? [{ debugName: "#locale" }] : /* istanbul ignore next */ []));
|
|
781
781
|
#injectNgControl = (ngC = inject(NgControl, { self: true, optional: true })) => ngC ? (ngC.valueAccessor = this) && ngC : null;
|
|
782
782
|
#destroyRef = inject(DestroyRef);
|
|
783
783
|
#formField = inject(MatFormField, { optional: true });
|
|
@@ -791,7 +791,7 @@ class DatepickerComponent {
|
|
|
791
791
|
this.focused = false;
|
|
792
792
|
this.propagateTouched();
|
|
793
793
|
}
|
|
794
|
-
#value = signal(null, ...(ngDevMode ? [{ debugName: "#value" }] : []));
|
|
794
|
+
#value = signal(null, ...(ngDevMode ? [{ debugName: "#value" }] : /* istanbul ignore next */ []));
|
|
795
795
|
set value(v) {
|
|
796
796
|
let _value = this.#dateAdapter.getValidDateOrNull(this.#dateAdapter.deserialize(v));
|
|
797
797
|
const _previousValue = this.#dateAdapter.getValidDateOrNull(this.#dateAdapter.deserialize(this.ngControl?.value));
|
|
@@ -813,7 +813,7 @@ class DatepickerComponent {
|
|
|
813
813
|
get value() {
|
|
814
814
|
return this.#value();
|
|
815
815
|
}
|
|
816
|
-
#disabled = signal(false, ...(ngDevMode ? [{ debugName: "#disabled" }] : []));
|
|
816
|
+
#disabled = signal(false, ...(ngDevMode ? [{ debugName: "#disabled" }] : /* istanbul ignore next */ []));
|
|
817
817
|
set disabled(v) {
|
|
818
818
|
this.#disabled.set(coerceBooleanProperty(v));
|
|
819
819
|
this.timepickerInput()?.setDisabledState(this.#disabled());
|
|
@@ -821,49 +821,49 @@ class DatepickerComponent {
|
|
|
821
821
|
get disabled() {
|
|
822
822
|
return this.#disabled();
|
|
823
823
|
}
|
|
824
|
-
#id = signal('', ...(ngDevMode ? [{ debugName: "#id" }] : []));
|
|
824
|
+
#id = signal('', ...(ngDevMode ? [{ debugName: "#id" }] : /* istanbul ignore next */ []));
|
|
825
825
|
set id(v) {
|
|
826
826
|
this.#id.set(v);
|
|
827
827
|
}
|
|
828
828
|
get id() {
|
|
829
829
|
return this.#id();
|
|
830
830
|
}
|
|
831
|
-
#placeholder = signal('', ...(ngDevMode ? [{ debugName: "#placeholder" }] : []));
|
|
831
|
+
#placeholder = signal('', ...(ngDevMode ? [{ debugName: "#placeholder" }] : /* istanbul ignore next */ []));
|
|
832
832
|
set placeholder(v) {
|
|
833
833
|
this.#placeholder.set(v);
|
|
834
834
|
}
|
|
835
835
|
get placeholder() {
|
|
836
836
|
return this.#placeholder();
|
|
837
837
|
}
|
|
838
|
-
#required = signal(false, ...(ngDevMode ? [{ debugName: "#required" }] : []));
|
|
838
|
+
#required = signal(false, ...(ngDevMode ? [{ debugName: "#required" }] : /* istanbul ignore next */ []));
|
|
839
839
|
set required(v) {
|
|
840
840
|
this.#required.set(coerceBooleanProperty(v));
|
|
841
841
|
}
|
|
842
842
|
get required() {
|
|
843
843
|
return this.#required();
|
|
844
844
|
}
|
|
845
|
-
#userAriaDescribedBy = signal('', ...(ngDevMode ? [{ debugName: "#userAriaDescribedBy" }] : []));
|
|
845
|
+
#userAriaDescribedBy = signal('', ...(ngDevMode ? [{ debugName: "#userAriaDescribedBy" }] : /* istanbul ignore next */ []));
|
|
846
846
|
set userAriaDescribedBy(v) {
|
|
847
847
|
this.#userAriaDescribedBy.set(v);
|
|
848
848
|
}
|
|
849
849
|
get userAriaDescribedBy() {
|
|
850
850
|
return this.#userAriaDescribedBy();
|
|
851
851
|
}
|
|
852
|
-
#empty = signal(false, ...(ngDevMode ? [{ debugName: "#empty" }] : []));
|
|
852
|
+
#empty = signal(false, ...(ngDevMode ? [{ debugName: "#empty" }] : /* istanbul ignore next */ []));
|
|
853
853
|
set empty(v) {
|
|
854
854
|
this.#empty.set(v);
|
|
855
855
|
}
|
|
856
856
|
get empty() {
|
|
857
857
|
return this.#empty();
|
|
858
858
|
}
|
|
859
|
-
#errorState = signal(false, ...(ngDevMode ? [{ debugName: "#errorState" }] : []));
|
|
859
|
+
#errorState = signal(false, ...(ngDevMode ? [{ debugName: "#errorState" }] : /* istanbul ignore next */ []));
|
|
860
860
|
set errorState(v) {
|
|
861
861
|
this.#errorState.set(v);
|
|
862
862
|
}
|
|
863
863
|
get errorState() {
|
|
864
864
|
return this.#errorState();
|
|
865
865
|
}
|
|
866
|
-
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : []));
|
|
866
|
+
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
867
867
|
set focused(v) {
|
|
868
868
|
this.#focused.set(v);
|
|
869
869
|
}
|
|
@@ -878,19 +878,19 @@ class DatepickerComponent {
|
|
|
878
878
|
controlType = 'datepicker';
|
|
879
879
|
disableAutomaticLabeling = false;
|
|
880
880
|
datepickerMode = EnumDatepickerMode;
|
|
881
|
-
datepicker = viewChild('datepicker', ...(ngDevMode ?
|
|
882
|
-
rangepicker = viewChild('rangepicker', ...(ngDevMode ? [{ debugName: "rangepicker" }] : []));
|
|
883
|
-
timepicker = viewChild('timepicker', ...(ngDevMode ?
|
|
884
|
-
datepickerInput = viewChild('datepickerInput', ...(ngDevMode ? [{ debugName: "datepickerInput" }] : []));
|
|
885
|
-
timepickerInput = viewChild('timepickerInput', ...(ngDevMode ? [{ debugName: "timepickerInput" }] : []));
|
|
886
|
-
#mode = signal(EnumDatepickerMode.DATE, ...(ngDevMode ? [{ debugName: "#mode" }] : []));
|
|
881
|
+
datepicker = viewChild('datepicker', { ...(ngDevMode ? { debugName: "datepicker" } : /* istanbul ignore next */ {}), read: (MatDatepicker) });
|
|
882
|
+
rangepicker = viewChild('rangepicker', ...(ngDevMode ? [{ debugName: "rangepicker" }] : /* istanbul ignore next */ []));
|
|
883
|
+
timepicker = viewChild('timepicker', { ...(ngDevMode ? { debugName: "timepicker" } : /* istanbul ignore next */ {}), read: (MatTimepicker) });
|
|
884
|
+
datepickerInput = viewChild('datepickerInput', ...(ngDevMode ? [{ debugName: "datepickerInput" }] : /* istanbul ignore next */ []));
|
|
885
|
+
timepickerInput = viewChild('timepickerInput', ...(ngDevMode ? [{ debugName: "timepickerInput" }] : /* istanbul ignore next */ []));
|
|
886
|
+
#mode = signal(EnumDatepickerMode.DATE, ...(ngDevMode ? [{ debugName: "#mode" }] : /* istanbul ignore next */ []));
|
|
887
887
|
set mode(v) {
|
|
888
888
|
this.#mode.set(v);
|
|
889
889
|
}
|
|
890
890
|
get mode() {
|
|
891
891
|
return this.#mode();
|
|
892
892
|
}
|
|
893
|
-
#min = signal(null, ...(ngDevMode ? [{ debugName: "#min" }] : []));
|
|
893
|
+
#min = signal(null, ...(ngDevMode ? [{ debugName: "#min" }] : /* istanbul ignore next */ []));
|
|
894
894
|
set min(v) {
|
|
895
895
|
const validValue = this.#dateAdapter.getValidDateOrNull(this.#dateAdapter.deserialize(v));
|
|
896
896
|
if (!this.#dateAdapter.sameDate(validValue, this.#min())) {
|
|
@@ -900,7 +900,7 @@ class DatepickerComponent {
|
|
|
900
900
|
get min() {
|
|
901
901
|
return this.#min();
|
|
902
902
|
}
|
|
903
|
-
#max = signal(null, ...(ngDevMode ? [{ debugName: "#max" }] : []));
|
|
903
|
+
#max = signal(null, ...(ngDevMode ? [{ debugName: "#max" }] : /* istanbul ignore next */ []));
|
|
904
904
|
set max(v) {
|
|
905
905
|
const validValue = this.#dateAdapter.getValidDateOrNull(this.#dateAdapter.deserialize(v));
|
|
906
906
|
if (!this.#dateAdapter.sameDate(validValue, this.#max())) {
|
|
@@ -910,7 +910,7 @@ class DatepickerComponent {
|
|
|
910
910
|
get max() {
|
|
911
911
|
return this.#max();
|
|
912
912
|
}
|
|
913
|
-
#rangePlaceholder = signal({ startDate: 'Start Date', endDate: 'End Date' }, ...(ngDevMode ? [{ debugName: "#rangePlaceholder" }] : []));
|
|
913
|
+
#rangePlaceholder = signal({ startDate: 'Start Date', endDate: 'End Date' }, ...(ngDevMode ? [{ debugName: "#rangePlaceholder" }] : /* istanbul ignore next */ []));
|
|
914
914
|
set rangePlaceholder(v) {
|
|
915
915
|
this.#rangePlaceholder.set(v);
|
|
916
916
|
}
|
|
@@ -918,9 +918,9 @@ class DatepickerComponent {
|
|
|
918
918
|
return this.#rangePlaceholder();
|
|
919
919
|
}
|
|
920
920
|
rangeValue = { start: '', end: '' };
|
|
921
|
-
startDateFormControlName = input('', ...(ngDevMode ? [{ debugName: "startDateFormControlName" }] : []));
|
|
922
|
-
endDateFormControlName = input('', ...(ngDevMode ? [{ debugName: "endDateFormControlName" }] : []));
|
|
923
|
-
formGroup = input(...(ngDevMode ? [undefined, { debugName: "formGroup" }] : []));
|
|
921
|
+
startDateFormControlName = input('', ...(ngDevMode ? [{ debugName: "startDateFormControlName" }] : /* istanbul ignore next */ []));
|
|
922
|
+
endDateFormControlName = input('', ...(ngDevMode ? [{ debugName: "endDateFormControlName" }] : /* istanbul ignore next */ []));
|
|
923
|
+
formGroup = input(...(ngDevMode ? [undefined, { debugName: "formGroup" }] : /* istanbul ignore next */ []));
|
|
924
924
|
constructor() {
|
|
925
925
|
// triggers state changes for the MatFormFieldControl
|
|
926
926
|
effect(() => {
|
|
@@ -1023,8 +1023,8 @@ class DatepickerComponent {
|
|
|
1023
1023
|
this.rangepicker()?.open();
|
|
1024
1024
|
this.timepicker()?.open();
|
|
1025
1025
|
}
|
|
1026
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1027
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1026
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1027
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: DatepickerComponent, isStandalone: true, selector: "ymt-datepicker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: false, isRequired: false, transformFunction: null }, userAriaDescribedBy: { classPropertyName: "userAriaDescribedBy", publicName: "userAriaDescribedBy", isSignal: false, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: false, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: false, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: false, isRequired: false, transformFunction: null }, rangePlaceholder: { classPropertyName: "rangePlaceholder", publicName: "rangePlaceholder", isSignal: false, isRequired: false, transformFunction: null }, startDateFormControlName: { classPropertyName: "startDateFormControlName", publicName: "startDateFormControlName", isSignal: true, isRequired: false, transformFunction: null }, endDateFormControlName: { classPropertyName: "endDateFormControlName", publicName: "endDateFormControlName", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focusin": "onFocusIn()", "focusout": "onFocusout()" }, properties: { "class.floating": "shouldLabelFloat" } }, providers: [
|
|
1028
1028
|
{ provide: MatFormFieldControl, useExisting: DatepickerComponent },
|
|
1029
1029
|
/*{
|
|
1030
1030
|
provide: MAT_DATE_FORMATS,
|
|
@@ -1041,9 +1041,9 @@ class DatepickerComponent {
|
|
|
1041
1041
|
},*/
|
|
1042
1042
|
{ provide: MatDatepickerIntl, useClass: YmtDatepickerIntlService },
|
|
1043
1043
|
provideYmtDateAdapter()
|
|
1044
|
-
], viewQueries: [{ propertyName: "datepicker", first: true, predicate: ["datepicker"], descendants: true, read: MatDatepicker, isSignal: true }, { propertyName: "rangepicker", first: true, predicate: ["rangepicker"], descendants: true, isSignal: true }, { propertyName: "timepicker", first: true, predicate: ["timepicker"], descendants: true, read: MatTimepicker, isSignal: true }, { propertyName: "datepickerInput", first: true, predicate: ["datepickerInput"], descendants: true, isSignal: true }, { propertyName: "timepickerInput", first: true, predicate: ["timepickerInput"], descendants: true, isSignal: true }], ngImport: i0, template: "@switch (mode) {\n @case (datepickerMode.DATE) {\n <input\n [placeholder]=\"placeholder\"\n [attr.disabled]=\"disabled\"\n matInput\n [matDatepicker]=\"datepicker\"\n [min]=\"min\"\n [max]=\"max\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{updateOn: 'blur'}\"\n #datepickerInput=\"matInput\"\n />\n <mat-datepicker #datepicker></mat-datepicker>\n }\n @case (datepickerMode.DATE_RANGE) {\n @let formGroup = this.formGroup();\n @let startDate = this.startDateFormControlName();\n @let endDate = this.endDateFormControlName();\n @if (formGroup && startDate && endDate) {\n <mat-date-range-input\n [rangePicker]=\"rangepicker\"\n [min]=\"min\"\n [max]=\"max\"\n [formGroup]=\"formGroup\"\n #datepickerInput=\"matDateRangeInput\"\n >\n <input matStartDate [placeholder]=\"rangePlaceholder.startDate\" [formControlName]=\"startDate\"/>\n <input matEndDate [placeholder]=\"rangePlaceholder.endDate\" [formControlName]=\"endDate\"/>\n </mat-date-range-input>\n <mat-date-range-picker #rangepicker></mat-date-range-picker>\n } @else {\n <mat-date-range-input\n [rangePicker]=\"rangepicker\"\n [min]=\"min\"\n [max]=\"max\"\n #datepickerInput=\"matDateRangeInput\"\n >\n <input matStartDate [placeholder]=\"rangePlaceholder.startDate\" (dateChange)=\"rangeValue.start = $event.value\"/>\n <input matEndDate [placeholder]=\"rangePlaceholder.endDate\" (dateChange)=\"rangeValue.end = $event.value\"/>\n </mat-date-range-input>\n <mat-date-range-picker #rangepicker></mat-date-range-picker>\n }\n }\n @case (datepickerMode.TIME) {\n <input\n [placeholder]=\"placeholder\"\n [attr.disabled]=\"disabled\"\n matInput\n [matTimepicker]=\"timepicker\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{updateOn: 'blur'}\"\n #datepickerInput=\"matInput\"\n #timepickerInput=\"matTimepickerInput\"\n >\n <mat-timepicker #timepicker/>\n }\n @default {\n <input\n type=\"datetime-locale\"\n [placeholder]=\"placeholder\"\n matInput\n [(ngModel)]=\"value\"\n #datepickerInput=\"matInput\"\n />\n }\n}\n\n", styles: [":host{display:flex}:host input{width:100%;border:0;outline:0;background:transparent}\n"], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: MatTimepicker, selector: "mat-timepicker", inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby"], outputs: ["selected", "opened", "closed"], exportAs: ["matTimepicker"] }, { kind: "directive", type: MatTimepickerInput, selector: "input[matTimepicker]", inputs: ["value", "matTimepicker", "matTimepickerMin", "matTimepickerMax", "matTimepickerOpenOnClick", "disabled"], outputs: ["valueChange"], exportAs: ["matTimepickerInput"] }, { kind: "component", type: MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "component", type: MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "directive", type: MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "ngmodule", type: NativeDateModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1044
|
+
], viewQueries: [{ propertyName: "datepicker", first: true, predicate: ["datepicker"], descendants: true, read: MatDatepicker, isSignal: true }, { propertyName: "rangepicker", first: true, predicate: ["rangepicker"], descendants: true, isSignal: true }, { propertyName: "timepicker", first: true, predicate: ["timepicker"], descendants: true, read: MatTimepicker, isSignal: true }, { propertyName: "datepickerInput", first: true, predicate: ["datepickerInput"], descendants: true, isSignal: true }, { propertyName: "timepickerInput", first: true, predicate: ["timepickerInput"], descendants: true, isSignal: true }], ngImport: i0, template: "@switch (mode) {\n @case (datepickerMode.DATE) {\n <input\n [placeholder]=\"placeholder\"\n [attr.disabled]=\"disabled\"\n matInput\n [matDatepicker]=\"datepicker\"\n [min]=\"min\"\n [max]=\"max\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{updateOn: 'blur'}\"\n #datepickerInput=\"matInput\"\n />\n <mat-datepicker #datepicker></mat-datepicker>\n }\n @case (datepickerMode.DATE_RANGE) {\n @let formGroup = this.formGroup();\n @let startDate = this.startDateFormControlName();\n @let endDate = this.endDateFormControlName();\n @if (formGroup && startDate && endDate) {\n <mat-date-range-input\n [rangePicker]=\"rangepicker\"\n [min]=\"min\"\n [max]=\"max\"\n [formGroup]=\"formGroup\"\n #datepickerInput=\"matDateRangeInput\"\n >\n <input matStartDate [placeholder]=\"rangePlaceholder.startDate\" [formControlName]=\"startDate\"/>\n <input matEndDate [placeholder]=\"rangePlaceholder.endDate\" [formControlName]=\"endDate\"/>\n </mat-date-range-input>\n <mat-date-range-picker #rangepicker></mat-date-range-picker>\n } @else {\n <mat-date-range-input\n [rangePicker]=\"rangepicker\"\n [min]=\"min\"\n [max]=\"max\"\n #datepickerInput=\"matDateRangeInput\"\n >\n <input matStartDate [placeholder]=\"rangePlaceholder.startDate\" (dateChange)=\"rangeValue.start = $event.value\"/>\n <input matEndDate [placeholder]=\"rangePlaceholder.endDate\" (dateChange)=\"rangeValue.end = $event.value\"/>\n </mat-date-range-input>\n <mat-date-range-picker #rangepicker></mat-date-range-picker>\n }\n }\n @case (datepickerMode.TIME) {\n <input\n [placeholder]=\"placeholder\"\n [attr.disabled]=\"disabled\"\n matInput\n [matTimepicker]=\"timepicker\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{updateOn: 'blur'}\"\n #datepickerInput=\"matInput\"\n #timepickerInput=\"matTimepickerInput\"\n >\n <mat-timepicker #timepicker/>\n }\n @default {\n <input\n type=\"datetime-locale\"\n [placeholder]=\"placeholder\"\n matInput\n [(ngModel)]=\"value\"\n #datepickerInput=\"matInput\"\n />\n }\n}\n\n", styles: [":host{display:flex}:host input{width:100%;border:0;outline:0;background:transparent}\n"], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: MatTimepicker, selector: "mat-timepicker", inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"], outputs: ["selected", "opened", "closed"], exportAs: ["matTimepicker"] }, { kind: "directive", type: MatTimepickerInput, selector: "input[matTimepicker]", inputs: ["value", "matTimepicker", "matTimepickerMin", "matTimepickerMax", "matTimepickerOpenOnClick", "disabled"], outputs: ["valueChange"], exportAs: ["matTimepickerInput"] }, { kind: "component", type: MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "component", type: MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "directive", type: MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "ngmodule", type: NativeDateModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1045
1045
|
}
|
|
1046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DatepickerComponent, decorators: [{
|
|
1047
1047
|
type: Component,
|
|
1048
1048
|
args: [{ selector: 'ymt-datepicker', standalone: true, imports: [
|
|
1049
1049
|
MatInput,
|
|
@@ -1105,21 +1105,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
1105
1105
|
class DatepickerToggleComponent {
|
|
1106
1106
|
#intl = inject(MatDatepickerIntl);
|
|
1107
1107
|
#destroyRef = inject(DestroyRef);
|
|
1108
|
-
#datepicker = signal(null, ...(ngDevMode ? [{ debugName: "#datepicker" }] : []));
|
|
1108
|
+
#datepicker = signal(null, ...(ngDevMode ? [{ debugName: "#datepicker" }] : /* istanbul ignore next */ []));
|
|
1109
1109
|
set datepicker(v) {
|
|
1110
1110
|
this.#datepicker.set(v);
|
|
1111
1111
|
}
|
|
1112
1112
|
get datepicker() {
|
|
1113
1113
|
return this.#datepicker();
|
|
1114
1114
|
}
|
|
1115
|
-
#disabled = signal(false, ...(ngDevMode ? [{ debugName: "#disabled" }] : []));
|
|
1115
|
+
#disabled = signal(false, ...(ngDevMode ? [{ debugName: "#disabled" }] : /* istanbul ignore next */ []));
|
|
1116
1116
|
set disabled(v) {
|
|
1117
1117
|
this.#disabled.set(coerceBooleanProperty(v));
|
|
1118
1118
|
}
|
|
1119
1119
|
get disabled() {
|
|
1120
1120
|
return this.#disabled();
|
|
1121
1121
|
}
|
|
1122
|
-
#ariaLabel = signal(this.#intl.openCalendarLabel, ...(ngDevMode ? [{ debugName: "#ariaLabel" }] : []));
|
|
1122
|
+
#ariaLabel = signal(this.#intl.openCalendarLabel, ...(ngDevMode ? [{ debugName: "#ariaLabel" }] : /* istanbul ignore next */ []));
|
|
1123
1123
|
set ariaLabel(v) {
|
|
1124
1124
|
this.#ariaLabel.set(v);
|
|
1125
1125
|
}
|
|
@@ -1158,14 +1158,14 @@ class DatepickerToggleComponent {
|
|
|
1158
1158
|
ngOnDestroy() {
|
|
1159
1159
|
this.stateChanges.complete();
|
|
1160
1160
|
}
|
|
1161
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1162
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DatepickerToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1162
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: DatepickerToggleComponent, isStandalone: true, selector: "ymt-datepicker-toggle", inputs: { datepicker: ["for", "datepicker"], disabled: "disabled", ariaLabel: "ariaLabel" }, host: { listeners: { "click": "_open($event)" } }, providers: [{ provide: MatDatepickerIntl, useClass: YmtDatepickerIntlService }], exportAs: ["matDatepickerToggle"], ngImport: i0, template: `
|
|
1163
1163
|
<button type="button" ymtIconButton [attr.aria-label]="ariaLabel" [aria-disabled]="disabled" [disabled]="disabled">
|
|
1164
1164
|
<ng-content select="mat-icon"></ng-content>
|
|
1165
1165
|
</button>
|
|
1166
1166
|
`, isInline: true, dependencies: [{ kind: "directive", type: YmtIconButtonDirective, selector: "button[ymtIconButton],button[ymt-icon-button],a[ymtIconButton],a[ymt-icon-button]", inputs: ["disabled", "disableRipple", "aria-disabled", "disabledInteractive", "icon-button-size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1167
1167
|
}
|
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DatepickerToggleComponent, decorators: [{
|
|
1169
1169
|
type: Component,
|
|
1170
1170
|
args: [{
|
|
1171
1171
|
selector: 'ymt-datepicker-toggle',
|