@gettrx/core-components-angular 0.0.59 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/generated/components.mjs +263 -315
- package/esm2022/generated/proxies-list.mjs +27 -27
- package/esm2022/generated/text-value-accessor.mjs +5 -5
- package/esm2022/generated/value-accessor.mjs +5 -7
- package/esm2022/gettrx-core-components-angular.mjs +2 -2
- package/esm2022/gettrx-module.mjs +4 -4
- package/esm2022/lib/atoms/badge/badge.component.mjs +48 -44
- package/esm2022/lib/atoms/badge/badge.module.mjs +6 -6
- package/esm2022/lib/atoms/button/button-close.directive.mjs +11 -8
- package/esm2022/lib/atoms/button/button.directive.mjs +32 -38
- package/esm2022/lib/atoms/button/button.module.mjs +4 -4
- package/esm2022/lib/atoms/custom-button/custom-button.component.mjs +60 -0
- package/esm2022/lib/atoms/custom-button/custom-button.module.mjs +19 -0
- package/esm2022/lib/atoms/custom-button/index.mjs +3 -0
- package/esm2022/lib/atoms/custom-button/utils/utils.mjs +2 -0
- package/esm2022/lib/atoms/icon/icon.component.mjs +44 -0
- package/esm2022/lib/atoms/icon/icon.module.mjs +18 -0
- package/esm2022/lib/atoms/icon/index.mjs +2 -0
- package/esm2022/lib/atoms/icon/public_api.mjs +3 -0
- package/esm2022/lib/atoms/skeleton/skeleton.component.mjs +24 -0
- package/esm2022/lib/atoms/skeleton/utils/skeleton.directive.mjs +51 -0
- package/esm2022/lib/molecules/button/button-close.directive.mjs +11 -8
- package/esm2022/lib/molecules/button/button.directive.mjs +30 -38
- package/esm2022/lib/molecules/button/button.module.mjs +4 -4
- package/esm2022/lib/molecules/calendar/calendar/calendar-class-view.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar/calendar.component.mjs +38 -45
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-day.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.directive.mjs +10 -18
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.component.mjs +23 -30
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.mjs +15 -17
- package/esm2022/lib/molecules/calendar/calendar.module.mjs +6 -6
- package/esm2022/lib/molecules/calendar/calendar.service.mjs +24 -26
- package/esm2022/lib/molecules/calendar/calendar.utils.mjs +1 -1
- package/esm2022/lib/molecules/checkbox/checkbox/checkbox.component.mjs +96 -0
- package/esm2022/lib/molecules/checkbox/checkbox/checkbox.model.mjs +2 -0
- package/esm2022/lib/molecules/checkbox/checkbox.module.mjs +20 -0
- package/esm2022/lib/molecules/checkbox/index.mjs +2 -0
- package/esm2022/lib/molecules/checkbox/public_api.mjs +4 -0
- package/esm2022/lib/molecules/date-picker/date-picker.component.mjs +12 -12
- package/esm2022/lib/molecules/date-picker/date-picker.module.mjs +8 -8
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.mjs +130 -169
- package/esm2022/lib/molecules/date-range-picker/date-range-picker.module.mjs +47 -5
- package/esm2022/lib/molecules/dropdown/dropdown/dropdown.component.mjs +43 -78
- package/esm2022/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.mjs +4 -13
- package/esm2022/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.mjs +3 -3
- package/esm2022/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.mjs +3 -3
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.mjs +3 -3
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.mjs +10 -24
- package/esm2022/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.mjs +12 -20
- package/esm2022/lib/molecules/dropdown/dropdown.module.mjs +5 -5
- package/esm2022/lib/molecules/dropdown/dropdown.service.mjs +7 -6
- package/esm2022/lib/molecules/file-input/file-input/file-input.component.mjs +144 -0
- package/esm2022/lib/molecules/file-input/file-input/file-input.model.mjs +2 -0
- package/esm2022/lib/molecules/file-input/file-input.module.mjs +18 -0
- package/esm2022/lib/molecules/file-input/index.mjs +2 -0
- package/esm2022/lib/molecules/file-input/public_api.mjs +4 -0
- package/esm2022/lib/molecules/form/form/form.directive.mjs +11 -9
- package/esm2022/lib/molecules/form/form-check/form-check-input.directive.mjs +10 -18
- package/esm2022/lib/molecules/form/form-check/form-check-label.directive.mjs +3 -3
- package/esm2022/lib/molecules/form/form-check/form-check.component.mjs +31 -29
- package/esm2022/lib/molecules/form/form-control/form-control.directive.mjs +16 -22
- package/esm2022/lib/molecules/form/form-feedback/form-feedback.component.mjs +10 -13
- package/esm2022/lib/molecules/form/form-floating/form-floating.directive.mjs +10 -8
- package/esm2022/lib/molecules/form/form-label/form-label.directive.mjs +14 -13
- package/esm2022/lib/molecules/form/form-select/form-select.directive.mjs +9 -13
- package/esm2022/lib/molecules/form/form-text/form-text.directive.mjs +3 -3
- package/esm2022/lib/molecules/form/form.module.mjs +5 -5
- package/esm2022/lib/molecules/form/input-group/input-group.component.mjs +9 -8
- package/esm2022/lib/molecules/form/input-group-text/input-group-text.directive.mjs +3 -3
- package/esm2022/lib/molecules/numeric-counter/index.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.component.mjs +158 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.const.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.type.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter.module.mjs +19 -0
- package/esm2022/lib/molecules/numeric-counter/public_api.mjs +5 -0
- package/esm2022/lib/molecules/pagination/helpers/index.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/models/index.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/models/pagination.interface.mjs +2 -0
- package/esm2022/lib/molecules/pagination/helpers/models/pagination.model.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/pipes/index.mjs +2 -0
- package/esm2022/lib/molecules/pagination/helpers/pipes/validate-page/validate-page.pipe.mjs +21 -0
- package/esm2022/lib/molecules/pagination/index.mjs +2 -0
- package/esm2022/lib/molecules/pagination/pagination/pagination.component.mjs +146 -0
- package/esm2022/lib/molecules/pagination/pagination/pagination.mjs +80 -0
- package/esm2022/lib/molecules/pagination/pagination.module.mjs +21 -0
- package/esm2022/lib/molecules/pagination/public_api.mjs +4 -0
- package/esm2022/lib/molecules/select/helpers/enums/index.mjs +2 -0
- package/esm2022/lib/molecules/select/helpers/enums/select.enums.mjs +6 -0
- package/esm2022/lib/molecules/select/helpers/index.mjs +4 -0
- package/esm2022/lib/molecules/select/helpers/pipes/format-selected-value/format-selected-value.pipe.mjs +57 -0
- package/esm2022/lib/molecules/select/helpers/pipes/index.mjs +3 -0
- package/esm2022/lib/molecules/select/helpers/pipes/trim-text/trim-text.pipe.mjs +26 -0
- package/esm2022/lib/molecules/select/helpers/types/index.mjs +2 -0
- package/esm2022/lib/molecules/select/helpers/types/select.type.mjs +2 -0
- package/esm2022/lib/molecules/select/index.mjs +2 -0
- package/esm2022/lib/molecules/select/public_api.mjs +4 -0
- package/esm2022/lib/molecules/select/select/select.component.mjs +445 -0
- package/esm2022/lib/molecules/select/select.module.mjs +37 -0
- package/esm2022/lib/molecules/shared/html-attr.directive.mjs +3 -6
- package/esm2022/lib/molecules/shared/shared.module.mjs +4 -4
- package/esm2022/lib/molecules/shared/template-id.directive.mjs +3 -5
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +9 -16
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +9 -16
- package/esm2022/lib/molecules/time-picker/time-picker.component.mjs +66 -109
- package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +6 -6
- package/esm2022/public-api.mjs +18 -0
- package/fesm2022/gettrx-core-components-angular.mjs +4859 -3696
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/generated/components.d.ts +124 -124
- package/generated/proxies-list.d.ts +1 -1
- package/generated/text-value-accessor.d.ts +1 -1
- package/gettrx-module.d.ts +1 -1
- package/index.d.ts +1 -1
- package/lib/atoms/badge/badge.component.d.ts +8 -5
- package/lib/atoms/badge/badge.module.d.ts +2 -2
- package/lib/atoms/button/button.directive.d.ts +2 -2
- package/lib/atoms/custom-button/custom-button.component.d.ts +39 -0
- package/lib/atoms/custom-button/custom-button.module.d.ts +9 -0
- package/lib/atoms/custom-button/index.d.ts +2 -0
- package/lib/atoms/custom-button/utils/utils.d.ts +3 -0
- package/lib/atoms/icon/icon.component.d.ts +27 -0
- package/lib/atoms/icon/icon.module.d.ts +8 -0
- package/lib/atoms/icon/index.d.ts +1 -0
- package/lib/atoms/icon/public_api.d.ts +2 -0
- package/lib/atoms/skeleton/skeleton.component.d.ts +12 -0
- package/lib/atoms/skeleton/utils/skeleton.directive.d.ts +15 -0
- package/lib/molecules/button/button.directive.d.ts +2 -2
- package/lib/molecules/calendar/calendar/calendar.component.d.ts +2 -2
- package/lib/molecules/calendar/calendar.utils.d.ts +5 -5
- package/lib/molecules/checkbox/checkbox/checkbox.component.d.ts +54 -0
- package/lib/molecules/checkbox/checkbox/checkbox.model.d.ts +4 -0
- package/lib/molecules/checkbox/checkbox.module.d.ts +10 -0
- package/lib/molecules/checkbox/index.d.ts +1 -0
- package/lib/molecules/checkbox/public_api.d.ts +3 -0
- package/lib/molecules/date-picker/date-picker.component.d.ts +2 -2
- package/lib/molecules/date-picker/date-picker.module.d.ts +2 -2
- package/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.d.ts +16 -14
- package/lib/molecules/date-range-picker/date-range-picker.module.d.ts +12 -1
- package/lib/molecules/dropdown/dropdown/dropdown.component.d.ts +3 -3
- package/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.d.ts +2 -2
- package/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.d.ts +2 -2
- package/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +2 -2
- package/lib/molecules/file-input/file-input/file-input.component.d.ts +72 -0
- package/lib/molecules/file-input/file-input/file-input.model.d.ts +3 -0
- package/lib/molecules/file-input/file-input.module.d.ts +8 -0
- package/lib/molecules/file-input/index.d.ts +1 -0
- package/lib/molecules/file-input/public_api.d.ts +3 -0
- package/lib/molecules/numeric-counter/index.d.ts +1 -0
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.component.d.ts +27 -0
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.const.d.ts +1 -0
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.type.d.ts +4 -0
- package/lib/molecules/numeric-counter/numeric-counter.module.d.ts +9 -0
- package/lib/molecules/numeric-counter/public_api.d.ts +4 -0
- package/lib/molecules/pagination/helpers/index.d.ts +2 -0
- package/lib/molecules/pagination/helpers/models/index.d.ts +2 -0
- package/lib/molecules/pagination/helpers/models/pagination.interface.d.ts +7 -0
- package/lib/molecules/pagination/helpers/models/pagination.model.d.ts +2 -0
- package/lib/molecules/pagination/helpers/pipes/index.d.ts +1 -0
- package/lib/molecules/pagination/helpers/pipes/validate-page/validate-page.pipe.d.ts +8 -0
- package/lib/molecules/pagination/index.d.ts +1 -0
- package/lib/molecules/pagination/pagination/pagination.component.d.ts +65 -0
- package/lib/molecules/pagination/pagination/pagination.d.ts +21 -0
- package/lib/molecules/pagination/pagination.module.d.ts +11 -0
- package/lib/molecules/pagination/public_api.d.ts +3 -0
- package/lib/molecules/select/helpers/enums/index.d.ts +1 -0
- package/lib/molecules/select/helpers/enums/select.enums.d.ts +4 -0
- package/lib/molecules/select/helpers/index.d.ts +3 -0
- package/lib/molecules/select/helpers/pipes/format-selected-value/format-selected-value.pipe.d.ts +8 -0
- package/lib/molecules/select/helpers/pipes/index.d.ts +2 -0
- package/lib/molecules/select/helpers/pipes/trim-text/trim-text.pipe.d.ts +7 -0
- package/lib/molecules/select/helpers/types/index.d.ts +1 -0
- package/lib/molecules/select/helpers/types/select.type.d.ts +7 -0
- package/lib/molecules/select/index.d.ts +1 -0
- package/lib/molecules/select/public_api.d.ts +3 -0
- package/lib/molecules/select/select/select.component.d.ts +159 -0
- package/lib/molecules/select/select.module.d.ts +12 -0
- package/lib/molecules/time-picker/time-picker.component.d.ts +4 -4
- package/lib/molecules/time-picker/time.utils.d.ts +1 -1
- package/package.json +2 -2
- package/{public_api.d.ts → public-api.d.ts} +5 -1
- package/esm2022/generated/number-value-accessor.mjs +0 -40
- package/esm2022/public_api.mjs +0 -14
- package/generated/number-value-accessor.d.ts +0 -9
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./file-input/file-input.component";
|
|
3
|
+
import * as i2 from "../../atoms/custom-button/custom-button.module";
|
|
4
|
+
export declare class FileInputModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileInputModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FileInputModule, [typeof i1.FileInputComponent], [typeof i2.CustomButtonModule], [typeof i1.FileInputComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FileInputModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { GtrNumericCounterChangeEvent } from './numeric-counter.type';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NumericCounterComponent implements ControlValueAccessor {
|
|
6
|
+
value: number;
|
|
7
|
+
step: number;
|
|
8
|
+
min: number;
|
|
9
|
+
max: number;
|
|
10
|
+
name: string;
|
|
11
|
+
identifier: string;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
readonly: boolean;
|
|
14
|
+
readonly gtrChange: EventEmitter<GtrNumericCounterChangeEvent>;
|
|
15
|
+
private onChange;
|
|
16
|
+
private onTouch;
|
|
17
|
+
writeValue(value: any): void;
|
|
18
|
+
registerOnChange(fn: any): void;
|
|
19
|
+
registerOnTouched(fn: any): void;
|
|
20
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
21
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
22
|
+
incrementCounter: () => void;
|
|
23
|
+
decrementCounter: () => void;
|
|
24
|
+
handleOnChange: (event?: Event) => void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericCounterComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericCounterComponent, "gtr-numeric-counter", never, { "value": { "alias": "value"; "required": false; }; "step": { "alias": "step"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "name": { "alias": "name"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "gtrChange": "gtrChange"; }, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ComponentName = "gtr-numeric-counter";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./numeric-counter/numeric-counter.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class NumericCounterModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericCounterModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NumericCounterModule, [typeof i1.NumericCounterComponent], [typeof i2.NgIf, typeof i2.NgClass, typeof i3.FormsModule], [typeof i1.NumericCounterComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NumericCounterModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './validate-page/validate-page.pipe';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { GtrPage } from '../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ValidatePagePipe implements PipeTransform {
|
|
5
|
+
transform(value: GtrPage | undefined, returnValue?: string): number | string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidatePagePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ValidatePagePipe, "validatePage", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { GtrPage, GtrPageEvent } from '../helpers/models/pagination.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PaginationComponent implements OnInit, OnChanges {
|
|
5
|
+
/** identifier] for dom reference */
|
|
6
|
+
identifier: string;
|
|
7
|
+
/** [disabled] is type of boolean which is used to disable the pagination navigation */
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
/** [limit] is used for the count of total items */
|
|
10
|
+
limit: number;
|
|
11
|
+
/** [pageSize] is used to set the limit of total items per page */
|
|
12
|
+
pageSize: number;
|
|
13
|
+
/** [pageSizeOptions] have number array type it is used to set the page size options */
|
|
14
|
+
pageSizeOptions: number[];
|
|
15
|
+
/** [hidePageSize] have boolean type and its used to hide/show the pagesize options default value is true */
|
|
16
|
+
hidePageSize: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* [showFirstLastButtons] have boolean type and its used to hide/show the
|
|
19
|
+
* first and last navigation buttons for pagination and its default value is true
|
|
20
|
+
*/
|
|
21
|
+
showFirstLastButtons: boolean;
|
|
22
|
+
/** [pageIndex] have number type and its used to set the current page default value is 1 */
|
|
23
|
+
pageIndex: number;
|
|
24
|
+
/** [aria-label] have string type and its used to set the aria attribute for pagination component */
|
|
25
|
+
ariaLabel: string;
|
|
26
|
+
/**
|
|
27
|
+
* (pageEvent) When the user interacts with the paginator, a pageEvent will be fired that can be used to update any associated data view.
|
|
28
|
+
*/
|
|
29
|
+
readonly pageEvent: EventEmitter<GtrPageEvent>;
|
|
30
|
+
/**
|
|
31
|
+
* (getNumberOfPages) When the user interacts with the paginator, a pageEvent will be fired that can be used to get the total number of pages.
|
|
32
|
+
*/
|
|
33
|
+
readonly getNumberOfPages: EventEmitter<number>;
|
|
34
|
+
/** [totalPages] have number type and used to store the count of total pages */
|
|
35
|
+
totalPages: number;
|
|
36
|
+
/**
|
|
37
|
+
* state to manage page array
|
|
38
|
+
*/
|
|
39
|
+
pagesArray: GtrPage[];
|
|
40
|
+
/**
|
|
41
|
+
* state to manage responsive view for mobile and desktop
|
|
42
|
+
*/
|
|
43
|
+
private _isMobile;
|
|
44
|
+
defaultPage: number;
|
|
45
|
+
hasBothDots: any;
|
|
46
|
+
/**
|
|
47
|
+
* Component Initialization
|
|
48
|
+
*/
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
51
|
+
/**
|
|
52
|
+
* To set total pages
|
|
53
|
+
*/
|
|
54
|
+
private _setTotalPages;
|
|
55
|
+
/** changePage is a private function which is used to send page event to the consuming component */
|
|
56
|
+
changePage(currentPage: GtrPage): void;
|
|
57
|
+
/** Change page size option */
|
|
58
|
+
onPageSizeChange(event: any): void;
|
|
59
|
+
/** Listen to screen change events */
|
|
60
|
+
onScreenResize(): void;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "gtr-pagination", never, { "identifier": { "alias": "identifier"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "pageEvent": "pageEvent"; "getNumberOfPages": "getNumberOfPages"; }, never, never, false, never>;
|
|
63
|
+
static ngAcceptInputType_disabled: unknown;
|
|
64
|
+
static ngAcceptInputType_showFirstLastButtons: unknown;
|
|
65
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GtrPage } from '../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* component function to create page range
|
|
4
|
+
* @param start
|
|
5
|
+
* @param end
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function pageRange(start: number, end: number): GtrPage[];
|
|
9
|
+
/**
|
|
10
|
+
* Method to create pagination data
|
|
11
|
+
* @param res
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function usePagination(res: {
|
|
15
|
+
totalCount: number;
|
|
16
|
+
pageSize: number;
|
|
17
|
+
siblingCount: number;
|
|
18
|
+
currentPage: number;
|
|
19
|
+
pageIndex: number;
|
|
20
|
+
}): GtrPage[] | undefined;
|
|
21
|
+
export declare function hasMobileView(): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./pagination/pagination.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../select/select.module";
|
|
5
|
+
import * as i4 from "../../atoms/icon/icon.module";
|
|
6
|
+
import * as i5 from "./helpers/pipes/validate-page/validate-page.pipe";
|
|
7
|
+
export declare class PaginationModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PaginationModule, [typeof i1.PaginationComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgClass, typeof i2.NgTemplateOutlet, typeof i3.SelectModule, typeof i4.GtrIconModule, typeof i5.ValidatePagePipe], [typeof i1.PaginationComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PaginationModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select.enums';
|
package/lib/molecules/select/helpers/pipes/format-selected-value/format-selected-value.pipe.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FormatSelectedValuePipe implements PipeTransform {
|
|
4
|
+
private readonly _limitText;
|
|
5
|
+
transform(value: any, options: any[], valueKey: string, selectedLabel: string, labelKey: string, textLimit: number, multiple: boolean, selectedValueLazy: any[], selectedValues: any[] | undefined, lazyLoaded: boolean): any;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatSelectedValuePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormatSelectedValuePipe, "formatSelectedValue", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TrimTextPipe implements PipeTransform {
|
|
4
|
+
transform(value: string | number | null | undefined, limit: number): string | number | undefined;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrimTextPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TrimTextPipe, "limitText", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select.type';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { GtrSelectListLoaderVariation, GtrSelectScroll } from '../helpers';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SelectComponent implements OnChanges, ControlValueAccessor, AfterViewInit {
|
|
6
|
+
private _el;
|
|
7
|
+
/** Input Label used for select box label */
|
|
8
|
+
inputLabel: string;
|
|
9
|
+
/**
|
|
10
|
+
* To Show placeholder for select box
|
|
11
|
+
* @default Select
|
|
12
|
+
*/
|
|
13
|
+
placeholder: string;
|
|
14
|
+
/** Float placeholder is used to keep the placeholder in container after selection */
|
|
15
|
+
floatPlaceholder: boolean;
|
|
16
|
+
/** Label key used to map label for internal objects of options */
|
|
17
|
+
labelKey: string;
|
|
18
|
+
/** Value key used to map value for internal objects of options */
|
|
19
|
+
valueKey: string;
|
|
20
|
+
/** Selected label used to map display text instead of actual value from options */
|
|
21
|
+
selectedLabel: string;
|
|
22
|
+
/** Highlight label used to map higlight label by adding "font-weight: bold" style property text when sub label are present for option list */
|
|
23
|
+
highlightLabel: string;
|
|
24
|
+
/** Sub label used to show the second label in option list */
|
|
25
|
+
subLabel: string;
|
|
26
|
+
/** View Only state of select box */
|
|
27
|
+
isOnlyView: boolean;
|
|
28
|
+
/** Used to bind value of select box */
|
|
29
|
+
value: any | any[];
|
|
30
|
+
/** Multiple check is used to allow the select box to accept multiple values */
|
|
31
|
+
multiple: boolean;
|
|
32
|
+
/** To allow lazy loading feature */
|
|
33
|
+
lazyLoaded: boolean;
|
|
34
|
+
/** Searchable check used to enable search box in select box list wrapper */
|
|
35
|
+
searchable: boolean;
|
|
36
|
+
/** Allow to disable select box */
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
/** Allow to enable readonly state for select box */
|
|
39
|
+
readonly: boolean;
|
|
40
|
+
/** If is invalid then select box accept error message and style border to red color of select box input wrapper */
|
|
41
|
+
is_invalid: boolean;
|
|
42
|
+
/** To show loading while searching or fetching list */
|
|
43
|
+
listLoading: boolean;
|
|
44
|
+
/** To show skeleton view */
|
|
45
|
+
loading: boolean;
|
|
46
|
+
/** TO show loading spinner in search box / searching... text in the lists while searching */
|
|
47
|
+
listLoaderVariation: GtrSelectListLoaderVariation;
|
|
48
|
+
/**
|
|
49
|
+
* Pass options list must be an array
|
|
50
|
+
* @default empty[]
|
|
51
|
+
*/
|
|
52
|
+
options: any[];
|
|
53
|
+
/**
|
|
54
|
+
* Autowrap value and options text if increase than given value
|
|
55
|
+
* @default 28
|
|
56
|
+
*/
|
|
57
|
+
textLimit: number;
|
|
58
|
+
/** Toggle state for select box container */
|
|
59
|
+
isOpen: boolean;
|
|
60
|
+
/** To set search value */
|
|
61
|
+
searchValue: string;
|
|
62
|
+
/** Store selected values */
|
|
63
|
+
selectedValues: any[];
|
|
64
|
+
/** Store selected values for multiple */
|
|
65
|
+
multipleSelectedValues: any[];
|
|
66
|
+
/** State for touched events */
|
|
67
|
+
touched: boolean;
|
|
68
|
+
/** Filtered options without affection actual list */
|
|
69
|
+
filteredOptions: any[];
|
|
70
|
+
/** Store selected value if lazyloading is enabled */
|
|
71
|
+
selectedValueLazy: any[];
|
|
72
|
+
/** Enums for Custom Select Loader Variations */
|
|
73
|
+
readonly loaderVariation: typeof GtrSelectListLoaderVariation;
|
|
74
|
+
/** Event for value change */
|
|
75
|
+
readonly valueChanged: EventEmitter<any>;
|
|
76
|
+
/** Event for search value change */
|
|
77
|
+
readonly searchChanged: EventEmitter<any>;
|
|
78
|
+
/** Event for scrolling in list */
|
|
79
|
+
readonly gtrScroll: EventEmitter<GtrSelectScroll>;
|
|
80
|
+
/** Event if selectbox changed touched state */
|
|
81
|
+
readonly gtrTouched: EventEmitter<any>;
|
|
82
|
+
/**
|
|
83
|
+
* Contructor
|
|
84
|
+
* @param _el
|
|
85
|
+
*/
|
|
86
|
+
constructor(_el: ElementRef);
|
|
87
|
+
/** Control Value Accessor Methods */
|
|
88
|
+
private onChange;
|
|
89
|
+
private onTouched;
|
|
90
|
+
writeValue(value: any): void;
|
|
91
|
+
registerOnChange(fn: any): void;
|
|
92
|
+
registerOnTouched(fn: any): void;
|
|
93
|
+
setDisabledState(isDisabled: boolean): void;
|
|
94
|
+
/**
|
|
95
|
+
* On Changes Hook
|
|
96
|
+
* @param changes
|
|
97
|
+
*/
|
|
98
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
99
|
+
/**
|
|
100
|
+
* On ViewInit Hook
|
|
101
|
+
*/
|
|
102
|
+
ngAfterViewInit(): void;
|
|
103
|
+
/*********** PUBLIC METHODS ***************/
|
|
104
|
+
/**
|
|
105
|
+
* NOTE: toggleSelectBox() function is declared to hide/show the dropdown list based on user latest event
|
|
106
|
+
*/
|
|
107
|
+
toggleSelectBox(): void;
|
|
108
|
+
/** Remove options */
|
|
109
|
+
removeOptions(event: Event, option: any): void;
|
|
110
|
+
/**
|
|
111
|
+
* HandleOptionClick function is declared to emit value changed events
|
|
112
|
+
* @param option
|
|
113
|
+
* @param removeOption
|
|
114
|
+
*/
|
|
115
|
+
handleOptionClick(option: any, removeOption?: boolean, emitValue?: boolean, toggleSelectBox?: boolean): void;
|
|
116
|
+
/**
|
|
117
|
+
* handleSearchInput function is declared to filter the array based on search events.
|
|
118
|
+
* @param event
|
|
119
|
+
*/
|
|
120
|
+
handleSearchInput(event: Event): void;
|
|
121
|
+
/** Method to filter option list */
|
|
122
|
+
filterOptionList(): void;
|
|
123
|
+
/**
|
|
124
|
+
* Lazy loading on scroll for change page
|
|
125
|
+
*/
|
|
126
|
+
lazyLoadPaginationScroll(): void;
|
|
127
|
+
/*********** PRIVATE METHODS ***************/
|
|
128
|
+
/** Handle Touch Events */
|
|
129
|
+
private handleTouchEvent;
|
|
130
|
+
/** Set Initial value on every change */
|
|
131
|
+
private setInitialValue;
|
|
132
|
+
private handleKeyboardNavigations;
|
|
133
|
+
private getNextVisibleOption;
|
|
134
|
+
private getPrevVisibleOption;
|
|
135
|
+
private getFocusedOption;
|
|
136
|
+
/**
|
|
137
|
+
* setFocusOnOption function is declared to set focus on HTML li element.
|
|
138
|
+
* @param option
|
|
139
|
+
*/
|
|
140
|
+
private setFocusOnOption;
|
|
141
|
+
/**
|
|
142
|
+
* function to listen whether click triger outside of element to hide dropdown
|
|
143
|
+
* @param event
|
|
144
|
+
*/
|
|
145
|
+
private onClickOutside;
|
|
146
|
+
/**
|
|
147
|
+
* Function to listen whether screen size change to adjust position
|
|
148
|
+
*/
|
|
149
|
+
private onWindowResize;
|
|
150
|
+
/**
|
|
151
|
+
* Function to listen whether screen scroll to adjust position
|
|
152
|
+
*/
|
|
153
|
+
private onWindowScroll;
|
|
154
|
+
/** TO adjust position of option list wrapper */
|
|
155
|
+
private adjustPosition;
|
|
156
|
+
private getOptionValue;
|
|
157
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
158
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "gtr-select", never, { "inputLabel": { "alias": "inputLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatPlaceholder": { "alias": "floatPlaceholder"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "selectedLabel": { "alias": "selectedLabel"; "required": false; }; "highlightLabel": { "alias": "highlightLabel"; "required": false; }; "subLabel": { "alias": "subLabel"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "lazyLoaded": { "alias": "lazyLoaded"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "is_invalid": { "alias": "is_invalid"; "required": false; }; "listLoading": { "alias": "listLoading"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "listLoaderVariation": { "alias": "listLoaderVariation"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textLimit": { "alias": "textLimit"; "required": false; }; }, { "valueChanged": "valueChanged"; "searchChanged": "searchChanged"; "gtrScroll": "gtrScroll"; "gtrTouched": "gtrTouched"; }, never, ["[slot='custom-error']"], false, never>;
|
|
159
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./select/select.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "./helpers/pipes/format-selected-value/format-selected-value.pipe";
|
|
5
|
+
import * as i4 from "./helpers/pipes/trim-text/trim-text.pipe";
|
|
6
|
+
import * as i5 from "../../atoms/icon/icon.module";
|
|
7
|
+
import * as i6 from "../../atoms/skeleton/utils/skeleton.directive";
|
|
8
|
+
export declare class SelectModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, [typeof i1.SelectComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgClass, typeof i2.NgTemplateOutlet, typeof i3.FormatSelectedValuePipe, typeof i4.TrimTextPipe, typeof i5.GtrIconModule, typeof i6.SkeletonDirective], [typeof i1.SelectComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
|
|
12
|
+
}
|
|
@@ -149,10 +149,10 @@ export declare class TimePickerComponent implements OnChanges, OnInit, ControlVa
|
|
|
149
149
|
selectTime: FormGroup<{
|
|
150
150
|
selectHours: FormControl<number | null>;
|
|
151
151
|
selectMinutes: FormControl<number | null>;
|
|
152
|
-
selectSeconds?: FormControl<number | null
|
|
153
|
-
selectDayPeriod?: FormControl<
|
|
152
|
+
selectSeconds?: FormControl<number | null> | undefined;
|
|
153
|
+
selectDayPeriod?: FormControl<"am" | "pm" | null> | undefined;
|
|
154
154
|
}>;
|
|
155
|
-
timeInput: FormControl<string>;
|
|
155
|
+
timeInput: FormControl<string | null>;
|
|
156
156
|
set hour(value: number);
|
|
157
157
|
get hour(): number;
|
|
158
158
|
private _hour;
|
|
@@ -172,7 +172,7 @@ export declare class TimePickerComponent implements OnChanges, OnInit, ControlVa
|
|
|
172
172
|
ngOnChanges(changes: SimpleChanges): void;
|
|
173
173
|
ngAfterViewInit(): void;
|
|
174
174
|
setTimeLists(): void;
|
|
175
|
-
updateSelectTime(time?: Date): void;
|
|
175
|
+
updateSelectTime(time?: Date | undefined): void;
|
|
176
176
|
closestTime(timeArray: ITimeValue[], timeSegment: number): ITimeValue;
|
|
177
177
|
listOfTimeSegments(getListOfTimeSegments: (locale: string, dateTimeFormatOptions: DateTimeFormatOptions) => ITimeValue[], filterTimeSegments: ((timeSegmentValue: number) => boolean) | undefined): ITimeValue[];
|
|
178
178
|
handleSelectDayPeriodChange(dayPeriod: DayPeriod): void;
|
|
@@ -28,7 +28,7 @@ export declare const getSupportedLocale: (locale?: string) => string;
|
|
|
28
28
|
export declare const isHour12: (locale?: string) => boolean;
|
|
29
29
|
export declare const convert12hTo24h: (abbr: 'am' | 'pm', hour: number) => number;
|
|
30
30
|
export declare const convert24hTo12h: (hour: number) => number;
|
|
31
|
-
export declare const convertTimeToDate: (time: Date | string | null | undefined) => Date;
|
|
31
|
+
export declare const convertTimeToDate: (time: Date | string | null | undefined) => Date | null;
|
|
32
32
|
export declare const getAmPm: (date: Date, locale: string, options?: DateTimeFormatOptions) => DayPeriod;
|
|
33
33
|
export declare const isAm: (date: Date) => boolean;
|
|
34
34
|
export declare const isPm: (date: Date) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gettrx/core-components-angular",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Angular specific wrappers for @gettrx/core-components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gettrx",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@angular/common": "^16.1.0",
|
|
22
22
|
"@angular/core": "^16.1.0",
|
|
23
|
-
"@gettrx/core-components": "0.0
|
|
23
|
+
"@gettrx/core-components": "1.0.0"
|
|
24
24
|
},
|
|
25
25
|
"module": "fesm2022/gettrx-core-components-angular.mjs",
|
|
26
26
|
"typings": "index.d.ts",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './generated/components';
|
|
2
2
|
export { TextValueAccessor } from './generated/text-value-accessor';
|
|
3
|
-
export { NumericValueAccessor } from './generated/number-value-accessor';
|
|
4
3
|
export { ValueAccessor } from './generated/value-accessor';
|
|
5
4
|
export { GettrxModule } from './gettrx-module';
|
|
6
5
|
export * from './lib/atoms/gtr.types';
|
|
@@ -8,3 +7,8 @@ export * from './lib/atoms/badge';
|
|
|
8
7
|
export * from './lib/atoms/button';
|
|
9
8
|
export * from './lib/molecules/date-picker';
|
|
10
9
|
export * from './lib/molecules/date-range-picker';
|
|
10
|
+
export * from './lib/molecules/pagination';
|
|
11
|
+
export * from './lib/molecules/numeric-counter';
|
|
12
|
+
export * from './lib/molecules/checkbox';
|
|
13
|
+
export * from './lib/molecules/file-input';
|
|
14
|
+
export * from './lib/molecules/select';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Directive } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { ValueAccessor } from './value-accessor';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class NumericValueAccessor extends ValueAccessor {
|
|
6
|
-
constructor(el) {
|
|
7
|
-
super(el);
|
|
8
|
-
}
|
|
9
|
-
registerOnChange(fn) {
|
|
10
|
-
super.registerOnChange(value => {
|
|
11
|
-
fn(value === '' ? null : parseFloat(value));
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: NumericValueAccessor, selector: "gtr-input[type=number]", host: { listeners: { "inputChanged": "handleChangeEvent($event.target.value)" } }, providers: [
|
|
16
|
-
{
|
|
17
|
-
provide: NG_VALUE_ACCESSOR,
|
|
18
|
-
useExisting: NumericValueAccessor,
|
|
19
|
-
multi: true
|
|
20
|
-
}
|
|
21
|
-
], usesInheritance: true, ngImport: i0 });
|
|
22
|
-
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericValueAccessor, decorators: [{
|
|
24
|
-
type: Directive,
|
|
25
|
-
args: [{
|
|
26
|
-
/* tslint:disable-next-line:directive-selector */
|
|
27
|
-
selector: 'gtr-input[type=number]',
|
|
28
|
-
host: {
|
|
29
|
-
'(inputChanged)': 'handleChangeEvent($event.target.value)'
|
|
30
|
-
},
|
|
31
|
-
providers: [
|
|
32
|
-
{
|
|
33
|
-
provide: NG_VALUE_ACCESSOR,
|
|
34
|
-
useExisting: NumericValueAccessor,
|
|
35
|
-
multi: true
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
}]
|
|
39
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLXZhbHVlLWFjY2Vzc29yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2dlbmVyYXRlZC9udW1iZXItdmFsdWUtYWNjZXNzb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYyxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVuRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7O0FBZ0JqRCxNQUFNLE9BQU8sb0JBQXFCLFNBQVEsYUFBYTtJQUNyRCxZQUFZLEVBQWM7UUFDeEIsS0FBSyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ1osQ0FBQztJQUNELGdCQUFnQixDQUFDLEVBQThCO1FBQzdDLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxLQUFLLENBQUMsRUFBRTtZQUM3QixFQUFFLENBQUMsS0FBSyxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztRQUM5QyxDQUFDLENBQUMsQ0FBQztJQUNMLENBQUM7d0dBUlUsb0JBQW9COzRGQUFwQixvQkFBb0Isb0lBUnBCO1lBQ1Q7Z0JBQ0UsT0FBTyxFQUFFLGlCQUFpQjtnQkFDMUIsV0FBVyxFQUFFLG9CQUFvQjtnQkFDakMsS0FBSyxFQUFFLElBQUk7YUFDWjtTQUNGOzs0RkFFVSxvQkFBb0I7a0JBZGhDLFNBQVM7bUJBQUM7b0JBQ1QsaURBQWlEO29CQUNqRCxRQUFRLEVBQUUsd0JBQXdCO29CQUNsQyxJQUFJLEVBQUU7d0JBQ0osZ0JBQWdCLEVBQUUsd0NBQXdDO3FCQUMzRDtvQkFDRCxTQUFTLEVBQUU7d0JBQ1Q7NEJBQ0UsT0FBTyxFQUFFLGlCQUFpQjs0QkFDMUIsV0FBVyxzQkFBc0I7NEJBQ2pDLEtBQUssRUFBRSxJQUFJO3lCQUNaO3FCQUNGO2lCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGlyZWN0aXZlLCBFbGVtZW50UmVmIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBOR19WQUxVRV9BQ0NFU1NPUiB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJztcblxuaW1wb3J0IHsgVmFsdWVBY2Nlc3NvciB9IGZyb20gJy4vdmFsdWUtYWNjZXNzb3InO1xuXG5ARGlyZWN0aXZlKHtcbiAgLyogdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOmRpcmVjdGl2ZS1zZWxlY3RvciAqL1xuICBzZWxlY3RvcjogJ2d0ci1pbnB1dFt0eXBlPW51bWJlcl0nLFxuICBob3N0OiB7XG4gICAgJyhpbnB1dENoYW5nZWQpJzogJ2hhbmRsZUNoYW5nZUV2ZW50KCRldmVudC50YXJnZXQudmFsdWUpJ1xuICB9LFxuICBwcm92aWRlcnM6IFtcbiAgICB7XG4gICAgICBwcm92aWRlOiBOR19WQUxVRV9BQ0NFU1NPUixcbiAgICAgIHVzZUV4aXN0aW5nOiBOdW1lcmljVmFsdWVBY2Nlc3NvcixcbiAgICAgIG11bHRpOiB0cnVlXG4gICAgfVxuICBdXG59KVxuZXhwb3J0IGNsYXNzIE51bWVyaWNWYWx1ZUFjY2Vzc29yIGV4dGVuZHMgVmFsdWVBY2Nlc3NvciB7XG4gIGNvbnN0cnVjdG9yKGVsOiBFbGVtZW50UmVmKSB7XG4gICAgc3VwZXIoZWwpO1xuICB9XG4gIHJlZ2lzdGVyT25DaGFuZ2UoZm46IChfOiBudW1iZXIgfCBudWxsKSA9PiB2b2lkKSB7XG4gICAgc3VwZXIucmVnaXN0ZXJPbkNoYW5nZSh2YWx1ZSA9PiB7XG4gICAgICBmbih2YWx1ZSA9PT0gJycgPyBudWxsIDogcGFyc2VGbG9hdCh2YWx1ZSkpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
package/esm2022/public_api.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of core-components-angular
|
|
3
|
-
*/
|
|
4
|
-
export * from './generated/components';
|
|
5
|
-
export { TextValueAccessor } from './generated/text-value-accessor';
|
|
6
|
-
export { NumericValueAccessor } from './generated/number-value-accessor';
|
|
7
|
-
export { ValueAccessor } from './generated/value-accessor';
|
|
8
|
-
export { GettrxModule } from './gettrx-module';
|
|
9
|
-
export * from './lib/atoms/gtr.types';
|
|
10
|
-
export * from './lib/atoms/badge';
|
|
11
|
-
export * from './lib/atoms/button';
|
|
12
|
-
export * from './lib/molecules/date-picker';
|
|
13
|
-
export * from './lib/molecules/date-range-picker';
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNwRSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUV6RSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFM0QsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRS9DLGNBQWMsdUJBQXVCLENBQUM7QUFFdEMsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLG9CQUFvQixDQUFDO0FBRW5DLGNBQWMsNkJBQTZCLENBQUM7QUFDNUMsY0FBYyxtQ0FBbUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgY29yZS1jb21wb25lbnRzLWFuZ3VsYXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2dlbmVyYXRlZC9jb21wb25lbnRzJztcbmV4cG9ydCB7IFRleHRWYWx1ZUFjY2Vzc29yIH0gZnJvbSAnLi9nZW5lcmF0ZWQvdGV4dC12YWx1ZS1hY2Nlc3Nvcic7XG5leHBvcnQgeyBOdW1lcmljVmFsdWVBY2Nlc3NvciB9IGZyb20gJy4vZ2VuZXJhdGVkL251bWJlci12YWx1ZS1hY2Nlc3Nvcic7XG5cbmV4cG9ydCB7IFZhbHVlQWNjZXNzb3IgfSBmcm9tICcuL2dlbmVyYXRlZC92YWx1ZS1hY2Nlc3Nvcic7XG5cbmV4cG9ydCB7IEdldHRyeE1vZHVsZSB9IGZyb20gJy4vZ2V0dHJ4LW1vZHVsZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2F0b21zL2d0ci50eXBlcyc7XG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2F0b21zL2JhZGdlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2F0b21zL2J1dHRvbic7XG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL21vbGVjdWxlcy9kYXRlLXBpY2tlcic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2xlY3VsZXMvZGF0ZS1yYW5nZS1waWNrZXInO1xuIl19
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { ValueAccessor } from './value-accessor';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NumericValueAccessor extends ValueAccessor {
|
|
5
|
-
constructor(el: ElementRef);
|
|
6
|
-
registerOnChange(fn: (_: number | null) => void): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumericValueAccessor, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NumericValueAccessor, "gtr-input[type=number]", never, {}, {}, never, never, false, never>;
|
|
9
|
-
}
|