@gettrx/core-components-angular 1.0.2 → 1.0.4
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 -3
- 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/public_api.mjs +4 -4
- 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 +362 -0
- package/esm2022/lib/atoms/input/gtr-input.module.mjs +21 -0
- package/esm2022/lib/atoms/input/public_api.mjs +3 -3
- 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 +112 -0
- package/esm2022/lib/atoms/switch/gtr-switch.module.mjs +18 -0
- package/esm2022/lib/atoms/switch/public_api.mjs +3 -3
- 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/public_api.mjs +3 -3
- 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/public_api.mjs +3 -3
- package/esm2022/lib/molecules/accordion/accordion/gtr-accordion.component.mjs +108 -0
- package/esm2022/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.mjs +94 -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/public_api.mjs +3 -3
- 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/fesm2022/gettrx-core-components-angular.mjs +830 -819
- 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/button/{button.component.d.ts → 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 -2
- 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-directive/{button.directive.d.ts → gtr-button.directive.d.ts} +3 -3
- package/lib/atoms/button-directive/public_api.d.ts +3 -3
- package/lib/atoms/icon/gtr-icon.component.d.ts +28 -0
- package/lib/atoms/icon/gtr-icon.module.d.ts +8 -0
- package/lib/atoms/icon/public_api.d.ts +2 -2
- package/lib/atoms/input/{input.component.d.ts → gtr-input.component.d.ts} +5 -5
- package/lib/atoms/input/gtr-input.module.d.ts +10 -0
- package/lib/atoms/input/public_api.d.ts +2 -2
- package/lib/atoms/input/utils/{input-utils.d.ts → 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 -3
- 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/switch/{switch.component.d.ts → gtr-switch.component.d.ts} +10 -8
- package/lib/atoms/switch/gtr-switch.module.d.ts +8 -0
- package/lib/atoms/switch/public_api.d.ts +2 -2
- package/lib/atoms/textarea/{textarea.component.d.ts → 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 -2
- package/lib/atoms/textarea/utils/{textarea.types.d.ts → gtr-textarea.types.d.ts} +3 -3
- package/lib/atoms/tooltip/{tooltip.component.d.ts → gtr-tooltip.component.d.ts} +3 -3
- package/lib/atoms/tooltip/gtr-tooltip.module.d.ts +8 -0
- package/lib/atoms/tooltip/public_api.d.ts +2 -2
- 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} +13 -13
- 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} +3 -3
- 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/modal/{modal.component.d.ts → 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 -2
- 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 -3
- 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.component.mjs +0 -60
- package/esm2022/lib/atoms/button/button.module.mjs +0 -19
- package/esm2022/lib/atoms/button/utils/utils.mjs +0 -2
- package/esm2022/lib/atoms/button-directive/button-close.directive.mjs +0 -39
- package/esm2022/lib/atoms/button-directive/button-directive.module.mjs +0 -17
- package/esm2022/lib/atoms/button-directive/button.directive.mjs +0 -102
- package/esm2022/lib/atoms/icon/icon.component.mjs +0 -50
- package/esm2022/lib/atoms/icon/icon.module.mjs +0 -18
- package/esm2022/lib/atoms/input/input.component.mjs +0 -375
- package/esm2022/lib/atoms/input/input.module.mjs +0 -21
- package/esm2022/lib/atoms/input/utils/input-utils.mjs +0 -26
- 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 -184
- 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/atoms/switch/switch.component.mjs +0 -106
- package/esm2022/lib/atoms/switch/switch.module.mjs +0 -18
- package/esm2022/lib/atoms/textarea/textarea.component.mjs +0 -242
- package/esm2022/lib/atoms/textarea/textarea.module.mjs +0 -21
- package/esm2022/lib/atoms/textarea/utils/textarea.types.mjs +0 -9
- package/esm2022/lib/atoms/tooltip/tooltip.component.mjs +0 -111
- package/esm2022/lib/atoms/tooltip/tooltip.module.mjs +0 -18
- 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/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/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 -60
- 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/modal/modal.component.mjs +0 -148
- package/esm2022/lib/molecules/modal/modal.module.mjs +0 -18
- 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 -22
- 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.module.d.ts +0 -9
- package/lib/atoms/button-directive/button-close.directive.d.ts +0 -13
- package/lib/atoms/button-directive/button-directive.module.d.ts +0 -8
- package/lib/atoms/icon/icon.component.d.ts +0 -28
- package/lib/atoms/icon/icon.module.d.ts +0 -8
- package/lib/atoms/input/input.module.d.ts +0 -10
- 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/atoms/switch/switch.module.d.ts +0 -8
- package/lib/atoms/textarea/textarea.module.d.ts +0 -10
- package/lib/atoms/tooltip/tooltip.module.d.ts +0 -8
- 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/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/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/modal/modal.module.d.ts +0 -8
- 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/button/{utils/utils.d.ts → gtr-button.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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Component, ChangeDetectionStrategy, Directive, HostListener, NgModule, Input, HostBinding, booleanAttribute, EventEmitter, Optional, Self, Output, ViewChild,
|
|
3
|
+
import { Component, ChangeDetectionStrategy, Directive, HostListener, NgModule, Input, HostBinding, booleanAttribute, EventEmitter, Optional, Self, Output, ViewChild, ContentChildren, Injectable, Pipe, ViewChildren, forwardRef, ElementRef, Inject, ContentChild } from '@angular/core';
|
|
4
4
|
import { fromEvent, BehaviorSubject, throwError } from 'rxjs';
|
|
5
5
|
import { defineCustomElement as defineCustomElement$1 } from '@gettrx/core-components/components/gtr2-accordion.js';
|
|
6
6
|
import { defineCustomElement as defineCustomElement$2 } from '@gettrx/core-components/components/gtr2-accordion-wrapper.js';
|
|
@@ -888,7 +888,7 @@ var BreakpointInfix;
|
|
|
888
888
|
BreakpointInfix["xxl"] = "xxl";
|
|
889
889
|
})(BreakpointInfix || (BreakpointInfix = {}));
|
|
890
890
|
|
|
891
|
-
class
|
|
891
|
+
class GtrIconComponent {
|
|
892
892
|
constructor() {
|
|
893
893
|
/**
|
|
894
894
|
* The font icon
|
|
@@ -915,10 +915,10 @@ class IconComponent {
|
|
|
915
915
|
this.height = value + 'px';
|
|
916
916
|
}
|
|
917
917
|
ngOnDestroy() { }
|
|
918
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
919
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
918
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
919
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrIconComponent, selector: "gtr-icon", inputs: { name: "name", weight: "weight", color: "color", size: "size", iconId: "iconId" }, host: { properties: { "style.height": "this.height" } }, ngImport: i0, template: "<i [id]=\"iconId+'-icon'\" [attr.data-testid]=\"iconId+'-icon'\" [class]=\"'gtr-icon gtr-icon-'+name\"\n [style.font-size]=\"this.height\" [style.color]=\"this.color\" [style.font-weight]=\"this.weight\"></i>\n", styles: [":host{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;padding:0;margin:0}\n"] }); }
|
|
920
920
|
}
|
|
921
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrIconComponent, decorators: [{
|
|
922
922
|
type: Component,
|
|
923
923
|
args: [{ selector: 'gtr-icon', template: "<i [id]=\"iconId+'-icon'\" [attr.data-testid]=\"iconId+'-icon'\" [class]=\"'gtr-icon gtr-icon-'+name\"\n [style.font-size]=\"this.height\" [style.color]=\"this.color\" [style.font-weight]=\"this.weight\"></i>\n", styles: [":host{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;padding:0;margin:0}\n"] }]
|
|
924
924
|
}], propDecorators: { name: [{
|
|
@@ -936,7 +936,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
936
936
|
args: ['style.height']
|
|
937
937
|
}] } });
|
|
938
938
|
|
|
939
|
-
class
|
|
939
|
+
class GtrBadgeComponent {
|
|
940
940
|
constructor() {
|
|
941
941
|
/*
|
|
942
942
|
Option for badges shape
|
|
@@ -975,10 +975,10 @@ class BadgeComponent {
|
|
|
975
975
|
this.positionProperty = {};
|
|
976
976
|
this.id = this.testid;
|
|
977
977
|
}
|
|
978
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
979
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
978
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
979
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrBadgeComponent, selector: "gtr-badge", inputs: { shape: "shape", type: "type", color: "color", ariaLabel: ["aria-label", "ariaLabel"], hidden: ["hidden", "hidden", booleanAttribute], position: "position", id: "id", testid: "testid", positionProperty: "positionProperty", backgroundColor: ["background-color", "backgroundColor"], iconName: ["icon-name", "iconName"] }, ngImport: i0, template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
980
980
|
}
|
|
981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeComponent, decorators: [{
|
|
982
982
|
type: Component,
|
|
983
983
|
args: [{ selector: 'gtr-badge', template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"] }]
|
|
984
984
|
}], ctorParameters: function () { return []; }, propDecorators: { shape: [{
|
|
@@ -1009,35 +1009,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1009
1009
|
args: ['icon-name']
|
|
1010
1010
|
}] } });
|
|
1011
1011
|
|
|
1012
|
-
class
|
|
1013
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1014
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1015
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1012
|
+
class GtrIconModule {
|
|
1013
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1014
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrIconModule, declarations: [GtrIconComponent], imports: [CommonModule], exports: [GtrIconComponent] }); }
|
|
1015
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrIconModule, imports: [CommonModule] }); }
|
|
1016
1016
|
}
|
|
1017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1017
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrIconModule, decorators: [{
|
|
1018
1018
|
type: NgModule,
|
|
1019
1019
|
args: [{
|
|
1020
|
-
declarations: [
|
|
1020
|
+
declarations: [GtrIconComponent],
|
|
1021
1021
|
imports: [CommonModule],
|
|
1022
|
-
exports: [
|
|
1022
|
+
exports: [GtrIconComponent],
|
|
1023
1023
|
}]
|
|
1024
1024
|
}] });
|
|
1025
1025
|
|
|
1026
|
-
class
|
|
1027
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1028
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1029
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1026
|
+
class GtrBadgeModule {
|
|
1027
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1028
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeModule, declarations: [GtrBadgeComponent], imports: [CommonModule, GtrIconModule], exports: [GtrBadgeComponent] }); }
|
|
1029
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeModule, imports: [CommonModule, GtrIconModule] }); }
|
|
1030
1030
|
}
|
|
1031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeModule, decorators: [{
|
|
1032
1032
|
type: NgModule,
|
|
1033
1033
|
args: [{
|
|
1034
|
-
declarations: [
|
|
1035
|
-
exports: [
|
|
1036
|
-
imports: [CommonModule,
|
|
1034
|
+
declarations: [GtrBadgeComponent],
|
|
1035
|
+
exports: [GtrBadgeComponent],
|
|
1036
|
+
imports: [CommonModule, GtrIconModule],
|
|
1037
1037
|
}]
|
|
1038
1038
|
}] });
|
|
1039
1039
|
|
|
1040
|
-
class
|
|
1040
|
+
class GtrButtonDirective {
|
|
1041
1041
|
constructor() {
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Toggle the active state for the component. [docs]
|
|
@@ -1091,10 +1091,10 @@ class ButtonDirective {
|
|
|
1091
1091
|
get tabIndex() {
|
|
1092
1092
|
return this.disabled ? '-1' : null;
|
|
1093
1093
|
}
|
|
1094
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1095
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
1094
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1095
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: GtrButtonDirective, isStandalone: true, selector: "[gtrButton]", inputs: { active: ["active", "active", booleanAttribute], color: "color", disabled: ["disabled", "disabled", booleanAttribute], shape: "shape", size: "size", type: "type", variant: "variant" }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses", "attr.aria-disabled": "this.ariaDisabled", "attr.aria-pressed": "this.isActive", "attr.disabled": "this.attrDisabled", "attr.tabindex": "this.tabIndex" } }, exportAs: ["gtrButton"], ngImport: i0 }); }
|
|
1096
1096
|
}
|
|
1097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonDirective, decorators: [{
|
|
1098
1098
|
type: Directive,
|
|
1099
1099
|
args: [{
|
|
1100
1100
|
selector: '[gtrButton]',
|
|
@@ -1137,7 +1137,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1137
1137
|
args: ['attr.tabindex']
|
|
1138
1138
|
}] } });
|
|
1139
1139
|
|
|
1140
|
-
class
|
|
1140
|
+
class GtrButtonCloseDirective extends GtrButtonDirective {
|
|
1141
1141
|
constructor() {
|
|
1142
1142
|
super(...arguments);
|
|
1143
1143
|
/**
|
|
@@ -1156,10 +1156,10 @@ class ButtonCloseDirective extends ButtonDirective {
|
|
|
1156
1156
|
active: this.active,
|
|
1157
1157
|
};
|
|
1158
1158
|
}
|
|
1159
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1160
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
1159
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonCloseDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1160
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: GtrButtonCloseDirective, isStandalone: true, selector: "[gtrButtonClose]", inputs: { white: ["white", "white", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, usesInheritance: true, ngImport: i0 }); }
|
|
1161
1161
|
}
|
|
1162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonCloseDirective, decorators: [{
|
|
1163
1163
|
type: Directive,
|
|
1164
1164
|
args: [{
|
|
1165
1165
|
selector: '[gtrButtonClose]',
|
|
@@ -1173,20 +1173,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1173
1173
|
args: ['class']
|
|
1174
1174
|
}] } });
|
|
1175
1175
|
|
|
1176
|
-
class
|
|
1177
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1178
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1179
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1176
|
+
class GtrButtonDirectiveModule {
|
|
1177
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1178
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonDirectiveModule, imports: [GtrButtonDirective, GtrButtonCloseDirective], exports: [GtrButtonDirective, GtrButtonCloseDirective] }); }
|
|
1179
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonDirectiveModule }); }
|
|
1180
1180
|
}
|
|
1181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonDirectiveModule, decorators: [{
|
|
1182
1182
|
type: NgModule,
|
|
1183
1183
|
args: [{
|
|
1184
|
-
imports: [
|
|
1185
|
-
exports: [
|
|
1184
|
+
imports: [GtrButtonDirective, GtrButtonCloseDirective],
|
|
1185
|
+
exports: [GtrButtonDirective, GtrButtonCloseDirective],
|
|
1186
1186
|
}]
|
|
1187
1187
|
}] });
|
|
1188
1188
|
|
|
1189
|
-
class
|
|
1189
|
+
class GtrButtonComponent {
|
|
1190
1190
|
constructor() {
|
|
1191
1191
|
/** (optional) Button type */
|
|
1192
1192
|
this.type = 'button';
|
|
@@ -1224,10 +1224,10 @@ class ButtonComponent {
|
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
1226
|
ngOnInit() { }
|
|
1227
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1228
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonComponent, selector: "gtr-button", inputs: { type: "type", btnId: "btnId", color: "color", isLoading: "isLoading", variant: "variant", disabled: "disabled" }, ngImport: i0, template: "<button [type]=\"this.type\" [class]=\"getCssClassMap()\" [id]=\"btnId\" [attr.data-testid]=\"btnId\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" [disabled]=\"this.disabled\">\n <ng-content></ng-content>\n</button>\n", styles: [":root{--gtr-content-layout-grid-row-columns: 6;--gtr-content-layout-grid-columns: 12;--gtr-content-box-shadow-base: 0px 6px 12px -6px rgba(24, 39, 75, .12), 0px 8px 24px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-80: 0px 8px 22px -6px rgba(24, 39, 75, .12), 0px 14px 64px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-70: 0px 8px 18px -6px rgba(24, 39, 75, .12), 0px 12px 42px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-60: 0px 6px 14px -6px rgba(24, 39, 75, .12), 0px 10px 32px -4px rgba(24, 39, 75, .1);--gtr-content-box-shadow-40: 0px 6px 8px -6px rgba(24, 39, 75, .12), 0px 8px 16px -6px rgba(24, 39, 75, .08);--gtr-content-box-shadow-30: 0px 4px 6px -4px rgba(24, 39, 75, .12), 0px 8px 8px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-20: 0px 2px 4px -2px rgba(24, 39, 75, .12), 0px 4px 4px -2px rgba(24, 39, 75, .08);--gtr-content-border-style: solid;--gtr-size-layout-grid-gutter-width: 1.5rem;--gtr-size-layout-container-max-width-xxl: 1320rem;--gtr-size-layout-container-max-width-xl: 1140rem;--gtr-size-layout-container-max-width-lg: 960rem;--gtr-size-layout-container-max-width-md: 720rem;--gtr-size-layout-container-max-width-sm: 540rem;--gtr-size-layout-breakpoints-xxl: 1400rem;--gtr-size-layout-breakpoints-xl: 1200rem;--gtr-size-layout-breakpoints-lg: 992rem;--gtr-size-layout-breakpoints-md: 768rem;--gtr-size-layout-breakpoints-sm: 576rem;--gtr-size-layout-breakpoints-xs: 0rem;--gtr-size-spacing-none: 0rem;--gtr-size-spacing-16: 10rem;--gtr-size-spacing-15: 6rem;--gtr-size-spacing-14: 5.5rem;--gtr-size-spacing-13: 5rem;--gtr-size-spacing-12: 4.5rem;--gtr-size-spacing-11: 4rem;--gtr-size-spacing-10: 3.5rem;--gtr-size-spacing-9: 3rem;--gtr-size-spacing-8: 2.5rem;--gtr-size-spacing-7: 2rem;--gtr-size-spacing-6: 1.75rem;--gtr-size-spacing-5: 1.5rem;--gtr-size-spacing-4: 1rem;--gtr-size-spacing-3: .75rem;--gtr-size-spacing-2: .5rem;--gtr-size-spacing-1: .25rem;--gtr-size-padding-xxl: 3rem;--gtr-size-padding-xl: 2rem;--gtr-size-padding-large: 1.5rem;--gtr-size-padding-medium: 1rem;--gtr-size-padding-small: .5rem;--gtr-size-padding-tiny: .25rem;--gtr-size-icon-xxl: 5rem;--gtr-size-icon-xl: 3rem;--gtr-size-icon-large: 2.5rem;--gtr-size-icon-base: 2rem;--gtr-size-icon-small: 1.5rem;--gtr-size-font-heading-5: 1.25rem;--gtr-size-font-heading-4: 1.5rem;--gtr-size-font-heading-3: 1.75rem;--gtr-size-font-heading-2: 2rem;--gtr-size-font-heading-1: 2.5rem;--gtr-size-font-weight-bolder: 800rem;--gtr-size-font-weight-bold: 700rem;--gtr-size-font-weight-semibold: 600rem;--gtr-size-font-weight-medium: 500rem;--gtr-size-font-weight-normal: 400rem;--gtr-size-font-weight-light: 300rem;--gtr-size-font-weight-lighter: 200rem;--gtr-size-font-size-lg: 1.25rem;--gtr-size-font-size-sm: .875rem;--gtr-size-font-size-base: 1rem;--gtr-size-font-size-root: 1rem;--gtr-size-border-radius-pill: 50rem;--gtr-size-border-radius-xxl: 2rem;--gtr-size-border-radius-xl: 1.5rem;--gtr-size-border-radius-lg: 1rem;--gtr-size-border-radius-sm: .75rem;--gtr-size-border-radius-xxs: .25rem;--gtr-size-border-radius-base: .5rem;--gtr-size-border-radius-none: 0rem;--gtr-size-border-width-bolder: 5rem;--gtr-size-border-width-bold: 4rem;--gtr-size-border-width-semibold: 3rem;--gtr-size-border-width-medium: 2rem;--gtr-size-border-width-normal: 1rem;--gtr-component-position-100: 100%;--gtr-component-position-50: 50%;--gtr-component-position-0: 0;--gtr-component-font-line-height-lg: 2;--gtr-component-font-line-height-sm: 1.25;--gtr-component-font-line-height-base: 1.5;--gtr-component-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--gtr-component-font-family-sans-serif: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--gtr-component-button-text-align: center;--gtr-component-button-font-size: 2rem;--gtr-color-base-white-pressed: #d9d9d9;--gtr-color-base-white-hover: #e6e6e6;--gtr-color-base-white-100: #ffffff;--gtr-color-base-white-80: rgba(255, 255, 255, .8);--gtr-color-base-white-60: rgba(255, 255, 255, .6);--gtr-color-base-white-40: rgba(255, 255, 255, .4);--gtr-color-base-white-20: rgba(255, 255, 255, .2);--gtr-color-base-white-10: rgba(255, 255, 255, .1);--gtr-color-base-white-5: rgba(255, 255, 255, .05);--gtr-color-base-black-pressed: #000000;--gtr-color-base-black-hover: #000000;--gtr-color-base-black-100: #000000;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-pressed: #d71a1c;--gtr-color-base-danger-hover: #e42728;--gtr-color-base-danger-100: #ea5455;--gtr-color-base-danger-80: rgba(234, 84, 85, .8);--gtr-color-base-danger-60: rgba(234, 84, 85, .6);--gtr-color-base-danger-40: rgba(234, 84, 85, .4);--gtr-color-base-danger-20: rgba(234, 84, 85, .2);--gtr-color-base-danger-10: rgba(234, 84, 85, .1);--gtr-color-base-danger-5: rgba(234, 84, 85, .05);--gtr-color-base-success-pressed: #005125;--gtr-color-base-success-hover: #006b30;--gtr-color-base-success-100: #009e47;--gtr-color-base-success-80: rgba(0, 158, 71, .8);--gtr-color-base-success-60: rgba(0, 158, 71, .6);--gtr-color-base-success-40: rgba(0, 158, 71, .4);--gtr-color-base-success-20: rgba(0, 158, 71, .2);--gtr-color-base-success-10: rgba(0, 158, 71, .1);--gtr-color-base-success-5: rgba(0, 158, 71, .05);--gtr-color-base-secondary-pressed: #df7210;--gtr-color-base-secondary-hover: #ef7e1a;--gtr-color-base-secondary-100: #f2994a;--gtr-color-base-secondary-80: rgba(242, 153, 74, .8);--gtr-color-base-secondary-60: rgba(242, 153, 74, .6);--gtr-color-base-secondary-40: rgba(242, 153, 74, .4);--gtr-color-base-secondary-20: rgba(242, 153, 74, .2);--gtr-color-base-secondary-10: rgba(242, 153, 74, .1);--gtr-color-base-secondary-5: rgba(242, 153, 74, .05);--gtr-color-base-primary-pressed: #002d4f;--gtr-color-base-primary-hover: #003c69;--gtr-color-base-primary-100: #00599c;--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-primary-60: rgba(0, 89, 156, .6);--gtr-color-base-primary-40: rgba(0, 89, 156, .4);--gtr-color-base-primary-20: rgba(0, 89, 156, .2);--gtr-color-base-primary-10: rgba(0, 89, 156, .1);--gtr-color-base-primary-5: rgba(0, 89, 156, .05);--gtr-content-layout-container-padding-x: var(--gtr-size-layout-grid-gutter-width);--gtr-content-box-shadow-50: var(--gtr-content-box-shadow-base);--gtr-size-spacing-base: var(--gtr-size-spacing-4);--gtr-size-padding-base: var(--gtr-size-padding-medium);--gtr-size-font-heading-6: var(--gtr-size-font-size-base);--gtr-size-font-weight-base: var(--gtr-size-font-weight-normal);--gtr-size-border-radius-xs: var(--gtr-size-border-radius-base);--gtr-component-font-family-code: var(--gtr-component-font-family-monospace);--gtr-component-font-family-base: var(--gtr-component-font-family-sans-serif);--gtr-component-button-background-color-danger-hover: var(--gtr-color-base-danger-hover);--gtr-component-button-background-color-danger-focus: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-active: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-disabled: var(--gtr-color-base-danger-40);--gtr-component-button-background-color-danger-base: var(--gtr-color-base-danger-100);--gtr-component-button-background-color-success-hover: var(--gtr-color-base-success-hover);--gtr-component-button-background-color-success-focus: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-active: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-disabled: var(--gtr-color-base-success-40);--gtr-component-button-background-color-success-base: var(--gtr-color-base-success-100);--gtr-component-button-background-color-secondary-hover: var(--gtr-color-base-secondary-hover);--gtr-component-button-background-color-secondary-focus: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-active: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-disabled: var(--gtr-color-base-secondary-40);--gtr-component-button-background-color-secondary-base: var(--gtr-color-base-secondary-100);--gtr-component-button-background-color-primary-hover: var(--gtr-color-base-primary-hover);--gtr-component-button-background-color-primary-focus: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-active: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-disabled: var(--gtr-color-base-primary-40);--gtr-component-button-background-color-primary-base: var(--gtr-color-base-primary-100);--gtr-component-button-background-color-gray-hover: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-focus: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-active: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-disabled: var(--gtr-color-base-black-5);--gtr-component-button-background-color-gray-base: var(--gtr-color-base-black-5);--gtr-component-button-text-color-gray: var(--gtr-color-base-black-100);--gtr-component-button-padding: var(--gtr-size-padding-medium);--gtr-color-font-inverse-white: var(--gtr-color-base-black-80);--gtr-color-font-inverse-black: var(--gtr-color-base-white-100);--gtr-color-font-inverse-danger: var(--gtr-color-base-white-100);--gtr-color-font-inverse-success: var(--gtr-color-base-white-100);--gtr-color-font-inverse-secondary: var(--gtr-color-base-white-100);--gtr-color-font-inverse-primary: var(--gtr-color-base-white-100);--gtr-color-font-white: var(--gtr-color-base-white-100);--gtr-color-font-black: var(--gtr-color-base-black-100);--gtr-color-font-danger: var(--gtr-color-base-danger-100);--gtr-color-font-success: var(--gtr-color-base-success-100);--gtr-color-font-secondary: var(--gtr-color-base-secondary-100);--gtr-color-font-primary: var(--gtr-color-base-primary-100);--gtr-color-border-white: var(--gtr-color-base-white-100);--gtr-color-border-black: var(--gtr-color-base-black-100);--gtr-color-border-danger: var(--gtr-color-base-danger-100);--gtr-color-border-success: var(--gtr-color-base-success-100);--gtr-color-border-secondary: var(--gtr-color-base-secondary-100);--gtr-color-border-primary: var(--gtr-color-base-primary-100);--gtr-color-base-white-base: var(--gtr-color-base-white-100);--gtr-color-base-black-base: var(--gtr-color-base-black-100);--gtr-color-base-danger-base: var(--gtr-color-base-danger-100);--gtr-color-base-success-base: var(--gtr-color-base-success-100);--gtr-color-base-secondary-base: var(--gtr-color-base-secondary-100);--gtr-color-base-primary-base: var(--gtr-color-base-primary-100);--gtr-color-background-danger: var(--gtr-color-base-danger-100);--gtr-color-background-success: var(--gtr-color-base-success-100);--gtr-color-background-base: var(--gtr-color-base-white-100);--gtr-component-button-text-color-danger: var(--gtr-color-font-inverse-danger);--gtr-component-button-text-color-success: var(--gtr-color-font-inverse-success);--gtr-component-button-text-color-secondary: var(--gtr-color-font-inverse-secondary);--gtr-component-button-text-color-primary: var(--gtr-color-font-inverse-primary)}:host{box-sizing:border-box}:host([disabled]){pointer-events:none}button{font-family:var(--gtr-component-font-family-base);line-height:18px;font-size:15px;font-weight:400;letter-spacing:.43px;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:8px 12px 8px 10px;display:flex;justify-content:center;align-items:center;outline:none}button.raised{box-shadow:0 2px 4px #a5a3ae4d}button.raised,button.flat{color:var(--gtr-component-button-text-color-primary)}button.raised.primary,button.flat.primary{background-color:var(--gtr-color-base-primary-base)}button.raised.primary:hover,button.flat.primary:hover{background-color:var(--gtr-color-base-primary-hover)}button.raised.primary:active,button.raised.primary:focus,button.flat.primary:active,button.flat.primary:focus{background-color:var(--gtr-color-base-primary-pressed)}button.raised.primary:disabled,button.raised.primary.disabled,button.flat.primary:disabled,button.flat.primary.disabled{background-color:var(--gtr-color-base-primary-40)}button.raised.secondary,button.flat.secondary{background-color:var(--gtr-color-base-secondary-base);color:var(--gtr-component-button-text-color-secondary)!important}button.raised.secondary:hover,button.flat.secondary:hover{background-color:var(--gtr-color-base-secondary-hover)}button.raised.secondary:active,button.raised.secondary:focus,button.flat.secondary:active,button.flat.secondary:focus{background-color:var(--gtr-color-base-secondary-pressed)}button.raised.secondary:disabled,button.raised.secondary.disabled,button.flat.secondary:disabled,button.flat.secondary.disabled{background-color:var(--gtr-color-base-secondary-40)}button.raised.success,button.flat.success{background-color:var(--gtr-color-base-success-base)}button.raised.success:hover,button.flat.success:hover{background-color:var(--gtr-color-base-success-hover)}button.raised.success:active,button.raised.success:focus,button.flat.success:active,button.flat.success:focus{background-color:var(--gtr-color-base-success-pressed)}button.raised.success:disabled,button.raised.success.disabled,button.flat.success:disabled,button.flat.success.disabled{background-color:var(--gtr-color-base-success-40)}button.raised.danger,button.flat.danger{background-color:var(--gtr-color-base-danger-base)}button.raised.danger:hover,button.flat.danger:hover{background-color:var(--gtr-color-base-danger-hover)}button.raised.danger:active,button.raised.danger:focus,button.flat.danger:active,button.flat.danger:focus{background-color:var(--gtr-color-base-danger-pressed)}button.raised.danger:disabled,button.raised.danger.disabled,button.flat.danger:disabled,button.flat.danger.disabled{background-color:var(--gtr-color-base-danger-40)}button.raised.gray,button.flat.gray{background-color:var(--gtr-component-button-background-color-gray-base);color:var(--gtr-color-base-black-80, rgba(0, 0, 0, .8))}button.raised.gray:hover,button.flat.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:active,button.raised.gray:focus,button.flat.gray:active,button.flat.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:disabled,button.raised.gray.disabled,button.flat.gray:disabled,button.flat.gray.disabled{background-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline{background-color:transparent}button.outline.primary{border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-primary-base)}button.outline.primary:hover{background-color:var(--gtr-color-base-primary-base);border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-white-base)}button.outline.primary:active,button.outline.primary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-primary-pressed);border-color:var(--gtr-color-base-primary-pressed)}button.outline.primary:disabled,button.outline.primary.disabled{color:var(--gtr-color-base-primary-40);border-color:var(--gtr-color-base-primary-40)}button.outline.secondary{border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-secondary-base)}button.outline.secondary:hover{background-color:var(--gtr-color-base-secondary-base);border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-white-base)}button.outline.secondary:active,button.outline.secondary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-secondary-pressed);border-color:var(--gtr-color-base-secondary-pressed)}button.outline.secondary:disabled,button.outline.secondary.disabled{color:var(--gtr-color-base-secondary-40);border-color:var(--gtr-color-base-secondary-40)}button.outline.success{border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-success-base)}button.outline.success:hover{background-color:var(--gtr-color-base-success-base);border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-white-base)}button.outline.success:active,button.outline.success:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-success-pressed);border-color:var(--gtr-color-base-success-pressed)}button.outline.success:disabled,button.outline.success.disabled{color:var(--gtr-color-base-success-40);border-color:var(--gtr-color-base-success-40)}button.outline.danger{border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-danger-base)}button.outline.danger:hover{background-color:var(--gtr-color-base-danger-base);border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-white-base)}button.outline.danger:active,button.outline.danger:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-danger-pressed);border-color:var(--gtr-color-base-danger-pressed)}button.outline.danger:disabled,button.outline.danger.disabled{color:var(--gtr-color-base-danger-40);border-color:var(--gtr-color-base-danger-40)}button.outline.gray{border-color:var(--gtr-color-base-black-40);color:var(--gtr-color-base-black-80)}button.outline.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:active,button.outline.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:disabled,button.outline.gray.disabled{border-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.link{border-color:transparent;background-color:transparent}button.link:hover{text-decoration:underline}button.link.primary{color:var(--gtr-color-base-primary-base)}button.link.primary:disabled,button.link.primary.disabled{color:var(--gtr-color-base-primary-40)}button.link.secondary{color:var(--gtr-color-base-secondary-base)}button.link.secondary:disabled,button.link.secondary.disabled{color:var(--gtr-color-base-secondary-40)}button.link.success{color:var(--gtr-color-base-success-base)}button.link.success:disabled,button.link.success.disabled{color:var(--gtr-color-base-success-40)}button.link.danger{color:var(--gtr-color-base-danger-base)}button.link.danger:disabled,button.link.danger.disabled{color:var(--gtr-color-base-danger-40)}button.link.gray{color:var(--gtr-color-base-black-80)}button.link.gray:disabled,button.link.gray.disabled{color:var(--gtr-color-base-black-40)}.button--loading:before{content:\" \";width:.75em;height:.75em;margin-right:.5em;display:inline-block;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:loading-spinner-animation 1s linear infinite}@keyframes loading-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }); }
|
|
1227
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1228
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrButtonComponent, selector: "gtr-button", inputs: { type: "type", btnId: "btnId", color: "color", isLoading: "isLoading", variant: "variant", disabled: "disabled" }, ngImport: i0, template: "<button [type]=\"this.type\" [class]=\"getCssClassMap()\" [id]=\"btnId\" [attr.data-testid]=\"btnId\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" [disabled]=\"this.disabled\">\n <ng-content></ng-content>\n</button>\n", styles: [":root{--gtr-content-layout-grid-row-columns: 6;--gtr-content-layout-grid-columns: 12;--gtr-content-box-shadow-base: 0px 6px 12px -6px rgba(24, 39, 75, .12), 0px 8px 24px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-80: 0px 8px 22px -6px rgba(24, 39, 75, .12), 0px 14px 64px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-70: 0px 8px 18px -6px rgba(24, 39, 75, .12), 0px 12px 42px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-60: 0px 6px 14px -6px rgba(24, 39, 75, .12), 0px 10px 32px -4px rgba(24, 39, 75, .1);--gtr-content-box-shadow-40: 0px 6px 8px -6px rgba(24, 39, 75, .12), 0px 8px 16px -6px rgba(24, 39, 75, .08);--gtr-content-box-shadow-30: 0px 4px 6px -4px rgba(24, 39, 75, .12), 0px 8px 8px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-20: 0px 2px 4px -2px rgba(24, 39, 75, .12), 0px 4px 4px -2px rgba(24, 39, 75, .08);--gtr-content-border-style: solid;--gtr-size-layout-grid-gutter-width: 1.5rem;--gtr-size-layout-container-max-width-xxl: 1320rem;--gtr-size-layout-container-max-width-xl: 1140rem;--gtr-size-layout-container-max-width-lg: 960rem;--gtr-size-layout-container-max-width-md: 720rem;--gtr-size-layout-container-max-width-sm: 540rem;--gtr-size-layout-breakpoints-xxl: 1400rem;--gtr-size-layout-breakpoints-xl: 1200rem;--gtr-size-layout-breakpoints-lg: 992rem;--gtr-size-layout-breakpoints-md: 768rem;--gtr-size-layout-breakpoints-sm: 576rem;--gtr-size-layout-breakpoints-xs: 0rem;--gtr-size-spacing-none: 0rem;--gtr-size-spacing-16: 10rem;--gtr-size-spacing-15: 6rem;--gtr-size-spacing-14: 5.5rem;--gtr-size-spacing-13: 5rem;--gtr-size-spacing-12: 4.5rem;--gtr-size-spacing-11: 4rem;--gtr-size-spacing-10: 3.5rem;--gtr-size-spacing-9: 3rem;--gtr-size-spacing-8: 2.5rem;--gtr-size-spacing-7: 2rem;--gtr-size-spacing-6: 1.75rem;--gtr-size-spacing-5: 1.5rem;--gtr-size-spacing-4: 1rem;--gtr-size-spacing-3: .75rem;--gtr-size-spacing-2: .5rem;--gtr-size-spacing-1: .25rem;--gtr-size-padding-xxl: 3rem;--gtr-size-padding-xl: 2rem;--gtr-size-padding-large: 1.5rem;--gtr-size-padding-medium: 1rem;--gtr-size-padding-small: .5rem;--gtr-size-padding-tiny: .25rem;--gtr-size-icon-xxl: 5rem;--gtr-size-icon-xl: 3rem;--gtr-size-icon-large: 2.5rem;--gtr-size-icon-base: 2rem;--gtr-size-icon-small: 1.5rem;--gtr-size-font-heading-5: 1.25rem;--gtr-size-font-heading-4: 1.5rem;--gtr-size-font-heading-3: 1.75rem;--gtr-size-font-heading-2: 2rem;--gtr-size-font-heading-1: 2.5rem;--gtr-size-font-weight-bolder: 800rem;--gtr-size-font-weight-bold: 700rem;--gtr-size-font-weight-semibold: 600rem;--gtr-size-font-weight-medium: 500rem;--gtr-size-font-weight-normal: 400rem;--gtr-size-font-weight-light: 300rem;--gtr-size-font-weight-lighter: 200rem;--gtr-size-font-size-lg: 1.25rem;--gtr-size-font-size-sm: .875rem;--gtr-size-font-size-base: 1rem;--gtr-size-font-size-root: 1rem;--gtr-size-border-radius-pill: 50rem;--gtr-size-border-radius-xxl: 2rem;--gtr-size-border-radius-xl: 1.5rem;--gtr-size-border-radius-lg: 1rem;--gtr-size-border-radius-sm: .75rem;--gtr-size-border-radius-xxs: .25rem;--gtr-size-border-radius-base: .5rem;--gtr-size-border-radius-none: 0rem;--gtr-size-border-width-bolder: 5rem;--gtr-size-border-width-bold: 4rem;--gtr-size-border-width-semibold: 3rem;--gtr-size-border-width-medium: 2rem;--gtr-size-border-width-normal: 1rem;--gtr-component-position-100: 100%;--gtr-component-position-50: 50%;--gtr-component-position-0: 0;--gtr-component-font-line-height-lg: 2;--gtr-component-font-line-height-sm: 1.25;--gtr-component-font-line-height-base: 1.5;--gtr-component-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--gtr-component-font-family-sans-serif: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--gtr-component-button-text-align: center;--gtr-component-button-font-size: 2rem;--gtr-color-base-white-pressed: #d9d9d9;--gtr-color-base-white-hover: #e6e6e6;--gtr-color-base-white-100: #ffffff;--gtr-color-base-white-80: rgba(255, 255, 255, .8);--gtr-color-base-white-60: rgba(255, 255, 255, .6);--gtr-color-base-white-40: rgba(255, 255, 255, .4);--gtr-color-base-white-20: rgba(255, 255, 255, .2);--gtr-color-base-white-10: rgba(255, 255, 255, .1);--gtr-color-base-white-5: rgba(255, 255, 255, .05);--gtr-color-base-black-pressed: #000000;--gtr-color-base-black-hover: #000000;--gtr-color-base-black-100: #000000;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-pressed: #d71a1c;--gtr-color-base-danger-hover: #e42728;--gtr-color-base-danger-100: #ea5455;--gtr-color-base-danger-80: rgba(234, 84, 85, .8);--gtr-color-base-danger-60: rgba(234, 84, 85, .6);--gtr-color-base-danger-40: rgba(234, 84, 85, .4);--gtr-color-base-danger-20: rgba(234, 84, 85, .2);--gtr-color-base-danger-10: rgba(234, 84, 85, .1);--gtr-color-base-danger-5: rgba(234, 84, 85, .05);--gtr-color-base-success-pressed: #005125;--gtr-color-base-success-hover: #006b30;--gtr-color-base-success-100: #009e47;--gtr-color-base-success-80: rgba(0, 158, 71, .8);--gtr-color-base-success-60: rgba(0, 158, 71, .6);--gtr-color-base-success-40: rgba(0, 158, 71, .4);--gtr-color-base-success-20: rgba(0, 158, 71, .2);--gtr-color-base-success-10: rgba(0, 158, 71, .1);--gtr-color-base-success-5: rgba(0, 158, 71, .05);--gtr-color-base-secondary-pressed: #df7210;--gtr-color-base-secondary-hover: #ef7e1a;--gtr-color-base-secondary-100: #f2994a;--gtr-color-base-secondary-80: rgba(242, 153, 74, .8);--gtr-color-base-secondary-60: rgba(242, 153, 74, .6);--gtr-color-base-secondary-40: rgba(242, 153, 74, .4);--gtr-color-base-secondary-20: rgba(242, 153, 74, .2);--gtr-color-base-secondary-10: rgba(242, 153, 74, .1);--gtr-color-base-secondary-5: rgba(242, 153, 74, .05);--gtr-color-base-primary-pressed: #002d4f;--gtr-color-base-primary-hover: #003c69;--gtr-color-base-primary-100: #00599c;--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-primary-60: rgba(0, 89, 156, .6);--gtr-color-base-primary-40: rgba(0, 89, 156, .4);--gtr-color-base-primary-20: rgba(0, 89, 156, .2);--gtr-color-base-primary-10: rgba(0, 89, 156, .1);--gtr-color-base-primary-5: rgba(0, 89, 156, .05);--gtr-content-layout-container-padding-x: var(--gtr-size-layout-grid-gutter-width);--gtr-content-box-shadow-50: var(--gtr-content-box-shadow-base);--gtr-size-spacing-base: var(--gtr-size-spacing-4);--gtr-size-padding-base: var(--gtr-size-padding-medium);--gtr-size-font-heading-6: var(--gtr-size-font-size-base);--gtr-size-font-weight-base: var(--gtr-size-font-weight-normal);--gtr-size-border-radius-xs: var(--gtr-size-border-radius-base);--gtr-component-font-family-code: var(--gtr-component-font-family-monospace);--gtr-component-font-family-base: var(--gtr-component-font-family-sans-serif);--gtr-component-button-background-color-danger-hover: var(--gtr-color-base-danger-hover);--gtr-component-button-background-color-danger-focus: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-active: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-disabled: var(--gtr-color-base-danger-40);--gtr-component-button-background-color-danger-base: var(--gtr-color-base-danger-100);--gtr-component-button-background-color-success-hover: var(--gtr-color-base-success-hover);--gtr-component-button-background-color-success-focus: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-active: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-disabled: var(--gtr-color-base-success-40);--gtr-component-button-background-color-success-base: var(--gtr-color-base-success-100);--gtr-component-button-background-color-secondary-hover: var(--gtr-color-base-secondary-hover);--gtr-component-button-background-color-secondary-focus: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-active: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-disabled: var(--gtr-color-base-secondary-40);--gtr-component-button-background-color-secondary-base: var(--gtr-color-base-secondary-100);--gtr-component-button-background-color-primary-hover: var(--gtr-color-base-primary-hover);--gtr-component-button-background-color-primary-focus: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-active: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-disabled: var(--gtr-color-base-primary-40);--gtr-component-button-background-color-primary-base: var(--gtr-color-base-primary-100);--gtr-component-button-background-color-gray-hover: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-focus: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-active: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-disabled: var(--gtr-color-base-black-5);--gtr-component-button-background-color-gray-base: var(--gtr-color-base-black-5);--gtr-component-button-text-color-gray: var(--gtr-color-base-black-100);--gtr-component-button-padding: var(--gtr-size-padding-medium);--gtr-color-font-inverse-white: var(--gtr-color-base-black-80);--gtr-color-font-inverse-black: var(--gtr-color-base-white-100);--gtr-color-font-inverse-danger: var(--gtr-color-base-white-100);--gtr-color-font-inverse-success: var(--gtr-color-base-white-100);--gtr-color-font-inverse-secondary: var(--gtr-color-base-white-100);--gtr-color-font-inverse-primary: var(--gtr-color-base-white-100);--gtr-color-font-white: var(--gtr-color-base-white-100);--gtr-color-font-black: var(--gtr-color-base-black-100);--gtr-color-font-danger: var(--gtr-color-base-danger-100);--gtr-color-font-success: var(--gtr-color-base-success-100);--gtr-color-font-secondary: var(--gtr-color-base-secondary-100);--gtr-color-font-primary: var(--gtr-color-base-primary-100);--gtr-color-border-white: var(--gtr-color-base-white-100);--gtr-color-border-black: var(--gtr-color-base-black-100);--gtr-color-border-danger: var(--gtr-color-base-danger-100);--gtr-color-border-success: var(--gtr-color-base-success-100);--gtr-color-border-secondary: var(--gtr-color-base-secondary-100);--gtr-color-border-primary: var(--gtr-color-base-primary-100);--gtr-color-base-white-base: var(--gtr-color-base-white-100);--gtr-color-base-black-base: var(--gtr-color-base-black-100);--gtr-color-base-danger-base: var(--gtr-color-base-danger-100);--gtr-color-base-success-base: var(--gtr-color-base-success-100);--gtr-color-base-secondary-base: var(--gtr-color-base-secondary-100);--gtr-color-base-primary-base: var(--gtr-color-base-primary-100);--gtr-color-background-danger: var(--gtr-color-base-danger-100);--gtr-color-background-success: var(--gtr-color-base-success-100);--gtr-color-background-base: var(--gtr-color-base-white-100);--gtr-component-button-text-color-danger: var(--gtr-color-font-inverse-danger);--gtr-component-button-text-color-success: var(--gtr-color-font-inverse-success);--gtr-component-button-text-color-secondary: var(--gtr-color-font-inverse-secondary);--gtr-component-button-text-color-primary: var(--gtr-color-font-inverse-primary)}:host{box-sizing:border-box}:host([disabled]){pointer-events:none}button{font-family:var(--gtr-component-font-family-base);line-height:18px;font-size:15px;font-weight:400;letter-spacing:.43px;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:8px 12px 8px 10px;display:flex;justify-content:center;align-items:center;outline:none}button.raised{box-shadow:0 2px 4px #a5a3ae4d}button.raised,button.flat{color:var(--gtr-component-button-text-color-primary)}button.raised.primary,button.flat.primary{background-color:var(--gtr-color-base-primary-base)}button.raised.primary:hover,button.flat.primary:hover{background-color:var(--gtr-color-base-primary-hover)}button.raised.primary:active,button.raised.primary:focus,button.flat.primary:active,button.flat.primary:focus{background-color:var(--gtr-color-base-primary-pressed)}button.raised.primary:disabled,button.raised.primary.disabled,button.flat.primary:disabled,button.flat.primary.disabled{background-color:var(--gtr-color-base-primary-40)}button.raised.secondary,button.flat.secondary{background-color:var(--gtr-color-base-secondary-base);color:var(--gtr-component-button-text-color-secondary)!important}button.raised.secondary:hover,button.flat.secondary:hover{background-color:var(--gtr-color-base-secondary-hover)}button.raised.secondary:active,button.raised.secondary:focus,button.flat.secondary:active,button.flat.secondary:focus{background-color:var(--gtr-color-base-secondary-pressed)}button.raised.secondary:disabled,button.raised.secondary.disabled,button.flat.secondary:disabled,button.flat.secondary.disabled{background-color:var(--gtr-color-base-secondary-40)}button.raised.success,button.flat.success{background-color:var(--gtr-color-base-success-base)}button.raised.success:hover,button.flat.success:hover{background-color:var(--gtr-color-base-success-hover)}button.raised.success:active,button.raised.success:focus,button.flat.success:active,button.flat.success:focus{background-color:var(--gtr-color-base-success-pressed)}button.raised.success:disabled,button.raised.success.disabled,button.flat.success:disabled,button.flat.success.disabled{background-color:var(--gtr-color-base-success-40)}button.raised.danger,button.flat.danger{background-color:var(--gtr-color-base-danger-base)}button.raised.danger:hover,button.flat.danger:hover{background-color:var(--gtr-color-base-danger-hover)}button.raised.danger:active,button.raised.danger:focus,button.flat.danger:active,button.flat.danger:focus{background-color:var(--gtr-color-base-danger-pressed)}button.raised.danger:disabled,button.raised.danger.disabled,button.flat.danger:disabled,button.flat.danger.disabled{background-color:var(--gtr-color-base-danger-40)}button.raised.gray,button.flat.gray{background-color:var(--gtr-component-button-background-color-gray-base);color:var(--gtr-color-base-black-80, rgba(0, 0, 0, .8))}button.raised.gray:hover,button.flat.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:active,button.raised.gray:focus,button.flat.gray:active,button.flat.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:disabled,button.raised.gray.disabled,button.flat.gray:disabled,button.flat.gray.disabled{background-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline{background-color:transparent}button.outline.primary{border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-primary-base)}button.outline.primary:hover{background-color:var(--gtr-color-base-primary-base);border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-white-base)}button.outline.primary:active,button.outline.primary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-primary-pressed);border-color:var(--gtr-color-base-primary-pressed)}button.outline.primary:disabled,button.outline.primary.disabled{color:var(--gtr-color-base-primary-40);border-color:var(--gtr-color-base-primary-40)}button.outline.secondary{border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-secondary-base)}button.outline.secondary:hover{background-color:var(--gtr-color-base-secondary-base);border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-white-base)}button.outline.secondary:active,button.outline.secondary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-secondary-pressed);border-color:var(--gtr-color-base-secondary-pressed)}button.outline.secondary:disabled,button.outline.secondary.disabled{color:var(--gtr-color-base-secondary-40);border-color:var(--gtr-color-base-secondary-40)}button.outline.success{border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-success-base)}button.outline.success:hover{background-color:var(--gtr-color-base-success-base);border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-white-base)}button.outline.success:active,button.outline.success:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-success-pressed);border-color:var(--gtr-color-base-success-pressed)}button.outline.success:disabled,button.outline.success.disabled{color:var(--gtr-color-base-success-40);border-color:var(--gtr-color-base-success-40)}button.outline.danger{border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-danger-base)}button.outline.danger:hover{background-color:var(--gtr-color-base-danger-base);border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-white-base)}button.outline.danger:active,button.outline.danger:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-danger-pressed);border-color:var(--gtr-color-base-danger-pressed)}button.outline.danger:disabled,button.outline.danger.disabled{color:var(--gtr-color-base-danger-40);border-color:var(--gtr-color-base-danger-40)}button.outline.gray{border-color:var(--gtr-color-base-black-40);color:var(--gtr-color-base-black-80)}button.outline.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:active,button.outline.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:disabled,button.outline.gray.disabled{border-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.link{border-color:transparent;background-color:transparent}button.link:hover{text-decoration:underline}button.link.primary{color:var(--gtr-color-base-primary-base)}button.link.primary:disabled,button.link.primary.disabled{color:var(--gtr-color-base-primary-40)}button.link.secondary{color:var(--gtr-color-base-secondary-base)}button.link.secondary:disabled,button.link.secondary.disabled{color:var(--gtr-color-base-secondary-40)}button.link.success{color:var(--gtr-color-base-success-base)}button.link.success:disabled,button.link.success.disabled{color:var(--gtr-color-base-success-40)}button.link.danger{color:var(--gtr-color-base-danger-base)}button.link.danger:disabled,button.link.danger.disabled{color:var(--gtr-color-base-danger-40)}button.link.gray{color:var(--gtr-color-base-black-80)}button.link.gray:disabled,button.link.gray.disabled{color:var(--gtr-color-base-black-40)}.button--loading:before{content:\" \";width:.75em;height:.75em;margin-right:.5em;display:inline-block;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:loading-spinner-animation 1s linear infinite}@keyframes loading-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }); }
|
|
1229
1229
|
}
|
|
1230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonComponent, decorators: [{
|
|
1231
1231
|
type: Component,
|
|
1232
1232
|
args: [{ selector: 'gtr-button', template: "<button [type]=\"this.type\" [class]=\"getCssClassMap()\" [id]=\"btnId\" [attr.data-testid]=\"btnId\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" [disabled]=\"this.disabled\">\n <ng-content></ng-content>\n</button>\n", styles: [":root{--gtr-content-layout-grid-row-columns: 6;--gtr-content-layout-grid-columns: 12;--gtr-content-box-shadow-base: 0px 6px 12px -6px rgba(24, 39, 75, .12), 0px 8px 24px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-80: 0px 8px 22px -6px rgba(24, 39, 75, .12), 0px 14px 64px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-70: 0px 8px 18px -6px rgba(24, 39, 75, .12), 0px 12px 42px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-60: 0px 6px 14px -6px rgba(24, 39, 75, .12), 0px 10px 32px -4px rgba(24, 39, 75, .1);--gtr-content-box-shadow-40: 0px 6px 8px -6px rgba(24, 39, 75, .12), 0px 8px 16px -6px rgba(24, 39, 75, .08);--gtr-content-box-shadow-30: 0px 4px 6px -4px rgba(24, 39, 75, .12), 0px 8px 8px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-20: 0px 2px 4px -2px rgba(24, 39, 75, .12), 0px 4px 4px -2px rgba(24, 39, 75, .08);--gtr-content-border-style: solid;--gtr-size-layout-grid-gutter-width: 1.5rem;--gtr-size-layout-container-max-width-xxl: 1320rem;--gtr-size-layout-container-max-width-xl: 1140rem;--gtr-size-layout-container-max-width-lg: 960rem;--gtr-size-layout-container-max-width-md: 720rem;--gtr-size-layout-container-max-width-sm: 540rem;--gtr-size-layout-breakpoints-xxl: 1400rem;--gtr-size-layout-breakpoints-xl: 1200rem;--gtr-size-layout-breakpoints-lg: 992rem;--gtr-size-layout-breakpoints-md: 768rem;--gtr-size-layout-breakpoints-sm: 576rem;--gtr-size-layout-breakpoints-xs: 0rem;--gtr-size-spacing-none: 0rem;--gtr-size-spacing-16: 10rem;--gtr-size-spacing-15: 6rem;--gtr-size-spacing-14: 5.5rem;--gtr-size-spacing-13: 5rem;--gtr-size-spacing-12: 4.5rem;--gtr-size-spacing-11: 4rem;--gtr-size-spacing-10: 3.5rem;--gtr-size-spacing-9: 3rem;--gtr-size-spacing-8: 2.5rem;--gtr-size-spacing-7: 2rem;--gtr-size-spacing-6: 1.75rem;--gtr-size-spacing-5: 1.5rem;--gtr-size-spacing-4: 1rem;--gtr-size-spacing-3: .75rem;--gtr-size-spacing-2: .5rem;--gtr-size-spacing-1: .25rem;--gtr-size-padding-xxl: 3rem;--gtr-size-padding-xl: 2rem;--gtr-size-padding-large: 1.5rem;--gtr-size-padding-medium: 1rem;--gtr-size-padding-small: .5rem;--gtr-size-padding-tiny: .25rem;--gtr-size-icon-xxl: 5rem;--gtr-size-icon-xl: 3rem;--gtr-size-icon-large: 2.5rem;--gtr-size-icon-base: 2rem;--gtr-size-icon-small: 1.5rem;--gtr-size-font-heading-5: 1.25rem;--gtr-size-font-heading-4: 1.5rem;--gtr-size-font-heading-3: 1.75rem;--gtr-size-font-heading-2: 2rem;--gtr-size-font-heading-1: 2.5rem;--gtr-size-font-weight-bolder: 800rem;--gtr-size-font-weight-bold: 700rem;--gtr-size-font-weight-semibold: 600rem;--gtr-size-font-weight-medium: 500rem;--gtr-size-font-weight-normal: 400rem;--gtr-size-font-weight-light: 300rem;--gtr-size-font-weight-lighter: 200rem;--gtr-size-font-size-lg: 1.25rem;--gtr-size-font-size-sm: .875rem;--gtr-size-font-size-base: 1rem;--gtr-size-font-size-root: 1rem;--gtr-size-border-radius-pill: 50rem;--gtr-size-border-radius-xxl: 2rem;--gtr-size-border-radius-xl: 1.5rem;--gtr-size-border-radius-lg: 1rem;--gtr-size-border-radius-sm: .75rem;--gtr-size-border-radius-xxs: .25rem;--gtr-size-border-radius-base: .5rem;--gtr-size-border-radius-none: 0rem;--gtr-size-border-width-bolder: 5rem;--gtr-size-border-width-bold: 4rem;--gtr-size-border-width-semibold: 3rem;--gtr-size-border-width-medium: 2rem;--gtr-size-border-width-normal: 1rem;--gtr-component-position-100: 100%;--gtr-component-position-50: 50%;--gtr-component-position-0: 0;--gtr-component-font-line-height-lg: 2;--gtr-component-font-line-height-sm: 1.25;--gtr-component-font-line-height-base: 1.5;--gtr-component-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--gtr-component-font-family-sans-serif: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--gtr-component-button-text-align: center;--gtr-component-button-font-size: 2rem;--gtr-color-base-white-pressed: #d9d9d9;--gtr-color-base-white-hover: #e6e6e6;--gtr-color-base-white-100: #ffffff;--gtr-color-base-white-80: rgba(255, 255, 255, .8);--gtr-color-base-white-60: rgba(255, 255, 255, .6);--gtr-color-base-white-40: rgba(255, 255, 255, .4);--gtr-color-base-white-20: rgba(255, 255, 255, .2);--gtr-color-base-white-10: rgba(255, 255, 255, .1);--gtr-color-base-white-5: rgba(255, 255, 255, .05);--gtr-color-base-black-pressed: #000000;--gtr-color-base-black-hover: #000000;--gtr-color-base-black-100: #000000;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-pressed: #d71a1c;--gtr-color-base-danger-hover: #e42728;--gtr-color-base-danger-100: #ea5455;--gtr-color-base-danger-80: rgba(234, 84, 85, .8);--gtr-color-base-danger-60: rgba(234, 84, 85, .6);--gtr-color-base-danger-40: rgba(234, 84, 85, .4);--gtr-color-base-danger-20: rgba(234, 84, 85, .2);--gtr-color-base-danger-10: rgba(234, 84, 85, .1);--gtr-color-base-danger-5: rgba(234, 84, 85, .05);--gtr-color-base-success-pressed: #005125;--gtr-color-base-success-hover: #006b30;--gtr-color-base-success-100: #009e47;--gtr-color-base-success-80: rgba(0, 158, 71, .8);--gtr-color-base-success-60: rgba(0, 158, 71, .6);--gtr-color-base-success-40: rgba(0, 158, 71, .4);--gtr-color-base-success-20: rgba(0, 158, 71, .2);--gtr-color-base-success-10: rgba(0, 158, 71, .1);--gtr-color-base-success-5: rgba(0, 158, 71, .05);--gtr-color-base-secondary-pressed: #df7210;--gtr-color-base-secondary-hover: #ef7e1a;--gtr-color-base-secondary-100: #f2994a;--gtr-color-base-secondary-80: rgba(242, 153, 74, .8);--gtr-color-base-secondary-60: rgba(242, 153, 74, .6);--gtr-color-base-secondary-40: rgba(242, 153, 74, .4);--gtr-color-base-secondary-20: rgba(242, 153, 74, .2);--gtr-color-base-secondary-10: rgba(242, 153, 74, .1);--gtr-color-base-secondary-5: rgba(242, 153, 74, .05);--gtr-color-base-primary-pressed: #002d4f;--gtr-color-base-primary-hover: #003c69;--gtr-color-base-primary-100: #00599c;--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-primary-60: rgba(0, 89, 156, .6);--gtr-color-base-primary-40: rgba(0, 89, 156, .4);--gtr-color-base-primary-20: rgba(0, 89, 156, .2);--gtr-color-base-primary-10: rgba(0, 89, 156, .1);--gtr-color-base-primary-5: rgba(0, 89, 156, .05);--gtr-content-layout-container-padding-x: var(--gtr-size-layout-grid-gutter-width);--gtr-content-box-shadow-50: var(--gtr-content-box-shadow-base);--gtr-size-spacing-base: var(--gtr-size-spacing-4);--gtr-size-padding-base: var(--gtr-size-padding-medium);--gtr-size-font-heading-6: var(--gtr-size-font-size-base);--gtr-size-font-weight-base: var(--gtr-size-font-weight-normal);--gtr-size-border-radius-xs: var(--gtr-size-border-radius-base);--gtr-component-font-family-code: var(--gtr-component-font-family-monospace);--gtr-component-font-family-base: var(--gtr-component-font-family-sans-serif);--gtr-component-button-background-color-danger-hover: var(--gtr-color-base-danger-hover);--gtr-component-button-background-color-danger-focus: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-active: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-disabled: var(--gtr-color-base-danger-40);--gtr-component-button-background-color-danger-base: var(--gtr-color-base-danger-100);--gtr-component-button-background-color-success-hover: var(--gtr-color-base-success-hover);--gtr-component-button-background-color-success-focus: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-active: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-disabled: var(--gtr-color-base-success-40);--gtr-component-button-background-color-success-base: var(--gtr-color-base-success-100);--gtr-component-button-background-color-secondary-hover: var(--gtr-color-base-secondary-hover);--gtr-component-button-background-color-secondary-focus: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-active: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-disabled: var(--gtr-color-base-secondary-40);--gtr-component-button-background-color-secondary-base: var(--gtr-color-base-secondary-100);--gtr-component-button-background-color-primary-hover: var(--gtr-color-base-primary-hover);--gtr-component-button-background-color-primary-focus: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-active: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-disabled: var(--gtr-color-base-primary-40);--gtr-component-button-background-color-primary-base: var(--gtr-color-base-primary-100);--gtr-component-button-background-color-gray-hover: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-focus: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-active: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-disabled: var(--gtr-color-base-black-5);--gtr-component-button-background-color-gray-base: var(--gtr-color-base-black-5);--gtr-component-button-text-color-gray: var(--gtr-color-base-black-100);--gtr-component-button-padding: var(--gtr-size-padding-medium);--gtr-color-font-inverse-white: var(--gtr-color-base-black-80);--gtr-color-font-inverse-black: var(--gtr-color-base-white-100);--gtr-color-font-inverse-danger: var(--gtr-color-base-white-100);--gtr-color-font-inverse-success: var(--gtr-color-base-white-100);--gtr-color-font-inverse-secondary: var(--gtr-color-base-white-100);--gtr-color-font-inverse-primary: var(--gtr-color-base-white-100);--gtr-color-font-white: var(--gtr-color-base-white-100);--gtr-color-font-black: var(--gtr-color-base-black-100);--gtr-color-font-danger: var(--gtr-color-base-danger-100);--gtr-color-font-success: var(--gtr-color-base-success-100);--gtr-color-font-secondary: var(--gtr-color-base-secondary-100);--gtr-color-font-primary: var(--gtr-color-base-primary-100);--gtr-color-border-white: var(--gtr-color-base-white-100);--gtr-color-border-black: var(--gtr-color-base-black-100);--gtr-color-border-danger: var(--gtr-color-base-danger-100);--gtr-color-border-success: var(--gtr-color-base-success-100);--gtr-color-border-secondary: var(--gtr-color-base-secondary-100);--gtr-color-border-primary: var(--gtr-color-base-primary-100);--gtr-color-base-white-base: var(--gtr-color-base-white-100);--gtr-color-base-black-base: var(--gtr-color-base-black-100);--gtr-color-base-danger-base: var(--gtr-color-base-danger-100);--gtr-color-base-success-base: var(--gtr-color-base-success-100);--gtr-color-base-secondary-base: var(--gtr-color-base-secondary-100);--gtr-color-base-primary-base: var(--gtr-color-base-primary-100);--gtr-color-background-danger: var(--gtr-color-base-danger-100);--gtr-color-background-success: var(--gtr-color-base-success-100);--gtr-color-background-base: var(--gtr-color-base-white-100);--gtr-component-button-text-color-danger: var(--gtr-color-font-inverse-danger);--gtr-component-button-text-color-success: var(--gtr-color-font-inverse-success);--gtr-component-button-text-color-secondary: var(--gtr-color-font-inverse-secondary);--gtr-component-button-text-color-primary: var(--gtr-color-font-inverse-primary)}:host{box-sizing:border-box}:host([disabled]){pointer-events:none}button{font-family:var(--gtr-component-font-family-base);line-height:18px;font-size:15px;font-weight:400;letter-spacing:.43px;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:8px 12px 8px 10px;display:flex;justify-content:center;align-items:center;outline:none}button.raised{box-shadow:0 2px 4px #a5a3ae4d}button.raised,button.flat{color:var(--gtr-component-button-text-color-primary)}button.raised.primary,button.flat.primary{background-color:var(--gtr-color-base-primary-base)}button.raised.primary:hover,button.flat.primary:hover{background-color:var(--gtr-color-base-primary-hover)}button.raised.primary:active,button.raised.primary:focus,button.flat.primary:active,button.flat.primary:focus{background-color:var(--gtr-color-base-primary-pressed)}button.raised.primary:disabled,button.raised.primary.disabled,button.flat.primary:disabled,button.flat.primary.disabled{background-color:var(--gtr-color-base-primary-40)}button.raised.secondary,button.flat.secondary{background-color:var(--gtr-color-base-secondary-base);color:var(--gtr-component-button-text-color-secondary)!important}button.raised.secondary:hover,button.flat.secondary:hover{background-color:var(--gtr-color-base-secondary-hover)}button.raised.secondary:active,button.raised.secondary:focus,button.flat.secondary:active,button.flat.secondary:focus{background-color:var(--gtr-color-base-secondary-pressed)}button.raised.secondary:disabled,button.raised.secondary.disabled,button.flat.secondary:disabled,button.flat.secondary.disabled{background-color:var(--gtr-color-base-secondary-40)}button.raised.success,button.flat.success{background-color:var(--gtr-color-base-success-base)}button.raised.success:hover,button.flat.success:hover{background-color:var(--gtr-color-base-success-hover)}button.raised.success:active,button.raised.success:focus,button.flat.success:active,button.flat.success:focus{background-color:var(--gtr-color-base-success-pressed)}button.raised.success:disabled,button.raised.success.disabled,button.flat.success:disabled,button.flat.success.disabled{background-color:var(--gtr-color-base-success-40)}button.raised.danger,button.flat.danger{background-color:var(--gtr-color-base-danger-base)}button.raised.danger:hover,button.flat.danger:hover{background-color:var(--gtr-color-base-danger-hover)}button.raised.danger:active,button.raised.danger:focus,button.flat.danger:active,button.flat.danger:focus{background-color:var(--gtr-color-base-danger-pressed)}button.raised.danger:disabled,button.raised.danger.disabled,button.flat.danger:disabled,button.flat.danger.disabled{background-color:var(--gtr-color-base-danger-40)}button.raised.gray,button.flat.gray{background-color:var(--gtr-component-button-background-color-gray-base);color:var(--gtr-color-base-black-80, rgba(0, 0, 0, .8))}button.raised.gray:hover,button.flat.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:active,button.raised.gray:focus,button.flat.gray:active,button.flat.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:disabled,button.raised.gray.disabled,button.flat.gray:disabled,button.flat.gray.disabled{background-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline{background-color:transparent}button.outline.primary{border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-primary-base)}button.outline.primary:hover{background-color:var(--gtr-color-base-primary-base);border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-white-base)}button.outline.primary:active,button.outline.primary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-primary-pressed);border-color:var(--gtr-color-base-primary-pressed)}button.outline.primary:disabled,button.outline.primary.disabled{color:var(--gtr-color-base-primary-40);border-color:var(--gtr-color-base-primary-40)}button.outline.secondary{border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-secondary-base)}button.outline.secondary:hover{background-color:var(--gtr-color-base-secondary-base);border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-white-base)}button.outline.secondary:active,button.outline.secondary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-secondary-pressed);border-color:var(--gtr-color-base-secondary-pressed)}button.outline.secondary:disabled,button.outline.secondary.disabled{color:var(--gtr-color-base-secondary-40);border-color:var(--gtr-color-base-secondary-40)}button.outline.success{border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-success-base)}button.outline.success:hover{background-color:var(--gtr-color-base-success-base);border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-white-base)}button.outline.success:active,button.outline.success:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-success-pressed);border-color:var(--gtr-color-base-success-pressed)}button.outline.success:disabled,button.outline.success.disabled{color:var(--gtr-color-base-success-40);border-color:var(--gtr-color-base-success-40)}button.outline.danger{border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-danger-base)}button.outline.danger:hover{background-color:var(--gtr-color-base-danger-base);border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-white-base)}button.outline.danger:active,button.outline.danger:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-danger-pressed);border-color:var(--gtr-color-base-danger-pressed)}button.outline.danger:disabled,button.outline.danger.disabled{color:var(--gtr-color-base-danger-40);border-color:var(--gtr-color-base-danger-40)}button.outline.gray{border-color:var(--gtr-color-base-black-40);color:var(--gtr-color-base-black-80)}button.outline.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:active,button.outline.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:disabled,button.outline.gray.disabled{border-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.link{border-color:transparent;background-color:transparent}button.link:hover{text-decoration:underline}button.link.primary{color:var(--gtr-color-base-primary-base)}button.link.primary:disabled,button.link.primary.disabled{color:var(--gtr-color-base-primary-40)}button.link.secondary{color:var(--gtr-color-base-secondary-base)}button.link.secondary:disabled,button.link.secondary.disabled{color:var(--gtr-color-base-secondary-40)}button.link.success{color:var(--gtr-color-base-success-base)}button.link.success:disabled,button.link.success.disabled{color:var(--gtr-color-base-success-40)}button.link.danger{color:var(--gtr-color-base-danger-base)}button.link.danger:disabled,button.link.danger.disabled{color:var(--gtr-color-base-danger-40)}button.link.gray{color:var(--gtr-color-base-black-80)}button.link.gray:disabled,button.link.gray.disabled{color:var(--gtr-color-base-black-40)}.button--loading:before{content:\" \";width:.75em;height:.75em;margin-right:.5em;display:inline-block;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:loading-spinner-animation 1s linear infinite}@keyframes loading-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
1233
1233
|
}], propDecorators: { type: [{
|
|
@@ -1244,21 +1244,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1244
1244
|
type: Input
|
|
1245
1245
|
}] } });
|
|
1246
1246
|
|
|
1247
|
-
class
|
|
1248
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1249
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1250
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1247
|
+
class GtrButtonModule {
|
|
1248
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1249
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonModule, declarations: [GtrButtonComponent], imports: [CommonModule, FormsModule], exports: [GtrButtonComponent] }); }
|
|
1250
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonModule, imports: [CommonModule, FormsModule] }); }
|
|
1251
1251
|
}
|
|
1252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrButtonModule, decorators: [{
|
|
1253
1253
|
type: NgModule,
|
|
1254
1254
|
args: [{
|
|
1255
|
-
declarations: [
|
|
1255
|
+
declarations: [GtrButtonComponent],
|
|
1256
1256
|
imports: [CommonModule, FormsModule],
|
|
1257
|
-
exports: [
|
|
1257
|
+
exports: [GtrButtonComponent],
|
|
1258
1258
|
}]
|
|
1259
1259
|
}] });
|
|
1260
1260
|
|
|
1261
|
-
class
|
|
1261
|
+
class GtrSwitchComponent {
|
|
1262
1262
|
constructor(ngControl) {
|
|
1263
1263
|
this.ngControl = ngControl;
|
|
1264
1264
|
/**
|
|
@@ -1291,21 +1291,27 @@ class SwitchComponent {
|
|
|
1291
1291
|
* @returns Custom event for latest checked state
|
|
1292
1292
|
*/
|
|
1293
1293
|
this.gtrChange = new EventEmitter();
|
|
1294
|
+
this.onChanged = (e) => {
|
|
1295
|
+
// console.log(e);
|
|
1296
|
+
};
|
|
1297
|
+
this.onTouched = (e) => {
|
|
1298
|
+
// console.log(e);
|
|
1299
|
+
};
|
|
1294
1300
|
if (this.ngControl != null) {
|
|
1295
1301
|
this.ngControl.valueAccessor = this;
|
|
1296
1302
|
}
|
|
1297
1303
|
}
|
|
1298
|
-
writeValue(
|
|
1299
|
-
|
|
1304
|
+
writeValue(value) {
|
|
1305
|
+
this.checked = value;
|
|
1300
1306
|
}
|
|
1301
1307
|
registerOnChange(fn) {
|
|
1302
|
-
|
|
1308
|
+
this.onChanged = fn;
|
|
1303
1309
|
}
|
|
1304
1310
|
registerOnTouched(fn) {
|
|
1305
|
-
|
|
1311
|
+
this.onTouched = fn;
|
|
1306
1312
|
}
|
|
1307
1313
|
setDisabledState(isDisabled) {
|
|
1308
|
-
|
|
1314
|
+
this.disabled = isDisabled;
|
|
1309
1315
|
}
|
|
1310
1316
|
/**
|
|
1311
1317
|
* Local method to handle keyboard events for switch button
|
|
@@ -1334,12 +1340,12 @@ class SwitchComponent {
|
|
|
1334
1340
|
this.gtrChange.emit(this.checked);
|
|
1335
1341
|
}
|
|
1336
1342
|
}
|
|
1337
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1338
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
1343
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSwitchComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1344
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrSwitchComponent, selector: "gtr-switch", inputs: { checked: "checked", switchId: "switchId", disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", label: "label" }, outputs: { gtrChange: "gtrChange" }, ngImport: i0, template: "<label [class]=\"'gtr-switch-wrapper'\"\n [id]=\"switchId\" [attr.data-testid]=\"switchId\"\n [class.readonly]=\"readonly\"\n role=\"switch\">\n <input [class]=\"'gtr-switch-input'\"\n [id]=\"switchId+'-input'\"\n [attr.data-testid]=\"switchId+'-input'\"\n [class.readonly]=\"readonly\"\n type=\"checkbox\"\n [checked]=\"this.checked\"\n data-toggle=\"toggle\"\n [disabled]=\"this.disabled\"\n [readonly]=\"this.readonly\"\n [attr.aria-label]=\"this.label\"\n [attr.aria-describedBy]=\"this.label\"\n [attr.aria-readonly]=\"this.readonly\"\n [attr.aria-disabled]=\"this.disabled\"\n [tabIndex]=\"this.tabIndex\"\n (keydown)=\"this.handleKeyDown($event)\"\n (change)=\"this.handleClick()\" />\n <span class=\"gtr-switch-button\"></span>\n <span class=\"gtr-switch-label\"\n [id]=\"switchId+'-label'\"\n [attr.data-testid]=\"switchId+'-label'\"\n *ngIf=\"label\">{{label}}</span>\n</label>\n", styles: [".gtr-switch-wrapper *,.gtr-switch-wrapper *:after,.gtr-switch-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-switch-wrapper{position:relative;display:flex;align-items:center;align-self:center;flex-direction:row;min-height:40px}.gtr-switch-wrapper.readonly{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-input{width:0px;height:0px;opacity:0}.gtr-switch-wrapper .gtr-switch-input:focus+.gtr-switch-button{border-color:var(--gtr-color-base-black-40)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button{opacity:.5;pointer-events:none;cursor:default;background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked~.gtr-switch-label{pointer-events:none;cursor:default;opacity:.5}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button{pointer-events:none;cursor:default;background:var(--gtr-color-base-black-20);border:solid 1px var(--gtr-color-base-black-10)}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button:before{background:var(--gtr-color-base-black-20)}.gtr-switch-wrapper .gtr-switch-input:disabled~.gtr-switch-label{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-button{position:relative;width:30px;height:18px;background:var(--gtr-color-font-inverse-primary);border:solid 1px var(--gtr-color-base-black-20);border-radius:34px;transition:.4s all ease-in-out;cursor:pointer}.gtr-switch-wrapper .gtr-switch-button:before{position:absolute;content:\"\";width:10px;height:10px;border-radius:50%;top:2.32px;left:3px;background:var(--gtr-color-base-black-20);transition:.4s all ease-in-out}.gtr-switch-wrapper .gtr-switch-label{display:flex;align-self:center;position:relative;cursor:pointer;font-size:15px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-left:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1339
1345
|
}
|
|
1340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSwitchComponent, decorators: [{
|
|
1341
1347
|
type: Component,
|
|
1342
|
-
args: [{ selector: 'gtr-switch', template: "<label [class]=\"'gtr-switch-wrapper'\"
|
|
1348
|
+
args: [{ selector: 'gtr-switch', template: "<label [class]=\"'gtr-switch-wrapper'\"\n [id]=\"switchId\" [attr.data-testid]=\"switchId\"\n [class.readonly]=\"readonly\"\n role=\"switch\">\n <input [class]=\"'gtr-switch-input'\"\n [id]=\"switchId+'-input'\"\n [attr.data-testid]=\"switchId+'-input'\"\n [class.readonly]=\"readonly\"\n type=\"checkbox\"\n [checked]=\"this.checked\"\n data-toggle=\"toggle\"\n [disabled]=\"this.disabled\"\n [readonly]=\"this.readonly\"\n [attr.aria-label]=\"this.label\"\n [attr.aria-describedBy]=\"this.label\"\n [attr.aria-readonly]=\"this.readonly\"\n [attr.aria-disabled]=\"this.disabled\"\n [tabIndex]=\"this.tabIndex\"\n (keydown)=\"this.handleKeyDown($event)\"\n (change)=\"this.handleClick()\" />\n <span class=\"gtr-switch-button\"></span>\n <span class=\"gtr-switch-label\"\n [id]=\"switchId+'-label'\"\n [attr.data-testid]=\"switchId+'-label'\"\n *ngIf=\"label\">{{label}}</span>\n</label>\n", styles: [".gtr-switch-wrapper *,.gtr-switch-wrapper *:after,.gtr-switch-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-switch-wrapper{position:relative;display:flex;align-items:center;align-self:center;flex-direction:row;min-height:40px}.gtr-switch-wrapper.readonly{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-input{width:0px;height:0px;opacity:0}.gtr-switch-wrapper .gtr-switch-input:focus+.gtr-switch-button{border-color:var(--gtr-color-base-black-40)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button{opacity:.5;pointer-events:none;cursor:default;background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked~.gtr-switch-label{pointer-events:none;cursor:default;opacity:.5}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button{pointer-events:none;cursor:default;background:var(--gtr-color-base-black-20);border:solid 1px var(--gtr-color-base-black-10)}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button:before{background:var(--gtr-color-base-black-20)}.gtr-switch-wrapper .gtr-switch-input:disabled~.gtr-switch-label{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-button{position:relative;width:30px;height:18px;background:var(--gtr-color-font-inverse-primary);border:solid 1px var(--gtr-color-base-black-20);border-radius:34px;transition:.4s all ease-in-out;cursor:pointer}.gtr-switch-wrapper .gtr-switch-button:before{position:absolute;content:\"\";width:10px;height:10px;border-radius:50%;top:2.32px;left:3px;background:var(--gtr-color-base-black-20);transition:.4s all ease-in-out}.gtr-switch-wrapper .gtr-switch-label{display:flex;align-self:center;position:relative;cursor:pointer;font-size:15px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-left:8px}\n"] }]
|
|
1343
1349
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
1344
1350
|
type: Optional
|
|
1345
1351
|
}, {
|
|
@@ -1360,21 +1366,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1360
1366
|
type: Output
|
|
1361
1367
|
}] } });
|
|
1362
1368
|
|
|
1363
|
-
class
|
|
1364
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1365
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1366
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1369
|
+
class GtrSwitchModule {
|
|
1370
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1371
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrSwitchModule, declarations: [GtrSwitchComponent], imports: [CommonModule], exports: [GtrSwitchComponent] }); }
|
|
1372
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSwitchModule, imports: [CommonModule] }); }
|
|
1367
1373
|
}
|
|
1368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSwitchModule, decorators: [{
|
|
1369
1375
|
type: NgModule,
|
|
1370
1376
|
args: [{
|
|
1371
1377
|
imports: [CommonModule],
|
|
1372
|
-
exports: [
|
|
1373
|
-
declarations: [
|
|
1378
|
+
exports: [GtrSwitchComponent],
|
|
1379
|
+
declarations: [GtrSwitchComponent],
|
|
1374
1380
|
}]
|
|
1375
1381
|
}] });
|
|
1376
1382
|
|
|
1377
|
-
class
|
|
1383
|
+
class GtrTooltipComponent {
|
|
1378
1384
|
/**
|
|
1379
1385
|
* The resize and scroll listeners for scroll and window resize event is fired to adjust tooltip position
|
|
1380
1386
|
*/
|
|
@@ -1458,10 +1464,10 @@ class TooltipComponent {
|
|
|
1458
1464
|
this.autoAdjustable && this.adjustPosition();
|
|
1459
1465
|
}, 100);
|
|
1460
1466
|
}
|
|
1461
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1462
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
1467
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTooltipComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1468
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTooltipComponent, selector: "gtr-tooltip", inputs: { tooltipId: "tooltipId", content: "content", position: "position", autoAdjustable: "autoAdjustable" }, host: { listeners: { "scroll": "handleResizeScroll()", "resize": "handleResizeScroll()" } }, viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true }], ngImport: i0, template: "<div class=\"gtr-tooltip-wrapper\" [id]=\"tooltipId\" [attr.data-testid]=\"tooltipId\">\n <ng-content></ng-content>\n <div #contentEl [class]=\"'gtr-tooltip-text ' + newPosition\" [id]=\"tooltipId+'-text'\"\n [attr.data-testid]=\"tooltipId+'-text'\" role=\"tooltip\" tabIndex=\"0\" [attr.aria-describedby]=\"'tooltip-'+tooltipId\"\n [innerHTML]=\"this.content\"></div>\n</div>\n", styles: [":host{position:relative;display:inline-block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent}.gtr-tooltip-text{visibility:hidden;position:absolute;color:var(--gtr-color-base-white-100);padding:4px 12px;white-space:normal;background:var(--gtr-color-base-black-80);box-shadow:var(--gtr-content-box-shadow-base);border-radius:var(--gtr-border-radius-6);z-index:1;max-width:100vh;width:max-content;text-align:start;font-size:15px;font-style:normal;font-weight:400;line-height:22px}.gtr-tooltip-text.top{bottom:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.top:after{content:\"\";position:absolute;top:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-top-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.bottom{top:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.bottom:after{content:\"\";position:absolute;bottom:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-bottom-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.left{top:50%;right:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.left:after{content:\"\";position:absolute;top:50%;left:100%;border:5px solid var(--gtr-background-transparent);border-left-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}.gtr-tooltip-text.right{top:50%;left:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.right:after{content:\"\";position:absolute;top:50%;right:100%;border:5px solid var(--gtr-background-transparent);border-right-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}:host(:hover) .gtr-tooltip-text{visibility:visible}\n"] }); }
|
|
1463
1469
|
}
|
|
1464
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTooltipComponent, decorators: [{
|
|
1465
1471
|
type: Component,
|
|
1466
1472
|
args: [{ selector: 'gtr-tooltip', template: "<div class=\"gtr-tooltip-wrapper\" [id]=\"tooltipId\" [attr.data-testid]=\"tooltipId\">\n <ng-content></ng-content>\n <div #contentEl [class]=\"'gtr-tooltip-text ' + newPosition\" [id]=\"tooltipId+'-text'\"\n [attr.data-testid]=\"tooltipId+'-text'\" role=\"tooltip\" tabIndex=\"0\" [attr.aria-describedby]=\"'tooltip-'+tooltipId\"\n [innerHTML]=\"this.content\"></div>\n</div>\n", styles: [":host{position:relative;display:inline-block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent}.gtr-tooltip-text{visibility:hidden;position:absolute;color:var(--gtr-color-base-white-100);padding:4px 12px;white-space:normal;background:var(--gtr-color-base-black-80);box-shadow:var(--gtr-content-box-shadow-base);border-radius:var(--gtr-border-radius-6);z-index:1;max-width:100vh;width:max-content;text-align:start;font-size:15px;font-style:normal;font-weight:400;line-height:22px}.gtr-tooltip-text.top{bottom:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.top:after{content:\"\";position:absolute;top:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-top-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.bottom{top:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.bottom:after{content:\"\";position:absolute;bottom:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-bottom-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.left{top:50%;right:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.left:after{content:\"\";position:absolute;top:50%;left:100%;border:5px solid var(--gtr-background-transparent);border-left-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}.gtr-tooltip-text.right{top:50%;left:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.right:after{content:\"\";position:absolute;top:50%;right:100%;border:5px solid var(--gtr-background-transparent);border-right-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}:host(:hover) .gtr-tooltip-text{visibility:visible}\n"] }]
|
|
1467
1473
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { contentEl: [{
|
|
@@ -1483,26 +1489,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1483
1489
|
type: Input
|
|
1484
1490
|
}] } });
|
|
1485
1491
|
|
|
1486
|
-
class
|
|
1487
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1488
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1489
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1492
|
+
class GtrTooltipModule {
|
|
1493
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1494
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrTooltipModule, declarations: [GtrTooltipComponent], imports: [CommonModule], exports: [GtrTooltipComponent] }); }
|
|
1495
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTooltipModule, imports: [CommonModule] }); }
|
|
1490
1496
|
}
|
|
1491
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTooltipModule, decorators: [{
|
|
1492
1498
|
type: NgModule,
|
|
1493
1499
|
args: [{
|
|
1494
1500
|
imports: [CommonModule],
|
|
1495
|
-
exports: [
|
|
1496
|
-
declarations: [
|
|
1501
|
+
exports: [GtrTooltipComponent],
|
|
1502
|
+
declarations: [GtrTooltipComponent],
|
|
1497
1503
|
}]
|
|
1498
1504
|
}] });
|
|
1499
1505
|
|
|
1500
|
-
const
|
|
1506
|
+
const GTR_INPUT_CONSTANTS = {
|
|
1501
1507
|
email_regex: /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
|
|
1502
1508
|
password_regex: /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@$!%*?&])(?=.*[a-zA-Z]).{8,}$/,
|
|
1503
1509
|
number_regex: /^[-+]?[0-9]+\.[0-9]+$/,
|
|
1504
1510
|
};
|
|
1505
|
-
const
|
|
1511
|
+
const GTR_INPUT_ERROR_MESSAGES = {
|
|
1506
1512
|
invalid_number: 'Invalid number format',
|
|
1507
1513
|
invalid_input_type: 'Invalid input type',
|
|
1508
1514
|
invalid_email: 'Invalid email address',
|
|
@@ -1510,20 +1516,20 @@ const ERROR_MESSAGES = {
|
|
|
1510
1516
|
password_pattern: 'Password should contain at least one (1) of each: UPPERCASE LETTER, lowercase letter, numbers and special characters.',
|
|
1511
1517
|
input_not_allowed: 'Input type not allowed',
|
|
1512
1518
|
};
|
|
1513
|
-
var
|
|
1514
|
-
(function (
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
})(
|
|
1520
|
-
var
|
|
1521
|
-
(function (
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
})(
|
|
1519
|
+
var GtrInputType;
|
|
1520
|
+
(function (GtrInputType) {
|
|
1521
|
+
GtrInputType["TEXT"] = "text";
|
|
1522
|
+
GtrInputType["NUMBER"] = "number";
|
|
1523
|
+
GtrInputType["PASSWORD"] = "password";
|
|
1524
|
+
GtrInputType["EMAIL"] = "email";
|
|
1525
|
+
})(GtrInputType || (GtrInputType = {}));
|
|
1526
|
+
var GtrInputState;
|
|
1527
|
+
(function (GtrInputState) {
|
|
1528
|
+
GtrInputState["VALID"] = "valid";
|
|
1529
|
+
GtrInputState["INVALID"] = "invalid";
|
|
1530
|
+
})(GtrInputState || (GtrInputState = {}));
|
|
1525
1531
|
|
|
1526
|
-
class
|
|
1532
|
+
class GtrSkeletonComponent {
|
|
1527
1533
|
constructor(host) {
|
|
1528
1534
|
this.host = host;
|
|
1529
1535
|
}
|
|
@@ -1535,17 +1541,17 @@ class SkeletonComponent {
|
|
|
1535
1541
|
host.style.setProperty('--skeleton-rect-width', this.width ?? '100%');
|
|
1536
1542
|
host.style.setProperty('--skeleton-rect-height', this.height ?? '20px');
|
|
1537
1543
|
}
|
|
1538
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1539
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
1544
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSkeletonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1545
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrSkeletonComponent, selector: "gtr-skeleton", host: { classAttribute: "pulse" }, ngImport: i0, template: ``, isInline: true, styles: [":host{display:block;width:var(--skeleton-rect-width);height:var(--skeleton-rect-height);background:rgb(239,241,246) no-repeat}.skeleton-margin-bottom{margin-bottom:12px}.sk-prospect-created-date{margin-bottom:12px!important;margin:0 auto}.sk-prospect-created-date:last-child{margin-bottom:0!important}.skeleton-margin-bottom:last-child{margin-bottom:0}.sk-float-right{float:right}.sk-float-right-mr-10{float:right;margin-right:10px}.sk-mr-10{margin-right:10px}.sk-float-left{float:left}.sk-float-none{margin:0 auto}.pulse{animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}@keyframes pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}\n"] }); }
|
|
1540
1546
|
}
|
|
1541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSkeletonComponent, decorators: [{
|
|
1542
1548
|
type: Component,
|
|
1543
|
-
args: [{ selector: '
|
|
1549
|
+
args: [{ selector: 'gtr-skeleton', host: {
|
|
1544
1550
|
class: 'pulse',
|
|
1545
1551
|
}, template: ``, styles: [":host{display:block;width:var(--skeleton-rect-width);height:var(--skeleton-rect-height);background:rgb(239,241,246) no-repeat}.skeleton-margin-bottom{margin-bottom:12px}.sk-prospect-created-date{margin-bottom:12px!important;margin:0 auto}.sk-prospect-created-date:last-child{margin-bottom:0!important}.skeleton-margin-bottom:last-child{margin-bottom:0}.sk-float-right{float:right}.sk-float-right-mr-10{float:right;margin-right:10px}.sk-mr-10{margin-right:10px}.sk-float-left{float:left}.sk-float-none{margin:0 auto}.pulse{animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}@keyframes pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}\n"] }]
|
|
1546
1552
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
1547
1553
|
|
|
1548
|
-
class
|
|
1554
|
+
class GtrSkeletonDirective {
|
|
1549
1555
|
constructor(tpl, vcr) {
|
|
1550
1556
|
this.tpl = tpl;
|
|
1551
1557
|
this.vcr = vcr;
|
|
@@ -1557,7 +1563,7 @@ class SkeletonDirective {
|
|
|
1557
1563
|
this.vcr.clear();
|
|
1558
1564
|
if (changes['isLoading'].currentValue) {
|
|
1559
1565
|
Array.from({ length: this.size }).forEach(() => {
|
|
1560
|
-
const ref = this.vcr.createComponent(
|
|
1566
|
+
const ref = this.vcr.createComponent(GtrSkeletonComponent);
|
|
1561
1567
|
Object.assign(ref.instance, {
|
|
1562
1568
|
width: this.width === 'rand' ? `${Math.random}%` : this.width,
|
|
1563
1569
|
height: this.height,
|
|
@@ -1570,10 +1576,10 @@ class SkeletonDirective {
|
|
|
1570
1576
|
}
|
|
1571
1577
|
}
|
|
1572
1578
|
}
|
|
1573
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1574
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
1579
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSkeletonDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1580
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrSkeletonDirective, isStandalone: true, selector: "[skeleton]", inputs: { isLoading: ["skeleton", "isLoading"], size: ["skeletonRepeat", "size"], width: ["skeletonWidth", "width"], height: ["skeletonHeight", "height"], className: ["skeletonClassName", "className"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1575
1581
|
}
|
|
1576
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSkeletonDirective, decorators: [{
|
|
1577
1583
|
type: Directive,
|
|
1578
1584
|
args: [{ selector: '[skeleton]', standalone: true }]
|
|
1579
1585
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { isLoading: [{
|
|
@@ -1593,7 +1599,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1593
1599
|
args: ['skeletonClassName']
|
|
1594
1600
|
}] } });
|
|
1595
1601
|
|
|
1596
|
-
class
|
|
1602
|
+
class GtrInputComponent {
|
|
1597
1603
|
constructor(ngControl) {
|
|
1598
1604
|
this.ngControl = ngControl;
|
|
1599
1605
|
this.onChanged = (e) => {
|
|
@@ -1703,10 +1709,10 @@ class InputComponent {
|
|
|
1703
1709
|
* The input type validator
|
|
1704
1710
|
*/
|
|
1705
1711
|
this.inputFields = [
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1712
|
+
GtrInputType.TEXT,
|
|
1713
|
+
GtrInputType.NUMBER,
|
|
1714
|
+
GtrInputType.PASSWORD,
|
|
1715
|
+
GtrInputType.EMAIL,
|
|
1710
1716
|
];
|
|
1711
1717
|
/**
|
|
1712
1718
|
* The input data to be send when input value changes
|
|
@@ -1754,7 +1760,7 @@ class InputComponent {
|
|
|
1754
1760
|
this.inputId = `grt-radio-${Math.random().toString(36).substring(2, 10)}`;
|
|
1755
1761
|
return;
|
|
1756
1762
|
}
|
|
1757
|
-
this.handleError.emit(new Error(
|
|
1763
|
+
this.handleError.emit(new Error(GTR_INPUT_ERROR_MESSAGES.input_not_allowed));
|
|
1758
1764
|
}
|
|
1759
1765
|
/**
|
|
1760
1766
|
* The component function to handle input change
|
|
@@ -1775,12 +1781,12 @@ class InputComponent {
|
|
|
1775
1781
|
}
|
|
1776
1782
|
this.errorMsg = this.validateInput();
|
|
1777
1783
|
this.hasError = !!this.errorMsg;
|
|
1778
|
-
this.data.inputstate =
|
|
1784
|
+
this.data.inputstate = GtrInputState.VALID;
|
|
1779
1785
|
this.data.invalid = false;
|
|
1780
1786
|
this.data.value = inputValue;
|
|
1781
1787
|
if (this.defaultValidation) {
|
|
1782
1788
|
if (this.hasError) {
|
|
1783
|
-
this.data.inputstate =
|
|
1789
|
+
this.data.inputstate = GtrInputState.INVALID;
|
|
1784
1790
|
this.data.invalid = true;
|
|
1785
1791
|
}
|
|
1786
1792
|
}
|
|
@@ -1826,48 +1832,48 @@ class InputComponent {
|
|
|
1826
1832
|
}
|
|
1827
1833
|
if (this.isTouched || this.value) {
|
|
1828
1834
|
switch (this.inputType) {
|
|
1829
|
-
case
|
|
1835
|
+
case GtrInputType.TEXT: {
|
|
1830
1836
|
if (this.value === '') {
|
|
1831
|
-
return
|
|
1837
|
+
return GTR_INPUT_ERROR_MESSAGES.empty_field;
|
|
1832
1838
|
}
|
|
1833
1839
|
break;
|
|
1834
1840
|
}
|
|
1835
|
-
case
|
|
1836
|
-
const passwordRegex =
|
|
1841
|
+
case GtrInputType.PASSWORD: {
|
|
1842
|
+
const passwordRegex = GTR_INPUT_CONSTANTS.password_regex;
|
|
1837
1843
|
if (this.value === '') {
|
|
1838
|
-
return
|
|
1844
|
+
return GTR_INPUT_ERROR_MESSAGES.empty_field;
|
|
1839
1845
|
}
|
|
1840
1846
|
if (!passwordRegex.test(this.value.toString())) {
|
|
1841
|
-
return
|
|
1847
|
+
return GTR_INPUT_ERROR_MESSAGES.password_pattern;
|
|
1842
1848
|
}
|
|
1843
1849
|
break;
|
|
1844
1850
|
}
|
|
1845
|
-
case
|
|
1846
|
-
const emailRegex =
|
|
1851
|
+
case GtrInputType.EMAIL: {
|
|
1852
|
+
const emailRegex = GTR_INPUT_CONSTANTS.email_regex;
|
|
1847
1853
|
if (this.value === '') {
|
|
1848
|
-
return
|
|
1854
|
+
return GTR_INPUT_ERROR_MESSAGES.empty_field;
|
|
1849
1855
|
}
|
|
1850
1856
|
if (!emailRegex.test(this.value.toString())) {
|
|
1851
|
-
return
|
|
1857
|
+
return GTR_INPUT_ERROR_MESSAGES.invalid_email;
|
|
1852
1858
|
}
|
|
1853
1859
|
break;
|
|
1854
1860
|
}
|
|
1855
|
-
case
|
|
1861
|
+
case GtrInputType.NUMBER: {
|
|
1856
1862
|
if (this.value === null ||
|
|
1857
1863
|
this.value === undefined ||
|
|
1858
1864
|
this.value === '' ||
|
|
1859
1865
|
isNaN(Number(this.value))) {
|
|
1860
|
-
return
|
|
1866
|
+
return GTR_INPUT_ERROR_MESSAGES.invalid_number;
|
|
1861
1867
|
}
|
|
1862
1868
|
break;
|
|
1863
1869
|
}
|
|
1864
1870
|
default: {
|
|
1865
|
-
return
|
|
1871
|
+
return GTR_INPUT_ERROR_MESSAGES.invalid_input_type;
|
|
1866
1872
|
}
|
|
1867
1873
|
}
|
|
1868
1874
|
if (this.isNumber) {
|
|
1869
1875
|
if (this.value === null || this.value === undefined || this.value === '') {
|
|
1870
|
-
return
|
|
1876
|
+
return GTR_INPUT_ERROR_MESSAGES.invalid_number;
|
|
1871
1877
|
}
|
|
1872
1878
|
}
|
|
1873
1879
|
}
|
|
@@ -1892,24 +1898,12 @@ class InputComponent {
|
|
|
1892
1898
|
? this.hasError || (!this.defaultValidation ? !this.isValid : false)
|
|
1893
1899
|
: false;
|
|
1894
1900
|
}
|
|
1895
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1896
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
1897
|
-
{
|
|
1898
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1899
|
-
useExisting: forwardRef((() => InputComponent)),
|
|
1900
|
-
multi: true,
|
|
1901
|
-
},
|
|
1902
|
-
], ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <div select=\"[slot='custom-error']\"></div>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:var(--gtr-input-readonly-height);padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: SkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: IconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
1901
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1902
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputComponent, selector: "gtr-input", inputs: { inputWrapperId: "inputWrapperId", loading: "loading", type: "type", value: "value", placeholder: "placeholder", inputIcon: "inputIcon", iconSize: "iconSize", iconColor: "iconColor", iconPosition: "iconPosition", iconFontWeight: "iconFontWeight", inputLabel: "inputLabel", disabled: "disabled", validateLabel: "validateLabel", isNumber: "isNumber", readonly: "readonly", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation", required: "required", isValid: "isValid", inputId: "inputId" }, outputs: { inputChanged: "inputChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <div select=\"[slot='custom-error']\"></div>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:var(--gtr-input-readonly-height);padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
1903
1903
|
}
|
|
1904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, decorators: [{
|
|
1905
1905
|
type: Component,
|
|
1906
|
-
args: [{ selector: 'gtr-input',
|
|
1907
|
-
{
|
|
1908
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1909
|
-
useExisting: forwardRef((() => InputComponent)),
|
|
1910
|
-
multi: true,
|
|
1911
|
-
},
|
|
1912
|
-
], template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <div select=\"[slot='custom-error']\"></div>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:var(--gtr-input-readonly-height);padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"] }]
|
|
1906
|
+
args: [{ selector: 'gtr-input', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <div select=\"[slot='custom-error']\"></div>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:var(--gtr-input-readonly-height);padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"] }]
|
|
1913
1907
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
1914
1908
|
type: Optional
|
|
1915
1909
|
}, {
|
|
@@ -1960,31 +1954,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1960
1954
|
type: Input
|
|
1961
1955
|
}] } });
|
|
1962
1956
|
|
|
1963
|
-
class
|
|
1964
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1965
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1966
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1957
|
+
class GtrInputModule {
|
|
1958
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1959
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrInputModule, declarations: [GtrInputComponent], imports: [CommonModule, GtrSkeletonDirective, GtrIconModule], exports: [GtrInputComponent] }); }
|
|
1960
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputModule, providers: [GtrSkeletonDirective], imports: [CommonModule, GtrIconModule] }); }
|
|
1967
1961
|
}
|
|
1968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputModule, decorators: [{
|
|
1969
1963
|
type: NgModule,
|
|
1970
1964
|
args: [{
|
|
1971
|
-
imports: [CommonModule,
|
|
1972
|
-
exports: [
|
|
1973
|
-
declarations: [
|
|
1974
|
-
providers: [
|
|
1965
|
+
imports: [CommonModule, GtrSkeletonDirective, GtrIconModule],
|
|
1966
|
+
exports: [GtrInputComponent],
|
|
1967
|
+
declarations: [GtrInputComponent],
|
|
1968
|
+
providers: [GtrSkeletonDirective],
|
|
1975
1969
|
}]
|
|
1976
1970
|
}] });
|
|
1977
1971
|
|
|
1978
|
-
const
|
|
1972
|
+
const GTR_TEXTTAREA_ERROR_MESSAGES = {
|
|
1979
1973
|
empty_field: 'Field cannot be empty.',
|
|
1980
1974
|
};
|
|
1981
|
-
var
|
|
1982
|
-
(function (
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
})(
|
|
1975
|
+
var GtrTextareaState;
|
|
1976
|
+
(function (GtrTextareaState) {
|
|
1977
|
+
GtrTextareaState["VALID"] = "valid";
|
|
1978
|
+
GtrTextareaState["INVALID"] = "invalid";
|
|
1979
|
+
})(GtrTextareaState || (GtrTextareaState = {}));
|
|
1986
1980
|
|
|
1987
|
-
class
|
|
1981
|
+
class GtrTextareaComponent {
|
|
1988
1982
|
constructor(ngControl) {
|
|
1989
1983
|
this.ngControl = ngControl;
|
|
1990
1984
|
this.onChanged = (e) => {
|
|
@@ -2087,12 +2081,12 @@ class TextareaComponent {
|
|
|
2087
2081
|
}
|
|
2088
2082
|
this.errorMsg = this.validatetextarea();
|
|
2089
2083
|
this.hasError = !!this.errorMsg;
|
|
2090
|
-
this.data.textareastate =
|
|
2084
|
+
this.data.textareastate = GtrTextareaState.VALID;
|
|
2091
2085
|
this.data.invalid = false;
|
|
2092
2086
|
this.data.value = textareaValue;
|
|
2093
2087
|
if (this.defaultValidation) {
|
|
2094
2088
|
if (this.hasError) {
|
|
2095
|
-
this.data.textareastate =
|
|
2089
|
+
this.data.textareastate = GtrTextareaState.INVALID;
|
|
2096
2090
|
this.data.invalid = true;
|
|
2097
2091
|
}
|
|
2098
2092
|
}
|
|
@@ -2145,7 +2139,7 @@ class TextareaComponent {
|
|
|
2145
2139
|
}
|
|
2146
2140
|
if (this.isTouched || this.value) {
|
|
2147
2141
|
if (this.value.trim() === '') {
|
|
2148
|
-
return
|
|
2142
|
+
return GTR_TEXTTAREA_ERROR_MESSAGES.empty_field;
|
|
2149
2143
|
}
|
|
2150
2144
|
}
|
|
2151
2145
|
return null;
|
|
@@ -2183,10 +2177,10 @@ class TextareaComponent {
|
|
|
2183
2177
|
isonlyview: this.isOnlyView,
|
|
2184
2178
|
};
|
|
2185
2179
|
}
|
|
2186
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2187
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
2180
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2181
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTextareaComponent, selector: "gtr-textarea", inputs: { value: "value", placeholder: "placeholder", loading: "loading", textareaLabel: "textareaLabel", disabled: "disabled", textAreaWrapperId: "textAreaWrapperId", readonly: "readonly", isValid: "isValid", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation" }, outputs: { textareaChanged: "textareaChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <slot name=\"custom-error\"></slot>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100: var(--default) }textarea[readonly=readonly],textarea[readonly]{height:var(--gtr-textarea-readonly-height)!important}textarea{resize:none}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:100%}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}label{position:relative;left:auto;top:auto}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-textarea{height:var(--gtr-textarea-height);border:1px solid var(--gtr-color-base-black-10);width:100%;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6);display:flex;height:85px;padding:8px 10px;align-items:flex-start;gap:10px;flex-shrink:0}.gtr-form-element-textarea::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px;font-style:normal;font-weight:400}.gtr-form-element-textarea:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-textarea:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-textarea.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea.isonlyview{border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:23px;pointer-events:none;height:auto}.gtr-form-element-label.isonlyview{line-height:27px;margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-textarea-icon{position:absolute;margin:-30px 0 0 7px}.gtr-form-element-textarea.gtr-textarea-width-icon{padding-left:var(--gtr-padding-32)}.gtr-form-element-textarea.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
2188
2182
|
}
|
|
2189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaComponent, decorators: [{
|
|
2190
2184
|
type: Component,
|
|
2191
2185
|
args: [{ selector: 'gtr-textarea', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <slot name=\"custom-error\"></slot>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100: var(--default) }textarea[readonly=readonly],textarea[readonly]{height:var(--gtr-textarea-readonly-height)!important}textarea{resize:none}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:100%}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}label{position:relative;left:auto;top:auto}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-textarea{height:var(--gtr-textarea-height);border:1px solid var(--gtr-color-base-black-10);width:100%;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6);display:flex;height:85px;padding:8px 10px;align-items:flex-start;gap:10px;flex-shrink:0}.gtr-form-element-textarea::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px;font-style:normal;font-weight:400}.gtr-form-element-textarea:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-textarea:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-textarea.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea.isonlyview{border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:23px;pointer-events:none;height:auto}.gtr-form-element-label.isonlyview{line-height:27px;margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-textarea-icon{position:absolute;margin:-30px 0 0 7px}.gtr-form-element-textarea.gtr-textarea-width-icon{padding-left:var(--gtr-padding-32)}.gtr-form-element-textarea.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}\n"] }]
|
|
2192
2186
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
@@ -2219,22 +2213,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2219
2213
|
type: Output
|
|
2220
2214
|
}] } });
|
|
2221
2215
|
|
|
2222
|
-
class
|
|
2223
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2224
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2225
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2216
|
+
class GtrTextareaModule {
|
|
2217
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2218
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaModule, declarations: [GtrTextareaComponent], imports: [CommonModule, GtrSkeletonDirective, GtrIconModule], exports: [GtrTextareaComponent] }); }
|
|
2219
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaModule, providers: [GtrSkeletonDirective], imports: [CommonModule, GtrIconModule] }); }
|
|
2226
2220
|
}
|
|
2227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaModule, decorators: [{
|
|
2228
2222
|
type: NgModule,
|
|
2229
2223
|
args: [{
|
|
2230
|
-
imports: [CommonModule,
|
|
2231
|
-
exports: [
|
|
2232
|
-
declarations: [
|
|
2233
|
-
providers: [
|
|
2224
|
+
imports: [CommonModule, GtrSkeletonDirective, GtrIconModule],
|
|
2225
|
+
exports: [GtrTextareaComponent],
|
|
2226
|
+
declarations: [GtrTextareaComponent],
|
|
2227
|
+
providers: [GtrSkeletonDirective],
|
|
2234
2228
|
}]
|
|
2235
2229
|
}] });
|
|
2236
2230
|
|
|
2237
|
-
class
|
|
2231
|
+
class GtrPopoverComponent {
|
|
2238
2232
|
onResize(event) {
|
|
2239
2233
|
this.adjustPopoverPosition();
|
|
2240
2234
|
}
|
|
@@ -2333,10 +2327,10 @@ class PopoverComponent {
|
|
|
2333
2327
|
}
|
|
2334
2328
|
}
|
|
2335
2329
|
}
|
|
2336
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2337
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
2330
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPopoverComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2331
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrPopoverComponent, selector: "gtr-popover", inputs: { position: "position", isOpened: "isOpened", showPositionIndicator: "showPositionIndicator", moveX: "moveX", moveY: "moveY", padding: "padding", marginTop: "marginTop", marginBottom: "marginBottom", marginLeft: "marginLeft", marginRight: "marginRight", closeOnClickOutside: "closeOnClickOutside", id: "id", testId: "testId" }, outputs: { stateChanged: "stateChanged" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "popoverEl", first: true, predicate: ["popoverEl"], descendants: true }, { propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true }], ngImport: i0, template: "<div\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n #popoverEl\n class=\"gtr-popover\"\n (click)=\"togglePopover()\"\n role=\"popover\"\n [attr.aria-describedby]=\"'gtr-popover'\"\n [ngStyle]=\"{\n 'margin-top.px': marginTop,\n 'margin-bottom.px': marginBottom,\n 'margin-left.px': marginLeft,\n 'margin-right.px': marginRight,\n }\"\n>\n <ng-content select=\"[slot='gtr-popover-trigger']\"></ng-content>\n <div\n #contentEl\n [hidden]=\"!isVisible\"\n [class.gtr-content-visible]=\"isVisible\"\n [class]=\"\n 'gtr-content' +\n ' ' +\n adjustedPosition +\n ' ' +\n ' ' +\n (showPositionIndicator ? 'gtr-indicator' : '')\n \"\n [tabIndex]=\"0\"\n (click)=\"popoverContentClicked($event)\"\n [style.padding.px]=\"padding\"\n [ngStyle]=\"{ transform: 'translate(' + moveX + '%, ' + moveY + '%)' }\"\n >\n <ng-container>\n <ng-content select=\"[slot='gtr-popover-content']\"></ng-content>\n </ng-container>\n </div>\n</div>\n", styles: [":host{position:relative;display:inline-block!important;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;padding:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent;--background-color: var(--gtr-color-base-white-100);--text-color: var(--gtr-color-base-black-60)}.gtr-popover{position:relative;width:auto;display:inline-block}.gtr-content{position:absolute;z-index:1;background-color:var(--background-color)!important;color:var(--text-color);padding:16px 18px!important;box-shadow:var(--gtr-content-box-shadow-base);white-space:normal;max-width:300px;width:max-content;min-width:200px;overflow-x:hidden;color:#000}.gtr-content.gtr-indicator{overflow-x:visible!important}.gtr-content::-webkit-scrollbar,::-webkit-scrollbar-thumb{background:var(--gtr-background-transparent)}::-webkit-scrollbar{width:0px;background:var(var(--gtr-color-base-black-40))}.gtr-content.top{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.top:before{content:\"\";position:absolute;top:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-top-color:var(--background-color);transform:translate(-50%)}.gtr-content.right{top:50%;left:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.right:before{content:\"\";position:absolute;top:50%;right:100%;border:7px solid var(--gtr-background-transparent);border-right-color:var(--background-color);transform:translateY(-50%)}.gtr-content.bottom{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.bottom:before{content:\"\";position:absolute;bottom:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-bottom-color:var(--background-color);transform:translate(-50%)}.gtr-content.left{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.left:before{content:\"\";position:absolute;top:50%;left:100%;border:7px solid var(--gtr-background-transparent);border-left-color:var(--background-color);transform:translateY(-50%)}.gtr-content-visible{display:inline-block!important;background:#ffffff!important}@media screen and (max-width: 860px){.gtr-content{width:max-content;max-width:300px}}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
2338
2332
|
}
|
|
2339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPopoverComponent, decorators: [{
|
|
2340
2334
|
type: Component,
|
|
2341
2335
|
args: [{ selector: 'gtr-popover', template: "<div\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n #popoverEl\n class=\"gtr-popover\"\n (click)=\"togglePopover()\"\n role=\"popover\"\n [attr.aria-describedby]=\"'gtr-popover'\"\n [ngStyle]=\"{\n 'margin-top.px': marginTop,\n 'margin-bottom.px': marginBottom,\n 'margin-left.px': marginLeft,\n 'margin-right.px': marginRight,\n }\"\n>\n <ng-content select=\"[slot='gtr-popover-trigger']\"></ng-content>\n <div\n #contentEl\n [hidden]=\"!isVisible\"\n [class.gtr-content-visible]=\"isVisible\"\n [class]=\"\n 'gtr-content' +\n ' ' +\n adjustedPosition +\n ' ' +\n ' ' +\n (showPositionIndicator ? 'gtr-indicator' : '')\n \"\n [tabIndex]=\"0\"\n (click)=\"popoverContentClicked($event)\"\n [style.padding.px]=\"padding\"\n [ngStyle]=\"{ transform: 'translate(' + moveX + '%, ' + moveY + '%)' }\"\n >\n <ng-container>\n <ng-content select=\"[slot='gtr-popover-content']\"></ng-content>\n </ng-container>\n </div>\n</div>\n", styles: [":host{position:relative;display:inline-block!important;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;padding:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent;--background-color: var(--gtr-color-base-white-100);--text-color: var(--gtr-color-base-black-60)}.gtr-popover{position:relative;width:auto;display:inline-block}.gtr-content{position:absolute;z-index:1;background-color:var(--background-color)!important;color:var(--text-color);padding:16px 18px!important;box-shadow:var(--gtr-content-box-shadow-base);white-space:normal;max-width:300px;width:max-content;min-width:200px;overflow-x:hidden;color:#000}.gtr-content.gtr-indicator{overflow-x:visible!important}.gtr-content::-webkit-scrollbar,::-webkit-scrollbar-thumb{background:var(--gtr-background-transparent)}::-webkit-scrollbar{width:0px;background:var(var(--gtr-color-base-black-40))}.gtr-content.top{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.top:before{content:\"\";position:absolute;top:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-top-color:var(--background-color);transform:translate(-50%)}.gtr-content.right{top:50%;left:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.right:before{content:\"\";position:absolute;top:50%;right:100%;border:7px solid var(--gtr-background-transparent);border-right-color:var(--background-color);transform:translateY(-50%)}.gtr-content.bottom{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.bottom:before{content:\"\";position:absolute;bottom:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-bottom-color:var(--background-color);transform:translate(-50%)}.gtr-content.left{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.left:before{content:\"\";position:absolute;top:50%;left:100%;border:7px solid var(--gtr-background-transparent);border-left-color:var(--background-color);transform:translateY(-50%)}.gtr-content-visible{display:inline-block!important;background:#ffffff!important}@media screen and (max-width: 860px){.gtr-content{width:max-content;max-width:300px}}\n"] }]
|
|
2342
2336
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { position: [{
|
|
@@ -2378,21 +2372,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2378
2372
|
args: ['window:resize', ['$event']]
|
|
2379
2373
|
}] } });
|
|
2380
2374
|
|
|
2381
|
-
class
|
|
2382
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2383
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2384
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2375
|
+
class GtrPopoverModule {
|
|
2376
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2377
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrPopoverModule, declarations: [GtrPopoverComponent], imports: [CommonModule], exports: [GtrPopoverComponent] }); }
|
|
2378
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPopoverModule, imports: [CommonModule] }); }
|
|
2385
2379
|
}
|
|
2386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPopoverModule, decorators: [{
|
|
2387
2381
|
type: NgModule,
|
|
2388
2382
|
args: [{
|
|
2389
|
-
declarations: [
|
|
2390
|
-
exports: [
|
|
2383
|
+
declarations: [GtrPopoverComponent],
|
|
2384
|
+
exports: [GtrPopoverComponent],
|
|
2391
2385
|
imports: [CommonModule],
|
|
2392
2386
|
}]
|
|
2393
2387
|
}] });
|
|
2394
2388
|
|
|
2395
|
-
class
|
|
2389
|
+
class GtrRadioButtonComponent {
|
|
2396
2390
|
constructor(ngControl, radioEl) {
|
|
2397
2391
|
this.ngControl = ngControl;
|
|
2398
2392
|
this.radioEl = radioEl;
|
|
@@ -2542,10 +2536,10 @@ class RadioButtonComponent {
|
|
|
2542
2536
|
throw new Error('[gtr-radio-button] should contain only one checked value.');
|
|
2543
2537
|
}
|
|
2544
2538
|
}
|
|
2545
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2546
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
2539
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrRadioButtonComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2540
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrRadioButtonComponent, selector: "gtr-radio-button", inputs: { value: "value", disabled: "disabled", checked: "checked", label: "label", tabIndexNav: "tabIndexNav", radioId: "radioId", groupName: "groupName" }, outputs: { valueChanged: "valueChanged" }, host: { listeners: { "document:keyup": "handleKeyDown($event)" } }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper\" [id]=\"radioId+'-wrapper'\" [attr.data-testid]=\"radioId+'-wrapper'\" [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\">\n <div class=\"gtr-form-element-radio-wrapper gtr-relative-element\">\n <input type=\"radio\" [name]=\"groupName\" class=\"gtr-form-element-radio\" role=\"radio\" [id]=\"this.radioId\" [attr.data-testid]=\"this.radioId\"\n [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\" value=\"{{value}}\" [checked]=\"this.checked\"\n [disabled]=\"this.disabled\" (change)=\"this.handleChange($event)\" (keydown)=\"detectEnter($event)\"\n [attr.aria-checked]=\"this.checked ? 'true' : 'false'\" [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" />\n <span class=\"gtr-radio-stats\"> </span>\n <label [id]=\"this.radioId+'-label'\" [attr.data-testid]=\"this.radioId+'-label'\" [class]=\"'gtr-radio-label'+ this.disabled ? ' disabled' : ''\" [for]=\"this.radioId\"\n (click)=\"this.handleClick()\" role=\"radio\" [attr.aria-checked]=\"this.checked ? 'true' : 'false'\">{{this.label}}</label>\n </div>\n <ng-content select=\"[slot='grt-info']\"></ng-content>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-opacity-05: .5;--gtr-opacity-07: .7}.gtr-relative-element{position:relative}.gtr-form-element-wrapper{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:10px;margin-bottom:5px}.gtr-form-element-wrapper:focus-visible,.gtr-form-element-wrapper :focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:1;cursor:pointer;margin:0;padding:0}.gtr-form-element-radio:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio-wrapper{display:flex;align-items:center;max-width:-moz-fit-content;max-width:fit-content}.gtr-form-element-radio-wrapper:focus{outline:none!important;background:var(--primary-light)}.gtr-radio-label{margin-left:8px;font-style:normal;font-weight:400;font-size:15px;line-height:22px;position:relative;top:1px}.gtr-radio-label:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio+.gtr-radio-stats{width:16px;height:16px;display:inline-block;margin-top:1px;border-width:1px;border-radius:100px;border-style:solid}.gtr-form-element-radio:not(:checked)+.gtr-radio-stats{border-color:var(--gtr-color-base-black-20);background:var(--gtr-color-base-white-100)}.gtr-form-element-radio:not(:checked):disabled+.gtr-radio-stats{background:linear-gradient(0deg,var(--gtr-color-base-white-80),var(--gtr-color-base-white-80)),var(--gtr-color-base-black-80);border-color:var(--gtr-color-base-white-80)}.gtr-form-element-radio:checked+.gtr-radio-stats{border-color:var(--gtr-color-base-primary-100);background:var(--gtr-color-base-primary-100);position:relative}.gtr-form-element-radio:checked+.gtr-radio-stats:after{content:\"\";display:block;height:8px;width:8px;position:absolute;background:var(--gtr-color-base-white-100);border-radius:calc(var(--gtr-border-radius-6) * 12);top:3px;left:3px}.gtr-form-element-radio:checked:disabled+.gtr-radio-stats,.gtr-form-element-radio:checked:disabled+.gtr-radio-stats+.gtr-radio-label{opacity:var(--gtr-opacity-05)}.gtr-form-element-radio:disabled{cursor:default}.gtr-radio-label.disabled{opacity:var(--gtr-opacity-07)}\n"] }); }
|
|
2547
2541
|
}
|
|
2548
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrRadioButtonComponent, decorators: [{
|
|
2549
2543
|
type: Component,
|
|
2550
2544
|
args: [{ selector: 'gtr-radio-button', template: "<div class=\"gtr-form-element-wrapper\" [id]=\"radioId+'-wrapper'\" [attr.data-testid]=\"radioId+'-wrapper'\" [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\">\n <div class=\"gtr-form-element-radio-wrapper gtr-relative-element\">\n <input type=\"radio\" [name]=\"groupName\" class=\"gtr-form-element-radio\" role=\"radio\" [id]=\"this.radioId\" [attr.data-testid]=\"this.radioId\"\n [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\" value=\"{{value}}\" [checked]=\"this.checked\"\n [disabled]=\"this.disabled\" (change)=\"this.handleChange($event)\" (keydown)=\"detectEnter($event)\"\n [attr.aria-checked]=\"this.checked ? 'true' : 'false'\" [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" />\n <span class=\"gtr-radio-stats\"> </span>\n <label [id]=\"this.radioId+'-label'\" [attr.data-testid]=\"this.radioId+'-label'\" [class]=\"'gtr-radio-label'+ this.disabled ? ' disabled' : ''\" [for]=\"this.radioId\"\n (click)=\"this.handleClick()\" role=\"radio\" [attr.aria-checked]=\"this.checked ? 'true' : 'false'\">{{this.label}}</label>\n </div>\n <ng-content select=\"[slot='grt-info']\"></ng-content>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-opacity-05: .5;--gtr-opacity-07: .7}.gtr-relative-element{position:relative}.gtr-form-element-wrapper{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:10px;margin-bottom:5px}.gtr-form-element-wrapper:focus-visible,.gtr-form-element-wrapper :focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:1;cursor:pointer;margin:0;padding:0}.gtr-form-element-radio:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio-wrapper{display:flex;align-items:center;max-width:-moz-fit-content;max-width:fit-content}.gtr-form-element-radio-wrapper:focus{outline:none!important;background:var(--primary-light)}.gtr-radio-label{margin-left:8px;font-style:normal;font-weight:400;font-size:15px;line-height:22px;position:relative;top:1px}.gtr-radio-label:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio+.gtr-radio-stats{width:16px;height:16px;display:inline-block;margin-top:1px;border-width:1px;border-radius:100px;border-style:solid}.gtr-form-element-radio:not(:checked)+.gtr-radio-stats{border-color:var(--gtr-color-base-black-20);background:var(--gtr-color-base-white-100)}.gtr-form-element-radio:not(:checked):disabled+.gtr-radio-stats{background:linear-gradient(0deg,var(--gtr-color-base-white-80),var(--gtr-color-base-white-80)),var(--gtr-color-base-black-80);border-color:var(--gtr-color-base-white-80)}.gtr-form-element-radio:checked+.gtr-radio-stats{border-color:var(--gtr-color-base-primary-100);background:var(--gtr-color-base-primary-100);position:relative}.gtr-form-element-radio:checked+.gtr-radio-stats:after{content:\"\";display:block;height:8px;width:8px;position:absolute;background:var(--gtr-color-base-white-100);border-radius:calc(var(--gtr-border-radius-6) * 12);top:3px;left:3px}.gtr-form-element-radio:checked:disabled+.gtr-radio-stats,.gtr-form-element-radio:checked:disabled+.gtr-radio-stats+.gtr-radio-label{opacity:var(--gtr-opacity-05)}.gtr-form-element-radio:disabled{cursor:default}.gtr-radio-label.disabled{opacity:var(--gtr-opacity-07)}\n"] }]
|
|
2551
2545
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
@@ -2575,34 +2569,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2575
2569
|
|
|
2576
2570
|
class RadioButtonhModule {
|
|
2577
2571
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonhModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2578
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonhModule, declarations: [
|
|
2572
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonhModule, declarations: [GtrRadioButtonComponent], imports: [CommonModule, FormsModule], exports: [GtrRadioButtonComponent] }); }
|
|
2579
2573
|
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonhModule, imports: [CommonModule, FormsModule] }); }
|
|
2580
2574
|
}
|
|
2581
2575
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonhModule, decorators: [{
|
|
2582
2576
|
type: NgModule,
|
|
2583
2577
|
args: [{
|
|
2584
|
-
declarations: [
|
|
2578
|
+
declarations: [GtrRadioButtonComponent],
|
|
2585
2579
|
imports: [CommonModule, FormsModule],
|
|
2586
|
-
exports: [
|
|
2580
|
+
exports: [GtrRadioButtonComponent],
|
|
2587
2581
|
}]
|
|
2588
2582
|
}] });
|
|
2589
2583
|
|
|
2590
|
-
class
|
|
2591
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2592
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2593
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2584
|
+
class GtrSkeletonModule {
|
|
2585
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2586
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrSkeletonModule, declarations: [GtrSkeletonComponent], imports: [CommonModule, GtrSkeletonDirective], exports: [GtrSkeletonComponent] }); }
|
|
2587
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSkeletonModule, providers: [GtrSkeletonDirective], imports: [CommonModule] }); }
|
|
2594
2588
|
}
|
|
2595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSkeletonModule, decorators: [{
|
|
2596
2590
|
type: NgModule,
|
|
2597
2591
|
args: [{
|
|
2598
|
-
imports: [CommonModule,
|
|
2599
|
-
exports: [
|
|
2600
|
-
declarations: [
|
|
2601
|
-
providers: [
|
|
2592
|
+
imports: [CommonModule, GtrSkeletonDirective],
|
|
2593
|
+
exports: [GtrSkeletonComponent],
|
|
2594
|
+
declarations: [GtrSkeletonComponent],
|
|
2595
|
+
providers: [GtrSkeletonDirective],
|
|
2602
2596
|
}]
|
|
2603
2597
|
}] });
|
|
2604
2598
|
|
|
2605
|
-
class
|
|
2599
|
+
class GtrAccordionComponent {
|
|
2606
2600
|
constructor() {
|
|
2607
2601
|
/**
|
|
2608
2602
|
* The accordion title
|
|
@@ -2653,7 +2647,7 @@ class AccordionComponent {
|
|
|
2653
2647
|
/**
|
|
2654
2648
|
* The accordion arrow icon boolean
|
|
2655
2649
|
*/
|
|
2656
|
-
this.showArrowIcon =
|
|
2650
|
+
this.showArrowIcon = true;
|
|
2657
2651
|
/**
|
|
2658
2652
|
* The accordion data eventemitter
|
|
2659
2653
|
*/
|
|
@@ -2669,10 +2663,10 @@ class AccordionComponent {
|
|
|
2669
2663
|
event.preventDefault();
|
|
2670
2664
|
}
|
|
2671
2665
|
}
|
|
2672
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2673
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
2666
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2667
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrAccordionComponent, selector: "gtr-accordion", inputs: { header: "header", status: "status", id: "id", testId: "testId", justifyContent: "justifyContent", prefixIcon: "prefixIcon", opened: "opened", iconSize: "iconSize", iconColor: "iconColor", iconWeight: "iconWeight", allowMultiple: "allowMultiple", expandAll: "expandAll", showArrowIcon: "showArrowIcon" }, outputs: { accordionState: "accordionState" }, ngImport: i0, template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div\n class=\"gtr-accordion-header\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleSection()\"\n tabindex=\"0\"\n >\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon\n [name]=\"prefixIcon\"\n [size]=\"iconSize\"\n [color]=\"iconColor\"\n [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"\n ></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge\n >\n </ng-container>\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon\n [name]=\"'chevron-right'\"\n [size]=\"24\"\n color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\"\n [class.rotate-icon]=\"opened\"\n ></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }] }); }
|
|
2674
2668
|
}
|
|
2675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionComponent, decorators: [{
|
|
2676
2670
|
type: Component,
|
|
2677
2671
|
args: [{ selector: 'gtr-accordion', template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div\n class=\"gtr-accordion-header\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleSection()\"\n tabindex=\"0\"\n >\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon\n [name]=\"prefixIcon\"\n [size]=\"iconSize\"\n [color]=\"iconColor\"\n [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"\n ></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge\n >\n </ng-container>\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon\n [name]=\"'chevron-right'\"\n [size]=\"24\"\n color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\"\n [class.rotate-icon]=\"opened\"\n ></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"] }]
|
|
2678
2672
|
}], ctorParameters: function () { return []; }, propDecorators: { header: [{
|
|
@@ -2705,7 +2699,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2705
2699
|
type: Output
|
|
2706
2700
|
}] } });
|
|
2707
2701
|
|
|
2708
|
-
class
|
|
2702
|
+
class GtrAccordionWrapperComponent {
|
|
2709
2703
|
constructor() {
|
|
2710
2704
|
/**
|
|
2711
2705
|
* The accordion wrapper data eventemitter
|
|
@@ -2734,23 +2728,25 @@ class AccordionWrapperComponent {
|
|
|
2734
2728
|
}
|
|
2735
2729
|
ngAfterContentInit() {
|
|
2736
2730
|
// Initialize the accordion accordions
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
this.accordions.toArray().forEach((accordion) => {
|
|
2742
|
-
accordion.allowMultiple = this.allowMultiple;
|
|
2743
|
-
accordion.expandAll = this.expandAll;
|
|
2744
|
-
accordion.showArrowIcon = this.showArrowIcon;
|
|
2745
|
-
accordion.accordionState.subscribe(() => {
|
|
2746
|
-
this.toggleAccordion(accordion);
|
|
2747
|
-
});
|
|
2748
|
-
if (this.expandAll) {
|
|
2749
|
-
accordion.opened = this.expandAll;
|
|
2731
|
+
this.accordions.changes.subscribe(() => {
|
|
2732
|
+
if (this.accordions.toArray().length <= 0) {
|
|
2733
|
+
console.log('It seems you forgot to add accordion item inside wrapper.');
|
|
2734
|
+
return;
|
|
2750
2735
|
}
|
|
2736
|
+
this.accordions.toArray().forEach((accordion) => {
|
|
2737
|
+
accordion.allowMultiple = this.allowMultiple;
|
|
2738
|
+
accordion.expandAll = this.expandAll;
|
|
2739
|
+
accordion.showArrowIcon = this.showArrowIcon;
|
|
2740
|
+
accordion.accordionState.subscribe(() => {
|
|
2741
|
+
this.toggleAccordion(accordion);
|
|
2742
|
+
});
|
|
2743
|
+
if (this.expandAll) {
|
|
2744
|
+
accordion.opened = this.expandAll;
|
|
2745
|
+
}
|
|
2746
|
+
});
|
|
2747
|
+
const openedAccordions = this.accordions.filter((accordion) => accordion.opened);
|
|
2748
|
+
this.accordionStateChanged.emit({ activeSections: openedAccordions });
|
|
2751
2749
|
});
|
|
2752
|
-
const openedAccordions = this.accordions.filter((accordion) => accordion.opened);
|
|
2753
|
-
this.accordionStateChanged.emit({ activeSections: openedAccordions });
|
|
2754
2750
|
}
|
|
2755
2751
|
toggleAccordion(selectedAccordion) {
|
|
2756
2752
|
if (this.accordions) {
|
|
@@ -2771,10 +2767,10 @@ class AccordionWrapperComponent {
|
|
|
2771
2767
|
}
|
|
2772
2768
|
}
|
|
2773
2769
|
}
|
|
2774
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2775
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
2770
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2771
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrAccordionWrapperComponent, selector: "gtr-accordion-wrapper", inputs: { allowMultiple: "allowMultiple", id: "id", testId: "testId", expandAll: "expandAll", showArrowIcon: "showArrowIcon" }, outputs: { accordionStateChanged: "accordionStateChanged" }, queries: [{ propertyName: "accordions", predicate: GtrAccordionComponent }], ngImport: i0, template: "<div [id]=\"id\" [attr.data-test-id]=\"testId\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
2776
2772
|
}
|
|
2777
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionWrapperComponent, decorators: [{
|
|
2778
2774
|
type: Component,
|
|
2779
2775
|
args: [{ selector: 'gtr-accordion-wrapper', template: "<div [id]=\"id\" [attr.data-test-id]=\"testId\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
2780
2776
|
}], propDecorators: { accordionStateChanged: [{
|
|
@@ -2791,24 +2787,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2791
2787
|
type: Input
|
|
2792
2788
|
}], accordions: [{
|
|
2793
2789
|
type: ContentChildren,
|
|
2794
|
-
args: [
|
|
2790
|
+
args: [GtrAccordionComponent]
|
|
2795
2791
|
}] } });
|
|
2796
2792
|
|
|
2797
|
-
class
|
|
2798
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2799
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2800
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2793
|
+
class GtrAccordionModule {
|
|
2794
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2795
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionModule, declarations: [GtrAccordionComponent, GtrAccordionWrapperComponent], imports: [CommonModule, GtrIconModule, GtrBadgeModule], exports: [GtrAccordionComponent, GtrAccordionWrapperComponent] }); }
|
|
2796
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionModule, imports: [CommonModule, GtrIconModule, GtrBadgeModule] }); }
|
|
2801
2797
|
}
|
|
2802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionModule, decorators: [{
|
|
2803
2799
|
type: NgModule,
|
|
2804
2800
|
args: [{
|
|
2805
|
-
declarations: [
|
|
2806
|
-
exports: [
|
|
2807
|
-
imports: [CommonModule,
|
|
2801
|
+
declarations: [GtrAccordionComponent, GtrAccordionWrapperComponent],
|
|
2802
|
+
exports: [GtrAccordionComponent, GtrAccordionWrapperComponent],
|
|
2803
|
+
imports: [CommonModule, GtrIconModule, GtrBadgeModule],
|
|
2808
2804
|
}]
|
|
2809
2805
|
}] });
|
|
2810
2806
|
|
|
2811
|
-
class
|
|
2807
|
+
class GtrCalendarService {
|
|
2812
2808
|
constructor(keyValueDiffers) {
|
|
2813
2809
|
this.keyValueDiffers = keyValueDiffers;
|
|
2814
2810
|
this.calendarStateObject = {
|
|
@@ -2858,14 +2854,14 @@ class CalendarService {
|
|
|
2858
2854
|
}
|
|
2859
2855
|
}
|
|
2860
2856
|
}
|
|
2861
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2862
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2857
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarService, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2858
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarService }); }
|
|
2863
2859
|
}
|
|
2864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarService, decorators: [{
|
|
2865
2861
|
type: Injectable
|
|
2866
2862
|
}], ctorParameters: function () { return [{ type: i0.KeyValueDiffers }]; } });
|
|
2867
2863
|
|
|
2868
|
-
class
|
|
2864
|
+
class GtrCalendarNavigationComponent {
|
|
2869
2865
|
constructor(calendarService) {
|
|
2870
2866
|
this.calendarService = calendarService;
|
|
2871
2867
|
this.addMonths = 0;
|
|
@@ -2920,13 +2916,13 @@ class CalendarNavigationComponent {
|
|
|
2920
2916
|
handleNavigationClick(direction, years = false) {
|
|
2921
2917
|
this.navigationClick.emit({ direction, years: years });
|
|
2922
2918
|
}
|
|
2923
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2924
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
2919
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarNavigationComponent, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2920
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrCalendarNavigationComponent, isStandalone: true, selector: "gtr-calendar-navigation", inputs: { addMonths: "addMonths", calendarDate: "calendarDate", navigation: "navigation", navShowYear: "navShowYear", navYearFirst: "navYearFirst" }, outputs: { navigationClick: "navigationClick" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<div *ngIf=\"navigation\" class=\"calendar-nav-prev\">\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('prev', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n (click)=\"handleNavigationClick('prev')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n<div class=\"calendar-nav-date\" [ngStyle]=\"navYearFirst ? { display: 'flex', justifyContent: 'center' } : {}\">\n <button\n (click)=\"setView('months')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-date-button\"\n >\n {{ date.toLocaleDateString(locale, {month: 'long'}) }}\n </button>\n <button\n (click)=\"setView('years')\"\n *ngIf=\"view !== 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\"\n [ngStyle]=\"navYearFirst ? { order: '-1' } : {}\">\n {{ date.toLocaleDateString(locale, {year: 'numeric'}) }}\n </button>\n\n <button\n *ngIf=\"view === 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\">\n Year\n </button>\n</div>\n\n<div *ngIf=\"navigation\" class=\"calendar-nav-next\">\n <button\n (click)=\"handleNavigationClick('next')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('next', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n", styles: [":root{--cui-calendar-nav-date-color: var(--gtr-color-base-black-60) !important;--gtr-color-base-button-icon-bg: rgba(75, 70, 92, .08);--gtr-color-base-button-icon-color: #6F6B7D}.calendar-nav-prev .calendar-nav-icon-button,.calendar-nav-next .calendar-nav-icon-button{border-radius:50%;background-color:var(--gtr-color-base-button-icon-bg);color:var(--gtr-color-base-button-icon-color);height:28px;width:28px;padding:4px;margin:0;border:none}.calendar-nav-date .calendar-nav-date-button{border:none}.calendar-nav-date .calendar-nav-date-button:hover{color:var(--gtr-color-base-primary-base)!important}\n"], dependencies: [{ kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: GtrIconModule }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
2925
2921
|
}
|
|
2926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarNavigationComponent, decorators: [{
|
|
2927
2923
|
type: Component,
|
|
2928
|
-
args: [{ selector: 'gtr-calendar-navigation', standalone: true, imports: [
|
|
2929
|
-
}], ctorParameters: function () { return [{ type:
|
|
2924
|
+
args: [{ selector: 'gtr-calendar-navigation', standalone: true, imports: [GtrButtonDirective, NgIf, NgStyle, GtrIconModule, GtrButtonDirective], template: "<div *ngIf=\"navigation\" class=\"calendar-nav-prev\">\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('prev', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n (click)=\"handleNavigationClick('prev')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n<div class=\"calendar-nav-date\" [ngStyle]=\"navYearFirst ? { display: 'flex', justifyContent: 'center' } : {}\">\n <button\n (click)=\"setView('months')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-date-button\"\n >\n {{ date.toLocaleDateString(locale, {month: 'long'}) }}\n </button>\n <button\n (click)=\"setView('years')\"\n *ngIf=\"view !== 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\"\n [ngStyle]=\"navYearFirst ? { order: '-1' } : {}\">\n {{ date.toLocaleDateString(locale, {year: 'numeric'}) }}\n </button>\n\n <button\n *ngIf=\"view === 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\">\n Year\n </button>\n</div>\n\n<div *ngIf=\"navigation\" class=\"calendar-nav-next\">\n <button\n (click)=\"handleNavigationClick('next')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('next', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n", styles: [":root{--cui-calendar-nav-date-color: var(--gtr-color-base-black-60) !important;--gtr-color-base-button-icon-bg: rgba(75, 70, 92, .08);--gtr-color-base-button-icon-color: #6F6B7D}.calendar-nav-prev .calendar-nav-icon-button,.calendar-nav-next .calendar-nav-icon-button{border-radius:50%;background-color:var(--gtr-color-base-button-icon-bg);color:var(--gtr-color-base-button-icon-color);height:28px;width:28px;padding:4px;margin:0;border:none}.calendar-nav-date .calendar-nav-date-button{border:none}.calendar-nav-date .calendar-nav-date-button:hover{color:var(--gtr-color-base-primary-base)!important}\n"] }]
|
|
2925
|
+
}], ctorParameters: function () { return [{ type: GtrCalendarService }]; }, propDecorators: { addMonths: [{
|
|
2930
2926
|
type: Input
|
|
2931
2927
|
}], calendarDate: [{
|
|
2932
2928
|
type: Input
|
|
@@ -3238,7 +3234,7 @@ const isDateInRangeDisabled = (startDate, endDate, dates) => {
|
|
|
3238
3234
|
//
|
|
3239
3235
|
// // getDate('12/07/1997');
|
|
3240
3236
|
|
|
3241
|
-
class
|
|
3237
|
+
class GtrCalendarWeekdayPipe {
|
|
3242
3238
|
transform(date, weekdayFormat = 'short', locale = 'default') {
|
|
3243
3239
|
return typeof weekdayFormat === 'function'
|
|
3244
3240
|
? weekdayFormat(date)
|
|
@@ -3246,18 +3242,18 @@ class CalendarWeekdayPipe {
|
|
|
3246
3242
|
? date.toLocaleDateString(locale, { weekday: weekdayFormat })
|
|
3247
3243
|
: date.toLocaleDateString(locale, { weekday: 'long' }).slice(0, weekdayFormat);
|
|
3248
3244
|
}
|
|
3249
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3250
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3245
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarWeekdayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3246
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarWeekdayPipe, isStandalone: true, name: "gtrCalendarWeekday" }); }
|
|
3251
3247
|
}
|
|
3252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarWeekdayPipe, decorators: [{
|
|
3253
3249
|
type: Pipe,
|
|
3254
3250
|
args: [{
|
|
3255
|
-
name: '
|
|
3251
|
+
name: 'gtrCalendarWeekday',
|
|
3256
3252
|
standalone: true,
|
|
3257
3253
|
}]
|
|
3258
3254
|
}] });
|
|
3259
3255
|
|
|
3260
|
-
class
|
|
3256
|
+
class GtrCalendarClassYearPipe {
|
|
3261
3257
|
transform(year, args) {
|
|
3262
3258
|
return {
|
|
3263
3259
|
'calendar-cell': true,
|
|
@@ -3265,18 +3261,18 @@ class CalendarClassYearPipe {
|
|
|
3265
3261
|
today: isThisYear(year),
|
|
3266
3262
|
};
|
|
3267
3263
|
}
|
|
3268
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3269
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3264
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassYearPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3265
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassYearPipe, isStandalone: true, name: "gtrCalendarClassYear" }); }
|
|
3270
3266
|
}
|
|
3271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassYearPipe, decorators: [{
|
|
3272
3268
|
type: Pipe,
|
|
3273
3269
|
args: [{
|
|
3274
|
-
name: '
|
|
3270
|
+
name: 'gtrCalendarClassYear',
|
|
3275
3271
|
standalone: true,
|
|
3276
3272
|
}]
|
|
3277
3273
|
}] });
|
|
3278
3274
|
|
|
3279
|
-
class
|
|
3275
|
+
class GtrCalendarClassMonthPipe {
|
|
3280
3276
|
transform(calendarDate, monthIndex) {
|
|
3281
3277
|
const date = new Date(calendarDate);
|
|
3282
3278
|
return {
|
|
@@ -3285,35 +3281,35 @@ class CalendarClassMonthPipe {
|
|
|
3285
3281
|
today: isThisMonth(date, monthIndex),
|
|
3286
3282
|
};
|
|
3287
3283
|
}
|
|
3288
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3289
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3284
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassMonthPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3285
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassMonthPipe, isStandalone: true, name: "gtrCalendarClassMonth" }); }
|
|
3290
3286
|
}
|
|
3291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassMonthPipe, decorators: [{
|
|
3292
3288
|
type: Pipe,
|
|
3293
3289
|
args: [{
|
|
3294
|
-
name: '
|
|
3290
|
+
name: 'gtrCalendarClassMonth',
|
|
3295
3291
|
standalone: true,
|
|
3296
3292
|
}]
|
|
3297
3293
|
}] });
|
|
3298
3294
|
|
|
3299
|
-
class
|
|
3295
|
+
class GtrCalendarDayPipe {
|
|
3300
3296
|
transform(date, dayFormat = 'numeric', locale = 'default') {
|
|
3301
3297
|
return typeof dayFormat === 'function'
|
|
3302
3298
|
? dayFormat(date)
|
|
3303
3299
|
: date.toLocaleDateString(locale, { day: dayFormat });
|
|
3304
3300
|
}
|
|
3305
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3306
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3301
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarDayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3302
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarDayPipe, isStandalone: true, name: "gtrCalendarDay" }); }
|
|
3307
3303
|
}
|
|
3308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarDayPipe, decorators: [{
|
|
3309
3305
|
type: Pipe,
|
|
3310
3306
|
args: [{
|
|
3311
|
-
name: '
|
|
3307
|
+
name: 'gtrCalendarDay',
|
|
3312
3308
|
standalone: true,
|
|
3313
3309
|
}]
|
|
3314
3310
|
}] });
|
|
3315
3311
|
|
|
3316
|
-
class
|
|
3312
|
+
class GtrCalendarDayDirective {
|
|
3317
3313
|
constructor(calendarService) {
|
|
3318
3314
|
this.calendarService = calendarService;
|
|
3319
3315
|
this.date = null;
|
|
@@ -3405,16 +3401,16 @@ class CalendarDayDirective {
|
|
|
3405
3401
|
}
|
|
3406
3402
|
this.calendarStateSubscription?.unsubscribe();
|
|
3407
3403
|
}
|
|
3408
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3409
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
3404
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarDayDirective, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3405
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrCalendarDayDirective, isStandalone: true, selector: "[gtrCalendarDay]", inputs: { dateObj: ["gtrCalendarDay", "dateObj"], dateMonth: ["gtrCalendarMonth", "dateMonth"], dateYear: ["gtrCalendarYear", "dateYear"] }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
3410
3406
|
}
|
|
3411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarDayDirective, decorators: [{
|
|
3412
3408
|
type: Directive,
|
|
3413
3409
|
args: [{
|
|
3414
3410
|
selector: '[gtrCalendarDay]',
|
|
3415
3411
|
standalone: true,
|
|
3416
3412
|
}]
|
|
3417
|
-
}], ctorParameters: function () { return [{ type:
|
|
3413
|
+
}], ctorParameters: function () { return [{ type: GtrCalendarService }]; }, propDecorators: { dateObj: [{
|
|
3418
3414
|
type: Input,
|
|
3419
3415
|
args: ['gtrCalendarDay']
|
|
3420
3416
|
}], dateMonth: [{
|
|
@@ -3428,22 +3424,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3428
3424
|
args: ['class']
|
|
3429
3425
|
}] } });
|
|
3430
3426
|
|
|
3431
|
-
class
|
|
3427
|
+
class GtrCalendarDayTitlePipe {
|
|
3432
3428
|
transform(date, locale = 'default') {
|
|
3433
3429
|
return date.toLocaleDateString(locale);
|
|
3434
3430
|
}
|
|
3435
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3436
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3431
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarDayTitlePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3432
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarDayTitlePipe, isStandalone: true, name: "gtrCalendarDayTitle" }); }
|
|
3437
3433
|
}
|
|
3438
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarDayTitlePipe, decorators: [{
|
|
3439
3435
|
type: Pipe,
|
|
3440
3436
|
args: [{
|
|
3441
|
-
name: '
|
|
3437
|
+
name: 'gtrCalendarDayTitle',
|
|
3442
3438
|
standalone: true,
|
|
3443
3439
|
}]
|
|
3444
3440
|
}] });
|
|
3445
3441
|
|
|
3446
|
-
class
|
|
3442
|
+
class GtrCalendarClassDayPipe {
|
|
3447
3443
|
transform(dateObj, datesConfig) {
|
|
3448
3444
|
const { date, month } = { ...dateObj };
|
|
3449
3445
|
const { minDate, maxDate, disabledDates, dateFilter } = { ...datesConfig };
|
|
@@ -3459,51 +3455,51 @@ class CalendarClassDayPipe {
|
|
|
3459
3455
|
last: isLastDayOfMonth(date),
|
|
3460
3456
|
};
|
|
3461
3457
|
}
|
|
3462
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3463
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3458
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassDayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3459
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassDayPipe, isStandalone: true, name: "gtrCalendarClassDay" }); }
|
|
3464
3460
|
}
|
|
3465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassDayPipe, decorators: [{
|
|
3466
3462
|
type: Pipe,
|
|
3467
3463
|
args: [{
|
|
3468
|
-
name: '
|
|
3464
|
+
name: 'gtrCalendarClassDay',
|
|
3469
3465
|
standalone: true,
|
|
3470
3466
|
}]
|
|
3471
3467
|
}] });
|
|
3472
3468
|
|
|
3473
|
-
class
|
|
3469
|
+
class GtrCalendarMonthTitlePipe {
|
|
3474
3470
|
transform(date, monthIndex, locale = 'default') {
|
|
3475
3471
|
return new Date(date.getFullYear(), monthIndex).toLocaleString(locale, {
|
|
3476
3472
|
month: 'long',
|
|
3477
3473
|
year: 'numeric',
|
|
3478
3474
|
});
|
|
3479
3475
|
}
|
|
3480
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3481
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3476
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarMonthTitlePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3477
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarMonthTitlePipe, isStandalone: true, name: "gtrCalendarMonthTitle" }); }
|
|
3482
3478
|
}
|
|
3483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarMonthTitlePipe, decorators: [{
|
|
3484
3480
|
type: Pipe,
|
|
3485
3481
|
args: [{
|
|
3486
|
-
name: '
|
|
3482
|
+
name: 'gtrCalendarMonthTitle',
|
|
3487
3483
|
standalone: true,
|
|
3488
3484
|
}]
|
|
3489
3485
|
}] });
|
|
3490
3486
|
|
|
3491
|
-
class
|
|
3487
|
+
class GtrCalendarMonthPipe {
|
|
3492
3488
|
transform(date, monthIndex) {
|
|
3493
3489
|
return new Date(date.getFullYear(), monthIndex);
|
|
3494
3490
|
}
|
|
3495
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3496
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3491
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarMonthPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3492
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarMonthPipe, isStandalone: true, name: "gtrCalendarMonth" }); }
|
|
3497
3493
|
}
|
|
3498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarMonthPipe, decorators: [{
|
|
3499
3495
|
type: Pipe,
|
|
3500
3496
|
args: [{
|
|
3501
|
-
name: '
|
|
3497
|
+
name: 'gtrCalendarMonth',
|
|
3502
3498
|
standalone: true,
|
|
3503
3499
|
}]
|
|
3504
3500
|
}] });
|
|
3505
3501
|
|
|
3506
|
-
class
|
|
3502
|
+
class GtrCalendarMonthComponent {
|
|
3507
3503
|
constructor(calendarService) {
|
|
3508
3504
|
this.calendarService = calendarService;
|
|
3509
3505
|
this.addMonths = 0;
|
|
@@ -3856,29 +3852,29 @@ class CalendarMonthComponent {
|
|
|
3856
3852
|
ngOnDestroy() {
|
|
3857
3853
|
this.calendarStateSubscribe(false);
|
|
3858
3854
|
}
|
|
3859
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3860
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
3855
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarMonthComponent, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3856
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrCalendarMonthComponent, isStandalone: true, selector: "gtr-calendar-month", inputs: { addMonths: "addMonths", startDate: "startDate", endDate: "endDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", range: "range", weekdayFormat: "weekdayFormat", view: "view", type: "type", maxDate: "maxDate", minDate: "minDate", calendarDate: "calendarDate" }, exportAs: ["gtrCalendarMonth"], ngImport: i0, template: "<table>\n <thead *ngIf=\"view === 'days'\">\n <tr>\n <th *ngFor=\"let weekDay of weekDays; index as i; count as cnt\" class=\"calendar-cell\">\n <div class=\"calendar-header-cell-inner\">\n {{ weekDay.date | gtrCalendarWeekday:weekdayFormat:locale }}\n </div>\n </th>\n </tr>\n </thead>\n <tbody (mouseleave)=\"handleCellMouseLeave()\" [ngSwitch]=\"view\">\n <ng-container *ngSwitchCase=\"'years'\">\n <tr *ngFor=\"let yearsRow of listOfYears; index as rowIdx\">\n <td\n (click)=\"handleYearCellClick(year)\"\n (keyup)=\"handleYearCellKeyUp($event, year)\"\n (mouseenter)=\"handleYearCellMouseEnter(year)\"\n gtrCalendarDay\n [gtrCalendarYear]=\"year\"\n *ngFor=\"let year of yearsRow; index as idx\"\n [ngClass]=\"year | gtrCalendarClassYear\"\n [tabindex]=\"0\"\n >\n <div class=\"calendar-cell-inner\">\n {{ yearNumber(year) }}\n </div>\n </td>\n </tr>\n </ng-container>\n <ng-container *ngSwitchCase=\"'months'\">\n <tr *ngFor=\"let monthsRow of listOfMonths; index as rowIdx\">\n <td\n (click)=\"handleMonthCellClick(rowIdx, idx)\"\n (keyup)=\"handleMonthCellKeyUp($event, date, rowIdx, idx)\"\n (mouseenter)=\"handleMonthCellMouseEnter(date, rowIdx, idx)\"\n gtrCalendarDay\n [gtrCalendarMonth]=\"date| gtrCalendarMonth:(rowIdx*3+idx)\"\n *ngFor=\"let month of monthsRow; index as idx\"\n [ngClass]=\"date | gtrCalendarClassMonth:(rowIdx*3+idx)\"\n [title]=\"date | gtrCalendarMonthTitle:(rowIdx*3+idx):locale\"\n [tabindex]=\"0\"\n >\n <div class=\"calendar-cell-inner\">\n {{ month }}\n </div>\n </td>\n </tr>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <tr *ngFor=\"let week of monthDetails; index as i\">\n <ng-container *ngFor=\"let dateObj of week; index as idx\">\n <td *ngIf=\"(dateObj.month === 'current' || showAdjacentDays); else emptyCell\"\n (click)=\"(dateObj.month === 'current' || selectAdjacentDays) && handleDayCellClick(dateObj.date)\"\n (keyup)=\"(dateObj.month === 'current' || selectAdjacentDays) && handleDayCellKeyUp($event, dateObj.date)\"\n (mouseenter)=\"(dateObj.month === 'current' || selectAdjacentDays) && handleCellMouseEnter(dateObj.date)\"\n [gtrCalendarDay]=\"dateObj\"\n [ngClass]=\"dateObj | gtrCalendarClassDay:{minDate, maxDate, disabledDates, dateFilter}\"\n [tabindex]=\"(dateObj.month === 'current' || selectAdjacentDays) && !isDateDisabled(dateObj.date) ? 0 : -1\"\n [title]=\"dateObj.date | gtrCalendarDayTitle:locale\"\n >\n <div class=\"calendar-cell-inner\">\n {{ dateObj.date | gtrCalendarDay:dayFormat:locale }}\n </div>\n </td>\n <ng-template #emptyCell>\n <td class=\"calendar-cell\"></td>\n </ng-template>\n </ng-container>\n </tr>\n </ng-container>\n </tbody>\n</table>\n\n\n", styles: [":root{--cui-calendar-cell-selected-bg: var(--gtr-color-base-primary-base) !important}.calendar-header-cell-inner{color:var(--light-typography-color-heading-text, #4B465C);text-align:center;font-size:13px;font-style:normal;font-weight:600;line-height:14px}.calendar-cell.end.range.selected .calendar-cell-inner{border-radius:0 .375rem .375rem 0!important}.calendar-cell.start.range.selected .calendar-cell-inner{border-radius:.375rem 0 0 .375rem!important}.calendar-cell.selected:not(.previous):not(.next).end .calendar-cell-inner:before{border-radius:0 .375rem .375rem 0!important}.calendar-cell.selected:not(.previous):not(.next).start .calendar-cell-inner:before{border-radius:.375rem 0 0 .375rem!important}.calendar-cell.today .calendar-cell-inner{background-color:var(--gtr-color-base-success-20)!important;color:var(--gtr-color-base-success-100)!important;border-radius:.375rem!important}\n"], dependencies: [{ kind: "directive", type: GtrCalendarDayDirective, selector: "[gtrCalendarDay]", inputs: ["gtrCalendarDay", "gtrCalendarMonth", "gtrCalendarYear"] }, { kind: "pipe", type: GtrCalendarDayPipe, name: "gtrCalendarDay" }, { kind: "pipe", type: GtrCalendarDayTitlePipe, name: "gtrCalendarDayTitle" }, { kind: "pipe", type: GtrCalendarMonthTitlePipe, name: "gtrCalendarMonthTitle" }, { kind: "pipe", type: GtrCalendarMonthPipe, name: "gtrCalendarMonth" }, { kind: "pipe", type: GtrCalendarClassDayPipe, name: "gtrCalendarClassDay" }, { kind: "pipe", type: GtrCalendarClassMonthPipe, name: "gtrCalendarClassMonth" }, { kind: "pipe", type: GtrCalendarClassYearPipe, name: "gtrCalendarClassYear" }, { kind: "pipe", type: GtrCalendarWeekdayPipe, name: "gtrCalendarWeekday" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }] }); }
|
|
3861
3857
|
}
|
|
3862
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarMonthComponent, decorators: [{
|
|
3863
3859
|
type: Component,
|
|
3864
3860
|
args: [{ selector: 'gtr-calendar-month', exportAs: 'gtrCalendarMonth', standalone: true, imports: [
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3861
|
+
GtrCalendarDayDirective,
|
|
3862
|
+
GtrCalendarDayPipe,
|
|
3863
|
+
GtrCalendarDayTitlePipe,
|
|
3864
|
+
GtrCalendarMonthTitlePipe,
|
|
3865
|
+
GtrCalendarMonthPipe,
|
|
3866
|
+
GtrCalendarClassDayPipe,
|
|
3867
|
+
GtrCalendarClassMonthPipe,
|
|
3868
|
+
GtrCalendarClassYearPipe,
|
|
3869
|
+
GtrCalendarWeekdayPipe,
|
|
3874
3870
|
NgClass,
|
|
3875
3871
|
NgForOf,
|
|
3876
3872
|
NgIf,
|
|
3877
3873
|
NgSwitch,
|
|
3878
3874
|
NgSwitchCase,
|
|
3879
3875
|
NgSwitchDefault,
|
|
3880
|
-
], template: "<table>\n <thead *ngIf=\"view === 'days'\">\n <tr>\n <th *ngFor=\"let weekDay of weekDays; index as i; count as cnt\" class=\"calendar-cell\">\n <div class=\"calendar-header-cell-inner\">\n {{ weekDay.date |
|
|
3881
|
-
}], ctorParameters: function () { return [{ type:
|
|
3876
|
+
], template: "<table>\n <thead *ngIf=\"view === 'days'\">\n <tr>\n <th *ngFor=\"let weekDay of weekDays; index as i; count as cnt\" class=\"calendar-cell\">\n <div class=\"calendar-header-cell-inner\">\n {{ weekDay.date | gtrCalendarWeekday:weekdayFormat:locale }}\n </div>\n </th>\n </tr>\n </thead>\n <tbody (mouseleave)=\"handleCellMouseLeave()\" [ngSwitch]=\"view\">\n <ng-container *ngSwitchCase=\"'years'\">\n <tr *ngFor=\"let yearsRow of listOfYears; index as rowIdx\">\n <td\n (click)=\"handleYearCellClick(year)\"\n (keyup)=\"handleYearCellKeyUp($event, year)\"\n (mouseenter)=\"handleYearCellMouseEnter(year)\"\n gtrCalendarDay\n [gtrCalendarYear]=\"year\"\n *ngFor=\"let year of yearsRow; index as idx\"\n [ngClass]=\"year | gtrCalendarClassYear\"\n [tabindex]=\"0\"\n >\n <div class=\"calendar-cell-inner\">\n {{ yearNumber(year) }}\n </div>\n </td>\n </tr>\n </ng-container>\n <ng-container *ngSwitchCase=\"'months'\">\n <tr *ngFor=\"let monthsRow of listOfMonths; index as rowIdx\">\n <td\n (click)=\"handleMonthCellClick(rowIdx, idx)\"\n (keyup)=\"handleMonthCellKeyUp($event, date, rowIdx, idx)\"\n (mouseenter)=\"handleMonthCellMouseEnter(date, rowIdx, idx)\"\n gtrCalendarDay\n [gtrCalendarMonth]=\"date| gtrCalendarMonth:(rowIdx*3+idx)\"\n *ngFor=\"let month of monthsRow; index as idx\"\n [ngClass]=\"date | gtrCalendarClassMonth:(rowIdx*3+idx)\"\n [title]=\"date | gtrCalendarMonthTitle:(rowIdx*3+idx):locale\"\n [tabindex]=\"0\"\n >\n <div class=\"calendar-cell-inner\">\n {{ month }}\n </div>\n </td>\n </tr>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <tr *ngFor=\"let week of monthDetails; index as i\">\n <ng-container *ngFor=\"let dateObj of week; index as idx\">\n <td *ngIf=\"(dateObj.month === 'current' || showAdjacentDays); else emptyCell\"\n (click)=\"(dateObj.month === 'current' || selectAdjacentDays) && handleDayCellClick(dateObj.date)\"\n (keyup)=\"(dateObj.month === 'current' || selectAdjacentDays) && handleDayCellKeyUp($event, dateObj.date)\"\n (mouseenter)=\"(dateObj.month === 'current' || selectAdjacentDays) && handleCellMouseEnter(dateObj.date)\"\n [gtrCalendarDay]=\"dateObj\"\n [ngClass]=\"dateObj | gtrCalendarClassDay:{minDate, maxDate, disabledDates, dateFilter}\"\n [tabindex]=\"(dateObj.month === 'current' || selectAdjacentDays) && !isDateDisabled(dateObj.date) ? 0 : -1\"\n [title]=\"dateObj.date | gtrCalendarDayTitle:locale\"\n >\n <div class=\"calendar-cell-inner\">\n {{ dateObj.date | gtrCalendarDay:dayFormat:locale }}\n </div>\n </td>\n <ng-template #emptyCell>\n <td class=\"calendar-cell\"></td>\n </ng-template>\n </ng-container>\n </tr>\n </ng-container>\n </tbody>\n</table>\n\n\n", styles: [":root{--cui-calendar-cell-selected-bg: var(--gtr-color-base-primary-base) !important}.calendar-header-cell-inner{color:var(--light-typography-color-heading-text, #4B465C);text-align:center;font-size:13px;font-style:normal;font-weight:600;line-height:14px}.calendar-cell.end.range.selected .calendar-cell-inner{border-radius:0 .375rem .375rem 0!important}.calendar-cell.start.range.selected .calendar-cell-inner{border-radius:.375rem 0 0 .375rem!important}.calendar-cell.selected:not(.previous):not(.next).end .calendar-cell-inner:before{border-radius:0 .375rem .375rem 0!important}.calendar-cell.selected:not(.previous):not(.next).start .calendar-cell-inner:before{border-radius:.375rem 0 0 .375rem!important}.calendar-cell.today .calendar-cell-inner{background-color:var(--gtr-color-base-success-20)!important;color:var(--gtr-color-base-success-100)!important;border-radius:.375rem!important}\n"] }]
|
|
3877
|
+
}], ctorParameters: function () { return [{ type: GtrCalendarService }]; }, propDecorators: { addMonths: [{
|
|
3882
3878
|
type: Input
|
|
3883
3879
|
}], startDate: [{
|
|
3884
3880
|
type: Input
|
|
@@ -3906,25 +3902,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3906
3902
|
type: Input
|
|
3907
3903
|
}] } });
|
|
3908
3904
|
|
|
3909
|
-
class
|
|
3905
|
+
class GtrCalendarClassViewPipe {
|
|
3910
3906
|
transform(view) {
|
|
3911
3907
|
return {
|
|
3912
3908
|
calendar: true,
|
|
3913
3909
|
[`${view}`]: !!view,
|
|
3914
3910
|
};
|
|
3915
3911
|
}
|
|
3916
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3917
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3912
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassViewPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3913
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassViewPipe, isStandalone: true, name: "gtrCalendarClassView" }); }
|
|
3918
3914
|
}
|
|
3919
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
3915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarClassViewPipe, decorators: [{
|
|
3920
3916
|
type: Pipe,
|
|
3921
3917
|
args: [{
|
|
3922
|
-
name: '
|
|
3918
|
+
name: 'gtrCalendarClassView',
|
|
3923
3919
|
standalone: true,
|
|
3924
3920
|
}]
|
|
3925
3921
|
}] });
|
|
3926
3922
|
|
|
3927
|
-
class
|
|
3923
|
+
class GtrCalendarComponent {
|
|
3928
3924
|
constructor(calendarService) {
|
|
3929
3925
|
this.calendarService = calendarService;
|
|
3930
3926
|
this._calendarDate = tryDate(new Date());
|
|
@@ -3998,7 +3994,7 @@ class CalendarComponent {
|
|
|
3998
3994
|
/**
|
|
3999
3995
|
* Set the format of day name.
|
|
4000
3996
|
* @default 'numeric'
|
|
4001
|
-
* @type
|
|
3997
|
+
* @type GtrDayFormatType
|
|
4002
3998
|
*/
|
|
4003
3999
|
set dayFormat(value) {
|
|
4004
4000
|
this._dayFormat = value;
|
|
@@ -4274,19 +4270,19 @@ class CalendarComponent {
|
|
|
4274
4270
|
this.calendarService.update({ endDate: null });
|
|
4275
4271
|
this.calendarService.update({ startDate: null });
|
|
4276
4272
|
}
|
|
4277
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4278
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
4273
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarComponent, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4274
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrCalendarComponent, isStandalone: true, selector: "gtr-calendar", inputs: { calendarDate: "calendarDate", calendars: "calendars", dayFormat: "dayFormat", disabledDates: "disabledDates", startDate: "startDate", endDate: "endDate", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", navYearFirst: "navYearFirst", range: "range", view: "view", type: "type", weekdayFormat: "weekdayFormat", dateFilter: "dateFilter", selectAdjacentDays: "selectAdjacentDays", showAdjacentDays: "showAdjacentDays" }, outputs: { calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange", viewChange: "viewChange" }, host: { properties: { "class": "this.hostClasses" } }, providers: [GtrCalendarService], viewQueries: [{ propertyName: "calendarMonths", predicate: GtrCalendarMonthComponent, descendants: true }], exportAs: ["gtrCalendar"], ngImport: i0, template: "<ng-container *ngFor=\"let calendar of calendarsArray; let i=index;\">\n <div [ngClass]=\"view | gtrCalendarClassView\">\n <gtr-calendar-navigation\n [addMonths]=\"i\"\n [navigation]=\"navigation\"\n (navigationClick)=\"handleNavigationClick($event.direction, $event.years)\"\n ></gtr-calendar-navigation>\n\n <gtr-calendar-month\n [addMonths]=\"i\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [weekdayFormat]=\"weekdayFormat\"\n ></gtr-calendar-month>\n </div>\n</ng-container>\n\n", dependencies: [{ kind: "component", type: GtrCalendarNavigationComponent, selector: "gtr-calendar-navigation", inputs: ["addMonths", "calendarDate", "navigation", "navShowYear", "navYearFirst"], outputs: ["navigationClick"] }, { kind: "pipe", type: GtrCalendarClassViewPipe, name: "gtrCalendarClassView" }, { kind: "component", type: GtrCalendarMonthComponent, selector: "gtr-calendar-month", inputs: ["addMonths", "startDate", "endDate", "disabledDates", "firstDayOfWeek", "locale", "range", "weekdayFormat", "view", "type", "maxDate", "minDate", "calendarDate"], exportAs: ["gtrCalendarMonth"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
4279
4275
|
}
|
|
4280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarComponent, decorators: [{
|
|
4281
4277
|
type: Component,
|
|
4282
|
-
args: [{ selector: 'gtr-calendar', exportAs: 'gtrCalendar', providers: [
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4278
|
+
args: [{ selector: 'gtr-calendar', exportAs: 'gtrCalendar', providers: [GtrCalendarService], standalone: true, imports: [
|
|
4279
|
+
GtrCalendarNavigationComponent,
|
|
4280
|
+
GtrCalendarClassViewPipe,
|
|
4281
|
+
GtrCalendarMonthComponent,
|
|
4286
4282
|
NgForOf,
|
|
4287
4283
|
NgClass,
|
|
4288
|
-
], template: "<ng-container *ngFor=\"let calendar of calendarsArray; let i=index;\">\n <div [ngClass]=\"view |
|
|
4289
|
-
}], ctorParameters: function () { return [{ type:
|
|
4284
|
+
], template: "<ng-container *ngFor=\"let calendar of calendarsArray; let i=index;\">\n <div [ngClass]=\"view | gtrCalendarClassView\">\n <gtr-calendar-navigation\n [addMonths]=\"i\"\n [navigation]=\"navigation\"\n (navigationClick)=\"handleNavigationClick($event.direction, $event.years)\"\n ></gtr-calendar-navigation>\n\n <gtr-calendar-month\n [addMonths]=\"i\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [weekdayFormat]=\"weekdayFormat\"\n ></gtr-calendar-month>\n </div>\n</ng-container>\n\n" }]
|
|
4285
|
+
}], ctorParameters: function () { return [{ type: GtrCalendarService }]; }, propDecorators: { calendarDate: [{
|
|
4290
4286
|
type: Input
|
|
4291
4287
|
}], calendars: [{
|
|
4292
4288
|
type: Input
|
|
@@ -4339,50 +4335,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4339
4335
|
args: ['class']
|
|
4340
4336
|
}], calendarMonths: [{
|
|
4341
4337
|
type: ViewChildren,
|
|
4342
|
-
args: [
|
|
4338
|
+
args: [GtrCalendarMonthComponent]
|
|
4343
4339
|
}] } });
|
|
4344
4340
|
|
|
4345
|
-
class
|
|
4346
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4347
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4361
|
-
|
|
4341
|
+
class GtrCalendarModule {
|
|
4342
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4343
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarModule, imports: [GtrCalendarComponent,
|
|
4344
|
+
GtrCalendarClassYearPipe,
|
|
4345
|
+
GtrCalendarClassDayPipe,
|
|
4346
|
+
GtrCalendarClassMonthPipe,
|
|
4347
|
+
GtrCalendarDayDirective,
|
|
4348
|
+
GtrCalendarClassViewPipe,
|
|
4349
|
+
GtrCalendarNavigationComponent,
|
|
4350
|
+
GtrCalendarMonthComponent,
|
|
4351
|
+
GtrCalendarDayPipe,
|
|
4352
|
+
GtrCalendarWeekdayPipe,
|
|
4353
|
+
GtrCalendarDayTitlePipe,
|
|
4354
|
+
GtrCalendarMonthTitlePipe,
|
|
4355
|
+
GtrCalendarMonthPipe], exports: [GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent] }); }
|
|
4356
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarModule, imports: [GtrCalendarComponent,
|
|
4357
|
+
GtrCalendarNavigationComponent] }); }
|
|
4362
4358
|
}
|
|
4363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarModule, decorators: [{
|
|
4364
4360
|
type: NgModule,
|
|
4365
4361
|
args: [{
|
|
4366
4362
|
imports: [
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4363
|
+
GtrCalendarComponent,
|
|
4364
|
+
GtrCalendarClassYearPipe,
|
|
4365
|
+
GtrCalendarClassDayPipe,
|
|
4366
|
+
GtrCalendarClassMonthPipe,
|
|
4367
|
+
GtrCalendarDayDirective,
|
|
4368
|
+
GtrCalendarClassViewPipe,
|
|
4369
|
+
GtrCalendarNavigationComponent,
|
|
4370
|
+
GtrCalendarMonthComponent,
|
|
4371
|
+
GtrCalendarDayPipe,
|
|
4372
|
+
GtrCalendarWeekdayPipe,
|
|
4373
|
+
GtrCalendarDayTitlePipe,
|
|
4374
|
+
GtrCalendarMonthTitlePipe,
|
|
4375
|
+
GtrCalendarMonthPipe,
|
|
4380
4376
|
],
|
|
4381
|
-
exports: [
|
|
4377
|
+
exports: [GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent],
|
|
4382
4378
|
}]
|
|
4383
4379
|
}] });
|
|
4384
4380
|
|
|
4385
|
-
class
|
|
4381
|
+
class GtrCheckboxComponent {
|
|
4386
4382
|
constructor() {
|
|
4387
4383
|
/**
|
|
4388
4384
|
* Option to mark checkbox checked
|
|
@@ -4439,21 +4435,21 @@ class CheckboxComponent {
|
|
|
4439
4435
|
event.preventDefault();
|
|
4440
4436
|
}
|
|
4441
4437
|
}
|
|
4442
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4443
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
4438
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4439
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: { identifier: "identifier", value: "value", label: "label", checked: "checked", disabled: "disabled", readonly: "readonly" }, outputs: { selectionChanged: "selectionChanged" }, providers: [
|
|
4444
4440
|
{
|
|
4445
4441
|
provide: NG_VALUE_ACCESSOR,
|
|
4446
|
-
useExisting: forwardRef((() =>
|
|
4442
|
+
useExisting: forwardRef((() => GtrCheckboxComponent)),
|
|
4447
4443
|
multi: true,
|
|
4448
4444
|
},
|
|
4449
|
-
], ngImport: i0, template: "<label\n class=\"gtr-checkbox-wrapper\"\n [attr.id]=\"identifier || 'gtr-checkbox'\"\n [attr.data-testid]=\"identifier || 'gtr-checkbox'\"\n>\n <input\n type=\"checkbox\"\n name=\"gtr-checkbox-input\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (change)=\"handleClick()\"\n (keydown)=\"handleKeydown($event)\"\n [attr.aria-checked]=\"checked ? 'true' : 'false'\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.role]=\"readonly ? 'switch' : 'checkbox'\"\n tabindex=\"0\"\n />\n <span class=\"gtr-checkmark\">\n <gtr-icon\n *ngIf=\"!disabled || (checked && disabled)\"\n name=\"check\"\n [size]=\"14\"\n weight=\"bold\"\n ></gtr-icon>\n </span>\n <span *ngIf=\"label\" class=\"gtr-checkbox-label\">{{ label }}</span>\n</label>\n", styles: [":root{--gtr-color-base-black-100: rgba(0, 0, 0, 0);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-primary-100: rgba(0, 96, 194, 1);--gtr-content-box-shadow-20: 0px 2px 4px rgba(0, 0, 0, .2);--gtr-color-base-white-100: rgba(0, 0, 0, 1)}:host{box-sizing:border-box}.gtr-checkbox-wrapper{display:flex;align-self:center;position:relative;cursor:pointer;font-size:13px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100)}.gtr-checkbox-wrapper .gtr-checkbox-label{padding-left:6px}.gtr-checkbox-wrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.gtr-checkmark{height:18px;width:18px;border-radius:4px;background-color:var(--gtr-color-base-white-100);border:solid 1px var(--gtr-color-base-black-20)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled~.gtr-checkmark{background-color:var(--gtr-color-base-black-20);border-color:var(--gtr-color-base-black-10);cursor:default}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);opacity:.5;border-color:var(--gtr-color-base-primary-100);cursor:default;box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkbox-label{opacity:.5}.gtr-checkmark{color:var(--gtr-color-base-white-100)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{display:block}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type:
|
|
4445
|
+
], ngImport: i0, template: "<label\n class=\"gtr-checkbox-wrapper\"\n [attr.id]=\"identifier || 'gtr-checkbox'\"\n [attr.data-testid]=\"identifier || 'gtr-checkbox'\"\n>\n <input\n type=\"checkbox\"\n name=\"gtr-checkbox-input\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (change)=\"handleClick()\"\n (keydown)=\"handleKeydown($event)\"\n [attr.aria-checked]=\"checked ? 'true' : 'false'\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.role]=\"readonly ? 'switch' : 'checkbox'\"\n tabindex=\"0\"\n />\n <span class=\"gtr-checkmark\">\n <gtr-icon\n *ngIf=\"!disabled || (checked && disabled)\"\n name=\"check\"\n [size]=\"14\"\n weight=\"bold\"\n ></gtr-icon>\n </span>\n <span *ngIf=\"label\" class=\"gtr-checkbox-label\">{{ label }}</span>\n</label>\n", styles: [":root{--gtr-color-base-black-100: rgba(0, 0, 0, 0);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-primary-100: rgba(0, 96, 194, 1);--gtr-content-box-shadow-20: 0px 2px 4px rgba(0, 0, 0, .2);--gtr-color-base-white-100: rgba(0, 0, 0, 1)}:host{box-sizing:border-box}.gtr-checkbox-wrapper{display:flex;align-self:center;position:relative;cursor:pointer;font-size:13px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100)}.gtr-checkbox-wrapper .gtr-checkbox-label{padding-left:6px}.gtr-checkbox-wrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.gtr-checkmark{height:18px;width:18px;border-radius:4px;background-color:var(--gtr-color-base-white-100);border:solid 1px var(--gtr-color-base-black-20)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled~.gtr-checkmark{background-color:var(--gtr-color-base-black-20);border-color:var(--gtr-color-base-black-10);cursor:default}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);opacity:.5;border-color:var(--gtr-color-base-primary-100);cursor:default;box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkbox-label{opacity:.5}.gtr-checkmark{color:var(--gtr-color-base-white-100)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{display:block}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
4450
4446
|
}
|
|
4451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCheckboxComponent, decorators: [{
|
|
4452
4448
|
type: Component,
|
|
4453
4449
|
args: [{ selector: 'gtr-checkbox', providers: [
|
|
4454
4450
|
{
|
|
4455
4451
|
provide: NG_VALUE_ACCESSOR,
|
|
4456
|
-
useExisting: forwardRef((() =>
|
|
4452
|
+
useExisting: forwardRef((() => GtrCheckboxComponent)),
|
|
4457
4453
|
multi: true,
|
|
4458
4454
|
},
|
|
4459
4455
|
], template: "<label\n class=\"gtr-checkbox-wrapper\"\n [attr.id]=\"identifier || 'gtr-checkbox'\"\n [attr.data-testid]=\"identifier || 'gtr-checkbox'\"\n>\n <input\n type=\"checkbox\"\n name=\"gtr-checkbox-input\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (change)=\"handleClick()\"\n (keydown)=\"handleKeydown($event)\"\n [attr.aria-checked]=\"checked ? 'true' : 'false'\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.role]=\"readonly ? 'switch' : 'checkbox'\"\n tabindex=\"0\"\n />\n <span class=\"gtr-checkmark\">\n <gtr-icon\n *ngIf=\"!disabled || (checked && disabled)\"\n name=\"check\"\n [size]=\"14\"\n weight=\"bold\"\n ></gtr-icon>\n </span>\n <span *ngIf=\"label\" class=\"gtr-checkbox-label\">{{ label }}</span>\n</label>\n", styles: [":root{--gtr-color-base-black-100: rgba(0, 0, 0, 0);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-primary-100: rgba(0, 96, 194, 1);--gtr-content-box-shadow-20: 0px 2px 4px rgba(0, 0, 0, .2);--gtr-color-base-white-100: rgba(0, 0, 0, 1)}:host{box-sizing:border-box}.gtr-checkbox-wrapper{display:flex;align-self:center;position:relative;cursor:pointer;font-size:13px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100)}.gtr-checkbox-wrapper .gtr-checkbox-label{padding-left:6px}.gtr-checkbox-wrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.gtr-checkmark{height:18px;width:18px;border-radius:4px;background-color:var(--gtr-color-base-white-100);border:solid 1px var(--gtr-color-base-black-20)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled~.gtr-checkmark{background-color:var(--gtr-color-base-black-20);border-color:var(--gtr-color-base-black-10);cursor:default}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);opacity:.5;border-color:var(--gtr-color-base-primary-100);cursor:default;box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkbox-label{opacity:.5}.gtr-checkmark{color:var(--gtr-color-base-white-100)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{display:block}\n"] }]
|
|
@@ -4473,21 +4469,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4473
4469
|
type: Output
|
|
4474
4470
|
}] } });
|
|
4475
4471
|
|
|
4476
|
-
class
|
|
4477
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4478
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4479
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4472
|
+
class GtrCheckboxModule {
|
|
4473
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4474
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCheckboxModule, declarations: [GtrCheckboxComponent], imports: [NgIf, NgFor, FormsModule, GtrIconModule], exports: [GtrCheckboxComponent] }); }
|
|
4475
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCheckboxModule, imports: [FormsModule, GtrIconModule] }); }
|
|
4480
4476
|
}
|
|
4481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCheckboxModule, decorators: [{
|
|
4482
4478
|
type: NgModule,
|
|
4483
4479
|
args: [{
|
|
4484
|
-
declarations: [
|
|
4485
|
-
imports: [NgIf, NgFor, FormsModule,
|
|
4486
|
-
exports: [
|
|
4480
|
+
declarations: [GtrCheckboxComponent],
|
|
4481
|
+
imports: [NgIf, NgFor, FormsModule, GtrIconModule],
|
|
4482
|
+
exports: [GtrCheckboxComponent],
|
|
4487
4483
|
}]
|
|
4488
4484
|
}] });
|
|
4489
4485
|
|
|
4490
|
-
class
|
|
4486
|
+
class GtrModalComponent {
|
|
4491
4487
|
/**
|
|
4492
4488
|
* The listen decorator used to close modal via keyboard
|
|
4493
4489
|
*/
|
|
@@ -4597,10 +4593,10 @@ class ModalComponent {
|
|
|
4597
4593
|
bodyElement.style.overflow = 'auto';
|
|
4598
4594
|
this.closeModal.emit();
|
|
4599
4595
|
}
|
|
4600
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4601
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
4596
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrModalComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4597
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrModalComponent, selector: "gtr-modal", inputs: { isOpen: "isOpen", modalPosition: "modalPosition", modalId: "modalId", modalSize: "modalSize", scrollType: "scrollType", header: "header", hasHeading: "hasHeading" }, outputs: { closeModal: "closeModal" }, host: { listeners: { "keydown": "handleKeyDown($event)" } }, viewQueries: [{ propertyName: "modalElement", first: true, predicate: ["modalElement"], descendants: true }], ngImport: i0, template: "<div [class]=\"'gtr-modal '+ modalPosition + ' ' + modalSize\" [class.open]=\"isOpen\" #modalElement tabIndex=\"-1\"\n [id]=\"modalId\" [attr.data-testid]=\"modalId\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\">\n <div class=\"gtr-modal-content\">\n <div class=\"gtr-modal-header\" *ngIf=\"hasHeading\">\n <span [id]=\"modalId+'-modal-title'\" [attr.data-testid]=\"modalId+'-modal-title'\" class=\"gtr-modal-title\">\n {{this.header}}\n </span>\n <button class=\"gtr-modal-close\" [id]=\"modalId+'-modal-cross-button'\" [attr.data-testid]=\"modalId+'-modal-cross-button'\" (click)=\"this.handleCloseModal()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15 5L5 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M15 5L5 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n </svg>\n </button>\n </div>\n <div id=\"modal-content\" [class]=\"'gtr-modal-body ' + this.scrollType\">\n <ng-content select=\"[slot='modal-body']\">\n </ng-content>\n <div class=\"gtr-modal-actions\">\n <ng-content select=\"[slot='modal-actions']\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px}.gtr-modal{display:none;position:fixed;z-index:9999;padding:20px;transform:translateZ(0);left:0;top:0;outline:0;width:100%;height:100%;overflow:auto;background-color:var(--gtr-color-base-black-20)}.gtr-modal.open{display:flex}.gtr-modal.open.top{display:block}.gtr-modal-content{background-color:#fefefe;margin:auto;padding:20px;width:90%;background-color:var(--gtr-color-base-white-100);border-radius:var(--gtr-border-radius-6);box-shadow:var(--gtr-content-box-shadow-base)}.gtr-modal.small .gtr-modal-content{max-width:90%;width:400px}.gtr-modal-body.scroll-body{max-height:400px;overflow-y:auto;overflow-x:hidden;padding:8px}.gtr-modal.medium .gtr-modal-content{max-width:90%;width:700px}.gtr-modal.large .gtr-modal-content{max-width:90%;width:1000px}.gtr-modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.gtr-modal-title{font-style:normal;font-weight:600;font-size:18px;line-height:24px;padding:0;margin:0;color:#000}.gtr-modal-close{border:none;background:none;font-size:.9rem;cursor:pointer;padding:0}.gtr-modal-body p{font-style:normal;font-weight:400;font-size:15px;line-height:22px}.gtr-modal-body .gtr-modal-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:10px}.gtr-modal-body::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}@media screen and (max-width: 768px){.gtr-modal{padding:10px}.gtr-modal.small .gtr-modal-content,.gtr-modal.large .gtr-modal-content,.gtr-modal.medium .gtr-modal-content{max-width:100%}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
4602
4598
|
}
|
|
4603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrModalComponent, decorators: [{
|
|
4604
4600
|
type: Component,
|
|
4605
4601
|
args: [{ selector: 'gtr-modal', template: "<div [class]=\"'gtr-modal '+ modalPosition + ' ' + modalSize\" [class.open]=\"isOpen\" #modalElement tabIndex=\"-1\"\n [id]=\"modalId\" [attr.data-testid]=\"modalId\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\">\n <div class=\"gtr-modal-content\">\n <div class=\"gtr-modal-header\" *ngIf=\"hasHeading\">\n <span [id]=\"modalId+'-modal-title'\" [attr.data-testid]=\"modalId+'-modal-title'\" class=\"gtr-modal-title\">\n {{this.header}}\n </span>\n <button class=\"gtr-modal-close\" [id]=\"modalId+'-modal-cross-button'\" [attr.data-testid]=\"modalId+'-modal-cross-button'\" (click)=\"this.handleCloseModal()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15 5L5 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M15 5L5 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n </svg>\n </button>\n </div>\n <div id=\"modal-content\" [class]=\"'gtr-modal-body ' + this.scrollType\">\n <ng-content select=\"[slot='modal-body']\">\n </ng-content>\n <div class=\"gtr-modal-actions\">\n <ng-content select=\"[slot='modal-actions']\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px}.gtr-modal{display:none;position:fixed;z-index:9999;padding:20px;transform:translateZ(0);left:0;top:0;outline:0;width:100%;height:100%;overflow:auto;background-color:var(--gtr-color-base-black-20)}.gtr-modal.open{display:flex}.gtr-modal.open.top{display:block}.gtr-modal-content{background-color:#fefefe;margin:auto;padding:20px;width:90%;background-color:var(--gtr-color-base-white-100);border-radius:var(--gtr-border-radius-6);box-shadow:var(--gtr-content-box-shadow-base)}.gtr-modal.small .gtr-modal-content{max-width:90%;width:400px}.gtr-modal-body.scroll-body{max-height:400px;overflow-y:auto;overflow-x:hidden;padding:8px}.gtr-modal.medium .gtr-modal-content{max-width:90%;width:700px}.gtr-modal.large .gtr-modal-content{max-width:90%;width:1000px}.gtr-modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.gtr-modal-title{font-style:normal;font-weight:600;font-size:18px;line-height:24px;padding:0;margin:0;color:#000}.gtr-modal-close{border:none;background:none;font-size:.9rem;cursor:pointer;padding:0}.gtr-modal-body p{font-style:normal;font-weight:400;font-size:15px;line-height:22px}.gtr-modal-body .gtr-modal-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:10px}.gtr-modal-body::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}@media screen and (max-width: 768px){.gtr-modal{padding:10px}.gtr-modal.small .gtr-modal-content,.gtr-modal.large .gtr-modal-content,.gtr-modal.medium .gtr-modal-content{max-width:100%}}\n"] }]
|
|
4606
4602
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
@@ -4631,21 +4627,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4631
4627
|
type: Output
|
|
4632
4628
|
}] } });
|
|
4633
4629
|
|
|
4634
|
-
class
|
|
4635
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4636
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4637
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4630
|
+
class GtrModalModule {
|
|
4631
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4632
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrModalModule, declarations: [GtrModalComponent], imports: [CommonModule], exports: [GtrModalComponent] }); }
|
|
4633
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrModalModule, imports: [CommonModule] }); }
|
|
4638
4634
|
}
|
|
4639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrModalModule, decorators: [{
|
|
4640
4636
|
type: NgModule,
|
|
4641
4637
|
args: [{
|
|
4642
4638
|
imports: [CommonModule],
|
|
4643
|
-
exports: [
|
|
4644
|
-
declarations: [
|
|
4639
|
+
exports: [GtrModalComponent],
|
|
4640
|
+
declarations: [GtrModalComponent],
|
|
4645
4641
|
}]
|
|
4646
4642
|
}] });
|
|
4647
4643
|
|
|
4648
|
-
class
|
|
4644
|
+
class GtrHtmlAttributesDirective {
|
|
4649
4645
|
constructor(renderer, el) {
|
|
4650
4646
|
this.renderer = renderer;
|
|
4651
4647
|
this.el = el;
|
|
@@ -4684,10 +4680,10 @@ class HtmlAttributesDirective {
|
|
|
4684
4680
|
? this.renderer.setAttribute(this.el.nativeElement, key, value)
|
|
4685
4681
|
: this.renderer.removeAttribute(this.el.nativeElement, key);
|
|
4686
4682
|
}
|
|
4687
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4688
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
4683
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrHtmlAttributesDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4684
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrHtmlAttributesDirective, isStandalone: true, selector: "[gtrHtmlAttr]", inputs: { gtrHtmlAttr: "gtrHtmlAttr" }, exportAs: ["gtrHtmlAttr"], ngImport: i0 }); }
|
|
4689
4685
|
}
|
|
4690
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrHtmlAttributesDirective, decorators: [{
|
|
4691
4687
|
type: Directive,
|
|
4692
4688
|
args: [{
|
|
4693
4689
|
selector: '[gtrHtmlAttr]',
|
|
@@ -4698,14 +4694,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4698
4694
|
type: Input
|
|
4699
4695
|
}] } });
|
|
4700
4696
|
|
|
4701
|
-
class
|
|
4697
|
+
class GtrTemplateIdDirective {
|
|
4702
4698
|
constructor(templateRef) {
|
|
4703
4699
|
this.templateRef = templateRef;
|
|
4704
4700
|
}
|
|
4705
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4706
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
4701
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTemplateIdDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4702
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrTemplateIdDirective, isStandalone: true, selector: "[gtrTemplateId]", inputs: { id: ["gtrTemplateId", "id"] }, ngImport: i0 }); }
|
|
4707
4703
|
}
|
|
4708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4704
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTemplateIdDirective, decorators: [{
|
|
4709
4705
|
type: Directive,
|
|
4710
4706
|
args: [{
|
|
4711
4707
|
selector: '[gtrTemplateId]',
|
|
@@ -4716,21 +4712,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4716
4712
|
args: ['gtrTemplateId']
|
|
4717
4713
|
}] } });
|
|
4718
4714
|
|
|
4719
|
-
class
|
|
4715
|
+
class GtrSharedModule {
|
|
4720
4716
|
static forRoot() {
|
|
4721
4717
|
return {
|
|
4722
|
-
ngModule:
|
|
4718
|
+
ngModule: GtrSharedModule,
|
|
4723
4719
|
};
|
|
4724
4720
|
}
|
|
4725
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4726
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4727
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4721
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4722
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrSharedModule, imports: [GtrHtmlAttributesDirective, GtrTemplateIdDirective], exports: [GtrHtmlAttributesDirective, GtrTemplateIdDirective] }); }
|
|
4723
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSharedModule }); }
|
|
4728
4724
|
}
|
|
4729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSharedModule, decorators: [{
|
|
4730
4726
|
type: NgModule,
|
|
4731
4727
|
args: [{
|
|
4732
|
-
imports: [
|
|
4733
|
-
exports: [
|
|
4728
|
+
imports: [GtrHtmlAttributesDirective, GtrTemplateIdDirective],
|
|
4729
|
+
exports: [GtrHtmlAttributesDirective, GtrTemplateIdDirective],
|
|
4734
4730
|
}]
|
|
4735
4731
|
}] });
|
|
4736
4732
|
|
|
@@ -5409,16 +5405,16 @@ const getDayPeriods = (locale = 'default', options = {}) => {
|
|
|
5409
5405
|
//
|
|
5410
5406
|
// Object.keys(formats).forEach(lang => {const period = getDayPeriods(lang); if (period.am === 'AM') return; console.log(lang, period )})
|
|
5411
5407
|
|
|
5412
|
-
class
|
|
5408
|
+
class GtrDropdownDividerDirective {
|
|
5413
5409
|
get hostClasses() {
|
|
5414
5410
|
return {
|
|
5415
5411
|
'dropdown-divider': true,
|
|
5416
5412
|
};
|
|
5417
5413
|
}
|
|
5418
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5419
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
5414
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownDividerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5415
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrDropdownDividerDirective, isStandalone: true, selector: "[gtrDropdownDivider]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
5420
5416
|
}
|
|
5421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownDividerDirective, decorators: [{
|
|
5422
5418
|
type: Directive,
|
|
5423
5419
|
args: [{
|
|
5424
5420
|
selector: '[gtrDropdownDivider]',
|
|
@@ -5429,16 +5425,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5429
5425
|
args: ['class']
|
|
5430
5426
|
}] } });
|
|
5431
5427
|
|
|
5432
|
-
class
|
|
5428
|
+
class GtrDropdownHeaderDirective {
|
|
5433
5429
|
get hostClasses() {
|
|
5434
5430
|
return {
|
|
5435
5431
|
'dropdown-header': true,
|
|
5436
5432
|
};
|
|
5437
5433
|
}
|
|
5438
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5439
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
5434
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5435
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrDropdownHeaderDirective, isStandalone: true, selector: "[gtrDropdownHeader]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
5440
5436
|
}
|
|
5441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownHeaderDirective, decorators: [{
|
|
5442
5438
|
type: Directive,
|
|
5443
5439
|
args: [{
|
|
5444
5440
|
selector: '[gtrDropdownHeader]',
|
|
@@ -5449,7 +5445,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5449
5445
|
args: ['class']
|
|
5450
5446
|
}] } });
|
|
5451
5447
|
|
|
5452
|
-
class
|
|
5448
|
+
class GtrDropdownService {
|
|
5453
5449
|
constructor() {
|
|
5454
5450
|
this.dropdownState = new BehaviorSubject({});
|
|
5455
5451
|
this.dropdownState$ = this.dropdownState.asObservable();
|
|
@@ -5457,14 +5453,14 @@ class DropdownService {
|
|
|
5457
5453
|
toggle(state) {
|
|
5458
5454
|
this.dropdownState.next(state);
|
|
5459
5455
|
}
|
|
5460
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5461
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5456
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5457
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownService }); }
|
|
5462
5458
|
}
|
|
5463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownService, decorators: [{
|
|
5464
5460
|
type: Injectable
|
|
5465
5461
|
}], ctorParameters: function () { return []; } });
|
|
5466
5462
|
|
|
5467
|
-
class
|
|
5463
|
+
class GtrDropdownMenuDirective {
|
|
5468
5464
|
constructor(elementRef, dropdownService) {
|
|
5469
5465
|
this.elementRef = elementRef;
|
|
5470
5466
|
this.dropdownService = dropdownService;
|
|
@@ -5511,17 +5507,17 @@ class DropdownMenuDirective {
|
|
|
5511
5507
|
this.dropdownStateSubscription?.unsubscribe();
|
|
5512
5508
|
}
|
|
5513
5509
|
}
|
|
5514
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5515
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
5510
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownMenuDirective, deps: [{ token: i0.ElementRef }, { token: GtrDropdownService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5511
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: GtrDropdownMenuDirective, isStandalone: true, selector: "[gtrDropdownMenu]", inputs: { alignment: "alignment", visible: "visible", dark: ["dark", "dark", booleanAttribute] }, host: { properties: { "class": "this.hostClasses", "style": "this.hostStyles" } }, exportAs: ["gtrDropdownMenu"], ngImport: i0 }); }
|
|
5516
5512
|
}
|
|
5517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownMenuDirective, decorators: [{
|
|
5518
5514
|
type: Directive,
|
|
5519
5515
|
args: [{
|
|
5520
5516
|
selector: '[gtrDropdownMenu]',
|
|
5521
5517
|
exportAs: 'gtrDropdownMenu',
|
|
5522
5518
|
standalone: true,
|
|
5523
5519
|
}]
|
|
5524
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type:
|
|
5520
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: GtrDropdownService }]; }, propDecorators: { alignment: [{
|
|
5525
5521
|
type: Input
|
|
5526
5522
|
}], visible: [{
|
|
5527
5523
|
type: Input
|
|
@@ -5537,9 +5533,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5537
5533
|
}] } });
|
|
5538
5534
|
|
|
5539
5535
|
// lightweight injection token
|
|
5540
|
-
class
|
|
5536
|
+
class GtrDropdownToken {
|
|
5541
5537
|
}
|
|
5542
|
-
class
|
|
5538
|
+
class GtrDropdownToggleDirective {
|
|
5543
5539
|
constructor(elementRef, dropdownService, dropdown) {
|
|
5544
5540
|
this.elementRef = elementRef;
|
|
5545
5541
|
this.dropdownService = dropdownService;
|
|
@@ -5588,28 +5584,28 @@ class DropdownToggleDirective {
|
|
|
5588
5584
|
this.dropdownService = this.dropdownComponent?.dropdownService;
|
|
5589
5585
|
}
|
|
5590
5586
|
}
|
|
5591
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5592
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
5587
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownToggleDirective, deps: [{ token: i0.ElementRef }, { token: GtrDropdownService }, { token: GtrDropdownToken, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5588
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrDropdownToggleDirective, isStandalone: true, selector: "[gtrDropdownToggle]", inputs: { dropdownComponent: "dropdownComponent", disabled: "disabled", caret: "caret", split: "split" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class": "this.hostClasses" } }, providers: [
|
|
5593
5589
|
{
|
|
5594
|
-
provide:
|
|
5595
|
-
useExisting: forwardRef((() =>
|
|
5590
|
+
provide: GtrDropdownToken,
|
|
5591
|
+
useExisting: forwardRef((() => GtrDropdownComponent)),
|
|
5596
5592
|
},
|
|
5597
5593
|
], exportAs: ["gtrDropdownToggle"], ngImport: i0 }); }
|
|
5598
5594
|
}
|
|
5599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownToggleDirective, decorators: [{
|
|
5600
5596
|
type: Directive,
|
|
5601
5597
|
args: [{
|
|
5602
5598
|
selector: '[gtrDropdownToggle]',
|
|
5603
5599
|
providers: [
|
|
5604
5600
|
{
|
|
5605
|
-
provide:
|
|
5606
|
-
useExisting: forwardRef((() =>
|
|
5601
|
+
provide: GtrDropdownToken,
|
|
5602
|
+
useExisting: forwardRef((() => GtrDropdownComponent)),
|
|
5607
5603
|
},
|
|
5608
5604
|
],
|
|
5609
5605
|
exportAs: 'gtrDropdownToggle',
|
|
5610
5606
|
standalone: true,
|
|
5611
5607
|
}]
|
|
5612
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type:
|
|
5608
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: GtrDropdownService }, { type: GtrDropdownToken, decorators: [{
|
|
5613
5609
|
type: Optional
|
|
5614
5610
|
}] }]; }, propDecorators: { dropdownComponent: [{
|
|
5615
5611
|
type: Input
|
|
@@ -5626,7 +5622,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5626
5622
|
type: HostListener,
|
|
5627
5623
|
args: ['click', ['$event']]
|
|
5628
5624
|
}] } });
|
|
5629
|
-
class
|
|
5625
|
+
class GtrDropdownComponent {
|
|
5630
5626
|
constructor(document, elementRef, renderer, ngZone, changeDetectorRef, dropdownService) {
|
|
5631
5627
|
this.document = document;
|
|
5632
5628
|
this.elementRef = elementRef;
|
|
@@ -5865,16 +5861,16 @@ class DropdownComponent {
|
|
|
5865
5861
|
this.listeners.fill(undefined);
|
|
5866
5862
|
this.listeners = [];
|
|
5867
5863
|
}
|
|
5868
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5869
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
5864
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownComponent, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: GtrDropdownService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5865
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrDropdownComponent, isStandalone: true, selector: "gtr-dropdown", inputs: { alignment: "alignment", autoClose: "autoClose", dark: "dark", direction: "direction", placement: "placement", popper: "popper", popperOptions: "popperOptions", variant: "variant", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "click": "onHostClick($event)" }, properties: { "class": "this.hostClasses", "style": "this.hostStyle" } }, providers: [GtrDropdownService], queries: [{ propertyName: "_toggler", first: true, predicate: GtrDropdownToggleDirective, descendants: true }, { propertyName: "_menu", first: true, predicate: GtrDropdownMenuDirective, descendants: true }, { propertyName: "_menuElementRef", first: true, predicate: GtrDropdownMenuDirective, descendants: true, read: ElementRef }], exportAs: ["gtrDropdown"], usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host-context(.dropdown,.dropup):not(.btn-group){display:block;min-width:-moz-fit-content;min-width:fit-content}:host-context(.dropstart,.dropend):not(.btn-group){display:inline-flex}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host{direction:rtl}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}\n"] }); }
|
|
5870
5866
|
}
|
|
5871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownComponent, decorators: [{
|
|
5872
5868
|
type: Component,
|
|
5873
|
-
args: [{ selector: 'gtr-dropdown', template: '<ng-content></ng-content>', exportAs: 'gtrDropdown', providers: [
|
|
5869
|
+
args: [{ selector: 'gtr-dropdown', template: '<ng-content></ng-content>', exportAs: 'gtrDropdown', providers: [GtrDropdownService], standalone: true, styles: [":host-context(.dropdown,.dropup):not(.btn-group){display:block;min-width:-moz-fit-content;min-width:fit-content}:host-context(.dropstart,.dropend):not(.btn-group){display:inline-flex}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host{direction:rtl}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}\n"] }]
|
|
5874
5870
|
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
5875
5871
|
type: Inject,
|
|
5876
5872
|
args: [DOCUMENT]
|
|
5877
|
-
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type:
|
|
5873
|
+
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: GtrDropdownService }]; }, propDecorators: { alignment: [{
|
|
5878
5874
|
type: Input
|
|
5879
5875
|
}], autoClose: [{
|
|
5880
5876
|
type: Input
|
|
@@ -5896,13 +5892,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5896
5892
|
type: Output
|
|
5897
5893
|
}], _toggler: [{
|
|
5898
5894
|
type: ContentChild,
|
|
5899
|
-
args: [
|
|
5895
|
+
args: [GtrDropdownToggleDirective]
|
|
5900
5896
|
}], _menu: [{
|
|
5901
5897
|
type: ContentChild,
|
|
5902
|
-
args: [
|
|
5898
|
+
args: [GtrDropdownMenuDirective]
|
|
5903
5899
|
}], _menuElementRef: [{
|
|
5904
5900
|
type: ContentChild,
|
|
5905
|
-
args: [
|
|
5901
|
+
args: [GtrDropdownMenuDirective, { read: ElementRef }]
|
|
5906
5902
|
}], hostClasses: [{
|
|
5907
5903
|
type: HostBinding,
|
|
5908
5904
|
args: ['class']
|
|
@@ -5914,7 +5910,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5914
5910
|
args: ['click', ['$event']]
|
|
5915
5911
|
}] } });
|
|
5916
5912
|
|
|
5917
|
-
class
|
|
5913
|
+
class GtrDropdownItemDirective {
|
|
5918
5914
|
constructor(dropdownService, dropdown) {
|
|
5919
5915
|
this.dropdownService = dropdownService;
|
|
5920
5916
|
this.dropdown = dropdown;
|
|
@@ -5963,17 +5959,17 @@ class DropdownItemDirective {
|
|
|
5963
5959
|
}
|
|
5964
5960
|
}
|
|
5965
5961
|
}
|
|
5966
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5967
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
5962
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownItemDirective, deps: [{ token: GtrDropdownService }, { token: GtrDropdownComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5963
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrDropdownItemDirective, isStandalone: true, selector: "[gtrDropdownItem]", inputs: { active: "active", autoClose: "autoClose", disabled: "disabled", tabIndex: "tabIndex" }, host: { listeners: { "click": "onClick($event)", "keyup": "onKeyUp($event)" }, properties: { "attr.aria-current": "this.ariaCurrent", "class": "this.hostClasses", "attr.tabindex": "this.tabIndex", "attr.aria-disabled": "this.isDisabled" } }, exportAs: ["gtrDropdownItem"], ngImport: i0 }); }
|
|
5968
5964
|
}
|
|
5969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
5965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownItemDirective, decorators: [{
|
|
5970
5966
|
type: Directive,
|
|
5971
5967
|
args: [{
|
|
5972
5968
|
selector: '[gtrDropdownItem]',
|
|
5973
5969
|
exportAs: 'gtrDropdownItem',
|
|
5974
5970
|
standalone: true,
|
|
5975
5971
|
}]
|
|
5976
|
-
}], ctorParameters: function () { return [{ type:
|
|
5972
|
+
}], ctorParameters: function () { return [{ type: GtrDropdownService }, { type: GtrDropdownComponent, decorators: [{
|
|
5977
5973
|
type: Optional
|
|
5978
5974
|
}] }]; }, propDecorators: { active: [{
|
|
5979
5975
|
type: Input
|
|
@@ -6003,16 +5999,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6003
5999
|
args: ['keyup', ['$event']]
|
|
6004
6000
|
}] } });
|
|
6005
6001
|
|
|
6006
|
-
class
|
|
6002
|
+
class GtrDropdownItemPlainDirective {
|
|
6007
6003
|
get hostClasses() {
|
|
6008
6004
|
return {
|
|
6009
6005
|
'dropdown-item-text': true,
|
|
6010
6006
|
};
|
|
6011
6007
|
}
|
|
6012
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6013
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6008
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownItemPlainDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6009
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrDropdownItemPlainDirective, isStandalone: true, selector: "[gtrDropdownItemPlain]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6014
6010
|
}
|
|
6015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownItemPlainDirective, decorators: [{
|
|
6016
6012
|
type: Directive,
|
|
6017
6013
|
args: [{
|
|
6018
6014
|
selector: '[gtrDropdownItemPlain]',
|
|
@@ -6023,7 +6019,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6023
6019
|
args: ['class']
|
|
6024
6020
|
}] } });
|
|
6025
6021
|
|
|
6026
|
-
class
|
|
6022
|
+
class GtrDropdownCloseDirective {
|
|
6027
6023
|
constructor(dropdownService, dropdown) {
|
|
6028
6024
|
this.dropdownService = dropdownService;
|
|
6029
6025
|
this.dropdown = dropdown;
|
|
@@ -6061,18 +6057,18 @@ class DropdownCloseDirective {
|
|
|
6061
6057
|
});
|
|
6062
6058
|
}
|
|
6063
6059
|
}
|
|
6064
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6065
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6060
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownCloseDirective, deps: [{ token: GtrDropdownService }, { token: GtrDropdownComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6061
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrDropdownCloseDirective, isStandalone: true, selector: "[gtrDropdownClose]", inputs: { disabled: "disabled", dropdownComponent: "dropdownComponent", tabIndex: "tabIndex" }, host: { listeners: { "click": "onClick($event)", "keyup": "onKeyUp($event)" }, properties: { "class": "this.hostClasses", "attr.tabindex": "this.tabIndex", "attr.aria-disabled": "this.isDisabled" } }, providers: [GtrDropdownService], exportAs: ["gtrDropdownClose"], ngImport: i0 }); }
|
|
6066
6062
|
}
|
|
6067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownCloseDirective, decorators: [{
|
|
6068
6064
|
type: Directive,
|
|
6069
6065
|
args: [{
|
|
6070
6066
|
selector: '[gtrDropdownClose]',
|
|
6071
6067
|
exportAs: 'gtrDropdownClose',
|
|
6072
6068
|
standalone: true,
|
|
6073
|
-
providers: [
|
|
6069
|
+
providers: [GtrDropdownService],
|
|
6074
6070
|
}]
|
|
6075
|
-
}], ctorParameters: function () { return [{ type:
|
|
6071
|
+
}], ctorParameters: function () { return [{ type: GtrDropdownService }, { type: GtrDropdownComponent, decorators: [{
|
|
6076
6072
|
type: Optional
|
|
6077
6073
|
}] }]; }, propDecorators: { disabled: [{
|
|
6078
6074
|
type: Input
|
|
@@ -6097,53 +6093,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6097
6093
|
args: ['keyup', ['$event']]
|
|
6098
6094
|
}] } });
|
|
6099
6095
|
|
|
6100
|
-
class
|
|
6101
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6102
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6096
|
+
class GtrDropdownModule {
|
|
6097
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6098
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownModule, imports: [GtrDropdownComponent,
|
|
6099
|
+
GtrDropdownCloseDirective,
|
|
6100
|
+
GtrDropdownDividerDirective,
|
|
6101
|
+
GtrDropdownHeaderDirective,
|
|
6102
|
+
GtrDropdownItemDirective,
|
|
6103
|
+
GtrDropdownItemPlainDirective,
|
|
6104
|
+
GtrDropdownMenuDirective,
|
|
6105
|
+
GtrDropdownToggleDirective], exports: [GtrDropdownComponent,
|
|
6106
|
+
GtrDropdownCloseDirective,
|
|
6107
|
+
GtrDropdownDividerDirective,
|
|
6108
|
+
GtrDropdownHeaderDirective,
|
|
6109
|
+
GtrDropdownItemDirective,
|
|
6110
|
+
GtrDropdownItemPlainDirective,
|
|
6111
|
+
GtrDropdownMenuDirective,
|
|
6112
|
+
GtrDropdownToggleDirective] }); }
|
|
6113
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownModule, providers: [GtrDropdownService] }); }
|
|
6118
6114
|
}
|
|
6119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDropdownModule, decorators: [{
|
|
6120
6116
|
type: NgModule,
|
|
6121
6117
|
args: [{
|
|
6122
6118
|
imports: [
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6119
|
+
GtrDropdownComponent,
|
|
6120
|
+
GtrDropdownCloseDirective,
|
|
6121
|
+
GtrDropdownDividerDirective,
|
|
6122
|
+
GtrDropdownHeaderDirective,
|
|
6123
|
+
GtrDropdownItemDirective,
|
|
6124
|
+
GtrDropdownItemPlainDirective,
|
|
6125
|
+
GtrDropdownMenuDirective,
|
|
6126
|
+
GtrDropdownToggleDirective,
|
|
6131
6127
|
],
|
|
6132
6128
|
exports: [
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6129
|
+
GtrDropdownComponent,
|
|
6130
|
+
GtrDropdownCloseDirective,
|
|
6131
|
+
GtrDropdownDividerDirective,
|
|
6132
|
+
GtrDropdownHeaderDirective,
|
|
6133
|
+
GtrDropdownItemDirective,
|
|
6134
|
+
GtrDropdownItemPlainDirective,
|
|
6135
|
+
GtrDropdownMenuDirective,
|
|
6136
|
+
GtrDropdownToggleDirective,
|
|
6141
6137
|
],
|
|
6142
|
-
providers: [
|
|
6138
|
+
providers: [GtrDropdownService],
|
|
6143
6139
|
}]
|
|
6144
6140
|
}] });
|
|
6145
6141
|
|
|
6146
|
-
class
|
|
6142
|
+
class GtrFormDirective {
|
|
6147
6143
|
constructor() {
|
|
6148
6144
|
/**
|
|
6149
6145
|
* Mark a form as validated. If you set it `true`, all validation styles will be applied to the form. [docs]
|
|
@@ -6157,10 +6153,10 @@ class FormDirective {
|
|
|
6157
6153
|
'was-validated': this.validated,
|
|
6158
6154
|
};
|
|
6159
6155
|
}
|
|
6160
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6161
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
6156
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6157
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: GtrFormDirective, isStandalone: true, selector: "form[gtrForm]", inputs: { validated: ["validated", "validated", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6162
6158
|
}
|
|
6163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormDirective, decorators: [{
|
|
6164
6160
|
type: Directive,
|
|
6165
6161
|
args: [{
|
|
6166
6162
|
selector: 'form[gtrForm]',
|
|
@@ -6174,7 +6170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6174
6170
|
args: ['class']
|
|
6175
6171
|
}] } });
|
|
6176
6172
|
|
|
6177
|
-
class
|
|
6173
|
+
class GtrFormFeedbackComponent {
|
|
6178
6174
|
constructor() {
|
|
6179
6175
|
/**
|
|
6180
6176
|
* If your form layout allows it, you can display validation feedback in a styled tooltip.
|
|
@@ -6190,10 +6186,10 @@ class FormFeedbackComponent {
|
|
|
6190
6186
|
'invalid-tooltip': this.valid !== true && this.tooltip,
|
|
6191
6187
|
};
|
|
6192
6188
|
}
|
|
6193
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6194
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
6189
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormFeedbackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6190
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrFormFeedbackComponent, isStandalone: true, selector: "gtr-form-feedback", inputs: { tooltip: ["tooltip", "tooltip", booleanAttribute], valid: "valid" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
6195
6191
|
}
|
|
6196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormFeedbackComponent, decorators: [{
|
|
6197
6193
|
type: Component,
|
|
6198
6194
|
args: [{
|
|
6199
6195
|
selector: 'gtr-form-feedback',
|
|
@@ -6210,7 +6206,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6210
6206
|
args: ['class']
|
|
6211
6207
|
}] } });
|
|
6212
6208
|
|
|
6213
|
-
class
|
|
6209
|
+
class GtrInputGroupComponent {
|
|
6214
6210
|
get hostClasses() {
|
|
6215
6211
|
return {
|
|
6216
6212
|
'input-group': true,
|
|
@@ -6223,10 +6219,10 @@ class InputGroupComponent {
|
|
|
6223
6219
|
*/
|
|
6224
6220
|
this.sizing = '';
|
|
6225
6221
|
}
|
|
6226
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6227
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6222
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6223
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputGroupComponent, isStandalone: true, selector: "gtr-input-group", inputs: { sizing: "sizing" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
|
|
6228
6224
|
}
|
|
6229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputGroupComponent, decorators: [{
|
|
6230
6226
|
type: Component,
|
|
6231
6227
|
args: [{
|
|
6232
6228
|
selector: 'gtr-input-group',
|
|
@@ -6240,7 +6236,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6240
6236
|
args: ['class']
|
|
6241
6237
|
}] } });
|
|
6242
6238
|
|
|
6243
|
-
class
|
|
6239
|
+
class GtrFormSelectDirective {
|
|
6244
6240
|
get hostClasses() {
|
|
6245
6241
|
return {
|
|
6246
6242
|
'form-select': true,
|
|
@@ -6255,10 +6251,10 @@ class FormSelectDirective {
|
|
|
6255
6251
|
*/
|
|
6256
6252
|
this.sizing = '';
|
|
6257
6253
|
}
|
|
6258
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6259
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6254
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormSelectDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6255
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrFormSelectDirective, isStandalone: true, selector: "select[gtrSelect]", inputs: { sizing: "sizing", valid: "valid" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6260
6256
|
}
|
|
6261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormSelectDirective, decorators: [{
|
|
6262
6258
|
type: Directive,
|
|
6263
6259
|
args: [{
|
|
6264
6260
|
selector: 'select[gtrSelect]',
|
|
@@ -6273,7 +6269,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6273
6269
|
args: ['class']
|
|
6274
6270
|
}] } });
|
|
6275
6271
|
|
|
6276
|
-
class
|
|
6272
|
+
class GtrFormLabelDirective {
|
|
6277
6273
|
get hostClasses() {
|
|
6278
6274
|
return {
|
|
6279
6275
|
'form-label': true,
|
|
@@ -6292,10 +6288,10 @@ class FormLabelDirective {
|
|
|
6292
6288
|
*/
|
|
6293
6289
|
this.sizing = '';
|
|
6294
6290
|
}
|
|
6295
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6296
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6291
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6292
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrFormLabelDirective, isStandalone: true, selector: "[gtrLabel]", inputs: { col: ["gtrLabel", "col"], sizing: "sizing" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6297
6293
|
}
|
|
6298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormLabelDirective, decorators: [{
|
|
6299
6295
|
type: Directive,
|
|
6300
6296
|
args: [{
|
|
6301
6297
|
selector: '[gtrLabel]',
|
|
@@ -6311,16 +6307,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6311
6307
|
args: ['class']
|
|
6312
6308
|
}] } });
|
|
6313
6309
|
|
|
6314
|
-
class
|
|
6310
|
+
class GtrFormCheckLabelDirective {
|
|
6315
6311
|
get hostClasses() {
|
|
6316
6312
|
return {
|
|
6317
6313
|
'form-check-label': true,
|
|
6318
6314
|
};
|
|
6319
6315
|
}
|
|
6320
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6321
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6316
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormCheckLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6317
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrFormCheckLabelDirective, isStandalone: true, selector: "label[gtrFormCheckLabel]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6322
6318
|
}
|
|
6323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormCheckLabelDirective, decorators: [{
|
|
6324
6320
|
type: Directive,
|
|
6325
6321
|
args: [{
|
|
6326
6322
|
selector: 'label[gtrFormCheckLabel]',
|
|
@@ -6331,7 +6327,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6331
6327
|
args: ['class']
|
|
6332
6328
|
}] } });
|
|
6333
6329
|
|
|
6334
|
-
class
|
|
6330
|
+
class GtrFormCheckComponent {
|
|
6335
6331
|
constructor() {
|
|
6336
6332
|
/**
|
|
6337
6333
|
* Group checkboxes or radios on the same horizontal row.
|
|
@@ -6375,10 +6371,10 @@ class FormCheckComponent {
|
|
|
6375
6371
|
ngAfterContentInit() {
|
|
6376
6372
|
this.#formCheckClass = !!this.formCheckLabel;
|
|
6377
6373
|
}
|
|
6378
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6379
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
6374
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormCheckComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6375
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrFormCheckComponent, isStandalone: true, selector: "gtr-form-check", inputs: { inline: ["inline", "inline", booleanAttribute], reverse: ["reverse", "reverse", booleanAttribute], sizing: "sizing", switch: ["switch", "switch", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, queries: [{ propertyName: "formCheckLabel", first: true, predicate: GtrFormCheckLabelDirective, descendants: true }], exportAs: ["gtrFormCheck"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
6380
6376
|
}
|
|
6381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormCheckComponent, decorators: [{
|
|
6382
6378
|
type: Component,
|
|
6383
6379
|
args: [{
|
|
6384
6380
|
selector: 'gtr-form-check',
|
|
@@ -6402,10 +6398,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6402
6398
|
args: ['class']
|
|
6403
6399
|
}], formCheckLabel: [{
|
|
6404
6400
|
type: ContentChild,
|
|
6405
|
-
args: [
|
|
6401
|
+
args: [GtrFormCheckLabelDirective]
|
|
6406
6402
|
}] } });
|
|
6407
6403
|
|
|
6408
|
-
class
|
|
6404
|
+
class GtrFormCheckInputDirective {
|
|
6409
6405
|
/**
|
|
6410
6406
|
* Set component indeterminate state.
|
|
6411
6407
|
* @type boolean
|
|
@@ -6441,10 +6437,10 @@ class FormCheckInputDirective {
|
|
|
6441
6437
|
this.type = 'checkbox';
|
|
6442
6438
|
this._indeterminate = false;
|
|
6443
6439
|
}
|
|
6444
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6445
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6440
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormCheckInputDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6441
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrFormCheckInputDirective, isStandalone: true, selector: "input[gtrFormCheckInput]", inputs: { type: "type", indeterminate: "indeterminate", valid: "valid" }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6446
6442
|
}
|
|
6447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormCheckInputDirective, decorators: [{
|
|
6448
6444
|
type: Directive,
|
|
6449
6445
|
args: [{
|
|
6450
6446
|
selector: 'input[gtrFormCheckInput]',
|
|
@@ -6464,7 +6460,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6464
6460
|
args: ['class']
|
|
6465
6461
|
}] } });
|
|
6466
6462
|
|
|
6467
|
-
class
|
|
6463
|
+
class GtrFormControlDirective {
|
|
6468
6464
|
constructor(hostElement) {
|
|
6469
6465
|
this.hostElement = hostElement;
|
|
6470
6466
|
/**
|
|
@@ -6502,10 +6498,10 @@ class FormControlDirective {
|
|
|
6502
6498
|
console.warn(`Gettrx [gtrFormControl] works with '<input>' and '<texarea>' - not with '<${hostTag}>'`);
|
|
6503
6499
|
}
|
|
6504
6500
|
}
|
|
6505
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6506
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
6501
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormControlDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6502
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: GtrFormControlDirective, isStandalone: true, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: { sizing: "sizing", valid: "valid", type: "type", plaintext: ["plaintext", "plaintext", booleanAttribute] }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6507
6503
|
}
|
|
6508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormControlDirective, decorators: [{
|
|
6509
6505
|
type: Directive,
|
|
6510
6506
|
args: [{
|
|
6511
6507
|
selector: 'input[gtrFormControl], textarea[gtrFormControl]',
|
|
@@ -6528,16 +6524,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6528
6524
|
args: ['class']
|
|
6529
6525
|
}] } });
|
|
6530
6526
|
|
|
6531
|
-
class
|
|
6527
|
+
class GtrFormTextDirective {
|
|
6532
6528
|
get hostClasses() {
|
|
6533
6529
|
return {
|
|
6534
6530
|
'form-text': true,
|
|
6535
6531
|
};
|
|
6536
6532
|
}
|
|
6537
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6538
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6533
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6534
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrFormTextDirective, isStandalone: true, selector: "[gtrFormText]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6539
6535
|
}
|
|
6540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormTextDirective, decorators: [{
|
|
6541
6537
|
type: Directive,
|
|
6542
6538
|
args: [{
|
|
6543
6539
|
selector: '[gtrFormText]',
|
|
@@ -6548,7 +6544,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6548
6544
|
args: ['class']
|
|
6549
6545
|
}] } });
|
|
6550
6546
|
|
|
6551
|
-
class
|
|
6547
|
+
class GtrFormFloatingDirective {
|
|
6552
6548
|
constructor() {
|
|
6553
6549
|
/**
|
|
6554
6550
|
* Enable floating labels
|
|
@@ -6561,10 +6557,10 @@ class FormFloatingDirective {
|
|
|
6561
6557
|
'form-floating': this.floating,
|
|
6562
6558
|
};
|
|
6563
6559
|
}
|
|
6564
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6565
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
6560
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormFloatingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6561
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: GtrFormFloatingDirective, isStandalone: true, selector: "[gtrFormFloating]", inputs: { floating: ["gtrFormFloating", "floating", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6566
6562
|
}
|
|
6567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormFloatingDirective, decorators: [{
|
|
6568
6564
|
type: Directive,
|
|
6569
6565
|
args: [{
|
|
6570
6566
|
selector: '[gtrFormFloating]',
|
|
@@ -6578,17 +6574,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6578
6574
|
args: ['class']
|
|
6579
6575
|
}] } });
|
|
6580
6576
|
|
|
6581
|
-
class
|
|
6577
|
+
class GtrInputGroupTextDirective {
|
|
6582
6578
|
get hostClasses() {
|
|
6583
6579
|
return {
|
|
6584
6580
|
'input-group-text': true,
|
|
6585
6581
|
};
|
|
6586
6582
|
}
|
|
6587
6583
|
constructor() { }
|
|
6588
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6589
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6584
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputGroupTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6585
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputGroupTextDirective, isStandalone: true, selector: "[gtrInputGroupText]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
6590
6586
|
}
|
|
6591
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputGroupTextDirective, decorators: [{
|
|
6592
6588
|
type: Directive,
|
|
6593
6589
|
args: [{
|
|
6594
6590
|
selector: '[gtrInputGroupText]',
|
|
@@ -6599,75 +6595,75 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6599
6595
|
args: ['class']
|
|
6600
6596
|
}] } });
|
|
6601
6597
|
|
|
6602
|
-
class
|
|
6603
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6604
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6598
|
+
class GtrFormModule {
|
|
6599
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6600
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrFormModule, imports: [GtrFormDirective,
|
|
6601
|
+
GtrFormCheckComponent,
|
|
6602
|
+
GtrFormCheckLabelDirective,
|
|
6603
|
+
GtrFormCheckInputDirective,
|
|
6604
|
+
GtrFormControlDirective,
|
|
6605
|
+
GtrFormFeedbackComponent,
|
|
6606
|
+
GtrFormFloatingDirective,
|
|
6607
|
+
GtrFormLabelDirective,
|
|
6608
|
+
GtrFormSelectDirective,
|
|
6609
|
+
GtrFormTextDirective,
|
|
6610
|
+
GtrInputGroupComponent,
|
|
6611
|
+
GtrInputGroupTextDirective], exports: [GtrFormDirective,
|
|
6612
|
+
GtrFormCheckComponent,
|
|
6613
|
+
GtrFormCheckLabelDirective,
|
|
6614
|
+
GtrFormCheckInputDirective,
|
|
6615
|
+
GtrFormControlDirective,
|
|
6616
|
+
GtrFormFeedbackComponent,
|
|
6617
|
+
GtrFormFloatingDirective,
|
|
6618
|
+
GtrFormLabelDirective,
|
|
6619
|
+
GtrFormSelectDirective,
|
|
6620
|
+
GtrFormTextDirective,
|
|
6621
|
+
GtrInputGroupComponent,
|
|
6622
|
+
GtrInputGroupTextDirective] }); }
|
|
6623
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormModule }); }
|
|
6628
6624
|
}
|
|
6629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormModule, decorators: [{
|
|
6630
6626
|
type: NgModule,
|
|
6631
6627
|
args: [{
|
|
6632
6628
|
imports: [
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6629
|
+
GtrFormDirective,
|
|
6630
|
+
GtrFormCheckComponent,
|
|
6631
|
+
GtrFormCheckLabelDirective,
|
|
6632
|
+
GtrFormCheckInputDirective,
|
|
6633
|
+
GtrFormControlDirective,
|
|
6634
|
+
GtrFormFeedbackComponent,
|
|
6635
|
+
GtrFormFloatingDirective,
|
|
6636
|
+
GtrFormLabelDirective,
|
|
6637
|
+
GtrFormSelectDirective,
|
|
6638
|
+
GtrFormTextDirective,
|
|
6639
|
+
GtrInputGroupComponent,
|
|
6640
|
+
GtrInputGroupTextDirective,
|
|
6645
6641
|
],
|
|
6646
6642
|
exports: [
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6643
|
+
GtrFormDirective,
|
|
6644
|
+
GtrFormCheckComponent,
|
|
6645
|
+
GtrFormCheckLabelDirective,
|
|
6646
|
+
GtrFormCheckInputDirective,
|
|
6647
|
+
GtrFormControlDirective,
|
|
6648
|
+
GtrFormFeedbackComponent,
|
|
6649
|
+
GtrFormFloatingDirective,
|
|
6650
|
+
GtrFormLabelDirective,
|
|
6651
|
+
GtrFormSelectDirective,
|
|
6652
|
+
GtrFormTextDirective,
|
|
6653
|
+
GtrInputGroupComponent,
|
|
6654
|
+
GtrInputGroupTextDirective,
|
|
6659
6655
|
],
|
|
6660
6656
|
}]
|
|
6661
6657
|
}] });
|
|
6662
6658
|
|
|
6663
|
-
class
|
|
6659
|
+
class GtrTimeElementDirective {
|
|
6664
6660
|
constructor(elementRef) {
|
|
6665
6661
|
this.elementRef = elementRef;
|
|
6666
6662
|
}
|
|
6667
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6668
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6663
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimeElementDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6664
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrTimeElementDirective, isStandalone: true, selector: "[gtrTimeElement]", inputs: { gtrTimeElement: "gtrTimeElement" }, exportAs: ["gtrTimeElement"], ngImport: i0 }); }
|
|
6669
6665
|
}
|
|
6670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimeElementDirective, decorators: [{
|
|
6671
6667
|
type: Directive,
|
|
6672
6668
|
args: [{
|
|
6673
6669
|
selector: '[gtrTimeElement]',
|
|
@@ -6677,7 +6673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6677
6673
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { gtrTimeElement: [{
|
|
6678
6674
|
type: Input
|
|
6679
6675
|
}] } });
|
|
6680
|
-
class
|
|
6676
|
+
class GtrTimePickerRollColComponent {
|
|
6681
6677
|
constructor(elementRef) {
|
|
6682
6678
|
this.elementRef = elementRef;
|
|
6683
6679
|
this.init = true;
|
|
@@ -6737,12 +6733,12 @@ class TimePickerRollColComponent {
|
|
|
6737
6733
|
trackByElement(index, element) {
|
|
6738
6734
|
return element.value;
|
|
6739
6735
|
}
|
|
6740
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6741
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6736
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerRollColComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6737
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTimePickerRollColComponent, 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: GtrTimeElementDirective, 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: GtrTimeElementDirective, selector: "[gtrTimeElement]", inputs: ["gtrTimeElement"], exportAs: ["gtrTimeElement"] }] }); }
|
|
6742
6738
|
}
|
|
6743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerRollColComponent, decorators: [{
|
|
6744
6740
|
type: Component,
|
|
6745
|
-
args: [{ selector: 'gtr-time-picker-roll-col', exportAs: 'gtrTimePickerRollCol', standalone: true, imports: [CommonModule,
|
|
6741
|
+
args: [{ selector: 'gtr-time-picker-roll-col', exportAs: 'gtrTimePickerRollCol', standalone: true, imports: [CommonModule, GtrTimeElementDirective], 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" }]
|
|
6746
6742
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disabled: [{
|
|
6747
6743
|
type: Input
|
|
6748
6744
|
}], elements: [{
|
|
@@ -6760,17 +6756,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6760
6756
|
args: ['class']
|
|
6761
6757
|
}], timeElements: [{
|
|
6762
6758
|
type: ViewChildren,
|
|
6763
|
-
args: [
|
|
6759
|
+
args: [GtrTimeElementDirective]
|
|
6764
6760
|
}] } });
|
|
6765
6761
|
|
|
6766
|
-
class
|
|
6762
|
+
class GtrDayPeriodElementDirective {
|
|
6767
6763
|
constructor(elementRef) {
|
|
6768
6764
|
this.elementRef = elementRef;
|
|
6769
6765
|
}
|
|
6770
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6771
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6766
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDayPeriodElementDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6767
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GtrDayPeriodElementDirective, isStandalone: true, selector: "[gtrDayPeriodElement]", inputs: { gtrDayPeriodElement: "gtrDayPeriodElement" }, exportAs: ["gtrDayPeriodElement"], ngImport: i0 }); }
|
|
6772
6768
|
}
|
|
6773
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDayPeriodElementDirective, decorators: [{
|
|
6774
6770
|
type: Directive,
|
|
6775
6771
|
args: [{
|
|
6776
6772
|
selector: '[gtrDayPeriodElement]',
|
|
@@ -6780,7 +6776,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6780
6776
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { gtrDayPeriodElement: [{
|
|
6781
6777
|
type: Input
|
|
6782
6778
|
}] } });
|
|
6783
|
-
class
|
|
6779
|
+
class GtrTimePickerRollAmPmComponent {
|
|
6784
6780
|
constructor(elementRef) {
|
|
6785
6781
|
this.elementRef = elementRef;
|
|
6786
6782
|
this.init = true;
|
|
@@ -6839,12 +6835,12 @@ class TimePickerRollAmPmComponent {
|
|
|
6839
6835
|
trackByElement(index, element) {
|
|
6840
6836
|
return element.value;
|
|
6841
6837
|
}
|
|
6842
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6843
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
6838
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerRollAmPmComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6839
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTimePickerRollAmPmComponent, isStandalone: true, selector: "gtr-time-picker-roll-am-pm", inputs: { disabled: "disabled", elements: "elements", onClick: "onClick", selected: "selected", refresh: "refresh" }, outputs: { selectedChange: "selectedChange" }, host: { properties: { "class": "this.hostClasses" } }, viewQueries: [{ propertyName: "dayPeriodElements", predicate: GtrDayPeriodElementDirective, descendants: true }], 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 [gtrDayPeriodElement]=\"element\"\n [ngClass]=\"{'time-picker-roll-cell': true, selected: element.value === selected, disabled: element.disabled}\"\n [ngStyle]=\"{'width': 'fit-content'}\"\n role=\"button\">\n {{element.label}}\n</div>\n\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: GtrDayPeriodElementDirective, selector: "[gtrDayPeriodElement]", inputs: ["gtrDayPeriodElement"], exportAs: ["gtrDayPeriodElement"] }] }); }
|
|
6844
6840
|
}
|
|
6845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
6841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerRollAmPmComponent, decorators: [{
|
|
6846
6842
|
type: Component,
|
|
6847
|
-
args: [{ selector: 'gtr-time-picker-roll-am-pm', standalone: true, imports: [CommonModule,
|
|
6843
|
+
args: [{ selector: 'gtr-time-picker-roll-am-pm', standalone: true, imports: [CommonModule, GtrDayPeriodElementDirective], template: "<div (click)=\"handleElementClick($event, element)\"\n *ngFor=\"let element of elements; index as i; trackBy: trackByElement\"\n [attr.disabled]=\"element.disabled || null\"\n [gtrDayPeriodElement]=\"element\"\n [ngClass]=\"{'time-picker-roll-cell': true, selected: element.value === selected, disabled: element.disabled}\"\n [ngStyle]=\"{'width': 'fit-content'}\"\n role=\"button\">\n {{element.label}}\n</div>\n\n" }]
|
|
6848
6844
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disabled: [{
|
|
6849
6845
|
type: Input
|
|
6850
6846
|
}], elements: [{
|
|
@@ -6862,10 +6858,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6862
6858
|
args: ['class']
|
|
6863
6859
|
}], dayPeriodElements: [{
|
|
6864
6860
|
type: ViewChildren,
|
|
6865
|
-
args: [
|
|
6861
|
+
args: [GtrDayPeriodElementDirective]
|
|
6866
6862
|
}] } });
|
|
6867
6863
|
|
|
6868
|
-
class
|
|
6864
|
+
class GtrTimePickerComponent {
|
|
6869
6865
|
constructor() {
|
|
6870
6866
|
this._cleaner = true;
|
|
6871
6867
|
/**
|
|
@@ -7287,16 +7283,16 @@ class TimePickerComponent {
|
|
|
7287
7283
|
}
|
|
7288
7284
|
this.dropdownRef?.nativeElement?.classList.add('show');
|
|
7289
7285
|
}
|
|
7290
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
7291
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
7286
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7287
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTimePickerComponent, isStandalone: true, selector: "gtr-time-picker", inputs: { cleaner: "cleaner", dateTimeFormatOptions: "dateTimeFormatOptions", disabled: "disabled", filterHours: "filterHours", filterMinutes: "filterMinutes", filterSeconds: "filterSeconds", indicator: "indicator", inputReadOnly: "inputReadOnly", locale: "locale", placeholder: "placeholder", seconds: "seconds", size: "size", time: "time", variant: "variant", valid: "valid", visible: "visible" }, outputs: { timeChange: "timeChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
7292
7288
|
{
|
|
7293
7289
|
provide: NG_VALUE_ACCESSOR,
|
|
7294
|
-
useExisting: forwardRef((() =>
|
|
7290
|
+
useExisting: forwardRef((() => GtrTimePickerComponent)),
|
|
7295
7291
|
multi: true,
|
|
7296
7292
|
},
|
|
7297
|
-
], queries: [{ propertyName: "contentTemplates", predicate:
|
|
7293
|
+
], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "dropdownRef", first: true, predicate: GtrDropdownComponent, descendants: true, read: ElementRef }], exportAs: ["cTimePicker"], usesOnChanges: true, ngImport: i0, template: "<div class=\"date-picker-timepickers\" *ngIf=\"variant==='select'\">\n <div class=\"picker time-picker\">\n <div [formGroup]=\"selectTime\" class=\"time-picker-body\" [ngClass]=\"timePickerClasses\">\n <span class=\"time-picker-inline-icon\"></span>\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectHours\"\n (ngModelChange)=\"handleSelectHoursChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let hour of listOfHours12; index as i; trackBy: trackByHour\" [ngValue]=\"hour.value\"\n [attr.disabled]=\"hour.disabled || null\">{{hour.label}}</option>\n </select>\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectMinutes\"\n (ngModelChange)=\"handleSelectMinutesChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let minute of listOfMinutes\" [ngValue]=\"minute.value\"\n [attr.disabled]=\"minute.disabled || null\">{{minute.label}}</option>\n </select>\n <ng-template [ngIf]=\"seconds\">\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectSeconds\"\n (ngModelChange)=\"handleSelectSecondsChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let second of listOfSeconds\" [ngValue]=\"second.value\"\n [attr.disabled]=\"second.disabled || null\">{{second.label}}</option>\n </select>\n </ng-template>\n <ng-template [ngIf]=\"hour12\">\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectDayPeriod\"\n (ngModelChange)=\"handleSelectDayPeriodChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let dayPeriod of dayPeriods\" [ngValue]=\"dayPeriod.value\"\n class=\"time-picker-roll-cell\">{{dayPeriod.label}}</option>\n </select>\n </ng-template>\n </div>\n </div>\n</div>\n\n<gtr-dropdown #dropdown=\"gtrDropdown\" [autoClose]=\"'outside'\" class=\"time-picker picker\" [ngClass]=\"timePickerClasses\"\n *ngIf=\"variant==='roll'\" [visible]=\"visible\">\n <gtr-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n gtrDropdownToggle\n class=\"picker-input-group\">\n <input (blur)=\"handleBlur($event);\"\n (change)=\"handleTimeInputChange($event)\"\n (focus)=\"handleFocus($event)\"\n [formControl]=\"timeInput\"\n [placeholder]=\"placeholder\"\n gtrFormControl\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n [attr.pattern]=\"hour12 ? '(((0[1-9])|(1[0-2])):([0-5])([0-9])\\\\\\\\s(A|P)M)' : '([01]?[0-9]|2[0-3]):[0-5][0-9]'\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" gtrInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon time-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && time && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon time-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </gtr-input-group>\n <div gtrDropdownMenu #dropdownMenu=\"gtrDropdownMenu\">\n <div class=\"time-picker-body time-picker-roll\" style=\"position: relative;\">\n <gtr-time-picker-roll-col\n [elements]=\"listOfHours12\"\n [selected]=\"hour\"\n (selectedChange)=\"handleSelectHoursChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n [elements]=\"listOfMinutes\"\n [selected]=\"minute\"\n (selectedChange)=\"handleSelectMinutesChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n *ngIf=\"seconds\"\n [elements]=\"listOfSeconds\"\n [selected]=\"second\"\n (selectedChange)=\"handleSelectSecondsChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-am-pm\n *ngIf=\"hour12\" [elements]=\"dayPeriods\"\n [selected]=\"dayPeriod\"\n (selectedChange)=\"handleSelectDayPeriodChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-am-pm>\n </div>\n <div *ngIf=\"templates?.timePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.timePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n</gtr-dropdown>\n\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrFormSelectDirective, selector: "select[gtrSelect]", inputs: ["sizing", "valid"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrTimePickerRollColComponent, selector: "gtr-time-picker-roll-col", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"], exportAs: ["gtrTimePickerRollCol"] }, { kind: "component", type: GtrTimePickerRollAmPmComponent, selector: "gtr-time-picker-roll-am-pm", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"] }] }); }
|
|
7298
7294
|
}
|
|
7299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
7295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerComponent, decorators: [{
|
|
7300
7296
|
type: Component,
|
|
7301
7297
|
args: [{ selector: 'gtr-time-picker', exportAs: 'cTimePicker', standalone: true, imports: [
|
|
7302
7298
|
NgClass,
|
|
@@ -7304,19 +7300,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
7304
7300
|
NgForOf,
|
|
7305
7301
|
NgTemplateOutlet,
|
|
7306
7302
|
ReactiveFormsModule,
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7303
|
+
GtrDropdownComponent,
|
|
7304
|
+
GtrDropdownToggleDirective,
|
|
7305
|
+
GtrDropdownMenuDirective,
|
|
7306
|
+
GtrFormControlDirective,
|
|
7307
|
+
GtrFormSelectDirective,
|
|
7308
|
+
GtrInputGroupComponent,
|
|
7309
|
+
GtrInputGroupTextDirective,
|
|
7310
|
+
GtrTimePickerRollColComponent,
|
|
7311
|
+
GtrTimePickerRollAmPmComponent,
|
|
7316
7312
|
], providers: [
|
|
7317
7313
|
{
|
|
7318
7314
|
provide: NG_VALUE_ACCESSOR,
|
|
7319
|
-
useExisting: forwardRef((() =>
|
|
7315
|
+
useExisting: forwardRef((() => GtrTimePickerComponent)),
|
|
7320
7316
|
multi: true,
|
|
7321
7317
|
},
|
|
7322
7318
|
], template: "<div class=\"date-picker-timepickers\" *ngIf=\"variant==='select'\">\n <div class=\"picker time-picker\">\n <div [formGroup]=\"selectTime\" class=\"time-picker-body\" [ngClass]=\"timePickerClasses\">\n <span class=\"time-picker-inline-icon\"></span>\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectHours\"\n (ngModelChange)=\"handleSelectHoursChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let hour of listOfHours12; index as i; trackBy: trackByHour\" [ngValue]=\"hour.value\"\n [attr.disabled]=\"hour.disabled || null\">{{hour.label}}</option>\n </select>\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectMinutes\"\n (ngModelChange)=\"handleSelectMinutesChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let minute of listOfMinutes\" [ngValue]=\"minute.value\"\n [attr.disabled]=\"minute.disabled || null\">{{minute.label}}</option>\n </select>\n <ng-template [ngIf]=\"seconds\">\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectSeconds\"\n (ngModelChange)=\"handleSelectSecondsChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let second of listOfSeconds\" [ngValue]=\"second.value\"\n [attr.disabled]=\"second.disabled || null\">{{second.label}}</option>\n </select>\n </ng-template>\n <ng-template [ngIf]=\"hour12\">\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectDayPeriod\"\n (ngModelChange)=\"handleSelectDayPeriodChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let dayPeriod of dayPeriods\" [ngValue]=\"dayPeriod.value\"\n class=\"time-picker-roll-cell\">{{dayPeriod.label}}</option>\n </select>\n </ng-template>\n </div>\n </div>\n</div>\n\n<gtr-dropdown #dropdown=\"gtrDropdown\" [autoClose]=\"'outside'\" class=\"time-picker picker\" [ngClass]=\"timePickerClasses\"\n *ngIf=\"variant==='roll'\" [visible]=\"visible\">\n <gtr-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n gtrDropdownToggle\n class=\"picker-input-group\">\n <input (blur)=\"handleBlur($event);\"\n (change)=\"handleTimeInputChange($event)\"\n (focus)=\"handleFocus($event)\"\n [formControl]=\"timeInput\"\n [placeholder]=\"placeholder\"\n gtrFormControl\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n [attr.pattern]=\"hour12 ? '(((0[1-9])|(1[0-2])):([0-5])([0-9])\\\\\\\\s(A|P)M)' : '([01]?[0-9]|2[0-3]):[0-5][0-9]'\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" gtrInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon time-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && time && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon time-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </gtr-input-group>\n <div gtrDropdownMenu #dropdownMenu=\"gtrDropdownMenu\">\n <div class=\"time-picker-body time-picker-roll\" style=\"position: relative;\">\n <gtr-time-picker-roll-col\n [elements]=\"listOfHours12\"\n [selected]=\"hour\"\n (selectedChange)=\"handleSelectHoursChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n [elements]=\"listOfMinutes\"\n [selected]=\"minute\"\n (selectedChange)=\"handleSelectMinutesChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n *ngIf=\"seconds\"\n [elements]=\"listOfSeconds\"\n [selected]=\"second\"\n (selectedChange)=\"handleSelectSecondsChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-am-pm\n *ngIf=\"hour12\" [elements]=\"dayPeriods\"\n [selected]=\"dayPeriod\"\n (selectedChange)=\"handleSelectDayPeriodChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-am-pm>\n </div>\n <div *ngIf=\"templates?.timePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.timePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n</gtr-dropdown>\n\n" }]
|
|
@@ -7359,10 +7355,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
7359
7355
|
args: ['blur']
|
|
7360
7356
|
}], dropdownRef: [{
|
|
7361
7357
|
type: ViewChild,
|
|
7362
|
-
args: [
|
|
7358
|
+
args: [GtrDropdownComponent, { read: ElementRef }]
|
|
7363
7359
|
}], contentTemplates: [{
|
|
7364
7360
|
type: ContentChildren,
|
|
7365
|
-
args: [
|
|
7361
|
+
args: [GtrTemplateIdDirective, { descendants: true }]
|
|
7366
7362
|
}] } });
|
|
7367
7363
|
|
|
7368
7364
|
/** Must be a valid date string */
|
|
@@ -7378,7 +7374,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
7378
7374
|
// return validDate ? { invalidDateStringValidator: { value: control.value } } : null;
|
|
7379
7375
|
// };
|
|
7380
7376
|
// }
|
|
7381
|
-
class
|
|
7377
|
+
class GtrDateRangePickerComponent {
|
|
7382
7378
|
constructor(breakpointObserver) {
|
|
7383
7379
|
this.breakpointObserver = breakpointObserver;
|
|
7384
7380
|
this.id = '';
|
|
@@ -7386,7 +7382,7 @@ class DateRangePickerComponent {
|
|
|
7386
7382
|
/**
|
|
7387
7383
|
* Set the format of day name.
|
|
7388
7384
|
* @default 'numeric'
|
|
7389
|
-
* @type
|
|
7385
|
+
* @type GtrDayFormatType
|
|
7390
7386
|
*/
|
|
7391
7387
|
this.dayFormat = 'numeric';
|
|
7392
7388
|
this._calendars = 2;
|
|
@@ -7434,7 +7430,7 @@ class DateRangePickerComponent {
|
|
|
7434
7430
|
this._value = {};
|
|
7435
7431
|
/**
|
|
7436
7432
|
* Set length or format of day name.
|
|
7437
|
-
* @type
|
|
7433
|
+
* @type GtrWeekdayFormatType
|
|
7438
7434
|
* @default 'short'
|
|
7439
7435
|
*/
|
|
7440
7436
|
this.weekdayFormat = 'short';
|
|
@@ -7921,21 +7917,21 @@ class DateRangePickerComponent {
|
|
|
7921
7917
|
}
|
|
7922
7918
|
this.endDate = time ?? this.endDate;
|
|
7923
7919
|
}
|
|
7924
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
7925
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
7920
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerComponent, deps: [{ token: i1$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7921
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrDateRangePickerComponent, selector: "gtr-date-range-picker", inputs: { id: "id", testid: "testid", dayFormat: "dayFormat", calendars: "calendars", cleaner: "cleaner", closeOnSelect: "closeOnSelect", format: "format", indicator: "indicator", inputReadOnly: "inputReadOnly", navYearFirst: "navYearFirst", alwaysOpen: "alwaysOpen", placeholder: "placeholder", ranges: "ranges", rangesType: "rangesType", rangesButtonsColor: "rangesButtonsColor", rangesButtonsSize: "rangesButtonsSize", rangesButtonsVariant: "rangesButtonsVariant", separator: "separator", size: "size", timepicker: "timepicker", valid: "valid", visible: "visible", startDate: "startDate", endDate: "endDate", calendarDate: "calendarDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", range: "range", dateFilter: "dateFilter", disabled: "disabled", value: "value", weekdayFormat: "weekdayFormat", popperjsOptions: ["popperOptions", "popperjsOptions"], selectAdjacentDays: "selectAdjacentDays", showAdjacentDays: "showAdjacentDays" }, outputs: { valueChange: "valueChange", calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
7926
7922
|
{
|
|
7927
7923
|
provide: NG_VALUE_ACCESSOR,
|
|
7928
|
-
useExisting: forwardRef((() =>
|
|
7924
|
+
useExisting: forwardRef((() => GtrDateRangePickerComponent)),
|
|
7929
7925
|
multi: true,
|
|
7930
7926
|
},
|
|
7931
|
-
], queries: [{ propertyName: "contentTemplates", predicate:
|
|
7927
|
+
], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "calendarComponent", first: true, predicate: GtrCalendarComponent, descendants: true }, { propertyName: "startDateElementRef", first: true, predicate: ["startDateElementRef"], descendants: true }, { propertyName: "endDateElementRef", first: true, predicate: ["endDateElementRef"], descendants: true }], exportAs: ["gtrDateRangePicker"], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
7932
7928
|
}
|
|
7933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
7929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerComponent, decorators: [{
|
|
7934
7930
|
type: Component,
|
|
7935
7931
|
args: [{ selector: 'gtr-date-range-picker', exportAs: 'gtrDateRangePicker', providers: [
|
|
7936
7932
|
{
|
|
7937
7933
|
provide: NG_VALUE_ACCESSOR,
|
|
7938
|
-
useExisting: forwardRef((() =>
|
|
7934
|
+
useExisting: forwardRef((() => GtrDateRangePickerComponent)),
|
|
7939
7935
|
multi: true,
|
|
7940
7936
|
},
|
|
7941
7937
|
], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"] }]
|
|
@@ -8030,7 +8026,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8030
8026
|
type: Output
|
|
8031
8027
|
}], calendarComponent: [{
|
|
8032
8028
|
type: ViewChild,
|
|
8033
|
-
args: [
|
|
8029
|
+
args: [GtrCalendarComponent]
|
|
8034
8030
|
}], startDateElementRef: [{
|
|
8035
8031
|
type: ViewChild,
|
|
8036
8032
|
args: ['startDateElementRef']
|
|
@@ -8039,103 +8035,103 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8039
8035
|
args: ['endDateElementRef']
|
|
8040
8036
|
}], contentTemplates: [{
|
|
8041
8037
|
type: ContentChildren,
|
|
8042
|
-
args: [
|
|
8038
|
+
args: [GtrTemplateIdDirective, { descendants: true }]
|
|
8043
8039
|
}], onBlur: [{
|
|
8044
8040
|
type: HostListener,
|
|
8045
8041
|
args: ['blur']
|
|
8046
8042
|
}] } });
|
|
8047
8043
|
|
|
8048
|
-
class
|
|
8049
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8050
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8044
|
+
class GtrTimePickerModule {
|
|
8045
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8046
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerModule, imports: [CommonModule,
|
|
8051
8047
|
ReactiveFormsModule,
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8048
|
+
GtrFormModule,
|
|
8049
|
+
GtrButtonModule,
|
|
8050
|
+
GtrDropdownModule,
|
|
8051
|
+
GtrDayPeriodElementDirective,
|
|
8052
|
+
GtrTimeElementDirective,
|
|
8053
|
+
GtrTimePickerComponent,
|
|
8054
|
+
GtrTimePickerRollAmPmComponent,
|
|
8055
|
+
GtrTimePickerRollColComponent], exports: [GtrTimePickerComponent] }); }
|
|
8056
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerModule, imports: [CommonModule,
|
|
8061
8057
|
ReactiveFormsModule,
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8058
|
+
GtrFormModule,
|
|
8059
|
+
GtrButtonModule,
|
|
8060
|
+
GtrDropdownModule,
|
|
8061
|
+
GtrTimePickerComponent,
|
|
8062
|
+
GtrTimePickerRollAmPmComponent,
|
|
8063
|
+
GtrTimePickerRollColComponent] }); }
|
|
8068
8064
|
}
|
|
8069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerModule, decorators: [{
|
|
8070
8066
|
type: NgModule,
|
|
8071
8067
|
args: [{
|
|
8072
8068
|
declarations: [],
|
|
8073
8069
|
imports: [
|
|
8074
8070
|
CommonModule,
|
|
8075
8071
|
ReactiveFormsModule,
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8072
|
+
GtrFormModule,
|
|
8073
|
+
GtrButtonModule,
|
|
8074
|
+
GtrDropdownModule,
|
|
8075
|
+
GtrDayPeriodElementDirective,
|
|
8076
|
+
GtrTimeElementDirective,
|
|
8077
|
+
GtrTimePickerComponent,
|
|
8078
|
+
GtrTimePickerRollAmPmComponent,
|
|
8079
|
+
GtrTimePickerRollColComponent,
|
|
8084
8080
|
],
|
|
8085
|
-
exports: [
|
|
8081
|
+
exports: [GtrTimePickerComponent],
|
|
8086
8082
|
}]
|
|
8087
8083
|
}] });
|
|
8088
8084
|
|
|
8089
|
-
class
|
|
8090
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8091
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8085
|
+
class GtrDateRangePickerModule {
|
|
8086
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8087
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerModule, declarations: [GtrDateRangePickerComponent], imports: [NgClass,
|
|
8092
8088
|
NgIf,
|
|
8093
8089
|
NgForOf,
|
|
8094
8090
|
NgTemplateOutlet,
|
|
8095
8091
|
ReactiveFormsModule,
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8092
|
+
GtrCalendarComponent,
|
|
8093
|
+
GtrTimePickerComponent,
|
|
8094
|
+
GtrButtonDirective,
|
|
8095
|
+
GtrDropdownComponent,
|
|
8096
|
+
GtrDropdownToggleDirective,
|
|
8097
|
+
GtrDropdownMenuDirective,
|
|
8098
|
+
GtrInputGroupComponent,
|
|
8099
|
+
GtrFormControlDirective,
|
|
8100
|
+
GtrInputGroupTextDirective,
|
|
8101
|
+
GtrIconModule,
|
|
8102
|
+
GtrButtonDirective], exports: [GtrDateRangePickerComponent] }); }
|
|
8103
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerModule, imports: [ReactiveFormsModule,
|
|
8104
|
+
GtrCalendarComponent,
|
|
8105
|
+
GtrTimePickerComponent,
|
|
8106
|
+
GtrIconModule] }); }
|
|
8111
8107
|
}
|
|
8112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerModule, decorators: [{
|
|
8113
8109
|
type: NgModule,
|
|
8114
8110
|
args: [{
|
|
8115
|
-
declarations: [
|
|
8111
|
+
declarations: [GtrDateRangePickerComponent],
|
|
8116
8112
|
imports: [
|
|
8117
8113
|
NgClass,
|
|
8118
8114
|
NgIf,
|
|
8119
8115
|
NgForOf,
|
|
8120
8116
|
NgTemplateOutlet,
|
|
8121
8117
|
ReactiveFormsModule,
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8118
|
+
GtrCalendarComponent,
|
|
8119
|
+
GtrTimePickerComponent,
|
|
8120
|
+
GtrButtonDirective,
|
|
8121
|
+
GtrDropdownComponent,
|
|
8122
|
+
GtrDropdownToggleDirective,
|
|
8123
|
+
GtrDropdownMenuDirective,
|
|
8124
|
+
GtrInputGroupComponent,
|
|
8125
|
+
GtrFormControlDirective,
|
|
8126
|
+
GtrInputGroupTextDirective,
|
|
8127
|
+
GtrIconModule,
|
|
8128
|
+
GtrButtonDirective,
|
|
8133
8129
|
],
|
|
8134
|
-
exports: [
|
|
8130
|
+
exports: [GtrDateRangePickerComponent],
|
|
8135
8131
|
}]
|
|
8136
8132
|
}] });
|
|
8137
8133
|
|
|
8138
|
-
class
|
|
8134
|
+
class GtrDatePickerComponent extends GtrDateRangePickerComponent {
|
|
8139
8135
|
constructor(breakpointObserver) {
|
|
8140
8136
|
super(breakpointObserver);
|
|
8141
8137
|
this.placeholder = 'Select date';
|
|
@@ -8174,21 +8170,21 @@ class DatePickerComponent extends DateRangePickerComponent {
|
|
|
8174
8170
|
subscription?.unsubscribe();
|
|
8175
8171
|
});
|
|
8176
8172
|
}
|
|
8177
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8178
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
8173
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDatePickerComponent, deps: [{ token: i1$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8174
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrDatePickerComponent, selector: "gtr-date-picker", inputs: { placeholder: "placeholder", date: "date" }, outputs: { startDateChange: "dateChange" }, providers: [
|
|
8179
8175
|
{
|
|
8180
8176
|
provide: NG_VALUE_ACCESSOR,
|
|
8181
|
-
useExisting: forwardRef((() =>
|
|
8177
|
+
useExisting: forwardRef((() => GtrDatePickerComponent)),
|
|
8182
8178
|
multi: true,
|
|
8183
8179
|
},
|
|
8184
|
-
], exportAs: ["gtrDatePicker"], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type:
|
|
8180
|
+
], exportAs: ["gtrDatePicker"], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
8185
8181
|
}
|
|
8186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDatePickerComponent, decorators: [{
|
|
8187
8183
|
type: Component,
|
|
8188
8184
|
args: [{ selector: 'gtr-date-picker', exportAs: 'gtrDatePicker', providers: [
|
|
8189
8185
|
{
|
|
8190
8186
|
provide: NG_VALUE_ACCESSOR,
|
|
8191
|
-
useExisting: forwardRef((() =>
|
|
8187
|
+
useExisting: forwardRef((() => GtrDatePickerComponent)),
|
|
8192
8188
|
multi: true,
|
|
8193
8189
|
},
|
|
8194
8190
|
], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"] }]
|
|
@@ -8201,54 +8197,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8201
8197
|
type: Input
|
|
8202
8198
|
}] } });
|
|
8203
8199
|
|
|
8204
|
-
class
|
|
8205
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8206
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8200
|
+
class GtrDatePickerModule {
|
|
8201
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8202
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrDatePickerModule, declarations: [GtrDatePickerComponent], imports: [NgClass,
|
|
8207
8203
|
NgIf,
|
|
8208
8204
|
NgForOf,
|
|
8209
8205
|
NgTemplateOutlet,
|
|
8210
8206
|
ReactiveFormsModule,
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8207
|
+
GtrCalendarComponent,
|
|
8208
|
+
GtrTimePickerComponent,
|
|
8209
|
+
GtrButtonDirective,
|
|
8210
|
+
GtrDropdownComponent,
|
|
8211
|
+
GtrDropdownToggleDirective,
|
|
8212
|
+
GtrDropdownMenuDirective,
|
|
8213
|
+
GtrInputGroupComponent,
|
|
8214
|
+
GtrFormControlDirective,
|
|
8215
|
+
GtrInputGroupTextDirective,
|
|
8216
|
+
GtrIconModule], exports: [GtrDatePickerComponent] }); }
|
|
8217
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDatePickerModule, imports: [ReactiveFormsModule,
|
|
8218
|
+
GtrCalendarComponent,
|
|
8219
|
+
GtrTimePickerComponent,
|
|
8220
|
+
GtrIconModule] }); }
|
|
8225
8221
|
}
|
|
8226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDatePickerModule, decorators: [{
|
|
8227
8223
|
type: NgModule,
|
|
8228
8224
|
args: [{
|
|
8229
|
-
declarations: [
|
|
8225
|
+
declarations: [GtrDatePickerComponent],
|
|
8230
8226
|
imports: [
|
|
8231
8227
|
NgClass,
|
|
8232
8228
|
NgIf,
|
|
8233
8229
|
NgForOf,
|
|
8234
8230
|
NgTemplateOutlet,
|
|
8235
8231
|
ReactiveFormsModule,
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8232
|
+
GtrCalendarComponent,
|
|
8233
|
+
GtrTimePickerComponent,
|
|
8234
|
+
GtrButtonDirective,
|
|
8235
|
+
GtrDropdownComponent,
|
|
8236
|
+
GtrDropdownToggleDirective,
|
|
8237
|
+
GtrDropdownMenuDirective,
|
|
8238
|
+
GtrInputGroupComponent,
|
|
8239
|
+
GtrFormControlDirective,
|
|
8240
|
+
GtrInputGroupTextDirective,
|
|
8241
|
+
GtrIconModule,
|
|
8246
8242
|
],
|
|
8247
|
-
exports: [
|
|
8243
|
+
exports: [GtrDatePickerComponent],
|
|
8248
8244
|
}]
|
|
8249
8245
|
}] });
|
|
8250
8246
|
|
|
8251
|
-
class
|
|
8247
|
+
class GtrFileInputComponent {
|
|
8252
8248
|
constructor() {
|
|
8253
8249
|
/**
|
|
8254
8250
|
* File upload event
|
|
@@ -8364,10 +8360,10 @@ class FileInputComponent {
|
|
|
8364
8360
|
fileTextLimit(fileName) {
|
|
8365
8361
|
return fileName ? (fileName.length > 30 ? `${fileName.slice(0, 30)}...` : fileName) : '';
|
|
8366
8362
|
}
|
|
8367
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8368
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
8363
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8364
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrFileInputComponent, selector: "gtr-file-input", inputs: { accept: "accept", heading: "heading", description: "description", ariaLabel: "ariaLabel", identifier: "identifier" }, outputs: { gtrFileSelected: "gtrFileSelected", gtrFileError: "gtrFileError" }, viewQueries: [{ propertyName: "fileInputElement", first: true, predicate: ["fileInputElement"], descendants: true }], ngImport: i0, template: "<div\n class=\"gtr-file-input-wrapper\"\n [attr.id]=\"identifier || 'gtr-file-input'\"\n [attr.data-testid]=\"identifier || 'gtr-file-input'\"\n>\n <div\n class=\"gtr-file-input-container\"\n (drop)=\"handleDrop($event)\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"ariaLabel ?? 'gtr-file-input'\"\n >\n <input\n hidden\n #fileInputElement\n type=\"file\"\n [accept]=\"accept\"\n (change)=\"handleFileChange($event)\"\n aria-hidden=\"true\"\n />\n <div class=\"gtr-file-input-icon\">\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M24 24V42\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M40.7799 36.78C42.7306 35.7165 44.2716 34.0337 45.1597 31.9972C46.0477 29.9607 46.2323 27.6864 45.6843 25.5334C45.1363 23.3803 43.8869 21.471 42.1333 20.1069C40.3796 18.7427 38.2216 18.0014 35.9999 18H33.4799C32.8745 15.6585 31.7462 13.4846 30.1798 11.642C28.6134 9.79927 26.6496 8.33567 24.4361 7.36118C22.2226 6.3867 19.817 5.92669 17.4002 6.01573C14.9833 6.10478 12.6181 6.74057 10.4823 7.8753C8.34649 9.01003 6.49574 10.6142 5.06916 12.5671C3.64259 14.5201 2.6773 16.771 2.24588 19.1508C1.81446 21.5305 1.92813 23.977 2.57835 26.3065C3.22856 28.636 4.3984 30.7877 5.99992 32.6\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n <div class=\"gtr-file-info-wrapper\">\n <span class=\"gtr-file-input-heading\">\n {{ currentSelectedFileName ?? heading ?? \"Drag and drop files here, or click to browse\" }}\n </span>\n <span class=\"gtr-file-input-description\">\n {{ description || \"CSV, excel, PNG, JPG, JPEG files accepted\" }}\n </span>\n </div>\n <div>\n <gtr-button variant=\"outline\" color=\"success\" (click)=\"fileInputElement.click()\">\n Select File\n </gtr-button>\n </div>\n </div>\n</div>\n", styles: [".gtr-file-input-wrapper *,.gtr-file-input-wrapper *:after,.gtr-file-input-wrapper *:before{box-sizing:border-box;margin:0;width:auto}.gtr-file-input-wrapper .gtr-file-input-container{width:100%;position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-self:center;padding:16px 24px 16px 32px;border-radius:10px;border:1px dashed var(--gtr-color-base-black-20);gap:24px;transition:.4s all ease-in-out}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-input-icon{width:48px;height:48px;object-fit:contain}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper{flex-grow:1;display:flex;flex-direction:column}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-heading{cursor:pointer;font-size:18px;line-height:normal;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-bottom:12px}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-description{font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-40);font-size:16px;font-style:normal;font-weight:400;line-height:normal}\n"], dependencies: [{ kind: "component", type: GtrButtonComponent, selector: "gtr-button", inputs: ["type", "btnId", "color", "isLoading", "variant", "disabled"] }] }); }
|
|
8369
8365
|
}
|
|
8370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFileInputComponent, decorators: [{
|
|
8371
8367
|
type: Component,
|
|
8372
8368
|
args: [{ selector: 'gtr-file-input', template: "<div\n class=\"gtr-file-input-wrapper\"\n [attr.id]=\"identifier || 'gtr-file-input'\"\n [attr.data-testid]=\"identifier || 'gtr-file-input'\"\n>\n <div\n class=\"gtr-file-input-container\"\n (drop)=\"handleDrop($event)\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"ariaLabel ?? 'gtr-file-input'\"\n >\n <input\n hidden\n #fileInputElement\n type=\"file\"\n [accept]=\"accept\"\n (change)=\"handleFileChange($event)\"\n aria-hidden=\"true\"\n />\n <div class=\"gtr-file-input-icon\">\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M24 24V42\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M40.7799 36.78C42.7306 35.7165 44.2716 34.0337 45.1597 31.9972C46.0477 29.9607 46.2323 27.6864 45.6843 25.5334C45.1363 23.3803 43.8869 21.471 42.1333 20.1069C40.3796 18.7427 38.2216 18.0014 35.9999 18H33.4799C32.8745 15.6585 31.7462 13.4846 30.1798 11.642C28.6134 9.79927 26.6496 8.33567 24.4361 7.36118C22.2226 6.3867 19.817 5.92669 17.4002 6.01573C14.9833 6.10478 12.6181 6.74057 10.4823 7.8753C8.34649 9.01003 6.49574 10.6142 5.06916 12.5671C3.64259 14.5201 2.6773 16.771 2.24588 19.1508C1.81446 21.5305 1.92813 23.977 2.57835 26.3065C3.22856 28.636 4.3984 30.7877 5.99992 32.6\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n <div class=\"gtr-file-info-wrapper\">\n <span class=\"gtr-file-input-heading\">\n {{ currentSelectedFileName ?? heading ?? \"Drag and drop files here, or click to browse\" }}\n </span>\n <span class=\"gtr-file-input-description\">\n {{ description || \"CSV, excel, PNG, JPG, JPEG files accepted\" }}\n </span>\n </div>\n <div>\n <gtr-button variant=\"outline\" color=\"success\" (click)=\"fileInputElement.click()\">\n Select File\n </gtr-button>\n </div>\n </div>\n</div>\n", styles: [".gtr-file-input-wrapper *,.gtr-file-input-wrapper *:after,.gtr-file-input-wrapper *:before{box-sizing:border-box;margin:0;width:auto}.gtr-file-input-wrapper .gtr-file-input-container{width:100%;position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-self:center;padding:16px 24px 16px 32px;border-radius:10px;border:1px dashed var(--gtr-color-base-black-20);gap:24px;transition:.4s all ease-in-out}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-input-icon{width:48px;height:48px;object-fit:contain}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper{flex-grow:1;display:flex;flex-direction:column}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-heading{cursor:pointer;font-size:18px;line-height:normal;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-bottom:12px}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-description{font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-40);font-size:16px;font-style:normal;font-weight:400;line-height:normal}\n"] }]
|
|
8373
8369
|
}], propDecorators: { fileInputElement: [{
|
|
@@ -8389,23 +8385,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8389
8385
|
type: Output
|
|
8390
8386
|
}] } });
|
|
8391
8387
|
|
|
8392
|
-
class
|
|
8393
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8394
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8395
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8388
|
+
class GtrFileInputModule {
|
|
8389
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFileInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8390
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrFileInputModule, declarations: [GtrFileInputComponent], imports: [GtrButtonModule], exports: [GtrFileInputComponent] }); }
|
|
8391
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFileInputModule, imports: [GtrButtonModule] }); }
|
|
8396
8392
|
}
|
|
8397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFileInputModule, decorators: [{
|
|
8398
8394
|
type: NgModule,
|
|
8399
8395
|
args: [{
|
|
8400
|
-
declarations: [
|
|
8401
|
-
imports: [
|
|
8402
|
-
exports: [
|
|
8396
|
+
declarations: [GtrFileInputComponent],
|
|
8397
|
+
imports: [GtrButtonModule],
|
|
8398
|
+
exports: [GtrFileInputComponent],
|
|
8403
8399
|
}]
|
|
8404
8400
|
}] });
|
|
8405
8401
|
|
|
8406
|
-
const
|
|
8402
|
+
const GtrComponentName = 'gtr-numeric-counter';
|
|
8407
8403
|
|
|
8408
|
-
class
|
|
8404
|
+
class GtrNumericCounterComponent {
|
|
8409
8405
|
constructor() {
|
|
8410
8406
|
/*
|
|
8411
8407
|
* Value for numeric counter, Value must be number
|
|
@@ -8478,7 +8474,7 @@ class NumericCounterComponent {
|
|
|
8478
8474
|
const eventValue = event?.target?.value;
|
|
8479
8475
|
const value = Number(eventValue) || this.value;
|
|
8480
8476
|
this.gtrChange.emit({
|
|
8481
|
-
component:
|
|
8477
|
+
component: GtrComponentName,
|
|
8482
8478
|
value: value,
|
|
8483
8479
|
});
|
|
8484
8480
|
this.value = value;
|
|
@@ -8520,21 +8516,21 @@ class NumericCounterComponent {
|
|
|
8520
8516
|
}
|
|
8521
8517
|
}
|
|
8522
8518
|
}
|
|
8523
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8524
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
8519
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrNumericCounterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8520
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrNumericCounterComponent, selector: "gtr-numeric-counter", inputs: { value: "value", step: "step", min: "min", max: "max", name: "name", identifier: "identifier", disabled: "disabled", readonly: "readonly" }, outputs: { gtrChange: "gtrChange" }, providers: [
|
|
8525
8521
|
{
|
|
8526
8522
|
provide: NG_VALUE_ACCESSOR,
|
|
8527
|
-
useExisting: forwardRef((() =>
|
|
8523
|
+
useExisting: forwardRef((() => GtrNumericCounterComponent)),
|
|
8528
8524
|
multi: true,
|
|
8529
8525
|
},
|
|
8530
8526
|
], ngImport: i0, template: "<div\n aria-label=\"gtr-numeric-counter\"\n aria-describedBy=\"gtr-numeric-counter\"\n class=\"gtr-numeric-counter-wrapper\"\n [ngClass]=\"{\n readonly: readonly,\n disabled: disabled\n }\"\n tabindex=\"0\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n [attr.id]=\"identifier || 'gtr-numeric-counter'\"\n [attr.data-testid]=\"identifier || 'gtr-numeric-counter'\"\n (keydown)=\"handleKeyDown($event)\"\n>\n <button\n type=\"button\"\n class=\"gtr-numeric-counter-button gtr__isminus\"\n [attr.aria-disabled]=\"value <= min ? 'true' : 'false'\"\n [disabled]=\"value <= min\"\n (click)=\"decrementCounter()\"\n >\n <svg width=\"12\" height=\"3\" viewBox=\"0 0 12 3\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10.966 0.466003H1.45099C1.17676 0.466003 0.913756 0.574942 0.719844 0.768855C0.525931 0.962768 0.416992 1.22577 0.416992 1.5C0.416992 1.77424 0.525931 2.03724 0.719844 2.23115C0.913756 2.42506 1.17676 2.534 1.45099 2.534H10.966C11.2402 2.534 11.5032 2.42506 11.6971 2.23115C11.8911 2.03724 12 1.77424 12 1.5C12 1.22577 11.8911 0.962768 11.6971 0.768855C11.5032 0.574942 11.2402 0.466003 10.966 0.466003Z\"\n fill=\"black\"\n />\n </svg>\n </button>\n <input\n [disabled]=\"disabled\"\n [readOnly]=\"readonly\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n role=\"spinbutton\"\n class=\"gtr-numeric-counter-input\"\n type=\"number\"\n [step]=\"step\"\n [min]=\"min\"\n [max]=\"max\"\n [name]=\"name\"\n [value]=\"value\"\n pattern=\"[0-9]*\"\n inputmode=\"numeric\"\n [attr.aria-valuemin]=\"min\"\n [attr.aria-valuemax]=\"max\"\n [attr.aria-valuenow]=\"value\"\n (change)=\"handleOnChange($event)\"\n />\n <button\n type=\"button\"\n class=\"gtr-numeric-counter-button gtr__isplus\"\n [attr.aria-disabled]=\"value >= max ? 'true' : 'false'\"\n (click)=\"incrementCounter()\"\n [disabled]=\"value >= max - 1\"\n >\n <svg width=\"12\" height=\"13\" viewBox=\"0 0 12 13\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10.966 5.46601H7.44999C7.39509 5.46601 7.34244 5.4442 7.30362 5.40538C7.2648 5.36656 7.24299 5.31391 7.24299 5.25901V1.74201C7.24299 1.46777 7.13405 1.20477 6.94014 1.01086C6.74623 0.816947 6.48323 0.708008 6.20899 0.708008C5.93476 0.708008 5.67176 0.816947 5.47784 1.01086C5.28393 1.20477 5.17499 1.46777 5.17499 1.74201V5.25901C5.17499 5.31391 5.15318 5.36656 5.11436 5.40538C5.07554 5.4442 5.02289 5.46601 4.96799 5.46601H1.45099C1.17676 5.46601 0.913756 5.57495 0.719844 5.76886C0.525931 5.96277 0.416992 6.22577 0.416992 6.50001C0.416992 6.77424 0.525931 7.03724 0.719844 7.23116C0.913756 7.42507 1.17676 7.53401 1.45099 7.53401H4.96799C5.02289 7.53401 5.07554 7.55582 5.11436 7.59464C5.15318 7.63346 5.17499 7.68611 5.17499 7.74101V11.257C5.17499 11.5312 5.28393 11.7942 5.47784 11.9882C5.67176 12.1821 5.93476 12.291 6.20899 12.291C6.48323 12.291 6.74623 12.1821 6.94014 11.9882C7.13405 11.7942 7.24299 11.5312 7.24299 11.257V7.74101C7.24299 7.68611 7.2648 7.63346 7.30362 7.59464C7.34244 7.55582 7.39509 7.53401 7.44999 7.53401H10.966C11.2402 7.53401 11.5032 7.42507 11.6971 7.23116C11.8911 7.03724 12 6.77424 12 6.50001C12 6.22577 11.8911 5.96277 11.6971 5.76886C11.5032 5.57495 11.2402 5.46601 10.966 5.46601Z\"\n fill=\"black\"\n />\n </svg>\n </button>\n</div>\n", styles: [":host{--gtr-component-numeric-counter-bg-color: rgba(213, 213, 213, 1)}.gtr-numeric-counter-wrapper *,.gtr-numeric-counter-wrapper *:after,.gtr-numeric-counter-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-numeric-counter-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;align-self:center;width:-moz-fit-content;width:fit-content}.gtr-numeric-counter-wrapper.disabled{pointer-events:none;cursor:default;opacity:.5}.gtr-numeric-counter-wrapper.readonly{pointer-events:none;cursor:default}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button{width:30px;height:25px;outline:none;border:none;border:solid 1px var(--gtr-component-numeric-counter-bg-color);background:var(--gtr-component-numeric-counter-bg-color);display:flex;align-items:center;align-self:center;justify-content:center;cursor:pointer}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button:disabled{pointer-events:none;opacity:.5;cursor:default}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button:first-child{border-radius:6px 0 0 6px}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button:last-child{border-radius:0 6px 6px 0}.gtr-numeric-counter-wrapper .gtr-numeric-counter-input{color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-size:17px;height:25px;font-style:normal;font-weight:400;line-height:normal;width:33px;outline:none;border:none;text-align:center;border:solid 1px var(--gtr-component-numeric-counter-bg-color)}.gtr-numeric-counter-wrapper .gtr-numeric-counter-input:disabled{pointer-events:none;cursor:default}.gtr-numeric-counter-wrapper .gtr-numeric-counter-input::-webkit-outer-spin-button,.gtr-numeric-counter-wrapper .gtr-numeric-counter-input::-webkit-inner-spin-button{appearance:none;-webkit-appearance:none;margin:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
8531
8527
|
}
|
|
8532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrNumericCounterComponent, decorators: [{
|
|
8533
8529
|
type: Component,
|
|
8534
8530
|
args: [{ selector: 'gtr-numeric-counter', providers: [
|
|
8535
8531
|
{
|
|
8536
8532
|
provide: NG_VALUE_ACCESSOR,
|
|
8537
|
-
useExisting: forwardRef((() =>
|
|
8533
|
+
useExisting: forwardRef((() => GtrNumericCounterComponent)),
|
|
8538
8534
|
multi: true,
|
|
8539
8535
|
},
|
|
8540
8536
|
], template: "<div\n aria-label=\"gtr-numeric-counter\"\n aria-describedBy=\"gtr-numeric-counter\"\n class=\"gtr-numeric-counter-wrapper\"\n [ngClass]=\"{\n readonly: readonly,\n disabled: disabled\n }\"\n tabindex=\"0\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n [attr.id]=\"identifier || 'gtr-numeric-counter'\"\n [attr.data-testid]=\"identifier || 'gtr-numeric-counter'\"\n (keydown)=\"handleKeyDown($event)\"\n>\n <button\n type=\"button\"\n class=\"gtr-numeric-counter-button gtr__isminus\"\n [attr.aria-disabled]=\"value <= min ? 'true' : 'false'\"\n [disabled]=\"value <= min\"\n (click)=\"decrementCounter()\"\n >\n <svg width=\"12\" height=\"3\" viewBox=\"0 0 12 3\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10.966 0.466003H1.45099C1.17676 0.466003 0.913756 0.574942 0.719844 0.768855C0.525931 0.962768 0.416992 1.22577 0.416992 1.5C0.416992 1.77424 0.525931 2.03724 0.719844 2.23115C0.913756 2.42506 1.17676 2.534 1.45099 2.534H10.966C11.2402 2.534 11.5032 2.42506 11.6971 2.23115C11.8911 2.03724 12 1.77424 12 1.5C12 1.22577 11.8911 0.962768 11.6971 0.768855C11.5032 0.574942 11.2402 0.466003 10.966 0.466003Z\"\n fill=\"black\"\n />\n </svg>\n </button>\n <input\n [disabled]=\"disabled\"\n [readOnly]=\"readonly\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n role=\"spinbutton\"\n class=\"gtr-numeric-counter-input\"\n type=\"number\"\n [step]=\"step\"\n [min]=\"min\"\n [max]=\"max\"\n [name]=\"name\"\n [value]=\"value\"\n pattern=\"[0-9]*\"\n inputmode=\"numeric\"\n [attr.aria-valuemin]=\"min\"\n [attr.aria-valuemax]=\"max\"\n [attr.aria-valuenow]=\"value\"\n (change)=\"handleOnChange($event)\"\n />\n <button\n type=\"button\"\n class=\"gtr-numeric-counter-button gtr__isplus\"\n [attr.aria-disabled]=\"value >= max ? 'true' : 'false'\"\n (click)=\"incrementCounter()\"\n [disabled]=\"value >= max - 1\"\n >\n <svg width=\"12\" height=\"13\" viewBox=\"0 0 12 13\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10.966 5.46601H7.44999C7.39509 5.46601 7.34244 5.4442 7.30362 5.40538C7.2648 5.36656 7.24299 5.31391 7.24299 5.25901V1.74201C7.24299 1.46777 7.13405 1.20477 6.94014 1.01086C6.74623 0.816947 6.48323 0.708008 6.20899 0.708008C5.93476 0.708008 5.67176 0.816947 5.47784 1.01086C5.28393 1.20477 5.17499 1.46777 5.17499 1.74201V5.25901C5.17499 5.31391 5.15318 5.36656 5.11436 5.40538C5.07554 5.4442 5.02289 5.46601 4.96799 5.46601H1.45099C1.17676 5.46601 0.913756 5.57495 0.719844 5.76886C0.525931 5.96277 0.416992 6.22577 0.416992 6.50001C0.416992 6.77424 0.525931 7.03724 0.719844 7.23116C0.913756 7.42507 1.17676 7.53401 1.45099 7.53401H4.96799C5.02289 7.53401 5.07554 7.55582 5.11436 7.59464C5.15318 7.63346 5.17499 7.68611 5.17499 7.74101V11.257C5.17499 11.5312 5.28393 11.7942 5.47784 11.9882C5.67176 12.1821 5.93476 12.291 6.20899 12.291C6.48323 12.291 6.74623 12.1821 6.94014 11.9882C7.13405 11.7942 7.24299 11.5312 7.24299 11.257V7.74101C7.24299 7.68611 7.2648 7.63346 7.30362 7.59464C7.34244 7.55582 7.39509 7.53401 7.44999 7.53401H10.966C11.2402 7.53401 11.5032 7.42507 11.6971 7.23116C11.8911 7.03724 12 6.77424 12 6.50001C12 6.22577 11.8911 5.96277 11.6971 5.76886C11.5032 5.57495 11.2402 5.46601 10.966 5.46601Z\"\n fill=\"black\"\n />\n </svg>\n </button>\n</div>\n", styles: [":host{--gtr-component-numeric-counter-bg-color: rgba(213, 213, 213, 1)}.gtr-numeric-counter-wrapper *,.gtr-numeric-counter-wrapper *:after,.gtr-numeric-counter-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-numeric-counter-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;align-self:center;width:-moz-fit-content;width:fit-content}.gtr-numeric-counter-wrapper.disabled{pointer-events:none;cursor:default;opacity:.5}.gtr-numeric-counter-wrapper.readonly{pointer-events:none;cursor:default}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button{width:30px;height:25px;outline:none;border:none;border:solid 1px var(--gtr-component-numeric-counter-bg-color);background:var(--gtr-component-numeric-counter-bg-color);display:flex;align-items:center;align-self:center;justify-content:center;cursor:pointer}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button:disabled{pointer-events:none;opacity:.5;cursor:default}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button:first-child{border-radius:6px 0 0 6px}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button:last-child{border-radius:0 6px 6px 0}.gtr-numeric-counter-wrapper .gtr-numeric-counter-input{color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-size:17px;height:25px;font-style:normal;font-weight:400;line-height:normal;width:33px;outline:none;border:none;text-align:center;border:solid 1px var(--gtr-component-numeric-counter-bg-color)}.gtr-numeric-counter-wrapper .gtr-numeric-counter-input:disabled{pointer-events:none;cursor:default}.gtr-numeric-counter-wrapper .gtr-numeric-counter-input::-webkit-outer-spin-button,.gtr-numeric-counter-wrapper .gtr-numeric-counter-input::-webkit-inner-spin-button{appearance:none;-webkit-appearance:none;margin:0}\n"] }]
|
|
@@ -8558,17 +8554,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8558
8554
|
type: Output
|
|
8559
8555
|
}] } });
|
|
8560
8556
|
|
|
8561
|
-
class
|
|
8562
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8563
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8564
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8557
|
+
class GtrNumericCounterModule {
|
|
8558
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrNumericCounterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8559
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrNumericCounterModule, declarations: [GtrNumericCounterComponent], imports: [NgIf, NgClass, FormsModule], exports: [GtrNumericCounterComponent] }); }
|
|
8560
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrNumericCounterModule, imports: [FormsModule] }); }
|
|
8565
8561
|
}
|
|
8566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrNumericCounterModule, decorators: [{
|
|
8567
8563
|
type: NgModule,
|
|
8568
8564
|
args: [{
|
|
8569
|
-
declarations: [
|
|
8565
|
+
declarations: [GtrNumericCounterComponent],
|
|
8570
8566
|
imports: [NgIf, NgClass, FormsModule],
|
|
8571
|
-
exports: [
|
|
8567
|
+
exports: [GtrNumericCounterComponent],
|
|
8572
8568
|
}]
|
|
8573
8569
|
}] });
|
|
8574
8570
|
|
|
@@ -8655,7 +8651,7 @@ function hasMobileView() {
|
|
|
8655
8651
|
}
|
|
8656
8652
|
}
|
|
8657
8653
|
|
|
8658
|
-
class
|
|
8654
|
+
class GtrTrimTextPipe {
|
|
8659
8655
|
transform(value, limit) {
|
|
8660
8656
|
if (!value) {
|
|
8661
8657
|
return;
|
|
@@ -8668,20 +8664,20 @@ class TrimTextPipe {
|
|
|
8668
8664
|
}
|
|
8669
8665
|
return value?.substring(0, limit) + '...';
|
|
8670
8666
|
}
|
|
8671
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8672
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8667
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTrimTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
8668
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrTrimTextPipe, isStandalone: true, name: "gtrTrimText" }); }
|
|
8673
8669
|
}
|
|
8674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8670
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTrimTextPipe, decorators: [{
|
|
8675
8671
|
type: Pipe,
|
|
8676
8672
|
args: [{
|
|
8677
|
-
name: '
|
|
8673
|
+
name: 'gtrTrimText',
|
|
8678
8674
|
standalone: true,
|
|
8679
8675
|
}]
|
|
8680
8676
|
}] });
|
|
8681
8677
|
|
|
8682
|
-
class
|
|
8678
|
+
class GtrFormatSelectedValuePipe {
|
|
8683
8679
|
constructor() {
|
|
8684
|
-
this._limitText = new
|
|
8680
|
+
this._limitText = new GtrTrimTextPipe();
|
|
8685
8681
|
}
|
|
8686
8682
|
transform(value, options, valueKey, selectedLabel, labelKey, textLimit, multiple, selectedValueLazy, selectedValues, lazyLoaded) {
|
|
8687
8683
|
if (multiple) {
|
|
@@ -8722,13 +8718,13 @@ class FormatSelectedValuePipe {
|
|
|
8722
8718
|
return formattedOption ? formattedOption : selectedValues?.[0] ? selectedValues?.[0] : '';
|
|
8723
8719
|
}
|
|
8724
8720
|
}
|
|
8725
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8726
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8721
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
8722
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, isStandalone: true, name: "GtrFormatSelectedValue" }); }
|
|
8727
8723
|
}
|
|
8728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
8724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, decorators: [{
|
|
8729
8725
|
type: Pipe,
|
|
8730
8726
|
args: [{
|
|
8731
|
-
name: '
|
|
8727
|
+
name: 'GtrFormatSelectedValue',
|
|
8732
8728
|
standalone: true,
|
|
8733
8729
|
}]
|
|
8734
8730
|
}] });
|
|
@@ -8739,7 +8735,7 @@ var GtrSelectListLoaderVariation;
|
|
|
8739
8735
|
GtrSelectListLoaderVariation["SPINNER"] = "SPINNER";
|
|
8740
8736
|
})(GtrSelectListLoaderVariation || (GtrSelectListLoaderVariation = {}));
|
|
8741
8737
|
|
|
8742
|
-
class
|
|
8738
|
+
class GtrSelectComponent {
|
|
8743
8739
|
/**
|
|
8744
8740
|
* Contructor
|
|
8745
8741
|
* @param _el
|
|
@@ -9092,24 +9088,24 @@ class SelectComponent {
|
|
|
9092
9088
|
getOptionValue(option) {
|
|
9093
9089
|
return this.valueKey ? option[this.valueKey] : option;
|
|
9094
9090
|
}
|
|
9095
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9096
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
9091
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9092
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrSelectComponent, selector: "gtr-select", inputs: { inputLabel: "inputLabel", placeholder: "placeholder", floatPlaceholder: "floatPlaceholder", labelKey: "labelKey", valueKey: "valueKey", selectedLabel: "selectedLabel", highlightLabel: "highlightLabel", subLabel: "subLabel", isOnlyView: "isOnlyView", value: "value", multiple: "multiple", lazyLoaded: "lazyLoaded", searchable: "searchable", disabled: "disabled", readonly: "readonly", is_invalid: "is_invalid", listLoading: "listLoading", loading: "loading", listLoaderVariation: "listLoaderVariation", options: "options", textLimit: "textLimit" }, outputs: { valueChanged: "valueChanged", searchChanged: "searchChanged", gtrScroll: "gtrScroll", gtrTouched: "gtrTouched" }, host: { listeners: { "keydown": "handleKeyboardNavigations($event)", "window:click": "onClickOutside($event)", "window:resize": "onWindowResize($event)", "window:scroll": "onWindowScroll($event)" } }, providers: [
|
|
9097
9093
|
{
|
|
9098
9094
|
provide: NG_VALUE_ACCESSOR,
|
|
9099
|
-
useExisting: forwardRef((() =>
|
|
9095
|
+
useExisting: forwardRef((() => GtrSelectComponent)),
|
|
9100
9096
|
multi: true,
|
|
9101
9097
|
},
|
|
9102
|
-
], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | formatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | formatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | limitText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | limitText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | limitText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | limitText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: SkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: FormatSelectedValuePipe, name: "formatSelectedValue" }, { kind: "pipe", type: TrimTextPipe, name: "limitText" }] }); }
|
|
9098
|
+
], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "GtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
|
|
9103
9099
|
}
|
|
9104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectComponent, decorators: [{
|
|
9105
9101
|
type: Component,
|
|
9106
9102
|
args: [{ selector: 'gtr-select', providers: [
|
|
9107
9103
|
{
|
|
9108
9104
|
provide: NG_VALUE_ACCESSOR,
|
|
9109
|
-
useExisting: forwardRef((() =>
|
|
9105
|
+
useExisting: forwardRef((() => GtrSelectComponent)),
|
|
9110
9106
|
multi: true,
|
|
9111
9107
|
},
|
|
9112
|
-
], template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | formatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | formatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | limitText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | limitText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | limitText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | limitText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"] }]
|
|
9108
|
+
], template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"] }]
|
|
9113
9109
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { inputLabel: [{
|
|
9114
9110
|
type: Input
|
|
9115
9111
|
}], placeholder: [{
|
|
@@ -9174,26 +9170,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9174
9170
|
args: ['window:scroll', ['$event']]
|
|
9175
9171
|
}] } });
|
|
9176
9172
|
|
|
9177
|
-
class
|
|
9173
|
+
class GtrValidatePagePipe {
|
|
9178
9174
|
transform(value, returnValue) {
|
|
9179
9175
|
if (value && typeof value === 'number') {
|
|
9180
9176
|
return value;
|
|
9181
9177
|
}
|
|
9182
9178
|
return returnValue ?? '';
|
|
9183
9179
|
}
|
|
9184
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9185
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9180
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrValidatePagePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
9181
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrValidatePagePipe, isStandalone: true, name: "gtrValidatePage" }); }
|
|
9186
9182
|
}
|
|
9187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrValidatePagePipe, decorators: [{
|
|
9188
9184
|
type: Pipe,
|
|
9189
9185
|
args: [{
|
|
9190
|
-
name: '
|
|
9186
|
+
name: 'gtrValidatePage',
|
|
9191
9187
|
pure: true,
|
|
9192
9188
|
standalone: true,
|
|
9193
9189
|
}]
|
|
9194
9190
|
}] });
|
|
9195
9191
|
|
|
9196
|
-
class
|
|
9192
|
+
class GtrPaginationComponent {
|
|
9197
9193
|
constructor() {
|
|
9198
9194
|
/** [disabled] is type of boolean which is used to disable the pagination navigation */
|
|
9199
9195
|
this.disabled = false;
|
|
@@ -9296,12 +9292,12 @@ class PaginationComponent {
|
|
|
9296
9292
|
this._isMobile = hasMobileView();
|
|
9297
9293
|
this._setTotalPages();
|
|
9298
9294
|
}
|
|
9299
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9300
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
9295
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9296
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrPaginationComponent, selector: "gtr-pagination", inputs: { identifier: "identifier", disabled: ["disabled", "disabled", booleanAttribute], limit: "limit", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", showFirstLastButtons: ["showFirstLastButtons", "showFirstLastButtons", booleanAttribute], pageIndex: "pageIndex", ariaLabel: "ariaLabel" }, outputs: { pageEvent: "pageEvent", getNumberOfPages: "getNumberOfPages" }, host: { listeners: { "window:resize": "onScreenResize($event)" } }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div\n class=\"gtr-pagination-wrapper\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n ></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\"\n aria-label=\"gtr__pagination-first-page\"\n >\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\"\n aria-label=\"gtr__pagination-prev-page\"\n >\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\"\n class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\"\n tabindex=\"0\"\n >\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\"\n >\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\"\n >\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60)}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: GtrSelectComponent, selector: "gtr-select", inputs: ["inputLabel", "placeholder", "floatPlaceholder", "labelKey", "valueKey", "selectedLabel", "highlightLabel", "subLabel", "isOnlyView", "value", "multiple", "lazyLoaded", "searchable", "disabled", "readonly", "is_invalid", "listLoading", "loading", "listLoaderVariation", "options", "textLimit"], outputs: ["valueChanged", "searchChanged", "gtrScroll", "gtrTouched"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "pipe", type: GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
|
|
9301
9297
|
}
|
|
9302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, decorators: [{
|
|
9303
9299
|
type: Component,
|
|
9304
|
-
args: [{ selector: 'gtr-pagination', template: "<ng-container *ngIf=\"pageIndex !== 0
|
|
9300
|
+
args: [{ selector: 'gtr-pagination', template: "<ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div\n class=\"gtr-pagination-wrapper\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n ></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\"\n aria-label=\"gtr__pagination-first-page\"\n >\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\"\n aria-label=\"gtr__pagination-prev-page\"\n >\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\"\n class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\"\n tabindex=\"0\"\n >\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\"\n >\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\"\n >\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60)}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"] }]
|
|
9305
9301
|
}], propDecorators: { identifier: [{
|
|
9306
9302
|
type: Input
|
|
9307
9303
|
}], disabled: [{
|
|
@@ -9331,47 +9327,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9331
9327
|
args: ['window:resize', ['$event']]
|
|
9332
9328
|
}] } });
|
|
9333
9329
|
|
|
9334
|
-
class
|
|
9335
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9336
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9330
|
+
class GtrSelectModule {
|
|
9331
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9332
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectModule, declarations: [GtrSelectComponent], imports: [NgIf,
|
|
9337
9333
|
NgFor,
|
|
9338
9334
|
NgClass,
|
|
9339
9335
|
NgTemplateOutlet,
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9336
|
+
GtrFormatSelectedValuePipe,
|
|
9337
|
+
GtrTrimTextPipe,
|
|
9338
|
+
GtrIconModule,
|
|
9339
|
+
GtrSkeletonDirective], exports: [GtrSelectComponent] }); }
|
|
9340
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectModule, imports: [GtrIconModule] }); }
|
|
9345
9341
|
}
|
|
9346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectModule, decorators: [{
|
|
9347
9343
|
type: NgModule,
|
|
9348
9344
|
args: [{
|
|
9349
|
-
declarations: [
|
|
9345
|
+
declarations: [GtrSelectComponent],
|
|
9350
9346
|
imports: [
|
|
9351
9347
|
NgIf,
|
|
9352
9348
|
NgFor,
|
|
9353
9349
|
NgClass,
|
|
9354
9350
|
NgTemplateOutlet,
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9351
|
+
GtrFormatSelectedValuePipe,
|
|
9352
|
+
GtrTrimTextPipe,
|
|
9353
|
+
GtrIconModule,
|
|
9354
|
+
GtrSkeletonDirective,
|
|
9359
9355
|
],
|
|
9360
|
-
exports: [
|
|
9356
|
+
exports: [GtrSelectComponent],
|
|
9361
9357
|
}]
|
|
9362
9358
|
}] });
|
|
9363
9359
|
|
|
9364
|
-
class
|
|
9365
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9366
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9367
|
-
|
|
9360
|
+
class GtrPaginationModule {
|
|
9361
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9362
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationModule, declarations: [GtrPaginationComponent], imports: [NgIf,
|
|
9363
|
+
NgFor,
|
|
9364
|
+
NgClass,
|
|
9365
|
+
NgTemplateOutlet,
|
|
9366
|
+
GtrSelectModule,
|
|
9367
|
+
GtrIconModule,
|
|
9368
|
+
GtrValidatePagePipe], exports: [GtrPaginationComponent] }); }
|
|
9369
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationModule, imports: [GtrSelectModule,
|
|
9370
|
+
GtrIconModule] }); }
|
|
9368
9371
|
}
|
|
9369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationModule, decorators: [{
|
|
9370
9373
|
type: NgModule,
|
|
9371
9374
|
args: [{
|
|
9372
|
-
declarations: [
|
|
9373
|
-
imports: [
|
|
9374
|
-
|
|
9375
|
+
declarations: [GtrPaginationComponent],
|
|
9376
|
+
imports: [
|
|
9377
|
+
NgIf,
|
|
9378
|
+
NgFor,
|
|
9379
|
+
NgClass,
|
|
9380
|
+
NgTemplateOutlet,
|
|
9381
|
+
GtrSelectModule,
|
|
9382
|
+
GtrIconModule,
|
|
9383
|
+
GtrValidatePagePipe,
|
|
9384
|
+
],
|
|
9385
|
+
exports: [GtrPaginationComponent],
|
|
9375
9386
|
}]
|
|
9376
9387
|
}] });
|
|
9377
9388
|
|
|
@@ -9383,7 +9394,7 @@ const CStatCardDateList = [
|
|
|
9383
9394
|
"Current Month" /* EStatCardDate.currentMonth */,
|
|
9384
9395
|
"Last Month" /* EStatCardDate.lastMonth */,
|
|
9385
9396
|
];
|
|
9386
|
-
class
|
|
9397
|
+
class GtrStatCardComponent {
|
|
9387
9398
|
set dateSelected(dateSelected) {
|
|
9388
9399
|
this._dateSelected = dateSelected;
|
|
9389
9400
|
}
|
|
@@ -9452,12 +9463,12 @@ class StatCardComponent {
|
|
|
9452
9463
|
this.dateSelectedChange.emit(date);
|
|
9453
9464
|
this.closeDateSelect();
|
|
9454
9465
|
}
|
|
9455
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9456
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type:
|
|
9466
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9467
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrStatCardComponent, selector: "gtr-stat-card", inputs: { showSkeletonLoading: "showSkeletonLoading", title: "title", displayValue: "displayValue", value: "value", iconName: "iconName", isDangerCard: ["isDangerCard", "isDangerCard", booleanAttribute], enabledPercentage: ["enabledPercentage", "enabledPercentage", booleanAttribute], percentage: "percentage", isPercentageTrendUp: ["isPercentageTrendUp", "isPercentageTrendUp", booleanAttribute], statsCardId: "statsCardId", enabledDateSelect: ["enabledDateSelect", "enabledDateSelect", booleanAttribute], dateOptions: "dateOptions", dateSelected: "dateSelected" }, outputs: { dateSelectedChange: "dateSelectedChange" }, viewQueries: [{ propertyName: "iconContainer", first: true, predicate: ["iconContainer"], descendants: true }, { propertyName: "labelContainer", first: true, predicate: ["labelContainer"], descendants: true }, { propertyName: "dateSelectOptions", first: true, predicate: ["DateSelectOptions"], descendants: true }], ngImport: i0, template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:#6e6b7b;font-size:11px;font-style:normal;font-weight:400;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:#6e6b7b;font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
9457
9468
|
}
|
|
9458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardComponent, decorators: [{
|
|
9459
9470
|
type: Component,
|
|
9460
|
-
args: [{ selector: '
|
|
9471
|
+
args: [{ selector: 'gtr-stat-card', template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:#6e6b7b;font-size:11px;font-style:normal;font-weight:400;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:#6e6b7b;font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"] }]
|
|
9461
9472
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { iconContainer: [{
|
|
9462
9473
|
type: ViewChild,
|
|
9463
9474
|
args: ['iconContainer']
|
|
@@ -9505,18 +9516,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9505
9516
|
args: ['DateSelectOptions', { static: false }]
|
|
9506
9517
|
}] } });
|
|
9507
9518
|
|
|
9508
|
-
class
|
|
9509
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9510
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9511
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9519
|
+
class GtrStatCardModule {
|
|
9520
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9521
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardModule, declarations: [GtrStatCardComponent], imports: [CommonModule, FormsModule, GtrSkeletonDirective, GtrIconModule], exports: [GtrStatCardComponent] }); }
|
|
9522
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardModule, providers: [GtrSkeletonDirective], imports: [CommonModule, FormsModule, GtrIconModule] }); }
|
|
9512
9523
|
}
|
|
9513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
9524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardModule, decorators: [{
|
|
9514
9525
|
type: NgModule,
|
|
9515
9526
|
args: [{
|
|
9516
|
-
declarations: [
|
|
9517
|
-
exports: [
|
|
9518
|
-
providers: [
|
|
9519
|
-
imports: [CommonModule, FormsModule,
|
|
9527
|
+
declarations: [GtrStatCardComponent],
|
|
9528
|
+
exports: [GtrStatCardComponent],
|
|
9529
|
+
providers: [GtrSkeletonDirective],
|
|
9530
|
+
imports: [CommonModule, FormsModule, GtrSkeletonDirective, GtrIconModule],
|
|
9520
9531
|
}]
|
|
9521
9532
|
}] });
|
|
9522
9533
|
|
|
@@ -9528,5 +9539,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9528
9539
|
* Generated bundle index. Do not edit.
|
|
9529
9540
|
*/
|
|
9530
9541
|
|
|
9531
|
-
export {
|
|
9542
|
+
export { BreakpointInfix, GettrxModule, Gtr2Accordion, Gtr2AccordionWrapper, Gtr2Badge, Gtr2Button, Gtr2Checkbox, Gtr2DatePicker, Gtr2FileInput, Gtr2GroupDropdown, Gtr2Icon, Gtr2Input, Gtr2Modal, Gtr2NumericCounter, Gtr2Pagination, Gtr2Popover, Gtr2PopoverWrapper, Gtr2RadioButton, Gtr2RadioButtonGroup, Gtr2Select, Gtr2StatsCard, Gtr2Switch, Gtr2Tab, Gtr2TabGroup, Gtr2TableContainer, Gtr2Textarea, Gtr2Toaster, Gtr2Tooltip, GtrAccordionComponent, GtrAccordionModule, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrBadgeModule, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDirectiveModule, GtrButtonModule, GtrCalendarComponent, GtrCalendarModule, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrCheckboxModule, GtrComponentName, GtrDatePickerComponent, GtrDatePickerModule, GtrDateRangePickerComponent, GtrDateRangePickerModule, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownModule, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFileInputModule, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormModule, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrIconModule, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrInputModule, GtrModalComponent, GtrModalModule, GtrNumericCounterComponent, GtrNumericCounterModule, GtrPaginationComponent, GtrPaginationModule, GtrPopoverComponent, GtrPopoverModule, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSelectModule, GtrSharedModule, GtrSkeletonComponent, GtrSkeletonDirective, GtrSkeletonModule, GtrStatCardComponent, GtrStatCardModule, GtrSwitchComponent, GtrSwitchModule, GtrTemplateIdDirective, GtrTextareaComponent, GtrTextareaModule, GtrTimePickerComponent, GtrTimePickerModule, GtrTooltipComponent, GtrTooltipModule, GtrTrimTextPipe, GtrValidatePagePipe, RadioButtonhModule, TextValueAccessor, ValueAccessor };
|
|
9532
9543
|
//# sourceMappingURL=gettrx-core-components-angular.mjs.map
|