@coreui/angular-pro 4.2.0-next.0 → 4.2.0-next.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/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 +3 -3
- package/esm2020/lib/calendar/calendar/calendar.component.mjs +3 -3
- package/esm2020/lib/calendar/calendar-month/calendar-class-day.pipe.mjs +3 -3
- package/esm2020/lib/calendar/calendar-month/calendar-class-month.pipe.mjs +3 -3
- package/esm2020/lib/calendar/calendar-month/calendar-class-year.pipe.mjs +3 -3
- package/esm2020/lib/calendar/calendar-month/calendar-day.directive.mjs +6 -6
- package/esm2020/lib/calendar/calendar-month/calendar-day.pipe.mjs +3 -3
- package/esm2020/lib/calendar/calendar-month/calendar-month.component.mjs +3 -3
- package/esm2020/lib/calendar/calendar-month/calendar-weekday.pipe.mjs +3 -3
- package/esm2020/lib/calendar/calendar-navigation/calendar-navigation.component.mjs +3 -3
- package/esm2020/lib/calendar/calendar.module.mjs +4 -4
- package/esm2020/lib/calendar/calendar.service.mjs +3 -3
- package/esm2020/lib/calendar/calendar.utils.mjs +6 -4
- 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-picker/date-picker.component.mjs +49 -0
- package/esm2020/lib/date-picker/date-picker.module.mjs +59 -0
- package/esm2020/lib/date-picker/index.mjs +2 -0
- package/esm2020/lib/date-picker/public_api.mjs +3 -0
- package/esm2020/lib/date-range-picker/date-range-picker/date-range-picker.component.mjs +48 -14
- package/esm2020/lib/date-range-picker/date-range-picker.module.mjs +12 -8
- package/esm2020/lib/date-range-picker/end-date.directive.mjs +3 -3
- package/esm2020/lib/date-range-picker/public_api.mjs +1 -1
- package/esm2020/lib/date-range-picker/start-date.directive.mjs +3 -3
- 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/public_api.mjs +1 -1
- package/esm2020/lib/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +7 -7
- package/esm2020/lib/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +7 -7
- package/esm2020/lib/time-picker/time-picker.component.mjs +42 -18
- package/esm2020/lib/time-picker/time-picker.module.mjs +5 -5
- package/esm2020/lib/time-picker/time.utils.mjs +1 -1
- 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 +2 -1
- package/fesm2015/coreui-angular-pro.mjs +9199 -9058
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +9142 -9001
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/lib/date-picker/date-picker.component.d.ts +16 -0
- package/lib/date-picker/date-picker.module.d.ts +16 -0
- package/lib/date-picker/index.d.ts +1 -0
- package/lib/date-picker/public_api.d.ts +3 -0
- package/lib/date-range-picker/date-range-picker/date-range-picker.component.d.ts +15 -8
- package/lib/date-range-picker/date-range-picker.module.d.ts +2 -1
- package/lib/date-range-picker/public_api.d.ts +1 -1
- package/lib/time-picker/time-picker.component.d.ts +17 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
3
|
+
import { DateRangePickerComponent } from '../date-range-picker';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DatePickerComponent extends DateRangePickerComponent {
|
|
6
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
7
|
+
get range(): boolean;
|
|
8
|
+
get calendars(): number;
|
|
9
|
+
readonly endDate: null;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
set date(value: Date | null | undefined);
|
|
12
|
+
get date(): Date | null | undefined;
|
|
13
|
+
startDateChange: EventEmitter<Date | null>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "c-date-picker", ["cDatePicker"], { "placeholder": "placeholder"; "date": "date"; }, { "startDateChange": "dateChange"; }, never, ["*"], false>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./date-picker.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../button/button.module";
|
|
6
|
+
import * as i5 from "../calendar/calendar.module";
|
|
7
|
+
import * as i6 from "../shared/shared.module";
|
|
8
|
+
import * as i7 from "../form/form.module";
|
|
9
|
+
import * as i8 from "../dropdown/dropdown.module";
|
|
10
|
+
import * as i9 from "../date-range-picker/date-range-picker.module";
|
|
11
|
+
import * as i10 from "../time-picker/time-picker.module";
|
|
12
|
+
export declare class DatePickerModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DatePickerModule, [typeof i1.DatePickerComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.ButtonModule, typeof i5.CalendarModule, typeof i6.SharedModule, typeof i7.FormModule, typeof i8.DropdownModule, typeof i9.DateRangePickerModule, typeof i10.TimePickerModule], [typeof i1.DatePickerComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DatePickerModule>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
4
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
@@ -7,13 +7,14 @@ import { CalendarComponent } from '../../calendar';
|
|
|
7
7
|
import { DateFilterType, DayFormatType, WeekdayFormatType } from '../../calendar/calendar.service';
|
|
8
8
|
import { StartDateDirective } from '../start-date.directive';
|
|
9
9
|
import { EndDateDirective } from '../end-date.directive';
|
|
10
|
+
import { TemplateIdDirective } from '../../shared';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
|
-
export interface
|
|
12
|
+
export interface ICalendarRanges {
|
|
12
13
|
[key: string]: Date[];
|
|
13
14
|
}
|
|
14
15
|
export declare type TCustomRange = [string, Date[]];
|
|
15
16
|
/** Must be a valid date string */
|
|
16
|
-
export declare class DateRangePickerComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
17
|
+
export declare class DateRangePickerComponent implements OnInit, OnDestroy, ControlValueAccessor, AfterViewInit {
|
|
17
18
|
private breakpointObserver;
|
|
18
19
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
19
20
|
static ngAcceptInputType_navYearFirst: BooleanInput;
|
|
@@ -76,7 +77,7 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
76
77
|
placeholder: string | string[];
|
|
77
78
|
/**
|
|
78
79
|
* Predefined date ranges the user can select from.
|
|
79
|
-
* @type
|
|
80
|
+
* @type ICalendarRanges
|
|
80
81
|
*/
|
|
81
82
|
ranges?: object;
|
|
82
83
|
/**
|
|
@@ -190,6 +191,8 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
190
191
|
calendarComponent: CalendarComponent;
|
|
191
192
|
startDateDirective: StartDateDirective;
|
|
192
193
|
endDateDirective: EndDateDirective;
|
|
194
|
+
templates: any;
|
|
195
|
+
contentTemplates: QueryList<TemplateIdDirective>;
|
|
193
196
|
onBlur(): void;
|
|
194
197
|
isMobile: boolean;
|
|
195
198
|
customRanges: TCustomRange[];
|
|
@@ -199,8 +202,8 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
199
202
|
set endDateValue(value: string);
|
|
200
203
|
get endDateValue(): string;
|
|
201
204
|
_endDateValue: string;
|
|
202
|
-
startDatePlaceholder: string;
|
|
203
|
-
endDatePlaceholder: string;
|
|
205
|
+
get startDatePlaceholder(): string;
|
|
206
|
+
get endDatePlaceholder(): string;
|
|
204
207
|
private layoutChanges;
|
|
205
208
|
startDateInput: FormControl<string | null>;
|
|
206
209
|
endDateInput: FormControl<string | null>;
|
|
@@ -211,8 +214,10 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
211
214
|
set inputEndHoverValue(value: Date | null);
|
|
212
215
|
get inputEndHoverValue(): Date | null;
|
|
213
216
|
private _inputEndHoverValue;
|
|
217
|
+
formatDate(date: Date): string;
|
|
214
218
|
ngOnInit(): void;
|
|
215
219
|
ngOnDestroy(): void;
|
|
220
|
+
ngAfterViewInit(): void;
|
|
216
221
|
getCustomRangeKey(customRange: any): any;
|
|
217
222
|
setCustomRange(customRange: any): void;
|
|
218
223
|
handleCalendarCellHover($event: Date | null): void;
|
|
@@ -222,7 +227,7 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
222
227
|
handleClear($event: MouseEvent): void;
|
|
223
228
|
handleStartDateInputChange($event: any): void;
|
|
224
229
|
handleEndDateInputChange($event: any): void;
|
|
225
|
-
forbiddenDate(date: Date): boolean
|
|
230
|
+
forbiddenDate(date: Date): boolean;
|
|
226
231
|
setInputValue: (elementRef: ElementRef, date: Date | null) => void;
|
|
227
232
|
onChange: any;
|
|
228
233
|
onTouched: any;
|
|
@@ -230,6 +235,8 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
230
235
|
registerOnTouched(fn: any): void;
|
|
231
236
|
setDisabledState(isDisabled: boolean): void;
|
|
232
237
|
writeValue(value: (Date[])): void;
|
|
238
|
+
handleStartTimeChange(time: Date | undefined): void;
|
|
239
|
+
handleEndTimeChange(time: Date | undefined): void;
|
|
233
240
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
|
|
234
|
-
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"; },
|
|
241
|
+
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>;
|
|
235
242
|
}
|
|
@@ -9,8 +9,9 @@ import * as i7 from "../calendar/calendar.module";
|
|
|
9
9
|
import * as i8 from "../shared/shared.module";
|
|
10
10
|
import * as i9 from "../form/form.module";
|
|
11
11
|
import * as i10 from "../dropdown/dropdown.module";
|
|
12
|
+
import * as i11 from "../time-picker/time-picker.module";
|
|
12
13
|
export declare class DateRangePickerModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerModule, never>;
|
|
14
|
-
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 i1.DateRangePickerComponent]>;
|
|
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]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<DateRangePickerModule>;
|
|
16
17
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DateRangePickerComponent,
|
|
1
|
+
export { DateRangePickerComponent, ICalendarRanges } from './date-range-picker/date-range-picker.component';
|
|
2
2
|
export { DateRangePickerModule } from './date-range-picker.module';
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { TemplateIdDirective } from '../shared';
|
|
4
5
|
import { DateTimeFormatOptions, DayPeriod, ITimeValue } from './time.utils';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TimePickerComponent implements OnChanges, OnInit, ControlValueAccessor {
|
|
7
|
+
export declare class TimePickerComponent implements OnChanges, OnInit, ControlValueAccessor, AfterViewInit {
|
|
7
8
|
constructor();
|
|
8
9
|
static ngAcceptInputType_cleaner: BooleanInput;
|
|
9
10
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
10
11
|
static ngAcceptInputType_indicator: BooleanInput;
|
|
11
12
|
static ngAcceptInputType_inputReadOnly: BooleanInput;
|
|
12
13
|
static ngAcceptInputType_seconds: BooleanInput;
|
|
14
|
+
static ngAcceptInputType_visible: BooleanInput;
|
|
13
15
|
/**
|
|
14
16
|
* Toggle visibility or set the content of the cleaner button.
|
|
15
17
|
* @type boolean
|
|
@@ -108,8 +110,19 @@ export declare class TimePickerComponent implements OnChanges, OnInit, ControlVa
|
|
|
108
110
|
* @default 'roll'
|
|
109
111
|
*/
|
|
110
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;
|
|
111
121
|
timeChange: EventEmitter<Date | undefined>;
|
|
112
122
|
onBlur(): void;
|
|
123
|
+
dropdown?: ElementRef;
|
|
124
|
+
templates: any;
|
|
125
|
+
contentTemplates: QueryList<TemplateIdDirective>;
|
|
113
126
|
listOfHours: ITimeValue[];
|
|
114
127
|
listOfHours12: ITimeValue[];
|
|
115
128
|
listOfMinutes: ITimeValue[];
|
|
@@ -146,6 +159,7 @@ export declare class TimePickerComponent implements OnChanges, OnInit, ControlVa
|
|
|
146
159
|
emitTime(time: Date | undefined): void;
|
|
147
160
|
ngOnInit(): void;
|
|
148
161
|
ngOnChanges(changes: SimpleChanges): void;
|
|
162
|
+
ngAfterViewInit(): void;
|
|
149
163
|
setTimeLists(): void;
|
|
150
164
|
updateSelectTime(time?: Date | undefined): void;
|
|
151
165
|
closestTime(timeArray: ITimeValue[], timeSegment: number): ITimeValue;
|
|
@@ -165,5 +179,5 @@ export declare class TimePickerComponent implements OnChanges, OnInit, ControlVa
|
|
|
165
179
|
handleTimeInputChange($event: any): void;
|
|
166
180
|
handleClear($event: MouseEvent): void;
|
|
167
181
|
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
168
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "c-time-picker
|
|
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>;
|
|
169
183
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './lib/callout';
|
|
|
12
12
|
export * from './lib/card';
|
|
13
13
|
export * from './lib/carousel';
|
|
14
14
|
export * from './lib/collapse';
|
|
15
|
+
export * from './lib/date-picker';
|
|
15
16
|
export * from './lib/date-range-picker';
|
|
16
17
|
export * from './lib/dropdown';
|
|
17
18
|
export * from './lib/element-cover';
|