@sebgroup/green-angular 5.1.2 → 5.2.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/src/v-angular/account-number/account-number.module.mjs +18 -0
- package/esm2022/src/v-angular/account-number/account-number.pipe.mjs +54 -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 +387 -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/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 +10 -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 +387 -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-v-angular-account-number.mjs +76 -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 +585 -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 +6295 -2165
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -1
- package/package.json +51 -3
- package/src/v-angular/account-number/README.md +70 -0
- package/src/v-angular/account-number/account-number.module.d.ts +8 -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 +229 -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/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 +9 -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 +229 -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,102 @@
|
|
|
1
|
+
import '../../datepicker.globals';
|
|
2
|
+
import { WeekDay } from '@angular/common';
|
|
3
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
4
|
+
import { NgControl } from '@angular/forms';
|
|
5
|
+
import { TranslocoScope, TranslocoService } from '@jsverse/transloco';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { DateControlValueAccessorComponent } from '../../date-control-value-accessor/date-control-value-accessor.component';
|
|
8
|
+
import type { CalendarType } from '../../datepicker.models';
|
|
9
|
+
import '@sebgroup/green-core/components/icon/icons/calendar.js';
|
|
10
|
+
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* Date pickers simplify the task of selecting a date in a visual representation of a calendar.
|
|
14
|
+
* https://designlibrary.sebgroup.com/components/component-datepicker
|
|
15
|
+
*
|
|
16
|
+
* Selector: `nggv-dateinput`
|
|
17
|
+
*
|
|
18
|
+
* When focusing an date element, the calendar allows for navigation using both tab and arrow keys.
|
|
19
|
+
* Pressing 'esc' will close the calendar.
|
|
20
|
+
*
|
|
21
|
+
* Requires TranslocoLocale, but in turn allows for setting locale dynamically:
|
|
22
|
+
* https://jsverse.github.io/transloco/docs/plugins/locale/#manually-setting-locale
|
|
23
|
+
*
|
|
24
|
+
* To configure TranslocoLocale, follow this guide:
|
|
25
|
+
* https://jsverse.github.io/transloco/docs/plugins/locale/#setup
|
|
26
|
+
*/
|
|
27
|
+
export declare class DateInputComponent extends DateControlValueAccessorComponent implements OnDestroy {
|
|
28
|
+
ngControl: NgControl;
|
|
29
|
+
protected translocoScope: TranslocoScope;
|
|
30
|
+
protected transloco: TranslocoService;
|
|
31
|
+
protected elementRef: ElementRef;
|
|
32
|
+
protected cdr: ChangeDetectorRef;
|
|
33
|
+
toggleButtonRef?: ElementRef<HTMLButtonElement>;
|
|
34
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
35
|
+
thook: string | null | undefined;
|
|
36
|
+
/** Set type of calendar: either 'normal' or 'expanded'. Default is 'normal'. */
|
|
37
|
+
type: CalendarType;
|
|
38
|
+
/** If set to true, the value will not be editable. */
|
|
39
|
+
readonly: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* An array of Dates or parsable strings that corresponds with dates that should not be selectable in the calendar.
|
|
42
|
+
* I.e. bank holidays.
|
|
43
|
+
*/
|
|
44
|
+
disableDates: (string | Date)[];
|
|
45
|
+
/**
|
|
46
|
+
* An array of weekdays that should not be selectable in the calendar.
|
|
47
|
+
* Can be used together with or instead of @Input() disableDates.
|
|
48
|
+
*/
|
|
49
|
+
disableWeekDays: WeekDay[];
|
|
50
|
+
/** Mininum number of rows shown in the calendar. */
|
|
51
|
+
minRows: number;
|
|
52
|
+
/** Sets a from-date of which all dates before will be invalid. */
|
|
53
|
+
firstValid: Date | undefined;
|
|
54
|
+
/** Sets a to-date of which all dates after will be invalid. */
|
|
55
|
+
lastValid: Date | undefined;
|
|
56
|
+
/** Sets a closing time for today to toggle availability for today's date. */
|
|
57
|
+
closingTime: Date | undefined;
|
|
58
|
+
/** Sets first day of week in calendar. Defaults to Monday. */
|
|
59
|
+
firstDayOfWeek: WeekDay;
|
|
60
|
+
/** If set to true, it will allow to close the calendar on escape button click. */
|
|
61
|
+
closeCalendarOnEscape: boolean;
|
|
62
|
+
/** @internal */
|
|
63
|
+
/** @internal */
|
|
64
|
+
shown: boolean;
|
|
65
|
+
/** @internal */
|
|
66
|
+
showInput$: Observable<boolean>;
|
|
67
|
+
/** Observable for listening to clicks outside of the datepicker. */
|
|
68
|
+
private documentClick$;
|
|
69
|
+
/** Subject used for unsubscribe pattern on above observable. */
|
|
70
|
+
private datepickerClosed$;
|
|
71
|
+
constructor(ngControl: NgControl, translocoScope: TranslocoScope, transloco: TranslocoService, elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
72
|
+
ngOnDestroy(): void;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* Called from the datepicker-component when a date button is clicked in the calendar.
|
|
76
|
+
*
|
|
77
|
+
* @param date date object emitted when selecting a date in the datepicker.
|
|
78
|
+
*/
|
|
79
|
+
onDateChange(date: Date): void;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* Called when entering date manually in input field.
|
|
83
|
+
*/
|
|
84
|
+
onValueChange(eventTarget: any): void;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* Listen to 'esc' keypress and closes datepicker if open.
|
|
88
|
+
*/
|
|
89
|
+
keyListener(event: KeyboardEvent): void;
|
|
90
|
+
/** @internal */
|
|
91
|
+
toggleDatepicker(): void;
|
|
92
|
+
/** To externally trigger the datepicker to close. */
|
|
93
|
+
close(): void;
|
|
94
|
+
/**
|
|
95
|
+
* Set the shown state of the datepicker popup. If true the popup will be visible.
|
|
96
|
+
* If the state is set to false, call onTouched to notify any state listeners
|
|
97
|
+
* @param state the shown state which to set.
|
|
98
|
+
*/
|
|
99
|
+
private setShown;
|
|
100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, [{ optional: true; self: true; }, { optional: true; }, null, null, null]>;
|
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "nggv-dateinput,nggv-input[type=date]", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "closeCalendarOnEscape": { "alias": "closeCalendarOnEscape"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
102
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { WeekDay } from '@angular/common';
|
|
2
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
|
+
import { CalendarMonth } from '../../datepicker.models';
|
|
4
|
+
import type { CalendarType } from '../../datepicker.models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
|
+
calendarTemplate: TemplateRef<any> | null;
|
|
8
|
+
/** Emits a Date upon selection. */
|
|
9
|
+
ngvDateChange: EventEmitter<Date>;
|
|
10
|
+
/** Sets first day of week in calendar. Defaults to Monday. */
|
|
11
|
+
firstDayOfWeek: WeekDay;
|
|
12
|
+
/** Bank holidays. */
|
|
13
|
+
disableDates: (string | Date)[];
|
|
14
|
+
/** Other non selectable dates. */
|
|
15
|
+
disableWeekDays: WeekDay[];
|
|
16
|
+
/** Minimum number of calendar rows shown. */
|
|
17
|
+
minCalendarRows: number;
|
|
18
|
+
/** Initial date set as selected. */
|
|
19
|
+
selected: Date | undefined;
|
|
20
|
+
/** Set locale for date format. */
|
|
21
|
+
locale: string | undefined;
|
|
22
|
+
/** Set type of calendar. */
|
|
23
|
+
type: CalendarType;
|
|
24
|
+
/** Sets a from date of which all dates before will be invalid. */
|
|
25
|
+
firstValid: Date | undefined;
|
|
26
|
+
/** Sets a to date of which all dates after will be invalid. */
|
|
27
|
+
lastValid: Date | undefined;
|
|
28
|
+
/** Sets a closing time for today to toggle availability for today's date. */
|
|
29
|
+
closingTime: Date | undefined;
|
|
30
|
+
/** @internal */
|
|
31
|
+
activeCalendar: CalendarMonth;
|
|
32
|
+
/** @internal */
|
|
33
|
+
/** @internal */
|
|
34
|
+
weekdayArray: Date[];
|
|
35
|
+
/** @internal */
|
|
36
|
+
disabledDatesForActiveMonth: Date[];
|
|
37
|
+
private subs;
|
|
38
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
ngOnDestroy(): void;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* Update local calendar variable and changes displayed calendar.
|
|
44
|
+
*/
|
|
45
|
+
changeActiveCalendar(calendar: CalendarMonth): void;
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* Returns a subset of all disabled dates.
|
|
49
|
+
*
|
|
50
|
+
* @param month current month to filter from
|
|
51
|
+
* @param disableDates master list of all disabled dates
|
|
52
|
+
* @returns a subset with current and adjacent months disabled dates
|
|
53
|
+
*/
|
|
54
|
+
getDisabledDatesFor(calendar: CalendarMonth, disableDates?: (string | Date)[]): Date[];
|
|
55
|
+
/**
|
|
56
|
+
* Handles date-clicks from calendar compoentn. Emits event or changes calendar.
|
|
57
|
+
* @param date date clicked in calendar
|
|
58
|
+
*/
|
|
59
|
+
dateClickHandler(date: Date): void;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "nggv-datepicker", never, { "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minCalendarRows": { "alias": "minCalendarRows"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "type": { "alias": "type"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; }, { "ngvDateChange": "ngvDateChange"; }, never, ["*"], false, never>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl, Validator } from '@angular/forms';
|
|
3
|
+
import { TranslocoScope, TranslocoService } from '@jsverse/transloco';
|
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
|
5
|
+
import type { InputmaskOptions } from '@sebgroup/green-angular/src/v-angular/input-mask';
|
|
6
|
+
import { DateCharacters } from '../models/dates';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare abstract class DateControlValueAccessorComponent implements AfterViewInit, OnInit, OnChanges, OnDestroy, ControlValueAccessor, Validator {
|
|
9
|
+
ngControl: NgControl;
|
|
10
|
+
protected translocoScope: TranslocoScope;
|
|
11
|
+
protected elementRef: ElementRef;
|
|
12
|
+
protected cdr: ChangeDetectorRef;
|
|
13
|
+
private _transloco;
|
|
14
|
+
/** Custom template for displaying the content of the label.
|
|
15
|
+
* Specified by nesting an `<ng-template #labelTpl>Custom Label</ng-template>`.
|
|
16
|
+
*/
|
|
17
|
+
labelContentTpl?: TemplateRef<undefined>;
|
|
18
|
+
/** Reference to the native child input element. */
|
|
19
|
+
inputRef?: ElementRef;
|
|
20
|
+
/** Id of the host element and is accessible by the children, automatically generated if not provided. */
|
|
21
|
+
id: any;
|
|
22
|
+
/** Name of the child input element. */
|
|
23
|
+
name?: string;
|
|
24
|
+
/** Label of the child input element using the default template.
|
|
25
|
+
* Can be overwritten by specifying an `<ng-template #labelTpl>Custom Label</ng-template>`.
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Text shown before input has a written value. Default current date format by locale of transloco */
|
|
29
|
+
set placeholder(value: string | undefined);
|
|
30
|
+
get placeholder(): string | undefined;
|
|
31
|
+
private _placeholder;
|
|
32
|
+
defaultPlaceholder?: string;
|
|
33
|
+
/** What characters to use in date placeholder, e.g. {year: 'Y', month: 'M', day: 'D'} */
|
|
34
|
+
dateCharacters?: DateCharacters;
|
|
35
|
+
/** Role of the child input element. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles */
|
|
36
|
+
role?: string;
|
|
37
|
+
/** Value of the child input element. Mostly used in conjunction with radio and checkboxes. */
|
|
38
|
+
value: any;
|
|
39
|
+
/** An error string to be shown under invalid inputs. Overwrites any form errors. */
|
|
40
|
+
error?: string;
|
|
41
|
+
/** A list of errors string to be shown under invalid inputs. Overwrites any form errors. */
|
|
42
|
+
errorList?: string[];
|
|
43
|
+
/** Adds an icon before each error message. */
|
|
44
|
+
withErrorIcon?: boolean;
|
|
45
|
+
/** Description of the child input element. Both visibly and as `aria-label`. */
|
|
46
|
+
description?: string;
|
|
47
|
+
/** If set to true, the browser will try to automatically set focus to the child input element. */
|
|
48
|
+
autofocus: boolean;
|
|
49
|
+
/** Default value of the child input element. */
|
|
50
|
+
defaultValue?: any;
|
|
51
|
+
/** If passed, the component will listen for updates and will reset its value. */
|
|
52
|
+
reset?: Observable<any>;
|
|
53
|
+
/** Adds (Optional) to input label. */
|
|
54
|
+
optional?: boolean | null | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Settings for input mask for dates based on locale
|
|
57
|
+
* @see {@link getLocaleDateMask} use this tool to generate settings for `dateInputMask`
|
|
58
|
+
*/
|
|
59
|
+
set dateInputMask(dateMask: InputmaskOptions<Date>);
|
|
60
|
+
get dateInputMask(): InputmaskOptions<Date>;
|
|
61
|
+
private _dateInputMask;
|
|
62
|
+
private _locked;
|
|
63
|
+
/** Hides the input borders and displays current value as a text. */
|
|
64
|
+
set locked(value: boolean | null | undefined);
|
|
65
|
+
get locked(): boolean | null | undefined;
|
|
66
|
+
/** If set to true, using a controls disabled state will display input as locked. */
|
|
67
|
+
displayDisabledAsLocked?: boolean | null | undefined;
|
|
68
|
+
private _required;
|
|
69
|
+
/** Override the required flag of the component. */
|
|
70
|
+
set required(value: boolean | null | undefined);
|
|
71
|
+
/** Child input element is considered required and changes default label template accordingly. */
|
|
72
|
+
get required(): boolean | null | undefined;
|
|
73
|
+
private _invalid;
|
|
74
|
+
/** Override the invalid state of the component. */
|
|
75
|
+
set invalid(value: boolean);
|
|
76
|
+
/** The component has the invalid state, usually decorating the elements red and shows the first error. */
|
|
77
|
+
get invalid(): boolean;
|
|
78
|
+
private _valid;
|
|
79
|
+
/** Override the valid state of the component. */
|
|
80
|
+
set valid(value: boolean);
|
|
81
|
+
/** The component has the valid state, usually decorating the elements green. */
|
|
82
|
+
get valid(): boolean;
|
|
83
|
+
/** The component has the focused state, updated by the child input element's focus state. */
|
|
84
|
+
focused: boolean;
|
|
85
|
+
/** The component has the disabled state, usually muting the colors and removes interaction. */
|
|
86
|
+
disabled: boolean;
|
|
87
|
+
/** Locale for using correct language in the datepicker. */
|
|
88
|
+
locale: string | undefined;
|
|
89
|
+
/** Date format used for placeholder and input mask. Should be in lower case {year: 'y', month: 'm', day: 'd'} */
|
|
90
|
+
dateFormat: string | undefined;
|
|
91
|
+
/** Date locale used for placeholder and input mask. */
|
|
92
|
+
dateLocale: string | undefined;
|
|
93
|
+
/** Toggler for showing or hiding the input field */
|
|
94
|
+
protected showInputDateSrc: Subject<boolean>;
|
|
95
|
+
/** Emits focus events triggered by the child elements. */
|
|
96
|
+
readonly ngvFocus: EventEmitter<any>;
|
|
97
|
+
/** Emits focus events triggered by the child elements. */
|
|
98
|
+
readonly ngvBlur: EventEmitter<any>;
|
|
99
|
+
/** @internal */
|
|
100
|
+
protected onChange: (_: any) => void;
|
|
101
|
+
/** @internal */
|
|
102
|
+
protected onTouched: () => void;
|
|
103
|
+
/** @internal */
|
|
104
|
+
protected onValidatorChange: () => void;
|
|
105
|
+
private _state;
|
|
106
|
+
scope: string | undefined;
|
|
107
|
+
/** @internal */
|
|
108
|
+
private _onDestroy$;
|
|
109
|
+
/**
|
|
110
|
+
* Creates a new BaseControlValueAccessorComponent.
|
|
111
|
+
* @param ngControl optional FormControl provided when component is used in a form, through dependency injection.
|
|
112
|
+
*/
|
|
113
|
+
constructor(ngControl: NgControl, translocoScope: TranslocoScope, elementRef: ElementRef, cdr: ChangeDetectorRef, _transloco: TranslocoService);
|
|
114
|
+
static parseDateLike(value: any): null | undefined | string;
|
|
115
|
+
ngOnInit(): void;
|
|
116
|
+
ngAfterViewInit(): void;
|
|
117
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
118
|
+
ngOnDestroy(): void;
|
|
119
|
+
/** @internal */
|
|
120
|
+
onFocus(event: Event): void;
|
|
121
|
+
/** @internal */
|
|
122
|
+
onBlur(event: Event): void;
|
|
123
|
+
detectChanges(): void;
|
|
124
|
+
/** Sets the focus on the actual input element. */
|
|
125
|
+
setFocus(): void;
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
* Update placeholder and input mask to match locale.
|
|
129
|
+
* Order if choice for locale:
|
|
130
|
+
* 1. dateLocale - Used for specifying which locale to be used for formatting date
|
|
131
|
+
* 2. locale - Unless dateLocale is not provided, use locale form current translation
|
|
132
|
+
* 3. transloco.getActiveLang - as last resort, get active language form trnasloco
|
|
133
|
+
* If locale is undefined, transloco.activeLang will be used instead.
|
|
134
|
+
*/
|
|
135
|
+
updatePlaceholderAndMask(): void;
|
|
136
|
+
updateFormat(): void;
|
|
137
|
+
/** Internal state/value that the native input element has. */
|
|
138
|
+
get state(): any;
|
|
139
|
+
/**
|
|
140
|
+
* Internal state/value that the native input element has.
|
|
141
|
+
*/
|
|
142
|
+
set state(value: any);
|
|
143
|
+
/** Writes a new value to the child input element. */
|
|
144
|
+
writeValue(value: any): void;
|
|
145
|
+
/** Registers a callback function that is called when the child input element's value changes. */
|
|
146
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
147
|
+
/** Registers a callback function that is called when the child input element triggers on blur. */
|
|
148
|
+
registerOnTouched(fn: () => void): void;
|
|
149
|
+
/** Function that is called by the forms API when the control status changes to or from 'DISABLED'. */
|
|
150
|
+
setDisabledState(isDisabled: boolean): void;
|
|
151
|
+
/** Method that performs synchronous validation against the provided control. Used for internal validation. */
|
|
152
|
+
validate(_control: AbstractControl): {
|
|
153
|
+
[name: string]: any;
|
|
154
|
+
} | null;
|
|
155
|
+
/** Registers a callback function to call when the validator inputs change. */
|
|
156
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
157
|
+
/** Returns the first entry in an error object. */
|
|
158
|
+
get firstError(): {
|
|
159
|
+
code: string;
|
|
160
|
+
params: Record<string, any>;
|
|
161
|
+
} | null;
|
|
162
|
+
private updateValue;
|
|
163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateControlValueAccessorComponent, [{ optional: true; self: true; }, { optional: true; }, null, null, null]>;
|
|
164
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateControlValueAccessorComponent, never, never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "dateCharacters": { "alias": "dateCharacters"; "required": false; }; "role": { "alias": "role"; "required": false; }; "value": { "alias": "value"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorList": { "alias": "errorList"; "required": false; }; "withErrorIcon": { "alias": "withErrorIcon"; "required": false; }; "description": { "alias": "description"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "reset": { "alias": "reset"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "dateInputMask": { "alias": "dateInputMask"; "required": false; }; "locked": { "alias": "locked"; "required": false; }; "displayDisabledAsLocked": { "alias": "displayDisabledAsLocked"; "required": false; }; "required": { "alias": "required"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "dateLocale": { "alias": "dateLocale"; "required": false; }; }, { "ngvFocus": "ngvFocus"; "ngvBlur": "ngvBlur"; }, ["labelContentTpl"], never, false, never>;
|
|
165
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { WeekDay } from '@angular/common';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type CalendarType = 'normal' | 'extended';
|
|
4
|
+
export declare const enum Month {
|
|
5
|
+
January = 0,
|
|
6
|
+
February = 1,
|
|
7
|
+
March = 2,
|
|
8
|
+
April = 3,
|
|
9
|
+
May = 4,
|
|
10
|
+
June = 5,
|
|
11
|
+
July = 6,
|
|
12
|
+
August = 7,
|
|
13
|
+
September = 8,
|
|
14
|
+
October = 9,
|
|
15
|
+
November = 10,
|
|
16
|
+
December = 11
|
|
17
|
+
}
|
|
18
|
+
export interface DisableDateConfig {
|
|
19
|
+
fromDate?: Date | undefined;
|
|
20
|
+
toDate?: Date | undefined;
|
|
21
|
+
excludeDates?: Date[] | undefined;
|
|
22
|
+
excludeDays?: WeekDay[] | undefined;
|
|
23
|
+
closingTime?: Date | undefined;
|
|
24
|
+
}
|
|
25
|
+
export declare class CalendarMonth {
|
|
26
|
+
year: number;
|
|
27
|
+
month: number;
|
|
28
|
+
id: string;
|
|
29
|
+
_date: Date;
|
|
30
|
+
constructor(date?: Date);
|
|
31
|
+
/** Creates an instance based of input year and month. */
|
|
32
|
+
static fromObject(obj: {
|
|
33
|
+
year: number;
|
|
34
|
+
month: number;
|
|
35
|
+
}): CalendarMonth;
|
|
36
|
+
/** Returns a Date representation for the instance. */
|
|
37
|
+
get date(): Date;
|
|
38
|
+
/** Returns the string id representing the instance in form of 'yyyyMM'. */
|
|
39
|
+
valueOf(): string;
|
|
40
|
+
/** Returns a new instance for next month. */
|
|
41
|
+
nextMonth(): CalendarMonth;
|
|
42
|
+
/** Returns a new instance for previous month. */
|
|
43
|
+
previousMonth(): CalendarMonth;
|
|
44
|
+
/** Returns a new instance for next year. */
|
|
45
|
+
nextYear(): CalendarMonth;
|
|
46
|
+
/** Returns a new instance for previous year. */
|
|
47
|
+
previousYear(): CalendarMonth;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonth, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarMonth>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/calendar/calendar.component";
|
|
3
|
+
import * as i2 from "./directives/calendar-date.directive";
|
|
4
|
+
import * as i3 from "./pipes/is-disabled.pipe";
|
|
5
|
+
import * as i4 from "./pipes/date-thook.pipe";
|
|
6
|
+
import * as i5 from "./components/calendar-control/calendar-control.component";
|
|
7
|
+
import * as i6 from "./components/datepicker/datepicker.component";
|
|
8
|
+
import * as i7 from "./components/date-input/date-input.component";
|
|
9
|
+
import * as i8 from "./pipes/matches.pipe";
|
|
10
|
+
import * as i9 from "@angular/common";
|
|
11
|
+
import * as i10 from "@angular/forms";
|
|
12
|
+
import * as i11 from "@jsverse/transloco";
|
|
13
|
+
import * as i12 from "@sebgroup/green-angular/src/v-angular/input-mask";
|
|
14
|
+
import * as i13 from "@sebgroup/green-angular/src/lib/shared";
|
|
15
|
+
export declare class NggvDatepickerModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NggvDatepickerModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NggvDatepickerModule, [typeof i1.CalendarComponent, typeof i2.CalendarDateDirective, typeof i3.IsDisabledPipe, typeof i4.DateThookPipe, typeof i5.CalendarControlComponent, typeof i6.DatepickerComponent, typeof i7.DateInputComponent, typeof i8.MatchesPipe], [typeof i9.CommonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.TranslocoModule, typeof i12.NggvInputMaskModule, typeof i13.NggCoreWrapperModule], [typeof i7.DateInputComponent, typeof i6.DatepickerComponent]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NggvDatepickerModule>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { WeekDay } from '@angular/common';
|
|
2
|
+
export declare const sortWeekDays: (firstDayOfWeek: WeekDay) => WeekDay[];
|
|
3
|
+
/** Sets labels and sort weekday arrays based off of first day of week. */
|
|
4
|
+
export declare const getSortedWeekDays: (firstDayOfWeek: WeekDay, startDate?: Date) => Date[];
|
|
5
|
+
/** Generate a matrix of dates used to visualize a calendar month. */
|
|
6
|
+
export declare const generateDateMatrix: (month: number, year: number, minWeeks: number | undefined, firstDayOfWeek: WeekDay) => Date[][];
|
|
7
|
+
/** Returns the first date used in the calendars first button. */
|
|
8
|
+
export declare const firstCalendarDate: (date: Date, firstDayOfWeek: WeekDay) => Date;
|
|
9
|
+
export declare const getDayOffset: (from: WeekDay, to: WeekDay, firstDayOfWeek: WeekDay, direction?: 'forward' | 'back') => number;
|
|
10
|
+
/** Returns an array of Dates for each of month. */
|
|
11
|
+
export declare const getMonthArray: () => Date[];
|
|
12
|
+
/** Returns an array of Dates for the current year and the next. */
|
|
13
|
+
export declare const getYearArray: () => Date[];
|
|
14
|
+
/** Returns true if the two dates have the same year, month and date values. */
|
|
15
|
+
export declare const match: (a: Date | undefined, b: Date | undefined) => boolean;
|
|
16
|
+
export declare const afterClosingHours: (closingHours: Date | undefined) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Checks if a date is before control date, regardless of time.
|
|
19
|
+
*
|
|
20
|
+
* @param date - comparison date
|
|
21
|
+
* @param controlDate - date to compare against
|
|
22
|
+
* @returns - true if the comparison date is before the control date
|
|
23
|
+
*/
|
|
24
|
+
export declare const isBefore: (date: Date, controlDate: Date) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Checks if a date is after control date, regardless of time.
|
|
27
|
+
*
|
|
28
|
+
* @param date - comparison date
|
|
29
|
+
* @param controlDate - date to compare against
|
|
30
|
+
* @returns - true if the comparison date is before the control date
|
|
31
|
+
*/
|
|
32
|
+
export declare const isAfter: (date: Date, controlDate: Date) => boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Checks if a value can be used to initiate a new Date object.
|
|
35
|
+
*
|
|
36
|
+
* @param value any value
|
|
37
|
+
* @returns - true if value can be coersed to a Date.
|
|
38
|
+
*/
|
|
39
|
+
export declare const isValid: (value: any) => boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const enum DateCss {
|
|
4
|
+
notWithinMonth = "not-within-month",
|
|
5
|
+
selected = "selected",
|
|
6
|
+
today = "today"
|
|
7
|
+
}
|
|
8
|
+
export declare class CalendarDateDirective implements OnInit, OnChanges {
|
|
9
|
+
private elementRef;
|
|
10
|
+
calendarDate: Date;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
notWithinMonth: boolean;
|
|
13
|
+
isToday: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
get nativeElement(): HTMLElement;
|
|
16
|
+
constructor(elementRef: ElementRef);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDateDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarDateDirective, "[calendarDate]", never, { "calendarDate": { "alias": "calendarDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "notWithinMonth": { "alias": "notWithinMonth"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './date-control-value-accessor/date-control-value-accessor.component';
|
|
2
|
+
export * from './components/calendar/calendar.component';
|
|
3
|
+
export * from './components/calendar-control/calendar-control.component';
|
|
4
|
+
export * from './components/date-input/date-input.component';
|
|
5
|
+
export * from './components/datepicker/datepicker.component';
|
|
6
|
+
export * from './directives/calendar-date.directive';
|
|
7
|
+
export * from './pipes/is-disabled.pipe';
|
|
8
|
+
export * from './pipes/matches.pipe';
|
|
9
|
+
export * from './models/dates';
|
|
10
|
+
export * from './datepicker.models';
|
|
11
|
+
export * from './datepicker.globals';
|
|
12
|
+
export * from './datepicker.module';
|
|
13
|
+
export * from './datepicker.utils';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InputmaskOptions } from '@sebgroup/green-angular/src/v-angular/input-mask';
|
|
2
|
+
/**
|
|
3
|
+
* Helper function to generate InputmaskOptions by requested locale.
|
|
4
|
+
* @param locale - requested locale. If not given, it'll use the browsers locale
|
|
5
|
+
* @returns InputmaskOptions with date settings
|
|
6
|
+
*/
|
|
7
|
+
export declare const getLocaleDateMask: (dateCharacters?: DateCharacters, locale?: string) => InputmaskOptions<Date>;
|
|
8
|
+
export declare const getLocaleDateString: (locale?: string) => string;
|
|
9
|
+
export declare const getFormatDateMask: (format: string, dateCharacters?: DateCharacters) => InputmaskOptions<Date>;
|
|
10
|
+
export interface DateCharacters {
|
|
11
|
+
year: string;
|
|
12
|
+
month: string;
|
|
13
|
+
day: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const setDateFormatCharacters: (format: string, dateCharacters?: DateCharacters) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DateThookPipe implements PipeTransform {
|
|
4
|
+
get today(): Date;
|
|
5
|
+
transform(date: Date, isDisabled: boolean): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateThookPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateThookPipe, "dateThook", false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DisableDateConfig } from '../datepicker.models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IsDisabledPipe implements PipeTransform {
|
|
5
|
+
transform(value: Date, config?: DisableDateConfig): boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsDisabledPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsDisabledPipe, "isDisabled", false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MatchesPipe implements PipeTransform {
|
|
4
|
+
transform(value: Date, selected: Date | undefined): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchesPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MatchesPipe, "matches", false>;
|
|
7
|
+
}
|