@syncfusion/ej2-navigations 22.2.7 → 22.2.11
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/CHANGELOG.md +14 -0
- package/dist/ej2-navigations.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +86 -28
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +88 -28
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/breadcrumb/breadcrumb-model.d.ts +1 -1
- package/src/breadcrumb/breadcrumb.js +9 -2
- package/src/carousel/carousel.d.ts +1 -0
- package/src/carousel/carousel.js +9 -0
- package/src/tab/tab-model.d.ts +6 -0
- package/src/tab/tab.d.ts +5 -0
- package/src/tab/tab.js +11 -0
- package/src/toolbar/toolbar.d.ts +1 -0
- package/src/toolbar/toolbar.js +48 -26
- package/src/treeview/treeview-model.d.ts +1 -1
- package/src/treeview/treeview.js +11 -0
- package/styles/accordion/material.css +1 -1
- package/styles/appbar/material.css +1 -1
- package/styles/breadcrumb/material.css +1 -1
- package/styles/carousel/material.css +1 -1
- package/styles/context-menu/material.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/material.css +1 -1
- package/styles/menu/material.css +1 -1
- package/styles/pager/material.css +1 -1
- package/styles/sidebar/material.css +1 -1
- package/styles/tab/material.css +1 -1
- package/styles/toolbar/material.css +1 -1
- package/styles/treeview/material.css +1 -1
- package/styles/v-scroll/material.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.2.
|
|
3
|
+
* version : 22.2.11
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-navigations@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-navigations@22.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@22.2.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-GfpbncyICmmctljscMk/6Ti1+OpGGuIFBxm0Ti012hR/YP8Q45c628+mdJbbeZR98iNiukE4SivYdYxdU8z63w==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"/@syncfusion/ej2-spreadsheet",
|
|
40
40
|
"/@syncfusion/ej2-vue-navigations"
|
|
41
41
|
],
|
|
42
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-22.2.
|
|
43
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-22.2.8.tgz",
|
|
43
|
+
"_shasum": "f56389920bf2f999ea4528232b989bc2fa0b21a0",
|
|
44
44
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
45
45
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
46
46
|
"author": {
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"bundleDependencies": false,
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@syncfusion/ej2-base": "~22.2.
|
|
55
|
-
"@syncfusion/ej2-buttons": "~22.2.
|
|
54
|
+
"@syncfusion/ej2-base": "~22.2.10",
|
|
55
|
+
"@syncfusion/ej2-buttons": "~22.2.9",
|
|
56
56
|
"@syncfusion/ej2-data": "~22.2.5",
|
|
57
|
-
"@syncfusion/ej2-inputs": "~22.2.
|
|
58
|
-
"@syncfusion/ej2-lists": "~22.2.
|
|
59
|
-
"@syncfusion/ej2-popups": "~22.2.
|
|
57
|
+
"@syncfusion/ej2-inputs": "~22.2.9",
|
|
58
|
+
"@syncfusion/ej2-lists": "~22.2.11",
|
|
59
|
+
"@syncfusion/ej2-popups": "~22.2.11"
|
|
60
60
|
},
|
|
61
61
|
"deprecated": false,
|
|
62
62
|
"description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
|
|
@@ -161,6 +161,6 @@
|
|
|
161
161
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
162
162
|
},
|
|
163
163
|
"typings": "index.d.ts",
|
|
164
|
-
"version": "22.2.
|
|
164
|
+
"version": "22.2.11",
|
|
165
165
|
"sideEffects": false
|
|
166
166
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass, detach, remove } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';
|
|
1
|
+
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass, detach, remove, initializeCSPTemplate, isNullOrUndefined } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';
|
|
2
2
|
import {BreadcrumbOverflowMode,BreadcrumbBeforeItemRenderEventArgs,BreadcrumbClickEventArgs} from "./breadcrumb";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
17
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { Component, NotifyPropertyChanges, ChildProperty, Property, Collection, append, extend, Event, EventHandler, closest, addClass, removeClass, detach, remove } from '@syncfusion/ej2-base';
|
|
20
|
+
import { Component, NotifyPropertyChanges, ChildProperty, Property, Collection, append, extend, Event, EventHandler, closest, addClass, removeClass, detach, remove, initializeCSPTemplate, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
21
21
|
import { ListBase } from '@syncfusion/ej2-lists';
|
|
22
22
|
import { Popup } from '@syncfusion/ej2-popups';
|
|
23
23
|
var ICONRIGHT = 'e-icon-right';
|
|
@@ -293,7 +293,14 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
293
293
|
if (i % 2) {
|
|
294
294
|
// separator item
|
|
295
295
|
wrapDiv = this.createElement('div', { className: 'e-breadcrumb-item-wrapper' });
|
|
296
|
-
|
|
296
|
+
if ((this.separatorTemplate && this.separatorTemplate === '/') || isNullOrUndefined(this.separatorTemplate)) {
|
|
297
|
+
listBaseOptions.template = initializeCSPTemplate(function () {
|
|
298
|
+
return '/';
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
listBaseOptions.template = this.separatorTemplate;
|
|
303
|
+
}
|
|
297
304
|
listBaseOptions.itemClass = 'e-breadcrumb-separator';
|
|
298
305
|
isSingleLevel = false;
|
|
299
306
|
item = [{ previousItem: items[j_1], nextItem: items[j_1 + 1] }];
|
package/src/carousel/carousel.js
CHANGED
|
@@ -1092,6 +1092,13 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1092
1092
|
EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
|
|
1093
1093
|
}
|
|
1094
1094
|
};
|
|
1095
|
+
Carousel.prototype.resizeHandler = function () {
|
|
1096
|
+
if (this.itemsContainer && this.itemsContainer.firstElementChild) {
|
|
1097
|
+
var numOfItems = this.getNumOfItems();
|
|
1098
|
+
var slideWidth = this.itemsContainer.firstElementChild.clientWidth;
|
|
1099
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
|
|
1100
|
+
}
|
|
1101
|
+
};
|
|
1095
1102
|
Carousel.prototype.wireEvents = function () {
|
|
1096
1103
|
if (!(this.animationEffect === 'Custom')) {
|
|
1097
1104
|
this.swipeModehandlers();
|
|
@@ -1100,6 +1107,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1100
1107
|
EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
|
|
1101
1108
|
EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
|
|
1102
1109
|
EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
|
|
1110
|
+
EventHandler.add(window, 'resize', this.resizeHandler, this);
|
|
1103
1111
|
};
|
|
1104
1112
|
Carousel.prototype.unWireEvents = function () {
|
|
1105
1113
|
var _this = this;
|
|
@@ -1119,6 +1127,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1119
1127
|
EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
|
|
1120
1128
|
EventHandler.clearEvents(this.element);
|
|
1121
1129
|
EventHandler.clearEvents(this.itemsContainer);
|
|
1130
|
+
EventHandler.remove(window, 'resize', this.resizeHandler);
|
|
1122
1131
|
};
|
|
1123
1132
|
/**
|
|
1124
1133
|
* Method to transit from the current slide to the previous slide.
|
package/src/tab/tab-model.d.ts
CHANGED
|
@@ -315,6 +315,12 @@ export interface TabModel extends ComponentModel{
|
|
|
315
315
|
*/
|
|
316
316
|
allowDragAndDrop?: boolean;
|
|
317
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Specifies whether the templates need to be cleared or not while changing the Tab items dynamically.
|
|
320
|
+
* @default true
|
|
321
|
+
*/
|
|
322
|
+
clearTemplates?: boolean;
|
|
323
|
+
|
|
318
324
|
/**
|
|
319
325
|
* Specifies the animation configuration settings while showing the content of the Tab.
|
|
320
326
|
*
|
package/src/tab/tab.d.ts
CHANGED
|
@@ -430,6 +430,11 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
430
430
|
* @default false
|
|
431
431
|
*/
|
|
432
432
|
allowDragAndDrop: boolean;
|
|
433
|
+
/**
|
|
434
|
+
* Specifies whether the templates need to be cleared or not while changing the Tab items dynamically.
|
|
435
|
+
* @default true
|
|
436
|
+
*/
|
|
437
|
+
clearTemplates: boolean;
|
|
433
438
|
/**
|
|
434
439
|
* Specifies the animation configuration settings while showing the content of the Tab.
|
|
435
440
|
*
|
package/src/tab/tab.js
CHANGED
|
@@ -316,6 +316,11 @@ var Tab = /** @class */ (function (_super) {
|
|
|
316
316
|
this.renderContainer();
|
|
317
317
|
this.wireEvents();
|
|
318
318
|
this.initRender = false;
|
|
319
|
+
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
320
|
+
this.renderReactTemplates(function () {
|
|
321
|
+
this.refreshActiveBorder();
|
|
322
|
+
});
|
|
323
|
+
}
|
|
319
324
|
};
|
|
320
325
|
Tab.prototype.renderContainer = function () {
|
|
321
326
|
var ele = this.element;
|
|
@@ -1489,6 +1494,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1489
1494
|
}
|
|
1490
1495
|
};
|
|
1491
1496
|
Tab.prototype.clearTabTemplate = function (templateEle, templateName, className) {
|
|
1497
|
+
if (!this.clearTemplates) {
|
|
1498
|
+
return;
|
|
1499
|
+
}
|
|
1492
1500
|
if (this.registeredTemplate && this.registeredTemplate[templateName]) {
|
|
1493
1501
|
var registeredTemplates = this.registeredTemplate;
|
|
1494
1502
|
for (var index = 0; index < registeredTemplates[templateName].length; index++) {
|
|
@@ -2391,6 +2399,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
2391
2399
|
__decorate([
|
|
2392
2400
|
Property(false)
|
|
2393
2401
|
], Tab.prototype, "allowDragAndDrop", void 0);
|
|
2402
|
+
__decorate([
|
|
2403
|
+
Property(true)
|
|
2404
|
+
], Tab.prototype, "clearTemplates", void 0);
|
|
2394
2405
|
__decorate([
|
|
2395
2406
|
Complex({}, TabAnimationSettings)
|
|
2396
2407
|
], Tab.prototype, "animation", void 0);
|
package/src/toolbar/toolbar.d.ts
CHANGED
|
@@ -502,6 +502,7 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
|
|
|
502
502
|
private orientationChange;
|
|
503
503
|
private extendedOpen;
|
|
504
504
|
private updateHideEleTabIndex;
|
|
505
|
+
private clearToolbarTemplate;
|
|
505
506
|
/**
|
|
506
507
|
* Gets called when the model property changes.The data that describes the old and new values of the property that changed.
|
|
507
508
|
*
|
package/src/toolbar/toolbar.js
CHANGED
|
@@ -1814,7 +1814,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
1814
1814
|
this.tbarAlgEle[(this.items[parseInt(eleIdx.toString(), 10)].align + 's').toLowerCase()].splice(parseInt(indexAgn.toString(), 10), 1);
|
|
1815
1815
|
}
|
|
1816
1816
|
if (this.isReact) {
|
|
1817
|
-
this.
|
|
1817
|
+
this.clearToolbarTemplate(innerItems[parseInt(index.toString(), 10)]);
|
|
1818
1818
|
}
|
|
1819
1819
|
var btnItem = innerItems[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');
|
|
1820
1820
|
if (!isNOU(btnItem) && !isNOU(btnItem.ej2_instances[0]) && !(btnItem.ej2_instances[0].isDestroyed)) {
|
|
@@ -2127,6 +2127,30 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
2127
2127
|
nextEle = innerItems[++eleIndex];
|
|
2128
2128
|
}
|
|
2129
2129
|
};
|
|
2130
|
+
Toolbar.prototype.clearToolbarTemplate = function (templateEle) {
|
|
2131
|
+
if (this.registeredTemplate && this.registeredTemplate["" + 'template']) {
|
|
2132
|
+
var registeredTemplates = this.registeredTemplate;
|
|
2133
|
+
for (var index = 0; index < registeredTemplates["" + 'template'].length; index++) {
|
|
2134
|
+
var registeredItem = registeredTemplates["" + 'template'][parseInt(index.toString(), 10)].rootNodes[0];
|
|
2135
|
+
var closestItem = closest(registeredItem, '.' + CLS_ITEM);
|
|
2136
|
+
if (!isNOU(closestItem) && closestItem === templateEle) {
|
|
2137
|
+
this.clearTemplate(['template'], [registeredTemplates["" + 'template'][parseInt(index.toString(), 10)]]);
|
|
2138
|
+
break;
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
else if (this.portals && this.portals.length > 0) {
|
|
2143
|
+
var portals = this.portals;
|
|
2144
|
+
for (var index = 0; index < portals.length; index++) {
|
|
2145
|
+
var portalItem = portals[parseInt(index.toString(), 10)];
|
|
2146
|
+
var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM);
|
|
2147
|
+
if (!isNOU(closestItem) && closestItem === templateEle) {
|
|
2148
|
+
this.clearTemplate(['template'], index);
|
|
2149
|
+
break;
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
};
|
|
2130
2154
|
/**
|
|
2131
2155
|
* Gets called when the model property changes.The data that describes the old and new values of the property that changed.
|
|
2132
2156
|
*
|
|
@@ -2149,31 +2173,29 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
2149
2173
|
var index = parseInt(Object.keys(newProp.items)[parseInt(i.toString(), 10)], 10);
|
|
2150
2174
|
var property = Object.keys(newProp.items[parseInt(index.toString(), 10)])[0];
|
|
2151
2175
|
var newProperty = Object(newProp.items[parseInt(index.toString(), 10)])["" + property];
|
|
2152
|
-
if (
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
this.tbarEle.splice(this.items.length, 1);
|
|
2176
|
-
}
|
|
2176
|
+
if (this.tbarAlign || property === 'align') {
|
|
2177
|
+
this.refresh();
|
|
2178
|
+
this.trigger('created');
|
|
2179
|
+
break;
|
|
2180
|
+
}
|
|
2181
|
+
var popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
|
|
2182
|
+
var booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
|
|
2183
|
+
if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
|
|
2184
|
+
--this.popupPriCount;
|
|
2185
|
+
}
|
|
2186
|
+
if (isNOU(this.scrollModule)) {
|
|
2187
|
+
this.destroyMode();
|
|
2188
|
+
}
|
|
2189
|
+
var itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
|
|
2190
|
+
if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
|
|
2191
|
+
this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
|
|
2192
|
+
}
|
|
2193
|
+
detach(itemCol[parseInt(index.toString(), 10)]);
|
|
2194
|
+
this.tbarEle.splice(index, 1);
|
|
2195
|
+
this.addItems([this.items[parseInt(index.toString(), 10)]], index);
|
|
2196
|
+
this.items.splice(index, 1);
|
|
2197
|
+
if (this.items[parseInt(index.toString(), 10)].template) {
|
|
2198
|
+
this.tbarEle.splice(this.items.length, 1);
|
|
2177
2199
|
}
|
|
2178
2200
|
}
|
|
2179
2201
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper
|
|
1
|
+
import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { Property, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Complex } from '@syncfusion/ej2-base';import { Event, EventHandler, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { rippleEffect, Effect, Animation, AnimationOptions, RippleOptions, remove } from '@syncfusion/ej2-base';import { Draggable, DragEventArgs, Droppable, DropEventArgs } from '@syncfusion/ej2-base';import { getElement } from '@syncfusion/ej2-base';import { addClass, removeClass, closest, matches, detach, select, selectAll, isVisible, append } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { isNullOrUndefined as isNOU, Touch, TapEventArgs, getValue, setValue, extend, merge, attributes } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions, AriaAttributesMapping, FieldsMapping } from '@syncfusion/ej2-lists';import { createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';import { Input, InputObject } from '@syncfusion/ej2-inputs';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
|
|
2
2
|
import {ExpandOnSettings,SortOrder,FailureEventArgs,DataBoundEventArgs,DataSourceChangedEventArgs,DrawNodeEventArgs,NodeKeyPressEventArgs,NodeCheckEventArgs,NodeClickEventArgs,NodeExpandEventArgs,DragAndDropEventArgs,NodeEditEventArgs,NodeSelectEventArgs} from "./treeview";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
package/src/treeview/treeview.js
CHANGED
|
@@ -853,6 +853,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
853
853
|
return list;
|
|
854
854
|
};
|
|
855
855
|
TreeView.prototype.finalizeNode = function (element) {
|
|
856
|
+
var _this = this;
|
|
856
857
|
var iNodes = selectAll('.' + IMAGE, element);
|
|
857
858
|
for (var k = 0; k < iNodes.length; k++) {
|
|
858
859
|
iNodes[k].setAttribute('alt', IMAGE);
|
|
@@ -873,6 +874,9 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
873
874
|
}
|
|
874
875
|
}
|
|
875
876
|
var eNodes = selectAll('.' + EXPANDED, element);
|
|
877
|
+
if (!this.loadOnDemand) {
|
|
878
|
+
this.isInitalExpand = this.treeData.filter(function (e) { return e[_this.fields.expanded] == true; }).length > 0 ? true : this.isInitalExpand;
|
|
879
|
+
}
|
|
876
880
|
if (!this.isInitalExpand) {
|
|
877
881
|
for (var i = 0; i < eNodes.length; i++) {
|
|
878
882
|
this.renderChildNodes(eNodes[i]);
|
|
@@ -1377,7 +1381,11 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1377
1381
|
}
|
|
1378
1382
|
};
|
|
1379
1383
|
TreeView.prototype.doExpandAction = function () {
|
|
1384
|
+
var _this = this;
|
|
1380
1385
|
var eUids = this.expandedNodes;
|
|
1386
|
+
if (!this.loadOnDemand) {
|
|
1387
|
+
this.isInitalExpand = this.treeData.filter(function (e) { return e[_this.fields.expanded] == true; }).length > 0 ? true : this.isInitalExpand;
|
|
1388
|
+
}
|
|
1381
1389
|
if (this.isInitalExpand && eUids.length > 0) {
|
|
1382
1390
|
this.setProperties({ expandedNodes: [] }, true);
|
|
1383
1391
|
/* eslint-disable */
|
|
@@ -1819,6 +1827,9 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1819
1827
|
if (callback) {
|
|
1820
1828
|
callback();
|
|
1821
1829
|
}
|
|
1830
|
+
if (expandChild) {
|
|
1831
|
+
this.expandedNodes.push(parentLi.getAttribute('data-uid'));
|
|
1832
|
+
}
|
|
1822
1833
|
if (this.treeList.length === 0 && !this.isLoaded) {
|
|
1823
1834
|
this.finalize();
|
|
1824
1835
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
|
|
1
|
+
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
|
|
2
2
|
/*! component's theme wise override material-definitions and variables */
|
|
3
3
|
/*! accordion icons */
|
|
4
4
|
.e-accordion .e-tgl-collapse-icon::before {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
|
|
1
|
+
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
|
|
2
2
|
/*! Carousel component material theme definitions and variables */
|
|
3
3
|
.e-carousel .e-previous-icon::before {
|
|
4
4
|
content: "\e904";
|
package/styles/material.css
CHANGED
package/styles/menu/material.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
|
|
1
|
+
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
|
|
2
2
|
/*! Material theme definition's */
|
|
3
3
|
/*! component's theme wise override definitions and variables */
|
|
4
4
|
/* stylelint-disable-line no-empty-source */ /* stylelint-disable-line no-empty-source */
|
package/styles/tab/material.css
CHANGED