ecabs-components 1.0.19 → 1.0.21
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/ecabs-components.mjs +5 -0
- package/esm2022/lib/base/consts/date-mask.consts.mjs +57 -0
- package/esm2022/lib/base/directives/date-mask.directive.mjs +67 -0
- package/esm2022/lib/base/directives/date-mask.directive.module.mjs +22 -0
- package/esm2022/lib/base/directives/digits-only.directive.mjs +133 -0
- package/esm2022/lib/base/directives/digits-only.directive.module.mjs +22 -0
- package/esm2022/lib/base/directives/number-border.directive.mjs +58 -0
- package/esm2022/lib/base/directives/number-border.directive.module.mjs +22 -0
- package/esm2022/lib/base/element-base.mjs +105 -0
- package/esm2022/lib/base/element-wrapper/element-wrapper.component.mjs +56 -0
- package/esm2022/lib/base/element-wrapper/element-wrapper.module.mjs +52 -0
- package/esm2022/lib/base/hint/hint.component.mjs +21 -0
- package/esm2022/lib/base/hint/hint.module.mjs +20 -0
- package/esm2022/lib/base/validation/validation.component.mjs +75 -0
- package/esm2022/lib/base/validation/validation.module.mjs +20 -0
- package/esm2022/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.mjs +17 -0
- package/esm2022/lib/ecabs-breadcrumb/ecabs-breadcrumb.module.mjs +20 -0
- package/esm2022/lib/ecabs-buttons/ecabs-buttons.component.mjs +64 -0
- package/esm2022/lib/ecabs-buttons/ecabs-buttons.module.mjs +21 -0
- package/esm2022/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.mjs +94 -0
- package/esm2022/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module.mjs +36 -0
- package/esm2022/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.mjs +15 -0
- package/esm2022/lib/ecabs-date-picker/ecabs-date-picker.component.mjs +89 -0
- package/esm2022/lib/ecabs-date-picker/ecabs-date-picker.module.mjs +48 -0
- package/esm2022/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.mjs +15 -0
- package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.mjs +186 -0
- package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.mjs +64 -0
- package/esm2022/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.mjs +15 -0
- package/esm2022/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.mjs +199 -0
- package/esm2022/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module.mjs +65 -0
- package/esm2022/lib/ecabs-date-time-range-picker/time-range.directive.mjs +48 -0
- package/esm2022/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.mjs +50 -0
- package/esm2022/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.module.mjs +20 -0
- package/esm2022/lib/ecabs-dialog-message/ecabs-dialog-message.component.mjs +47 -0
- package/esm2022/lib/ecabs-dialog-message/ecabs-dialog-message.module.mjs +20 -0
- package/esm2022/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.mjs +22 -0
- package/esm2022/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.mjs +19 -0
- package/esm2022/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.mjs +85 -0
- package/esm2022/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.mjs +24 -0
- package/esm2022/lib/ecabs-increment/ecabs-increment.component.mjs +83 -0
- package/esm2022/lib/ecabs-increment/ecabs-increment.module.mjs +23 -0
- package/esm2022/lib/ecabs-input/ecabs-input.component.mjs +90 -0
- package/esm2022/lib/ecabs-input/ecabs-input.module.mjs +22 -0
- package/esm2022/lib/ecabs-language-selector/ecabs-language-selector.component.mjs +64 -0
- package/esm2022/lib/ecabs-language-selector/ecabs-language-selector.module.mjs +39 -0
- package/esm2022/lib/ecabs-loading/ecabs-loading.component.mjs +22 -0
- package/esm2022/lib/ecabs-loading/ecabs-loading.module.mjs +19 -0
- package/esm2022/lib/ecabs-loading/spinner/spinner.component.mjs +14 -0
- package/esm2022/lib/ecabs-note/ecabs-note.component.mjs +28 -0
- package/esm2022/lib/ecabs-note/ecabs-note.module.mjs +19 -0
- package/esm2022/lib/ecabs-phone/ecabs-phone.component.mjs +111 -0
- package/esm2022/lib/ecabs-phone/ecabs-phone.module.mjs +22 -0
- package/esm2022/lib/ecabs-picker-header/ecabs-picker-header.component.mjs +53 -0
- package/esm2022/lib/ecabs-picker-header/ecabs-picker-header.module.mjs +22 -0
- package/esm2022/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.mjs +68 -0
- package/esm2022/lib/ecabs-radio-button-list/ecabs-radio-button-list.module.mjs +32 -0
- package/esm2022/lib/ecabs-select/ecabs-select.component.mjs +316 -0
- package/esm2022/lib/ecabs-select/ecabs-select.module.mjs +60 -0
- package/esm2022/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.mjs +19 -0
- package/esm2022/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.mjs +24 -0
- package/esm2022/lib/ecabs-table/ecabs-table.component.mjs +48 -0
- package/esm2022/lib/ecabs-table/ecabs-table.module.mjs +33 -0
- package/esm2022/lib/ecabs-textarea/ecabs-textarea.component.mjs +65 -0
- package/esm2022/lib/ecabs-textarea/ecabs-textarea.module.mjs +20 -0
- package/esm2022/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.mjs +144 -0
- package/esm2022/lib/ecabs-timepicker/config.model.mjs +2 -0
- package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.component.mjs +322 -0
- package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.module.mjs +20 -0
- package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.service.mjs +29 -0
- package/esm2022/lib/models/bread-crumb.mjs +2 -0
- package/esm2022/lib/models/timepicker.models.mjs +2 -0
- package/esm2022/lib/services/ecabs-components.service.mjs +31 -0
- package/esm2022/public-api.mjs +55 -0
- package/fesm2022/ecabs-components.mjs +3478 -0
- package/fesm2022/ecabs-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/base/consts/date-mask.consts.d.ts +7 -0
- package/lib/base/directives/date-mask.directive.d.ts +16 -0
- package/lib/base/directives/date-mask.directive.module.d.ts +8 -0
- package/lib/base/directives/digits-only.directive.d.ts +26 -0
- package/lib/base/directives/digits-only.directive.module.d.ts +8 -0
- package/lib/base/directives/number-border.directive.d.ts +13 -0
- package/lib/base/directives/number-border.directive.module.d.ts +8 -0
- package/lib/base/element-base.d.ts +28 -0
- package/lib/base/element-wrapper/element-wrapper.component.d.ts +19 -0
- package/lib/base/element-wrapper/element-wrapper.module.d.ts +16 -0
- package/lib/base/hint/hint.component.d.ts +8 -0
- package/lib/base/hint/hint.module.d.ts +10 -0
- package/lib/base/validation/validation.component.d.ts +24 -0
- package/lib/base/validation/validation.module.d.ts +10 -0
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.d.ts +7 -0
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.module.d.ts +10 -0
- package/lib/ecabs-buttons/ecabs-buttons.component.d.ts +20 -0
- package/lib/ecabs-buttons/ecabs-buttons.module.d.ts +11 -0
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.d.ts +29 -0
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module.d.ts +12 -0
- package/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.d.ts +6 -0
- package/lib/ecabs-date-picker/ecabs-date-picker.component.d.ts +29 -0
- package/lib/ecabs-date-picker/ecabs-date-picker.module.d.ts +15 -0
- package/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.d.ts +6 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.d.ts +51 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.d.ts +19 -0
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.d.ts +6 -0
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.d.ts +58 -0
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module.d.ts +20 -0
- package/lib/ecabs-date-time-range-picker/time-range.directive.d.ts +15 -0
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.d.ts +31 -0
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.module.d.ts +11 -0
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.d.ts +28 -0
- package/lib/ecabs-dialog-message/ecabs-dialog-message.module.d.ts +11 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.d.ts +12 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.d.ts +9 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.d.ts +28 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.d.ts +14 -0
- package/lib/ecabs-increment/ecabs-increment.component.d.ts +26 -0
- package/lib/ecabs-increment/ecabs-increment.module.d.ts +13 -0
- package/lib/ecabs-input/ecabs-input.component.d.ts +27 -0
- package/lib/ecabs-input/ecabs-input.module.d.ts +12 -0
- package/lib/ecabs-language-selector/ecabs-language-selector.component.d.ts +20 -0
- package/lib/ecabs-language-selector/ecabs-language-selector.module.d.ts +12 -0
- package/lib/ecabs-loading/ecabs-loading.component.d.ts +8 -0
- package/lib/ecabs-loading/ecabs-loading.module.d.ts +9 -0
- package/lib/ecabs-loading/spinner/spinner.component.d.ts +6 -0
- package/lib/ecabs-note/ecabs-note.component.d.ts +7 -0
- package/lib/ecabs-note/ecabs-note.module.d.ts +9 -0
- package/lib/ecabs-phone/ecabs-phone.component.d.ts +33 -0
- package/lib/ecabs-phone/ecabs-phone.module.d.ts +12 -0
- package/lib/ecabs-picker-header/ecabs-picker-header.component.d.ts +19 -0
- package/lib/ecabs-picker-header/ecabs-picker-header.module.d.ts +12 -0
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.d.ts +24 -0
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.module.d.ts +11 -0
- package/lib/ecabs-select/ecabs-select.component.d.ts +71 -0
- package/lib/ecabs-select/ecabs-select.module.d.ts +15 -0
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.d.ts +8 -0
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.d.ts +9 -0
- package/lib/ecabs-table/ecabs-table.component.d.ts +18 -0
- package/lib/ecabs-table/ecabs-table.module.d.ts +12 -0
- package/lib/ecabs-textarea/ecabs-textarea.component.d.ts +20 -0
- package/lib/ecabs-textarea/ecabs-textarea.module.d.ts +10 -0
- package/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.d.ts +40 -0
- package/lib/ecabs-timepicker/config.model.d.ts +5 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.component.d.ts +53 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.module.d.ts +10 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.service.d.ts +12 -0
- package/lib/models/bread-crumb.d.ts +5 -0
- package/{src/lib/models/timepicker.models.ts → lib/models/timepicker.models.d.ts} +3 -4
- package/lib/services/ecabs-components.service.d.ts +16 -0
- package/package.json +33 -25
- package/{src/styles → styles}/material/overrides/_button.scss +1 -0
- package/styles/material/overrides/_icon.scss +3 -0
- package/{src/styles → styles}/material/overrides/_phone.scss +24 -2
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/assets/images/nothing-here.svg +0 -22
- package/src/lib/base/consts/date-mask.consts.ts +0 -70
- package/src/lib/base/directives/date-mask.directive.module.ts +0 -14
- package/src/lib/base/directives/date-mask.directive.ts +0 -58
- package/src/lib/base/directives/digits-only.directive.module.ts +0 -15
- package/src/lib/base/directives/digits-only.directive.ts +0 -129
- package/src/lib/base/directives/number-border.directive.module.ts +0 -14
- package/src/lib/base/directives/number-border.directive.ts +0 -57
- package/src/lib/base/element-base.ts +0 -72
- package/src/lib/base/element-wrapper/element-wrapper.component.html +0 -30
- package/src/lib/base/element-wrapper/element-wrapper.component.ts +0 -33
- package/src/lib/base/element-wrapper/element-wrapper.module.ts +0 -30
- package/src/lib/base/hint/hint.component.html +0 -1
- package/src/lib/base/hint/hint.component.scss +0 -0
- package/src/lib/base/hint/hint.component.ts +0 -12
- package/src/lib/base/hint/hint.module.ts +0 -13
- package/src/lib/base/validation/validation.component.html +0 -8
- package/src/lib/base/validation/validation.component.scss +0 -0
- package/src/lib/base/validation/validation.component.ts +0 -84
- package/src/lib/base/validation/validation.module.ts +0 -13
- package/src/lib/consts/tenant.consts.ts +0 -8
- package/src/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.html +0 -11
- package/src/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.scss +0 -0
- package/src/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.spec.ts +0 -24
- package/src/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.ts +0 -12
- package/src/lib/ecabs-breadcrumb/ecabs-breadcrumb.module.ts +0 -12
- package/src/lib/ecabs-buttons/ecabs-buttons.component.html +0 -18
- package/src/lib/ecabs-buttons/ecabs-buttons.component.scss +0 -3
- package/src/lib/ecabs-buttons/ecabs-buttons.component.ts +0 -55
- package/src/lib/ecabs-buttons/ecabs-buttons.module.ts +0 -14
- package/src/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.html +0 -27
- package/src/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.scss +0 -15
- package/src/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.ts +0 -81
- package/src/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module.ts +0 -21
- package/src/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.html +0 -4
- package/src/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.scss +0 -0
- package/src/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.spec.ts +0 -23
- package/src/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.ts +0 -11
- package/src/lib/ecabs-date-picker/ecabs-date-picker.component.html +0 -31
- package/src/lib/ecabs-date-picker/ecabs-date-picker.component.scss +0 -23
- package/src/lib/ecabs-date-picker/ecabs-date-picker.component.spec.ts +0 -24
- package/src/lib/ecabs-date-picker/ecabs-date-picker.component.ts +0 -72
- package/src/lib/ecabs-date-picker/ecabs-date-picker.module.ts +0 -29
- package/src/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.html +0 -4
- package/src/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.scss +0 -0
- package/src/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.spec.ts +0 -23
- package/src/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.ts +0 -11
- package/src/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.html +0 -31
- package/src/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.scss +0 -36
- package/src/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.spec.ts +0 -23
- package/src/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.ts +0 -113
- package/src/lib/ecabs-date-range-picker/ecabs-date-range-picker.module.ts +0 -50
- package/src/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.html +0 -4
- package/src/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.scss +0 -14
- package/src/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.ts +0 -11
- package/src/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.html +0 -87
- package/src/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.scss +0 -82
- package/src/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.spec.ts +0 -23
- package/src/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.ts +0 -185
- package/src/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.ts +0 -38
- package/src/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.html +0 -4
- package/src/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.scss +0 -5
- package/src/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.spec.ts +0 -23
- package/src/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.ts +0 -10
- package/src/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.html +0 -116
- package/src/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.scss +0 -43
- package/src/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.spec.ts +0 -24
- package/src/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.ts +0 -206
- package/src/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module.ts +0 -39
- package/src/lib/ecabs-date-time-range-picker/time-range.directive.ts +0 -38
- package/src/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.html +0 -32
- package/src/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.scss +0 -24
- package/src/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.ts +0 -57
- package/src/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.module.ts +0 -13
- package/src/lib/ecabs-dialog-message/ecabs-dialog-message.component.html +0 -27
- package/src/lib/ecabs-dialog-message/ecabs-dialog-message.component.scss +0 -25
- package/src/lib/ecabs-dialog-message/ecabs-dialog-message.component.spec.ts +0 -38
- package/src/lib/ecabs-dialog-message/ecabs-dialog-message.component.ts +0 -49
- package/src/lib/ecabs-dialog-message/ecabs-dialog-message.module.ts +0 -13
- package/src/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.html +0 -9
- package/src/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.scss +0 -0
- package/src/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.spec.ts +0 -34
- package/src/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.ts +0 -22
- package/src/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.ts +0 -11
- package/src/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.html +0 -33
- package/src/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.scss +0 -79
- package/src/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.spec.ts +0 -26
- package/src/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.ts +0 -77
- package/src/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.ts +0 -17
- package/src/lib/ecabs-increment/ecabs-increment.component.html +0 -18
- package/src/lib/ecabs-increment/ecabs-increment.component.scss +0 -33
- package/src/lib/ecabs-increment/ecabs-increment.component.ts +0 -74
- package/src/lib/ecabs-increment/ecabs-increment.module.ts +0 -15
- package/src/lib/ecabs-input/ecabs-input.component.html +0 -26
- package/src/lib/ecabs-input/ecabs-input.component.ts +0 -85
- package/src/lib/ecabs-input/ecabs-input.module.ts +0 -14
- package/src/lib/ecabs-language-selector/ecabs-language-selector.component.html +0 -17
- package/src/lib/ecabs-language-selector/ecabs-language-selector.component.scss +0 -26
- package/src/lib/ecabs-language-selector/ecabs-language-selector.component.ts +0 -63
- package/src/lib/ecabs-language-selector/ecabs-language-selector.module.ts +0 -22
- package/src/lib/ecabs-loading/ecabs-loading.component.html +0 -7
- package/src/lib/ecabs-loading/ecabs-loading.component.spec.ts +0 -24
- package/src/lib/ecabs-loading/ecabs-loading.component.ts +0 -11
- package/src/lib/ecabs-loading/ecabs-loading.module.ts +0 -11
- package/src/lib/ecabs-loading/spinner/spinner.component.html +0 -5
- package/src/lib/ecabs-loading/spinner/spinner.component.scss +0 -61
- package/src/lib/ecabs-loading/spinner/spinner.component.spec.ts +0 -24
- package/src/lib/ecabs-loading/spinner/spinner.component.ts +0 -11
- package/src/lib/ecabs-note/ecabs-note.component.html +0 -10
- package/src/lib/ecabs-note/ecabs-note.component.scss +0 -29
- package/src/lib/ecabs-note/ecabs-note.component.ts +0 -27
- package/src/lib/ecabs-note/ecabs-note.module.ts +0 -11
- package/src/lib/ecabs-phone/ecabs-phone.component.html +0 -17
- package/src/lib/ecabs-phone/ecabs-phone.component.ts +0 -108
- package/src/lib/ecabs-phone/ecabs-phone.module.ts +0 -15
- package/src/lib/ecabs-picker-header/ecabs-picker-header.component.html +0 -12
- package/src/lib/ecabs-picker-header/ecabs-picker-header.component.scss +0 -16
- package/src/lib/ecabs-picker-header/ecabs-picker-header.component.ts +0 -61
- package/src/lib/ecabs-picker-header/ecabs-picker-header.module.ts +0 -15
- package/src/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.html +0 -13
- package/src/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.scss +0 -16
- package/src/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.ts +0 -60
- package/src/lib/ecabs-radio-button-list/ecabs-radio-button-list.module.ts +0 -18
- package/src/lib/ecabs-select/ecabs-select.component.html +0 -45
- package/src/lib/ecabs-select/ecabs-select.component.ts +0 -346
- package/src/lib/ecabs-select/ecabs-select.module.ts +0 -37
- package/src/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.html +0 -7
- package/src/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.scss +0 -11
- package/src/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.spec.ts +0 -34
- package/src/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.ts +0 -14
- package/src/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.ts +0 -14
- package/src/lib/ecabs-table/ecabs-table.component.html +0 -26
- package/src/lib/ecabs-table/ecabs-table.component.scss +0 -6
- package/src/lib/ecabs-table/ecabs-table.component.spec.ts +0 -24
- package/src/lib/ecabs-table/ecabs-table.component.ts +0 -42
- package/src/lib/ecabs-table/ecabs-table.module.ts +0 -19
- package/src/lib/ecabs-textarea/ecabs-textarea.component.html +0 -13
- package/src/lib/ecabs-textarea/ecabs-textarea.component.ts +0 -61
- package/src/lib/ecabs-textarea/ecabs-textarea.module.ts +0 -12
- package/src/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.html +0 -16
- package/src/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.ts +0 -126
- package/src/lib/ecabs-timepicker/config.model.ts +0 -5
- package/src/lib/ecabs-timepicker/ecabs-timepicker.component.html +0 -36
- package/src/lib/ecabs-timepicker/ecabs-timepicker.component.scss +0 -5
- package/src/lib/ecabs-timepicker/ecabs-timepicker.component.ts +0 -330
- package/src/lib/ecabs-timepicker/ecabs-timepicker.module.ts +0 -12
- package/src/lib/ecabs-timepicker/ecabs-timepicker.service.ts +0 -28
- package/src/lib/models/bread-crumb.ts +0 -5
- package/src/lib/services/ecabs-components.service.ts +0 -33
- package/src/styles/material/overrides/_icon.scss +0 -3
- package/src/test.ts +0 -27
- package/tailwind.config.js +0 -31
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/{src/styles → styles}/material/_theme.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_autocomplete.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_card.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_chip.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_datepicker.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_dialog.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_divider.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_expansion.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_form.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_menu.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_paginator.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_select.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_tab.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_table.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_toaster.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_toggle.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_toolbar.scss +0 -0
- /package/{src/styles → styles}/material/overrides/_tooltip.scss +0 -0
- /package/{src/styles → styles}/material/overrides/index.scss +0 -0
- /package/{src/styles → styles}/scss/base/_heading.scss +0 -0
- /package/{src/styles → styles}/scss/base/_normalize.scss +0 -0
- /package/{src/styles → styles}/scss/base/index.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_autocomplete.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_button.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_card.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_chip.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_datepicker.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_dialog.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_divider.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_form.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_icon.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_img.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_legend.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_list.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_map.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_percentage.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_phone.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_select.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_statuses.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_tab.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_table.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_timepicker.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_toaster.scss +0 -0
- /package/{src/styles → styles}/scss/modules/_tooltip.scss +0 -0
- /package/{src/styles → styles}/scss/modules/drag-drop.scss +0 -0
- /package/{src/styles → styles}/scss/modules/index.scss +0 -0
- /package/{src/styles → styles}/scss/utilities/_colors.scss +0 -0
- /package/{src/styles → styles}/scss/utilities/_fonts.scss +0 -0
- /package/{src/styles → styles}/scss/utilities/_functions.scss +0 -0
- /package/{src/styles → styles}/scss/utilities/_helpers.scss +0 -0
- /package/{src/styles → styles}/scss/utilities/_mixins.scss +0 -0
- /package/{src/styles → styles}/scss/utilities/_palettes.scss +0 -0
- /package/{src/styles → styles}/scss/utilities/_variables.scss +0 -0
- /package/{src/styles → styles}/scss/utilities/index.scss +0 -0
- /package/{src/styles → styles}/styles.scss +0 -0
- /package/{src/styles → styles}/tailwind/index.scss +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementRef, HostListener, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Directive({
|
|
4
|
-
selector: '[appNumberBorder]',
|
|
5
|
-
})
|
|
6
|
-
export class NumberBorderDirective {
|
|
7
|
-
@Input() maxValue: number;
|
|
8
|
-
@Input() minValue: number;
|
|
9
|
-
|
|
10
|
-
inputElement: HTMLInputElement;
|
|
11
|
-
|
|
12
|
-
constructor(public el: ElementRef) {
|
|
13
|
-
this.inputElement = el.nativeElement;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@HostListener('keyup', ['$event'])
|
|
17
|
-
onKeyUp(e): void {
|
|
18
|
-
const value = +e.target.value;
|
|
19
|
-
|
|
20
|
-
if (isNaN(value)) {
|
|
21
|
-
this.inputElement.value = this.sanitizeInput(e.target.value);
|
|
22
|
-
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if (this.maxValue) {
|
|
27
|
-
if (value > this.maxValue) {
|
|
28
|
-
this.inputElement.value = this.sanitizeInput(this.maxValue.toString());
|
|
29
|
-
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
if (this.minValue && this.minValue !== value) {
|
|
35
|
-
if (value < this.minValue) {
|
|
36
|
-
this.inputElement.value = this.sanitizeInput(this.minValue.toString());
|
|
37
|
-
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
private sanitizeInput(input: string): string {
|
|
44
|
-
let result = '';
|
|
45
|
-
const regex = new RegExp(`/\d+/g`);
|
|
46
|
-
result = input.replace(regex, '');
|
|
47
|
-
|
|
48
|
-
const maxLength = this.inputElement.maxLength;
|
|
49
|
-
|
|
50
|
-
if (maxLength > 0) {
|
|
51
|
-
const allowedLength = maxLength - this.inputElement.value.length;
|
|
52
|
-
result = allowedLength > 0 ? result.substring(0, allowedLength) : '';
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return result;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Input, Output, EventEmitter, Component } from '@angular/core';
|
|
2
|
-
import { AbstractControl, UntypedFormControl } from '@angular/forms';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
template: '',
|
|
6
|
-
})
|
|
7
|
-
export default class ElementBaseComponent {
|
|
8
|
-
@Input() type!:string;
|
|
9
|
-
@Input() name!:string;
|
|
10
|
-
@Input() label!:string;
|
|
11
|
-
@Input() placeholder = '';
|
|
12
|
-
@Input() validationLabel!:string;
|
|
13
|
-
@Input() disabled = false;
|
|
14
|
-
@Input() showValidation = true;
|
|
15
|
-
@Input() showValidationOnNotTouched = false;
|
|
16
|
-
@Input() hideValidationMessage = false;
|
|
17
|
-
@Input() iconClass = '';
|
|
18
|
-
@Input() loading = false;
|
|
19
|
-
@Input() showHint: boolean = false;
|
|
20
|
-
@Input() maxLength!: number;
|
|
21
|
-
@Input() tooltip!: string;
|
|
22
|
-
@Input() showAsterisk: boolean = true;
|
|
23
|
-
|
|
24
|
-
@Output() focused = new EventEmitter<any>();
|
|
25
|
-
@Output() focusOuted = new EventEmitter<any>();
|
|
26
|
-
|
|
27
|
-
control!: UntypedFormControl;
|
|
28
|
-
required: boolean = false;
|
|
29
|
-
|
|
30
|
-
getData(): any {
|
|
31
|
-
return {
|
|
32
|
-
type: this.type || 'text',
|
|
33
|
-
label: this.label,
|
|
34
|
-
placeholder: this.placeholder,
|
|
35
|
-
validationLabel: this.validationLabel,
|
|
36
|
-
disabled: this.disabled,
|
|
37
|
-
showValidation: this.showValidation,
|
|
38
|
-
showValidationOnNotTouched: this.showValidationOnNotTouched,
|
|
39
|
-
hideValidationMessage: this.hideValidationMessage,
|
|
40
|
-
iconClass: this.iconClass,
|
|
41
|
-
control: this.control,
|
|
42
|
-
loading: this.loading,
|
|
43
|
-
showHint: this.showHint,
|
|
44
|
-
maxLength: this.maxLength,
|
|
45
|
-
tooltip: this.tooltip,
|
|
46
|
-
name: this.name,
|
|
47
|
-
required: this.isRequired(this.control),
|
|
48
|
-
showAsterisk: this.showAsterisk,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
private isRequired = (ctrl: any): boolean => {
|
|
53
|
-
if (ctrl?.validator) {
|
|
54
|
-
const validator = ctrl.validator({} as AbstractControl);
|
|
55
|
-
if (validator && validator['required']) {
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
if (ctrl?.['controls']) {
|
|
61
|
-
for (const name in ctrl['controls']) {
|
|
62
|
-
if (ctrl['controls'][name]) {
|
|
63
|
-
if (this.isRequired(ctrl['controls'][name])) {
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return false;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
class="form-field"
|
|
3
|
-
[ngClass]="{
|
|
4
|
-
'form-field--invalid':
|
|
5
|
-
data?.showValidation && (data?.control?.touched || data?.showValidationOnNotTouched) && data?.control?.invalid,
|
|
6
|
-
disabled: data?.disabled,
|
|
7
|
-
'form-field--required': data?.required && data?.showAsterisk
|
|
8
|
-
}"
|
|
9
|
-
>
|
|
10
|
-
<div>
|
|
11
|
-
<label class="form-field__label" [attr.for]="data?.name" *ngIf="data?.label">
|
|
12
|
-
<span [innerHTML]="data?.label"></span>
|
|
13
|
-
<mat-icon class="icon" *ngIf="data?.tooltip" [matTooltip]="data?.tooltip">error_outline</mat-icon>
|
|
14
|
-
</label>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<ng-content></ng-content>
|
|
18
|
-
|
|
19
|
-
<ecabs-loading-spinner class="spinner" size="tiny" *ngIf="data.loading"></ecabs-loading-spinner>
|
|
20
|
-
|
|
21
|
-
<app-hint [element]="data?.control" [showHint]="data?.showHint" [maxValue]="data?.maxLength"></app-hint>
|
|
22
|
-
|
|
23
|
-
<app-validations-messages
|
|
24
|
-
*ngIf="data?.showValidation && !data?.hideValidationMessage"
|
|
25
|
-
[element]="data?.control"
|
|
26
|
-
[label]="data?.label ? data?.label : data?.placeholder ? data.placeholder : data?.validationLabel"
|
|
27
|
-
[showValidationOnNotTouched]="data?.showValidationOnNotTouched"
|
|
28
|
-
>
|
|
29
|
-
</app-validations-messages>
|
|
30
|
-
</div>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'app-element-wrapper',
|
|
5
|
-
templateUrl: './element-wrapper.component.html',
|
|
6
|
-
})
|
|
7
|
-
export class ElementWrapperComponent {
|
|
8
|
-
@Input() data!:any;
|
|
9
|
-
@Input() showCloseIcon!:boolean;
|
|
10
|
-
@Input() focusedFlag!:any;
|
|
11
|
-
@Input() showPassword!:boolean;
|
|
12
|
-
@Input() control!:any;
|
|
13
|
-
@Output() showHidePassword = new EventEmitter<any>();
|
|
14
|
-
@Output() clear = new EventEmitter<any>();
|
|
15
|
-
@Output() increase = new EventEmitter<any>();
|
|
16
|
-
@Output() decrease = new EventEmitter<any>();
|
|
17
|
-
|
|
18
|
-
showHidePasswordFn(event:any): void {
|
|
19
|
-
this.showHidePassword.emit(event);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
clearFn(): void {
|
|
23
|
-
this.clear.emit();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
increaseFn(): void {
|
|
27
|
-
this.increase.emit();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
decreaseFn(): void {
|
|
31
|
-
this.decrease.emit();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {CommonModule} from '@angular/common';
|
|
2
|
-
import {NgModule} from '@angular/core';
|
|
3
|
-
import {FormsModule} from '@angular/forms';
|
|
4
|
-
|
|
5
|
-
import {HintModule} from '../hint/hint.module';
|
|
6
|
-
import {ValidationModule} from '../validation/validation.module';
|
|
7
|
-
import {ElementWrapperComponent} from './element-wrapper.component';
|
|
8
|
-
import {MatIconModule} from '@angular/material/icon';
|
|
9
|
-
import {EcabsLoadingModule} from '../../ecabs-loading/ecabs-loading.module';
|
|
10
|
-
import {MatLegacyFormFieldModule as MatFormFieldModule} from '@angular/material/legacy-form-field';
|
|
11
|
-
import {MatLegacyInputModule as MatInputModule} from '@angular/material/legacy-input';
|
|
12
|
-
import {MatLegacyTooltipModule as MatTooltipModule} from "@angular/material/legacy-tooltip";
|
|
13
|
-
|
|
14
|
-
@NgModule({
|
|
15
|
-
declarations: [ElementWrapperComponent],
|
|
16
|
-
imports: [
|
|
17
|
-
CommonModule,
|
|
18
|
-
FormsModule,
|
|
19
|
-
EcabsLoadingModule,
|
|
20
|
-
ValidationModule,
|
|
21
|
-
MatFormFieldModule,
|
|
22
|
-
MatInputModule,
|
|
23
|
-
MatIconModule,
|
|
24
|
-
MatTooltipModule,
|
|
25
|
-
HintModule,
|
|
26
|
-
],
|
|
27
|
-
exports: [ElementWrapperComponent],
|
|
28
|
-
})
|
|
29
|
-
export class ElementWrapperModule {
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div class="hint" *ngIf="element && showHint">{{ element?.value?.length || 0 }}/{{ this.maxValue }}</div>
|
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'app-hint',
|
|
5
|
-
templateUrl: './hint.component.html',
|
|
6
|
-
styleUrls: ['./hint.component.scss'],
|
|
7
|
-
})
|
|
8
|
-
export class HintComponent {
|
|
9
|
-
@Input() element!:any;
|
|
10
|
-
@Input() maxValue!:number;
|
|
11
|
-
@Input() showHint = false;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {CommonModule} from '@angular/common';
|
|
2
|
-
import {NgModule} from '@angular/core';
|
|
3
|
-
import {FormsModule} from '@angular/forms';
|
|
4
|
-
import {HintComponent} from './hint.component';
|
|
5
|
-
import {MatLegacyFormFieldModule as MatFormFieldModule} from '@angular/material/legacy-form-field';
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
declarations: [HintComponent],
|
|
9
|
-
imports: [CommonModule, FormsModule, MatFormFieldModule],
|
|
10
|
-
exports: [HintComponent],
|
|
11
|
-
})
|
|
12
|
-
export class HintModule {
|
|
13
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
class="form-field__validation"
|
|
3
|
-
*ngIf="element && (element?.touched || showValidationOnNotTouched) && element?.invalid"
|
|
4
|
-
>
|
|
5
|
-
<div class="form-field__validation__item" *ngFor="let item of element?.errors | keyvalue">
|
|
6
|
-
{{ getMessageDetail(item.key) }}
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
File without changes
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
OnInit,
|
|
4
|
-
Input,
|
|
5
|
-
OnChanges,
|
|
6
|
-
SimpleChanges,
|
|
7
|
-
} from '@angular/core';
|
|
8
|
-
import {
|
|
9
|
-
EcabsComponentsConfig,
|
|
10
|
-
EcabsComponentsService,
|
|
11
|
-
} from '../../services/ecabs-components.service';
|
|
12
|
-
|
|
13
|
-
@Component({
|
|
14
|
-
selector: 'app-validations-messages',
|
|
15
|
-
templateUrl: './validation.component.html',
|
|
16
|
-
styleUrls: ['./validation.component.scss'],
|
|
17
|
-
})
|
|
18
|
-
export class ValidationComponent implements OnInit, OnChanges {
|
|
19
|
-
@Input() element!: any;
|
|
20
|
-
@Input() label!: string;
|
|
21
|
-
@Input() showValidationOnNotTouched = false;
|
|
22
|
-
@Input() updatedErrors!: { type: string; message: string }[];
|
|
23
|
-
config!: EcabsComponentsConfig;
|
|
24
|
-
private _messages: any = {};
|
|
25
|
-
|
|
26
|
-
get messages(): any {
|
|
27
|
-
if (this.element) {
|
|
28
|
-
for (const errorKey in this.element.errors) {
|
|
29
|
-
for (const key in this.element.errors[errorKey]) {
|
|
30
|
-
if (this._messages[errorKey]) {
|
|
31
|
-
this._messages[errorKey] = this._messages[errorKey].replace(
|
|
32
|
-
`[${key}]`,
|
|
33
|
-
this.element.errors[errorKey][key]
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return this._messages;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
set messages(m) {
|
|
44
|
-
this._messages = m;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
constructor(private ecabsService: EcabsComponentsService) {}
|
|
48
|
-
|
|
49
|
-
ngOnInit() {
|
|
50
|
-
this.config = this.ecabsService.getConfig();
|
|
51
|
-
for (let error of this.config.errorMessages) {
|
|
52
|
-
this.messages[error.type] = this.replaceTokens(error.message);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
ngOnChanges(changes: SimpleChanges): void {
|
|
57
|
-
const { updatedErrors } = changes;
|
|
58
|
-
|
|
59
|
-
if (
|
|
60
|
-
updatedErrors &&
|
|
61
|
-
updatedErrors.currentValue &&
|
|
62
|
-
updatedErrors.currentValue.length > 0
|
|
63
|
-
) {
|
|
64
|
-
for (const error of updatedErrors.currentValue) {
|
|
65
|
-
this.messages[error.type] = error.message;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
replaceTokens(message: string): string {
|
|
71
|
-
let retMessage: string;
|
|
72
|
-
if (this.label) {
|
|
73
|
-
retMessage = message.replace('[label]', this.label);
|
|
74
|
-
} else {
|
|
75
|
-
retMessage = message;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return retMessage;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
getMessageDetail(key: any): string {
|
|
82
|
-
return this.messages[key];
|
|
83
|
-
}
|
|
84
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {NgModule} from '@angular/core';
|
|
2
|
-
import {ValidationComponent} from './validation.component';
|
|
3
|
-
import {FormsModule} from '@angular/forms';
|
|
4
|
-
import {CommonModule} from '@angular/common';
|
|
5
|
-
import {MatLegacyFormFieldModule as MatFormFieldModule} from '@angular/material/legacy-form-field';
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
declarations: [ValidationComponent],
|
|
9
|
-
imports: [CommonModule, FormsModule, MatFormFieldModule],
|
|
10
|
-
exports: [ValidationComponent],
|
|
11
|
-
})
|
|
12
|
-
export class ValidationModule {
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<ul class="flex text-gray-500 text-sm">
|
|
2
|
-
<li
|
|
3
|
-
*ngFor="let item of breadCrumb; let counter = index"
|
|
4
|
-
[routerLink]="item.url"
|
|
5
|
-
[ngClass]="{ 'cursor-pointer': item.url }"
|
|
6
|
-
class="flex"
|
|
7
|
-
>
|
|
8
|
-
<mat-icon class="!text-sm text-center text-gray-400" *ngIf="counter !== 0">keyboard_arrow_right</mat-icon>
|
|
9
|
-
<span>{{ item.title }}</span>
|
|
10
|
-
</li>
|
|
11
|
-
</ul>
|
|
File without changes
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { EcabsBreadcrumbComponent } from './ecabs-breadcrumb.component';
|
|
4
|
-
|
|
5
|
-
describe( 'EcabsBreadcrumbComponent', () => {
|
|
6
|
-
let component: EcabsBreadcrumbComponent;
|
|
7
|
-
let fixture: ComponentFixture<EcabsBreadcrumbComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach( async () => {
|
|
10
|
-
await TestBed.configureTestingModule( {
|
|
11
|
-
declarations: [ EcabsBreadcrumbComponent ],
|
|
12
|
-
} ).compileComponents();
|
|
13
|
-
} );
|
|
14
|
-
|
|
15
|
-
beforeEach( () => {
|
|
16
|
-
fixture = TestBed.createComponent( EcabsBreadcrumbComponent );
|
|
17
|
-
component = fixture.componentInstance;
|
|
18
|
-
fixture.detectChanges();
|
|
19
|
-
} );
|
|
20
|
-
|
|
21
|
-
it( 'should create', () => {
|
|
22
|
-
expect( component ).toBeTruthy();
|
|
23
|
-
} );
|
|
24
|
-
} );
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { BreadCrumb } from '../models/bread-crumb';
|
|
3
|
-
|
|
4
|
-
@Component( {
|
|
5
|
-
selector: 'ecabs-breadcrumb',
|
|
6
|
-
templateUrl: './ecabs-breadcrumb.component.html',
|
|
7
|
-
styleUrls: [ './ecabs-breadcrumb.component.scss' ],
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
-
} )
|
|
10
|
-
export class EcabsBreadcrumbComponent {
|
|
11
|
-
@Input() breadCrumb: BreadCrumb[];
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
-
import { EcabsBreadcrumbComponent } from './ecabs-breadcrumb.component';
|
|
5
|
-
import { RouterModule } from '@angular/router';
|
|
6
|
-
|
|
7
|
-
@NgModule( {
|
|
8
|
-
declarations: [ EcabsBreadcrumbComponent ],
|
|
9
|
-
imports: [ CommonModule, MatIconModule, RouterModule ],
|
|
10
|
-
exports: [ EcabsBreadcrumbComponent ],
|
|
11
|
-
} )
|
|
12
|
-
export class EcabsBreadcrumbModule { }
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<button
|
|
2
|
-
mat-button
|
|
3
|
-
[ngClass]="{
|
|
4
|
-
'w-full': full,
|
|
5
|
-
'mdc-button--outlined': stroked,
|
|
6
|
-
'mdc-button--raised': raised
|
|
7
|
-
}"
|
|
8
|
-
[color]="color"
|
|
9
|
-
[disabled]="disabled"
|
|
10
|
-
[type]="type"
|
|
11
|
-
[attr.form]="form"
|
|
12
|
-
>
|
|
13
|
-
<ecabs-loading-spinner size="tiny" *ngIf="loading"></ecabs-loading-spinner>
|
|
14
|
-
<ng-container *ngIf="!loading">
|
|
15
|
-
<ng-content select="mat-icon"></ng-content>
|
|
16
|
-
<ng-content></ng-content>
|
|
17
|
-
</ng-container>
|
|
18
|
-
</button>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ThemePalette } from '@angular/material/core';
|
|
3
|
-
|
|
4
|
-
@Component( {
|
|
5
|
-
selector: 'ecabs-buttons',
|
|
6
|
-
styleUrls: [ './ecabs-buttons.component.scss' ],
|
|
7
|
-
templateUrl: './ecabs-buttons.component.html',
|
|
8
|
-
} )
|
|
9
|
-
export class ButtonsComponent implements OnInit, OnChanges {
|
|
10
|
-
@Input()
|
|
11
|
-
label!: string;
|
|
12
|
-
|
|
13
|
-
@Input()
|
|
14
|
-
disabled!: boolean;
|
|
15
|
-
|
|
16
|
-
@Input()
|
|
17
|
-
loading!: boolean;
|
|
18
|
-
|
|
19
|
-
@Input()
|
|
20
|
-
form!: string;
|
|
21
|
-
|
|
22
|
-
@Input()
|
|
23
|
-
size: 'default' | 'large' = 'default';
|
|
24
|
-
|
|
25
|
-
@Input()
|
|
26
|
-
type: 'button' | 'submit' = 'button';
|
|
27
|
-
|
|
28
|
-
@Input() raised = false;
|
|
29
|
-
@Input() stroked = false;
|
|
30
|
-
@Input() full = false;
|
|
31
|
-
@Input()
|
|
32
|
-
color: ThemePalette | 'success' = 'primary';
|
|
33
|
-
|
|
34
|
-
@HostBinding( 'style.width' )
|
|
35
|
-
borderWidth = '';
|
|
36
|
-
@HostBinding( 'class' )
|
|
37
|
-
classAttr = '';
|
|
38
|
-
|
|
39
|
-
ngOnInit(): void {
|
|
40
|
-
if ( this.full ) {
|
|
41
|
-
this.borderWidth = '100%';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
ngOnChanges( changes: SimpleChanges ): void {
|
|
46
|
-
const disabled = changes[ 'disabled' ]?.currentValue !== undefined ? changes[ 'disabled' ].currentValue : this.disabled;
|
|
47
|
-
const loading = changes[ 'loading' ]?.currentValue !== undefined ? changes[ 'loading' ].currentValue : this.loading;
|
|
48
|
-
|
|
49
|
-
if ( disabled || loading ) {
|
|
50
|
-
this.classAttr = 'pointer-events-none';
|
|
51
|
-
} else {
|
|
52
|
-
this.classAttr = '';
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {NgModule} from '@angular/core';
|
|
2
|
-
import {CommonModule} from '@angular/common';
|
|
3
|
-
import {ButtonsComponent} from './ecabs-buttons.component';
|
|
4
|
-
import {MatIconModule} from '@angular/material/icon';
|
|
5
|
-
import {EcabsLoadingModule} from '../ecabs-loading/ecabs-loading.module';
|
|
6
|
-
import {MatLegacyButtonModule as MatButtonModule} from '@angular/material/legacy-button';
|
|
7
|
-
|
|
8
|
-
@NgModule({
|
|
9
|
-
declarations: [ButtonsComponent],
|
|
10
|
-
imports: [CommonModule, MatButtonModule, EcabsLoadingModule, MatIconModule],
|
|
11
|
-
exports: [ButtonsComponent],
|
|
12
|
-
})
|
|
13
|
-
export class EcabsButtonsModule {
|
|
14
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<app-element-wrapper [data]="getData()">
|
|
2
|
-
<ng-container [ngSwitch]="type">
|
|
3
|
-
<mat-checkbox
|
|
4
|
-
(change)="change($event)"
|
|
5
|
-
(click)="onClick($event)"
|
|
6
|
-
(blur)="onBlur()"
|
|
7
|
-
[checked]="checked"
|
|
8
|
-
[indeterminate]="indeterminate"
|
|
9
|
-
[disabled]="disabled"
|
|
10
|
-
[(ngModel)]="value"
|
|
11
|
-
[id]="name"
|
|
12
|
-
[labelPosition]="labelPosition"
|
|
13
|
-
*ngSwitchCase="'checkbox'"
|
|
14
|
-
>
|
|
15
|
-
{{ text }}
|
|
16
|
-
</mat-checkbox>
|
|
17
|
-
|
|
18
|
-
<mat-slide-toggle
|
|
19
|
-
(change)="change($event)"
|
|
20
|
-
[disabled]="disabled"
|
|
21
|
-
[(ngModel)]="value"
|
|
22
|
-
[labelPosition]="labelPosition"
|
|
23
|
-
*ngSwitchCase="'toggle'"
|
|
24
|
-
>{{ text }}</mat-slide-toggle
|
|
25
|
-
>
|
|
26
|
-
</ng-container>
|
|
27
|
-
</app-element-wrapper>
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, Component, EventEmitter, Injector, Input, Output } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, UntypedFormControl, NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import ElementBaseComponent from '../base/element-base';
|
|
4
|
-
|
|
5
|
-
@Component( {
|
|
6
|
-
selector: 'ecabs-checkbox',
|
|
7
|
-
templateUrl: './ecabs-checkbox-toggle.component.html',
|
|
8
|
-
styleUrls: [ './ecabs-checkbox-toggle.component.scss' ],
|
|
9
|
-
providers: [
|
|
10
|
-
{
|
|
11
|
-
provide: NG_VALUE_ACCESSOR,
|
|
12
|
-
useExisting: EcabsCheckboxToggleComponent,
|
|
13
|
-
multi: true,
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
} )
|
|
17
|
-
export class EcabsCheckboxToggleComponent
|
|
18
|
-
extends ElementBaseComponent
|
|
19
|
-
implements ControlValueAccessor, AfterViewInit {
|
|
20
|
-
@Input() override type: 'checkbox' | 'toggle' = 'checkbox';
|
|
21
|
-
@Input() text!: string;
|
|
22
|
-
@Input() labelPosition: 'before' | 'after' = 'after';
|
|
23
|
-
@Input() indeterminate!: boolean;
|
|
24
|
-
@Input() checked!: boolean;
|
|
25
|
-
|
|
26
|
-
@Output() click = new EventEmitter<any>();
|
|
27
|
-
@Output() changed = new EventEmitter<any>();
|
|
28
|
-
|
|
29
|
-
val!: boolean;
|
|
30
|
-
|
|
31
|
-
get value(): boolean {
|
|
32
|
-
return this.val;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
set value( val ) {
|
|
36
|
-
if ( val !== undefined && this.val !== val ) {
|
|
37
|
-
this.val = val;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
constructor( private readonly injector: Injector ) {
|
|
42
|
-
super();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
onChange: any = () => { };
|
|
46
|
-
onTouch: any = () => { };
|
|
47
|
-
|
|
48
|
-
ngAfterViewInit(): void {
|
|
49
|
-
const ngControl: NgControl = this.injector.get( NgControl, null );
|
|
50
|
-
if ( ngControl ) {
|
|
51
|
-
this.control = ngControl.control as UntypedFormControl;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
change( event ): void {
|
|
56
|
-
this.onChange( this.value );
|
|
57
|
-
this.changed.emit( event );
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
onClick( $event ): void {
|
|
61
|
-
this.click.emit( $event );
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
onBlur(): void {
|
|
65
|
-
setTimeout( () => {
|
|
66
|
-
this.onTouch( this.value );
|
|
67
|
-
} );
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
writeValue( value: any ): void {
|
|
71
|
-
this.value = !!value;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
registerOnChange( fn: any ): void {
|
|
75
|
-
this.onChange = fn;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
registerOnTouched( fn: any ): void {
|
|
79
|
-
this.onTouch = fn;
|
|
80
|
-
}
|
|
81
|
-
}
|