@progress/kendo-angular-layout 17.0.0-develop.29 → 17.0.0-develop.30

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-layout',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1730377068,
13
- version: '17.0.0-develop.29',
12
+ publishDate: 1730388906,
13
+ version: '17.0.0-develop.30',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -145,13 +145,13 @@ export class SplitterBarComponent {
145
145
  const relatedPaneIndex = iconName === 'prev' ? this.index + 1 : this.index;
146
146
  const pane = this.splitterService.pane(paneIndex);
147
147
  const relatedPane = this.splitterService.pane(relatedPaneIndex);
148
- const isCollapsible = pane.collapsible;
149
- return isCollapsible && !relatedPane.isHidden;
148
+ const isCollapsible = pane?.collapsible;
149
+ return isCollapsible && !relatedPane?.isHidden;
150
150
  }
151
151
  previousArrowClass() {
152
152
  const pane = this.splitterService.pane(this.index);
153
- const isCollapsible = pane.collapsible;
154
- const isCollapsed = pane.collapsed;
153
+ const isCollapsible = pane?.collapsible;
154
+ const isCollapsed = pane?.collapsed;
155
155
  const isHorizontal = this.orientation === 'horizontal';
156
156
  const isRTL = this.direction === 'rtl';
157
157
  return classFromObject({
@@ -163,8 +163,8 @@ export class SplitterBarComponent {
163
163
  }
164
164
  previousSVGArrowClass() {
165
165
  const pane = this.splitterService.pane(this.index);
166
- const isCollapsible = pane.collapsible;
167
- const isCollapsed = pane.collapsed;
166
+ const isCollapsible = pane?.collapsible;
167
+ const isCollapsed = pane?.collapsed;
168
168
  const isHorizontal = this.orientation === 'horizontal';
169
169
  const isRTL = this.direction === 'rtl';
170
170
  if (isCollapsible && isHorizontal && ((!isCollapsed && !isRTL) || (isCollapsed && isRTL))) {
@@ -182,8 +182,8 @@ export class SplitterBarComponent {
182
182
  }
183
183
  nextArrowClass() {
184
184
  const pane = this.splitterService.pane(this.index + 1);
185
- const isCollapsible = pane.collapsible;
186
- const isCollapsed = pane.collapsed;
185
+ const isCollapsible = pane?.collapsible;
186
+ const isCollapsed = pane?.collapsed;
187
187
  const isHorizontal = this.orientation === 'horizontal';
188
188
  const isRTL = this.direction === 'rtl';
189
189
  return classFromObject({
@@ -195,8 +195,8 @@ export class SplitterBarComponent {
195
195
  }
196
196
  nextSVGArrowClass() {
197
197
  const pane = this.splitterService.pane(this.index + 1);
198
- const isCollapsible = pane.collapsible;
199
- const isCollapsed = pane.collapsed;
198
+ const isCollapsible = pane?.collapsible;
199
+ const isCollapsed = pane?.collapsed;
200
200
  const isHorizontal = this.orientation === 'horizontal';
201
201
  const isRTL = this.direction === 'rtl';
202
202
  if (isCollapsible && isHorizontal && ((!isCollapsed && !isRTL) || (isCollapsed && isRTL))) {
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { EventEmitter, NgZone, Injectable } from '@angular/core';
6
- import { Keys } from '@progress/kendo-angular-common';
6
+ import { isDocumentAvailable, Keys } from '@progress/kendo-angular-common';
7
7
  import { shouldTogglePrev, shouldToggleNext } from './util';
8
8
  import * as i0 from "@angular/core";
9
9
  const MAX_PANE_HEIGHT = 33554400;
@@ -132,18 +132,21 @@ export class SplitterService {
132
132
  isDraggable(splitBarIndex) {
133
133
  const prev = this.pane(splitBarIndex);
134
134
  const next = this.pane(splitBarIndex + 1);
135
- const betweenResizablePanes = prev.resizable && next.resizable;
136
- const nearCollapsedPane = prev.collapsed || next.collapsed;
135
+ const betweenResizablePanes = prev?.resizable && next?.resizable;
136
+ const nearCollapsedPane = prev?.collapsed || next?.collapsed;
137
137
  return betweenResizablePanes && !nearCollapsedPane;
138
138
  }
139
139
  isStatic(splitBarIndex) {
140
140
  const prev = this.pane(splitBarIndex);
141
141
  const next = this.pane(splitBarIndex + 1);
142
- const betweenResizablePanes = prev.resizable && next.resizable;
143
- const nearCollapsiblePane = prev.collapsible || next.collapsible;
142
+ const betweenResizablePanes = prev?.resizable && next?.resizable;
143
+ const nearCollapsiblePane = prev?.collapsible || next?.collapsible;
144
144
  return !betweenResizablePanes && !nearCollapsiblePane;
145
145
  }
146
146
  pane(index) {
147
+ if (!isDocumentAvailable()) {
148
+ return;
149
+ }
147
150
  if (!this.panes) {
148
151
  throw new Error("Panes not initialized");
149
152
  }
@@ -7,7 +7,7 @@ import { Injectable, Directive, Optional, isDevMode, Component, SkipSelf, Host,
7
7
  import * as i1 from '@progress/kendo-angular-l10n';
8
8
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
9
9
  import * as i1$1 from '@progress/kendo-angular-common';
10
- import { Keys, shouldShowValidationUI, WatermarkOverlayComponent, isObjectPresent, removeHTMLAttributes, parseAttributes, setHTMLAttributes, isDocumentAvailable, DraggableDirective, PreventableEvent as PreventableEvent$1, guid, ResizeSensorComponent, hasObservers, isPresent as isPresent$1, focusableSelector, isChanged } from '@progress/kendo-angular-common';
10
+ import { Keys, shouldShowValidationUI, WatermarkOverlayComponent, isDocumentAvailable, isObjectPresent, removeHTMLAttributes, parseAttributes, setHTMLAttributes, DraggableDirective, PreventableEvent as PreventableEvent$1, guid, ResizeSensorComponent, hasObservers, isPresent as isPresent$1, focusableSelector, isChanged } from '@progress/kendo-angular-common';
11
11
  import { validatePackage } from '@progress/kendo-licensing';
12
12
  import * as i1$2 from '@angular/animations';
13
13
  import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
@@ -28,8 +28,8 @@ const packageMetadata = {
28
28
  name: '@progress/kendo-angular-layout',
29
29
  productName: 'Kendo UI for Angular',
30
30
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
31
- publishDate: 1730377068,
32
- version: '17.0.0-develop.29',
31
+ publishDate: 1730388906,
32
+ version: '17.0.0-develop.30',
33
33
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
34
34
  };
35
35
 
@@ -1831,18 +1831,21 @@ class SplitterService {
1831
1831
  isDraggable(splitBarIndex) {
1832
1832
  const prev = this.pane(splitBarIndex);
1833
1833
  const next = this.pane(splitBarIndex + 1);
1834
- const betweenResizablePanes = prev.resizable && next.resizable;
1835
- const nearCollapsedPane = prev.collapsed || next.collapsed;
1834
+ const betweenResizablePanes = prev?.resizable && next?.resizable;
1835
+ const nearCollapsedPane = prev?.collapsed || next?.collapsed;
1836
1836
  return betweenResizablePanes && !nearCollapsedPane;
1837
1837
  }
1838
1838
  isStatic(splitBarIndex) {
1839
1839
  const prev = this.pane(splitBarIndex);
1840
1840
  const next = this.pane(splitBarIndex + 1);
1841
- const betweenResizablePanes = prev.resizable && next.resizable;
1842
- const nearCollapsiblePane = prev.collapsible || next.collapsible;
1841
+ const betweenResizablePanes = prev?.resizable && next?.resizable;
1842
+ const nearCollapsiblePane = prev?.collapsible || next?.collapsible;
1843
1843
  return !betweenResizablePanes && !nearCollapsiblePane;
1844
1844
  }
1845
1845
  pane(index) {
1846
+ if (!isDocumentAvailable()) {
1847
+ return;
1848
+ }
1846
1849
  if (!this.panes) {
1847
1850
  throw new Error("Panes not initialized");
1848
1851
  }
@@ -2283,13 +2286,13 @@ class SplitterBarComponent {
2283
2286
  const relatedPaneIndex = iconName === 'prev' ? this.index + 1 : this.index;
2284
2287
  const pane = this.splitterService.pane(paneIndex);
2285
2288
  const relatedPane = this.splitterService.pane(relatedPaneIndex);
2286
- const isCollapsible = pane.collapsible;
2287
- return isCollapsible && !relatedPane.isHidden;
2289
+ const isCollapsible = pane?.collapsible;
2290
+ return isCollapsible && !relatedPane?.isHidden;
2288
2291
  }
2289
2292
  previousArrowClass() {
2290
2293
  const pane = this.splitterService.pane(this.index);
2291
- const isCollapsible = pane.collapsible;
2292
- const isCollapsed = pane.collapsed;
2294
+ const isCollapsible = pane?.collapsible;
2295
+ const isCollapsed = pane?.collapsed;
2293
2296
  const isHorizontal = this.orientation === 'horizontal';
2294
2297
  const isRTL = this.direction === 'rtl';
2295
2298
  return classFromObject({
@@ -2301,8 +2304,8 @@ class SplitterBarComponent {
2301
2304
  }
2302
2305
  previousSVGArrowClass() {
2303
2306
  const pane = this.splitterService.pane(this.index);
2304
- const isCollapsible = pane.collapsible;
2305
- const isCollapsed = pane.collapsed;
2307
+ const isCollapsible = pane?.collapsible;
2308
+ const isCollapsed = pane?.collapsed;
2306
2309
  const isHorizontal = this.orientation === 'horizontal';
2307
2310
  const isRTL = this.direction === 'rtl';
2308
2311
  if (isCollapsible && isHorizontal && ((!isCollapsed && !isRTL) || (isCollapsed && isRTL))) {
@@ -2320,8 +2323,8 @@ class SplitterBarComponent {
2320
2323
  }
2321
2324
  nextArrowClass() {
2322
2325
  const pane = this.splitterService.pane(this.index + 1);
2323
- const isCollapsible = pane.collapsible;
2324
- const isCollapsed = pane.collapsed;
2326
+ const isCollapsible = pane?.collapsible;
2327
+ const isCollapsed = pane?.collapsed;
2325
2328
  const isHorizontal = this.orientation === 'horizontal';
2326
2329
  const isRTL = this.direction === 'rtl';
2327
2330
  return classFromObject({
@@ -2333,8 +2336,8 @@ class SplitterBarComponent {
2333
2336
  }
2334
2337
  nextSVGArrowClass() {
2335
2338
  const pane = this.splitterService.pane(this.index + 1);
2336
- const isCollapsible = pane.collapsible;
2337
- const isCollapsed = pane.collapsed;
2339
+ const isCollapsible = pane?.collapsible;
2340
+ const isCollapsed = pane?.collapsed;
2338
2341
  const isHorizontal = this.orientation === 'horizontal';
2339
2342
  const isRTL = this.direction === 'rtl';
2340
2343
  if (isCollapsible && isHorizontal && ((!isCollapsed && !isRTL) || (isCollapsed && isRTL))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-layout",
3
- "version": "17.0.0-develop.29",
3
+ "version": "17.0.0-develop.30",
4
4
  "description": "Kendo UI for Angular Layout Package - a collection of components to create professional application layoyts",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -39,17 +39,17 @@
39
39
  "@angular/core": "16 - 18",
40
40
  "@angular/platform-browser": "16 - 18",
41
41
  "@progress/kendo-licensing": "^1.0.2",
42
- "@progress/kendo-angular-common": "17.0.0-develop.29",
43
- "@progress/kendo-angular-l10n": "17.0.0-develop.29",
44
- "@progress/kendo-angular-progressbar": "17.0.0-develop.29",
45
- "@progress/kendo-angular-icons": "17.0.0-develop.29",
46
- "@progress/kendo-angular-buttons": "17.0.0-develop.29",
47
- "@progress/kendo-angular-intl": "17.0.0-develop.29",
42
+ "@progress/kendo-angular-common": "17.0.0-develop.30",
43
+ "@progress/kendo-angular-l10n": "17.0.0-develop.30",
44
+ "@progress/kendo-angular-progressbar": "17.0.0-develop.30",
45
+ "@progress/kendo-angular-icons": "17.0.0-develop.30",
46
+ "@progress/kendo-angular-buttons": "17.0.0-develop.30",
47
+ "@progress/kendo-angular-intl": "17.0.0-develop.30",
48
48
  "rxjs": "^6.5.3 || ^7.0.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "tslib": "^2.3.1",
52
- "@progress/kendo-angular-schematics": "17.0.0-develop.29",
52
+ "@progress/kendo-angular-schematics": "17.0.0-develop.30",
53
53
  "@progress/kendo-draggable": "^3.0.2"
54
54
  },
55
55
  "schematics": "./schematics/collection.json",