@sankhyalabs/ezui 1.2.0-beta.3 → 1.2.0-beta.6
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-grid.cjs.entry.js +19 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +19 -1
- package/dist/custom-elements/index.js +19 -1
- package/dist/esm/ez-grid.entry.js +19 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-d9c72ff7.entry.js → p-88bfdea4.entry.js} +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/package.json +3 -3
|
@@ -114960,9 +114960,27 @@ class AgGridController {
|
|
|
114960
114960
|
},
|
|
114961
114961
|
valueFormatter: params => {
|
|
114962
114962
|
return this.getFormatterByColumn(params, source);
|
|
114963
|
-
}
|
|
114963
|
+
},
|
|
114964
|
+
cellStyle: this.getStyleByColumn(source)
|
|
114964
114965
|
};
|
|
114965
114966
|
}
|
|
114967
|
+
getStyleByColumn(source) {
|
|
114968
|
+
let cellStyle = {};
|
|
114969
|
+
switch (source === null || source === void 0 ? void 0 : source.userInterface) {
|
|
114970
|
+
case core.UserInterface.DECIMALNUMBER:
|
|
114971
|
+
case core.UserInterface.INTEGERNUMBER:
|
|
114972
|
+
cellStyle["justify-content"] = "right";
|
|
114973
|
+
break;
|
|
114974
|
+
case core.UserInterface.DATE:
|
|
114975
|
+
case core.UserInterface.DATETIME:
|
|
114976
|
+
case core.UserInterface.TIME:
|
|
114977
|
+
cellStyle["justify-content"] = "center";
|
|
114978
|
+
break;
|
|
114979
|
+
default:
|
|
114980
|
+
cellStyle["justify-content"] = "left";
|
|
114981
|
+
}
|
|
114982
|
+
return cellStyle;
|
|
114983
|
+
}
|
|
114966
114984
|
getFormatterByColumn(params, source) {
|
|
114967
114985
|
var _a, _b;
|
|
114968
114986
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "OPTIONSELECTOR" && source.options) {
|
|
@@ -290,9 +290,27 @@ export default class AgGridController {
|
|
|
290
290
|
},
|
|
291
291
|
valueFormatter: params => {
|
|
292
292
|
return this.getFormatterByColumn(params, source);
|
|
293
|
-
}
|
|
293
|
+
},
|
|
294
|
+
cellStyle: this.getStyleByColumn(source)
|
|
294
295
|
};
|
|
295
296
|
}
|
|
297
|
+
getStyleByColumn(source) {
|
|
298
|
+
let cellStyle = {};
|
|
299
|
+
switch (source === null || source === void 0 ? void 0 : source.userInterface) {
|
|
300
|
+
case UserInterface.DECIMALNUMBER:
|
|
301
|
+
case UserInterface.INTEGERNUMBER:
|
|
302
|
+
cellStyle["justify-content"] = "right";
|
|
303
|
+
break;
|
|
304
|
+
case UserInterface.DATE:
|
|
305
|
+
case UserInterface.DATETIME:
|
|
306
|
+
case UserInterface.TIME:
|
|
307
|
+
cellStyle["justify-content"] = "center";
|
|
308
|
+
break;
|
|
309
|
+
default:
|
|
310
|
+
cellStyle["justify-content"] = "left";
|
|
311
|
+
}
|
|
312
|
+
return cellStyle;
|
|
313
|
+
}
|
|
296
314
|
getFormatterByColumn(params, source) {
|
|
297
315
|
var _a, _b;
|
|
298
316
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "OPTIONSELECTOR" && source.options) {
|
|
@@ -117693,9 +117693,27 @@ class AgGridController {
|
|
|
117693
117693
|
},
|
|
117694
117694
|
valueFormatter: params => {
|
|
117695
117695
|
return this.getFormatterByColumn(params, source);
|
|
117696
|
-
}
|
|
117696
|
+
},
|
|
117697
|
+
cellStyle: this.getStyleByColumn(source)
|
|
117697
117698
|
};
|
|
117698
117699
|
}
|
|
117700
|
+
getStyleByColumn(source) {
|
|
117701
|
+
let cellStyle = {};
|
|
117702
|
+
switch (source === null || source === void 0 ? void 0 : source.userInterface) {
|
|
117703
|
+
case UserInterface.DECIMALNUMBER:
|
|
117704
|
+
case UserInterface.INTEGERNUMBER:
|
|
117705
|
+
cellStyle["justify-content"] = "right";
|
|
117706
|
+
break;
|
|
117707
|
+
case UserInterface.DATE:
|
|
117708
|
+
case UserInterface.DATETIME:
|
|
117709
|
+
case UserInterface.TIME:
|
|
117710
|
+
cellStyle["justify-content"] = "center";
|
|
117711
|
+
break;
|
|
117712
|
+
default:
|
|
117713
|
+
cellStyle["justify-content"] = "left";
|
|
117714
|
+
}
|
|
117715
|
+
return cellStyle;
|
|
117716
|
+
}
|
|
117699
117717
|
getFormatterByColumn(params, source) {
|
|
117700
117718
|
var _a, _b;
|
|
117701
117719
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "OPTIONSELECTOR" && source.options) {
|
|
@@ -114956,9 +114956,27 @@ class AgGridController {
|
|
|
114956
114956
|
},
|
|
114957
114957
|
valueFormatter: params => {
|
|
114958
114958
|
return this.getFormatterByColumn(params, source);
|
|
114959
|
-
}
|
|
114959
|
+
},
|
|
114960
|
+
cellStyle: this.getStyleByColumn(source)
|
|
114960
114961
|
};
|
|
114961
114962
|
}
|
|
114963
|
+
getStyleByColumn(source) {
|
|
114964
|
+
let cellStyle = {};
|
|
114965
|
+
switch (source === null || source === void 0 ? void 0 : source.userInterface) {
|
|
114966
|
+
case UserInterface.DECIMALNUMBER:
|
|
114967
|
+
case UserInterface.INTEGERNUMBER:
|
|
114968
|
+
cellStyle["justify-content"] = "right";
|
|
114969
|
+
break;
|
|
114970
|
+
case UserInterface.DATE:
|
|
114971
|
+
case UserInterface.DATETIME:
|
|
114972
|
+
case UserInterface.TIME:
|
|
114973
|
+
cellStyle["justify-content"] = "center";
|
|
114974
|
+
break;
|
|
114975
|
+
default:
|
|
114976
|
+
cellStyle["justify-content"] = "left";
|
|
114977
|
+
}
|
|
114978
|
+
return cellStyle;
|
|
114979
|
+
}
|
|
114962
114980
|
getFormatterByColumn(params, source) {
|
|
114963
114981
|
var _a, _b;
|
|
114964
114982
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "OPTIONSELECTOR" && source.options) {
|
package/dist/ezui/ezui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as s}from"./p-3c7ea91b.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-3c7ea91b.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>s([["p-88bfdea4",[[6,"ez-grid",{multipleSelection:[4,"multiple-selection"],config:[1040],serverUrl:[1,"server-url"],dataUnit:[16],_paginationInfo:[32],_popUpGridConfig:[32],setColumnsDef:[64],addColumnMenuItem:[64],setColumnsState:[64],setData:[64],getSelection:[64],getColumnsState:[64],getColumns:[64],quickFilter:[64],openGridConfig:[64]}]]],["p-3ae441ec",[[1,"ez-actions-button",{enabled:[516],actions:[1040],size:[513]}]]],["p-719e9ef9",[[1,"ez-dialog",{confirm:[1028],dialogType:[1025,"dialog-type"],message:[1025],opened:[1540],personalizedIconPath:[1025,"personalized-icon-path"],ezTitle:[1025,"ez-title"],handleButtonClick:[64],show:[64]}]]],["p-768053d0",[[1,"ez-filter-input",{label:[1],value:[1537],enabled:[4],loading:[516],errorMessage:[1537,"error-message"],restrict:[1],mode:[513],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-a3ff4f0e",[[1,"ez-chip",{label:[513],enabled:[516],removePosition:[513,"remove-position"],mode:[513],value:[1540],setFocus:[64],setBlur:[64]}]]],["p-1cc11468",[[0,"ez-application"]]],["p-fe75f477",[[1,"ez-card-item",{item:[16]}]]],["p-ed2135a5",[[1,"ez-loading-bar",{_showLoading:[32],hide:[64],show:[64]}]]],["p-e7d03a0d",[[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"],updatePosition:[64],show:[64],hide:[64]}]]],["p-cccd8cde",[[1,"ez-popup",{size:[1],opened:[1540],useHeader:[1540,"use-header"],ezTitle:[1,"ez-title"]}]]],["p-d0671e14",[[1,"ez-radio-button",{value:[1544],options:[1040],enabled:[516],label:[513],direction:[1537]}]]],["p-5c721278",[[1,"ez-scroller",{direction:[1]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["p-b4ad3b15",[[1,"ez-toast",{message:[1025],fadeTime:[1026,"fade-time"],useIcon:[1028,"use-icon"],canClose:[1028,"can-close"],show:[64]}]]],["p-ed835b36",[[0,"ez-view-stack",{show:[64],getSelectedIndex:[64]}]]],["p-6cfe20a0",[[2,"ez-grid-config",{selectedTab:[1025,"selected-tab"],columns:[1040],config:[1040]}]]],["p-03742d3e",[[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],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-b3e978aa",[[1,"ez-date-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],mode:[513],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-15d18ece",[[1,"ez-time-input",{label:[513],value:[1026],enabled:[516],errorMessage:[1537,"error-message"],showSeconds:[516,"show-seconds"],mode:[513],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-aba3fa6c",[[1,"ez-collapsible-box",{value:[1540],label:[513],headerSize:[513,"header-size"],iconPlacement:[513,"icon-placement"],stretchTitle:[516,"stretch-title"],showHide:[64]}]]],["p-b901ba02",[[1,"ez-number-input",{label:[1],value:[1538],enabled:[4],errorMessage:[1537,"error-message"],precision:[2],prettyPrecision:[2,"pretty-precision"],mode:[513],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-7c227b86",[[1,"ez-modal",{modalSize:[1,"modal-size"],align:[1],opened:[1028],closeEsc:[4,"close-esc"],closeOutsideClick:[4,"close-outside-click"]}]]],["p-81eb2738",[[1,"ez-list",{dataSource:[1040],useGroups:[1540,"use-groups"],ezDraggable:[1028,"ez-draggable"],ezSelectable:[1028,"ez-selectable"],itemSlotBuilder:[1040],_listItems:[32],_listGroupItems:[32],clearHistory:[64],scrollToTop:[64],setSelection:[64],getSelection:[64],getList:[64]}]]],["p-b2cf7db2",[[1,"ez-calendar",{value:[1040],floating:[516],time:[516],showSeconds:[516,"show-seconds"],show:[64],fitVertical:[64],hide:[64]}]]],["p-3ffdde40",[[1,"ez-date-time-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],showSeconds:[516,"show-seconds"],mode:[513],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-a27dafa4",[[1,"ez-text-area",{label:[513],value:[1537],enabled:[516],loading:[516],errorMessage:[1537,"error-message"],rows:[1538],canShowError:[516,"can-show-error"],mode:[513],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-72ab066f",[[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]}]]],["p-e59adce6",[[1,"ez-check",{label:[513],value:[1540],enabled:[1540],mode:[513],getMode:[64],setFocus:[64]}]]],["p-e0f06d73",[[1,"ez-tabselector",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1]}]]],["p-ec9decf2",[[1,"ez-icon",{size:[513],href:[513],iconName:[513,"icon-name"]}]]],["p-47e06040",[[0,"ez-form",{dataUnit:[1040],config:[16],recordsValidator:[16],submit:[64],cancel:[64],validate:[64]}]]],["p-cf283c4a",[[1,"ez-button",{label:[513],enabled:[516],mode:[513],image:[513],iconName:[513,"icon-name"],size:[513],setFocus:[64],setBlur:[64]}]]],["p-416bedbe",[[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],mode:[513],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-7fe1ac9a",[[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"],suppressSearch:[4,"suppress-search"],optionLoader:[16],suppressEmptyOption:[4,"suppress-empty-option"],canShowError:[516,"can-show-error"],mode:[513],_preSelection:[32],_visibleOptions:[32],_startLoading:[32],_showLoading:[32],_criteria:[32],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-9b1700f7",[[1,"ez-select-box",{selectedOption:[1,"selected-option"]}]]]],e)));
|