@sebgroup/green-angular 5.1.2 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/shared/core-control/core-control.directive.mjs +3 -3
- package/esm2022/src/lib/shared/core-control/core-control.directive.mjs +3 -3
- package/esm2022/src/v-angular/account-number/account-number.module.mjs +15 -0
- package/esm2022/src/v-angular/account-number/account-number.pipe.mjs +55 -0
- package/esm2022/src/v-angular/account-number/index.mjs +3 -0
- package/esm2022/src/v-angular/account-number/sebgroup-green-angular-src-v-angular-account-number.mjs +5 -0
- package/esm2022/src/v-angular/alert/alert.component.mjs +47 -0
- package/esm2022/src/v-angular/alert/alert.models.mjs +8 -0
- package/esm2022/src/v-angular/alert/alert.module.mjs +18 -0
- package/esm2022/src/v-angular/alert/index.mjs +4 -0
- package/esm2022/src/v-angular/alert/sebgroup-green-angular-src-v-angular-alert.mjs +5 -0
- package/esm2022/src/v-angular/base-control-value-accessor/base-control-value-accessor.component.mjs +16 -6
- package/esm2022/src/v-angular/base-control-value-accessor/base-control-value-accessor.module.mjs +9 -9
- package/esm2022/src/v-angular/breadcrumbs/breadcrumbs.component.mjs +5 -5
- package/esm2022/src/v-angular/breadcrumbs/breadcrumbs.module.mjs +11 -11
- package/esm2022/src/v-angular/button/button.component.mjs +9 -9
- package/esm2022/src/v-angular/button/button.module.mjs +11 -11
- package/esm2022/src/v-angular/card/card.component.mjs +6 -6
- package/esm2022/src/v-angular/card/card.module.mjs +9 -9
- package/esm2022/src/v-angular/character-countdown/character-countdown.module.mjs +6 -6
- package/esm2022/src/v-angular/checkbox/checkbox.component.mjs +9 -7
- package/esm2022/src/v-angular/checkbox/checkbox.module.mjs +14 -12
- package/esm2022/src/v-angular/core/core.utils.mjs +35 -1
- package/esm2022/src/v-angular/datepicker/components/calendar/calendar.component.mjs +200 -0
- package/esm2022/src/v-angular/datepicker/components/calendar-control/calendar-control.component.mjs +115 -0
- package/esm2022/src/v-angular/datepicker/components/date-input/date-input.component.mjs +203 -0
- package/esm2022/src/v-angular/datepicker/components/datepicker/datepicker.component.mjs +135 -0
- package/esm2022/src/v-angular/datepicker/date-control-value-accessor/date-control-value-accessor.component.mjs +408 -0
- package/esm2022/src/v-angular/datepicker/datepicker.globals.mjs +20 -0
- package/esm2022/src/v-angular/datepicker/datepicker.models.mjs +56 -0
- package/esm2022/src/v-angular/datepicker/datepicker.module.mjs +63 -0
- package/esm2022/src/v-angular/datepicker/datepicker.utils.mjs +196 -0
- package/esm2022/src/v-angular/datepicker/directives/calendar-date.directive.mjs +47 -0
- package/esm2022/src/v-angular/datepicker/index.mjs +17 -0
- package/esm2022/src/v-angular/datepicker/models/dates.mjs +291 -0
- package/esm2022/src/v-angular/datepicker/pipes/date-thook.pipe.mjs +30 -0
- package/esm2022/src/v-angular/datepicker/pipes/is-disabled.pipe.mjs +37 -0
- package/esm2022/src/v-angular/datepicker/pipes/matches.pipe.mjs +17 -0
- package/esm2022/src/v-angular/datepicker/sebgroup-green-angular-src-v-angular-datepicker.mjs +5 -0
- package/esm2022/src/v-angular/drag-drop/drag-drop.component.mjs +497 -0
- package/esm2022/src/v-angular/drag-drop/drag-drop.models.mjs +2 -0
- package/esm2022/src/v-angular/drag-drop/drag-drop.module.mjs +49 -0
- package/esm2022/src/v-angular/drag-drop/drag-drop.pipes.mjs +70 -0
- package/esm2022/src/v-angular/drag-drop/drag-drop.utils.mjs +76 -0
- package/esm2022/src/v-angular/drag-drop/index.mjs +5 -0
- package/esm2022/src/v-angular/drag-drop/sebgroup-green-angular-src-v-angular-drag-drop.mjs +5 -0
- package/esm2022/src/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +24 -9
- package/esm2022/src/v-angular/dropdown/dropdown.component.mjs +16 -9
- package/esm2022/src/v-angular/dropdown/dropdown.module.mjs +31 -15
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +8 -8
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +5 -5
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +17 -10
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead.directive.mjs +27 -20
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead.module.mjs +21 -21
- package/esm2022/src/v-angular/external-link/external-link.directive.mjs +5 -5
- package/esm2022/src/v-angular/external-link/external-link.module.mjs +9 -9
- package/esm2022/src/v-angular/i18n/i18n.module.mjs +12 -12
- package/esm2022/src/v-angular/i18n/i18n.test.module.mjs +6 -6
- package/esm2022/src/v-angular/info-circle/info-circle.component.mjs +6 -6
- package/esm2022/src/v-angular/info-circle/info-circle.module.mjs +11 -11
- package/esm2022/src/v-angular/input/input.component.mjs +11 -15
- package/esm2022/src/v-angular/input/input.module.mjs +27 -22
- package/esm2022/src/v-angular/input-mask/input-mask.directive.mjs +6 -6
- package/esm2022/src/v-angular/input-mask/input-mask.module.mjs +10 -10
- package/esm2022/src/v-angular/modal/dialog/dialog.component.mjs +53 -31
- package/esm2022/src/v-angular/modal/fold-out/fold-out.component.mjs +116 -16
- package/esm2022/src/v-angular/modal/fold-out/fold-out.directive.mjs +5 -5
- package/esm2022/src/v-angular/modal/fold-out/keyboard-key.enum.mjs +9 -0
- package/esm2022/src/v-angular/modal/modal.module.mjs +38 -27
- package/esm2022/src/v-angular/modal/slide-out/slide-out.component.mjs +35 -12
- package/esm2022/src/v-angular/pagination/index.mjs +3 -0
- package/esm2022/src/v-angular/pagination/pagination.component.mjs +144 -0
- package/esm2022/src/v-angular/pagination/pagination.module.mjs +37 -0
- package/esm2022/src/v-angular/pagination/sebgroup-green-angular-src-v-angular-pagination.mjs +5 -0
- package/esm2022/src/v-angular/radio/radio.component.mjs +14 -12
- package/esm2022/src/v-angular/radio/radio.module.mjs +12 -11
- package/esm2022/src/v-angular/slug/slug.module.mjs +6 -6
- package/esm2022/src/v-angular/table/index.mjs +9 -0
- package/esm2022/src/v-angular/table/sebgroup-green-angular-src-v-angular-table.mjs +5 -0
- package/esm2022/src/v-angular/table/table.component.mjs +406 -0
- package/esm2022/src/v-angular/table/table.directive.mjs +110 -0
- package/esm2022/src/v-angular/table/table.models.mjs +2 -0
- package/esm2022/src/v-angular/table/table.module.mjs +40 -0
- package/esm2022/src/v-angular/table/table.tools.mjs +29 -0
- package/esm2022/src/v-angular/table/tr-thook.pipe.mjs +22 -0
- package/esm2022/src/v-angular/tabs/index.mjs +8 -0
- package/esm2022/src/v-angular/tabs/sebgroup-green-angular-src-v-angular-tabs.mjs +5 -0
- package/esm2022/src/v-angular/tabs/tab.directive.mjs +81 -0
- package/esm2022/src/v-angular/tabs/tabs.component.mjs +262 -0
- package/esm2022/src/v-angular/tabs/tabs.models.mjs +2 -0
- package/esm2022/src/v-angular/tabs/tabs.module.mjs +21 -0
- package/esm2022/src/v-angular/textarea/textarea.component.mjs +9 -7
- package/esm2022/src/v-angular/textarea/textarea.module.mjs +27 -13
- package/esm2022/src/v-angular/toast/index.mjs +8 -0
- package/esm2022/src/v-angular/toast/sebgroup-green-angular-src-v-angular-toast.mjs +5 -0
- package/esm2022/src/v-angular/toast/toast-message.service.mjs +63 -0
- package/esm2022/src/v-angular/toast/toast.component.mjs +70 -0
- package/esm2022/src/v-angular/toast/toast.models.mjs +8 -0
- package/esm2022/src/v-angular/toast/toast.module.mjs +21 -0
- package/esm2022/src/v-angular/tooltip/tooltip.directive.mjs +35 -15
- package/esm2022/src/v-angular/tooltip/tooltip.module.mjs +11 -11
- package/esm2022/src/v-angular/tooltip/tooltip.styles.mjs +60 -0
- package/esm2022/v-angular/account-number/account-number.module.mjs +15 -0
- package/esm2022/v-angular/account-number/account-number.pipe.mjs +55 -0
- package/esm2022/v-angular/account-number/index.mjs +3 -0
- package/esm2022/v-angular/alert/alert.component.mjs +47 -0
- package/esm2022/v-angular/alert/alert.models.mjs +8 -0
- package/esm2022/v-angular/alert/alert.module.mjs +18 -0
- package/esm2022/v-angular/alert/index.mjs +4 -0
- package/esm2022/v-angular/base-control-value-accessor/base-control-value-accessor.component.mjs +16 -6
- package/esm2022/v-angular/base-control-value-accessor/base-control-value-accessor.module.mjs +9 -9
- package/esm2022/v-angular/breadcrumbs/breadcrumbs.component.mjs +5 -5
- package/esm2022/v-angular/breadcrumbs/breadcrumbs.module.mjs +11 -11
- package/esm2022/v-angular/button/button.component.mjs +9 -9
- package/esm2022/v-angular/button/button.module.mjs +11 -11
- package/esm2022/v-angular/card/card.component.mjs +6 -6
- package/esm2022/v-angular/card/card.module.mjs +9 -9
- package/esm2022/v-angular/character-countdown/character-countdown.module.mjs +6 -6
- package/esm2022/v-angular/checkbox/checkbox.component.mjs +9 -7
- package/esm2022/v-angular/checkbox/checkbox.module.mjs +14 -12
- package/esm2022/v-angular/datepicker/components/calendar/calendar.component.mjs +200 -0
- package/esm2022/v-angular/datepicker/components/calendar-control/calendar-control.component.mjs +115 -0
- package/esm2022/v-angular/datepicker/components/date-input/date-input.component.mjs +203 -0
- package/esm2022/v-angular/datepicker/components/datepicker/datepicker.component.mjs +135 -0
- package/esm2022/v-angular/datepicker/date-control-value-accessor/date-control-value-accessor.component.mjs +408 -0
- package/esm2022/v-angular/datepicker/datepicker.globals.mjs +20 -0
- package/esm2022/v-angular/datepicker/datepicker.models.mjs +56 -0
- package/esm2022/v-angular/datepicker/datepicker.module.mjs +63 -0
- package/esm2022/v-angular/datepicker/datepicker.utils.mjs +196 -0
- package/esm2022/v-angular/datepicker/directives/calendar-date.directive.mjs +47 -0
- package/esm2022/v-angular/datepicker/index.mjs +17 -0
- package/esm2022/v-angular/datepicker/models/dates.mjs +291 -0
- package/esm2022/v-angular/datepicker/pipes/date-thook.pipe.mjs +30 -0
- package/esm2022/v-angular/datepicker/pipes/is-disabled.pipe.mjs +37 -0
- package/esm2022/v-angular/datepicker/pipes/matches.pipe.mjs +17 -0
- package/esm2022/v-angular/drag-drop/drag-drop.component.mjs +497 -0
- package/esm2022/v-angular/drag-drop/drag-drop.models.mjs +2 -0
- package/esm2022/v-angular/drag-drop/drag-drop.module.mjs +49 -0
- package/esm2022/v-angular/drag-drop/drag-drop.pipes.mjs +70 -0
- package/esm2022/v-angular/drag-drop/drag-drop.utils.mjs +76 -0
- package/esm2022/v-angular/drag-drop/index.mjs +5 -0
- package/esm2022/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +24 -9
- package/esm2022/v-angular/dropdown/dropdown.component.mjs +16 -9
- package/esm2022/v-angular/dropdown/dropdown.module.mjs +31 -15
- package/esm2022/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +8 -8
- package/esm2022/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +5 -5
- package/esm2022/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +17 -10
- package/esm2022/v-angular/dropdown/typeahead/typeahead.directive.mjs +27 -20
- package/esm2022/v-angular/dropdown/typeahead/typeahead.module.mjs +21 -21
- package/esm2022/v-angular/external-link/external-link.directive.mjs +37 -0
- package/esm2022/v-angular/external-link/external-link.module.mjs +18 -0
- package/esm2022/v-angular/external-link/index.mjs +3 -0
- package/esm2022/v-angular/i18n/i18n.module.mjs +12 -12
- package/esm2022/v-angular/i18n/i18n.test.module.mjs +6 -6
- package/esm2022/v-angular/index.mjs +11 -1
- package/esm2022/v-angular/info-circle/info-circle.component.mjs +6 -6
- package/esm2022/v-angular/info-circle/info-circle.module.mjs +11 -11
- package/esm2022/v-angular/input/input.component.mjs +11 -15
- package/esm2022/v-angular/input/input.module.mjs +27 -22
- package/esm2022/v-angular/input-mask/input-mask.directive.mjs +6 -6
- package/esm2022/v-angular/input-mask/input-mask.module.mjs +10 -10
- package/esm2022/v-angular/modal/dialog/dialog.component.mjs +53 -31
- package/esm2022/v-angular/modal/fold-out/fold-out.component.mjs +116 -16
- package/esm2022/v-angular/modal/fold-out/fold-out.directive.mjs +5 -5
- package/esm2022/v-angular/modal/fold-out/keyboard-key.enum.mjs +9 -0
- package/esm2022/v-angular/modal/modal.module.mjs +38 -27
- package/esm2022/v-angular/modal/slide-out/slide-out.component.mjs +35 -12
- package/esm2022/v-angular/pagination/index.mjs +3 -0
- package/esm2022/v-angular/pagination/pagination.component.mjs +144 -0
- package/esm2022/v-angular/pagination/pagination.module.mjs +37 -0
- package/esm2022/v-angular/radio/radio.component.mjs +14 -12
- package/esm2022/v-angular/radio/radio.module.mjs +12 -11
- package/esm2022/v-angular/slug/index.mjs +3 -0
- package/esm2022/v-angular/slug/slug.module.mjs +18 -0
- package/esm2022/v-angular/slug/slug.pipe.mjs +27 -0
- package/esm2022/v-angular/table/index.mjs +9 -0
- package/esm2022/v-angular/table/table.component.mjs +406 -0
- package/esm2022/v-angular/table/table.directive.mjs +110 -0
- package/esm2022/v-angular/table/table.models.mjs +2 -0
- package/esm2022/v-angular/table/table.module.mjs +40 -0
- package/esm2022/v-angular/table/table.tools.mjs +29 -0
- package/esm2022/v-angular/table/tr-thook.pipe.mjs +22 -0
- package/esm2022/v-angular/tabs/index.mjs +8 -0
- package/esm2022/v-angular/tabs/tab.directive.mjs +81 -0
- package/esm2022/v-angular/tabs/tabs.component.mjs +262 -0
- package/esm2022/v-angular/tabs/tabs.models.mjs +2 -0
- package/esm2022/v-angular/tabs/tabs.module.mjs +21 -0
- package/esm2022/v-angular/textarea/textarea.component.mjs +9 -7
- package/esm2022/v-angular/textarea/textarea.module.mjs +27 -13
- package/esm2022/v-angular/toast/index.mjs +8 -0
- package/esm2022/v-angular/toast/toast-message.service.mjs +63 -0
- package/esm2022/v-angular/toast/toast.component.mjs +70 -0
- package/esm2022/v-angular/toast/toast.models.mjs +8 -0
- package/esm2022/v-angular/toast/toast.module.mjs +21 -0
- package/esm2022/v-angular/tooltip/tooltip.directive.mjs +35 -15
- package/esm2022/v-angular/tooltip/tooltip.module.mjs +11 -11
- package/esm2022/v-angular/tooltip/tooltip.styles.mjs +60 -0
- package/esm2022/v-angular/v-angular.module.mjs +104 -68
- package/fesm2022/sebgroup-green-angular-src-lib-shared.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-lib-shared.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-account-number.mjs +74 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-account-number.mjs.map +1 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-alert.mjs +76 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-alert.mjs.map +1 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-base-control-value-accessor.mjs +23 -13
- package/fesm2022/sebgroup-green-angular-src-v-angular-base-control-value-accessor.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-breadcrumbs.mjs +14 -14
- package/fesm2022/sebgroup-green-angular-src-v-angular-breadcrumbs.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs +18 -18
- package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-card.mjs +13 -13
- package/fesm2022/sebgroup-green-angular-src-v-angular-card.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-character-countdown.mjs +6 -6
- package/fesm2022/sebgroup-green-angular-src-v-angular-character-countdown.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs +21 -17
- package/fesm2022/sebgroup-green-angular-src-v-angular-checkbox.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs +34 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs +1759 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs.map +1 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-drag-drop.mjs +687 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-drag-drop.mjs.map +1 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs +126 -74
- package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-external-link.mjs +12 -12
- package/fesm2022/sebgroup-green-angular-src-v-angular-external-link.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-i18n.mjs +17 -17
- package/fesm2022/sebgroup-green-angular-src-v-angular-i18n.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs +15 -15
- package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-input-mask.mjs +14 -14
- package/fesm2022/sebgroup-green-angular-src-v-angular-input-mask.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs +36 -35
- package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs +246 -81
- package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-pagination.mjs +185 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-pagination.mjs.map +1 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs +24 -21
- package/fesm2022/sebgroup-green-angular-src-v-angular-radio.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-slug.mjs +6 -6
- package/fesm2022/sebgroup-green-angular-src-v-angular-slug.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-table.mjs +604 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-table.mjs.map +1 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-tabs.mjs +367 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-tabs.mjs.map +1 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs +33 -18
- package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-toast.mjs +166 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-toast.mjs.map +1 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-tooltip.mjs +103 -24
- package/fesm2022/sebgroup-green-angular-src-v-angular-tooltip.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-v-angular.mjs +6369 -2156
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular.mjs +2 -2
- package/fesm2022/sebgroup-green-angular.mjs.map +1 -1
- package/lib/shared/core-control/core-control.directive.d.ts +1 -1
- package/package.json +51 -3
- package/src/lib/shared/core-control/core-control.directive.d.ts +1 -1
- package/src/v-angular/account-number/README.md +63 -0
- package/src/v-angular/account-number/account-number.module.d.ts +2 -0
- package/src/v-angular/account-number/account-number.pipe.d.ts +32 -0
- package/src/v-angular/account-number/index.d.ts +2 -0
- package/src/v-angular/alert/alert.component.d.ts +19 -0
- package/src/v-angular/alert/alert.models.d.ts +13 -0
- package/src/v-angular/alert/alert.module.d.ts +8 -0
- package/src/v-angular/alert/index.d.ts +3 -0
- package/src/v-angular/base-control-value-accessor/base-control-value-accessor.component.d.ts +10 -4
- package/src/v-angular/base-control-value-accessor/base-control-value-accessor.module.d.ts +4 -4
- package/src/v-angular/breadcrumbs/breadcrumbs.component.d.ts +4 -4
- package/src/v-angular/breadcrumbs/breadcrumbs.module.d.ts +4 -4
- package/src/v-angular/button/button.component.d.ts +5 -5
- package/src/v-angular/button/button.module.d.ts +4 -4
- package/src/v-angular/card/card.component.d.ts +3 -3
- package/src/v-angular/card/card.module.d.ts +4 -4
- package/src/v-angular/character-countdown/character-countdown.module.d.ts +4 -4
- package/src/v-angular/checkbox/checkbox.component.d.ts +6 -5
- package/src/v-angular/checkbox/checkbox.module.d.ts +5 -4
- package/src/v-angular/core/core.utils.d.ts +1 -0
- package/src/v-angular/datepicker/components/calendar/calendar.component.d.ts +36 -0
- package/src/v-angular/datepicker/components/calendar-control/calendar-control.component.d.ts +30 -0
- package/src/v-angular/datepicker/components/date-input/date-input.component.d.ts +102 -0
- package/src/v-angular/datepicker/components/datepicker/datepicker.component.d.ts +62 -0
- package/src/v-angular/datepicker/date-control-value-accessor/date-control-value-accessor.component.d.ts +165 -0
- package/src/v-angular/datepicker/datepicker.globals.d.ts +13 -0
- package/src/v-angular/datepicker/datepicker.models.d.ts +50 -0
- package/src/v-angular/datepicker/datepicker.module.d.ts +19 -0
- package/src/v-angular/datepicker/datepicker.utils.d.ts +39 -0
- package/src/v-angular/datepicker/directives/calendar-date.directive.d.ts +21 -0
- package/src/v-angular/datepicker/index.d.ts +13 -0
- package/src/v-angular/datepicker/models/dates.d.ts +15 -0
- package/src/v-angular/datepicker/pipes/date-thook.pipe.d.ts +8 -0
- package/src/v-angular/datepicker/pipes/is-disabled.pipe.d.ts +8 -0
- package/src/v-angular/datepicker/pipes/matches.pipe.d.ts +7 -0
- package/src/v-angular/drag-drop/drag-drop.component.d.ts +131 -0
- package/src/v-angular/drag-drop/drag-drop.models.d.ts +49 -0
- package/src/v-angular/drag-drop/drag-drop.module.d.ts +13 -0
- package/src/v-angular/drag-drop/drag-drop.pipes.d.ts +40 -0
- package/src/v-angular/drag-drop/drag-drop.utils.d.ts +33 -0
- package/src/v-angular/drag-drop/index.d.ts +4 -0
- package/src/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +11 -4
- package/src/v-angular/dropdown/dropdown.component.d.ts +10 -6
- package/src/v-angular/dropdown/dropdown.module.d.ts +8 -7
- package/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +6 -6
- package/src/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +3 -3
- package/src/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +8 -6
- package/src/v-angular/dropdown/typeahead/typeahead.directive.d.ts +14 -12
- package/src/v-angular/dropdown/typeahead/typeahead.module.d.ts +4 -4
- package/src/v-angular/external-link/external-link.directive.d.ts +3 -3
- package/src/v-angular/external-link/external-link.module.d.ts +4 -4
- package/src/v-angular/i18n/i18n.module.d.ts +7 -7
- package/src/v-angular/i18n/i18n.test.module.d.ts +4 -4
- package/src/v-angular/info-circle/info-circle.component.d.ts +4 -4
- package/src/v-angular/info-circle/info-circle.module.d.ts +4 -4
- package/src/v-angular/input/input.component.d.ts +5 -10
- package/src/v-angular/input/input.module.d.ts +5 -4
- package/src/v-angular/input-mask/input-mask.directive.d.ts +3 -3
- package/src/v-angular/input-mask/input-mask.module.d.ts +5 -5
- package/src/v-angular/modal/dialog/dialog.component.d.ts +16 -7
- package/src/v-angular/modal/fold-out/fold-out.component.d.ts +34 -11
- package/src/v-angular/modal/fold-out/fold-out.directive.d.ts +3 -3
- package/src/v-angular/modal/fold-out/keyboard-key.enum.d.ts +7 -0
- package/src/v-angular/modal/modal.module.d.ts +4 -4
- package/src/v-angular/modal/slide-out/slide-out.component.d.ts +13 -6
- package/src/v-angular/pagination/index.d.ts +2 -0
- package/src/v-angular/pagination/pagination.component.d.ts +64 -0
- package/src/v-angular/pagination/pagination.module.d.ts +12 -0
- package/src/v-angular/radio/radio.component.d.ts +14 -13
- package/src/v-angular/radio/radio.module.d.ts +5 -4
- package/src/v-angular/slug/slug.module.d.ts +4 -4
- package/src/v-angular/table/index.d.ts +5 -0
- package/src/v-angular/table/table.component.d.ts +239 -0
- package/src/v-angular/table/table.directive.d.ts +36 -0
- package/src/v-angular/table/table.models.d.ts +62 -0
- package/src/v-angular/table/table.module.d.ts +12 -0
- package/src/v-angular/table/table.tools.d.ts +5 -0
- package/src/v-angular/table/tr-thook.pipe.d.ts +7 -0
- package/src/v-angular/tabs/index.d.ts +4 -0
- package/src/v-angular/tabs/tab.directive.d.ts +37 -0
- package/src/v-angular/tabs/tabs.component.d.ts +65 -0
- package/src/v-angular/tabs/tabs.models.d.ts +25 -0
- package/src/v-angular/tabs/tabs.module.d.ts +11 -0
- package/src/v-angular/textarea/textarea.component.d.ts +6 -5
- package/src/v-angular/textarea/textarea.module.d.ts +6 -4
- package/src/v-angular/toast/index.d.ts +4 -0
- package/src/v-angular/toast/toast-message.service.d.ts +17 -0
- package/src/v-angular/toast/toast.component.d.ts +22 -0
- package/src/v-angular/toast/toast.models.d.ts +15 -0
- package/src/v-angular/toast/toast.module.d.ts +10 -0
- package/src/v-angular/tooltip/tooltip.directive.d.ts +5 -3
- package/src/v-angular/tooltip/tooltip.module.d.ts +4 -4
- package/src/v-angular/tooltip/tooltip.styles.d.ts +11 -0
- package/v-angular/account-number/account-number.module.d.ts +2 -0
- package/v-angular/account-number/account-number.pipe.d.ts +32 -0
- package/v-angular/account-number/index.d.ts +2 -0
- package/v-angular/alert/alert.component.d.ts +19 -0
- package/v-angular/alert/alert.models.d.ts +13 -0
- package/v-angular/alert/alert.module.d.ts +8 -0
- package/v-angular/alert/index.d.ts +3 -0
- package/v-angular/base-control-value-accessor/base-control-value-accessor.component.d.ts +10 -4
- package/v-angular/base-control-value-accessor/base-control-value-accessor.module.d.ts +4 -4
- package/v-angular/breadcrumbs/breadcrumbs.component.d.ts +4 -4
- package/v-angular/breadcrumbs/breadcrumbs.module.d.ts +4 -4
- package/v-angular/button/button.component.d.ts +5 -5
- package/v-angular/button/button.module.d.ts +4 -4
- package/v-angular/card/card.component.d.ts +3 -3
- package/v-angular/card/card.module.d.ts +4 -4
- package/v-angular/character-countdown/character-countdown.module.d.ts +4 -4
- package/v-angular/checkbox/checkbox.component.d.ts +6 -5
- package/v-angular/checkbox/checkbox.module.d.ts +5 -4
- package/v-angular/datepicker/components/calendar/calendar.component.d.ts +36 -0
- package/v-angular/datepicker/components/calendar-control/calendar-control.component.d.ts +30 -0
- package/v-angular/datepicker/components/date-input/date-input.component.d.ts +102 -0
- package/v-angular/datepicker/components/datepicker/datepicker.component.d.ts +62 -0
- package/v-angular/datepicker/date-control-value-accessor/date-control-value-accessor.component.d.ts +165 -0
- package/v-angular/datepicker/datepicker.globals.d.ts +13 -0
- package/v-angular/datepicker/datepicker.models.d.ts +50 -0
- package/v-angular/datepicker/datepicker.module.d.ts +19 -0
- package/v-angular/datepicker/datepicker.utils.d.ts +39 -0
- package/v-angular/datepicker/directives/calendar-date.directive.d.ts +21 -0
- package/v-angular/datepicker/index.d.ts +13 -0
- package/v-angular/datepicker/models/dates.d.ts +15 -0
- package/v-angular/datepicker/pipes/date-thook.pipe.d.ts +8 -0
- package/v-angular/datepicker/pipes/is-disabled.pipe.d.ts +8 -0
- package/v-angular/datepicker/pipes/matches.pipe.d.ts +7 -0
- package/v-angular/drag-drop/drag-drop.component.d.ts +131 -0
- package/v-angular/drag-drop/drag-drop.models.d.ts +49 -0
- package/v-angular/drag-drop/drag-drop.module.d.ts +13 -0
- package/v-angular/drag-drop/drag-drop.pipes.d.ts +40 -0
- package/v-angular/drag-drop/drag-drop.utils.d.ts +33 -0
- package/v-angular/drag-drop/index.d.ts +4 -0
- package/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +11 -4
- package/v-angular/dropdown/dropdown.component.d.ts +10 -6
- package/v-angular/dropdown/dropdown.module.d.ts +8 -7
- package/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +6 -6
- package/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +3 -3
- package/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +8 -6
- package/v-angular/dropdown/typeahead/typeahead.directive.d.ts +14 -12
- package/v-angular/dropdown/typeahead/typeahead.module.d.ts +4 -4
- package/v-angular/external-link/external-link.directive.d.ts +17 -0
- package/v-angular/external-link/external-link.module.d.ts +8 -0
- package/v-angular/external-link/index.d.ts +2 -0
- package/v-angular/i18n/i18n.module.d.ts +7 -7
- package/v-angular/i18n/i18n.test.module.d.ts +4 -4
- package/v-angular/index.d.ts +10 -0
- package/v-angular/info-circle/info-circle.component.d.ts +4 -4
- package/v-angular/info-circle/info-circle.module.d.ts +4 -4
- package/v-angular/input/input.component.d.ts +5 -10
- package/v-angular/input/input.module.d.ts +5 -4
- package/v-angular/input-mask/input-mask.directive.d.ts +3 -3
- package/v-angular/input-mask/input-mask.module.d.ts +5 -5
- package/v-angular/modal/dialog/dialog.component.d.ts +16 -7
- package/v-angular/modal/fold-out/fold-out.component.d.ts +34 -11
- package/v-angular/modal/fold-out/fold-out.directive.d.ts +3 -3
- package/v-angular/modal/fold-out/keyboard-key.enum.d.ts +7 -0
- package/v-angular/modal/modal.module.d.ts +4 -4
- package/v-angular/modal/slide-out/slide-out.component.d.ts +13 -6
- package/v-angular/pagination/index.d.ts +2 -0
- package/v-angular/pagination/pagination.component.d.ts +64 -0
- package/v-angular/pagination/pagination.module.d.ts +12 -0
- package/v-angular/radio/radio.component.d.ts +14 -13
- package/v-angular/radio/radio.module.d.ts +5 -4
- package/v-angular/slug/index.d.ts +2 -0
- package/v-angular/slug/slug.module.d.ts +8 -0
- package/v-angular/slug/slug.pipe.d.ts +12 -0
- package/v-angular/table/index.d.ts +5 -0
- package/v-angular/table/table.component.d.ts +239 -0
- package/v-angular/table/table.directive.d.ts +36 -0
- package/v-angular/table/table.models.d.ts +62 -0
- package/v-angular/table/table.module.d.ts +12 -0
- package/v-angular/table/table.tools.d.ts +5 -0
- package/v-angular/table/tr-thook.pipe.d.ts +7 -0
- package/v-angular/tabs/index.d.ts +4 -0
- package/v-angular/tabs/tab.directive.d.ts +37 -0
- package/v-angular/tabs/tabs.component.d.ts +65 -0
- package/v-angular/tabs/tabs.models.d.ts +25 -0
- package/v-angular/tabs/tabs.module.d.ts +11 -0
- package/v-angular/textarea/textarea.component.d.ts +6 -5
- package/v-angular/textarea/textarea.module.d.ts +6 -4
- package/v-angular/toast/index.d.ts +4 -0
- package/v-angular/toast/toast-message.service.d.ts +17 -0
- package/v-angular/toast/toast.component.d.ts +22 -0
- package/v-angular/toast/toast.models.d.ts +15 -0
- package/v-angular/toast/toast.module.d.ts +10 -0
- package/v-angular/tooltip/tooltip.directive.d.ts +5 -3
- package/v-angular/tooltip/tooltip.module.d.ts +4 -4
- package/v-angular/tooltip/tooltip.styles.d.ts +11 -0
- package/v-angular/v-angular.module.d.ts +27 -18
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { AfterContentInit, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { TableAppendableRowsTemplateDirective, TableFooterTemplateDirective, TableTemplateDirective } from './table.directive';
|
|
5
|
+
import { ariaLabelsOrderBy, OrderBy, TableColumn, TableRow } from './table.models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* A table component with built-in sorting and selecting functionality.
|
|
9
|
+
* By default, table cells (i.e. `<td>` elements) and table headers (i.e. `<th>` elements) are populated with text only values.
|
|
10
|
+
*
|
|
11
|
+
* To customize the contents of either the `<td>` or `<th>` elements (like adding color, icons, form fields, extra padding etc.), provide
|
|
12
|
+
* the customized content within a `<ng-template>`-tag, and place the ng-template in the html between the start and ending tag of
|
|
13
|
+
* the `<nggv-table>`. Add a `tableColumn`-attribute to the `<ng-template>`-element, and set the value to the specific column property.
|
|
14
|
+
* Set `tableColumnTarget` to either `th`, `td` or `both` (default) depending on target element type.
|
|
15
|
+
* The entire row from the `@Input() tableData` is available from the context `$implicit` variable.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <!-- for table cells i.e. td-elements -->
|
|
19
|
+
* <ng-template tableColumn="status" tableColumnTarget="td" let-myDataVar="$implicit" let-status="$implicit.status">
|
|
20
|
+
* <!-- my custom status element -->
|
|
21
|
+
* </ng-template>
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <!-- for table headers i.e. th-elements -->
|
|
25
|
+
* <ng-template tableColumn="status" tableColumnTarget="th" let-myDataVar="$implicit" let-status="$implicit.status">
|
|
26
|
+
* <!-- my custom status element -->
|
|
27
|
+
* </ng-template>
|
|
28
|
+
*
|
|
29
|
+
* It is possible to add custom rows that are appended below data row. Use `<ng-template>`-tag and place the ng-template in the html between the start and ending tag of
|
|
30
|
+
* the `<nggv-table>`. Add a `tableAppendableRows`-attribute to the `<ng-template>`-element. Any `tr` elements that exist within `<ng-template tableAppendableRows>` and `</ng-template>` tags will be put below data row's `tr` element in the table.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* <!-- custom appended rows -->
|
|
34
|
+
* <ng-template tableAppendableRows let-myDataVar="$implicit" let-status="$implicit.status">
|
|
35
|
+
* <tr>
|
|
36
|
+
* <!-- first row's columns -->
|
|
37
|
+
* </tr>
|
|
38
|
+
* <!-- more rows if needed -->
|
|
39
|
+
* </ng-template>
|
|
40
|
+
*
|
|
41
|
+
* If custom styling is needed for data row that has appended rows, you can use data attribute `data-hasrowspan` to distinguish it from data row without appended rows.
|
|
42
|
+
* You can pass your own custom method with conditional logic to define what value will be passed to data-hasrowspan.
|
|
43
|
+
* In addition, hasRowSpan function accepts item from `@Input() tableData` as argument which is of the same type as value passed to context `$implicit` variable.
|
|
44
|
+
* IMPORTANT: use arrow function style for defining function inside component, i.e. `hasRowSpan = (value) => output;`. If regular function will be defined, i.e. `hasRowSpan(value) { return output; }`, binding will not work.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* <!-- inside component
|
|
48
|
+
* class CustomComponent {
|
|
49
|
+
* customHasRowSpanFunction = (item: CustomDataType) => item.appendedRowsData.length > 0 ? true : false;
|
|
50
|
+
* }
|
|
51
|
+
* -->
|
|
52
|
+
* <!-- inside stylesheets
|
|
53
|
+
* [data-hasrowspan="true"] {
|
|
54
|
+
* color: blue;
|
|
55
|
+
* }
|
|
56
|
+
* .appended-row {
|
|
57
|
+
* color: blue;
|
|
58
|
+
* }
|
|
59
|
+
* -->
|
|
60
|
+
* <nggv-table [hasRowSpan]="customHasRowSpanFunction">
|
|
61
|
+
* <!-- custom appended rows -->
|
|
62
|
+
* <ng-template tableAppendableRows let-appendedRowsData="$implicit.appendedRowsData">
|
|
63
|
+
* <tr *ngFor="let appendedRowItem of appendedRowsData" class="appended-row">
|
|
64
|
+
* <td>{{ appendedRowItem }}</td>
|
|
65
|
+
* <!-- other row's columns -->
|
|
66
|
+
* </tr>
|
|
67
|
+
* </ng-template>
|
|
68
|
+
* </nggv-table>
|
|
69
|
+
*
|
|
70
|
+
* In addition, it is possible to add footer for the table. Similarly to adding custom columns, use `<ng-template>`-tag and place the ng-template in the html between the start and ending tag of
|
|
71
|
+
* the `<nggv-table>`. Add a `tableFooter`-attribute to the `<ng-template>`-element. Any elements that exist within `<ng-template tableFooter>` and `</ng-template>` tags will be put to tfoot element inside the table.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* <!-- for table footer i.e. tfoot-element -->
|
|
75
|
+
* <ng-template tableFooter>
|
|
76
|
+
* <tr>
|
|
77
|
+
* <!-- first row's columns -->
|
|
78
|
+
* </tr>
|
|
79
|
+
* <!-- more rows if needed -->
|
|
80
|
+
* </ng-template>
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
export declare class TableComponent<T extends TableRow> implements OnInit, OnChanges, AfterContentInit, OnDestroy {
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* Custom templates defined in the html.
|
|
87
|
+
*/
|
|
88
|
+
customTemplates: QueryList<TableTemplateDirective<keyof T>>;
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
* Custom appended rows template defined in the html.
|
|
92
|
+
*/
|
|
93
|
+
appendedRowsTemplate: TableAppendableRowsTemplateDirective;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* Custom footer template defined in the html.
|
|
97
|
+
*/
|
|
98
|
+
customFooterTemplate: TableFooterTemplateDirective;
|
|
99
|
+
/** Emits the table row that was clicked. Works on all columns if not preventDefaultEmit is set for that column. */
|
|
100
|
+
ngvRowClick: EventEmitter<any>;
|
|
101
|
+
/**
|
|
102
|
+
* Emits currently selected and deselected items in the table as key-value pairs.
|
|
103
|
+
* Uses each item`s itemId as key, and a boolean value to describe selected status.
|
|
104
|
+
*/
|
|
105
|
+
ngvRowSelect: EventEmitter<string[]>;
|
|
106
|
+
/**
|
|
107
|
+
* Emits event to signal that the table should be reordered.
|
|
108
|
+
*/
|
|
109
|
+
ngvOrderBy: EventEmitter<OrderBy<T>>;
|
|
110
|
+
/**
|
|
111
|
+
* An array of items describing how the table header should be rendered,
|
|
112
|
+
* together with instructions for how each row should be displayed in that column.
|
|
113
|
+
*/
|
|
114
|
+
tableColumns: TableColumn<T>[];
|
|
115
|
+
/** Data array to display data in the table. Each item <T> in the array represents a row in the table. */
|
|
116
|
+
tableData: T[];
|
|
117
|
+
/**
|
|
118
|
+
* Property name used to uniquely describe each item (i.e. row) in the data table.
|
|
119
|
+
* Defaults to \'id\'.
|
|
120
|
+
* Is required if selectable is true.
|
|
121
|
+
*/
|
|
122
|
+
rowId: string;
|
|
123
|
+
/**
|
|
124
|
+
* Function's return value is used for data attribute \'data-hasrowspan\'.
|
|
125
|
+
* If custom hasRowSpan function is not passed to the table,
|
|
126
|
+
* then this function returns undefined value by default which results in \'data-hasrowspan\' attribute being omitted in html
|
|
127
|
+
* (angular omits attributes that contain null or undefined value).
|
|
128
|
+
* IMPORTANT: use arrow function style for defining function inside component, i.e. `hasRowSpan = (value) => output;`. If regular function will be defined, i.e. `hasRowSpan(value) { return output; }`, binding will not work.
|
|
129
|
+
*/
|
|
130
|
+
hasRowSpan: (item: T) => any;
|
|
131
|
+
/**
|
|
132
|
+
* Used to enable/disable the left-side checkbox column.
|
|
133
|
+
* Defaults to true.
|
|
134
|
+
*/
|
|
135
|
+
selectable: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Used to enable/disable expandable rows.
|
|
138
|
+
* Defaults to false.
|
|
139
|
+
*/
|
|
140
|
+
expandable: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Property name used to describe the subItems in the data table.
|
|
143
|
+
*/
|
|
144
|
+
subItemsProp: string;
|
|
145
|
+
/**
|
|
146
|
+
* Allow nggv-table to attempt sorting the data in the table. Not recommended if only a subset is loaded or if the dataset is very large.
|
|
147
|
+
* Disabled by default.
|
|
148
|
+
*/
|
|
149
|
+
allowLocalSort: boolean;
|
|
150
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
151
|
+
thook: string;
|
|
152
|
+
/** Function to overwrite generated thook for each row. */
|
|
153
|
+
trThookFn?: (item: T) => string;
|
|
154
|
+
/** Aria label for the checkbox in the table header */
|
|
155
|
+
ariaLabelCheckboxTh?: string;
|
|
156
|
+
/** Aria label for the checkbox in the table header */
|
|
157
|
+
ariaLabelCheckboxTr?: string;
|
|
158
|
+
/** Aria labels for sorting in the table header */
|
|
159
|
+
ariaLabelsOrderBy?: ariaLabelsOrderBy;
|
|
160
|
+
/**
|
|
161
|
+
* @internal
|
|
162
|
+
* Internal data structure used to keep track of added content templates used in td elements.
|
|
163
|
+
*/
|
|
164
|
+
customRowTemplates: Map<keyof T, TemplateRef<any>>;
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
* Internal data structure used to keep track of added content templates used in th elements.
|
|
168
|
+
*/
|
|
169
|
+
customHeaderTemplates: Map<keyof T, TemplateRef<any>>;
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
* Internal data structure used to hold custom appended rows i.e. tr elements (rows).
|
|
173
|
+
*/
|
|
174
|
+
appendedRowsTemplateRef: TemplateRef<any>;
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
* Internal data structure used to hold tfoot element children i.e. tr elements (rows).
|
|
178
|
+
*/
|
|
179
|
+
customFooterTemplateRef: TemplateRef<any>;
|
|
180
|
+
/**
|
|
181
|
+
* @internal
|
|
182
|
+
* Incremental id.
|
|
183
|
+
*/
|
|
184
|
+
initId: number;
|
|
185
|
+
/**
|
|
186
|
+
* @internal
|
|
187
|
+
* FormGroup containing all row id\'s as controls, and whether these are selected or not as values.
|
|
188
|
+
*/
|
|
189
|
+
rowSelectors: UntypedFormGroup;
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
* Master selector for selecting or deselecting all row selectors.
|
|
193
|
+
*/
|
|
194
|
+
groupSelector: UntypedFormControl;
|
|
195
|
+
private selected;
|
|
196
|
+
private subs;
|
|
197
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
198
|
+
ngOnInit(): void;
|
|
199
|
+
ngAfterContentInit(): void;
|
|
200
|
+
ngOnDestroy(): void;
|
|
201
|
+
/**
|
|
202
|
+
* @internal
|
|
203
|
+
* Returns a subscription to the master selector control that either selects or deselects all row controls.
|
|
204
|
+
*/
|
|
205
|
+
get groupValueSubscription(): Subscription;
|
|
206
|
+
/**
|
|
207
|
+
* @internal
|
|
208
|
+
* Returns a subscription to all individual row selectors and update the master selector if all are selected.
|
|
209
|
+
*/
|
|
210
|
+
get rowValueSubscription(): Subscription;
|
|
211
|
+
/**
|
|
212
|
+
* @internal
|
|
213
|
+
* Registers or disables row controls for new or removed rows.
|
|
214
|
+
*/
|
|
215
|
+
registerSelectableRows(tableData: any[]): boolean;
|
|
216
|
+
/**
|
|
217
|
+
* @internal
|
|
218
|
+
* Returns all enabled values unless all rows are disabled.
|
|
219
|
+
*/
|
|
220
|
+
get rowSelectorsValue(): any;
|
|
221
|
+
toggleSortOrderWithSpace(event: any, column: TableColumn<T>): void;
|
|
222
|
+
/**
|
|
223
|
+
* @internal
|
|
224
|
+
* Switches sorting order between ascending and descending order for a column.
|
|
225
|
+
* @param column the column to sort rows after.
|
|
226
|
+
*/
|
|
227
|
+
toggleSortOrder(column: TableColumn<T>): void;
|
|
228
|
+
/** If sortable, reorders the table data using the specified column as ordering attribute. */
|
|
229
|
+
sortItemsBy(column: TableColumn<T>): TableRow[] | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* @internal
|
|
232
|
+
* Emits row data for what row was clicked if defaultEmit is allowed.
|
|
233
|
+
*/
|
|
234
|
+
propagateItemClick(item: any, preventDefaultEmit?: boolean): void;
|
|
235
|
+
getAriaLabel(column: TableColumn<T>): string | undefined;
|
|
236
|
+
private toggleRowToExpand;
|
|
237
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
238
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "nggv-table", never, { "tableColumns": { "alias": "tableColumns"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "rowId": { "alias": "rowId"; "required": false; }; "hasRowSpan": { "alias": "hasRowSpan"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "subItemsProp": { "alias": "subItemsProp"; "required": false; }; "allowLocalSort": { "alias": "allowLocalSort"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "trThookFn": { "alias": "trThookFn"; "required": false; }; "ariaLabelCheckboxTh": { "alias": "ariaLabelCheckboxTh"; "required": false; }; "ariaLabelCheckboxTr": { "alias": "ariaLabelCheckboxTr"; "required": false; }; "ariaLabelsOrderBy": { "alias": "ariaLabelsOrderBy"; "required": false; }; }, { "ngvRowClick": "ngvRowClick"; "ngvRowSelect": "ngvRowSelect"; "ngvOrderBy": "ngvOrderBy"; }, ["appendedRowsTemplate", "customFooterTemplate", "customTemplates"], never, false, never>;
|
|
239
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TableDirective {
|
|
4
|
+
columnType: 'numeric' | 'text' | undefined;
|
|
5
|
+
sortable?: boolean;
|
|
6
|
+
sortOrder?: 'desc' | 'asc';
|
|
7
|
+
value: any;
|
|
8
|
+
thook: string | null | undefined;
|
|
9
|
+
get numericColumn(): boolean;
|
|
10
|
+
get isSortable(): boolean;
|
|
11
|
+
get orderAscending(): boolean;
|
|
12
|
+
get orderDescending(): boolean;
|
|
13
|
+
get negativeValue(): boolean;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableDirective, "[columnType]", never, { "columnType": { "alias": "columnType"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
17
|
+
export declare class TableTemplateDirective<K = string> {
|
|
18
|
+
templateRef: TemplateRef<any>;
|
|
19
|
+
tableColumn: K;
|
|
20
|
+
tableColumnTarget?: 'th' | 'td' | 'both';
|
|
21
|
+
constructor(templateRef: TemplateRef<any>);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableTemplateDirective<any>, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableTemplateDirective<any>, "[tableColumn]", never, { "tableColumn": { "alias": "tableColumn"; "required": false; }; "tableColumnTarget": { "alias": "tableColumnTarget"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
25
|
+
export declare class TableFooterTemplateDirective {
|
|
26
|
+
templateRef: TemplateRef<any>;
|
|
27
|
+
constructor(templateRef: TemplateRef<any>);
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableFooterTemplateDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableFooterTemplateDirective, "[tableFooter]", never, {}, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
31
|
+
export declare class TableAppendableRowsTemplateDirective {
|
|
32
|
+
templateRef: TemplateRef<any>;
|
|
33
|
+
constructor(templateRef: TemplateRef<any>);
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableAppendableRowsTemplateDirective, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableAppendableRowsTemplateDirective, "[tableAppendableRows]", never, {}, {}, never, never, false, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type SortingOrder = 'asc' | 'desc';
|
|
2
|
+
export type ColumnType = 'numeric' | 'text';
|
|
3
|
+
/** Generic type for TableRow data */
|
|
4
|
+
export type TableRow = Record<string, any>;
|
|
5
|
+
/** Options applying to the table header */
|
|
6
|
+
export interface TableHeaderOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Defined the text displayed in the table header.
|
|
9
|
+
* @example <th> {{TableColumn.label}} </th>
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
/** Adjusts text-alignment. */
|
|
13
|
+
valueType?: ColumnType;
|
|
14
|
+
/**
|
|
15
|
+
* Defines whether the table data can be ordered using this column.
|
|
16
|
+
* Setting this to false (or omitting it) will also remove the caret sorting symbol in specified column.
|
|
17
|
+
*/
|
|
18
|
+
sortable?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Defined aria label for a sortable column for the screen reader users.
|
|
21
|
+
*/
|
|
22
|
+
ariaLabelSortable?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Describes the sorting order of the column.
|
|
25
|
+
* As the table can only be sorted based on one column property, if the property is not undefined,
|
|
26
|
+
* it will instruct the table to sort the data based on this specific column.
|
|
27
|
+
*/
|
|
28
|
+
order?: SortingOrder;
|
|
29
|
+
}
|
|
30
|
+
/** Options applying to table rows */
|
|
31
|
+
export interface TableRowOptions {
|
|
32
|
+
/** Adjusts text-alignment. */
|
|
33
|
+
valueType?: ColumnType;
|
|
34
|
+
/** Used to prevent the default click event to be emitted when clicking in cells for specified column */
|
|
35
|
+
preventDefaultClickEvent?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Interface used to describe how a table column should be displayed. This includes the text and class used for the table header,
|
|
39
|
+
* and the data for each table row.
|
|
40
|
+
*/
|
|
41
|
+
export interface TableColumn<T extends TableRow> extends TableHeaderOptions, TableRowOptions {
|
|
42
|
+
/**
|
|
43
|
+
* The property name used to identify what value to display in a cell for that column.
|
|
44
|
+
* @example <tr *ngFor="let data in dataList"> <td>{{ data[TableColumn.property] }}</td> </tr>
|
|
45
|
+
*/
|
|
46
|
+
property: keyof T;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Interface describing event emitted on reordering the table.
|
|
50
|
+
*/
|
|
51
|
+
export interface OrderBy<T extends TableRow> {
|
|
52
|
+
property: keyof T;
|
|
53
|
+
order: SortingOrder | undefined;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Interface describing the aria labels for sorting in the table.
|
|
57
|
+
* Aria label attributes are used for a screen reader to describe the sorting state of the table.
|
|
58
|
+
*/
|
|
59
|
+
export interface ariaLabelsOrderBy {
|
|
60
|
+
asc: string;
|
|
61
|
+
desc: string;
|
|
62
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./table.component";
|
|
3
|
+
import * as i2 from "./table.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "@jsverse/transloco";
|
|
7
|
+
import * as i6 from "./tr-thook.pipe";
|
|
8
|
+
export declare class NggvTableModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NggvTableModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NggvTableModule, [typeof i1.TableComponent, typeof i2.TableDirective, typeof i2.TableTemplateDirective, typeof i2.TableFooterTemplateDirective, typeof i2.TableAppendableRowsTemplateDirective], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.TranslocoModule, typeof i6.TrThookPipe], [typeof i1.TableComponent, typeof i2.TableTemplateDirective, typeof i2.TableFooterTemplateDirective, typeof i2.TableAppendableRowsTemplateDirective]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NggvTableModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const pick: (propertyArray: Array<string>, object: {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
}) => object;
|
|
4
|
+
export declare const orderByDescending: <T>(property: keyof T | string) => ((a: any, b: any) => number);
|
|
5
|
+
export declare const orderByAscending: <T>(property: keyof T | string) => ((a: any, b: any) => number);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TrThookPipe implements PipeTransform {
|
|
4
|
+
transform<V>(value: V, index: number, thookFn?: (rowData: V) => string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrThookPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TrThookPipe, "trThook", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Directive that provides the tab container with data about its child tabs.
|
|
4
|
+
* The directive sets its own active state and adds aria attributes.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <nggv-tabs>
|
|
8
|
+
* <article tab="Tab title 1"> <!-- Content --> </article>
|
|
9
|
+
* <article tab="Tab title 2" [active]="true"> <!-- Content --> </article>
|
|
10
|
+
* <article tab="Tab title 3" disabled> <!-- Content --> </article>
|
|
11
|
+
* <article tab="<strong>Tab title 4</strong>"> <!-- Content --> </article>
|
|
12
|
+
* </nggv-tabs>
|
|
13
|
+
*/
|
|
14
|
+
export declare class TabDirective {
|
|
15
|
+
/** @internal */
|
|
16
|
+
baseClass: boolean;
|
|
17
|
+
/** @internal */
|
|
18
|
+
role: string;
|
|
19
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
20
|
+
thook: string | null | undefined;
|
|
21
|
+
/** Sets whether this tab should be the active tab on load. */
|
|
22
|
+
active: boolean;
|
|
23
|
+
/** @internal */
|
|
24
|
+
get hidden(): boolean;
|
|
25
|
+
/** Sets the title displayed in the tab list for this child. */
|
|
26
|
+
tab: string;
|
|
27
|
+
/** Sets whether this tab should be able to be selected. */
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
/** Identifier used for aria attributes and selection. */
|
|
30
|
+
id: string | number | undefined;
|
|
31
|
+
/** @internal */
|
|
32
|
+
get attrId(): string;
|
|
33
|
+
/** @internal */
|
|
34
|
+
get ariaLabelledby(): string;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabDirective, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabDirective, "[tab]", never, { "thook": { "alias": "thook"; "required": false; }; "active": { "alias": "active"; "required": false; }; "tab": { "alias": "tab"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, false, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AfterContentInit, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { TabDirective } from './tab.directive';
|
|
5
|
+
import { EventTabChange, Tab } from './tabs.models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TabsComponent implements OnChanges, OnInit, AfterContentInit, OnDestroy {
|
|
8
|
+
protected router: Router;
|
|
9
|
+
/** @internal */
|
|
10
|
+
baseClass: boolean;
|
|
11
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
12
|
+
thook: string | null | undefined;
|
|
13
|
+
/** @internal List of children with a {@link TabDirective}. */
|
|
14
|
+
tabRefs: QueryList<TabDirective>;
|
|
15
|
+
/**
|
|
16
|
+
* List of tabs to generate, this should not be used in conjunction with children that have a {@link TabDirective}.
|
|
17
|
+
* It is useful for generating a list of tabs with links for navigation.
|
|
18
|
+
* If any tab has the link property, a `<router-outlet>` is added below the tabs list.
|
|
19
|
+
*/
|
|
20
|
+
tabs: Tab[];
|
|
21
|
+
/**
|
|
22
|
+
* Event triggered on initialization and every time the active tab changes.
|
|
23
|
+
* The tab change can be cancelled if event type is set to `'before'` and `cancel()` is called.
|
|
24
|
+
*/
|
|
25
|
+
ngvTabSwitch: EventEmitter<EventTabChange>;
|
|
26
|
+
/** @internal Adds a `<router-outlet>` below the tabs list. */
|
|
27
|
+
useRouting: boolean;
|
|
28
|
+
/** @internal The currently active tab. */
|
|
29
|
+
selectedTab: Tab | undefined;
|
|
30
|
+
/** @internal If tab switching has started. */
|
|
31
|
+
isSwitching: boolean;
|
|
32
|
+
/** @internal */
|
|
33
|
+
protected subs: Subscription[];
|
|
34
|
+
constructor(router: Router);
|
|
35
|
+
/** @internal */
|
|
36
|
+
static uniqueIds(tabs: Tab[]): {
|
|
37
|
+
tab: string;
|
|
38
|
+
id?: string | number | undefined;
|
|
39
|
+
thook?: string | undefined;
|
|
40
|
+
active?: boolean | undefined;
|
|
41
|
+
disabled?: boolean | undefined;
|
|
42
|
+
link?: string | undefined;
|
|
43
|
+
directive?: TabDirective | undefined;
|
|
44
|
+
}[];
|
|
45
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
46
|
+
ngOnInit(): void;
|
|
47
|
+
ngAfterContentInit(): void;
|
|
48
|
+
/** @internal */
|
|
49
|
+
protected updateFromInput: () => void;
|
|
50
|
+
/** @internal */
|
|
51
|
+
protected updateFromReferences: () => void;
|
|
52
|
+
/** @internal */
|
|
53
|
+
protected updateTabs(): void;
|
|
54
|
+
ngOnDestroy(): void;
|
|
55
|
+
/** @internal */
|
|
56
|
+
protected activateTab(tab: Tab): void;
|
|
57
|
+
/** @internal */
|
|
58
|
+
onSelect(id: string | number | undefined): void;
|
|
59
|
+
/** @internal */
|
|
60
|
+
onKeyDown(event: KeyboardEvent): boolean;
|
|
61
|
+
/** @internal */
|
|
62
|
+
protected tabFocusHelper(event: KeyboardEvent, tabElement: HTMLElement): void;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "nggv-tabs", never, { "thook": { "alias": "thook"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; }, { "ngvTabSwitch": "ngvTabSwitch"; }, ["tabRefs"], ["*"], false, never>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TabDirective } from './tab.directive';
|
|
2
|
+
export interface Tab {
|
|
3
|
+
/** Sets the title displayed in the tab list for this child. */
|
|
4
|
+
tab: string;
|
|
5
|
+
id?: string | number;
|
|
6
|
+
thook?: string;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
link?: string;
|
|
10
|
+
directive?: TabDirective;
|
|
11
|
+
}
|
|
12
|
+
export type EventTabChange = {
|
|
13
|
+
type: 'start';
|
|
14
|
+
prev: Tab | undefined;
|
|
15
|
+
next: Tab;
|
|
16
|
+
cancel: () => void;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'cancel';
|
|
19
|
+
prev: Tab | undefined;
|
|
20
|
+
next: Tab;
|
|
21
|
+
} | {
|
|
22
|
+
type: 'end';
|
|
23
|
+
prev: Tab | undefined;
|
|
24
|
+
next: Tab;
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tab.directive";
|
|
3
|
+
import * as i2 from "./tabs.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@jsverse/transloco";
|
|
6
|
+
import * as i5 from "@angular/router";
|
|
7
|
+
export declare class NggvTabsModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NggvTabsModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NggvTabsModule, [typeof i1.TabDirective, typeof i2.TabsComponent], [typeof i3.CommonModule, typeof i4.TranslocoModule, typeof i5.RouterModule], [typeof i1.TabDirective, typeof i2.TabsComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NggvTabsModule>;
|
|
11
|
+
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
1
2
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
3
|
import { NgControl } from '@angular/forms';
|
|
3
4
|
import { TranslocoScope } from '@jsverse/transloco';
|
|
4
|
-
import {
|
|
5
|
+
import { NggvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/** Textarea fields allow users to add and edit longer or multiple line text. */
|
|
7
|
-
export declare class
|
|
8
|
+
export declare class NggvTextareaComponent extends NggvBaseControlValueAccessorComponent {
|
|
8
9
|
ngControl: NgControl;
|
|
9
10
|
protected translocoScope: TranslocoScope;
|
|
10
11
|
protected cdr: ChangeDetectorRef;
|
|
11
12
|
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
12
|
-
thook: string;
|
|
13
|
+
thook: string | null | undefined;
|
|
13
14
|
/** Text shown before input has a written value. */
|
|
14
15
|
placeholder?: string;
|
|
15
16
|
/** If set to true, the value will not be editable. */
|
|
@@ -39,6 +40,6 @@ export declare class NgvTextareaComponent extends NgvBaseControlValueAccessorCom
|
|
|
39
40
|
constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef);
|
|
40
41
|
/** @internal */
|
|
41
42
|
onInput(event: Event): void;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NggvTextareaComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NggvTextareaComponent, "nggv-textarea", never, { "thook": { "alias": "thook"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
44
45
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
import * as i1 from "./textarea.component";
|
|
3
4
|
import * as i2 from "@angular/common";
|
|
4
5
|
import * as i3 from "@sebgroup/green-angular/src/v-angular/i18n";
|
|
5
6
|
import * as i4 from "@sebgroup/green-angular/src/v-angular/character-countdown";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
static
|
|
9
|
-
static
|
|
7
|
+
import * as i5 from "@sebgroup/green-angular/src/lib/shared";
|
|
8
|
+
export declare class NggvTextareaModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NggvTextareaModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NggvTextareaModule, [typeof i1.NggvTextareaComponent], [typeof i2.CommonModule, typeof i3.NggvI18nModule, typeof i4.NggvCharacterCountdownDirectiveModule, typeof i5.NggCoreWrapperModule], [typeof i1.NggvTextareaComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NggvTextareaModule>;
|
|
10
12
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ToastMessage } from './toast.models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ToastMessageService {
|
|
5
|
+
private messages;
|
|
6
|
+
private messageSubject;
|
|
7
|
+
addMessage(type: 'success' | 'information' | 'error' | 'warning', translocoScope: string, titleText: string, bodyText?: string, timeout?: number): void;
|
|
8
|
+
removeMessage(message: ToastMessage): void;
|
|
9
|
+
pauseMessageTimeout(message: ToastMessage): void;
|
|
10
|
+
resumeMessageTimeout(message: ToastMessage): void;
|
|
11
|
+
getMessages(): Observable<ToastMessage[]>;
|
|
12
|
+
private getDuplicateMessageIndex;
|
|
13
|
+
private removeMessageByIndex;
|
|
14
|
+
private setMessageRemoveTimeout;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastMessageService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToastMessageService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ToastMessageService } from './toast-message.service';
|
|
3
|
+
import { ToastMessage } from './toast.models';
|
|
4
|
+
import '@sebgroup/green-core/components/icon/icons/cross-small.js';
|
|
5
|
+
import '@sebgroup/green-core/components/icon/icons/checkmark.js';
|
|
6
|
+
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
7
|
+
import '@sebgroup/green-core/components/icon/icons/circle-info.js';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class ToastComponent implements OnInit, OnDestroy {
|
|
10
|
+
private toastMessageService;
|
|
11
|
+
closeButtonAriaLabel?: string;
|
|
12
|
+
private toastMessagesSubscription;
|
|
13
|
+
messages: ToastMessage[];
|
|
14
|
+
constructor(toastMessageService: ToastMessageService);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
onMouseEnter(message: ToastMessage): void;
|
|
17
|
+
onMouseLeave(message: ToastMessage): void;
|
|
18
|
+
removeMessage(message: ToastMessage): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "nggv-toast", never, { "closeButtonAriaLabel": { "alias": "closeButtonAriaLabel"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ToastMessage {
|
|
2
|
+
type: MessageType;
|
|
3
|
+
translocoScope: string;
|
|
4
|
+
titleText: string;
|
|
5
|
+
bodyText?: string;
|
|
6
|
+
timeout?: number;
|
|
7
|
+
timeoutId?: number;
|
|
8
|
+
timeoutStartTime?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare enum MessageType {
|
|
11
|
+
Success = "success",
|
|
12
|
+
Information = "information",
|
|
13
|
+
Error = "error",
|
|
14
|
+
Warning = "warning"
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./toast.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@jsverse/transloco";
|
|
5
|
+
import * as i4 from "@sebgroup/green-angular/src/lib/shared";
|
|
6
|
+
export declare class NggvToastModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NggvToastModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NggvToastModule, [typeof i1.ToastComponent], [typeof i2.CommonModule, typeof i3.TranslocoModule, typeof i4.NggCoreWrapperModule], [typeof i1.ToastComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NggvToastModule>;
|
|
10
|
+
}
|