@gettrx/core-components-angular 0.0.58 → 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 +729 -0
- package/esm2022/generated/proxies-list.mjs +30 -0
- package/esm2022/generated/text-value-accessor.mjs +36 -0
- package/{esm2020 → esm2022}/generated/value-accessor.mjs +4 -4
- package/{esm2020 → esm2022}/gettrx-core-components-angular.mjs +2 -2
- package/{esm2020 → esm2022}/gettrx-module.mjs +5 -5
- package/esm2022/lib/atoms/badge/badge.component.mjs +77 -0
- package/esm2022/lib/atoms/badge/badge.module.mjs +19 -0
- package/esm2022/lib/atoms/badge/index.mjs +2 -0
- package/esm2022/lib/atoms/badge/public_api.mjs +3 -0
- package/esm2022/lib/atoms/button/button-close.directive.mjs +39 -0
- package/esm2022/lib/atoms/button/button.directive.mjs +102 -0
- package/esm2022/lib/atoms/button/button.module.mjs +17 -0
- package/esm2022/lib/atoms/button/index.mjs +2 -0
- package/esm2022/lib/atoms/button/public_api.mjs +4 -0
- 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/gtr.types.mjs +10 -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 +39 -0
- package/esm2022/lib/molecules/button/button.directive.mjs +100 -0
- package/esm2022/lib/molecules/button/button.module.mjs +17 -0
- package/esm2022/lib/molecules/button/index.mjs +2 -0
- package/esm2022/lib/molecules/button/public_api.mjs +4 -0
- package/esm2022/lib/molecules/calendar/calendar/calendar-class-view.pipe.mjs +20 -0
- package/esm2022/lib/molecules/calendar/calendar/calendar.component.mjs +428 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-day.pipe.mjs +30 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.mjs +23 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.mjs +22 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.mjs +17 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.directive.mjs +119 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.pipe.mjs +19 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.mjs +20 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.component.mjs +418 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.pipe.mjs +17 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.mjs +21 -0
- package/esm2022/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.mjs +85 -0
- package/esm2022/lib/molecules/calendar/calendar.module.mjs +55 -0
- package/esm2022/lib/molecules/calendar/calendar.service.mjs +62 -0
- package/esm2022/lib/molecules/calendar/calendar.utils.mjs +296 -0
- package/esm2022/lib/molecules/calendar/index.mjs +2 -0
- package/esm2022/lib/molecules/calendar/public_api.mjs +5 -0
- 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/core-components.types.mjs +10 -0
- package/esm2022/lib/molecules/date-picker/date-picker.component.mjs +81 -0
- package/esm2022/lib/molecules/date-picker/date-picker.module.mjs +58 -0
- package/esm2022/lib/molecules/date-picker/index.mjs +2 -0
- package/esm2022/lib/molecules/date-picker/public_api.mjs +3 -0
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.mjs +700 -0
- package/esm2022/lib/molecules/date-range-picker/date-range-picker.module.mjs +58 -0
- package/esm2022/lib/molecules/date-range-picker/index.mjs +2 -0
- package/esm2022/lib/molecules/date-range-picker/public_api.mjs +3 -0
- package/esm2022/lib/molecules/dropdown/dropdown/dropdown.component.mjs +387 -0
- package/esm2022/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.mjs +79 -0
- package/esm2022/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.mjs +93 -0
- package/esm2022/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.mjs +75 -0
- package/esm2022/lib/molecules/dropdown/dropdown.module.mjs +56 -0
- package/esm2022/lib/molecules/dropdown/dropdown.service.mjs +18 -0
- package/esm2022/lib/molecules/dropdown/index.mjs +2 -0
- package/esm2022/lib/molecules/dropdown/public_api.mjs +10 -0
- 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 +33 -0
- package/esm2022/lib/molecules/form/form-check/form-check-input.directive.mjs +62 -0
- package/esm2022/lib/molecules/form/form-check/form-check-label.directive.mjs +22 -0
- package/esm2022/lib/molecules/form/form-check/form-check.component.mjs +77 -0
- package/esm2022/lib/molecules/form/form-control/form-control.directive.mjs +66 -0
- package/esm2022/lib/molecules/form/form-feedback/form-feedback.component.mjs +38 -0
- package/esm2022/lib/molecules/form/form-floating/form-floating.directive.mjs +32 -0
- package/esm2022/lib/molecules/form/form-label/form-label.directive.mjs +40 -0
- package/esm2022/lib/molecules/form/form-select/form-select.directive.mjs +35 -0
- package/esm2022/lib/molecules/form/form-text/form-text.directive.mjs +22 -0
- package/esm2022/lib/molecules/form/form.module.mjs +75 -0
- package/esm2022/lib/molecules/form/index.mjs +2 -0
- package/esm2022/lib/molecules/form/input-group/input-group.component.mjs +32 -0
- package/esm2022/lib/molecules/form/input-group-text/input-group-text.directive.mjs +23 -0
- package/esm2022/lib/molecules/form/public_api.mjs +14 -0
- 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 +55 -0
- package/esm2022/lib/molecules/shared/index.mjs +2 -0
- package/esm2022/lib/molecules/shared/public_api.mjs +4 -0
- package/esm2022/lib/molecules/shared/shared.module.mjs +22 -0
- package/esm2022/lib/molecules/shared/template-id.directive.mjs +20 -0
- package/esm2022/lib/molecules/time-picker/index.mjs +2 -0
- package/esm2022/lib/molecules/time-picker/public_api.mjs +3 -0
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +106 -0
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +107 -0
- package/esm2022/lib/molecules/time-picker/time-picker.component.mjs +512 -0
- package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +51 -0
- package/esm2022/lib/molecules/time-picker/time.utils.mjs +676 -0
- package/esm2022/public-api.mjs +18 -0
- package/fesm2022/gettrx-core-components-angular.mjs +7888 -0
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -0
- 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 +5 -5
- package/lib/atoms/badge/badge.component.d.ts +25 -0
- package/lib/atoms/badge/badge.module.d.ts +9 -0
- package/lib/atoms/badge/index.d.ts +1 -0
- package/lib/atoms/badge/public_api.d.ts +2 -0
- package/lib/atoms/button/button-close.directive.d.ts +13 -0
- package/lib/atoms/button/button.directive.d.ts +48 -0
- package/lib/atoms/button/button.module.d.ts +8 -0
- package/lib/atoms/button/index.d.ts +1 -0
- package/lib/atoms/button/public_api.d.ts +3 -0
- 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/gtr.types.d.ts +46 -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-close.directive.d.ts +13 -0
- package/lib/molecules/button/button.directive.d.ts +48 -0
- package/lib/molecules/button/button.module.d.ts +8 -0
- package/lib/molecules/button/index.d.ts +1 -0
- package/lib/molecules/button/public_api.d.ts +3 -0
- package/lib/molecules/calendar/calendar/calendar-class-view.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar/calendar.component.d.ts +177 -0
- package/lib/molecules/calendar/calendar-month/calendar-class-day.pipe.d.ts +15 -0
- package/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-day.directive.d.ts +33 -0
- package/lib/molecules/calendar/calendar-month/calendar-day.pipe.d.ts +8 -0
- package/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-month.component.d.ts +134 -0
- package/lib/molecules/calendar/calendar-month/calendar-month.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.d.ts +8 -0
- package/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.d.ts +32 -0
- package/lib/molecules/calendar/calendar.module.d.ts +19 -0
- package/lib/molecules/calendar/calendar.service.d.ts +36 -0
- package/lib/molecules/calendar/calendar.utils.d.ts +26 -0
- package/lib/molecules/calendar/index.d.ts +1 -0
- package/lib/molecules/calendar/public_api.d.ts +4 -0
- 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/core-components.types.d.ts +46 -0
- package/lib/molecules/date-picker/date-picker.component.d.ts +18 -0
- package/lib/molecules/date-picker/date-picker.module.d.ts +18 -0
- package/lib/molecules/date-picker/index.d.ts +1 -0
- package/lib/molecules/date-picker/public_api.d.ts +2 -0
- package/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.d.ts +272 -0
- package/lib/molecules/date-range-picker/date-range-picker.module.d.ts +18 -0
- package/lib/molecules/date-range-picker/index.d.ts +1 -0
- package/lib/molecules/date-range-picker/public_api.d.ts +2 -0
- package/lib/molecules/dropdown/dropdown/dropdown.component.d.ts +136 -0
- package/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.d.ts +26 -0
- package/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.d.ts +36 -0
- package/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +34 -0
- package/lib/molecules/dropdown/dropdown.module.d.ts +13 -0
- package/lib/molecules/dropdown/dropdown.service.d.ts +13 -0
- package/lib/molecules/dropdown/index.d.ts +1 -0
- package/lib/molecules/dropdown/public_api.d.ts +9 -0
- 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/form/form/form.directive.d.ts +13 -0
- package/lib/molecules/form/form-check/form-check-input.directive.d.ts +31 -0
- package/lib/molecules/form/form-check/form-check-label.directive.d.ts +6 -0
- package/lib/molecules/form/form-check/form-check.component.d.ts +39 -0
- package/lib/molecules/form/form-control/form-control.directive.d.ts +31 -0
- package/lib/molecules/form/form-feedback/form-feedback.component.d.ts +17 -0
- package/lib/molecules/form/form-floating/form-floating.directive.d.ts +12 -0
- package/lib/molecules/form/form-label/form-label.directive.d.ts +16 -0
- package/lib/molecules/form/form-select/form-select.directive.d.ts +16 -0
- package/lib/molecules/form/form-text/form-text.directive.d.ts +6 -0
- package/lib/molecules/form/form.module.d.ts +18 -0
- package/lib/molecules/form/index.d.ts +1 -0
- package/lib/molecules/form/input-group/input-group.component.d.ts +11 -0
- package/lib/molecules/form/input-group-text/input-group-text.directive.d.ts +7 -0
- package/lib/molecules/form/public_api.d.ts +13 -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/shared/html-attr.directive.d.ts +16 -0
- package/lib/molecules/shared/index.d.ts +1 -0
- package/lib/molecules/shared/public_api.d.ts +3 -0
- package/lib/molecules/shared/shared.module.d.ts +10 -0
- package/lib/molecules/shared/template-id.directive.d.ts +9 -0
- package/lib/molecules/time-picker/index.d.ts +1 -0
- package/lib/molecules/time-picker/public_api.d.ts +2 -0
- package/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.d.ts +39 -0
- package/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.d.ts +38 -0
- package/lib/molecules/time-picker/time-picker.component.d.ts +196 -0
- package/lib/molecules/time-picker/time-picker.module.d.ts +14 -0
- package/lib/molecules/time-picker/time.utils.d.ts +57 -0
- package/package.json +8 -15
- package/public-api.d.ts +14 -0
- package/esm2020/generated/components.mjs +0 -729
- package/esm2020/generated/number-value-accessor.mjs +0 -40
- package/esm2020/generated/proxies-list.mjs +0 -30
- package/esm2020/generated/text-value-accessor.mjs +0 -36
- package/esm2020/index.mjs +0 -9
- package/fesm2015/gettrx-core-components-angular.mjs +0 -918
- package/fesm2015/gettrx-core-components-angular.mjs.map +0 -1
- package/fesm2020/gettrx-core-components-angular.mjs +0 -918
- package/fesm2020/gettrx-core-components-angular.mjs.map +0 -1
- package/generated/number-value-accessor.d.ts +0 -9
- /package/{esm2020 → esm2022}/generated/angular-component-lib/utils.mjs +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { GtrFileInputList } from './file-input.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FileInputComponent {
|
|
5
|
+
fileInputElement: ElementRef<HTMLInputElement>;
|
|
6
|
+
/**
|
|
7
|
+
* accept for file input
|
|
8
|
+
* i.e. CSV, png, image/*
|
|
9
|
+
*/
|
|
10
|
+
accept: string;
|
|
11
|
+
/**
|
|
12
|
+
* heading text for file input
|
|
13
|
+
*/
|
|
14
|
+
heading: string;
|
|
15
|
+
/**
|
|
16
|
+
* description/info text for file input
|
|
17
|
+
*/
|
|
18
|
+
description: string;
|
|
19
|
+
/**
|
|
20
|
+
* aria label attribute
|
|
21
|
+
*/
|
|
22
|
+
ariaLabel: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* identifier attribute
|
|
25
|
+
*/
|
|
26
|
+
identifier: string;
|
|
27
|
+
/**
|
|
28
|
+
* File upload event
|
|
29
|
+
* @returns list of files selected
|
|
30
|
+
*/
|
|
31
|
+
readonly gtrFileSelected: EventEmitter<GtrFileInputList | null>;
|
|
32
|
+
/**
|
|
33
|
+
* File upload event
|
|
34
|
+
* @returns list of files selected
|
|
35
|
+
*/
|
|
36
|
+
readonly gtrFileError: EventEmitter<string[]>;
|
|
37
|
+
/**
|
|
38
|
+
* Show name of current selected file at 0 index
|
|
39
|
+
*/
|
|
40
|
+
currentSelectedFileName: string;
|
|
41
|
+
/**
|
|
42
|
+
* TO get file input
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
getFileInputElement(): HTMLInputElement;
|
|
46
|
+
/**
|
|
47
|
+
* Local function to validate file type
|
|
48
|
+
* @param file
|
|
49
|
+
* @returns boolean
|
|
50
|
+
*/
|
|
51
|
+
validateFileType(file: File): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* validate file type
|
|
54
|
+
*/
|
|
55
|
+
filterValidFiles(files: FileList): GtrFileInputList | null;
|
|
56
|
+
/**
|
|
57
|
+
* local method to handle file change events
|
|
58
|
+
* @param event
|
|
59
|
+
*/
|
|
60
|
+
handleFileChange(event: Event): void;
|
|
61
|
+
/**
|
|
62
|
+
* local method to handle file drop event
|
|
63
|
+
* @param event
|
|
64
|
+
*/
|
|
65
|
+
handleDrop(event: DragEvent): void;
|
|
66
|
+
/**
|
|
67
|
+
* local function to set text limit
|
|
68
|
+
*/
|
|
69
|
+
fileTextLimit(fileName: string): string;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileInputComponent, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent, "gtr-file-input", never, { "accept": { "alias": "accept"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "description": { "alias": "description"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; }, { "gtrFileSelected": "gtrFileSelected"; "gtrFileError": "gtrFileError"; }, never, never, false, never>;
|
|
72
|
+
}
|
|
@@ -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,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormDirective {
|
|
3
|
+
/**
|
|
4
|
+
* Mark a form as validated. If you set it `true`, all validation styles will be applied to the form. [docs]
|
|
5
|
+
* @type boolean
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
validated: string | boolean;
|
|
9
|
+
get hostClasses(): any;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective, "form[gtrForm]", never, { "validated": { "alias": "validated"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
static ngAcceptInputType_validated: unknown;
|
|
13
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormCheckInputDirective {
|
|
5
|
+
private renderer;
|
|
6
|
+
private hostElement;
|
|
7
|
+
static ngAcceptInputType_indeterminate: BooleanInput;
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the type of component.
|
|
10
|
+
* @type {'checkbox' | 'radio'}
|
|
11
|
+
* @default 'checkbox'
|
|
12
|
+
*/
|
|
13
|
+
type: 'checkbox' | 'radio';
|
|
14
|
+
/**
|
|
15
|
+
* Set component indeterminate state.
|
|
16
|
+
* @type boolean
|
|
17
|
+
*/
|
|
18
|
+
set indeterminate(value: boolean);
|
|
19
|
+
get indeterminate(): boolean;
|
|
20
|
+
private _indeterminate;
|
|
21
|
+
/**
|
|
22
|
+
* Set component validation state to valid.
|
|
23
|
+
* @type boolean
|
|
24
|
+
*/
|
|
25
|
+
valid?: boolean;
|
|
26
|
+
get hostClasses(): any;
|
|
27
|
+
get checked(): boolean;
|
|
28
|
+
constructor(renderer: Renderer2, hostElement: ElementRef);
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCheckInputDirective, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormCheckInputDirective, "input[gtrFormCheckInput]", never, { "type": { "alias": "type"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormCheckLabelDirective {
|
|
3
|
+
get hostClasses(): any;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCheckLabelDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormCheckLabelDirective, "label[gtrFormCheckLabel]", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { FormCheckLabelDirective } from './form-check-label.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormCheckComponent implements AfterContentInit {
|
|
5
|
+
#private;
|
|
6
|
+
/**
|
|
7
|
+
* Group checkboxes or radios on the same horizontal row.
|
|
8
|
+
* @type boolean
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
inline: string | boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Put checkboxes or radios on the opposite side.
|
|
14
|
+
* @type boolean
|
|
15
|
+
* @default false
|
|
16
|
+
* @since 4.4.7
|
|
17
|
+
*/
|
|
18
|
+
reverse: string | boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Size the component large or extra large. Works only with `[switch]="true"` [docs]
|
|
21
|
+
* @type {'lg' | 'xl' | ''}
|
|
22
|
+
*/
|
|
23
|
+
sizing?: 'lg' | 'xl' | '';
|
|
24
|
+
/**
|
|
25
|
+
* Render a toggle switch on for checkbox.
|
|
26
|
+
* @type boolean
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
switch: string | boolean;
|
|
30
|
+
get hostClasses(): any;
|
|
31
|
+
formCheckLabel: FormCheckLabelDirective;
|
|
32
|
+
get formCheckClass(): boolean;
|
|
33
|
+
ngAfterContentInit(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCheckComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormCheckComponent, "gtr-form-check", ["gtrFormCheck"], { "inline": { "alias": "inline"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "sizing": { "alias": "sizing"; "required": false; }; "switch": { "alias": "switch"; "required": false; }; }, {}, ["formCheckLabel"], ["*"], true, never>;
|
|
36
|
+
static ngAcceptInputType_inline: unknown;
|
|
37
|
+
static ngAcceptInputType_reverse: unknown;
|
|
38
|
+
static ngAcceptInputType_switch: unknown;
|
|
39
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { InputType } from '../../core-components.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormControlDirective implements OnInit {
|
|
5
|
+
private hostElement;
|
|
6
|
+
constructor(hostElement: ElementRef);
|
|
7
|
+
/**
|
|
8
|
+
* Size the component small or large.
|
|
9
|
+
* @type {'sm' | 'lg'}
|
|
10
|
+
*/
|
|
11
|
+
sizing?: '' | 'sm' | 'lg' | string;
|
|
12
|
+
/**
|
|
13
|
+
* Set component validation state to valid.
|
|
14
|
+
* @type boolean
|
|
15
|
+
*/
|
|
16
|
+
valid?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the type of input element.
|
|
19
|
+
*/
|
|
20
|
+
type: Omit<InputType, 'checkbox' | 'radio'>;
|
|
21
|
+
/**
|
|
22
|
+
* Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use alongside `readonly` [docs]
|
|
23
|
+
*/
|
|
24
|
+
plaintext: string | boolean;
|
|
25
|
+
get hostClasses(): any;
|
|
26
|
+
get hostTag(): string;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlDirective, "input[gtrFormControl], textarea[gtrFormControl]", never, { "sizing": { "alias": "sizing"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "type": { "alias": "type"; "required": false; }; "plaintext": { "alias": "plaintext"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
static ngAcceptInputType_plaintext: unknown;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormFeedbackComponent {
|
|
3
|
+
/**
|
|
4
|
+
* If your form layout allows it, you can display validation feedback in a styled tooltip.
|
|
5
|
+
* @type boolean
|
|
6
|
+
*/
|
|
7
|
+
tooltip: string | boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Set component validation state to valid.
|
|
10
|
+
* @type boolean
|
|
11
|
+
*/
|
|
12
|
+
valid?: boolean;
|
|
13
|
+
get hostClasses(): any;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFeedbackComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFeedbackComponent, "gtr-form-feedback", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
static ngAcceptInputType_tooltip: unknown;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormFloatingDirective {
|
|
3
|
+
/**
|
|
4
|
+
* Enable floating labels
|
|
5
|
+
* @type boolean
|
|
6
|
+
*/
|
|
7
|
+
floating: string | boolean;
|
|
8
|
+
get hostClasses(): any;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFloatingDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormFloatingDirective, "[gtrFormFloating]", never, { "floating": { "alias": "gtrFormFloating"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
static ngAcceptInputType_floating: unknown;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormLabelDirective {
|
|
3
|
+
/**
|
|
4
|
+
* For horizontal forms set labels to 'col' and make them vertically centered with their associated form controls.
|
|
5
|
+
* @type 'col'
|
|
6
|
+
*/
|
|
7
|
+
col: 'col' | '';
|
|
8
|
+
/**
|
|
9
|
+
* Size the label small or large.
|
|
10
|
+
*/
|
|
11
|
+
sizing: '' | 'sm' | 'lg' | string;
|
|
12
|
+
get hostClasses(): any;
|
|
13
|
+
constructor();
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormLabelDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormLabelDirective, "[gtrLabel]", never, { "col": { "alias": "gtrLabel"; "required": false; }; "sizing": { "alias": "sizing"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormSelectDirective {
|
|
3
|
+
/**
|
|
4
|
+
* Size the component small or large.
|
|
5
|
+
*/
|
|
6
|
+
sizing?: '' | 'sm' | 'lg' | string;
|
|
7
|
+
/**
|
|
8
|
+
* Set component validation state to valid.
|
|
9
|
+
* @type {boolean | undefined}
|
|
10
|
+
*/
|
|
11
|
+
valid?: boolean;
|
|
12
|
+
get hostClasses(): any;
|
|
13
|
+
constructor();
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSelectDirective, "select[gtrSelect]", never, { "sizing": { "alias": "sizing"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormTextDirective {
|
|
3
|
+
get hostClasses(): any;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormTextDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormTextDirective, "[gtrFormText]", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./form/form.directive";
|
|
3
|
+
import * as i2 from "./form-check/form-check.component";
|
|
4
|
+
import * as i3 from "./form-check/form-check-label.directive";
|
|
5
|
+
import * as i4 from "./form-check/form-check-input.directive";
|
|
6
|
+
import * as i5 from "./form-control/form-control.directive";
|
|
7
|
+
import * as i6 from "./form-feedback/form-feedback.component";
|
|
8
|
+
import * as i7 from "./form-floating/form-floating.directive";
|
|
9
|
+
import * as i8 from "./form-label/form-label.directive";
|
|
10
|
+
import * as i9 from "./form-select/form-select.directive";
|
|
11
|
+
import * as i10 from "./form-text/form-text.directive";
|
|
12
|
+
import * as i11 from "./input-group/input-group.component";
|
|
13
|
+
import * as i12 from "./input-group-text/input-group-text.directive";
|
|
14
|
+
export declare class FormModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, never, [typeof i1.FormDirective, typeof i2.FormCheckComponent, typeof i3.FormCheckLabelDirective, typeof i4.FormCheckInputDirective, typeof i5.FormControlDirective, typeof i6.FormFeedbackComponent, typeof i7.FormFloatingDirective, typeof i8.FormLabelDirective, typeof i9.FormSelectDirective, typeof i10.FormTextDirective, typeof i11.InputGroupComponent, typeof i12.InputGroupTextDirective], [typeof i1.FormDirective, typeof i2.FormCheckComponent, typeof i3.FormCheckLabelDirective, typeof i4.FormCheckInputDirective, typeof i5.FormControlDirective, typeof i6.FormFeedbackComponent, typeof i7.FormFloatingDirective, typeof i8.FormLabelDirective, typeof i9.FormSelectDirective, typeof i10.FormTextDirective, typeof i11.InputGroupComponent, typeof i12.InputGroupTextDirective]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormModule>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InputGroupComponent {
|
|
3
|
+
/**
|
|
4
|
+
* Size the component small or large.
|
|
5
|
+
*/
|
|
6
|
+
sizing: string | 'sm' | 'lg' | '';
|
|
7
|
+
get hostClasses(): any;
|
|
8
|
+
constructor();
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputGroupComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputGroupComponent, "gtr-input-group", never, { "sizing": { "alias": "sizing"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InputGroupTextDirective {
|
|
3
|
+
get hostClasses(): any;
|
|
4
|
+
constructor();
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputGroupTextDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputGroupTextDirective, "[gtrInputGroupText]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { FormDirective } from './form/form.directive';
|
|
2
|
+
export { FormFeedbackComponent } from './form-feedback/form-feedback.component';
|
|
3
|
+
export { InputGroupComponent } from './input-group/input-group.component';
|
|
4
|
+
export { FormSelectDirective } from './form-select/form-select.directive';
|
|
5
|
+
export { FormLabelDirective } from './form-label/form-label.directive';
|
|
6
|
+
export { FormCheckComponent } from './form-check/form-check.component';
|
|
7
|
+
export { FormCheckInputDirective } from './form-check/form-check-input.directive';
|
|
8
|
+
export { FormCheckLabelDirective } from './form-check/form-check-label.directive';
|
|
9
|
+
export { FormControlDirective } from './form-control/form-control.directive';
|
|
10
|
+
export { FormTextDirective } from './form-text/form-text.directive';
|
|
11
|
+
export { FormFloatingDirective } from './form-floating/form-floating.directive';
|
|
12
|
+
export { InputGroupTextDirective } from './input-group-text/input-group-text.directive';
|
|
13
|
+
export { FormModule } from './form.module';
|
|
@@ -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';
|