@sankhyalabs/ezui 1.1.77 → 1.1.78
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-66e86394.js +18 -0
- package/dist/cjs/ez-application.cjs.entry.js +0 -2
- package/dist/cjs/ez-button_11.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +8 -3
- package/dist/cjs/ez-collapsible-box_6.cjs.entry.js +8 -4
- package/dist/cjs/ez-combo-box.cjs.entry.js +6 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +25 -36
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +11 -58
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/{index-262d703b.js → index-40ebb2be.js} +0 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-application/ez-application.js +0 -2
- package/dist/collection/components/ez-calendar/ez-calendar.js +7 -2
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +0 -5
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +4 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css +2 -2
- package/dist/collection/components/ez-date-input/ez-date-input.js +1 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +0 -5
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +23 -34
- package/dist/collection/components/ez-number-input/ez-number-input.css +0 -9
- package/dist/collection/components/ez-number-input/ez-number-input.js +20 -115
- package/dist/collection/components/ez-search/ez-search.js +6 -1
- package/dist/collection/utils/CSSVarsUtils.js +6 -6
- package/dist/custom-elements/index.js +147 -214
- package/dist/esm/CSSVarsUtils-aeee9825.js +16 -0
- package/dist/esm/ez-application.entry.js +0 -2
- package/dist/esm/ez-button_11.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +8 -3
- package/dist/esm/ez-collapsible-box_6.entry.js +8 -4
- package/dist/esm/ez-combo-box.entry.js +6 -2
- package/dist/esm/ez-date-time-input.entry.js +25 -36
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +12 -59
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/{index-cfd5e193.js → index-ca8700cb.js} +1 -20
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-14bee38e.entry.js +1 -0
- package/dist/ezui/p-3a09c678.entry.js +1 -0
- package/dist/ezui/{p-e7ee2836.entry.js → p-43c15c94.entry.js} +1 -1
- package/dist/ezui/p-72ff3c95.entry.js +1 -0
- package/dist/ezui/{p-1ea8187e.entry.js → p-74f978db.entry.js} +1 -1
- package/dist/ezui/p-8b099482.js +1 -0
- package/dist/ezui/{p-7ef97c5f.entry.js → p-8d6cdd3e.entry.js} +1 -1
- package/dist/ezui/p-a0331955.entry.js +1 -0
- package/dist/ezui/p-a15093e3.entry.js +1 -0
- package/dist/ezui/p-a19f2af3.entry.js +1 -0
- package/dist/ezui/p-da929c01.js +1 -0
- package/dist/ezui/{p-8c51a6aa.entry.js → p-f3c5f27e.entry.js} +1 -1
- package/dist/types/components/ez-application/ez-application.d.ts +0 -2
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +3 -20
- package/dist/types/components/ez-search/ez-search.d.ts +2 -0
- package/dist/types/components.d.ts +3 -19
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/CSSVarsUtils-f8827674.js +0 -18
- package/dist/esm/CSSVarsUtils-e0128b01.js +0 -16
- package/dist/ezui/p-45689464.entry.js +0 -1
- package/dist/ezui/p-57291f97.entry.js +0 -1
- package/dist/ezui/p-69416bec.entry.js +0 -1
- package/dist/ezui/p-a223eed8.entry.js +0 -1
- package/dist/ezui/p-b36308e7.js +0 -1
- package/dist/ezui/p-c0af195b.entry.js +0 -1
- package/dist/ezui/p-d1889704.js +0 -1
- package/dist/ezui/p-f7b835cf.entry.js +0 -1
|
@@ -23,6 +23,88 @@ let EzLabelChip$2 = class extends HTMLElement$1 {
|
|
|
23
23
|
static get style() { return ezActionChipCss; }
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
+
const ezApplicationCss = "";
|
|
27
|
+
|
|
28
|
+
let EzApplication$1 = class extends HTMLElement$1 {
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
this.__registerHost();
|
|
32
|
+
this.applicationLoaded = createEvent(this, "applicationLoaded", 7);
|
|
33
|
+
}
|
|
34
|
+
componentWillLoad() {
|
|
35
|
+
//Initizalize application
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
this.applicationLoaded.emit(true);
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return (h("div", null));
|
|
42
|
+
}
|
|
43
|
+
static get style() { return ezApplicationCss; }
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:var(--space--medium, 12px);--ez-button--padding-bottom:var(--space--medium, 12px);--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--text--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--hover--background-color:var(--background--strong, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--ez-button--border);--ez-button--focus--box-shadow:none;--ez-button--link-color:var(--title--primary, '#C0C0C0')}ez-icon{--ez-icon--color:inherit}button{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;min-width:var(--ez-button--min-width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border)}button:hover{background-color:var(--ez-button--hover--background-color)}button:focus{outline:none;border:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;cursor:no-drop}button.icon{padding:0px}button.small{width:32px;min-width:32px;height:32px}button.medium{width:42px;min-width:42px;height:42px}button.large{width:52px;min-width:52px;height:52px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight)}a{font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}";
|
|
47
|
+
|
|
48
|
+
let EzButton$1 = class extends HTMLElement$1 {
|
|
49
|
+
constructor() {
|
|
50
|
+
super();
|
|
51
|
+
this.__registerHost();
|
|
52
|
+
this.__attachShadow();
|
|
53
|
+
/**
|
|
54
|
+
* Deixa o botão disponível ou não para interação com o usuário.
|
|
55
|
+
*/
|
|
56
|
+
this.enabled = true;
|
|
57
|
+
/**
|
|
58
|
+
* Define o modo de uso do botão; opções: icon, link e regular
|
|
59
|
+
*/
|
|
60
|
+
this.mode = "regular";
|
|
61
|
+
/**
|
|
62
|
+
* Quando em modo "icon" pode-se escolher entre [small,medium,large] (somente para o modo "icon")
|
|
63
|
+
*/
|
|
64
|
+
this.size = "medium";
|
|
65
|
+
}
|
|
66
|
+
getIconSize() {
|
|
67
|
+
return this.size;
|
|
68
|
+
}
|
|
69
|
+
handleSlotChange(ev) {
|
|
70
|
+
const slot = ev.target;
|
|
71
|
+
const content = slot.assignedElements()[0];
|
|
72
|
+
if (this.mode == "link") {
|
|
73
|
+
content.style.display = "inline";
|
|
74
|
+
if (slot.name == "leftIcon") {
|
|
75
|
+
content.style.paddingRight = "var(--ez-button__inline__icon--padding)";
|
|
76
|
+
}
|
|
77
|
+
else if (slot.name == "rightIcon") {
|
|
78
|
+
content.style.paddingLeft = "var(--ez-button__inline__icon--padding)";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
content.style.setProperty('--ez-icon--color', 'var(--ez-icon--color)');
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
if (this.mode == "icon") {
|
|
87
|
+
return (h("button", { class: "icon " + this.size, type: "button", disabled: !this.enabled }, h("ez-icon", { class: "icon", href: this.image, size: this.getIconSize(), onClick: evt => {
|
|
88
|
+
if (!this.enabled)
|
|
89
|
+
evt.stopPropagation();
|
|
90
|
+
} })));
|
|
91
|
+
}
|
|
92
|
+
else if (this.mode == "label-icon") {
|
|
93
|
+
return (h("div", { class: "label-icon" }, h("button", { class: "icon", type: "button", disabled: !this.enabled }, h("ez-icon", { class: "icon", href: this.image, size: "large", onClick: evt => {
|
|
94
|
+
if (!this.enabled)
|
|
95
|
+
evt.stopPropagation();
|
|
96
|
+
} })), h("label", { title: this.label }, this.label)));
|
|
97
|
+
}
|
|
98
|
+
else if (this.mode == "link") {
|
|
99
|
+
return (h("a", null, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
return (h("button", { type: "button", disabled: !this.enabled }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
static get style() { return ezButtonCss; }
|
|
106
|
+
};
|
|
107
|
+
|
|
26
108
|
/**
|
|
27
109
|
* Classe com utiliários comuns para Strings.
|
|
28
110
|
*/
|
|
@@ -1496,25 +1578,6 @@ var UserInterface;
|
|
|
1496
1578
|
UserInterface["HTML"] = "HTML";
|
|
1497
1579
|
})(UserInterface || (UserInterface = {}));
|
|
1498
1580
|
|
|
1499
|
-
class Application {
|
|
1500
|
-
constructor() { }
|
|
1501
|
-
static get() {
|
|
1502
|
-
if (Application.instance === undefined) {
|
|
1503
|
-
Application.instance = new Application();
|
|
1504
|
-
Application.element = document.querySelector('ez-application');
|
|
1505
|
-
}
|
|
1506
|
-
return Application.instance;
|
|
1507
|
-
}
|
|
1508
|
-
onLoaded(listener) {
|
|
1509
|
-
var _a;
|
|
1510
|
-
(_a = Application.element) === null || _a === void 0 ? void 0 : _a.addEventListener('applicationLoaded', () => listener());
|
|
1511
|
-
}
|
|
1512
|
-
getResourceID() {
|
|
1513
|
-
return "br.com.sankhya.mge.cad.parceiro"; //TODO: Remover mock
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
Application.element = null;
|
|
1517
|
-
|
|
1518
1581
|
var LoadStatus;
|
|
1519
1582
|
(function (LoadStatus) {
|
|
1520
1583
|
LoadStatus["DOM_LOADED"] = "DOM_LOADED";
|
|
@@ -7675,89 +7738,6 @@ function HeadersInstanceToPlainObject(headers) {
|
|
|
7675
7738
|
//# sourceMappingURL=index.js.map
|
|
7676
7739
|
});
|
|
7677
7740
|
|
|
7678
|
-
const ezApplicationCss = "";
|
|
7679
|
-
|
|
7680
|
-
let EzApplication$1 = class extends HTMLElement$1 {
|
|
7681
|
-
constructor() {
|
|
7682
|
-
super();
|
|
7683
|
-
this.__registerHost();
|
|
7684
|
-
this.applicationLoaded = createEvent(this, "applicationLoaded", 7);
|
|
7685
|
-
}
|
|
7686
|
-
componentWillLoad() {
|
|
7687
|
-
//Initizalize application
|
|
7688
|
-
this.application = Application.get();
|
|
7689
|
-
}
|
|
7690
|
-
componentDidLoad() {
|
|
7691
|
-
this.applicationLoaded.emit(true);
|
|
7692
|
-
}
|
|
7693
|
-
render() {
|
|
7694
|
-
return (h("div", null));
|
|
7695
|
-
}
|
|
7696
|
-
static get style() { return ezApplicationCss; }
|
|
7697
|
-
};
|
|
7698
|
-
|
|
7699
|
-
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:var(--space--medium, 12px);--ez-button--padding-bottom:var(--space--medium, 12px);--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--text--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--hover--background-color:var(--background--strong, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--ez-button--border);--ez-button--focus--box-shadow:none;--ez-button--link-color:var(--title--primary, '#C0C0C0')}ez-icon{--ez-icon--color:inherit}button{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;min-width:var(--ez-button--min-width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border)}button:hover{background-color:var(--ez-button--hover--background-color)}button:focus{outline:none;border:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;cursor:no-drop}button.icon{padding:0px}button.small{width:32px;min-width:32px;height:32px}button.medium{width:42px;min-width:42px;height:42px}button.large{width:52px;min-width:52px;height:52px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight)}a{font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}";
|
|
7700
|
-
|
|
7701
|
-
let EzButton$1 = class extends HTMLElement$1 {
|
|
7702
|
-
constructor() {
|
|
7703
|
-
super();
|
|
7704
|
-
this.__registerHost();
|
|
7705
|
-
this.__attachShadow();
|
|
7706
|
-
/**
|
|
7707
|
-
* Deixa o botão disponível ou não para interação com o usuário.
|
|
7708
|
-
*/
|
|
7709
|
-
this.enabled = true;
|
|
7710
|
-
/**
|
|
7711
|
-
* Define o modo de uso do botão; opções: icon, link e regular
|
|
7712
|
-
*/
|
|
7713
|
-
this.mode = "regular";
|
|
7714
|
-
/**
|
|
7715
|
-
* Quando em modo "icon" pode-se escolher entre [small,medium,large] (somente para o modo "icon")
|
|
7716
|
-
*/
|
|
7717
|
-
this.size = "medium";
|
|
7718
|
-
}
|
|
7719
|
-
getIconSize() {
|
|
7720
|
-
return this.size;
|
|
7721
|
-
}
|
|
7722
|
-
handleSlotChange(ev) {
|
|
7723
|
-
const slot = ev.target;
|
|
7724
|
-
const content = slot.assignedElements()[0];
|
|
7725
|
-
if (this.mode == "link") {
|
|
7726
|
-
content.style.display = "inline";
|
|
7727
|
-
if (slot.name == "leftIcon") {
|
|
7728
|
-
content.style.paddingRight = "var(--ez-button__inline__icon--padding)";
|
|
7729
|
-
}
|
|
7730
|
-
else if (slot.name == "rightIcon") {
|
|
7731
|
-
content.style.paddingLeft = "var(--ez-button__inline__icon--padding)";
|
|
7732
|
-
}
|
|
7733
|
-
}
|
|
7734
|
-
else {
|
|
7735
|
-
content.style.setProperty('--ez-icon--color', 'var(--ez-icon--color)');
|
|
7736
|
-
}
|
|
7737
|
-
}
|
|
7738
|
-
render() {
|
|
7739
|
-
if (this.mode == "icon") {
|
|
7740
|
-
return (h("button", { class: "icon " + this.size, type: "button", disabled: !this.enabled }, h("ez-icon", { class: "icon", href: this.image, size: this.getIconSize(), onClick: evt => {
|
|
7741
|
-
if (!this.enabled)
|
|
7742
|
-
evt.stopPropagation();
|
|
7743
|
-
} })));
|
|
7744
|
-
}
|
|
7745
|
-
else if (this.mode == "label-icon") {
|
|
7746
|
-
return (h("div", { class: "label-icon" }, h("button", { class: "icon", type: "button", disabled: !this.enabled }, h("ez-icon", { class: "icon", href: this.image, size: "large", onClick: evt => {
|
|
7747
|
-
if (!this.enabled)
|
|
7748
|
-
evt.stopPropagation();
|
|
7749
|
-
} })), h("label", { title: this.label }, this.label)));
|
|
7750
|
-
}
|
|
7751
|
-
else if (this.mode == "link") {
|
|
7752
|
-
return (h("a", null, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
7753
|
-
}
|
|
7754
|
-
else {
|
|
7755
|
-
return (h("button", { type: "button", disabled: !this.enabled }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
7756
|
-
}
|
|
7757
|
-
}
|
|
7758
|
-
static get style() { return ezButtonCss; }
|
|
7759
|
-
};
|
|
7760
|
-
|
|
7761
7741
|
const ezCalendarCss = ":host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__Time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-calendar__header-line--stroke:2px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--ez-calendar__nav-btn--next-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--ez-calendar__cell--margin:0px var(--space--small, 12px);--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:var(--space--extra-small, 3px) 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--strokes, #E2F4EF);--ez-calendar__cell--outset--color:var(--color--strokes, #C0C0C0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--strokes, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar{z-index:var(--more-visible, 2);display:flex;flex-direction:column;background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--medium, 12px);margin:var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:'';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--large, 600);font-size:var(--title--medium, 16px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--small, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__body{padding:var(--space--small, 6px) 0px}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;font-weight:var(--text-weight--large, 600);font-size:var(--title--small);padding:var(--space--extra-small, 6px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendarTime{margin-left:-10px;display:flex;flex-direction:column;padding:12px 6px;padding-left:16px;padding-bottom:0px;background-color:var(--ez-calendar__Time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:180px;padding:0px;margin:0px;overflow:auto}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendarTime__header{padding-left:6px;padding-right:6px;display:flex;justify-content:space-between;padding-bottom:var(--space--medium, 12px);margin:var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--large, 600);font-size:var(--title--medium, 16px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}";
|
|
7762
7742
|
|
|
7763
7743
|
let EzCalendar$1 = class extends HTMLElement$1 {
|
|
@@ -7847,10 +7827,15 @@ let EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
7847
7827
|
}
|
|
7848
7828
|
selectDate(d) {
|
|
7849
7829
|
let newDate = d;
|
|
7850
|
-
if (this.value) {
|
|
7830
|
+
if (this.value && (this.time || this.showSeconds)) {
|
|
7851
7831
|
newDate.setHours(this.value.getHours());
|
|
7852
7832
|
newDate.setMinutes(this.value.getMinutes());
|
|
7853
|
-
|
|
7833
|
+
if (this.showSeconds) {
|
|
7834
|
+
newDate.setSeconds(this.value.getSeconds());
|
|
7835
|
+
}
|
|
7836
|
+
else {
|
|
7837
|
+
newDate.setSeconds(0);
|
|
7838
|
+
}
|
|
7854
7839
|
}
|
|
7855
7840
|
this.value = newDate;
|
|
7856
7841
|
this.ezChange.emit();
|
|
@@ -8073,7 +8058,22 @@ let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
8073
8058
|
static get style() { return ezCollapsibleBoxCss; }
|
|
8074
8059
|
};
|
|
8075
8060
|
|
|
8076
|
-
|
|
8061
|
+
class CSSVarsUtils {
|
|
8062
|
+
static applyVarsTextInput(host, child) {
|
|
8063
|
+
if (child) {
|
|
8064
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
|
|
8065
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
|
|
8066
|
+
}
|
|
8067
|
+
}
|
|
8068
|
+
static applyIfExists(host, element, varName) {
|
|
8069
|
+
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
8070
|
+
if (prop) {
|
|
8071
|
+
element.style.setProperty(varName, prop);
|
|
8072
|
+
}
|
|
8073
|
+
}
|
|
8074
|
+
}
|
|
8075
|
+
|
|
8076
|
+
const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box__icon--width:48px;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--border-radius-small:var(--border--radius-small, 6px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__input--error--border-color:#CC2936;--ez-combo-box__btn-search--background-color:var(--text--primary, #626e82);--ez-combo-box__btn-search-disabled--background-color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-search-hover--background-color:var(--color--primary, #4e4e4e);--ez-combo-box__btn-options--background-color:var(--text--primary, #626e82);--ez-combo-box__btn-options-disabled--background-color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-options-hover--background-color:var(--color--primary, #4e4e4e);--ez-combo-box__label--color:var(--title--primary, #919191);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium));--ez-combo-box__drop-down-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"16px\"><path d=\"M 1.8585859,3.0707069 7.9999998,9.2121212 14.141414,3.0707069 16,5.0101006 7.9999998,12.929293 0,4.9292932 Z\"/></svg>');--ez-combo-box__search-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"22px\" width=\"22px\"><path d=\"m 9.4,2.3 c 4.1,0 7.4,3.2 7.4,7.2 0,1.8 -0.7,3.4 -1.8,4.7 l 0.3,0.3 h 0.9 l 5.7,5.6 -1.7,1.7 -5.7,-5.6 V 15.3 L 14.3,15 C 13,16.1 11.3,16.7 9.5,16.7 5.3,16.7 2,13.5 2,9.5 2,5.5 5.3,2.3 9.4,2.3 m 0,2.2 c -2.9,0 -5.1,2.2 -5.1,5 0,2.8 2.3,5 5.1,5 2.8,0 5.1,-2.2 5.1,-5 0,-2.8 -2.2,-5 -5.1,-5 z\"/></svg>');--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-combo-box--width)}.list-container{position:relative;width:100%}.options-list{box-sizing:border-box;width:100%;z-index:var(--more-visible, 2);display:flex;flex-direction:column;background-color:var(--ez-combo-box--background-color--xlight);padding:var(--ez-combo-box--space--small);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);scroll-behavior:smooth;max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small));overflow:auto}.item{text-align:left;display:flex;justify-content:space-between;align-items:center;border-radius:var(--ez-combo-box--border-radius-small);padding:0 var(--ez-combo-box--space--small);list-style-type:none;min-height:var(--ez-combo-box__list-height)}.item--label{text-align:left;flex-basis:85%;flex-grow:1;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large);font-family:var(--ez-combo-box--font-family);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item--value{text-align:right;flex-basis:15%;flex-grow:0;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large);font-family:var(--ez-combo-box--font-family);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}.btn-open-options{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-options:disabled{cursor:unset}.btn-open-options::after{content:'';display:flex;background-color:var(--ez-combo-box__btn-options--background-color);width:16px;height:16px;-webkit-mask-image:var(--ez-combo-box__drop-down-image);mask-image:var(--ez-combo-box__drop-down-image)}.btn-open-options:disabled:after{background-color:var(--ez-combo-box__btn-options-disabled--background-color)}.btn-open-options:enabled:hover::after{background-color:var(--ez-combo-box__btn-options-hover--background-color)}.btn-open-search{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-search:disabled{cursor:unset}.btn-open-search::after{content:'';display:flex;background-color:var(--ez-combo-box__btn-search--background-color);width:22px;height:22px;-webkit-mask-image:var(--ez-combo-box__search-image);mask-image:var(--ez-combo-box__search-image)}.btn-open-search:disabled:after{background-color:var(--ez-combo-box__btn-search-disabled--background-color)}.btn-open-search:enabled:hover::after{background-color:var(--ez-combo-box__btn-search-hover--background-color)}";
|
|
8077
8077
|
|
|
8078
8078
|
let EzComboBox$1 = class extends HTMLElement$1 {
|
|
8079
8079
|
constructor() {
|
|
@@ -8254,6 +8254,9 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
8254
8254
|
this._optionsList.remove();
|
|
8255
8255
|
}
|
|
8256
8256
|
}
|
|
8257
|
+
componentDidLoad() {
|
|
8258
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._inputElement);
|
|
8259
|
+
}
|
|
8257
8260
|
//---------------------------------------------
|
|
8258
8261
|
// Event handlers
|
|
8259
8262
|
//---------------------------------------------
|
|
@@ -8316,22 +8319,7 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
8316
8319
|
static get style() { return ezComboBoxCss; }
|
|
8317
8320
|
};
|
|
8318
8321
|
|
|
8319
|
-
|
|
8320
|
-
static applyVarsTextInput(host, textInput) {
|
|
8321
|
-
if (textInput) {
|
|
8322
|
-
CSSVarsUtils.applyIfExists(host, textInput, '--text-input__input--background-color');
|
|
8323
|
-
CSSVarsUtils.applyIfExists(host, textInput, '--text-input__input--border-color');
|
|
8324
|
-
}
|
|
8325
|
-
}
|
|
8326
|
-
static applyIfExists(host, textInput, varName) {
|
|
8327
|
-
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
8328
|
-
if (prop) {
|
|
8329
|
-
textInput.style.setProperty(varName, prop);
|
|
8330
|
-
}
|
|
8331
|
-
}
|
|
8332
|
-
}
|
|
8333
|
-
|
|
8334
|
-
const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.text-input{--ez-text-input__input--background-color:inherit;--ez-text-input__input--border-color:inherit}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
|
|
8322
|
+
const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
|
|
8335
8323
|
|
|
8336
8324
|
let EzDateInput$1 = class extends HTMLElement$1 {
|
|
8337
8325
|
constructor() {
|
|
@@ -8358,7 +8346,7 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
8358
8346
|
changeValue(newValue) {
|
|
8359
8347
|
newValue = newValue == null ? null : DateUtils.clearTime(newValue);
|
|
8360
8348
|
this._textInput.errorMessage = "";
|
|
8361
|
-
if (
|
|
8349
|
+
if (newValue !== this.value) {
|
|
8362
8350
|
this.value = newValue;
|
|
8363
8351
|
this.ezChange.emit();
|
|
8364
8352
|
}
|
|
@@ -8412,7 +8400,7 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
8412
8400
|
static get style() { return ezDateInputCss; }
|
|
8413
8401
|
};
|
|
8414
8402
|
|
|
8415
|
-
const ezDateTimeInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.
|
|
8403
|
+
const ezDateTimeInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
|
|
8416
8404
|
|
|
8417
8405
|
let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
8418
8406
|
constructor() {
|
|
@@ -8447,29 +8435,18 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
8447
8435
|
}
|
|
8448
8436
|
else if (ev.shiftKey && ev.key === "Tab") {
|
|
8449
8437
|
if (input.selectionStart > 0) {
|
|
8450
|
-
let selectIni = input.value.lastIndexOf("
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
selectFin = selectFin === -1 ? input.value.lastIndexOf(" ", selectIni - 1) : selectFin;
|
|
8456
|
-
selectFin = selectFin === -1 ? input.value.lastIndexOf("/", selectIni - 1) : selectFin;
|
|
8457
|
-
selectFin = selectFin === -1 ? 0 : selectFin + 1;
|
|
8458
|
-
input.setSelectionRange(selectFin, selectIni);
|
|
8459
|
-
ev.preventDefault();
|
|
8438
|
+
let selectIni = input.value.lastIndexOf(" ", input.selectionStart);
|
|
8439
|
+
if (selectIni !== -1) {
|
|
8440
|
+
input.setSelectionRange(0, selectIni);
|
|
8441
|
+
ev.preventDefault();
|
|
8442
|
+
}
|
|
8460
8443
|
}
|
|
8461
8444
|
}
|
|
8462
8445
|
else if (ev.key === "Tab") {
|
|
8463
8446
|
if (input.value.length !== input.selectionEnd) {
|
|
8464
|
-
let selectIni = input.value.indexOf("
|
|
8465
|
-
selectIni = selectIni === -1 ? input.value.indexOf(" ", input.selectionEnd) : selectIni;
|
|
8466
|
-
selectIni = selectIni === -1 ? input.value.indexOf(":", input.selectionEnd) : selectIni;
|
|
8447
|
+
let selectIni = input.value.indexOf(" ", input.selectionEnd);
|
|
8467
8448
|
selectIni = selectIni === -1 ? input.selectionEnd : selectIni + 1;
|
|
8468
|
-
|
|
8469
|
-
selectFin = selectFin === -1 ? input.value.indexOf(" ", selectIni) : selectFin;
|
|
8470
|
-
selectFin = selectFin === -1 ? input.value.indexOf(":", selectIni) : selectFin;
|
|
8471
|
-
selectFin = selectFin === -1 ? input.value.length : selectFin;
|
|
8472
|
-
input.setSelectionRange(selectIni, selectFin);
|
|
8449
|
+
input.setSelectionRange(selectIni, input.value.length);
|
|
8473
8450
|
ev.preventDefault();
|
|
8474
8451
|
}
|
|
8475
8452
|
}
|
|
@@ -8477,27 +8454,22 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
8477
8454
|
onFocused() {
|
|
8478
8455
|
const input = this._textInput.shadowRoot.querySelector('input');
|
|
8479
8456
|
if (input.selectionStart !== input.selectionEnd) {
|
|
8480
|
-
let
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
selectFin = selectFin === -1 ? input.value.length : selectFin;
|
|
8484
|
-
input.setSelectionRange(0, selectFin);
|
|
8457
|
+
let selectIni = input.value.indexOf(" ", input.selectionStart);
|
|
8458
|
+
selectIni = selectIni === -1 ? input.value.length : selectIni;
|
|
8459
|
+
input.setSelectionRange(0, selectIni);
|
|
8485
8460
|
}
|
|
8486
8461
|
}
|
|
8487
8462
|
onClicked() {
|
|
8488
8463
|
const input = this._textInput.shadowRoot.querySelector('input');
|
|
8489
|
-
let selectIni = input.value.
|
|
8490
|
-
selectIni = selectIni === -1 ?
|
|
8491
|
-
selectIni = selectIni
|
|
8492
|
-
let selectFin = input.value.
|
|
8493
|
-
|
|
8494
|
-
selectFin = selectFin === -1 ? input.value.lastIndexOf("/", selectIni - 1) : selectFin;
|
|
8495
|
-
selectFin = selectFin === -1 ? 0 : selectFin + 1;
|
|
8496
|
-
input.setSelectionRange(selectFin, selectIni);
|
|
8464
|
+
let selectIni = input.value.lastIndexOf(" ", input.selectionEnd);
|
|
8465
|
+
selectIni = selectIni === -1 ? 0 : selectIni + 1;
|
|
8466
|
+
selectIni = selectIni > input.selectionEnd ? 0 : selectIni;
|
|
8467
|
+
let selectFin = selectIni === 0 ? input.value.indexOf(" ") : input.value.length;
|
|
8468
|
+
input.setSelectionRange(selectIni, selectFin);
|
|
8497
8469
|
}
|
|
8498
8470
|
changeValue(newValue) {
|
|
8499
8471
|
this._textInput.errorMessage = "";
|
|
8500
|
-
if (
|
|
8472
|
+
if (newValue !== this.value) {
|
|
8501
8473
|
this.value = newValue;
|
|
8502
8474
|
this.ezChange.emit();
|
|
8503
8475
|
}
|
|
@@ -8509,7 +8481,12 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
8509
8481
|
}
|
|
8510
8482
|
parseDate() {
|
|
8511
8483
|
const strValue = this._textInput.value;
|
|
8512
|
-
const
|
|
8484
|
+
const partsDateTime = (strValue && strValue.length > 0) ? strValue.split(" ") : [];
|
|
8485
|
+
const onlyDate = partsDateTime.length > 0 ? partsDateTime[0] : strValue;
|
|
8486
|
+
const onlyTime = partsDateTime[1] ? partsDateTime[1] : "";
|
|
8487
|
+
const parsedTime = TimeFormatter.prepareValue(onlyTime, this.showSeconds);
|
|
8488
|
+
const strDateTime = onlyDate + (parsedTime && " " + parsedTime);
|
|
8489
|
+
const parsedDate = DateUtils.strToDate(strDateTime);
|
|
8513
8490
|
if (parsedDate || !strValue) {
|
|
8514
8491
|
if (this.value === parsedDate) {
|
|
8515
8492
|
this.changeValue(this.value);
|
|
@@ -121949,7 +121926,7 @@ let EzModal$1 = class extends HTMLElement$1 {
|
|
|
121949
121926
|
static get style() { return ezModalCss; }
|
|
121950
121927
|
};
|
|
121951
121928
|
|
|
121952
|
-
const ezNumberInputCss = ":host{display:block;width:100
|
|
121929
|
+
const ezNumberInputCss = ":host{display:block;width:100%}";
|
|
121953
121930
|
|
|
121954
121931
|
let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
121955
121932
|
constructor() {
|
|
@@ -121961,17 +121938,6 @@ let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
121961
121938
|
* Deixa o campo disponível ou não para uso.
|
|
121962
121939
|
*/
|
|
121963
121940
|
this.enabled = true;
|
|
121964
|
-
/**
|
|
121965
|
-
* Configura o alinhamento do texto.
|
|
121966
|
-
*/
|
|
121967
|
-
this.textleft = false;
|
|
121968
|
-
/**
|
|
121969
|
-
* Opção de configurar a transformação de string to number entre formatação pt-BR e en-US
|
|
121970
|
-
* (formatação de ENTRADA e SAÍDA do componente: pt-BR="###.###,##" en-US="###,###.##"; Default: "pt-BR")
|
|
121971
|
-
* Qualquer outro valor que não seja "en-US", adotará a formatação "pt-BR"
|
|
121972
|
-
* Não é case sensitive
|
|
121973
|
-
*/
|
|
121974
|
-
this.formatNumber = "PT-BR";
|
|
121975
121941
|
}
|
|
121976
121942
|
setLabel() {
|
|
121977
121943
|
this._textInput.label = this.label;
|
|
@@ -121984,22 +121950,11 @@ let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
121984
121950
|
this._textInput.value = this.getTextValue(this.value);
|
|
121985
121951
|
}
|
|
121986
121952
|
}
|
|
121987
|
-
onPrecisionChanged(newPrecision) {
|
|
121988
|
-
if (isNaN(newPrecision)) {
|
|
121989
|
-
this.precision = 0;
|
|
121990
|
-
}
|
|
121991
|
-
}
|
|
121992
|
-
onPrettyPrecisionChanged(newPrettyPrecision) {
|
|
121993
|
-
if (isNaN(newPrettyPrecision)) {
|
|
121994
|
-
this.prettyPrecision = 0;
|
|
121995
|
-
}
|
|
121996
|
-
}
|
|
121997
121953
|
changeValue(newValue) {
|
|
121998
121954
|
this.errorMessage = "";
|
|
121999
121955
|
if (newValue && newValue !== this.value) {
|
|
122000
121956
|
this.value = newValue;
|
|
122001
|
-
this.
|
|
122002
|
-
this.ezChange.emit();
|
|
121957
|
+
this.ezChange.emit(this.value);
|
|
122003
121958
|
}
|
|
122004
121959
|
}
|
|
122005
121960
|
parseNumber() {
|
|
@@ -122018,48 +121973,22 @@ let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
122018
121973
|
}
|
|
122019
121974
|
}
|
|
122020
121975
|
getTextValue(value) {
|
|
122021
|
-
|
|
122022
|
-
|
|
122023
|
-
this.errorMessage = "O valor digitado não é um número válido";
|
|
122024
|
-
}
|
|
122025
|
-
else {
|
|
122026
|
-
return this.formatNumber.toUpperCase() !== "EN-US" ? NumberUtils.format(value.toString(), this.precision, this.prettyPrecision) : NumberUtils.changeFormat(NumberUtils.format(value.toString(), this.precision, this.prettyPrecision));
|
|
121976
|
+
if (value) {
|
|
121977
|
+
return this.precision > 0 ? NumberUtils.format(value.toString(), Number(this.precision), Number(this.prettyPrecision)) : value.toString();
|
|
122027
121978
|
}
|
|
122028
|
-
return
|
|
121979
|
+
return null;
|
|
122029
121980
|
}
|
|
122030
121981
|
componentDidLoad() {
|
|
122031
|
-
|
|
122032
|
-
this._textInput.shadowRoot.querySelector('input').classList.add('text--right');
|
|
122033
|
-
}
|
|
122034
|
-
let rightItem;
|
|
122035
|
-
let letfItem;
|
|
122036
|
-
for (const key in this._hostElement.children) {
|
|
122037
|
-
if (Object.prototype.hasOwnProperty.call(this._hostElement.children, key)) {
|
|
122038
|
-
const element = this._hostElement.children[key];
|
|
122039
|
-
if (element.getAttribute('slot') === 'rightIcon') {
|
|
122040
|
-
rightItem = element;
|
|
122041
|
-
}
|
|
122042
|
-
else if (element.getAttribute('slot') === 'leftIcon') {
|
|
122043
|
-
letfItem = element;
|
|
122044
|
-
}
|
|
122045
|
-
}
|
|
122046
|
-
}
|
|
122047
|
-
this._leftSlotItem = letfItem;
|
|
122048
|
-
this._rightSlotItem = rightItem;
|
|
122049
|
-
}
|
|
122050
|
-
componentWillLoad() {
|
|
122051
|
-
this.onPrecisionChanged(this.precision);
|
|
122052
|
-
this.onPrettyPrecisionChanged(this.prettyPrecision);
|
|
121982
|
+
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
122053
121983
|
}
|
|
122054
121984
|
render() {
|
|
122055
|
-
return (h(
|
|
121985
|
+
return (h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseNumber(), label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: this.precision > 0 ? "0123456789-,." : "0123456789-", enabled: this.enabled, errorMessage: this.errorMessage }));
|
|
122056
121986
|
}
|
|
121987
|
+
get _elem() { return this; }
|
|
122057
121988
|
static get watchers() { return {
|
|
122058
121989
|
"label": ["setLabel"],
|
|
122059
121990
|
"errorMessage": ["setErrorMessage"],
|
|
122060
|
-
"value": ["applyValueToInput"]
|
|
122061
|
-
"precision": ["onPrecisionChanged"],
|
|
122062
|
-
"prettyPrecision": ["onPrettyPrecisionChanged"]
|
|
121991
|
+
"value": ["applyValueToInput"]
|
|
122063
121992
|
}; }
|
|
122064
121993
|
static get style() { return ezNumberInputCss; }
|
|
122065
121994
|
};
|
|
@@ -122253,10 +122182,14 @@ let EzSearch$1 = class extends HTMLElement$1 {
|
|
|
122253
122182
|
this.value = evt.detail;
|
|
122254
122183
|
this.ezChange.emit(evt.detail);
|
|
122255
122184
|
}
|
|
122185
|
+
componentDidLoad() {
|
|
122186
|
+
CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
|
|
122187
|
+
}
|
|
122256
122188
|
render() {
|
|
122257
122189
|
return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue }));
|
|
122258
122190
|
}
|
|
122259
122191
|
;
|
|
122192
|
+
get _elem() { return this; }
|
|
122260
122193
|
static get watchers() { return {
|
|
122261
122194
|
"value": ["updateValue"]
|
|
122262
122195
|
}; }
|
|
@@ -123717,7 +123650,7 @@ const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[5
|
|
|
123717
123650
|
const EzLabelChip = /*@__PURE__*/proxyCustomElement(EzLabelChip$1, [1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540]}]);
|
|
123718
123651
|
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
123719
123652
|
const EzModal = /*@__PURE__*/proxyCustomElement(EzModal$1, [1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]);
|
|
123720
|
-
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[
|
|
123653
|
+
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"]}]);
|
|
123721
123654
|
const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540]}]);
|
|
123722
123655
|
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]);
|
|
123723
123656
|
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [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"]}]);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
class CSSVarsUtils {
|
|
2
|
+
static applyVarsTextInput(host, child) {
|
|
3
|
+
if (child) {
|
|
4
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
|
|
5
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
static applyIfExists(host, element, varName) {
|
|
9
|
+
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
10
|
+
if (prop) {
|
|
11
|
+
element.style.setProperty(varName, prop);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { CSSVarsUtils as C };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-1dacecd3.js';
|
|
2
|
-
import { d as Application } from './index-cfd5e193.js';
|
|
3
2
|
|
|
4
3
|
const ezApplicationCss = "";
|
|
5
4
|
|
|
@@ -10,7 +9,6 @@ let EzApplication = class {
|
|
|
10
9
|
}
|
|
11
10
|
componentWillLoad() {
|
|
12
11
|
//Initizalize application
|
|
13
|
-
this.application = Application.get();
|
|
14
12
|
}
|
|
15
13
|
componentDidLoad() {
|
|
16
14
|
this.applicationLoaded.emit(true);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, c as createEvent, H as Host, g as getElement } from './index-1dacecd3.js';
|
|
2
|
-
import { c as createCommonjsModule, a as commonjsGlobal, A as Action, M as MaskFormatter, D as DataUnit, b as DataType } from './index-
|
|
2
|
+
import { c as createCommonjsModule, a as commonjsGlobal, A as Action, M as MaskFormatter, D as DataUnit, b as DataType } from './index-ca8700cb.js';
|
|
3
3
|
import { g as getSpritePath } from './AssetsUtils-3803e935.js';
|
|
4
4
|
|
|
5
5
|
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:var(--space--medium, 12px);--ez-button--padding-bottom:var(--space--medium, 12px);--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--text--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--hover--background-color:var(--background--strong, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--ez-button--border);--ez-button--focus--box-shadow:none;--ez-button--link-color:var(--title--primary, '#C0C0C0')}ez-icon{--ez-icon--color:inherit}button{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;min-width:var(--ez-button--min-width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border)}button:hover{background-color:var(--ez-button--hover--background-color)}button:focus{outline:none;border:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;cursor:no-drop}button.icon{padding:0px}button.small{width:32px;min-width:32px;height:32px}button.medium{width:42px;min-width:42px;height:42px}button.large{width:52px;min-width:52px;height:52px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight)}a{font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}";
|