@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,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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HtmlAttributesDirective implements OnInit {
|
|
4
|
+
private renderer;
|
|
5
|
+
private el;
|
|
6
|
+
gtrHtmlAttr?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
constructor(renderer: Renderer2, el: ElementRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
private setStyle;
|
|
12
|
+
private addClass;
|
|
13
|
+
private setAttrib;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlAttributesDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HtmlAttributesDirective, "[gtrHtmlAttr]", ["gtrHtmlAttr"], { "gtrHtmlAttr": { "alias": "gtrHtmlAttr"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./html-attr.directive";
|
|
4
|
+
import * as i2 from "./template-id.directive";
|
|
5
|
+
export declare class SharedModule {
|
|
6
|
+
static forRoot(): ModuleWithProviders<SharedModule>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective], [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TemplateIdDirective {
|
|
4
|
+
templateRef: TemplateRef<any>;
|
|
5
|
+
id: string;
|
|
6
|
+
constructor(templateRef: TemplateRef<any>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateIdDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateIdDirective, "[gtrTemplateId]", never, { "id": { "alias": "gtrTemplateId"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { DayPeriod } from '../time.utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IDayPeriod {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
dayPeriod?: DayPeriod;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class DayPeriodElementDirective {
|
|
11
|
+
elementRef: ElementRef;
|
|
12
|
+
constructor(elementRef: ElementRef);
|
|
13
|
+
gtrDayPeriodElement: IDayPeriod;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DayPeriodElementDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DayPeriodElementDirective, "[gtrDayPeriodElement]", ["gtrDayPeriodElement"], { "gtrDayPeriodElement": { "alias": "gtrDayPeriodElement"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
export declare class TimePickerRollAmPmComponent implements OnChanges, AfterViewInit {
|
|
18
|
+
elementRef: ElementRef;
|
|
19
|
+
constructor(elementRef: ElementRef);
|
|
20
|
+
private init;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
elements: IDayPeriod[];
|
|
23
|
+
onClick?: (value: number | string) => void;
|
|
24
|
+
selected?: number | string | null;
|
|
25
|
+
refresh?: boolean;
|
|
26
|
+
selectedChange: EventEmitter<any>;
|
|
27
|
+
get hostClasses(): {
|
|
28
|
+
'time-picker-roll-col': boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
};
|
|
31
|
+
dayPeriodElements: QueryList<DayPeriodElementDirective>;
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
+
scrollToElement(element: any): void;
|
|
35
|
+
handleElementClick($event: MouseEvent, element: any): void;
|
|
36
|
+
trackByElement(index: number, element: IDayPeriod): string;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerRollAmPmComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerRollAmPmComponent, "gtr-time-picker-roll-am-pm", never, { "disabled": { "alias": "disabled"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ITimeValue } from '../time.utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ITimePickerRollCol {
|
|
5
|
+
elements: ITimeValue[];
|
|
6
|
+
onClick?: (value: number | string) => void;
|
|
7
|
+
selected?: number | string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare class TimeElementDirective {
|
|
10
|
+
elementRef: ElementRef;
|
|
11
|
+
constructor(elementRef: ElementRef);
|
|
12
|
+
gtrTimeElement: ITimeValue;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeElementDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimeElementDirective, "[gtrTimeElement]", ["gtrTimeElement"], { "gtrTimeElement": { "alias": "gtrTimeElement"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
export declare class TimePickerRollColComponent implements ITimePickerRollCol, OnChanges, AfterViewInit {
|
|
17
|
+
elementRef: ElementRef;
|
|
18
|
+
constructor(elementRef: ElementRef);
|
|
19
|
+
private init;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
elements: ITimeValue[];
|
|
22
|
+
onClick?: (value: number | string) => void;
|
|
23
|
+
selected?: number | string | null;
|
|
24
|
+
refresh?: boolean;
|
|
25
|
+
selectedChange: EventEmitter<any>;
|
|
26
|
+
get hostClasses(): {
|
|
27
|
+
'time-picker-roll-col': boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
};
|
|
30
|
+
timeElements: QueryList<TimeElementDirective>;
|
|
31
|
+
ngAfterViewInit(): void;
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
+
scrollToElement(element: any): void;
|
|
34
|
+
handleElementClick($event: MouseEvent, element: any): void;
|
|
35
|
+
trackByElement(index: number, element: ITimeValue): number;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerRollColComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerRollColComponent, "gtr-time-picker-roll-col", ["gtrTimePickerRollCol"], { "disabled": { "alias": "disabled"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { DateTimeFormatOptions, DayPeriod, ITimeValue } from './time.utils';
|
|
5
|
+
import { TemplateIdDirective } from '../shared';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TimePickerComponent implements OnChanges, OnInit, ControlValueAccessor, AfterViewInit {
|
|
8
|
+
constructor();
|
|
9
|
+
static ngAcceptInputType_cleaner: BooleanInput;
|
|
10
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
11
|
+
static ngAcceptInputType_indicator: BooleanInput;
|
|
12
|
+
static ngAcceptInputType_inputReadOnly: BooleanInput;
|
|
13
|
+
static ngAcceptInputType_seconds: BooleanInput;
|
|
14
|
+
static ngAcceptInputType_visible: BooleanInput;
|
|
15
|
+
/**
|
|
16
|
+
* Toggle visibility or set the content of the cleaner button.
|
|
17
|
+
* @type boolean
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
set cleaner(value: boolean);
|
|
21
|
+
get cleaner(): boolean;
|
|
22
|
+
private _cleaner;
|
|
23
|
+
/**
|
|
24
|
+
* Sets DateTime format options including timeZone
|
|
25
|
+
* @type DateTimeFormatOptions
|
|
26
|
+
* @default {}
|
|
27
|
+
* @note The date object doesn't store timeZone, it keeps the local timezone of the browser, regardless if you parsed UTC dates.
|
|
28
|
+
*/
|
|
29
|
+
dateTimeFormatOptions: DateTimeFormatOptions;
|
|
30
|
+
/**
|
|
31
|
+
* Toggle the disabled state for the component.
|
|
32
|
+
* @type boolean
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
set disabled(value: boolean);
|
|
36
|
+
get disabled(): boolean;
|
|
37
|
+
private _disabled;
|
|
38
|
+
/**
|
|
39
|
+
* Filter available hours to pick.
|
|
40
|
+
* @type (value: number) => boolean;
|
|
41
|
+
* @default undefined
|
|
42
|
+
*/
|
|
43
|
+
filterHours?: (value: number) => boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Filter available minutes to pick.
|
|
46
|
+
* @type (value: number) => boolean;
|
|
47
|
+
* @default undefined
|
|
48
|
+
*/
|
|
49
|
+
filterMinutes?: (value: number) => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Filter available seconds to pick.
|
|
52
|
+
* @type (value: number) => boolean;
|
|
53
|
+
* @default undefined
|
|
54
|
+
*/
|
|
55
|
+
filterSeconds?: (value: number) => boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Toggle visibility or set the content of the input indicator.
|
|
58
|
+
* @type boolean
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
set indicator(value: boolean);
|
|
62
|
+
get indicator(): boolean;
|
|
63
|
+
private _indicator;
|
|
64
|
+
/**
|
|
65
|
+
* Toggle the readonly state for the component.
|
|
66
|
+
* @type boolean
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
set inputReadOnly(value: boolean);
|
|
70
|
+
get inputReadOnly(): boolean;
|
|
71
|
+
private _inputReadOnly;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the default locale for components. If not set, it is inherited from the browser.
|
|
74
|
+
* @type string
|
|
75
|
+
* @default default
|
|
76
|
+
*/
|
|
77
|
+
locale: string;
|
|
78
|
+
/**
|
|
79
|
+
* Specifies short hint visible in time input.
|
|
80
|
+
* @type string
|
|
81
|
+
* @default 'Select time'
|
|
82
|
+
*/
|
|
83
|
+
placeholder: string;
|
|
84
|
+
/**
|
|
85
|
+
* Toggle seconds visibility.
|
|
86
|
+
* @type boolean
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
set seconds(value: boolean);
|
|
90
|
+
get seconds(): boolean;
|
|
91
|
+
private _seconds;
|
|
92
|
+
/**
|
|
93
|
+
* Size the component small or large.
|
|
94
|
+
* @type 'sm' | 'lg' | undefined
|
|
95
|
+
* @default undefined
|
|
96
|
+
*/
|
|
97
|
+
size?: 'sm' | 'lg';
|
|
98
|
+
/**
|
|
99
|
+
* Initial selected time.
|
|
100
|
+
* @type Date | string | null | number
|
|
101
|
+
* @default undefined
|
|
102
|
+
*/
|
|
103
|
+
set time(value: Date | string | undefined);
|
|
104
|
+
get time(): Date | undefined;
|
|
105
|
+
private _time?;
|
|
106
|
+
private _timeInternal?;
|
|
107
|
+
/**
|
|
108
|
+
* Set the time picker variant to a roll or select.
|
|
109
|
+
* @type 'roll' | 'select'
|
|
110
|
+
* @default 'roll'
|
|
111
|
+
*/
|
|
112
|
+
variant: 'roll' | 'select';
|
|
113
|
+
/**
|
|
114
|
+
* Toggle visual validation feedback.
|
|
115
|
+
* @type boolean | undefined
|
|
116
|
+
* @default undefined
|
|
117
|
+
*/
|
|
118
|
+
valid?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Toggle the visibility of dropdown timepicker menu component.
|
|
121
|
+
* @type boolean
|
|
122
|
+
* @default false
|
|
123
|
+
*/
|
|
124
|
+
set visible(value: boolean);
|
|
125
|
+
get visible(): boolean;
|
|
126
|
+
private _visible;
|
|
127
|
+
timeChange: EventEmitter<Date | undefined>;
|
|
128
|
+
onBlur(): void;
|
|
129
|
+
dropdownRef: ElementRef;
|
|
130
|
+
templates: any;
|
|
131
|
+
contentTemplates: QueryList<TemplateIdDirective>;
|
|
132
|
+
listOfHours: ITimeValue[];
|
|
133
|
+
listOfHours12: ITimeValue[];
|
|
134
|
+
listOfMinutes: ITimeValue[];
|
|
135
|
+
listOfSeconds: ITimeValue[];
|
|
136
|
+
hour12: boolean;
|
|
137
|
+
dayPeriods: {
|
|
138
|
+
value: string;
|
|
139
|
+
label: string;
|
|
140
|
+
}[];
|
|
141
|
+
set timeInputValue(value: string);
|
|
142
|
+
get timeInputValue(): string;
|
|
143
|
+
private _timeInputValue;
|
|
144
|
+
get timePickerClasses(): {
|
|
145
|
+
'form-control': boolean;
|
|
146
|
+
'is-valid': boolean;
|
|
147
|
+
'is-invalid': boolean;
|
|
148
|
+
};
|
|
149
|
+
selectTime: FormGroup<{
|
|
150
|
+
selectHours: FormControl<number | null>;
|
|
151
|
+
selectMinutes: FormControl<number | null>;
|
|
152
|
+
selectSeconds?: FormControl<number | null> | undefined;
|
|
153
|
+
selectDayPeriod?: FormControl<"am" | "pm" | null> | undefined;
|
|
154
|
+
}>;
|
|
155
|
+
timeInput: FormControl<string | null>;
|
|
156
|
+
set hour(value: number);
|
|
157
|
+
get hour(): number;
|
|
158
|
+
private _hour;
|
|
159
|
+
set minute(value: number);
|
|
160
|
+
get minute(): number;
|
|
161
|
+
private _minute;
|
|
162
|
+
set second(value: number);
|
|
163
|
+
get second(): number;
|
|
164
|
+
private _second;
|
|
165
|
+
set dayPeriod(value: DayPeriod);
|
|
166
|
+
get dayPeriod(): DayPeriod;
|
|
167
|
+
private _dayPeriod;
|
|
168
|
+
setTime(): void;
|
|
169
|
+
clearTime(): void;
|
|
170
|
+
emitTime(time: Date | undefined): void;
|
|
171
|
+
ngOnInit(): void;
|
|
172
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
173
|
+
ngAfterViewInit(): void;
|
|
174
|
+
setTimeLists(): void;
|
|
175
|
+
updateSelectTime(time?: Date | undefined): void;
|
|
176
|
+
closestTime(timeArray: ITimeValue[], timeSegment: number): ITimeValue;
|
|
177
|
+
listOfTimeSegments(getListOfTimeSegments: (locale: string, dateTimeFormatOptions: DateTimeFormatOptions) => ITimeValue[], filterTimeSegments: ((timeSegmentValue: number) => boolean) | undefined): ITimeValue[];
|
|
178
|
+
handleSelectDayPeriodChange(dayPeriod: DayPeriod): void;
|
|
179
|
+
handleSelectHoursChange(hour: number): void;
|
|
180
|
+
handleSelectMinutesChange(minute: number): void;
|
|
181
|
+
handleSelectSecondsChange(second: number): void;
|
|
182
|
+
patchSelectTimeValues(): void;
|
|
183
|
+
trackByHour(index: number, hour: ITimeValue): ITimeValue;
|
|
184
|
+
onChange: (value: Date | undefined) => void;
|
|
185
|
+
onTouched: () => void;
|
|
186
|
+
writeValue(value: any): void;
|
|
187
|
+
registerOnChange(fn: any): void;
|
|
188
|
+
registerOnTouched(fn: any): void;
|
|
189
|
+
setDisabledState(isDisabled: boolean): void;
|
|
190
|
+
handleTimeInputChange($event: any): void;
|
|
191
|
+
handleClear($event: MouseEvent): void;
|
|
192
|
+
handleBlur($event: FocusEvent): void;
|
|
193
|
+
handleFocus($event: FocusEvent): void;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "gtr-time-picker", ["cTimePicker"], { "cleaner": { "alias": "cleaner"; "required": false; }; "dateTimeFormatOptions": { "alias": "dateTimeFormatOptions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "filterHours": { "alias": "filterHours"; "required": false; }; "filterMinutes": { "alias": "filterMinutes"; "required": false; }; "filterSeconds": { "alias": "filterSeconds"; "required": false; }; "indicator": { "alias": "indicator"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "seconds": { "alias": "seconds"; "required": false; }; "size": { "alias": "size"; "required": false; }; "time": { "alias": "time"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "timeChange": "timeChange"; }, ["contentTemplates"], never, true, never>;
|
|
196
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/forms";
|
|
4
|
+
import * as i3 from "../form/form.module";
|
|
5
|
+
import * as i4 from "../button/button.module";
|
|
6
|
+
import * as i5 from "../dropdown/dropdown.module";
|
|
7
|
+
import * as i6 from "./time-picker-roll-col/time-picker-roll-am-pm.component";
|
|
8
|
+
import * as i7 from "./time-picker-roll-col/time-picker-roll-col.component";
|
|
9
|
+
import * as i8 from "./time-picker.component";
|
|
10
|
+
export declare class TimePickerModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TimePickerModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.FormModule, typeof i4.ButtonModule, typeof i5.DropdownModule, typeof i6.DayPeriodElementDirective, typeof i7.TimeElementDirective, typeof i8.TimePickerComponent, typeof i6.TimePickerRollAmPmComponent, typeof i7.TimePickerRollColComponent], [typeof i8.TimePickerComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TimePickerModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface DateTimeFormatOptions {
|
|
2
|
+
localeMatcher?: 'best fit' | 'lookup' | undefined;
|
|
3
|
+
weekday?: 'long' | 'short' | 'narrow' | undefined;
|
|
4
|
+
era?: 'long' | 'short' | 'narrow' | undefined;
|
|
5
|
+
year?: 'numeric' | '2-digit' | undefined;
|
|
6
|
+
month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow' | undefined;
|
|
7
|
+
day?: 'numeric' | '2-digit' | undefined;
|
|
8
|
+
hour?: 'numeric' | '2-digit' | undefined;
|
|
9
|
+
minute?: 'numeric' | '2-digit' | undefined;
|
|
10
|
+
second?: 'numeric' | '2-digit' | undefined;
|
|
11
|
+
timeZoneName?: 'long' | 'short' | undefined;
|
|
12
|
+
formatMatcher?: 'best fit' | 'basic' | undefined;
|
|
13
|
+
hour12?: boolean | undefined;
|
|
14
|
+
timeZone?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export type DayPeriod = 'am' | 'pm';
|
|
17
|
+
export interface ITimeValue {
|
|
18
|
+
value: number;
|
|
19
|
+
label: string;
|
|
20
|
+
dayPeriod?: DayPeriod;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface IDayPeriods {
|
|
24
|
+
am: string;
|
|
25
|
+
pm: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const getSupportedLocale: (locale?: string) => string;
|
|
28
|
+
export declare const isHour12: (locale?: string) => boolean;
|
|
29
|
+
export declare const convert12hTo24h: (abbr: 'am' | 'pm', hour: number) => number;
|
|
30
|
+
export declare const convert24hTo12h: (hour: number) => number;
|
|
31
|
+
export declare const convertTimeToDate: (time: Date | string | null | undefined) => Date | null;
|
|
32
|
+
export declare const getAmPm: (date: Date, locale: string, options?: DateTimeFormatOptions) => DayPeriod;
|
|
33
|
+
export declare const isAm: (date: Date) => boolean;
|
|
34
|
+
export declare const isPm: (date: Date) => boolean;
|
|
35
|
+
export declare const isValidTimeZone: (timeZone: unknown) => boolean;
|
|
36
|
+
export declare const getListOfHours: (locale: string, options?: DateTimeFormatOptions) => {
|
|
37
|
+
value: number;
|
|
38
|
+
dayPeriod: DayPeriod;
|
|
39
|
+
label: string;
|
|
40
|
+
}[];
|
|
41
|
+
export declare const getListOfMinutes: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
|
|
42
|
+
value: number;
|
|
43
|
+
label: string;
|
|
44
|
+
}[];
|
|
45
|
+
export declare const getListOfSeconds: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
|
|
46
|
+
value: number;
|
|
47
|
+
label: string;
|
|
48
|
+
}[];
|
|
49
|
+
export declare const getSelectedHour: (date: Date | null, locale: string) => number | "";
|
|
50
|
+
export declare const getSelectedMinutes: (date: Date | null) => number | "";
|
|
51
|
+
export declare const getSelectedSeconds: (date: Date | null) => number | "";
|
|
52
|
+
export declare const isAmPm: (locale?: string) => boolean;
|
|
53
|
+
export declare const isValidTime: (time: string | Date | number | any) => boolean;
|
|
54
|
+
export declare const getDayPeriods: (locale?: string, options?: DateTimeFormatOptions) => {
|
|
55
|
+
value: string;
|
|
56
|
+
label: string;
|
|
57
|
+
}[];
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
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",
|
|
7
|
-
"stencil",
|
|
8
7
|
"component",
|
|
9
8
|
"angular"
|
|
10
9
|
],
|
|
@@ -19,15 +18,11 @@
|
|
|
19
18
|
},
|
|
20
19
|
"license": "MIT",
|
|
21
20
|
"peerDependencies": {
|
|
22
|
-
"@angular/common": "^
|
|
23
|
-
"@angular/core": "^
|
|
24
|
-
"@gettrx/core-components": "0.0
|
|
21
|
+
"@angular/common": "^16.1.0",
|
|
22
|
+
"@angular/core": "^16.1.0",
|
|
23
|
+
"@gettrx/core-components": "1.0.0"
|
|
25
24
|
},
|
|
26
|
-
"module": "
|
|
27
|
-
"es2020": "fesm2020/gettrx-core-components-angular.mjs",
|
|
28
|
-
"esm2020": "esm2020/gettrx-core-components-angular.mjs",
|
|
29
|
-
"fesm2020": "fesm2020/gettrx-core-components-angular.mjs",
|
|
30
|
-
"fesm2015": "fesm2015/gettrx-core-components-angular.mjs",
|
|
25
|
+
"module": "fesm2022/gettrx-core-components-angular.mjs",
|
|
31
26
|
"typings": "index.d.ts",
|
|
32
27
|
"exports": {
|
|
33
28
|
"./package.json": {
|
|
@@ -35,11 +30,9 @@
|
|
|
35
30
|
},
|
|
36
31
|
".": {
|
|
37
32
|
"types": "./index.d.ts",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"node": "./fesm2015/gettrx-core-components-angular.mjs",
|
|
42
|
-
"default": "./fesm2020/gettrx-core-components-angular.mjs"
|
|
33
|
+
"esm2022": "./esm2022/gettrx-core-components-angular.mjs",
|
|
34
|
+
"esm": "./esm2022/gettrx-core-components-angular.mjs",
|
|
35
|
+
"default": "./fesm2022/gettrx-core-components-angular.mjs"
|
|
43
36
|
}
|
|
44
37
|
},
|
|
45
38
|
"sideEffects": false,
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './generated/components';
|
|
2
|
+
export { TextValueAccessor } from './generated/text-value-accessor';
|
|
3
|
+
export { ValueAccessor } from './generated/value-accessor';
|
|
4
|
+
export { GettrxModule } from './gettrx-module';
|
|
5
|
+
export * from './lib/atoms/gtr.types';
|
|
6
|
+
export * from './lib/atoms/badge';
|
|
7
|
+
export * from './lib/atoms/button';
|
|
8
|
+
export * from './lib/molecules/date-picker';
|
|
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';
|