@sankhyalabs/ezui 1.1.118 → 1.1.121
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-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +59 -15
- package/dist/cjs/ez-grid.cjs.entry.js +45 -12
- package/dist/cjs/ez-popover.cjs.entry.js +41 -22
- package/dist/cjs/ez-upload.cjs.entry.js +10 -3
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/test-du.cjs.entry.js +39 -46
- package/dist/collection/components/ez-check/ez-check.css +28 -10
- package/dist/collection/components/ez-form/DataBinder.js +59 -15
- package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +27 -9
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +6 -3
- package/dist/collection/components/ez-grid/ez-grid.js +47 -0
- package/dist/collection/components/ez-popover/ez-popover.css +3 -5
- package/dist/collection/components/ez-popover/ez-popover.js +62 -28
- package/dist/collection/components/ez-upload/ez-upload.js +29 -3
- package/dist/collection/components/test-du/test-du.js +47 -48
- package/dist/custom-elements/index.js +197 -102
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +60 -16
- package/dist/esm/ez-grid.entry.js +45 -12
- package/dist/esm/ez-popover.entry.js +41 -22
- package/dist/esm/ez-upload.entry.js +10 -3
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/test-du.entry.js +40 -47
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-68c509a7.entry.js +1 -0
- package/dist/ezui/p-76b64956.entry.js +1 -0
- package/dist/ezui/p-8793a124.entry.js +1 -0
- package/dist/ezui/p-a6e28794.entry.js +1 -0
- package/dist/ezui/{p-3cd17150.entry.js → p-c86cd69e.entry.js} +1 -1
- package/dist/ezui/p-f8d3c04d.entry.js +1 -0
- package/dist/types/components/ez-form/DataBinder.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +6 -2
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +5 -2
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +8 -0
- package/dist/types/components/ez-popover/ez-popover.d.ts +7 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +5 -0
- package/dist/types/components/test-du/test-du.d.ts +2 -0
- package/dist/types/components.d.ts +21 -1
- package/package.json +1 -1
- package/dist/ezui/p-080045a0.entry.js +0 -1
- package/dist/ezui/p-126d33e2.entry.js +0 -1
- package/dist/ezui/p-1339fde7.entry.js +0 -1
- package/dist/ezui/p-73d3f767.entry.js +0 -1
- package/dist/ezui/p-f3f9c7e6.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLElement as HTMLElement$1, createEvent, h, forceUpdate, Host, getAssetPath, setAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
-
import { FloatingManager, DateUtils, TimeFormatter, UserInterface,
|
|
3
|
+
import { FloatingManager, DateUtils, TimeFormatter, UserInterface, Action, ApplicationContext, DataUnitAction, DataUnit, DataType, StringUtils, NumberUtils, MaskFormatter } from '@sankhyalabs/core';
|
|
4
4
|
import { UserInterface as UserInterface$1, SortMode } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
5
5
|
|
|
6
6
|
const ezActionChipCss = ":host{--ez-action-chip--height:36px;--ez-action-chip--border-radius:var(--border--radius-large, 24px);--ez-action-chip__border:1px solid;--ez-action-chip__border-color-strokes:var(--color--strokes, #DCE0E8);--ez-action-chip--font-size:var(--text--medium, 14px);--ez-action-chip--font-family:var(--font-pattern, Arial);--ez-action-chip--font-weight:var(--text-weight--large, 500);--ez-action-chip__label--title--primary:var(--title--primary, #919191);--ez-action-chip__label-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-action-chip__label__default--background-color--hover:var(--color--primary-200, #f2faf8);--ez-action-chip__label__default--border-color--hover:var(--color--primary-600, #007a5a)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;background-color:#FFFFFF;align-items:center;align-self:center;cursor:pointer;color:var(--ez-action-chip__label--title--primary);fill:var(--ez-action-chip__label--title--primary);border:var(--ez-action-chip__border);border-radius:var(--ez-action-chip--border-radius);border-color:var(--ez-action-chip__border-color-strokes);padding-right:var(--space--medium, 12px);padding-left:var(--space--medium, 12px)}.label__container:hover{border-color:var(--ez-action-chip__label__default--border-color--hover);background-color:var(--ez-action-chip__label__default--background-color--hover)}label{display:flex;align-items:center;font-weight:var(--text-weight--large, 600);cursor:pointer;height:var(--ez-action-chip--height);font-family:var(--ez-action-chip--font-family);font-size:var(--ez-action-chip--font-size)}";
|
|
@@ -336,7 +336,7 @@ let EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
336
336
|
static get style() { return ezCalendarCss; }
|
|
337
337
|
};
|
|
338
338
|
|
|
339
|
-
const ezCheckCss = ":host{--ez-check--box--width:18px;--ez-check--box--height:18px;--ez-check--width:calc(var(--ez-check--box--width) + 14px);--ez-check--height:calc(var(--ez-check--box--width) + 14px);--ez-check--border-radius:var(--border--radius-small);--ez-check--checked--background-color:var(--color--primary-200);--ez-check--focus--background-color:var(--color--strokes, #FFFFFF);--ez-check--hover--background-color:var(--background--medium);--ez-check--checked--disabled--background-color:var(--color--disable-secondary);--ez-check--border:var(--border--medium) var(--title--primary);--ez-check--disabled--border:var(--border--medium) var(--color--strokes);--ez-check--checked--border:var(--border--medium) var(--color--primary);--ez-check--checked--hover--background-color:var(--color--primary-200);--ez-check--checked--focus--background-color:var(--color--primary-300, #FFFFFF);--ez-check--check--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"7\" viewBox=\"0 0 8 7\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z\"/></svg>');--ez-check--check--background-color:var(--color--primary);--ez-check--check--disabled--background-color:var(--color--strokes);--ez-switch--slider--width:34px;--ez-switch--slider--height:14px;--ez-switch--pin--width:
|
|
339
|
+
const ezCheckCss = ":host{--ez-check--box--width:18px;--ez-check--box--height:18px;--ez-check--width:calc(var(--ez-check--box--width) + 14px);--ez-check--height:calc(var(--ez-check--box--width) + 14px);--ez-check--border-radius:var(--border--radius-small);--ez-check--checked--background-color:var(--color--primary-200);--ez-check--focus--background-color:var(--color--strokes, #FFFFFF);--ez-check--hover--background-color:var(--background--medium);--ez-check--checked--disabled--background-color:var(--color--disable-secondary);--ez-check--border:var(--border--medium) var(--title--primary);--ez-check--disabled--border:var(--border--medium) var(--color--strokes);--ez-check--checked--border:var(--border--medium) var(--color--primary);--ez-check--checked--hover--background-color:var(--color--primary-200);--ez-check--checked--focus--background-color:var(--color--primary-300, #FFFFFF);--ez-check--check--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"7\" viewBox=\"0 0 8 7\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z\"/></svg>');--ez-check--check--background-color:var(--color--primary);--ez-check--check--disabled--background-color:var(--color--strokes);--ez-switch--slider--width:34px;--ez-switch--slider--height:14px;--ez-switch--pin--width:19px;--ez-switch--pin--height:19px;--ez-switch--focus--width:32px;--ez-switch--focus--height:32px;--ez-switch--background-color:var(--color--strokes);--ez-switch--disabled--background-color:var(--color--disable-secondary);--ez-switch--disabled--checked--background-color:var(--color--primary-300);--ez-switch--checked--background-color:var(--color--primary);--ez-switch--pin--background-color:var(--background--xlight);--ez-switch--pin--disabled--background-color:var(--color--disable-primary);--ez-switch--pin--checked--background-color:var(--background--xlight);--ez-switch--pin--checked--disabled--background-color:#E8F7F4;--ez-switch--pin--focus--background-color:var(--text--disable);--ez-switch--pin--checked--focus--background-color:var(--color--primary);--ez-switch--pin--border-color:var(--text--primary);--ez-switch--pin--disabled--border-color:var(--text--secondary);--ez-check--label--font-size:var(--text--medium, 14px);--ez-check--label--font-family:var(--font-pattern, Arial);--ez-check--label--color:var(--title--primary, #000);--ez-check--label--disabled--color:var(--text--disable, #AFB6C0);display:flex;width:100%;align-items:center;margin:0}input.regularMode{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;-webkit-appearance:none;appearance:none;cursor:pointer;border-radius:50%;position:relative;width:var(--ez-check--width);height:var(--ez-check--height)}input.regularMode:enabled:hover{background-color:var(--ez-check--hover--background-color)}input.regularMode:enabled:focus{outline:none;background-color:var(--ez-check--focus--background-color)}input.regularMode:disabled{cursor:auto;background:none}input.regularMode::before{box-sizing:border-box;content:\"\";display:block;width:var(--ez-check--box--width);height:var(--ez-check--box--height);border-radius:var(--ez-check--border-radius);border:var(--ez-check--border)}input.regularMode:disabled::before{border:var(--ez-check--disabled--border)}input.regularMode:checked:enabled:hover{background-color:var(--ez-check--checked--hover--background-color)}input.regularMode:checked:enabled:focus{background-color:var(--ez-check--checked--focus--background-color)}input.regularMode:checked::before{border:var(--ez-check--checked--border);background-color:var(--ez-check--checked--background-color)}input.regularMode:checked:disabled:before{border:var(--ez-check--disabled--border);background-color:var(--ez-check--checked--disabled--background-color)}input.regularMode:checked::after{display:flex;position:absolute;content:\"\";background-color:var(--ez-check--check--background-color);width:8px;height:7px;-webkit-mask-image:var(--ez-check--check--image);mask-image:var(--ez-check--check--image)}input.regularMode:checked:disabled::after{background-color:var(--ez-check--check--disabled--background-color)}input.switchMode{flex-shrink:0;-webkit-appearance:none;appearance:none;position:relative;outline:none;cursor:pointer;border-radius:20px;border:var(--border--small, 1px solid) var(--ez-switch--pin--border-color, #626e82);transition:background-color var(--transition);width:var(--ez-switch--slider--width);height:var(--ez-switch--slider--height);background-color:var(--ez-switch--background-color)}input.switchMode:disabled{background-color:var(--ez-switch--disabled--background-color);border:var(--border--small, 1px solid) var(--ez-switch--pin--disabled--border-color, #a2abb9)}input.switchMode:checked:disabled{background-color:var(--ez-switch--disabled--checked--background-color)}input.switchMode::after{content:\"\";display:block;position:absolute;box-shadow:var(--shadow);transition:transform var(--transition);transition:background-color var(--transition);transition:border-color var(--transition);transform:translateX(-2px) translateY(-4px);border-radius:50%;border:var(--border--small, 1px solid) var(--ez-switch--pin--border-color, #626e82);width:var(--ez-switch--pin--width);height:var(--ez-switch--pin--height);background-color:var(--ez-switch--pin--background-color)}input.switchMode:disabled::after{background-color:var(--ez-switch--pin--disabled--background-color);border:var(--border--small, 1px solid) var(--ez-switch--pin--disabled--border-color, #a2abb9)}input.switchMode:checked{transition:background-color var(--transition), border var(--transition);background-color:var(--ez-switch--checked--background-color);border:var(--border--small, 1px solid) var(--color--primary, #008561)}input.switchMode::before{display:block;content:\"\";display:block;position:absolute;border-radius:50%;opacity:0;width:var(--ez-switch--focus--width);height:var(--ez-switch--focus--height);top:calc((var(--ez-switch--slider--height) - var(--ez-switch--focus--height)) / 2);left:calc((var(--ez-switch--pin--width) - var(--ez-switch--focus--width) - 2px) / 2);background-color:var(--ez-switch--pin--focus--background-color)}input.switchMode:focus::before{opacity:0.24;transition:opacity var(--transition)}input.switchMode:checked:focus::before{background-color:var(--ez-switch--pin--checked--focus--background-color);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width) + 2px))}input.switchMode:checked::after{transition:transform var(--transition);transition:background-color var(--transition);transition:border-color var(--transition);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width))) translateY(-4px);box-shadow:var(--shadow);background-color:var(--ez-switch--pin--checked--background-color);border:var(--border--small, 1px solid) var(--color--primary, #008561)}input.switchMode:checked:disabled::after{background-color:var(--ez-switch--pin--checked--disabled--background-color)}.label{flex-shrink:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-check--label--color);text-shadow:var(--text-shadow);font-size:var(--ez-check--label--font-size);font-family:var(--ez-check--label--font-family);cursor:default;padding-left:var(--space--small)}.label--disabled{color:var(--ez-check--label--disabled--color)}";
|
|
340
340
|
|
|
341
341
|
let EzCheck$1 = class extends HTMLElement$1 {
|
|
342
342
|
constructor() {
|
|
@@ -1179,7 +1179,7 @@ const buildSearch = ({ name, label, readOnly, required }) => {
|
|
|
1179
1179
|
|
|
1180
1180
|
const buildFile = ({ name, label, readOnly }) => {
|
|
1181
1181
|
return (h("div", { class: "col col--sd-12 padding-horizontal--small" },
|
|
1182
|
-
h("ez-upload", { enabled: !readOnly, label: label,
|
|
1182
|
+
h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
1183
1183
|
};
|
|
1184
1184
|
|
|
1185
1185
|
const buildDate = ({ name, label, readOnly }) => {
|
|
@@ -1733,30 +1733,56 @@ class DataBinder {
|
|
|
1733
1733
|
constructor(dataUnit) {
|
|
1734
1734
|
this._fields = new Map();
|
|
1735
1735
|
this._dataUnit = dataUnit;
|
|
1736
|
-
this._dataUnit.subscribe(
|
|
1736
|
+
this._dataUnit.subscribe(action => {
|
|
1737
1737
|
var _a;
|
|
1738
|
-
(
|
|
1739
|
-
|
|
1740
|
-
|
|
1738
|
+
switch (action.type) {
|
|
1739
|
+
case Action.DATA_LOADED:
|
|
1740
|
+
case Action.DATA_SAVED:
|
|
1741
|
+
case Action.RECORDS_REMOVED:
|
|
1742
|
+
case Action.RECORDS_ADDED:
|
|
1743
|
+
case Action.RECORDS_COPIED:
|
|
1744
|
+
case Action.DATA_CHANGED:
|
|
1745
|
+
case Action.EDITION_CANCELED:
|
|
1746
|
+
case Action.CHANGE_UNDONE:
|
|
1747
|
+
case Action.CHANGE_REDONE:
|
|
1748
|
+
case Action.SELECTION_CHANGED:
|
|
1749
|
+
case Action.NEXT_SELECTED:
|
|
1750
|
+
case Action.PREVIOUS_SELECTED:
|
|
1751
|
+
(_a = this._fields) === null || _a === void 0 ? void 0 : _a.forEach(field => {
|
|
1752
|
+
this.updateValue(field.fieldName, field.field);
|
|
1753
|
+
});
|
|
1754
|
+
break;
|
|
1755
|
+
}
|
|
1741
1756
|
});
|
|
1742
1757
|
}
|
|
1743
1758
|
bind(fields) {
|
|
1744
1759
|
fields.forEach(fieldElement => {
|
|
1745
1760
|
const fieldName = fieldElement.dataset.fieldName;
|
|
1746
1761
|
this.updateBind(fieldName, fieldElement);
|
|
1747
|
-
this.updateValue(fieldName, fieldElement);
|
|
1748
1762
|
});
|
|
1749
1763
|
}
|
|
1750
1764
|
updateValue(fieldName, field) {
|
|
1751
|
-
field["value"]
|
|
1765
|
+
const oldValue = field["value"];
|
|
1766
|
+
const newValue = this._dataUnit.getFieldValue(fieldName);
|
|
1767
|
+
if (oldValue != newValue) {
|
|
1768
|
+
field["value"] = newValue;
|
|
1769
|
+
}
|
|
1752
1770
|
}
|
|
1753
1771
|
updateBind(fieldName, field) {
|
|
1754
1772
|
const oldBind = this._fields.get(fieldName);
|
|
1755
1773
|
if (oldBind) {
|
|
1756
1774
|
oldBind.destroy();
|
|
1757
1775
|
}
|
|
1758
|
-
|
|
1776
|
+
field["value"] = this._dataUnit.getFieldValue(fieldName);
|
|
1777
|
+
this._fields.set(fieldName, Bind.create(fieldName, field, (fieldName, waitingChange) => this.changeStarted(fieldName, waitingChange), (fieldName, newValue) => this.setFieldValue(fieldName, newValue)));
|
|
1759
1778
|
this.bindSearchOptionsLoader(fieldName, field);
|
|
1779
|
+
this.applyEzUploadContext(fieldName, field);
|
|
1780
|
+
}
|
|
1781
|
+
changeStarted(fieldName, waitingChange) {
|
|
1782
|
+
if (this._dataUnit.records.length === 0) {
|
|
1783
|
+
this._dataUnit.addRecord();
|
|
1784
|
+
}
|
|
1785
|
+
this._dataUnit.startChange(fieldName, waitingChange);
|
|
1760
1786
|
}
|
|
1761
1787
|
setFieldValue(fieldName, newValue) {
|
|
1762
1788
|
if (this._dataUnit.records.length === 0) {
|
|
@@ -1774,19 +1800,37 @@ class DataBinder {
|
|
|
1774
1800
|
}
|
|
1775
1801
|
}
|
|
1776
1802
|
}
|
|
1803
|
+
applyEzUploadContext(fieldName, field) {
|
|
1804
|
+
var _a, _b;
|
|
1805
|
+
if (field.nodeName === "EZ-UPLOAD") {
|
|
1806
|
+
field["urlUpload"] = ApplicationContext.getContextValue("__EZUI__UPLOAD__ADD__URL__");
|
|
1807
|
+
field["urlDelete"] = ApplicationContext.getContextValue("__EZUI__UPLOAD__DEL__URL__");
|
|
1808
|
+
const descriptor = this._dataUnit.getField(fieldName);
|
|
1809
|
+
const destination = (_a = descriptor.properties) === null || _a === void 0 ? void 0 : _a.DESTINATION;
|
|
1810
|
+
if (destination) {
|
|
1811
|
+
field["requestHeaders"] = { XTRAINF: `{"destination": "${destination}"}` };
|
|
1812
|
+
}
|
|
1813
|
+
field["maxFiles"] = ((_b = descriptor.properties) === null || _b === void 0 ? void 0 : _b.MAX_FILES) || 0;
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1777
1816
|
}
|
|
1778
1817
|
class Bind {
|
|
1818
|
+
constructor() {
|
|
1819
|
+
this.startChangeEventName = "ezStartChange";
|
|
1820
|
+
this.changeEventName = "ezChange";
|
|
1821
|
+
}
|
|
1779
1822
|
destroy() {
|
|
1780
|
-
this.field.removeEventListener(this.
|
|
1823
|
+
this.field.removeEventListener(this.startChangeEventName, this.startChangeListener);
|
|
1824
|
+
this.field.removeEventListener(this.changeEventName, this.changeListener);
|
|
1781
1825
|
}
|
|
1782
|
-
static create(fieldName, field,
|
|
1826
|
+
static create(fieldName, field, startChangeCallback, changeCallback) {
|
|
1783
1827
|
const b = new Bind();
|
|
1784
|
-
b.fieldName = fieldName;
|
|
1785
1828
|
b.field = field;
|
|
1786
|
-
|
|
1787
|
-
b.
|
|
1788
|
-
b.
|
|
1789
|
-
b.
|
|
1829
|
+
b.fieldName = fieldName;
|
|
1830
|
+
b.startChangeListener = (evt) => { startChangeCallback(fieldName, evt.detail); };
|
|
1831
|
+
b.field.addEventListener(b.startChangeEventName, b.startChangeListener);
|
|
1832
|
+
b.changeListener = (evt) => { changeCallback(fieldName, evt.detail); };
|
|
1833
|
+
b.field.addEventListener(b.changeEventName, b.changeListener);
|
|
1790
1834
|
return b;
|
|
1791
1835
|
}
|
|
1792
1836
|
}
|
|
@@ -111978,15 +112022,15 @@ class DataSource {
|
|
|
111978
112022
|
}
|
|
111979
112023
|
}
|
|
111980
112024
|
else {
|
|
111981
|
-
this.loadData()
|
|
112025
|
+
this.loadData({ limit: params.api.paginationGetPageSize(), offset: params.request.startRow, quickFilter: this._quickFilterTerm })
|
|
111982
112026
|
.then(data => params.success(data))
|
|
111983
112027
|
.catch(() => params.fail());
|
|
111984
112028
|
}
|
|
111985
112029
|
}
|
|
111986
|
-
loadData() {
|
|
112030
|
+
loadData(page) {
|
|
111987
112031
|
return new Promise((resolve, reject) => {
|
|
111988
112032
|
if (this._dataUnit) {
|
|
111989
|
-
this._dataUnit.loadData().then(
|
|
112033
|
+
this._dataUnit.loadData(page).then(pageRes => resolve({ rowData: this._dataUnit.records, rowCount: pageRes.total }));
|
|
111990
112034
|
}
|
|
111991
112035
|
else {
|
|
111992
112036
|
fetch(this._serverURL)
|
|
@@ -111997,6 +112041,9 @@ class DataSource {
|
|
|
111997
112041
|
}
|
|
111998
112042
|
});
|
|
111999
112043
|
}
|
|
112044
|
+
setQuickFilter(term) {
|
|
112045
|
+
this._quickFilterTerm = term;
|
|
112046
|
+
}
|
|
112000
112047
|
}
|
|
112001
112048
|
|
|
112002
112049
|
class AgGridController {
|
|
@@ -112031,11 +112078,13 @@ class AgGridController {
|
|
|
112031
112078
|
this._serverURL = options.serverURL;
|
|
112032
112079
|
this._dataUnit = options.dataUnit;
|
|
112033
112080
|
this._dataUnit.sortingProvider = this;
|
|
112081
|
+
this._dataSource = new DataSource(this._dataUnit, this._serverURL);
|
|
112034
112082
|
this._gridOptions = {
|
|
112035
112083
|
localeText: gridTerms,
|
|
112036
112084
|
rowModelType: "serverSide",
|
|
112085
|
+
serverSideStoreType: "partial",
|
|
112037
112086
|
rowSelection: this._multipleSelection ? "multiple" : "single",
|
|
112038
|
-
serverSideDatasource:
|
|
112087
|
+
serverSideDatasource: this._dataSource,
|
|
112039
112088
|
getRowNodeId: (params) => typeof params === "string" ? params : params[this._idAttribName],
|
|
112040
112089
|
getMainMenuItems: (params) => {
|
|
112041
112090
|
const column = params.column;
|
|
@@ -112046,10 +112095,13 @@ class AgGridController {
|
|
|
112046
112095
|
}));
|
|
112047
112096
|
return items;
|
|
112048
112097
|
},
|
|
112049
|
-
|
|
112050
|
-
|
|
112051
|
-
|
|
112052
|
-
|
|
112098
|
+
getRowHeight: () => {
|
|
112099
|
+
//FIXME: Existe um bug no PartialStore.prototype.destroyAllBlocks do ag-grid, pois
|
|
112100
|
+
//apesar de destruir os blocos, mantém a variável "blockHeights" com o tamanho antigo
|
|
112101
|
+
//dos blocos, então, quando removemos uma linha, a altura do bloco não é recalculada.
|
|
112102
|
+
//Descobri que setando manualmente a altura das linhas, apesar do bloco ficar com
|
|
112103
|
+
//tamanho errado, isso afeta menos o componente.
|
|
112104
|
+
return 25;
|
|
112053
112105
|
}
|
|
112054
112106
|
};
|
|
112055
112107
|
this.setOptionsEvents(this._gridOptions);
|
|
@@ -112072,6 +112124,11 @@ class AgGridController {
|
|
|
112072
112124
|
opt.onSelectionChanged = e => this.onSelectionChange(e);
|
|
112073
112125
|
opt.onPaginationChanged = () => this.onPaginationChange();
|
|
112074
112126
|
opt.onRowDoubleClicked = evt => this.onRowDoubleClick(evt);
|
|
112127
|
+
opt.onViewportChanged = () => {
|
|
112128
|
+
if (this._dataUnit) {
|
|
112129
|
+
this.selectRows(this._dataUnit.getSelection());
|
|
112130
|
+
}
|
|
112131
|
+
};
|
|
112075
112132
|
}
|
|
112076
112133
|
setOptionsPagination(opt) {
|
|
112077
112134
|
opt.pagination = (this._pageSize > -1);
|
|
@@ -112089,11 +112146,11 @@ class AgGridController {
|
|
|
112089
112146
|
}
|
|
112090
112147
|
this._gridOptions.api.setRowData(data);
|
|
112091
112148
|
}
|
|
112092
|
-
addRows(
|
|
112149
|
+
addRows() {
|
|
112093
112150
|
if (this._grid === undefined) {
|
|
112094
112151
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
112095
112152
|
}
|
|
112096
|
-
this._gridOptions.api.
|
|
112153
|
+
this._gridOptions.api.refreshServerSideStore({});
|
|
112097
112154
|
}
|
|
112098
112155
|
selectRows(rowIds) {
|
|
112099
112156
|
if (this._grid === undefined) {
|
|
@@ -112108,11 +112165,11 @@ class AgGridController {
|
|
|
112108
112165
|
});
|
|
112109
112166
|
}
|
|
112110
112167
|
}
|
|
112111
|
-
removeRows(
|
|
112168
|
+
removeRows() {
|
|
112112
112169
|
if (this._grid === undefined) {
|
|
112113
112170
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
112114
112171
|
}
|
|
112115
|
-
this._gridOptions.api.
|
|
112172
|
+
this._gridOptions.api.refreshServerSideStore({});
|
|
112116
112173
|
}
|
|
112117
112174
|
changeValues(changes, rowIds) {
|
|
112118
112175
|
if (this._grid === undefined) {
|
|
@@ -112229,6 +112286,14 @@ class AgGridController {
|
|
|
112229
112286
|
previousPage() {
|
|
112230
112287
|
this._gridOptions.api.paginationGoToPreviousPage();
|
|
112231
112288
|
}
|
|
112289
|
+
goToPage(page) {
|
|
112290
|
+
this._gridOptions.api.paginationGoToPage(page);
|
|
112291
|
+
}
|
|
112292
|
+
quickFilter(term) {
|
|
112293
|
+
this._dataSource.setQuickFilter(term);
|
|
112294
|
+
this.goToPage(0);
|
|
112295
|
+
this._gridOptions.api.refreshServerSideStore({ purge: true });
|
|
112296
|
+
}
|
|
112232
112297
|
buildColDef(source) {
|
|
112233
112298
|
return {
|
|
112234
112299
|
headerName: source.label,
|
|
@@ -112443,6 +112508,18 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
112443
112508
|
async getColumns() {
|
|
112444
112509
|
return Promise.resolve(this._gridController.getColumnsDef());
|
|
112445
112510
|
}
|
|
112511
|
+
/**
|
|
112512
|
+
* Método para recarregar pagina atual da grid.
|
|
112513
|
+
*/
|
|
112514
|
+
async refresh() {
|
|
112515
|
+
this._gridController.refresh();
|
|
112516
|
+
}
|
|
112517
|
+
/**
|
|
112518
|
+
* Método para fazer um filtro rápido na grid.
|
|
112519
|
+
*/
|
|
112520
|
+
async quickFilter(term) {
|
|
112521
|
+
this._gridController.quickFilter(term);
|
|
112522
|
+
}
|
|
112446
112523
|
componentWillLoad() {
|
|
112447
112524
|
if (this.dataUnit) {
|
|
112448
112525
|
this._dataUnitBridge = new DataUnitBridge(this._gridController, this.dataUnit);
|
|
@@ -113274,7 +113351,7 @@ let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
113274
113351
|
static get style() { return ezNumberInputCss; }
|
|
113275
113352
|
};
|
|
113276
113353
|
|
|
113277
|
-
const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--more-visible, 1);position:relative;display:flex;user-select:none
|
|
113354
|
+
const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--more-visible, 1);position:relative;display:flex;user-select:none}.popover__box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:100%}";
|
|
113278
113355
|
|
|
113279
113356
|
let EzPopover$1 = class extends HTMLElement$1 {
|
|
113280
113357
|
constructor() {
|
|
@@ -113309,6 +113386,41 @@ let EzPopover$1 = class extends HTMLElement$1 {
|
|
|
113309
113386
|
* Opções: "100% e "fit-content" (default)
|
|
113310
113387
|
*/
|
|
113311
113388
|
this.boxWidth = "fit-content";
|
|
113389
|
+
this.innerClickTest = (_popOvercontainer, node, eventOrigin) => {
|
|
113390
|
+
const innerContainers = [_popOvercontainer];
|
|
113391
|
+
if (this.innerElement) {
|
|
113392
|
+
if (typeof (this.innerElement) == "string") {
|
|
113393
|
+
innerContainers.push(document.querySelector(`#${this.innerElement}`));
|
|
113394
|
+
}
|
|
113395
|
+
else {
|
|
113396
|
+
this.innerElement.forEach(comp => {
|
|
113397
|
+
innerContainers.push(document.querySelector(`#${comp}`));
|
|
113398
|
+
});
|
|
113399
|
+
}
|
|
113400
|
+
}
|
|
113401
|
+
for (var i = 0; i < innerContainers.length; i++) {
|
|
113402
|
+
let _container = innerContainers[i];
|
|
113403
|
+
if (_container != undefined) {
|
|
113404
|
+
if (_container.contains(node)) {
|
|
113405
|
+
return true;
|
|
113406
|
+
}
|
|
113407
|
+
if (eventOrigin && "nodeType" in (eventOrigin === null || eventOrigin === void 0 ? void 0 : eventOrigin.target) && _container.contains(eventOrigin.target)) {
|
|
113408
|
+
return true;
|
|
113409
|
+
}
|
|
113410
|
+
if (_container.shadowRoot && _container.shadowRoot.contains(node)) {
|
|
113411
|
+
return true;
|
|
113412
|
+
}
|
|
113413
|
+
_container = this._host;
|
|
113414
|
+
if (!_container.lastElementChild.shadowRoot ? _container.contains(node) : _container.lastElementChild.shadowRoot.contains(node)) {
|
|
113415
|
+
return true;
|
|
113416
|
+
}
|
|
113417
|
+
}
|
|
113418
|
+
}
|
|
113419
|
+
return false;
|
|
113420
|
+
};
|
|
113421
|
+
this.backClickListener = () => {
|
|
113422
|
+
this.ezVisibilityChange.emit(false);
|
|
113423
|
+
};
|
|
113312
113424
|
}
|
|
113313
113425
|
dispatchVisibilityChange(newValue, oldValue) {
|
|
113314
113426
|
if (newValue != oldValue) {
|
|
@@ -113325,16 +113437,8 @@ let EzPopover$1 = class extends HTMLElement$1 {
|
|
|
113325
113437
|
left,
|
|
113326
113438
|
bottom,
|
|
113327
113439
|
right,
|
|
113328
|
-
innerClickTest:
|
|
113329
|
-
|
|
113330
|
-
return true;
|
|
113331
|
-
}
|
|
113332
|
-
if (_container.shadowRoot && _container.shadowRoot.contains(node)) {
|
|
113333
|
-
return true;
|
|
113334
|
-
}
|
|
113335
|
-
_container = this._host;
|
|
113336
|
-
return !_container.lastElementChild.shadowRoot ? _container.contains(node) : _container.lastElementChild.shadowRoot.contains(node);
|
|
113337
|
-
}
|
|
113440
|
+
innerClickTest: this.innerClickTest,
|
|
113441
|
+
backClickListener: this.backClickListener
|
|
113338
113442
|
};
|
|
113339
113443
|
FloatingManager.updateFloatPosition(this._box, this._container, floatingOptions);
|
|
113340
113444
|
}
|
|
@@ -113348,16 +113452,8 @@ let EzPopover$1 = class extends HTMLElement$1 {
|
|
|
113348
113452
|
left,
|
|
113349
113453
|
bottom,
|
|
113350
113454
|
right,
|
|
113351
|
-
innerClickTest:
|
|
113352
|
-
|
|
113353
|
-
return true;
|
|
113354
|
-
}
|
|
113355
|
-
if (_container.shadowRoot && _container.shadowRoot.contains(node)) {
|
|
113356
|
-
return true;
|
|
113357
|
-
}
|
|
113358
|
-
_container = this._host;
|
|
113359
|
-
return !_container.lastElementChild.shadowRoot ? _container.contains(node) : _container.lastElementChild.shadowRoot.contains(node);
|
|
113360
|
-
}
|
|
113455
|
+
innerClickTest: this.innerClickTest,
|
|
113456
|
+
backClickListener: this.backClickListener
|
|
113361
113457
|
};
|
|
113362
113458
|
this._floatingID = FloatingManager.float(this._box, this._container, floatingOptions);
|
|
113363
113459
|
this.opened = true;
|
|
@@ -113379,7 +113475,7 @@ let EzPopover$1 = class extends HTMLElement$1 {
|
|
|
113379
113475
|
}
|
|
113380
113476
|
}
|
|
113381
113477
|
render() {
|
|
113382
|
-
return (h(Host, null, h("section", { ref: el => this._container = el }, h("div", { class: `
|
|
113478
|
+
return (h(Host, null, h("section", { ref: el => this._container = el }, h("div", { class: `popover__box ${this.boxWidth === "fit-content" ? "popover__box--fit-content" : "popover__box--full-width"}`, ref: el => this._box = el }, h("slot", null)))));
|
|
113383
113479
|
}
|
|
113384
113480
|
get _host() { return this; }
|
|
113385
113481
|
static get watchers() { return {
|
|
@@ -114333,6 +114429,7 @@ let EzUpload$1 = class extends HTMLElement$1 {
|
|
|
114333
114429
|
this.__registerHost();
|
|
114334
114430
|
this.__attachShadow();
|
|
114335
114431
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
114432
|
+
this.ezStartChange = createEvent(this, "ezStartChange", 7);
|
|
114336
114433
|
this._filePointers = new Map();
|
|
114337
114434
|
/**
|
|
114338
114435
|
* Deixa o campo disponível ou não para digitação.
|
|
@@ -114340,6 +114437,9 @@ let EzUpload$1 = class extends HTMLElement$1 {
|
|
|
114340
114437
|
this.enabled = true;
|
|
114341
114438
|
}
|
|
114342
114439
|
changeValue(newValue) {
|
|
114440
|
+
//Observamos o mundo externo, se um novo valor foi atribuído,
|
|
114441
|
+
//precisamos cancelar a alteração anterior, isso envolve, percorrer
|
|
114442
|
+
//a lista de ponteiros e cancelar todos os uploads em andamento.
|
|
114343
114443
|
if (newValue !== this._updatingValue) {
|
|
114344
114444
|
this._filePointers.forEach(f => {
|
|
114345
114445
|
if (this.isRemoteFile(f)) {
|
|
@@ -114348,8 +114448,8 @@ let EzUpload$1 = class extends HTMLElement$1 {
|
|
|
114348
114448
|
});
|
|
114349
114449
|
this._filePointers = new Map();
|
|
114350
114450
|
this.updateFilePointers();
|
|
114451
|
+
this._updatingValue = undefined;
|
|
114351
114452
|
}
|
|
114352
|
-
this._updatingValue = undefined;
|
|
114353
114453
|
}
|
|
114354
114454
|
updateFilePointers() {
|
|
114355
114455
|
if (this.value) {
|
|
@@ -114419,6 +114519,7 @@ let EzUpload$1 = class extends HTMLElement$1 {
|
|
|
114419
114519
|
}
|
|
114420
114520
|
async doAddFile(file) {
|
|
114421
114521
|
if (this.validateFile(file)) {
|
|
114522
|
+
this.ezStartChange.emit({ waitmessage: "Há arquivos sendo enviados. Por favor aguarde a conclusão ou cancele o envio." });
|
|
114422
114523
|
const uploadingFile = new RemoteFile(file);
|
|
114423
114524
|
this._filePointers.set(file.name, uploadingFile);
|
|
114424
114525
|
uploadingFile.upload(this.urlUpload, this._requestHeaders, (file) => this.updateFeedback(file))
|
|
@@ -114438,8 +114539,10 @@ let EzUpload$1 = class extends HTMLElement$1 {
|
|
|
114438
114539
|
this._updatingValue.push(f);
|
|
114439
114540
|
}
|
|
114440
114541
|
});
|
|
114441
|
-
this.
|
|
114442
|
-
|
|
114542
|
+
if (this._filePointers.size === this._updatingValue.length) {
|
|
114543
|
+
this.value = this._updatingValue;
|
|
114544
|
+
this.ezChange.emit(this.value);
|
|
114545
|
+
}
|
|
114443
114546
|
}
|
|
114444
114547
|
buildProgressId(uploading) {
|
|
114445
114548
|
let sanitizedName = uploading.name.replace(/[^a-z0-9_]/gi, "_");
|
|
@@ -114858,65 +114961,57 @@ let TestDu$1 = class extends HTMLElement$1 {
|
|
|
114858
114961
|
super();
|
|
114859
114962
|
this.__registerHost();
|
|
114860
114963
|
}
|
|
114861
|
-
/*private _ezButton// : HTMLEzButton;
|
|
114862
|
-
private _ezComboBox// : HTMLEzComboBox;
|
|
114863
|
-
private _ezDateInput// : HTMLEzDateInput;
|
|
114864
|
-
private _ezDateTimeInput// : HTMLEzDateTimeInput;
|
|
114865
|
-
private _ezNumberInput// : HTMLEzNumberInput
|
|
114866
|
-
private _ezSearch// : HTMLEzSearch
|
|
114867
|
-
private _ezUpload// : HTMLEzUpload
|
|
114868
|
-
private _ezFilterInput// : HTMLEzFilterInput*/
|
|
114869
114964
|
componentWillLoad() {
|
|
114965
|
+
ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", "http://localhost:8080/mge/ez.uploading");
|
|
114870
114966
|
this.dataUnit = new DataUnit("testes_com_formulario");
|
|
114967
|
+
this.dataUnit.subscribe(() => this.isDirty = this.dataUnit.isDirty());
|
|
114871
114968
|
this.dataUnit.metadata = {
|
|
114872
114969
|
name: "dd://br.com.sankhya.fin.cad.movimentacaoFinanceira/Financeiro",
|
|
114873
114970
|
label: "Parceiro",
|
|
114874
114971
|
fields: [
|
|
114875
114972
|
{
|
|
114876
|
-
name: "
|
|
114877
|
-
label: "
|
|
114878
|
-
dataType: DataType.
|
|
114879
|
-
userInterface: UserInterface.
|
|
114880
|
-
|
|
114881
|
-
|
|
114882
|
-
|
|
114883
|
-
|
|
114884
|
-
name: "RECDESP",
|
|
114885
|
-
label: "Receita/Despesa",
|
|
114886
|
-
dataType: DataType.TEXT,
|
|
114887
|
-
userInterface: UserInterface.OPTIONSELECTOR,
|
|
114888
|
-
required: true,
|
|
114889
|
-
properties: { options: `{"-1": "Despesa", "1": "Receita"}` }
|
|
114890
|
-
},
|
|
114891
|
-
{
|
|
114892
|
-
name: "P",
|
|
114893
|
-
label: "pera",
|
|
114894
|
-
dataType: DataType.TEXT,
|
|
114895
|
-
userInterface: UserInterface.OPTIONSELECTOR,
|
|
114896
|
-
properties: { options: `{"M": "Madura", "V": "Verde", "P": "Passada"}` }
|
|
114897
|
-
},
|
|
114898
|
-
{
|
|
114899
|
-
name: "ME",
|
|
114900
|
-
label: "ME",
|
|
114901
|
-
dataType: DataType.NUMBER,
|
|
114902
|
-
userInterface: UserInterface.DECIMALNUMBER,
|
|
114903
|
-
properties: { precision: 4, prettyPrecision: 1 }
|
|
114973
|
+
name: "ANEXO",
|
|
114974
|
+
label: "Anexo",
|
|
114975
|
+
dataType: DataType.OBJECT,
|
|
114976
|
+
userInterface: UserInterface.FILE,
|
|
114977
|
+
properties: {
|
|
114978
|
+
DESTINATION: "MULTIFILE",
|
|
114979
|
+
MAX_FILES: "2"
|
|
114980
|
+
}
|
|
114904
114981
|
}
|
|
114905
114982
|
]
|
|
114906
114983
|
};
|
|
114907
|
-
this.dataUnit.dataLoader = () => new Promise(accept => accept(
|
|
114908
|
-
{
|
|
114909
|
-
|
|
114910
|
-
|
|
114911
|
-
|
|
114912
|
-
|
|
114913
|
-
|
|
114914
|
-
|
|
114984
|
+
this.dataUnit.dataLoader = () => new Promise(accept => accept({
|
|
114985
|
+
records: [{
|
|
114986
|
+
__record__id__: "1321321321321321",
|
|
114987
|
+
CODPARC: 10,
|
|
114988
|
+
NOMEPARC: "Parceiro 10",
|
|
114989
|
+
P: "M",
|
|
114990
|
+
L: "Bagaço",
|
|
114991
|
+
LI: "Azedo"
|
|
114992
|
+
}],
|
|
114993
|
+
limit: 0,
|
|
114994
|
+
offset: 2,
|
|
114995
|
+
total: 100,
|
|
114996
|
+
hasMore: true
|
|
114997
|
+
}));
|
|
114998
|
+
this.dataUnit.saveLoader = (_dataUnit, changes) => {
|
|
114999
|
+
const savedRecords = [];
|
|
115000
|
+
changes.forEach(change => {
|
|
115001
|
+
savedRecords.push(Object.assign(Object.assign({}, change.record), change.updatingFields));
|
|
115002
|
+
});
|
|
115003
|
+
return Promise.resolve(savedRecords);
|
|
115004
|
+
};
|
|
115005
|
+
}
|
|
115006
|
+
save() {
|
|
115007
|
+
this.dataUnit.saveData().catch(e => {
|
|
115008
|
+
if (e.kind === "WAITING_CHANGE_ERROR") {
|
|
115009
|
+
ApplicationUtils.alert(`Alterando campo ${e.fieldName}`, e.message);
|
|
114915
115010
|
}
|
|
114916
|
-
|
|
115011
|
+
});
|
|
114917
115012
|
}
|
|
114918
115013
|
render() {
|
|
114919
|
-
return (h("ez-form", { dataUnit: this.dataUnit }));
|
|
115014
|
+
return (h("div", null, h("button", { onClick: () => this.dataUnit.loadData() }, "Carregar"), h("button", { onClick: () => this.save(), disabled: !this.isDirty }, "Salvar"), h("ez-form", { dataUnit: this.dataUnit })));
|
|
114920
115015
|
}
|
|
114921
115016
|
static get style() { return testDuCss; }
|
|
114922
115017
|
};
|
|
@@ -114939,7 +115034,7 @@ const EzLabelChip = /*@__PURE__*/proxyCustomElement(EzLabelChip$1, [1,"ez-label-
|
|
|
114939
115034
|
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],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
114940
115035
|
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"]}]);
|
|
114941
115036
|
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]}]);
|
|
114942
|
-
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]}]);
|
|
115037
|
+
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"]}]);
|
|
114943
115038
|
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]);
|
|
114944
115039
|
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]}]);
|
|
114945
115040
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]);
|
|
@@ -114950,7 +115045,7 @@ const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"messa
|
|
|
114950
115045
|
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]}]);
|
|
114951
115046
|
const GridConfig = /*@__PURE__*/proxyCustomElement(GridConfig$1, [2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]);
|
|
114952
115047
|
const SelectBox = /*@__PURE__*/proxyCustomElement(SelectBox$1, [1,"select-box",{"selectedOption":[1,"selected-option"]}]);
|
|
114953
|
-
const TestDu = /*@__PURE__*/proxyCustomElement(TestDu$1, [0,"test-du"]);
|
|
115048
|
+
const TestDu = /*@__PURE__*/proxyCustomElement(TestDu$1, [0,"test-du",{"isDirty":[32]}]);
|
|
114954
115049
|
const defineCustomElements = (opts) => {
|
|
114955
115050
|
if (typeof customElements !== 'undefined') {
|
|
114956
115051
|
[
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-6b8bfbeb.js';
|
|
2
2
|
|
|
3
|
-
const ezCheckCss = ":host{--ez-check--box--width:18px;--ez-check--box--height:18px;--ez-check--width:calc(var(--ez-check--box--width) + 14px);--ez-check--height:calc(var(--ez-check--box--width) + 14px);--ez-check--border-radius:var(--border--radius-small);--ez-check--checked--background-color:var(--color--primary-200);--ez-check--focus--background-color:var(--color--strokes, #FFFFFF);--ez-check--hover--background-color:var(--background--medium);--ez-check--checked--disabled--background-color:var(--color--disable-secondary);--ez-check--border:var(--border--medium) var(--title--primary);--ez-check--disabled--border:var(--border--medium) var(--color--strokes);--ez-check--checked--border:var(--border--medium) var(--color--primary);--ez-check--checked--hover--background-color:var(--color--primary-200);--ez-check--checked--focus--background-color:var(--color--primary-300, #FFFFFF);--ez-check--check--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"7\" viewBox=\"0 0 8 7\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z\"/></svg>');--ez-check--check--background-color:var(--color--primary);--ez-check--check--disabled--background-color:var(--color--strokes);--ez-switch--slider--width:34px;--ez-switch--slider--height:14px;--ez-switch--pin--width:
|
|
3
|
+
const ezCheckCss = ":host{--ez-check--box--width:18px;--ez-check--box--height:18px;--ez-check--width:calc(var(--ez-check--box--width) + 14px);--ez-check--height:calc(var(--ez-check--box--width) + 14px);--ez-check--border-radius:var(--border--radius-small);--ez-check--checked--background-color:var(--color--primary-200);--ez-check--focus--background-color:var(--color--strokes, #FFFFFF);--ez-check--hover--background-color:var(--background--medium);--ez-check--checked--disabled--background-color:var(--color--disable-secondary);--ez-check--border:var(--border--medium) var(--title--primary);--ez-check--disabled--border:var(--border--medium) var(--color--strokes);--ez-check--checked--border:var(--border--medium) var(--color--primary);--ez-check--checked--hover--background-color:var(--color--primary-200);--ez-check--checked--focus--background-color:var(--color--primary-300, #FFFFFF);--ez-check--check--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"7\" viewBox=\"0 0 8 7\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z\"/></svg>');--ez-check--check--background-color:var(--color--primary);--ez-check--check--disabled--background-color:var(--color--strokes);--ez-switch--slider--width:34px;--ez-switch--slider--height:14px;--ez-switch--pin--width:19px;--ez-switch--pin--height:19px;--ez-switch--focus--width:32px;--ez-switch--focus--height:32px;--ez-switch--background-color:var(--color--strokes);--ez-switch--disabled--background-color:var(--color--disable-secondary);--ez-switch--disabled--checked--background-color:var(--color--primary-300);--ez-switch--checked--background-color:var(--color--primary);--ez-switch--pin--background-color:var(--background--xlight);--ez-switch--pin--disabled--background-color:var(--color--disable-primary);--ez-switch--pin--checked--background-color:var(--background--xlight);--ez-switch--pin--checked--disabled--background-color:#E8F7F4;--ez-switch--pin--focus--background-color:var(--text--disable);--ez-switch--pin--checked--focus--background-color:var(--color--primary);--ez-switch--pin--border-color:var(--text--primary);--ez-switch--pin--disabled--border-color:var(--text--secondary);--ez-check--label--font-size:var(--text--medium, 14px);--ez-check--label--font-family:var(--font-pattern, Arial);--ez-check--label--color:var(--title--primary, #000);--ez-check--label--disabled--color:var(--text--disable, #AFB6C0);display:flex;width:100%;align-items:center;margin:0}input.regularMode{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;-webkit-appearance:none;appearance:none;cursor:pointer;border-radius:50%;position:relative;width:var(--ez-check--width);height:var(--ez-check--height)}input.regularMode:enabled:hover{background-color:var(--ez-check--hover--background-color)}input.regularMode:enabled:focus{outline:none;background-color:var(--ez-check--focus--background-color)}input.regularMode:disabled{cursor:auto;background:none}input.regularMode::before{box-sizing:border-box;content:\"\";display:block;width:var(--ez-check--box--width);height:var(--ez-check--box--height);border-radius:var(--ez-check--border-radius);border:var(--ez-check--border)}input.regularMode:disabled::before{border:var(--ez-check--disabled--border)}input.regularMode:checked:enabled:hover{background-color:var(--ez-check--checked--hover--background-color)}input.regularMode:checked:enabled:focus{background-color:var(--ez-check--checked--focus--background-color)}input.regularMode:checked::before{border:var(--ez-check--checked--border);background-color:var(--ez-check--checked--background-color)}input.regularMode:checked:disabled:before{border:var(--ez-check--disabled--border);background-color:var(--ez-check--checked--disabled--background-color)}input.regularMode:checked::after{display:flex;position:absolute;content:\"\";background-color:var(--ez-check--check--background-color);width:8px;height:7px;-webkit-mask-image:var(--ez-check--check--image);mask-image:var(--ez-check--check--image)}input.regularMode:checked:disabled::after{background-color:var(--ez-check--check--disabled--background-color)}input.switchMode{flex-shrink:0;-webkit-appearance:none;appearance:none;position:relative;outline:none;cursor:pointer;border-radius:20px;border:var(--border--small, 1px solid) var(--ez-switch--pin--border-color, #626e82);transition:background-color var(--transition);width:var(--ez-switch--slider--width);height:var(--ez-switch--slider--height);background-color:var(--ez-switch--background-color)}input.switchMode:disabled{background-color:var(--ez-switch--disabled--background-color);border:var(--border--small, 1px solid) var(--ez-switch--pin--disabled--border-color, #a2abb9)}input.switchMode:checked:disabled{background-color:var(--ez-switch--disabled--checked--background-color)}input.switchMode::after{content:\"\";display:block;position:absolute;box-shadow:var(--shadow);transition:transform var(--transition);transition:background-color var(--transition);transition:border-color var(--transition);transform:translateX(-2px) translateY(-4px);border-radius:50%;border:var(--border--small, 1px solid) var(--ez-switch--pin--border-color, #626e82);width:var(--ez-switch--pin--width);height:var(--ez-switch--pin--height);background-color:var(--ez-switch--pin--background-color)}input.switchMode:disabled::after{background-color:var(--ez-switch--pin--disabled--background-color);border:var(--border--small, 1px solid) var(--ez-switch--pin--disabled--border-color, #a2abb9)}input.switchMode:checked{transition:background-color var(--transition), border var(--transition);background-color:var(--ez-switch--checked--background-color);border:var(--border--small, 1px solid) var(--color--primary, #008561)}input.switchMode::before{display:block;content:\"\";display:block;position:absolute;border-radius:50%;opacity:0;width:var(--ez-switch--focus--width);height:var(--ez-switch--focus--height);top:calc((var(--ez-switch--slider--height) - var(--ez-switch--focus--height)) / 2);left:calc((var(--ez-switch--pin--width) - var(--ez-switch--focus--width) - 2px) / 2);background-color:var(--ez-switch--pin--focus--background-color)}input.switchMode:focus::before{opacity:0.24;transition:opacity var(--transition)}input.switchMode:checked:focus::before{background-color:var(--ez-switch--pin--checked--focus--background-color);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width) + 2px))}input.switchMode:checked::after{transition:transform var(--transition);transition:background-color var(--transition);transition:border-color var(--transition);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width))) translateY(-4px);box-shadow:var(--shadow);background-color:var(--ez-switch--pin--checked--background-color);border:var(--border--small, 1px solid) var(--color--primary, #008561)}input.switchMode:checked:disabled::after{background-color:var(--ez-switch--pin--checked--disabled--background-color)}.label{flex-shrink:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-check--label--color);text-shadow:var(--text-shadow);font-size:var(--ez-check--label--font-size);font-family:var(--ez-check--label--font-family);cursor:default;padding-left:var(--space--small)}.label--disabled{color:var(--ez-check--label--disabled--color)}";
|
|
4
4
|
|
|
5
5
|
let EzCheck = class {
|
|
6
6
|
constructor(hostRef) {
|