@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-50898.0 → 0.0.0-bugfix-dev-KB-50898.1
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/dist/cjs/ez-alert-list.cjs.entry.js +5 -2
- package/dist/cjs/ez-grid.cjs.entry.js +21 -16
- package/dist/cjs/ez-modal-container.cjs.entry.js +5 -6
- package/dist/cjs/ez-popup.cjs.entry.js +5 -5
- package/dist/cjs/ez-scroller_3.cjs.entry.js +18 -4
- package/dist/cjs/ez-search.cjs.entry.js +15 -5
- package/dist/cjs/ez-split-button.cjs.entry.js +25 -6
- package/dist/cjs/ez-split-panel.cjs.entry.js +13 -5
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +10 -2
- package/dist/collection/components/ez-grid/ez-grid.js +21 -16
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +5 -15
- package/dist/collection/components/ez-popup/ez-popup.js +6 -15
- package/dist/collection/components/ez-search/ez-search.js +15 -5
- package/dist/collection/components/ez-split-button/ez-split-button.js +25 -6
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +13 -5
- package/dist/collection/components/ez-tree/ez-tree.css +26 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js +1 -0
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +15 -2
- package/dist/custom-elements/index.js +110 -53
- package/dist/esm/ez-alert-list.entry.js +5 -2
- package/dist/esm/ez-grid.entry.js +21 -16
- package/dist/esm/ez-modal-container.entry.js +5 -6
- package/dist/esm/ez-popup.entry.js +6 -6
- package/dist/esm/ez-scroller_3.entry.js +18 -4
- package/dist/esm/ez-search.entry.js +15 -5
- package/dist/esm/ez-split-button.entry.js +25 -6
- package/dist/esm/ez-split-panel.entry.js +13 -5
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-031784b0.entry.js → p-384247cd.entry.js} +1 -1
- package/dist/ezui/p-3faa2b46.entry.js +1 -0
- package/dist/ezui/p-701231f0.entry.js +1 -0
- package/dist/ezui/p-91f626d3.entry.js +1 -0
- package/dist/ezui/p-9aefaa52.entry.js +1 -0
- package/dist/ezui/p-a1ec32ef.entry.js +1 -0
- package/dist/ezui/{p-65b3c23b.entry.js → p-af2ecb1b.entry.js} +1 -1
- package/dist/ezui/p-e228ccb9.entry.js +1 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +1 -0
- package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +0 -1
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +1 -1
- package/dist/types/components/ez-popup/ez-popup.d.ts +2 -1
- package/dist/types/components/ez-search/ez-search.d.ts +1 -0
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +3 -0
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +1 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +3 -1
- package/dist/types/components/ez-tree/interfaces/ITreeItemBadge.d.ts +6 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +0 -1
- package/package.json +1 -1
- package/dist/ezui/p-2eb8f73b.entry.js +0 -1
- package/dist/ezui/p-58fae29b.entry.js +0 -1
- package/dist/ezui/p-8c82374d.entry.js +0 -1
- package/dist/ezui/p-8e7031a0.entry.js +0 -1
- package/dist/ezui/p-a08b309b.entry.js +0 -1
- package/dist/ezui/p-b9fbf4e7.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, forceUpdate, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
-
import { UserInterface, DateUtils as DateUtils$1, Action, WaitingChangeException, ApplicationContext, DataUnitAction, FloatingManager, ElementIDUtils, ObjectUtils as ObjectUtils$1, JSUtils, StringUtils as StringUtils$1, TimeFormatter, DataUnit, HTMLBuilder, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, FieldComparator, ArrayUtils as ArrayUtils$1, OverflowWatcher, OVERFLOWED_CLASS_NAME } from '@sankhyalabs/core';
|
|
3
|
+
import { UserInterface, DateUtils as DateUtils$1, Action, WaitingChangeException, ApplicationContext, DataUnitAction, FloatingManager, ElementIDUtils, ObjectUtils as ObjectUtils$1, JSUtils, StringUtils as StringUtils$1, TimeFormatter, DataUnit, HTMLBuilder, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, FieldComparator, ArrayUtils as ArrayUtils$1, OverflowWatcher, OVERFLOWED_CLASS_NAME, KeyboardManager } from '@sankhyalabs/core';
|
|
4
4
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
5
5
|
|
|
6
6
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
@@ -1133,6 +1133,7 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1133
1133
|
super();
|
|
1134
1134
|
this.__registerHost();
|
|
1135
1135
|
this.__attachShadow();
|
|
1136
|
+
this._container = undefined;
|
|
1136
1137
|
this.alerts = [];
|
|
1137
1138
|
this.enableDragAndDrop = undefined;
|
|
1138
1139
|
this.enableExpand = true;
|
|
@@ -1141,7 +1142,9 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1141
1142
|
this.expanded = false;
|
|
1142
1143
|
}
|
|
1143
1144
|
observeOpened() {
|
|
1144
|
-
this.
|
|
1145
|
+
if (this.opened) {
|
|
1146
|
+
this.manageOverlay();
|
|
1147
|
+
}
|
|
1145
1148
|
}
|
|
1146
1149
|
/**
|
|
1147
1150
|
* Retorna o id do alerta a partir do título e do índice.
|
|
@@ -1268,7 +1271,7 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1268
1271
|
}
|
|
1269
1272
|
get _element() { return this; }
|
|
1270
1273
|
static get watchers() { return {
|
|
1271
|
-
"
|
|
1274
|
+
"_container": ["observeOpened"]
|
|
1272
1275
|
}; }
|
|
1273
1276
|
static get style() { return ezAlertListCss; }
|
|
1274
1277
|
};
|
|
@@ -125680,10 +125683,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125680
125683
|
return Promise.resolve(this._gridController.getColumnsState().filter(col => matches(col.label, search)));
|
|
125681
125684
|
}
|
|
125682
125685
|
observeConfig(config) {
|
|
125683
|
-
|
|
125684
|
-
return;
|
|
125685
|
-
}
|
|
125686
|
-
this._gridController.setColumnsState(config.columns);
|
|
125686
|
+
this._gridController.setColumnsState(config === null || config === void 0 ? void 0 : config.columns);
|
|
125687
125687
|
}
|
|
125688
125688
|
updatePaginationTooltip() {
|
|
125689
125689
|
if (!this._refPaginationLabelTooltip)
|
|
@@ -125741,21 +125741,29 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125741
125741
|
return newConfig;
|
|
125742
125742
|
}
|
|
125743
125743
|
positionSelectionCounter() {
|
|
125744
|
-
var _a;
|
|
125745
|
-
if (this._gridSelectionCounter
|
|
125744
|
+
var _a, _b;
|
|
125745
|
+
if (!this._gridSelectionCounter)
|
|
125746
125746
|
return;
|
|
125747
|
-
|
|
125748
|
-
if (this._showSelectionCounter) {
|
|
125749
|
-
const boundingContainer = (_a = this._container) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
125750
|
-
if (boundingContainer == undefined) {
|
|
125751
|
-
return;
|
|
125752
|
-
}
|
|
125753
|
-
const limitBottom = boundingContainer.bottom - 30;
|
|
125754
|
-
this._gridSelectionCounter.style.bottom = document.body.clientHeight - limitBottom + 'px';
|
|
125755
|
-
}
|
|
125756
|
-
else {
|
|
125747
|
+
if (!this._showSelectionCounter) {
|
|
125757
125748
|
this._gridSelectionCounter.style.bottom = '';
|
|
125749
|
+
return;
|
|
125750
|
+
}
|
|
125751
|
+
const containerRect = (_a = this._container) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
125752
|
+
const selectionRect = (_b = this._gridSelectionCounter) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
125753
|
+
if (!containerRect || !selectionRect)
|
|
125754
|
+
return;
|
|
125755
|
+
const positionBottom = containerRect.bottom - 30;
|
|
125756
|
+
this._gridSelectionCounter.style.bottom = document.body.clientHeight - positionBottom + 'px';
|
|
125757
|
+
this._gridSelectionCounter.style.left = this.calculatePositionLeft(containerRect, selectionRect);
|
|
125758
|
+
}
|
|
125759
|
+
calculatePositionLeft(containerRect, selectionRect) {
|
|
125760
|
+
let selectionStart = containerRect.left + (containerRect.width / 2);
|
|
125761
|
+
const containerRightEdge = containerRect.left + this._container.clientWidth;
|
|
125762
|
+
const selectionEnd = (selectionStart - (selectionRect.width / 2)) + selectionRect.width;
|
|
125763
|
+
if (selectionEnd > containerRightEdge) {
|
|
125764
|
+
selectionStart = containerRightEdge - (selectionRect.width / 2);
|
|
125758
125765
|
}
|
|
125766
|
+
return `${selectionStart}px`;
|
|
125759
125767
|
}
|
|
125760
125768
|
setEvents() {
|
|
125761
125769
|
window.removeEventListener('scroll', this.positionSelectionCounter.bind(this));
|
|
@@ -126802,12 +126810,6 @@ const EzModalContainer$1 = class extends HTMLElement$1 {
|
|
|
126802
126810
|
this.cancelButtonStatus = undefined;
|
|
126803
126811
|
this.okButtonStatus = undefined;
|
|
126804
126812
|
}
|
|
126805
|
-
handleKeyDown(event) {
|
|
126806
|
-
if (event.key === 'Escape' || event.key === 'Esc')
|
|
126807
|
-
this.ezModalAction.emit(ModalAction$1.CANCEL);
|
|
126808
|
-
if (event.key === 'Enter')
|
|
126809
|
-
this.ezModalAction.emit(ModalAction$1.OK);
|
|
126810
|
-
}
|
|
126811
126813
|
cancelIsVisible() {
|
|
126812
126814
|
return (this.cancelButtonStatus !== ModalButtonStatus$1.HIDDEN && this.cancelButtonLabel != undefined);
|
|
126813
126815
|
}
|
|
@@ -126818,6 +126820,10 @@ const EzModalContainer$1 = class extends HTMLElement$1 {
|
|
|
126818
126820
|
window.requestAnimationFrame(() => {
|
|
126819
126821
|
this.ezModalAction.emit(ModalAction$1.LOAD);
|
|
126820
126822
|
});
|
|
126823
|
+
new KeyboardManager({ propagate: false, element: this._element })
|
|
126824
|
+
.bind("Enter", this.ezModalAction.emit.bind(ModalAction$1.OK))
|
|
126825
|
+
.bind("Escape", this.ezModalAction.emit.bind(ModalAction$1.CANCEL))
|
|
126826
|
+
.bind("Esc", this.ezModalAction.emit.bind(ModalAction$1.CANCEL));
|
|
126821
126827
|
}
|
|
126822
126828
|
focusLast() {
|
|
126823
126829
|
if (this._okButton == undefined) {
|
|
@@ -127366,11 +127372,11 @@ const EzPopup$1 = class extends HTMLElement$1 {
|
|
|
127366
127372
|
observeConfig() {
|
|
127367
127373
|
this.manageOverflow();
|
|
127368
127374
|
}
|
|
127369
|
-
|
|
127370
|
-
|
|
127371
|
-
this.
|
|
127372
|
-
|
|
127373
|
-
|
|
127375
|
+
componentDidLoad() {
|
|
127376
|
+
new KeyboardManager({ propagate: false, element: this._element })
|
|
127377
|
+
.bind("Enter", this.ezPopupAction.emit.bind("OK"))
|
|
127378
|
+
.bind("Escape", () => this.opened = false)
|
|
127379
|
+
.bind("Esc", () => this.opened = false);
|
|
127374
127380
|
}
|
|
127375
127381
|
manageOverflow() {
|
|
127376
127382
|
if (this.opened) {
|
|
@@ -127850,6 +127856,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127850
127856
|
if (typeof value === "string" || value instanceof String) {
|
|
127851
127857
|
return this._visibleOptions.find(o => o.value === value);
|
|
127852
127858
|
}
|
|
127859
|
+
if (value) {
|
|
127860
|
+
return Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
127861
|
+
}
|
|
127853
127862
|
return value;
|
|
127854
127863
|
}
|
|
127855
127864
|
updateVisibleOptions() {
|
|
@@ -127948,7 +127957,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127948
127957
|
}
|
|
127949
127958
|
scrollToOption(opt) {
|
|
127950
127959
|
window.requestAnimationFrame(() => {
|
|
127951
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
127960
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${this.replaceHighlight(opt.value).replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
127952
127961
|
if (liElem)
|
|
127953
127962
|
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
127954
127963
|
});
|
|
@@ -127991,15 +128000,22 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127991
128000
|
this._source = [];
|
|
127992
128001
|
this.updateVisibleOptions();
|
|
127993
128002
|
}
|
|
128003
|
+
replaceHighlight(value) {
|
|
128004
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
128005
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
128006
|
+
return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
128007
|
+
}
|
|
127994
128008
|
selectOption(newOption) {
|
|
127995
128009
|
var _a, _b;
|
|
127996
128010
|
const currentValue = this.getSelectedOption(this.value);
|
|
127997
|
-
|
|
127998
|
-
|
|
127999
|
-
|
|
128011
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
128012
|
+
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
128013
|
+
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
128014
|
+
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
128000
128015
|
this.value = adjustedOpt;
|
|
128001
128016
|
}
|
|
128002
128017
|
else {
|
|
128018
|
+
this.setInputValue();
|
|
128003
128019
|
this.resetOptions();
|
|
128004
128020
|
}
|
|
128005
128021
|
this._visibleOptions = [];
|
|
@@ -128109,7 +128125,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128109
128125
|
return;
|
|
128110
128126
|
}
|
|
128111
128127
|
this._lookupMode = true;
|
|
128112
|
-
this.value = value;
|
|
128128
|
+
this.value = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
128113
128129
|
}
|
|
128114
128130
|
loadOptionValue(argument) {
|
|
128115
128131
|
var _a;
|
|
@@ -128464,22 +128480,38 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
|
128464
128480
|
evt.stopPropagation();
|
|
128465
128481
|
this.closeDropdown();
|
|
128466
128482
|
}
|
|
128483
|
+
resolveOffsetParentRect() {
|
|
128484
|
+
var _a, _b;
|
|
128485
|
+
const offsetParentRect = (_b = (_a = this.dropdownParent) === null || _a === void 0 ? void 0 : _a.offsetParent) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
128486
|
+
const scrollLeft = window.scrollX || document.documentElement.scrollLeft;
|
|
128487
|
+
const scrollTop = window.scrollY || document.documentElement.scrollTop;
|
|
128488
|
+
const rectWithoutScroll = {
|
|
128489
|
+
top: (offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.top) + scrollTop,
|
|
128490
|
+
left: (offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.left) + scrollLeft,
|
|
128491
|
+
bottom: (offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.bottom) + scrollTop,
|
|
128492
|
+
right: (offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.right) + scrollLeft,
|
|
128493
|
+
width: offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.width,
|
|
128494
|
+
height: offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.height
|
|
128495
|
+
};
|
|
128496
|
+
this.offsetParentRect = rectWithoutScroll;
|
|
128497
|
+
}
|
|
128467
128498
|
/**
|
|
128468
128499
|
* Método responsável em posicionar o dropdown na tela.
|
|
128469
128500
|
* Faz com que o dropdown se ajuste automaticamente ao espaco na tela
|
|
128470
128501
|
*/
|
|
128471
128502
|
positionDropdown() {
|
|
128503
|
+
var _a, _b, _c, _d, _e, _f;
|
|
128472
128504
|
const { rightButton: _rightButton, dropdownParent: _dropdownParent } = this;
|
|
128473
128505
|
const rightButtonRect = _rightButton.getBoundingClientRect();
|
|
128474
128506
|
const dropdownParentRect = _dropdownParent.getBoundingClientRect();
|
|
128475
|
-
const spaceBelow = window.innerHeight - rightButtonRect.bottom;
|
|
128476
|
-
const spaceAbove = rightButtonRect.top;
|
|
128477
|
-
const spaceRight = window.innerWidth - rightButtonRect.
|
|
128507
|
+
const spaceBelow = window.innerHeight - (rightButtonRect.bottom + ((_a = this.offsetParentRect) === null || _a === void 0 ? void 0 : _a.top));
|
|
128508
|
+
const spaceAbove = rightButtonRect.top + ((_b = this.offsetParentRect) === null || _b === void 0 ? void 0 : _b.top);
|
|
128509
|
+
const spaceRight = window.innerWidth - (rightButtonRect.left + ((_c = this.offsetParentRect) === null || _c === void 0 ? void 0 : _c.left));
|
|
128478
128510
|
const spaceLeft = rightButtonRect.left;
|
|
128479
128511
|
const hasSpaceBelow = spaceBelow < dropdownParentRect.height && spaceAbove > dropdownParentRect.height;
|
|
128480
128512
|
const hasSpaceRight = spaceRight < dropdownParentRect.width && spaceLeft > dropdownParentRect.width;
|
|
128481
|
-
let top = `${rightButtonRect.bottom + window.scrollY}px`;
|
|
128482
|
-
let left = `${rightButtonRect.left + window.scrollX}px`;
|
|
128513
|
+
let top = `${rightButtonRect.bottom - ((_d = this.offsetParentRect) === null || _d === void 0 ? void 0 : _d.top) + window.scrollY}px`;
|
|
128514
|
+
let left = `${rightButtonRect.left - ((_e = this.offsetParentRect) === null || _e === void 0 ? void 0 : _e.left) + window.scrollX}px`;
|
|
128483
128515
|
let bottom = 'auto';
|
|
128484
128516
|
if (hasSpaceBelow) {
|
|
128485
128517
|
bottom = `${window.innerHeight - rightButtonRect.top - window.scrollY}px`;
|
|
@@ -128487,7 +128519,7 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
|
128487
128519
|
_dropdownParent.style.maxHeight = `${spaceAbove}px`;
|
|
128488
128520
|
}
|
|
128489
128521
|
if (hasSpaceRight) {
|
|
128490
|
-
left = `${rightButtonRect.right - dropdownParentRect.width + window.scrollX}px`;
|
|
128522
|
+
left = `${rightButtonRect.right - dropdownParentRect.width - ((_f = this.offsetParentRect) === null || _f === void 0 ? void 0 : _f.left) + window.scrollX}px`;
|
|
128491
128523
|
}
|
|
128492
128524
|
_dropdownParent.style.top = top;
|
|
128493
128525
|
_dropdownParent.style.bottom = bottom;
|
|
@@ -128500,6 +128532,9 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
|
128500
128532
|
componentWillLoad() {
|
|
128501
128533
|
this.setEvents();
|
|
128502
128534
|
}
|
|
128535
|
+
componentWillRender() {
|
|
128536
|
+
this.resolveOffsetParentRect();
|
|
128537
|
+
}
|
|
128503
128538
|
componentDidLoad() {
|
|
128504
128539
|
if (this._element)
|
|
128505
128540
|
ElementIDUtils.addIDInfo(this._element);
|
|
@@ -129342,17 +129377,25 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
129342
129377
|
};
|
|
129343
129378
|
return style;
|
|
129344
129379
|
}
|
|
129345
|
-
|
|
129346
|
-
let template = '';
|
|
129380
|
+
calcFreeSpacePercentage() {
|
|
129347
129381
|
const inUseSpacePercentage = this._items.reduce((accumulator, currentValue) => {
|
|
129348
129382
|
var _a;
|
|
129349
129383
|
return accumulator + (((_a = currentValue.size) === null || _a === void 0 ? void 0 : _a.includes('%')) ? Number(currentValue.size.replace("%", "")) : 0);
|
|
129350
129384
|
}, 0);
|
|
129351
|
-
const
|
|
129385
|
+
const itemsWithoutSizeAmount = this._items.filter((item) => item.size === undefined).length;
|
|
129386
|
+
if (!itemsWithoutSizeAmount || !inUseSpacePercentage) {
|
|
129387
|
+
return null;
|
|
129388
|
+
}
|
|
129389
|
+
const freeSpacePercentage = ((100 - inUseSpacePercentage) / itemsWithoutSizeAmount);
|
|
129390
|
+
return freeSpacePercentage;
|
|
129391
|
+
}
|
|
129392
|
+
getGridTemplate() {
|
|
129393
|
+
let template = '';
|
|
129394
|
+
const freeSpacePercentage = this.calcFreeSpacePercentage();
|
|
129352
129395
|
this._items.forEach((col, index) => {
|
|
129353
129396
|
let size = col.size || '1fr';
|
|
129354
|
-
if (!col.size &&
|
|
129355
|
-
size = `${
|
|
129397
|
+
if (!col.size && freeSpacePercentage) {
|
|
129398
|
+
size = `${freeSpacePercentage}%`;
|
|
129356
129399
|
}
|
|
129357
129400
|
if (index === this._items.length - 1) {
|
|
129358
129401
|
template += ` ${size}`;
|
|
@@ -130392,7 +130435,7 @@ const TreeItem = (props) => {
|
|
|
130392
130435
|
itemsList.push(treeItem);
|
|
130393
130436
|
}
|
|
130394
130437
|
return (h("ul", { class: level === 1 ? "first-level" : undefined },
|
|
130395
|
-
h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ?
|
|
130438
|
+
h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem) }, {
|
|
130396
130439
|
disabled,
|
|
130397
130440
|
selected: treeItem.id === selectedId,
|
|
130398
130441
|
[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezTreeItem_${treeItem.id}`)
|
|
@@ -130400,11 +130443,25 @@ const TreeItem = (props) => {
|
|
|
130400
130443
|
h("div", { class: "item-label-container" },
|
|
130401
130444
|
h("div", { class: "item-icon-box" }, expandable &&
|
|
130402
130445
|
h("ez-icon", { id: treeItem.id, class: "item-icon", size: "small", iconName: iconResolver(treeItem, expanded, level), onClick: () => available && iconClick(treeItem) })),
|
|
130403
|
-
h("label", { class: "item-label" }, treeItem.label)),
|
|
130404
|
-
|
|
130446
|
+
h("label", { class: `item-label ${treeItem.bold ? "item-label--bold" : ""}` }, treeItem.label)),
|
|
130447
|
+
getBadgeElement(treeItem.id, treeItem.badge, treeItem.id === selectedId)),
|
|
130405
130448
|
expanded
|
|
130406
130449
|
&& node.getChildren().map(child => h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList }))));
|
|
130407
130450
|
};
|
|
130451
|
+
function getBadgeElement(itemId, badge, isSelectedItem) {
|
|
130452
|
+
if (badge == undefined) {
|
|
130453
|
+
return;
|
|
130454
|
+
}
|
|
130455
|
+
if (typeof badge === "string") {
|
|
130456
|
+
return h("div", { class: `tree-item-badge ${isSelectedItem ? null : badge}` }, badge === "error" &&
|
|
130457
|
+
h("ez-icon", { id: `${itemId}-badge-error`, class: "tree-item-badge-error-icon", size: "x-small", style: { color: 'white' }, iconName: "alert-circle" }));
|
|
130458
|
+
}
|
|
130459
|
+
if (badge.type === "text") {
|
|
130460
|
+
return h("div", { id: `${itemId}-badge-text`, class: "tree-item-badge-text" }, badge.text);
|
|
130461
|
+
}
|
|
130462
|
+
return h("div", null,
|
|
130463
|
+
h("ez-icon", { id: `${itemId}-badge-icon`, class: "tree-item-badge-icon", style: { "--ez-icon--color": `var(--ez-tree__badge--icon-color--${badge.iconColor || "default"})` }, iconName: badge.iconName }));
|
|
130464
|
+
}
|
|
130408
130465
|
|
|
130409
130466
|
class Node$1 {
|
|
130410
130467
|
constructor(tree, item, parent, isPlaceHolder = false) {
|
|
@@ -130648,7 +130705,7 @@ class Tree extends Node$1 {
|
|
|
130648
130705
|
}
|
|
130649
130706
|
}
|
|
130650
130707
|
|
|
130651
|
-
const ezTreeCss = ":host{--ez-tree--border-radius:var(--border--radius-small, 8px);--ez-tree--padding-inline-start:20px;--ez-tree--margin:var(--space--extra-small, 3px);--ez-tree--margin-right:calc(var(--space--small, 6px) + 2px);--ez-tree--font-family:var(--font-pattern, Arial);--ez-tree--font-size:var(--text--medium, 14px);--ez-tree--selected--font-weight:var(--text-weight--large, 600);--ez-tree--font-weight:var(--text-weight--small, 400);--ez-tree--color:var(--title--primary, #2B3A54);--ez-tree--selected--color:var(--color--primary, #008561);--ez-tree--disabled--color:var(--text--disable, #AFB6C0);--ez-tree__tree-item--height:var(--size-medium, 18px);--ez-tree__tree-item--padding:var(--space--small, 6px);--ez-tree__tree-item--background-color:var(--background--xlight, #FFFFFF);--ez-tree__tree-item--selected--background-color:var(--color--primary-300, #E2F4EF);--ez-tree__tree-item--hover--background-color:var(--background--medium, #F0F3F7);--ez-tree__tree-item--disabled--background-color:var(--ez-tree__tree-Item--background-color);--ez-tree__item-icon-box--height:var(--ez-tree__tree-item--height);--ez-tree__item-icon-box--width:var(--size-medium, 18px);--ez-tree__item-icon-box--padding:var(--ez-tree__tree-item--padding);display:flex;flex-direction:column;margin:0 var(--ez-tree--margin) var(--ez-tree--margin) var(--ez-tree--margin);outline:none}ul{list-style-type:none;margin:0;padding-inline-start:var(--ez-tree--padding-inline-start)}ul.first-level{padding-inline-start:0}.tree-item-badge{width:16px;height:16px;background:transparent;border-radius:50%;transition:all 300ms ease-in-out;display:flex;align-items:center;justify-content:center}.tree-item-badge-error-icon{--ez-icon--color:white}.tree-item-badge.error{background:var(--color--error)}.tree-item-badge.warning{background:var(--color--warning)}.tree-item-badge.success{background:var(--color--success)}.item-label-container{display:flex;align-items:center}.tree-item{display:flex;align-items:center;margin-top:var(--ez-tree--margin);margin-right:var(--ez-tree--margin-right);border-radius:var(--ez-tree--border-radius);height:var(--ez-tree__tree-item--height);padding:var(--ez-tree__tree-item--padding);justify-content:space-between}.tree-item[selected]{background-color:var(--ez-tree__tree-item--selected--background-color)}.tree-item:hover{background-color:var(--ez-tree__tree-item--hover--background-color)}.tree-item[disabled],.tree-item[disabled]:hover{background-color:var(--ez-tree__tree-item--disabled--background-color)}.item-icon-box{display:flex;align-items:center;justify-content:center;width:var(--ez-tree__item-icon-box--width);height:var(--ez-tree__item-icon-box--height);padding:var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) 0}.item-icon{--ez-icon--color:var(--ez-tree--color)}.item-icon:hover{cursor:pointer}.tree-item[selected] .item-icon{--ez-icon--color:var(--ez-tree--selected--color)}.tree-item[disabled] .item-icon{cursor:unset;--ez-icon--color:var(--ez-tree--disabled--color)}.item-label{cursor:inherit;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.tree-item[selected] .item-label{color:var(--ez-tree--selected--color);font-weight:var(--ez-tree--selected--font-weight)}.tree-item[disabled] .item-label{color:var(--ez-tree--disabled--color)}";
|
|
130708
|
+
const ezTreeCss = ":host{--ez-tree--border-radius:var(--border--radius-small, 8px);--ez-tree--padding-inline-start:20px;--ez-tree--margin:var(--space--extra-small, 3px);--ez-tree--margin-right:calc(var(--space--small, 6px) + 2px);--ez-tree--font-family:var(--font-pattern, Arial);--ez-tree--font-size:var(--text--medium, 14px);--ez-tree--selected--font-weight:var(--text-weight--large, 600);--ez-tree--font-weight:var(--text-weight--small, 400);--ez-tree--color:var(--title--primary, #2B3A54);--ez-tree--selected--color:var(--color--primary, #008561);--ez-tree--disabled--color:var(--text--disable, #AFB6C0);--ez-tree--font-weight--bold:var(--text-weight--large, 600);--ez-tree__tree-item--height:var(--size-medium, 18px);--ez-tree__tree-item--padding:var(--space--small, 6px);--ez-tree__tree-item--background-color:var(--background--xlight, #FFFFFF);--ez-tree__tree-item--selected--background-color:var(--color--primary-300, #E2F4EF);--ez-tree__tree-item--hover--background-color:var(--background--medium, #F0F3F7);--ez-tree__tree-item--disabled--background-color:var(--ez-tree__tree-Item--background-color);--ez-tree__item-icon-box--height:var(--ez-tree__tree-item--height);--ez-tree__item-icon-box--width:var(--size-medium, 18px);--ez-tree__item-icon-box--padding:var(--ez-tree__tree-item--padding);--ez-tree__badge--icon-color--default:var(--title--primary, #2B3A54);--ez-tree__badge--icon-color--error:var(--color--error, #da4453);--ez-tree__badge--icon-color--success:var(--color-alert--success-800, #157a00);--ez-tree__badge--icon-color--warning:var(--color--warning, #f2d410);--ez-tree__badge--icon-color--disabled:var(--text--disable, #AFB6C0);display:flex;flex-direction:column;margin:0 var(--ez-tree--margin) var(--ez-tree--margin) var(--ez-tree--margin);outline:none}ul{list-style-type:none;margin:0;padding-inline-start:var(--ez-tree--padding-inline-start)}ul.first-level{padding-inline-start:0}.tree-item-badge{width:16px;height:16px;background:transparent;border-radius:50%;transition:all 300ms ease-in-out;display:flex;align-items:center;justify-content:center}.tree-item-badge-error-icon{--ez-icon--color:white}.tree-item-badge-text{font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.tree-item-badge.error{background:var(--color--error)}.tree-item-badge.warning{background:var(--color--warning)}.tree-item-badge.success{background:var(--color--success)}.item-label-container{display:flex;align-items:center}.tree-item{display:flex;align-items:center;margin-top:var(--ez-tree--margin);margin-right:var(--ez-tree--margin-right);border-radius:var(--ez-tree--border-radius);height:var(--ez-tree__tree-item--height);padding:var(--ez-tree__tree-item--padding);justify-content:space-between}.tree-item[selected]{background-color:var(--ez-tree__tree-item--selected--background-color)}.tree-item:hover{background-color:var(--ez-tree__tree-item--hover--background-color)}.tree-item[disabled],.tree-item[disabled]:hover{background-color:var(--ez-tree__tree-item--disabled--background-color)}.item-icon-box{display:flex;align-items:center;justify-content:center;width:var(--ez-tree__item-icon-box--width);height:var(--ez-tree__item-icon-box--height);padding:var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) 0}.item-icon{--ez-icon--color:var(--ez-tree--color)}.item-icon:hover{cursor:pointer}.tree-item[selected] .item-icon{--ez-icon--color:var(--ez-tree--selected--color)}.tree-item[disabled] .item-icon{cursor:unset;--ez-icon--color:var(--ez-tree--disabled--color)}.item-label{cursor:inherit;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.item-label--bold{font-weight:var(--ez-tree--font-weight--bold)}.tree-item[selected] .item-label{color:var(--ez-tree--selected--color);font-weight:var(--ez-tree--selected--font-weight)}.tree-item[disabled] .item-label{color:var(--ez-tree--disabled--color)}";
|
|
130652
130709
|
|
|
130653
130710
|
const EzTree$1 = class extends HTMLElement$1 {
|
|
130654
130711
|
constructor() {
|
|
@@ -131586,7 +131643,7 @@ const MultiSelectionBoxMessage$1 = class extends HTMLElement$1 {
|
|
|
131586
131643
|
|
|
131587
131644
|
const EzActionsButton = /*@__PURE__*/proxyCustomElement(EzActionsButton$1, [1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32]}]);
|
|
131588
131645
|
const EzAlert = /*@__PURE__*/proxyCustomElement(EzAlert$1, [1,"ez-alert",{"alertType":[513,"alert-type"]}]);
|
|
131589
|
-
const EzAlertList = /*@__PURE__*/proxyCustomElement(EzAlertList$1, [1,"ez-alert-list",{"alerts":[1040],"enableDragAndDrop":[516,"enable-drag-and-drop"],"enableExpand":[516,"enable-expand"],"itemRightSlotBuilder":[16],"opened":[1540],"expanded":[1540]}]);
|
|
131646
|
+
const EzAlertList = /*@__PURE__*/proxyCustomElement(EzAlertList$1, [1,"ez-alert-list",{"alerts":[1040],"enableDragAndDrop":[516,"enable-drag-and-drop"],"enableExpand":[516,"enable-expand"],"itemRightSlotBuilder":[16],"opened":[1540],"expanded":[1540],"_container":[32]}]);
|
|
131590
131647
|
const EzApplication = /*@__PURE__*/proxyCustomElement(EzApplication$1, [0,"ez-application"]);
|
|
131591
131648
|
const EzBadge = /*@__PURE__*/proxyCustomElement(EzBadge$1, [1,"ez-badge",{"size":[513],"label":[513],"iconLeft":[513,"icon-left"],"iconRight":[513,"icon-right"],"position":[1040],"hasSlot":[32]}]);
|
|
131592
131649
|
const EzBreadcrumb = /*@__PURE__*/proxyCustomElement(EzBreadcrumb$1, [1,"ez-breadcrumb",{"items":[1040],"fillMode":[1025,"fill-mode"],"maxItems":[1026,"max-items"],"positionEllipsis":[1026,"position-ellipsis"],"visibleItems":[32],"hiddenItems":[32],"showDropdown":[32],"collapseConfigPosition":[32]}]);
|
|
@@ -131611,11 +131668,11 @@ const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[5
|
|
|
131611
131668
|
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"dataSource":[1040],"listMode":[1,"list-mode"],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"itemLeftSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
131612
131669
|
const EzLoadingBar = /*@__PURE__*/proxyCustomElement(EzLoadingBar$1, [1,"ez-loading-bar",{"_showLoading":[32]}]);
|
|
131613
131670
|
const EzModal = /*@__PURE__*/proxyCustomElement(EzModal$1, [1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"heightMode":[1,"height-mode"],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"],"scrim":[1]}]);
|
|
131614
|
-
const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}
|
|
131671
|
+
const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]);
|
|
131615
131672
|
const EzMultiSelectionList = /*@__PURE__*/proxyCustomElement(EzMuiltiSelectionList, [2,"ez-multi-selection-list",{"columnName":[1,"column-name"],"dataSource":[16],"useOptions":[1028,"use-options"],"options":[1040],"isTextSearch":[4,"is-text-search"],"filteredOptions":[32],"displayOptions":[32],"viewScenario":[32],"displayOptionToCheckAllItems":[32]}]);
|
|
131616
131673
|
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"canShowError":[516,"can-show-error"],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513]}]);
|
|
131617
131674
|
const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"]}]);
|
|
131618
|
-
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}
|
|
131675
|
+
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]);
|
|
131619
131676
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
131620
131677
|
const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]);
|
|
131621
131678
|
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"],"options":[1040],"suppressSearch":[4,"suppress-search"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
@@ -6,6 +6,7 @@ const ezAlertListCss = ":host {\n display: flex;\n\n /* Alert List */\n \n /
|
|
|
6
6
|
const EzAlertList = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
this._container = undefined;
|
|
9
10
|
this.alerts = [];
|
|
10
11
|
this.enableDragAndDrop = undefined;
|
|
11
12
|
this.enableExpand = true;
|
|
@@ -14,7 +15,9 @@ const EzAlertList = class {
|
|
|
14
15
|
this.expanded = false;
|
|
15
16
|
}
|
|
16
17
|
observeOpened() {
|
|
17
|
-
this.
|
|
18
|
+
if (this.opened) {
|
|
19
|
+
this.manageOverlay();
|
|
20
|
+
}
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* Retorna o id do alerta a partir do título e do índice.
|
|
@@ -141,7 +144,7 @@ const EzAlertList = class {
|
|
|
141
144
|
}
|
|
142
145
|
get _element() { return getElement(this); }
|
|
143
146
|
static get watchers() { return {
|
|
144
|
-
"
|
|
147
|
+
"_container": ["observeOpened"]
|
|
145
148
|
}; }
|
|
146
149
|
};
|
|
147
150
|
EzAlertList.style = ezAlertListCss;
|
|
@@ -120763,10 +120763,7 @@ const EzGrid = class {
|
|
|
120763
120763
|
return Promise.resolve(this._gridController.getColumnsState().filter(col => matches(col.label, search)));
|
|
120764
120764
|
}
|
|
120765
120765
|
observeConfig(config) {
|
|
120766
|
-
|
|
120767
|
-
return;
|
|
120768
|
-
}
|
|
120769
|
-
this._gridController.setColumnsState(config.columns);
|
|
120766
|
+
this._gridController.setColumnsState(config === null || config === void 0 ? void 0 : config.columns);
|
|
120770
120767
|
}
|
|
120771
120768
|
updatePaginationTooltip() {
|
|
120772
120769
|
if (!this._refPaginationLabelTooltip)
|
|
@@ -120824,21 +120821,29 @@ const EzGrid = class {
|
|
|
120824
120821
|
return newConfig;
|
|
120825
120822
|
}
|
|
120826
120823
|
positionSelectionCounter() {
|
|
120827
|
-
var _a;
|
|
120828
|
-
if (this._gridSelectionCounter
|
|
120824
|
+
var _a, _b;
|
|
120825
|
+
if (!this._gridSelectionCounter)
|
|
120829
120826
|
return;
|
|
120830
|
-
|
|
120831
|
-
if (this._showSelectionCounter) {
|
|
120832
|
-
const boundingContainer = (_a = this._container) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
120833
|
-
if (boundingContainer == undefined) {
|
|
120834
|
-
return;
|
|
120835
|
-
}
|
|
120836
|
-
const limitBottom = boundingContainer.bottom - 30;
|
|
120837
|
-
this._gridSelectionCounter.style.bottom = document.body.clientHeight - limitBottom + 'px';
|
|
120838
|
-
}
|
|
120839
|
-
else {
|
|
120827
|
+
if (!this._showSelectionCounter) {
|
|
120840
120828
|
this._gridSelectionCounter.style.bottom = '';
|
|
120829
|
+
return;
|
|
120841
120830
|
}
|
|
120831
|
+
const containerRect = (_a = this._container) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
120832
|
+
const selectionRect = (_b = this._gridSelectionCounter) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
120833
|
+
if (!containerRect || !selectionRect)
|
|
120834
|
+
return;
|
|
120835
|
+
const positionBottom = containerRect.bottom - 30;
|
|
120836
|
+
this._gridSelectionCounter.style.bottom = document.body.clientHeight - positionBottom + 'px';
|
|
120837
|
+
this._gridSelectionCounter.style.left = this.calculatePositionLeft(containerRect, selectionRect);
|
|
120838
|
+
}
|
|
120839
|
+
calculatePositionLeft(containerRect, selectionRect) {
|
|
120840
|
+
let selectionStart = containerRect.left + (containerRect.width / 2);
|
|
120841
|
+
const containerRightEdge = containerRect.left + this._container.clientWidth;
|
|
120842
|
+
const selectionEnd = (selectionStart - (selectionRect.width / 2)) + selectionRect.width;
|
|
120843
|
+
if (selectionEnd > containerRightEdge) {
|
|
120844
|
+
selectionStart = containerRightEdge - (selectionRect.width / 2);
|
|
120845
|
+
}
|
|
120846
|
+
return `${selectionStart}px`;
|
|
120842
120847
|
}
|
|
120843
120848
|
setEvents() {
|
|
120844
120849
|
window.removeEventListener('scroll', this.positionSelectionCounter.bind(this));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-baa5e267.js';
|
|
2
|
+
import { KeyboardManager } from '@sankhyalabs/core';
|
|
2
3
|
|
|
3
4
|
var ModalAction;
|
|
4
5
|
(function (ModalAction) {
|
|
@@ -31,12 +32,6 @@ const EzModalContainer = class {
|
|
|
31
32
|
this.cancelButtonStatus = undefined;
|
|
32
33
|
this.okButtonStatus = undefined;
|
|
33
34
|
}
|
|
34
|
-
handleKeyDown(event) {
|
|
35
|
-
if (event.key === 'Escape' || event.key === 'Esc')
|
|
36
|
-
this.ezModalAction.emit(ModalAction$1.CANCEL);
|
|
37
|
-
if (event.key === 'Enter')
|
|
38
|
-
this.ezModalAction.emit(ModalAction$1.OK);
|
|
39
|
-
}
|
|
40
35
|
cancelIsVisible() {
|
|
41
36
|
return (this.cancelButtonStatus !== ModalButtonStatus$1.HIDDEN && this.cancelButtonLabel != undefined);
|
|
42
37
|
}
|
|
@@ -47,6 +42,10 @@ const EzModalContainer = class {
|
|
|
47
42
|
window.requestAnimationFrame(() => {
|
|
48
43
|
this.ezModalAction.emit(ModalAction$1.LOAD);
|
|
49
44
|
});
|
|
45
|
+
new KeyboardManager({ propagate: false, element: this._element })
|
|
46
|
+
.bind("Enter", this.ezModalAction.emit.bind(ModalAction$1.OK))
|
|
47
|
+
.bind("Escape", this.ezModalAction.emit.bind(ModalAction$1.CANCEL))
|
|
48
|
+
.bind("Esc", this.ezModalAction.emit.bind(ModalAction$1.CANCEL));
|
|
50
49
|
}
|
|
51
50
|
focusLast() {
|
|
52
51
|
if (this._okButton == undefined) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-baa5e267.js';
|
|
2
|
-
import { FloatingManager } from '@sankhyalabs/core';
|
|
2
|
+
import { KeyboardManager, FloatingManager } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;height:100%;width:100%}.popup__expandable-content{box-sizing:border-box;width:100%;height:calc(100% - 44px)}.popup__header{width:100%;display:flex}.popup__header--padding{padding-bottom:var(--ez-popup__header--padding-bottom)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--ez-popup__btn__close--icon);mask-image:var(--ez-popup__btn__close--icon)}.btn-close--solo{width:100%}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
5
5
|
|
|
@@ -25,11 +25,11 @@ const EzPopup = class {
|
|
|
25
25
|
observeConfig() {
|
|
26
26
|
this.manageOverflow();
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
this.
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
new KeyboardManager({ propagate: false, element: this._element })
|
|
30
|
+
.bind("Enter", this.ezPopupAction.emit.bind("OK"))
|
|
31
|
+
.bind("Escape", () => this.opened = false)
|
|
32
|
+
.bind("Esc", () => this.opened = false);
|
|
33
33
|
}
|
|
34
34
|
manageOverflow() {
|
|
35
35
|
if (this.opened) {
|
|
@@ -242,7 +242,7 @@ const TreeItem = (props) => {
|
|
|
242
242
|
itemsList.push(treeItem);
|
|
243
243
|
}
|
|
244
244
|
return (h("ul", { class: level === 1 ? "first-level" : undefined },
|
|
245
|
-
h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ?
|
|
245
|
+
h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem) }, {
|
|
246
246
|
disabled,
|
|
247
247
|
selected: treeItem.id === selectedId,
|
|
248
248
|
[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezTreeItem_${treeItem.id}`)
|
|
@@ -250,11 +250,25 @@ const TreeItem = (props) => {
|
|
|
250
250
|
h("div", { class: "item-label-container" },
|
|
251
251
|
h("div", { class: "item-icon-box" }, expandable &&
|
|
252
252
|
h("ez-icon", { id: treeItem.id, class: "item-icon", size: "small", iconName: iconResolver(treeItem, expanded, level), onClick: () => available && iconClick(treeItem) })),
|
|
253
|
-
h("label", { class: "item-label" }, treeItem.label)),
|
|
254
|
-
|
|
253
|
+
h("label", { class: `item-label ${treeItem.bold ? "item-label--bold" : ""}` }, treeItem.label)),
|
|
254
|
+
getBadgeElement(treeItem.id, treeItem.badge, treeItem.id === selectedId)),
|
|
255
255
|
expanded
|
|
256
256
|
&& node.getChildren().map(child => h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList }))));
|
|
257
257
|
};
|
|
258
|
+
function getBadgeElement(itemId, badge, isSelectedItem) {
|
|
259
|
+
if (badge == undefined) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
if (typeof badge === "string") {
|
|
263
|
+
return h("div", { class: `tree-item-badge ${isSelectedItem ? null : badge}` }, badge === "error" &&
|
|
264
|
+
h("ez-icon", { id: `${itemId}-badge-error`, class: "tree-item-badge-error-icon", size: "x-small", style: { color: 'white' }, iconName: "alert-circle" }));
|
|
265
|
+
}
|
|
266
|
+
if (badge.type === "text") {
|
|
267
|
+
return h("div", { id: `${itemId}-badge-text`, class: "tree-item-badge-text" }, badge.text);
|
|
268
|
+
}
|
|
269
|
+
return h("div", null,
|
|
270
|
+
h("ez-icon", { id: `${itemId}-badge-icon`, class: "tree-item-badge-icon", style: { "--ez-icon--color": `var(--ez-tree__badge--icon-color--${badge.iconColor || "default"})` }, iconName: badge.iconName }));
|
|
271
|
+
}
|
|
258
272
|
|
|
259
273
|
class Node {
|
|
260
274
|
constructor(tree, item, parent, isPlaceHolder = false) {
|
|
@@ -498,7 +512,7 @@ class Tree extends Node {
|
|
|
498
512
|
}
|
|
499
513
|
}
|
|
500
514
|
|
|
501
|
-
const ezTreeCss = ":host{--ez-tree--border-radius:var(--border--radius-small, 8px);--ez-tree--padding-inline-start:20px;--ez-tree--margin:var(--space--extra-small, 3px);--ez-tree--margin-right:calc(var(--space--small, 6px) + 2px);--ez-tree--font-family:var(--font-pattern, Arial);--ez-tree--font-size:var(--text--medium, 14px);--ez-tree--selected--font-weight:var(--text-weight--large, 600);--ez-tree--font-weight:var(--text-weight--small, 400);--ez-tree--color:var(--title--primary, #2B3A54);--ez-tree--selected--color:var(--color--primary, #008561);--ez-tree--disabled--color:var(--text--disable, #AFB6C0);--ez-tree__tree-item--height:var(--size-medium, 18px);--ez-tree__tree-item--padding:var(--space--small, 6px);--ez-tree__tree-item--background-color:var(--background--xlight, #FFFFFF);--ez-tree__tree-item--selected--background-color:var(--color--primary-300, #E2F4EF);--ez-tree__tree-item--hover--background-color:var(--background--medium, #F0F3F7);--ez-tree__tree-item--disabled--background-color:var(--ez-tree__tree-Item--background-color);--ez-tree__item-icon-box--height:var(--ez-tree__tree-item--height);--ez-tree__item-icon-box--width:var(--size-medium, 18px);--ez-tree__item-icon-box--padding:var(--ez-tree__tree-item--padding);display:flex;flex-direction:column;margin:0 var(--ez-tree--margin) var(--ez-tree--margin) var(--ez-tree--margin);outline:none}ul{list-style-type:none;margin:0;padding-inline-start:var(--ez-tree--padding-inline-start)}ul.first-level{padding-inline-start:0}.tree-item-badge{width:16px;height:16px;background:transparent;border-radius:50%;transition:all 300ms ease-in-out;display:flex;align-items:center;justify-content:center}.tree-item-badge-error-icon{--ez-icon--color:white}.tree-item-badge.error{background:var(--color--error)}.tree-item-badge.warning{background:var(--color--warning)}.tree-item-badge.success{background:var(--color--success)}.item-label-container{display:flex;align-items:center}.tree-item{display:flex;align-items:center;margin-top:var(--ez-tree--margin);margin-right:var(--ez-tree--margin-right);border-radius:var(--ez-tree--border-radius);height:var(--ez-tree__tree-item--height);padding:var(--ez-tree__tree-item--padding);justify-content:space-between}.tree-item[selected]{background-color:var(--ez-tree__tree-item--selected--background-color)}.tree-item:hover{background-color:var(--ez-tree__tree-item--hover--background-color)}.tree-item[disabled],.tree-item[disabled]:hover{background-color:var(--ez-tree__tree-item--disabled--background-color)}.item-icon-box{display:flex;align-items:center;justify-content:center;width:var(--ez-tree__item-icon-box--width);height:var(--ez-tree__item-icon-box--height);padding:var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) 0}.item-icon{--ez-icon--color:var(--ez-tree--color)}.item-icon:hover{cursor:pointer}.tree-item[selected] .item-icon{--ez-icon--color:var(--ez-tree--selected--color)}.tree-item[disabled] .item-icon{cursor:unset;--ez-icon--color:var(--ez-tree--disabled--color)}.item-label{cursor:inherit;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.tree-item[selected] .item-label{color:var(--ez-tree--selected--color);font-weight:var(--ez-tree--selected--font-weight)}.tree-item[disabled] .item-label{color:var(--ez-tree--disabled--color)}";
|
|
515
|
+
const ezTreeCss = ":host{--ez-tree--border-radius:var(--border--radius-small, 8px);--ez-tree--padding-inline-start:20px;--ez-tree--margin:var(--space--extra-small, 3px);--ez-tree--margin-right:calc(var(--space--small, 6px) + 2px);--ez-tree--font-family:var(--font-pattern, Arial);--ez-tree--font-size:var(--text--medium, 14px);--ez-tree--selected--font-weight:var(--text-weight--large, 600);--ez-tree--font-weight:var(--text-weight--small, 400);--ez-tree--color:var(--title--primary, #2B3A54);--ez-tree--selected--color:var(--color--primary, #008561);--ez-tree--disabled--color:var(--text--disable, #AFB6C0);--ez-tree--font-weight--bold:var(--text-weight--large, 600);--ez-tree__tree-item--height:var(--size-medium, 18px);--ez-tree__tree-item--padding:var(--space--small, 6px);--ez-tree__tree-item--background-color:var(--background--xlight, #FFFFFF);--ez-tree__tree-item--selected--background-color:var(--color--primary-300, #E2F4EF);--ez-tree__tree-item--hover--background-color:var(--background--medium, #F0F3F7);--ez-tree__tree-item--disabled--background-color:var(--ez-tree__tree-Item--background-color);--ez-tree__item-icon-box--height:var(--ez-tree__tree-item--height);--ez-tree__item-icon-box--width:var(--size-medium, 18px);--ez-tree__item-icon-box--padding:var(--ez-tree__tree-item--padding);--ez-tree__badge--icon-color--default:var(--title--primary, #2B3A54);--ez-tree__badge--icon-color--error:var(--color--error, #da4453);--ez-tree__badge--icon-color--success:var(--color-alert--success-800, #157a00);--ez-tree__badge--icon-color--warning:var(--color--warning, #f2d410);--ez-tree__badge--icon-color--disabled:var(--text--disable, #AFB6C0);display:flex;flex-direction:column;margin:0 var(--ez-tree--margin) var(--ez-tree--margin) var(--ez-tree--margin);outline:none}ul{list-style-type:none;margin:0;padding-inline-start:var(--ez-tree--padding-inline-start)}ul.first-level{padding-inline-start:0}.tree-item-badge{width:16px;height:16px;background:transparent;border-radius:50%;transition:all 300ms ease-in-out;display:flex;align-items:center;justify-content:center}.tree-item-badge-error-icon{--ez-icon--color:white}.tree-item-badge-text{font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.tree-item-badge.error{background:var(--color--error)}.tree-item-badge.warning{background:var(--color--warning)}.tree-item-badge.success{background:var(--color--success)}.item-label-container{display:flex;align-items:center}.tree-item{display:flex;align-items:center;margin-top:var(--ez-tree--margin);margin-right:var(--ez-tree--margin-right);border-radius:var(--ez-tree--border-radius);height:var(--ez-tree__tree-item--height);padding:var(--ez-tree__tree-item--padding);justify-content:space-between}.tree-item[selected]{background-color:var(--ez-tree__tree-item--selected--background-color)}.tree-item:hover{background-color:var(--ez-tree__tree-item--hover--background-color)}.tree-item[disabled],.tree-item[disabled]:hover{background-color:var(--ez-tree__tree-item--disabled--background-color)}.item-icon-box{display:flex;align-items:center;justify-content:center;width:var(--ez-tree__item-icon-box--width);height:var(--ez-tree__item-icon-box--height);padding:var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) 0}.item-icon{--ez-icon--color:var(--ez-tree--color)}.item-icon:hover{cursor:pointer}.tree-item[selected] .item-icon{--ez-icon--color:var(--ez-tree--selected--color)}.tree-item[disabled] .item-icon{cursor:unset;--ez-icon--color:var(--ez-tree--disabled--color)}.item-label{cursor:inherit;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.item-label--bold{font-weight:var(--ez-tree--font-weight--bold)}.tree-item[selected] .item-label{color:var(--ez-tree--selected--color);font-weight:var(--ez-tree--selected--font-weight)}.tree-item[disabled] .item-label{color:var(--ez-tree--disabled--color)}";
|
|
502
516
|
|
|
503
517
|
const EzTree = class {
|
|
504
518
|
constructor(hostRef) {
|