i-tech-shared-components 1.1.4 → 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/docs/README.md +12 -5
- package/ng-package.json +17 -0
- package/package.json +19 -32
- package/src/README.md +0 -0
- package/src/lib/components/autocomplete-select/autocomplete-select.component.html +211 -0
- package/src/lib/components/autocomplete-select/autocomplete-select.component.scss +58 -0
- package/src/lib/components/autocomplete-select/autocomplete-select.component.ts +430 -0
- package/src/lib/components/autocomplete-select/loader.svg +6 -0
- package/src/lib/components/button/button.component.css +0 -0
- package/src/lib/components/button/button.component.html +48 -0
- package/src/lib/components/button/button.component.spec.ts +23 -0
- package/src/lib/components/button/button.component.ts +106 -0
- package/src/lib/components/clear-value/clear-value.component.ts +44 -0
- package/src/lib/components/date-picker/date-picker.component.html +61 -0
- package/src/lib/components/date-picker/date-picker.component.ts +75 -0
- package/src/lib/components/date-range-datepicker/date-range-datepicker.component.html +44 -0
- package/src/lib/components/date-range-datepicker/date-range-datepicker.component.ts +105 -0
- package/src/lib/components/icon-button/icon-button.component.html +27 -0
- package/src/lib/components/icon-button/icon-button.component.scss +0 -0
- package/src/lib/components/icon-button/icon-button.component.ts +37 -0
- package/src/lib/components/label/label.component.html +15 -0
- package/src/lib/components/label/label.component.ts +33 -0
- package/src/lib/components/menu/menu.component.html +20 -0
- package/src/lib/components/menu/menu.component.scss +9 -0
- package/src/lib/components/menu/menu.component.ts +39 -0
- package/src/lib/components/text/text-input.component.html +91 -0
- package/src/lib/components/text/text-input.component.ts +73 -0
- package/src/lib/directives/date-mask.directive.ts +97 -0
- package/src/lib/directives/input-mask.directive.ts +93 -0
- package/src/lib/interfaces/app-input.interface.ts +32 -0
- package/src/lib/interfaces/autocomplete-configs.interface.ts +37 -0
- package/src/lib/interfaces/button-types.enum.ts +19 -0
- package/src/lib/interfaces/dropdown-selection.constants.ts +11 -0
- package/src/lib/interfaces/label-type.enum.ts +14 -0
- package/src/lib/pipes/array-to-string.pipe.ts +13 -0
- package/src/lib/pipes/generate-error-messages.pipe.ts +31 -0
- package/src/lib/pipes/get-value-by-key-from-object.pipe.ts +46 -0
- package/src/lib/services/input.service.ts +30 -0
- package/{public-api.d.ts → src/public-api.ts} +20 -15
- package/theme.scss +4 -2
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/.npmignore +0 -2
- package/esm2022/i-tech-shared-components.mjs +0 -5
- package/esm2022/lib/components/autocomplete-select/autocomplete-select.component.mjs +0 -409
- package/esm2022/lib/components/button/button.component.mjs +0 -122
- package/esm2022/lib/components/clear-value/clear-value.component.mjs +0 -34
- package/esm2022/lib/components/date-picker/date-picker.component.mjs +0 -97
- package/esm2022/lib/components/date-range-datepicker/date-range-datepicker.component.mjs +0 -118
- package/esm2022/lib/components/icon-button/icon-button.component.mjs +0 -49
- package/esm2022/lib/components/text/text-input.component.mjs +0 -73
- package/esm2022/lib/directives/date-mask.directive.mjs +0 -92
- package/esm2022/lib/directives/input-mask.directive.mjs +0 -92
- package/esm2022/lib/interfaces/app-input.interface.mjs +0 -2
- package/esm2022/lib/interfaces/autocomplete-configs.interface.mjs +0 -2
- package/esm2022/lib/interfaces/button-types.enum.mjs +0 -17
- package/esm2022/lib/pipes/array-to-string.pipe.mjs +0 -17
- package/esm2022/lib/pipes/generate-error-messages.pipe.mjs +0 -31
- package/esm2022/lib/pipes/get-value-by-key-from-object.pipe.mjs +0 -45
- package/esm2022/lib/services/input.service.mjs +0 -29
- package/esm2022/public-api.mjs +0 -19
- package/fesm2022/i-tech-shared-components.mjs +0 -1149
- package/fesm2022/i-tech-shared-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/autocomplete-select/autocomplete-select.component.d.ts +0 -84
- package/lib/components/button/button.component.d.ts +0 -65
- package/lib/components/clear-value/clear-value.component.d.ts +0 -9
- package/lib/components/date-picker/date-picker.component.d.ts +0 -32
- package/lib/components/date-range-datepicker/date-range-datepicker.component.d.ts +0 -36
- package/lib/components/icon-button/icon-button.component.d.ts +0 -14
- package/lib/components/text/text-input.component.d.ts +0 -21
- package/lib/directives/date-mask.directive.d.ts +0 -25
- package/lib/directives/input-mask.directive.d.ts +0 -21
- package/lib/interfaces/app-input.interface.d.ts +0 -31
- package/lib/interfaces/autocomplete-configs.interface.d.ts +0 -37
- package/lib/interfaces/button-types.enum.d.ts +0 -15
- package/lib/pipes/array-to-string.pipe.d.ts +0 -7
- package/lib/pipes/generate-error-messages.pipe.d.ts +0 -10
- package/lib/pipes/get-value-by-key-from-object.pipe.d.ts +0 -7
- package/lib/services/input.service.d.ts +0 -7
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface AppInputInterface {
|
|
2
|
-
activeStateIconUrl?: string;
|
|
3
|
-
clearable?: boolean;
|
|
4
|
-
containerClass?: string;
|
|
5
|
-
datePicker?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
dontResetValueInClearAction?: boolean;
|
|
8
|
-
hint?: string;
|
|
9
|
-
iconPrefix?: string;
|
|
10
|
-
iconPrefixSvg?: string;
|
|
11
|
-
iconPrefixTooltip?: string;
|
|
12
|
-
iconPrefixColor?: string;
|
|
13
|
-
iconPrefixVariant?: string;
|
|
14
|
-
iconSuffix?: string;
|
|
15
|
-
iconUrl?: string;
|
|
16
|
-
inputClass?: string;
|
|
17
|
-
inputMask?: 'number' | 'string';
|
|
18
|
-
label?: string;
|
|
19
|
-
leadZeroDateTime?: boolean;
|
|
20
|
-
mask?: string;
|
|
21
|
-
pattern?: string | RegExp;
|
|
22
|
-
placeholder: string;
|
|
23
|
-
prefix?: string;
|
|
24
|
-
required?: boolean;
|
|
25
|
-
readOnly?: boolean;
|
|
26
|
-
submit: boolean;
|
|
27
|
-
textarea?: boolean;
|
|
28
|
-
type: string;
|
|
29
|
-
defaultPatternKey?: string;
|
|
30
|
-
focusOutEmit?: boolean;
|
|
31
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface AutocompleteConfigsInterface {
|
|
2
|
-
label: string;
|
|
3
|
-
hideLabel?: boolean;
|
|
4
|
-
paginate: any;
|
|
5
|
-
paginateOnScroll?: boolean;
|
|
6
|
-
valueByKey: Array<string>;
|
|
7
|
-
valueToShowByKey: Array<string>;
|
|
8
|
-
valueToShowByParam?: Array<string | Array<string | number>>;
|
|
9
|
-
withParamSymbol?: string;
|
|
10
|
-
multiple?: boolean;
|
|
11
|
-
hideSelectAllOption?: boolean;
|
|
12
|
-
reset?: boolean;
|
|
13
|
-
search?: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
errorMessage?: string;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
filtrationKey?: string;
|
|
18
|
-
required?: boolean;
|
|
19
|
-
hover?: string;
|
|
20
|
-
changeText?: any;
|
|
21
|
-
iconUrl?: string;
|
|
22
|
-
activeStateIconUrl?: string;
|
|
23
|
-
matIconName?: string;
|
|
24
|
-
matIconSvg?: string;
|
|
25
|
-
actions?: any;
|
|
26
|
-
blockPagination?: boolean;
|
|
27
|
-
valueById?: string;
|
|
28
|
-
showFullTextWithOptionalOnSelectedValue?: boolean;
|
|
29
|
-
iconPrefix?: string;
|
|
30
|
-
readOnly?: boolean;
|
|
31
|
-
iconSuffix?: string;
|
|
32
|
-
clearable?: boolean;
|
|
33
|
-
defaultPatternKey?: string;
|
|
34
|
-
iconPrefixTooltip?: string;
|
|
35
|
-
iconPrefixSvg?: string;
|
|
36
|
-
iconPrefixColor?: string;
|
|
37
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enum representing different types of buttons.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ButtonType {
|
|
5
|
-
/** A filled button with solid background, typically used for primary actions. */
|
|
6
|
-
FILLED = "FILLED",
|
|
7
|
-
/** A tonal button with lighter background, used for secondary actions. */
|
|
8
|
-
TONAL = "TONAL",
|
|
9
|
-
/** An outlined button with a border and no background. */
|
|
10
|
-
OUTLINE = "OUTLINE",
|
|
11
|
-
/** A text button with no background or border, ideal for minimal UI. */
|
|
12
|
-
TEXT = "TEXT",
|
|
13
|
-
/** A warning button with special styling to indicate caution or alert actions. */
|
|
14
|
-
WARNING = "WARNING"
|
|
15
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ArrayToStringPipe implements PipeTransform {
|
|
4
|
-
transform(value: Array<string | number> | string): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayToStringPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayToStringPipe, "arrayToString", true>;
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { TranslateService } from "@ngx-translate/core";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GenerateErrorMessagesPipe implements PipeTransform {
|
|
5
|
-
private translateService;
|
|
6
|
-
constructor(translateService: TranslateService);
|
|
7
|
-
transform(control: any, label: string, defaultPatternKey?: string): string;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GenerateErrorMessagesPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GenerateErrorMessagesPipe, "generateErrorMessages", true>;
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GetValueByKeyFromObjectPipe implements PipeTransform {
|
|
4
|
-
transform(keys: string | Array<string | number>, data: any, withParams?: Array<string | Array<string | number>> | null, withParamSymbol?: string): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GetValueByKeyFromObjectPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GetValueByKeyFromObjectPipe, "getValueByKeyFromObject", true>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FormControlName } from "@angular/forms";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class InputService {
|
|
4
|
-
injectNgControl(): FormControlName;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputService, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InputService>;
|
|
7
|
-
}
|