@sankhyalabs/ezui 4.6.0 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{constants-5d588e38.js → constants-5a75e2f3.js} +0 -2
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +0 -1
- package/dist/cjs/ez-grid.cjs.entry.js +112 -213
- package/dist/cjs/ez-modal.cjs.entry.js +5 -2
- package/dist/cjs/ez-upload.cjs.entry.js +4 -2
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +86 -84
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +5 -16
- package/dist/collection/components/ez-grid/ez-grid.js +21 -110
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +3 -5
- package/dist/collection/components/ez-modal/ez-modal.css +4 -2
- package/dist/collection/components/ez-modal/ez-modal.js +26 -1
- package/dist/collection/components/ez-upload/ez-upload.css +14 -1
- package/dist/collection/components/ez-upload/ez-upload.js +20 -1
- package/dist/collection/utils/form/DataBinder.js +0 -1
- package/dist/custom-elements/index.js +124 -221
- package/dist/esm/constants-ca136201.js +3 -0
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +0 -1
- package/dist/esm/ez-grid.entry.js +112 -213
- package/dist/esm/ez-modal.entry.js +5 -2
- package/dist/esm/ez-upload.entry.js +4 -2
- 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-03164b9f.entry.js +1 -0
- package/dist/ezui/p-22f4210d.entry.js +1 -0
- package/dist/ezui/p-3f4ae3a3.js +1 -0
- package/dist/ezui/{p-878646a0.entry.js → p-50883460.entry.js} +1 -1
- package/dist/ezui/{p-ef705232.entry.js → p-8654802d.entry.js} +2 -2
- package/dist/ezui/{p-b7ea9791.entry.js → p-e748b5d3.entry.js} +1 -1
- package/dist/ezui/p-f1dc3514.entry.js +1 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +6 -10
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +3 -5
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +0 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +2 -9
- package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +2 -2
- package/dist/types/components/ez-modal/ez-modal.d.ts +9 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +4 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +1 -1
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +0 -73
- package/dist/esm/constants-76d2e931.js +0 -4
- package/dist/ezui/p-1f841f3c.entry.js +0 -1
- package/dist/ezui/p-622c2d53.entry.js +0 -1
- package/dist/ezui/p-b01e3085.js +0 -1
- package/dist/ezui/p-eceb9382.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +0 -11
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, forceUpdate, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
3
|
import { UserInterface, DateUtils as DateUtils$1, Action, WaitingChangeException, ApplicationContext, DataUnitAction, FloatingManager, ElementIDUtils, ObjectUtils as ObjectUtils$1, JSUtils, StringUtils as StringUtils$1, TimeFormatter, DataUnit, NumberUtils as NumberUtils$1, DataType, SortMode, MaskFormatter } from '@sankhyalabs/core';
|
|
4
|
+
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
4
5
|
|
|
5
6
|
var DialogType;
|
|
6
7
|
(function (DialogType) {
|
|
@@ -356,7 +357,6 @@ class DataBinder {
|
|
|
356
357
|
case Action.RECORDS_COPIED:
|
|
357
358
|
case Action.EDITION_CANCELED:
|
|
358
359
|
case Action.SELECTION_CHANGED:
|
|
359
|
-
case Action.SELECTION_REMOVED:
|
|
360
360
|
case Action.NEXT_SELECTED:
|
|
361
361
|
case Action.PREVIOUS_SELECTED:
|
|
362
362
|
this.clearInvalid();
|
|
@@ -1961,7 +1961,6 @@ const EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
1961
1961
|
};
|
|
1962
1962
|
|
|
1963
1963
|
const REQUIRED_INFO = " (obrigatório) *";
|
|
1964
|
-
const ALL_RECORD = "ALL_RECORD";
|
|
1965
1964
|
|
|
1966
1965
|
const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box__icon--width:48px;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--border-radius-small:var(--border--radius-small, 6px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__input--error--border-color:#CC2936;--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);--ez-combo-box__label--color:var(--title--primary, #2B3A54);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.list-container{position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:100%;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
1967
1966
|
|
|
@@ -123248,6 +123247,7 @@ class DataSource {
|
|
|
123248
123247
|
if (this._options) {
|
|
123249
123248
|
this._options.onPaginationChange(this._dataUnit.getPaginationInfo());
|
|
123250
123249
|
}
|
|
123250
|
+
this.updateSelection();
|
|
123251
123251
|
break;
|
|
123252
123252
|
case Action.RECORDS_REMOVED:
|
|
123253
123253
|
case Action.DATA_SAVED:
|
|
@@ -123256,7 +123256,6 @@ class DataSource {
|
|
|
123256
123256
|
this._controller.refresh();
|
|
123257
123257
|
break;
|
|
123258
123258
|
case Action.SELECTION_CHANGED:
|
|
123259
|
-
case Action.SELECTION_REMOVED:
|
|
123260
123259
|
case Action.NEXT_SELECTED:
|
|
123261
123260
|
case Action.PREVIOUS_SELECTED:
|
|
123262
123261
|
this.updateSelection();
|
|
@@ -123270,25 +123269,14 @@ class DataSource {
|
|
|
123270
123269
|
this._dataUnit.subscribe(this.duObserver);
|
|
123271
123270
|
}
|
|
123272
123271
|
updateSelection() {
|
|
123273
|
-
|
|
123274
|
-
if (
|
|
123275
|
-
|
|
123276
|
-
}
|
|
123277
|
-
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
123278
|
-
if ((dataSelection === null || dataSelection === void 0 ? void 0 : dataSelection.length) > 0) {
|
|
123279
|
-
this._controller.selectRows(dataSelection);
|
|
123272
|
+
const selectionInfo = this._dataUnit.getSelectionInfo();
|
|
123273
|
+
if (selectionInfo.isAllRecords()) {
|
|
123274
|
+
this._controller.selectAll(true);
|
|
123280
123275
|
}
|
|
123281
123276
|
else {
|
|
123282
|
-
this._controller.
|
|
123277
|
+
this._controller.selectRows(selectionInfo.recordIds, true);
|
|
123283
123278
|
}
|
|
123284
123279
|
}
|
|
123285
|
-
isSelectionEquals() {
|
|
123286
|
-
var _a, _b;
|
|
123287
|
-
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
123288
|
-
const controlSelection = (_b = this._controller) === null || _b === void 0 ? void 0 : _b.getSelection();
|
|
123289
|
-
return ObjectUtils$1.objectToString(dataSelection || []) ===
|
|
123290
|
-
ObjectUtils$1.objectToString(controlSelection || []);
|
|
123291
|
-
}
|
|
123292
123280
|
getRows(params) {
|
|
123293
123281
|
if (this.needReload(params)) {
|
|
123294
123282
|
this._lastLoadingParams = params;
|
|
@@ -123489,9 +123477,12 @@ class AgGridController {
|
|
|
123489
123477
|
else {
|
|
123490
123478
|
this._grid = new Grid(container, this._gridOptions);
|
|
123491
123479
|
}
|
|
123492
|
-
const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.
|
|
123493
|
-
if (selection) {
|
|
123494
|
-
this.
|
|
123480
|
+
const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectionInfo();
|
|
123481
|
+
if (selection === null || selection === void 0 ? void 0 : selection.isAllRecords()) {
|
|
123482
|
+
this.selectAll(true);
|
|
123483
|
+
}
|
|
123484
|
+
else {
|
|
123485
|
+
this.selectRows((selection === null || selection === void 0 ? void 0 : selection.recordIds) || [], true);
|
|
123495
123486
|
}
|
|
123496
123487
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
123497
123488
|
}
|
|
@@ -123555,7 +123546,7 @@ class AgGridController {
|
|
|
123555
123546
|
opt.onColumnPinned = e => this.onCallStateChange("columnPinned", e);
|
|
123556
123547
|
opt.onColumnMoved = e => this.onCallStateChange("columnMoved", e);
|
|
123557
123548
|
opt.onColumnVisible = e => this.onCallStateChange("visibleChange", e);
|
|
123558
|
-
opt.onSelectionChanged =
|
|
123549
|
+
opt.onSelectionChanged = e => this.onSelectionChange(e);
|
|
123559
123550
|
opt.onRowDoubleClicked = evt => this.onRowDoubleClick(evt);
|
|
123560
123551
|
opt.onDragStopped = evt => this.onCallStateChange("columnMovedEnd", evt);
|
|
123561
123552
|
}
|
|
@@ -123563,72 +123554,31 @@ class AgGridController {
|
|
|
123563
123554
|
opt.suppressDragLeaveHidesColumns = true;
|
|
123564
123555
|
opt.suppressMenuHide = true;
|
|
123565
123556
|
}
|
|
123566
|
-
isAllRecordSetted(allSelection) {
|
|
123567
|
-
return allSelection === null || allSelection === void 0 ? void 0 : allSelection.some((selectedRecord) => {
|
|
123568
|
-
return selectedRecord.__record__id__ === ALL_RECORD;
|
|
123569
|
-
});
|
|
123570
|
-
}
|
|
123571
123557
|
getSelectionHeaderStatus() {
|
|
123572
123558
|
const records = this._dataUnit.records;
|
|
123573
123559
|
if (records && records.length === 0) {
|
|
123574
123560
|
return false;
|
|
123575
123561
|
}
|
|
123576
|
-
const
|
|
123577
|
-
if (
|
|
123578
|
-
return false;
|
|
123579
|
-
}
|
|
123580
|
-
if (this.isAllRecordSetted(allSelection)) {
|
|
123562
|
+
const selectionInfo = this._dataUnit.getSelectionInfo();
|
|
123563
|
+
if (selectionInfo.isAllRecords()) {
|
|
123581
123564
|
return true;
|
|
123582
123565
|
}
|
|
123583
|
-
|
|
123584
|
-
|
|
123585
|
-
|
|
123586
|
-
const selectedRecords = this._dataUnit.getSelectedRecords();
|
|
123587
|
-
if (selectedRecords.length < allSelection.length) {
|
|
123588
|
-
return undefined;
|
|
123566
|
+
const selection = selectionInfo.recordIds;
|
|
123567
|
+
if (selection == undefined || selection.length === 0) {
|
|
123568
|
+
return false;
|
|
123589
123569
|
}
|
|
123590
123570
|
let status = undefined;
|
|
123591
123571
|
for (let i = 0; i < records.length; i++) {
|
|
123592
|
-
const current =
|
|
123593
|
-
return selectedRecord.__record__id__ === records[i].__record__id__;
|
|
123594
|
-
});
|
|
123572
|
+
const current = selection.includes(records[i].__record__id__);
|
|
123595
123573
|
if (status != undefined && current !== status) {
|
|
123596
|
-
return;
|
|
123574
|
+
return undefined;
|
|
123597
123575
|
}
|
|
123598
123576
|
status = current;
|
|
123599
123577
|
}
|
|
123600
123578
|
return status;
|
|
123601
123579
|
}
|
|
123602
|
-
|
|
123603
|
-
|
|
123604
|
-
return;
|
|
123605
|
-
}
|
|
123606
|
-
let allSelection = this._dataUnit.getSelection();
|
|
123607
|
-
if (allSelection === null || allSelection === void 0 ? void 0 : allSelection.some((sel) => sel.__record__id__ === ALL_RECORD)) {
|
|
123608
|
-
await this._dataUnit.clearSelection();
|
|
123609
|
-
}
|
|
123610
|
-
let updateSelection = [];
|
|
123611
|
-
const records = this._dataUnit.records;
|
|
123612
|
-
const selectedRecords = this._dataUnit.getSelectedRecords();
|
|
123613
|
-
allSelection = this._dataUnit.getSelection();
|
|
123614
|
-
if (selectAll && selectedRecords.length < records.length) {
|
|
123615
|
-
updateSelection = records;
|
|
123616
|
-
allSelection.forEach((selectedRecord) => {
|
|
123617
|
-
const recordIds = updateSelection.map((record) => record.__record__id__);
|
|
123618
|
-
if (!recordIds.includes(selectedRecord.__record__id__)) {
|
|
123619
|
-
updateSelection.push(selectedRecord);
|
|
123620
|
-
}
|
|
123621
|
-
});
|
|
123622
|
-
}
|
|
123623
|
-
else {
|
|
123624
|
-
updateSelection = allSelection.filter((selectedRecord) => {
|
|
123625
|
-
return !(records || [])
|
|
123626
|
-
.some((record) => {
|
|
123627
|
-
return record.__record__id__ === selectedRecord.__record__id__;
|
|
123628
|
-
});
|
|
123629
|
-
});
|
|
123630
|
-
}
|
|
123631
|
-
this._dataUnit.setSelection(updateSelection);
|
|
123580
|
+
updateSelectionForAll(selectAll) {
|
|
123581
|
+
this._dataUnit.updatePageSelection(selectAll ? this._dataUnit.records.map(r => r.__record__id__) : []);
|
|
123632
123582
|
}
|
|
123633
123583
|
setData(data) {
|
|
123634
123584
|
if (this._grid === undefined) {
|
|
@@ -123646,21 +123596,55 @@ class AgGridController {
|
|
|
123646
123596
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
123647
123597
|
}
|
|
123648
123598
|
}
|
|
123649
|
-
|
|
123650
|
-
|
|
123651
|
-
|
|
123599
|
+
selectAll(quietly = false) {
|
|
123600
|
+
try {
|
|
123601
|
+
this._gridOptions.context.selectionChangeQuietly = quietly;
|
|
123602
|
+
this._gridOptions.api.forEachNode(node => {
|
|
123603
|
+
if (!node.isSelected()) {
|
|
123604
|
+
node.setSelected(true);
|
|
123605
|
+
}
|
|
123606
|
+
});
|
|
123652
123607
|
}
|
|
123653
|
-
|
|
123654
|
-
|
|
123655
|
-
|
|
123656
|
-
|
|
123657
|
-
|
|
123608
|
+
finally {
|
|
123609
|
+
const newContext = Object.assign({}, this._gridOptions.context);
|
|
123610
|
+
delete newContext.selectionChangeQuietly;
|
|
123611
|
+
this._gridOptions.context = newContext;
|
|
123612
|
+
}
|
|
123613
|
+
}
|
|
123614
|
+
selectRows(rowIds, quietly = false) {
|
|
123615
|
+
var _a;
|
|
123616
|
+
try {
|
|
123617
|
+
this._gridOptions.context.selectionChangeQuietly = quietly;
|
|
123618
|
+
if (this._grid === undefined) {
|
|
123619
|
+
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
123658
123620
|
}
|
|
123659
|
-
|
|
123660
|
-
|
|
123621
|
+
let lastSelected;
|
|
123622
|
+
this._gridOptions.api.forEachNode(node => {
|
|
123623
|
+
if (rowIds && rowIds.includes(node.id)) {
|
|
123624
|
+
if (!node.isSelected()) {
|
|
123625
|
+
node.setSelected(true);
|
|
123626
|
+
lastSelected = node;
|
|
123627
|
+
}
|
|
123628
|
+
}
|
|
123629
|
+
else {
|
|
123630
|
+
if (node.isSelected()) {
|
|
123631
|
+
node.setSelected(false);
|
|
123632
|
+
}
|
|
123633
|
+
}
|
|
123634
|
+
});
|
|
123635
|
+
const selectionHeader = this._gridOptions.context.selectionHeader;
|
|
123636
|
+
if (selectionHeader) {
|
|
123637
|
+
selectionHeader.updateCheckbox();
|
|
123661
123638
|
}
|
|
123662
|
-
|
|
123663
|
-
|
|
123639
|
+
if (lastSelected) {
|
|
123640
|
+
(_a = this._gridOptions.api) === null || _a === void 0 ? void 0 : _a.ensureNodeVisible(lastSelected);
|
|
123641
|
+
}
|
|
123642
|
+
}
|
|
123643
|
+
finally {
|
|
123644
|
+
const newContext = Object.assign({}, this._gridOptions.context);
|
|
123645
|
+
delete newContext.selectionChangeQuietly;
|
|
123646
|
+
this._gridOptions.context = newContext;
|
|
123647
|
+
}
|
|
123664
123648
|
}
|
|
123665
123649
|
removeRows() {
|
|
123666
123650
|
if (this._grid === undefined) {
|
|
@@ -123843,19 +123827,6 @@ class AgGridController {
|
|
|
123843
123827
|
var _a;
|
|
123844
123828
|
(_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
|
|
123845
123829
|
}
|
|
123846
|
-
deselectAll() {
|
|
123847
|
-
var _a, _b;
|
|
123848
|
-
(_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.deselectAll();
|
|
123849
|
-
this.updateCheckbox();
|
|
123850
|
-
}
|
|
123851
|
-
updateCheckbox() {
|
|
123852
|
-
var _a, _b;
|
|
123853
|
-
const selectionHeader = (_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.context) === null || _b === void 0 ? void 0 : _b.selectionHeader;
|
|
123854
|
-
if (selectionHeader == undefined) {
|
|
123855
|
-
return;
|
|
123856
|
-
}
|
|
123857
|
-
selectionHeader.updateCheckbox();
|
|
123858
|
-
}
|
|
123859
123830
|
buildColDef(source) {
|
|
123860
123831
|
var _a, _b, _c;
|
|
123861
123832
|
let tooltip = undefined;
|
|
@@ -123976,13 +123947,33 @@ class AgGridController {
|
|
|
123976
123947
|
}
|
|
123977
123948
|
return false;
|
|
123978
123949
|
}
|
|
123979
|
-
onSelectionChange() {
|
|
123950
|
+
onSelectionChange(event) {
|
|
123980
123951
|
if (this._selectionChangeCallback) {
|
|
123981
123952
|
clearTimeout(this._selectionChangeDeboucing);
|
|
123982
123953
|
this._selectionChangeDeboucing = window.setTimeout(() => {
|
|
123983
|
-
this.
|
|
123984
|
-
|
|
123985
|
-
|
|
123954
|
+
if (this._dataUnit) {
|
|
123955
|
+
if (event.context.selectionChangeQuietly) {
|
|
123956
|
+
const selectionInfo = this._dataUnit;
|
|
123957
|
+
this._selectionChangeCallback({
|
|
123958
|
+
selection: selectionInfo.records,
|
|
123959
|
+
selectionHeaderStatus: this.getSelectionHeaderStatus()
|
|
123960
|
+
});
|
|
123961
|
+
}
|
|
123962
|
+
else {
|
|
123963
|
+
this._dataUnit.updatePageSelection(this._gridOptions.api.getSelectedRows().map((r) => r.__record__id__)).then(selectionInfo => {
|
|
123964
|
+
this._selectionChangeCallback({
|
|
123965
|
+
selection: selectionInfo.records,
|
|
123966
|
+
selectionHeaderStatus: this.getSelectionHeaderStatus()
|
|
123967
|
+
});
|
|
123968
|
+
});
|
|
123969
|
+
}
|
|
123970
|
+
}
|
|
123971
|
+
else {
|
|
123972
|
+
this._selectionChangeCallback({
|
|
123973
|
+
selection: this._gridOptions.api.getSelectedRows(),
|
|
123974
|
+
selectionHeaderStatus: this.getSelectionHeaderStatus()
|
|
123975
|
+
});
|
|
123976
|
+
}
|
|
123986
123977
|
}, 0);
|
|
123987
123978
|
}
|
|
123988
123979
|
}
|
|
@@ -124014,16 +124005,14 @@ class AgGridController {
|
|
|
124014
124005
|
}
|
|
124015
124006
|
|
|
124016
124007
|
const SelectionCounter = (props) => {
|
|
124017
|
-
const { selectionCount,
|
|
124018
|
-
const pageSelectedRecords = selectionPageCount === recordsLength;
|
|
124019
|
-
const allSelectedRecords = selectionCount === total;
|
|
124008
|
+
const { selectionCount, currentPageSelected, total, allRecordSelected, onSelectAll, onSelectPage, onClearAll, onClose } = props;
|
|
124020
124009
|
return (h("div", Object.assign({ class: "ez-box ez-box--shadow-small" }, getElementID("ezGridSelectionCounter")),
|
|
124021
124010
|
h("div", { class: "ez-flex ez-flex--align-items-center ez-size-width--full ez-padding-horizontal--medium" },
|
|
124022
124011
|
h("div", { class: "ez-flex ez-flex--wrap ez-flex--align-items-baseline ez-flex--justify-center" },
|
|
124023
|
-
h("label", Object.assign({ innerHTML: getText(selectionCount,
|
|
124012
|
+
h("label", Object.assign({ innerHTML: getText(selectionCount, allRecordSelected), class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium ez-margin-top--medium" }, getElementID("ezGridSelectionCounter_label"))),
|
|
124024
124013
|
h("div", { class: "ez-flex ez-margin-right--medium" },
|
|
124025
|
-
(
|
|
124026
|
-
h("ez-button", Object.assign({ class: "ez-margin-right--medium", label: `Selecionar ${
|
|
124014
|
+
(currentPageSelected || allRecordSelected) &&
|
|
124015
|
+
h("ez-button", Object.assign({ class: "ez-margin-right--medium", label: `Selecionar ${allRecordSelected ? "apenas a página atual" : `todos os ${total} registros`}`, mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))),
|
|
124027
124016
|
h("ez-button", Object.assign({ class: "grid__btn-clear", label: "Limpar", mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))),
|
|
124028
124017
|
h("button", Object.assign({ class: "grid__btn-close", title: "Fechar", onClick: onClose }, getElementID("ezGridSelectionCounter_close")),
|
|
124029
124018
|
h("ez-icon", { iconName: "close" })))));
|
|
@@ -124054,13 +124043,12 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
124054
124043
|
this.ezDoubleClick = createEvent(this, "ezDoubleClick", 7);
|
|
124055
124044
|
this.configChange = createEvent(this, "configChange", 7);
|
|
124056
124045
|
this._gridController = new AgGridController(false);
|
|
124057
|
-
this._debounceTimer = 500;
|
|
124058
|
-
this._selectionAll = false;
|
|
124059
124046
|
this._paginationInfo = undefined;
|
|
124060
124047
|
this._paginationChangedByKeyboard = true;
|
|
124061
124048
|
this._showSelectionCounter = false;
|
|
124062
|
-
this.
|
|
124063
|
-
this.
|
|
124049
|
+
this._isAllSelection = false;
|
|
124050
|
+
this._currentPageSelected = undefined;
|
|
124051
|
+
this._selectionCount = undefined;
|
|
124064
124052
|
this.multipleSelection = undefined;
|
|
124065
124053
|
this.config = undefined;
|
|
124066
124054
|
this.serverUrl = undefined;
|
|
@@ -124119,117 +124107,29 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
124119
124107
|
this._gridController.setColumnsState(config.columns);
|
|
124120
124108
|
}
|
|
124121
124109
|
onSelectionChange(evt) {
|
|
124122
|
-
|
|
124123
|
-
if (
|
|
124124
|
-
|
|
124125
|
-
}
|
|
124126
|
-
if (this.isAllRecordSetted()) {
|
|
124127
|
-
this.updateSelectionPage(selection);
|
|
124128
|
-
return;
|
|
124129
|
-
}
|
|
124130
|
-
this.setSelection(selection);
|
|
124131
|
-
}
|
|
124132
|
-
updateSelectionPage(selection) {
|
|
124133
|
-
if (this._selectionAll) {
|
|
124134
|
-
this._selectionAll = false;
|
|
124135
|
-
}
|
|
124136
|
-
else {
|
|
124137
|
-
this.dataUnit.clearSelection()
|
|
124138
|
-
.then(() => {
|
|
124139
|
-
const records = this.dataUnit.records;
|
|
124140
|
-
const selectionPage = selection.filter((selectedRecord) => {
|
|
124141
|
-
return records.some((record) => {
|
|
124142
|
-
return record.__record__id__ === selectedRecord.__record__id__;
|
|
124143
|
-
});
|
|
124144
|
-
});
|
|
124145
|
-
this._gridController.selectRows(selectionPage);
|
|
124146
|
-
});
|
|
124147
|
-
}
|
|
124148
|
-
}
|
|
124149
|
-
isAllRecordSetted() {
|
|
124150
|
-
var _a;
|
|
124151
|
-
const allSelection = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
124152
|
-
return allSelection === null || allSelection === void 0 ? void 0 : allSelection.some((selectedRecord) => {
|
|
124153
|
-
return selectedRecord.__record__id__ === ALL_RECORD;
|
|
124154
|
-
});
|
|
124155
|
-
}
|
|
124156
|
-
setSelection(selection) {
|
|
124157
|
-
if ((selection === null || selection === void 0 ? void 0 : selection.length) > 0) {
|
|
124158
|
-
this.dataUnit.setSelection(selection)
|
|
124159
|
-
.then(this.controlSelectionCounter.bind(this));
|
|
124160
|
-
}
|
|
124161
|
-
else {
|
|
124162
|
-
this.dataUnit.clearSelection()
|
|
124163
|
-
.then(this.controlSelectionCounter.bind(this));
|
|
124164
|
-
}
|
|
124165
|
-
}
|
|
124166
|
-
setAutoSelectAll() {
|
|
124167
|
-
var _a, _b, _c, _d;
|
|
124168
|
-
const { total } = (_a = this._paginationInfo) !== null && _a !== void 0 ? _a : {};
|
|
124169
|
-
if (total == undefined) {
|
|
124170
|
-
return;
|
|
124171
|
-
}
|
|
124172
|
-
this._selectionCount = total;
|
|
124173
|
-
this._selectionAll = true;
|
|
124174
|
-
this._showSelectionCounter = true;
|
|
124175
|
-
(_b = this._gridController) === null || _b === void 0 ? void 0 : _b.selectRows((_d = (_c = this.dataUnit) === null || _c === void 0 ? void 0 : _c.records) !== null && _d !== void 0 ? _d : []);
|
|
124176
|
-
}
|
|
124177
|
-
controlSelectionCounter() {
|
|
124178
|
-
var _a, _b;
|
|
124179
|
-
const allSelection = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
124180
|
-
const counter = (_b = allSelection === null || allSelection === void 0 ? void 0 : allSelection.length) !== null && _b !== void 0 ? _b : 0;
|
|
124181
|
-
if (this.isAllRecordSetted()) {
|
|
124182
|
-
this.setAutoSelectAll();
|
|
124183
|
-
return;
|
|
124184
|
-
}
|
|
124185
|
-
if (!this.multipleSelection || !this.isPaginationActived()) {
|
|
124186
|
-
this._showSelectionCounter = false;
|
|
124187
|
-
setTimeout(this.setSelectionCount.bind(this), this._debounceTimer);
|
|
124188
|
-
return;
|
|
124189
|
-
}
|
|
124190
|
-
if (counter > 1) {
|
|
124191
|
-
setTimeout(() => {
|
|
124192
|
-
this.setSelectionCount(counter);
|
|
124193
|
-
this._showSelectionCounter = true;
|
|
124194
|
-
}, this._debounceTimer);
|
|
124195
|
-
}
|
|
124196
|
-
else {
|
|
124197
|
-
this._showSelectionCounter = false;
|
|
124198
|
-
setTimeout(this.setSelectionCount.bind(this, counter), this._debounceTimer);
|
|
124110
|
+
this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
|
|
124111
|
+
if (this.dataUnit) {
|
|
124112
|
+
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
124199
124113
|
}
|
|
124200
124114
|
}
|
|
124201
|
-
|
|
124202
|
-
var _a, _b;
|
|
124203
|
-
this._selectionCount = value;
|
|
124204
|
-
const selectPageRecords = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecords();
|
|
124205
|
-
this._selectionPageCount = (_b = selectPageRecords === null || selectPageRecords === void 0 ? void 0 : selectPageRecords.length) !== null && _b !== void 0 ? _b : 0;
|
|
124206
|
-
}
|
|
124207
|
-
isPaginationActived() {
|
|
124115
|
+
setSelection(selectionInfo) {
|
|
124208
124116
|
var _a;
|
|
124209
|
-
|
|
124210
|
-
|
|
124211
|
-
|
|
124212
|
-
}
|
|
124213
|
-
return Math.ceil(total / (lastRecord - firstRecord + 1)) > 1;
|
|
124117
|
+
this._selectionCount = (_a = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.length) !== null && _a !== void 0 ? _a : 0;
|
|
124118
|
+
this._isAllSelection = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.isAllRecords();
|
|
124119
|
+
this._showSelectionCounter = this._selectionCount > 1 || this._isAllSelection;
|
|
124214
124120
|
}
|
|
124215
124121
|
onSelectAllRecords() {
|
|
124216
|
-
|
|
124217
|
-
|
|
124218
|
-
filter: this.dataUnit.getFilters(),
|
|
124219
|
-
sort: this.dataUnit.getSort()
|
|
124220
|
-
};
|
|
124221
|
-
this.setSelection([allRecord]);
|
|
124122
|
+
var _a;
|
|
124123
|
+
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.setSelection(SelectionMode.ALL_RECORDS).then(selection => this.setSelection(selection));
|
|
124222
124124
|
}
|
|
124223
124125
|
onSelectPageRecords() {
|
|
124224
124126
|
var _a;
|
|
124225
|
-
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.
|
|
124226
|
-
var _a, _b, _c;
|
|
124227
|
-
(_a = this._gridController) === null || _a === void 0 ? void 0 : _a.selectRows((_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) !== null && _c !== void 0 ? _c : []);
|
|
124228
|
-
});
|
|
124127
|
+
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.setSelection(this.dataUnit.records.map(record => record.__record__id__)).then(selection => this.setSelection(selection));
|
|
124229
124128
|
}
|
|
124230
124129
|
onClearSelectedRecords() {
|
|
124231
124130
|
var _a;
|
|
124232
124131
|
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.clearSelection();
|
|
124132
|
+
this.setSelection(undefined);
|
|
124233
124133
|
}
|
|
124234
124134
|
createConfigFromState(state) {
|
|
124235
124135
|
let newConfig = { columns: [] };
|
|
@@ -124379,8 +124279,6 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
124379
124279
|
this._paginationChangedByKeyboard = true;
|
|
124380
124280
|
}
|
|
124381
124281
|
this._paginationInfo = paginationInfo;
|
|
124382
|
-
this._gridController.updateCheckbox();
|
|
124383
|
-
this.controlSelectionCounter();
|
|
124384
124282
|
},
|
|
124385
124283
|
onDoubleClick: (row) => {
|
|
124386
124284
|
this.ezDoubleClick.emit(row);
|
|
@@ -124400,10 +124298,10 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
124400
124298
|
this.configSelectionCounter();
|
|
124401
124299
|
}
|
|
124402
124300
|
render() {
|
|
124403
|
-
var _a
|
|
124301
|
+
var _a;
|
|
124404
124302
|
return (h(Host, null, h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => this._refPaginationControl = ref }, this.getPaginationControl())), h("div", { ref: (ref) => this._gridSelectionCounter = ref, class: `grid__selection-counter
|
|
124405
124303
|
${this._showSelectionCounter ? "grid__selection-counter--opened" : ""}
|
|
124406
|
-
` }, h(SelectionCounter, { selectionCount: this._selectionCount,
|
|
124304
|
+
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, total: (_a = this._paginationInfo) === null || _a === void 0 ? void 0 : _a.total, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => this._showSelectionCounter = false })), h("div", { class: "grid__container ez-grid", ref: elem => this._container = elem }), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
124407
124305
|
}
|
|
124408
124306
|
static get assetsDirs() { return ["../assets"]; }
|
|
124409
124307
|
get _element() { return this; }
|
|
@@ -125113,7 +125011,7 @@ const EzLoadingBar$1 = class extends HTMLElement$1 {
|
|
|
125113
125011
|
static get style() { return ezLoadingBarCss; }
|
|
125114
125012
|
};
|
|
125115
125013
|
|
|
125116
|
-
const ezModalCss = ":host{--ez-modal-z-index:var(--most-visible, 3);--ez-modal-vertical-padding:var(--space--large, 24px);display:block}.modal{position:fixed;
|
|
125014
|
+
const ezModalCss = ":host{--ez-modal-z-index:var(--most-visible, 3);--ez-modal-vertical-padding:var(--space--large, 24px);display:block}.modal{position:fixed;display:flex;top:0px;z-index:var(--ez-modal-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.modal__vertical-padding{padding:var(--ez-modal-vertical-padding) 0}@keyframes expand-modal--left{from{transform:translate(-100%)}}@keyframes expand-modal--right{from{transform:translate(100%)}}.modal__container{display:flex;flex-wrap:wrap;height:100%;box-sizing:border-box;width:100%;align-items:flex-start}.modal__container--right{animation:expand-modal--right .2s ease-in-out 1;justify-content:flex-end}.modal__container--left{animation:expand-modal--left .2s ease-in-out 1;justify-content:flex-start}.modal__content{display:flex;flex-wrap:wrap;box-sizing:border-box;max-height:100%;height:100%;overflow-y:auto;background-color:rgb(255, 255, 255);padding:24px;box-shadow:rgb(0 38 111 / 12%) 0px 0px 16px 0px}.modal__content--right{border-radius:12px 0px 0px 12px}.modal__content--left{border-radius:0px 12px 12px 0px}.modal__box__container{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;border-radius:12px}.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}@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%}}";
|
|
125117
125015
|
|
|
125118
125016
|
const EzModal$1 = class extends HTMLElement$1 {
|
|
125119
125017
|
constructor() {
|
|
@@ -125129,6 +125027,7 @@ const EzModal$1 = class extends HTMLElement$1 {
|
|
|
125129
125027
|
};
|
|
125130
125028
|
this.modalSize = undefined;
|
|
125131
125029
|
this.align = undefined;
|
|
125030
|
+
this.heightMode = "regular";
|
|
125132
125031
|
this.opened = true;
|
|
125133
125032
|
this.closeEsc = false;
|
|
125134
125033
|
this.closeOutsideClick = false;
|
|
@@ -125160,9 +125059,11 @@ const EzModal$1 = class extends HTMLElement$1 {
|
|
|
125160
125059
|
}
|
|
125161
125060
|
render() {
|
|
125162
125061
|
const positionSufix = this.align === "left" ? "left" : "right";
|
|
125062
|
+
const regularVerticalPaddingClass = this.heightMode === "regular" ? 'modal__vertical-padding' : '';
|
|
125063
|
+
const modalContentHeightMode = this.heightMode === "regular" ? `modal__content--${positionSufix}` : '';
|
|
125163
125064
|
return (h(Host, null, this.opened
|
|
125164
125065
|
?
|
|
125165
|
-
h("div", { class:
|
|
125066
|
+
h("div", { class: `modal ${regularVerticalPaddingClass}`, onMouseDown: evt => this.onMouseDownHandler(evt) }, h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref }, h("div", { class: `modal__content ${modalContentHeightMode} ${this.modalSize}` }, h("slot", null))))
|
|
125166
125067
|
:
|
|
125167
125068
|
undefined));
|
|
125168
125069
|
}
|
|
@@ -127487,7 +127388,7 @@ class RemoteFile {
|
|
|
127487
127388
|
}
|
|
127488
127389
|
}
|
|
127489
127390
|
|
|
127490
|
-
const ezUploadCss = ":host{--ez-upload--height:42px;--ez-upload--width:100%;--ez-upload__icon--width:48px;--ez-upload__container--background-color:var(--background--medium, #d2dce9);--ez-upload__color--primary:var(--color--primary, #008561);--ez-upload--padding--extra-small:var(--space--extra-small, 3px);--ez-upload--padding--small:var(--space--small, 6px);--ez-upload--padding--medium:var(--space--medium, 12px);--ez-upload--padding--large:var(--space--large, 24px);--ez-upload__border--color:var(--color-strokes, #DCE0E8);--ez-upload--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-upload--text--primary:var(--text-primary, #626e82);--ez-upload--font-size:var(--text--medium, 14px);--ez-upload--font-family:var(--font-pattern, Arial);--ez-upload--font-weight:var(--text-weight--large, 500);--ez-upload__btn__cancel-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"8x\" width=\"8px\"><path d=\"M 8,0.8 7.2,0 4,3.2 0.8,0 0,0.8 3.2,4 0,7.2 0.8,8 4,4.8 7.2,8 8,7.2 4.8,4 Z\"/></svg>');--ez-upload__file-icon-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"11x\" width=\"9px\"><path d=\"M 1.2272719,8.4999999 V 2.75 c 0,-1.1045695 1.4652499,-2 3.2727273,-2 1.8074777,0 3.2727281,0.8954305 3.2727281,2 V 8.9999999 C 7.7727273,9.690356 6.8569456,10.25 5.7272719,10.25 4.5975985,10.25 3.6818174,9.690356 3.6818174,8.9999999 V 3.75 c 0,-0.2761425 0.3663125,-0.5 0.8181818,-0.5 0.4518694,0 0.8181818,0.2238575 0.8181818,0.5 V 8.4999999 H 6.5454537 V 3.75 C 6.5454537,3.059644 5.6296725,2.5 4.4999992,2.5 3.3703258,2.5 2.4545446,3.059644 2.4545446,3.75 V 8.9999999 C 2.4545446,10.10457 3.9197945,11 5.7272719,11 7.5347496,11 9,10.10457 9,8.9999999 V 2.75 C 9,1.231217 6.9852809,0 4.4999992,0 2.0147181,5e-7 0,1.231217 0,2.75 v 5.7499999 z\"/></svg>');display:flex;flex-wrap:wrap;position:relative;padding-bottom:16px;font-family:var(--ez-upload--font-family);font-size:var(--ez-upload--font-size);width:var(--ez-upload--width);font-weight:var(--ez-upload--font-weight)}.iu{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:var(--ez-upload--padding--small);width:100%;border-radius:12px;box-sizing:border-box}.iu__container{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;border:2px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.iu__footer{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;padding:0 var(--ez-upload--padding--medium) var(--ez-upload--padding--medium) var(--ez-upload--padding--medium);box-sizing:border-box}.iu__item{display:flex;width:100%;justify-content:flex-start;align-items:center;align-self:center;padding-bottom:var(--ez-upload--padding--extra-small);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iu__item-label{display:flex;max-width:80%;align-self:stretch;align-items:center}.file__name{font-weight:200}.box__content{width:100%;justify-content:center;align-items:center;height:100%;border:1px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.box__container{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:6px;width:100%;border-radius:12px}a:-webkit-any-link{color:#008561;fill:#008561;cursor:pointer;text-decoration:none}progress[value]{display:flex;width:100%;appearance:none;border:1px solid var(--ez-upload__border--color);height:12px;justify-content:flex-start;align-items:center;border-radius:3px;position:relative}progress[value]::-webkit-progress-bar{display:flex;-webkit-appearance:none;width:100%;background-color:rgb(255, 255, 255);border-radius:2px;padding:2px}progress[value]::-webkit-progress-value{display:flex;width:100%;background-color:var(--ez-upload__color--primary)}.text--center{text-align:center}.align--middle{align-self:center;align-items:center}.text{font-family:var(--font-pattern, \"Roboto\");text-shadow:0 0 0 #353535, 0 0 1px transparent}.text--primary{color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text--medium{font-size:14px}.text--small{font-size:12px}.btn-cancel{outline:none;border:none;background-color:unset;cursor:pointer}.btn-cancel::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:8px;height:8px;-webkit-mask-image:var(--ez-upload__btn__cancel-image);mask-image:var(--ez-upload__btn__cancel-image)}.iu_header{display:flex;flex-direction:column;width:100%}.iu__label{padding:var(--space--small);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-upload--font-family);font-size:var(--text--extra-small);font-weight:var(--ez-upload--font-weight);color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.iu__file-icon{outline:none;border:none;background-color:unset;cursor:pointer}.iu__file-icon:disabled{cursor:unset}.iu__file-icon::after{content:'';display:flex;background-color:var(--text--primary, #626e82);width:9px;height:11px;-webkit-mask-image:var(--ez-upload__file-icon-image);mask-image:var(--ez-upload__file-icon-image)}.iu__file-icon:disabled::after{background-color:var(--text--disable, #AFB6C0)}.iu__icon-label{justify-content:center;display:flex;cursor:pointer;
|
|
127391
|
+
const ezUploadCss = ":host{--ez-upload--height:42px;--ez-upload--width:100%;--ez-upload__icon--width:48px;--ez-upload__container--background-color:var(--background--medium, #d2dce9);--ez-upload__color--primary:var(--color--primary, #008561);--ez-upload--padding--extra-small:var(--space--extra-small, 3px);--ez-upload--padding--small:var(--space--small, 6px);--ez-upload--padding--medium:var(--space--medium, 12px);--ez-upload--padding--large:var(--space--large, 24px);--ez-upload__border--color:var(--color-strokes, #DCE0E8);--ez-upload--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-upload--text--primary:var(--text-primary, #626e82);--ez-upload--text--secondary:var(--text-secondary, #a2abb9);--ez-upload--font-size:var(--text--medium, 14px);--ez-upload--font-family:var(--font-pattern, Arial);--ez-upload--font-weight:var(--text-weight--large, 500);--ez-upload__btn__cancel-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"8x\" width=\"8px\"><path d=\"M 8,0.8 7.2,0 4,3.2 0.8,0 0,0.8 3.2,4 0,7.2 0.8,8 4,4.8 7.2,8 8,7.2 4.8,4 Z\"/></svg>');--ez-upload__file-icon-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"11x\" width=\"9px\"><path d=\"M 1.2272719,8.4999999 V 2.75 c 0,-1.1045695 1.4652499,-2 3.2727273,-2 1.8074777,0 3.2727281,0.8954305 3.2727281,2 V 8.9999999 C 7.7727273,9.690356 6.8569456,10.25 5.7272719,10.25 4.5975985,10.25 3.6818174,9.690356 3.6818174,8.9999999 V 3.75 c 0,-0.2761425 0.3663125,-0.5 0.8181818,-0.5 0.4518694,0 0.8181818,0.2238575 0.8181818,0.5 V 8.4999999 H 6.5454537 V 3.75 C 6.5454537,3.059644 5.6296725,2.5 4.4999992,2.5 3.3703258,2.5 2.4545446,3.059644 2.4545446,3.75 V 8.9999999 C 2.4545446,10.10457 3.9197945,11 5.7272719,11 7.5347496,11 9,10.10457 9,8.9999999 V 2.75 C 9,1.231217 6.9852809,0 4.4999992,0 2.0147181,5e-7 0,1.231217 0,2.75 v 5.7499999 z\"/></svg>');display:flex;flex-wrap:wrap;position:relative;padding-bottom:16px;font-family:var(--ez-upload--font-family);font-size:var(--ez-upload--font-size);width:var(--ez-upload--width);font-weight:var(--ez-upload--font-weight)}.iu{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:var(--ez-upload--padding--small);width:100%;border-radius:12px;box-sizing:border-box}.iu__container{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;border:2px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.iu__footer{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;padding:0 var(--ez-upload--padding--medium) var(--ez-upload--padding--medium) var(--ez-upload--padding--medium);box-sizing:border-box}.iu__item{display:flex;width:100%;justify-content:flex-start;align-items:center;align-self:center;padding-bottom:var(--ez-upload--padding--extra-small);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iu__item-label{display:flex;max-width:80%;align-self:stretch;align-items:center}.file__name{font-weight:200}.box__content{width:100%;justify-content:center;align-items:center;height:100%;border:1px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.box__container{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:6px;width:100%;border-radius:12px}a:-webkit-any-link{color:#008561;fill:#008561;cursor:pointer;text-decoration:none}progress[value]{display:flex;width:100%;appearance:none;border:1px solid var(--ez-upload__border--color);height:12px;justify-content:flex-start;align-items:center;border-radius:3px;position:relative}progress[value]::-webkit-progress-bar{display:flex;-webkit-appearance:none;width:100%;background-color:rgb(255, 255, 255);border-radius:2px;padding:2px}progress[value]::-webkit-progress-value{display:flex;width:100%;background-color:var(--ez-upload__color--primary)}.text--center{text-align:center}.align--middle{align-self:center;align-items:center}.padding-large{padding:var(--ez-upload--padding--large) 0px}.padding-extra-small{padding:var(--ez-upload--padding--extra-small) 0px}.text{font-family:var(--font-pattern, \"Roboto\");text-shadow:0 0 0 #353535, 0 0 1px transparent}.text--primary{color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.text--secondary{color:var(--ez-upload--text--secondary);text-shadow:var(--ez-upload--text-shadow)}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text--medium{font-size:14px}.text--small{font-size:12px}.btn-cancel{outline:none;border:none;background-color:unset;cursor:pointer}.btn-cancel::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:8px;height:8px;-webkit-mask-image:var(--ez-upload__btn__cancel-image);mask-image:var(--ez-upload__btn__cancel-image)}.iu_header{display:flex;flex-direction:column;width:100%}.iu__label{padding:var(--space--small);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-upload--font-family);font-size:var(--text--extra-small);font-weight:var(--ez-upload--font-weight);color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.iu__file-icon{outline:none;border:none;background-color:unset;cursor:pointer}.iu__file-icon:disabled{cursor:unset}.iu__file-icon::after{content:'';display:flex;background-color:var(--text--primary, #626e82);width:9px;height:11px;-webkit-mask-image:var(--ez-upload__file-icon-image);mask-image:var(--ez-upload__file-icon-image)}.iu__file-icon:disabled::after{background-color:var(--text--disable, #AFB6C0)}.iu__icon-label{justify-content:center;display:flex;cursor:pointer;box-sizing:border-box}.background--disabled{background-color:var(--color--disable-secondary, #F2F5F8)}.text--disabled{color:var(--text--disable, #AFB6C0)}.mouse-pointer--disabled{cursor:unset}.appearanceNone{width:0px;height:0px}.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}@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%}}";
|
|
127491
127392
|
|
|
127492
127393
|
const EzUpload$1 = class extends HTMLElement$1 {
|
|
127493
127394
|
constructor() {
|
|
@@ -127499,6 +127400,7 @@ const EzUpload$1 = class extends HTMLElement$1 {
|
|
|
127499
127400
|
this.ezCancelWaitingChange = createEvent(this, "ezCancelWaitingChange", 7);
|
|
127500
127401
|
this._filePointers = new Map();
|
|
127501
127402
|
this.label = undefined;
|
|
127403
|
+
this.subtitle = undefined;
|
|
127502
127404
|
this.enabled = true;
|
|
127503
127405
|
this.maxFileSize = undefined;
|
|
127504
127406
|
this.maxFiles = undefined;
|
|
@@ -127739,7 +127641,8 @@ const EzUpload$1 = class extends HTMLElement$1 {
|
|
|
127739
127641
|
}
|
|
127740
127642
|
}
|
|
127741
127643
|
render() {
|
|
127742
|
-
return (h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") }, h("div", { class: "iu__container", onClick: () => this.openFilesDialog() }, h("div", { class: "iu_header" }, this.label ? h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null, h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") }, h("button", { class: "iu__file-icon", disabled: !this.enabled }), h("div", { class: this.evalDisabledClass("text text--center text--medium text--primary", "text--disabled") }, this.enabled ? "Arraste e solte ou clique para adicionar arquivos" : "Somente leitura"))
|
|
127644
|
+
return (h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") }, h("div", { class: "iu__container", onClick: () => this.openFilesDialog() }, h("div", { class: "iu_header" }, this.label ? h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null, h("div", { class: "padding-large" }, h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") }, h("button", { class: "iu__file-icon", disabled: !this.enabled }), h("div", { class: this.evalDisabledClass("text text--center text--medium text--primary", "text--disabled") }, this.enabled ? "Arraste e solte ou clique para adicionar arquivos" : "Somente leitura")), this.subtitle &&
|
|
127645
|
+
h("div", { class: this.evalDisabledClass("padding-extra-small text text--center text--small text--secondary", "text--disabled") }, this.subtitle))), this.buildFooter()), h("input", { ref: (el) => this._fileInput = el, onChange: (ev) => this.onFileInputChange(ev), type: "file", multiple: true, class: "appearanceNone" })));
|
|
127743
127646
|
}
|
|
127744
127647
|
buildFooter() {
|
|
127745
127648
|
if (this._filePointers.size === 0) {
|
|
@@ -127873,12 +127776,12 @@ const EzFileItem = /*@__PURE__*/proxyCustomElement(EzFileItem$1, [1,"ez-file-ite
|
|
|
127873
127776
|
const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"asyncSearch":[516,"async-search"],"canShowError":[516,"can-show-error"]}]);
|
|
127874
127777
|
const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16]}]);
|
|
127875
127778
|
const EzFormView = /*@__PURE__*/proxyCustomElement(EzFormView$1, [2,"ez-form-view",{"fields":[16]}]);
|
|
127876
|
-
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"
|
|
127779
|
+
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32]},[[0,"ezSelectionChange","onSelectionChange"]]]);
|
|
127877
127780
|
const EzGuideNavigator = /*@__PURE__*/proxyCustomElement(EzGuideNavigator$1, [1,"ez-guide-navigator",{"open":[1540],"selectedId":[1537,"selected-id"],"items":[16],"tooltipResolver":[16],"filterText":[32]}]);
|
|
127878
127781
|
const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
|
|
127879
127782
|
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
127880
127783
|
const EzLoadingBar = /*@__PURE__*/proxyCustomElement(EzLoadingBar$1, [1,"ez-loading-bar",{"_showLoading":[32]}]);
|
|
127881
|
-
const EzModal = /*@__PURE__*/proxyCustomElement(EzModal$1, [1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]);
|
|
127784
|
+
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"]}]);
|
|
127882
127785
|
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"]}]);
|
|
127883
127786
|
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513]}]);
|
|
127884
127787
|
const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"]}]);
|
|
@@ -127894,7 +127797,7 @@ const EzTextInput = /*@__PURE__*/proxyCustomElement(EzTextInput$1, [1,"ez-text-i
|
|
|
127894
127797
|
const EzTimeInput = /*@__PURE__*/proxyCustomElement(EzTimeInput$1, [1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513]}]);
|
|
127895
127798
|
const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"]}]);
|
|
127896
127799
|
const EzTree = /*@__PURE__*/proxyCustomElement(EzTree$1, [1,"ez-tree",{"items":[1040],"value":[1040],"selectedId":[1537,"selected-id"],"iconResolver":[16],"tooltipResolver":[16],"_tree":[32],"_waintingForLoad":[32]},[[2,"keydown","onKeyDownListener"]]]);
|
|
127897
|
-
const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040]}]);
|
|
127800
|
+
const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"label":[1],"subtitle":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040]}]);
|
|
127898
127801
|
const EzViewStack = /*@__PURE__*/proxyCustomElement(EzViewStack$1, [0,"ez-view-stack"]);
|
|
127899
127802
|
const defineCustomElements = (opts) => {
|
|
127900
127803
|
if (typeof customElements !== 'undefined') {
|