@sankhyalabs/ezui 1.1.161 → 1.2.0-beta.1
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/{ApplicationUtils-4a223c7a.js → ApplicationUtils-483c0a9e.js} +26 -7
- package/dist/cjs/CSSVarsUtils-09b431cc.js +55 -0
- package/dist/cjs/DialogType-a1e288e6.js +8 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +101 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +8 -4
- package/dist/cjs/ez-date-input.cjs.entry.js +6 -6
- package/dist/cjs/ez-date-time-input.cjs.entry.js +7 -7
- package/dist/cjs/ez-dialog.cjs.entry.js +33 -14
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +101 -86
- package/dist/cjs/ez-grid-config.cjs.entry.js +3 -2
- package/dist/cjs/ez-grid.cjs.entry.js +97155 -92841
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +6 -0
- package/dist/cjs/ez-radio-button.cjs.entry.js +49 -0
- package/dist/cjs/ez-search.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +2 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/ez-actions-button/ez-actions-button.css +49 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +177 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +31 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +4 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +5 -3
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +6 -6
- package/dist/collection/components/ez-dialog/DialogType.js +6 -0
- package/dist/collection/components/ez-dialog/ez-dialog.css +9 -1
- package/dist/collection/components/ez-dialog/ez-dialog.js +53 -26
- package/dist/collection/components/ez-form/DataBinder.js +46 -18
- package/dist/collection/components/ez-form/ez-form.js +75 -68
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextInput.tpl.js +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +24 -165
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +71 -44
- package/dist/collection/components/ez-grid/controller/ag-grid/template/HeaderColumnTemplate.js +4 -4
- package/dist/collection/components/ez-grid/ez-grid.js +36 -321
- package/dist/collection/components/ez-grid/subcomponents/ez-grid-config/ez-grid-config.js +2 -1
- package/dist/collection/components/ez-popover/ez-popover.js +6 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.css +204 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.js +160 -0
- package/dist/collection/utils/ApplicationUtils.js +25 -7
- package/dist/collection/utils/CSSVarsUtils.js +34 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/custom-elements/index.d.ts +12 -6
- package/dist/custom-elements/index.js +97132 -92676
- package/dist/esm/{ApplicationUtils-35350d20.js → ApplicationUtils-5f87ae60.js} +26 -7
- package/dist/esm/CSSVarsUtils-499b75c2.js +53 -0
- package/dist/esm/DialogType-72afa679.js +8 -0
- package/dist/esm/ez-actions-button.entry.js +97 -0
- package/dist/esm/ez-combo-box.entry.js +8 -4
- package/dist/esm/ez-date-input.entry.js +6 -6
- package/dist/esm/ez-date-time-input.entry.js +7 -7
- package/dist/esm/ez-dialog.entry.js +33 -14
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +101 -86
- package/dist/esm/ez-grid-config.entry.js +3 -2
- package/dist/esm/ez-grid.entry.js +96694 -92380
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +6 -0
- package/dist/esm/ez-radio-button.entry.js +45 -0
- package/dist/esm/ez-search.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +2 -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-0b099e95.entry.js +1 -0
- package/dist/ezui/{p-ff7b4b13.entry.js → p-240a76f1.entry.js} +1 -1
- package/dist/ezui/p-3263a002.js +1 -0
- package/dist/ezui/p-787fbdfe.js +1 -0
- package/dist/ezui/p-78fc16d7.entry.js +1 -0
- package/dist/ezui/{p-4c3d136c.entry.js → p-7d29e829.entry.js} +1 -1
- package/dist/ezui/p-898b9906.js +1 -0
- package/dist/ezui/p-8aaca58b.entry.js +1 -0
- package/dist/ezui/p-99440dbc.entry.js +1 -0
- package/dist/ezui/p-a7064bc1.entry.js +1 -0
- package/dist/ezui/{p-53bbba8e.entry.js → p-ad071710.entry.js} +1 -1
- package/dist/ezui/p-b0195dae.entry.js +1 -0
- package/dist/ezui/p-ba2bfa01.entry.js +1 -0
- package/dist/ezui/p-bedef638.entry.js +1 -0
- package/dist/ezui/p-d1bc45bd.entry.js +1 -0
- package/dist/ezui/{p-003d53b1.entry.js → p-d75c3aae.entry.js} +1 -1
- package/dist/ezui/p-e5c572c1.entry.js +304 -0
- package/dist/ezui/p-f4819fa3.entry.js +1 -0
- package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +37 -0
- package/dist/types/components/ez-dialog/DialogType.d.ts +5 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +22 -3
- package/dist/types/components/ez-form/DataBinder.d.ts +6 -1
- package/dist/types/components/ez-form/ez-form.d.ts +27 -3
- package/dist/types/components/ez-form/fieldbuilder/tpl/TextInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -85
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -23
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +14 -11
- package/dist/types/components/ez-grid/ez-grid.d.ts +8 -66
- package/dist/types/components/ez-radio-button/ez-radio-button.d.ts +36 -0
- package/dist/types/components.d.ts +129 -76
- package/dist/types/utils/ApplicationUtils.d.ts +4 -1
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +5 -5
- package/react/components.d.ts +2 -1
- package/react/components.js +2 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/CSSVarsUtils-1034b7b6.js +0 -21
- package/dist/cjs/test-du.cjs.entry.js +0 -103
- package/dist/collection/components/test-du/test-du.css +0 -3
- package/dist/collection/components/test-du/test-du.js +0 -104
- package/dist/collection/utils/interfaces/PageableComponent.js +0 -1
- package/dist/esm/CSSVarsUtils-eb4c5af6.js +0 -19
- package/dist/esm/test-du.entry.js +0 -99
- package/dist/ezui/p-0cd386db.js +0 -1
- package/dist/ezui/p-403de0a4.entry.js +0 -1
- package/dist/ezui/p-4c3cd534.entry.js +0 -1
- package/dist/ezui/p-6668c3b0.entry.js +0 -1
- package/dist/ezui/p-7fd6deec.entry.js +0 -1
- package/dist/ezui/p-8be1a4d6.entry.js +0 -1
- package/dist/ezui/p-8d73594f.entry.js +0 -369
- package/dist/ezui/p-933a7475.js +0 -1
- package/dist/ezui/p-988ff301.entry.js +0 -1
- package/dist/ezui/p-cf56d3e8.entry.js +0 -1
- package/dist/ezui/p-da156da3.entry.js +0 -1
- package/dist/ezui/p-ec7b7e26.entry.js +0 -1
- package/dist/types/components/test-du/test-du.d.ts +0 -9
- package/dist/types/utils/interfaces/PageableComponent.d.ts +0 -12
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c15a9551.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
7
|
+
const CSSVarsUtils = require('./CSSVarsUtils-09b431cc.js');
|
|
8
8
|
|
|
9
9
|
const ezNumberInputCss = ":host{display:block;width:100%}";
|
|
10
10
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-c15a9551.js');
|
|
6
|
+
|
|
7
|
+
const ezRadioButtonCss = ":host{--ez-radio-button--font-family:var(--font-pattern, Arial);--ez-radio-button--font-size:var(--text--large, 16px);--ez-radio-button--font-weight:var(--text-weight--large);--ez-radio-button--font-color:var(--title--primary, #2B3A54);--ez-radio-button__form-label--font-family:var(--font-pattern, Arial);--ez-radio-button__form-label--font-weight:var(--text-weight--medium, 400);--ez-radio-button__form-label--title-primary:var(--title--primary, #2B3A54);--ez-radio-button__form-label--font-size:var(--text--medium, 14px);--ez-radio-button__form-radio--border-color:var(--title--primary, #2B3A54);--ez-radio-button__form-radio--checked--color:var(--color--primary, #008561);--ez-radio-button__form-radio--disabled--border-color:var(--color--strokes, #dce0e8);--ez-radio-button__form-radio--disabled--background-color:var(--background--medium, #f0f3f7);--ez-radio-button__form-radio--disabled--color:var(--color--strokes, #dce0e8);--ez-radio-button__form-radio--disabled--before--background-color:var(--color--strokes, #dce0e8);--ez-radio-button__form-radio--focus--background-color:var(--color--inverted, #fff);--ez-radio-button__form-radio--checked--box-shadow-color:var(--background--strong, #e4eaf1);--ez-radio-button__form-radio--checked--focus--background-color:var(--color--inverted, #fff);--ez-radio-button__form-radio--checked--focus--box-shadow-color:var(--color--primary-300, #e2f4ef);--ez-radio-button__form-radio--checked--hover--background-color:var(--color--inverted, #fff);--ez-radio-button__form-radio--checked--hover--box-shadow-color:#daece7;--ez-radio-button__form-radio--hover--box-shadow-color:var(--color--strokes, #dce0e8);--ez-radio-button__form-radio--checked--disabled--hover--background-color:var(--background--medium, #f0f3f7);display:flex;width:100%;margin:10px;flex-direction:column;align-items:flex-start}.form--vertical{display:flex;flex-direction:column}.form--horizontal{display:flex;flex-direction:row}.form__group{display:flex;align-items:center;margin-top:15px}.label{font-family:var(--ez-radio-button--font-family);font-size:var(--ez-radio-button--font-size);font-weight:var(--ez-radio-button--font-weight);color:var(--ez-radio-button--font-color)}.form__label{cursor:pointer;padding-left:12px;padding-right:25px;font-weight:var(--ez-radio-button__form-label--font-weight);color:var(--ez-radio-button__form-label--title-primary);font-family:var(--ez-radio-button__form-label--font-family);font-size:var(--ez-radio-button__form-label--font-size)}.form__radio{cursor:pointer;appearance:none;outline:none;position:relative;display:flex;align-items:center;justify-content:center;margin:0;padding:0;width:18px;height:18px;border-radius:50%;border:2px solid var(--ez-radio-button__form-radio--border-color)}.form__radio::before{content:'';display:block;position:absolute;opacity:0;transition:all 300ms ease-in-out;height:calc(18px/2);width:calc(18px/2);border-radius:50%;background:var(--ez-radio-button__form-radio--checked--color)}.form__radio:checked:before{opacity:1}.form__radio:checked{border:2px solid var(--ez-radio-button__form-radio--checked--color)}.form__radio:disabled{cursor:default;border:2px solid var(--ez-radio-button__form-radio--disabled--border-color);background-color:var(--ez-radio-button__form-radio--disabled--background-color)}.form__radio:disabled:hover{box-shadow:inherit}input[type=radio]:disabled~label{cursor:default;color:var(--ez-radio-button__form-radio--disabled--color)}.form__radio:disabled:before{background:var(--ez-radio-button__form-radio--disabled--before--background-color)}.form__radio:focus{transition:0.25s linear;background-color:var(--ez-radio-button__form-radio--focus--background-color);box-shadow:0px 0px 0px 6px var(--ez-radio-button__form-radio--checked--box-shadow-color)}.form__radio:checked:focus{transition:0.25s linear;background-color:var(--ez-radio-button__form-radio--checked--focus--background-color);box-shadow:0px 0px 0px 6px var(--ez-radio-button__form-radio--checked--focus--box-shadow-color)}.form__radio:checked:hover{transition:0.25s linear;background-color:var(--ez-radio-button__form-radio--checked--hover--background-color);box-shadow:0px 0px 0px 6px var(--ez-radio-button__form-radio--checked--hover--box-shadow-color)}.form__radio:hover{transition:0.25s linear;box-shadow:0px 0px 0px 6px var(--ez-radio-button__form-radio--hover--box-shadow-color)}.form__radio:checked:disabled:hover{box-shadow:none;background-color:var(--ez-radio-button__form-radio--checked--disabled--hover--background-color)}";
|
|
8
|
+
|
|
9
|
+
let EzRadioButton = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.ezChange = index.createEvent(this, "ezChange", 7);
|
|
13
|
+
/**
|
|
14
|
+
* Define as opções que serão apresentadas
|
|
15
|
+
*/
|
|
16
|
+
this.options = [];
|
|
17
|
+
/**
|
|
18
|
+
* Define se o componente está habilitado ou desabilitado
|
|
19
|
+
*/
|
|
20
|
+
this.enabled = true;
|
|
21
|
+
/**
|
|
22
|
+
* Define a direção em que os itens são apresentadoss, podendo ser horizontal ou vertical.
|
|
23
|
+
*/
|
|
24
|
+
this.direction = "vertical";
|
|
25
|
+
}
|
|
26
|
+
componentWillLoad() {
|
|
27
|
+
this._options = this.options;
|
|
28
|
+
const optionsTags = this.hostElement.querySelectorAll("ez-radio-button-option");
|
|
29
|
+
if (optionsTags) {
|
|
30
|
+
optionsTags.forEach(e => {
|
|
31
|
+
let label = e.getAttribute("label");
|
|
32
|
+
let value = e.getAttribute("value");
|
|
33
|
+
this._options.push({ label, value });
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
handleInputChange(ev) {
|
|
38
|
+
const slot = ev.target;
|
|
39
|
+
this.value = slot.value;
|
|
40
|
+
this.ezChange.emit(this.value);
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
return (index.h(index.Host, null, this.label && index.h("label", { class: "label" }, this.label), index.h("div", { class: "form--" + this.direction }, this._options.map((option, key) => index.h("div", { class: "form__group" }, index.h("input", { id: "rad" + key, class: "form__radio", name: "theradio", type: "radio", value: option.value, onChange: (ev) => { this.handleInputChange(ev); }, disabled: !this.enabled, checked: option.value === this.value }), index.h("label", { htmlFor: "rad" + key, class: "form__label" }, option.label))))));
|
|
44
|
+
}
|
|
45
|
+
get hostElement() { return index.getElement(this); }
|
|
46
|
+
};
|
|
47
|
+
EzRadioButton.style = ezRadioButtonCss;
|
|
48
|
+
|
|
49
|
+
exports.ez_radio_button = EzRadioButton;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c15a9551.js');
|
|
6
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
6
|
+
const CSSVarsUtils = require('./CSSVarsUtils-09b431cc.js');
|
|
7
7
|
|
|
8
8
|
const ezSearchCss = ":host{width:100%}";
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c15a9551.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
7
|
+
const CSSVarsUtils = require('./CSSVarsUtils-09b431cc.js');
|
|
8
8
|
|
|
9
9
|
const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}";
|
|
10
10
|
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c15a9551.js');
|
|
6
|
-
const ApplicationUtils = require('./ApplicationUtils-
|
|
6
|
+
const ApplicationUtils = require('./ApplicationUtils-483c0a9e.js');
|
|
7
|
+
require('./DialogType-a1e288e6.js');
|
|
7
8
|
|
|
8
9
|
class RemoteFile {
|
|
9
10
|
constructor(file) {
|
package/dist/cjs/ezui.cjs.js
CHANGED
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["
|
|
18
|
+
return index.bootstrapLazy([["ez-grid.cjs",[[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]}]]],["ez-actions-button.cjs",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513]}]]],["ez-dialog.cjs",[[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]}]]],["ez-filter-input.cjs",[[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]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-card-item.cjs",[[1,"ez-card-item",{"item":[16]}]]],["ez-loading-bar.cjs",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-popover.cjs",[[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]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button.cjs",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack.cjs",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-grid-config.cjs",[[2,"ez-grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040],"config":[1040]}]]],["ez-search.cjs",[[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]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-time-input.cjs",[[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]}]]],["ez-collapsible-box.cjs",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"],"showHide":[64]}]]],["ez-number-input.cjs",[[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]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-list.cjs",[[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]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-date-time-input.cjs",[[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]}]]],["ez-text-area.cjs",[[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]}]]],["ez-upload.cjs",[[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]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-text-input.cjs",[[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]}]]],["ez-combo-box.cjs",[[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]}]]],["ez-select-box.cjs",[[1,"ez-select-box",{"selectedOption":[1,"selected-option"]}]]]], options);
|
|
19
19
|
});
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["
|
|
17
|
+
return index.bootstrapLazy([["ez-grid.cjs",[[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]}]]],["ez-actions-button.cjs",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513]}]]],["ez-dialog.cjs",[[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]}]]],["ez-filter-input.cjs",[[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]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-card-item.cjs",[[1,"ez-card-item",{"item":[16]}]]],["ez-loading-bar.cjs",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-popover.cjs",[[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]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button.cjs",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack.cjs",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-grid-config.cjs",[[2,"ez-grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040],"config":[1040]}]]],["ez-search.cjs",[[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]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-time-input.cjs",[[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]}]]],["ez-collapsible-box.cjs",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"],"showHide":[64]}]]],["ez-number-input.cjs",[[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]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-list.cjs",[[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]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-date-time-input.cjs",[[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]}]]],["ez-text-area.cjs",[[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]}]]],["ez-upload.cjs",[[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]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-text-input.cjs",[[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]}]]],["ez-combo-box.cjs",[[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]}]]],["ez-select-box.cjs",[[1,"ez-select-box",{"selectedOption":[1,"selected-option"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"./components/ez-form/ez-form.js",
|
|
7
7
|
"./components/ez-list/ez-list.js",
|
|
8
8
|
"./components/ez-upload/ez-upload.js",
|
|
9
|
+
"./components/ez-actions-button/ez-actions-button.js",
|
|
9
10
|
"./components/ez-application/ez-application.js",
|
|
10
11
|
"./components/ez-button/ez-button.js",
|
|
11
12
|
"./components/ez-calendar/ez-calendar.js",
|
|
@@ -25,13 +26,13 @@
|
|
|
25
26
|
"./components/ez-number-input/ez-number-input.js",
|
|
26
27
|
"./components/ez-popover/ez-popover.js",
|
|
27
28
|
"./components/ez-popup/ez-popup.js",
|
|
29
|
+
"./components/ez-radio-button/ez-radio-button.js",
|
|
28
30
|
"./components/ez-search/ez-search.js",
|
|
29
31
|
"./components/ez-text-area/ez-text-area.js",
|
|
30
32
|
"./components/ez-text-input/ez-text-input.js",
|
|
31
33
|
"./components/ez-time-input/ez-time-input.js",
|
|
32
34
|
"./components/ez-toast/ez-toast.js",
|
|
33
|
-
"./components/ez-view-stack/ez-view-stack.js"
|
|
34
|
-
"./components/test-du/test-du.js"
|
|
35
|
+
"./components/ez-view-stack/ez-view-stack.js"
|
|
35
36
|
],
|
|
36
37
|
"compiler": {
|
|
37
38
|
"name": "@stencil/core",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
/* box */
|
|
3
|
+
/*@doc Define o raio da borda do popover.*/
|
|
4
|
+
--ez-actions-button__box--border-radius: var(--border--radius-medium, 12px);
|
|
5
|
+
/*@doc Define a sombra do popover.*/
|
|
6
|
+
--ez-actions-button__box--box-shadow: var(--shadow, 0px 0px 16px 0px #000);
|
|
7
|
+
/*@doc Define a cor de fundo do popover.*/
|
|
8
|
+
--ez-actions-button__box--background-color: var(--background--xlight, #fff);
|
|
9
|
+
/*@doc Define o espaçamento interno do popover*/
|
|
10
|
+
--ez-actions-button__box--padding: var(--space-small, 6px);
|
|
11
|
+
/*@doc Define a distancia entre o botão e o popover*/
|
|
12
|
+
--ez-actions-button__box--top-margin: var(--space-extra-small, 3px);
|
|
13
|
+
|
|
14
|
+
/* action */
|
|
15
|
+
--ez-actions-button__action--min-width: 400px;
|
|
16
|
+
--ez-actions-button__action--background-color: var(--background--xlight, #fff);
|
|
17
|
+
|
|
18
|
+
/***************
|
|
19
|
+
host style
|
|
20
|
+
***************/
|
|
21
|
+
/*private*/
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
height: fit-content;
|
|
25
|
+
user-select: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.actions-list {
|
|
29
|
+
/*private*/
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
position: absolute;
|
|
33
|
+
width: fit-content;
|
|
34
|
+
height: fit-content;
|
|
35
|
+
|
|
36
|
+
/*public*/
|
|
37
|
+
z-index: var(--more-visible, 1);
|
|
38
|
+
padding: var(--ez-actions-button__box--padding);
|
|
39
|
+
margin-top: var(--ez-actions-button__box--top-margin);
|
|
40
|
+
background-color: var(--ez-actions-button__box--background-color);
|
|
41
|
+
border-radius: var(--ez-actions-button__box--border-radius);
|
|
42
|
+
box-shadow: var(--ez-actions-button__box--box-shadow);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.btn-action {
|
|
46
|
+
/*private*/
|
|
47
|
+
--ez-button--min-width: var(--ez-actions-button__action--min-width);
|
|
48
|
+
--ez-button--background-color: var(--ez-actions-button__action--background-color);
|
|
49
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { FloatingManager } from '@sankhyalabs/core';
|
|
2
|
+
import { Component, Element, Event, h, Host, Prop } from '@stencil/core';
|
|
3
|
+
import { CSSVarsUtils } from '../../utils';
|
|
4
|
+
export class EzActionsButton {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Deixa o campo disponível ou não para interação com usuário.
|
|
8
|
+
*/
|
|
9
|
+
this.enabled = true;
|
|
10
|
+
this.innerClickCheck = (floatingContainer, node) => {
|
|
11
|
+
if (node && floatingContainer) {
|
|
12
|
+
if (node === floatingContainer) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
const children = floatingContainer.children;
|
|
16
|
+
for (let i = 0; i < children.length; i++) {
|
|
17
|
+
if (children[i].shadowRoot.contains(node)) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
showActions() {
|
|
26
|
+
if (!this.enabled) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this._floatingID = FloatingManager.float(this._actionsList, this._listContainer, { autoClose: true, innerClickTest: this.innerClickCheck });
|
|
30
|
+
const docWidth = document.body.clientWidth;
|
|
31
|
+
const bounding = this._actionsList.getBoundingClientRect();
|
|
32
|
+
if (bounding.right > docWidth) {
|
|
33
|
+
FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, { autoClose: true, innerClickTest: this.innerClickCheck, left: (docWidth - bounding.width) + "px" });
|
|
34
|
+
}
|
|
35
|
+
window.requestAnimationFrame(() => {
|
|
36
|
+
this._actionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
hideActions() {
|
|
40
|
+
if (this._floatingID != undefined) {
|
|
41
|
+
FloatingManager.close(this._floatingID);
|
|
42
|
+
}
|
|
43
|
+
this._floatingID = undefined;
|
|
44
|
+
}
|
|
45
|
+
//---------------------------------------------
|
|
46
|
+
// Event handlers
|
|
47
|
+
//---------------------------------------------
|
|
48
|
+
handlerButtonClick() {
|
|
49
|
+
this.showActions();
|
|
50
|
+
}
|
|
51
|
+
actionClick(action) {
|
|
52
|
+
this.hideActions();
|
|
53
|
+
this.ezAction.emit(action);
|
|
54
|
+
}
|
|
55
|
+
//---------------------------------------------
|
|
56
|
+
// Lifecycle web component
|
|
57
|
+
//---------------------------------------------
|
|
58
|
+
componentWillLoad() {
|
|
59
|
+
if (this.actions == undefined) {
|
|
60
|
+
this.actions = [];
|
|
61
|
+
const optionsTags = this._element.querySelectorAll("action");
|
|
62
|
+
if (optionsTags) {
|
|
63
|
+
optionsTags.forEach((e) => {
|
|
64
|
+
let label = e.innerText;
|
|
65
|
+
let value = e.getAttribute("value");
|
|
66
|
+
if (!value) {
|
|
67
|
+
value = label;
|
|
68
|
+
}
|
|
69
|
+
this.actions.push({ label, value });
|
|
70
|
+
e.hidden = true;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
componentDidLoad() {
|
|
76
|
+
CSSVarsUtils.applyVarsButton(this._element, this._button);
|
|
77
|
+
}
|
|
78
|
+
componentDidRender() {
|
|
79
|
+
if (this._floatingID == undefined) {
|
|
80
|
+
this._actionsList.remove();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
return (h(Host, null,
|
|
85
|
+
h("ez-button", { ref: elem => this._button = elem, enabled: this.enabled, mode: "icon", iconName: "dots-vertical", size: this.size, onClick: () => this.handlerButtonClick() }),
|
|
86
|
+
h("section", { class: "list-container", ref: elem => this._listContainer = elem },
|
|
87
|
+
h("div", { class: "actions-list", ref: elem => this._actionsList = elem }, this.actions.map(action => h("ez-button", { class: "btn-action", size: "small", label: action.label, onClick: () => this.actionClick(action) }))))));
|
|
88
|
+
}
|
|
89
|
+
static get is() { return "ez-actions-button"; }
|
|
90
|
+
static get encapsulation() { return "shadow"; }
|
|
91
|
+
static get originalStyleUrls() { return {
|
|
92
|
+
"$": ["ez-actions-button.css"]
|
|
93
|
+
}; }
|
|
94
|
+
static get styleUrls() { return {
|
|
95
|
+
"$": ["ez-actions-button.css"]
|
|
96
|
+
}; }
|
|
97
|
+
static get properties() { return {
|
|
98
|
+
"enabled": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"mutable": false,
|
|
101
|
+
"complexType": {
|
|
102
|
+
"original": "boolean",
|
|
103
|
+
"resolved": "boolean",
|
|
104
|
+
"references": {}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": false,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": "Deixa o campo dispon\u00EDvel ou n\u00E3o para intera\u00E7\u00E3o com usu\u00E1rio."
|
|
111
|
+
},
|
|
112
|
+
"attribute": "enabled",
|
|
113
|
+
"reflect": true,
|
|
114
|
+
"defaultValue": "true"
|
|
115
|
+
},
|
|
116
|
+
"actions": {
|
|
117
|
+
"type": "unknown",
|
|
118
|
+
"mutable": true,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "Array<Action>",
|
|
121
|
+
"resolved": "Action[]",
|
|
122
|
+
"references": {
|
|
123
|
+
"Array": {
|
|
124
|
+
"location": "global"
|
|
125
|
+
},
|
|
126
|
+
"Action": {
|
|
127
|
+
"location": "local"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": "Array no formato \"{value: string, label: string}\" que alimenta a lista de a\u00E7\u00F5es"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"size": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "\"small\" | \"medium\" | \"large\" | undefined",
|
|
143
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
144
|
+
"references": {}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": false,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": "\u00C9 poss\u00EDvel escolher entre [small,medium,large]"
|
|
151
|
+
},
|
|
152
|
+
"attribute": "size",
|
|
153
|
+
"reflect": true
|
|
154
|
+
}
|
|
155
|
+
}; }
|
|
156
|
+
static get events() { return [{
|
|
157
|
+
"method": "ezAction",
|
|
158
|
+
"name": "ezAction",
|
|
159
|
+
"bubbles": true,
|
|
160
|
+
"cancelable": true,
|
|
161
|
+
"composed": true,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": "Evento que \u00E9 disparado ao acionar uma a\u00E7\u00E3o"
|
|
165
|
+
},
|
|
166
|
+
"complexType": {
|
|
167
|
+
"original": "Action",
|
|
168
|
+
"resolved": "Action",
|
|
169
|
+
"references": {
|
|
170
|
+
"Action": {
|
|
171
|
+
"location": "local"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}]; }
|
|
176
|
+
static get elementRef() { return "_element"; }
|
|
177
|
+
}
|
|
@@ -161,6 +161,28 @@ ez-icon {
|
|
|
161
161
|
min-width: var(--ez-combo-box__list-scrollbar--width);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
.list-options::-webkit-scrollbar-track {
|
|
165
|
+
background-color: #f0f2f5;
|
|
166
|
+
|
|
167
|
+
/*public*/
|
|
168
|
+
border-radius: var(--ez-combo-box__list-scrollbar--border-radius);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.list-options::-webkit-scrollbar-thumb {
|
|
172
|
+
/*public*/
|
|
173
|
+
background-color: var(--ez-combo-box__list-scrollbar--background-color);
|
|
174
|
+
border-radius: var(--ez-combo-box__list-scrollbar--border-radius);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.list-options::-webkit-scrollbar {
|
|
178
|
+
background-color: #f0f2f5;
|
|
179
|
+
|
|
180
|
+
/*public*/
|
|
181
|
+
width: var(--ez-combo-box__list-scrollbar--width);
|
|
182
|
+
max-width: var(--ez-combo-box__list-scrollbar--width);
|
|
183
|
+
min-width: var(--ez-combo-box__list-scrollbar--width);
|
|
184
|
+
}
|
|
185
|
+
|
|
164
186
|
.item {
|
|
165
187
|
display: flex;
|
|
166
188
|
align-items: center;
|
|
@@ -278,6 +300,15 @@ li:hover {
|
|
|
278
300
|
color: var(--ez-combo-box__btn-hover--color);
|
|
279
301
|
}
|
|
280
302
|
|
|
303
|
+
.btn__close {
|
|
304
|
+
visibility: hidden;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
ez-text-input:hover .btn__close, ez-text-input:focus .btn__close {
|
|
308
|
+
visibility: visible;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
|
|
281
312
|
@-webkit-keyframes spin {
|
|
282
313
|
0% { -webkit-transform: rotate(0deg); }
|
|
283
314
|
100% { -webkit-transform: rotate(360deg); }
|
|
@@ -250,6 +250,9 @@ export class EzComboBox {
|
|
|
250
250
|
if (this.searchMode) {
|
|
251
251
|
this._visibleOptions = [];
|
|
252
252
|
}
|
|
253
|
+
if (this.searchMode) {
|
|
254
|
+
this._visibleOptions = [];
|
|
255
|
+
}
|
|
253
256
|
}
|
|
254
257
|
loadOptions(mode, argument = "") {
|
|
255
258
|
this._criteria = argument;
|
|
@@ -417,7 +420,7 @@ export class EzComboBox {
|
|
|
417
420
|
h("button", { class: "btn", slot: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() },
|
|
418
421
|
h("ez-icon", { iconName: this.searchMode ? "search" : "chevron-down" })),
|
|
419
422
|
this.searchMode && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
|
|
420
|
-
? h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() },
|
|
423
|
+
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() },
|
|
421
424
|
h("ez-icon", { iconName: "close" }))
|
|
422
425
|
: undefined),
|
|
423
426
|
h("section", { class: "list-container", ref: elem => this._listContainer = elem },
|
|
@@ -109,7 +109,7 @@ export class EzDateInput {
|
|
|
109
109
|
getTextValue(d) {
|
|
110
110
|
return d ? new Intl.DateTimeFormat("pt-BR").format(d) : undefined;
|
|
111
111
|
}
|
|
112
|
-
handleInput() {
|
|
112
|
+
handleInput(event) {
|
|
113
113
|
const strValue = this._textInput.value;
|
|
114
114
|
const newValue = DateUtils.strToDate(strValue);
|
|
115
115
|
const currentValue = this.validateValue(this.value);
|
|
@@ -118,6 +118,9 @@ export class EzDateInput {
|
|
|
118
118
|
this._focused = true;
|
|
119
119
|
this.ezStartChange.emit({ waitmessage: "", blocking: false });
|
|
120
120
|
}
|
|
121
|
+
if (event['data'] === "H" || event['data'] === "h") {
|
|
122
|
+
this.changeValue(new Date());
|
|
123
|
+
}
|
|
121
124
|
}
|
|
122
125
|
validateValue(value) {
|
|
123
126
|
return value instanceof Date && !isNaN(value.valueOf())
|
|
@@ -136,8 +139,7 @@ export class EzDateInput {
|
|
|
136
139
|
}
|
|
137
140
|
render() {
|
|
138
141
|
return (h(Host, null,
|
|
139
|
-
h("ez-text-input", { ref: elem => this._textInput = elem, "data-slave-mode": "true",
|
|
140
|
-
this.changeValue(new Date()); }, label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode },
|
|
142
|
+
h("ez-text-input", { ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode },
|
|
141
143
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })),
|
|
142
144
|
h("ez-calendar", { onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem })));
|
|
143
145
|
}
|