ecabs-components 1.1.5 → 1.1.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.
- package/README.md +2 -0
- package/esm2022/lib/base/directives/attach-embedded-view.directive.mjs +23 -0
- package/esm2022/lib/base/directives/attach-embedded-view.directive.module.mjs +18 -0
- package/esm2022/lib/base/directives/check-permissions.directive.mjs +36 -0
- package/esm2022/lib/base/directives/check-permissions.directive.module.mjs +18 -0
- package/esm2022/lib/base/directives/date-mask.directive.mjs +6 -6
- package/esm2022/lib/base/directives/date-mask.directive.module.mjs +9 -9
- package/esm2022/lib/base/directives/digits-only.directive.mjs +6 -6
- package/esm2022/lib/base/directives/digits-only.directive.module.mjs +9 -9
- package/esm2022/lib/base/directives/dom-observer.directive.mjs +32 -0
- package/esm2022/lib/base/directives/dom-observer.directive.module.mjs +18 -0
- package/esm2022/lib/base/directives/dynamic-bg-color.directive.mjs +5 -5
- package/esm2022/lib/base/directives/dynamic-bg-color.directive.module.mjs +9 -9
- package/esm2022/lib/base/directives/element-multiplier.directive.mjs +26 -0
- package/esm2022/lib/base/directives/element-multiplier.directive.module.mjs +18 -0
- package/esm2022/lib/base/directives/file-drop.directive.mjs +42 -0
- package/esm2022/lib/base/directives/file-drop.directive.module.mjs +18 -0
- package/esm2022/lib/base/directives/min-max.directive.mjs +13 -13
- package/esm2022/lib/base/directives/min-max.directive.module.mjs +9 -9
- package/esm2022/lib/base/directives/number-border.directive.mjs +6 -6
- package/esm2022/lib/base/directives/number-border.directive.module.mjs +9 -9
- package/esm2022/lib/base/directives/time-mask.directive.mjs +6 -6
- package/esm2022/lib/base/directives/time-mask.directive.module.mjs +9 -9
- package/esm2022/lib/base/directives/time-range.directive.mjs +47 -0
- package/esm2022/lib/base/directives/time-range.directive.module.mjs +18 -0
- package/esm2022/lib/base/directives/tooltip-if-truncated.directive.mjs +6 -6
- package/esm2022/lib/base/directives/tooltip-if-truncated.directive.module.mjs +9 -9
- package/esm2022/lib/base/directives/uppercase-mask.directive.mjs +26 -0
- package/esm2022/lib/base/directives/uppercase-mask.directive.module.mjs +18 -0
- package/esm2022/lib/base/models/user-claim.models.mjs +2 -0
- package/esm2022/lib/base/services/ecabs-components.service.mjs +12 -1
- package/esm2022/lib/ecabs-date-range-picker/ecabs-date-range-picker.module.mjs +13 -13
- package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.mjs +3 -3
- package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.mjs +13 -13
- package/esm2022/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.mjs +3 -3
- package/esm2022/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module.mjs +17 -17
- package/esm2022/lib/ecabs-increment/ecabs-increment.component.mjs +3 -3
- package/esm2022/lib/ecabs-increment/ecabs-increment.module.mjs +5 -5
- package/esm2022/lib/ecabs-input/ecabs-input.component.mjs +3 -3
- package/esm2022/lib/ecabs-input/ecabs-input.module.mjs +9 -9
- package/esm2022/lib/ecabs-profile/ecabs-profile.component.mjs +1 -1
- package/esm2022/lib/ecabs-profile/ecabs-profile.module.mjs +5 -5
- package/esm2022/lib/ecabs-select/ecabs-select.component.mjs +3 -3
- package/esm2022/lib/ecabs-select/ecabs-select.module.mjs +5 -5
- package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.component.mjs +3 -3
- package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.module.mjs +5 -5
- package/esm2022/public-api.mjs +21 -1
- package/fesm2022/ecabs-components.mjs +476 -152
- package/fesm2022/ecabs-components.mjs.map +1 -1
- package/lib/base/directives/attach-embedded-view.directive.d.ts +10 -0
- package/lib/base/directives/attach-embedded-view.directive.module.d.ts +8 -0
- package/lib/base/directives/check-permissions.directive.d.ts +13 -0
- package/lib/base/directives/check-permissions.directive.module.d.ts +8 -0
- package/lib/base/directives/date-mask.directive.d.ts +3 -3
- package/lib/base/directives/date-mask.directive.module.d.ts +4 -4
- package/lib/base/directives/digits-only.directive.d.ts +3 -3
- package/lib/base/directives/digits-only.directive.module.d.ts +4 -4
- package/lib/base/directives/dom-observer.directive.d.ts +11 -0
- package/lib/base/directives/dom-observer.directive.module.d.ts +8 -0
- package/lib/base/directives/dynamic-bg-color.directive.d.ts +3 -3
- package/lib/base/directives/dynamic-bg-color.directive.module.d.ts +4 -4
- package/lib/base/directives/element-multiplier.directive.d.ts +10 -0
- package/lib/base/directives/element-multiplier.directive.module.d.ts +8 -0
- package/lib/base/directives/file-drop.directive.d.ts +11 -0
- package/lib/base/directives/file-drop.directive.module.d.ts +8 -0
- package/lib/base/directives/min-max.directive.d.ts +6 -6
- package/lib/base/directives/min-max.directive.module.d.ts +4 -4
- package/lib/base/directives/number-border.directive.d.ts +3 -3
- package/lib/base/directives/number-border.directive.module.d.ts +4 -4
- package/lib/base/directives/time-mask.directive.d.ts +3 -3
- package/lib/base/directives/time-mask.directive.module.d.ts +4 -4
- package/lib/base/directives/time-range.directive.d.ts +15 -0
- package/lib/base/directives/time-range.directive.module.d.ts +8 -0
- package/lib/base/directives/tooltip-if-truncated.directive.d.ts +3 -3
- package/lib/base/directives/tooltip-if-truncated.directive.module.d.ts +4 -4
- package/lib/base/directives/uppercase-mask.directive.d.ts +9 -0
- package/lib/base/directives/uppercase-mask.directive.module.d.ts +8 -0
- package/lib/base/models/user-claim.models.d.ts +5 -0
- package/lib/base/services/ecabs-components.service.d.ts +3 -0
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.module.d.ts +1 -1
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.d.ts +1 -1
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module.d.ts +1 -1
- package/lib/ecabs-increment/ecabs-increment.module.d.ts +1 -1
- package/lib/ecabs-input/ecabs-input.module.d.ts +1 -1
- package/lib/ecabs-profile/ecabs-profile.module.d.ts +1 -1
- package/lib/ecabs-select/ecabs-select.module.d.ts +1 -1
- package/lib/ecabs-timepicker/ecabs-timepicker.module.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +20 -0
|
@@ -420,6 +420,7 @@ class EcabsComponentsService {
|
|
|
420
420
|
defaultCountries: [],
|
|
421
421
|
errorMessages: [...errorMessages],
|
|
422
422
|
i18n,
|
|
423
|
+
claims: [],
|
|
423
424
|
};
|
|
424
425
|
_config = new BehaviorSubject(this.defaultConfig);
|
|
425
426
|
setConfig(config) {
|
|
@@ -444,6 +445,16 @@ class EcabsComponentsService {
|
|
|
444
445
|
}
|
|
445
446
|
this._config.next(updatedConfig);
|
|
446
447
|
}
|
|
448
|
+
hasClaim(allowedClaims = []) {
|
|
449
|
+
const userClaims = this._config.getValue().claims ? this._config.getValue().claims.map((appUserClaim) => appUserClaim.claim) : undefined;
|
|
450
|
+
if (allowedClaims.includes('allow')) {
|
|
451
|
+
return true;
|
|
452
|
+
}
|
|
453
|
+
if (userClaims) {
|
|
454
|
+
return allowedClaims.every((claim) => userClaims.includes(claim));
|
|
455
|
+
}
|
|
456
|
+
return false;
|
|
457
|
+
}
|
|
447
458
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsComponentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
448
459
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsComponentsService, providedIn: 'root' });
|
|
449
460
|
}
|
|
@@ -608,7 +619,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
608
619
|
type: Output
|
|
609
620
|
}] } });
|
|
610
621
|
|
|
611
|
-
class
|
|
622
|
+
class EcabsDigitsOnlyDirective {
|
|
612
623
|
el;
|
|
613
624
|
digitsOnly = false;
|
|
614
625
|
allowHyphen = false;
|
|
@@ -719,13 +730,13 @@ class DigitsOnlyDirective {
|
|
|
719
730
|
isValidDecimal(inputString) {
|
|
720
731
|
return inputString.split(this.decimalSeparator).length <= 2;
|
|
721
732
|
}
|
|
722
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
723
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
733
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDigitsOnlyDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
734
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsDigitsOnlyDirective, selector: "[ecabsDigitsOnly]", inputs: { digitsOnly: "digitsOnly", allowHyphen: "allowHyphen", decimal: "decimal", decimalSeparator: "decimalSeparator", unit: "unit" }, host: { listeners: { "keydown": "onKeyDown($event)", "keyup": "onKeyUp($event)", "paste": "onPaste($event)" } }, ngImport: i0 });
|
|
724
735
|
}
|
|
725
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDigitsOnlyDirective, decorators: [{
|
|
726
737
|
type: Directive,
|
|
727
738
|
args: [{
|
|
728
|
-
selector: '[
|
|
739
|
+
selector: '[ecabsDigitsOnly]',
|
|
729
740
|
}]
|
|
730
741
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { digitsOnly: [{
|
|
731
742
|
type: Input
|
|
@@ -748,7 +759,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
748
759
|
args: ['paste', ['$event']]
|
|
749
760
|
}] } });
|
|
750
761
|
|
|
751
|
-
class
|
|
762
|
+
class EcabsMinDirective {
|
|
752
763
|
_validator;
|
|
753
764
|
set mini(value) {
|
|
754
765
|
this._validator = Validators.min(value);
|
|
@@ -756,23 +767,23 @@ class MinDirective {
|
|
|
756
767
|
validate(control) {
|
|
757
768
|
return this._validator(control);
|
|
758
769
|
}
|
|
759
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
760
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
770
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMinDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
771
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsMinDirective, selector: "[mini][formControlName],[mini][formControl],[mini][ngModel]", inputs: { mini: "mini" }, providers: [
|
|
761
772
|
{
|
|
762
773
|
provide: NG_VALIDATORS,
|
|
763
|
-
useExisting: forwardRef(() =>
|
|
774
|
+
useExisting: forwardRef(() => EcabsMinDirective),
|
|
764
775
|
multi: true,
|
|
765
776
|
},
|
|
766
777
|
], ngImport: i0 });
|
|
767
778
|
}
|
|
768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMinDirective, decorators: [{
|
|
769
780
|
type: Directive,
|
|
770
781
|
args: [{
|
|
771
782
|
selector: '[mini][formControlName],[mini][formControl],[mini][ngModel]',
|
|
772
783
|
providers: [
|
|
773
784
|
{
|
|
774
785
|
provide: NG_VALIDATORS,
|
|
775
|
-
useExisting: forwardRef(() =>
|
|
786
|
+
useExisting: forwardRef(() => EcabsMinDirective),
|
|
776
787
|
multi: true,
|
|
777
788
|
},
|
|
778
789
|
],
|
|
@@ -780,7 +791,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
780
791
|
}], propDecorators: { mini: [{
|
|
781
792
|
type: Input
|
|
782
793
|
}] } });
|
|
783
|
-
class
|
|
794
|
+
class EcabsMaxDirective {
|
|
784
795
|
_validator;
|
|
785
796
|
set maxi(value) {
|
|
786
797
|
this._validator = Validators.max(value);
|
|
@@ -788,23 +799,23 @@ class MaxDirective {
|
|
|
788
799
|
validate(control) {
|
|
789
800
|
return this._validator(control);
|
|
790
801
|
}
|
|
791
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
792
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
802
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaxDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
803
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsMaxDirective, selector: "[maxi][formControlName],[maxi][formControl],[maxi][ngModel]", inputs: { maxi: "maxi" }, providers: [
|
|
793
804
|
{
|
|
794
805
|
provide: NG_VALIDATORS,
|
|
795
|
-
useExisting: forwardRef(() =>
|
|
806
|
+
useExisting: forwardRef(() => EcabsMinDirective),
|
|
796
807
|
multi: true,
|
|
797
808
|
},
|
|
798
809
|
], ngImport: i0 });
|
|
799
810
|
}
|
|
800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaxDirective, decorators: [{
|
|
801
812
|
type: Directive,
|
|
802
813
|
args: [{
|
|
803
814
|
selector: '[maxi][formControlName],[maxi][formControl],[maxi][ngModel]',
|
|
804
815
|
providers: [
|
|
805
816
|
{
|
|
806
817
|
provide: NG_VALIDATORS,
|
|
807
|
-
useExisting: forwardRef(() =>
|
|
818
|
+
useExisting: forwardRef(() => EcabsMinDirective),
|
|
808
819
|
multi: true,
|
|
809
820
|
},
|
|
810
821
|
],
|
|
@@ -880,7 +891,7 @@ class EcabsInputComponent extends EcabsElementBaseComponent {
|
|
|
880
891
|
useExisting: EcabsInputComponent,
|
|
881
892
|
multi: true,
|
|
882
893
|
},
|
|
883
|
-
], usesInheritance: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper\">\r\n <input\r\n
|
|
894
|
+
], usesInheritance: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper\">\r\n <input\r\n ecabsDigitsOnly\r\n [digitsOnly]=\"digitsOnly\"\r\n [decimal]=\"allowDecimal\"\r\n [allowHyphen]=\"allowHyphen\"\r\n class=\"form-field__input\"\r\n [type]=\"type\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"value\"\r\n [placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n [mini]=\"mini\"\r\n [maxi]=\"maxi\"\r\n [disabled]=\"disabled\"\r\n [maxlength]=\"maxLength\"\r\n [max]=\"max\"\r\n [step]=\"step\"\r\n (blur)=\"blurChange($event)\"\r\n />\r\n\r\n <div class=\"form-field__input--suffix\" *ngIf=\"type !== 'number'\">\r\n <ng-content select=\"mat-icon\"></ng-content>\r\n <ng-content select=\".suffix\"></ng-content>\r\n </div>\r\n </div>\r\n</ecabs-element-wrapper>\r\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EcabsElementWrapperComponent, selector: "ecabs-element-wrapper", inputs: ["data", "showCloseIcon", "focusedFlag", "showPassword", "control"], outputs: ["showHidePassword", "clear", "increase", "decrease"] }, { kind: "directive", type: i5$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: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: EcabsDigitsOnlyDirective, selector: "[ecabsDigitsOnly]", inputs: ["digitsOnly", "allowHyphen", "decimal", "decimalSeparator", "unit"] }, { kind: "directive", type: EcabsMinDirective, selector: "[mini][formControlName],[mini][formControl],[mini][ngModel]", inputs: ["mini"] }, { kind: "directive", type: EcabsMaxDirective, selector: "[maxi][formControlName],[maxi][formControl],[maxi][ngModel]", inputs: ["maxi"] }] });
|
|
884
895
|
}
|
|
885
896
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsInputComponent, decorators: [{
|
|
886
897
|
type: Component,
|
|
@@ -890,7 +901,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
890
901
|
useExisting: EcabsInputComponent,
|
|
891
902
|
multi: true,
|
|
892
903
|
},
|
|
893
|
-
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper\">\r\n <input\r\n
|
|
904
|
+
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper\">\r\n <input\r\n ecabsDigitsOnly\r\n [digitsOnly]=\"digitsOnly\"\r\n [decimal]=\"allowDecimal\"\r\n [allowHyphen]=\"allowHyphen\"\r\n class=\"form-field__input\"\r\n [type]=\"type\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"value\"\r\n [placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n [mini]=\"mini\"\r\n [maxi]=\"maxi\"\r\n [disabled]=\"disabled\"\r\n [maxlength]=\"maxLength\"\r\n [max]=\"max\"\r\n [step]=\"step\"\r\n (blur)=\"blurChange($event)\"\r\n />\r\n\r\n <div class=\"form-field__input--suffix\" *ngIf=\"type !== 'number'\">\r\n <ng-content select=\"mat-icon\"></ng-content>\r\n <ng-content select=\".suffix\"></ng-content>\r\n </div>\r\n </div>\r\n</ecabs-element-wrapper>\r\n" }]
|
|
894
905
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.DestroyRef }]; }, propDecorators: { digitsOnly: [{
|
|
895
906
|
type: Input
|
|
896
907
|
}], allowDecimal: [{
|
|
@@ -1004,31 +1015,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1004
1015
|
}]
|
|
1005
1016
|
}] });
|
|
1006
1017
|
|
|
1007
|
-
class
|
|
1008
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1009
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1010
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1018
|
+
class EcabsDigitsOnlyDirectivesModule {
|
|
1019
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDigitsOnlyDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1020
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsDigitsOnlyDirectivesModule, declarations: [EcabsDigitsOnlyDirective], imports: [CommonModule], exports: [EcabsDigitsOnlyDirective] });
|
|
1021
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDigitsOnlyDirectivesModule, imports: [CommonModule] });
|
|
1011
1022
|
}
|
|
1012
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1023
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDigitsOnlyDirectivesModule, decorators: [{
|
|
1013
1024
|
type: NgModule,
|
|
1014
1025
|
args: [{
|
|
1015
1026
|
imports: [CommonModule],
|
|
1016
|
-
declarations: [
|
|
1017
|
-
exports: [
|
|
1027
|
+
declarations: [EcabsDigitsOnlyDirective],
|
|
1028
|
+
exports: [EcabsDigitsOnlyDirective],
|
|
1018
1029
|
}]
|
|
1019
1030
|
}] });
|
|
1020
1031
|
|
|
1021
|
-
class
|
|
1022
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1023
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1024
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1032
|
+
class EcabsMinMaxDirectiveModule {
|
|
1033
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMinMaxDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1034
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsMinMaxDirectiveModule, declarations: [EcabsMinDirective, EcabsMaxDirective], imports: [CommonModule], exports: [EcabsMinDirective, EcabsMaxDirective] });
|
|
1035
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMinMaxDirectiveModule, imports: [CommonModule] });
|
|
1025
1036
|
}
|
|
1026
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMinMaxDirectiveModule, decorators: [{
|
|
1027
1038
|
type: NgModule,
|
|
1028
1039
|
args: [{
|
|
1029
1040
|
imports: [CommonModule],
|
|
1030
|
-
declarations: [
|
|
1031
|
-
exports: [
|
|
1041
|
+
declarations: [EcabsMinDirective, EcabsMaxDirective],
|
|
1042
|
+
exports: [EcabsMinDirective, EcabsMaxDirective],
|
|
1032
1043
|
}]
|
|
1033
1044
|
}] });
|
|
1034
1045
|
|
|
@@ -1038,14 +1049,14 @@ class EcabsInputModule {
|
|
|
1038
1049
|
MatInputModule,
|
|
1039
1050
|
ElementWrapperModule,
|
|
1040
1051
|
FormsModule,
|
|
1041
|
-
|
|
1042
|
-
|
|
1052
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
1053
|
+
EcabsMinMaxDirectiveModule], exports: [EcabsInputComponent] });
|
|
1043
1054
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsInputModule, imports: [CommonModule,
|
|
1044
1055
|
MatInputModule,
|
|
1045
1056
|
ElementWrapperModule,
|
|
1046
1057
|
FormsModule,
|
|
1047
|
-
|
|
1048
|
-
|
|
1058
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
1059
|
+
EcabsMinMaxDirectiveModule] });
|
|
1049
1060
|
}
|
|
1050
1061
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsInputModule, decorators: [{
|
|
1051
1062
|
type: NgModule,
|
|
@@ -1056,14 +1067,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1056
1067
|
MatInputModule,
|
|
1057
1068
|
ElementWrapperModule,
|
|
1058
1069
|
FormsModule,
|
|
1059
|
-
|
|
1060
|
-
|
|
1070
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
1071
|
+
EcabsMinMaxDirectiveModule,
|
|
1061
1072
|
],
|
|
1062
1073
|
exports: [EcabsInputComponent],
|
|
1063
1074
|
}]
|
|
1064
1075
|
}] });
|
|
1065
1076
|
|
|
1066
|
-
class
|
|
1077
|
+
class EcabsTooltipIfTruncatedDirective {
|
|
1067
1078
|
matTooltip;
|
|
1068
1079
|
elementRef;
|
|
1069
1080
|
classNameTruncatedTooltip;
|
|
@@ -1077,13 +1088,13 @@ class TooltipIfTruncatedDirective {
|
|
|
1077
1088
|
: this.elementRef.nativeElement;
|
|
1078
1089
|
this.matTooltip.disabled = element?.scrollWidth <= element?.clientWidth;
|
|
1079
1090
|
}
|
|
1080
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1081
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
1091
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTooltipIfTruncatedDirective, deps: [{ token: i1$1.MatTooltip }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1092
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsTooltipIfTruncatedDirective, selector: "[matTooltip][ecabsTooltipIfTruncated]", inputs: { classNameTruncatedTooltip: "classNameTruncatedTooltip" }, host: { listeners: { "mouseover": "onMouseOver()" } }, ngImport: i0 });
|
|
1082
1093
|
}
|
|
1083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTooltipIfTruncatedDirective, decorators: [{
|
|
1084
1095
|
type: Directive,
|
|
1085
1096
|
args: [{
|
|
1086
|
-
selector: '[matTooltip][
|
|
1097
|
+
selector: '[matTooltip][ecabsTooltipIfTruncated]',
|
|
1087
1098
|
}]
|
|
1088
1099
|
}], ctorParameters: function () { return [{ type: i1$1.MatTooltip }, { type: i0.ElementRef }]; }, propDecorators: { classNameTruncatedTooltip: [{
|
|
1089
1100
|
type: Input
|
|
@@ -1092,17 +1103,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1092
1103
|
args: ['mouseover']
|
|
1093
1104
|
}] } });
|
|
1094
1105
|
|
|
1095
|
-
class
|
|
1096
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1097
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1098
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1106
|
+
class EcabsTooltipIfTruncatedDirectiveModule {
|
|
1107
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTooltipIfTruncatedDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1108
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsTooltipIfTruncatedDirectiveModule, declarations: [EcabsTooltipIfTruncatedDirective], imports: [CommonModule], exports: [EcabsTooltipIfTruncatedDirective] });
|
|
1109
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTooltipIfTruncatedDirectiveModule, imports: [CommonModule] });
|
|
1099
1110
|
}
|
|
1100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTooltipIfTruncatedDirectiveModule, decorators: [{
|
|
1101
1112
|
type: NgModule,
|
|
1102
1113
|
args: [{
|
|
1103
1114
|
imports: [CommonModule],
|
|
1104
|
-
declarations: [
|
|
1105
|
-
exports: [
|
|
1115
|
+
declarations: [EcabsTooltipIfTruncatedDirective],
|
|
1116
|
+
exports: [EcabsTooltipIfTruncatedDirective],
|
|
1106
1117
|
}]
|
|
1107
1118
|
}] });
|
|
1108
1119
|
|
|
@@ -1394,7 +1405,7 @@ class EcabsSelectComponent extends EcabsElementBaseComponent {
|
|
|
1394
1405
|
useExisting: EcabsSelectComponent,
|
|
1395
1406
|
multi: true,
|
|
1396
1407
|
},
|
|
1397
|
-
], viewQueries: [{ propertyName: "allSelected", first: true, predicate: ["allSelected"], descendants: true }, { propertyName: "matSelectSearchComponent", first: true, predicate: MatSelectSearchComponent, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <mat-form-field [ngClass]=\"{ disabled: useOnlyDisabledClass }\">\r\n <mat-select class=\"form-field__select\"\r\n [(ngModel)]=\"value\"\r\n (closed)=\"onTouch()\"\r\n [id]=\"name\"\r\n [multiple]=\"multiple\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"placeholder\"\r\n [disableRipple]=\"true\"\r\n (selectionChange)=\"onSelectionChanged($event)\"\r\n [matTooltip]=\"trigger\"\r\n
|
|
1408
|
+
], viewQueries: [{ propertyName: "allSelected", first: true, predicate: ["allSelected"], descendants: true }, { propertyName: "matSelectSearchComponent", first: true, predicate: MatSelectSearchComponent, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <mat-form-field [ngClass]=\"{ disabled: useOnlyDisabledClass }\">\r\n <mat-select class=\"form-field__select\"\r\n [(ngModel)]=\"value\"\r\n (closed)=\"onTouch()\"\r\n [id]=\"name\"\r\n [multiple]=\"multiple\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"placeholder\"\r\n [disableRipple]=\"true\"\r\n (selectionChange)=\"onSelectionChanged($event)\"\r\n [matTooltip]=\"trigger\"\r\n ecabsTooltipIfTruncated\r\n [classNameTruncatedTooltip]=\"'mat-select-value'\">\r\n <mat-select-trigger>\r\n <span>{{ trigger }}</span>\r\n </mat-select-trigger>\r\n\r\n <mat-option *ngIf=\"useSearchOption\">\r\n <ngx-mat-select-search [formControl]=\"itemFilterCtrl\"\r\n [placeholderLabel]=\"searchFieldPlaceholder\"\r\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\">\r\n </ngx-mat-select-search>\r\n </mat-option>\r\n\r\n <mat-option *ngIf=\"useNoneOption\"\r\n (click)=\"toggleNone()\"\r\n (keydown.enter)=\"toggleNone()\">\r\n {{ noneLabel }}\r\n </mat-option>\r\n\r\n <mat-option #allSelected\r\n *ngIf=\"useSelectAllOption && showFilteredAllOption\"\r\n (click)=\"toggleAllSelection()\"\r\n (keydown.enter)=\"toggleAllSelection()\"\r\n [value]=\"selectAllValue\">\r\n {{ allLabel }}\r\n </mat-option>\r\n\r\n <mat-option *ngFor=\"let item of filteredItems$ | async\"\r\n [value]=\"item.value\"\r\n (click)=\"togglePerOne()\"\r\n (keydown.enter)=\"togglePerOne()\"\r\n [matTooltip]=\"item.label\"\r\n ecabsTooltipIfTruncated\r\n [classNameTruncatedTooltip]=\"'mdc-list-item__primary-text'\">\r\n {{ item.label }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</ecabs-element-wrapper>\r\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EcabsElementWrapperComponent, selector: "ecabs-element-wrapper", inputs: ["data", "showCloseIcon", "focusedFlag", "showPassword", "control"], outputs: ["showHidePassword", "clear", "increase", "decrease"] }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "directive", type: i4.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i2.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i1$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i8.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti", "recreateValuesArray"], outputs: ["toggleAll"] }, { kind: "directive", type: i5$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: EcabsTooltipIfTruncatedDirective, selector: "[matTooltip][ecabsTooltipIfTruncated]", inputs: ["classNameTruncatedTooltip"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
1398
1409
|
}
|
|
1399
1410
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsSelectComponent, decorators: [{
|
|
1400
1411
|
type: Component,
|
|
@@ -1404,7 +1415,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1404
1415
|
useExisting: EcabsSelectComponent,
|
|
1405
1416
|
multi: true,
|
|
1406
1417
|
},
|
|
1407
|
-
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <mat-form-field [ngClass]=\"{ disabled: useOnlyDisabledClass }\">\r\n <mat-select class=\"form-field__select\"\r\n [(ngModel)]=\"value\"\r\n (closed)=\"onTouch()\"\r\n [id]=\"name\"\r\n [multiple]=\"multiple\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"placeholder\"\r\n [disableRipple]=\"true\"\r\n (selectionChange)=\"onSelectionChanged($event)\"\r\n [matTooltip]=\"trigger\"\r\n
|
|
1418
|
+
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <mat-form-field [ngClass]=\"{ disabled: useOnlyDisabledClass }\">\r\n <mat-select class=\"form-field__select\"\r\n [(ngModel)]=\"value\"\r\n (closed)=\"onTouch()\"\r\n [id]=\"name\"\r\n [multiple]=\"multiple\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"placeholder\"\r\n [disableRipple]=\"true\"\r\n (selectionChange)=\"onSelectionChanged($event)\"\r\n [matTooltip]=\"trigger\"\r\n ecabsTooltipIfTruncated\r\n [classNameTruncatedTooltip]=\"'mat-select-value'\">\r\n <mat-select-trigger>\r\n <span>{{ trigger }}</span>\r\n </mat-select-trigger>\r\n\r\n <mat-option *ngIf=\"useSearchOption\">\r\n <ngx-mat-select-search [formControl]=\"itemFilterCtrl\"\r\n [placeholderLabel]=\"searchFieldPlaceholder\"\r\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\">\r\n </ngx-mat-select-search>\r\n </mat-option>\r\n\r\n <mat-option *ngIf=\"useNoneOption\"\r\n (click)=\"toggleNone()\"\r\n (keydown.enter)=\"toggleNone()\">\r\n {{ noneLabel }}\r\n </mat-option>\r\n\r\n <mat-option #allSelected\r\n *ngIf=\"useSelectAllOption && showFilteredAllOption\"\r\n (click)=\"toggleAllSelection()\"\r\n (keydown.enter)=\"toggleAllSelection()\"\r\n [value]=\"selectAllValue\">\r\n {{ allLabel }}\r\n </mat-option>\r\n\r\n <mat-option *ngFor=\"let item of filteredItems$ | async\"\r\n [value]=\"item.value\"\r\n (click)=\"togglePerOne()\"\r\n (keydown.enter)=\"togglePerOne()\"\r\n [matTooltip]=\"item.label\"\r\n ecabsTooltipIfTruncated\r\n [classNameTruncatedTooltip]=\"'mdc-list-item__primary-text'\">\r\n {{ item.label }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</ecabs-element-wrapper>\r\n" }]
|
|
1408
1419
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i0.DestroyRef }]; }, propDecorators: { items: [{
|
|
1409
1420
|
type: Input
|
|
1410
1421
|
}], multiple: [{
|
|
@@ -1454,7 +1465,7 @@ class EcabsSelectModule {
|
|
|
1454
1465
|
FormsModule,
|
|
1455
1466
|
NgxMatSelectSearchModule,
|
|
1456
1467
|
ReactiveFormsModule,
|
|
1457
|
-
|
|
1468
|
+
EcabsTooltipIfTruncatedDirectiveModule], exports: [EcabsSelectComponent] });
|
|
1458
1469
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsSelectModule, providers: [
|
|
1459
1470
|
{
|
|
1460
1471
|
provide: MAT_SELECT_SCROLL_STRATEGY,
|
|
@@ -1468,7 +1479,7 @@ class EcabsSelectModule {
|
|
|
1468
1479
|
FormsModule,
|
|
1469
1480
|
NgxMatSelectSearchModule,
|
|
1470
1481
|
ReactiveFormsModule,
|
|
1471
|
-
|
|
1482
|
+
EcabsTooltipIfTruncatedDirectiveModule] });
|
|
1472
1483
|
}
|
|
1473
1484
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsSelectModule, decorators: [{
|
|
1474
1485
|
type: NgModule,
|
|
@@ -1482,7 +1493,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1482
1493
|
FormsModule,
|
|
1483
1494
|
NgxMatSelectSearchModule,
|
|
1484
1495
|
ReactiveFormsModule,
|
|
1485
|
-
|
|
1496
|
+
EcabsTooltipIfTruncatedDirectiveModule,
|
|
1486
1497
|
],
|
|
1487
1498
|
exports: [EcabsSelectComponent],
|
|
1488
1499
|
providers: [
|
|
@@ -2246,7 +2257,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2246
2257
|
type: Input
|
|
2247
2258
|
}] } });
|
|
2248
2259
|
|
|
2249
|
-
class
|
|
2260
|
+
class EcabsNumberBorderDirective {
|
|
2250
2261
|
el;
|
|
2251
2262
|
maxValue;
|
|
2252
2263
|
minValue;
|
|
@@ -2286,13 +2297,13 @@ class NumberBorderDirective {
|
|
|
2286
2297
|
}
|
|
2287
2298
|
return result;
|
|
2288
2299
|
}
|
|
2289
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2290
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
2300
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsNumberBorderDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2301
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsNumberBorderDirective, selector: "[ecabsNumberBorder]", inputs: { maxValue: "maxValue", minValue: "minValue" }, host: { listeners: { "keyup": "onKeyUp($event)" } }, ngImport: i0 });
|
|
2291
2302
|
}
|
|
2292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsNumberBorderDirective, decorators: [{
|
|
2293
2304
|
type: Directive,
|
|
2294
2305
|
args: [{
|
|
2295
|
-
selector: '[
|
|
2306
|
+
selector: '[ecabsNumberBorder]',
|
|
2296
2307
|
}]
|
|
2297
2308
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { maxValue: [{
|
|
2298
2309
|
type: Input
|
|
@@ -2379,7 +2390,7 @@ function createAutoCorrectedDatePipe(dateFormat = 'dd mm yyyy', { minYear = 1, m
|
|
|
2379
2390
|
};
|
|
2380
2391
|
}
|
|
2381
2392
|
|
|
2382
|
-
class
|
|
2393
|
+
class EcabsMaskDateDirective {
|
|
2383
2394
|
element;
|
|
2384
2395
|
isDateTimeMask = false;
|
|
2385
2396
|
considerSeconds = false;
|
|
@@ -2463,13 +2474,13 @@ class MaskDateDirective {
|
|
|
2463
2474
|
// Check if the string contains any digit between 0 and 9
|
|
2464
2475
|
return /\d/.test(value);
|
|
2465
2476
|
}
|
|
2466
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2467
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
2477
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskDateDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2478
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsMaskDateDirective, selector: "[ecabsMaskDate]", inputs: { isDateTimeMask: "isDateTimeMask", considerSeconds: "considerSeconds" }, host: { listeners: { "ngModelChange": "onNgModelChange($event)" } }, ngImport: i0 });
|
|
2468
2479
|
}
|
|
2469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskDateDirective, decorators: [{
|
|
2470
2481
|
type: Directive,
|
|
2471
2482
|
args: [{
|
|
2472
|
-
selector: '[
|
|
2483
|
+
selector: '[ecabsMaskDate]',
|
|
2473
2484
|
}]
|
|
2474
2485
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { isDateTimeMask: [{
|
|
2475
2486
|
type: Input
|
|
@@ -2659,7 +2670,7 @@ class EcabsDateTimePickerComponent extends EcabsElementBaseComponent {
|
|
|
2659
2670
|
},
|
|
2660
2671
|
DecimalPipe,
|
|
2661
2672
|
UnsubscribeService,
|
|
2662
|
-
], usesInheritance: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n [matDatepicker]=\"picker\"\r\n [min]=\"minDate\"\r\n [max]=\"maxDate\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker #picker [calendarHeaderComponent]=\"header\" [touchUi]=\"touchUi\" class=\"datepicker-ui\">\r\n <mat-datepicker-actions>\r\n <div class=\"actions\">\r\n <div class=\"time--inputs\">\r\n <input\r\n class=\"form-field__input time\"\r\n
|
|
2673
|
+
], usesInheritance: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n [matDatepicker]=\"picker\"\r\n [min]=\"minDate\"\r\n [max]=\"maxDate\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker #picker [calendarHeaderComponent]=\"header\" [touchUi]=\"touchUi\" class=\"datepicker-ui\">\r\n <mat-datepicker-actions>\r\n <div class=\"actions\">\r\n <div class=\"time--inputs\">\r\n <input\r\n class=\"form-field__input time\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hours\"\r\n [value]=\"_hours\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hours\"\r\n />\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutes\"\r\n [(ngModel)]=\"minutes\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n\r\n <ng-container *ngIf=\"!hideSeconds\">\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"seconds\"\r\n [(ngModel)]=\"seconds\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </ng-container>\r\n </div>\r\n\r\n <ecabs-date-picker-actions [applyLabel]=\"applyLabel ?? translationConfig?.applyLabel\"\r\n [cancelLabel]=\"cancelLabel ?? translationConfig?.cancelLabel\"\r\n (apply)=\"onApply()\">\r\n </ecabs-date-picker-actions>\r\n </div>\r\n </mat-datepicker-actions>\r\n </mat-datepicker>\r\n <input\r\n class=\"form-field__input w-full date-input\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"pickerValue\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n ecabsMaskDate\r\n [isDateTimeMask]=\"true\"\r\n [considerSeconds]=\"!hideSeconds\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <button mat-icon-button class=\"datepicker-ui__toggle text-gray-500\"\r\n (click)=\"picker.open()\">\r\n <mat-icon>calendar_today</mat-icon>\r\n </button>\r\n </div>\r\n</ecabs-element-wrapper>\r\n", styles: [".time--inputs:before,.time--inputs:after{position:absolute;content:\"\"}.time{width:3.375rem}.fake-input{visibility:hidden;width:0;padding:0;margin:0}.time--inputs{position:relative;display:flex;gap:.5rem;justify-content:center;align-items:center;margin-top:2.4rem;margin-bottom:2.4rem}.time--inputs:before,.time--inputs:after{height:1px;right:0;left:0;background-color:var(--color-gray-300)}.time--inputs:before{top:-1.6rem}.time--inputs:after{bottom:-1.6rem}.font-bold{font-weight:700}.actions{display:flex;flex-direction:column;width:100%!important;row-gap:1rem}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EcabsElementWrapperComponent, selector: "ecabs-element-wrapper", inputs: ["data", "showCloseIcon", "focusedFlag", "showPassword", "control"], outputs: ["showHidePassword", "clear", "increase", "decrease"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5$2.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i5$2.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i5$2.MatDatepickerActions, selector: "mat-datepicker-actions, mat-date-range-picker-actions" }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i5$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: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: EcabsDigitsOnlyDirective, selector: "[ecabsDigitsOnly]", inputs: ["digitsOnly", "allowHyphen", "decimal", "decimalSeparator", "unit"] }, { kind: "directive", type: EcabsNumberBorderDirective, selector: "[ecabsNumberBorder]", inputs: ["maxValue", "minValue"] }, { kind: "directive", type: EcabsMaskDateDirective, selector: "[ecabsMaskDate]", inputs: ["isDateTimeMask", "considerSeconds"] }, { kind: "component", type: EcabsDatePickerActionsComponent, selector: "ecabs-date-picker-actions", inputs: ["cancelLabel", "applyLabel"], outputs: ["apply"] }] });
|
|
2663
2674
|
}
|
|
2664
2675
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimePickerComponent, decorators: [{
|
|
2665
2676
|
type: Component,
|
|
@@ -2671,7 +2682,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2671
2682
|
},
|
|
2672
2683
|
DecimalPipe,
|
|
2673
2684
|
UnsubscribeService,
|
|
2674
|
-
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n [matDatepicker]=\"picker\"\r\n [min]=\"minDate\"\r\n [max]=\"maxDate\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker #picker [calendarHeaderComponent]=\"header\" [touchUi]=\"touchUi\" class=\"datepicker-ui\">\r\n <mat-datepicker-actions>\r\n <div class=\"actions\">\r\n <div class=\"time--inputs\">\r\n <input\r\n class=\"form-field__input time\"\r\n
|
|
2685
|
+
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n [matDatepicker]=\"picker\"\r\n [min]=\"minDate\"\r\n [max]=\"maxDate\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker #picker [calendarHeaderComponent]=\"header\" [touchUi]=\"touchUi\" class=\"datepicker-ui\">\r\n <mat-datepicker-actions>\r\n <div class=\"actions\">\r\n <div class=\"time--inputs\">\r\n <input\r\n class=\"form-field__input time\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hours\"\r\n [value]=\"_hours\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hours\"\r\n />\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutes\"\r\n [(ngModel)]=\"minutes\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n\r\n <ng-container *ngIf=\"!hideSeconds\">\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"seconds\"\r\n [(ngModel)]=\"seconds\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </ng-container>\r\n </div>\r\n\r\n <ecabs-date-picker-actions [applyLabel]=\"applyLabel ?? translationConfig?.applyLabel\"\r\n [cancelLabel]=\"cancelLabel ?? translationConfig?.cancelLabel\"\r\n (apply)=\"onApply()\">\r\n </ecabs-date-picker-actions>\r\n </div>\r\n </mat-datepicker-actions>\r\n </mat-datepicker>\r\n <input\r\n class=\"form-field__input w-full date-input\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"pickerValue\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n ecabsMaskDate\r\n [isDateTimeMask]=\"true\"\r\n [considerSeconds]=\"!hideSeconds\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <button mat-icon-button class=\"datepicker-ui__toggle text-gray-500\"\r\n (click)=\"picker.open()\">\r\n <mat-icon>calendar_today</mat-icon>\r\n </button>\r\n </div>\r\n</ecabs-element-wrapper>\r\n", styles: [".time--inputs:before,.time--inputs:after{position:absolute;content:\"\"}.time{width:3.375rem}.fake-input{visibility:hidden;width:0;padding:0;margin:0}.time--inputs{position:relative;display:flex;gap:.5rem;justify-content:center;align-items:center;margin-top:2.4rem;margin-bottom:2.4rem}.time--inputs:before,.time--inputs:after{height:1px;right:0;left:0;background-color:var(--color-gray-300)}.time--inputs:before{top:-1.6rem}.time--inputs:after{bottom:-1.6rem}.font-bold{font-weight:700}.actions{display:flex;flex-direction:column;width:100%!important;row-gap:1rem}\n"] }]
|
|
2675
2686
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.DecimalPipe }, { type: i0.ChangeDetectorRef }, { type: EcabsDatePickerHeaderService }, { type: UnsubscribeService }]; }, propDecorators: { minDate: [{
|
|
2676
2687
|
type: Input
|
|
2677
2688
|
}], maxDate: [{
|
|
@@ -2690,31 +2701,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2690
2701
|
type: Output
|
|
2691
2702
|
}] } });
|
|
2692
2703
|
|
|
2693
|
-
class
|
|
2694
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2695
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2696
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2704
|
+
class EcabsMaskDateDirectiveModule {
|
|
2705
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskDateDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2706
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskDateDirectiveModule, declarations: [EcabsMaskDateDirective], imports: [CommonModule], exports: [EcabsMaskDateDirective] });
|
|
2707
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskDateDirectiveModule, imports: [CommonModule] });
|
|
2697
2708
|
}
|
|
2698
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskDateDirectiveModule, decorators: [{
|
|
2699
2710
|
type: NgModule,
|
|
2700
2711
|
args: [{
|
|
2701
2712
|
imports: [CommonModule],
|
|
2702
|
-
declarations: [
|
|
2703
|
-
exports: [
|
|
2713
|
+
declarations: [EcabsMaskDateDirective],
|
|
2714
|
+
exports: [EcabsMaskDateDirective],
|
|
2704
2715
|
}]
|
|
2705
2716
|
}] });
|
|
2706
2717
|
|
|
2707
|
-
class
|
|
2708
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2709
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2710
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2718
|
+
class EcabsNumberBorderDirectiveModule {
|
|
2719
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsNumberBorderDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2720
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsNumberBorderDirectiveModule, declarations: [EcabsNumberBorderDirective], imports: [CommonModule], exports: [EcabsNumberBorderDirective] });
|
|
2721
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsNumberBorderDirectiveModule, imports: [CommonModule] });
|
|
2711
2722
|
}
|
|
2712
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsNumberBorderDirectiveModule, decorators: [{
|
|
2713
2724
|
type: NgModule,
|
|
2714
2725
|
args: [{
|
|
2715
2726
|
imports: [CommonModule],
|
|
2716
|
-
declarations: [
|
|
2717
|
-
exports: [
|
|
2727
|
+
declarations: [EcabsNumberBorderDirective],
|
|
2728
|
+
exports: [EcabsNumberBorderDirective],
|
|
2718
2729
|
}]
|
|
2719
2730
|
}] });
|
|
2720
2731
|
|
|
@@ -2772,9 +2783,9 @@ class EcabsDatetimePickerModule {
|
|
|
2772
2783
|
ReactiveFormsModule,
|
|
2773
2784
|
EcabsPickerHeaderModule,
|
|
2774
2785
|
EcabsButtonsModule,
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2786
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
2787
|
+
EcabsNumberBorderDirectiveModule,
|
|
2788
|
+
EcabsMaskDateDirectiveModule,
|
|
2778
2789
|
EcabsDatePickerActionsModule], exports: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent] });
|
|
2779
2790
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, imports: [CommonModule,
|
|
2780
2791
|
ElementWrapperModule,
|
|
@@ -2785,9 +2796,9 @@ class EcabsDatetimePickerModule {
|
|
|
2785
2796
|
ReactiveFormsModule,
|
|
2786
2797
|
EcabsPickerHeaderModule,
|
|
2787
2798
|
EcabsButtonsModule,
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2799
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
2800
|
+
EcabsNumberBorderDirectiveModule,
|
|
2801
|
+
EcabsMaskDateDirectiveModule,
|
|
2791
2802
|
EcabsDatePickerActionsModule] });
|
|
2792
2803
|
}
|
|
2793
2804
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, decorators: [{
|
|
@@ -2807,9 +2818,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2807
2818
|
ReactiveFormsModule,
|
|
2808
2819
|
EcabsPickerHeaderModule,
|
|
2809
2820
|
EcabsButtonsModule,
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2821
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
2822
|
+
EcabsNumberBorderDirectiveModule,
|
|
2823
|
+
EcabsMaskDateDirectiveModule,
|
|
2813
2824
|
EcabsDatePickerActionsModule,
|
|
2814
2825
|
],
|
|
2815
2826
|
exports: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent],
|
|
@@ -2983,9 +2994,9 @@ class EcabsDateRangeModule {
|
|
|
2983
2994
|
ReactiveFormsModule,
|
|
2984
2995
|
EcabsPickerHeaderModule,
|
|
2985
2996
|
EcabsButtonsModule,
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2997
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
2998
|
+
EcabsNumberBorderDirectiveModule,
|
|
2999
|
+
EcabsMaskDateDirectiveModule,
|
|
2989
3000
|
MatInputModule,
|
|
2990
3001
|
EcabsDatePickerActionsModule], exports: [EcabsDateRangePickerComponent, EcabsDateRangePickerHeaderComponent] });
|
|
2991
3002
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateRangeModule, imports: [CommonModule,
|
|
@@ -2997,9 +3008,9 @@ class EcabsDateRangeModule {
|
|
|
2997
3008
|
ReactiveFormsModule,
|
|
2998
3009
|
EcabsPickerHeaderModule,
|
|
2999
3010
|
EcabsButtonsModule,
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3011
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
3012
|
+
EcabsNumberBorderDirectiveModule,
|
|
3013
|
+
EcabsMaskDateDirectiveModule,
|
|
3003
3014
|
MatInputModule,
|
|
3004
3015
|
EcabsDatePickerActionsModule] });
|
|
3005
3016
|
}
|
|
@@ -3020,9 +3031,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3020
3031
|
ReactiveFormsModule,
|
|
3021
3032
|
EcabsPickerHeaderModule,
|
|
3022
3033
|
EcabsButtonsModule,
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3034
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
3035
|
+
EcabsNumberBorderDirectiveModule,
|
|
3036
|
+
EcabsMaskDateDirectiveModule,
|
|
3026
3037
|
MatInputModule,
|
|
3027
3038
|
EcabsDatePickerActionsModule,
|
|
3028
3039
|
],
|
|
@@ -3089,7 +3100,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3089
3100
|
type: Input
|
|
3090
3101
|
}] } });
|
|
3091
3102
|
|
|
3092
|
-
class
|
|
3103
|
+
class EcabsMaskTimeDirective {
|
|
3093
3104
|
element;
|
|
3094
3105
|
timeRange = false;
|
|
3095
3106
|
all;
|
|
@@ -3133,13 +3144,13 @@ class MaskTimeDirective {
|
|
|
3133
3144
|
ngOnDestroy() {
|
|
3134
3145
|
this.maskedInputController.destroy();
|
|
3135
3146
|
}
|
|
3136
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3137
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
3147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskTimeDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3148
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsMaskTimeDirective, selector: "[ecabsTime]", inputs: { timeRange: "timeRange", all: "all" }, ngImport: i0 });
|
|
3138
3149
|
}
|
|
3139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskTimeDirective, decorators: [{
|
|
3140
3151
|
type: Directive,
|
|
3141
3152
|
args: [{
|
|
3142
|
-
selector: '[
|
|
3153
|
+
selector: '[ecabsTime]',
|
|
3143
3154
|
}]
|
|
3144
3155
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { timeRange: [{
|
|
3145
3156
|
type: Input
|
|
@@ -3349,7 +3360,7 @@ class EcabsDateTimeRangePickerComponent extends EcabsElementBaseComponent {
|
|
|
3349
3360
|
},
|
|
3350
3361
|
DecimalPipe,
|
|
3351
3362
|
UnsubscribeService,
|
|
3352
|
-
], usesInheritance: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled || controlDate?.disabled\"\r\n [matDatepicker]=\"picker\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker\r\n (opened)=\"opened()\"\r\n #picker\r\n [calendarHeaderComponent]=\"header\"\r\n [touchUi]=\"touchUi\"\r\n >\r\n <mat-datepicker-actions>\r\n <div class=\"flex flex-col w-full gap-y-4\">\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <div class=\"flex flex-col justify-center\">\r\n <div class=\"text-center\">{{ from ?? translationConfig?.from }}</div>\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <input\r\n class=\"block form-field__input time\"\r\n
|
|
3363
|
+
], usesInheritance: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled || controlDate?.disabled\"\r\n [matDatepicker]=\"picker\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker\r\n (opened)=\"opened()\"\r\n #picker\r\n [calendarHeaderComponent]=\"header\"\r\n [touchUi]=\"touchUi\"\r\n >\r\n <mat-datepicker-actions>\r\n <div class=\"flex flex-col w-full gap-y-4\">\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <div class=\"flex flex-col justify-center\">\r\n <div class=\"text-center\">{{ from ?? translationConfig?.from }}</div>\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <input\r\n class=\"block form-field__input time\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hoursFrom\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hoursFrom\"\r\n />\r\n\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutesFrom\"\r\n [(ngModel)]=\"minutesFrom\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"time--inputs\"></div>\r\n <div class=\"flex gap-2 justify-center items-center mb-5\">\r\n <div class=\"flex flex-col justify-center\">\r\n <div class=\"text-center\">{{ to ?? translationConfig?.to }}</div>\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <input\r\n class=\"form-field__input time\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hoursTo\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hoursTo\"\r\n />\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutesTo\"\r\n [(ngModel)]=\"minutesTo\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <ecabs-date-picker-actions [applyLabel]=\"applyLabel ?? translationConfig?.applyLabel\"\r\n [cancelLabel]=\"cancelLabel ?? translationConfig?.cancelLabel\"\r\n (apply)=\"onApply()\">\r\n </ecabs-date-picker-actions>\r\n </div>\r\n </mat-datepicker-actions>\r\n </mat-datepicker>\r\n <input\r\n class=\"form-field__input w-full date-input\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"pickerValue\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled || controlDate?.disabled\"\r\n ecabsTime\r\n [all]=\"allLabel\"\r\n [timeRange]=\"true\"\r\n (blur)=\"onTouch()\"\r\n (blur)=\"blurChange($event)\"\r\n (keyup)=\"blurChange($event)\"\r\n (keydown)=\"keydownChange($event)\"\r\n />\r\n <button type=\"button\" class=\"text-gray-500 -translate-x-9\" (click)=\"picker.open()\">\r\n <mat-icon>access_time</mat-icon>\r\n </button>\r\n </div>\r\n</ecabs-element-wrapper>\r\n", styles: [".time--inputs:after{position:absolute;content:\"\"}.time{width:3.375rem}.fake-input{visibility:hidden;width:0;padding:0}.time--inputs{position:relative;margin-bottom:2.4rem}.time--inputs:after{height:1px;right:0;left:0;background-color:var(--color-gray-300);bottom:-1.6rem}:host ::ng-deep .form-field{margin-right:-1.25rem;margin-left:-.125rem}\n"], dependencies: [{ kind: "component", type: EcabsElementWrapperComponent, selector: "ecabs-element-wrapper", inputs: ["data", "showCloseIcon", "focusedFlag", "showPassword", "control"], outputs: ["showHidePassword", "clear", "increase", "decrease"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5$2.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i5$2.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i5$2.MatDatepickerActions, selector: "mat-datepicker-actions, mat-date-range-picker-actions" }, { kind: "directive", type: i5$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: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: EcabsDigitsOnlyDirective, selector: "[ecabsDigitsOnly]", inputs: ["digitsOnly", "allowHyphen", "decimal", "decimalSeparator", "unit"] }, { kind: "directive", type: EcabsNumberBorderDirective, selector: "[ecabsNumberBorder]", inputs: ["maxValue", "minValue"] }, { kind: "component", type: EcabsDatePickerActionsComponent, selector: "ecabs-date-picker-actions", inputs: ["cancelLabel", "applyLabel"], outputs: ["apply"] }, { kind: "directive", type: EcabsMaskTimeDirective, selector: "[ecabsTime]", inputs: ["timeRange", "all"] }] });
|
|
3353
3364
|
}
|
|
3354
3365
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimeRangePickerComponent, decorators: [{
|
|
3355
3366
|
type: Component,
|
|
@@ -3361,7 +3372,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3361
3372
|
},
|
|
3362
3373
|
DecimalPipe,
|
|
3363
3374
|
UnsubscribeService,
|
|
3364
|
-
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled || controlDate?.disabled\"\r\n [matDatepicker]=\"picker\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker\r\n (opened)=\"opened()\"\r\n #picker\r\n [calendarHeaderComponent]=\"header\"\r\n [touchUi]=\"touchUi\"\r\n >\r\n <mat-datepicker-actions>\r\n <div class=\"flex flex-col w-full gap-y-4\">\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <div class=\"flex flex-col justify-center\">\r\n <div class=\"text-center\">{{ from ?? translationConfig?.from }}</div>\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <input\r\n class=\"block form-field__input time\"\r\n
|
|
3375
|
+
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled || controlDate?.disabled\"\r\n [matDatepicker]=\"picker\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker\r\n (opened)=\"opened()\"\r\n #picker\r\n [calendarHeaderComponent]=\"header\"\r\n [touchUi]=\"touchUi\"\r\n >\r\n <mat-datepicker-actions>\r\n <div class=\"flex flex-col w-full gap-y-4\">\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <div class=\"flex flex-col justify-center\">\r\n <div class=\"text-center\">{{ from ?? translationConfig?.from }}</div>\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <input\r\n class=\"block form-field__input time\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hoursFrom\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hoursFrom\"\r\n />\r\n\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutesFrom\"\r\n [(ngModel)]=\"minutesFrom\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"time--inputs\"></div>\r\n <div class=\"flex gap-2 justify-center items-center mb-5\">\r\n <div class=\"flex flex-col justify-center\">\r\n <div class=\"text-center\">{{ to ?? translationConfig?.to }}</div>\r\n <div class=\"flex gap-2 justify-center items-center\">\r\n <input\r\n class=\"form-field__input time\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hoursTo\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hoursTo\"\r\n />\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutesTo\"\r\n [(ngModel)]=\"minutesTo\"\r\n ecabsDigitsOnly\r\n ecabsNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <ecabs-date-picker-actions [applyLabel]=\"applyLabel ?? translationConfig?.applyLabel\"\r\n [cancelLabel]=\"cancelLabel ?? translationConfig?.cancelLabel\"\r\n (apply)=\"onApply()\">\r\n </ecabs-date-picker-actions>\r\n </div>\r\n </mat-datepicker-actions>\r\n </mat-datepicker>\r\n <input\r\n class=\"form-field__input w-full date-input\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"pickerValue\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled || controlDate?.disabled\"\r\n ecabsTime\r\n [all]=\"allLabel\"\r\n [timeRange]=\"true\"\r\n (blur)=\"onTouch()\"\r\n (blur)=\"blurChange($event)\"\r\n (keyup)=\"blurChange($event)\"\r\n (keydown)=\"keydownChange($event)\"\r\n />\r\n <button type=\"button\" class=\"text-gray-500 -translate-x-9\" (click)=\"picker.open()\">\r\n <mat-icon>access_time</mat-icon>\r\n </button>\r\n </div>\r\n</ecabs-element-wrapper>\r\n", styles: [".time--inputs:after{position:absolute;content:\"\"}.time{width:3.375rem}.fake-input{visibility:hidden;width:0;padding:0}.time--inputs{position:relative;margin-bottom:2.4rem}.time--inputs:after{height:1px;right:0;left:0;background-color:var(--color-gray-300);bottom:-1.6rem}:host ::ng-deep .form-field{margin-right:-1.25rem;margin-left:-.125rem}\n"] }]
|
|
3365
3376
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.DecimalPipe }, { type: EcabsDatePickerHeaderService }, { type: UnsubscribeService }]; }, propDecorators: { touchUi: [{
|
|
3366
3377
|
type: Input
|
|
3367
3378
|
}], cancelLabel: [{
|
|
@@ -3378,17 +3389,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3378
3389
|
type: Output
|
|
3379
3390
|
}] } });
|
|
3380
3391
|
|
|
3381
|
-
class
|
|
3382
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3383
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3384
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3392
|
+
class EcabsMaskTimeDirectiveModule {
|
|
3393
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskTimeDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3394
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskTimeDirectiveModule, declarations: [EcabsMaskTimeDirective], imports: [CommonModule], exports: [EcabsMaskTimeDirective] });
|
|
3395
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskTimeDirectiveModule, imports: [CommonModule] });
|
|
3385
3396
|
}
|
|
3386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsMaskTimeDirectiveModule, decorators: [{
|
|
3387
3398
|
type: NgModule,
|
|
3388
3399
|
args: [{
|
|
3389
3400
|
imports: [CommonModule],
|
|
3390
|
-
declarations: [
|
|
3391
|
-
exports: [
|
|
3401
|
+
declarations: [EcabsMaskTimeDirective],
|
|
3402
|
+
exports: [EcabsMaskTimeDirective],
|
|
3392
3403
|
}]
|
|
3393
3404
|
}] });
|
|
3394
3405
|
|
|
@@ -3404,11 +3415,11 @@ class EcabsDatetimeRangePickerModule {
|
|
|
3404
3415
|
ReactiveFormsModule,
|
|
3405
3416
|
EcabsPickerHeaderModule,
|
|
3406
3417
|
EcabsButtonsModule,
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3418
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
3419
|
+
EcabsNumberBorderDirectiveModule,
|
|
3420
|
+
EcabsMaskDateDirectiveModule,
|
|
3410
3421
|
EcabsDatePickerActionsModule,
|
|
3411
|
-
|
|
3422
|
+
EcabsMaskTimeDirectiveModule], exports: [EcabsDateTimeRangePickerComponent,
|
|
3412
3423
|
EcabsDateTimeRangePickerHeaderComponent] });
|
|
3413
3424
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimeRangePickerModule, imports: [CommonModule,
|
|
3414
3425
|
ElementWrapperModule,
|
|
@@ -3419,11 +3430,11 @@ class EcabsDatetimeRangePickerModule {
|
|
|
3419
3430
|
ReactiveFormsModule,
|
|
3420
3431
|
EcabsPickerHeaderModule,
|
|
3421
3432
|
EcabsButtonsModule,
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3433
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
3434
|
+
EcabsNumberBorderDirectiveModule,
|
|
3435
|
+
EcabsMaskDateDirectiveModule,
|
|
3425
3436
|
EcabsDatePickerActionsModule,
|
|
3426
|
-
|
|
3437
|
+
EcabsMaskTimeDirectiveModule] });
|
|
3427
3438
|
}
|
|
3428
3439
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimeRangePickerModule, decorators: [{
|
|
3429
3440
|
type: NgModule,
|
|
@@ -3442,11 +3453,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3442
3453
|
ReactiveFormsModule,
|
|
3443
3454
|
EcabsPickerHeaderModule,
|
|
3444
3455
|
EcabsButtonsModule,
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3456
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
3457
|
+
EcabsNumberBorderDirectiveModule,
|
|
3458
|
+
EcabsMaskDateDirectiveModule,
|
|
3448
3459
|
EcabsDatePickerActionsModule,
|
|
3449
|
-
|
|
3460
|
+
EcabsMaskTimeDirectiveModule,
|
|
3450
3461
|
],
|
|
3451
3462
|
exports: [
|
|
3452
3463
|
EcabsDateTimeRangePickerComponent,
|
|
@@ -3509,7 +3520,7 @@ class EcabsIncrementComponent extends EcabsElementBaseComponent {
|
|
|
3509
3520
|
useExisting: EcabsIncrementComponent,
|
|
3510
3521
|
multi: true,
|
|
3511
3522
|
},
|
|
3512
|
-
], usesInheritance: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper\">\r\n <input
|
|
3523
|
+
], usesInheritance: true, ngImport: i0, template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper\">\r\n <input ecabsDigitsOnly [digitsOnly]=\"digitsOnly\" [decimal]=\"allowDecimal\" [allowHyphen]=\"allowHyphen\"\r\n class=\"form-field__input\"\r\n [type]=\"type\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"value\"\r\n [placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n [disabled]=\"disabled\"\r\n [maxlength]=\"maxLength\"/>\r\n\r\n <div class=\"incrementor\">\r\n <mat-icon (click)=\"increment()\">add</mat-icon>\r\n <mat-icon (click)=\"decrement()\">remove</mat-icon>\r\n </div>\r\n </div>\r\n</ecabs-element-wrapper>\r\n", styles: [":root{--color-black: #07080d;--color-white: #ffffff;--color-white-opacity-05: rgba(0, 0, 0, .05);--color-gray-100: #f5f6f9;--color-gray-200: #f8f9f9;--color-gray-300: #d9d9d9;--color-gray-400: #a6a6a6;--color-gray-500: #6b6d73;--color-brand-dark: #193273;--color-brand-dark-rgb: 25, 50, 115;--color-brand-light: #325FDA;--color-brand-light2: #e7efff;--color-brand-light-rgb: 50, 95, 218;--color-brand-300: #e7efff;--color-brand-300-rgb: 231, 239, 255;--color-error: #df3838;--color-error-opacity: #fbe4e4;--color-error-rgb: 223, 56, 56;--color-notification: #f4d04f;--color-notification-rgb: 244, 208, 79;--color-warn: #f2994a;--color-warn-rgb: 242, 153, 74;--color-info: #325fda;--color-info-rgb: 50, 95, 218;--color-warning: #f2994a;--color-warning-opacity: #fdf0e4;--color-success: #25bd3d;--color-success--opacity: #e8f8e5;--color-success-rgb: 37, 189, 61;--color-allocation-started: #E8F8E5;--color-allocation-scheduled: #FDF0E4;--color-allocation-ended: #FBE4E4;--color-allocation-sick: #E7EFFF;--color-allocation-no-show: #EAE5FF;--color-allocation-unavailable: #F2F2F2;--cropper-outline-color: rgba(0, 0, 0, .5)}:host::ng-deep .incrementor{border-left:1px solid var(--color-gray-300);position:absolute;display:flex;flex-direction:column;top:1px;bottom:1px;right:1px}:host::ng-deep .incrementor .mat-icon{font-size:20px;font-size:1.25rem;margin-right:0;line-height:20px;cursor:pointer;text-align:center;flex:1}:host::ng-deep .incrementor .mat-icon:first-of-type{border-bottom:1px solid var(--color-gray-300)}:host::ng-deep .incrementor .mat-icon:hover{color:var(--color-brand-dark)}:host::ng-deep .form-field>div{line-height:1}\n"], dependencies: [{ kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: EcabsElementWrapperComponent, selector: "ecabs-element-wrapper", inputs: ["data", "showCloseIcon", "focusedFlag", "showPassword", "control"], outputs: ["showHidePassword", "clear", "increase", "decrease"] }, { kind: "directive", type: i5$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: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: EcabsDigitsOnlyDirective, selector: "[ecabsDigitsOnly]", inputs: ["digitsOnly", "allowHyphen", "decimal", "decimalSeparator", "unit"] }] });
|
|
3513
3524
|
}
|
|
3514
3525
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsIncrementComponent, decorators: [{
|
|
3515
3526
|
type: Component,
|
|
@@ -3519,7 +3530,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3519
3530
|
useExisting: EcabsIncrementComponent,
|
|
3520
3531
|
multi: true,
|
|
3521
3532
|
},
|
|
3522
|
-
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper\">\r\n <input
|
|
3533
|
+
], template: "<ecabs-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper\">\r\n <input ecabsDigitsOnly [digitsOnly]=\"digitsOnly\" [decimal]=\"allowDecimal\" [allowHyphen]=\"allowHyphen\"\r\n class=\"form-field__input\"\r\n [type]=\"type\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"value\"\r\n [placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n [disabled]=\"disabled\"\r\n [maxlength]=\"maxLength\"/>\r\n\r\n <div class=\"incrementor\">\r\n <mat-icon (click)=\"increment()\">add</mat-icon>\r\n <mat-icon (click)=\"decrement()\">remove</mat-icon>\r\n </div>\r\n </div>\r\n</ecabs-element-wrapper>\r\n", styles: [":root{--color-black: #07080d;--color-white: #ffffff;--color-white-opacity-05: rgba(0, 0, 0, .05);--color-gray-100: #f5f6f9;--color-gray-200: #f8f9f9;--color-gray-300: #d9d9d9;--color-gray-400: #a6a6a6;--color-gray-500: #6b6d73;--color-brand-dark: #193273;--color-brand-dark-rgb: 25, 50, 115;--color-brand-light: #325FDA;--color-brand-light2: #e7efff;--color-brand-light-rgb: 50, 95, 218;--color-brand-300: #e7efff;--color-brand-300-rgb: 231, 239, 255;--color-error: #df3838;--color-error-opacity: #fbe4e4;--color-error-rgb: 223, 56, 56;--color-notification: #f4d04f;--color-notification-rgb: 244, 208, 79;--color-warn: #f2994a;--color-warn-rgb: 242, 153, 74;--color-info: #325fda;--color-info-rgb: 50, 95, 218;--color-warning: #f2994a;--color-warning-opacity: #fdf0e4;--color-success: #25bd3d;--color-success--opacity: #e8f8e5;--color-success-rgb: 37, 189, 61;--color-allocation-started: #E8F8E5;--color-allocation-scheduled: #FDF0E4;--color-allocation-ended: #FBE4E4;--color-allocation-sick: #E7EFFF;--color-allocation-no-show: #EAE5FF;--color-allocation-unavailable: #F2F2F2;--cropper-outline-color: rgba(0, 0, 0, .5)}:host::ng-deep .incrementor{border-left:1px solid var(--color-gray-300);position:absolute;display:flex;flex-direction:column;top:1px;bottom:1px;right:1px}:host::ng-deep .incrementor .mat-icon{font-size:20px;font-size:1.25rem;margin-right:0;line-height:20px;cursor:pointer;text-align:center;flex:1}:host::ng-deep .incrementor .mat-icon:first-of-type{border-bottom:1px solid var(--color-gray-300)}:host::ng-deep .incrementor .mat-icon:hover{color:var(--color-brand-dark)}:host::ng-deep .form-field>div{line-height:1}\n"] }]
|
|
3523
3534
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { digitsOnly: [{
|
|
3524
3535
|
type: Input
|
|
3525
3536
|
}], allowDecimal: [{
|
|
@@ -3537,13 +3548,13 @@ class EcabsIncrementModule {
|
|
|
3537
3548
|
MatIconModule,
|
|
3538
3549
|
ElementWrapperModule,
|
|
3539
3550
|
FormsModule,
|
|
3540
|
-
|
|
3551
|
+
EcabsDigitsOnlyDirectivesModule], exports: [EcabsIncrementComponent] });
|
|
3541
3552
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsIncrementModule, imports: [CommonModule,
|
|
3542
3553
|
MatInputModule,
|
|
3543
3554
|
MatIconModule,
|
|
3544
3555
|
ElementWrapperModule,
|
|
3545
3556
|
FormsModule,
|
|
3546
|
-
|
|
3557
|
+
EcabsDigitsOnlyDirectivesModule] });
|
|
3547
3558
|
}
|
|
3548
3559
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsIncrementModule, decorators: [{
|
|
3549
3560
|
type: NgModule,
|
|
@@ -3555,7 +3566,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3555
3566
|
MatIconModule,
|
|
3556
3567
|
ElementWrapperModule,
|
|
3557
3568
|
FormsModule,
|
|
3558
|
-
|
|
3569
|
+
EcabsDigitsOnlyDirectivesModule,
|
|
3559
3570
|
],
|
|
3560
3571
|
exports: [EcabsIncrementComponent],
|
|
3561
3572
|
}]
|
|
@@ -4240,7 +4251,7 @@ class EcabsTimepickerComponent extends EcabsElementBaseComponent {
|
|
|
4240
4251
|
useExisting: EcabsTimepickerComponent,
|
|
4241
4252
|
multi: true,
|
|
4242
4253
|
},
|
|
4243
|
-
], usesInheritance: true, ngImport: i0, template: "<div [ngClass]=\"{ disabled: disabled }\">\r\n <ecabs-element-wrapper\r\n [data]=\"getData()\"\r\n [showCloseIcon]=\"showCloseIcon\"\r\n [focusedFlag]=\"focusedFlag\"\r\n (clear)=\"clearInput()\"\r\n >\r\n <div class=\"relative inline-block w-full timeInputFieldWrapper\">\r\n <input\r\n type=\"text\"\r\n class=\"form-field__input\"\r\n [value]=\"data\"\r\n [ngModel]=\"data\"\r\n (ngModelChange)=\"updateInputData($event)\"\r\n [disabled]=\"disabled\"\r\n
|
|
4254
|
+
], usesInheritance: true, ngImport: i0, template: "<div [ngClass]=\"{ disabled: disabled }\">\r\n <ecabs-element-wrapper\r\n [data]=\"getData()\"\r\n [showCloseIcon]=\"showCloseIcon\"\r\n [focusedFlag]=\"focusedFlag\"\r\n (clear)=\"clearInput()\"\r\n >\r\n <div class=\"relative inline-block w-full timeInputFieldWrapper\">\r\n <input\r\n type=\"text\"\r\n class=\"form-field__input\"\r\n [value]=\"data\"\r\n [ngModel]=\"data\"\r\n (ngModelChange)=\"updateInputData($event)\"\r\n [disabled]=\"disabled\"\r\n ecabsTime\r\n [all]=\"allLabel\"\r\n (focus)=\"show()\"\r\n (click)=\"show()\"\r\n (keydown)=\"inputKeyDown($event)\"\r\n [placeholder]=\"placeholder\"\r\n />\r\n <div class=\"form-field__input--suffix\" *ngIf=\"type !== 'number'\">\r\n <ng-content select=\"mat-icon\"></ng-content>\r\n </div>\r\n <ecabs-time-list-panel\r\n [typedValue]=\"data\"\r\n *ngIf=\"focusedFlag\"\r\n [showDayStart]=\"showDayStart\"\r\n [dayStartLabel]=\"dayStartLabel\"\r\n [dayEndLabel]=\"dayEndLabel\"\r\n [showDayEnd]=\"showDayEnd\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n class=\"form-time-list absolute inline-block\"\r\n [appendTo]=\"appendTo\"\r\n [listPosition]=\"listPosition\"\r\n (closeMe)=\"close($event)\"\r\n ></ecabs-time-list-panel>\r\n </div>\r\n </ecabs-element-wrapper>\r\n</div>\r\n", styles: [":host::ng-deep .timeInputWrapper ecabs-element-wrapper .form-field{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EcabsElementWrapperComponent, selector: "ecabs-element-wrapper", inputs: ["data", "showCloseIcon", "focusedFlag", "showPassword", "control"], outputs: ["showHidePassword", "clear", "increase", "decrease"] }, { kind: "directive", type: EcabsMaskTimeDirective, selector: "[ecabsTime]", inputs: ["timeRange", "all"] }, { kind: "directive", type: i5$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: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: EcabsTimeListPanelComponent, selector: "ecabs-time-list-panel", inputs: ["typedValue", "listPlacement", "listPosition", "dayStartLabel", "dayEndLabel", "appendTo", "min", "max", "showDayStart", "showDayEnd", "position"], outputs: ["onscroll", "closeMe"] }] });
|
|
4244
4255
|
}
|
|
4245
4256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimepickerComponent, decorators: [{
|
|
4246
4257
|
type: Component,
|
|
@@ -4250,7 +4261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4250
4261
|
useExisting: EcabsTimepickerComponent,
|
|
4251
4262
|
multi: true,
|
|
4252
4263
|
},
|
|
4253
|
-
], template: "<div [ngClass]=\"{ disabled: disabled }\">\r\n <ecabs-element-wrapper\r\n [data]=\"getData()\"\r\n [showCloseIcon]=\"showCloseIcon\"\r\n [focusedFlag]=\"focusedFlag\"\r\n (clear)=\"clearInput()\"\r\n >\r\n <div class=\"relative inline-block w-full timeInputFieldWrapper\">\r\n <input\r\n type=\"text\"\r\n class=\"form-field__input\"\r\n [value]=\"data\"\r\n [ngModel]=\"data\"\r\n (ngModelChange)=\"updateInputData($event)\"\r\n [disabled]=\"disabled\"\r\n
|
|
4264
|
+
], template: "<div [ngClass]=\"{ disabled: disabled }\">\r\n <ecabs-element-wrapper\r\n [data]=\"getData()\"\r\n [showCloseIcon]=\"showCloseIcon\"\r\n [focusedFlag]=\"focusedFlag\"\r\n (clear)=\"clearInput()\"\r\n >\r\n <div class=\"relative inline-block w-full timeInputFieldWrapper\">\r\n <input\r\n type=\"text\"\r\n class=\"form-field__input\"\r\n [value]=\"data\"\r\n [ngModel]=\"data\"\r\n (ngModelChange)=\"updateInputData($event)\"\r\n [disabled]=\"disabled\"\r\n ecabsTime\r\n [all]=\"allLabel\"\r\n (focus)=\"show()\"\r\n (click)=\"show()\"\r\n (keydown)=\"inputKeyDown($event)\"\r\n [placeholder]=\"placeholder\"\r\n />\r\n <div class=\"form-field__input--suffix\" *ngIf=\"type !== 'number'\">\r\n <ng-content select=\"mat-icon\"></ng-content>\r\n </div>\r\n <ecabs-time-list-panel\r\n [typedValue]=\"data\"\r\n *ngIf=\"focusedFlag\"\r\n [showDayStart]=\"showDayStart\"\r\n [dayStartLabel]=\"dayStartLabel\"\r\n [dayEndLabel]=\"dayEndLabel\"\r\n [showDayEnd]=\"showDayEnd\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n class=\"form-time-list absolute inline-block\"\r\n [appendTo]=\"appendTo\"\r\n [listPosition]=\"listPosition\"\r\n (closeMe)=\"close($event)\"\r\n ></ecabs-time-list-panel>\r\n </div>\r\n </ecabs-element-wrapper>\r\n</div>\r\n", styles: [":host::ng-deep .timeInputWrapper ecabs-element-wrapper .form-field{margin-bottom:0}\n"] }]
|
|
4254
4265
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: FormTimePickerService }, { type: i0.Injector }, { type: i0.DestroyRef }]; }, propDecorators: { showCloseIcon: [{
|
|
4255
4266
|
type: Input
|
|
4256
4267
|
}], focusedFlag: [{
|
|
@@ -4285,11 +4296,11 @@ class EcabsTimepickerModule {
|
|
|
4285
4296
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4286
4297
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimepickerModule, declarations: [EcabsTimepickerComponent, EcabsTimeListPanelComponent], imports: [CommonModule,
|
|
4287
4298
|
ElementWrapperModule,
|
|
4288
|
-
|
|
4299
|
+
EcabsMaskTimeDirectiveModule,
|
|
4289
4300
|
FormsModule], exports: [EcabsTimeListPanelComponent, EcabsTimepickerComponent] });
|
|
4290
4301
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimepickerModule, imports: [CommonModule,
|
|
4291
4302
|
ElementWrapperModule,
|
|
4292
|
-
|
|
4303
|
+
EcabsMaskTimeDirectiveModule,
|
|
4293
4304
|
FormsModule] });
|
|
4294
4305
|
}
|
|
4295
4306
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimepickerModule, decorators: [{
|
|
@@ -4299,7 +4310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4299
4310
|
imports: [
|
|
4300
4311
|
CommonModule,
|
|
4301
4312
|
ElementWrapperModule,
|
|
4302
|
-
|
|
4313
|
+
EcabsMaskTimeDirectiveModule,
|
|
4303
4314
|
FormsModule,
|
|
4304
4315
|
],
|
|
4305
4316
|
exports: [EcabsTimeListPanelComponent, EcabsTimepickerComponent],
|
|
@@ -4838,7 +4849,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4838
4849
|
}]
|
|
4839
4850
|
}] });
|
|
4840
4851
|
|
|
4841
|
-
class
|
|
4852
|
+
class EcabsDynamicBgColorDirective {
|
|
4842
4853
|
elementRef;
|
|
4843
4854
|
params;
|
|
4844
4855
|
saturation = 36;
|
|
@@ -4860,10 +4871,10 @@ class DynamicBgColorDirective {
|
|
|
4860
4871
|
const h = hash % 360;
|
|
4861
4872
|
el.nativeElement.style.backgroundColor = `hsl(${h}, ${this.saturation}%, ${this.lightness}%)`;
|
|
4862
4873
|
}
|
|
4863
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4864
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
4874
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDynamicBgColorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4875
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsDynamicBgColorDirective, selector: "[ecabsDynamicBgColor]", inputs: { params: "params", saturation: "saturation", lightness: "lightness" }, usesOnChanges: true, ngImport: i0 });
|
|
4865
4876
|
}
|
|
4866
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDynamicBgColorDirective, decorators: [{
|
|
4867
4878
|
type: Directive,
|
|
4868
4879
|
args: [{
|
|
4869
4880
|
selector: '[ecabsDynamicBgColor]',
|
|
@@ -4876,17 +4887,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4876
4887
|
type: Input
|
|
4877
4888
|
}] } });
|
|
4878
4889
|
|
|
4879
|
-
class
|
|
4880
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4881
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4882
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4890
|
+
class EcabsDynamicBgColorDirectiveModule {
|
|
4891
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDynamicBgColorDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4892
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsDynamicBgColorDirectiveModule, declarations: [EcabsDynamicBgColorDirective], imports: [CommonModule], exports: [EcabsDynamicBgColorDirective] });
|
|
4893
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDynamicBgColorDirectiveModule, imports: [CommonModule] });
|
|
4883
4894
|
}
|
|
4884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDynamicBgColorDirectiveModule, decorators: [{
|
|
4885
4896
|
type: NgModule,
|
|
4886
4897
|
args: [{
|
|
4887
4898
|
imports: [CommonModule],
|
|
4888
|
-
declarations: [
|
|
4889
|
-
exports: [
|
|
4899
|
+
declarations: [EcabsDynamicBgColorDirective],
|
|
4900
|
+
exports: [EcabsDynamicBgColorDirective],
|
|
4890
4901
|
}]
|
|
4891
4902
|
}] });
|
|
4892
4903
|
|
|
@@ -5057,6 +5068,319 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5057
5068
|
}]
|
|
5058
5069
|
}] });
|
|
5059
5070
|
|
|
5071
|
+
class EcabsCheckPermissionsDirective {
|
|
5072
|
+
elementRef;
|
|
5073
|
+
ecabsComponentsService;
|
|
5074
|
+
permissions;
|
|
5075
|
+
noPermissionMessage;
|
|
5076
|
+
constructor(elementRef, ecabsComponentsService) {
|
|
5077
|
+
this.elementRef = elementRef;
|
|
5078
|
+
this.ecabsComponentsService = ecabsComponentsService;
|
|
5079
|
+
}
|
|
5080
|
+
ngOnInit() {
|
|
5081
|
+
if (!this.ecabsComponentsService.hasClaim(this.permissions)) {
|
|
5082
|
+
if (this.noPermissionMessage) {
|
|
5083
|
+
this.elementRef.nativeElement.innerHTML = this.noPermissionMessage;
|
|
5084
|
+
}
|
|
5085
|
+
else {
|
|
5086
|
+
this.elementRef.nativeElement.remove();
|
|
5087
|
+
}
|
|
5088
|
+
}
|
|
5089
|
+
}
|
|
5090
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsCheckPermissionsDirective, deps: [{ token: i0.ElementRef }, { token: EcabsComponentsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5091
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsCheckPermissionsDirective, selector: "[ecabsCheckPermissions]", inputs: { permissions: "permissions", noPermissionMessage: "noPermissionMessage" }, ngImport: i0 });
|
|
5092
|
+
}
|
|
5093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsCheckPermissionsDirective, decorators: [{
|
|
5094
|
+
type: Directive,
|
|
5095
|
+
args: [{
|
|
5096
|
+
selector: '[ecabsCheckPermissions]',
|
|
5097
|
+
}]
|
|
5098
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: EcabsComponentsService }]; }, propDecorators: { permissions: [{
|
|
5099
|
+
type: Input
|
|
5100
|
+
}], noPermissionMessage: [{
|
|
5101
|
+
type: Input
|
|
5102
|
+
}] } });
|
|
5103
|
+
|
|
5104
|
+
class EcabsCheckPermissionDirectiveModule {
|
|
5105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsCheckPermissionDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5106
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsCheckPermissionDirectiveModule, declarations: [EcabsCheckPermissionsDirective], imports: [CommonModule], exports: [EcabsCheckPermissionsDirective] });
|
|
5107
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsCheckPermissionDirectiveModule, imports: [CommonModule] });
|
|
5108
|
+
}
|
|
5109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsCheckPermissionDirectiveModule, decorators: [{
|
|
5110
|
+
type: NgModule,
|
|
5111
|
+
args: [{
|
|
5112
|
+
imports: [CommonModule],
|
|
5113
|
+
declarations: [EcabsCheckPermissionsDirective],
|
|
5114
|
+
exports: [EcabsCheckPermissionsDirective],
|
|
5115
|
+
}]
|
|
5116
|
+
}] });
|
|
5117
|
+
|
|
5118
|
+
class EcabsDomObserverDirective {
|
|
5119
|
+
elementRef;
|
|
5120
|
+
domChange = new EventEmitter();
|
|
5121
|
+
changes;
|
|
5122
|
+
constructor(elementRef) {
|
|
5123
|
+
this.elementRef = elementRef;
|
|
5124
|
+
const element = this.elementRef.nativeElement;
|
|
5125
|
+
this.changes = new MutationObserver((mutations) => {
|
|
5126
|
+
mutations.forEach((mutation) => this.domChange.emit(mutation));
|
|
5127
|
+
});
|
|
5128
|
+
this.changes.observe(element, {
|
|
5129
|
+
attributes: true,
|
|
5130
|
+
childList: true,
|
|
5131
|
+
});
|
|
5132
|
+
}
|
|
5133
|
+
ngOnDestroy() {
|
|
5134
|
+
this.changes.disconnect();
|
|
5135
|
+
}
|
|
5136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDomObserverDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5137
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsDomObserverDirective, selector: "[ecabsDomObserver]", outputs: { domChange: "domChange" }, ngImport: i0 });
|
|
5138
|
+
}
|
|
5139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDomObserverDirective, decorators: [{
|
|
5140
|
+
type: Directive,
|
|
5141
|
+
args: [{
|
|
5142
|
+
selector: '[ecabsDomObserver]',
|
|
5143
|
+
}]
|
|
5144
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { domChange: [{
|
|
5145
|
+
type: Output
|
|
5146
|
+
}] } });
|
|
5147
|
+
|
|
5148
|
+
class EcabsDomObserverDirectiveModule {
|
|
5149
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDomObserverDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5150
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsDomObserverDirectiveModule, declarations: [EcabsDomObserverDirective], imports: [CommonModule], exports: [EcabsDomObserverDirective] });
|
|
5151
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDomObserverDirectiveModule, imports: [CommonModule] });
|
|
5152
|
+
}
|
|
5153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDomObserverDirectiveModule, decorators: [{
|
|
5154
|
+
type: NgModule,
|
|
5155
|
+
args: [{
|
|
5156
|
+
imports: [CommonModule],
|
|
5157
|
+
declarations: [EcabsDomObserverDirective],
|
|
5158
|
+
exports: [EcabsDomObserverDirective],
|
|
5159
|
+
}]
|
|
5160
|
+
}] });
|
|
5161
|
+
|
|
5162
|
+
class EcabsFileDropDirective {
|
|
5163
|
+
filesDropped = new EventEmitter();
|
|
5164
|
+
filesHovered = new EventEmitter();
|
|
5165
|
+
onDrop($event) {
|
|
5166
|
+
$event.preventDefault();
|
|
5167
|
+
$event.stopPropagation();
|
|
5168
|
+
this.filesDropped.emit($event.dataTransfer.files);
|
|
5169
|
+
this.filesHovered.emit(false);
|
|
5170
|
+
}
|
|
5171
|
+
onDragOver($event) {
|
|
5172
|
+
$event.preventDefault();
|
|
5173
|
+
$event.stopPropagation();
|
|
5174
|
+
this.filesHovered.emit(true);
|
|
5175
|
+
}
|
|
5176
|
+
onDragLeave() {
|
|
5177
|
+
this.filesHovered.emit(false);
|
|
5178
|
+
}
|
|
5179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsFileDropDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5180
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsFileDropDirective, selector: "[ecabsFileDrop]", outputs: { filesDropped: "filesDropped", filesHovered: "filesHovered" }, host: { listeners: { "drop": "onDrop($event)", "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)" } }, ngImport: i0 });
|
|
5181
|
+
}
|
|
5182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsFileDropDirective, decorators: [{
|
|
5183
|
+
type: Directive,
|
|
5184
|
+
args: [{
|
|
5185
|
+
selector: '[ecabsFileDrop]',
|
|
5186
|
+
}]
|
|
5187
|
+
}], propDecorators: { filesDropped: [{
|
|
5188
|
+
type: Output
|
|
5189
|
+
}], filesHovered: [{
|
|
5190
|
+
type: Output
|
|
5191
|
+
}], onDrop: [{
|
|
5192
|
+
type: HostListener,
|
|
5193
|
+
args: ['drop', ['$event']]
|
|
5194
|
+
}], onDragOver: [{
|
|
5195
|
+
type: HostListener,
|
|
5196
|
+
args: ['dragover', ['$event']]
|
|
5197
|
+
}], onDragLeave: [{
|
|
5198
|
+
type: HostListener,
|
|
5199
|
+
args: ['dragleave', ['$event']]
|
|
5200
|
+
}] } });
|
|
5201
|
+
|
|
5202
|
+
class EcabsFileDropDirectiveModule {
|
|
5203
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsFileDropDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5204
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsFileDropDirectiveModule, declarations: [EcabsFileDropDirective], imports: [CommonModule], exports: [EcabsFileDropDirective] });
|
|
5205
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsFileDropDirectiveModule, imports: [CommonModule] });
|
|
5206
|
+
}
|
|
5207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsFileDropDirectiveModule, decorators: [{
|
|
5208
|
+
type: NgModule,
|
|
5209
|
+
args: [{
|
|
5210
|
+
imports: [CommonModule],
|
|
5211
|
+
declarations: [EcabsFileDropDirective],
|
|
5212
|
+
exports: [EcabsFileDropDirective],
|
|
5213
|
+
}]
|
|
5214
|
+
}] });
|
|
5215
|
+
|
|
5216
|
+
class EcabsTimeRangeDirective {
|
|
5217
|
+
element;
|
|
5218
|
+
isDateTimeMask = false;
|
|
5219
|
+
considerSeconds = false;
|
|
5220
|
+
all = "All";
|
|
5221
|
+
maskedInputController;
|
|
5222
|
+
maskDateTime = [/\d/, /\d/, ':', /\d/, /\d/, ' ', '-', ' ', /\d/, /\d/, ':', /\d/, /\d/];
|
|
5223
|
+
constructor(element) {
|
|
5224
|
+
this.element = element;
|
|
5225
|
+
}
|
|
5226
|
+
ngOnInit() {
|
|
5227
|
+
this.maskedInputController = textMask.maskInput({
|
|
5228
|
+
inputElement: this.element.nativeElement,
|
|
5229
|
+
guide: true,
|
|
5230
|
+
showMask: false,
|
|
5231
|
+
keepCharPositions: true,
|
|
5232
|
+
mask: this.maskDateTime,
|
|
5233
|
+
pipe: function (conformedValue) {
|
|
5234
|
+
if (conformedValue === '__:__ - __:__') {
|
|
5235
|
+
return this.all;
|
|
5236
|
+
}
|
|
5237
|
+
return conformedValue;
|
|
5238
|
+
},
|
|
5239
|
+
});
|
|
5240
|
+
}
|
|
5241
|
+
ngOnDestroy() {
|
|
5242
|
+
this.maskedInputController.destroy();
|
|
5243
|
+
}
|
|
5244
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimeRangeDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5245
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsTimeRangeDirective, selector: "[ecabsTimeRange]", inputs: { isDateTimeMask: "isDateTimeMask", considerSeconds: "considerSeconds", all: "all" }, ngImport: i0 });
|
|
5246
|
+
}
|
|
5247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimeRangeDirective, decorators: [{
|
|
5248
|
+
type: Directive,
|
|
5249
|
+
args: [{
|
|
5250
|
+
selector: '[ecabsTimeRange]',
|
|
5251
|
+
}]
|
|
5252
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { isDateTimeMask: [{
|
|
5253
|
+
type: Input
|
|
5254
|
+
}], considerSeconds: [{
|
|
5255
|
+
type: Input
|
|
5256
|
+
}], all: [{
|
|
5257
|
+
type: Input
|
|
5258
|
+
}] } });
|
|
5259
|
+
|
|
5260
|
+
class EcabsTimeRangeDirectiveModule {
|
|
5261
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimeRangeDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5262
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimeRangeDirectiveModule, declarations: [EcabsTimeRangeDirective], imports: [CommonModule], exports: [EcabsTimeRangeDirective] });
|
|
5263
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimeRangeDirectiveModule, imports: [CommonModule] });
|
|
5264
|
+
}
|
|
5265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsTimeRangeDirectiveModule, decorators: [{
|
|
5266
|
+
type: NgModule,
|
|
5267
|
+
args: [{
|
|
5268
|
+
imports: [CommonModule],
|
|
5269
|
+
declarations: [EcabsTimeRangeDirective],
|
|
5270
|
+
exports: [EcabsTimeRangeDirective],
|
|
5271
|
+
}]
|
|
5272
|
+
}] });
|
|
5273
|
+
|
|
5274
|
+
class EcabsUppercaseMaskDirective {
|
|
5275
|
+
control;
|
|
5276
|
+
constructor(control) {
|
|
5277
|
+
this.control = control;
|
|
5278
|
+
}
|
|
5279
|
+
onInput(input) {
|
|
5280
|
+
const position = input.selectionStart;
|
|
5281
|
+
this.control.control.setValue(input.value.toUpperCase());
|
|
5282
|
+
input.setSelectionRange(position, position);
|
|
5283
|
+
}
|
|
5284
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsUppercaseMaskDirective, deps: [{ token: i5$1.NgControl }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5285
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsUppercaseMaskDirective, selector: "[formControlName][ecabsUppercaseInput]", host: { listeners: { "input": "onInput($event.target)" } }, ngImport: i0 });
|
|
5286
|
+
}
|
|
5287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsUppercaseMaskDirective, decorators: [{
|
|
5288
|
+
type: Directive,
|
|
5289
|
+
args: [{
|
|
5290
|
+
selector: '[formControlName][ecabsUppercaseInput]',
|
|
5291
|
+
}]
|
|
5292
|
+
}], ctorParameters: function () { return [{ type: i5$1.NgControl }]; }, propDecorators: { onInput: [{
|
|
5293
|
+
type: HostListener,
|
|
5294
|
+
args: ['input', ['$event.target']]
|
|
5295
|
+
}] } });
|
|
5296
|
+
|
|
5297
|
+
class EcabsUppercaseMaskDirectiveModule {
|
|
5298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsUppercaseMaskDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5299
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsUppercaseMaskDirectiveModule, declarations: [EcabsUppercaseMaskDirective], imports: [CommonModule], exports: [EcabsUppercaseMaskDirective] });
|
|
5300
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsUppercaseMaskDirectiveModule, imports: [CommonModule] });
|
|
5301
|
+
}
|
|
5302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsUppercaseMaskDirectiveModule, decorators: [{
|
|
5303
|
+
type: NgModule,
|
|
5304
|
+
args: [{
|
|
5305
|
+
imports: [CommonModule],
|
|
5306
|
+
declarations: [EcabsUppercaseMaskDirective],
|
|
5307
|
+
exports: [EcabsUppercaseMaskDirective],
|
|
5308
|
+
}]
|
|
5309
|
+
}] });
|
|
5310
|
+
|
|
5311
|
+
class EcabsAttachEmbeddedViewDirective {
|
|
5312
|
+
viewContainerRef;
|
|
5313
|
+
embeddedTemplate;
|
|
5314
|
+
constructor(viewContainerRef) {
|
|
5315
|
+
this.viewContainerRef = viewContainerRef;
|
|
5316
|
+
}
|
|
5317
|
+
ngAfterViewInit() {
|
|
5318
|
+
setTimeout(() => this.viewContainerRef.createEmbeddedView(this.embeddedTemplate));
|
|
5319
|
+
}
|
|
5320
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsAttachEmbeddedViewDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5321
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsAttachEmbeddedViewDirective, selector: "[ecabsAttachEmbeddedView]", inputs: { embeddedTemplate: "embeddedTemplate" }, ngImport: i0 });
|
|
5322
|
+
}
|
|
5323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsAttachEmbeddedViewDirective, decorators: [{
|
|
5324
|
+
type: Directive,
|
|
5325
|
+
args: [{
|
|
5326
|
+
selector: '[ecabsAttachEmbeddedView]',
|
|
5327
|
+
}]
|
|
5328
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { embeddedTemplate: [{
|
|
5329
|
+
type: Input
|
|
5330
|
+
}] } });
|
|
5331
|
+
|
|
5332
|
+
class EcabsAttachEmbeddedViewDirectiveModule {
|
|
5333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsAttachEmbeddedViewDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5334
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsAttachEmbeddedViewDirectiveModule, declarations: [EcabsAttachEmbeddedViewDirective], imports: [CommonModule], exports: [EcabsAttachEmbeddedViewDirective] });
|
|
5335
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsAttachEmbeddedViewDirectiveModule, imports: [CommonModule] });
|
|
5336
|
+
}
|
|
5337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsAttachEmbeddedViewDirectiveModule, decorators: [{
|
|
5338
|
+
type: NgModule,
|
|
5339
|
+
args: [{
|
|
5340
|
+
imports: [CommonModule],
|
|
5341
|
+
declarations: [EcabsAttachEmbeddedViewDirective],
|
|
5342
|
+
exports: [EcabsAttachEmbeddedViewDirective],
|
|
5343
|
+
}]
|
|
5344
|
+
}] });
|
|
5345
|
+
|
|
5346
|
+
class EcabsElementMultiplierDirective {
|
|
5347
|
+
templateRef;
|
|
5348
|
+
viewContainer;
|
|
5349
|
+
set appElementMultiplier(times) {
|
|
5350
|
+
for (let i = 0; i < times; i++) {
|
|
5351
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
5352
|
+
}
|
|
5353
|
+
}
|
|
5354
|
+
constructor(templateRef, viewContainer) {
|
|
5355
|
+
this.templateRef = templateRef;
|
|
5356
|
+
this.viewContainer = viewContainer;
|
|
5357
|
+
}
|
|
5358
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsElementMultiplierDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5359
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EcabsElementMultiplierDirective, selector: "[ecabsElementMultiplier]", inputs: { appElementMultiplier: "appElementMultiplier" }, ngImport: i0 });
|
|
5360
|
+
}
|
|
5361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsElementMultiplierDirective, decorators: [{
|
|
5362
|
+
type: Directive,
|
|
5363
|
+
args: [{
|
|
5364
|
+
selector: '[ecabsElementMultiplier]',
|
|
5365
|
+
}]
|
|
5366
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { appElementMultiplier: [{
|
|
5367
|
+
type: Input
|
|
5368
|
+
}] } });
|
|
5369
|
+
|
|
5370
|
+
class EcabsElementMultiplierDirectiveModule {
|
|
5371
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsElementMultiplierDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5372
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsElementMultiplierDirectiveModule, declarations: [EcabsElementMultiplierDirective], imports: [CommonModule], exports: [EcabsElementMultiplierDirective] });
|
|
5373
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsElementMultiplierDirectiveModule, imports: [CommonModule] });
|
|
5374
|
+
}
|
|
5375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsElementMultiplierDirectiveModule, decorators: [{
|
|
5376
|
+
type: NgModule,
|
|
5377
|
+
args: [{
|
|
5378
|
+
imports: [CommonModule],
|
|
5379
|
+
declarations: [EcabsElementMultiplierDirective],
|
|
5380
|
+
exports: [EcabsElementMultiplierDirective],
|
|
5381
|
+
}]
|
|
5382
|
+
}] });
|
|
5383
|
+
|
|
5060
5384
|
class EcabsValidationComponent {
|
|
5061
5385
|
validations;
|
|
5062
5386
|
form;
|
|
@@ -5148,7 +5472,7 @@ class EcabsProfileComponent {
|
|
|
5148
5472
|
}
|
|
5149
5473
|
}
|
|
5150
5474
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsProfileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5151
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EcabsProfileComponent, selector: "ecabs-profile", inputs: { avatar: "avatar", name: "name", title: "title" }, outputs: { avatarChange: "avatarChange" }, usesOnChanges: true, ngImport: i0, template: "<!-- eslint-disable-next-line -->\r\n<ul (click)=\"avatarChange.emit()\" class=\"flex text-black cursor-pointer\">\r\n <li class=\"md:mr-3\">\r\n <div *ngIf=\"!useAvatar; else avatarTpl\" ecabsDynamicBgColor [params]=\"name\"\r\n class=\"flex h-12 w-12 rounded-full bg-gray-200 items-center justify-center text-white\">\r\n <span class=\"text-xl font-medium\">{{ initials }}</span>\r\n </div>\r\n </li>\r\n\r\n <li class=\"hidden md:flex flex-1 flex-col justify-center\">\r\n <div class=\"font-semibold\">{{ name }}</div>\r\n <div class=\"text-xs\">{{ title }}</div>\r\n </li>\r\n</ul>\r\n\r\n<ng-template #avatarTpl>\r\n <!-- eslint-disable-next-line -->\r\n <img [src]=\"avatar\" class=\"rounded-full\"/>\r\n</ng-template>\r\n\r\n", styles: ["img{width:40px;height:40px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
5475
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EcabsProfileComponent, selector: "ecabs-profile", inputs: { avatar: "avatar", name: "name", title: "title" }, outputs: { avatarChange: "avatarChange" }, usesOnChanges: true, ngImport: i0, template: "<!-- eslint-disable-next-line -->\r\n<ul (click)=\"avatarChange.emit()\" class=\"flex text-black cursor-pointer\">\r\n <li class=\"md:mr-3\">\r\n <div *ngIf=\"!useAvatar; else avatarTpl\" ecabsDynamicBgColor [params]=\"name\"\r\n class=\"flex h-12 w-12 rounded-full bg-gray-200 items-center justify-center text-white\">\r\n <span class=\"text-xl font-medium\">{{ initials }}</span>\r\n </div>\r\n </li>\r\n\r\n <li class=\"hidden md:flex flex-1 flex-col justify-center\">\r\n <div class=\"font-semibold\">{{ name }}</div>\r\n <div class=\"text-xs\">{{ title }}</div>\r\n </li>\r\n</ul>\r\n\r\n<ng-template #avatarTpl>\r\n <!-- eslint-disable-next-line -->\r\n <img [src]=\"avatar\" class=\"rounded-full\"/>\r\n</ng-template>\r\n\r\n", styles: ["img{width:40px;height:40px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: EcabsDynamicBgColorDirective, selector: "[ecabsDynamicBgColor]", inputs: ["params", "saturation", "lightness"] }] });
|
|
5152
5476
|
}
|
|
5153
5477
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsProfileComponent, decorators: [{
|
|
5154
5478
|
type: Component,
|
|
@@ -5165,14 +5489,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5165
5489
|
|
|
5166
5490
|
class EcabsProfileModule {
|
|
5167
5491
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsProfileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5168
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsProfileModule, declarations: [EcabsProfileComponent], imports: [CommonModule,
|
|
5169
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsProfileModule, imports: [CommonModule,
|
|
5492
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsProfileModule, declarations: [EcabsProfileComponent], imports: [CommonModule, EcabsDynamicBgColorDirectiveModule], exports: [EcabsProfileComponent] });
|
|
5493
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsProfileModule, imports: [CommonModule, EcabsDynamicBgColorDirectiveModule] });
|
|
5170
5494
|
}
|
|
5171
5495
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsProfileModule, decorators: [{
|
|
5172
5496
|
type: NgModule,
|
|
5173
5497
|
args: [{
|
|
5174
5498
|
declarations: [EcabsProfileComponent],
|
|
5175
|
-
imports: [CommonModule,
|
|
5499
|
+
imports: [CommonModule, EcabsDynamicBgColorDirectiveModule],
|
|
5176
5500
|
exports: [EcabsProfileComponent],
|
|
5177
5501
|
}]
|
|
5178
5502
|
}] });
|
|
@@ -6105,5 +6429,5 @@ const removeEmpty = (o, exceptProperties = []) => {
|
|
|
6105
6429
|
* Generated bundle index. Do not edit.
|
|
6106
6430
|
*/
|
|
6107
6431
|
|
|
6108
|
-
export { ButtonsComponent,
|
|
6432
|
+
export { ButtonsComponent, EcabsActiveStatusFilterComponent, EcabsActiveStatusFilterModule, EcabsAttachEmbeddedViewDirective, EcabsAttachEmbeddedViewDirectiveModule, EcabsBreadcrumbComponent, EcabsBreadcrumbModule, EcabsButtonsModule, EcabsCheckPermissionDirectiveModule, EcabsCheckPermissionsDirective, EcabsCheckboxToggleComponent, EcabsCheckboxToggleModule, EcabsComponentsService, EcabsDatePickerComponent, EcabsDatePickerHeaderComponent, EcabsDatePickerHeaderService, EcabsDatePickerModule, EcabsDateRangeModule, EcabsDateRangePickerComponent, EcabsDateRangePickerHeaderComponent, EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent, EcabsDateTimeRangePickerComponent, EcabsDateTimeRangePickerHeaderComponent, EcabsDatetimePickerModule, EcabsDatetimeRangePickerModule, EcabsDialogConfirmComponent, EcabsDialogConfirmModule, EcabsDialogMessageComponent, EcabsDialogMessageModule, EcabsDigitsOnlyDirective, EcabsDigitsOnlyDirectivesModule, EcabsDomObserverDirective, EcabsDomObserverDirectiveModule, EcabsDynamicBgColorDirective, EcabsDynamicBgColorDirectiveModule, EcabsElementMultiplierDirective, EcabsElementMultiplierDirectiveModule, EcabsEmptyPlaceholderComponent, EcabsEmptyPlaceholderModule, EcabsExpansionPanelComponent, EcabsExpansionPanelModule, EcabsFileDropDirective, EcabsFileDropDirectiveModule, EcabsHeaderComponent, EcabsHeaderModule, EcabsHintComponent, EcabsHintModule, EcabsIncrementComponent, EcabsIncrementModule, EcabsInputComponent, EcabsInputModule, EcabsLanguageSelectorComponent, EcabsLanguageSelectorModule, EcabsLoadingComponent, EcabsLoadingModule, EcabsLogoComponent, EcabsLogoModule, EcabsMaskDateDirective, EcabsMaskDateDirectiveModule, EcabsMaskTimeDirective, EcabsMaskTimeDirectiveModule, EcabsMaxDirective, EcabsMenuItemsComponent, EcabsMenuItemsModule, EcabsMinDirective, EcabsMinMaxDirectiveModule, EcabsMultipleDatesPickerComponent, EcabsMultipleDatesPickerModule, EcabsNoteComponent, EcabsNoteModule, EcabsNumberBorderDirective, EcabsNumberBorderDirectiveModule, EcabsPaginatorDirective, EcabsPaginatorDirectiveModule, EcabsPhoneComponent, EcabsPhoneModule, EcabsPipesModule, EcabsPlaceAutocompleteComponent, EcabsPlaceAutocompleteModule, EcabsProfileComponent, EcabsProfileModule, EcabsRadioButtonListComponent, EcabsRadioButtonListModule, EcabsSelectComponent, EcabsSelectModule, EcabsSelectV2Component, EcabsSelectV2Module, EcabsSidebarComponent, EcabsSidebarModule, EcabsSliderComponent, EcabsSliderModule, EcabsSpinnerComponent, EcabsTableFilterWrapperComponent, EcabsTableFilterWrapperModule, EcabsTableModule, EcabsTextAreaModule, EcabsTextareaComponent, EcabsTimeListPanelComponent, EcabsTimeRangeDirective, EcabsTimeRangeDirectiveModule, EcabsTimepickerComponent, EcabsTimepickerModule, EcabsTooltipIfTruncatedDirective, EcabsTooltipIfTruncatedDirectiveModule, EcabsTruncatePipe, EcabsUppercaseMaskDirective, EcabsUppercaseMaskDirectiveModule, EcabsValidationComponent, EcabsValidationModule, EcabsValidationViewModule, FormTimePickerService, GenericComponentConfig, HeaderService, MATERIAL_DATETIMEPICKER_FORMATS, TableComponent, UnsubscribeService, ValidationComponent, removeEmpty, removeNullUndefineds, scrollFactory, sortGeneric };
|
|
6109
6433
|
//# sourceMappingURL=ecabs-components.mjs.map
|