@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-76031.0 → 0.0.0-bugfix-dev-KB-80711.0
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/{CSSVarsUtils-f20973d1.js → CSSVarsUtils-10c9d5b4.js} +0 -1
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +3 -2
- package/dist/cjs/ez-date-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-filter-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-form-view.cjs.entry.js +10 -10
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +5 -2
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-search.cjs.entry.js +3 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -4
- package/dist/cjs/ez-text-area.cjs.entry.js +2 -2
- package/dist/cjs/ez-text-input.cjs.entry.js +2 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +3 -2
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +7 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +20 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +20 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +20 -1
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +20 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +4 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +5 -2
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -1
- package/dist/collection/components/ez-list/ez-list.css +3 -3
- package/dist/collection/components/ez-number-input/ez-number-input.js +20 -1
- package/dist/collection/components/ez-search/ez-search.js +20 -1
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +1 -3
- package/dist/collection/components/ez-text-area/ez-text-area.css +1 -5
- package/dist/collection/components/ez-text-area/ez-text-area.js +2 -2
- package/dist/collection/components/ez-text-input/ez-text-input.js +20 -1
- package/dist/collection/components/ez-time-input/ez-time-input.js +20 -1
- package/dist/collection/utils/CSSVarsUtils.js +0 -1
- package/dist/collection/utils/form/FormMetadata.js +1 -1
- package/dist/custom-elements/index.js +51 -37
- package/dist/esm/{CSSVarsUtils-acba92d7.js → CSSVarsUtils-71ce76be.js} +0 -1
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +3 -2
- package/dist/esm/ez-date-input.entry.js +3 -2
- package/dist/esm/ez-date-time-input.entry.js +3 -2
- package/dist/esm/ez-filter-input.entry.js +3 -2
- package/dist/esm/ez-form-view.entry.js +10 -10
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +5 -2
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +3 -2
- package/dist/esm/ez-search.entry.js +3 -2
- package/dist/esm/ez-split-item.entry.js +2 -4
- package/dist/esm/ez-text-area.entry.js +2 -2
- package/dist/esm/ez-text-input.entry.js +2 -1
- package/dist/esm/ez-time-input.entry.js +3 -2
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +7 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-14b769d7.entry.js +1 -0
- package/dist/ezui/p-16e612fc.entry.js +1 -0
- package/dist/ezui/{p-35d467a8.entry.js → p-1ab96710.entry.js} +1 -1
- package/dist/ezui/p-2475fd6e.entry.js +1 -0
- package/dist/ezui/p-35464ae8.entry.js +1 -0
- package/dist/ezui/{p-cf87aacb.entry.js → p-3e8b13fb.entry.js} +1 -1
- package/dist/ezui/p-3f2dd525.entry.js +1 -0
- package/dist/ezui/p-50d83a46.entry.js +1 -0
- package/dist/ezui/p-654b3f99.entry.js +1 -0
- package/dist/ezui/p-66924de6.entry.js +1 -0
- package/dist/ezui/p-6f22a385.entry.js +1 -0
- package/dist/ezui/p-9e11fc7b.js +1 -0
- package/dist/ezui/{p-b6597f49.entry.js → p-aee9c4ef.entry.js} +1 -1
- package/dist/ezui/p-b6a4e6de.entry.js +1 -0
- package/dist/ezui/{p-556468d9.entry.js → p-ca6340a9.entry.js} +1 -1
- package/dist/ezui/{p-354abfe8.entry.js → p-d0ca26fe.entry.js} +1 -1
- package/dist/ezui/p-e3e3fd7a.entry.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +4 -0
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +4 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
- package/dist/types/components/ez-search/ez-search.d.ts +4 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +0 -1
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
- package/dist/types/components.d.ts +64 -0
- package/package.json +1 -1
- package/dist/ezui/p-0faf71c5.entry.js +0 -1
- package/dist/ezui/p-17de16e5.entry.js +0 -1
- package/dist/ezui/p-20c024f7.entry.js +0 -1
- package/dist/ezui/p-3429080c.entry.js +0 -1
- package/dist/ezui/p-7a171eae.entry.js +0 -1
- package/dist/ezui/p-ae098837.entry.js +0 -1
- package/dist/ezui/p-b26f6c5b.entry.js +0 -1
- package/dist/ezui/p-c1527804.entry.js +0 -1
- package/dist/ezui/p-d9548bdf.entry.js +0 -1
- package/dist/ezui/p-e92b8a2c.entry.js +0 -1
- package/dist/ezui/p-ec7db713.js +0 -1
- package/dist/ezui/p-fd0a19d6.entry.js +0 -1
|
@@ -17,6 +17,7 @@ export class EzNumberInput {
|
|
|
17
17
|
this.prettyPrecision = undefined;
|
|
18
18
|
this.mode = "regular";
|
|
19
19
|
this.autoFocus = false;
|
|
20
|
+
this.noMargin = false;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Aplica o foco no campo.
|
|
@@ -175,7 +176,7 @@ export class EzNumberInput {
|
|
|
175
176
|
if (this.allowNegative) {
|
|
176
177
|
restrict += '-';
|
|
177
178
|
}
|
|
178
|
-
return (h("ez-text-input", { class: "number__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: restrict, enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, value: this._value }));
|
|
179
|
+
return (h("ez-text-input", { class: "number__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: restrict, enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, value: this._value, noMargin: this.noMargin }));
|
|
179
180
|
}
|
|
180
181
|
static get is() { return "ez-number-input"; }
|
|
181
182
|
static get encapsulation() { return "shadow"; }
|
|
@@ -365,6 +366,24 @@ export class EzNumberInput {
|
|
|
365
366
|
"attribute": "auto-focus",
|
|
366
367
|
"reflect": false,
|
|
367
368
|
"defaultValue": "false"
|
|
369
|
+
},
|
|
370
|
+
"noMargin": {
|
|
371
|
+
"type": "boolean",
|
|
372
|
+
"mutable": false,
|
|
373
|
+
"complexType": {
|
|
374
|
+
"original": "boolean",
|
|
375
|
+
"resolved": "boolean",
|
|
376
|
+
"references": {}
|
|
377
|
+
},
|
|
378
|
+
"required": false,
|
|
379
|
+
"optional": false,
|
|
380
|
+
"docs": {
|
|
381
|
+
"tags": [],
|
|
382
|
+
"text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
|
|
383
|
+
},
|
|
384
|
+
"attribute": "no-margin",
|
|
385
|
+
"reflect": false,
|
|
386
|
+
"defaultValue": "false"
|
|
368
387
|
}
|
|
369
388
|
};
|
|
370
389
|
}
|
|
@@ -36,6 +36,7 @@ export class EzSearch {
|
|
|
36
36
|
this.listOptionsPosition = undefined;
|
|
37
37
|
this.isTextSearch = false;
|
|
38
38
|
this.ignoreLimitCharsToSearch = false;
|
|
39
|
+
this.noMargin = false;
|
|
39
40
|
this.options = undefined;
|
|
40
41
|
this.suppressSearch = false;
|
|
41
42
|
this.ensureClearButtonVisible = false;
|
|
@@ -722,7 +723,7 @@ export class EzSearch {
|
|
|
722
723
|
render() {
|
|
723
724
|
var _a;
|
|
724
725
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
725
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
|
|
726
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, noMargin: this.noMargin }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
|
|
726
727
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
727
728
|
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
728
729
|
&& this._visibleOptions.length === 0
|
|
@@ -1043,6 +1044,24 @@ export class EzSearch {
|
|
|
1043
1044
|
"reflect": false,
|
|
1044
1045
|
"defaultValue": "false"
|
|
1045
1046
|
},
|
|
1047
|
+
"noMargin": {
|
|
1048
|
+
"type": "boolean",
|
|
1049
|
+
"mutable": false,
|
|
1050
|
+
"complexType": {
|
|
1051
|
+
"original": "boolean",
|
|
1052
|
+
"resolved": "boolean",
|
|
1053
|
+
"references": {}
|
|
1054
|
+
},
|
|
1055
|
+
"required": false,
|
|
1056
|
+
"optional": false,
|
|
1057
|
+
"docs": {
|
|
1058
|
+
"tags": [],
|
|
1059
|
+
"text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
|
|
1060
|
+
},
|
|
1061
|
+
"attribute": "no-margin",
|
|
1062
|
+
"reflect": false,
|
|
1063
|
+
"defaultValue": "false"
|
|
1064
|
+
},
|
|
1046
1065
|
"options": {
|
|
1047
1066
|
"type": "unknown",
|
|
1048
1067
|
"mutable": true,
|
|
@@ -12,15 +12,13 @@ export class SplitItem {
|
|
|
12
12
|
* Alterna a visibilidade do painel.
|
|
13
13
|
*/
|
|
14
14
|
toggleExpandItem() {
|
|
15
|
-
var _a, _b;
|
|
16
15
|
this._expanded = !this._expanded;
|
|
17
|
-
(_b = (_a = this.expandButtonRef.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) === null || _b === void 0 ? void 0 : _b.blur();
|
|
18
16
|
}
|
|
19
17
|
componentDidLoad() {
|
|
20
18
|
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
21
19
|
}
|
|
22
20
|
render() {
|
|
23
|
-
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--small ez-margin--small", title: this.label }, this.label))), h("div", { class: "ez-split-item--header-buttons" }, h("slot", { name: "rightButtons" }), this.enableExpand && (h("ez-button", {
|
|
21
|
+
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--small ez-margin--small", title: this.label }, this.label))), h("div", { class: "ez-split-item--header-buttons" }, h("slot", { name: "rightButtons" }), this.enableExpand && (h("ez-button", { size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })))), h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, h("slot", null))));
|
|
24
22
|
}
|
|
25
23
|
static get is() { return "ez-split-item"; }
|
|
26
24
|
static get originalStyleUrls() {
|
|
@@ -84,7 +84,6 @@ textarea {
|
|
|
84
84
|
width: 100%;
|
|
85
85
|
padding: 0;
|
|
86
86
|
background: none;
|
|
87
|
-
min-height: 42px;
|
|
88
87
|
|
|
89
88
|
/*public*/
|
|
90
89
|
font-weight: var(--text-area--font-weight);
|
|
@@ -145,9 +144,6 @@ textarea::-webkit-scrollbar-thumb:horizontal:active {
|
|
|
145
144
|
.textarea {
|
|
146
145
|
/*private*/
|
|
147
146
|
width: 100%;
|
|
148
|
-
min-height: 42px;
|
|
149
|
-
max-width: 100%;
|
|
150
|
-
|
|
151
147
|
box-sizing: border-box;
|
|
152
148
|
padding-left: var(--space--medium);
|
|
153
149
|
padding-right: var(--space--extra-small);
|
|
@@ -167,7 +163,7 @@ textarea::-webkit-scrollbar-thumb:horizontal:active {
|
|
|
167
163
|
}
|
|
168
164
|
|
|
169
165
|
.textarea--resizable {
|
|
170
|
-
resize:
|
|
166
|
+
resize: both;
|
|
171
167
|
}
|
|
172
168
|
|
|
173
169
|
.textarea--focus {
|
|
@@ -11,7 +11,7 @@ export class EzTextArea {
|
|
|
11
11
|
this.rows = 4;
|
|
12
12
|
this.canShowError = true;
|
|
13
13
|
this.mode = "regular";
|
|
14
|
-
this.enableResize =
|
|
14
|
+
this.enableResize = false;
|
|
15
15
|
this.autoRows = false;
|
|
16
16
|
this.autoFocus = false;
|
|
17
17
|
}
|
|
@@ -371,7 +371,7 @@ export class EzTextArea {
|
|
|
371
371
|
},
|
|
372
372
|
"attribute": "enable-resize",
|
|
373
373
|
"reflect": true,
|
|
374
|
-
"defaultValue": "
|
|
374
|
+
"defaultValue": "false"
|
|
375
375
|
},
|
|
376
376
|
"autoRows": {
|
|
377
377
|
"type": "boolean",
|
|
@@ -15,6 +15,7 @@ export class EzTextInput {
|
|
|
15
15
|
this.noBorder = false;
|
|
16
16
|
this.password = false;
|
|
17
17
|
this.autoFocus = false;
|
|
18
|
+
this.noMargin = false;
|
|
18
19
|
this.hasRightSlotContent = false;
|
|
19
20
|
}
|
|
20
21
|
observeErrorMessage() {
|
|
@@ -334,7 +335,7 @@ export class EzTextInput {
|
|
|
334
335
|
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
335
336
|
return (h(Host, { style: this._hostElement.classList.contains("grid_editor") ? { "height": "100%" } : null }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
|
|
336
337
|
h("label", { ref: (el) => this._labelElem = el, class: `${this.enabled ? "input__label" : "input__label input__label--disabled"} ${this.errorMessage ? "hasError" : ""}`, onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
337
|
-
: null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: `${this.mode === "slim" ? "input--slim" : ""}`, placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.mask && this.cleanValueMask ? this.applyMask(this.value) : this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), this.canShowError && this.mode != "slim" && this.errorMessage &&
|
|
338
|
+
: null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: `${this.mode === "slim" ? "input--slim" : ""} ${this.noMargin ? "no--margin" : ""}`, placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.mask && this.cleanValueMask ? this.applyMask(this.value) : this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), this.canShowError && this.mode != "slim" && this.errorMessage &&
|
|
338
339
|
h("ez-icon", { class: `tooltip-icon ${this.errorMessage ? "hasError" : ""} ${this.hasRightSlotContent ? "rightIconSlot" : ""}`, "data-element-id": ElementIDUtils.getInternalIDInfo("tooltip-icon"), ref: (el) => this._tooltipIconElem = el, iconName: "alert-circle" }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }, " ")));
|
|
339
340
|
}
|
|
340
341
|
static get is() { return "ez-text-input"; }
|
|
@@ -561,6 +562,24 @@ export class EzTextInput {
|
|
|
561
562
|
"attribute": "auto-focus",
|
|
562
563
|
"reflect": false,
|
|
563
564
|
"defaultValue": "false"
|
|
565
|
+
},
|
|
566
|
+
"noMargin": {
|
|
567
|
+
"type": "boolean",
|
|
568
|
+
"mutable": false,
|
|
569
|
+
"complexType": {
|
|
570
|
+
"original": "boolean",
|
|
571
|
+
"resolved": "boolean",
|
|
572
|
+
"references": {}
|
|
573
|
+
},
|
|
574
|
+
"required": false,
|
|
575
|
+
"optional": false,
|
|
576
|
+
"docs": {
|
|
577
|
+
"tags": [],
|
|
578
|
+
"text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
|
|
579
|
+
},
|
|
580
|
+
"attribute": "no-margin",
|
|
581
|
+
"reflect": false,
|
|
582
|
+
"defaultValue": "false"
|
|
564
583
|
}
|
|
565
584
|
};
|
|
566
585
|
}
|
|
@@ -11,6 +11,7 @@ export class EzTimeInput {
|
|
|
11
11
|
this.mode = "regular";
|
|
12
12
|
this.canShowError = true;
|
|
13
13
|
this.autoFocus = false;
|
|
14
|
+
this.noMargin = false;
|
|
14
15
|
}
|
|
15
16
|
observeErrorMessage() {
|
|
16
17
|
var _a;
|
|
@@ -148,7 +149,7 @@ export class EzTimeInput {
|
|
|
148
149
|
}
|
|
149
150
|
render() {
|
|
150
151
|
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
151
|
-
return (h(Host, null, h("ez-text-input", { class: "time__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
|
|
152
|
+
return (h(Host, null, h("ez-text-input", { class: "time__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, noMargin: this.noMargin }, h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
|
|
152
153
|
}
|
|
153
154
|
static get is() { return "ez-time-input"; }
|
|
154
155
|
static get encapsulation() { return "shadow"; }
|
|
@@ -305,6 +306,24 @@ export class EzTimeInput {
|
|
|
305
306
|
"attribute": "auto-focus",
|
|
306
307
|
"reflect": false,
|
|
307
308
|
"defaultValue": "false"
|
|
309
|
+
},
|
|
310
|
+
"noMargin": {
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"mutable": false,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "boolean",
|
|
315
|
+
"resolved": "boolean",
|
|
316
|
+
"references": {}
|
|
317
|
+
},
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": false,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [],
|
|
322
|
+
"text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento."
|
|
323
|
+
},
|
|
324
|
+
"attribute": "no-margin",
|
|
325
|
+
"reflect": false,
|
|
326
|
+
"defaultValue": "false"
|
|
308
327
|
}
|
|
309
328
|
};
|
|
310
329
|
}
|
|
@@ -28,7 +28,6 @@ export default class CSSVarsUtils {
|
|
|
28
28
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--border-color');
|
|
29
29
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__icon--width');
|
|
30
30
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--icon-color');
|
|
31
|
-
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__margin-bottom');
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
static applyVarsButton(host, child) {
|
|
@@ -97,7 +97,7 @@ export const buildFormMetadata = (config, dataUnit, includeDetails = false) => {
|
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
const descriptor = dataUnit.getField(field.name);
|
|
100
|
-
const fieldVisible =
|
|
100
|
+
const fieldVisible = descriptor.visible == undefined || descriptor.visible === true;
|
|
101
101
|
if (descriptor && fieldVisible && tabConfig.visible) {
|
|
102
102
|
if (!sheets.has(tabConfig)) {
|
|
103
103
|
sheets.set(tabConfig, []);
|