@progress/kendo-angular-layout 21.4.1 → 22.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.
Files changed (182) hide show
  1. package/avatar/l10n/messages.d.ts +1 -1
  2. package/fesm2022/progress-kendo-angular-layout.mjs +290 -290
  3. package/package.json +12 -20
  4. package/stepper/localization/messages.d.ts +1 -1
  5. package/tabstrip/localization/messages.d.ts +1 -1
  6. package/timeline/localization/messages.d.ts +1 -1
  7. package/esm2022/avatar/avatar.component.mjs +0 -406
  8. package/esm2022/avatar/l10n/custom-messages.component.mjs +0 -53
  9. package/esm2022/avatar/l10n/localized-messages.directive.mjs +0 -40
  10. package/esm2022/avatar/l10n/messages.mjs +0 -27
  11. package/esm2022/avatar/models/fill.mjs +0 -5
  12. package/esm2022/avatar/models/models.mjs +0 -9
  13. package/esm2022/avatar/models/rounded.mjs +0 -5
  14. package/esm2022/avatar/models/shape.mjs +0 -5
  15. package/esm2022/avatar/models/size.mjs +0 -5
  16. package/esm2022/avatar/models/theme-color.mjs +0 -5
  17. package/esm2022/avatar.module.mjs +0 -38
  18. package/esm2022/card/card-actions.component.mjs +0 -177
  19. package/esm2022/card/card-body.component.mjs +0 -37
  20. package/esm2022/card/card-footer.component.mjs +0 -37
  21. package/esm2022/card/card-header.component.mjs +0 -38
  22. package/esm2022/card/card.component.mjs +0 -118
  23. package/esm2022/card/directives/card-media.directive.mjs +0 -33
  24. package/esm2022/card/directives/card-separator.directive.mjs +0 -61
  25. package/esm2022/card/directives/card-subtitle.directive.mjs +0 -31
  26. package/esm2022/card/directives/card-title.directive.mjs +0 -31
  27. package/esm2022/card/models/actions-layout.mjs +0 -5
  28. package/esm2022/card/models/card-action.mjs +0 -21
  29. package/esm2022/card.module.mjs +0 -45
  30. package/esm2022/common/direction.mjs +0 -5
  31. package/esm2022/common/dom-queries.mjs +0 -47
  32. package/esm2022/common/orientation.mjs +0 -5
  33. package/esm2022/common/preventable-event.mjs +0 -31
  34. package/esm2022/common/styling-classes.mjs +0 -5
  35. package/esm2022/common/util.mjs +0 -85
  36. package/esm2022/directives.mjs +0 -174
  37. package/esm2022/drawer/animations.mjs +0 -146
  38. package/esm2022/drawer/drawer-container.component.mjs +0 -135
  39. package/esm2022/drawer/drawer-content.component.mjs +0 -39
  40. package/esm2022/drawer/drawer.component.mjs +0 -471
  41. package/esm2022/drawer/drawer.service.mjs +0 -105
  42. package/esm2022/drawer/events/drawer-list-select.event.mjs +0 -29
  43. package/esm2022/drawer/events/select-event.mjs +0 -33
  44. package/esm2022/drawer/item.component.mjs +0 -210
  45. package/esm2022/drawer/list.component.mjs +0 -165
  46. package/esm2022/drawer/models/constants.mjs +0 -8
  47. package/esm2022/drawer/models/drawer-animation.interface.mjs +0 -5
  48. package/esm2022/drawer/models/drawer-item-expand.interface.mjs +0 -5
  49. package/esm2022/drawer/models/drawer-item.interface.mjs +0 -5
  50. package/esm2022/drawer/models/drawer-view-item.interface.mjs +0 -5
  51. package/esm2022/drawer/models/mode.mjs +0 -5
  52. package/esm2022/drawer/models/position.mjs +0 -5
  53. package/esm2022/drawer/template-directives/drawer-template.directive.mjs +0 -43
  54. package/esm2022/drawer/template-directives/footer-template.directive.mjs +0 -36
  55. package/esm2022/drawer/template-directives/header-template.directive.mjs +0 -36
  56. package/esm2022/drawer/template-directives/item-template.directive.mjs +0 -44
  57. package/esm2022/drawer/template-directives.mjs +0 -8
  58. package/esm2022/drawer/types.mjs +0 -5
  59. package/esm2022/drawer/util.mjs +0 -16
  60. package/esm2022/drawer.module.mjs +0 -43
  61. package/esm2022/expansionpanel/animations.mjs +0 -23
  62. package/esm2022/expansionpanel/events/action-event.mjs +0 -21
  63. package/esm2022/expansionpanel/expansionpanel-title.directive.mjs +0 -38
  64. package/esm2022/expansionpanel/expansionpanel.component.mjs +0 -515
  65. package/esm2022/expansionpanel.module.mjs +0 -38
  66. package/esm2022/gridlayout.module.mjs +0 -38
  67. package/esm2022/index.mjs +0 -89
  68. package/esm2022/layout.module.mjs +0 -89
  69. package/esm2022/layouts/grid-layout.component.mjs +0 -179
  70. package/esm2022/layouts/gridlayout-item.component.mjs +0 -82
  71. package/esm2022/layouts/models/gridlayout-gap-settings.mjs +0 -5
  72. package/esm2022/layouts/models/gridlayout-row-col-size.mjs +0 -5
  73. package/esm2022/layouts/models/layout-align-settings.mjs +0 -5
  74. package/esm2022/layouts/models/layout-horizontal-align.mjs +0 -5
  75. package/esm2022/layouts/models/layout-vertical-align.mjs +0 -5
  76. package/esm2022/layouts/models.mjs +0 -10
  77. package/esm2022/layouts/stack-layout.component.mjs +0 -161
  78. package/esm2022/layouts/util.mjs +0 -101
  79. package/esm2022/package-metadata.mjs +0 -16
  80. package/esm2022/panelbar/events/collapse-event.mjs +0 -14
  81. package/esm2022/panelbar/events/expand-event.mjs +0 -14
  82. package/esm2022/panelbar/events/item-click-event.mjs +0 -17
  83. package/esm2022/panelbar/events/select-event.mjs +0 -14
  84. package/esm2022/panelbar/events/state-change-event.mjs +0 -13
  85. package/esm2022/panelbar/events.mjs +0 -9
  86. package/esm2022/panelbar/panelbar-content.directive.mjs +0 -36
  87. package/esm2022/panelbar/panelbar-expand-mode.mjs +0 -29
  88. package/esm2022/panelbar/panelbar-item-model.mjs +0 -5
  89. package/esm2022/panelbar/panelbar-item-template.directive.mjs +0 -37
  90. package/esm2022/panelbar/panelbar-item-title.directive.mjs +0 -42
  91. package/esm2022/panelbar/panelbar-item.component.mjs +0 -722
  92. package/esm2022/panelbar/panelbar.component.mjs +0 -705
  93. package/esm2022/panelbar/panelbar.service.mjs +0 -53
  94. package/esm2022/panelbar.module.mjs +0 -41
  95. package/esm2022/progress-kendo-angular-layout.mjs +0 -8
  96. package/esm2022/splitter/splitter-bar.component.mjs +0 -338
  97. package/esm2022/splitter/splitter-pane.component.mjs +0 -324
  98. package/esm2022/splitter/splitter.component.mjs +0 -301
  99. package/esm2022/splitter/splitter.service.mjs +0 -205
  100. package/esm2022/splitter/util.mjs +0 -34
  101. package/esm2022/splitter.module.mjs +0 -38
  102. package/esm2022/stacklayout.module.mjs +0 -37
  103. package/esm2022/stepper/events/activate-event.mjs +0 -33
  104. package/esm2022/stepper/list.component.mjs +0 -185
  105. package/esm2022/stepper/localization/custom-messages.component.mjs +0 -52
  106. package/esm2022/stepper/localization/localized-messages.directive.mjs +0 -41
  107. package/esm2022/stepper/localization/messages.mjs +0 -27
  108. package/esm2022/stepper/models/constants.mjs +0 -8
  109. package/esm2022/stepper/models/orientation.mjs +0 -5
  110. package/esm2022/stepper/models/step-predicate.mjs +0 -5
  111. package/esm2022/stepper/models/step-type.mjs +0 -5
  112. package/esm2022/stepper/models/stepper-step.interface.mjs +0 -5
  113. package/esm2022/stepper/step.component.mjs +0 -396
  114. package/esm2022/stepper/stepper.component.mjs +0 -423
  115. package/esm2022/stepper/stepper.service.mjs +0 -186
  116. package/esm2022/stepper/template-directives/indicator-template.directive.mjs +0 -37
  117. package/esm2022/stepper/template-directives/label-template.directive.mjs +0 -37
  118. package/esm2022/stepper/template-directives/step-template.directive.mjs +0 -39
  119. package/esm2022/stepper/template-directives.mjs +0 -7
  120. package/esm2022/stepper/types.mjs +0 -5
  121. package/esm2022/stepper.module.mjs +0 -41
  122. package/esm2022/tabstrip/constants.mjs +0 -29
  123. package/esm2022/tabstrip/directives/tab-content.directive.mjs +0 -39
  124. package/esm2022/tabstrip/directives/tab-title.directive.mjs +0 -37
  125. package/esm2022/tabstrip/directives/tab.directive.mjs +0 -24
  126. package/esm2022/tabstrip/events/select-event.mjs +0 -25
  127. package/esm2022/tabstrip/events/tabclose-event.mjs +0 -23
  128. package/esm2022/tabstrip/events/tabscroll-event.mjs +0 -23
  129. package/esm2022/tabstrip/events.mjs +0 -7
  130. package/esm2022/tabstrip/localization/custom-messages.component.mjs +0 -53
  131. package/esm2022/tabstrip/localization/localized-messages.directive.mjs +0 -39
  132. package/esm2022/tabstrip/localization/messages.mjs +0 -39
  133. package/esm2022/tabstrip/models/button-state-change.mjs +0 -5
  134. package/esm2022/tabstrip/models/scroll-button-type.mjs +0 -5
  135. package/esm2022/tabstrip/models/scroll-buttons-visibility.mjs +0 -5
  136. package/esm2022/tabstrip/models/scrollable-settings.mjs +0 -23
  137. package/esm2022/tabstrip/models/size.mjs +0 -5
  138. package/esm2022/tabstrip/models/tab-alignment.mjs +0 -5
  139. package/esm2022/tabstrip/models/tab-position.mjs +0 -5
  140. package/esm2022/tabstrip/models/tabstrip-tab.component.mjs +0 -130
  141. package/esm2022/tabstrip/rendering/tab.component.mjs +0 -182
  142. package/esm2022/tabstrip/scrollable-button.component.mjs +0 -182
  143. package/esm2022/tabstrip/tabstrip-scroll.service.mjs +0 -176
  144. package/esm2022/tabstrip/tabstrip.component.mjs +0 -954
  145. package/esm2022/tabstrip/tabstrip.service.mjs +0 -155
  146. package/esm2022/tabstrip/util.mjs +0 -120
  147. package/esm2022/tabstrip.module.mjs +0 -41
  148. package/esm2022/tilelayout/constants.mjs +0 -70
  149. package/esm2022/tilelayout/dragging-service.mjs +0 -421
  150. package/esm2022/tilelayout/keyboard-navigation.service.mjs +0 -189
  151. package/esm2022/tilelayout/models/dragging-config.interface.mjs +0 -5
  152. package/esm2022/tilelayout/models/flowmode.type.mjs +0 -5
  153. package/esm2022/tilelayout/models/gap.interface.mjs +0 -5
  154. package/esm2022/tilelayout/models/navigation.interface.mjs +0 -5
  155. package/esm2022/tilelayout/reorder-event.mjs +0 -43
  156. package/esm2022/tilelayout/resize-event.mjs +0 -37
  157. package/esm2022/tilelayout/tilelayout-item-body.component.mjs +0 -45
  158. package/esm2022/tilelayout/tilelayout-item-header.component.mjs +0 -43
  159. package/esm2022/tilelayout/tilelayout-item.component.mjs +0 -322
  160. package/esm2022/tilelayout/tilelayout-resize-handle.directive.mjs +0 -61
  161. package/esm2022/tilelayout/tilelayout.component.mjs +0 -388
  162. package/esm2022/tilelayout/util.mjs +0 -138
  163. package/esm2022/tilelayout.module.mjs +0 -40
  164. package/esm2022/timeline/events/navigation-direction.mjs +0 -5
  165. package/esm2022/timeline/localization/custom-messages.component.mjs +0 -43
  166. package/esm2022/timeline/localization/localized-messages.directive.mjs +0 -39
  167. package/esm2022/timeline/localization/messages.mjs +0 -33
  168. package/esm2022/timeline/models/anchor-target.mjs +0 -5
  169. package/esm2022/timeline/models/default-model-fields.mjs +0 -16
  170. package/esm2022/timeline/models/events-order.mjs +0 -5
  171. package/esm2022/timeline/models/model-fields.mjs +0 -5
  172. package/esm2022/timeline/models/timeline-event.mjs +0 -5
  173. package/esm2022/timeline/templates/timeline-card-actions.directive.mjs +0 -40
  174. package/esm2022/timeline/templates/timeline-card-body.directive.mjs +0 -40
  175. package/esm2022/timeline/templates/timeline-card-header.directive.mjs +0 -41
  176. package/esm2022/timeline/timeline-card.component.mjs +0 -451
  177. package/esm2022/timeline/timeline-horizontal.component.mjs +0 -781
  178. package/esm2022/timeline/timeline-vertical.component.mjs +0 -203
  179. package/esm2022/timeline/timeline.component.mjs +0 -491
  180. package/esm2022/timeline/timeline.service.mjs +0 -32
  181. package/esm2022/timeline/util.mjs +0 -26
  182. package/esm2022/timeline.module.mjs +0 -41
@@ -1,45 +0,0 @@
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
- import { NgModule } from '@angular/core';
6
- import { KENDO_CARD } from './directives';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "./card/card.component";
9
- import * as i2 from "./card/card-actions.component";
10
- import * as i3 from "./card/card-body.component";
11
- import * as i4 from "./card/card-footer.component";
12
- import * as i5 from "./card/card-header.component";
13
- import * as i6 from "./card/directives/card-media.directive";
14
- import * as i7 from "./card/directives/card-separator.directive";
15
- import * as i8 from "./card/directives/card-subtitle.directive";
16
- import * as i9 from "./card/directives/card-title.directive";
17
- // IMPORTANT: NgModule export kept for backwards compatibility
18
- /**
19
- * Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Card component.
20
- *
21
- * Use this module to add the Card component to your NgModule-based Angular application.
22
- *
23
- * @example
24
- * ```typescript
25
- * import { CardModule } from '@progress/kendo-angular-layout';
26
- * import { NgModule } from '@angular/core';
27
- *
28
- * @NgModule({
29
- * imports: [CardModule]
30
- * })
31
- * export class AppModule { }
32
- * ```
33
- */
34
- export class CardModule {
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
36
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: CardModule, imports: [i1.CardComponent, i2.CardActionsComponent, i3.CardBodyComponent, i4.CardFooterComponent, i5.CardHeaderComponent, i6.CardMediaDirective, i7.CardSeparatorDirective, i8.CardSubtitleDirective, i9.CardTitleDirective], exports: [i1.CardComponent, i2.CardActionsComponent, i3.CardBodyComponent, i4.CardFooterComponent, i5.CardHeaderComponent, i6.CardMediaDirective, i7.CardSeparatorDirective, i8.CardSubtitleDirective, i9.CardTitleDirective] });
37
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CardModule });
38
- }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CardModule, decorators: [{
40
- type: NgModule,
41
- args: [{
42
- exports: [...KENDO_CARD],
43
- imports: [...KENDO_CARD]
44
- }]
45
- }] });
@@ -1,5 +0,0 @@
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
- export {};
@@ -1,47 +0,0 @@
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
- import { isPresent } from '../common/util';
6
- const focusableRegex = /^(?:a|input|select|option|textarea|button|object)$/i;
7
- const toClassList = (classNames) => String(classNames).trim().split(' ');
8
- /**
9
- * @hidden
10
- */
11
- export const isFocusable = (element) => {
12
- if (element.tagName) {
13
- const tagName = element.tagName.toLowerCase();
14
- const tabIndex = element.getAttribute('tabindex');
15
- const skipTab = tabIndex === '-1';
16
- let focusable = tabIndex !== null && !skipTab;
17
- if (focusableRegex.test(tagName)) {
18
- focusable = !element.disabled && !skipTab;
19
- }
20
- return focusable;
21
- }
22
- return false;
23
- };
24
- /**
25
- * @hidden
26
- */
27
- export const hasClass = (element, className) => Boolean(toClassList(element.className).find((name) => name === className));
28
- /**
29
- * @hidden
30
- */
31
- export const closestInScope = (target, predicate, scope, targetAttr) => {
32
- while (target && target !== scope && !predicate(target, targetAttr)) {
33
- target = target.parentNode;
34
- }
35
- if (target !== scope) {
36
- return target;
37
- }
38
- };
39
- /**
40
- * @hidden
41
- */
42
- export const itemIndex = (item, indexAttr) => +item.getAttribute(indexAttr);
43
- const hasItemIndex = (item, indexAttr) => isPresent(item.getAttribute(indexAttr));
44
- /**
45
- * @hidden
46
- */
47
- export const closestItem = (target, targetAttr, scope) => closestInScope(target, hasItemIndex, scope, targetAttr);
@@ -1,5 +0,0 @@
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
- export {};
@@ -1,31 +0,0 @@
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
- /**
6
- * @hidden
7
- */
8
- export class PreventableEvent {
9
- prevented = false;
10
- /**
11
- * Prevents the default action for a specified event.
12
- * The source component suppresses the built-in behavior that follows the event.
13
- */
14
- preventDefault() {
15
- this.prevented = true;
16
- }
17
- /**
18
- * Returns `true` if the event was prevented by any of its subscribers.
19
- *
20
- * @returns `true` if the default action was prevented. Otherwise, returns `false`.
21
- */
22
- isDefaultPrevented() {
23
- return this.prevented;
24
- }
25
- /**
26
- * @hidden
27
- */
28
- constructor(args) {
29
- Object.assign(this, args);
30
- }
31
- }
@@ -1,5 +0,0 @@
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
- export {};
@@ -1,85 +0,0 @@
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
- import { Keys } from '@progress/kendo-angular-common';
6
- let nextId = 0;
7
- const SIZES = {
8
- small: 'sm',
9
- medium: 'md',
10
- large: 'lg'
11
- };
12
- const ROUNDNESS = {
13
- small: 'sm',
14
- medium: 'md',
15
- large: 'lg',
16
- full: 'full'
17
- };
18
- const SHAPE_TO_ROUNDED = {
19
- rounded: 'large',
20
- circle: 'full'
21
- };
22
- /**
23
- * @hidden
24
- */
25
- export const parsePanelBarItems = (data) => {
26
- return data.map((item) => {
27
- if (!isPresent(item.id)) {
28
- item.id = `default-${nextId++}`;
29
- }
30
- if (item.children) {
31
- item.children = parsePanelBarItems(item.children);
32
- }
33
- return item;
34
- });
35
- };
36
- /**
37
- * @hidden
38
- */
39
- export const isPresent = (value) => value !== null && value !== undefined;
40
- /**
41
- * @hidden
42
- */
43
- export const isHorizontalArrowKey = keyCode => keyCode === Keys.ArrowLeft || keyCode === Keys.ArrowRight;
44
- /**
45
- * @hidden
46
- */
47
- export const isVerticalArrowKey = keyCode => keyCode === Keys.ArrowUp || keyCode === Keys.ArrowDown;
48
- /**
49
- * @hidden
50
- */
51
- export const isArrowKey = keyCode => isHorizontalArrowKey(keyCode) || isVerticalArrowKey(keyCode);
52
- /**
53
- * @hidden
54
- */
55
- export const isNavigationKey = keyCode => keyCode === Keys.PageUp || keyCode === Keys.PageDown ||
56
- keyCode === Keys.Home || keyCode === Keys.End;
57
- /**
58
- * @hidden
59
- *
60
- * Returns the styling classes to be added and removed
61
- */
62
- export const getStylingClasses = (componentType, stylingOption, previousValue, newValue) => {
63
- switch (stylingOption) {
64
- case 'size':
65
- return {
66
- toRemove: `k-${componentType}-${SIZES[previousValue]}`,
67
- toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
68
- };
69
- case 'rounded':
70
- return {
71
- toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
72
- toAdd: newValue !== 'none' ? `k-rounded-${ROUNDNESS[newValue]}` : ''
73
- };
74
- default:
75
- break;
76
- }
77
- };
78
- /**
79
- * @hidden
80
- */
81
- export const mapShapeToRounded = (shape) => SHAPE_TO_ROUNDED[shape] || 'none';
82
- /**
83
- * @hidden
84
- */
85
- export const isNumber = (value) => typeof value === 'number' && isFinite(value);
@@ -1,174 +0,0 @@
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
- import { AvatarComponent } from "./avatar/avatar.component";
6
- import { AvatarCustomMessagesComponent } from "./avatar/l10n/custom-messages.component";
7
- import { CardActionsComponent } from "./card/card-actions.component";
8
- import { CardBodyComponent } from "./card/card-body.component";
9
- import { CardFooterComponent } from "./card/card-footer.component";
10
- import { CardHeaderComponent } from "./card/card-header.component";
11
- import { CardComponent } from "./card/card.component";
12
- import { CardMediaDirective } from "./card/directives/card-media.directive";
13
- import { CardSeparatorDirective } from "./card/directives/card-separator.directive";
14
- import { CardSubtitleDirective } from "./card/directives/card-subtitle.directive";
15
- import { CardTitleDirective } from "./card/directives/card-title.directive";
16
- import { DrawerContainerComponent } from "./drawer/drawer-container.component";
17
- import { DrawerContentComponent } from "./drawer/drawer-content.component";
18
- import { DrawerComponent } from "./drawer/drawer.component";
19
- import { DrawerFooterTemplateDirective, DrawerHeaderTemplateDirective, DrawerItemTemplateDirective, DrawerTemplateDirective } from "./drawer/template-directives";
20
- import { ExpansionPanelTitleDirective } from "./expansionpanel/expansionpanel-title.directive";
21
- import { ExpansionPanelComponent } from "./expansionpanel/expansionpanel.component";
22
- import { GridLayoutComponent } from "./layouts/grid-layout.component";
23
- import { GridLayoutItemComponent } from "./layouts/gridlayout-item.component";
24
- import { StackLayoutComponent } from "./layouts/stack-layout.component";
25
- import { PanelBarContentDirective } from "./panelbar/panelbar-content.directive";
26
- import { PanelBarItemTemplateDirective } from "./panelbar/panelbar-item-template.directive";
27
- import { PanelBarItemTitleDirective } from "./panelbar/panelbar-item-title.directive";
28
- import { PanelBarItemComponent } from "./panelbar/panelbar-item.component";
29
- import { PanelBarComponent } from "./panelbar/panelbar.component";
30
- import { SplitterPaneComponent } from "./splitter/splitter-pane.component";
31
- import { SplitterComponent } from "./splitter/splitter.component";
32
- import { StepperCustomMessagesComponent } from "./stepper/localization/custom-messages.component";
33
- import { StepperComponent } from "./stepper/stepper.component";
34
- import { StepperIndicatorTemplateDirective, StepperLabelTemplateDirective, StepperStepTemplateDirective } from "./stepper/template-directives";
35
- import { TabContentDirective } from "./tabstrip/directives/tab-content.directive";
36
- import { TabTitleDirective } from "./tabstrip/directives/tab-title.directive";
37
- import { TabStripCustomMessagesComponent } from "./tabstrip/localization/custom-messages.component";
38
- import { TabStripTabComponent } from "./tabstrip/models/tabstrip-tab.component";
39
- import { TabStripComponent } from "./tabstrip/tabstrip.component";
40
- import { TileLayoutItemBodyComponent } from "./tilelayout/tilelayout-item-body.component";
41
- import { TileLayoutItemHeaderComponent } from "./tilelayout/tilelayout-item-header.component";
42
- import { TileLayoutItemComponent } from "./tilelayout/tilelayout-item.component";
43
- import { TileLayoutComponent } from "./tilelayout/tilelayout.component";
44
- import { TimelineCustomMessagesComponent } from "./timeline/localization/custom-messages.component";
45
- import { TimelineCardActionsTemplateDirective } from "./timeline/templates/timeline-card-actions.directive";
46
- import { TimelineCardBodyTemplateDirective } from "./timeline/templates/timeline-card-body.directive";
47
- import { TimelineCardHeaderTemplateDirective } from "./timeline/templates/timeline-card-header.directive";
48
- import { TimelineComponent } from "./timeline/timeline.component";
49
- /**
50
- * Use the `KENDO_AVATAR` utility array to add all Avatar-related components and directives to a standalone Angular component.
51
- */
52
- export const KENDO_AVATAR = [
53
- AvatarComponent,
54
- AvatarCustomMessagesComponent
55
- ];
56
- /**
57
- * Use the `KENDO_CARD` utility array to add all Card-related components and directives to a standalone Angular component.
58
- */
59
- export const KENDO_CARD = [
60
- CardComponent,
61
- CardActionsComponent,
62
- CardBodyComponent,
63
- CardFooterComponent,
64
- CardHeaderComponent,
65
- CardMediaDirective,
66
- CardSeparatorDirective,
67
- CardSubtitleDirective,
68
- CardTitleDirective
69
- ];
70
- /**
71
- * Use the `KENDO_DRAWER` utility array to add all Drawer-related components and directives to a standalone Angular component.
72
- */
73
- export const KENDO_DRAWER = [
74
- DrawerComponent,
75
- DrawerContainerComponent,
76
- DrawerContentComponent,
77
- DrawerTemplateDirective,
78
- DrawerFooterTemplateDirective,
79
- DrawerHeaderTemplateDirective,
80
- DrawerItemTemplateDirective
81
- ];
82
- /**
83
- * Use the `KENDO_EXPANSIONPANEL` utility array to add all ExpansionPanel-related components and directives to a standalone Angular component.
84
- */
85
- export const KENDO_EXPANSIONPANEL = [
86
- ExpansionPanelComponent,
87
- ExpansionPanelTitleDirective
88
- ];
89
- /**
90
- * Use the `KENDO_GRIDLAYOUT` utility array to add all GridLayout-related components and directives to a standalone Angular component.
91
- */
92
- export const KENDO_GRIDLAYOUT = [
93
- GridLayoutComponent,
94
- GridLayoutItemComponent
95
- ];
96
- /**
97
- * Use the `KENDO_PANELBAR` utility array to add all PanelBar-related components and directives to a standalone Angular component.
98
- */
99
- export const KENDO_PANELBAR = [
100
- PanelBarComponent,
101
- PanelBarItemComponent,
102
- PanelBarContentDirective,
103
- PanelBarItemTemplateDirective,
104
- PanelBarItemTitleDirective
105
- ];
106
- /**
107
- * Use the `KENDO_SPLITTER` utility array to add all Splitter-related components and directives to a standalone Angular component.
108
- */
109
- export const KENDO_SPLITTER = [
110
- SplitterComponent,
111
- SplitterPaneComponent
112
- ];
113
- /**
114
- * Use the `KENDO_STACKLAYOUT` utility array to add all StackLayout-related components and directives to a standalone Angular component.
115
- */
116
- export const KENDO_STACKLAYOUT = [
117
- StackLayoutComponent
118
- ];
119
- /**
120
- * Use the `KENDO_STEPPER` utility array to add all Stepper-related components and directives to a standalone Angular component.
121
- */
122
- export const KENDO_STEPPER = [
123
- StepperComponent,
124
- StepperCustomMessagesComponent,
125
- StepperIndicatorTemplateDirective,
126
- StepperLabelTemplateDirective,
127
- StepperStepTemplateDirective
128
- ];
129
- /**
130
- * Use the `KENDO_TABSTRIP` utility array to add all TabStrip-related components and directives to a standalone Angular component.
131
- */
132
- export const KENDO_TABSTRIP = [
133
- TabStripComponent,
134
- TabStripTabComponent,
135
- TabContentDirective,
136
- TabTitleDirective,
137
- TabStripCustomMessagesComponent
138
- ];
139
- /**
140
- * Use the `KENDO_TILELAYOUT` utility array to add all TileLayout-related components and directives to a standalone Angular component.
141
- */
142
- export const KENDO_TILELAYOUT = [
143
- TileLayoutComponent,
144
- TileLayoutItemBodyComponent,
145
- TileLayoutItemComponent,
146
- TileLayoutItemHeaderComponent
147
- ];
148
- /**
149
- * Use the `KENDO_TIMELINE` utility array to add all Timeline-related components and directives to a standalone Angular component.
150
- */
151
- export const KENDO_TIMELINE = [
152
- TimelineComponent,
153
- TimelineCustomMessagesComponent,
154
- TimelineCardActionsTemplateDirective,
155
- TimelineCardBodyTemplateDirective,
156
- TimelineCardHeaderTemplateDirective
157
- ];
158
- /**
159
- * Use the `KENDO_LAYOUT` utility array to add all `@progress/kendo-angular-layout`-related components and directives to a standalone Angular component.
160
- */
161
- export const KENDO_LAYOUT = [
162
- ...KENDO_AVATAR,
163
- ...KENDO_CARD,
164
- ...KENDO_DRAWER,
165
- ...KENDO_EXPANSIONPANEL,
166
- ...KENDO_GRIDLAYOUT,
167
- ...KENDO_PANELBAR,
168
- ...KENDO_SPLITTER,
169
- ...KENDO_STACKLAYOUT,
170
- ...KENDO_STEPPER,
171
- ...KENDO_TABSTRIP,
172
- ...KENDO_TILELAYOUT,
173
- ...KENDO_TIMELINE
174
- ];
@@ -1,146 +0,0 @@
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
- import { animate, style } from '@angular/animations';
6
- /**
7
- * @hidden
8
- */
9
- function miniExpandPush(duration, width, miniWidth) {
10
- return [
11
- style({ overflow: 'hidden', flexBasis: `${miniWidth}px` }),
12
- animate(`${duration}ms ease-in`, style({ flexBasis: `${width}px` }))
13
- ];
14
- }
15
- /**
16
- * @hidden
17
- */
18
- function miniCollapsePush(duration, width, miniWidth) {
19
- return [
20
- style({ overflow: 'hidden', flexBasis: `${width}px` }),
21
- animate(`${duration}ms ease-in`, style({ flexBasis: `${miniWidth}px` }))
22
- ];
23
- }
24
- /**
25
- * @hidden
26
- *
27
- */
28
- function miniExpandOverlay(duration, width, miniWidth) {
29
- return [
30
- style({ width: `${miniWidth}px` }),
31
- animate(`${duration}ms ease-in`, style({ overflow: 'hidden', width: `${width}px` }))
32
- ];
33
- }
34
- /**
35
- * @hidden
36
- */
37
- function expandPush(duration, width) {
38
- return [
39
- style({ overflow: 'hidden', flexBasis: '0px' }),
40
- animate(`${duration}ms ease-in`, style({ flexBasis: `${width}px` }))
41
- ];
42
- }
43
- /**
44
- * @hidden
45
- */
46
- function collapsePush(duration, width) {
47
- return [
48
- style({ flexBasis: `${width}px` }),
49
- animate(`${duration}ms ease-in`, style({ overflow: 'hidden', flexBasis: `0px` }))
50
- ];
51
- }
52
- /**
53
- * @hidden
54
- */
55
- function expandRTLOverlay(duration) {
56
- return [
57
- style({ transform: `translateX(100%)` }),
58
- animate(`${duration}ms ease-in`, style({ overflow: 'hidden', transform: `translateX(0)` }))
59
- ];
60
- }
61
- /**
62
- * @hidden
63
- */
64
- function expandOverlay(duration, position) {
65
- const translateDir = position !== 'end' ? `-100%` : `100%`;
66
- return [
67
- style({ transform: `translateX(${translateDir})` }),
68
- animate(`${duration}ms ease-in`, style({ overflow: 'hidden', transform: `translateX(0)` }))
69
- ];
70
- }
71
- /**
72
- * @hidden
73
- */
74
- function miniCollapseOverlay(duration, width, miniWidth) {
75
- return [
76
- style({ width: `${width}px` }),
77
- animate(`${duration}ms ease-in`, style({ overflow: 'hidden', width: `${miniWidth}px` }))
78
- ];
79
- }
80
- /**
81
- * @hidden
82
- */
83
- function collapseOverlay(duration, position) {
84
- const translateDir = position !== 'end' ? '-100%' : '100%';
85
- return [
86
- style({ transform: `translateX(0)` }),
87
- animate(`${duration}ms ease-in`, style({ overflow: 'hidden', transform: `translateX(${translateDir})` }))
88
- ];
89
- }
90
- /**
91
- * @hidden
92
- */
93
- function collapseRTLOverlay(duration) {
94
- return [
95
- style({ transform: `translateX(0)` }),
96
- animate(`${duration}ms ease-in`, style({ overflow: 'hidden', transform: `translateX(100%)` }))
97
- ];
98
- }
99
- /**
100
- * @hidden
101
- */
102
- export function expandAnimation(settings) {
103
- const duration = settings.animation.duration;
104
- const width = settings.width;
105
- const miniWidth = settings.miniWidth;
106
- const mode = settings.mode;
107
- const mini = settings.mini;
108
- const rtl = settings.rtl;
109
- const position = settings.position;
110
- if (mini && mode === 'push') {
111
- return miniExpandPush(duration, width, miniWidth);
112
- }
113
- if (!mini && mode === 'push') {
114
- return expandPush(duration, width);
115
- }
116
- if (!mini && mode === 'overlay') {
117
- return rtl ? expandRTLOverlay(duration) : expandOverlay(duration, position);
118
- }
119
- if (mini && mode === 'overlay') {
120
- return miniExpandOverlay(duration, width, miniWidth);
121
- }
122
- }
123
- /**
124
- * @hidden
125
- */
126
- export function collapseAnimation(settings) {
127
- const duration = settings.animation.duration;
128
- const width = settings.width;
129
- const miniWidth = settings.miniWidth;
130
- const mode = settings.mode;
131
- const mini = settings.mini;
132
- const rtl = settings.rtl;
133
- const position = settings.position;
134
- if (mini && mode === 'push') {
135
- return miniCollapsePush(duration, width, miniWidth);
136
- }
137
- if (!mini && mode === 'push') {
138
- return collapsePush(duration, width);
139
- }
140
- if (!mini && mode === 'overlay') {
141
- return rtl ? collapseRTLOverlay(duration) : collapseOverlay(duration, position);
142
- }
143
- if (mini && mode === 'overlay') {
144
- return miniCollapseOverlay(duration, width, miniWidth);
145
- }
146
- }