ca-components 1.3.35 → 1.3.36
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/assets/scss/input-dropdown-test.scss +2030 -0
- package/esm2022/lib/ca-components.module.mjs +2 -2
- package/esm2022/lib/components/ca-input-test/base-classes/ca-input-event-manager.mjs +24 -0
- package/esm2022/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.mjs +66 -0
- package/esm2022/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.mjs +48 -0
- package/esm2022/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.mjs +63 -0
- package/esm2022/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.mjs +85 -0
- package/esm2022/lib/components/ca-input-test/config/ca-input.config.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/config/index.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/directives/caps-lock.directive.mjs +50 -0
- package/esm2022/lib/components/ca-input-test/directives/command-visible.directive.mjs +48 -0
- package/esm2022/lib/components/ca-input-test/directives/index.mjs +6 -0
- package/esm2022/lib/components/ca-input-test/directives/input-max-value.directive.mjs +53 -0
- package/esm2022/lib/components/ca-input-test/directives/min-max-value.directive.mjs +41 -0
- package/esm2022/lib/components/ca-input-test/directives/price_format.directive.mjs +41 -0
- package/esm2022/lib/components/ca-input-test/directives/restrict-input.directive.mjs +94 -0
- package/esm2022/lib/components/ca-input-test/enums/index.mjs +5 -0
- package/esm2022/lib/components/ca-input-test/enums/input-commands-action.enum.mjs +11 -0
- package/esm2022/lib/components/ca-input-test/enums/input-commands-type.enum.mjs +8 -0
- package/esm2022/lib/components/ca-input-test/enums/input-config-name-string.enum.mjs +9 -0
- package/esm2022/lib/components/ca-input-test/enums/input-string.enum.mjs +114 -0
- package/esm2022/lib/components/ca-input-test/enums/input-text-transform.enum.mjs +9 -0
- package/esm2022/lib/components/ca-input-test/input-test.component.mjs +273 -0
- package/esm2022/lib/components/ca-input-test/mixins/input-command.mixin.mjs +124 -0
- package/esm2022/lib/components/ca-input-test/mixins/input-helper.mixin.mjs +49 -0
- package/esm2022/lib/components/ca-input-test/mixins/restriction-pipe.mixin.mjs +34 -0
- package/esm2022/lib/components/ca-input-test/models/base.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/models/command-click.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/models/commands-event.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/models/index.mjs +4 -0
- package/esm2022/lib/components/ca-input-test/models/label-color.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/pipes/color-finder.pipe.mjs +62 -0
- package/esm2022/lib/components/ca-input-test/pipes/form-control.pipe.mjs +17 -0
- package/esm2022/lib/components/ca-input-test/pipes/index.mjs +20 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-class.pipe.mjs +155 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-clear-class.pipe.mjs +87 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-container-class.pipe.mjs +58 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-datetime-picker-class.pipe.mjs +77 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-dropdown-arrow-class.pipe.mjs +61 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-error.pipe.mjs +88 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-password-eye-class.pipe.mjs +37 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-pattern.pipe.mjs +326 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-placeholder-icon-right.pipe.mjs +46 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-placeholder-icon.class.pipe.mjs +58 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-placeholder-text-class.pipe.mjs +45 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-type.pipe.mjs +25 -0
- package/esm2022/lib/components/ca-input-test/pipes/label-class.pipe.mjs +38 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-clear.pipe.mjs +22 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-dropdown-arrow.pipe.mjs +26 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-invalid-danger-mark.pipe.mjs +27 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-placeholder-text.pipe.mjs +24 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-valid-check.pipe.mjs +27 -0
- package/esm2022/lib/components/ca-input-test/utils/index.mjs +3 -0
- package/esm2022/lib/components/ca-input-test/utils/input-change-value.type.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/utils/input-svg-routes.mjs +17 -0
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/ca-components.mjs +2382 -425
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/ca-components.module.d.ts +1 -1
- package/lib/components/ca-input-test/base-classes/ca-input-event-manager.d.ts +16 -0
- package/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.d.ts +20 -0
- package/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.d.ts +16 -0
- package/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.d.ts +20 -0
- package/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.d.ts +26 -0
- package/lib/components/ca-input-test/config/ca-input.config.d.ts +168 -0
- package/lib/components/ca-input-test/config/index.d.ts +1 -0
- package/lib/components/ca-input-test/directives/caps-lock.directive.d.ts +14 -0
- package/lib/components/ca-input-test/directives/index.d.ts +5 -0
- package/lib/components/ca-input-test/directives/input-max-value.directive.d.ts +12 -0
- package/lib/components/ca-input-test/directives/min-max-value.directive.d.ts +13 -0
- package/lib/components/ca-input-test/directives/price_format.directive.d.ts +11 -0
- package/lib/components/ca-input-test/directives/restrict-input.directive.d.ts +27 -0
- package/lib/components/ca-input-test/enums/index.d.ts +4 -0
- package/lib/components/ca-input-test/enums/input-commands-action.enum.d.ts +9 -0
- package/lib/components/ca-input-test/enums/input-commands-type.enum.d.ts +6 -0
- package/lib/components/ca-input-test/enums/input-config-name-string.enum.d.ts +7 -0
- package/lib/components/ca-input-test/enums/input-string.enum.d.ts +112 -0
- package/lib/components/ca-input-test/enums/input-text-transform.enum.d.ts +6 -0
- package/lib/components/{ca-input/input-test → ca-input-test}/input-test.component.d.ts +13 -12
- package/lib/components/ca-input-test/mixins/restriction-pipe.mixin.d.ts +12 -0
- package/lib/components/ca-input-test/models/command-click.model.d.ts +5 -0
- package/lib/components/ca-input-test/models/commands-event.model.d.ts +5 -0
- package/lib/components/ca-input-test/models/index.d.ts +3 -0
- package/lib/components/ca-input-test/models/label-color.model.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/color-finder.pipe.d.ts +7 -0
- package/lib/components/ca-input-test/pipes/form-control.pipe.d.ts +8 -0
- package/lib/components/ca-input-test/pipes/index.d.ts +19 -0
- package/lib/components/ca-input-test/pipes/input-class.pipe.d.ts +13 -0
- package/lib/components/ca-input-test/pipes/input-clear-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-container-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-datetime-picker-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-dropdown-arrow-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-error.pipe.d.ts +7 -0
- package/lib/components/ca-input-test/pipes/input-password-eye-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-pattern.pipe.d.ts +38 -0
- package/lib/components/ca-input-test/pipes/input-placeholder-icon-right.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-placeholder-icon.class.pipe.d.ts +12 -0
- package/lib/components/ca-input-test/pipes/input-placeholder-text-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-type.pipe.d.ts +7 -0
- package/lib/components/ca-input-test/pipes/label-class.pipe.d.ts +10 -0
- package/lib/components/ca-input-test/pipes/show-clear.pipe.d.ts +8 -0
- package/lib/components/ca-input-test/pipes/show-dropdown-arrow.pipe.d.ts +8 -0
- package/lib/components/ca-input-test/pipes/show-invalid-danger-mark.pipe.d.ts +9 -0
- package/lib/components/ca-input-test/pipes/show-placeholder-text.pipe.d.ts +9 -0
- package/lib/components/ca-input-test/pipes/show-valid-check.pipe.d.ts +9 -0
- package/lib/components/ca-input-test/utils/index.d.ts +2 -0
- package/lib/components/ca-input-test/utils/input-change-value.type.d.ts +1 -0
- package/lib/components/ca-input-test/utils/input-svg-routes.d.ts +16 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2022/lib/components/ca-input/directives/command-visible.directive.mjs +0 -48
- package/esm2022/lib/components/ca-input/input-test/input-test.component.mjs +0 -266
- package/esm2022/lib/components/ca-input/mixins/input-command.mixin.mjs +0 -127
- package/esm2022/lib/components/ca-input/mixins/input-helper.mixin.mjs +0 -49
- package/esm2022/lib/components/ca-input/models/base.model.mjs +0 -2
- /package/lib/components/{ca-input → ca-input-test}/directives/command-visible.directive.d.ts +0 -0
- /package/lib/components/{ca-input → ca-input-test}/mixins/input-command.mixin.d.ts +0 -0
- /package/lib/components/{ca-input → ca-input-test}/mixins/input-helper.mixin.d.ts +0 -0
- /package/lib/components/{ca-input → ca-input-test}/models/base.model.d.ts +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { AbstractControl, UntypedFormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormControlPipe implements PipeTransform {
|
|
5
|
+
transform(value: AbstractControl): UntypedFormControl;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormControlPipe, "formControl", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './color-finder.pipe';
|
|
2
|
+
export * from './form-control.pipe';
|
|
3
|
+
export * from './input-class.pipe';
|
|
4
|
+
export * from './input-clear-class.pipe';
|
|
5
|
+
export * from './input-container-class.pipe';
|
|
6
|
+
export * from './input-datetime-picker-class.pipe';
|
|
7
|
+
export * from './input-dropdown-arrow-class.pipe';
|
|
8
|
+
export * from './input-error.pipe';
|
|
9
|
+
export * from './input-password-eye-class.pipe';
|
|
10
|
+
export * from './input-placeholder-icon.class.pipe';
|
|
11
|
+
export * from './input-type.pipe';
|
|
12
|
+
export * from './label-class.pipe';
|
|
13
|
+
export * from './show-clear.pipe';
|
|
14
|
+
export * from './show-dropdown-arrow.pipe';
|
|
15
|
+
export * from './show-invalid-danger-mark.pipe';
|
|
16
|
+
export * from './show-valid-check.pipe';
|
|
17
|
+
export * from './input-placeholder-icon-right.pipe';
|
|
18
|
+
export * from './input-placeholder-text-class.pipe';
|
|
19
|
+
export * from './show-placeholder-text.pipe';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { ICaInput } from '../config/ca-input.config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputClassPipe implements PipeTransform {
|
|
6
|
+
transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, isTouchedInput: boolean, inputConfig: ICaInput, input: {
|
|
7
|
+
value: string;
|
|
8
|
+
}, isVisibleCommands: boolean, value: string | number, superControlInvalid: boolean | undefined, superControlTouched: boolean | undefined, isDropdownToggler: boolean, isEditInput: boolean, template: string): {
|
|
9
|
+
[key: string]: boolean | undefined | number | null | string;
|
|
10
|
+
};
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputClassPipe, never>;
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputClassPipe, "inputClass", true>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { ICaInput } from '../config/ca-input.config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputClearClassPipe implements PipeTransform {
|
|
6
|
+
transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, incorrectValue: boolean, selectedDropdownLabelColor: boolean, template: string, value: string): {
|
|
7
|
+
[key: string]: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputClearClassPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputClearClassPipe, "inputClearClass", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { ICaInput } from '../config/ca-input.config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputContainerClassPipe implements PipeTransform {
|
|
6
|
+
transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, isTouchedInput: boolean, inputConfig: ICaInput, value: string): {
|
|
7
|
+
[key: string]: boolean | undefined | null | string;
|
|
8
|
+
};
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputContainerClassPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputContainerClassPipe, "inputContainerClass", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config/ca-input.config';
|
|
3
|
+
import { AbstractControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputDatetimePickerClassPipe implements PipeTransform {
|
|
6
|
+
transform(isFocusInput: boolean | undefined, isVisibleCommands: boolean, getSuperControl: AbstractControl<any, any> | null, inputConfig: Partial<ICaInput>, isTouchedInput: boolean | undefined, value: string): {
|
|
7
|
+
[key: string]: boolean | undefined | number;
|
|
8
|
+
};
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputDatetimePickerClassPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputDatetimePickerClassPipe, "inputDatetimePickerClass", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { ICaInput } from '../config/ca-input.config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputDropdownArrowClassPipe implements PipeTransform {
|
|
6
|
+
transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, isTouchedInput: boolean, value: string): {
|
|
7
|
+
[key: string]: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputDropdownArrowClassPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputDropdownArrowClassPipe, "inputDropdownArrowClass", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InputErrorPipe implements PipeTransform {
|
|
4
|
+
transform(value: any, inputName?: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputErrorPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputErrorPipe, "inputError", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { AbstractControl } from "@angular/forms";
|
|
3
|
+
import { ICaInput } from "../config/ca-input.config";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputPasswordEyeClassPipe implements PipeTransform {
|
|
6
|
+
transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, isTouchedInput: boolean, value: string): {
|
|
7
|
+
[key: string]: boolean;
|
|
8
|
+
};
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputPasswordEyeClassPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputPasswordEyeClassPipe, "inputPasswordEyeClass", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InputPatternPipe implements PipeTransform {
|
|
5
|
+
transform(inputName: string, inputConfig: ICaInput): {
|
|
6
|
+
regex: RegExp;
|
|
7
|
+
restrictMultipeDots: boolean;
|
|
8
|
+
isDecimalAndDotOnly: boolean;
|
|
9
|
+
restrictConsecutiveSpaces?: undefined;
|
|
10
|
+
restrictConsecutiveDots?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
regex: RegExp;
|
|
13
|
+
isDecimalAndDotOnly: boolean;
|
|
14
|
+
restrictMultipeDots?: undefined;
|
|
15
|
+
restrictConsecutiveSpaces?: undefined;
|
|
16
|
+
restrictConsecutiveDots?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
regex: RegExp;
|
|
19
|
+
restrictConsecutiveSpaces: boolean;
|
|
20
|
+
restrictConsecutiveDots: boolean;
|
|
21
|
+
restrictMultipeDots: boolean;
|
|
22
|
+
isDecimalAndDotOnly?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
regex: RegExp;
|
|
25
|
+
restrictMultipeDots?: undefined;
|
|
26
|
+
isDecimalAndDotOnly?: undefined;
|
|
27
|
+
restrictConsecutiveSpaces?: undefined;
|
|
28
|
+
restrictConsecutiveDots?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
regex: RegExp;
|
|
31
|
+
restrictConsecutiveSpaces: boolean;
|
|
32
|
+
restrictConsecutiveDots: boolean;
|
|
33
|
+
restrictMultipeDots: boolean;
|
|
34
|
+
isDecimalAndDotOnly: boolean;
|
|
35
|
+
};
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputPatternPipe, never>;
|
|
37
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputPatternPipe, "inputPattern", true>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config';
|
|
3
|
+
import { AbstractControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputPlaceholderIconRightClassPipe implements PipeTransform {
|
|
6
|
+
transform(isFocusInput: boolean, getSuperControl: AbstractControl<any, any> | null, inputConfig: ICaInput, isTouchedInput: boolean, value: string): {
|
|
7
|
+
[key: string]: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputPlaceholderIconRightClassPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputPlaceholderIconRightClassPipe, "inputPlaceholderIconRightClass", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { AbstractControl } from "@angular/forms";
|
|
3
|
+
import { ICaInput } from "../config/ca-input.config";
|
|
4
|
+
import { LabelColor } from "../models/label-color.model";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class InputPlaceholderIconClassPipe implements PipeTransform {
|
|
7
|
+
transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, selectedDropdownLabelColor: LabelColor | null, isTouchedInput: boolean, isEditInput: boolean, value: string): {
|
|
8
|
+
[key: string]: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputPlaceholderIconClassPipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputPlaceholderIconClassPipe, "inputPlaceholderIconClass", true>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config';
|
|
3
|
+
import { AbstractControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputPlaceholderTextClassPipe implements PipeTransform {
|
|
6
|
+
transform(isFocusInput: boolean, isTouchedInput: boolean, getSuperControl: AbstractControl<any, any> | null, inputConfig: ICaInput, isVisibleCommands: boolean, value: string): {
|
|
7
|
+
[key: string]: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputPlaceholderTextClassPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputPlaceholderTextClassPipe, "inputPlaceholderTextClass", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InputTypePipe implements PipeTransform {
|
|
4
|
+
transform(type: string, value: boolean): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputTypePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputTypePipe, "inputType", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config/ca-input.config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LabelClassPipe implements PipeTransform {
|
|
5
|
+
transform(value: string | number, isFocusInput: boolean, inputConfig: ICaInput, isTouchedInput: boolean, superControlInvalid?: boolean, superControlTouched?: boolean): {
|
|
6
|
+
[key: string]: boolean | null | undefined | string | number;
|
|
7
|
+
};
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LabelClassPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LabelClassPipe, "labelClass", true>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { ICaInput } from "../config/ca-input.config";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ShowClearPipe implements PipeTransform {
|
|
5
|
+
transform(inputConfig: ICaInput): boolean | undefined;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowClearPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShowClearPipe, "showClear", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config/ca-input.config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ShowDropdownArrowPipe implements PipeTransform {
|
|
5
|
+
transform(inputConfig: ICaInput): boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowDropdownArrowPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShowDropdownArrowPipe, "showDropdownArrow", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { AbstractControl } from "@angular/forms";
|
|
3
|
+
import { ICaInput } from "../config/ca-input.config";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ShowInvalidDangerMarkPipe implements PipeTransform {
|
|
6
|
+
transform(inputConfig: ICaInput, getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, isTouchedInput: boolean, value: string): boolean | undefined;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowInvalidDangerMarkPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShowInvalidDangerMarkPipe, "showInvalidDangerMark", true>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config/ca-input.config';
|
|
3
|
+
import { AbstractControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ShowPlaceholderTextPipe implements PipeTransform {
|
|
6
|
+
transform(inputConfig: ICaInput, getSuperControl: AbstractControl<any, any> | null, isVisibleCommands: boolean, value: string): boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowPlaceholderTextPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShowPlaceholderTextPipe, "showPlaceholderText", true>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { AbstractControl } from "@angular/forms";
|
|
3
|
+
import { ICaInput } from "../config/ca-input.config";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ShowValidCheckPipe implements PipeTransform {
|
|
6
|
+
transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, value: string): boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowValidCheckPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShowValidCheckPipe, "showValidCheck", true>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputChangeValue = string | number | Date;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class InputSvgRoutes {
|
|
2
|
+
static removeInputSvg: string;
|
|
3
|
+
static xClearSvg: string;
|
|
4
|
+
static xClearCommonSvg: string;
|
|
5
|
+
static confirmSvg: string;
|
|
6
|
+
static dangerSvg: string;
|
|
7
|
+
static eyeVisibleSvg: string;
|
|
8
|
+
static eyeHiddenSvg: string;
|
|
9
|
+
static decrementSvg: string;
|
|
10
|
+
static incrementSvg: string;
|
|
11
|
+
static inputPenSvg: string;
|
|
12
|
+
static inputDropdownArrowSvg: string;
|
|
13
|
+
static dynamicLabelSvg: string;
|
|
14
|
+
static dynamicFocusLabelSvg: string;
|
|
15
|
+
static ownerBadgeBlueSvg: string;
|
|
16
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export * from './lib/components/ca-new-filter/components/ca-filter-list-dropdown
|
|
|
63
63
|
export * from './lib/components/ca-chart-manager/ca-chart-manager.component';
|
|
64
64
|
export * from './lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component';
|
|
65
65
|
export * from './lib/components/ca-map/utils/services';
|
|
66
|
-
export * from './lib/components/ca-input
|
|
66
|
+
export * from './lib/components/ca-input-test/input-test.component';
|
|
67
67
|
export * from './lib/components/ca-checkbox/ca-checkbox.component';
|
|
68
68
|
export * from './lib/components/ca-modal-button/enums';
|
|
69
69
|
export * from './lib/components/ca-new-filter/enums';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Directive, EventEmitter, HostListener, Input, Output, } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class CommandVisibleDirective {
|
|
4
|
-
constructor(el) {
|
|
5
|
-
this.el = el;
|
|
6
|
-
this.commandVisible = new EventEmitter(); // ✅ Emit true/false
|
|
7
|
-
}
|
|
8
|
-
onKeyDown(event) {
|
|
9
|
-
if ((event.key === 'Tab' && event.shiftKey) || event.key === 'Tab') {
|
|
10
|
-
this.emitCommandVisible(false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
onWindowBlur() {
|
|
14
|
-
this.emitCommandVisible(false);
|
|
15
|
-
}
|
|
16
|
-
onFocus() {
|
|
17
|
-
// Show commands on focus
|
|
18
|
-
this.emitCommandVisible(true);
|
|
19
|
-
}
|
|
20
|
-
emitCommandVisible(status) {
|
|
21
|
-
if (this.restrictInput.commands) {
|
|
22
|
-
this.commandVisible.emit(status);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommandVisibleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
26
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: CommandVisibleDirective, isStandalone: true, selector: "[commandVisible]", inputs: { restrictInput: "restrictInput" }, outputs: { commandVisible: "commandVisible" }, host: { listeners: { "keydown": "onKeyDown($event)", "blur": "onWindowBlur()", "focus": "onFocus()" } }, ngImport: i0 }); }
|
|
27
|
-
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommandVisibleDirective, decorators: [{
|
|
29
|
-
type: Directive,
|
|
30
|
-
args: [{
|
|
31
|
-
selector: '[commandVisible]',
|
|
32
|
-
standalone: true,
|
|
33
|
-
}]
|
|
34
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { commandVisible: [{
|
|
35
|
-
type: Output
|
|
36
|
-
}], restrictInput: [{
|
|
37
|
-
type: Input
|
|
38
|
-
}], onKeyDown: [{
|
|
39
|
-
type: HostListener,
|
|
40
|
-
args: ['keydown', ['$event']]
|
|
41
|
-
}], onWindowBlur: [{
|
|
42
|
-
type: HostListener,
|
|
43
|
-
args: ['blur']
|
|
44
|
-
}], onFocus: [{
|
|
45
|
-
type: HostListener,
|
|
46
|
-
args: ['focus']
|
|
47
|
-
}] } });
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC12aXNpYmxlLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2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