@coreui/angular-pro 4.1.0 → 4.2.0-next.2
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/README.md +174 -174
- package/esm2020/lib/accordion/accordion/accordion.component.mjs +3 -3
- package/esm2020/lib/accordion/accordion-button/accordion-button.directive.mjs +3 -3
- package/esm2020/lib/accordion/accordion-item/accordion-item.component.mjs +3 -3
- package/esm2020/lib/accordion/accordion.module.mjs +4 -4
- package/esm2020/lib/accordion/accordion.service.mjs +3 -3
- package/esm2020/lib/alert/alert-heading.directive.mjs +3 -3
- package/esm2020/lib/alert/alert-link.directive.mjs +3 -3
- package/esm2020/lib/alert/alert.component.mjs +3 -3
- package/esm2020/lib/alert/alert.module.mjs +4 -4
- package/esm2020/lib/avatar/avatar.component.mjs +3 -3
- package/esm2020/lib/avatar/avatar.module.mjs +4 -4
- package/esm2020/lib/backdrop/backdrop.service.mjs +3 -3
- package/esm2020/lib/badge/badge.component.mjs +3 -3
- package/esm2020/lib/badge/badge.module.mjs +4 -4
- package/esm2020/lib/breadcrumb/breadcrumb/breadcrumb.component.mjs +3 -3
- package/esm2020/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.mjs +3 -3
- package/esm2020/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.mjs +3 -3
- package/esm2020/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.mjs +3 -3
- package/esm2020/lib/breadcrumb/breadcrumb.module.mjs +4 -4
- package/esm2020/lib/button/button-close.directive.mjs +3 -3
- package/esm2020/lib/button/button.directive.mjs +3 -3
- package/esm2020/lib/button/button.module.mjs +4 -4
- package/esm2020/lib/button-group/button-group/button-group.component.mjs +3 -3
- package/esm2020/lib/button-group/button-group.module.mjs +4 -4
- package/esm2020/lib/button-group/button-toolbar/button-toolbar.component.mjs +3 -3
- package/esm2020/lib/calendar/calendar/calendar-class-view.pipe.mjs +19 -0
- package/esm2020/lib/calendar/calendar/calendar.component.mjs +366 -0
- package/esm2020/lib/calendar/calendar-month/calendar-class-day.pipe.mjs +28 -0
- package/esm2020/lib/calendar/calendar-month/calendar-class-month.pipe.mjs +21 -0
- package/esm2020/lib/calendar/calendar-month/calendar-class-year.pipe.mjs +21 -0
- package/esm2020/lib/calendar/calendar-month/calendar-day.directive.mjs +81 -0
- package/esm2020/lib/calendar/calendar-month/calendar-day.pipe.mjs +18 -0
- package/esm2020/lib/calendar/calendar-month/calendar-month.component.mjs +320 -0
- package/esm2020/lib/calendar/calendar-month/calendar-weekday.pipe.mjs +20 -0
- package/esm2020/lib/calendar/calendar-navigation/calendar-navigation.component.mjs +79 -0
- package/esm2020/lib/calendar/calendar.module.mjs +59 -0
- package/esm2020/lib/calendar/calendar.service.mjs +60 -0
- package/esm2020/lib/calendar/calendar.utils.mjs +273 -0
- package/esm2020/lib/calendar/index.mjs +2 -0
- package/esm2020/lib/calendar/public_api.mjs +5 -0
- package/esm2020/lib/callout/callout.component.mjs +3 -3
- package/esm2020/lib/callout/callout.module.mjs +4 -4
- package/esm2020/lib/card/card-body.component.mjs +3 -3
- package/esm2020/lib/card/card-footer.component.mjs +3 -3
- package/esm2020/lib/card/card-group.component.mjs +3 -3
- package/esm2020/lib/card/card-header-actions.component.mjs +3 -3
- package/esm2020/lib/card/card-header.component.mjs +3 -3
- package/esm2020/lib/card/card-img-overlay/card-img-overlay.component.mjs +3 -3
- package/esm2020/lib/card/card-img.directive.mjs +3 -3
- package/esm2020/lib/card/card-link.directive.mjs +3 -3
- package/esm2020/lib/card/card-subtitle.directive.mjs +3 -3
- package/esm2020/lib/card/card-text.directive.mjs +3 -3
- package/esm2020/lib/card/card-title.directive.mjs +3 -3
- package/esm2020/lib/card/card.component.mjs +3 -3
- package/esm2020/lib/card/card.module.mjs +4 -4
- package/esm2020/lib/carousel/carousel/carousel.component.mjs +3 -3
- package/esm2020/lib/carousel/carousel-caption/carousel-caption.component.mjs +3 -3
- package/esm2020/lib/carousel/carousel-control/carousel-control.component.mjs +3 -3
- package/esm2020/lib/carousel/carousel-indicators/carousel-indicators.component.mjs +3 -3
- package/esm2020/lib/carousel/carousel-inner/carousel-inner.component.mjs +3 -3
- package/esm2020/lib/carousel/carousel-item/carousel-item.component.mjs +3 -3
- package/esm2020/lib/carousel/carousel-state.mjs +3 -3
- package/esm2020/lib/carousel/carousel.config.mjs +3 -3
- package/esm2020/lib/carousel/carousel.module.mjs +4 -4
- package/esm2020/lib/carousel/carousel.service.mjs +3 -3
- package/esm2020/lib/collapse/collapse.directive.mjs +3 -3
- package/esm2020/lib/collapse/collapse.module.mjs +4 -4
- package/esm2020/lib/date-range-picker/date-range-picker/date-range-picker.component.mjs +516 -0
- package/esm2020/lib/date-range-picker/date-range-picker.module.mjs +61 -0
- package/esm2020/lib/date-range-picker/end-date.directive.mjs +17 -0
- package/esm2020/lib/date-range-picker/index.mjs +2 -0
- package/esm2020/lib/date-range-picker/public_api.mjs +3 -0
- package/esm2020/lib/date-range-picker/start-date.directive.mjs +17 -0
- package/esm2020/lib/dropdown/dropdown/dropdown.component.mjs +6 -6
- package/esm2020/lib/dropdown/dropdown-close/dropdown-close.directive.mjs +3 -3
- package/esm2020/lib/dropdown/dropdown-divider/dropdown-divider.directive.mjs +3 -3
- package/esm2020/lib/dropdown/dropdown-header/dropdown-header.directive.mjs +3 -3
- package/esm2020/lib/dropdown/dropdown-item/dropdown-item-plain.directive.mjs +3 -3
- package/esm2020/lib/dropdown/dropdown-item/dropdown-item.directive.mjs +3 -3
- package/esm2020/lib/dropdown/dropdown-menu/dropdown-menu.directive.mjs +3 -3
- package/esm2020/lib/dropdown/dropdown.module.mjs +4 -4
- package/esm2020/lib/dropdown/dropdown.service.mjs +3 -3
- package/esm2020/lib/element-cover/element-cover.component.mjs +3 -3
- package/esm2020/lib/element-cover/element-cover.module.mjs +4 -4
- package/esm2020/lib/footer/footer.component.mjs +3 -3
- package/esm2020/lib/footer/footer.module.mjs +4 -4
- package/esm2020/lib/form/form/form.directive.mjs +3 -3
- package/esm2020/lib/form/form-check/form-check-input.directive.mjs +3 -3
- package/esm2020/lib/form/form-check/form-check-label.directive.mjs +3 -3
- package/esm2020/lib/form/form-check/form-check.component.mjs +3 -3
- package/esm2020/lib/form/form-control/form-control.directive.mjs +3 -3
- package/esm2020/lib/form/form-feedback/form-feedback.component.mjs +3 -3
- package/esm2020/lib/form/form-floating/form-floating.directive.mjs +3 -3
- package/esm2020/lib/form/form-label/form-label.directive.mjs +3 -3
- package/esm2020/lib/form/form-select/form-select.directive.mjs +3 -3
- package/esm2020/lib/form/form-text/form-text.directive.mjs +3 -3
- package/esm2020/lib/form/form.module.mjs +4 -4
- package/esm2020/lib/form/input-group/input-group.component.mjs +3 -3
- package/esm2020/lib/form/input-group-text/input-group-text.directive.mjs +3 -3
- package/esm2020/lib/grid/col.component.mjs +3 -3
- package/esm2020/lib/grid/col.directive.mjs +3 -3
- package/esm2020/lib/grid/container.component.mjs +3 -3
- package/esm2020/lib/grid/grid.module.mjs +4 -4
- package/esm2020/lib/grid/gutter.directive.mjs +3 -3
- package/esm2020/lib/grid/row.component.mjs +3 -3
- package/esm2020/lib/grid/row.directive.mjs +3 -3
- package/esm2020/lib/header/header/header.component.mjs +3 -3
- package/esm2020/lib/header/header-brand/header-brand.component.mjs +3 -3
- package/esm2020/lib/header/header-divider/header-divider.component.mjs +3 -3
- package/esm2020/lib/header/header-nav/header-nav.component.mjs +3 -3
- package/esm2020/lib/header/header-text/header-text.component.mjs +3 -3
- package/esm2020/lib/header/header-toggler/header-toggler.directive.mjs +3 -3
- package/esm2020/lib/header/header.module.mjs +4 -4
- package/esm2020/lib/image/img.directive.mjs +3 -3
- package/esm2020/lib/image/img.module.mjs +4 -4
- package/esm2020/lib/list-group/list-group-item.directive.mjs +3 -3
- package/esm2020/lib/list-group/list-group.directive.mjs +3 -3
- package/esm2020/lib/list-group/list-group.module.mjs +4 -4
- package/esm2020/lib/loading-button/loading-button.component.mjs +3 -3
- package/esm2020/lib/loading-button/loading-button.module.mjs +4 -4
- package/esm2020/lib/modal/modal/modal.component.mjs +3 -3
- package/esm2020/lib/modal/modal-body/modal-body.component.mjs +3 -3
- package/esm2020/lib/modal/modal-content/modal-content.component.mjs +3 -3
- package/esm2020/lib/modal/modal-dialog/modal-dialog.component.mjs +3 -3
- package/esm2020/lib/modal/modal-dismiss/modal-toggle.directive.mjs +3 -3
- package/esm2020/lib/modal/modal-footer/modal-footer.component.mjs +3 -3
- package/esm2020/lib/modal/modal-header/modal-header.component.mjs +3 -3
- package/esm2020/lib/modal/modal-title/modal-title.directive.mjs +3 -3
- package/esm2020/lib/modal/modal.module.mjs +4 -4
- package/esm2020/lib/modal/modal.service.mjs +3 -3
- package/esm2020/lib/multi-select/multi-select/multi-select.component.mjs +3 -3
- package/esm2020/lib/multi-select/multi-select-native-select/multi-select-native-select.component.mjs +3 -3
- package/esm2020/lib/multi-select/multi-select-optgroup/multi-select-optgroup-label.component.mjs +3 -3
- package/esm2020/lib/multi-select/multi-select-optgroup/multi-select-optgroup.component.mjs +3 -3
- package/esm2020/lib/multi-select/multi-select-option/multi-select-option.component.mjs +3 -3
- package/esm2020/lib/multi-select/multi-select-tag/multi-select-tag.component.mjs +3 -3
- package/esm2020/lib/multi-select/multi-select.module.mjs +4 -4
- package/esm2020/lib/multi-select/multi-select.service.mjs +3 -3
- package/esm2020/lib/nav/nav-item.component.mjs +3 -3
- package/esm2020/lib/nav/nav-link.directive.mjs +3 -3
- package/esm2020/lib/nav/nav.component.mjs +3 -3
- package/esm2020/lib/nav/nav.module.mjs +4 -4
- package/esm2020/lib/navbar/navbar-brand/navbar-brand.directive.mjs +3 -3
- package/esm2020/lib/navbar/navbar-nav/navbar-nav.component.mjs +3 -3
- package/esm2020/lib/navbar/navbar-text/navbar-text.component.mjs +3 -3
- package/esm2020/lib/navbar/navbar-toggler/navbar-toggler.directive.mjs +3 -3
- package/esm2020/lib/navbar/navbar.component.mjs +3 -3
- package/esm2020/lib/navbar/navbar.module.mjs +4 -4
- package/esm2020/lib/offcanvas/offcanvas/offcanvas.component.mjs +3 -3
- package/esm2020/lib/offcanvas/offcanvas-body/offcanvas-body.component.mjs +3 -3
- package/esm2020/lib/offcanvas/offcanvas-header/offcanvas-header.component.mjs +3 -3
- package/esm2020/lib/offcanvas/offcanvas-title/offcanvas-title.directive.mjs +3 -3
- package/esm2020/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.mjs +3 -3
- package/esm2020/lib/offcanvas/offcanvas.module.mjs +4 -4
- package/esm2020/lib/offcanvas/offcanvas.service.mjs +3 -3
- package/esm2020/lib/pagination/page-item/page-item.component.mjs +3 -3
- package/esm2020/lib/pagination/page-item/page-item.directive.mjs +3 -3
- package/esm2020/lib/pagination/page-link/page-link.directive.mjs +3 -3
- package/esm2020/lib/pagination/pagination/pagination.component.mjs +3 -3
- package/esm2020/lib/pagination/pagination.module.mjs +4 -4
- package/esm2020/lib/placeholder/placeholder-animation.directive.mjs +3 -3
- package/esm2020/lib/placeholder/placeholder.directive.mjs +3 -3
- package/esm2020/lib/placeholder/placeholder.module.mjs +4 -4
- package/esm2020/lib/popover/popover/popover.component.mjs +3 -3
- package/esm2020/lib/popover/popover.directive.mjs +3 -3
- package/esm2020/lib/popover/popover.module.mjs +4 -4
- package/esm2020/lib/progress/progress-bar.component.mjs +3 -3
- package/esm2020/lib/progress/progress.component.mjs +3 -3
- package/esm2020/lib/progress/progress.module.mjs +4 -4
- package/esm2020/lib/services/class-toggle.service.mjs +3 -3
- package/esm2020/lib/services/intersection.service.mjs +3 -3
- package/esm2020/lib/services/listeners.service.mjs +3 -3
- package/esm2020/lib/shared/html-attr.directive.mjs +3 -3
- package/esm2020/lib/shared/shared.module.mjs +4 -4
- package/esm2020/lib/shared/template-id.directive.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar/sidebar.component.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-backdrop/sidebar-backdrop.service.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-brand/sidebar-brand.component.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-footer/sidebar-footer.component.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-header/sidebar-header.component.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-badge.pipe.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-icon.pipe.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-label.component.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-link.component.mjs +6 -6
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-link.pipe.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-title.component.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav.component.mjs +6 -6
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav.service.mjs +6 -6
- package/esm2020/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar-toggler/sidebar-toggler.component.mjs +3 -3
- package/esm2020/lib/sidebar/sidebar.module.mjs +4 -4
- package/esm2020/lib/sidebar/sidebar.service.mjs +3 -3
- package/esm2020/lib/smart-pagination/smart-pagination.component.mjs +3 -3
- package/esm2020/lib/smart-pagination/smart-pagination.module.mjs +4 -4
- package/esm2020/lib/smart-table/smart-table/smart-table.component.mjs +3 -3
- package/esm2020/lib/smart-table/smart-table-filter/smart-table-filter.component.mjs +3 -3
- package/esm2020/lib/smart-table/smart-table-head/smart-table-head.component.mjs +3 -3
- package/esm2020/lib/smart-table/smart-table-items-per-page-selector/smart-table-items-per-page-selector.component.mjs +3 -3
- package/esm2020/lib/smart-table/smart-table.module.mjs +4 -4
- package/esm2020/lib/spinner/spinner.component.mjs +3 -3
- package/esm2020/lib/spinner/spinner.module.mjs +4 -4
- package/esm2020/lib/table/table-active.directive.mjs +3 -3
- package/esm2020/lib/table/table-color.directive.mjs +3 -3
- package/esm2020/lib/table/table.directive.mjs +3 -3
- package/esm2020/lib/table/table.module.mjs +4 -4
- package/esm2020/lib/tabs/tab-content/tab-content.component.mjs +3 -3
- package/esm2020/lib/tabs/tab-content-ref.directive.mjs +3 -3
- package/esm2020/lib/tabs/tab-pane/tab-pane.component.mjs +3 -3
- package/esm2020/lib/tabs/tab.service.mjs +3 -3
- package/esm2020/lib/tabs/tabs.module.mjs +4 -4
- package/esm2020/lib/time-picker/index.mjs +2 -0
- package/esm2020/lib/time-picker/public_api.mjs +3 -0
- package/esm2020/lib/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +103 -0
- package/esm2020/lib/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +104 -0
- package/esm2020/lib/time-picker/time-picker.component.mjs +458 -0
- package/esm2020/lib/time-picker/time-picker.module.mjs +50 -0
- package/esm2020/lib/time-picker/time.utils.mjs +645 -0
- package/esm2020/lib/toast/toast/toast.component.mjs +3 -3
- package/esm2020/lib/toast/toast-body/toast-body.component.mjs +3 -3
- package/esm2020/lib/toast/toast-close.directive.mjs +3 -3
- package/esm2020/lib/toast/toast-header/toast-header.component.mjs +3 -3
- package/esm2020/lib/toast/toast.module.mjs +4 -4
- package/esm2020/lib/toast/toaster/toaster-host.directive.mjs +3 -3
- package/esm2020/lib/toast/toaster/toaster.component.mjs +3 -3
- package/esm2020/lib/toast/toaster/toaster.service.mjs +3 -3
- package/esm2020/lib/tooltip/tooltip/tooltip.component.mjs +3 -3
- package/esm2020/lib/tooltip/tooltip.directive.mjs +3 -3
- package/esm2020/lib/tooltip/tooltip.module.mjs +4 -4
- package/esm2020/lib/utilities/align.directive.mjs +3 -3
- package/esm2020/lib/utilities/bg-color.directive.mjs +3 -3
- package/esm2020/lib/utilities/border.directive.mjs +3 -3
- package/esm2020/lib/utilities/rounded.directive.mjs +3 -3
- package/esm2020/lib/utilities/text-color.directive.mjs +3 -3
- package/esm2020/lib/utilities/utilities.module.mjs +4 -4
- package/esm2020/lib/widget/widget-stat-a/widget-stat-a.component.mjs +3 -3
- package/esm2020/lib/widget/widget-stat-b/widget-stat-b.component.mjs +3 -3
- package/esm2020/lib/widget/widget-stat-c/widget-stat-c.component.mjs +3 -3
- package/esm2020/lib/widget/widget-stat-d/widget-stat-d.component.mjs +3 -3
- package/esm2020/lib/widget/widget-stat-e/widget-stat-e.component.mjs +3 -3
- package/esm2020/lib/widget/widget-stat-f/widget-stat-f.component.mjs +3 -3
- package/esm2020/lib/widget/widget.module.mjs +4 -4
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/coreui-angular-pro.mjs +5734 -2501
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +5586 -2388
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/lib/calendar/calendar/calendar-class-view.pipe.d.ts +7 -0
- package/lib/calendar/calendar/calendar.component.d.ts +155 -0
- package/lib/calendar/calendar-month/calendar-class-day.pipe.d.ts +15 -0
- package/lib/calendar/calendar-month/calendar-class-month.pipe.d.ts +7 -0
- package/lib/calendar/calendar-month/calendar-class-year.pipe.d.ts +7 -0
- package/lib/calendar/calendar-month/calendar-day.directive.d.ts +29 -0
- package/lib/calendar/calendar-month/calendar-day.pipe.d.ts +8 -0
- package/lib/calendar/calendar-month/calendar-month.component.d.ts +121 -0
- package/lib/calendar/calendar-month/calendar-weekday.pipe.d.ts +8 -0
- package/lib/calendar/calendar-navigation/calendar-navigation.component.d.ts +30 -0
- package/lib/calendar/calendar.module.d.ts +18 -0
- package/lib/calendar/calendar.service.d.ts +33 -0
- package/lib/calendar/calendar.utils.d.ts +26 -0
- package/lib/calendar/index.d.ts +1 -0
- package/lib/calendar/public_api.d.ts +4 -0
- package/lib/date-range-picker/date-range-picker/date-range-picker.component.d.ts +239 -0
- package/lib/date-range-picker/date-range-picker.module.d.ts +17 -0
- package/lib/date-range-picker/end-date.directive.d.ts +8 -0
- package/lib/date-range-picker/index.d.ts +1 -0
- package/lib/date-range-picker/public_api.d.ts +2 -0
- package/lib/date-range-picker/start-date.directive.d.ts +8 -0
- package/lib/time-picker/index.d.ts +1 -0
- package/lib/time-picker/public_api.d.ts +2 -0
- package/lib/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.d.ts +39 -0
- package/lib/time-picker/time-picker-roll-col/time-picker-roll-col.component.d.ts +38 -0
- package/lib/time-picker/time-picker.component.d.ts +183 -0
- package/lib/time-picker/time-picker.module.d.ts +14 -0
- package/lib/time-picker/time.utils.d.ts +57 -0
- package/package.json +8 -2
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
5
|
+
import { Colors } from '../../coreui.types';
|
|
6
|
+
import { CalendarComponent } from '../../calendar';
|
|
7
|
+
import { DateFilterType, DayFormatType, WeekdayFormatType } from '../../calendar/calendar.service';
|
|
8
|
+
import { StartDateDirective } from '../start-date.directive';
|
|
9
|
+
import { EndDateDirective } from '../end-date.directive';
|
|
10
|
+
import { TemplateIdDirective } from '../../shared';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export interface ICalendarRange {
|
|
13
|
+
[key: string]: Date[];
|
|
14
|
+
}
|
|
15
|
+
export declare type TCustomRange = [string, Date[]];
|
|
16
|
+
/** Must be a valid date string */
|
|
17
|
+
export declare class DateRangePickerComponent implements OnInit, OnDestroy, ControlValueAccessor, AfterViewInit {
|
|
18
|
+
private breakpointObserver;
|
|
19
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
20
|
+
static ngAcceptInputType_navYearFirst: BooleanInput;
|
|
21
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
22
|
+
/**
|
|
23
|
+
* Set the format of day name.
|
|
24
|
+
* @default 'numeric'
|
|
25
|
+
* @type DayFormatType
|
|
26
|
+
*/
|
|
27
|
+
dayFormat: DayFormatType;
|
|
28
|
+
/**
|
|
29
|
+
* The number of calendars that render on desktop devices.
|
|
30
|
+
* @type number
|
|
31
|
+
* @default 2
|
|
32
|
+
*/
|
|
33
|
+
set calendars(value: number);
|
|
34
|
+
get calendars(): number;
|
|
35
|
+
private _calendars;
|
|
36
|
+
/**
|
|
37
|
+
* Toggle visibility or set the content of the cleaner button.
|
|
38
|
+
* @type boolean
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
set cleaner(value: boolean);
|
|
42
|
+
get cleaner(): boolean;
|
|
43
|
+
private _cleaner;
|
|
44
|
+
/**
|
|
45
|
+
* Set date format.
|
|
46
|
+
* We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
|
|
47
|
+
*/
|
|
48
|
+
format?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Toggle visibility or set the content of the input indicator.
|
|
51
|
+
* @type boolean
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
set indicator(value: boolean);
|
|
55
|
+
get indicator(): boolean;
|
|
56
|
+
private _indicator;
|
|
57
|
+
/**
|
|
58
|
+
* Toggle the readonly state for the component.
|
|
59
|
+
* @type boolean
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
set inputReadOnly(value: boolean);
|
|
63
|
+
get inputReadOnly(): boolean;
|
|
64
|
+
private _inputReadOnly;
|
|
65
|
+
/**
|
|
66
|
+
* Reorder year-month navigation, and render year first.
|
|
67
|
+
* @type boolean
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
set navYearFirst(value: boolean);
|
|
71
|
+
get navYearFirst(): boolean;
|
|
72
|
+
private _navYearFirst;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies short hints that are visible in start date and end date inputs.
|
|
75
|
+
* type string
|
|
76
|
+
*/
|
|
77
|
+
placeholder: string | string[];
|
|
78
|
+
/**
|
|
79
|
+
* Predefined date ranges the user can select from.
|
|
80
|
+
* @type ICalendarRange
|
|
81
|
+
*/
|
|
82
|
+
ranges?: object;
|
|
83
|
+
/**
|
|
84
|
+
* Sets the color context of the cancel button to one of CoreUI’s themed colors.
|
|
85
|
+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
86
|
+
* @default 'secondary'
|
|
87
|
+
*/
|
|
88
|
+
rangesButtonsColor?: Colors;
|
|
89
|
+
/**
|
|
90
|
+
* Size the ranges button small or large.
|
|
91
|
+
* @type 'sm' | 'lg' | undefined
|
|
92
|
+
*/
|
|
93
|
+
rangesButtonsSize?: 'sm' | 'lg';
|
|
94
|
+
/**
|
|
95
|
+
* Set the ranges button variant to an outlined button or a ghost button.
|
|
96
|
+
* @type 'outline' | 'ghost' | undefined
|
|
97
|
+
*/
|
|
98
|
+
rangesButtonsVariant?: 'outline' | 'ghost';
|
|
99
|
+
/**
|
|
100
|
+
* Default icon or character that separates two dates.
|
|
101
|
+
* @type boolean
|
|
102
|
+
* @default true
|
|
103
|
+
*/
|
|
104
|
+
set separator(value: boolean);
|
|
105
|
+
get separator(): boolean;
|
|
106
|
+
private _separator;
|
|
107
|
+
/**
|
|
108
|
+
* Size the component small or large.
|
|
109
|
+
* @type 'sm' | 'lg' | undefined
|
|
110
|
+
* @default undefined
|
|
111
|
+
*/
|
|
112
|
+
size?: 'sm' | 'lg';
|
|
113
|
+
/**
|
|
114
|
+
* Provide an additional time selection by adding select boxes to choose time.
|
|
115
|
+
* @type boolean
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
set timepicker(value: boolean);
|
|
119
|
+
get timepicker(): boolean;
|
|
120
|
+
private _timepicker;
|
|
121
|
+
/**
|
|
122
|
+
* Toggle visibility or set the content of today button.
|
|
123
|
+
* @type string
|
|
124
|
+
* @default 'Today'
|
|
125
|
+
*/
|
|
126
|
+
todayButton: string;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the color context of the today button to one of CoreUI’s themed colors.
|
|
129
|
+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
130
|
+
* @default 'primary'
|
|
131
|
+
*/
|
|
132
|
+
todayButtonColor: Colors;
|
|
133
|
+
/**
|
|
134
|
+
* Size the today button small or large.
|
|
135
|
+
* @type 'sm' | 'lg'
|
|
136
|
+
* @default 'sm'
|
|
137
|
+
*/
|
|
138
|
+
todayButtonSize: 'sm' | 'lg';
|
|
139
|
+
/**
|
|
140
|
+
* Set the today button variant to an outlined button or a ghost button.
|
|
141
|
+
* @type 'outline' | 'ghost' | undefined
|
|
142
|
+
*/
|
|
143
|
+
todayButtonVariant?: 'outline' | 'ghost';
|
|
144
|
+
/**
|
|
145
|
+
* Toggle the visibility of the component.
|
|
146
|
+
* @type boolean
|
|
147
|
+
* @default false
|
|
148
|
+
*/
|
|
149
|
+
set visible(value: boolean);
|
|
150
|
+
get visible(): boolean;
|
|
151
|
+
private _visible;
|
|
152
|
+
startDate?: Date | null;
|
|
153
|
+
endDate?: Date | null;
|
|
154
|
+
calendarDate?: Date;
|
|
155
|
+
disabledDates: Date[] | Date[][];
|
|
156
|
+
set firstDayOfWeek(value: number);
|
|
157
|
+
get firstDayOfWeek(): number;
|
|
158
|
+
private _firstDayOfWeek;
|
|
159
|
+
locale: string;
|
|
160
|
+
maxDate: Date | null;
|
|
161
|
+
minDate: Date | null;
|
|
162
|
+
set navigation(value: boolean);
|
|
163
|
+
get navigation(): boolean;
|
|
164
|
+
private _navigation;
|
|
165
|
+
/**
|
|
166
|
+
* Allow range selection.
|
|
167
|
+
* @type boolean
|
|
168
|
+
* @default false
|
|
169
|
+
*/
|
|
170
|
+
set range(value: boolean);
|
|
171
|
+
get range(): boolean;
|
|
172
|
+
private _range;
|
|
173
|
+
dateFilter?: DateFilterType;
|
|
174
|
+
set disabled(value: boolean);
|
|
175
|
+
get disabled(): boolean;
|
|
176
|
+
private _disabled;
|
|
177
|
+
set value(value: Date[]);
|
|
178
|
+
get value(): Date[];
|
|
179
|
+
private _value;
|
|
180
|
+
/**
|
|
181
|
+
* Set length or format of day name.
|
|
182
|
+
* @type WeekdayFormatType
|
|
183
|
+
* @default 'short'
|
|
184
|
+
*/
|
|
185
|
+
weekdayFormat: WeekdayFormatType;
|
|
186
|
+
readonly valueChange: EventEmitter<Date | Date[] | undefined>;
|
|
187
|
+
calendarCellHover: EventEmitter<Date | null>;
|
|
188
|
+
calendarDateChange: EventEmitter<Date>;
|
|
189
|
+
endDateChange: EventEmitter<Date | null>;
|
|
190
|
+
startDateChange: EventEmitter<Date | null>;
|
|
191
|
+
calendarComponent: CalendarComponent;
|
|
192
|
+
startDateDirective: StartDateDirective;
|
|
193
|
+
endDateDirective: EndDateDirective;
|
|
194
|
+
templates: any;
|
|
195
|
+
contentTemplates: QueryList<TemplateIdDirective>;
|
|
196
|
+
onBlur(): void;
|
|
197
|
+
isMobile: boolean;
|
|
198
|
+
customRanges: TCustomRange[];
|
|
199
|
+
set startDateValue(value: string);
|
|
200
|
+
get startDateValue(): string;
|
|
201
|
+
private _startDateValue;
|
|
202
|
+
set endDateValue(value: string);
|
|
203
|
+
get endDateValue(): string;
|
|
204
|
+
_endDateValue: string;
|
|
205
|
+
startDatePlaceholder: string;
|
|
206
|
+
endDatePlaceholder: string;
|
|
207
|
+
private layoutChanges;
|
|
208
|
+
startDateInput: FormControl<string | null>;
|
|
209
|
+
endDateInput: FormControl<string | null>;
|
|
210
|
+
dateRangeGroup: FormGroup;
|
|
211
|
+
set inputStartHoverValue(value: Date | null);
|
|
212
|
+
get inputStartHoverValue(): Date | null;
|
|
213
|
+
private _inputStartHoverValue;
|
|
214
|
+
set inputEndHoverValue(value: Date | null);
|
|
215
|
+
get inputEndHoverValue(): Date | null;
|
|
216
|
+
private _inputEndHoverValue;
|
|
217
|
+
ngOnInit(): void;
|
|
218
|
+
ngOnDestroy(): void;
|
|
219
|
+
ngAfterViewInit(): void;
|
|
220
|
+
getCustomRangeKey(customRange: any): any;
|
|
221
|
+
setCustomRange(customRange: any): void;
|
|
222
|
+
handleCalendarCellHover($event: Date | null): void;
|
|
223
|
+
handleCalendarDateChange($event: Date): void;
|
|
224
|
+
handleStartDateChange(date: Date | null): void;
|
|
225
|
+
handleEndDateChange(date: Date | null): void;
|
|
226
|
+
handleClear($event: MouseEvent): void;
|
|
227
|
+
handleStartDateInputChange($event: any): void;
|
|
228
|
+
handleEndDateInputChange($event: any): void;
|
|
229
|
+
forbiddenDate(date: Date): boolean | undefined;
|
|
230
|
+
setInputValue: (elementRef: ElementRef, date: Date | null) => void;
|
|
231
|
+
onChange: any;
|
|
232
|
+
onTouched: any;
|
|
233
|
+
registerOnChange(fn: any): void;
|
|
234
|
+
registerOnTouched(fn: any): void;
|
|
235
|
+
setDisabledState(isDisabled: boolean): void;
|
|
236
|
+
writeValue(value: (Date[])): void;
|
|
237
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
|
|
238
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "c-date-range-picker", ["cDateRangePicker"], { "dayFormat": "dayFormat"; "calendars": "calendars"; "cleaner": "cleaner"; "format": "format"; "indicator": "indicator"; "inputReadOnly": "inputReadOnly"; "navYearFirst": "navYearFirst"; "placeholder": "placeholder"; "ranges": "ranges"; "rangesButtonsColor": "rangesButtonsColor"; "rangesButtonsSize": "rangesButtonsSize"; "rangesButtonsVariant": "rangesButtonsVariant"; "separator": "separator"; "size": "size"; "timepicker": "timepicker"; "todayButton": "todayButton"; "todayButtonColor": "todayButtonColor"; "todayButtonSize": "todayButtonSize"; "todayButtonVariant": "todayButtonVariant"; "visible": "visible"; "startDate": "startDate"; "endDate": "endDate"; "calendarDate": "calendarDate"; "disabledDates": "disabledDates"; "firstDayOfWeek": "firstDayOfWeek"; "locale": "locale"; "maxDate": "maxDate"; "minDate": "minDate"; "navigation": "navigation"; "range": "range"; "dateFilter": "dateFilter"; "disabled": "disabled"; "value": "value"; "weekdayFormat": "weekdayFormat"; }, { "valueChange": "valueChange"; "calendarCellHover": "calendarCellHover"; "calendarDateChange": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; }, ["contentTemplates"], ["*"], false>;
|
|
239
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./date-range-picker/date-range-picker.component";
|
|
3
|
+
import * as i2 from "./start-date.directive";
|
|
4
|
+
import * as i3 from "./end-date.directive";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "../button/button.module";
|
|
8
|
+
import * as i7 from "../calendar/calendar.module";
|
|
9
|
+
import * as i8 from "../shared/shared.module";
|
|
10
|
+
import * as i9 from "../form/form.module";
|
|
11
|
+
import * as i10 from "../dropdown/dropdown.module";
|
|
12
|
+
import * as i11 from "../time-picker/time-picker.module";
|
|
13
|
+
export declare class DateRangePickerModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DateRangePickerModule, [typeof i1.DateRangePickerComponent, typeof i2.StartDateDirective, typeof i3.EndDateDirective], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.ButtonModule, typeof i7.CalendarModule, typeof i8.SharedModule, typeof i9.FormModule, typeof i10.DropdownModule, typeof i11.TimePickerModule], [typeof i1.DateRangePickerComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DateRangePickerModule>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EndDateDirective {
|
|
4
|
+
elementRef: ElementRef;
|
|
5
|
+
constructor(elementRef: ElementRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EndDateDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EndDateDirective, "[cEndDate]", ["cEndDate"], {}, {}, never, never, false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class StartDateDirective {
|
|
4
|
+
elementRef: ElementRef;
|
|
5
|
+
constructor(elementRef: ElementRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StartDateDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StartDateDirective, "[cStartDate]", ["cStartDate"], {}, {}, never, never, false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { DayPeriod } from '../time.utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IDayPeriod {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
dayPeriod?: DayPeriod;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class DayPeriodElementDirective {
|
|
11
|
+
elementRef: ElementRef;
|
|
12
|
+
constructor(elementRef: ElementRef);
|
|
13
|
+
cDayPeriodElement: IDayPeriod;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DayPeriodElementDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DayPeriodElementDirective, "[cDayPeriodElement]", ["cDayPeriodElement"], { "cDayPeriodElement": "cDayPeriodElement"; }, {}, never, never, false>;
|
|
16
|
+
}
|
|
17
|
+
export declare class TimePickerRollAmPmComponent implements OnChanges, AfterViewInit {
|
|
18
|
+
elementRef: ElementRef;
|
|
19
|
+
constructor(elementRef: ElementRef);
|
|
20
|
+
private init;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
elements: IDayPeriod[];
|
|
23
|
+
onClick?: (value: number | string) => void;
|
|
24
|
+
selected?: number | string | null;
|
|
25
|
+
refresh?: boolean;
|
|
26
|
+
selectedChange: EventEmitter<any>;
|
|
27
|
+
get hostClasses(): {
|
|
28
|
+
'time-picker-roll-col': boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
};
|
|
31
|
+
dayPeriodElements: QueryList<DayPeriodElementDirective>;
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
+
scrollToElement(element: any): void;
|
|
35
|
+
handleElementClick($event: MouseEvent, element: any): void;
|
|
36
|
+
trackByElement(index: number, element: IDayPeriod): string;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerRollAmPmComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerRollAmPmComponent, "c-time-picker-roll-am-pm", never, { "disabled": "disabled"; "elements": "elements"; "onClick": "onClick"; "selected": "selected"; "refresh": "refresh"; }, { "selectedChange": "selectedChange"; }, never, never, false>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ITimeValue } from '../time.utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ITimePickerRollCol {
|
|
5
|
+
elements: ITimeValue[];
|
|
6
|
+
onClick?: (value: number | string) => void;
|
|
7
|
+
selected?: number | string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare class TimeElementDirective {
|
|
10
|
+
elementRef: ElementRef;
|
|
11
|
+
constructor(elementRef: ElementRef);
|
|
12
|
+
cTimeElement: ITimeValue;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeElementDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimeElementDirective, "[cTimeElement]", ["cTimeElement"], { "cTimeElement": "cTimeElement"; }, {}, never, never, false>;
|
|
15
|
+
}
|
|
16
|
+
export declare class TimePickerRollColComponent implements ITimePickerRollCol, OnChanges, AfterViewInit {
|
|
17
|
+
elementRef: ElementRef;
|
|
18
|
+
constructor(elementRef: ElementRef);
|
|
19
|
+
private init;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
elements: ITimeValue[];
|
|
22
|
+
onClick?: (value: number | string) => void;
|
|
23
|
+
selected?: number | string | null;
|
|
24
|
+
refresh?: boolean;
|
|
25
|
+
selectedChange: EventEmitter<any>;
|
|
26
|
+
get hostClasses(): {
|
|
27
|
+
'time-picker-roll-col': boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
};
|
|
30
|
+
timeElements: QueryList<TimeElementDirective>;
|
|
31
|
+
ngAfterViewInit(): void;
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
+
scrollToElement(element: any): void;
|
|
34
|
+
handleElementClick($event: MouseEvent, element: any): void;
|
|
35
|
+
trackByElement(index: number, element: ITimeValue): number;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerRollColComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerRollColComponent, "c-time-picker-roll-col", ["cTimePickerRollCol"], { "disabled": "disabled"; "elements": "elements"; "onClick": "onClick"; "selected": "selected"; "refresh": "refresh"; }, { "selectedChange": "selectedChange"; }, never, never, false>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { TemplateIdDirective } from '../shared';
|
|
5
|
+
import { DateTimeFormatOptions, DayPeriod, ITimeValue } from './time.utils';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TimePickerComponent implements OnChanges, OnInit, ControlValueAccessor, AfterViewInit {
|
|
8
|
+
constructor();
|
|
9
|
+
static ngAcceptInputType_cleaner: BooleanInput;
|
|
10
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
11
|
+
static ngAcceptInputType_indicator: BooleanInput;
|
|
12
|
+
static ngAcceptInputType_inputReadOnly: BooleanInput;
|
|
13
|
+
static ngAcceptInputType_seconds: BooleanInput;
|
|
14
|
+
static ngAcceptInputType_visible: BooleanInput;
|
|
15
|
+
/**
|
|
16
|
+
* Toggle visibility or set the content of the cleaner button.
|
|
17
|
+
* @type boolean
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
set cleaner(value: boolean);
|
|
21
|
+
get cleaner(): boolean;
|
|
22
|
+
private _cleaner;
|
|
23
|
+
/**
|
|
24
|
+
* Sets DateTime format options including timeZone
|
|
25
|
+
* @type DateTimeFormatOptions
|
|
26
|
+
* @default {}
|
|
27
|
+
* @note The date object doesn't store timeZone, it keeps the local timezone of the browser, regardless if you parsed UTC dates.
|
|
28
|
+
*/
|
|
29
|
+
dateTimeFormatOptions: DateTimeFormatOptions;
|
|
30
|
+
/**
|
|
31
|
+
* Toggle the disabled state for the component.
|
|
32
|
+
* @type boolean
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
set disabled(value: boolean);
|
|
36
|
+
get disabled(): boolean;
|
|
37
|
+
private _disabled;
|
|
38
|
+
/**
|
|
39
|
+
* Filter available hours to pick.
|
|
40
|
+
* @type (value: number) => boolean;
|
|
41
|
+
* @default undefined
|
|
42
|
+
*/
|
|
43
|
+
filterHours?: (value: number) => boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Filter available minutes to pick.
|
|
46
|
+
* @type (value: number) => boolean;
|
|
47
|
+
* @default undefined
|
|
48
|
+
*/
|
|
49
|
+
filterMinutes?: (value: number) => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Filter available seconds to pick.
|
|
52
|
+
* @type (value: number) => boolean;
|
|
53
|
+
* @default undefined
|
|
54
|
+
*/
|
|
55
|
+
filterSeconds?: (value: number) => boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Toggle visibility or set the content of the input indicator.
|
|
58
|
+
* @type boolean
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
set indicator(value: boolean);
|
|
62
|
+
get indicator(): boolean;
|
|
63
|
+
private _indicator;
|
|
64
|
+
/**
|
|
65
|
+
* Toggle the readonly state for the component.
|
|
66
|
+
* @type boolean
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
set inputReadOnly(value: boolean);
|
|
70
|
+
get inputReadOnly(): boolean;
|
|
71
|
+
private _inputReadOnly;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the default locale for components. If not set, it is inherited from the browser.
|
|
74
|
+
* @type string
|
|
75
|
+
* @default default
|
|
76
|
+
*/
|
|
77
|
+
locale: string;
|
|
78
|
+
/**
|
|
79
|
+
* Specifies short hint visible in time input.
|
|
80
|
+
* @type string
|
|
81
|
+
* @default 'Select time'
|
|
82
|
+
*/
|
|
83
|
+
placeholder: string;
|
|
84
|
+
/**
|
|
85
|
+
* Toggle seconds visibility.
|
|
86
|
+
* @type boolean
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
set seconds(value: boolean);
|
|
90
|
+
get seconds(): boolean;
|
|
91
|
+
private _seconds;
|
|
92
|
+
/**
|
|
93
|
+
* Size the component small or large.
|
|
94
|
+
* @type 'sm' | 'lg' | undefined
|
|
95
|
+
* @default undefined
|
|
96
|
+
*/
|
|
97
|
+
size?: 'sm' | 'lg';
|
|
98
|
+
/**
|
|
99
|
+
* Initial selected time.
|
|
100
|
+
* @type Date | string | null | number
|
|
101
|
+
* @default undefined
|
|
102
|
+
*/
|
|
103
|
+
set time(value: Date | undefined);
|
|
104
|
+
get time(): Date | undefined;
|
|
105
|
+
private _time?;
|
|
106
|
+
private _timeInternal?;
|
|
107
|
+
/**
|
|
108
|
+
* Set the time picker variant to a roll or select.
|
|
109
|
+
* @type 'roll' | 'select'
|
|
110
|
+
* @default 'roll'
|
|
111
|
+
*/
|
|
112
|
+
variant: 'roll' | 'select';
|
|
113
|
+
/**
|
|
114
|
+
* Toggle the visibility of dropdown menu component.
|
|
115
|
+
* @type boolean
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
set visible(value: boolean);
|
|
119
|
+
get visible(): boolean;
|
|
120
|
+
private _visible;
|
|
121
|
+
timeChange: EventEmitter<Date | undefined>;
|
|
122
|
+
onBlur(): void;
|
|
123
|
+
dropdown?: ElementRef;
|
|
124
|
+
templates: any;
|
|
125
|
+
contentTemplates: QueryList<TemplateIdDirective>;
|
|
126
|
+
listOfHours: ITimeValue[];
|
|
127
|
+
listOfHours12: ITimeValue[];
|
|
128
|
+
listOfMinutes: ITimeValue[];
|
|
129
|
+
listOfSeconds: ITimeValue[];
|
|
130
|
+
hour12: boolean;
|
|
131
|
+
dayPeriods: {
|
|
132
|
+
value: string;
|
|
133
|
+
label: string;
|
|
134
|
+
}[];
|
|
135
|
+
set timeInputValue(value: string);
|
|
136
|
+
get timeInputValue(): string;
|
|
137
|
+
private _timeInputValue;
|
|
138
|
+
selectTime: FormGroup<{
|
|
139
|
+
selectHours: FormControl<number | null>;
|
|
140
|
+
selectMinutes: FormControl<number | null>;
|
|
141
|
+
selectSeconds: FormControl<number | null>;
|
|
142
|
+
selectDayPeriod: FormControl<DayPeriod | null>;
|
|
143
|
+
}>;
|
|
144
|
+
timeInput: FormControl<string | null>;
|
|
145
|
+
set hour(value: number);
|
|
146
|
+
get hour(): number;
|
|
147
|
+
private _hour;
|
|
148
|
+
set minute(value: number);
|
|
149
|
+
get minute(): number;
|
|
150
|
+
private _minute;
|
|
151
|
+
set second(value: number);
|
|
152
|
+
get second(): number;
|
|
153
|
+
private _second;
|
|
154
|
+
set dayPeriod(value: DayPeriod);
|
|
155
|
+
get dayPeriod(): DayPeriod;
|
|
156
|
+
private _dayPeriod;
|
|
157
|
+
setTime(): void;
|
|
158
|
+
clearTime(): void;
|
|
159
|
+
emitTime(time: Date | undefined): void;
|
|
160
|
+
ngOnInit(): void;
|
|
161
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
162
|
+
ngAfterViewInit(): void;
|
|
163
|
+
setTimeLists(): void;
|
|
164
|
+
updateSelectTime(time?: Date | undefined): void;
|
|
165
|
+
closestTime(timeArray: ITimeValue[], timeSegment: number): ITimeValue;
|
|
166
|
+
listOfTimeSegments(getListOfTimeSegments: (locale: string, dateTimeFormatOptions: DateTimeFormatOptions) => ITimeValue[], filterTimeSegments: ((timeSegmentValue: number) => boolean) | undefined): ITimeValue[];
|
|
167
|
+
handleSelectDayPeriodChange(dayPeriod: DayPeriod): void;
|
|
168
|
+
handleSelectHoursChange(hour: number): void;
|
|
169
|
+
handleSelectMinutesChange(minute: number): void;
|
|
170
|
+
handleSelectSecondsChange(second: number): void;
|
|
171
|
+
patchSelectTimeValues(): void;
|
|
172
|
+
trackByHour(index: number, hour: ITimeValue): ITimeValue;
|
|
173
|
+
onChange: (value: Date | undefined) => void;
|
|
174
|
+
onTouched: () => void;
|
|
175
|
+
writeValue(value: any): void;
|
|
176
|
+
registerOnChange(fn: any): void;
|
|
177
|
+
registerOnTouched(fn: any): void;
|
|
178
|
+
setDisabledState(isDisabled: boolean): void;
|
|
179
|
+
handleTimeInputChange($event: any): void;
|
|
180
|
+
handleClear($event: MouseEvent): void;
|
|
181
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
182
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "c-time-picker", ["cTimePicker"], { "cleaner": "cleaner"; "dateTimeFormatOptions": "dateTimeFormatOptions"; "disabled": "disabled"; "filterHours": "filterHours"; "filterMinutes": "filterMinutes"; "filterSeconds": "filterSeconds"; "indicator": "indicator"; "inputReadOnly": "inputReadOnly"; "locale": "locale"; "placeholder": "placeholder"; "seconds": "seconds"; "size": "size"; "time": "time"; "variant": "variant"; "visible": "visible"; }, { "timeChange": "timeChange"; }, ["contentTemplates"], never, false>;
|
|
183
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./time-picker.component";
|
|
3
|
+
import * as i2 from "./time-picker-roll-col/time-picker-roll-col.component";
|
|
4
|
+
import * as i3 from "./time-picker-roll-col/time-picker-roll-am-pm.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "../form/form.module";
|
|
8
|
+
import * as i7 from "../button/button.module";
|
|
9
|
+
import * as i8 from "../dropdown/dropdown.module";
|
|
10
|
+
export declare class TimePickerModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TimePickerModule, [typeof i1.TimePickerComponent, typeof i2.TimePickerRollColComponent, typeof i2.TimeElementDirective, typeof i3.TimePickerRollAmPmComponent, typeof i3.DayPeriodElementDirective], [typeof i4.CommonModule, typeof i5.ReactiveFormsModule, typeof i6.FormModule, typeof i7.ButtonModule, typeof i8.DropdownModule], [typeof i1.TimePickerComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TimePickerModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface DateTimeFormatOptions {
|
|
2
|
+
localeMatcher?: "best fit" | "lookup" | undefined;
|
|
3
|
+
weekday?: "long" | "short" | "narrow" | undefined;
|
|
4
|
+
era?: "long" | "short" | "narrow" | undefined;
|
|
5
|
+
year?: "numeric" | "2-digit" | undefined;
|
|
6
|
+
month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
|
|
7
|
+
day?: "numeric" | "2-digit" | undefined;
|
|
8
|
+
hour?: "numeric" | "2-digit" | undefined;
|
|
9
|
+
minute?: "numeric" | "2-digit" | undefined;
|
|
10
|
+
second?: "numeric" | "2-digit" | undefined;
|
|
11
|
+
timeZoneName?: "long" | "short" | undefined;
|
|
12
|
+
formatMatcher?: "best fit" | "basic" | undefined;
|
|
13
|
+
hour12?: boolean | undefined;
|
|
14
|
+
timeZone?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare type DayPeriod = ('am' | 'pm');
|
|
17
|
+
export interface ITimeValue {
|
|
18
|
+
value: number;
|
|
19
|
+
label: string;
|
|
20
|
+
dayPeriod?: DayPeriod;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface IDayPeriods {
|
|
24
|
+
am: string;
|
|
25
|
+
pm: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const getSupportedLocale: (locale?: string) => string;
|
|
28
|
+
export declare const isHour12: (locale?: string) => boolean;
|
|
29
|
+
export declare const convert12hTo24h: (abbr: 'am' | 'pm', hour: number) => number;
|
|
30
|
+
export declare const convert24hTo12h: (hour: number) => number;
|
|
31
|
+
export declare const convertTimeToDate: (time: Date | string | null | undefined) => Date | null;
|
|
32
|
+
export declare const getAmPm: (date: Date, locale: string, options?: DateTimeFormatOptions) => DayPeriod;
|
|
33
|
+
export declare const isAm: (date: Date) => boolean;
|
|
34
|
+
export declare const isPm: (date: Date) => boolean;
|
|
35
|
+
export declare const isValidTimeZone: (timeZone: unknown) => boolean;
|
|
36
|
+
export declare const getListOfHours: (locale: string, options?: DateTimeFormatOptions) => {
|
|
37
|
+
value: number;
|
|
38
|
+
dayPeriod: DayPeriod;
|
|
39
|
+
label: string;
|
|
40
|
+
}[];
|
|
41
|
+
export declare const getListOfMinutes: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
|
|
42
|
+
value: number;
|
|
43
|
+
label: string;
|
|
44
|
+
}[];
|
|
45
|
+
export declare const getListOfSeconds: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
|
|
46
|
+
value: number;
|
|
47
|
+
label: string;
|
|
48
|
+
}[];
|
|
49
|
+
export declare const getSelectedHour: (date: Date | null, locale: string) => number | "";
|
|
50
|
+
export declare const getSelectedMinutes: (date: Date | null) => number | "";
|
|
51
|
+
export declare const getSelectedSeconds: (date: Date | null) => number | "";
|
|
52
|
+
export declare const isAmPm: (locale?: string) => boolean;
|
|
53
|
+
export declare const isValidTime: (time: string | Date | number | any) => boolean;
|
|
54
|
+
export declare const getDayPeriods: (locale?: string, options?: DateTimeFormatOptions) => {
|
|
55
|
+
value: string;
|
|
56
|
+
label: string;
|
|
57
|
+
}[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreui/angular-pro",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0-next.2",
|
|
4
4
|
"description": "CoreUI Pro Components Library for Angular",
|
|
5
5
|
"homepage": "https://coreui.io/angular",
|
|
6
6
|
"author": {
|
|
@@ -23,7 +23,13 @@
|
|
|
23
23
|
"@angular/cdk": "^14.0.0",
|
|
24
24
|
"@angular/common": "^14.0.0",
|
|
25
25
|
"@angular/core": "^14.0.0",
|
|
26
|
-
"@angular/router": "^14.0.0"
|
|
26
|
+
"@angular/router": "^14.0.0",
|
|
27
|
+
"date-fns": "^2.28.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependenciesMeta": {
|
|
30
|
+
"date-fns": {
|
|
31
|
+
"optional": true
|
|
32
|
+
}
|
|
27
33
|
},
|
|
28
34
|
"repository": {
|
|
29
35
|
"type": "git",
|
package/public-api.d.ts
CHANGED
|
@@ -7,10 +7,12 @@ export * from './lib/badge';
|
|
|
7
7
|
export * from './lib/breadcrumb';
|
|
8
8
|
export * from './lib/button';
|
|
9
9
|
export * from './lib/button-group';
|
|
10
|
+
export * from './lib/calendar';
|
|
10
11
|
export * from './lib/callout';
|
|
11
12
|
export * from './lib/card';
|
|
12
13
|
export * from './lib/carousel';
|
|
13
14
|
export * from './lib/collapse';
|
|
15
|
+
export * from './lib/date-range-picker';
|
|
14
16
|
export * from './lib/dropdown';
|
|
15
17
|
export * from './lib/element-cover';
|
|
16
18
|
export * from './lib/footer';
|
|
@@ -36,6 +38,7 @@ export * from './lib/smart-table';
|
|
|
36
38
|
export * from './lib/spinner';
|
|
37
39
|
export * from './lib/table';
|
|
38
40
|
export * from './lib/tabs';
|
|
41
|
+
export * from './lib/time-picker';
|
|
39
42
|
export * from './lib/toast';
|
|
40
43
|
export * from './lib/tooltip';
|
|
41
44
|
export * from './lib/utilities';
|