@progress/kendo-angular-dateinputs 24.0.0-develop.8 → 24.0.0
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/codemods/libs/common/src/codemods/utils.js +53 -18
- package/codemods/libs/dateinputs/codemods/v24/datetimepicker-rendering-changes.js +25 -0
- package/dateinput/dateinput.component.d.ts +7 -5
- package/datetimepicker/datetimepicker.component.d.ts +17 -0
- package/fesm2022/progress-kendo-angular-dateinputs.mjs +118 -129
- package/package-metadata.mjs +2 -2
- package/package.json +19 -12
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
"use strict";
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.tsInterfaceTransformer = exports.tsPropertyValueTransformer = exports.tsPropertyTransformer = exports.tsComponentPropertyRemoval = exports.attributeRemoval = exports.attributeValueUpdate = exports.attributeNameValueUpdate = exports.attributeNameUpdate = exports.eventUpdate = exports.htmlTransformer = exports.blockTextElements = void 0;
|
|
7
|
+
exports.tsInterfaceTransformer = exports.tsPropertyValueTransformer = exports.tsPropertyTransformer = exports.tsComponentPropertyRemoval = exports.attributeConditionalRemoval = exports.attributeRemoval = exports.attributeValueUpdate = exports.attributeNameValueUpdate = exports.attributeNameUpdate = exports.eventUpdate = exports.htmlTransformer = exports.blockTextElements = void 0;
|
|
8
8
|
exports.hasKendoInTemplate = hasKendoInTemplate;
|
|
9
9
|
exports.isImportedFromPackage = isImportedFromPackage;
|
|
10
10
|
exports.tsPropertyRemoval = tsPropertyRemoval;
|
|
@@ -345,6 +345,34 @@ const attributeRemoval = (templateContent, tagName, attributeName, propertyToRem
|
|
|
345
345
|
});
|
|
346
346
|
};
|
|
347
347
|
exports.attributeRemoval = attributeRemoval;
|
|
348
|
+
/**
|
|
349
|
+
* Removes an attribute from a tag only when its value matches one of the specified values.
|
|
350
|
+
* Handles both static (`attr="value"`) and bound (`[attr]="'value'"`) forms.
|
|
351
|
+
*
|
|
352
|
+
* @param templateContent - The template string content to transform
|
|
353
|
+
* @param tagName - The HTML tag name to target (e.g., 'kendo-button')
|
|
354
|
+
* @param attributeName - The attribute name to conditionally remove
|
|
355
|
+
* @param values - The attribute values that trigger removal
|
|
356
|
+
* @returns The transformed template content
|
|
357
|
+
*/
|
|
358
|
+
const attributeConditionalRemoval = (templateContent, tagName, attributeName, values) => {
|
|
359
|
+
const escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
360
|
+
const escapedTag = escapeRegex(tagName);
|
|
361
|
+
const escapedAttr = escapeRegex(attributeName);
|
|
362
|
+
// Remove bound attributes [attribute]="value"
|
|
363
|
+
const boundAttributePattern = new RegExp(`(<${escapedTag}[^>]*?)\\s+\\[${escapedAttr}\\]\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
|
|
364
|
+
// Remove static attributes attribute="value"
|
|
365
|
+
const staticAttributePattern = new RegExp(`(<${escapedTag}[^>]*?)\\s+${escapedAttr}\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
|
|
366
|
+
// Strip outer and inner quotes to extract the raw value for comparison
|
|
367
|
+
const matchesValue = (raw) => {
|
|
368
|
+
const inner = raw.replace(/^["']|["']$/g, '').replace(/^['"]|['"]$/g, '');
|
|
369
|
+
return values.includes(inner);
|
|
370
|
+
};
|
|
371
|
+
let result = templateContent.replace(boundAttributePattern, (match, prefix, value, suffix) => matchesValue(value) ? prefix + suffix : match);
|
|
372
|
+
result = result.replace(staticAttributePattern, (match, prefix, value, suffix) => matchesValue(value) ? prefix + suffix : match);
|
|
373
|
+
return result;
|
|
374
|
+
};
|
|
375
|
+
exports.attributeConditionalRemoval = attributeConditionalRemoval;
|
|
348
376
|
function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propertyName) {
|
|
349
377
|
if (source.includes(typeName)) {
|
|
350
378
|
if (!isImportedFromPackage(rootSource, j, packageName, typeName)) {
|
|
@@ -441,8 +469,31 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
441
469
|
}
|
|
442
470
|
}
|
|
443
471
|
});
|
|
444
|
-
// Handle return statements with object literals
|
|
472
|
+
// Handle return statements with object literals, but only when the enclosing
|
|
473
|
+
// function's declared return type matches typeName. This prevents removing
|
|
474
|
+
// unrelated propertyName keys from object literals returned in other functions.
|
|
475
|
+
const enclosingFunctionReturnsType = (nodePath) => {
|
|
476
|
+
let current = nodePath.parent;
|
|
477
|
+
while (current) {
|
|
478
|
+
const node = current.node;
|
|
479
|
+
if (node.type === 'FunctionDeclaration' ||
|
|
480
|
+
node.type === 'FunctionExpression' ||
|
|
481
|
+
node.type === 'ArrowFunctionExpression' ||
|
|
482
|
+
node.type === 'ClassMethod' ||
|
|
483
|
+
node.type === 'ObjectMethod') {
|
|
484
|
+
return !!(node.returnType &&
|
|
485
|
+
node.returnType.typeAnnotation?.type === 'TSTypeReference' &&
|
|
486
|
+
node.returnType.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
487
|
+
node.returnType.typeAnnotation.typeName.name === typeName);
|
|
488
|
+
}
|
|
489
|
+
current = current.parent;
|
|
490
|
+
}
|
|
491
|
+
return false;
|
|
492
|
+
};
|
|
445
493
|
rootSource.find(j.ReturnStatement).forEach((path) => {
|
|
494
|
+
if (!enclosingFunctionReturnsType(path)) {
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
446
497
|
if (path.node.argument && path.node.argument.type === 'ObjectExpression') {
|
|
447
498
|
const properties = path.node.argument.properties;
|
|
448
499
|
const propIndex = properties.findIndex((p) => p.type === 'ObjectProperty' &&
|
|
@@ -491,22 +542,6 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
491
542
|
statement.remove();
|
|
492
543
|
}
|
|
493
544
|
});
|
|
494
|
-
// Handle nested member expressions like chatConfig.chat.modelFields.pinnedByField
|
|
495
|
-
rootSource
|
|
496
|
-
.find(j.AssignmentExpression, {
|
|
497
|
-
left: {
|
|
498
|
-
type: 'MemberExpression',
|
|
499
|
-
object: {
|
|
500
|
-
type: 'MemberExpression',
|
|
501
|
-
},
|
|
502
|
-
property: {
|
|
503
|
-
name: propertyName,
|
|
504
|
-
},
|
|
505
|
-
},
|
|
506
|
-
})
|
|
507
|
-
.forEach((path) => {
|
|
508
|
-
j(path).closest(j.ExpressionStatement).remove();
|
|
509
|
-
});
|
|
510
545
|
return rootSource;
|
|
511
546
|
}
|
|
512
547
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.aiInstructions = exports.aiInstructionsGroupStartEnd = void 0;
|
|
8
|
+
exports.default = default_1;
|
|
9
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
10
|
+
exports.aiInstructionsGroupStartEnd = `k-group-start and k-group-end — removed from DateTimePicker.
|
|
11
|
+
The DateTimePicker now uses SegmentedControl instead of buttons for switching between date and time pickers in the popup.
|
|
12
|
+
Remove any CSS rules or test assertions targeting .k-group-start or .k-group-end within the DateTimePicker context.`;
|
|
13
|
+
exports.aiInstructions = `Review your stylesheets, test files, and any code that references these DateTimePicker classes:
|
|
14
|
+
|
|
15
|
+
${exports.aiInstructionsGroupStartEnd}`;
|
|
16
|
+
const patternGroupStart = (0, codemods_1.makePattern)(['k-group-start']);
|
|
17
|
+
const patternGroupEnd = (0, codemods_1.makePattern)(['k-group-end']);
|
|
18
|
+
function default_1(fileInfo) {
|
|
19
|
+
if ((0, codemods_1.isRenderingChangeTarget)(fileInfo.path)) {
|
|
20
|
+
if (patternGroupStart.test(fileInfo.source) || patternGroupEnd.test(fileInfo.source)) {
|
|
21
|
+
(0, codemods_1.writeInstructionMarker)(exports.aiInstructionsGroupStartEnd, __filename, fileInfo.path);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return fileInfo.source;
|
|
25
|
+
}
|
|
@@ -45,10 +45,10 @@ export declare class DateInputIntl {
|
|
|
45
45
|
* Represents the [Kendo UI DateInput component for Angular](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput).
|
|
46
46
|
*
|
|
47
47
|
* ```html
|
|
48
|
-
* <kendo-dateinput
|
|
48
|
+
* <kendo-dateinput></kendo-dateinput>
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
|
-
|
|
51
|
+
* @remarks
|
|
52
52
|
* Supported children components are: {@link DateInputCustomMessagesComponent}.
|
|
53
53
|
*/
|
|
54
54
|
export declare class DateInputComponent implements OnInit, AfterViewInit, ControlValueAccessor, OnChanges, OnDestroy, Validator {
|
|
@@ -63,7 +63,7 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
|
|
|
63
63
|
/**
|
|
64
64
|
* @hidden
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
chevronUpIcon: SVGIcon;
|
|
67
67
|
/**
|
|
68
68
|
* @hidden
|
|
69
69
|
*/
|
|
@@ -71,7 +71,7 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
|
|
|
71
71
|
/**
|
|
72
72
|
* @hidden
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
chevronDownIcon: SVGIcon;
|
|
75
75
|
/**
|
|
76
76
|
* @hidden
|
|
77
77
|
*/
|
|
@@ -308,7 +308,6 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
|
|
|
308
308
|
* @hidden
|
|
309
309
|
*/
|
|
310
310
|
dateInput: ElementRef;
|
|
311
|
-
get wrapperClass(): boolean;
|
|
312
311
|
get disabledClass(): boolean;
|
|
313
312
|
get inputElement(): any;
|
|
314
313
|
get inputValue(): string;
|
|
@@ -426,6 +425,9 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
|
|
|
426
425
|
* @hidden
|
|
427
426
|
*/
|
|
428
427
|
writeValue(value: Date): void;
|
|
428
|
+
/**
|
|
429
|
+
* Resets the value of the DateInput component to `null` and triggers the `valueChange` event.
|
|
430
|
+
*/
|
|
429
431
|
resetInput(): void;
|
|
430
432
|
/**
|
|
431
433
|
* @hidden
|
|
@@ -38,6 +38,7 @@ import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
|
38
38
|
import { HeaderTemplateDirective } from '../calendar/templates/header-template.directive';
|
|
39
39
|
import { FooterTemplateDirective } from '../calendar/templates/footer-template.directive';
|
|
40
40
|
import { WeekDaysFormat } from '../common/models/week-days-format';
|
|
41
|
+
import { SegmentedItemSettings } from '@progress/kendo-angular-buttons';
|
|
41
42
|
import * as i0 from "@angular/core";
|
|
42
43
|
/**
|
|
43
44
|
* Represents the Kendo UI DateTimePicker component for Angular.
|
|
@@ -640,6 +641,22 @@ export declare class DateTimePickerComponent extends MultiTabStop implements OnI
|
|
|
640
641
|
* @hidden
|
|
641
642
|
*/
|
|
642
643
|
handleBlur(event?: FocusEvent): void;
|
|
644
|
+
/**
|
|
645
|
+
* @hidden
|
|
646
|
+
*/
|
|
647
|
+
get tabItems(): SegmentedItemSettings[];
|
|
648
|
+
/**
|
|
649
|
+
* @hidden
|
|
650
|
+
*/
|
|
651
|
+
get activeTabIndex(): number;
|
|
652
|
+
/**
|
|
653
|
+
* @hidden
|
|
654
|
+
*/
|
|
655
|
+
onTabChange(index: number): void;
|
|
656
|
+
/**
|
|
657
|
+
* @hidden
|
|
658
|
+
*/
|
|
659
|
+
handleButtonGroupKeydown(event: KeyboardEvent): void;
|
|
643
660
|
/**
|
|
644
661
|
* @hidden
|
|
645
662
|
*/
|
|
@@ -9,15 +9,15 @@ import * as i1$1 from '@progress/kendo-angular-l10n';
|
|
|
9
9
|
import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
|
|
10
10
|
import { cloneDate, MS_PER_HOUR, MS_PER_MINUTE, addDays, getDate, isEqual, lastDecadeOfCentury, firstDecadeOfCentury, addCenturies, addDecades, lastYearOfDecade, firstYearOfDecade, createDate, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, firstDayOfMonth, addMonths, addWeeks, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
|
|
11
11
|
import * as i19 from '@progress/kendo-angular-common';
|
|
12
|
-
import { normalizeKeys, Keys, isDocumentAvailable, EventsOutsideAngularDirective, guid, hasObservers, isObject, KendoInput, ResizeSensorComponent, isObjectPresent, removeHTMLAttributes, parseAttributes, anyChanged, isControlRequired, setHTMLAttributes, MultiTabStop, parseCSSClassNames, ToggleButtonTabStopDirective, ResizeBatchService, KENDO_TOGGLEBUTTONTABSTOP } from '@progress/kendo-angular-common';
|
|
12
|
+
import { normalizeKeys, Keys, isDocumentAvailable, EventsOutsideAngularDirective, guid, hasObservers, isObject, KendoInput, ResizeSensorComponent, KENDO_WEBMCP_HOST, isObjectPresent, removeHTMLAttributes, parseAttributes, anyChanged, isControlRequired, setHTMLAttributes, MultiTabStop, parseCSSClassNames, ToggleButtonTabStopDirective, ResizeBatchService, KENDO_TOGGLEBUTTONTABSTOP } from '@progress/kendo-angular-common';
|
|
13
13
|
export { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
|
|
14
14
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
15
|
import * as i1 from '@progress/kendo-angular-intl';
|
|
16
16
|
import { localeData } from '@progress/kendo-angular-intl';
|
|
17
17
|
import { Subject, Subscription, ReplaySubject, Observable, combineLatest, of, interval, animationFrameScheduler, EMPTY, fromEvent, from, BehaviorSubject, merge } from 'rxjs';
|
|
18
18
|
import { NgTemplateOutlet, NgClass, NgStyle } from '@angular/common';
|
|
19
|
-
import { chevronRightIcon, chevronLeftIcon,
|
|
20
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
19
|
+
import { chevronRightIcon, chevronLeftIcon, chevronUpIcon, xIcon, chevronDownIcon, calendarIcon, checkIcon, clockIcon } from '@progress/kendo-svg-icons';
|
|
20
|
+
import { ButtonComponent, SegmentedControlComponent } from '@progress/kendo-angular-buttons';
|
|
21
21
|
import { map, scan, takeWhile, debounceTime, tap, filter } from 'rxjs/operators';
|
|
22
22
|
import { DateInput } from '@progress/kendo-dateinputs-common';
|
|
23
23
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
@@ -36,8 +36,8 @@ const packageMetadata = {
|
|
|
36
36
|
productName: 'Kendo UI for Angular',
|
|
37
37
|
productCode: 'KENDOUIANGULAR',
|
|
38
38
|
productCodes: ['KENDOUIANGULAR'],
|
|
39
|
-
publishDate:
|
|
40
|
-
version: '24.0.0
|
|
39
|
+
publishDate: 1779273455,
|
|
40
|
+
version: '24.0.0',
|
|
41
41
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -2811,7 +2811,7 @@ class HeaderComponent {
|
|
|
2811
2811
|
}
|
|
2812
2812
|
</span>
|
|
2813
2813
|
}
|
|
2814
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"
|
|
2814
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
2815
2815
|
}
|
|
2816
2816
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
2817
2817
|
type: Component,
|
|
@@ -3534,7 +3534,7 @@ class FooterComponent {
|
|
|
3534
3534
|
{{intl.formatDate(getToday(), 'D')}}
|
|
3535
3535
|
</button>
|
|
3536
3536
|
}
|
|
3537
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"
|
|
3537
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
3538
3538
|
}
|
|
3539
3539
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FooterComponent, decorators: [{
|
|
3540
3540
|
type: Component,
|
|
@@ -8022,7 +8022,8 @@ class CalendarComponent {
|
|
|
8022
8022
|
},
|
|
8023
8023
|
NavigationService,
|
|
8024
8024
|
ScrollSyncService,
|
|
8025
|
-
SelectionService
|
|
8025
|
+
SelectionService,
|
|
8026
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => CalendarComponent) }
|
|
8026
8027
|
], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }, { propertyName: "navigationItemTemplate", first: true, predicate: NavigationItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "navigationView", first: true, predicate: NavigationComponent, descendants: true }, { propertyName: "monthView", first: true, predicate: ViewListComponent, descendants: true }, { propertyName: "multiViewCalendar", first: true, predicate: MultiViewCalendarComponent, descendants: true }], exportAs: ["kendo-calendar"], usesOnChanges: true, ngImport: i0, template: `
|
|
8027
8028
|
<ng-container kendoCalendarLocalizedMessages
|
|
8028
8029
|
i18n-today="kendo.calendar.today|The label for the today button in the calendar header"
|
|
@@ -8163,7 +8164,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
8163
8164
|
},
|
|
8164
8165
|
NavigationService,
|
|
8165
8166
|
ScrollSyncService,
|
|
8166
|
-
SelectionService
|
|
8167
|
+
SelectionService,
|
|
8168
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => CalendarComponent) }
|
|
8167
8169
|
],
|
|
8168
8170
|
selector: 'kendo-calendar',
|
|
8169
8171
|
template: `
|
|
@@ -8581,10 +8583,10 @@ class DateInputIntl {
|
|
|
8581
8583
|
* Represents the [Kendo UI DateInput component for Angular](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput).
|
|
8582
8584
|
*
|
|
8583
8585
|
* ```html
|
|
8584
|
-
* <kendo-dateinput
|
|
8586
|
+
* <kendo-dateinput></kendo-dateinput>
|
|
8585
8587
|
* ```
|
|
8586
8588
|
*
|
|
8587
|
-
|
|
8589
|
+
* @remarks
|
|
8588
8590
|
* Supported children components are: {@link DateInputCustomMessagesComponent}.
|
|
8589
8591
|
*/
|
|
8590
8592
|
class DateInputComponent {
|
|
@@ -8599,7 +8601,7 @@ class DateInputComponent {
|
|
|
8599
8601
|
/**
|
|
8600
8602
|
* @hidden
|
|
8601
8603
|
*/
|
|
8602
|
-
|
|
8604
|
+
chevronUpIcon = chevronUpIcon;
|
|
8603
8605
|
/**
|
|
8604
8606
|
* @hidden
|
|
8605
8607
|
*/
|
|
@@ -8607,7 +8609,7 @@ class DateInputComponent {
|
|
|
8607
8609
|
/**
|
|
8608
8610
|
* @hidden
|
|
8609
8611
|
*/
|
|
8610
|
-
|
|
8612
|
+
chevronDownIcon = chevronDownIcon;
|
|
8611
8613
|
/**
|
|
8612
8614
|
* @hidden
|
|
8613
8615
|
*/
|
|
@@ -8904,9 +8906,6 @@ class DateInputComponent {
|
|
|
8904
8906
|
* @hidden
|
|
8905
8907
|
*/
|
|
8906
8908
|
dateInput;
|
|
8907
|
-
get wrapperClass() {
|
|
8908
|
-
return true;
|
|
8909
|
-
}
|
|
8910
8909
|
get disabledClass() {
|
|
8911
8910
|
return this.disabled;
|
|
8912
8911
|
}
|
|
@@ -9059,6 +9058,8 @@ class DateInputComponent {
|
|
|
9059
9058
|
* @hidden
|
|
9060
9059
|
*/
|
|
9061
9060
|
ngOnInit() {
|
|
9061
|
+
this.renderer.addClass(this.wrapper.nativeElement, 'k-input');
|
|
9062
|
+
this.renderer.addClass(this.wrapper.nativeElement, 'k-dateinput');
|
|
9062
9063
|
if (this.kendoDate) {
|
|
9063
9064
|
this.kendoDate.destroy();
|
|
9064
9065
|
}
|
|
@@ -9197,6 +9198,9 @@ class DateInputComponent {
|
|
|
9197
9198
|
this.kendoDate?.refreshElementValue();
|
|
9198
9199
|
this.cdr.markForCheck();
|
|
9199
9200
|
}
|
|
9201
|
+
/**
|
|
9202
|
+
* Resets the value of the DateInput component to `null` and triggers the `valueChange` event.
|
|
9203
|
+
*/
|
|
9200
9204
|
resetInput() {
|
|
9201
9205
|
this.isDateIncomplete = false;
|
|
9202
9206
|
this.writeValue(null);
|
|
@@ -9380,7 +9384,7 @@ class DateInputComponent {
|
|
|
9380
9384
|
setHTMLAttributes(attributesToRender, this.renderer, this.dateInput.nativeElement, this.ngZone);
|
|
9381
9385
|
}
|
|
9382
9386
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DateInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.IntlService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i1$1.LocalizationService }, { token: PickerService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
9383
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DateInputComponent, isStandalone: true, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", clearButton: "clearButton", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-
|
|
9387
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DateInputComponent, isStandalone: true, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", clearButton: "clearButton", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
9384
9388
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateInputComponent), multi: true },
|
|
9385
9389
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateInputComponent), multi: true },
|
|
9386
9390
|
{ provide: L10N_PREFIX, useValue: 'kendo.dateinput' },
|
|
@@ -9451,8 +9455,8 @@ class DateInputComponent {
|
|
|
9451
9455
|
[attr.aria-label]="localization.get('increment')"
|
|
9452
9456
|
>
|
|
9453
9457
|
<kendo-icon-wrapper
|
|
9454
|
-
name="
|
|
9455
|
-
[svgIcon]="
|
|
9458
|
+
name="chevron-up"
|
|
9459
|
+
[svgIcon]="chevronUpIcon"
|
|
9456
9460
|
innerCssClass="k-button-icon"
|
|
9457
9461
|
>
|
|
9458
9462
|
</kendo-icon-wrapper>
|
|
@@ -9469,8 +9473,8 @@ class DateInputComponent {
|
|
|
9469
9473
|
[attr.aria-label]="localization.get('decrement')"
|
|
9470
9474
|
>
|
|
9471
9475
|
<kendo-icon-wrapper
|
|
9472
|
-
name="
|
|
9473
|
-
[svgIcon]="
|
|
9476
|
+
name="chevron-down"
|
|
9477
|
+
[svgIcon]="chevronDownIcon"
|
|
9474
9478
|
innerCssClass="k-button-icon"
|
|
9475
9479
|
>
|
|
9476
9480
|
</kendo-icon-wrapper>
|
|
@@ -9557,8 +9561,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
9557
9561
|
[attr.aria-label]="localization.get('increment')"
|
|
9558
9562
|
>
|
|
9559
9563
|
<kendo-icon-wrapper
|
|
9560
|
-
name="
|
|
9561
|
-
[svgIcon]="
|
|
9564
|
+
name="chevron-up"
|
|
9565
|
+
[svgIcon]="chevronUpIcon"
|
|
9562
9566
|
innerCssClass="k-button-icon"
|
|
9563
9567
|
>
|
|
9564
9568
|
</kendo-icon-wrapper>
|
|
@@ -9575,8 +9579,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
9575
9579
|
[attr.aria-label]="localization.get('decrement')"
|
|
9576
9580
|
>
|
|
9577
9581
|
<kendo-icon-wrapper
|
|
9578
|
-
name="
|
|
9579
|
-
[svgIcon]="
|
|
9582
|
+
name="chevron-down"
|
|
9583
|
+
[svgIcon]="chevronDownIcon"
|
|
9580
9584
|
innerCssClass="k-button-icon"
|
|
9581
9585
|
>
|
|
9582
9586
|
</kendo-icon-wrapper>
|
|
@@ -9673,12 +9677,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
9673
9677
|
}], dateInput: [{
|
|
9674
9678
|
type: ViewChild,
|
|
9675
9679
|
args: ['dateInput', { static: true }]
|
|
9676
|
-
}], wrapperClass: [{
|
|
9677
|
-
type: HostBinding,
|
|
9678
|
-
args: ['class.k-input']
|
|
9679
|
-
}, {
|
|
9680
|
-
type: HostBinding,
|
|
9681
|
-
args: ['class.k-dateinput']
|
|
9682
9680
|
}], disabledClass: [{
|
|
9683
9681
|
type: HostBinding,
|
|
9684
9682
|
args: ['class.k-disabled']
|
|
@@ -11018,7 +11016,8 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11018
11016
|
{
|
|
11019
11017
|
provide: L10N_PREFIX,
|
|
11020
11018
|
useValue: 'kendo.datepicker'
|
|
11021
|
-
}
|
|
11019
|
+
},
|
|
11020
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DatePickerComponent) }
|
|
11022
11021
|
], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }, { propertyName: "navigationItemTemplate", first: true, predicate: NavigationItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "toggleButton", first: true, predicate: ["toggleButton"], descendants: true, static: true }, { propertyName: "actionSheet", first: true, predicate: ["actionSheet"], descendants: true }], exportAs: ["kendo-datepicker"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
11023
11022
|
<ng-container kendoDatePickerLocalizedMessages
|
|
11024
11023
|
i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"
|
|
@@ -11208,7 +11207,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11208
11207
|
</kendo-calendar-messages>
|
|
11209
11208
|
</kendo-calendar>
|
|
11210
11209
|
</ng-template>
|
|
11211
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]" }, { kind: "component", type: DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"
|
|
11210
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]" }, { kind: "component", type: DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: CalendarComponent, selector: "kendo-calendar", inputs: ["showOtherMonthDays", "id", "focusedDate", "min", "max", "rangeValidation", "weekDaysFormat", "footer", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate", "size", "activeRangeEnd"], outputs: ["closePopup", "activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { kind: "component", type: CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11212
11211
|
}
|
|
11213
11212
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
11214
11213
|
type: Component,
|
|
@@ -11226,7 +11225,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
11226
11225
|
{
|
|
11227
11226
|
provide: L10N_PREFIX,
|
|
11228
11227
|
useValue: 'kendo.datepicker'
|
|
11229
|
-
}
|
|
11228
|
+
},
|
|
11229
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DatePickerComponent) }
|
|
11230
11230
|
],
|
|
11231
11231
|
selector: 'kendo-datepicker',
|
|
11232
11232
|
template: `
|
|
@@ -11628,7 +11628,7 @@ const listItem = () => li('<span>02</span>', 'k-item');
|
|
|
11628
11628
|
const list = () => ul([listItem()], 'k-reset');
|
|
11629
11629
|
const scrollable = () => (div([list()], 'k-time-container k-flex k-content k-scrollable'));
|
|
11630
11630
|
const actionSheetContent = (isDateTimePicker) => [
|
|
11631
|
-
isDateTimePicker ? div([div('button', 'k-
|
|
11631
|
+
isDateTimePicker ? div([div('button', 'k-segmented-control-button')], 'k-segmented-control') : null,
|
|
11632
11632
|
div([
|
|
11633
11633
|
div([span('04:08:48:49 AM', 'k-title k-timeselector-title'),
|
|
11634
11634
|
div('now', 'k-button k-button-md')
|
|
@@ -14669,7 +14669,8 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14669
14669
|
provide: L10N_PREFIX,
|
|
14670
14670
|
useValue: 'kendo.timepicker'
|
|
14671
14671
|
},
|
|
14672
|
-
PickerService
|
|
14672
|
+
PickerService,
|
|
14673
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => TimePickerComponent) }
|
|
14673
14674
|
], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "toggleButton", first: true, predicate: ["toggleButton"], descendants: true, static: true }, { propertyName: "actionSheet", first: true, predicate: ["actionSheet"], descendants: true }], exportAs: ["kendo-timepicker"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
14674
14675
|
<ng-container kendoTimePickerLocalizedMessages
|
|
14675
14676
|
i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"
|
|
@@ -14889,7 +14890,7 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14889
14890
|
</kendo-timeselector-messages>
|
|
14890
14891
|
</kendo-timeselector>
|
|
14891
14892
|
</ng-template>
|
|
14892
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { kind: "component", type: DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"
|
|
14893
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { kind: "component", type: DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "isAdaptiveEnabled", "isDateTimePicker", "steps", "value"], outputs: ["valueChange", "valueReject", "tabOutLastPart", "tabOutFirstPart", "tabOutNow"], exportAs: ["kendo-timeselector"] }, { kind: "component", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14893
14894
|
}
|
|
14894
14895
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
14895
14896
|
type: Component,
|
|
@@ -14907,7 +14908,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
14907
14908
|
provide: L10N_PREFIX,
|
|
14908
14909
|
useValue: 'kendo.timepicker'
|
|
14909
14910
|
},
|
|
14910
|
-
PickerService
|
|
14911
|
+
PickerService,
|
|
14912
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => TimePickerComponent) }
|
|
14911
14913
|
],
|
|
14912
14914
|
selector: 'kendo-timepicker',
|
|
14913
14915
|
template: `
|
|
@@ -15419,8 +15421,8 @@ const DEFAULT_TIMESELECTOR_FORMAT = 't';
|
|
|
15419
15421
|
const TWO_DIGIT_YEAR_MAX = 68;
|
|
15420
15422
|
const ACCEPT_BUTTON_SELECTOR = '.k-button.k-time-accept';
|
|
15421
15423
|
const CANCEL_BUTTON_SELECOTR = '.k-button.k-time-cancel';
|
|
15422
|
-
const DATE_TAB_BUTTON_SELECTOR = '.k-button
|
|
15423
|
-
const TIME_TAB_BUTTON_SELECTOR = '.k-button
|
|
15424
|
+
const DATE_TAB_BUTTON_SELECTOR = '.k-segmented-control-button:first-of-type';
|
|
15425
|
+
const TIME_TAB_BUTTON_SELECTOR = '.k-segmented-control-button:last-of-type';
|
|
15424
15426
|
const TODAY_BUTTON_SELECTOR = '.k-button.k-calendar-nav-today';
|
|
15425
15427
|
/**
|
|
15426
15428
|
* Represents the Kendo UI DateTimePicker component for Angular.
|
|
@@ -16363,6 +16365,39 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16363
16365
|
this.cdr.markForCheck();
|
|
16364
16366
|
});
|
|
16365
16367
|
}
|
|
16368
|
+
/**
|
|
16369
|
+
* @hidden
|
|
16370
|
+
*/
|
|
16371
|
+
get tabItems() {
|
|
16372
|
+
return [
|
|
16373
|
+
{ text: this.localization.get('dateTab'), title: this.localization.get('dateTabLabel') },
|
|
16374
|
+
{ text: this.localization.get('timeTab'), title: this.localization.get('timeTabLabel') }
|
|
16375
|
+
];
|
|
16376
|
+
}
|
|
16377
|
+
/**
|
|
16378
|
+
* @hidden
|
|
16379
|
+
*/
|
|
16380
|
+
get activeTabIndex() {
|
|
16381
|
+
return this.activeTab === 'date' ? 0 : 1;
|
|
16382
|
+
}
|
|
16383
|
+
/**
|
|
16384
|
+
* @hidden
|
|
16385
|
+
*/
|
|
16386
|
+
onTabChange(index) {
|
|
16387
|
+
this.changeActiveTab(index === 0 ? 'date' : 'time');
|
|
16388
|
+
}
|
|
16389
|
+
/**
|
|
16390
|
+
* @hidden
|
|
16391
|
+
*/
|
|
16392
|
+
handleButtonGroupKeydown(event) {
|
|
16393
|
+
if (event.key !== Keys.Tab) {
|
|
16394
|
+
return;
|
|
16395
|
+
}
|
|
16396
|
+
if ((event.shiftKey && event.target === this.dateTabButton) ||
|
|
16397
|
+
(!event.shiftKey && event.target === this.timeTabButton)) {
|
|
16398
|
+
this.handleTab(event);
|
|
16399
|
+
}
|
|
16400
|
+
}
|
|
16366
16401
|
/**
|
|
16367
16402
|
* @hidden
|
|
16368
16403
|
*/
|
|
@@ -16856,7 +16891,8 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16856
16891
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateTimePickerComponent), multi: true },
|
|
16857
16892
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateTimePickerComponent), multi: true },
|
|
16858
16893
|
{ provide: KendoInput, useExisting: forwardRef(() => DateTimePickerComponent) },
|
|
16859
|
-
{ provide: MultiTabStop, useExisting: forwardRef(() => DateTimePickerComponent) }
|
|
16894
|
+
{ provide: MultiTabStop, useExisting: forwardRef(() => DateTimePickerComponent) },
|
|
16895
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DateTimePickerComponent) }
|
|
16860
16896
|
], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "toggleButton", first: true, predicate: ["toggleButton"], descendants: true, static: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, read: TemplateRef, static: true }, { propertyName: "actionSheet", first: true, predicate: ["actionSheet"], descendants: true }], exportAs: ["kendo-datetimepicker"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
16861
16897
|
<ng-container
|
|
16862
16898
|
kendoDateTimePickerLocalizedMessages
|
|
@@ -17097,47 +17133,20 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17097
17133
|
}"
|
|
17098
17134
|
[scope]="this"
|
|
17099
17135
|
>
|
|
17100
|
-
<div class="k-datetime-buttongroup"
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
|
|
17104
|
-
|
|
17105
|
-
|
|
17106
|
-
|
|
17107
|
-
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
|
|
17114
|
-
[attr.title]="localization.get('dateTabLabel')"
|
|
17115
|
-
[attr.aria-label]="localization.get('dateTabLabel')"
|
|
17116
|
-
[kendoEventsOutsideAngular]="{
|
|
17117
|
-
click: changeActiveTab.bind(this, 'date'),
|
|
17118
|
-
'keydown.shift.tab': handleTab
|
|
17119
|
-
}"
|
|
17120
|
-
[scope]="this"
|
|
17121
|
-
>
|
|
17122
|
-
{{localization.get('dateTab')}}
|
|
17123
|
-
</button>
|
|
17124
|
-
<button kendoButton
|
|
17125
|
-
type="button"
|
|
17126
|
-
class="k-group-end"
|
|
17127
|
-
[size]="isAdaptive ? 'large' : size"
|
|
17128
|
-
[class.k-selected]="activeTab === 'time'"
|
|
17129
|
-
[attr.aria-pressed]="activeTab === 'time' ? 'true' : 'false'"
|
|
17130
|
-
[attr.title]="localization.get('timeTabLabel')"
|
|
17131
|
-
[attr.aria-label]="localization.get('timeTabLabel')"
|
|
17132
|
-
[kendoEventsOutsideAngular]="{
|
|
17133
|
-
click: changeActiveTab.bind(this, 'time'),
|
|
17134
|
-
'keydown.tab': handleTab
|
|
17135
|
-
}"
|
|
17136
|
-
[scope]="this"
|
|
17137
|
-
>
|
|
17138
|
-
{{localization.get('timeTab')}}
|
|
17139
|
-
</button>
|
|
17140
|
-
</div>
|
|
17136
|
+
<div class="k-datetime-buttongroup">
|
|
17137
|
+
<kendo-segmented-control
|
|
17138
|
+
[items]="tabItems"
|
|
17139
|
+
[selected]="activeTabIndex"
|
|
17140
|
+
[size]="isAdaptive ? 'large' : size"
|
|
17141
|
+
layoutMode="stretch"
|
|
17142
|
+
(selectedChange)="onTabChange($event)"
|
|
17143
|
+
[kendoEventsOutsideAngular]="{
|
|
17144
|
+
focusin: handleFocus,
|
|
17145
|
+
focusout: handleBlur,
|
|
17146
|
+
keydown: handleButtonGroupKeydown
|
|
17147
|
+
}"
|
|
17148
|
+
[scope]="this">
|
|
17149
|
+
</kendo-segmented-control>
|
|
17141
17150
|
</div>
|
|
17142
17151
|
<div
|
|
17143
17152
|
#dateTimeSelector
|
|
@@ -17263,7 +17272,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17263
17272
|
}
|
|
17264
17273
|
</div>
|
|
17265
17274
|
</ng-template>
|
|
17266
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }, { kind: "component", type: DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"
|
|
17275
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }, { kind: "component", type: DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CalendarComponent, selector: "kendo-calendar", inputs: ["showOtherMonthDays", "id", "focusedDate", "min", "max", "rangeValidation", "weekDaysFormat", "footer", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate", "size", "activeRangeEnd"], outputs: ["closePopup", "activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { kind: "component", type: CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { kind: "component", type: TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "isAdaptiveEnabled", "isDateTimePicker", "steps", "value"], outputs: ["valueChange", "valueReject", "tabOutLastPart", "tabOutFirstPart", "tabOutNow"], exportAs: ["kendo-timeselector"] }, { kind: "component", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }, { kind: "component", type: SegmentedControlComponent, selector: "kendo-segmented-control", inputs: ["items", "layoutMode", "size", "selected"], outputs: ["selectedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
17267
17276
|
}
|
|
17268
17277
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DateTimePickerComponent, decorators: [{
|
|
17269
17278
|
type: Component,
|
|
@@ -17279,7 +17288,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
17279
17288
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateTimePickerComponent), multi: true },
|
|
17280
17289
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateTimePickerComponent), multi: true },
|
|
17281
17290
|
{ provide: KendoInput, useExisting: forwardRef(() => DateTimePickerComponent) },
|
|
17282
|
-
{ provide: MultiTabStop, useExisting: forwardRef(() => DateTimePickerComponent) }
|
|
17291
|
+
{ provide: MultiTabStop, useExisting: forwardRef(() => DateTimePickerComponent) },
|
|
17292
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DateTimePickerComponent) }
|
|
17283
17293
|
],
|
|
17284
17294
|
template: `
|
|
17285
17295
|
<ng-container
|
|
@@ -17521,47 +17531,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
17521
17531
|
}"
|
|
17522
17532
|
[scope]="this"
|
|
17523
17533
|
>
|
|
17524
|
-
<div class="k-datetime-buttongroup"
|
|
17525
|
-
|
|
17526
|
-
|
|
17527
|
-
|
|
17528
|
-
|
|
17529
|
-
|
|
17530
|
-
|
|
17531
|
-
|
|
17532
|
-
|
|
17533
|
-
|
|
17534
|
-
|
|
17535
|
-
|
|
17536
|
-
|
|
17537
|
-
|
|
17538
|
-
[attr.title]="localization.get('dateTabLabel')"
|
|
17539
|
-
[attr.aria-label]="localization.get('dateTabLabel')"
|
|
17540
|
-
[kendoEventsOutsideAngular]="{
|
|
17541
|
-
click: changeActiveTab.bind(this, 'date'),
|
|
17542
|
-
'keydown.shift.tab': handleTab
|
|
17543
|
-
}"
|
|
17544
|
-
[scope]="this"
|
|
17545
|
-
>
|
|
17546
|
-
{{localization.get('dateTab')}}
|
|
17547
|
-
</button>
|
|
17548
|
-
<button kendoButton
|
|
17549
|
-
type="button"
|
|
17550
|
-
class="k-group-end"
|
|
17551
|
-
[size]="isAdaptive ? 'large' : size"
|
|
17552
|
-
[class.k-selected]="activeTab === 'time'"
|
|
17553
|
-
[attr.aria-pressed]="activeTab === 'time' ? 'true' : 'false'"
|
|
17554
|
-
[attr.title]="localization.get('timeTabLabel')"
|
|
17555
|
-
[attr.aria-label]="localization.get('timeTabLabel')"
|
|
17556
|
-
[kendoEventsOutsideAngular]="{
|
|
17557
|
-
click: changeActiveTab.bind(this, 'time'),
|
|
17558
|
-
'keydown.tab': handleTab
|
|
17559
|
-
}"
|
|
17560
|
-
[scope]="this"
|
|
17561
|
-
>
|
|
17562
|
-
{{localization.get('timeTab')}}
|
|
17563
|
-
</button>
|
|
17564
|
-
</div>
|
|
17534
|
+
<div class="k-datetime-buttongroup">
|
|
17535
|
+
<kendo-segmented-control
|
|
17536
|
+
[items]="tabItems"
|
|
17537
|
+
[selected]="activeTabIndex"
|
|
17538
|
+
[size]="isAdaptive ? 'large' : size"
|
|
17539
|
+
layoutMode="stretch"
|
|
17540
|
+
(selectedChange)="onTabChange($event)"
|
|
17541
|
+
[kendoEventsOutsideAngular]="{
|
|
17542
|
+
focusin: handleFocus,
|
|
17543
|
+
focusout: handleBlur,
|
|
17544
|
+
keydown: handleButtonGroupKeydown
|
|
17545
|
+
}"
|
|
17546
|
+
[scope]="this">
|
|
17547
|
+
</kendo-segmented-control>
|
|
17565
17548
|
</div>
|
|
17566
17549
|
<div
|
|
17567
17550
|
#dateTimeSelector
|
|
@@ -17689,7 +17672,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
17689
17672
|
</ng-template>
|
|
17690
17673
|
`,
|
|
17691
17674
|
standalone: true,
|
|
17692
|
-
imports: [LocalizedMessagesDirective, DateInputComponent, EventsOutsideAngularDirective, DateInputCustomMessagesComponent, IconWrapperComponent, NgTemplateOutlet, ResizeSensorComponent, ActionSheetComponent, ActionSheetTemplateDirective, ButtonComponent, NgClass, CalendarComponent, CalendarCustomMessagesComponent, TimeSelectorComponent, TimeSelectorCustomMessagesComponent]
|
|
17675
|
+
imports: [LocalizedMessagesDirective, DateInputComponent, EventsOutsideAngularDirective, DateInputCustomMessagesComponent, IconWrapperComponent, NgTemplateOutlet, ResizeSensorComponent, ActionSheetComponent, ActionSheetTemplateDirective, ButtonComponent, NgClass, CalendarComponent, CalendarCustomMessagesComponent, TimeSelectorComponent, TimeSelectorCustomMessagesComponent, SegmentedControlComponent]
|
|
17693
17676
|
}]
|
|
17694
17677
|
}], ctorParameters: () => [{ type: i1$2.PopupService }, { type: i1.IntlService }, { type: i0.ChangeDetectorRef }, { type: PickerService }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: i1$1.LocalizationService }, { type: DisabledDatesService }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: i6.AdaptiveService }], propDecorators: { hostClasses: [{
|
|
17695
17678
|
type: HostBinding,
|
|
@@ -19173,7 +19156,7 @@ class DateRangePopupComponent {
|
|
|
19173
19156
|
</div>
|
|
19174
19157
|
</ng-template>
|
|
19175
19158
|
</kendo-actionsheet>
|
|
19176
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { kind: "component", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"
|
|
19159
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { kind: "component", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
19177
19160
|
}
|
|
19178
19161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DateRangePopupComponent, decorators: [{
|
|
19179
19162
|
type: Component,
|
|
@@ -19502,7 +19485,10 @@ class DateRangeComponent {
|
|
|
19502
19485
|
this.subscription?.unsubscribe();
|
|
19503
19486
|
}
|
|
19504
19487
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DateRangeComponent, deps: [{ token: DateRangeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
19505
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DateRangeComponent, isStandalone: true, selector: "kendo-daterange", inputs: { size: "size" }, host: { listeners: { "keydown": "keydown($event)" }, properties: { "class.k-daterangepicker": "this.wrapperClass" } }, providers: [
|
|
19488
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DateRangeComponent, isStandalone: true, selector: "kendo-daterange", inputs: { size: "size" }, host: { listeners: { "keydown": "keydown($event)" }, properties: { "class.k-daterangepicker": "this.wrapperClass" } }, providers: [
|
|
19489
|
+
DateRangeService,
|
|
19490
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DateRangeComponent) }
|
|
19491
|
+
], queries: [{ propertyName: "contentPopup", predicate: DateRangePopupComponent }], ngImport: i0, template: `
|
|
19506
19492
|
<ng-content></ng-content>
|
|
19507
19493
|
@if (showDefault) {
|
|
19508
19494
|
<kendo-daterange-popup [size]="size"></kendo-daterange-popup>
|
|
@@ -19512,7 +19498,10 @@ class DateRangeComponent {
|
|
|
19512
19498
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DateRangeComponent, decorators: [{
|
|
19513
19499
|
type: Component,
|
|
19514
19500
|
args: [{
|
|
19515
|
-
providers: [
|
|
19501
|
+
providers: [
|
|
19502
|
+
DateRangeService,
|
|
19503
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DateRangeComponent) }
|
|
19504
|
+
],
|
|
19516
19505
|
selector: 'kendo-daterange',
|
|
19517
19506
|
template: `
|
|
19518
19507
|
<ng-content></ng-content>
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.0.0
|
|
10
|
+
"publishDate": 1779273455,
|
|
11
|
+
"version": "24.0.0",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dateinputs",
|
|
3
|
-
"version": "24.0.0
|
|
3
|
+
"version": "24.0.0",
|
|
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",
|
|
@@ -94,13 +94,20 @@
|
|
|
94
94
|
"file": "codemods/v23/calendar-rendering-changes.js",
|
|
95
95
|
"instructionsOnly": true
|
|
96
96
|
}
|
|
97
|
+
],
|
|
98
|
+
"24": [
|
|
99
|
+
{
|
|
100
|
+
"description": "The DateTimePicker now uses SegmentedControl instead of ButtonGroup. k-group-start and k-group-end classes are removed.",
|
|
101
|
+
"file": "codemods/v24/datetimepicker-rendering-changes.js",
|
|
102
|
+
"instructionsOnly": true
|
|
103
|
+
}
|
|
97
104
|
]
|
|
98
105
|
}
|
|
99
106
|
},
|
|
100
107
|
"package": {
|
|
101
108
|
"productName": "Kendo UI for Angular",
|
|
102
109
|
"productCode": "KENDOUIANGULAR",
|
|
103
|
-
"publishDate":
|
|
110
|
+
"publishDate": 1779273455,
|
|
104
111
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
105
112
|
}
|
|
106
113
|
},
|
|
@@ -111,22 +118,22 @@
|
|
|
111
118
|
"@angular/forms": "19 - 21",
|
|
112
119
|
"@angular/platform-browser": "19 - 21",
|
|
113
120
|
"@progress/kendo-licensing": "^1.11.0",
|
|
114
|
-
"@progress/kendo-angular-buttons": "24.0.0
|
|
115
|
-
"@progress/kendo-angular-common": "24.0.0
|
|
116
|
-
"@progress/kendo-angular-utils": "24.0.0
|
|
117
|
-
"@progress/kendo-angular-intl": "24.0.0
|
|
118
|
-
"@progress/kendo-angular-l10n": "24.0.0
|
|
119
|
-
"@progress/kendo-angular-icons": "24.0.0
|
|
120
|
-
"@progress/kendo-angular-popup": "24.0.0
|
|
121
|
-
"@progress/kendo-angular-navigation": "24.0.0
|
|
121
|
+
"@progress/kendo-angular-buttons": "24.0.0",
|
|
122
|
+
"@progress/kendo-angular-common": "24.0.0",
|
|
123
|
+
"@progress/kendo-angular-utils": "24.0.0",
|
|
124
|
+
"@progress/kendo-angular-intl": "24.0.0",
|
|
125
|
+
"@progress/kendo-angular-l10n": "24.0.0",
|
|
126
|
+
"@progress/kendo-angular-icons": "24.0.0",
|
|
127
|
+
"@progress/kendo-angular-popup": "24.0.0",
|
|
128
|
+
"@progress/kendo-angular-navigation": "24.0.0",
|
|
122
129
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
123
130
|
},
|
|
124
131
|
"dependencies": {
|
|
125
132
|
"tslib": "^2.3.1",
|
|
126
|
-
"@progress/kendo-angular-schematics": "24.0.0
|
|
133
|
+
"@progress/kendo-angular-schematics": "24.0.0",
|
|
127
134
|
"@progress/kendo-common": "^1.0.1",
|
|
128
135
|
"@progress/kendo-date-math": "^1.1.0",
|
|
129
|
-
"@progress/kendo-dateinputs-common": "^0.4.
|
|
136
|
+
"@progress/kendo-dateinputs-common": "^0.4.11"
|
|
130
137
|
},
|
|
131
138
|
"schematics": "./schematics/collection.json",
|
|
132
139
|
"module": "fesm2022/progress-kendo-angular-dateinputs.mjs",
|