@gettrx/core-components-angular 0.0.60 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/generated/components.mjs +729 -0
- package/esm2022/generated/proxies-list.mjs +30 -0
- package/esm2022/generated/text-value-accessor.mjs +36 -0
- package/{esm2020 → esm2022}/generated/value-accessor.mjs +4 -4
- package/{esm2020 → esm2022}/gettrx-module.mjs +5 -5
- package/esm2022/index.mjs +2 -0
- package/esm2022/lib/atoms/badge/badge.component.mjs +77 -0
- package/esm2022/lib/atoms/badge/badge.module.mjs +19 -0
- package/esm2022/lib/atoms/badge/index.mjs +2 -0
- package/esm2022/lib/atoms/badge/public_api.mjs +3 -0
- package/esm2022/lib/atoms/button/button-close.directive.mjs +39 -0
- package/esm2022/lib/atoms/button/button.directive.mjs +102 -0
- package/esm2022/lib/atoms/button/button.module.mjs +17 -0
- package/esm2022/lib/atoms/button/index.mjs +2 -0
- package/esm2022/lib/atoms/button/public_api.mjs +4 -0
- package/esm2022/lib/atoms/custom-button/custom-button.component.mjs +60 -0
- package/esm2022/lib/atoms/custom-button/custom-button.module.mjs +19 -0
- package/esm2022/lib/atoms/custom-button/index.mjs +3 -0
- package/esm2022/lib/atoms/custom-button/utils/utils.mjs +2 -0
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.component.mjs +109 -0
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.mjs +18 -0
- package/esm2022/lib/atoms/custom-gtr-switch/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-gtr-switch/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.mjs +143 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.mjs +18 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/utils/utils.mjs +2 -0
- package/esm2022/lib/atoms/custom-input/custom-input.component.mjs +364 -0
- package/esm2022/lib/atoms/custom-input/custom-input.module.mjs +21 -0
- package/esm2022/lib/atoms/custom-input/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-input/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-input/utils/input-utils.mjs +26 -0
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.component.mjs +242 -0
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.module.mjs +21 -0
- package/esm2022/lib/atoms/custom-textarea/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-textarea/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-textarea/utils/gtr-textarea.types.mjs +9 -0
- package/esm2022/lib/atoms/gtr.types.mjs +10 -0
- package/esm2022/lib/atoms/icon/icon.component.mjs +44 -0
- package/esm2022/lib/atoms/icon/icon.module.mjs +18 -0
- package/esm2022/lib/atoms/icon/index.mjs +2 -0
- package/esm2022/lib/atoms/icon/public_api.mjs +3 -0
- package/esm2022/lib/atoms/popover/index.mjs +2 -0
- package/esm2022/lib/atoms/popover/popover.component.mjs +147 -0
- package/esm2022/lib/atoms/popover/popover.module.mjs +18 -0
- package/esm2022/lib/atoms/popover/public_api.mjs +3 -0
- package/esm2022/lib/atoms/radio-button/index.mjs +2 -0
- package/esm2022/lib/atoms/radio-button/public_api.mjs +3 -0
- package/esm2022/lib/atoms/radio-button/radio-button.component.mjs +186 -0
- package/esm2022/lib/atoms/radio-button/radio-button.module.mjs +19 -0
- package/esm2022/lib/atoms/skeleton/index.mjs +2 -0
- package/esm2022/lib/atoms/skeleton/public_api.mjs +4 -0
- package/esm2022/lib/atoms/skeleton/skeleton.component.mjs +24 -0
- package/esm2022/lib/atoms/skeleton/skeleton.module.mjs +20 -0
- package/esm2022/lib/atoms/skeleton/utils/skeleton.directive.mjs +51 -0
- package/esm2022/lib/molecules/accordion/accordion/accordion.component.mjs +108 -0
- package/esm2022/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.mjs +92 -0
- package/esm2022/lib/molecules/accordion/accordion.module.mjs +21 -0
- package/esm2022/lib/molecules/accordion/index.mjs +2 -0
- package/esm2022/lib/molecules/accordion/public_api.mjs +4 -0
- package/esm2022/lib/molecules/button/button-close.directive.mjs +39 -0
- package/esm2022/lib/molecules/button/button.directive.mjs +100 -0
- package/esm2022/lib/molecules/button/button.module.mjs +17 -0
- package/esm2022/lib/molecules/button/index.mjs +2 -0
- package/esm2022/lib/molecules/button/public_api.mjs +4 -0
- package/esm2022/lib/molecules/calendar/calendar/calendar-class-view.pipe.mjs +20 -0
- package/esm2022/lib/molecules/calendar/calendar/calendar.component.mjs +428 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-day.pipe.mjs +30 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.mjs +23 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.mjs +22 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.mjs +17 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.directive.mjs +119 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.pipe.mjs +19 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.mjs +20 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.component.mjs +418 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.pipe.mjs +17 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.mjs +21 -0
- package/esm2022/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.mjs +85 -0
- package/esm2022/lib/molecules/calendar/calendar.module.mjs +55 -0
- package/esm2022/lib/molecules/calendar/calendar.service.mjs +62 -0
- package/esm2022/lib/molecules/calendar/calendar.utils.mjs +296 -0
- package/esm2022/lib/molecules/calendar/index.mjs +2 -0
- package/esm2022/lib/molecules/calendar/public_api.mjs +5 -0
- package/esm2022/lib/molecules/checkbox/checkbox/checkbox.component.mjs +96 -0
- package/esm2022/lib/molecules/checkbox/checkbox/checkbox.model.mjs +2 -0
- package/esm2022/lib/molecules/checkbox/checkbox.module.mjs +20 -0
- package/esm2022/lib/molecules/checkbox/index.mjs +2 -0
- package/esm2022/lib/molecules/checkbox/public_api.mjs +4 -0
- package/esm2022/lib/molecules/core-components.types.mjs +10 -0
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.component.mjs +148 -0
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.mjs +18 -0
- package/esm2022/lib/molecules/custom-gtr-modal/index.mjs +2 -0
- package/esm2022/lib/molecules/custom-gtr-modal/public_api.mjs +3 -0
- package/esm2022/lib/molecules/date-picker/date-picker.component.mjs +81 -0
- package/esm2022/lib/molecules/date-picker/date-picker.module.mjs +58 -0
- package/esm2022/lib/molecules/date-picker/index.mjs +2 -0
- package/esm2022/lib/molecules/date-picker/public_api.mjs +3 -0
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.mjs +700 -0
- package/esm2022/lib/molecules/date-range-picker/date-range-picker.module.mjs +58 -0
- package/esm2022/lib/molecules/date-range-picker/index.mjs +2 -0
- package/esm2022/lib/molecules/date-range-picker/public_api.mjs +3 -0
- package/esm2022/lib/molecules/dropdown/dropdown/dropdown.component.mjs +387 -0
- package/esm2022/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.mjs +79 -0
- package/esm2022/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.mjs +93 -0
- package/esm2022/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.mjs +75 -0
- package/esm2022/lib/molecules/dropdown/dropdown.module.mjs +56 -0
- package/esm2022/lib/molecules/dropdown/dropdown.service.mjs +18 -0
- package/esm2022/lib/molecules/dropdown/index.mjs +2 -0
- package/esm2022/lib/molecules/dropdown/public_api.mjs +10 -0
- package/esm2022/lib/molecules/file-input/file-input/file-input.component.mjs +144 -0
- package/esm2022/lib/molecules/file-input/file-input/file-input.model.mjs +2 -0
- package/esm2022/lib/molecules/file-input/file-input.module.mjs +18 -0
- package/esm2022/lib/molecules/file-input/index.mjs +2 -0
- package/esm2022/lib/molecules/file-input/public_api.mjs +4 -0
- package/esm2022/lib/molecules/form/form/form.directive.mjs +33 -0
- package/esm2022/lib/molecules/form/form-check/form-check-input.directive.mjs +62 -0
- package/esm2022/lib/molecules/form/form-check/form-check-label.directive.mjs +22 -0
- package/esm2022/lib/molecules/form/form-check/form-check.component.mjs +77 -0
- package/esm2022/lib/molecules/form/form-control/form-control.directive.mjs +66 -0
- package/esm2022/lib/molecules/form/form-feedback/form-feedback.component.mjs +38 -0
- package/esm2022/lib/molecules/form/form-floating/form-floating.directive.mjs +32 -0
- package/esm2022/lib/molecules/form/form-label/form-label.directive.mjs +40 -0
- package/esm2022/lib/molecules/form/form-select/form-select.directive.mjs +35 -0
- package/esm2022/lib/molecules/form/form-text/form-text.directive.mjs +22 -0
- package/esm2022/lib/molecules/form/form.module.mjs +75 -0
- package/esm2022/lib/molecules/form/index.mjs +2 -0
- package/esm2022/lib/molecules/form/input-group/input-group.component.mjs +32 -0
- package/esm2022/lib/molecules/form/input-group-text/input-group-text.directive.mjs +23 -0
- package/esm2022/lib/molecules/form/public_api.mjs +14 -0
- package/esm2022/lib/molecules/numeric-counter/index.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.component.mjs +158 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.const.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.type.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter.module.mjs +19 -0
- package/esm2022/lib/molecules/numeric-counter/public_api.mjs +5 -0
- package/esm2022/lib/molecules/pagination/helpers/index.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/models/index.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/models/pagination.interface.mjs +2 -0
- package/esm2022/lib/molecules/pagination/helpers/models/pagination.model.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/pipes/index.mjs +2 -0
- package/esm2022/lib/molecules/pagination/helpers/pipes/validate-page/validate-page.pipe.mjs +21 -0
- package/esm2022/lib/molecules/pagination/index.mjs +2 -0
- package/esm2022/lib/molecules/pagination/pagination/pagination.component.mjs +146 -0
- package/esm2022/lib/molecules/pagination/pagination/pagination.mjs +80 -0
- package/esm2022/lib/molecules/pagination/pagination.module.mjs +21 -0
- package/esm2022/lib/molecules/pagination/public_api.mjs +4 -0
- package/esm2022/lib/molecules/select/helpers/enums/index.mjs +2 -0
- package/esm2022/lib/molecules/select/helpers/enums/select.enums.mjs +6 -0
- package/esm2022/lib/molecules/select/helpers/index.mjs +4 -0
- package/esm2022/lib/molecules/select/helpers/pipes/format-selected-value/format-selected-value.pipe.mjs +57 -0
- package/esm2022/lib/molecules/select/helpers/pipes/index.mjs +3 -0
- package/esm2022/lib/molecules/select/helpers/pipes/trim-text/trim-text.pipe.mjs +26 -0
- package/esm2022/lib/molecules/select/helpers/types/index.mjs +2 -0
- package/esm2022/lib/molecules/select/helpers/types/select.type.mjs +2 -0
- package/esm2022/lib/molecules/select/index.mjs +2 -0
- package/esm2022/lib/molecules/select/public_api.mjs +4 -0
- package/esm2022/lib/molecules/select/select/select.component.mjs +445 -0
- package/esm2022/lib/molecules/select/select.module.mjs +37 -0
- package/esm2022/lib/molecules/shared/html-attr.directive.mjs +55 -0
- package/esm2022/lib/molecules/shared/index.mjs +2 -0
- package/esm2022/lib/molecules/shared/public_api.mjs +4 -0
- package/esm2022/lib/molecules/shared/shared.module.mjs +22 -0
- package/esm2022/lib/molecules/shared/template-id.directive.mjs +20 -0
- package/esm2022/lib/molecules/stat-card/index.mjs +2 -0
- package/esm2022/lib/molecules/stat-card/public_api.mjs +3 -0
- package/esm2022/lib/molecules/stat-card/stat-card.component.mjs +135 -0
- package/esm2022/lib/molecules/stat-card/stat-card.module.mjs +21 -0
- package/esm2022/lib/molecules/time-picker/index.mjs +2 -0
- package/esm2022/lib/molecules/time-picker/public_api.mjs +3 -0
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +106 -0
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +107 -0
- package/esm2022/lib/molecules/time-picker/time-picker.component.mjs +512 -0
- package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +51 -0
- package/esm2022/lib/molecules/time-picker/time.utils.mjs +676 -0
- package/esm2022/public-api.mjs +38 -0
- package/fesm2022/gettrx-core-components-angular.mjs +9696 -0
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -0
- package/generated/components.d.ts +124 -124
- package/generated/proxies-list.d.ts +1 -1
- package/generated/text-value-accessor.d.ts +1 -1
- package/gettrx-module.d.ts +1 -1
- package/index.d.ts +1 -5
- package/lib/atoms/badge/badge.component.d.ts +25 -0
- package/lib/atoms/badge/badge.module.d.ts +9 -0
- package/lib/atoms/badge/index.d.ts +1 -0
- package/lib/atoms/badge/public_api.d.ts +2 -0
- package/lib/atoms/button/button-close.directive.d.ts +13 -0
- package/lib/atoms/button/button.directive.d.ts +48 -0
- package/lib/atoms/button/button.module.d.ts +8 -0
- package/lib/atoms/button/index.d.ts +1 -0
- package/lib/atoms/button/public_api.d.ts +3 -0
- package/lib/atoms/custom-button/custom-button.component.d.ts +39 -0
- package/lib/atoms/custom-button/custom-button.module.d.ts +9 -0
- package/lib/atoms/custom-button/index.d.ts +2 -0
- package/lib/atoms/custom-button/utils/utils.d.ts +3 -0
- package/lib/atoms/custom-gtr-switch/custom-gtr-switch.component.d.ts +56 -0
- package/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.d.ts +8 -0
- package/lib/atoms/custom-gtr-switch/index.d.ts +1 -0
- package/lib/atoms/custom-gtr-switch/public_api.d.ts +2 -0
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.d.ts +59 -0
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.d.ts +8 -0
- package/lib/atoms/custom-gtr-tooltip/index.d.ts +1 -0
- package/lib/atoms/custom-gtr-tooltip/public_api.d.ts +2 -0
- package/lib/atoms/custom-gtr-tooltip/utils/utils.d.ts +1 -0
- package/lib/atoms/custom-input/custom-input.component.d.ts +161 -0
- package/lib/atoms/custom-input/custom-input.module.d.ts +10 -0
- package/lib/atoms/custom-input/index.d.ts +1 -0
- package/lib/atoms/custom-input/public_api.d.ts +2 -0
- package/lib/atoms/custom-input/utils/input-utils.d.ts +30 -0
- package/lib/atoms/custom-textarea/custom-textarea.component.d.ts +112 -0
- package/lib/atoms/custom-textarea/custom-textarea.module.d.ts +10 -0
- package/lib/atoms/custom-textarea/index.d.ts +1 -0
- package/lib/atoms/custom-textarea/public_api.d.ts +2 -0
- package/lib/atoms/custom-textarea/utils/gtr-textarea.types.d.ts +12 -0
- package/lib/atoms/gtr.types.d.ts +46 -0
- package/lib/atoms/icon/icon.component.d.ts +27 -0
- package/lib/atoms/icon/icon.module.d.ts +8 -0
- package/lib/atoms/icon/index.d.ts +1 -0
- package/lib/atoms/icon/public_api.d.ts +2 -0
- package/lib/atoms/popover/index.d.ts +1 -0
- package/lib/atoms/popover/popover.component.d.ts +35 -0
- package/lib/atoms/popover/popover.module.d.ts +8 -0
- package/lib/atoms/popover/public_api.d.ts +2 -0
- package/lib/atoms/radio-button/index.d.ts +1 -0
- package/lib/atoms/radio-button/public_api.d.ts +2 -0
- package/lib/atoms/radio-button/radio-button.component.d.ts +89 -0
- package/lib/atoms/radio-button/radio-button.module.d.ts +9 -0
- package/lib/atoms/skeleton/index.d.ts +1 -0
- package/lib/atoms/skeleton/public_api.d.ts +3 -0
- package/lib/atoms/skeleton/skeleton.component.d.ts +12 -0
- package/lib/atoms/skeleton/skeleton.module.d.ts +9 -0
- package/lib/atoms/skeleton/utils/skeleton.directive.d.ts +15 -0
- package/lib/molecules/accordion/accordion/accordion.component.d.ts +59 -0
- package/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.d.ts +37 -0
- package/lib/molecules/accordion/accordion.module.d.ts +11 -0
- package/lib/molecules/accordion/index.d.ts +1 -0
- package/lib/molecules/accordion/public_api.d.ts +3 -0
- package/lib/molecules/button/button-close.directive.d.ts +13 -0
- package/lib/molecules/button/button.directive.d.ts +48 -0
- package/lib/molecules/button/button.module.d.ts +8 -0
- package/lib/molecules/button/index.d.ts +1 -0
- package/lib/molecules/button/public_api.d.ts +3 -0
- package/lib/molecules/calendar/calendar/calendar-class-view.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar/calendar.component.d.ts +177 -0
- package/lib/molecules/calendar/calendar-month/calendar-class-day.pipe.d.ts +15 -0
- package/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-day.directive.d.ts +33 -0
- package/lib/molecules/calendar/calendar-month/calendar-day.pipe.d.ts +8 -0
- package/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-month.component.d.ts +134 -0
- package/lib/molecules/calendar/calendar-month/calendar-month.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.d.ts +8 -0
- package/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.d.ts +32 -0
- package/lib/molecules/calendar/calendar.module.d.ts +19 -0
- package/lib/molecules/calendar/calendar.service.d.ts +36 -0
- package/lib/molecules/calendar/calendar.utils.d.ts +26 -0
- package/lib/molecules/calendar/index.d.ts +1 -0
- package/lib/molecules/calendar/public_api.d.ts +4 -0
- package/lib/molecules/checkbox/checkbox/checkbox.component.d.ts +54 -0
- package/lib/molecules/checkbox/checkbox/checkbox.model.d.ts +4 -0
- package/lib/molecules/checkbox/checkbox.module.d.ts +10 -0
- package/lib/molecules/checkbox/index.d.ts +1 -0
- package/lib/molecules/checkbox/public_api.d.ts +3 -0
- package/lib/molecules/core-components.types.d.ts +46 -0
- package/lib/molecules/custom-gtr-modal/custom-gtr-modal.component.d.ts +75 -0
- package/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.d.ts +8 -0
- package/lib/molecules/custom-gtr-modal/index.d.ts +1 -0
- package/lib/molecules/custom-gtr-modal/public_api.d.ts +2 -0
- package/lib/molecules/date-picker/date-picker.component.d.ts +18 -0
- package/lib/molecules/date-picker/date-picker.module.d.ts +18 -0
- package/lib/molecules/date-picker/index.d.ts +1 -0
- package/lib/molecules/date-picker/public_api.d.ts +2 -0
- package/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.d.ts +272 -0
- package/lib/molecules/date-range-picker/date-range-picker.module.d.ts +18 -0
- package/lib/molecules/date-range-picker/index.d.ts +1 -0
- package/lib/molecules/date-range-picker/public_api.d.ts +2 -0
- package/lib/molecules/dropdown/dropdown/dropdown.component.d.ts +136 -0
- package/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.d.ts +26 -0
- package/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.d.ts +36 -0
- package/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +34 -0
- package/lib/molecules/dropdown/dropdown.module.d.ts +13 -0
- package/lib/molecules/dropdown/dropdown.service.d.ts +13 -0
- package/lib/molecules/dropdown/index.d.ts +1 -0
- package/lib/molecules/dropdown/public_api.d.ts +9 -0
- package/lib/molecules/file-input/file-input/file-input.component.d.ts +72 -0
- package/lib/molecules/file-input/file-input/file-input.model.d.ts +3 -0
- package/lib/molecules/file-input/file-input.module.d.ts +8 -0
- package/lib/molecules/file-input/index.d.ts +1 -0
- package/lib/molecules/file-input/public_api.d.ts +3 -0
- package/lib/molecules/form/form/form.directive.d.ts +13 -0
- package/lib/molecules/form/form-check/form-check-input.directive.d.ts +31 -0
- package/lib/molecules/form/form-check/form-check-label.directive.d.ts +6 -0
- package/lib/molecules/form/form-check/form-check.component.d.ts +39 -0
- package/lib/molecules/form/form-control/form-control.directive.d.ts +31 -0
- package/lib/molecules/form/form-feedback/form-feedback.component.d.ts +17 -0
- package/lib/molecules/form/form-floating/form-floating.directive.d.ts +12 -0
- package/lib/molecules/form/form-label/form-label.directive.d.ts +16 -0
- package/lib/molecules/form/form-select/form-select.directive.d.ts +16 -0
- package/lib/molecules/form/form-text/form-text.directive.d.ts +6 -0
- package/lib/molecules/form/form.module.d.ts +18 -0
- package/lib/molecules/form/index.d.ts +1 -0
- package/lib/molecules/form/input-group/input-group.component.d.ts +11 -0
- package/lib/molecules/form/input-group-text/input-group-text.directive.d.ts +7 -0
- package/lib/molecules/form/public_api.d.ts +13 -0
- package/lib/molecules/numeric-counter/index.d.ts +1 -0
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.component.d.ts +27 -0
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.const.d.ts +1 -0
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.type.d.ts +4 -0
- package/lib/molecules/numeric-counter/numeric-counter.module.d.ts +9 -0
- package/lib/molecules/numeric-counter/public_api.d.ts +4 -0
- package/lib/molecules/pagination/helpers/index.d.ts +2 -0
- package/lib/molecules/pagination/helpers/models/index.d.ts +2 -0
- package/lib/molecules/pagination/helpers/models/pagination.interface.d.ts +7 -0
- package/lib/molecules/pagination/helpers/models/pagination.model.d.ts +2 -0
- package/lib/molecules/pagination/helpers/pipes/index.d.ts +1 -0
- package/lib/molecules/pagination/helpers/pipes/validate-page/validate-page.pipe.d.ts +8 -0
- package/lib/molecules/pagination/index.d.ts +1 -0
- package/lib/molecules/pagination/pagination/pagination.component.d.ts +65 -0
- package/lib/molecules/pagination/pagination/pagination.d.ts +21 -0
- package/lib/molecules/pagination/pagination.module.d.ts +11 -0
- package/lib/molecules/pagination/public_api.d.ts +3 -0
- package/lib/molecules/select/helpers/enums/index.d.ts +1 -0
- package/lib/molecules/select/helpers/enums/select.enums.d.ts +4 -0
- package/lib/molecules/select/helpers/index.d.ts +3 -0
- package/lib/molecules/select/helpers/pipes/format-selected-value/format-selected-value.pipe.d.ts +8 -0
- package/lib/molecules/select/helpers/pipes/index.d.ts +2 -0
- package/lib/molecules/select/helpers/pipes/trim-text/trim-text.pipe.d.ts +7 -0
- package/lib/molecules/select/helpers/types/index.d.ts +1 -0
- package/lib/molecules/select/helpers/types/select.type.d.ts +7 -0
- package/lib/molecules/select/index.d.ts +1 -0
- package/lib/molecules/select/public_api.d.ts +3 -0
- package/lib/molecules/select/select/select.component.d.ts +159 -0
- package/lib/molecules/select/select.module.d.ts +12 -0
- package/lib/molecules/shared/html-attr.directive.d.ts +16 -0
- package/lib/molecules/shared/index.d.ts +1 -0
- package/lib/molecules/shared/public_api.d.ts +3 -0
- package/lib/molecules/shared/shared.module.d.ts +10 -0
- package/lib/molecules/shared/template-id.directive.d.ts +9 -0
- package/lib/molecules/stat-card/index.d.ts +1 -0
- package/lib/molecules/stat-card/public_api.d.ts +2 -0
- package/lib/molecules/stat-card/stat-card.component.d.ts +56 -0
- package/lib/molecules/stat-card/stat-card.module.d.ts +11 -0
- package/lib/molecules/time-picker/index.d.ts +1 -0
- package/lib/molecules/time-picker/public_api.d.ts +2 -0
- package/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.d.ts +39 -0
- package/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.d.ts +38 -0
- package/lib/molecules/time-picker/time-picker.component.d.ts +196 -0
- package/lib/molecules/time-picker/time-picker.module.d.ts +14 -0
- package/lib/molecules/time-picker/time.utils.d.ts +57 -0
- package/package.json +8 -15
- package/public-api.d.ts +31 -0
- package/esm2020/generated/components.mjs +0 -729
- package/esm2020/generated/number-value-accessor.mjs +0 -40
- package/esm2020/generated/proxies-list.mjs +0 -30
- package/esm2020/generated/text-value-accessor.mjs +0 -36
- package/esm2020/index.mjs +0 -9
- package/fesm2015/gettrx-core-components-angular.mjs +0 -918
- package/fesm2015/gettrx-core-components-angular.mjs.map +0 -1
- package/fesm2020/gettrx-core-components-angular.mjs +0 -918
- package/fesm2020/gettrx-core-components-angular.mjs.map +0 -1
- package/generated/number-value-accessor.d.ts +0 -9
- /package/{esm2020 → esm2022}/generated/angular-component-lib/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/gettrx-core-components-angular.mjs +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./badge.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../icon/icon.module";
|
|
5
|
+
export declare class BadgeModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BadgeModule, [typeof i1.BadgeComponent], [typeof i2.CommonModule, typeof i3.GtrIconModule], [typeof i1.BadgeComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BadgeModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonDirective } from './button.directive';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ButtonCloseDirective extends ButtonDirective {
|
|
4
|
+
/**
|
|
5
|
+
* Change the default color to white.
|
|
6
|
+
* @type boolean
|
|
7
|
+
*/
|
|
8
|
+
white: string | boolean;
|
|
9
|
+
get hostClasses(): any;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonCloseDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonCloseDirective, "[gtrButtonClose]", never, { "white": { "alias": "white"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
static ngAcceptInputType_white: unknown;
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ButtonType, Colors, Shapes } from '../gtr.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ButtonDirective {
|
|
4
|
+
/**
|
|
5
|
+
* Toggle the active state for the component. [docs]
|
|
6
|
+
* @type boolean
|
|
7
|
+
*/
|
|
8
|
+
active: string | boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Sets the color context of the component to one of Gettrx’s themed colors. [docs]
|
|
11
|
+
* @type Colors
|
|
12
|
+
*/
|
|
13
|
+
color?: Colors;
|
|
14
|
+
/**
|
|
15
|
+
* Toggle the disabled state for the component.
|
|
16
|
+
* @type boolean
|
|
17
|
+
*/
|
|
18
|
+
disabled: string | boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Select the shape of the component.
|
|
21
|
+
* @type { 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string }
|
|
22
|
+
*/
|
|
23
|
+
shape?: Shapes;
|
|
24
|
+
/**
|
|
25
|
+
* Size the component small or large.
|
|
26
|
+
* @type {'sm' | 'lg'}
|
|
27
|
+
*/
|
|
28
|
+
size?: 'sm' | 'lg' | '';
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the type of button. Always specify the type attribute for the `<button>` element.
|
|
31
|
+
* Different browsers may use different default types for the `<button>` element.
|
|
32
|
+
*/
|
|
33
|
+
type: ButtonType;
|
|
34
|
+
/**
|
|
35
|
+
* Set the button variant to an outlined button or a ghost button.
|
|
36
|
+
* @type {'ghost' | 'outline'}
|
|
37
|
+
*/
|
|
38
|
+
variant?: 'ghost' | 'outline';
|
|
39
|
+
get hostClasses(): any;
|
|
40
|
+
get ariaDisabled(): string | true | null;
|
|
41
|
+
get isActive(): boolean | null;
|
|
42
|
+
get attrDisabled(): "" | null;
|
|
43
|
+
get tabIndex(): string | null;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[gtrButton]", ["gtrButton"], { "active": { "alias": "active"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, never>;
|
|
46
|
+
static ngAcceptInputType_active: unknown;
|
|
47
|
+
static ngAcceptInputType_disabled: unknown;
|
|
48
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./button.directive";
|
|
3
|
+
import * as i2 from "./button-close.directive";
|
|
4
|
+
export declare class ButtonModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, never, [typeof i1.ButtonDirective, typeof i2.ButtonCloseDirective], [typeof i1.ButtonDirective, typeof i2.ButtonCloseDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ButtonModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ButtonColor, ButtonVariant, ButtonType } from './utils/utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CustomButtonComponent implements OnInit {
|
|
5
|
+
classMap: any;
|
|
6
|
+
/** (optional) Button type */
|
|
7
|
+
type?: ButtonType | any;
|
|
8
|
+
/** (optional) Button type */
|
|
9
|
+
btnId: string;
|
|
10
|
+
/**
|
|
11
|
+
* (optional) color.
|
|
12
|
+
* @default primary
|
|
13
|
+
*/
|
|
14
|
+
color?: ButtonColor | any;
|
|
15
|
+
/**
|
|
16
|
+
* (optional) loading.
|
|
17
|
+
* @default isLoading
|
|
18
|
+
*/
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Optional variant. <br />
|
|
22
|
+
* `raised` : Rectangular contained button w/ elevation <br />
|
|
23
|
+
* `flat` : Rectangular contained button w/ no elevation <br />
|
|
24
|
+
* `outline` : Rectangular outlined button w/ no elevation <br />
|
|
25
|
+
* `link` : Rectangular text button w/ no elevation <br />
|
|
26
|
+
* `icon` : Circular button with a transparent background, meant to contain an icon
|
|
27
|
+
*/
|
|
28
|
+
variant?: ButtonVariant | any;
|
|
29
|
+
/** (optional) If `true`, the button is disabled */
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
getCssClassMap(): {
|
|
32
|
+
[x: string]: boolean | undefined;
|
|
33
|
+
"button--loading": boolean | undefined;
|
|
34
|
+
disabled: boolean | undefined;
|
|
35
|
+
};
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomButtonComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomButtonComponent, "gtr-button", never, { "type": { "alias": "type"; "required": false; }; "btnId": { "alias": "btnId"; "required": false; }; "color": { "alias": "color"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-button.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class CustomButtonModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomButtonModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomButtonModule, [typeof i1.CustomButtonComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.CustomButtonComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomButtonModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CustomGtrSwitchComponent implements AfterViewInit, ControlValueAccessor {
|
|
5
|
+
ngControl: NgControl;
|
|
6
|
+
constructor(ngControl: NgControl);
|
|
7
|
+
ngAfterViewInit(): void;
|
|
8
|
+
writeValue(obj: any): void;
|
|
9
|
+
registerOnChange(fn: any): void;
|
|
10
|
+
registerOnTouched(fn: any): void;
|
|
11
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
12
|
+
/**
|
|
13
|
+
* Checked state for gtr switch button
|
|
14
|
+
* @returns boolean value
|
|
15
|
+
*/
|
|
16
|
+
checked: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Id for debugging the element
|
|
19
|
+
* @returns boolean value
|
|
20
|
+
*/
|
|
21
|
+
switchId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Disabled state for switch button
|
|
24
|
+
* accept boolean value
|
|
25
|
+
*/
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Readonly state for switch button
|
|
29
|
+
* accept boolean value
|
|
30
|
+
*/
|
|
31
|
+
readonly: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Readonly state for switch button
|
|
34
|
+
* accept boolean value
|
|
35
|
+
*/
|
|
36
|
+
tabIndex: number;
|
|
37
|
+
/**
|
|
38
|
+
* To add label text for switches
|
|
39
|
+
*/
|
|
40
|
+
label?: string | number;
|
|
41
|
+
/**
|
|
42
|
+
* To detect value change events in gtr switch
|
|
43
|
+
* @returns Custom event for latest checked state
|
|
44
|
+
*/
|
|
45
|
+
gtrChange: EventEmitter<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Local method to handle keyboard events for switch button
|
|
48
|
+
*/
|
|
49
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
50
|
+
/**
|
|
51
|
+
* Local method to handle click events for switch button
|
|
52
|
+
*/
|
|
53
|
+
handleClick(): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrSwitchComponent, [{ optional: true; self: true; }]>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomGtrSwitchComponent, "gtr-switch", never, { "checked": { "alias": "checked"; "required": false; }; "switchId": { "alias": "switchId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "gtrChange": "gtrChange"; }, never, never, false, never>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-gtr-switch.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class CustomGtrSwitchModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrSwitchModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomGtrSwitchModule, [typeof i1.CustomGtrSwitchComponent], [typeof i2.CommonModule], [typeof i1.CustomGtrSwitchComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomGtrSwitchModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { positionType } from './utils/utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CustomGtrTooltipComponent implements AfterViewInit, ControlValueAccessor {
|
|
6
|
+
ngControl: NgControl;
|
|
7
|
+
private tooltipElement;
|
|
8
|
+
/**
|
|
9
|
+
* The tooltip element
|
|
10
|
+
*/
|
|
11
|
+
contentEl?: ElementRef;
|
|
12
|
+
/**
|
|
13
|
+
* The keyup event for hide tooltip visibility on escape key
|
|
14
|
+
*/
|
|
15
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
16
|
+
/**
|
|
17
|
+
* The resize and scroll listeners for scroll and window resize event is fired to adjust tooltip position
|
|
18
|
+
*/
|
|
19
|
+
handleResizeScroll(): void;
|
|
20
|
+
constructor(ngControl: NgControl, tooltipElement: ElementRef);
|
|
21
|
+
writeValue(obj: any): void;
|
|
22
|
+
registerOnChange(fn: any): void;
|
|
23
|
+
registerOnTouched(fn: any): void;
|
|
24
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
25
|
+
/**
|
|
26
|
+
* The tooltip content
|
|
27
|
+
*/
|
|
28
|
+
tooltipId: string;
|
|
29
|
+
/**
|
|
30
|
+
* The tooltip content
|
|
31
|
+
*/
|
|
32
|
+
content?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The tooltip position
|
|
35
|
+
*/
|
|
36
|
+
position: positionType;
|
|
37
|
+
/**
|
|
38
|
+
* The popover auto adjust position
|
|
39
|
+
*/
|
|
40
|
+
autoAdjustable: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The tooltip adjustable position
|
|
43
|
+
*/
|
|
44
|
+
newPosition: string;
|
|
45
|
+
/**
|
|
46
|
+
* The watch decorator fires event when tooltip position changed
|
|
47
|
+
*/
|
|
48
|
+
adjustPosition(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* The click event for hide tooltip visibility
|
|
51
|
+
*/
|
|
52
|
+
hideTooltip(): void;
|
|
53
|
+
/**
|
|
54
|
+
* The componentWillLoad hook
|
|
55
|
+
*/
|
|
56
|
+
ngAfterViewInit(): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrTooltipComponent, [{ optional: true; self: true; }, null]>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomGtrTooltipComponent, "gtr-tooltip", never, { "tooltipId": { "alias": "tooltipId"; "required": false; }; "content": { "alias": "content"; "required": false; }; "position": { "alias": "position"; "required": false; }; "autoAdjustable": { "alias": "autoAdjustable"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-gtr-tooltip.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class CustomGtrTooltipModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrTooltipModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomGtrTooltipModule, [typeof i1.CustomGtrTooltipComponent], [typeof i2.CommonModule], [typeof i1.CustomGtrTooltipComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomGtrTooltipModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type positionType = 'top' | 'bottom' | 'left' | 'right';
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { InputDataResponse } from './utils/input-utils';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CustomInputComponent implements AfterViewInit, ControlValueAccessor {
|
|
6
|
+
ngControl: NgControl;
|
|
7
|
+
constructor(ngControl: NgControl);
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
onChanged: any;
|
|
10
|
+
onTouched: any;
|
|
11
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
12
|
+
writeValue(obj: any): void;
|
|
13
|
+
registerOnTouched(fn: () => void): void;
|
|
14
|
+
setDisabledState(isDisabled: boolean): void;
|
|
15
|
+
/**
|
|
16
|
+
* The Skeleton loading
|
|
17
|
+
*/
|
|
18
|
+
inputWrapperId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The Skeleton loading
|
|
21
|
+
*/
|
|
22
|
+
loading: boolean;
|
|
23
|
+
inputType: string;
|
|
24
|
+
/**
|
|
25
|
+
* The input type
|
|
26
|
+
*/
|
|
27
|
+
set type(value: string);
|
|
28
|
+
/**
|
|
29
|
+
* The input value
|
|
30
|
+
*/
|
|
31
|
+
value: string | number;
|
|
32
|
+
/**
|
|
33
|
+
* The input pleaceholder
|
|
34
|
+
*/
|
|
35
|
+
placeholder: string;
|
|
36
|
+
/**
|
|
37
|
+
* The input icon
|
|
38
|
+
*/
|
|
39
|
+
inputIcon: string;
|
|
40
|
+
/**
|
|
41
|
+
* The input icon size
|
|
42
|
+
*/
|
|
43
|
+
iconSize: number;
|
|
44
|
+
/**
|
|
45
|
+
* The input icon color
|
|
46
|
+
*/
|
|
47
|
+
iconColor: string;
|
|
48
|
+
/**
|
|
49
|
+
* The required
|
|
50
|
+
*/
|
|
51
|
+
iconPosition: 'start' | 'end';
|
|
52
|
+
/**
|
|
53
|
+
* The input icon font weight
|
|
54
|
+
*/
|
|
55
|
+
iconFontWeight: string;
|
|
56
|
+
/**
|
|
57
|
+
* The input label
|
|
58
|
+
*/
|
|
59
|
+
inputLabel: string;
|
|
60
|
+
/**
|
|
61
|
+
* The disabled input
|
|
62
|
+
*/
|
|
63
|
+
disabled: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* The check label
|
|
66
|
+
*/
|
|
67
|
+
validateLabel: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* The disabled input
|
|
70
|
+
*/
|
|
71
|
+
isNumber: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The readonly input
|
|
74
|
+
*/
|
|
75
|
+
readonly: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* The readonly input
|
|
78
|
+
*/
|
|
79
|
+
isOnlyView: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The default validation
|
|
82
|
+
*/
|
|
83
|
+
defaultValidation: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* The required
|
|
86
|
+
*/
|
|
87
|
+
required: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* The input valid boolean
|
|
90
|
+
*/
|
|
91
|
+
isValid: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* The error state
|
|
94
|
+
*/
|
|
95
|
+
hasError: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The icon input field
|
|
98
|
+
*/
|
|
99
|
+
isIcon: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* The
|
|
102
|
+
*/
|
|
103
|
+
isTouched: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* The error message to be shown
|
|
106
|
+
*/
|
|
107
|
+
errorMsg: string;
|
|
108
|
+
/**
|
|
109
|
+
* The input change eventemitter
|
|
110
|
+
*/
|
|
111
|
+
inputChanged: EventEmitter<InputDataResponse>;
|
|
112
|
+
/**
|
|
113
|
+
* The error eventemitter
|
|
114
|
+
*/
|
|
115
|
+
handleError: EventEmitter<Error>;
|
|
116
|
+
/**
|
|
117
|
+
* The input type validator
|
|
118
|
+
*/
|
|
119
|
+
private inputFields;
|
|
120
|
+
/**
|
|
121
|
+
* The input data to be send when input value changes
|
|
122
|
+
*/
|
|
123
|
+
private data;
|
|
124
|
+
/**
|
|
125
|
+
* The input unique id
|
|
126
|
+
*/
|
|
127
|
+
inputId?: string;
|
|
128
|
+
/**
|
|
129
|
+
* The component function to handle input change
|
|
130
|
+
*/
|
|
131
|
+
handledKeyPressed(event: Event): void;
|
|
132
|
+
/**
|
|
133
|
+
* The component function to handle input change
|
|
134
|
+
*/
|
|
135
|
+
handleInput(event: Event): void;
|
|
136
|
+
/**
|
|
137
|
+
* The component function to handle input on focus event
|
|
138
|
+
*/
|
|
139
|
+
handleOnfocus(): void;
|
|
140
|
+
/**
|
|
141
|
+
* The component function to handle input on blur event
|
|
142
|
+
*/
|
|
143
|
+
handleOnBlur(): void;
|
|
144
|
+
/**
|
|
145
|
+
* The component function to verify error input messages
|
|
146
|
+
*/
|
|
147
|
+
hasErrorValidate: () => void;
|
|
148
|
+
/**
|
|
149
|
+
* The component function to verify input type
|
|
150
|
+
*/
|
|
151
|
+
isDesiredInput(): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* The decorator used to detect every change accurred for input and call function on change
|
|
154
|
+
*/
|
|
155
|
+
validateInput(): string | null;
|
|
156
|
+
get isShowCustomError(): boolean;
|
|
157
|
+
get isShowDefaultError(): boolean;
|
|
158
|
+
get isInputInvalid(): boolean;
|
|
159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent, [{ optional: true; self: true; }]>;
|
|
160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent, "gtr-input", never, { "inputWrapperId": { "alias": "inputWrapperId"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputIcon": { "alias": "inputIcon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "iconFontWeight": { "alias": "iconFontWeight"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "validateLabel": { "alias": "validateLabel"; "required": false; }; "isNumber": { "alias": "isNumber"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "defaultValidation": { "alias": "defaultValidation"; "required": false; }; "required": { "alias": "required"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "inputChanged": "inputChanged"; "handleError": "handleError"; }, never, never, false, never>;
|
|
161
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-input.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../skeleton/utils/skeleton.directive";
|
|
5
|
+
import * as i4 from "../icon/icon.module";
|
|
6
|
+
export declare class CustomInputModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomInputModule, [typeof i1.CustomInputComponent], [typeof i2.CommonModule, typeof i3.SkeletonDirective, typeof i4.GtrIconModule], [typeof i1.CustomInputComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomInputModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const CONSTANTS: {
|
|
2
|
+
email_regex: RegExp;
|
|
3
|
+
password_regex: RegExp;
|
|
4
|
+
number_regex: RegExp;
|
|
5
|
+
};
|
|
6
|
+
export declare const ERROR_MESSAGES: {
|
|
7
|
+
invalid_number: string;
|
|
8
|
+
invalid_input_type: string;
|
|
9
|
+
invalid_email: string;
|
|
10
|
+
empty_field: string;
|
|
11
|
+
password_pattern: string;
|
|
12
|
+
input_not_allowed: string;
|
|
13
|
+
};
|
|
14
|
+
export type input = 'text' | 'number' | 'password' | 'email';
|
|
15
|
+
export declare enum InputType {
|
|
16
|
+
TEXT = "text",
|
|
17
|
+
NUMBER = "number",
|
|
18
|
+
PASSWORD = "password",
|
|
19
|
+
EMAIL = "email"
|
|
20
|
+
}
|
|
21
|
+
export declare enum InputState {
|
|
22
|
+
VALID = "valid",
|
|
23
|
+
INVALID = "invalid"
|
|
24
|
+
}
|
|
25
|
+
export interface InputDataResponse {
|
|
26
|
+
event: Event | KeyboardEvent;
|
|
27
|
+
value: string | number;
|
|
28
|
+
inputstate: string;
|
|
29
|
+
invalid: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { textareaDataResponse } from './utils/gtr-textarea.types';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CustomTextareaComponent implements ControlValueAccessor {
|
|
6
|
+
ngControl: NgControl;
|
|
7
|
+
constructor(ngControl: NgControl);
|
|
8
|
+
onChanged: any;
|
|
9
|
+
onTouched: any;
|
|
10
|
+
writeValue(obj: any): void;
|
|
11
|
+
registerOnChange(fn: any): void;
|
|
12
|
+
registerOnTouched(fn: any): void;
|
|
13
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
14
|
+
/**
|
|
15
|
+
* The textarea value
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
/**
|
|
19
|
+
* The textarea pleaceholder
|
|
20
|
+
*/
|
|
21
|
+
placeholder: string;
|
|
22
|
+
/**
|
|
23
|
+
* The textarea loading state
|
|
24
|
+
*/
|
|
25
|
+
loading: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The textarea label
|
|
28
|
+
*/
|
|
29
|
+
textareaLabel: string;
|
|
30
|
+
/**
|
|
31
|
+
* The disabled textarea
|
|
32
|
+
*/
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The wrapper id textarea
|
|
36
|
+
*/
|
|
37
|
+
textAreaWrapperId: string;
|
|
38
|
+
/**
|
|
39
|
+
* The readonly textarea
|
|
40
|
+
*/
|
|
41
|
+
readonly: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The textarea valid boolean
|
|
44
|
+
*/
|
|
45
|
+
isValid: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The readonly textarea
|
|
48
|
+
*/
|
|
49
|
+
isOnlyView: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The default validation
|
|
52
|
+
*/
|
|
53
|
+
defaultValidation?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The error state
|
|
56
|
+
*/
|
|
57
|
+
hasError?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The is touched
|
|
60
|
+
*/
|
|
61
|
+
isTouched: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The error message to be shown
|
|
64
|
+
*/
|
|
65
|
+
errorMsg: string;
|
|
66
|
+
/**
|
|
67
|
+
* The textarea change eventemitter
|
|
68
|
+
*/
|
|
69
|
+
textareaChanged: EventEmitter<textareaDataResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* The error eventemitter
|
|
72
|
+
*/
|
|
73
|
+
handleError: EventEmitter<any>;
|
|
74
|
+
/**
|
|
75
|
+
* The textarea data to be send when textarea value changes
|
|
76
|
+
*/
|
|
77
|
+
private data;
|
|
78
|
+
/**
|
|
79
|
+
* The textarea unique id
|
|
80
|
+
*/
|
|
81
|
+
textareaId: string;
|
|
82
|
+
/**
|
|
83
|
+
* The component function to handle textarea change
|
|
84
|
+
*/
|
|
85
|
+
handleTextarea(event: Event): void;
|
|
86
|
+
/**
|
|
87
|
+
* The component function to handle textarea on focus event
|
|
88
|
+
*/
|
|
89
|
+
handleOnfocus(): void;
|
|
90
|
+
/**
|
|
91
|
+
* The component function to handle textarea on blur event
|
|
92
|
+
*/
|
|
93
|
+
handleOnBlur(): void;
|
|
94
|
+
/**
|
|
95
|
+
* The component function to verify error textarea messages
|
|
96
|
+
*/
|
|
97
|
+
hasErrorValidate: () => void;
|
|
98
|
+
/**
|
|
99
|
+
* The componentWillLoad hook
|
|
100
|
+
*/
|
|
101
|
+
componentWillLoad(): void;
|
|
102
|
+
/**
|
|
103
|
+
* The decorator used to detect every change accurred for textarea and call function on change
|
|
104
|
+
*/
|
|
105
|
+
validatetextarea(): string | null;
|
|
106
|
+
get isShowCustomError(): boolean;
|
|
107
|
+
get isShowDefaultError(): boolean;
|
|
108
|
+
get isInputInvalid(): boolean;
|
|
109
|
+
render(): void;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTextareaComponent, [{ optional: true; self: true; }]>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomTextareaComponent, "gtr-textarea", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "textareaLabel": { "alias": "textareaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "textAreaWrapperId": { "alias": "textAreaWrapperId"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "defaultValidation": { "alias": "defaultValidation"; "required": false; }; }, { "textareaChanged": "textareaChanged"; "handleError": "handleError"; }, never, never, false, never>;
|
|
112
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-textarea.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../skeleton/utils/skeleton.directive";
|
|
5
|
+
import * as i4 from "../icon/icon.module";
|
|
6
|
+
export declare class CustomTextareaModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTextareaModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomTextareaModule, [typeof i1.CustomTextareaComponent], [typeof i2.CommonModule, typeof i3.SkeletonDirective, typeof i4.GtrIconModule], [typeof i1.CustomTextareaComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomTextareaModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|