@sankhyalabs/ezui 1.1.104 → 1.1.105
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-calendar_16.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +8 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +9 -2
- package/dist/collection/components/ez-text-area/ez-text-area.js +1 -1
- package/dist/custom-elements/index.js +9 -2
- package/dist/esm/ez-calendar_16.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +9 -2
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-da0f5393.entry.js → p-41518731.entry.js} +26 -26
- package/dist/ezui/{p-2259c926.entry.js → p-4305092e.entry.js} +1 -1
- package/package.json +1 -1
|
@@ -2087,7 +2087,7 @@ let EzTextArea = class {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
updateInputValue() {
|
|
2090
|
-
this._inputElem.value = this.value;
|
|
2090
|
+
this._inputElem.value = this.value === undefined ? "" : this.value;
|
|
2091
2091
|
this.handleChange();
|
|
2092
2092
|
this.adjustFloatingLabel();
|
|
2093
2093
|
this.ezChange.emit(this.value);
|
|
@@ -110270,7 +110270,14 @@ class AgGridController {
|
|
|
110270
110270
|
}
|
|
110271
110271
|
}
|
|
110272
110272
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
110273
|
-
|
|
110273
|
+
if (params.value !== undefined) {
|
|
110274
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
110275
|
+
}
|
|
110276
|
+
}
|
|
110277
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UnitMetadata.UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UnitMetadata.UserInterface.DATETIME) {
|
|
110278
|
+
if (params.value !== undefined) {
|
|
110279
|
+
return params.value.toLocaleDateString();
|
|
110280
|
+
}
|
|
110274
110281
|
}
|
|
110275
110282
|
}
|
|
110276
110283
|
buildColState(source) {
|
|
@@ -4,7 +4,7 @@ import gridTerms from "./i18n/pt-BR.js";
|
|
|
4
4
|
import HeaderColumnTemplate from "./template/HeaderColumnTemplate.js";
|
|
5
5
|
import DataSource from "./DataSource";
|
|
6
6
|
import { DataType } from "@sankhyalabs/core";
|
|
7
|
-
import { SortMode } from "@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";
|
|
7
|
+
import { SortMode, UserInterface } from "@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";
|
|
8
8
|
export default class AgGridController {
|
|
9
9
|
constructor(enterprise) {
|
|
10
10
|
this._menuItems = [];
|
|
@@ -218,7 +218,14 @@ export default class AgGridController {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
221
|
-
|
|
221
|
+
if (params.value !== undefined) {
|
|
222
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATETIME) {
|
|
226
|
+
if (params.value !== undefined) {
|
|
227
|
+
return params.value.toLocaleDateString();
|
|
228
|
+
}
|
|
222
229
|
}
|
|
223
230
|
}
|
|
224
231
|
buildColState(source) {
|
|
@@ -113691,7 +113691,14 @@ class AgGridController {
|
|
|
113691
113691
|
}
|
|
113692
113692
|
}
|
|
113693
113693
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
113694
|
-
|
|
113694
|
+
if (params.value !== undefined) {
|
|
113695
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
113696
|
+
}
|
|
113697
|
+
}
|
|
113698
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATETIME) {
|
|
113699
|
+
if (params.value !== undefined) {
|
|
113700
|
+
return params.value.toLocaleDateString();
|
|
113701
|
+
}
|
|
113695
113702
|
}
|
|
113696
113703
|
}
|
|
113697
113704
|
buildColState(source) {
|
|
@@ -115106,7 +115113,7 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
115106
115113
|
}
|
|
115107
115114
|
}
|
|
115108
115115
|
updateInputValue() {
|
|
115109
|
-
this._inputElem.value = this.value;
|
|
115116
|
+
this._inputElem.value = this.value === undefined ? "" : this.value;
|
|
115110
115117
|
this.handleChange();
|
|
115111
115118
|
this.adjustFloatingLabel();
|
|
115112
115119
|
this.ezChange.emit(this.value);
|
|
@@ -2083,7 +2083,7 @@ let EzTextArea = class {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
2085
|
updateInputValue() {
|
|
2086
|
-
this._inputElem.value = this.value;
|
|
2086
|
+
this._inputElem.value = this.value === undefined ? "" : this.value;
|
|
2087
2087
|
this.handleChange();
|
|
2088
2088
|
this.adjustFloatingLabel();
|
|
2089
2089
|
this.ezChange.emit(this.value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-6b8bfbeb.js';
|
|
2
|
-
import { b as DataType, S as SortMode, A as Action } from './UnitMetadata-8951d803.js';
|
|
2
|
+
import { U as UserInterface, b as DataType, S as SortMode, A as Action } from './UnitMetadata-8951d803.js';
|
|
3
3
|
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5
5
|
|
|
@@ -110266,7 +110266,14 @@ class AgGridController {
|
|
|
110266
110266
|
}
|
|
110267
110267
|
}
|
|
110268
110268
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
110269
|
-
|
|
110269
|
+
if (params.value !== undefined) {
|
|
110270
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
110271
|
+
}
|
|
110272
|
+
}
|
|
110273
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATETIME) {
|
|
110274
|
+
if (params.value !== undefined) {
|
|
110275
|
+
return params.value.toLocaleDateString();
|
|
110276
|
+
}
|
|
110270
110277
|
}
|
|
110271
110278
|
}
|
|
110272
110279
|
buildColState(source) {
|
package/dist/ezui/ezui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as s}from"./p-89a57641.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>s([["p-
|
|
1
|
+
import{p as e,b as s}from"./p-89a57641.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>s([["p-41518731",[[6,"ez-grid",{multipleSelection:[4,"multiple-selection"],pageSize:[2,"page-size"],serverUrl:[1,"server-url"],dataUnit:[16],_navigationHasPrevious:[32],_navigationHasNext:[32],_navigationFirstRow:[32],_navigationLastRow:[32],_navigationTotalRows:[32],_popUpVisible:[32],setColumnsDef:[64],addColumnMenuItem:[64],setColumnsState:[64],setData:[64],getSelection:[64],getColumnsState:[64],getColumns:[64]}]]],["p-e06e47f1",[[1,"ez-dialog",{confirm:[1028],critical:[1028],message:[1025],opened:[1540],personalizedIconPath:[1025,"personalized-icon-path"],ezTitle:[1025,"ez-title"],handleButtonClick:[64],show:[64]}]]],["p-b8678ee6",[[1,"ez-action-chip",{label:[513],enabled:[516]}]]],["p-95fc543c",[[0,"ez-application"]]],["p-542d3d29",[[1,"ez-label-chip",{label:[513],enabled:[516],removable:[516],value:[1540],setFocus:[64],setBlur:[64]}]]],["p-18c00d88",[[1,"ez-popover",{autoClose:[516,"auto-close"],top:[1537],left:[1537],bottom:[1537],right:[1537],boxWidth:[513,"box-width"],opened:[1540],updatePosition:[64],show:[64],hide:[64]}]]],["p-502d7e0d",[[1,"ez-popup",{size:[1],opened:[1540],useHeader:[1540,"use-header"],ezTitle:[1,"ez-title"]}]]],["p-b217f40b",[[1,"ez-toast",{message:[1025],fadeTime:[1026,"fade-time"],useIcon:[1028,"use-icon"],show:[64]}]]],["p-4305092e",[[0,"test-du"],[0,"ez-form",{dataUnit:[1040],config:[16],submit:[64],cancel:[64],validate:[64]}],[1,"ez-date-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],setFocus:[64],setBlur:[64]}],[1,"ez-date-time-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],showSeconds:[516,"show-seconds"],setFocus:[64],setBlur:[64]}],[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"],setFocus:[64],setBlur:[64]}],[1,"ez-time-input",{label:[513],viewValue:[1537,"view-value"],value:[1026],enabled:[516],errorMessage:[1537,"error-message"],showSeconds:[516,"show-seconds"],setFocus:[64],setBlur:[64]}],[1,"ez-number-input",{label:[1],value:[1538],enabled:[4],errorMessage:[1537,"error-message"],precision:[2],prettyPrecision:[2,"pretty-precision"],setFocus:[64],setBlur:[64]}],[1,"ez-collapsible-box",{value:[1540],label:[513],headerSize:[513,"header-size"],iconPlacement:[513,"icon-placement"],showHide:[64]}],[1,"ez-text-area",{label:[513],value:[1537],enabled:[516],loading:[516],errorMessage:[1537,"error-message"],rows:[1538],setFocus:[64],setBlur:[64]}],[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],addFiles:[64],setFocus:[64],setBlur:[64]}],[1,"ez-calendar",{value:[1040],floating:[516],time:[516],showSeconds:[516,"show-seconds"],show:[64],fitVertical:[64],hide:[64]}],[1,"ez-check",{label:[513],value:[1540],enabled:[516],mode:[513],getMode:[64],setFocus:[64]}],[1,"ez-tabselector",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1]}],[1,"ez-combo-box",{value:[1537],label:[513],enabled:[516],options:[1040],errorMessage:[1537,"error-message"],searchMode:[4,"search-mode"],showSelectedValue:[4,"show-selected-value"],showOptionValue:[4,"show-option-value"],optionLoader:[16],suppressEmptyOption:[4,"suppress-empty-option"],canShowError:[516,"can-show-error"],_preSelection:[32],_visibleOptions:[32],setFocus:[64],setBlur:[64]}],[1,"ez-icon",{size:[513],href:[513],iconName:[513,"icon-name"]}],[1,"ez-text-input",{label:[513],value:[1537],enabled:[516],loading:[516],errorMessage:[1537,"error-message"],mask:[1],canShowError:[516,"can-show-error"],restrict:[1],setFocus:[64],setBlur:[64]}]]],["p-6b257393",[[1,"select-box",{selectedOption:[1,"selected-option"]}],[1,"ez-list",{dataSource:[1040],useGroups:[1540,"use-groups"],ezDraggable:[1028,"ez-draggable"],ezSelectable:[1028,"ez-selectable"],itemSlotBuilder:[1040],_listItems:[32],_listGroupItems:[32],setSelection:[64],getSelection:[64],getList:[64]}],[1,"ez-button",{label:[513],enabled:[516],mode:[513],image:[513],iconName:[513,"icon-name"],size:[513],setFocus:[64],setBlur:[64]}]]],["p-7294c815",[[2,"grid-config",{selectedTab:[1025,"selected-tab"],columns:[1040]}],[1,"ez-modal",{modalSize:[1,"modal-size"],align:[1],opened:[1028],closeEsc:[4,"close-esc"],closeOutsideClick:[4,"close-outside-click"]}]]]],e)));
|