@sankhyalabs/ezui 5.21.0-dev.37 → 5.21.0-dev.39
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-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +7 -4
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +1 -1
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +29 -32
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +3 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +5 -2
- package/dist/collection/components/ez-search/ez-search.js +28 -31
- package/dist/custom-elements/index.js +33 -33
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +1 -1
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-custom-form-input_2.entry.js +7 -4
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +1 -1
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +29 -32
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +1 -1
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +2 -2
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +3 -1
- package/dist/esm/loader.js +2 -2
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
- package/dist/ezui/{p-91f626d3.entry.js → p-0e551dd4.entry.js} +1 -1
- package/dist/ezui/{p-1285c902.entry.js → p-11b09aa1.entry.js} +1 -1
- package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
- package/dist/ezui/{p-af95cd16.entry.js → p-24ca32a3.entry.js} +1 -1
- package/dist/ezui/{p-7922142b.entry.js → p-2af4e2de.entry.js} +1 -1
- package/dist/ezui/{p-baf80b13.entry.js → p-30951bd7.entry.js} +1 -1
- package/dist/ezui/{p-922ac38b.entry.js → p-31674f8e.entry.js} +1 -1
- package/dist/ezui/{p-bf79aaa1.entry.js → p-33792b2b.entry.js} +1 -1
- package/dist/ezui/{p-e85c48d7.entry.js → p-36180f4d.entry.js} +1 -1
- package/dist/ezui/{p-7bc07c31.entry.js → p-3f8c33e0.entry.js} +1 -1
- package/dist/ezui/{p-5056284a.entry.js → p-439fbc78.entry.js} +1 -1
- package/dist/ezui/{p-ffef392d.entry.js → p-569a0b9a.entry.js} +1 -1
- package/dist/ezui/p-5fefcdc9.entry.js +1 -0
- package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
- package/dist/ezui/p-6ec40dec.entry.js +1 -0
- package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
- package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
- package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
- package/dist/ezui/{p-3b4eeeb6.entry.js → p-81cffa53.entry.js} +1 -1
- package/dist/ezui/{p-072e6347.entry.js → p-82ac8b06.entry.js} +1 -1
- package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
- package/dist/ezui/{p-bcb53f27.entry.js → p-868b56f7.entry.js} +1 -1
- package/dist/ezui/{p-85c8baae.entry.js → p-8eef0f70.entry.js} +1 -1
- package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
- package/dist/ezui/{p-3faa2b46.entry.js → p-9634631d.entry.js} +1 -1
- package/dist/ezui/{p-f3c526cc.entry.js → p-9a11e223.entry.js} +1 -1
- package/dist/ezui/{p-7af81663.entry.js → p-9a23d513.entry.js} +1 -1
- package/dist/ezui/{p-84e439b9.entry.js → p-9aa27e69.entry.js} +1 -1
- package/dist/ezui/{p-784fe207.entry.js → p-9c2e2d68.entry.js} +1 -1
- package/dist/ezui/{p-9ab22a07.entry.js → p-a35b41e6.entry.js} +1 -1
- package/dist/ezui/{p-9050d2cd.entry.js → p-b0e71d23.entry.js} +1 -1
- package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
- package/dist/ezui/p-b82e4634.entry.js +1 -0
- package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
- package/dist/ezui/{p-5bd5e68f.entry.js → p-c3b7a23e.entry.js} +1 -1
- package/dist/ezui/{p-2dcb50d4.entry.js → p-c5a80844.entry.js} +1 -1
- package/dist/ezui/{p-d9401ea0.entry.js → p-cd1a2e6b.entry.js} +1 -1
- package/dist/ezui/{p-bae4e180.entry.js → p-dbeee5aa.entry.js} +1 -1
- package/dist/ezui/{p-2097d0cf.entry.js → p-de870657.entry.js} +1 -1
- package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
- package/dist/ezui/{p-e252a728.entry.js → p-e0c91525.entry.js} +1 -1
- package/dist/ezui/{p-30775e7f.entry.js → p-e151e795.entry.js} +1 -1
- package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
- package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
- package/dist/ezui/{p-650e4b6d.entry.js → p-f1c2c19e.entry.js} +1 -1
- package/dist/ezui/{p-13d2fe2d.entry.js → p-f1c3f85d.entry.js} +1 -1
- package/dist/ezui/{p-49456b34.entry.js → p-f291db18.entry.js} +1 -1
- package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
- package/dist/types/components/ez-search/ez-search.d.ts +2 -1
- package/package.json +1 -1
- package/dist/ezui/p-1c462106.entry.js +0 -1
- package/dist/ezui/p-5264876b.entry.js +0 -1
- package/dist/ezui/p-bc2f844e.entry.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
|
|
@@ -24,7 +24,6 @@ const EzSearch = class {
|
|
|
24
24
|
this._tabPressed = false;
|
|
25
25
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
26
26
|
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
27
|
-
this._lookupMode = false;
|
|
28
27
|
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
29
28
|
this._endHighlightTag = "</span>";
|
|
30
29
|
this._preSelection = undefined;
|
|
@@ -53,36 +52,30 @@ const EzSearch = class {
|
|
|
53
52
|
var _a;
|
|
54
53
|
if (this._textInput) {
|
|
55
54
|
this._textInput.errorMessage = this.errorMessage;
|
|
56
|
-
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
55
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim()) && this.errorMessage) {
|
|
57
56
|
this.setInputValue();
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}
|
|
60
|
+
validateNewValue(newValue, oldValue) {
|
|
61
|
+
const getValue = (val) => typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
|
|
62
|
+
return (getValue(newValue) !== getValue(oldValue));
|
|
63
|
+
}
|
|
61
64
|
async observeValue(newValue, oldValue) {
|
|
62
|
-
if (this._textInput && newValue
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const newValueSelected = this.getSelectedOption(newValue);
|
|
69
|
-
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
70
|
-
const currentValue = this.getSelectedOption(this.value);
|
|
71
|
-
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
72
|
-
this.value = newValueSelected;
|
|
73
|
-
}
|
|
74
|
-
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
75
|
-
this.setInputValue();
|
|
76
|
-
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
77
|
-
if (!this._lookupMode) {
|
|
78
|
-
this.ezChange.emit(valueEmitted);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
this.resetOptions();
|
|
65
|
+
if (this._textInput && newValue !== oldValue && this.validateNewValue(newValue, oldValue)) {
|
|
66
|
+
if (typeof newValue === "string") {
|
|
67
|
+
await this.handleValueAsString(newValue);
|
|
68
|
+
return;
|
|
82
69
|
}
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
const newValueSelected = this.getSelectedOption(newValue);
|
|
71
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
72
|
+
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
73
|
+
this._currentValue = newValueSelected;
|
|
74
|
+
this.setInputValue();
|
|
75
|
+
const valueEmitted = newValueSelected !== null && newValueSelected !== void 0 ? newValueSelected : undefined;
|
|
76
|
+
this.ezChange.emit(valueEmitted);
|
|
85
77
|
}
|
|
78
|
+
this.resetOptions();
|
|
86
79
|
}
|
|
87
80
|
}
|
|
88
81
|
observeOptions(newOptions, oldOptions) {
|
|
@@ -155,7 +148,9 @@ const EzSearch = class {
|
|
|
155
148
|
return;
|
|
156
149
|
}
|
|
157
150
|
await this.loadDescriptionValue(value);
|
|
151
|
+
this.setInputValue();
|
|
158
152
|
this.ezChange.emit(this.value);
|
|
153
|
+
this._currentValue = this.value;
|
|
159
154
|
}
|
|
160
155
|
updateListPosition() {
|
|
161
156
|
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
@@ -212,7 +207,7 @@ const EzSearch = class {
|
|
|
212
207
|
return text;
|
|
213
208
|
}
|
|
214
209
|
getText() {
|
|
215
|
-
const currentValue = this.getSelectedOption(this.
|
|
210
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
216
211
|
const text = this.getFormattedText(currentValue);
|
|
217
212
|
if (text == undefined) {
|
|
218
213
|
return;
|
|
@@ -387,6 +382,7 @@ const EzSearch = class {
|
|
|
387
382
|
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
388
383
|
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
389
384
|
this.value = adjustedOpt;
|
|
385
|
+
this._currentValue = adjustedOpt;
|
|
390
386
|
}
|
|
391
387
|
else {
|
|
392
388
|
this.setInputValue();
|
|
@@ -407,7 +403,7 @@ const EzSearch = class {
|
|
|
407
403
|
}
|
|
408
404
|
}
|
|
409
405
|
cancelPreselection() {
|
|
410
|
-
if (!this._textInput.value && this.
|
|
406
|
+
if (!this._textInput.value && this._currentValue) {
|
|
411
407
|
this.selectOption(undefined);
|
|
412
408
|
}
|
|
413
409
|
else {
|
|
@@ -428,6 +424,7 @@ const EzSearch = class {
|
|
|
428
424
|
}
|
|
429
425
|
clearSearch() {
|
|
430
426
|
this.value = null;
|
|
427
|
+
this._currentValue = null;
|
|
431
428
|
}
|
|
432
429
|
controlListWithOnlyOne() {
|
|
433
430
|
var _a, _b;
|
|
@@ -457,11 +454,11 @@ const EzSearch = class {
|
|
|
457
454
|
if (core.StringUtils.isEmpty(this.value)) {
|
|
458
455
|
return;
|
|
459
456
|
}
|
|
460
|
-
|
|
461
|
-
if (typeof value === "object") {
|
|
457
|
+
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
462
458
|
return;
|
|
463
459
|
}
|
|
464
|
-
|
|
460
|
+
let value = this.value;
|
|
461
|
+
if (typeof value === "object") {
|
|
465
462
|
return;
|
|
466
463
|
}
|
|
467
464
|
this.loadDescriptionValue(value);
|
|
@@ -498,8 +495,8 @@ const EzSearch = class {
|
|
|
498
495
|
this.showNoResultMessage();
|
|
499
496
|
return;
|
|
500
497
|
}
|
|
501
|
-
this.
|
|
502
|
-
this.value =
|
|
498
|
+
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
499
|
+
this.value = this._currentValue;
|
|
503
500
|
}
|
|
504
501
|
loadOptionValue(argument) {
|
|
505
502
|
var _a;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #FFF);--ez-split-button--font-size:var(--text--medium, 14px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--medium, #008561);--ez-split-button--border-radius:var(--border--radius-large, 12px);--ez-split-button--border:none;--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600);--ez-split-button--hover--background-color:var(--background--medium, var(--ez-split-button--background-color));--ez-split-button--disabled-color:var(--text--disable);--ez-split-button--disabled--background-color:var(--color--disable-secondary);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:var(--ez-split-button--border);justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:focus,.ez-split-button__right-button:focus{outline:var(--ez-split-button--focus--border);box-shadow:var(--ez-split-button--focus--box-shadow)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
require('./ApplicationUtils-c9d1205c.js');
|
|
7
7
|
const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
|
|
8
8
|
require('./DialogType-2114c337.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index$1 = require('./index-
|
|
5
|
+
const index$1 = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
var numeric = function (value, unit) { return Number(value.slice(0, -1 * unit.length)); };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;background-color:unset;min-width:100px;max-width:260px;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Roboto\");font-size:var(--title--small, 14px);flex-shrink:0}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow);margin-bottom:var(--space--extra-small, 3px)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}.left-icon{padding-right:var(--space--small)}.right-icon{padding-left:var(--space--small)}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #000);--text-area__input--background-color:var(--background--medium, #e0e0e0);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--text-area__input--background-color);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--text-area__input--disabled--color:var(--text--disable, #AFB6C0);--text-area__input--error--border-color:#CC2936;--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color--error, #FF0000);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color)}.textarea{width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--resizable{resize:both}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color)}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-ms-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color)}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--height--slim:32px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border:var(--border--medium, 2px solid);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-text-input__input--disabled--color:var(--text--disable, #AFB6C0);--ez-text-input__input--error--border-color:#CC2936;--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__message_box--font-size:var(--text--small, 12px);--ez-text-input__message_box--info--color:var(--color--success, #22085d);--ez-text-input__message_box--error--color:var(--color--error, #FF0000);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--ez-text-input__input--focus--border-color);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding)}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color)}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:read-only{cursor:default}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input__message_box--font-size);color:var(--ez-text-input__message_box--info--color)}.hasError{color:var(--ez-text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-ms-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:disabled::-webkit-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-ms-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container--z-index:var(--elevation--100, 100);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__container--left:var(--space--large, 24px);--ez-toast__container--bottom:var(--space--large, 24px);--ez-toast__container--width:400px;--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;box-sizing:border-box;border-radius:6px;align-items:center;padding:12px;visibility:hidden;width:var(--ez-toast__container--width);left:var(--ez-toast__container--left);bottom:var(--ez-toast__container--bottom);z-index:var(--ez-toast__container--z-index);background-color:var(--ez-toast__container--background-color)}.message__container{text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;hyphens:auto;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;text-overflow:ellipsis;font-family:var(--font-pattern, \"Roboto\")}.message__container--icon{width:80%;padding-left:var(--ez-toast__icon--padding-left)}.btn-close{margin-top:3px;display:flex;justify-content:flex-end;align-self:flex-start;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--opened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{opacity:0;left:calc(var(--ez-toast__container--left) * -1)}to{opacity:1;left:var(--ez-toast__container--left)}}@keyframes fadein{from{opacity:0;left:calc(var(--ez-toast__container--left) * -1)}to{opacity:1;left:var(--ez-toast__container--left)}}@-webkit-keyframes fadeout{from{opacity:1;left:var(--ez-toast__container--left)}to{bottom:0;opacity:0}}@keyframes fadeout{from{opacity:1;left:var(--ez-toast__container--left)}to{bottom:0;opacity:0}}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
require('./DialogType-2114c337.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezViewStackCss = ":host{width:100%;height:100%}.ez-view-stack__container{width:100%;height:100%}";
|
package/dist/cjs/ezui.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const filterColumnCss = ".filter-column{padding:var(--space--2xs, 8px);position:relative}.filter-column__header{margin-bottom:var(--space--2xs, 8px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:var(--space--xl, 32px)}.filter-column__footer{position:relative;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;bottom:0;left:0;padding-top:var(--space--2xs, 8px);border-top:var(--border--medium) var(--color--disable-secondary)}.filter-column__popover{position:absolute}.filter-column__header-title{margin-left:8px}";
|
|
@@ -2284,6 +2284,8 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2284
2284
|
const styles = /*@__PURE__*/ new Map();
|
|
2285
2285
|
const win = typeof window !== 'undefined' ? window : {};
|
|
2286
2286
|
const doc = win.document || { head: {} };
|
|
2287
|
+
const H = (win.HTMLElement || class {
|
|
2288
|
+
});
|
|
2287
2289
|
const plt = {
|
|
2288
2290
|
$flags$: 0,
|
|
2289
2291
|
$resourcesUrl$: '',
|
|
@@ -2347,6 +2349,7 @@ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
|
2347
2349
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
2348
2350
|
|
|
2349
2351
|
exports.Fragment = Fragment;
|
|
2352
|
+
exports.H = H;
|
|
2350
2353
|
exports.Host = Host;
|
|
2351
2354
|
exports.bootstrapLazy = bootstrapLazy;
|
|
2352
2355
|
exports.createEvent = createEvent;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -71,7 +71,9 @@ export class EzCustomFormInput {
|
|
|
71
71
|
if (typeof gui === 'string') {
|
|
72
72
|
gui = HTMLBuilder.parseElement(gui);
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
if (this.value) {
|
|
75
|
+
gui.setAttribute('value', typeof this.value === 'object' ? this.value.value : this.value);
|
|
76
|
+
}
|
|
75
77
|
this.gui = h("div", { key: StringUtils.generateUUID(), ref: el => el && el.appendChild(gui) });
|
|
76
78
|
}
|
|
77
79
|
setValue(value) {
|
|
@@ -81,8 +83,9 @@ export class EzCustomFormInput {
|
|
|
81
83
|
return this.value;
|
|
82
84
|
}
|
|
83
85
|
handleValue(gui) {
|
|
86
|
+
var _a;
|
|
84
87
|
//@ts-ignore
|
|
85
|
-
gui.$children
|
|
88
|
+
(_a = gui.$children$) === null || _a === void 0 ? void 0 : _a.forEach((child) => {
|
|
86
89
|
child.$attrs$.value = this.value;
|
|
87
90
|
});
|
|
88
91
|
}
|
|
@@ -12,7 +12,6 @@ export class EzSearch {
|
|
|
12
12
|
this._tabPressed = false;
|
|
13
13
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
14
14
|
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
15
|
-
this._lookupMode = false;
|
|
16
15
|
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
17
16
|
this._endHighlightTag = "</span>";
|
|
18
17
|
this._preSelection = undefined;
|
|
@@ -41,36 +40,30 @@ export class EzSearch {
|
|
|
41
40
|
var _a;
|
|
42
41
|
if (this._textInput) {
|
|
43
42
|
this._textInput.errorMessage = this.errorMessage;
|
|
44
|
-
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
43
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim()) && this.errorMessage) {
|
|
45
44
|
this.setInputValue();
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
}
|
|
48
|
+
validateNewValue(newValue, oldValue) {
|
|
49
|
+
const getValue = (val) => typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
|
|
50
|
+
return (getValue(newValue) !== getValue(oldValue));
|
|
51
|
+
}
|
|
49
52
|
async observeValue(newValue, oldValue) {
|
|
50
|
-
if (this._textInput && newValue
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const newValueSelected = this.getSelectedOption(newValue);
|
|
57
|
-
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
58
|
-
const currentValue = this.getSelectedOption(this.value);
|
|
59
|
-
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
60
|
-
this.value = newValueSelected;
|
|
61
|
-
}
|
|
62
|
-
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
63
|
-
this.setInputValue();
|
|
64
|
-
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
65
|
-
if (!this._lookupMode) {
|
|
66
|
-
this.ezChange.emit(valueEmitted);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
this.resetOptions();
|
|
53
|
+
if (this._textInput && newValue !== oldValue && this.validateNewValue(newValue, oldValue)) {
|
|
54
|
+
if (typeof newValue === "string") {
|
|
55
|
+
await this.handleValueAsString(newValue);
|
|
56
|
+
return;
|
|
70
57
|
}
|
|
71
|
-
|
|
72
|
-
|
|
58
|
+
const newValueSelected = this.getSelectedOption(newValue);
|
|
59
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
60
|
+
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
61
|
+
this._currentValue = newValueSelected;
|
|
62
|
+
this.setInputValue();
|
|
63
|
+
const valueEmitted = newValueSelected !== null && newValueSelected !== void 0 ? newValueSelected : undefined;
|
|
64
|
+
this.ezChange.emit(valueEmitted);
|
|
73
65
|
}
|
|
66
|
+
this.resetOptions();
|
|
74
67
|
}
|
|
75
68
|
}
|
|
76
69
|
observeOptions(newOptions, oldOptions) {
|
|
@@ -143,7 +136,9 @@ export class EzSearch {
|
|
|
143
136
|
return;
|
|
144
137
|
}
|
|
145
138
|
await this.loadDescriptionValue(value);
|
|
139
|
+
this.setInputValue();
|
|
146
140
|
this.ezChange.emit(this.value);
|
|
141
|
+
this._currentValue = this.value;
|
|
147
142
|
}
|
|
148
143
|
updateListPosition() {
|
|
149
144
|
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
@@ -200,7 +195,7 @@ export class EzSearch {
|
|
|
200
195
|
return text;
|
|
201
196
|
}
|
|
202
197
|
getText() {
|
|
203
|
-
const currentValue = this.getSelectedOption(this.
|
|
198
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
204
199
|
const text = this.getFormattedText(currentValue);
|
|
205
200
|
if (text == undefined) {
|
|
206
201
|
return;
|
|
@@ -375,6 +370,7 @@ export class EzSearch {
|
|
|
375
370
|
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
376
371
|
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
377
372
|
this.value = adjustedOpt;
|
|
373
|
+
this._currentValue = adjustedOpt;
|
|
378
374
|
}
|
|
379
375
|
else {
|
|
380
376
|
this.setInputValue();
|
|
@@ -395,7 +391,7 @@ export class EzSearch {
|
|
|
395
391
|
}
|
|
396
392
|
}
|
|
397
393
|
cancelPreselection() {
|
|
398
|
-
if (!this._textInput.value && this.
|
|
394
|
+
if (!this._textInput.value && this._currentValue) {
|
|
399
395
|
this.selectOption(undefined);
|
|
400
396
|
}
|
|
401
397
|
else {
|
|
@@ -416,6 +412,7 @@ export class EzSearch {
|
|
|
416
412
|
}
|
|
417
413
|
clearSearch() {
|
|
418
414
|
this.value = null;
|
|
415
|
+
this._currentValue = null;
|
|
419
416
|
}
|
|
420
417
|
controlListWithOnlyOne() {
|
|
421
418
|
var _a, _b;
|
|
@@ -445,11 +442,11 @@ export class EzSearch {
|
|
|
445
442
|
if (StringUtils.isEmpty(this.value)) {
|
|
446
443
|
return;
|
|
447
444
|
}
|
|
448
|
-
|
|
449
|
-
if (typeof value === "object") {
|
|
445
|
+
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
450
446
|
return;
|
|
451
447
|
}
|
|
452
|
-
|
|
448
|
+
let value = this.value;
|
|
449
|
+
if (typeof value === "object") {
|
|
453
450
|
return;
|
|
454
451
|
}
|
|
455
452
|
this.loadDescriptionValue(value);
|
|
@@ -486,8 +483,8 @@ export class EzSearch {
|
|
|
486
483
|
this.showNoResultMessage();
|
|
487
484
|
return;
|
|
488
485
|
}
|
|
489
|
-
this.
|
|
490
|
-
this.value =
|
|
486
|
+
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
487
|
+
this.value = this._currentValue;
|
|
491
488
|
}
|
|
492
489
|
loadOptionValue(argument) {
|
|
493
490
|
var _a;
|
|
@@ -3456,7 +3456,9 @@ const EzCustomFormInput$1 = class extends HTMLElement$1 {
|
|
|
3456
3456
|
if (typeof gui === 'string') {
|
|
3457
3457
|
gui = HTMLBuilder.parseElement(gui);
|
|
3458
3458
|
}
|
|
3459
|
-
|
|
3459
|
+
if (this.value) {
|
|
3460
|
+
gui.setAttribute('value', typeof this.value === 'object' ? this.value.value : this.value);
|
|
3461
|
+
}
|
|
3460
3462
|
this.gui = h("div", { key: StringUtils$1.generateUUID(), ref: el => el && el.appendChild(gui) });
|
|
3461
3463
|
}
|
|
3462
3464
|
setValue(value) {
|
|
@@ -3466,8 +3468,9 @@ const EzCustomFormInput$1 = class extends HTMLElement$1 {
|
|
|
3466
3468
|
return this.value;
|
|
3467
3469
|
}
|
|
3468
3470
|
handleValue(gui) {
|
|
3471
|
+
var _a;
|
|
3469
3472
|
//@ts-ignore
|
|
3470
|
-
gui.$children
|
|
3473
|
+
(_a = gui.$children$) === null || _a === void 0 ? void 0 : _a.forEach((child) => {
|
|
3471
3474
|
child.$attrs$.value = this.value;
|
|
3472
3475
|
});
|
|
3473
3476
|
}
|
|
@@ -128687,7 +128690,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128687
128690
|
this._tabPressed = false;
|
|
128688
128691
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
128689
128692
|
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
128690
|
-
this._lookupMode = false;
|
|
128691
128693
|
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
128692
128694
|
this._endHighlightTag = "</span>";
|
|
128693
128695
|
this._preSelection = undefined;
|
|
@@ -128716,36 +128718,30 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128716
128718
|
var _a;
|
|
128717
128719
|
if (this._textInput) {
|
|
128718
128720
|
this._textInput.errorMessage = this.errorMessage;
|
|
128719
|
-
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
128721
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim()) && this.errorMessage) {
|
|
128720
128722
|
this.setInputValue();
|
|
128721
128723
|
}
|
|
128722
128724
|
}
|
|
128723
128725
|
}
|
|
128726
|
+
validateNewValue(newValue, oldValue) {
|
|
128727
|
+
const getValue = (val) => typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
|
|
128728
|
+
return (getValue(newValue) !== getValue(oldValue));
|
|
128729
|
+
}
|
|
128724
128730
|
async observeValue(newValue, oldValue) {
|
|
128725
|
-
if (this._textInput && newValue
|
|
128726
|
-
|
|
128727
|
-
|
|
128728
|
-
|
|
128729
|
-
return;
|
|
128730
|
-
}
|
|
128731
|
-
const newValueSelected = this.getSelectedOption(newValue);
|
|
128732
|
-
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
128733
|
-
const currentValue = this.getSelectedOption(this.value);
|
|
128734
|
-
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
128735
|
-
this.value = newValueSelected;
|
|
128736
|
-
}
|
|
128737
|
-
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
128738
|
-
this.setInputValue();
|
|
128739
|
-
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
128740
|
-
if (!this._lookupMode) {
|
|
128741
|
-
this.ezChange.emit(valueEmitted);
|
|
128742
|
-
}
|
|
128743
|
-
}
|
|
128744
|
-
this.resetOptions();
|
|
128731
|
+
if (this._textInput && newValue !== oldValue && this.validateNewValue(newValue, oldValue)) {
|
|
128732
|
+
if (typeof newValue === "string") {
|
|
128733
|
+
await this.handleValueAsString(newValue);
|
|
128734
|
+
return;
|
|
128745
128735
|
}
|
|
128746
|
-
|
|
128747
|
-
|
|
128736
|
+
const newValueSelected = this.getSelectedOption(newValue);
|
|
128737
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
128738
|
+
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
128739
|
+
this._currentValue = newValueSelected;
|
|
128740
|
+
this.setInputValue();
|
|
128741
|
+
const valueEmitted = newValueSelected !== null && newValueSelected !== void 0 ? newValueSelected : undefined;
|
|
128742
|
+
this.ezChange.emit(valueEmitted);
|
|
128748
128743
|
}
|
|
128744
|
+
this.resetOptions();
|
|
128749
128745
|
}
|
|
128750
128746
|
}
|
|
128751
128747
|
observeOptions(newOptions, oldOptions) {
|
|
@@ -128818,7 +128814,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128818
128814
|
return;
|
|
128819
128815
|
}
|
|
128820
128816
|
await this.loadDescriptionValue(value);
|
|
128817
|
+
this.setInputValue();
|
|
128821
128818
|
this.ezChange.emit(this.value);
|
|
128819
|
+
this._currentValue = this.value;
|
|
128822
128820
|
}
|
|
128823
128821
|
updateListPosition() {
|
|
128824
128822
|
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
@@ -128875,7 +128873,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128875
128873
|
return text;
|
|
128876
128874
|
}
|
|
128877
128875
|
getText() {
|
|
128878
|
-
const currentValue = this.getSelectedOption(this.
|
|
128876
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
128879
128877
|
const text = this.getFormattedText(currentValue);
|
|
128880
128878
|
if (text == undefined) {
|
|
128881
128879
|
return;
|
|
@@ -129050,6 +129048,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129050
129048
|
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
129051
129049
|
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
129052
129050
|
this.value = adjustedOpt;
|
|
129051
|
+
this._currentValue = adjustedOpt;
|
|
129053
129052
|
}
|
|
129054
129053
|
else {
|
|
129055
129054
|
this.setInputValue();
|
|
@@ -129070,7 +129069,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129070
129069
|
}
|
|
129071
129070
|
}
|
|
129072
129071
|
cancelPreselection() {
|
|
129073
|
-
if (!this._textInput.value && this.
|
|
129072
|
+
if (!this._textInput.value && this._currentValue) {
|
|
129074
129073
|
this.selectOption(undefined);
|
|
129075
129074
|
}
|
|
129076
129075
|
else {
|
|
@@ -129091,6 +129090,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129091
129090
|
}
|
|
129092
129091
|
clearSearch() {
|
|
129093
129092
|
this.value = null;
|
|
129093
|
+
this._currentValue = null;
|
|
129094
129094
|
}
|
|
129095
129095
|
controlListWithOnlyOne() {
|
|
129096
129096
|
var _a, _b;
|
|
@@ -129120,11 +129120,11 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129120
129120
|
if (StringUtils$1.isEmpty(this.value)) {
|
|
129121
129121
|
return;
|
|
129122
129122
|
}
|
|
129123
|
-
|
|
129124
|
-
if (typeof value === "object") {
|
|
129123
|
+
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
129125
129124
|
return;
|
|
129126
129125
|
}
|
|
129127
|
-
|
|
129126
|
+
let value = this.value;
|
|
129127
|
+
if (typeof value === "object") {
|
|
129128
129128
|
return;
|
|
129129
129129
|
}
|
|
129130
129130
|
this.loadDescriptionValue(value);
|
|
@@ -129161,8 +129161,8 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129161
129161
|
this.showNoResultMessage();
|
|
129162
129162
|
return;
|
|
129163
129163
|
}
|
|
129164
|
-
this.
|
|
129165
|
-
this.value =
|
|
129164
|
+
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
129165
|
+
this.value = this._currentValue;
|
|
129166
129166
|
}
|
|
129167
129167
|
loadOptionValue(argument) {
|
|
129168
129168
|
var _a;
|