@syncfusion/ej2-navigations 27.2.5 → 28.1.35
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/README.md +2 -2
- package/dist/ej2-navigations.min.js +3 -3
- package/dist/ej2-navigations.umd.min.js +3 -3
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +535 -341
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +555 -355
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +3 -3
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +12 -12
- package/src/accordion/accordion.d.ts +7 -0
- package/src/accordion/accordion.js +52 -45
- package/src/carousel/carousel-model.d.ts +12 -0
- package/src/carousel/carousel.d.ts +11 -0
- package/src/carousel/carousel.js +25 -4
- package/src/common/menu-base-model.d.ts +7 -0
- package/src/common/menu-base.d.ts +7 -0
- package/src/common/menu-base.js +80 -19
- package/src/context-menu/context-menu-model.d.ts +15 -0
- package/src/context-menu/context-menu.d.ts +13 -0
- package/src/context-menu/context-menu.js +10 -0
- package/src/menu/menu.js +4 -0
- package/src/stepper/stepper.d.ts +9 -0
- package/src/stepper/stepper.js +262 -237
- package/src/stepper-base/stepper-base.js +15 -11
- package/src/tab/tab-model.d.ts +15 -2
- package/src/tab/tab.d.ts +26 -2
- package/src/tab/tab.js +81 -14
- package/src/toolbar/toolbar-model.d.ts +0 -6
- package/src/toolbar/toolbar.d.ts +0 -6
- package/src/treeview/treeview.d.ts +1 -9
- package/src/treeview/treeview.js +17 -16
- package/styles/accordion/_tailwind3-definition.scss +168 -0
- package/styles/accordion/_theme.scss +2 -2
- package/styles/accordion/bds.css +544 -0
- package/styles/accordion/bds.scss +5 -0
- package/styles/accordion/icons/_tailwind3.scss +15 -0
- package/styles/accordion/tailwind3.css +552 -0
- package/styles/accordion/tailwind3.scss +5 -0
- package/styles/appbar/_layout.scss +1 -1
- package/styles/appbar/_tailwind3-definition.scss +6 -0
- package/styles/appbar/bds.css +302 -0
- package/styles/appbar/bds.scss +4 -0
- package/styles/appbar/tailwind3.css +285 -0
- package/styles/appbar/tailwind3.scss +4 -0
- package/styles/bds-lite.css +9233 -0
- package/styles/bds-lite.scss +47 -0
- package/styles/bds.css +11954 -0
- package/styles/bds.scss +59 -0
- package/styles/bootstrap-dark-lite.css +21 -13
- package/styles/bootstrap-dark.css +35 -14
- package/styles/bootstrap-lite.css +21 -13
- package/styles/bootstrap.css +35 -14
- package/styles/bootstrap4-lite.css +21 -13
- package/styles/bootstrap4.css +35 -14
- package/styles/bootstrap5-dark-lite.css +29 -21
- package/styles/bootstrap5-dark.css +43 -22
- package/styles/bootstrap5-lite.css +29 -21
- package/styles/bootstrap5.3-lite.css +21 -13
- package/styles/bootstrap5.3.css +35 -14
- package/styles/bootstrap5.css +43 -22
- package/styles/breadcrumb/_bigger.scss +6 -0
- package/styles/breadcrumb/_layout.scss +19 -1
- package/styles/breadcrumb/_tailwind3-definition.scss +61 -0
- package/styles/breadcrumb/_theme.scss +60 -0
- package/styles/breadcrumb/bds.css +418 -0
- package/styles/breadcrumb/bds.scss +5 -0
- package/styles/breadcrumb/icons/_tailwind3.scss +23 -0
- package/styles/breadcrumb/tailwind3.css +441 -0
- package/styles/breadcrumb/tailwind3.scss +5 -0
- package/styles/carousel/_tailwind3-definition.scss +24 -0
- package/styles/carousel/_theme.scss +9 -3
- package/styles/carousel/bds.css +426 -0
- package/styles/carousel/bds.scss +5 -0
- package/styles/carousel/fluent2.css +5 -0
- package/styles/carousel/icons/_tailwind3.scss +30 -0
- package/styles/carousel/tailwind3.css +396 -0
- package/styles/carousel/tailwind3.scss +5 -0
- package/styles/context-menu/_bigger.scss +15 -0
- package/styles/context-menu/_layout.scss +24 -0
- package/styles/context-menu/_tailwind3-definition.scss +55 -0
- package/styles/context-menu/bds.css +421 -0
- package/styles/context-menu/bds.scss +8 -0
- package/styles/context-menu/fluent2.css +1 -1
- package/styles/context-menu/icons/_tailwind3.scss +31 -0
- package/styles/context-menu/tailwind3.css +449 -0
- package/styles/context-menu/tailwind3.scss +8 -0
- package/styles/fabric-dark-lite.css +21 -13
- package/styles/fabric-dark.css +35 -14
- package/styles/fabric-lite.css +21 -13
- package/styles/fabric.css +35 -14
- package/styles/fluent-dark-lite.css +22 -14
- package/styles/fluent-dark.css +36 -15
- package/styles/fluent-lite.css +22 -14
- package/styles/fluent.css +36 -15
- package/styles/fluent2-lite.css +37 -21
- package/styles/fluent2.css +51 -22
- package/styles/h-scroll/_tailwind3-definition.scss +83 -0
- package/styles/h-scroll/bds.css +311 -0
- package/styles/h-scroll/bds.scss +5 -0
- package/styles/h-scroll/icons/_tailwind3.scss +49 -0
- package/styles/h-scroll/tailwind3.css +311 -0
- package/styles/h-scroll/tailwind3.scss +5 -0
- package/styles/highcontrast-light-lite.css +21 -13
- package/styles/highcontrast-light.css +35 -14
- package/styles/highcontrast-lite.css +24 -16
- package/styles/highcontrast.css +38 -17
- package/styles/material-dark-lite.css +21 -13
- package/styles/material-dark.css +35 -14
- package/styles/material-lite.css +21 -13
- package/styles/material.css +35 -14
- package/styles/material3-dark-lite.css +21 -13
- package/styles/material3-dark.css +38 -14
- package/styles/material3-lite.css +21 -13
- package/styles/material3.css +38 -14
- package/styles/menu/_bigger.scss +26 -0
- package/styles/menu/_layout.scss +35 -0
- package/styles/menu/_tailwind3-definition.scss +66 -0
- package/styles/menu/_theme.scss +33 -1
- package/styles/menu/bds.css +1155 -0
- package/styles/menu/bds.scss +9 -0
- package/styles/menu/fluent2.css +1 -1
- package/styles/menu/icons/_tailwind3.scss +104 -0
- package/styles/menu/tailwind3.css +1238 -0
- package/styles/menu/tailwind3.scss +9 -0
- package/styles/pager/_bigger.scss +65 -6
- package/styles/pager/_layout.scss +22 -2
- package/styles/pager/_tailwind-definition.scss +1 -1
- package/styles/pager/_tailwind3-definition.scss +166 -0
- package/styles/pager/bds.css +915 -0
- package/styles/pager/bds.scss +5 -0
- package/styles/pager/bootstrap-dark.css +7 -0
- package/styles/pager/bootstrap.css +7 -0
- package/styles/pager/bootstrap4.css +7 -0
- package/styles/pager/bootstrap5-dark.css +7 -0
- package/styles/pager/bootstrap5.3.css +7 -0
- package/styles/pager/bootstrap5.css +7 -0
- package/styles/pager/fabric-dark.css +7 -0
- package/styles/pager/fabric.css +7 -0
- package/styles/pager/fluent-dark.css +7 -0
- package/styles/pager/fluent.css +7 -0
- package/styles/pager/fluent2.css +7 -0
- package/styles/pager/highcontrast-light.css +7 -0
- package/styles/pager/highcontrast.css +7 -0
- package/styles/pager/icons/_tailwind3.scss +50 -0
- package/styles/pager/material-dark.css +7 -0
- package/styles/pager/material.css +7 -0
- package/styles/pager/material3-dark.css +8 -0
- package/styles/pager/material3.css +8 -0
- package/styles/pager/tailwind-dark.css +16 -9
- package/styles/pager/tailwind.css +16 -9
- package/styles/pager/tailwind3.css +875 -0
- package/styles/pager/tailwind3.scss +5 -0
- package/styles/sidebar/_tailwind3-definition.scss +6 -0
- package/styles/sidebar/_theme.scss +1 -1
- package/styles/sidebar/bds.css +263 -0
- package/styles/sidebar/bds.scss +3 -0
- package/styles/sidebar/tailwind3.css +227 -0
- package/styles/sidebar/tailwind3.scss +3 -0
- package/styles/stepper/_layout.scss +2 -0
- package/styles/stepper/_tailwind3-definition.scss +72 -0
- package/styles/stepper/_theme.scss +2 -1
- package/styles/stepper/bds.css +724 -0
- package/styles/stepper/bds.scss +6 -0
- package/styles/stepper/bootstrap-dark.css +4 -1
- package/styles/stepper/bootstrap.css +4 -1
- package/styles/stepper/bootstrap4.css +4 -1
- package/styles/stepper/bootstrap5-dark.css +4 -1
- package/styles/stepper/bootstrap5.3.css +4 -1
- package/styles/stepper/bootstrap5.css +4 -1
- package/styles/stepper/fabric-dark.css +4 -1
- package/styles/stepper/fabric.css +4 -1
- package/styles/stepper/fluent-dark.css +4 -1
- package/styles/stepper/fluent.css +4 -1
- package/styles/stepper/fluent2.css +4 -1
- package/styles/stepper/highcontrast-light.css +4 -1
- package/styles/stepper/highcontrast.css +4 -1
- package/styles/stepper/icons/_tailwind3.scss +5 -0
- package/styles/stepper/material-dark.css +4 -1
- package/styles/stepper/material.css +4 -1
- package/styles/stepper/material3-dark.css +4 -1
- package/styles/stepper/material3.css +4 -1
- package/styles/stepper/tailwind-dark.css +4 -1
- package/styles/stepper/tailwind.css +4 -1
- package/styles/stepper/tailwind3.css +724 -0
- package/styles/stepper/tailwind3.scss +6 -0
- package/styles/tab/_bigger.scss +16 -0
- package/styles/tab/_bootstrap-dark-definition.scss +0 -2
- package/styles/tab/_bootstrap-definition.scss +0 -2
- package/styles/tab/_bootstrap4-definition.scss +0 -2
- package/styles/tab/_bootstrap5-definition.scss +0 -2
- package/styles/tab/_bootstrap5.3-definition.scss +0 -2
- package/styles/tab/_fabric-dark-definition.scss +0 -2
- package/styles/tab/_fabric-definition.scss +0 -2
- package/styles/tab/_fluent-definition.scss +0 -2
- package/styles/tab/_fluent2-definition.scss +0 -2
- package/styles/tab/_fusionnew-definition.scss +0 -2
- package/styles/tab/_highcontrast-definition.scss +0 -2
- package/styles/tab/_highcontrast-light-definition.scss +0 -2
- package/styles/tab/_material-dark-definition.scss +0 -2
- package/styles/tab/_material-definition.scss +0 -2
- package/styles/tab/_material3-definition.scss +0 -2
- package/styles/tab/_tailwind-definition.scss +0 -2
- package/styles/tab/_tailwind3-definition.scss +634 -0
- package/styles/tab/_theme.scss +0 -12
- package/styles/tab/bds.css +4190 -0
- package/styles/tab/bds.scss +6 -0
- package/styles/tab/bootstrap-dark.css +7 -11
- package/styles/tab/bootstrap.css +7 -11
- package/styles/tab/bootstrap4.css +7 -11
- package/styles/tab/bootstrap5-dark.css +7 -11
- package/styles/tab/bootstrap5.3.css +7 -11
- package/styles/tab/bootstrap5.css +7 -11
- package/styles/tab/fabric-dark.css +7 -11
- package/styles/tab/fabric.css +7 -11
- package/styles/tab/fluent-dark.css +7 -11
- package/styles/tab/fluent.css +7 -11
- package/styles/tab/fluent2.css +10 -14
- package/styles/tab/highcontrast-light.css +7 -11
- package/styles/tab/highcontrast.css +7 -11
- package/styles/tab/icons/_tailwind3.scss +90 -0
- package/styles/tab/material-dark.css +7 -11
- package/styles/tab/material.css +7 -11
- package/styles/tab/material3-dark.css +9 -11
- package/styles/tab/material3.css +9 -11
- package/styles/tab/tailwind-dark.css +7 -11
- package/styles/tab/tailwind.css +7 -11
- package/styles/tab/tailwind3.css +4125 -0
- package/styles/tab/tailwind3.scss +6 -0
- package/styles/tailwind-dark-lite.css +26 -18
- package/styles/tailwind-dark.css +45 -24
- package/styles/tailwind-lite.css +26 -18
- package/styles/tailwind.css +45 -24
- package/styles/tailwind3-lite.css +9055 -0
- package/styles/tailwind3-lite.scss +47 -0
- package/styles/tailwind3.css +11743 -0
- package/styles/tailwind3.scss +59 -0
- package/styles/toolbar/_bigger.scss +14 -0
- package/styles/toolbar/_bootstrap5-definition.scss +6 -6
- package/styles/toolbar/_layout.scss +7 -1
- package/styles/toolbar/_tailwind3-definition.scss +199 -0
- package/styles/toolbar/_theme.scss +6 -6
- package/styles/toolbar/bds.css +1219 -0
- package/styles/toolbar/bds.scss +9 -0
- package/styles/toolbar/bootstrap-dark.css +1 -1
- package/styles/toolbar/bootstrap.css +1 -1
- package/styles/toolbar/bootstrap4.css +1 -1
- package/styles/toolbar/bootstrap5-dark.css +9 -9
- package/styles/toolbar/bootstrap5.3.css +1 -1
- package/styles/toolbar/bootstrap5.css +9 -9
- package/styles/toolbar/fabric-dark.css +1 -1
- package/styles/toolbar/fabric.css +1 -1
- package/styles/toolbar/fluent-dark.css +1 -1
- package/styles/toolbar/fluent.css +1 -1
- package/styles/toolbar/fluent2.css +1 -1
- package/styles/toolbar/highcontrast-light.css +1 -1
- package/styles/toolbar/highcontrast.css +1 -1
- package/styles/toolbar/icons/_tailwind3.scss +14 -0
- package/styles/toolbar/material-dark.css +1 -1
- package/styles/toolbar/material.css +1 -1
- package/styles/toolbar/material3-dark.css +1 -1
- package/styles/toolbar/material3.css +1 -1
- package/styles/toolbar/tailwind-dark.css +1 -1
- package/styles/toolbar/tailwind.css +1 -1
- package/styles/toolbar/tailwind3.css +1211 -0
- package/styles/toolbar/tailwind3.scss +9 -0
- package/styles/treeview/_bigger.scss +16 -3
- package/styles/treeview/_fluent-definition.scss +1 -1
- package/styles/treeview/_fluent2-definition.scss +2 -2
- package/styles/treeview/_highcontrast-definition.scss +3 -3
- package/styles/treeview/_layout.scss +42 -5
- package/styles/treeview/_tailwind-definition.scss +1 -1
- package/styles/treeview/_tailwind3-definition.scss +126 -0
- package/styles/treeview/_theme.scss +1 -1
- package/styles/treeview/bds.css +1031 -0
- package/styles/treeview/bds.scss +7 -0
- package/styles/treeview/bootstrap-dark.css +16 -1
- package/styles/treeview/bootstrap.css +16 -1
- package/styles/treeview/bootstrap4.css +16 -1
- package/styles/treeview/bootstrap5-dark.css +16 -1
- package/styles/treeview/bootstrap5.3.css +16 -1
- package/styles/treeview/bootstrap5.css +16 -1
- package/styles/treeview/fabric-dark.css +16 -1
- package/styles/treeview/fabric.css +16 -1
- package/styles/treeview/fluent-dark.css +17 -2
- package/styles/treeview/fluent.css +17 -2
- package/styles/treeview/fluent2.css +22 -4
- package/styles/treeview/highcontrast-light.css +16 -1
- package/styles/treeview/highcontrast.css +19 -4
- package/styles/treeview/icons/_tailwind3.scss +44 -0
- package/styles/treeview/material-dark.css +16 -1
- package/styles/treeview/material.css +16 -1
- package/styles/treeview/material3-dark.css +16 -1
- package/styles/treeview/material3.css +16 -1
- package/styles/treeview/tailwind-dark.css +17 -2
- package/styles/treeview/tailwind.css +17 -2
- package/styles/treeview/tailwind3.css +806 -0
- package/styles/treeview/tailwind3.scss +7 -0
- package/styles/v-scroll/_tailwind3-definition.scss +49 -0
- package/styles/v-scroll/bds.css +218 -0
- package/styles/v-scroll/bds.scss +5 -0
- package/styles/v-scroll/icons/_tailwind3.scss +27 -0
- package/styles/v-scroll/tailwind3.css +218 -0
- package/styles/v-scroll/tailwind3.scss +5 -0
|
@@ -19,6 +19,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
};
|
|
20
20
|
import { Component, NotifyPropertyChanges, Property, ChildProperty, Collection, Event, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
21
21
|
var PROGRESSVALUE = '--progress-value';
|
|
22
|
+
var PROGRESSPOS = '--progress-position';
|
|
23
|
+
var VERTICALSTEP = 'e-vertical';
|
|
24
|
+
var HORIZSTEP = 'e-horizontal';
|
|
25
|
+
var ITEMLIST = 'e-stepper-steps';
|
|
22
26
|
/**
|
|
23
27
|
* Defines the status of the step.
|
|
24
28
|
*/
|
|
@@ -138,8 +142,8 @@ var StepperBase = /** @class */ (function (_super) {
|
|
|
138
142
|
StepperBase.prototype.render = function () {
|
|
139
143
|
};
|
|
140
144
|
StepperBase.prototype.updateOrientaion = function (wrapper) {
|
|
141
|
-
if (wrapper.classList.contains(
|
|
142
|
-
wrapper.classList.remove(
|
|
145
|
+
if (wrapper.classList.contains(HORIZSTEP) || wrapper.classList.contains(VERTICALSTEP)) {
|
|
146
|
+
wrapper.classList.remove(HORIZSTEP, VERTICALSTEP);
|
|
143
147
|
}
|
|
144
148
|
if (!(isNullOrUndefined(this.orientation))) {
|
|
145
149
|
wrapper.classList.add('e-' + this.orientation.toLocaleLowerCase());
|
|
@@ -148,23 +152,23 @@ var StepperBase = /** @class */ (function (_super) {
|
|
|
148
152
|
StepperBase.prototype.renderProgressBar = function (wrapper) {
|
|
149
153
|
this.progressStep = this.createElement('div', { className: 'e-stepper-progressbar' });
|
|
150
154
|
this.progressbar = this.createElement('div', { className: 'e-progressbar-value' });
|
|
155
|
+
var beforeLabel = (wrapper.querySelector('li').querySelector('.e-step-label-container'));
|
|
151
156
|
this.progressStep.appendChild(this.progressbar);
|
|
152
157
|
wrapper.prepend(this.progressStep);
|
|
153
158
|
this.progressbar.style.setProperty(PROGRESSVALUE, (0) + '%');
|
|
154
|
-
|
|
155
|
-
if (wrapper.classList.contains('e-vertical')) {
|
|
159
|
+
if (wrapper.classList.contains(VERTICALSTEP)) {
|
|
156
160
|
if (wrapper.classList.contains('e-label-bottom') || wrapper.classList.contains('e-label-top')) {
|
|
157
|
-
var stepsContainer = (wrapper.querySelector('.
|
|
158
|
-
this.progressStep.style.setProperty(
|
|
161
|
+
var stepsContainer = (wrapper.querySelector('.' + ITEMLIST));
|
|
162
|
+
this.progressStep.style.setProperty(PROGRESSPOS, (stepsContainer.offsetWidth / 2) + 'px');
|
|
159
163
|
}
|
|
160
164
|
else {
|
|
161
|
-
this.progressStep.style.setProperty(
|
|
165
|
+
this.progressStep.style.setProperty(PROGRESSPOS, ((this.progressBarPosition / 2) - 1) + 'px');
|
|
162
166
|
}
|
|
163
167
|
}
|
|
164
168
|
if (beforeLabel && (beforeLabel.classList.contains('e-label-before'))) {
|
|
165
|
-
this.progressStep.style.setProperty(
|
|
169
|
+
this.progressStep.style.setProperty(PROGRESSPOS, (((this.progressBarPosition) - 1)) + 5 + 'px');
|
|
166
170
|
}
|
|
167
|
-
if (wrapper.classList.contains(
|
|
171
|
+
if (wrapper.classList.contains(HORIZSTEP)) {
|
|
168
172
|
this.setProgressPosition(wrapper);
|
|
169
173
|
}
|
|
170
174
|
};
|
|
@@ -181,9 +185,9 @@ var StepperBase = /** @class */ (function (_super) {
|
|
|
181
185
|
}
|
|
182
186
|
this.progressStep.style.setProperty('--progress-top-position', topPos + 'px');
|
|
183
187
|
}
|
|
184
|
-
var lastEle = wrapper.querySelector('.
|
|
188
|
+
var lastEle = wrapper.querySelector('.' + ITEMLIST).lastChild.firstChild;
|
|
185
189
|
if (wrapper.classList.contains('e-rtl')) {
|
|
186
|
-
var leftPost = ((stepItemEle.offsetLeft + stepItemEle.offsetWidth) - wrapper.querySelector('.
|
|
190
|
+
var leftPost = ((stepItemEle.offsetLeft + stepItemEle.offsetWidth) - wrapper.querySelector('.' + ITEMLIST).offsetWidth);
|
|
187
191
|
this.progressStep.style.setProperty('--progress-left-position', Math.abs(leftPost) + 'px');
|
|
188
192
|
this.progressStep.style.setProperty('--progress-bar-width', Math.abs(lastEle.offsetLeft - stepItemEle.offsetLeft) + 'px');
|
|
189
193
|
}
|
package/src/tab/tab-model.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance, isNullOrUndefined, animationMode } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, MouseEventArgs, Effect, Browser, formatUnit, DomElements, L10n } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';import { EventHandler, rippleEffect, Touch, SwipeEventArgs, compile, Animation, AnimationModel, BaseEventArgs } from '@syncfusion/ej2-base';import { getRandomId, SanitizeHtmlHelper, Draggable, DragEventArgs as DragArgs, DropEventArgs } from '@syncfusion/ej2-base';import { Base } from '@syncfusion/ej2-base';import { Popup, PopupModel } from '@syncfusion/ej2-popups';import { Toolbar, OverflowMode, ClickEventArgs } from '../toolbar/toolbar';
|
|
2
|
-
import {HeaderPosition,HeightStyles,ContentLoad,AddEventArgs,SelectingEventArgs,SelectEventArgs,RemoveEventArgs,DragEventArgs} from "./tab";
|
|
2
|
+
import {TabSwipeMode,HeaderPosition,HeightStyles,ContentLoad,AddEventArgs,SelectingEventArgs,SelectEventArgs,RemoveEventArgs,DragEventArgs} from "./tab";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -179,6 +179,19 @@ export interface TabModel extends ComponentModel{
|
|
|
179
179
|
*/
|
|
180
180
|
width?: string | number;
|
|
181
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Defines whether the tab transition should occur or not when performing Touch/Mouse swipe action.
|
|
184
|
+
*
|
|
185
|
+
* @remarks
|
|
186
|
+
* - `Both`: Enables swiping for both touch and mouse input.
|
|
187
|
+
* - `Touch`: Enables swiping only for touch input.
|
|
188
|
+
* - `Mouse`: Enables swiping only for mouse input.
|
|
189
|
+
* - `None`: Disables swiping for both touch and mouse input.
|
|
190
|
+
*
|
|
191
|
+
* @default "Both"
|
|
192
|
+
*/
|
|
193
|
+
swipeMode?: TabSwipeMode;
|
|
194
|
+
|
|
182
195
|
/**
|
|
183
196
|
* Specifies the height of the Tab component. By default, Tab height is set based on the height of its parent.
|
|
184
197
|
* To use height property, heightAdjustMode must be set to 'None'.
|
|
@@ -245,7 +258,7 @@ export interface TabModel extends ComponentModel{
|
|
|
245
258
|
* * `Dynamic` - The content of all the tabs are rendered on the initial load and maintained in the DOM.
|
|
246
259
|
* * `Init` - The content of all the tabs are rendered on the initial load and maintained in the DOM.
|
|
247
260
|
*
|
|
248
|
-
* @default '
|
|
261
|
+
* @default 'Demand'
|
|
249
262
|
*/
|
|
250
263
|
loadOn?: ContentLoad;
|
|
251
264
|
|
package/src/tab/tab.d.ts
CHANGED
|
@@ -25,6 +25,14 @@ export declare type HeaderPosition = 'Top' | 'Bottom' | 'Left' | 'Right';
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
export declare type HeightStyles = 'None' | 'Auto' | 'Content' | 'Fill';
|
|
28
|
+
/**
|
|
29
|
+
* Enables or disables the tab swiping action through Touch and Mouse.
|
|
30
|
+
* - `Both`: Enables swiping for both touch and mouse input.
|
|
31
|
+
* - `Touch`: Enables swiping only for touch input.
|
|
32
|
+
* - `Mouse`: Enables swiping only for mouse input.
|
|
33
|
+
* - `None`: Disables swiping for both touch and mouse input.
|
|
34
|
+
*/
|
|
35
|
+
export declare type TabSwipeMode = 'Both' | 'Touch' | 'Mouse' | 'None';
|
|
28
36
|
/**
|
|
29
37
|
* Specifies the options of Tab content display mode.
|
|
30
38
|
* ```props
|
|
@@ -308,6 +316,18 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
308
316
|
* @default '100%'
|
|
309
317
|
*/
|
|
310
318
|
width: string | number;
|
|
319
|
+
/**
|
|
320
|
+
* Defines whether the tab transition should occur or not when performing Touch/Mouse swipe action.
|
|
321
|
+
*
|
|
322
|
+
* @remarks
|
|
323
|
+
* - `Both`: Enables swiping for both touch and mouse input.
|
|
324
|
+
* - `Touch`: Enables swiping only for touch input.
|
|
325
|
+
* - `Mouse`: Enables swiping only for mouse input.
|
|
326
|
+
* - `None`: Disables swiping for both touch and mouse input.
|
|
327
|
+
*
|
|
328
|
+
* @default "Both"
|
|
329
|
+
*/
|
|
330
|
+
swipeMode: TabSwipeMode;
|
|
311
331
|
/**
|
|
312
332
|
* Specifies the height of the Tab component. By default, Tab height is set based on the height of its parent.
|
|
313
333
|
* To use height property, heightAdjustMode must be set to 'None'.
|
|
@@ -368,9 +388,9 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
368
388
|
* * `Dynamic` - The content of all the tabs are rendered on the initial load and maintained in the DOM.
|
|
369
389
|
* * `Init` - The content of all the tabs are rendered on the initial load and maintained in the DOM.
|
|
370
390
|
*
|
|
371
|
-
* @default '
|
|
391
|
+
* @default 'Demand'
|
|
372
392
|
*/
|
|
373
|
-
|
|
393
|
+
loadOn: ContentLoad;
|
|
374
394
|
/**
|
|
375
395
|
* Enable or disable persisting component's state between page reloads.
|
|
376
396
|
* If enabled, following list of states will be persisted.
|
|
@@ -539,6 +559,7 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
539
559
|
protected render(): void;
|
|
540
560
|
private renderContainer;
|
|
541
561
|
private renderHeader;
|
|
562
|
+
private createContentElement;
|
|
542
563
|
private renderContent;
|
|
543
564
|
private reRenderItems;
|
|
544
565
|
private parseObject;
|
|
@@ -569,6 +590,8 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
569
590
|
private changeToolbarOrientation;
|
|
570
591
|
private setOrientation;
|
|
571
592
|
private setCssClass;
|
|
593
|
+
private loadContentInitMode;
|
|
594
|
+
private loadContentElement;
|
|
572
595
|
private setContentHeight;
|
|
573
596
|
private getHeight;
|
|
574
597
|
private setActiveBorder;
|
|
@@ -578,6 +601,7 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
578
601
|
private refreshActiveBorder;
|
|
579
602
|
private showPopup;
|
|
580
603
|
private bindDraggable;
|
|
604
|
+
private bindSwipeEvents;
|
|
581
605
|
private wireEvents;
|
|
582
606
|
private unWireEvents;
|
|
583
607
|
private clickHandler;
|
package/src/tab/tab.js
CHANGED
|
@@ -453,6 +453,17 @@ var Tab = /** @class */ (function (_super) {
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
|
+
Tab.prototype.createContentElement = function (index) {
|
|
457
|
+
var contentElement = this.createElement('div', {
|
|
458
|
+
id: CLS_CONTENT + this.tabId + '_' + index, className: CLS_ITEM,
|
|
459
|
+
attrs: { 'role': 'tabpanel', 'aria-labelledby': CLS_ITEM + this.tabId + '_' + index }
|
|
460
|
+
});
|
|
461
|
+
if (['Dynamic', 'Demand'].indexOf(this.loadOn) !== -1 ||
|
|
462
|
+
(this.loadOn === 'Init' && index === Number(this.extIndex(this.itemIndexArray[0])))) {
|
|
463
|
+
addClass([contentElement], CLS_ACTIVE);
|
|
464
|
+
}
|
|
465
|
+
return contentElement;
|
|
466
|
+
};
|
|
456
467
|
Tab.prototype.renderContent = function () {
|
|
457
468
|
this.cntEle = select('.' + CLS_CONTENT, this.element);
|
|
458
469
|
var hdrItem = selectAll('.' + CLS_TB_ITEM, this.element);
|
|
@@ -467,11 +478,26 @@ var Tab = /** @class */ (function (_super) {
|
|
|
467
478
|
}
|
|
468
479
|
}
|
|
469
480
|
}
|
|
481
|
+
else {
|
|
482
|
+
if (selectAll('.' + CLS_TB_ITEM, this.element).length > 0) {
|
|
483
|
+
if (this.loadOn === 'Init') {
|
|
484
|
+
for (var i = 0; i < this.itemIndexArray.length; i++) {
|
|
485
|
+
if (this.itemIndexArray[i]) {
|
|
486
|
+
this.cntEle.appendChild(this.createContentElement(Number(this.extIndex(this.itemIndexArray[i]))));
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
else if (this.loadOn === 'Dynamic') {
|
|
491
|
+
this.cntEle.appendChild(this.createContentElement(this.selectedItem > 0 ?
|
|
492
|
+
this.selectedItem : Number(this.extIndex(this.itemIndexArray[0]))));
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
470
496
|
};
|
|
471
497
|
Tab.prototype.reRenderItems = function () {
|
|
472
498
|
this.renderContainer();
|
|
473
499
|
if (!isNOU(this.cntEle)) {
|
|
474
|
-
this.
|
|
500
|
+
this.bindSwipeEvents();
|
|
475
501
|
}
|
|
476
502
|
};
|
|
477
503
|
Tab.prototype.parseObject = function (items, index) {
|
|
@@ -974,6 +1000,27 @@ var Tab = /** @class */ (function (_super) {
|
|
|
974
1000
|
}
|
|
975
1001
|
}
|
|
976
1002
|
};
|
|
1003
|
+
Tab.prototype.loadContentInitMode = function (ele) {
|
|
1004
|
+
if (!ele) {
|
|
1005
|
+
return;
|
|
1006
|
+
}
|
|
1007
|
+
if (this.loadOn === 'Init') {
|
|
1008
|
+
for (var i = 0; i < this.items.length; i++) {
|
|
1009
|
+
if (this.cntEle.children.item(i)) {
|
|
1010
|
+
this.getContent(this.cntEle.children.item(i), this.items[i].content, 'render', i);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
if (this.prevIndex !== this.selectedItem) {
|
|
1015
|
+
ele.classList.remove(CLS_ACTIVE);
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
Tab.prototype.loadContentElement = function () {
|
|
1019
|
+
if (!this.isTemplate) {
|
|
1020
|
+
var ele = this.cntEle.children.item(0);
|
|
1021
|
+
this.loadContentInitMode(ele);
|
|
1022
|
+
}
|
|
1023
|
+
};
|
|
977
1024
|
Tab.prototype.setContentHeight = function (val) {
|
|
978
1025
|
if (this.element.classList.contains(CLS_FILL)) {
|
|
979
1026
|
removeClass([this.element], [CLS_FILL]);
|
|
@@ -983,6 +1030,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
983
1030
|
}
|
|
984
1031
|
var hdrEle = this.getTabHeader();
|
|
985
1032
|
if (this.heightAdjustMode === 'None') {
|
|
1033
|
+
this.loadContentElement();
|
|
986
1034
|
if (this.height === 'auto') {
|
|
987
1035
|
return;
|
|
988
1036
|
}
|
|
@@ -995,6 +1043,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
995
1043
|
else if (this.heightAdjustMode === 'Fill') {
|
|
996
1044
|
addClass([this.element], [CLS_FILL]);
|
|
997
1045
|
setStyle(this.element, { 'height': '100%' });
|
|
1046
|
+
this.loadContentElement();
|
|
998
1047
|
this.cntEle.style.height = 'calc(100% - ' + this.hdrEle.offsetHeight + 'px)';
|
|
999
1048
|
}
|
|
1000
1049
|
else if (this.heightAdjustMode === 'Auto') {
|
|
@@ -1009,11 +1058,8 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1009
1058
|
}
|
|
1010
1059
|
else {
|
|
1011
1060
|
this.cntEle = select('.' + CLS_CONTENT, this.element);
|
|
1012
|
-
if (val === true) {
|
|
1013
|
-
this.cntEle.appendChild(this.
|
|
1014
|
-
id: (CLS_CONTENT + this.tabId + '_' + 0), className: CLS_ITEM + ' ' + CLS_ACTIVE,
|
|
1015
|
-
attrs: { 'role': 'tabpanel', 'aria-labelledby': CLS_ITEM + this.tabId + '_' + 0 }
|
|
1016
|
-
}));
|
|
1061
|
+
if (val === true && this.loadOn === 'Demand') {
|
|
1062
|
+
this.cntEle.appendChild(this.createContentElement(Number(this.extIndex(this.itemIndexArray[0]))));
|
|
1017
1063
|
}
|
|
1018
1064
|
var ele = this.cntEle.children.item(0);
|
|
1019
1065
|
for (var i = 0; i < this.items.length; i++) {
|
|
@@ -1027,14 +1073,15 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1027
1073
|
this.clearTemplate(['content']);
|
|
1028
1074
|
}
|
|
1029
1075
|
this.templateEle = [];
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
ele.classList.remove(CLS_ACTIVE);
|
|
1076
|
+
if (this.loadOn === 'Demand') {
|
|
1077
|
+
this.getContent(ele, this.items[0].content, 'render', 0);
|
|
1033
1078
|
}
|
|
1079
|
+
this.loadContentInitMode(ele);
|
|
1034
1080
|
}
|
|
1035
1081
|
setStyle(this.cntEle, { 'height': this.maxHeight + 'px' });
|
|
1036
1082
|
}
|
|
1037
1083
|
else {
|
|
1084
|
+
this.loadContentElement();
|
|
1038
1085
|
setStyle(this.cntEle, { 'height': 'auto' });
|
|
1039
1086
|
}
|
|
1040
1087
|
};
|
|
@@ -1118,7 +1165,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1118
1165
|
return;
|
|
1119
1166
|
}
|
|
1120
1167
|
if (!this.isTemplate) {
|
|
1121
|
-
attributes(trg.firstElementChild, { 'aria-controls': CLS_CONTENT + this.tabId + '_' +
|
|
1168
|
+
attributes(trg.firstElementChild, { 'aria-controls': CLS_CONTENT + this.tabId + '_' + this.extIndex(trg.id) });
|
|
1122
1169
|
}
|
|
1123
1170
|
var id = trg.id;
|
|
1124
1171
|
this.removeActiveClass();
|
|
@@ -1139,6 +1186,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1139
1186
|
}
|
|
1140
1187
|
else {
|
|
1141
1188
|
this.cntEle = select('.' + CLS_TAB + ' > .' + CLS_CONTENT, this.element);
|
|
1189
|
+
while (this.loadOn === 'Dynamic' && this.cntEle.firstElementChild) {
|
|
1190
|
+
this.cntEle.removeChild(this.cntEle.firstElementChild);
|
|
1191
|
+
}
|
|
1142
1192
|
var item = this.getTrgContent(this.cntEle, this.extIndex(id));
|
|
1143
1193
|
if (isNOU(item)) {
|
|
1144
1194
|
this.cntEle.appendChild(this.createElement('div', {
|
|
@@ -1214,13 +1264,18 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1214
1264
|
}
|
|
1215
1265
|
}
|
|
1216
1266
|
};
|
|
1267
|
+
Tab.prototype.bindSwipeEvents = function () {
|
|
1268
|
+
if (this.swipeMode !== 'None') {
|
|
1269
|
+
this.touchModule = new Touch(this.cntEle, { swipe: this.swipeHandler.bind(this) });
|
|
1270
|
+
}
|
|
1271
|
+
};
|
|
1217
1272
|
Tab.prototype.wireEvents = function () {
|
|
1218
1273
|
this.bindDraggable();
|
|
1219
1274
|
window.addEventListener('resize', this.resizeContext);
|
|
1220
1275
|
EventHandler.add(this.element, 'mouseover', this.hoverHandler, this);
|
|
1221
1276
|
EventHandler.add(this.element, 'keydown', this.spaceKeyDown, this);
|
|
1222
1277
|
if (!isNOU(this.cntEle)) {
|
|
1223
|
-
this.
|
|
1278
|
+
this.bindSwipeEvents();
|
|
1224
1279
|
}
|
|
1225
1280
|
this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
|
|
1226
1281
|
this.tabKeyModule = new KeyboardEvents(this.element, {
|
|
@@ -1265,7 +1320,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1265
1320
|
}
|
|
1266
1321
|
};
|
|
1267
1322
|
Tab.prototype.swipeHandler = function (e) {
|
|
1268
|
-
if (e.velocity < 3 &&
|
|
1323
|
+
if ((e.velocity < 3 && isNullOrUndefined(e.originalEvent.changedTouches)) ||
|
|
1324
|
+
(this.swipeMode === 'Touch' && ((e.originalEvent.type === 'mouseup') || e.originalEvent.type === 'mouseleave')) ||
|
|
1325
|
+
(this.swipeMode === 'Mouse' && e.originalEvent.type === 'touchend') || (this.swipeMode === 'None')) {
|
|
1269
1326
|
return;
|
|
1270
1327
|
}
|
|
1271
1328
|
if (this.isNested) {
|
|
@@ -1862,7 +1919,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1862
1919
|
_this.items.splice((index + i_1), 0, item);
|
|
1863
1920
|
i_1++;
|
|
1864
1921
|
}
|
|
1865
|
-
if (
|
|
1922
|
+
if (!isNOU(item.header) && !isNOU(item.header.text) && (_this.isTemplate || _this.loadOn === 'Init')) {
|
|
1866
1923
|
var no = lastEleIndex + place;
|
|
1867
1924
|
var ele = _this.createElement('div', {
|
|
1868
1925
|
id: CLS_CONTENT + _this.tabId + '_' + no, className: CLS_ITEM,
|
|
@@ -2253,6 +2310,13 @@ var Tab = /** @class */ (function (_super) {
|
|
|
2253
2310
|
case 'allowDragAndDrop':
|
|
2254
2311
|
this.bindDraggable();
|
|
2255
2312
|
break;
|
|
2313
|
+
case 'swipeMode':
|
|
2314
|
+
if (this.touchModule) {
|
|
2315
|
+
this.touchModule.destroy();
|
|
2316
|
+
this.touchModule = null;
|
|
2317
|
+
}
|
|
2318
|
+
this.bindSwipeEvents();
|
|
2319
|
+
break;
|
|
2256
2320
|
case 'dragArea':
|
|
2257
2321
|
if (this.allowDragAndDrop) {
|
|
2258
2322
|
this.draggableItems.forEach(function (item) {
|
|
@@ -2404,6 +2468,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
2404
2468
|
__decorate([
|
|
2405
2469
|
Property('100%')
|
|
2406
2470
|
], Tab.prototype, "width", void 0);
|
|
2471
|
+
__decorate([
|
|
2472
|
+
Property('Both')
|
|
2473
|
+
], Tab.prototype, "swipeMode", void 0);
|
|
2407
2474
|
__decorate([
|
|
2408
2475
|
Property('auto')
|
|
2409
2476
|
], Tab.prototype, "height", void 0);
|
|
@@ -2423,7 +2490,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
2423
2490
|
Property('Scrollable')
|
|
2424
2491
|
], Tab.prototype, "overflowMode", void 0);
|
|
2425
2492
|
__decorate([
|
|
2426
|
-
Property('
|
|
2493
|
+
Property('Demand')
|
|
2427
2494
|
], Tab.prototype, "loadOn", void 0);
|
|
2428
2495
|
__decorate([
|
|
2429
2496
|
Property(false)
|
|
@@ -228,12 +228,6 @@ export interface ToolbarModel extends ComponentModel{
|
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
230
|
* Specifies the scrolling distance in scroller.
|
|
231
|
-
* The possible values for this property as follows
|
|
232
|
-
* * Scrollable - All the elements are displayed in a single line with horizontal scrolling enabled.
|
|
233
|
-
* * Popup - Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the *popup*.
|
|
234
|
-
* * MultiRow - Displays the overflow toolbar items as an in-line of a toolbar.
|
|
235
|
-
* * Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
|
|
236
|
-
* * If the popup content overflows the height of the page, the rest of the elements will be hidden.
|
|
237
231
|
*
|
|
238
232
|
* {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
|
|
239
233
|
*
|
package/src/toolbar/toolbar.d.ts
CHANGED
|
@@ -299,12 +299,6 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
|
|
|
299
299
|
overflowMode: OverflowMode;
|
|
300
300
|
/**
|
|
301
301
|
* Specifies the scrolling distance in scroller.
|
|
302
|
-
* The possible values for this property as follows
|
|
303
|
-
* * Scrollable - All the elements are displayed in a single line with horizontal scrolling enabled.
|
|
304
|
-
* * Popup - Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the *popup*.
|
|
305
|
-
* * MultiRow - Displays the overflow toolbar items as an in-line of a toolbar.
|
|
306
|
-
* * Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
|
|
307
|
-
* * If the popup content overflows the height of the page, the rest of the elements will be hidden.
|
|
308
302
|
*
|
|
309
303
|
* {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
|
|
310
304
|
*
|
|
@@ -548,6 +548,7 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
|
|
|
548
548
|
private isDropIn;
|
|
549
549
|
private DDTTreeData;
|
|
550
550
|
private OldCheckedData;
|
|
551
|
+
private isHiddenItem;
|
|
551
552
|
/**
|
|
552
553
|
* Indicates whether the TreeView allows drag and drop of nodes. To drag and drop a node in
|
|
553
554
|
* desktop, hold the mouse on the node, drag it to the target node and drop the node by releasing
|
|
@@ -1304,15 +1305,6 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
|
|
|
1304
1305
|
* @private
|
|
1305
1306
|
*/
|
|
1306
1307
|
private setValidCheckedNode;
|
|
1307
|
-
/**
|
|
1308
|
-
* Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel(for hierarchical DS)
|
|
1309
|
-
*
|
|
1310
|
-
* @param {Object[]} childItems - The child items to check.
|
|
1311
|
-
* @param {string} node - The node to set the check state for.
|
|
1312
|
-
* @param {Object} [treeData] - The optional tree data.
|
|
1313
|
-
* @returns {void}
|
|
1314
|
-
* @private
|
|
1315
|
-
*/
|
|
1316
1308
|
/**
|
|
1317
1309
|
* Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel(for hierarchical DS)
|
|
1318
1310
|
*
|
package/src/treeview/treeview.js
CHANGED
|
@@ -220,6 +220,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
220
220
|
_this.mouseDownStatus = false;
|
|
221
221
|
_this.isDropIn = false;
|
|
222
222
|
_this.OldCheckedData = [];
|
|
223
|
+
_this.isHiddenItem = false;
|
|
223
224
|
return _this;
|
|
224
225
|
}
|
|
225
226
|
TreeView_1 = TreeView;
|
|
@@ -716,10 +717,6 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
716
717
|
this.changeState(node, 'uncheck', null, true, true);
|
|
717
718
|
}
|
|
718
719
|
}
|
|
719
|
-
var parentElement = closest(node, '.' + PARENTITEM);
|
|
720
|
-
if (!isNOU(parentElement)) {
|
|
721
|
-
this.ensureParentCheckState(closest(parentElement, '.' + LISTITEM));
|
|
722
|
-
}
|
|
723
720
|
}
|
|
724
721
|
};
|
|
725
722
|
/**
|
|
@@ -1838,6 +1835,9 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1838
1835
|
this.expandArgs.isInteracted = this.isInteracted;
|
|
1839
1836
|
this.trigger('nodeExpanded', this.expandArgs);
|
|
1840
1837
|
}
|
|
1838
|
+
if (this.isHiddenItem) {
|
|
1839
|
+
this.collapseAll([this.getNodeData(currLi).id]);
|
|
1840
|
+
}
|
|
1841
1841
|
};
|
|
1842
1842
|
TreeView.prototype.addExpand = function (liEle) {
|
|
1843
1843
|
liEle.setAttribute('aria-expanded', 'true');
|
|
@@ -2370,7 +2370,9 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
2370
2370
|
this.expandOnType = (this.expandOn === 'Auto') ? (Browser.isDevice ? 'Click' : 'DblClick') : this.expandOn;
|
|
2371
2371
|
};
|
|
2372
2372
|
TreeView.prototype.expandHandler = function (e) {
|
|
2373
|
-
var target = e.originalEvent.
|
|
2373
|
+
var target = Browser.isDevice && e.originalEvent.changedTouches && !Browser.isIos
|
|
2374
|
+
? document.elementFromPoint(e.originalEvent.changedTouches[0].clientX, e.originalEvent.changedTouches[0].clientY)
|
|
2375
|
+
: e.originalEvent.target;
|
|
2374
2376
|
if (!target || target.classList.contains(INPUT) || target.classList.contains(ROOT) ||
|
|
2375
2377
|
target.classList.contains(PARENTITEM) || target.classList.contains(LISTITEM) ||
|
|
2376
2378
|
target.classList.contains(ICON) || this.showCheckBox && closest(target, '.' + CHECKBOXWRAP)) {
|
|
@@ -4722,15 +4724,6 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4722
4724
|
}
|
|
4723
4725
|
}
|
|
4724
4726
|
};
|
|
4725
|
-
/**
|
|
4726
|
-
* Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel(for hierarchical DS)
|
|
4727
|
-
*
|
|
4728
|
-
* @param {Object[]} childItems - The child items to check.
|
|
4729
|
-
* @param {string} node - The node to set the check state for.
|
|
4730
|
-
* @param {Object} [treeData] - The optional tree data.
|
|
4731
|
-
* @returns {void}
|
|
4732
|
-
* @private
|
|
4733
|
-
*/
|
|
4734
4727
|
/**
|
|
4735
4728
|
* Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel(for hierarchical DS)
|
|
4736
4729
|
*
|
|
@@ -5213,9 +5206,11 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
5213
5206
|
var pid = getValue(this.fields.parentID, nodes[parseInt(i.toString(), 10)]);
|
|
5214
5207
|
dropLi = pid ? this.getElement(pid.toString()) : pid;
|
|
5215
5208
|
if (!isNullOrUndefined(pid) && isNullOrUndefined(dropLi)) {
|
|
5209
|
+
this.isHiddenItem = true;
|
|
5216
5210
|
this.preventExpand = false;
|
|
5217
5211
|
this.ensureVisible(pid);
|
|
5218
5212
|
this.preventExpand = preventTargetExpand;
|
|
5213
|
+
this.isHiddenItem = false;
|
|
5219
5214
|
dropLi = this.getElement(pid.toString());
|
|
5220
5215
|
}
|
|
5221
5216
|
this.addGivenNodes([nodes[parseInt(i.toString(), 10)]], dropLi, index);
|
|
@@ -5324,7 +5319,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
5324
5319
|
else if (this.dataType === 2) {
|
|
5325
5320
|
parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
|
|
5326
5321
|
}
|
|
5327
|
-
this.expandAll(parentsId.reverse());
|
|
5322
|
+
this.expandAll(parentsId.reverse(), null, null, this.isHiddenItem);
|
|
5328
5323
|
var liEle = this.getElement(node);
|
|
5329
5324
|
if (!isNOU(liEle)) {
|
|
5330
5325
|
if (typeof node == 'object') {
|
|
@@ -5424,10 +5419,16 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
5424
5419
|
* @returns {void}
|
|
5425
5420
|
*/
|
|
5426
5421
|
TreeView.prototype.moveNodes = function (sourceNodes, target, index, preventTargetExpand) {
|
|
5422
|
+
if (isNOU(sourceNodes) || sourceNodes.length === 0) {
|
|
5423
|
+
return;
|
|
5424
|
+
}
|
|
5427
5425
|
var dropLi = this.getElement(target);
|
|
5428
5426
|
var nodeData = [];
|
|
5429
5427
|
if (isNOU(dropLi)) {
|
|
5430
|
-
|
|
5428
|
+
this.isHiddenItem = true;
|
|
5429
|
+
this.ensureVisible(target);
|
|
5430
|
+
this.isHiddenItem = false;
|
|
5431
|
+
dropLi = this.getElement(target);
|
|
5431
5432
|
}
|
|
5432
5433
|
for (var i = 0; i < sourceNodes.length; i++) {
|
|
5433
5434
|
var dragLi = this.getElement(sourceNodes[parseInt(i.toString(), 10)]);
|