@sankhyalabs/ezui 1.1.111 → 1.1.114
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 +4 -4
- package/dist/cjs/ez-grid.cjs.entry.js +74 -12
- package/dist/cjs/ez-search.cjs.entry.js +5 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +2 -2
- package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +2 -2
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +14 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +60 -11
- package/dist/collection/components/ez-search/ez-search.js +24 -2
- package/dist/custom-elements/index.js +84 -18
- package/dist/esm/ez-form.entry.js +4 -4
- package/dist/esm/ez-grid.entry.js +74 -12
- package/dist/esm/ez-search.entry.js +5 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-3602ab8c.entry.js +1 -0
- package/dist/ezui/{p-a038e7a5.entry.js → p-3cd17150.entry.js} +1 -1
- package/dist/ezui/p-fb73f557.entry.js +1 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.d.ts +2 -1
- package/dist/types/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +16 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +5 -0
- package/dist/types/components/ez-search/ez-search.d.ts +4 -0
- package/dist/types/components.d.ts +10 -2
- package/package.json +6 -36
- package/dist/ezui/p-3662c09e.entry.js +0 -1
- package/dist/ezui/p-3c954800.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as e,g as h}from"./p-89a57641.js";import{C as i}from"./p-d54c157f.js";let o=class{constructor(e){s(this,e),this.ezChange=t(this,"ezChange",7),this.showPopup=t(this,"showPopup",7),this.enabled=!0,this.showSelectedValue=!0,this.showOptionValue=!0,this.suppressEmptyOption=!1}updateValue(){this._comboElement&&(this._comboElement.value=this.value)}async setFocus(){this._comboElement.setFocus()}async setBlur(){this._comboElement.setBlur()}onComboChange(s){s.stopPropagation(),this.value=s.detail,this.ezChange.emit(s.detail)}componentDidLoad(){i.applyVarsTextInput(this._elem,this._comboElement)}render(){return e("ez-combo-box",{ref:s=>this._comboElement=s,value:this.value,label:this.label,enabled:this.enabled,errorMessage:this.errorMessage,optionLoader:this.optionLoader,searchMode:!0,onEzChange:s=>this.onComboChange(s),showSelectedValue:this.showSelectedValue,showOptionValue:this.showOptionValue,suppressEmptyOption:this.suppressEmptyOption})}get _elem(){return h(this)}static get watchers(){return{value:["updateValue"]}}};o.style=":host{width:100%}";export{o as ez_search}
|
|
@@ -57,6 +57,22 @@ export default interface EzGridController {
|
|
|
57
57
|
* as linhas da grade (os dados propriamente ditos).
|
|
58
58
|
*/
|
|
59
59
|
setData(data: Array<any>): void;
|
|
60
|
+
/**
|
|
61
|
+
* Método responsável por adicionar linhas novas
|
|
62
|
+
*/
|
|
63
|
+
addRows(rows: Array<any>): void;
|
|
64
|
+
/**
|
|
65
|
+
* Método responsável por selecionar linhas
|
|
66
|
+
*/
|
|
67
|
+
selectRows(rowIds: Array<string>): void;
|
|
68
|
+
/**
|
|
69
|
+
* Método responsável por remover linhas da grade
|
|
70
|
+
*/
|
|
71
|
+
removeRows(rowIds: Array<string>): void;
|
|
72
|
+
/**
|
|
73
|
+
* Método responsável por alterar o valores nos registros
|
|
74
|
+
*/
|
|
75
|
+
changeValues(changes: any, rowIds?: Array<string>): void;
|
|
60
76
|
/**
|
|
61
77
|
* Método responsável por atualizar as linhas da grade
|
|
62
78
|
*/
|
|
@@ -14,6 +14,7 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
14
14
|
private _pageSize;
|
|
15
15
|
private _serverURL;
|
|
16
16
|
private _dataUnit;
|
|
17
|
+
private _idAttribName;
|
|
17
18
|
constructor(enterprise: boolean);
|
|
18
19
|
getSort(): Array<Sort>;
|
|
19
20
|
initDatagrid(container: HTMLElement, options: EzGridOptions): void;
|
|
@@ -21,6 +22,10 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
21
22
|
private setOptionsPagination;
|
|
22
23
|
private setOptionsSupress;
|
|
23
24
|
setData(data: Array<any>): void;
|
|
25
|
+
addRows(rows: Array<any>): void;
|
|
26
|
+
selectRows(rowIds: Array<string>): void;
|
|
27
|
+
removeRows(rowIds: Array<string>): void;
|
|
28
|
+
changeValues(changes: any, rowIds?: Array<string>): void;
|
|
24
29
|
refresh(): void;
|
|
25
30
|
setColumnsDef(cols: Array<EzGridColumn>, showCheckSelection: boolean): void;
|
|
26
31
|
getColumnsDef(): Array<EzGridColumn>;
|
|
@@ -39,6 +39,10 @@ export declare class EzSearch {
|
|
|
39
39
|
* Ajusta a opção de mostrar o "value" para cada opção.
|
|
40
40
|
*/
|
|
41
41
|
showOptionValue: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Remove a opção vazia da lista de opções
|
|
44
|
+
*/
|
|
45
|
+
suppressEmptyOption: boolean;
|
|
42
46
|
updateValue(): void;
|
|
43
47
|
/**
|
|
44
48
|
* Realiza o foco no componente de pesquisa
|
|
@@ -553,10 +553,14 @@ export namespace Components {
|
|
|
553
553
|
* Ajusta a opção de mostrar o "value" ao selecionar uma opção.
|
|
554
554
|
*/
|
|
555
555
|
"showSelectedValue": boolean;
|
|
556
|
+
/**
|
|
557
|
+
* Remove a opção vazia da lista de opções
|
|
558
|
+
*/
|
|
559
|
+
"suppressEmptyOption": boolean;
|
|
556
560
|
/**
|
|
557
561
|
* Código do registro selecionado
|
|
558
562
|
*/
|
|
559
|
-
"value": Option|string;
|
|
563
|
+
"value": Option | string;
|
|
560
564
|
}
|
|
561
565
|
interface EzTabselector {
|
|
562
566
|
/**
|
|
@@ -1451,10 +1455,14 @@ declare namespace LocalJSX {
|
|
|
1451
1455
|
* Ajusta a opção de mostrar o "value" ao selecionar uma opção.
|
|
1452
1456
|
*/
|
|
1453
1457
|
"showSelectedValue"?: boolean;
|
|
1458
|
+
/**
|
|
1459
|
+
* Remove a opção vazia da lista de opções
|
|
1460
|
+
*/
|
|
1461
|
+
"suppressEmptyOption"?: boolean;
|
|
1454
1462
|
/**
|
|
1455
1463
|
* Código do registro selecionado
|
|
1456
1464
|
*/
|
|
1457
|
-
"value"?: Option|string;
|
|
1465
|
+
"value"?: Option | string;
|
|
1458
1466
|
}
|
|
1459
1467
|
interface EzTabselector {
|
|
1460
1468
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sankhyalabs/ezui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.114",
|
|
4
4
|
"description": "Biblioteca de componentes Sankhya.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/custom-elements/index.js",
|
|
@@ -26,11 +26,12 @@
|
|
|
26
26
|
"generate": "stencil generate",
|
|
27
27
|
"storybook": "npm run start.storybook",
|
|
28
28
|
"build.watch": "stencil build --dev --watch --force-peer-deps",
|
|
29
|
-
"build.css.docs": "
|
|
29
|
+
"build.css.docs": "node docscsstask.js",
|
|
30
30
|
"gulp": "gulp default",
|
|
31
|
-
"link": "node link.js",
|
|
31
|
+
"link": "node scripts/link.js",
|
|
32
32
|
"dev": "run-p storybook build.watch gulp",
|
|
33
|
-
"semantic-release": "semantic-release"
|
|
33
|
+
"semantic-release": "semantic-release",
|
|
34
|
+
"link-dev": "gulp watch-dev"
|
|
34
35
|
},
|
|
35
36
|
"repository": {
|
|
36
37
|
"type": "git",
|
|
@@ -46,8 +47,8 @@
|
|
|
46
47
|
"license": "ISC",
|
|
47
48
|
"dependencies": {},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@sankhyalabs/core": "^1.0.42",
|
|
50
50
|
"@babel/preset-env": "^7.16.11",
|
|
51
|
+
"@sankhyalabs/core": "^1.0.43",
|
|
51
52
|
"@sankhyalabs/docscss": "^1.0.1",
|
|
52
53
|
"@sankhyalabs/ez-design": "^1.0.47",
|
|
53
54
|
"@sankhyalabs/skippeerdeps": "^1.0.2",
|
|
@@ -83,36 +84,5 @@
|
|
|
83
84
|
},
|
|
84
85
|
"peerDependencies": {
|
|
85
86
|
"@sankhyalabs/core": "^1.x"
|
|
86
|
-
},
|
|
87
|
-
"release": {
|
|
88
|
-
"plugins": [
|
|
89
|
-
[
|
|
90
|
-
"@semantic-release/commit-analyzer",
|
|
91
|
-
{
|
|
92
|
-
"preset": "angular",
|
|
93
|
-
"releaseRules": [
|
|
94
|
-
{
|
|
95
|
-
"type": "breaking",
|
|
96
|
-
"scope": "API",
|
|
97
|
-
"release": "major"
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"@semantic-release/release-notes-generator",
|
|
103
|
-
[
|
|
104
|
-
"@semantic-release/npm",
|
|
105
|
-
{
|
|
106
|
-
"npmPublish": true
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
[
|
|
110
|
-
"@semantic-release/gitlab",
|
|
111
|
-
{
|
|
112
|
-
"gitlabUrl": "https://git.sankhya.com.br",
|
|
113
|
-
"gitlabApiPathPrefix": "/api/v4"
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
]
|
|
117
87
|
}
|
|
118
88
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,r as t,f as n,H as r,g as i}from"./p-89a57641.js";import{UserInterface as o,ApplicationContext as a,Action as l,DataUnitAction as s,DataUnit as c}from"@sankhyalabs/core";import{A as d}from"./p-62daf508.js";const u=({name:t,label:n})=>e("div",{class:"col col--sd-12 col--tb-3 padding-horizontal--small"},e("ez-text-input",{label:n,"data-field-name":t,key:t}));function h(t,n,r,i=!1){return e("div",{class:"col col--sd-12 col--tb-3 align--middle padding-horizontal--small padding-bottom--large"},e("ez-check",{enabled:!r,label:n,mode:i?"switch":"regular","data-field-name":t,key:t}))}function f(t,n,r,i,o){return e("div",{class:"col col--sd-12 col--tb-3 padding-horizontal--small"},e("ez-number-input",{enabled:!r,label:n,precision:i,prettyPrecision:o,"data-field-name":t,key:t}))}const b=new Map;b.set(o.LONGTEXT,(({name:t,label:n,readOnly:r})=>e("div",{class:"col col--sd-12 padding-horizontal--small",key:t},e("ez-text-area",{enabled:!r,label:n,"data-field-name":t})))),b.set(o.CHECKBOX,(e=>h(e.name,e.label,e.readOnly,!1))),b.set(o.SWITCH,(e=>h(e.name,e.label,e.readOnly,!0))),b.set(o.OPTIONSELECTOR,(({name:t,label:n,readOnly:r},i)=>{const o=null==i?void 0:i.options;let a;if("string"==typeof o){const e=JSON.parse(o);a=Object.keys(e).map((t=>({value:t,label:e[t]})))}else a=o;return e("div",{class:"col col--sd-12 col--tb-3 padding-horizontal--small"},e("ez-combo-box",{enabled:!r,label:n,"data-field-name":t,key:t,options:a}))})),b.set(o.SEARCH,(({name:t,label:n,readOnly:r})=>e("div",{class:"col col--sd-12 col--tb-3 padding-horizontal--small"},e("ez-search",{enabled:!r,label:n,"data-field-name":t,key:t})))),b.set(o.FILE,(({name:t,label:n,readOnly:r})=>e("div",{class:"col col--sd-12 padding-horizontal--small"},e("ez-upload",{enabled:!r,label:n,urlUpload:"",requestHeaders:"",maxFiles:10,"data-field-name":t,key:t})))),b.set(o.DATE,(({name:t,label:n,readOnly:r})=>e("div",{class:"col col--sd-12 col--tb-3 padding-horizontal--small"},e("ez-date-input",{enabled:!r,label:n,"data-field-name":t,key:t})))),b.set(o.TIME,(({name:t,label:n})=>e("div",{class:"col col--sd-12 col--tb-3 padding-horizontal--small"},e("ez-time-input",{label:n,"data-field-name":t,key:t})))),b.set(o.DATETIME,(({name:t,label:n})=>e("div",{class:"col col--sd-12 col--tb-3 padding-horizontal--small"},e("ez-date-time-input",{label:n,"data-field-name":t,key:t})))),b.set(o.DECIMALNUMBER,(({name:e,label:t,readOnly:n},r)=>{const i=Number((null==r?void 0:r.precision)||2);return f(e,t,n,i,Number((null==r?void 0:r.prettyPrecision)||i))})),b.set(o.INTEGERNUMBER,(({name:e,label:t,readOnly:n})=>f(e,t,n,0,0)));const m=e=>{const t=e.descriptor,n=Object.assign({},e.config);let r,i;return t&&(n.label||(n.label=t.label),n.name||(n.name=t.name),void 0===n.required&&(n.required=t.required),void 0===n.readOnly&&(n.readOnly=t.readOnly),i=t.properties,r=b.get(t.userInterface)),n.required&&(n.label=`* ${n.label} (obrigatório)`),r||(r=u),r(n,i)},p=({source:t})=>"items"in t?e("ez-collapsible-box",{label:t.label},t.items.map((e=>m(e)))):m(t),v=({store:t,source:n})=>e("div",{class:"box__container"},e("div",{class:"row padding-vertical--small"},n.items.map((n=>e(p,{store:t,source:n})))));class y{constructor(){this._sheets=new Map,this._requiredFields=[],this._cleanOnCopyFields=[]}getSheet(e){return this._sheets.get(e)}getAllSheets(){return this._sheets}addSheet(e){this._sheets.set(e.name,e),this._requiredFields=this._requiredFields.concat(e.requiredFields),this._cleanOnCopyFields=this._cleanOnCopyFields.concat(e.cleanOnCopyFields)}getRequiredFields(){return this._requiredFields}getCleanOnCopyFields(){return this._cleanOnCopyFields}}function w(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var g="function"==typeof Symbol&&Symbol.observable||"@@observable",O=function(){return Math.random().toString(36).substring(7).split("").join(".")},E={INIT:"@@redux/INIT"+O(),REPLACE:"@@redux/REPLACE"+O(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+O()}};function z(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function A(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(w(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(w(1));return n(A)(e,t)}if("function"!=typeof e)throw new Error(w(2));var i=e,o=t,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function d(){if(s)throw new Error(w(3));return o}function u(e){if("function"!=typeof e)throw new Error(w(4));if(s)throw new Error(w(5));var t=!0;return c(),l.push(e),function(){if(t){if(s)throw new Error(w(6));t=!1,c();var n=l.indexOf(e);l.splice(n,1),a=null}}}function h(e){if(!z(e))throw new Error(w(7));if(void 0===e.type)throw new Error(w(8));if(s)throw new Error(w(9));try{s=!0,o=i(o,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++)(0,t[n])();return e}function f(e){if("function"!=typeof e)throw new Error(w(10));i=e,h({type:E.REPLACE})}function b(){var e,t=u;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(w(11));function n(){e.next&&e.next(d())}return n(),{unsubscribe:t(n)}}})[g]=function(){return this},e}return h({type:E.INIT}),(r={dispatch:h,subscribe:u,getState:d,replaceReducer:f})[g]=b,r}const _={};function C(e=_,t){switch(t.type){case N.METADATA_LOADED:return Object.assign(Object.assign({},e),{formMetadata:t.payload});case N.CHANGE_TAB:return Object.assign(Object.assign({},e),{currentSheet:t.payload});default:return e}}function j(e){return e.formMetadata}var N;!function(e){e.METADATA_LOADED="FORM/METADATA_LOADED",e.CHANGE_TAB="FORM/CHANGE_TAB"}(N||(N={}));class x{constructor(e){this._fields=new Map,this._dataUnit=e,this._dataUnit.subscribe((()=>{var e;null===(e=this._fields)||void 0===e||e.forEach((e=>{this.updateValue(e.fieldName,e.field)}))}))}bind(e){e.forEach((e=>{const t=e.dataset.fieldName;this.updateBind(t,e),this.updateValue(t,e)}))}updateValue(e,t){t.value=this._dataUnit.getFieldValue(e)}updateBind(e,t){const n=this._fields.get(e);n&&n.destroy(),this._fields.set(e,R.create(e,t,((e,t)=>this.setFieldValue(e,t)))),this.bindSearchOptionsLoader(e,t)}setFieldValue(e,t){0===this._dataUnit.records.length&&this._dataUnit.addRecord(),this._dataUnit.setFieldValue(e,t)}bindSearchOptionsLoader(e,t){if("EZ-SEARCH"===t.nodeName&&void 0===t.optionLoader){const n=a.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");n&&(t.optionLoader=t=>n(t,e,this._dataUnit))}}}class R{destroy(){this.field.removeEventListener(this.eventName,this.eventListener)}static create(e,t,n){const r=new R;return r.fieldName=e,r.field=t,r.eventListener=t=>{n(e,t.detail)},r.eventName="ezChange",r.field.addEventListener(r.eventName,r.eventListener),r}}let k=class{constructor(e){t(this,e)}submit(){return Promise.resolve()}cancel(){return Promise.resolve()}validate(){return new Promise(((e,t)=>{const n=j(this._store.getState()),r=this._staticFields.filter((e=>e.dataset.required)).map((e=>e.dataset.fieldName)).concat(n.getRequiredFields()),i=this.dataUnit.records;for(let e=0;e<i.length;e++)if(!this.validateRequired(r,i[e])){t();break}e()}))}configChanged(){this.processMetadata()}validateRequired(e,t){const n=[];e.forEach((e=>{const r=t[e],i=this._element.querySelector(`[data-field-name=${e}]`);null==r||""===r?(n.push(e),i.errorMessage="Essa informação é obrigatória"):i.errorMessage=""}));const r=0===n.length;return r||d.info("Há pelo menos um campo obrigatório não preenchido."),r}getDynamicContent(){var t;const n=j(this._store.getState());if(!n)return null;const r=(i=null===(t=this._store)||void 0===t?void 0:t.getState()).currentSheet?i.formMetadata.getSheet(i.currentSheet):Array.from(i.formMetadata.getAllSheets().values())[0];var i;if(!r)return null;const o=Array.from(n.getAllSheets().values()),a=[];return o.length>1&&a.push(e("ez-tabselector",{onEzChange:e=>this._store.dispatch(function(e){return{type:N.CHANGE_TAB,payload:e.tabKey}}(e.detail)),selectedTab:r.name},o.map((t=>e("ez-tab",{tabKey:t.name,label:t.label}))))),a.push(e(v,{store:this._store,source:r})),a}processMetadata(){if(!this.isStatic()){const e=this.config&&this.config.length>0?((e,t)=>{const n=new Map,r=[],i=[];e.forEach((e=>{var o;if(!1!==e.visible){const a=function(e,t){return("string"==typeof e?Array.from(t.keys()).find((t=>t.label===e)):e)||{label:e,visible:!0}}(e.tab||"Geral",n),l=t.getField(e.name);if(l&&a.visible){n.has(a)||n.set(a,new Map);const t=n.get(a);(void 0===e.required?l.required:e.required)&&r.push(e.name),(void 0===e.cleanOnCopy?null===(o=l.properties)||void 0===o?void 0:o.cleanOnCopy:e.cleanOnCopy)&&i.push(e.name);const s={config:e,descriptor:l},c=e.group;if(c){const e=`group::${c}`;t.has(e)?t.get(e).items.push(s):t.set(e,{label:c,items:[s]})}else t.set(e.name,s)}}}));const o=new y;return Array.from(n.entries()).sort(((e,t)=>(e[0].order||1e4)-(t[0].order||1e4))).forEach((([e,t])=>{o.addSheet({label:e.label,name:e.label,items:Array.from(t.values()),requiredFields:r,cleanOnCopyFields:i})})),o})(this.config,this.dataUnit):(()=>{var e;const t=this.dataUnit.metadata,n=new y;if(t){const r=null===(e=t.fields)||void 0===e?void 0:e.filter((e=>!1!==e.visible));n.addSheet({label:t.label,name:t.name,items:r.map((e=>({descriptor:e}))),requiredFields:r.filter((e=>e.required)).map((e=>e.name)),cleanOnCopyFields:r.filter((e=>{var t;return null===(t=e.properties)||void 0===t?void 0:t.cleanOnCopy})).map((e=>e.name))})}return n})();this._store.dispatch({type:N.METADATA_LOADED,payload:e})}}isStatic(){var e;return(null===(e=this._staticFields)||void 0===e?void 0:e.length)>0}interceptAction(e){if(e.type===l.RECORDS_COPIED){const t=j(this._store.getState()).getCleanOnCopyFields();if(t)return new s(l.RECORDS_COPIED,e.payload.map((e=>{const n=Object.assign({},e);return t.forEach((e=>delete n[e])),n})))}return e}componentWillLoad(){void 0===this.dataUnit&&(this.dataUnit=new c("ez-form")),this.dataUnit.addInterceptor(this),this.dataUnit.subscribe((e=>{e.type===l.METADATA_LOADED&&this.processMetadata()})),this._dataBinder=new x(this.dataUnit),this._store=A(C),this._store.subscribe((()=>n(this))),this._staticFields=Array.from(this._element.querySelectorAll("[data-field-name]")),this.processMetadata()}componentDidRender(){this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")))}render(){return e(r,null,this.isStatic()?null:this.getDynamicContent())}get _element(){return i(this)}static get watchers(){return{config:["configChanged"]}}};k.style="ez-form{display:flex;flex-direction:column;width:100%}";export{k as ez_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as e,g as h}from"./p-89a57641.js";import{C as i}from"./p-d54c157f.js";let a=class{constructor(e){s(this,e),this.ezChange=t(this,"ezChange",7),this.showPopup=t(this,"showPopup",7),this.enabled=!0,this.showSelectedValue=!0,this.showOptionValue=!0}updateValue(){this._comboElement&&(this._comboElement.value=this.value)}async setFocus(){this._comboElement.setFocus()}async setBlur(){this._comboElement.setBlur()}onComboChange(s){s.stopPropagation(),this.value=s.detail,this.ezChange.emit(s.detail)}componentDidLoad(){i.applyVarsTextInput(this._elem,this._comboElement)}render(){return e("ez-combo-box",{ref:s=>this._comboElement=s,value:this.value,label:this.label,enabled:this.enabled,errorMessage:this.errorMessage,optionLoader:this.optionLoader,searchMode:!0,onEzChange:s=>this.onComboChange(s),showSelectedValue:this.showSelectedValue,showOptionValue:this.showOptionValue})}get _elem(){return h(this)}static get watchers(){return{value:["updateValue"]}}};a.style=":host{width:100%}";export{a as ez_search}
|