@fundamental-ngx/core 0.45.1 → 0.46.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/busy-indicator/busy-indicator-extended/busy-indicator-extended.directive.d.ts +1 -1
- package/busy-indicator/busy-indicator.component.d.ts +2 -2
- package/busy-indicator/busy-indicator.module.d.ts +4 -4
- package/calendar/calendar-directives.d.ts +1 -1
- package/calendar/calendar-header/calendar-header.component.d.ts +2 -6
- package/calendar/calendar-views/calendar-aggregated-year-view/calendar-aggregated-year-view.component.d.ts +1 -1
- package/calendar/calendar-views/calendar-day-view/calendar-day-view.component.d.ts +27 -32
- package/calendar/calendar-views/calendar-month-view/calendar-month-view.component.d.ts +1 -1
- package/calendar/calendar-views/calendar-year-view/calendar-year-view.component.d.ts +1 -1
- package/calendar/calendar.component.d.ts +7 -8
- package/calendar/calendar.module.d.ts +2 -5
- package/carousel/carousel-item/carousel-item.component.d.ts +1 -1
- package/carousel/carousel-item.directive.d.ts +1 -1
- package/carousel/carousel.component.d.ts +8 -1
- package/carousel/carousel.directive.d.ts +1 -1
- package/carousel/carousel.module.d.ts +1 -5
- package/checkbox/checkbox/checkbox.component.d.ts +19 -6
- package/checkbox/checkbox.module.d.ts +3 -5
- package/combobox/combobox-mobile/combobox-mobile.component.d.ts +2 -1
- package/date-picker/date-picker-mobile/date-picker-mobile.component.d.ts +31 -0
- package/date-picker/date-picker.component.d.ts +46 -16
- package/date-picker/date-picker.model.d.ts +11 -0
- package/date-picker/date-picker.module.d.ts +2 -12
- package/date-picker/index.d.ts +2 -0
- package/date-picker/tokens.d.ts +5 -0
- package/datetime-picker/datetime-picker-mobile/datetime-picker-mobile.component.d.ts +29 -0
- package/datetime-picker/datetime-picker.component.d.ts +34 -12
- package/datetime-picker/datetime-picker.model.d.ts +9 -0
- package/datetime-picker/datetime-picker.module.d.ts +2 -14
- package/datetime-picker/index.d.ts +2 -0
- package/datetime-picker/tokens.d.ts +5 -0
- package/dialog/dialog.module.d.ts +1 -1
- package/dialog/utils/dialog-ref.class.d.ts +15 -5
- package/esm2022/action-bar/action-bar.component.mjs +2 -2
- package/esm2022/action-sheet/action-sheet.component.mjs +2 -2
- package/esm2022/avatar/avatar.component.mjs +2 -2
- package/esm2022/avatar-group/avatar-group.component.mjs +2 -2
- package/esm2022/bar/bar.component.mjs +2 -2
- package/esm2022/breadcrumb/breadcrumb.component.mjs +2 -2
- package/esm2022/busy-indicator/busy-indicator-extended/busy-indicator-extended.directive.mjs +4 -3
- package/esm2022/busy-indicator/busy-indicator.component.mjs +5 -5
- package/esm2022/busy-indicator/busy-indicator.module.mjs +3 -4
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/calendar/calendar-directives.mjs +4 -3
- package/esm2022/calendar/calendar-header/calendar-header.component.mjs +7 -15
- package/esm2022/calendar/calendar-views/calendar-aggregated-year-view/calendar-aggregated-year-view.component.mjs +6 -5
- package/esm2022/calendar/calendar-views/calendar-day-view/calendar-day-view.component.mjs +21 -30
- package/esm2022/calendar/calendar-views/calendar-month-view/calendar-month-view.component.mjs +6 -5
- package/esm2022/calendar/calendar-views/calendar-year-view/calendar-year-view.component.mjs +6 -5
- package/esm2022/calendar/calendar.component.mjs +17 -13
- package/esm2022/calendar/calendar.module.mjs +9 -9
- package/esm2022/card/card-footer.component.mjs +3 -3
- package/esm2022/card/card.component.mjs +2 -2
- package/esm2022/carousel/carousel-item/carousel-item.component.mjs +4 -4
- package/esm2022/carousel/carousel-item.directive.mjs +4 -3
- package/esm2022/carousel/carousel.component.mjs +19 -6
- package/esm2022/carousel/carousel.directive.mjs +4 -3
- package/esm2022/carousel/carousel.module.mjs +4 -9
- package/esm2022/checkbox/checkbox/checkbox.component.mjs +42 -17
- package/esm2022/checkbox/checkbox.module.mjs +4 -7
- package/esm2022/combobox/combobox-mobile/combobox-mobile.component.mjs +3 -2
- package/esm2022/date-picker/date-picker-mobile/date-picker-mobile.component.mjs +96 -0
- package/esm2022/date-picker/date-picker.component.mjs +142 -40
- package/esm2022/date-picker/date-picker.model.mjs +2 -0
- package/esm2022/date-picker/date-picker.module.mjs +6 -49
- package/esm2022/date-picker/index.mjs +3 -1
- package/esm2022/date-picker/tokens.mjs +4 -0
- package/esm2022/datetime-picker/datetime-picker-mobile/datetime-picker-mobile.component.mjs +96 -0
- package/esm2022/datetime-picker/datetime-picker.component.mjs +120 -36
- package/esm2022/datetime-picker/datetime-picker.model.mjs +2 -0
- package/esm2022/datetime-picker/datetime-picker.module.mjs +6 -57
- package/esm2022/datetime-picker/index.mjs +3 -1
- package/esm2022/datetime-picker/tokens.mjs +4 -0
- package/esm2022/dialog/dialog-body/dialog-body.component.mjs +4 -3
- package/esm2022/dialog/dialog.component.mjs +2 -2
- package/esm2022/dialog/dialog.module.mjs +8 -5
- package/esm2022/dialog/utils/dialog-ref.class.mjs +13 -8
- package/esm2022/dynamic-page/dynamic-page-header/actions/dynamic-page-title-content.component.mjs +1 -1
- package/esm2022/dynamic-page/dynamic-page.component.mjs +2 -2
- package/esm2022/dynamic-side-content/dynamic-side-content.component.mjs +2 -2
- package/esm2022/facets/facet/facet.component.mjs +2 -2
- package/esm2022/feed-input/feed-input.component.mjs +2 -2
- package/esm2022/feed-list-item/components/list/feed-list.component.mjs +2 -2
- package/esm2022/file-uploader/file-uploader.component.mjs +2 -2
- package/esm2022/fixed-card-layout/fixed-card-layout.component.mjs +2 -2
- package/esm2022/flexible-column-layout/flexible-column-layout.component.mjs +2 -2
- package/esm2022/form/fieldset/fieldset.component.mjs +2 -2
- package/esm2022/form/form-control/form-control.component.mjs +2 -2
- package/esm2022/form/form-group/form-group.component.mjs +2 -2
- package/esm2022/form/form-header/form-header.component.mjs +2 -2
- package/esm2022/form/form-item/form-item.component.mjs +2 -2
- package/esm2022/form/form-label/form-label.component.mjs +2 -2
- package/esm2022/form/form-message/form-message.component.mjs +2 -2
- package/esm2022/grid-list/components/grid-list/grid-list.component.mjs +2 -2
- package/esm2022/grid-list/components/grid-list-filter-bar/grid-list-filter-bar.component.mjs +1 -1
- package/esm2022/grid-list/components/grid-list-title-bar/grid-list-title-bar.component.mjs +1 -1
- package/esm2022/icon/icon.component.mjs +2 -2
- package/esm2022/illustrated-message/illustrated-message.component.mjs +2 -2
- package/esm2022/info-label/info-label.component.mjs +2 -2
- package/esm2022/input-group/input-group.component.mjs +2 -2
- package/esm2022/layout-grid/layout-grid.component.mjs +2 -2
- package/esm2022/layout-panel/layout-panel.component.mjs +2 -2
- package/esm2022/link/link.component.mjs +9 -9
- package/esm2022/link/link.module.mjs +4 -7
- package/esm2022/list/directives/list-secondary.directive.mjs +21 -8
- package/esm2022/list/list-navigation-item/list-navigation-item.component.mjs +2 -2
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/list/list.module.mjs +3 -5
- package/esm2022/menu/menu.component.mjs +2 -2
- package/esm2022/message-box/message-box.component.mjs +2 -2
- package/esm2022/message-page/message-page.component.mjs +2 -2
- package/esm2022/message-strip/alert/message-strip-alert/message-strip-alert.component.mjs +2 -2
- package/esm2022/message-strip/alert/message-strip-configuration-type.mjs +1 -1
- package/esm2022/message-strip/index.mjs +3 -1
- package/esm2022/message-strip/message-strip-icon.directive.mjs +18 -0
- package/esm2022/message-strip/message-strip-indication-color.mjs +7 -0
- package/esm2022/message-strip/message-strip.component.mjs +36 -5
- package/esm2022/message-strip/message-strip.module.mjs +5 -4
- package/esm2022/message-toast/message-toast.component.mjs +3 -3
- package/esm2022/micro-process-flow/components/micro-process-flow/micro-process-flow.component.mjs +2 -2
- package/esm2022/mobile-mode/mobile-mode.class.mjs +3 -1
- package/esm2022/multi-combobox/multi-combobox.component.mjs +2 -2
- package/esm2022/multi-combobox/select-all-toggler/select-all-toggler.component.mjs +1 -1
- package/esm2022/multi-input/multi-input.component.mjs +1 -1
- package/esm2022/notification/notification/notification.component.mjs +2 -2
- package/esm2022/object-identifier/object-identifier.component.mjs +2 -2
- package/esm2022/object-marker/object-marker.component.mjs +2 -2
- package/esm2022/object-number/object-number.component.mjs +2 -2
- package/esm2022/object-status/object-status.component.mjs +2 -2
- package/esm2022/pagination/pagination.component.mjs +2 -2
- package/esm2022/panel/panel.component.mjs +2 -2
- package/esm2022/popover/popover-body/popover-body-directives/popover-body-footer.directive.mjs +4 -3
- package/esm2022/popover/popover-body/popover-body-directives/popover-body-header.directive.mjs +4 -3
- package/esm2022/popover/popover-body/popover-body.component.mjs +8 -11
- package/esm2022/popover/popover-container/popover-container.directive.mjs +4 -3
- package/esm2022/popover/popover-control/popover-control.component.mjs +3 -3
- package/esm2022/popover/popover-mobile/popover-mobile.component.mjs +10 -7
- package/esm2022/popover/popover-mobile/popover-mobile.module.mjs +4 -5
- package/esm2022/popover/popover-trigger.directive.mjs +4 -3
- package/esm2022/popover/popover.component.mjs +5 -6
- package/esm2022/popover/popover.module.mjs +5 -10
- package/esm2022/product-switch/product-switch-body/product-switch-body.component.mjs +2 -2
- package/esm2022/progress-indicator/progress-indicator.component.mjs +2 -2
- package/esm2022/quick-view/quick-view/quick-view.component.mjs +2 -2
- package/esm2022/radio/radio-button/radio-button.component.mjs +3 -3
- package/esm2022/rating-indicator/components/rating-indicator.component.mjs +2 -2
- package/esm2022/resizable-card-layout/resizable-card-layout/resizable-card-item/resizable-card-item.component.mjs +2 -2
- package/esm2022/resizable-card-layout/resizable-card-layout/resizable-card-layout.component.mjs +2 -2
- package/esm2022/segmented-button/segmented-button.component.mjs +2 -2
- package/esm2022/select/select.component.mjs +2 -2
- package/esm2022/shared/interfaces/search-component.interface.mjs +1 -1
- package/esm2022/shared/interfaces/special-day-rule.mjs +1 -1
- package/esm2022/shellbar/product-menu/product-menu.component.mjs +12 -8
- package/esm2022/shellbar/shellbar-action/shellbar-action.component.mjs +8 -6
- package/esm2022/shellbar/shellbar-actions/shellbar-actions.component.mjs +8 -9
- package/esm2022/shellbar/shellbar-actions-mobile/shellbar-actions-mobile.component.mjs +9 -7
- package/esm2022/shellbar/shellbar-logo/shellbar-logo.component.mjs +3 -3
- package/esm2022/shellbar/shellbar-sidenav.directive.mjs +4 -3
- package/esm2022/shellbar/shellbar-subtitle/shellbar-subtitle.component.mjs +3 -3
- package/esm2022/shellbar/shellbar-title/shellbar-title.component.mjs +3 -3
- package/esm2022/shellbar/shellbar.component.mjs +10 -9
- package/esm2022/shellbar/shellbar.module.mjs +10 -59
- package/esm2022/shellbar/user-menu/shellbar-user-menu.component.mjs +9 -6
- package/esm2022/side-navigation/side-navigation.component.mjs +2 -2
- package/esm2022/skeleton/components/skeleton.component.mjs +2 -2
- package/esm2022/slider/slider-position.directive.mjs +19 -11
- package/esm2022/slider/slider.component.mjs +136 -79
- package/esm2022/slider/slider.model.mjs +2 -1
- package/esm2022/slider/slider.module.mjs +6 -6
- package/esm2022/split-button/split-button.component.mjs +2 -2
- package/esm2022/splitter/splitter.component.mjs +2 -2
- package/esm2022/status-indicator/status-indicator.component.mjs +2 -2
- package/esm2022/step-input/step-input.component.mjs +2 -2
- package/esm2022/switch/switch.component.mjs +2 -2
- package/esm2022/table/table-wrapper.component.mjs +2 -2
- package/esm2022/table/table.component.mjs +2 -2
- package/esm2022/tabs/tab-list.component.mjs +2 -2
- package/esm2022/tabs/tab-nav/tab-nav.component.mjs +2 -2
- package/esm2022/text/text.component.mjs +7 -7
- package/esm2022/text/text.module.mjs +4 -9
- package/esm2022/tile/tile.component.mjs +2 -2
- package/esm2022/time/time.component.mjs +2 -2
- package/esm2022/title/title.component.mjs +3 -3
- package/esm2022/title/title.module.mjs +4 -6
- package/esm2022/token/token.component.mjs +2 -2
- package/esm2022/token/tokenizer.component.mjs +2 -2
- package/esm2022/toolbar/deprecated-toolbar-size.directive.mjs +4 -3
- package/esm2022/toolbar/toolbar-form-label.directive.mjs +4 -3
- package/esm2022/toolbar/toolbar-item.directive.mjs +4 -3
- package/esm2022/toolbar/toolbar-label.directive.mjs +4 -3
- package/esm2022/toolbar/toolbar-overflow-button-menu.directive.mjs +4 -3
- package/esm2022/toolbar/toolbar-overflow-button.directive.mjs +4 -3
- package/esm2022/toolbar/toolbar-separator.component.mjs +4 -3
- package/esm2022/toolbar/toolbar-spacer.directive.mjs +4 -3
- package/esm2022/toolbar/toolbar.component.mjs +39 -18
- package/esm2022/toolbar/toolbar.module.mjs +5 -10
- package/esm2022/tree/components/tree-item/tree-item.component.mjs +1 -1
- package/esm2022/tree/tree.component.mjs +2 -2
- package/esm2022/upload-collection/upload-collection.component.mjs +3 -3
- package/esm2022/vertical-navigation/vertical-navigation-main-navigation.component.mjs +2 -2
- package/esm2022/vertical-navigation/vertical-navigation.component.mjs +2 -2
- package/esm2022/wizard/wizard.component.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-action-bar.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-action-bar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-action-sheet.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-action-sheet.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-avatar-group.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-avatar-group.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-avatar.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-avatar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-bar.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-bar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-breadcrumb.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-busy-indicator.mjs +9 -10
- package/fesm2022/fundamental-ngx-core-busy-indicator.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-button.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-calendar.mjs +91 -95
- package/fesm2022/fundamental-ngx-core-calendar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-card.mjs +4 -4
- package/fesm2022/fundamental-ngx-core-card.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-carousel.mjs +29 -19
- package/fesm2022/fundamental-ngx-core-carousel.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-checkbox.mjs +43 -20
- package/fesm2022/fundamental-ngx-core-checkbox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs +2 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-date-picker.mjs +235 -86
- package/fesm2022/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs +211 -88
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dialog.mjs +23 -15
- package/fesm2022/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dynamic-page.mjs +3 -3
- package/fesm2022/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dynamic-side-content.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-dynamic-side-content.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-facets.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-facets.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-feed-input.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-feed-input.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-feed-list-item.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-feed-list-item.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-file-uploader.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-file-uploader.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-fixed-card-layout.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-fixed-card-layout.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-flexible-column-layout.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-flexible-column-layout.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-form.mjs +14 -14
- package/fesm2022/fundamental-ngx-core-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-grid-list.mjs +4 -4
- package/fesm2022/fundamental-ngx-core-grid-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-icon.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-icon.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-illustrated-message.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-illustrated-message.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-info-label.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-info-label.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-input-group.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-input-group.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-layout-grid.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-layout-grid.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-layout-panel.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-layout-panel.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-link.mjs +10 -12
- package/fesm2022/fundamental-ngx-core-link.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-list.mjs +26 -17
- package/fesm2022/fundamental-ngx-core-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-menu.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-menu.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-message-box.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-message-box.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-message-page.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-message-page.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-message-strip.mjs +62 -9
- package/fesm2022/fundamental-ngx-core-message-strip.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-message-toast.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-message-toast.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-micro-process-flow.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-micro-process-flow.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-mobile-mode.mjs +2 -0
- package/fesm2022/fundamental-ngx-core-mobile-mode.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs +3 -3
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-input.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-notification.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-notification.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-object-identifier.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-object-identifier.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-object-marker.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-object-marker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-object-number.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-object-number.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-object-status.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-object-status.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-pagination.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-pagination.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-panel.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-panel.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-popover.mjs +36 -38
- package/fesm2022/fundamental-ngx-core-popover.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-product-switch.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-product-switch.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-progress-indicator.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-progress-indicator.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-quick-view.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-quick-view.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-radio.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-radio.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-rating-indicator.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-rating-indicator.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-resizable-card-layout.mjs +4 -4
- package/fesm2022/fundamental-ngx-core-resizable-card-layout.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-segmented-button.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-segmented-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-select.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-select.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-shellbar.mjs +93 -132
- package/fesm2022/fundamental-ngx-core-shellbar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-side-navigation.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-side-navigation.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-skeleton.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-skeleton.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-slider.mjs +158 -96
- package/fesm2022/fundamental-ngx-core-slider.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-split-button.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-split-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-splitter.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-splitter.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-status-indicator.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-status-indicator.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-step-input.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-step-input.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-switch.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-switch.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-table.mjs +4 -4
- package/fesm2022/fundamental-ngx-core-table.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-tabs.mjs +4 -4
- package/fesm2022/fundamental-ngx-core-tabs.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-text.mjs +9 -14
- package/fesm2022/fundamental-ngx-core-text.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-tile.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-tile.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-time.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-time.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-title.mjs +5 -7
- package/fesm2022/fundamental-ngx-core-title.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-token.mjs +4 -4
- package/fesm2022/fundamental-ngx-core-token.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-toolbar.mjs +80 -56
- package/fesm2022/fundamental-ngx-core-toolbar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-tree.mjs +3 -3
- package/fesm2022/fundamental-ngx-core-tree.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-upload-collection.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-upload-collection.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-vertical-navigation.mjs +4 -4
- package/fesm2022/fundamental-ngx-core-vertical-navigation.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-wizard.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-wizard.mjs.map +1 -1
- package/fundamental-ngx-core-v0.46.0-rc.1.tgz +0 -0
- package/link/link.component.d.ts +1 -1
- package/link/link.module.d.ts +1 -3
- package/list/directives/list-secondary.directive.d.ts +16 -3
- package/list/list.module.d.ts +20 -20
- package/message-strip/alert/message-strip-configuration-type.d.ts +2 -0
- package/message-strip/index.d.ts +2 -0
- package/message-strip/message-strip-icon.directive.d.ts +9 -0
- package/message-strip/message-strip-indication-color.d.ts +4 -0
- package/message-strip/message-strip.component.d.ts +11 -1
- package/message-strip/message-strip.module.d.ts +2 -1
- package/mobile-mode/mobile-mode.class.d.ts +3 -1
- package/package.json +4 -4
- package/popover/popover-body/popover-body-directives/popover-body-footer.directive.d.ts +1 -1
- package/popover/popover-body/popover-body-directives/popover-body-header.directive.d.ts +1 -1
- package/popover/popover-body/popover-body.component.d.ts +1 -1
- package/popover/popover-container/popover-container.directive.d.ts +1 -1
- package/popover/popover-control/popover-control.component.d.ts +1 -1
- package/popover/popover-mobile/popover-mobile.component.d.ts +3 -3
- package/popover/popover-mobile/popover-mobile.module.d.ts +5 -5
- package/popover/popover-trigger.directive.d.ts +1 -1
- package/popover/popover.component.d.ts +1 -1
- package/popover/popover.module.d.ts +1 -5
- package/schematics/add-dependencies/index.js +6 -6
- package/shared/interfaces/search-component.interface.d.ts +1 -0
- package/shared/interfaces/special-day-rule.d.ts +1 -1
- package/shellbar/product-menu/product-menu.component.d.ts +1 -1
- package/shellbar/shellbar-action/shellbar-action.component.d.ts +1 -1
- package/shellbar/shellbar-actions/shellbar-actions.component.d.ts +1 -1
- package/shellbar/shellbar-actions-mobile/shellbar-actions-mobile.component.d.ts +1 -1
- package/shellbar/shellbar-logo/shellbar-logo.component.d.ts +1 -1
- package/shellbar/shellbar-sidenav.directive.d.ts +1 -1
- package/shellbar/shellbar-subtitle/shellbar-subtitle.component.d.ts +1 -1
- package/shellbar/shellbar-title/shellbar-title.component.d.ts +1 -1
- package/shellbar/shellbar.component.d.ts +1 -1
- package/shellbar/shellbar.module.d.ts +2 -14
- package/shellbar/user-menu/shellbar-user-menu.component.d.ts +1 -1
- package/slider/slider-position.directive.d.ts +6 -4
- package/slider/slider.component.d.ts +21 -13
- package/slider/slider.model.d.ts +2 -1
- package/slider/slider.module.d.ts +9 -9
- package/text/text.component.d.ts +1 -1
- package/text/text.module.d.ts +1 -5
- package/title/title.component.d.ts +1 -1
- package/title/title.module.d.ts +1 -2
- package/toolbar/deprecated-toolbar-size.directive.d.ts +1 -1
- package/toolbar/toolbar-form-label.directive.d.ts +1 -1
- package/toolbar/toolbar-item.directive.d.ts +1 -1
- package/toolbar/toolbar-label.directive.d.ts +1 -1
- package/toolbar/toolbar-overflow-button-menu.directive.d.ts +1 -1
- package/toolbar/toolbar-overflow-button.directive.d.ts +1 -1
- package/toolbar/toolbar-separator.component.d.ts +1 -1
- package/toolbar/toolbar-spacer.directive.d.ts +1 -1
- package/toolbar/toolbar.component.d.ts +9 -5
- package/toolbar/toolbar.module.d.ts +11 -15
- package/fundamental-ngx-core-v0.45.1.tgz +0 -0
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { IconModule } from '@fundamental-ngx/core/icon';
|
|
6
|
-
import * as i4 from '@fundamental-ngx/core/popover';
|
|
7
|
-
import { PopoverService, PopoverModule } from '@fundamental-ngx/core/popover';
|
|
8
|
-
import * as i5 from '@fundamental-ngx/core/calendar';
|
|
9
|
-
import { CalendarComponent, CalendarModule } from '@fundamental-ngx/core/calendar';
|
|
10
|
-
import * as i6 from '@angular/forms';
|
|
2
|
+
import { InjectionToken, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, Optional, ViewChild, EventEmitter, inject, Injector, forwardRef, ElementRef, Input, Output, ViewChildren, NgModule } from '@angular/core';
|
|
3
|
+
import * as i5 from '@angular/forms';
|
|
11
4
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms';
|
|
12
5
|
import { Subject, Subscription } from 'rxjs';
|
|
13
6
|
import { takeUntil, startWith } from 'rxjs/operators';
|
|
14
7
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
15
|
-
import
|
|
8
|
+
import { CalendarComponent } from '@fundamental-ngx/core/calendar';
|
|
9
|
+
import * as i1$1 from '@fundamental-ngx/core/datetime';
|
|
16
10
|
import { DATE_TIME_FORMATS } from '@fundamental-ngx/core/datetime';
|
|
17
11
|
import * as i2 from '@fundamental-ngx/core/form';
|
|
18
12
|
import { registerFormItemControl, PopoverFormMessageService, FormMessageModule } from '@fundamental-ngx/core/form';
|
|
19
|
-
import * as
|
|
13
|
+
import * as i3$1 from '@fundamental-ngx/core/popover';
|
|
14
|
+
import { PopoverService, PopoverModule } from '@fundamental-ngx/core/popover';
|
|
15
|
+
import * as i4$1 from '@fundamental-ngx/core/input-group';
|
|
20
16
|
import { InputGroupInputDirective, InputGroupModule } from '@fundamental-ngx/core/input-group';
|
|
21
|
-
import * as
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
17
|
+
import * as i4 from '@fundamental-ngx/cdk/utils';
|
|
18
|
+
import { InitialFocusDirective, DynamicComponentService } from '@fundamental-ngx/cdk/utils';
|
|
19
|
+
import { MobileModeBase, MobileModeControl, MOBILE_MODE_CONFIG } from '@fundamental-ngx/core/mobile-mode';
|
|
20
|
+
import * as i1 from '@fundamental-ngx/core/dialog';
|
|
21
|
+
import { DialogModule } from '@fundamental-ngx/core/dialog';
|
|
22
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
23
|
+
import * as i6 from '@fundamental-ngx/core/bar';
|
|
24
24
|
import { BarModule } from '@fundamental-ngx/core/bar';
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
25
|
+
import { ScrollbarDirective } from '@fundamental-ngx/core/scrollbar';
|
|
26
|
+
import { CdkScrollable } from '@angular/cdk/overlay';
|
|
27
|
+
import * as i3 from '@fundamental-ngx/core/title';
|
|
28
|
+
import { TitleModule } from '@fundamental-ngx/core/title';
|
|
29
|
+
import { NgIf, NgTemplateOutlet, NgSwitch, NgSwitchCase } from '@angular/common';
|
|
30
|
+
import { FdTranslatePipe } from '@fundamental-ngx/i18n';
|
|
31
|
+
import * as i7 from '@fundamental-ngx/core/button';
|
|
32
|
+
import { ButtonModule } from '@fundamental-ngx/core/button';
|
|
28
33
|
|
|
29
34
|
/** Creates an error to be thrown when attempting to use an invalid date implementation. */
|
|
30
35
|
function createMissingDateImplementationError(provider) {
|
|
@@ -33,6 +38,88 @@ function createMissingDateImplementationError(provider) {
|
|
|
33
38
|
`custom implementation.`);
|
|
34
39
|
}
|
|
35
40
|
|
|
41
|
+
const FD_DATE_PICKER_COMPONENT = new InjectionToken('FdDatePickerComponent');
|
|
42
|
+
const FD_DATE_PICKER_MOBILE_CONFIG = new InjectionToken('FdDatePickerMobileConfig');
|
|
43
|
+
|
|
44
|
+
class DatePickerMobileComponent extends MobileModeBase {
|
|
45
|
+
/** @hidden */
|
|
46
|
+
constructor(elementRef, dialogService, _destroyRef, datePickerConfig, datePickerComponent, mobileModes) {
|
|
47
|
+
super(elementRef, dialogService, datePickerComponent, MobileModeControl.DATE_PICKER, mobileModes);
|
|
48
|
+
this._destroyRef = _destroyRef;
|
|
49
|
+
this.datePickerConfig = datePickerConfig;
|
|
50
|
+
this._component.isOpenChange.subscribe((isOpen) => {
|
|
51
|
+
this._toggleDialog(isOpen);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/** @hidden */
|
|
55
|
+
handleApprove() {
|
|
56
|
+
this.dialogRef.close();
|
|
57
|
+
this._component.dialogApprove();
|
|
58
|
+
}
|
|
59
|
+
/** @hidden */
|
|
60
|
+
handleDismiss() {
|
|
61
|
+
this.dialogRef.dismiss();
|
|
62
|
+
this._component.dialogDismiss(this._selectedBackup);
|
|
63
|
+
}
|
|
64
|
+
/** @hidden */
|
|
65
|
+
_toggleDialog(open) {
|
|
66
|
+
if (open) {
|
|
67
|
+
this._selectedBackup = this._component.selectedDate;
|
|
68
|
+
if (!this._dialogService.hasOpenDialogs()) {
|
|
69
|
+
this._open();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/** @hidden */
|
|
74
|
+
_open() {
|
|
75
|
+
this.dialogRef = this._dialogService.open(this.dialogTemplate, {
|
|
76
|
+
mobile: true,
|
|
77
|
+
backdropClickCloseable: false,
|
|
78
|
+
disablePaddings: true,
|
|
79
|
+
...this.dialogConfig,
|
|
80
|
+
container: this._elementRef.nativeElement
|
|
81
|
+
});
|
|
82
|
+
this._selectedBackup = this._component.getSelectedDate();
|
|
83
|
+
const refSub = this.dialogRef.afterClosed.pipe(takeUntilDestroyed(this._destroyRef)).subscribe({
|
|
84
|
+
error: (type) => {
|
|
85
|
+
if (type === 'escape') {
|
|
86
|
+
this._component.dialogDismiss(this._selectedBackup);
|
|
87
|
+
refSub.unsubscribe();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DatePickerMobileComponent, deps: [{ token: i0.ElementRef }, { token: i1.DialogService }, { token: i0.DestroyRef }, { token: FD_DATE_PICKER_MOBILE_CONFIG }, { token: FD_DATE_PICKER_COMPONENT }, { token: MOBILE_MODE_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
93
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: DatePickerMobileComponent, isStandalone: true, selector: "fd-date-picker-mobile", viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #dialogTemplate>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-header>\n <h1 fd-title *ngIf=\"mobileConfig?.title\">{{ mobileConfig.title }}</h1>\n <button\n title=\"Close\"\n fd-dialog-close-button\n *ngIf=\"mobileConfig?.hasCloseButton\"\n [mobile]=\"true\"\n (click)=\"handleDismiss()\"\n ></button>\n </fd-dialog-header>\n\n <fd-dialog-body>\n <ng-container *ngTemplateOutlet=\"datePickerConfig?.calendarTemplate || null\"></ng-container>\n </fd-dialog-body>\n\n <fd-dialog-footer>\n <fd-button-bar\n *ngIf=\"mobileConfig?.approveButtonText\"\n fdType=\"emphasized\"\n [label]=\"mobileConfig.approveButtonText!\"\n (click)=\"handleApprove()\"\n >\n </fd-button-bar>\n <fd-button-bar\n *ngIf=\"mobileConfig?.cancelButtonText\"\n fdkInitialFocus\n [label]=\"mobileConfig.cancelButtonText!\"\n (click)=\"handleDismiss()\"\n >\n </fd-button-bar>\n </fd-dialog-footer>\n </fd-dialog>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "component", type: i1.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i1.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i1.DialogFooterComponent, selector: "fd-dialog-footer" }, { kind: "component", type: i1.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "component", type: i1.DialogCloseButtonComponent, selector: "[fd-dialog-close-button]", inputs: ["mobile", "title"] }, { kind: "component", type: i6.ButtonBarComponent, selector: "fd-button-bar", inputs: ["fullWidth", "fdType", "title", "ariaLabel", "ariaLabelledby", "id"] }, { kind: "component", type: i3.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "directive", type: i4.InitialFocusDirective, selector: "[fdkInitialFocus]", inputs: ["fdkInitialFocus", "enabled", "focusLastElement"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TitleModule }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: BarModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
94
|
+
}
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DatePickerMobileComponent, decorators: [{
|
|
96
|
+
type: Component,
|
|
97
|
+
args: [{ selector: 'fd-date-picker-mobile', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
98
|
+
DialogModule,
|
|
99
|
+
NgIf,
|
|
100
|
+
TitleModule,
|
|
101
|
+
CdkScrollable,
|
|
102
|
+
ScrollbarDirective,
|
|
103
|
+
NgTemplateOutlet,
|
|
104
|
+
BarModule,
|
|
105
|
+
InitialFocusDirective
|
|
106
|
+
], template: "<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #dialogTemplate>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-header>\n <h1 fd-title *ngIf=\"mobileConfig?.title\">{{ mobileConfig.title }}</h1>\n <button\n title=\"Close\"\n fd-dialog-close-button\n *ngIf=\"mobileConfig?.hasCloseButton\"\n [mobile]=\"true\"\n (click)=\"handleDismiss()\"\n ></button>\n </fd-dialog-header>\n\n <fd-dialog-body>\n <ng-container *ngTemplateOutlet=\"datePickerConfig?.calendarTemplate || null\"></ng-container>\n </fd-dialog-body>\n\n <fd-dialog-footer>\n <fd-button-bar\n *ngIf=\"mobileConfig?.approveButtonText\"\n fdType=\"emphasized\"\n [label]=\"mobileConfig.approveButtonText!\"\n (click)=\"handleApprove()\"\n >\n </fd-button-bar>\n <fd-button-bar\n *ngIf=\"mobileConfig?.cancelButtonText\"\n fdkInitialFocus\n [label]=\"mobileConfig.cancelButtonText!\"\n (click)=\"handleDismiss()\"\n >\n </fd-button-bar>\n </fd-dialog-footer>\n </fd-dialog>\n</ng-template>\n" }]
|
|
107
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.DialogService }, { type: i0.DestroyRef }, { type: undefined, decorators: [{
|
|
108
|
+
type: Inject,
|
|
109
|
+
args: [FD_DATE_PICKER_MOBILE_CONFIG]
|
|
110
|
+
}] }, { type: undefined, decorators: [{
|
|
111
|
+
type: Inject,
|
|
112
|
+
args: [FD_DATE_PICKER_COMPONENT]
|
|
113
|
+
}] }, { type: undefined, decorators: [{
|
|
114
|
+
type: Optional
|
|
115
|
+
}, {
|
|
116
|
+
type: Inject,
|
|
117
|
+
args: [MOBILE_MODE_CONFIG]
|
|
118
|
+
}] }]; }, propDecorators: { dialogTemplate: [{
|
|
119
|
+
type: ViewChild,
|
|
120
|
+
args: ['dialogTemplate']
|
|
121
|
+
}] } });
|
|
122
|
+
|
|
36
123
|
let datePickerCounter = 0;
|
|
37
124
|
/**
|
|
38
125
|
* The datetime picker component is an opinionated composition of the fd-popover and
|
|
@@ -121,10 +208,6 @@ class DatePickerComponent {
|
|
|
121
208
|
this.placeholder = '';
|
|
122
209
|
/** If it is mandatory field */
|
|
123
210
|
this.required = false;
|
|
124
|
-
/** @hidden */
|
|
125
|
-
this._message = null;
|
|
126
|
-
/** @hidden */
|
|
127
|
-
this._messageTriggers = ['focusin', 'focusout'];
|
|
128
211
|
/** The currently selected FdDates model start and end in range mode. */
|
|
129
212
|
this.selectedRangeDate = { start: null, end: null };
|
|
130
213
|
/**
|
|
@@ -156,7 +239,7 @@ class DatePickerComponent {
|
|
|
156
239
|
this.buttonFocusable = true;
|
|
157
240
|
/**
|
|
158
241
|
* Special days mark, it can be used by passing array of object with
|
|
159
|
-
* Special day number, list 1-20 [class:`fd-
|
|
242
|
+
* Special day number, list 1-20 [class:`fd-calendar__item--legend-{{number}}`] is available there:
|
|
160
243
|
* https://sap.github.io/fundamental-styles/components/calendar.html calendar special days section
|
|
161
244
|
* Rule accepts method with FdDate object as a parameter. ex:
|
|
162
245
|
* `rule: (fdDate: FdDate) => fdDate.getDay() === 1`, which will mark all sundays as special day.
|
|
@@ -194,8 +277,12 @@ class DatePickerComponent {
|
|
|
194
277
|
* Whether to prevent page scrolling when focusing date picker input field after calendar has been closed.
|
|
195
278
|
*/
|
|
196
279
|
this.preventScrollOnFocus = false;
|
|
197
|
-
/**
|
|
198
|
-
this.
|
|
280
|
+
/** Whether date picker should rendered in mobile mode. */
|
|
281
|
+
this.mobile = false;
|
|
282
|
+
/** Whether calendar is used inside mobile in landscape mode, it also adds close button on right side */
|
|
283
|
+
this.mobileLandscape = false;
|
|
284
|
+
/** Whether calendar is used inside mobile in portrait mode */
|
|
285
|
+
this.mobilePortrait = false;
|
|
199
286
|
/** Event emitted when the state of the isOpen property changes. */
|
|
200
287
|
this.isOpenChange = new EventEmitter();
|
|
201
288
|
/** Fired when a new date is selected. */
|
|
@@ -204,6 +291,12 @@ class DatePickerComponent {
|
|
|
204
291
|
this.selectedRangeDateChange = new EventEmitter();
|
|
205
292
|
/** Event thrown every time calendar active view is changed */
|
|
206
293
|
this.activeViewChange = new EventEmitter();
|
|
294
|
+
/** @hidden */
|
|
295
|
+
this._message = null;
|
|
296
|
+
/** @hidden */
|
|
297
|
+
this._processInputOnBlur = false;
|
|
298
|
+
/** @hidden */
|
|
299
|
+
this._messageTriggers = ['focusin', 'focusout'];
|
|
207
300
|
/** @hidden The value of the input */
|
|
208
301
|
this._inputFieldDate = null;
|
|
209
302
|
/** @hidden Whether the date input is invalid */
|
|
@@ -218,6 +311,10 @@ class DatePickerComponent {
|
|
|
218
311
|
this._subscriptions = new Subscription();
|
|
219
312
|
/** @hidden */
|
|
220
313
|
this._state = 'default';
|
|
314
|
+
/** @hidden */
|
|
315
|
+
this._injector = inject(Injector);
|
|
316
|
+
/** @hidden */
|
|
317
|
+
this._dynamicComponentService = inject(DynamicComponentService);
|
|
221
318
|
/**
|
|
222
319
|
* Function used to disable certain dates in the calendar.
|
|
223
320
|
* @param date date representation
|
|
@@ -245,6 +342,17 @@ class DatePickerComponent {
|
|
|
245
342
|
}
|
|
246
343
|
}
|
|
247
344
|
/** @hidden */
|
|
345
|
+
dialogApprove() { }
|
|
346
|
+
/** @hidden */
|
|
347
|
+
dialogDismiss(prevValue) {
|
|
348
|
+
if (this._isDateRange(prevValue)) {
|
|
349
|
+
this.handleRangeDateChange(prevValue);
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
this.handleSingleDateChange(prevValue);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
/** @hidden */
|
|
248
356
|
ngOnInit() {
|
|
249
357
|
this._dateTimeAdapter.localeChanges.pipe(takeUntil(this._onDestroy$)).subscribe(() => {
|
|
250
358
|
this.formatInputDate(this.selectedDate);
|
|
@@ -269,12 +377,16 @@ class DatePickerComponent {
|
|
|
269
377
|
calendar?.initialFocus();
|
|
270
378
|
});
|
|
271
379
|
});
|
|
380
|
+
if (this.mobile) {
|
|
381
|
+
this._setUpMobileMode();
|
|
382
|
+
}
|
|
272
383
|
}
|
|
273
384
|
/** @hidden */
|
|
274
385
|
ngOnDestroy() {
|
|
275
386
|
this._subscriptions.unsubscribe();
|
|
276
387
|
this._onDestroy$.next();
|
|
277
388
|
this._onDestroy$.complete();
|
|
389
|
+
this._mobileComponentRef?.destroy();
|
|
278
390
|
}
|
|
279
391
|
/**
|
|
280
392
|
* Method that handle calendar active view change and throws event.
|
|
@@ -291,13 +403,17 @@ class DatePickerComponent {
|
|
|
291
403
|
}
|
|
292
404
|
/** Opens the calendar */
|
|
293
405
|
openCalendar() {
|
|
294
|
-
if (
|
|
295
|
-
|
|
296
|
-
this._changeMessageVisibility();
|
|
406
|
+
if (this.disabled) {
|
|
407
|
+
return;
|
|
297
408
|
}
|
|
409
|
+
this._setOpenState(true);
|
|
410
|
+
this._changeMessageVisibility();
|
|
298
411
|
}
|
|
299
412
|
/** Toggles the calendar open or closed */
|
|
300
413
|
toggleCalendar() {
|
|
414
|
+
if (this.disabled) {
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
301
417
|
this._setOpenState(!this.isOpen);
|
|
302
418
|
if (!this.isOpen) {
|
|
303
419
|
this.onTouched();
|
|
@@ -306,25 +422,27 @@ class DatePickerComponent {
|
|
|
306
422
|
}
|
|
307
423
|
/** Closes the calendar if it is open */
|
|
308
424
|
closeCalendar() {
|
|
309
|
-
if (this.isOpen) {
|
|
310
|
-
|
|
311
|
-
this._changeMessageVisibility();
|
|
425
|
+
if (!this.isOpen) {
|
|
426
|
+
return;
|
|
312
427
|
}
|
|
428
|
+
this._setOpenState(false);
|
|
429
|
+
this._changeMessageVisibility();
|
|
313
430
|
}
|
|
314
431
|
/**
|
|
315
432
|
* @hidden
|
|
316
433
|
* Method that is triggered by events from calendar component, when there is selected single date changed
|
|
317
434
|
*/
|
|
318
435
|
handleSingleDateChange(date) {
|
|
319
|
-
if (date) {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
436
|
+
if (!date) {
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
this.selectedDate = date;
|
|
440
|
+
this.selectedDateChange.emit(date);
|
|
441
|
+
this.onChange(date);
|
|
442
|
+
this.formatInputDate(date);
|
|
443
|
+
this._isInvalidDateInput = !this.isModelValid();
|
|
444
|
+
if (this.closeOnDateChoose && this.type === 'single') {
|
|
445
|
+
this.closeCalendar();
|
|
328
446
|
}
|
|
329
447
|
}
|
|
330
448
|
/**
|
|
@@ -332,9 +450,10 @@ class DatePickerComponent {
|
|
|
332
450
|
* Method that is triggered date formatting in the date control
|
|
333
451
|
*/
|
|
334
452
|
formatInputDate(date) {
|
|
335
|
-
if (date) {
|
|
336
|
-
|
|
453
|
+
if (!date) {
|
|
454
|
+
return;
|
|
337
455
|
}
|
|
456
|
+
this._inputFieldDate = this._formatDate(date);
|
|
338
457
|
}
|
|
339
458
|
/**
|
|
340
459
|
* @hidden
|
|
@@ -547,6 +666,10 @@ class DatePickerComponent {
|
|
|
547
666
|
return this._isRangeModelValid(this.selectedRangeDate);
|
|
548
667
|
}
|
|
549
668
|
}
|
|
669
|
+
/** Returns current selected date. */
|
|
670
|
+
getSelectedDate() {
|
|
671
|
+
return this.selectedDate || this.selectedRangeDate;
|
|
672
|
+
}
|
|
550
673
|
/** @hidden */
|
|
551
674
|
_changeMessageVisibility() {
|
|
552
675
|
if (this.isOpen) {
|
|
@@ -627,8 +750,30 @@ class DatePickerComponent {
|
|
|
627
750
|
this.isOpenChange.emit(this.isOpen);
|
|
628
751
|
this._changeDetectionRef.detectChanges();
|
|
629
752
|
}
|
|
630
|
-
|
|
631
|
-
|
|
753
|
+
/** @hidden */
|
|
754
|
+
_setUpMobileMode() {
|
|
755
|
+
const injector = Injector.create({
|
|
756
|
+
providers: [
|
|
757
|
+
{ provide: FD_DATE_PICKER_COMPONENT, useValue: this },
|
|
758
|
+
{
|
|
759
|
+
provide: FD_DATE_PICKER_MOBILE_CONFIG,
|
|
760
|
+
useValue: { calendarTemplate: this._calendarTemplate, controlTemplate: this._controlTemplate }
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
parent: this._injector
|
|
764
|
+
});
|
|
765
|
+
this._mobileComponentRef = this._dynamicComponentService.createDynamicComponent({}, (DatePickerMobileComponent), {
|
|
766
|
+
container: 'body'
|
|
767
|
+
}, {
|
|
768
|
+
injector
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
/** @hidden */
|
|
772
|
+
_isDateRange(value) {
|
|
773
|
+
return !!value && value.start && value.end;
|
|
774
|
+
}
|
|
775
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DatePickerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.DatetimeAdapter, optional: true }, { token: DATE_TIME_FORMATS, optional: true }, { token: i2.PopoverFormMessageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
776
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: DatePickerComponent, isStandalone: true, selector: "fd-date-picker", inputs: { type: "type", placeholder: "placeholder", inputId: "inputId", required: "required", message: "message", messageTriggers: "messageTriggers", selectedDate: "selectedDate", selectedRangeDate: "selectedRangeDate", startingDayOfWeek: "startingDayOfWeek", rangeHoverEffect: "rangeHoverEffect", useValidation: "useValidation", allowNull: "allowNull", activeView: "activeView", placement: "placement", appendTo: "appendTo", disabled: "disabled", closeOnDateChoose: "closeOnDateChoose", showTodayButton: "showTodayButton", todayButtonLabel: "todayButtonLabel", previousButtonDisableFunction: "previousButtonDisableFunction", nextButtonDisableFunction: "nextButtonDisableFunction", state: "state", buttonFocusable: "buttonFocusable", specialDaysRules: "specialDaysRules", yearGrid: "yearGrid", aggregatedYearGrid: "aggregatedYearGrid", markWeekends: "markWeekends", showWeekNumbers: "showWeekNumbers", isOpen: "isOpen", inline: "inline", ariaLabelledBy: "ariaLabelledBy", processInputOnBlur: "processInputOnBlur", preventScrollOnFocus: "preventScrollOnFocus", mobile: "mobile", mobileConfig: "mobileConfig", mobileLandscape: "mobileLandscape", mobilePortrait: "mobilePortrait", disableFunction: "disableFunction", disableRangeStartFunction: "disableRangeStartFunction", disableRangeEndFunction: "disableRangeEndFunction" }, outputs: { isOpenChange: "isOpenChange", selectedDateChange: "selectedDateChange", selectedRangeDateChange: "selectedRangeDateChange", activeViewChange: "activeViewChange" }, host: { listeners: { "blur": "onTouched()" }, properties: { "class.fd-date-picker": "true", "class.fd-date-picker-custom": "inline" } }, providers: [
|
|
632
777
|
{
|
|
633
778
|
provide: NG_VALUE_ACCESSOR,
|
|
634
779
|
useExisting: forwardRef(() => DatePickerComponent),
|
|
@@ -639,10 +784,15 @@ class DatePickerComponent {
|
|
|
639
784
|
useExisting: forwardRef(() => DatePickerComponent),
|
|
640
785
|
multi: true
|
|
641
786
|
},
|
|
787
|
+
{
|
|
788
|
+
provide: FD_DATE_PICKER_COMPONENT,
|
|
789
|
+
useExisting: DatePickerComponent
|
|
790
|
+
},
|
|
642
791
|
registerFormItemControl(DatePickerComponent),
|
|
643
792
|
PopoverFormMessageService,
|
|
644
|
-
PopoverService
|
|
645
|
-
|
|
793
|
+
PopoverService,
|
|
794
|
+
DynamicComponentService
|
|
795
|
+
], viewQueries: [{ propertyName: "_inputGroupElement", first: true, predicate: ["inputGroupComponent"], descendants: true, read: ElementRef }, { propertyName: "_inputElement", first: true, predicate: InputGroupInputDirective, descendants: true, read: ElementRef }, { propertyName: "_controlTemplate", first: true, predicate: ["controlTemplate"], descendants: true }, { propertyName: "_calendarTemplate", first: true, predicate: ["calendarTemplate"], descendants: true }, { propertyName: "_calendars", predicate: CalendarComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngTemplateOutlet=\"mobile ? mobileTemplate : desktopTemplate\"></ng-container>\n\n<ng-template #mobileTemplate>\n <ng-container [ngTemplateOutlet]=\"controlTemplate\"></ng-container>\n</ng-template>\n\n<ng-template #desktopTemplate>\n <fd-popover\n [(isOpen)]=\"isOpen\"\n (isOpenChange)=\"_onOpenStateChanged($event)\"\n [triggers]=\"[]\"\n [placement]=\"placement\"\n [disabled]=\"disabled\"\n [focusTrapped]=\"true\"\n [focusAutoCapture]=\"false\"\n [appendTo]=\"appendTo\"\n >\n <fd-popover-control>\n <ng-template [ngTemplateOutlet]=\"controlTemplate\"></ng-template>\n </fd-popover-control>\n <fd-popover-body [attr.aria-expanded]=\"isOpen\" [attr.aria-hidden]=\"!isOpen\">\n <ng-container *ngIf=\"_showPopoverContents\">\n <fd-form-message [embedded]=\"true\" *ngIf=\"_message\" [type]=\"state\">\n {{ _message }}\n </fd-form-message>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]=\"calendarTemplate\"></ng-template>\n </ng-container>\n </fd-popover-body>\n </fd-popover>\n</ng-template>\n\n<ng-template #controlTemplate>\n <fd-input-group\n #inputGroupComponent\n [state]=\"state\"\n [disabled]=\"disabled\"\n [isControl]=\"true\"\n [button]=\"true\"\n [buttonFocusable]=\"buttonFocusable\"\n glyph=\"appointment-2\"\n [isExpanded]=\"isOpen\"\n [glyphAriaLabel]=\"'coreDatePicker.displayCalendarToggleLabel' | fdTranslate\"\n [iconTitle]=\"'coreDatePicker.displayCalendarToggleLabel' | fdTranslate\"\n (addOnButtonClicked)=\"toggleCalendar()\"\n >\n <input\n type=\"text\"\n class=\"fd-input\"\n fd-input-group-input\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [attr.id]=\"inputId\"\n aria-haspopup=\"grid\"\n aria-autocomplete=\"none\"\n [attr.aria-expanded]=\"isOpen\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-label]=\"_dateInputArialLabelKey | fdTranslate\"\n [attr.aria-required]=\"required\"\n [attr.aria-describedby]=\"_formValueStateMessageId\"\n [ngModel]=\"_inputFieldDate\"\n (keyup.enter)=\"handleInputChange($any($event.target).value, false)\"\n (ngModelChange)=\"handleInputChange($event, true)\"\n (click)=\"mobile && openCalendar()\"\n (blur)=\"_onBlur($event)\"\n />\n </fd-input-group>\n</ng-template>\n\n<ng-template #calendarTemplate>\n <fd-calendar\n [activeView]=\"activeView\"\n [markWeekends]=\"markWeekends\"\n [specialDaysRules]=\"specialDaysRules\"\n [showWeekNumbers]=\"showWeekNumbers\"\n [aggregatedYearGrid]=\"aggregatedYearGrid\"\n [yearGrid]=\"yearGrid\"\n [calType]=\"type\"\n [rangeHoverEffect]=\"rangeHoverEffect\"\n [disableFunction]=\"disableFunction\"\n [disableRangeStartFunction]=\"disableRangeStartFunction\"\n [disableRangeEndFunction]=\"disableRangeEndFunction\"\n [selectedDate]=\"selectedDate\"\n [selectedRangeDate]=\"selectedRangeDate\"\n [startingDayOfWeek]=\"startingDayOfWeek\"\n [previousButtonDisableFunction]=\"previousButtonDisableFunction\"\n [nextButtonDisableFunction]=\"nextButtonDisableFunction\"\n [mobileLandscape]=\"mobile && mobileLandscape\"\n [mobilePortrait]=\"mobile && mobilePortrait\"\n (selectedRangeDateChange)=\"handleRangeDateChange($event)\"\n (selectedDateChange)=\"handleSingleDateChange($event)\"\n (activeViewChange)=\"handleCalendarActiveViewChange($event)\"\n (closeCalendar)=\"closeFromCalendar()\"\n ></fd-calendar>\n\n <div *ngIf=\"showTodayButton\" fd-bar barDesign=\"footer\">\n <div fd-bar-right>\n <fd-bar-element>\n <button fd-button [label]=\"todayButtonLabel\" (click)=\"onTodayButtonClick()\"></button>\n </fd-bar-element>\n </div>\n </div>\n</ng-template>\n\n<div style=\"display: none\" aria-hidden=\"true\">\n <div [attr.id]=\"_formValueStateMessageId\" aria-atomic=\"true\" aria-live=\"assertive\">\n <ng-container [ngSwitch]=\"state\">\n <ng-container *ngSwitchCase=\"'success'\">\n {{ 'coreDatePicker.valueStateSuccessMessage' | fdTranslate }}</ng-container\n >\n <ng-container *ngSwitchCase=\"'information'\">\n {{ 'coreDatePicker.valueStateInformationMessage' | fdTranslate }}</ng-container\n >\n <ng-container *ngSwitchCase=\"'warning'\">\n {{ 'coreDatePicker.valueStateWarningMessage' | fdTranslate }}</ng-container\n >\n <ng-container *ngSwitchCase=\"'error'\">\n {{ 'coreDatePicker.valueStateErrorMessage' | fdTranslate }}\n </ng-container>\n </ng-container>\n {{ _message }}\n </div>\n</div>\n", styles: [".fd-date-picker-custom{display:inline-block}.fd-date-picker-custom fd-popover{display:block}.fd-date-picker-custom fd-calendar{border-radius:.25rem;border-radius:var(--sapElement_BorderCornerRadius, .25rem)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i3$1.PopoverControlComponent, selector: "fd-popover-control" }, { kind: "component", type: i3$1.PopoverBodyComponent, selector: "fd-popover-body" }, { kind: "component", type: i3$1.PopoverComponent, selector: "fd-popover", inputs: ["title", "trigger", "fixedPosition", "id", "mobile", "mobileConfig"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormMessageModule }, { kind: "component", type: i2.FormMessageComponent, selector: "fd-form-message", inputs: ["type", "static", "embedded", "class"] }, { kind: "ngmodule", type: InputGroupModule }, { kind: "component", type: i4$1.InputGroupComponent, selector: "fd-input-group", inputs: ["placement", "required", "inline", "placeholder", "addOnText", "buttonFocusable", "type", "glyph", "button", "disabled", "readonly", "state", "isControl", "showFocus", "isExpanded", "glyphAriaLabel", "iconTitle", "ariaLabelledBy"], outputs: ["addOnButtonClicked", "search"] }, { kind: "directive", type: i4$1.InputGroupInputDirective, selector: "[fdInputGroupInput], [fd-input-group-input]", inputs: ["class"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: CalendarComponent, selector: "fd-calendar", inputs: ["selectedDate", "markWeekends", "showWeekNumbers", "mobileLandscape", "mobilePortrait", "selectedRangeDate", "activeView", "startingDayOfWeek", "calType", "id", "specialDaysRules", "yearGrid", "aggregatedYearGrid", "rangeHoverEffect", "previousButtonDisableFunction", "nextButtonDisableFunction", "escapeFocusFunction", "disableFunction", "disableRangeStartFunction", "disableRangeEndFunction"], outputs: ["activeViewChange", "selectedDateChange", "selectedRangeDateChange", "isValidDateChange", "closeCalendar", "closeClicked"] }, { kind: "ngmodule", type: BarModule }, { kind: "component", type: i6.BarComponent, selector: "[fd-bar]", inputs: ["class", "barDesign", "inPage", "inHomePage", "size"] }, { kind: "directive", type: i6.BarRightDirective, selector: "[fd-bar-right]" }, { kind: "directive", type: i6.BarElementDirective, selector: "fd-bar-element", inputs: ["fullWidth"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i7.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "pipe", type: FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
646
796
|
}
|
|
647
797
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
648
798
|
type: Component,
|
|
@@ -661,11 +811,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
661
811
|
useExisting: forwardRef(() => DatePickerComponent),
|
|
662
812
|
multi: true
|
|
663
813
|
},
|
|
814
|
+
{
|
|
815
|
+
provide: FD_DATE_PICKER_COMPONENT,
|
|
816
|
+
useExisting: DatePickerComponent
|
|
817
|
+
},
|
|
664
818
|
registerFormItemControl(DatePickerComponent),
|
|
665
819
|
PopoverFormMessageService,
|
|
666
|
-
PopoverService
|
|
667
|
-
|
|
668
|
-
|
|
820
|
+
PopoverService,
|
|
821
|
+
DynamicComponentService
|
|
822
|
+
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
823
|
+
NgTemplateOutlet,
|
|
824
|
+
PopoverModule,
|
|
825
|
+
NgIf,
|
|
826
|
+
FormMessageModule,
|
|
827
|
+
InputGroupModule,
|
|
828
|
+
FormsModule,
|
|
829
|
+
CalendarComponent,
|
|
830
|
+
BarModule,
|
|
831
|
+
ButtonModule,
|
|
832
|
+
NgSwitch,
|
|
833
|
+
NgSwitchCase,
|
|
834
|
+
FdTranslatePipe
|
|
835
|
+
], template: "<ng-container *ngTemplateOutlet=\"mobile ? mobileTemplate : desktopTemplate\"></ng-container>\n\n<ng-template #mobileTemplate>\n <ng-container [ngTemplateOutlet]=\"controlTemplate\"></ng-container>\n</ng-template>\n\n<ng-template #desktopTemplate>\n <fd-popover\n [(isOpen)]=\"isOpen\"\n (isOpenChange)=\"_onOpenStateChanged($event)\"\n [triggers]=\"[]\"\n [placement]=\"placement\"\n [disabled]=\"disabled\"\n [focusTrapped]=\"true\"\n [focusAutoCapture]=\"false\"\n [appendTo]=\"appendTo\"\n >\n <fd-popover-control>\n <ng-template [ngTemplateOutlet]=\"controlTemplate\"></ng-template>\n </fd-popover-control>\n <fd-popover-body [attr.aria-expanded]=\"isOpen\" [attr.aria-hidden]=\"!isOpen\">\n <ng-container *ngIf=\"_showPopoverContents\">\n <fd-form-message [embedded]=\"true\" *ngIf=\"_message\" [type]=\"state\">\n {{ _message }}\n </fd-form-message>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]=\"calendarTemplate\"></ng-template>\n </ng-container>\n </fd-popover-body>\n </fd-popover>\n</ng-template>\n\n<ng-template #controlTemplate>\n <fd-input-group\n #inputGroupComponent\n [state]=\"state\"\n [disabled]=\"disabled\"\n [isControl]=\"true\"\n [button]=\"true\"\n [buttonFocusable]=\"buttonFocusable\"\n glyph=\"appointment-2\"\n [isExpanded]=\"isOpen\"\n [glyphAriaLabel]=\"'coreDatePicker.displayCalendarToggleLabel' | fdTranslate\"\n [iconTitle]=\"'coreDatePicker.displayCalendarToggleLabel' | fdTranslate\"\n (addOnButtonClicked)=\"toggleCalendar()\"\n >\n <input\n type=\"text\"\n class=\"fd-input\"\n fd-input-group-input\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [attr.id]=\"inputId\"\n aria-haspopup=\"grid\"\n aria-autocomplete=\"none\"\n [attr.aria-expanded]=\"isOpen\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-label]=\"_dateInputArialLabelKey | fdTranslate\"\n [attr.aria-required]=\"required\"\n [attr.aria-describedby]=\"_formValueStateMessageId\"\n [ngModel]=\"_inputFieldDate\"\n (keyup.enter)=\"handleInputChange($any($event.target).value, false)\"\n (ngModelChange)=\"handleInputChange($event, true)\"\n (click)=\"mobile && openCalendar()\"\n (blur)=\"_onBlur($event)\"\n />\n </fd-input-group>\n</ng-template>\n\n<ng-template #calendarTemplate>\n <fd-calendar\n [activeView]=\"activeView\"\n [markWeekends]=\"markWeekends\"\n [specialDaysRules]=\"specialDaysRules\"\n [showWeekNumbers]=\"showWeekNumbers\"\n [aggregatedYearGrid]=\"aggregatedYearGrid\"\n [yearGrid]=\"yearGrid\"\n [calType]=\"type\"\n [rangeHoverEffect]=\"rangeHoverEffect\"\n [disableFunction]=\"disableFunction\"\n [disableRangeStartFunction]=\"disableRangeStartFunction\"\n [disableRangeEndFunction]=\"disableRangeEndFunction\"\n [selectedDate]=\"selectedDate\"\n [selectedRangeDate]=\"selectedRangeDate\"\n [startingDayOfWeek]=\"startingDayOfWeek\"\n [previousButtonDisableFunction]=\"previousButtonDisableFunction\"\n [nextButtonDisableFunction]=\"nextButtonDisableFunction\"\n [mobileLandscape]=\"mobile && mobileLandscape\"\n [mobilePortrait]=\"mobile && mobilePortrait\"\n (selectedRangeDateChange)=\"handleRangeDateChange($event)\"\n (selectedDateChange)=\"handleSingleDateChange($event)\"\n (activeViewChange)=\"handleCalendarActiveViewChange($event)\"\n (closeCalendar)=\"closeFromCalendar()\"\n ></fd-calendar>\n\n <div *ngIf=\"showTodayButton\" fd-bar barDesign=\"footer\">\n <div fd-bar-right>\n <fd-bar-element>\n <button fd-button [label]=\"todayButtonLabel\" (click)=\"onTodayButtonClick()\"></button>\n </fd-bar-element>\n </div>\n </div>\n</ng-template>\n\n<div style=\"display: none\" aria-hidden=\"true\">\n <div [attr.id]=\"_formValueStateMessageId\" aria-atomic=\"true\" aria-live=\"assertive\">\n <ng-container [ngSwitch]=\"state\">\n <ng-container *ngSwitchCase=\"'success'\">\n {{ 'coreDatePicker.valueStateSuccessMessage' | fdTranslate }}</ng-container\n >\n <ng-container *ngSwitchCase=\"'information'\">\n {{ 'coreDatePicker.valueStateInformationMessage' | fdTranslate }}</ng-container\n >\n <ng-container *ngSwitchCase=\"'warning'\">\n {{ 'coreDatePicker.valueStateWarningMessage' | fdTranslate }}</ng-container\n >\n <ng-container *ngSwitchCase=\"'error'\">\n {{ 'coreDatePicker.valueStateErrorMessage' | fdTranslate }}\n </ng-container>\n </ng-container>\n {{ _message }}\n </div>\n</div>\n", styles: [".fd-date-picker-custom{display:inline-block}.fd-date-picker-custom fd-popover{display:block}.fd-date-picker-custom fd-calendar{border-radius:.25rem;border-radius:var(--sapElement_BorderCornerRadius, .25rem)}\n"] }]
|
|
836
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.DatetimeAdapter, decorators: [{
|
|
669
837
|
type: Optional
|
|
670
838
|
}] }, { type: undefined, decorators: [{
|
|
671
839
|
type: Optional
|
|
@@ -738,6 +906,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
738
906
|
type: Input
|
|
739
907
|
}], preventScrollOnFocus: [{
|
|
740
908
|
type: Input
|
|
909
|
+
}], mobile: [{
|
|
910
|
+
type: Input
|
|
911
|
+
}], mobileConfig: [{
|
|
912
|
+
type: Input
|
|
913
|
+
}], mobileLandscape: [{
|
|
914
|
+
type: Input
|
|
915
|
+
}], mobilePortrait: [{
|
|
916
|
+
type: Input
|
|
741
917
|
}], isOpenChange: [{
|
|
742
918
|
type: Output
|
|
743
919
|
}], selectedDateChange: [{
|
|
@@ -759,6 +935,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
759
935
|
args: [InputGroupInputDirective, {
|
|
760
936
|
read: ElementRef
|
|
761
937
|
}]
|
|
938
|
+
}], _controlTemplate: [{
|
|
939
|
+
type: ViewChild,
|
|
940
|
+
args: ['controlTemplate']
|
|
941
|
+
}], _calendarTemplate: [{
|
|
942
|
+
type: ViewChild,
|
|
943
|
+
args: ['calendarTemplate']
|
|
762
944
|
}], disableFunction: [{
|
|
763
945
|
type: Input
|
|
764
946
|
}], disableRangeStartFunction: [{
|
|
@@ -769,47 +951,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
769
951
|
|
|
770
952
|
class DatePickerModule {
|
|
771
953
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
772
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: DatePickerModule,
|
|
773
|
-
|
|
774
|
-
PopoverModule,
|
|
775
|
-
I18nModule,
|
|
776
|
-
CalendarModule,
|
|
777
|
-
FormsModule,
|
|
778
|
-
InputGroupModule,
|
|
779
|
-
ButtonModule,
|
|
780
|
-
FormMessageModule,
|
|
781
|
-
BarModule,
|
|
782
|
-
ContentDensityModule], exports: [DatePickerComponent, ContentDensityModule] }); }
|
|
783
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DatePickerModule, imports: [CommonModule,
|
|
784
|
-
IconModule,
|
|
785
|
-
PopoverModule,
|
|
786
|
-
I18nModule,
|
|
787
|
-
CalendarModule,
|
|
788
|
-
FormsModule,
|
|
789
|
-
InputGroupModule,
|
|
790
|
-
ButtonModule,
|
|
791
|
-
FormMessageModule,
|
|
792
|
-
BarModule,
|
|
793
|
-
ContentDensityModule, ContentDensityModule] }); }
|
|
954
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: DatePickerModule, imports: [DatePickerComponent, DatePickerMobileComponent], exports: [DatePickerComponent, DatePickerMobileComponent] }); }
|
|
955
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DatePickerModule, imports: [DatePickerComponent, DatePickerMobileComponent] }); }
|
|
794
956
|
}
|
|
795
957
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DatePickerModule, decorators: [{
|
|
796
958
|
type: NgModule,
|
|
797
959
|
args: [{
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
CommonModule,
|
|
801
|
-
IconModule,
|
|
802
|
-
PopoverModule,
|
|
803
|
-
I18nModule,
|
|
804
|
-
CalendarModule,
|
|
805
|
-
FormsModule,
|
|
806
|
-
InputGroupModule,
|
|
807
|
-
ButtonModule,
|
|
808
|
-
FormMessageModule,
|
|
809
|
-
BarModule,
|
|
810
|
-
ContentDensityModule
|
|
811
|
-
],
|
|
812
|
-
exports: [DatePickerComponent, ContentDensityModule]
|
|
960
|
+
imports: [DatePickerComponent, DatePickerMobileComponent],
|
|
961
|
+
exports: [DatePickerComponent, DatePickerMobileComponent]
|
|
813
962
|
}]
|
|
814
963
|
}] });
|
|
815
964
|
|
|
@@ -817,5 +966,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
817
966
|
* Generated bundle index. Do not edit.
|
|
818
967
|
*/
|
|
819
968
|
|
|
820
|
-
export { DatePickerComponent, DatePickerModule };
|
|
969
|
+
export { DatePickerComponent, DatePickerMobileComponent, DatePickerModule };
|
|
821
970
|
//# sourceMappingURL=fundamental-ngx-core-date-picker.mjs.map
|