@progress/kendo-angular-dateinputs 7.0.0-next.202204010857 → 7.0.0-next.202204081436

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.
Files changed (30) hide show
  1. package/bundles/kendo-angular-dateinputs.umd.js +1 -1
  2. package/calendar/calendar.component.d.ts +3 -0
  3. package/common/models/fillmode.d.ts +5 -5
  4. package/common/models/rounded.d.ts +6 -6
  5. package/common/models/size.d.ts +5 -5
  6. package/dateinput/dateinput.component.d.ts +13 -13
  7. package/datepicker/datepicker.component.d.ts +13 -13
  8. package/daterange/date-range-end-input.directive.d.ts +1 -2
  9. package/daterange/date-range-input.d.ts +1 -3
  10. package/daterange/date-range-popup.component.d.ts +2 -4
  11. package/daterange/date-range-start-input.directive.d.ts +1 -2
  12. package/daterange/date-range.service.d.ts +33 -0
  13. package/esm2015/calendar/calendar.component.js +3 -0
  14. package/esm2015/dateinput/dateinput.component.js +36 -33
  15. package/esm2015/datepicker/datepicker.component.js +29 -26
  16. package/esm2015/daterange/date-range-end-input.directive.js +4 -5
  17. package/esm2015/daterange/date-range-input.js +8 -11
  18. package/esm2015/daterange/date-range-popup.component.js +7 -9
  19. package/esm2015/daterange/date-range-start-input.directive.js +4 -5
  20. package/esm2015/daterange/date-range.component.js +2 -3
  21. package/esm2015/daterange/date-range.service.js +61 -0
  22. package/esm2015/main.js +0 -1
  23. package/esm2015/package-metadata.js +1 -1
  24. package/esm2015/util.js +12 -0
  25. package/fesm2015/kendo-angular-dateinputs.js +159 -162
  26. package/main.d.ts +0 -1
  27. package/package.json +6 -6
  28. package/util.d.ts +12 -0
  29. package/daterange/date-range-popup.service.d.ts +0 -52
  30. package/esm2015/daterange/date-range-popup.service.js +0 -87
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dateinputs",
3
- "version": "7.0.0-next.202204010857",
3
+ "version": "7.0.0-next.202204081436",
4
4
  "description": "Kendo UI for Angular Date Inputs Package - Everything you need to add date selection functionality to apps (DatePicker, TimePicker, DateInput, DateRangePicker, DateTimePicker, Calendar, and MultiViewCalendar).",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -34,17 +34,17 @@
34
34
  "dependencies": {
35
35
  "@progress/kendo-common": "^0.2.0",
36
36
  "@progress/kendo-date-math": "^1.1.0",
37
- "@progress/kendo-schematics": "next",
37
+ "@progress/kendo-schematics": "^3.0.0",
38
38
  "tslib": "^2.3.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@angular/common": "^12.0.0 || ^13.0.0",
42
42
  "@angular/core": "^12.0.0 || ^13.0.0",
43
43
  "@angular/forms": "^12.0.0 || ^13.0.0",
44
- "@progress/kendo-angular-common": "next",
45
- "@progress/kendo-angular-intl": "^3.1.0",
46
- "@progress/kendo-angular-l10n": "next",
47
- "@progress/kendo-angular-popup": "next",
44
+ "@progress/kendo-angular-common": ">3.0.0-next",
45
+ "@progress/kendo-angular-intl": ">4.0.0-next",
46
+ "@progress/kendo-angular-l10n": ">4.0.0-next",
47
+ "@progress/kendo-angular-popup": ">5.0.0-next",
48
48
  "@progress/kendo-licensing": "^1.1.1",
49
49
  "rxjs": "^6.5.3 || ^7.0.0"
50
50
  },
package/util.d.ts CHANGED
@@ -185,3 +185,15 @@ export declare const getRoundedClass: (rounded: DateInputRounded) => string;
185
185
  * Return the fillMode class based on the component and fillMode input.
186
186
  */
187
187
  export declare const getFillModeClass: (component: string, fillMode: DateInputFillMode) => string;
188
+ /**
189
+ * @hidden
190
+ */
191
+ export declare const DEFAULT_ROUNDED: DateInputRounded;
192
+ /**
193
+ * @hidden
194
+ */
195
+ export declare const DEFAULT_SIZE: DateInputSize;
196
+ /**
197
+ * @hidden
198
+ */
199
+ export declare const DEFAULT_FILL_MODE: DateInputFillMode;
@@ -1,52 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BehaviorSubject } from 'rxjs';
6
- import { DateRangePopupComponent } from './date-range-popup.component';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * A service that handles the communication between the components that are placed inside the DateRangeComponent.
10
- * For example, the start and end `DateInput` and `DateRangePopup` components.
11
- */
12
- export declare class DateRangePopupService {
13
- /**
14
- * An Observable instance that notifies when the `DateRangePopup` component is changed.
15
- */
16
- dateRangePopup$: BehaviorSubject<DateRangePopupComponent>;
17
- /**
18
- * Activates the registered `DateRangePopup` component.
19
- * The method opens the popup and focuses the calendar.
20
- */
21
- activatePopup(): void;
22
- /**
23
- * Deactivates the registered `DateRangePopup` component.
24
- * The method closes the popup.
25
- */
26
- deactivatePopup(): void;
27
- /**
28
- * @hidden
29
- *
30
- * Deactivates the registered `DateRangePopup` component and fires the `cancel` event.
31
- * The method closes the popup.
32
- */
33
- cancelPopup(): void;
34
- /**
35
- * Returns `true` when an active component that is placed inside the `DateRangeComponent` is detected.
36
- * For example, the opened popup or the focused DateInput.
37
- *
38
- * @returns `true` if an active component is present.
39
- */
40
- hasActiveComponent(startInputValue: any, endInputValue: any): boolean;
41
- /**
42
- * Registers a new `DateRangePopup` component. Notifies all `dateRangePopup$` listeners.
43
- */
44
- registerPopup(dateRangePopup: DateRangePopupComponent): void;
45
- /**
46
- * Completes all observables to mitigate possible memory leaks.
47
- * Calls the method when a component that uses it is destroyed.
48
- */
49
- destroy(): void;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePopupService, never>;
51
- static ɵprov: i0.ɵɵInjectableDeclaration<DateRangePopupService>;
52
- }
@@ -1,87 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Injectable } from '@angular/core';
6
- import { BehaviorSubject } from 'rxjs';
7
- import * as i0 from "@angular/core";
8
- const isActive = (cmp) => (cmp && cmp.isActive) || false;
9
- const hasActiveContent = (popup) => popup && popup.hasActiveContent();
10
- /**
11
- * A service that handles the communication between the components that are placed inside the DateRangeComponent.
12
- * For example, the start and end `DateInput` and `DateRangePopup` components.
13
- */
14
- export class DateRangePopupService {
15
- constructor() {
16
- /**
17
- * An Observable instance that notifies when the `DateRangePopup` component is changed.
18
- */
19
- this.dateRangePopup$ = new BehaviorSubject(null);
20
- }
21
- /**
22
- * Activates the registered `DateRangePopup` component.
23
- * The method opens the popup and focuses the calendar.
24
- */
25
- activatePopup() {
26
- const dateRangePopup = this.dateRangePopup$.value;
27
- if (!dateRangePopup) {
28
- return;
29
- }
30
- dateRangePopup.activate();
31
- }
32
- /**
33
- * Deactivates the registered `DateRangePopup` component.
34
- * The method closes the popup.
35
- */
36
- deactivatePopup() {
37
- const dateRangePopup = this.dateRangePopup$.value;
38
- if (!(dateRangePopup && dateRangePopup.show)) {
39
- return;
40
- }
41
- dateRangePopup.show = false;
42
- }
43
- /**
44
- * @hidden
45
- *
46
- * Deactivates the registered `DateRangePopup` component and fires the `cancel` event.
47
- * The method closes the popup.
48
- */
49
- cancelPopup() {
50
- const dateRangePopup = this.dateRangePopup$.value;
51
- if (!(dateRangePopup && dateRangePopup.show)) {
52
- return;
53
- }
54
- dateRangePopup.cancelPopup();
55
- }
56
- /**
57
- * Returns `true` when an active component that is placed inside the `DateRangeComponent` is detected.
58
- * For example, the opened popup or the focused DateInput.
59
- *
60
- * @returns `true` if an active component is present.
61
- */
62
- hasActiveComponent(startInputValue, endInputValue) {
63
- const popup = this.dateRangePopup$.value;
64
- const isPopup = isActive(popup);
65
- const isStart = isActive(startInputValue);
66
- const isEnd = isActive(endInputValue);
67
- return isPopup || isStart || isEnd || hasActiveContent(popup) || false;
68
- }
69
- /**
70
- * Registers a new `DateRangePopup` component. Notifies all `dateRangePopup$` listeners.
71
- */
72
- registerPopup(dateRangePopup) {
73
- this.dateRangePopup$.next(dateRangePopup);
74
- }
75
- /**
76
- * Completes all observables to mitigate possible memory leaks.
77
- * Calls the method when a component that uses it is destroyed.
78
- */
79
- destroy() {
80
- this.dateRangePopup$.complete();
81
- }
82
- }
83
- DateRangePopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateRangePopupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
84
- DateRangePopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateRangePopupService });
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateRangePopupService, decorators: [{
86
- type: Injectable
87
- }] });