@gettrx/core-components-angular 1.0.1 → 1.0.3
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/lib/atoms/badge/gtr-badge.component.mjs +77 -0
- package/esm2022/lib/atoms/badge/gtr-badge.module.mjs +19 -0
- package/esm2022/lib/atoms/badge/public_api.mjs +3 -3
- package/esm2022/lib/atoms/button/gtr-button.component.mjs +60 -0
- package/esm2022/lib/atoms/button/gtr-button.module.mjs +19 -0
- package/esm2022/lib/atoms/button/gtr-button.types.mjs +2 -0
- package/esm2022/lib/atoms/button/index.mjs +3 -2
- package/esm2022/lib/atoms/button-directive/gtr-button-close.directive.mjs +39 -0
- package/esm2022/lib/atoms/button-directive/gtr-button-directive.module.mjs +17 -0
- package/esm2022/lib/atoms/button-directive/gtr-button.directive.mjs +102 -0
- package/esm2022/lib/atoms/button-directive/index.mjs +2 -0
- package/esm2022/lib/atoms/button-directive/public_api.mjs +4 -0
- package/esm2022/lib/atoms/icon/gtr-icon.component.mjs +50 -0
- package/esm2022/lib/atoms/icon/gtr-icon.module.mjs +18 -0
- package/esm2022/lib/atoms/icon/public_api.mjs +3 -3
- package/esm2022/lib/atoms/input/gtr-input.component.mjs +375 -0
- package/esm2022/lib/atoms/input/gtr-input.module.mjs +21 -0
- package/esm2022/lib/atoms/input/index.mjs +2 -0
- package/esm2022/lib/atoms/input/public_api.mjs +3 -0
- package/esm2022/lib/atoms/input/utils/gtr-input-utils.mjs +26 -0
- package/esm2022/lib/atoms/popover/gtr-popover.component.mjs +147 -0
- package/esm2022/lib/atoms/popover/gtr-popover.module.mjs +18 -0
- package/esm2022/lib/atoms/popover/public_api.mjs +3 -3
- package/esm2022/lib/atoms/radio-button/gtr-radio-button.component.mjs +184 -0
- package/esm2022/lib/atoms/radio-button/gtr-radio-button.module.mjs +19 -0
- package/esm2022/lib/atoms/radio-button/public_api.mjs +3 -3
- package/esm2022/lib/atoms/skeleton/gtr-skeleton.component.mjs +24 -0
- package/esm2022/lib/atoms/skeleton/gtr-skeleton.module.mjs +20 -0
- package/esm2022/lib/atoms/skeleton/public_api.mjs +4 -4
- package/esm2022/lib/atoms/skeleton/utils/gtr-skeleton.directive.mjs +51 -0
- package/esm2022/lib/atoms/switch/gtr-switch.component.mjs +106 -0
- package/esm2022/lib/atoms/switch/gtr-switch.module.mjs +18 -0
- package/esm2022/lib/atoms/switch/index.mjs +2 -0
- package/esm2022/lib/atoms/switch/public_api.mjs +3 -0
- package/esm2022/lib/atoms/textarea/gtr-textarea.component.mjs +242 -0
- package/esm2022/lib/atoms/textarea/gtr-textarea.module.mjs +21 -0
- package/esm2022/lib/atoms/textarea/index.mjs +2 -0
- package/esm2022/lib/atoms/textarea/public_api.mjs +3 -0
- package/esm2022/lib/atoms/textarea/utils/gtr-textarea.types.mjs +9 -0
- package/esm2022/lib/atoms/tooltip/gtr-tooltip.component.mjs +111 -0
- package/esm2022/lib/atoms/tooltip/gtr-tooltip.module.mjs +18 -0
- package/esm2022/lib/atoms/tooltip/index.mjs +2 -0
- package/esm2022/lib/atoms/tooltip/public_api.mjs +3 -0
- package/esm2022/lib/atoms/tooltip/utils/utils.mjs +2 -0
- package/esm2022/lib/core-components.types.mjs +10 -0
- package/esm2022/lib/molecules/accordion/accordion/gtr-accordion.component.mjs +108 -0
- package/esm2022/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.mjs +92 -0
- package/esm2022/lib/molecules/accordion/gtr-accordion.module.mjs +21 -0
- package/esm2022/lib/molecules/accordion/public_api.mjs +4 -4
- package/esm2022/lib/molecules/calendar/calendar/gtr-calendar-class-view.pipe.mjs +20 -0
- package/esm2022/lib/molecules/calendar/calendar/gtr-calendar.component.mjs +428 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-class-day.pipe.mjs +30 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-class-month.pipe.mjs +23 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-class-year.pipe.mjs +22 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-day-title.pipe.mjs +17 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-day.directive.mjs +119 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-day.pipe.mjs +19 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-month-title.pipe.mjs +20 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-month.component.mjs +418 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-month.pipe.mjs +17 -0
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-weekday.pipe.mjs +21 -0
- package/esm2022/lib/molecules/calendar/calendar-navigation/gtr-calendar-navigation.component.mjs +85 -0
- package/esm2022/lib/molecules/calendar/gtr-calendar.module.mjs +55 -0
- package/esm2022/lib/molecules/calendar/gtr-calendar.service.mjs +62 -0
- package/esm2022/lib/molecules/calendar/gtr-calendar.utils.mjs +296 -0
- package/esm2022/lib/molecules/calendar/public_api.mjs +5 -5
- package/esm2022/lib/molecules/checkbox/checkbox/{checkbox.component.mjs → gtr-checkbox.component.mjs} +9 -9
- package/esm2022/lib/molecules/checkbox/checkbox/gtr-checkbox.utils.mjs +2 -0
- package/esm2022/lib/molecules/checkbox/gtr-checkbox.module.mjs +20 -0
- package/esm2022/lib/molecules/checkbox/public_api.mjs +4 -4
- package/esm2022/lib/molecules/date-picker/gtr-date-picker.component.mjs +81 -0
- package/esm2022/lib/molecules/date-picker/gtr-date-picker.module.mjs +58 -0
- package/esm2022/lib/molecules/date-picker/public_api.mjs +3 -3
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.mjs +700 -0
- package/esm2022/lib/molecules/date-range-picker/gtr-date-range-picker.module.mjs +60 -0
- package/esm2022/lib/molecules/date-range-picker/public_api.mjs +3 -3
- package/esm2022/lib/molecules/dropdown/dropdown/gtr-dropdown.component.mjs +387 -0
- package/esm2022/lib/molecules/dropdown/dropdown-close/gtr-dropdown-close.directive.mjs +79 -0
- package/esm2022/lib/molecules/dropdown/dropdown-divider/gtr-dropdown-divider.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-header/gtr-dropdown-header.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-item/gtr-dropdown-item-plain.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-item/gtr-dropdown-item.directive.mjs +93 -0
- package/esm2022/lib/molecules/dropdown/dropdown-menu/gtr-dropdown-menu.directive.mjs +75 -0
- package/esm2022/lib/molecules/dropdown/gtr-dropdown.module.mjs +56 -0
- package/esm2022/lib/molecules/dropdown/gtr-dropdown.service.mjs +18 -0
- package/esm2022/lib/molecules/dropdown/public_api.mjs +10 -10
- package/esm2022/lib/molecules/file-input/file-input/gtr-file-input.component.mjs +144 -0
- package/esm2022/lib/molecules/file-input/file-input/gtr-file-input.model.mjs +2 -0
- package/esm2022/lib/molecules/file-input/gtr-file-input.module.mjs +18 -0
- package/esm2022/lib/molecules/file-input/public_api.mjs +4 -4
- package/esm2022/lib/molecules/form/form/gtr-form.directive.mjs +33 -0
- package/esm2022/lib/molecules/form/form-check/gtr-form-check-input.directive.mjs +62 -0
- package/esm2022/lib/molecules/form/form-check/gtr-form-check-label.directive.mjs +22 -0
- package/esm2022/lib/molecules/form/form-check/gtr-form-check.component.mjs +77 -0
- package/esm2022/lib/molecules/form/form-control/gtr-form-control.directive.mjs +66 -0
- package/esm2022/lib/molecules/form/form-feedback/gtr-form-feedback.component.mjs +38 -0
- package/esm2022/lib/molecules/form/form-floating/gtr-form-floating.directive.mjs +32 -0
- package/esm2022/lib/molecules/form/form-label/gtr-form-label.directive.mjs +40 -0
- package/esm2022/lib/molecules/form/form-select/gtr-form-select.directive.mjs +35 -0
- package/esm2022/lib/molecules/form/form-text/gtr-form-text.directive.mjs +22 -0
- package/esm2022/lib/molecules/form/gtr-form.module.mjs +75 -0
- package/esm2022/lib/molecules/form/input-group/gtr-input-group.component.mjs +32 -0
- package/esm2022/lib/molecules/form/input-group-text/gtr-input-group-text.directive.mjs +23 -0
- package/esm2022/lib/molecules/form/public_api.mjs +14 -14
- package/esm2022/lib/molecules/modal/gtr-modal.component.mjs +148 -0
- package/esm2022/lib/molecules/modal/gtr-modal.module.mjs +18 -0
- package/esm2022/lib/molecules/modal/index.mjs +2 -0
- package/esm2022/lib/molecules/modal/public_api.mjs +3 -0
- package/esm2022/lib/molecules/numeric-counter/gtr-numeric-counter.module.mjs +19 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/{numeric-counter.component.mjs → gtr-numeric-counter.component.mjs} +9 -9
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.const.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.type.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/public_api.mjs +5 -5
- package/esm2022/lib/molecules/pagination/gtr-pagination.module.mjs +36 -0
- package/esm2022/lib/molecules/pagination/helpers/models/gtr-pagination.interface.mjs +2 -0
- package/esm2022/lib/molecules/pagination/helpers/models/gtr-pagination.model.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/models/index.mjs +3 -3
- package/esm2022/lib/molecules/pagination/helpers/pipes/index.mjs +2 -2
- package/esm2022/lib/molecules/pagination/helpers/pipes/validate-page/gtr-validate-page.pipe.mjs +21 -0
- package/esm2022/lib/molecules/pagination/pagination/gtr-pagination.component.mjs +146 -0
- package/esm2022/lib/molecules/pagination/pagination/gtr-pagination.utils.mjs +80 -0
- package/esm2022/lib/molecules/pagination/public_api.mjs +4 -4
- package/esm2022/lib/molecules/select/gtr-select.module.mjs +37 -0
- package/esm2022/lib/molecules/select/helpers/enums/gtr-select.enums.mjs +6 -0
- package/esm2022/lib/molecules/select/helpers/enums/index.mjs +2 -2
- package/esm2022/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.mjs +57 -0
- package/esm2022/lib/molecules/select/helpers/pipes/index.mjs +3 -3
- package/esm2022/lib/molecules/select/helpers/pipes/trim-text/gtr-trim-text.pipe.mjs +26 -0
- package/esm2022/lib/molecules/select/helpers/types/gtr-select.type.mjs +2 -0
- package/esm2022/lib/molecules/select/helpers/types/index.mjs +2 -2
- package/esm2022/lib/molecules/select/public_api.mjs +3 -3
- package/esm2022/lib/molecules/select/select/gtr-select.component.mjs +445 -0
- package/esm2022/lib/molecules/shared/gtr-html-attr.directive.mjs +55 -0
- package/esm2022/lib/molecules/shared/gtr-shared.module.mjs +22 -0
- package/esm2022/lib/molecules/shared/gtr-template-id.directive.mjs +20 -0
- package/esm2022/lib/molecules/shared/public_api.mjs +4 -4
- package/esm2022/lib/molecules/stat-card/gtr-stat-card.component.mjs +135 -0
- package/esm2022/lib/molecules/stat-card/gtr-stat-card.module.mjs +22 -0
- package/esm2022/lib/molecules/stat-card/public_api.mjs +3 -3
- package/esm2022/lib/molecules/time-picker/gtr-time-picker.component.mjs +512 -0
- package/esm2022/lib/molecules/time-picker/gtr-time-picker.module.mjs +51 -0
- package/esm2022/lib/molecules/time-picker/gtr-time.utils.mjs +676 -0
- package/esm2022/lib/molecules/time-picker/public_api.mjs +3 -3
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-am-pm.component.mjs +106 -0
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-col.component.mjs +107 -0
- package/esm2022/public-api.mjs +8 -8
- package/fesm2022/gettrx-core-components-angular.mjs +825 -974
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/atoms/badge/gtr-badge.component.d.ts +25 -0
- package/lib/atoms/badge/gtr-badge.module.d.ts +9 -0
- package/lib/atoms/badge/public_api.d.ts +2 -2
- package/lib/atoms/{custom-button/custom-button.component.d.ts → button/gtr-button.component.d.ts} +4 -4
- package/lib/atoms/button/gtr-button.module.d.ts +9 -0
- package/lib/atoms/button/index.d.ts +2 -1
- package/lib/atoms/button-directive/gtr-button-close.directive.d.ts +13 -0
- package/lib/atoms/button-directive/gtr-button-directive.module.d.ts +8 -0
- package/lib/atoms/{button/button.directive.d.ts → button-directive/gtr-button.directive.d.ts} +4 -4
- package/lib/atoms/button-directive/public_api.d.ts +3 -0
- package/lib/atoms/icon/gtr-icon.component.d.ts +28 -0
- package/lib/atoms/icon/{icon.module.d.ts → gtr-icon.module.d.ts} +2 -2
- package/lib/atoms/icon/public_api.d.ts +2 -2
- package/lib/atoms/{custom-input/custom-input.component.d.ts → input/gtr-input.component.d.ts} +6 -7
- package/lib/atoms/input/gtr-input.module.d.ts +10 -0
- package/lib/atoms/input/public_api.d.ts +2 -0
- package/lib/atoms/{custom-input/utils/input-utils.d.ts → input/utils/gtr-input-utils.d.ts} +5 -5
- package/lib/atoms/popover/gtr-popover.component.d.ts +35 -0
- package/lib/atoms/popover/gtr-popover.module.d.ts +8 -0
- package/lib/atoms/popover/public_api.d.ts +2 -2
- package/lib/atoms/radio-button/{radio-button.component.d.ts → gtr-radio-button.component.d.ts} +3 -7
- package/lib/atoms/radio-button/{radio-button.module.d.ts → gtr-radio-button.module.d.ts} +2 -2
- package/lib/atoms/radio-button/public_api.d.ts +2 -2
- package/lib/atoms/skeleton/gtr-skeleton.component.d.ts +12 -0
- package/lib/atoms/skeleton/gtr-skeleton.module.d.ts +9 -0
- package/lib/atoms/skeleton/public_api.d.ts +3 -3
- package/lib/atoms/skeleton/utils/gtr-skeleton.directive.d.ts +15 -0
- package/lib/atoms/{custom-gtr-switch/custom-gtr-switch.component.d.ts → switch/gtr-switch.component.d.ts} +4 -5
- package/lib/atoms/switch/gtr-switch.module.d.ts +8 -0
- package/lib/atoms/switch/public_api.d.ts +2 -0
- package/lib/atoms/{custom-textarea/custom-textarea.component.d.ts → textarea/gtr-textarea.component.d.ts} +5 -5
- package/lib/atoms/textarea/gtr-textarea.module.d.ts +10 -0
- package/lib/atoms/textarea/public_api.d.ts +2 -0
- package/lib/atoms/{custom-textarea → textarea}/utils/gtr-textarea.types.d.ts +3 -3
- package/lib/atoms/tooltip/gtr-tooltip.component.d.ts +49 -0
- package/lib/atoms/tooltip/gtr-tooltip.module.d.ts +8 -0
- package/lib/atoms/tooltip/public_api.d.ts +2 -0
- package/lib/molecules/accordion/accordion/{accordion.component.d.ts → gtr-accordion.component.d.ts} +3 -3
- package/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.d.ts +37 -0
- package/lib/molecules/accordion/gtr-accordion.module.d.ts +11 -0
- package/lib/molecules/accordion/public_api.d.ts +3 -3
- package/lib/molecules/calendar/calendar/gtr-calendar-class-view.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar/{calendar.component.d.ts → gtr-calendar.component.d.ts} +13 -13
- package/lib/molecules/calendar/calendar-month/{calendar-class-day.pipe.d.ts → gtr-calendar-class-day.pipe.d.ts} +3 -3
- package/lib/molecules/calendar/calendar-month/gtr-calendar-class-month.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/gtr-calendar-class-year.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/gtr-calendar-day-title.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/{calendar-day.directive.d.ts → gtr-calendar-day.directive.d.ts} +5 -5
- package/lib/molecules/calendar/calendar-month/gtr-calendar-day.pipe.d.ts +8 -0
- package/lib/molecules/calendar/calendar-month/gtr-calendar-month-title.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/{calendar-month.component.d.ts → gtr-calendar-month.component.d.ts} +8 -8
- package/lib/molecules/calendar/calendar-month/gtr-calendar-month.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/gtr-calendar-weekday.pipe.d.ts +8 -0
- package/lib/molecules/calendar/calendar-navigation/gtr-calendar-navigation.component.d.ts +32 -0
- package/lib/molecules/calendar/gtr-calendar.module.d.ts +19 -0
- package/lib/molecules/calendar/gtr-calendar.service.d.ts +36 -0
- package/lib/molecules/calendar/public_api.d.ts +4 -4
- package/lib/molecules/checkbox/checkbox/{checkbox.component.d.ts → gtr-checkbox.component.d.ts} +4 -4
- package/lib/molecules/checkbox/gtr-checkbox.module.d.ts +10 -0
- package/lib/molecules/checkbox/public_api.d.ts +3 -3
- package/lib/molecules/date-picker/{date-picker.component.d.ts → gtr-date-picker.component.d.ts} +4 -4
- package/lib/molecules/date-picker/gtr-date-picker.module.d.ts +18 -0
- package/lib/molecules/date-picker/public_api.d.ts +2 -2
- package/lib/molecules/date-range-picker/date-range-picker/{date-range-picker.component.d.ts → gtr-date-range-picker.component.d.ts} +14 -14
- package/lib/molecules/date-range-picker/gtr-date-range-picker.module.d.ts +18 -0
- package/lib/molecules/date-range-picker/public_api.d.ts +2 -2
- package/lib/molecules/dropdown/dropdown/{dropdown.component.d.ts → gtr-dropdown.component.d.ts} +17 -17
- package/lib/molecules/dropdown/dropdown-close/gtr-dropdown-close.directive.d.ts +26 -0
- package/lib/molecules/dropdown/dropdown-divider/gtr-dropdown-divider.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-header/gtr-dropdown-header.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-item/gtr-dropdown-item-plain.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-item/gtr-dropdown-item.directive.d.ts +36 -0
- package/lib/molecules/dropdown/dropdown-menu/{dropdown-menu.directive.d.ts → gtr-dropdown-menu.directive.d.ts} +5 -5
- package/lib/molecules/dropdown/gtr-dropdown.module.d.ts +13 -0
- package/lib/molecules/dropdown/gtr-dropdown.service.d.ts +13 -0
- package/lib/molecules/dropdown/public_api.d.ts +9 -9
- package/lib/molecules/file-input/file-input/{file-input.component.d.ts → gtr-file-input.component.d.ts} +4 -4
- package/lib/molecules/file-input/gtr-file-input.module.d.ts +8 -0
- package/lib/molecules/file-input/public_api.d.ts +3 -3
- package/lib/molecules/form/form/{form.directive.d.ts → gtr-form.directive.d.ts} +3 -3
- package/lib/molecules/form/form-check/{form-check-input.directive.d.ts → gtr-form-check-input.directive.d.ts} +3 -3
- package/lib/molecules/form/form-check/gtr-form-check-label.directive.d.ts +6 -0
- package/lib/molecules/form/form-check/{form-check.component.d.ts → gtr-form-check.component.d.ts} +5 -5
- package/lib/molecules/form/form-control/{form-control.directive.d.ts → gtr-form-control.directive.d.ts} +4 -4
- package/lib/molecules/form/form-feedback/{form-feedback.component.d.ts → gtr-form-feedback.component.d.ts} +3 -3
- package/lib/molecules/form/form-floating/gtr-form-floating.directive.d.ts +12 -0
- package/lib/molecules/form/form-label/{form-label.directive.d.ts → gtr-form-label.directive.d.ts} +3 -3
- package/lib/molecules/form/form-select/gtr-form-select.directive.d.ts +16 -0
- package/lib/molecules/form/form-text/gtr-form-text.directive.d.ts +6 -0
- package/lib/molecules/form/gtr-form.module.d.ts +18 -0
- package/lib/molecules/form/input-group/gtr-input-group.component.d.ts +11 -0
- package/lib/molecules/form/input-group-text/gtr-input-group-text.directive.d.ts +7 -0
- package/lib/molecules/form/public_api.d.ts +13 -13
- package/lib/molecules/{custom-gtr-modal/custom-gtr-modal.component.d.ts → modal/gtr-modal.component.d.ts} +3 -3
- package/lib/molecules/modal/gtr-modal.module.d.ts +8 -0
- package/lib/molecules/modal/public_api.d.ts +2 -0
- package/lib/molecules/numeric-counter/gtr-numeric-counter.module.d.ts +9 -0
- package/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.component.d.ts +27 -0
- package/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.const.d.ts +1 -0
- package/lib/molecules/numeric-counter/public_api.d.ts +4 -4
- package/lib/molecules/pagination/gtr-pagination.module.d.ts +11 -0
- package/lib/molecules/pagination/helpers/models/index.d.ts +2 -2
- package/lib/molecules/pagination/helpers/pipes/index.d.ts +1 -1
- package/lib/molecules/pagination/helpers/pipes/validate-page/gtr-validate-page.pipe.d.ts +8 -0
- package/lib/molecules/pagination/pagination/{pagination.component.d.ts → gtr-pagination.component.d.ts} +4 -4
- package/lib/molecules/pagination/public_api.d.ts +3 -3
- package/lib/molecules/select/gtr-select.module.d.ts +12 -0
- package/lib/molecules/select/helpers/enums/index.d.ts +1 -1
- package/lib/molecules/select/helpers/pipes/format-selected-value/{format-selected-value.pipe.d.ts → gtr-format-selected-value.pipe.d.ts} +3 -3
- package/lib/molecules/select/helpers/pipes/index.d.ts +2 -2
- package/lib/molecules/select/helpers/pipes/trim-text/gtr-trim-text.pipe.d.ts +7 -0
- package/lib/molecules/select/helpers/types/index.d.ts +1 -1
- package/lib/molecules/select/public_api.d.ts +2 -2
- package/lib/molecules/select/select/{select.component.d.ts → gtr-select.component.d.ts} +3 -3
- package/lib/molecules/shared/gtr-html-attr.directive.d.ts +16 -0
- package/lib/molecules/shared/gtr-shared.module.d.ts +10 -0
- package/lib/molecules/shared/gtr-template-id.directive.d.ts +9 -0
- package/lib/molecules/shared/public_api.d.ts +3 -3
- package/lib/molecules/stat-card/{stat-card.component.d.ts → gtr-stat-card.component.d.ts} +3 -3
- package/lib/molecules/stat-card/gtr-stat-card.module.d.ts +11 -0
- package/lib/molecules/stat-card/public_api.d.ts +2 -2
- package/lib/molecules/time-picker/{time-picker.component.d.ts → gtr-time-picker.component.d.ts} +6 -6
- package/lib/molecules/time-picker/gtr-time-picker.module.d.ts +14 -0
- package/lib/molecules/time-picker/public_api.d.ts +2 -2
- package/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-am-pm.component.d.ts +39 -0
- package/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-col.component.d.ts +38 -0
- package/package.json +3 -2
- package/public-api.d.ts +7 -7
- package/esm2022/lib/atoms/badge/badge.component.mjs +0 -77
- package/esm2022/lib/atoms/badge/badge.module.mjs +0 -19
- package/esm2022/lib/atoms/button/button-close.directive.mjs +0 -39
- package/esm2022/lib/atoms/button/button.directive.mjs +0 -102
- package/esm2022/lib/atoms/button/button.module.mjs +0 -17
- package/esm2022/lib/atoms/button/public_api.mjs +0 -4
- package/esm2022/lib/atoms/custom-button/custom-button.component.mjs +0 -60
- package/esm2022/lib/atoms/custom-button/custom-button.module.mjs +0 -19
- package/esm2022/lib/atoms/custom-button/index.mjs +0 -3
- package/esm2022/lib/atoms/custom-button/utils/utils.mjs +0 -2
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.component.mjs +0 -109
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.mjs +0 -18
- package/esm2022/lib/atoms/custom-gtr-switch/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-gtr-switch/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.mjs +0 -143
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.mjs +0 -18
- package/esm2022/lib/atoms/custom-gtr-tooltip/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-gtr-tooltip/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-gtr-tooltip/utils/utils.mjs +0 -2
- package/esm2022/lib/atoms/custom-input/custom-input.component.mjs +0 -364
- package/esm2022/lib/atoms/custom-input/custom-input.module.mjs +0 -21
- package/esm2022/lib/atoms/custom-input/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-input/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-input/utils/input-utils.mjs +0 -26
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.component.mjs +0 -242
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.module.mjs +0 -21
- package/esm2022/lib/atoms/custom-textarea/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-textarea/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-textarea/utils/gtr-textarea.types.mjs +0 -9
- package/esm2022/lib/atoms/gtr.types.mjs +0 -10
- package/esm2022/lib/atoms/icon/icon.component.mjs +0 -44
- package/esm2022/lib/atoms/icon/icon.module.mjs +0 -18
- package/esm2022/lib/atoms/popover/popover.component.mjs +0 -147
- package/esm2022/lib/atoms/popover/popover.module.mjs +0 -18
- package/esm2022/lib/atoms/radio-button/radio-button.component.mjs +0 -186
- package/esm2022/lib/atoms/radio-button/radio-button.module.mjs +0 -19
- package/esm2022/lib/atoms/skeleton/skeleton.component.mjs +0 -24
- package/esm2022/lib/atoms/skeleton/skeleton.module.mjs +0 -20
- package/esm2022/lib/atoms/skeleton/utils/skeleton.directive.mjs +0 -51
- package/esm2022/lib/molecules/accordion/accordion/accordion.component.mjs +0 -108
- package/esm2022/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.mjs +0 -92
- package/esm2022/lib/molecules/accordion/accordion.module.mjs +0 -21
- package/esm2022/lib/molecules/button/button-close.directive.mjs +0 -39
- package/esm2022/lib/molecules/button/button.directive.mjs +0 -100
- package/esm2022/lib/molecules/button/button.module.mjs +0 -17
- package/esm2022/lib/molecules/button/index.mjs +0 -2
- package/esm2022/lib/molecules/button/public_api.mjs +0 -4
- package/esm2022/lib/molecules/calendar/calendar/calendar-class-view.pipe.mjs +0 -20
- package/esm2022/lib/molecules/calendar/calendar/calendar.component.mjs +0 -428
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-day.pipe.mjs +0 -30
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.mjs +0 -23
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.mjs +0 -22
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.mjs +0 -17
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.directive.mjs +0 -119
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.pipe.mjs +0 -19
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.mjs +0 -20
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.component.mjs +0 -418
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.pipe.mjs +0 -17
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.mjs +0 -21
- package/esm2022/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.mjs +0 -85
- package/esm2022/lib/molecules/calendar/calendar.module.mjs +0 -55
- package/esm2022/lib/molecules/calendar/calendar.service.mjs +0 -62
- package/esm2022/lib/molecules/calendar/calendar.utils.mjs +0 -296
- package/esm2022/lib/molecules/checkbox/checkbox/checkbox.model.mjs +0 -2
- package/esm2022/lib/molecules/checkbox/checkbox.module.mjs +0 -20
- package/esm2022/lib/molecules/core-components.types.mjs +0 -10
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.component.mjs +0 -148
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.mjs +0 -18
- package/esm2022/lib/molecules/custom-gtr-modal/index.mjs +0 -2
- package/esm2022/lib/molecules/custom-gtr-modal/public_api.mjs +0 -3
- package/esm2022/lib/molecules/date-picker/date-picker.component.mjs +0 -81
- package/esm2022/lib/molecules/date-picker/date-picker.module.mjs +0 -58
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.mjs +0 -700
- package/esm2022/lib/molecules/date-range-picker/date-range-picker.module.mjs +0 -58
- package/esm2022/lib/molecules/dropdown/dropdown/dropdown.component.mjs +0 -387
- package/esm2022/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.mjs +0 -79
- package/esm2022/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.mjs +0 -22
- package/esm2022/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.mjs +0 -22
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.mjs +0 -22
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.mjs +0 -93
- package/esm2022/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.mjs +0 -75
- package/esm2022/lib/molecules/dropdown/dropdown.module.mjs +0 -56
- package/esm2022/lib/molecules/dropdown/dropdown.service.mjs +0 -18
- package/esm2022/lib/molecules/file-input/file-input/file-input.component.mjs +0 -144
- package/esm2022/lib/molecules/file-input/file-input/file-input.model.mjs +0 -2
- package/esm2022/lib/molecules/file-input/file-input.module.mjs +0 -18
- package/esm2022/lib/molecules/form/form/form.directive.mjs +0 -33
- package/esm2022/lib/molecules/form/form-check/form-check-input.directive.mjs +0 -62
- package/esm2022/lib/molecules/form/form-check/form-check-label.directive.mjs +0 -22
- package/esm2022/lib/molecules/form/form-check/form-check.component.mjs +0 -77
- package/esm2022/lib/molecules/form/form-control/form-control.directive.mjs +0 -66
- package/esm2022/lib/molecules/form/form-feedback/form-feedback.component.mjs +0 -38
- package/esm2022/lib/molecules/form/form-floating/form-floating.directive.mjs +0 -32
- package/esm2022/lib/molecules/form/form-label/form-label.directive.mjs +0 -40
- package/esm2022/lib/molecules/form/form-select/form-select.directive.mjs +0 -35
- package/esm2022/lib/molecules/form/form-text/form-text.directive.mjs +0 -22
- package/esm2022/lib/molecules/form/form.module.mjs +0 -75
- package/esm2022/lib/molecules/form/input-group/input-group.component.mjs +0 -32
- package/esm2022/lib/molecules/form/input-group-text/input-group-text.directive.mjs +0 -23
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.const.mjs +0 -2
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.type.mjs +0 -2
- package/esm2022/lib/molecules/numeric-counter/numeric-counter.module.mjs +0 -19
- package/esm2022/lib/molecules/pagination/helpers/models/pagination.interface.mjs +0 -2
- package/esm2022/lib/molecules/pagination/helpers/models/pagination.model.mjs +0 -3
- package/esm2022/lib/molecules/pagination/helpers/pipes/validate-page/validate-page.pipe.mjs +0 -21
- package/esm2022/lib/molecules/pagination/pagination/pagination.component.mjs +0 -146
- package/esm2022/lib/molecules/pagination/pagination/pagination.mjs +0 -80
- package/esm2022/lib/molecules/pagination/pagination.module.mjs +0 -21
- package/esm2022/lib/molecules/select/helpers/enums/select.enums.mjs +0 -6
- package/esm2022/lib/molecules/select/helpers/pipes/format-selected-value/format-selected-value.pipe.mjs +0 -57
- package/esm2022/lib/molecules/select/helpers/pipes/trim-text/trim-text.pipe.mjs +0 -26
- package/esm2022/lib/molecules/select/helpers/types/select.type.mjs +0 -2
- package/esm2022/lib/molecules/select/select/select.component.mjs +0 -445
- package/esm2022/lib/molecules/select/select.module.mjs +0 -37
- package/esm2022/lib/molecules/shared/html-attr.directive.mjs +0 -55
- package/esm2022/lib/molecules/shared/shared.module.mjs +0 -22
- package/esm2022/lib/molecules/shared/template-id.directive.mjs +0 -20
- package/esm2022/lib/molecules/stat-card/stat-card.component.mjs +0 -135
- package/esm2022/lib/molecules/stat-card/stat-card.module.mjs +0 -21
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +0 -106
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +0 -107
- package/esm2022/lib/molecules/time-picker/time-picker.component.mjs +0 -512
- package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +0 -51
- package/esm2022/lib/molecules/time-picker/time.utils.mjs +0 -676
- package/lib/atoms/badge/badge.component.d.ts +0 -25
- package/lib/atoms/badge/badge.module.d.ts +0 -9
- package/lib/atoms/button/button-close.directive.d.ts +0 -13
- package/lib/atoms/button/button.module.d.ts +0 -8
- package/lib/atoms/button/public_api.d.ts +0 -3
- package/lib/atoms/custom-button/custom-button.module.d.ts +0 -9
- package/lib/atoms/custom-button/index.d.ts +0 -2
- package/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.d.ts +0 -8
- package/lib/atoms/custom-gtr-switch/public_api.d.ts +0 -2
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.d.ts +0 -59
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.d.ts +0 -8
- package/lib/atoms/custom-gtr-tooltip/public_api.d.ts +0 -2
- package/lib/atoms/custom-input/custom-input.module.d.ts +0 -10
- package/lib/atoms/custom-input/public_api.d.ts +0 -2
- package/lib/atoms/custom-textarea/custom-textarea.module.d.ts +0 -10
- package/lib/atoms/custom-textarea/public_api.d.ts +0 -2
- package/lib/atoms/gtr.types.d.ts +0 -46
- package/lib/atoms/icon/icon.component.d.ts +0 -27
- package/lib/atoms/popover/popover.component.d.ts +0 -35
- package/lib/atoms/popover/popover.module.d.ts +0 -8
- package/lib/atoms/skeleton/skeleton.component.d.ts +0 -12
- package/lib/atoms/skeleton/skeleton.module.d.ts +0 -9
- package/lib/atoms/skeleton/utils/skeleton.directive.d.ts +0 -15
- package/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.d.ts +0 -37
- package/lib/molecules/accordion/accordion.module.d.ts +0 -11
- package/lib/molecules/button/button-close.directive.d.ts +0 -13
- package/lib/molecules/button/button.directive.d.ts +0 -48
- package/lib/molecules/button/button.module.d.ts +0 -8
- package/lib/molecules/button/public_api.d.ts +0 -3
- package/lib/molecules/calendar/calendar/calendar-class-view.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/calendar-day.pipe.d.ts +0 -8
- package/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/calendar-month.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.d.ts +0 -8
- package/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.d.ts +0 -32
- package/lib/molecules/calendar/calendar.module.d.ts +0 -19
- package/lib/molecules/calendar/calendar.service.d.ts +0 -36
- package/lib/molecules/checkbox/checkbox.module.d.ts +0 -10
- package/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.d.ts +0 -8
- package/lib/molecules/custom-gtr-modal/public_api.d.ts +0 -2
- package/lib/molecules/date-picker/date-picker.module.d.ts +0 -18
- package/lib/molecules/date-range-picker/date-range-picker.module.d.ts +0 -18
- package/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.d.ts +0 -26
- package/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.d.ts +0 -6
- package/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.d.ts +0 -6
- package/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.d.ts +0 -6
- package/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.d.ts +0 -36
- package/lib/molecules/dropdown/dropdown.module.d.ts +0 -13
- package/lib/molecules/dropdown/dropdown.service.d.ts +0 -13
- package/lib/molecules/file-input/file-input.module.d.ts +0 -8
- package/lib/molecules/form/form-check/form-check-label.directive.d.ts +0 -6
- package/lib/molecules/form/form-floating/form-floating.directive.d.ts +0 -12
- package/lib/molecules/form/form-select/form-select.directive.d.ts +0 -16
- package/lib/molecules/form/form-text/form-text.directive.d.ts +0 -6
- package/lib/molecules/form/form.module.d.ts +0 -18
- package/lib/molecules/form/input-group/input-group.component.d.ts +0 -11
- package/lib/molecules/form/input-group-text/input-group-text.directive.d.ts +0 -7
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.component.d.ts +0 -27
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.const.d.ts +0 -1
- package/lib/molecules/numeric-counter/numeric-counter.module.d.ts +0 -9
- package/lib/molecules/pagination/helpers/pipes/validate-page/validate-page.pipe.d.ts +0 -8
- package/lib/molecules/pagination/pagination.module.d.ts +0 -11
- package/lib/molecules/select/helpers/pipes/trim-text/trim-text.pipe.d.ts +0 -7
- package/lib/molecules/select/select.module.d.ts +0 -12
- package/lib/molecules/shared/html-attr.directive.d.ts +0 -16
- package/lib/molecules/shared/shared.module.d.ts +0 -10
- package/lib/molecules/shared/template-id.directive.d.ts +0 -9
- package/lib/molecules/stat-card/stat-card.module.d.ts +0 -11
- package/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.d.ts +0 -39
- package/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.d.ts +0 -38
- package/lib/molecules/time-picker/time-picker.module.d.ts +0 -14
- /package/lib/atoms/{custom-button/utils/utils.d.ts → button/gtr-button.types.d.ts} +0 -0
- /package/lib/atoms/{custom-gtr-switch → button-directive}/index.d.ts +0 -0
- /package/lib/atoms/{custom-gtr-tooltip → input}/index.d.ts +0 -0
- /package/lib/atoms/{custom-input → switch}/index.d.ts +0 -0
- /package/lib/atoms/{custom-textarea → textarea}/index.d.ts +0 -0
- /package/lib/{molecules/button → atoms/tooltip}/index.d.ts +0 -0
- /package/lib/atoms/{custom-gtr-tooltip → tooltip}/utils/utils.d.ts +0 -0
- /package/lib/{molecules/core-components.types.d.ts → core-components.types.d.ts} +0 -0
- /package/lib/molecules/calendar/{calendar.utils.d.ts → gtr-calendar.utils.d.ts} +0 -0
- /package/lib/molecules/checkbox/checkbox/{checkbox.model.d.ts → gtr-checkbox.utils.d.ts} +0 -0
- /package/lib/molecules/file-input/file-input/{file-input.model.d.ts → gtr-file-input.model.d.ts} +0 -0
- /package/lib/molecules/{custom-gtr-modal → modal}/index.d.ts +0 -0
- /package/lib/molecules/numeric-counter/numeric-counter/{numeric-counter.type.d.ts → gtr-numeric-counter.type.d.ts} +0 -0
- /package/lib/molecules/pagination/helpers/models/{pagination.interface.d.ts → gtr-pagination.interface.d.ts} +0 -0
- /package/lib/molecules/pagination/helpers/models/{pagination.model.d.ts → gtr-pagination.model.d.ts} +0 -0
- /package/lib/molecules/pagination/pagination/{pagination.d.ts → gtr-pagination.utils.d.ts} +0 -0
- /package/lib/molecules/select/helpers/enums/{select.enums.d.ts → gtr-select.enums.d.ts} +0 -0
- /package/lib/molecules/select/helpers/types/{select.type.d.ts → gtr-select.type.d.ts} +0 -0
- /package/lib/molecules/time-picker/{time.utils.d.ts → gtr-time.utils.d.ts} +0 -0
package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Component, Directive, EventEmitter, HostBinding, Input, Output, ViewChildren, } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
export class TimeElementDirective {
|
|
6
|
-
constructor(elementRef) {
|
|
7
|
-
this.elementRef = elementRef;
|
|
8
|
-
}
|
|
9
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeElementDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TimeElementDirective, isStandalone: true, selector: "[gtrTimeElement]", inputs: { gtrTimeElement: "gtrTimeElement" }, exportAs: ["gtrTimeElement"], ngImport: i0 }); }
|
|
11
|
-
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeElementDirective, decorators: [{
|
|
13
|
-
type: Directive,
|
|
14
|
-
args: [{
|
|
15
|
-
selector: '[gtrTimeElement]',
|
|
16
|
-
exportAs: 'gtrTimeElement',
|
|
17
|
-
standalone: true,
|
|
18
|
-
}]
|
|
19
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { gtrTimeElement: [{
|
|
20
|
-
type: Input
|
|
21
|
-
}] } });
|
|
22
|
-
export class TimePickerRollColComponent {
|
|
23
|
-
constructor(elementRef) {
|
|
24
|
-
this.elementRef = elementRef;
|
|
25
|
-
this.init = true;
|
|
26
|
-
this.disabled = false;
|
|
27
|
-
this.elements = [];
|
|
28
|
-
this.selectedChange = new EventEmitter();
|
|
29
|
-
}
|
|
30
|
-
get hostClasses() {
|
|
31
|
-
return {
|
|
32
|
-
'time-picker-roll-col': true,
|
|
33
|
-
disabled: this.disabled,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
ngAfterViewInit() {
|
|
37
|
-
this.timeElements?.changes.subscribe((state) => {
|
|
38
|
-
const selectedElement = this.timeElements?.find((element) => {
|
|
39
|
-
return element.gtrTimeElement?.value === this.selected;
|
|
40
|
-
});
|
|
41
|
-
this.scrollToElement(selectedElement?.elementRef.nativeElement);
|
|
42
|
-
});
|
|
43
|
-
setTimeout(() => {
|
|
44
|
-
const selectedElement = this.elementRef.nativeElement.querySelector('.selected');
|
|
45
|
-
this.scrollToElement(selectedElement);
|
|
46
|
-
}, 1000);
|
|
47
|
-
}
|
|
48
|
-
ngOnChanges(changes) {
|
|
49
|
-
if ((changes['refresh'] && changes['refresh'].currentValue) ||
|
|
50
|
-
(changes['selected'] && !changes['selected'].firstChange)) {
|
|
51
|
-
const selectedElement = this.timeElements?.find((element) => {
|
|
52
|
-
return element.gtrTimeElement?.value === this.selected;
|
|
53
|
-
});
|
|
54
|
-
this.init = !selectedElement;
|
|
55
|
-
this.scrollToElement(selectedElement?.elementRef.nativeElement);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
scrollToElement(element) {
|
|
59
|
-
setTimeout(() => {
|
|
60
|
-
const elementSelected = element || this.elementRef.nativeElement.querySelector('.selected');
|
|
61
|
-
if (elementSelected) {
|
|
62
|
-
this.elementRef.nativeElement.scrollTo({
|
|
63
|
-
top: elementSelected?.offsetTop,
|
|
64
|
-
behavior: this.init ? 'auto' : 'smooth',
|
|
65
|
-
});
|
|
66
|
-
this.init = false;
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
handleElementClick($event, element) {
|
|
71
|
-
if (element.disabled) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
this.selected = element.value;
|
|
75
|
-
this.scrollToElement($event.target);
|
|
76
|
-
this.onClick && this.onClick(element.value);
|
|
77
|
-
this.selectedChange.emit(element.value);
|
|
78
|
-
}
|
|
79
|
-
trackByElement(index, element) {
|
|
80
|
-
return element.value;
|
|
81
|
-
}
|
|
82
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimePickerRollColComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
83
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimePickerRollColComponent, isStandalone: true, selector: "gtr-time-picker-roll-col", inputs: { disabled: "disabled", elements: "elements", onClick: "onClick", selected: "selected", refresh: "refresh" }, outputs: { selectedChange: "selectedChange" }, host: { properties: { "class": "this.hostClasses" } }, viewQueries: [{ propertyName: "timeElements", predicate: TimeElementDirective, descendants: true }], exportAs: ["gtrTimePickerRollCol"], usesOnChanges: true, ngImport: i0, template: "<div (click)=\"handleElementClick($event, element)\"\n *ngFor=\"let element of elements; index as i; trackBy: trackByElement\"\n [attr.disabled]=\"element.disabled || null\"\n [gtrTimeElement]=\"element\"\n [ngClass]=\"{'time-picker-roll-cell': true, selected: element.value === selected, disabled: element.disabled}\"\n [ngStyle]=\"{'width': 'fit-content'}\"\n role=\"button\"\n>\n {{element.label}}\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: TimeElementDirective, selector: "[gtrTimeElement]", inputs: ["gtrTimeElement"], exportAs: ["gtrTimeElement"] }] }); }
|
|
84
|
-
}
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimePickerRollColComponent, decorators: [{
|
|
86
|
-
type: Component,
|
|
87
|
-
args: [{ selector: 'gtr-time-picker-roll-col', exportAs: 'gtrTimePickerRollCol', standalone: true, imports: [CommonModule, TimeElementDirective], template: "<div (click)=\"handleElementClick($event, element)\"\n *ngFor=\"let element of elements; index as i; trackBy: trackByElement\"\n [attr.disabled]=\"element.disabled || null\"\n [gtrTimeElement]=\"element\"\n [ngClass]=\"{'time-picker-roll-cell': true, selected: element.value === selected, disabled: element.disabled}\"\n [ngStyle]=\"{'width': 'fit-content'}\"\n role=\"button\"\n>\n {{element.label}}\n</div>\n" }]
|
|
88
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disabled: [{
|
|
89
|
-
type: Input
|
|
90
|
-
}], elements: [{
|
|
91
|
-
type: Input
|
|
92
|
-
}], onClick: [{
|
|
93
|
-
type: Input
|
|
94
|
-
}], selected: [{
|
|
95
|
-
type: Input
|
|
96
|
-
}], refresh: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}], selectedChange: [{
|
|
99
|
-
type: Output
|
|
100
|
-
}], hostClasses: [{
|
|
101
|
-
type: HostBinding,
|
|
102
|
-
args: ['class']
|
|
103
|
-
}], timeElements: [{
|
|
104
|
-
type: ViewChildren,
|
|
105
|
-
args: [TimeElementDirective]
|
|
106
|
-
}] } });
|
|
107
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS1waWNrZXItcm9sbC1jb2wuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9tb2xlY3VsZXMvdGltZS1waWNrZXIvdGltZS1waWNrZXItcm9sbC1jb2wvdGltZS1waWNrZXItcm9sbC1jb2wuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9tb2xlY3VsZXMvdGltZS1waWNrZXIvdGltZS1waWNrZXItcm9sbC1jb2wvdGltZS1waWNrZXItcm9sbC1jb2wuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLF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