@fundamental-ngx/core 0.51.3-rc.8 → 0.51.3
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/calendar/calendar-views/calendar-day-view/calendar-day-view.component.d.ts +173 -9
- package/calendar/calendar.component.d.ts +40 -10
- package/calendar/types.d.ts +12 -0
- package/checkbox/checkbox/checkbox.component.d.ts +7 -1
- package/date-picker/date-picker.component.d.ts +82 -14
- package/date-picker/date-picker.model.d.ts +2 -2
- package/datetime-picker/datetime-picker.component.d.ts +3 -1
- package/esm2022/action-bar/action-bar.component.mjs +2 -2
- package/esm2022/action-sheet/action-sheet.component.mjs +3 -3
- package/esm2022/avatar/avatar-icon.pipe.mjs +5 -5
- package/esm2022/avatar/avatar.component.mjs +3 -3
- package/esm2022/avatar-group/avatar-group.component.mjs +3 -3
- package/esm2022/bar/bar.component.mjs +2 -2
- package/esm2022/breadcrumb/breadcrumb.component.mjs +3 -3
- package/esm2022/busy-indicator/busy-indicator.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +3 -3
- package/esm2022/calendar/calendar-header/calendar-header.component.mjs +7 -6
- package/esm2022/calendar/calendar-views/calendar-aggregated-year-view/calendar-aggregated-year-view.component.mjs +3 -3
- package/esm2022/calendar/calendar-views/calendar-day-view/calendar-day-view.component.mjs +554 -78
- package/esm2022/calendar/calendar-views/calendar-month-view/calendar-month-view.component.mjs +3 -3
- package/esm2022/calendar/calendar-views/calendar-year-view/calendar-year-view.component.mjs +3 -3
- package/esm2022/calendar/calendar.component.mjs +172 -79
- package/esm2022/calendar/types.mjs +15 -2
- package/esm2022/card/card.component.mjs +3 -3
- package/esm2022/carousel/carousel.component.mjs +3 -3
- package/esm2022/checkbox/checkbox/checkbox.component.mjs +16 -4
- package/esm2022/date-picker/date-picker-mobile/date-picker-mobile.component.mjs +1 -1
- package/esm2022/date-picker/date-picker.component.mjs +410 -125
- package/esm2022/date-picker/date-picker.model.mjs +1 -1
- package/esm2022/datetime-picker/datetime-picker.component.mjs +10 -6
- package/esm2022/dialog/dialog.component.mjs +3 -3
- package/esm2022/dynamic-page/dynamic-page.component.mjs +3 -3
- package/esm2022/dynamic-side-content/dynamic-side-content.component.mjs +3 -3
- package/esm2022/facets/facet/facet.component.mjs +3 -3
- 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 +3 -3
- package/esm2022/fixed-card-layout/fixed-card-layout.component.mjs +3 -3
- package/esm2022/flexible-column-layout/flexible-column-layout.component.mjs +3 -3
- package/esm2022/form/fieldset/fieldset.component.mjs +2 -2
- package/esm2022/form/form-control/form-control.component.mjs +3 -3
- 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 +3 -3
- package/esm2022/form/form-message/form-message.component.mjs +2 -2
- package/esm2022/generic-tag/generic-tag.component.mjs +3 -3
- package/esm2022/grid-list/components/grid-list/grid-list.component.mjs +2 -2
- 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 +3 -3
- package/esm2022/input-group/input-group.component.mjs +3 -3
- package/esm2022/layout-grid/layout-grid.component.mjs +3 -3
- package/esm2022/layout-panel/layout-panel.component.mjs +2 -2
- package/esm2022/link/link.component.mjs +3 -3
- package/esm2022/list/list-navigation-item/list-navigation-item.component.mjs +3 -3
- package/esm2022/list/list.component.mjs +2 -2
- 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 +3 -3
- package/esm2022/message-strip/message-strip.component.mjs +3 -3
- 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/multi-combobox/multi-combobox.component.mjs +3 -3
- package/esm2022/multi-combobox/select-all-toggler/select-all-toggler.component.mjs +2 -2
- package/esm2022/multi-input/multi-input.component.mjs +11 -4
- package/esm2022/notification/notification/notification.component.mjs +2 -2
- package/esm2022/object-attribute/object-attribute.component.mjs +2 -2
- package/esm2022/object-identifier/object-identifier.component.mjs +2 -2
- package/esm2022/object-marker/object-marker.component.mjs +3 -3
- package/esm2022/object-number/object-number.component.mjs +3 -3
- package/esm2022/object-status/object-status.component.mjs +3 -3
- package/esm2022/pagination/pagination.component.mjs +3 -3
- package/esm2022/panel/panel.component.mjs +3 -3
- package/esm2022/popover/popover-body/popover-body.component.mjs +3 -3
- package/esm2022/product-switch/product-switch-body/product-switch-body.component.mjs +3 -3
- package/esm2022/progress-indicator/progress-indicator.component.mjs +3 -3
- 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 +3 -3
- package/esm2022/resizable-card-layout/resizable-card-layout/resizable-card-item/resizable-card-item.component.mjs +3 -3
- 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 +3 -3
- package/esm2022/shellbar/shellbar.component.mjs +3 -3
- package/esm2022/side-navigation/side-navigation.component.mjs +3 -3
- package/esm2022/skeleton/components/skeleton.component.mjs +2 -2
- package/esm2022/slider/slider.component.mjs +3 -3
- package/esm2022/split-button/split-button.component.mjs +3 -3
- package/esm2022/status-indicator/status-indicator.component.mjs +3 -3
- package/esm2022/step-input/step-input.component.mjs +3 -3
- package/esm2022/switch/switch.component.mjs +3 -3
- package/esm2022/table/table-wrapper.component.mjs +2 -2
- package/esm2022/table/table.component.mjs +2 -2
- package/esm2022/tabs/tab-list.component.mjs +3 -3
- package/esm2022/tabs/tab-nav/tab-nav.component.mjs +2 -2
- package/esm2022/text/text.component.mjs +3 -3
- package/esm2022/tile/tile.component.mjs +2 -2
- package/esm2022/time/time.component.mjs +3 -3
- package/esm2022/title/title.component.mjs +2 -2
- package/esm2022/token/token.component.mjs +3 -3
- package/esm2022/token/tokenizer.component.mjs +3 -3
- package/esm2022/toolbar/toolbar.component.mjs +3 -3
- package/esm2022/tree/components/tree-item/tree-item.component.mjs +2 -2
- package/esm2022/tree/tree.component.mjs +3 -3
- package/esm2022/upload-collection/upload-collection.component.mjs +3 -3
- package/esm2022/vertical-navigation/vertical-navigation-main-navigation.component.mjs +3 -3
- package/esm2022/vertical-navigation/vertical-navigation.component.mjs +3 -3
- package/esm2022/wizard/wizard.component.mjs +3 -3
- 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 +6 -6
- 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 +2 -2
- 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 +749 -167
- package/fesm2022/fundamental-ngx-core-calendar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-card.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-card.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-carousel.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-carousel.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-checkbox.mjs +15 -3
- package/fesm2022/fundamental-ngx-core-checkbox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-date-picker.mjs +408 -123
- package/fesm2022/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs +9 -5
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dialog.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dynamic-page.mjs +2 -2
- 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-generic-tag.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-generic-tag.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-grid-list.mjs +2 -2
- 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 +2 -2
- package/fesm2022/fundamental-ngx-core-link.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-list.mjs +4 -4
- 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 +2 -2
- 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-multi-combobox.mjs +3 -3
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-input.mjs +10 -3
- 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-attribute.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-object-attribute.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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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-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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/multi-input/multi-input.component.d.ts +3 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { DatetimeAdapter, DateTimeFormats } from '@fundamental-ngx/core/datetime';
|
|
3
3
|
import { SpecialDayRule } from '@fundamental-ngx/core/shared';
|
|
4
4
|
import { CalendarCurrent } from '../../models/calendar-current';
|
|
5
5
|
import { CalendarDay } from '../../models/calendar-day';
|
|
@@ -37,9 +37,15 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
|
|
|
37
37
|
/** The currently selected date model in single mode. */
|
|
38
38
|
set selectedDate(date: Nullable<D>);
|
|
39
39
|
get selectedDate(): Nullable<D>;
|
|
40
|
+
/** The currently selected date model in multiple mode. */
|
|
41
|
+
set selectedMultipleDates(dates: Array<D>);
|
|
42
|
+
get selectedMultipleDates(): Nullable<Array<D>>;
|
|
40
43
|
/** The currently selected FdDates model start and end in range mode. */
|
|
41
44
|
set selectedRangeDate(dateRange: DateRange<D>);
|
|
42
45
|
get selectedRangeDate(): DateRange<D>;
|
|
46
|
+
/** The currently selected FdDates model start and end in multiple range mode. */
|
|
47
|
+
set selectedMultipleDateRanges(dateRanges: Array<DateRange<D>>);
|
|
48
|
+
get selectedMultipleDateRanges(): Array<DateRange<D>>;
|
|
43
49
|
/** The day of the week the calendar should start on. 1 represents Sunday, 2 is Monday, 3 is Tuesday, and so on. */
|
|
44
50
|
startingDayOfWeek: DaysOfWeek;
|
|
45
51
|
/** The type of calendar, 'single' for single date selection or 'range' for a range of dates. */
|
|
@@ -59,6 +65,13 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
|
|
|
59
65
|
* Whether user wants to show week numbers next to days
|
|
60
66
|
*/
|
|
61
67
|
showWeekNumbers: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the user wants to select multiple days or multiple range dates.
|
|
70
|
+
* If `displayWeekNumbers` is true, the user can click on the week number to mark the related row.
|
|
71
|
+
* The user can click on week days to mark the related column.
|
|
72
|
+
* Note: Clickable selection for week row or column does not work for range selections.
|
|
73
|
+
*/
|
|
74
|
+
allowMultipleSelection: boolean;
|
|
62
75
|
/** Function that allows to specify which function would be called, when focus wants to escape */
|
|
63
76
|
focusEscapeFunction: EscapeFocusFunction;
|
|
64
77
|
/**
|
|
@@ -69,14 +82,18 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
|
|
|
69
82
|
* `rule: (date: D) => this.dateAdapter.getDay(date) === 1`, which will mark all sundays as special day.
|
|
70
83
|
*/
|
|
71
84
|
specialDaysRules: SpecialDayRule<D>[];
|
|
72
|
-
/** Event emitted always, when model is changed in range mode */
|
|
73
|
-
readonly selectedRangeDateChange: EventEmitter<DateRange<D>>;
|
|
74
85
|
/** Event emitted always, when next month is selected, by focus */
|
|
75
86
|
readonly nextMonthSelect: EventEmitter<void>;
|
|
76
87
|
/** Event emitted always, when previous month is selected, by focus */
|
|
77
88
|
readonly previousMonthSelect: EventEmitter<void>;
|
|
78
|
-
/** Event
|
|
89
|
+
/** Event thrown every time selected date in single mode is changed */
|
|
79
90
|
readonly selectedDateChange: EventEmitter<D>;
|
|
91
|
+
/** Event thrown every time the selected dates in multiple mode are changed. */
|
|
92
|
+
readonly selectedMultipleDatesChange: EventEmitter<Array<D>>;
|
|
93
|
+
/** Event thrown every time selected first or last date in range mode is changed */
|
|
94
|
+
readonly selectedRangeDateChange: EventEmitter<DateRange<D>>;
|
|
95
|
+
/** Event thrown every time the first or last date in multiple range mode is changed. */
|
|
96
|
+
readonly selectedMultipleDateRangesChange: EventEmitter<Array<DateRange<D>>>;
|
|
80
97
|
/**
|
|
81
98
|
* @hidden
|
|
82
99
|
* Actual day grid with previous/current/next month days
|
|
@@ -87,10 +104,20 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
|
|
|
87
104
|
* Array of week numbers displayed for current month/year
|
|
88
105
|
*/
|
|
89
106
|
_weeks: string[];
|
|
107
|
+
/**
|
|
108
|
+
* @hidden
|
|
109
|
+
* Array of CSS classes for each week day in calendar header, computed based on whether the calendar type is 'multi'
|
|
110
|
+
* and the date is not disabled.
|
|
111
|
+
*/
|
|
112
|
+
_weekHeaderClasses: string[];
|
|
113
|
+
/** @hidden */
|
|
114
|
+
private _selectedDate;
|
|
115
|
+
/** @hidden */
|
|
116
|
+
private _selectedMultipleDates;
|
|
90
117
|
/** @hidden */
|
|
91
118
|
private _selectedRangeDate;
|
|
92
119
|
/** @hidden */
|
|
93
|
-
private
|
|
120
|
+
private _selectedMultipleDateRanges;
|
|
94
121
|
/** @hidden */
|
|
95
122
|
private readonly _destroyRef;
|
|
96
123
|
/**
|
|
@@ -114,6 +141,11 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
|
|
|
114
141
|
* Variable that contains short weekday names.
|
|
115
142
|
*/
|
|
116
143
|
private _longWeekDays;
|
|
144
|
+
/**
|
|
145
|
+
* @hidden
|
|
146
|
+
* global variable to store the new range.
|
|
147
|
+
*/
|
|
148
|
+
private _newRange;
|
|
117
149
|
/** @hidden */
|
|
118
150
|
constructor(eRef: ElementRef, changeDetRef: ChangeDetectorRef, calendarService: CalendarService, _dateTimeFormats: DateTimeFormats, _dateTimeAdapter: DatetimeAdapter<D>);
|
|
119
151
|
/** @hidden */
|
|
@@ -121,11 +153,27 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
|
|
|
121
153
|
/** @hidden */
|
|
122
154
|
ngOnChanges(changes: SimpleChanges): void;
|
|
123
155
|
/**
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
156
|
+
* @hidden
|
|
157
|
+
* Selects a date in single mode, toggles selection in multi mode, or sets the range in range mode.
|
|
158
|
+
* Handles the selection of a date based on the calendar type.
|
|
159
|
+
* @param day The calendar day to be selected.
|
|
160
|
+
* @param event Optional mouse event for handling event propagation.
|
|
127
161
|
*/
|
|
128
162
|
selectDate(day: CalendarDay<D>, event?: MouseEvent): void;
|
|
163
|
+
/**
|
|
164
|
+
* Toggles the selection of a week on the calendar.
|
|
165
|
+
* If the provided week is already fully selected, it will deselect it.
|
|
166
|
+
* If the provided week is not fully selected, it will select the entire week and clear any previous selections.
|
|
167
|
+
* @param selectedWeek Array of CalendarDay objects representing the week to be toggled.
|
|
168
|
+
*/
|
|
169
|
+
handleWeekSelectionByDays(selectedWeek: Array<CalendarDay<D>>): void;
|
|
170
|
+
/**
|
|
171
|
+
* Toggles the selection of a week on the calendar based on the weekday index.
|
|
172
|
+
* If the provided week is already fully selected, it will deselect it.
|
|
173
|
+
* If the provided week is not fully selected, it will select the entire week and clear any previous selections.
|
|
174
|
+
* @param weekDayIndex The index of the weekday to be toggled.
|
|
175
|
+
*/
|
|
176
|
+
handleWeekSelectionByIndex(weekDayIndex: number): void;
|
|
129
177
|
/**
|
|
130
178
|
* Set focus on default focusable cell
|
|
131
179
|
*/
|
|
@@ -140,6 +188,12 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
|
|
|
140
188
|
* 2, when both dates are valid
|
|
141
189
|
*/
|
|
142
190
|
get _selectCounter(): number;
|
|
191
|
+
/**
|
|
192
|
+
* @hidden
|
|
193
|
+
* Total amount of selected days across multiple ranges.
|
|
194
|
+
* Sums the counts of valid days in each date range.
|
|
195
|
+
*/
|
|
196
|
+
get _selectMultipleCounter(): number;
|
|
143
197
|
/**
|
|
144
198
|
* @hidden
|
|
145
199
|
* Method that returns short weekday name.
|
|
@@ -312,16 +366,126 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
|
|
|
312
366
|
* Change selection flag on days to false, besides the selected one
|
|
313
367
|
*/
|
|
314
368
|
private _changeSelectedSingleDay;
|
|
369
|
+
/**
|
|
370
|
+
* @hidden
|
|
371
|
+
* Change selection flag on days to false, besides the selected one
|
|
372
|
+
*
|
|
373
|
+
* @param dates - An array of CalendarDay objects to be marked as selected
|
|
374
|
+
* @param calendar - The calendar array containing all CalendarDay objects
|
|
375
|
+
*/
|
|
376
|
+
private _changeSelectedMultipleDays;
|
|
315
377
|
/**
|
|
316
378
|
* @hidden
|
|
317
379
|
* Change properties of range days, this method is called, to not rebuild whole grid from scratch,
|
|
318
380
|
* it just changes properties of newly selected/unselected days.
|
|
319
381
|
*/
|
|
320
382
|
private _changeSelectedRangeDays;
|
|
383
|
+
/**
|
|
384
|
+
* @hidden
|
|
385
|
+
* Change properties of range days for multiple ranges.
|
|
386
|
+
* This method is called to not rebuild the whole grid from scratch.
|
|
387
|
+
* It just changes properties of newly selected/unselected days.
|
|
388
|
+
*/
|
|
389
|
+
private _changeSelectedMultipleRangeDays;
|
|
321
390
|
/** @hidden */
|
|
322
391
|
private refreshTabIndex;
|
|
323
392
|
/** @hidden */
|
|
324
393
|
private focusOnCellByIndex;
|
|
394
|
+
/**
|
|
395
|
+
* @hidden
|
|
396
|
+
* Check if dates are equal
|
|
397
|
+
*/
|
|
398
|
+
private _isSameDay;
|
|
399
|
+
/**
|
|
400
|
+
* @hidden
|
|
401
|
+
* Selects a single date and updates the selected date in single mode.
|
|
402
|
+
* @param day The calendar day to be selected.
|
|
403
|
+
*/
|
|
404
|
+
private _selectSingleDate;
|
|
405
|
+
/**
|
|
406
|
+
* @hidden
|
|
407
|
+
* Toggles the selection of a date in multi mode.
|
|
408
|
+
* Adds the date if not selected, removes it if already selected.
|
|
409
|
+
* @param day The calendar day to be toggled.
|
|
410
|
+
*/
|
|
411
|
+
private _toggleMultiDate;
|
|
412
|
+
/**
|
|
413
|
+
* @hidden
|
|
414
|
+
* Selects or updates the range of dates in range mode.
|
|
415
|
+
* Handles the start and end dates and updates the selected range.
|
|
416
|
+
* @param day The calendar day to be selected or updated in the range.
|
|
417
|
+
*/
|
|
418
|
+
private _selectRangeDate;
|
|
419
|
+
/**
|
|
420
|
+
* @hidden
|
|
421
|
+
* Selects or updates multiple ranges of dates in range mode.
|
|
422
|
+
* Handles the start and end dates and updates the selected ranges.
|
|
423
|
+
* @param day The calendar day to be selected or updated in the range.
|
|
424
|
+
*/
|
|
425
|
+
private _selectMultipleRangeDates;
|
|
426
|
+
/**
|
|
427
|
+
* Merges overlapping date ranges into a single range.
|
|
428
|
+
*
|
|
429
|
+
* @param ranges - An array of date ranges to be merged.
|
|
430
|
+
* @returns An array of merged date ranges.
|
|
431
|
+
*/
|
|
432
|
+
private _mergeOverlappingRanges;
|
|
433
|
+
/**
|
|
434
|
+
* Handles the case where the selected day is part of an existing range.
|
|
435
|
+
*
|
|
436
|
+
* @param tempRanges - An array of date ranges to be checked.
|
|
437
|
+
* @param day - The calendar day to be checked.
|
|
438
|
+
* @returns An array of date ranges with the updated range if the selected day is part of an existing range.
|
|
439
|
+
*/
|
|
440
|
+
private _handleExistingRange;
|
|
441
|
+
/**
|
|
442
|
+
* @hidden
|
|
443
|
+
* Checks if a date is within a given date range.
|
|
444
|
+
* @param date The date to check.
|
|
445
|
+
* @param range The date range.
|
|
446
|
+
* @returns True if the date is in the range, false otherwise.
|
|
447
|
+
*/
|
|
448
|
+
private _isDateInRange;
|
|
449
|
+
/**
|
|
450
|
+
* @hidden
|
|
451
|
+
* Orders the start and end dates for the range selection.
|
|
452
|
+
* Ensures the start date is before or equal to the end date.
|
|
453
|
+
* @param date1 The first date.
|
|
454
|
+
* @param date2 The second date.
|
|
455
|
+
* @returns An object containing the ordered start and end dates.
|
|
456
|
+
*/
|
|
457
|
+
private _getOrderedRange;
|
|
458
|
+
/**
|
|
459
|
+
* @hidden
|
|
460
|
+
* Handles the hover effect for range selection.
|
|
461
|
+
* Toggles the hover effect based on the selection state and event.
|
|
462
|
+
* @param event Optional mouse event for handling hover effect.
|
|
463
|
+
*/
|
|
464
|
+
private _handleRangeHoverEffect;
|
|
465
|
+
/**
|
|
466
|
+
* Helper method to toggle the selection of a week.
|
|
467
|
+
* @param selectedWeek Array of CalendarDay objects representing the week to be toggled.
|
|
468
|
+
*/
|
|
469
|
+
private toggleWeekSelection;
|
|
470
|
+
/**
|
|
471
|
+
* @hidden
|
|
472
|
+
* Computes the CSS class for each week day in calendar header based on whether the calendar type is 'multi'
|
|
473
|
+
* and the date is not disabled.
|
|
474
|
+
* Stores the computed classes in the weekHeaderClasses array.
|
|
475
|
+
*/
|
|
476
|
+
private _computeWeekHeaderClasses;
|
|
477
|
+
/**
|
|
478
|
+
* @hidden
|
|
479
|
+
* Handles hover effect for single-range selection mode.
|
|
480
|
+
* @param day The calendar day that is hovered.
|
|
481
|
+
*/
|
|
482
|
+
private _handleSingleRangeHover;
|
|
483
|
+
/**
|
|
484
|
+
* @hidden
|
|
485
|
+
* Handles hover effect for multi-range selection mode.
|
|
486
|
+
* @param day The calendar day that is hovered.
|
|
487
|
+
*/
|
|
488
|
+
private _handleMultiRangeHover;
|
|
325
489
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDayViewComponent<any>, never>;
|
|
326
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayViewComponent<any>, "fd-calendar-day-view", never, { "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; "currentlyDisplayed": { "alias": "currentlyDisplayed"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "calType": { "alias": "calType"; "required": false; }; "id": { "alias": "id"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "
|
|
490
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayViewComponent<any>, "fd-calendar-day-view", never, { "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; "currentlyDisplayed": { "alias": "currentlyDisplayed"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedMultipleDates": { "alias": "selectedMultipleDates"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "selectedMultipleDateRanges": { "alias": "selectedMultipleDateRanges"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "calType": { "alias": "calType"; "required": false; }; "id": { "alias": "id"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "allowMultipleSelection": { "alias": "allowMultipleSelection"; "required": false; }; "focusEscapeFunction": { "alias": "focusEscapeFunction"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; }, { "nextMonthSelect": "nextMonthSelect"; "previousMonthSelect": "previousMonthSelect"; "selectedDateChange": "selectedDateChange"; "selectedMultipleDatesChange": "selectedMultipleDatesChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "selectedMultipleDateRangesChange": "selectedMultipleDateRangesChange"; }, never, never, true, never>;
|
|
327
491
|
}
|
|
@@ -34,6 +34,12 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
34
34
|
private _dateTimeFormats;
|
|
35
35
|
/** The currently selected date model in single mode. */
|
|
36
36
|
selectedDate: Nullable<D>;
|
|
37
|
+
/** The currently selected date model in multiple mode. */
|
|
38
|
+
selectedMultipleDates: Array<D>;
|
|
39
|
+
/** The currently selected date model with start and end in range mode. */
|
|
40
|
+
selectedRangeDate: DateRange<D>;
|
|
41
|
+
/** The currently selected date model with multiple ranges. */
|
|
42
|
+
selectedMultipleDateRanges: Array<DateRange<D>>;
|
|
37
43
|
/**
|
|
38
44
|
* Whether user wants to mark sunday/saturday with `fd-calendar__item--weekend` class
|
|
39
45
|
*/
|
|
@@ -42,17 +48,26 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
42
48
|
* Whether user wants to show week numbers next to days
|
|
43
49
|
*/
|
|
44
50
|
showWeekNumbers: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the user wants to select multiple days or multiple range dates.
|
|
53
|
+
* If `displayWeekNumbers` is true, the user can click on the week number to mark the related row.
|
|
54
|
+
* The user can click on week days to mark the related column.
|
|
55
|
+
* Note: Clickable selection for week row or column does not work for range selections.
|
|
56
|
+
*/
|
|
57
|
+
allowMultipleSelection: boolean;
|
|
45
58
|
/** Whether calendar is used inside mobile in landscape mode, it also adds close button on right side */
|
|
46
59
|
mobileLandscape: boolean;
|
|
47
60
|
/** Whether calendar is used inside mobile in portrait mode */
|
|
48
61
|
mobilePortrait: boolean;
|
|
49
|
-
/** The currently selected FdDates model start and end in range mode. */
|
|
50
|
-
selectedRangeDate: DateRange<D>;
|
|
51
62
|
/** Actually shown active view one of 'day' | 'month' | 'year' */
|
|
52
63
|
activeView: FdCalendarView;
|
|
53
64
|
/** The day of the week the calendar should start on. 1 represents Sunday, 2 is Monday, 3 is Tuesday, and so on. */
|
|
54
65
|
startingDayOfWeek: DaysOfWeek;
|
|
55
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* The type of calendar
|
|
68
|
+
* 'single' for single date selection
|
|
69
|
+
* 'range' for a range of dates.
|
|
70
|
+
*/
|
|
56
71
|
calType: CalendarType;
|
|
57
72
|
/** Id of the calendar. If none is provided, one will be generated. */
|
|
58
73
|
id: string;
|
|
@@ -83,8 +98,12 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
83
98
|
readonly activeViewChange: EventEmitter<FdCalendarView>;
|
|
84
99
|
/** Event thrown every time selected date in single mode is changed */
|
|
85
100
|
readonly selectedDateChange: EventEmitter<D>;
|
|
101
|
+
/** Event thrown every time the selected dates in multiple mode are changed. */
|
|
102
|
+
readonly selectedMultipleDatesChange: EventEmitter<Array<D>>;
|
|
86
103
|
/** Event thrown every time selected first or last date in range mode is changed */
|
|
87
104
|
readonly selectedRangeDateChange: EventEmitter<DateRange<D>>;
|
|
105
|
+
/** Event thrown every time the first or last date in multiple range mode is changed. */
|
|
106
|
+
readonly selectedMultipleDateRangesChange: EventEmitter<Array<DateRange<D>>>;
|
|
88
107
|
/** Event thrown every time when value is overwritten from outside and throw back isValid */
|
|
89
108
|
readonly isValidDateChange: EventEmitter<boolean>;
|
|
90
109
|
/** Event thrown every time when calendar should be closed */
|
|
@@ -134,21 +153,20 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
134
153
|
escapeFocusFunction: EscapeFocusFunction;
|
|
135
154
|
/**
|
|
136
155
|
* Function used to disable certain dates in the calendar.
|
|
137
|
-
* @param date date
|
|
138
156
|
*/
|
|
139
157
|
disableFunction: DisableDateFunction<D>;
|
|
140
158
|
/**
|
|
141
159
|
* Function used to disable certain dates in the calendar for the range start selection.
|
|
142
|
-
* @param date date
|
|
143
160
|
*/
|
|
144
161
|
disableRangeStartFunction: DisableDateFunction<D>;
|
|
145
162
|
/**
|
|
146
163
|
* Function used to disable certain dates in the calendar for the range end selection.
|
|
147
|
-
* @param date date
|
|
148
164
|
*/
|
|
149
165
|
disableRangeEndFunction: DisableDateFunction<D>;
|
|
150
166
|
/** @hidden */
|
|
151
|
-
|
|
167
|
+
focusOut(event: FocusEvent): void;
|
|
168
|
+
/** @hidden */
|
|
169
|
+
onChange: (_: D | Array<D> | DateRange<D> | Array<DateRange<D>>) => void;
|
|
152
170
|
/** @hidden */
|
|
153
171
|
onTouched: () => void;
|
|
154
172
|
/** @hidden */
|
|
@@ -163,7 +181,7 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
163
181
|
* @hidden
|
|
164
182
|
* Function that provides support for ControlValueAccessor that allows to use [(ngModel)] or forms.
|
|
165
183
|
*/
|
|
166
|
-
writeValue(selected: DateRange<D> | D): void;
|
|
184
|
+
writeValue(selected: D | Array<D> | DateRange<D> | Array<DateRange<D>>): void;
|
|
167
185
|
/**
|
|
168
186
|
* @hidden
|
|
169
187
|
* Function that implements Validator Interface, adds validation support for forms
|
|
@@ -186,11 +204,21 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
186
204
|
* Method that is triggered by events from day view component, when there is selected single date changed
|
|
187
205
|
*/
|
|
188
206
|
selectedDateChanged(date: D): void;
|
|
207
|
+
/**
|
|
208
|
+
* @hidden
|
|
209
|
+
* Method that is triggered by events from day view component, when there is selected multi date changed
|
|
210
|
+
*/
|
|
211
|
+
selectedMultipleDatesChanged(date: Array<D>): void;
|
|
189
212
|
/**
|
|
190
213
|
* @hidden
|
|
191
214
|
* Method that is triggered by events from day view component, when there is selected range date changed
|
|
192
215
|
*/
|
|
193
216
|
selectedRangeDateChanged(dates: DateRange<D>): void;
|
|
217
|
+
/**
|
|
218
|
+
* @hidden
|
|
219
|
+
* Method that is triggered by events from day view component, when there is selected range date changed
|
|
220
|
+
*/
|
|
221
|
+
selectedMultipleDateRangesChanged(dates: Array<DateRange<D>>): void;
|
|
194
222
|
/** Function that handles next arrow icon click, depending on current view it changes month, year or list of years */
|
|
195
223
|
handleNextArrowClick(): void;
|
|
196
224
|
/** Function that handles previous arrow icon click, depending on current view it changes month, year or list of years */
|
|
@@ -248,11 +276,13 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
248
276
|
*/
|
|
249
277
|
private _prepareDisplayedView;
|
|
250
278
|
/** @hidden */
|
|
279
|
+
private _setCurrentlyDisplayed;
|
|
280
|
+
/** @hidden */
|
|
251
281
|
private _getActiveFocusableView;
|
|
252
282
|
/** @hidden */
|
|
253
283
|
private _setNavigationButtonsStates;
|
|
254
284
|
/** @hidden */
|
|
255
|
-
private
|
|
285
|
+
private _isNavigationButtonDisabled;
|
|
256
286
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent<any>, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
257
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent<any>, "fd-calendar", never, { "selectedDate": { "alias": "selectedDate"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "
|
|
287
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent<any>, "fd-calendar", never, { "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedMultipleDates": { "alias": "selectedMultipleDates"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "selectedMultipleDateRanges": { "alias": "selectedMultipleDateRanges"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "allowMultipleSelection": { "alias": "allowMultipleSelection"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; "mobilePortrait": { "alias": "mobilePortrait"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "calType": { "alias": "calType"; "required": false; }; "id": { "alias": "id"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "previousButtonDisableFunction": { "alias": "previousButtonDisableFunction"; "required": false; }; "nextButtonDisableFunction": { "alias": "nextButtonDisableFunction"; "required": false; }; "escapeFocusFunction": { "alias": "escapeFocusFunction"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; }, { "activeViewChange": "activeViewChange"; "selectedDateChange": "selectedDateChange"; "selectedMultipleDatesChange": "selectedMultipleDatesChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "selectedMultipleDateRangesChange": "selectedMultipleDateRangesChange"; "isValidDateChange": "isValidDateChange"; "closeCalendar": "closeCalendar"; "closeClicked": "closeClicked"; }, never, never, true, never>;
|
|
258
288
|
}
|
package/calendar/types.d.ts
CHANGED
|
@@ -2,8 +2,20 @@ import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
|
2
2
|
import { CalendarCurrent } from './models/calendar-current';
|
|
3
3
|
/** Type of calendar */
|
|
4
4
|
export type CalendarType = 'single' | 'range';
|
|
5
|
+
/** Enum of calendarTypes */
|
|
6
|
+
export declare enum CalendarTypeEnum {
|
|
7
|
+
Single = "single",
|
|
8
|
+
Range = "range"
|
|
9
|
+
}
|
|
5
10
|
/** Type for the calendar view */
|
|
6
11
|
export type FdCalendarView = 'day' | 'month' | 'year' | 'aggregatedYear';
|
|
12
|
+
/** Type for the calendar view */
|
|
13
|
+
export declare enum FdCalendarViewEnum {
|
|
14
|
+
Day = "day",
|
|
15
|
+
Month = "month",
|
|
16
|
+
Year = "year",
|
|
17
|
+
AggregatedYear = "aggregatedYear"
|
|
18
|
+
}
|
|
7
19
|
/** Type for the days of the week. */
|
|
8
20
|
export type DaysOfWeek = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
9
21
|
export type NavigationButtonDisableFunction<D> = (date: Nullable<D>, currentlyDisplayedDate: CalendarCurrent, activeView: FdCalendarView) => boolean;
|
|
@@ -48,6 +48,8 @@ export declare class CheckboxComponent<T = unknown> implements ControlValueAcces
|
|
|
48
48
|
label: string;
|
|
49
49
|
/** Allows to disable/enable control. */
|
|
50
50
|
disabled: boolean;
|
|
51
|
+
/** Disables editibility */
|
|
52
|
+
readonly: boolean;
|
|
51
53
|
/** Enables controls third state. */
|
|
52
54
|
tristate: boolean;
|
|
53
55
|
/** Allows to prevent user from manually selecting controls third state. */
|
|
@@ -111,6 +113,10 @@ export declare class CheckboxComponent<T = unknown> implements ControlValueAcces
|
|
|
111
113
|
registerOnTouched(fn: () => void): void;
|
|
112
114
|
/** @hidden Called by FormControl - used to disable / enable control.*/
|
|
113
115
|
setDisabledState(disabled: boolean): void;
|
|
116
|
+
/** @hidden Called by FormControl - used to disable editablity.*/
|
|
117
|
+
setReadOnlyState(readonly: boolean): void;
|
|
118
|
+
/** @hidden */
|
|
119
|
+
setStyleState(state: FormStates): void;
|
|
114
120
|
/**
|
|
115
121
|
* @hidden
|
|
116
122
|
* Based on current control state:
|
|
@@ -140,5 +146,5 @@ export declare class CheckboxComponent<T = unknown> implements ControlValueAcces
|
|
|
140
146
|
/** Method to trigger change detection in component */
|
|
141
147
|
private _detectChanges;
|
|
142
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent<any>, [null, { attribute: "tabIndexValue"; }, null, null, null]>;
|
|
143
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent<any>, "fd-checkbox", never, { "wrapLabel": { "alias": "wrapLabel"; "required": false; }; "valignLabel": { "alias": "valignLabel"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "role": { "alias": "role"; "required": false; }; "value": { "alias": "value"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; }; "title": { "alias": "title"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tristate": { "alias": "tristate"; "required": false; }; "tristateSelectable": { "alias": "tristateSelectable"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "required": { "alias": "required"; "required": false; }; "displayOnly": { "alias": "displayOnly"; "required": false; }; "values": { "alias": "values"; "required": false; }; "standalone": { "alias": "standalone"; "required": false; }; }, { "focusChange": "focusChange"; }, never, ["*"], true, never>;
|
|
149
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent<any>, "fd-checkbox", never, { "wrapLabel": { "alias": "wrapLabel"; "required": false; }; "valignLabel": { "alias": "valignLabel"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "role": { "alias": "role"; "required": false; }; "value": { "alias": "value"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; }; "title": { "alias": "title"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tristate": { "alias": "tristate"; "required": false; }; "tristateSelectable": { "alias": "tristateSelectable"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "required": { "alias": "required"; "required": false; }; "displayOnly": { "alias": "displayOnly"; "required": false; }; "values": { "alias": "values"; "required": false; }; "standalone": { "alias": "standalone"; "required": false; }; }, { "focusChange": "focusChange"; }, never, ["*"], true, never>;
|
|
144
150
|
}
|