@sankhyalabs/ezui 1.1.145 → 1.1.146
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-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +2 -1
- package/dist/collection/components/ez-form/ez-form.js +1 -1
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +2 -1
- package/dist/custom-elements/index.js +3 -2
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +2 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-6816c9ee.entry.js → p-3372d9a7.entry.js} +1 -1
- package/dist/ezui/{p-c77c0022.entry.js → p-8f4fac31.entry.js} +1 -1
- package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +1 -0
- package/package.json +3 -3
|
@@ -856,7 +856,7 @@ let EzForm = class {
|
|
|
856
856
|
return result;
|
|
857
857
|
}
|
|
858
858
|
processMetadata() {
|
|
859
|
-
if (!this.isStatic()) {
|
|
859
|
+
if (!this.isStatic() && this.dataUnit) {
|
|
860
860
|
const metadata = this.config && this.config.length > 0 ? buildFromConfig(this.config, this.dataUnit) : buildFromDataUnit(this.dataUnit);
|
|
861
861
|
this._store.dispatch(loadMetadata(metadata));
|
|
862
862
|
}
|
|
@@ -110537,6 +110537,7 @@ class AgGridController {
|
|
|
110537
110537
|
|
|
110538
110538
|
class DataUnitBridge {
|
|
110539
110539
|
constructor(gridController, dataUnit) {
|
|
110540
|
+
this.RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
|
|
110540
110541
|
this.processAction = (action) => {
|
|
110541
110542
|
switch (action.type) {
|
|
110542
110543
|
case core.Action.METADATA_LOADED:
|
|
@@ -110573,7 +110574,7 @@ class DataUnitBridge {
|
|
|
110573
110574
|
if (this._dataUnit.metadata) {
|
|
110574
110575
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
110575
110576
|
var _a;
|
|
110576
|
-
if (f.visible !== false) {
|
|
110577
|
+
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
110577
110578
|
const props = new Map();
|
|
110578
110579
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
110579
110580
|
for (const value in properties) {
|
|
@@ -85,7 +85,7 @@ export class EzForm {
|
|
|
85
85
|
return result;
|
|
86
86
|
}
|
|
87
87
|
processMetadata() {
|
|
88
|
-
if (!this.isStatic()) {
|
|
88
|
+
if (!this.isStatic() && this.dataUnit) {
|
|
89
89
|
const metadata = this.config && this.config.length > 0 ? buildFromConfig(this.config, this.dataUnit) : buildFromDataUnit(this.dataUnit);
|
|
90
90
|
this._store.dispatch(loadMetadata(metadata));
|
|
91
91
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Action } from "@sankhyalabs/core";
|
|
2
2
|
export default class DataUnitBridge {
|
|
3
3
|
constructor(gridController, dataUnit) {
|
|
4
|
+
this.RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
|
|
4
5
|
this.processAction = (action) => {
|
|
5
6
|
switch (action.type) {
|
|
6
7
|
case Action.METADATA_LOADED:
|
|
@@ -37,7 +38,7 @@ export default class DataUnitBridge {
|
|
|
37
38
|
if (this._dataUnit.metadata) {
|
|
38
39
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
39
40
|
var _a;
|
|
40
|
-
if (f.visible !== false) {
|
|
41
|
+
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
41
42
|
const props = new Map();
|
|
42
43
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
43
44
|
for (const value in properties) {
|
|
@@ -2200,7 +2200,7 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
2200
2200
|
return result;
|
|
2201
2201
|
}
|
|
2202
2202
|
processMetadata() {
|
|
2203
|
-
if (!this.isStatic()) {
|
|
2203
|
+
if (!this.isStatic() && this.dataUnit) {
|
|
2204
2204
|
const metadata = this.config && this.config.length > 0 ? buildFromConfig(this.config, this.dataUnit) : buildFromDataUnit(this.dataUnit);
|
|
2205
2205
|
this._store.dispatch(loadMetadata(metadata));
|
|
2206
2206
|
}
|
|
@@ -112800,6 +112800,7 @@ class AgGridController {
|
|
|
112800
112800
|
|
|
112801
112801
|
class DataUnitBridge {
|
|
112802
112802
|
constructor(gridController, dataUnit) {
|
|
112803
|
+
this.RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
|
|
112803
112804
|
this.processAction = (action) => {
|
|
112804
112805
|
switch (action.type) {
|
|
112805
112806
|
case Action.METADATA_LOADED:
|
|
@@ -112836,7 +112837,7 @@ class DataUnitBridge {
|
|
|
112836
112837
|
if (this._dataUnit.metadata) {
|
|
112837
112838
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
112838
112839
|
var _a;
|
|
112839
|
-
if (f.visible !== false) {
|
|
112840
|
+
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
112840
112841
|
const props = new Map();
|
|
112841
112842
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
112842
112843
|
for (const value in properties) {
|
|
@@ -852,7 +852,7 @@ let EzForm = class {
|
|
|
852
852
|
return result;
|
|
853
853
|
}
|
|
854
854
|
processMetadata() {
|
|
855
|
-
if (!this.isStatic()) {
|
|
855
|
+
if (!this.isStatic() && this.dataUnit) {
|
|
856
856
|
const metadata = this.config && this.config.length > 0 ? buildFromConfig(this.config, this.dataUnit) : buildFromDataUnit(this.dataUnit);
|
|
857
857
|
this._store.dispatch(loadMetadata(metadata));
|
|
858
858
|
}
|
|
@@ -110533,6 +110533,7 @@ class AgGridController {
|
|
|
110533
110533
|
|
|
110534
110534
|
class DataUnitBridge {
|
|
110535
110535
|
constructor(gridController, dataUnit) {
|
|
110536
|
+
this.RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
|
|
110536
110537
|
this.processAction = (action) => {
|
|
110537
110538
|
switch (action.type) {
|
|
110538
110539
|
case Action.METADATA_LOADED:
|
|
@@ -110569,7 +110570,7 @@ class DataUnitBridge {
|
|
|
110569
110570
|
if (this._dataUnit.metadata) {
|
|
110570
110571
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
110571
110572
|
var _a;
|
|
110572
|
-
if (f.visible !== false) {
|
|
110573
|
+
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
110573
110574
|
const props = new Map();
|
|
110574
110575
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
110575
110576
|
for (const value in properties) {
|
package/dist/ezui/ezui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as s}from"./p-139ed2f6.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>s([["p-4c3cd534",[[0,"test-du",{isDirty:[32]}]]],["p-fc9b9487",[[1,"ez-filter-input",{label:[1],value:[1537],enabled:[4],loading:[516],errorMessage:[1537,"error-message"],restrict:[1],mode:[513],setFocus:[64],setBlur:[64]}]]],["p-2c4372a4",[[0,"ez-application"]]],["p-5a05f1ea",[[1,"ez-card-item",{item:[16]}]]],["p-6287fc90",[[1,"ez-loading-bar",{_showLoading:[32],hide:[64],show:[64]}]]],["p-8be1a4d6",[[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-94ed1ae6",[[1,"ez-toast",{message:[1025],fadeTime:[1026,"fade-time"],useIcon:[1028,"use-icon"],canClose:[1028,"can-close"],show:[64]}]]],["p-517d7759",[[0,"ez-view-stack",{show:[64]}]]],["p-c2de757f",[[1,"ez-modal",{modalSize:[1,"modal-size"],align:[1],opened:[1028],closeEsc:[4,"close-esc"],closeOutsideClick:[4,"close-outside-click"]}]]],["p-024df41e",[[1,"ez-collapsible-box",{value:[1540],label:[513],headerSize:[513,"header-size"],iconPlacement:[513,"icon-placement"],stretchTitle:[516,"stretch-title"],showHide:[64]}]]],["p-ecee9d8d",[[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-c15d4d6f",[[1,"ez-button",{label:[513],enabled:[516],mode:[513],image:[513],iconName:[513,"icon-name"],size:[513],setFocus:[64],setBlur:[64]}]]],["p-
|
|
1
|
+
import{p as e,b as s}from"./p-139ed2f6.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>s([["p-4c3cd534",[[0,"test-du",{isDirty:[32]}]]],["p-fc9b9487",[[1,"ez-filter-input",{label:[1],value:[1537],enabled:[4],loading:[516],errorMessage:[1537,"error-message"],restrict:[1],mode:[513],setFocus:[64],setBlur:[64]}]]],["p-2c4372a4",[[0,"ez-application"]]],["p-5a05f1ea",[[1,"ez-card-item",{item:[16]}]]],["p-6287fc90",[[1,"ez-loading-bar",{_showLoading:[32],hide:[64],show:[64]}]]],["p-8be1a4d6",[[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-94ed1ae6",[[1,"ez-toast",{message:[1025],fadeTime:[1026,"fade-time"],useIcon:[1028,"use-icon"],canClose:[1028,"can-close"],show:[64]}]]],["p-517d7759",[[0,"ez-view-stack",{show:[64]}]]],["p-c2de757f",[[1,"ez-modal",{modalSize:[1,"modal-size"],align:[1],opened:[1028],closeEsc:[4,"close-esc"],closeOutsideClick:[4,"close-outside-click"]}]]],["p-024df41e",[[1,"ez-collapsible-box",{value:[1540],label:[513],headerSize:[513,"header-size"],iconPlacement:[513,"icon-placement"],stretchTitle:[516,"stretch-title"],showHide:[64]}]]],["p-ecee9d8d",[[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-c15d4d6f",[[1,"ez-button",{label:[513],enabled:[516],mode:[513],image:[513],iconName:[513,"icon-name"],size:[513],setFocus:[64],setBlur:[64]}]]],["p-3372d9a7",[[6,"ez-grid",{multipleSelection:[4,"multiple-selection"],config:[1040],pageSize:[2,"page-size"],serverUrl:[1,"server-url"],dataUnit:[16],_navigationHasPrevious:[32],_navigationHasNext:[32],_navigationFirstRow:[32],_navigationLastRow:[32],_navigationTotalRows:[32],_popUpGridConfig:[32],setColumnsDef:[64],addColumnMenuItem:[64],setColumnsState:[64],setData:[64],getSelection:[64],getColumnsState:[64],getColumns:[64],refresh:[64],quickFilter:[64],nextPage:[64],previousPage:[64],hasNextPage:[64],hasPreviousPage:[64],isLastOfPage:[64],isFirstOfPage:[64],nextRecord:[64],previousRecord:[64],hasNextRecord:[64],hasPreviousRecord:[64],openGridConfig:[64]}]]],["p-33cb1991",[[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-dd723a09",[[1,"ez-chip",{label:[513],enabled:[516],removePosition:[513,"remove-position"],mode:[513],value:[1540],setFocus:[64],setBlur:[64]}]]],["p-294de17e",[[1,"ez-popup",{size:[1],opened:[1540],useHeader:[1540,"use-header"],ezTitle:[1,"ez-title"]}]]],["p-140f7085",[[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],slaveMode:[516,"slave-mode"],setFocus:[64],setBlur:[64]}]]],["p-727a39e5",[[1,"select-box",{selectedOption:[1,"selected-option"]}]]],["p-793a28cc",[[2,"grid-config",{selectedTab:[1025,"selected-tab"],columns:[1040],config:[1040]}]]],["p-6d4b1628",[[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]}]]],["p-c246e251",[[1,"ez-calendar",{value:[1040],floating:[516],time:[516],showSeconds:[516,"show-seconds"],show:[64],fitVertical:[64],hide:[64]}]]],["p-49fdfa4b",[[1,"ez-date-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],mode:[513],setFocus:[64],setBlur:[64]}]]],["p-ec21ecce",[[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]}]]],["p-4fdceb7d",[[1,"ez-time-input",{label:[513],viewValue:[1537,"view-value"],value:[1026],enabled:[516],errorMessage:[1537,"error-message"],showSeconds:[516,"show-seconds"],mode:[513],setFocus:[64],setBlur:[64]}]]],["p-24e98dc1",[[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]}]]],["p-b524dfca",[[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]}]]],["p-23369322",[[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-b65e22a1",[[1,"ez-check",{label:[513],value:[1540],enabled:[1540],mode:[513],getMode:[64],setFocus:[64]}]]],["p-2b017e4c",[[1,"ez-tabselector",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1]}]]],["p-317250bc",[[1,"ez-icon",{size:[513],href:[513],iconName:[513,"icon-name"]}]]],["p-6395ed55",[[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],setFocus:[64],setBlur:[64]}]]],["p-8f4fac31",[[0,"ez-form",{dataUnit:[1040],config:[16],submit:[64],cancel:[64],validate:[64]}]]]],e)));
|