@sankhyalabs/ezui 1.1.30 → 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ez-action-chip.cjs.entry.js +2 -2
- package/dist/cjs/ez-button_16.cjs.entry.js +96 -63
- package/dist/cjs/ez-dialog.cjs.entry.js +46 -0
- package/dist/cjs/ez-label-chip.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal.cjs.entry.js +22 -12
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-popover.cjs.entry.js +2 -2
- package/dist/cjs/ez-popup.cjs.entry.js +37 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/{index-f08ae9d8.js → index-0f668cc5.js} +70 -61
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +6 -4
- package/dist/collection/components/ez-calendar/ez-calendar.js +3 -5
- package/dist/collection/components/ez-check/ez-check.js +1 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +75 -44
- package/dist/collection/components/ez-dialog/ez-dialog.css +442 -0
- package/dist/collection/components/ez-dialog/ez-dialog.js +198 -0
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +2 -1
- package/dist/collection/components/ez-modal/ez-modal.js +33 -26
- package/dist/collection/components/ez-popup/ez-popup.css +387 -0
- package/dist/collection/components/ez-popup/ez-popup.js +131 -0
- package/dist/collection/components/ez-search/ez-search.js +45 -1
- package/dist/collection/components/ez-upload/ez-upload.js +9 -10
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +224 -104
- package/dist/esm/ez-action-chip.entry.js +2 -2
- package/dist/esm/ez-button_16.entry.js +96 -63
- package/dist/esm/ez-dialog.entry.js +42 -0
- package/dist/esm/ez-label-chip.entry.js +2 -2
- package/dist/esm/ez-modal.entry.js +22 -12
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-popover.entry.js +2 -2
- package/dist/esm/ez-popup.entry.js +33 -0
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/{index-3e5d5166.js → index-89fc9bfd.js} +70 -61
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-06c7c4e3.entry.js +1 -0
- package/dist/ezui/p-171bdc12.entry.js +1 -0
- package/dist/ezui/p-40fe4f51.entry.js +1 -0
- package/dist/ezui/p-55c5b134.entry.js +1 -0
- package/dist/ezui/p-762ac7a0.js +1 -0
- package/dist/ezui/p-7f528c19.entry.js +1 -0
- package/dist/ezui/p-b81916dd.entry.js +1 -0
- package/dist/ezui/p-c2368320.entry.js +1 -0
- package/dist/ezui/p-caa50ec5.entry.js +1 -0
- package/dist/ezui/p-d8a47f23.entry.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +9 -4
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +33 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +4 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +24 -0
- package/dist/types/components/ez-search/ez-search.d.ts +8 -0
- package/dist/types/components.d.ts +143 -4
- package/loader/index.d.ts +0 -1
- package/package.json +7 -6
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-106dafe7.entry.js +0 -1
- package/dist/ezui/p-534472a3.entry.js +0 -1
- package/dist/ezui/p-5d398030.entry.js +0 -1
- package/dist/ezui/p-7509be4f.entry.js +0 -1
- package/dist/ezui/p-c6987a1b.entry.js +0 -1
- package/dist/ezui/p-f3a62790.entry.js +0 -1
- package/dist/ezui/p-f918e4da.js +0 -1
- package/dist/ezui/p-fc46887a.entry.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-89fc9bfd.js';
|
|
2
2
|
|
|
3
3
|
const ezModalCss = ":host{--modal-z-index:var(--most-visible, 3);--modal-vertical-padding:var(--space--large, 24px);display:block}.modal{position:fixed;padding:var(--modal-vertical-padding) 0;display:flex;top:0px;z-index:var(--modal-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}@keyframes expand-modal--left{from{transform:translate(-100%)}}@keyframes expand-modal--right{from{transform:translate(100%)}}.modal__container{display:flex;flex-wrap:wrap;height:100%;box-sizing:border-box;width:100%;align-items:flex-start}.modal__container--right{animation:expand-modal--right .2s ease-in-out 1;justify-content:flex-end}.modal__container--left{animation:expand-modal--left .2s ease-in-out 1;justify-content:flex-start}.modal__content{display:flex;flex-wrap:wrap;max-height:calc(100% - 48px);overflow-y:auto;background-color:rgb(255, 255, 255);padding:24px;border-radius:12px 0px 0px 12px;box-shadow:rgb(0 38 111 / 12%) 0px 0px 16px 0px}.modal__content--right{border-radius:12px 0px 0px 12px}.modal__content--left{border-radius:0px 12px 12px 0px}.modal__box__container{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;border-radius:12px}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
let EzModal = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
@@ -20,8 +20,7 @@ const EzModal = class {
|
|
|
20
20
|
this.closeoutsideclick = false;
|
|
21
21
|
this.handleKeyboardEvent = (ev) => {
|
|
22
22
|
if ((ev === null || ev === void 0 ? void 0 : ev.key) === 'Escape' && this.closeesc) {
|
|
23
|
-
this.
|
|
24
|
-
this.ezChange.emit(this.oppened);
|
|
23
|
+
this.closeModal();
|
|
25
24
|
}
|
|
26
25
|
};
|
|
27
26
|
}
|
|
@@ -40,6 +39,10 @@ const EzModal = class {
|
|
|
40
39
|
document.removeEventListener('keydown', this.handleKeyboardEvent);
|
|
41
40
|
}
|
|
42
41
|
}
|
|
42
|
+
closeModal() {
|
|
43
|
+
this.oppened = false;
|
|
44
|
+
this.ezChange.emit(this.oppened);
|
|
45
|
+
}
|
|
43
46
|
///////
|
|
44
47
|
// trapTabKey(e) {
|
|
45
48
|
// // Check for TAB key press
|
|
@@ -88,16 +91,23 @@ const EzModal = class {
|
|
|
88
91
|
componentDidLoad() {
|
|
89
92
|
this.handleOppenedChange();
|
|
90
93
|
}
|
|
94
|
+
onMouseDownHandler(event) {
|
|
95
|
+
if (this.closeoutsideclick && event.target === this._overlay) {
|
|
96
|
+
this.closeModal();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
onWeelHandler(event) {
|
|
100
|
+
event.stopPropagation();
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
}
|
|
91
103
|
//Ainda teremos ajustes visuais
|
|
92
104
|
render() {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
: undefined)
|
|
100
|
-
: undefined));
|
|
105
|
+
const positionSufix = this.align === "left" ? "left" : "right";
|
|
106
|
+
return (h(Host, null, this.oppened
|
|
107
|
+
?
|
|
108
|
+
h("div", { class: 'modal', onMouseDown: evt => this.onMouseDownHandler(evt), onWheel: evt => this.onWeelHandler(evt) }, h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref }, h("div", { class: `modal__content modal__content--${positionSufix} ${this.modalsize}` }, h("slot", null))))
|
|
109
|
+
:
|
|
110
|
+
undefined));
|
|
101
111
|
}
|
|
102
112
|
static get watchers() { return {
|
|
103
113
|
"oppened": ["handleOppenedChange"]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-89fc9bfd.js';
|
|
2
2
|
import { N as NumberUtils } from './RequestMetadata-c265c9d5.js';
|
|
3
3
|
|
|
4
4
|
const ezNumberInputCss = ":host{--ni--height:42px;--ni--width:100%;--ni__icon--width:48px;--ni--border-radius:var(--border--radius-medium, 12px);--ni--font-size:var(--text--medium, 14px);--ni--font-family:var(--font-pattern, Arial);--ni__input--background-color:var(--background--medium, #e0e0e0);--ni__input--border:var(--border--medium, 2px solid);--ni__input--border-color:var(--ni__input--background-color);--ni__input--focus--border-color:var(--color--primary, #008561);--ni__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ni__input--disabled--color:var(--text--disable, #AFB6C0);--ni__input--error--border-color:#CC2936;--ni__placeholder--disabled--color:var(--text--disable, #AFB6C0);--ni__placeholder--color:var(--title--primary, #919191);--ni__placeholder--font-weight:var(--text-weight--large, 500);--ni__message_box--font-size:var(--text--small, 12px);--ni__message_box--info--color:var(--color--success, #22085d);--ni__message_box--error--color:var(--color--error, #FF0000);display:flex;flex-wrap:wrap;position:relative;width:var(--ni--width)}.invisible{visibility:hidden}input{width:100%;box-sizing:border-box;padding:var(--space--medium);height:var(--ni--height);border-radius:var(--ni--border-radius);font-family:var(--ni--font-family);font-size:var(--ni--font-size);border:var(--ni__input--border);border-color:var(--ni__input--border-color);background-color:var(--ni__input--background-color);font-weight:var(--text-weight--large)}input:disabled{background-color:var(--ni__input--disabled--background-color);color:var(--ni__input--disabled--color)}input:focus{outline:none;border-color:var(--ni__input--focus--border-color)}input.icon--left{padding-left:var(--ni__icon--width)}input.icon--right{padding-right:var(--ni__icon--width)}input::placeholder{color:var(--ni__placeholder--color);font-weight:var(--ni__placeholder--font-weight)}input:disabled::placeholder{color:var(--ni__placeholder--disabled--color)}input.hasError{color:inherit;border-color:var(--ni__input--error--border-color)}input.text--right{text-align:right}.message-box{min-height:16px;min-width:100%;margin-top:2px;line-height:12px;font-family:var(--ni--font-family);font-size:var(--ni__message_box--font-size);color:var(--ni__message_box--info--color)}.hasError{color:var(--ni__message_box--error--color)}.input__label{font-size:var(--text--medium);font-weight:var(--text-weight--large);left:var(--space--medium);position:absolute;color:var(--title--primary);top:var(--space--medium);font-family:var(--ni--font-family);-webkit-transition:font-size .3s, top .3s;transition:font-size .3s, top .3s;z-index:var(--visible)}.input__label--floated{font-family:var(--ni--font-family);font-size:var(--text--extra-small);top:var(--space--small);color:var(--text--primary)}.input__label--left{left:var(--ni__icon--width)}.input--with--label{padding-bottom:0}";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
let NumberInput = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-89fc9bfd.js';
|
|
2
2
|
import './RequestMetadata-c265c9d5.js';
|
|
3
3
|
import { F as FloatingManager } from './FloatingManager-bb90ef41.js';
|
|
4
4
|
|
|
5
5
|
const ezPopoverCss = ":host{--pop__box--border-radius:var(--border--radius-medium, 12px);--pop__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);position:relative;display:flex;user-select:none;width:100%}.box{z-index:var(--more-visible, 1);display:flex;flex-direction:column;height:fit-content;background-color:transparent;border-radius:var(--pop__box--border-radius);box-shadow:var(--pop__box--box-shadow)}.box--fit-content{width:fit-content}.box--full-width{width:100%}";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
let EzPopover = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
this._firstRender = true;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-89fc9bfd.js';
|
|
2
|
+
|
|
3
|
+
const ezPopupCss = ":host{display:flex;--popup-title--primary:var(--title--primary, #2b3a54);--popup-font-pattern:var(--font-pattern, \"'Sora', 'Algerian'\");--popup-text-weight--large:var(--text-weight--large, 600);--popup-space--small:var(--space--small, 6px);--popup-space--medium:var(--space--medium, 12px);--popup-space--large:var(--space--large, 24px);--popup-error--background-color:var(--color--alert-error-800, #BD0025);--popup-warning--background-color:var(--color--alert-warning-500, #EFB103);--popup-text-weight--medium:var(--text-weight--medium, 400);--popup-text-shadow:var(--text-shadow, \"0 0 0 #353535, 0 0 1px transparent\");--popup-text--medium:var(--text--medium, 14px);--popup-text--primary:var(--text--primary, #626e82);--popup-z-index:var(--most-visible, 3);--popup--trash__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>');--popup--close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--popup-z-index);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;display:flex;flex-wrap:wrap;overflow:hidden;background:#FFFF;color:var(--popup-title--primary);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--popup-space--large)}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:flex;flex-wrap:wrap}.popup__expandable-content{box-sizing:border-box;overflow-y:auto;width:100%;display:flex;flex-wrap:wrap;max-height:80vh;content-visibility:auto}.popup__header{padding-bottom:var(--popup-space--large);width:100%;display:flex}.popup__title{width:100%}.dialog__error--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--popup-error--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--popup-warning--background-color)}.message{font-weight:var(--popup-text-weight--medium)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--popup-title--primary);width:12px;height:12px;-webkit-mask-image:var(--popup--close__image);mask-image:var(--popup--close__image)}.btn-close--solo{width:100%}.title{display:flex;font-family:var(--popup-font-pattern);margin:0;font-weight:var(--popup-text-weight--large);line-height:1.3}.title--large{font-size:var(--popup-title--large)}.title__container{display:flex;align-items:center;padding-bottom:var(--popup-space--medium);align-self:center}.title--label{padding-left:var(--popup-space--small)}.text{font-family:var(--popup-font-pattern);text-shadow:var(--popup-text-shadow)}.text--medium{font-size:var(--popup-text--medium)}.text--primary{color:var(--popup-text--primary);text-shadow:var(--popup-text-shadow)}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
4
|
+
|
|
5
|
+
let EzPopup = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.ezChange = createEvent(this, "ezChange", 7);
|
|
9
|
+
/**
|
|
10
|
+
* Define o width que o componente deve ter, seguindo o grid system.
|
|
11
|
+
*/
|
|
12
|
+
this.size = "col--sd-6";
|
|
13
|
+
/**
|
|
14
|
+
* Controla a exibição do componente.
|
|
15
|
+
*/
|
|
16
|
+
this.opened = false;
|
|
17
|
+
/**
|
|
18
|
+
* Define o componente utilizará um cabeçalho com botão de fechamento.
|
|
19
|
+
*/
|
|
20
|
+
this.useHeader = false;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
if (this.opened) {
|
|
24
|
+
return (h(Host, null, h("div", { class: "overlay" }, h("div", { class: "popup col " + this.size }, h("div", { class: "popup__container" }, h("div", { class: "popup__content" }, h("div", { class: "popup__header" }, this.title ?
|
|
25
|
+
h("div", { class: "title popup__title" }, this.title)
|
|
26
|
+
: undefined, h("button", { class: this.title ? "btn-close" : "btn-close btn-close--solo", onClick: () => { this.opened = false; this.ezChange.emit("CANCEL"); } })), h("div", { class: "popup__expandable-content" }, h("slot", null))))))));
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
EzPopup.style = ezPopupCss;
|
|
32
|
+
|
|
33
|
+
export { EzPopup as ez_popup };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-89fc9bfd.js';
|
|
2
2
|
import { M as MaskFormatter, T as TimeFormatter, N as NumberUtils } from './RequestMetadata-c265c9d5.js';
|
|
3
3
|
|
|
4
4
|
const ezTimeInputCss = ":host{--eztime--height:42px;--eztime--width:100%;--eztime__icon--width:48px;--eztime--border-radius:var(--border--radius-medium, 12px);--eztime--font-size:var(--text--medium, 14px);--eztime--font-family:var(--font-pattern, Arial);--eztime--font-weight:var(--text-weight--large, 500);--eztime--space--medium:var(--space--medium, 6px);--eztime__input--background-color:var(--background--medium, #e0e0e0);--eztime__input--border:var(--border--medium, 2px solid);--eztime__input--border-color:var(--eztime__input--background-color);--eztime__input--focus--border-color:var(--color--primary, #008561);--eztime__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--eztime__input--disabled--color:var(--text--disable, #AFB6C0);--eztime__input--error--border-color:#CC2936;--eztime__label--color:var(--title--primary, #919191);--eztime__message_box--font-size:var(--text--small, 12px);--eztime__message_box--info--color:var(--color--success, #22085d);--eztime__message_box--error--color:var(--color--error, #FF0000);display:flex;flex-wrap:wrap;position:relative;width:var(--eztime--width)}.invisible{visibility:hidden}input{width:100%;box-sizing:border-box;padding:var(--space--medium, 6px);font-weight:var(--text-weight--large, 600);height:var(--eztime--height);border-radius:var(--eztime--border-radius);font-family:var(--eztime--font-family);font-size:var(--eztime--font-size);border:var(--eztime__input--border);border-color:var(--eztime__input--border-color);background-color:var(--eztime__input--background-color)}input:disabled{background-color:var(--eztime__input--disabled--background-color);color:var(--eztime__input--disabled--color)}input:focus{outline:none;border-color:var(--eztime__input--focus--border-color)}input.icon--left{padding-left:var(--eztime__icon--width)}input.icon--right{padding-right:var(--eztime__icon--width)}input::placeholder{color:var(--eztime__placeholder--color);font-weight:var(--eztime__placeholder--font-weight)}input:disabled::placeholder{color:var(--eztime__placeholder--disabled--color)}input.hasError{color:inherit;border-color:var(--eztime__input--error--border-color)}input.text--right{text-align:right}.message-box{min-height:16px;min-width:100%;margin-top:2px;line-height:12px;font-family:var(--eztime--font-family);font-size:var(--eztime__message_box--font-size);color:var(--eztime__message_box--info--color)}.hasError{color:var(--eztime__message_box--error--color)}.input__label{font-size:var(--eztime--font-size);font-weight:var(--eztime--font-weight);position:absolute;color:var(it__label--color);top:var(--eztime--space--medium);font-family:var(--eztime--font-family);-webkit-transition:font-size .3s, top .3s;transition:font-size .3s, top .3s;z-index:var(--visible);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;left:var(--eztime__icon--width);width:calc(100% - 10px - var(--eztime__icon--width))}.input__label--floated{font-family:var(--eztime--font-family);font-size:var(--text--extra-small);top:var(--space--small);color:var(--text--primary)}.input__label--left{left:var(--eztime__icon--width);width:calc(100% - 10px - var(--eztime__icon--width))}.input__label--right{padding-right:var(--eztime__icon--width);width:calc(100% - 10px - var(--eztime__icon--width))}.input--with--label{padding-bottom:0}";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
let EzTimeInput = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
/**
|
package/dist/esm/ezui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-89fc9bfd.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.
|
|
4
|
+
Stencil Client Patch Browser v2.10.0 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
7
|
const importMeta = import.meta.url;
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["ez-label-chip",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errormessage":[1537],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["ez-action-chip",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-modal",[[1,"ez-modal",{"modalsize":[
|
|
16
|
+
return bootstrapLazy([["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"oppened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"title":[1025],"handleButtonClick":[64]}]]],["ez-label-chip",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errormessage":[1537],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["ez-action-chip",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-modal",[[1,"ez-modal",{"modalsize":[1],"align":[1],"oppened":[4],"closeesc":[4],"closeoutsideclick":[4]}]]],["ez-number-input",[[1,"ez-number-input",{"strvalue":[1025],"value":[1026],"label":[513],"enabled":[516],"errormessage":[1537],"precision":[1538],"prettyprecision":[1538],"textleft":[516],"formatnumber":[513],"setFocus":[64],"setBlur":[64],"handleFocusout":[64]}]]],["ez-popover",[[1,"ez-popover",{"autoclose":[516],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxwidth":[513],"isOpened":[1540,"is-opened"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"title":[1]}]]],["ez-button_16",[[0,"ez-form",{"metadataexecutor":[1],"loadexecutor":[1],"saveexecutor":[1],"removeexecutor":[1],"fieldsearchexecutor":[1],"ignoresavevalidation":[4],"metadata":[16],"slavemode":[4],"validate":[64],"getChanges":[64],"changeFieldValue":[64]}],[1,"form-metadata",{"name":[1],"label":[1],"dataunit":[1025],"many":[4],"autoload":[4],"metadata":[1040]}],[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errormessage":[1537]}],[1,"ez-search",{"value":[1040],"label":[1537],"enabled":[1540],"errormessage":[1537],"optionloader":[16],"showselectedvalue":[4],"showoptionvalue":[4]}],[1,"ez-numeric-input",{"label":[513],"value":[1538],"enabled":[516],"errormessage":[1537],"precision":[8],"prettyprecision":[8]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-collapsable-box",{"value":[1540],"label":[513],"showHide":[64]}],[1,"ez-tabselector",{"selectedindex":[1537],"selectedtab":[1537],"tabs":[1]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errormessage":[1537],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[1,"ez-upload",{"maxFileSize":[514,"max-file-size"],"headers":[16],"timeout":[514],"withCredentials":[516,"with-credentials"],"formDataName":[513,"form-data-name"],"target":[513],"fileList":[32],"addFiles":[64]}],[1,"place-holder"],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513]}],[1,"ez-combo-box",{"value":[1040],"label":[513],"enabled":[516],"options":[1040],"errormessage":[1537],"searchmode":[4],"showselectedvalue":[4],"showoptionvalue":[4],"optionloader":[16],"_preSelection":[32],"_visibleOptions":[32]}],[1,"ez-calendar",{"value":[1040],"floating":[516],"show":[64],"hide":[64]}],[1,"ez-icon",{"size":[513],"href":[513]}],[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errormessage":[1537],"onlynumber":[516],"mask":[1],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]]], options);
|
|
17
17
|
});
|
|
@@ -345,7 +345,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
345
345
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
346
346
|
if (memberName === 'list') {
|
|
347
347
|
isProp = false;
|
|
348
|
-
// tslint:disable-next-line: triple-equals
|
|
349
348
|
}
|
|
350
349
|
else if (oldValue == null || elm[memberName] != n) {
|
|
351
350
|
elm[memberName] = n;
|
|
@@ -983,14 +982,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
983
982
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
984
983
|
plt.jmp(() => {
|
|
985
984
|
const propName = attrNameToPropName.get(attrName);
|
|
986
|
-
// In a
|
|
985
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
987
986
|
// in the case where an attribute was set inline.
|
|
988
987
|
// ```html
|
|
989
988
|
// <my-component some-attribute="some-value"></my-component>
|
|
990
989
|
// ```
|
|
991
990
|
//
|
|
992
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
993
|
-
// changes it before it has been upgraded as shown below:
|
|
991
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
992
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
994
993
|
//
|
|
995
994
|
// ```html
|
|
996
995
|
// <!-- this component has _not_ been upgraded yet -->
|
|
@@ -1000,13 +999,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1000
999
|
// el = document.querySelector("#test");
|
|
1001
1000
|
// el.someAttribute = "another-value";
|
|
1002
1001
|
// // upgrade component
|
|
1003
|
-
//
|
|
1002
|
+
// customElements.define('my-component', MyComponent);
|
|
1004
1003
|
// </script>
|
|
1005
1004
|
// ```
|
|
1006
1005
|
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1007
1006
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1008
1007
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1009
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the
|
|
1008
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1010
1009
|
//
|
|
1011
1010
|
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1012
1011
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
@@ -1020,6 +1019,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1020
1019
|
newValue = this[propName];
|
|
1021
1020
|
delete this[propName];
|
|
1022
1021
|
}
|
|
1022
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1023
|
+
typeof this[propName] === 'number' &&
|
|
1024
|
+
this[propName] == newValue) {
|
|
1025
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1026
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1027
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1028
|
+
return;
|
|
1029
|
+
}
|
|
1023
1030
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1024
1031
|
});
|
|
1025
1032
|
};
|
|
@@ -1106,7 +1113,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1106
1113
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1107
1114
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1108
1115
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1109
|
-
// this is the
|
|
1116
|
+
// this is the initial load and this component it has an ancestor component
|
|
1110
1117
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1111
1118
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1112
1119
|
// this will get fired off when the ancestor component
|
|
@@ -1186,68 +1193,70 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1186
1193
|
let isBootstrapping = true;
|
|
1187
1194
|
Object.assign(plt, options);
|
|
1188
1195
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1189
|
-
lazyBundles.map((lazyBundle) =>
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1196
|
+
lazyBundles.map((lazyBundle) => {
|
|
1197
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1198
|
+
const cmpMeta = {
|
|
1199
|
+
$flags$: compactMeta[0],
|
|
1200
|
+
$tagName$: compactMeta[1],
|
|
1201
|
+
$members$: compactMeta[2],
|
|
1202
|
+
$listeners$: compactMeta[3],
|
|
1203
|
+
};
|
|
1204
|
+
{
|
|
1205
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1206
|
+
}
|
|
1207
|
+
{
|
|
1208
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1209
|
+
}
|
|
1210
|
+
{
|
|
1211
|
+
cmpMeta.$watchers$ = {};
|
|
1212
|
+
}
|
|
1213
|
+
const tagName = cmpMeta.$tagName$;
|
|
1214
|
+
const HostElement = class extends HTMLElement {
|
|
1215
|
+
// StencilLazyHost
|
|
1216
|
+
constructor(self) {
|
|
1217
|
+
// @ts-ignore
|
|
1218
|
+
super(self);
|
|
1219
|
+
self = this;
|
|
1220
|
+
registerHost(self, cmpMeta);
|
|
1221
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1222
|
+
// this component is using shadow dom
|
|
1223
|
+
// and this browser supports shadow dom
|
|
1224
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1225
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1219
1226
|
{
|
|
1220
|
-
|
|
1227
|
+
{
|
|
1228
|
+
self.attachShadow({ mode: 'open' });
|
|
1229
|
+
}
|
|
1221
1230
|
}
|
|
1222
1231
|
}
|
|
1223
1232
|
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1233
|
+
connectedCallback() {
|
|
1234
|
+
if (appLoadFallback) {
|
|
1235
|
+
clearTimeout(appLoadFallback);
|
|
1236
|
+
appLoadFallback = null;
|
|
1237
|
+
}
|
|
1238
|
+
if (isBootstrapping) {
|
|
1239
|
+
// connectedCallback will be processed once all components have been registered
|
|
1240
|
+
deferredConnectedCallbacks.push(this);
|
|
1241
|
+
}
|
|
1242
|
+
else {
|
|
1243
|
+
plt.jmp(() => connectedCallback(this));
|
|
1244
|
+
}
|
|
1229
1245
|
}
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
deferredConnectedCallbacks.push(this);
|
|
1246
|
+
disconnectedCallback() {
|
|
1247
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1233
1248
|
}
|
|
1234
|
-
|
|
1235
|
-
|
|
1249
|
+
componentOnReady() {
|
|
1250
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1236
1251
|
}
|
|
1252
|
+
};
|
|
1253
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1254
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1255
|
+
cmpTags.push(tagName);
|
|
1256
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1237
1257
|
}
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
}
|
|
1241
|
-
componentOnReady() {
|
|
1242
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1246
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1247
|
-
cmpTags.push(tagName);
|
|
1248
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1249
|
-
}
|
|
1250
|
-
}));
|
|
1258
|
+
});
|
|
1259
|
+
});
|
|
1251
1260
|
{
|
|
1252
1261
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1253
1262
|
visibilityStyle.setAttribute('data-styles', '');
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-89fc9bfd.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
4
|
+
Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["ez-label-chip",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errormessage":[1537],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["ez-action-chip",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-modal",[[1,"ez-modal",{"modalsize":[
|
|
13
|
+
return bootstrapLazy([["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"oppened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"title":[1025],"handleButtonClick":[64]}]]],["ez-label-chip",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errormessage":[1537],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["ez-action-chip",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-modal",[[1,"ez-modal",{"modalsize":[1],"align":[1],"oppened":[4],"closeesc":[4],"closeoutsideclick":[4]}]]],["ez-number-input",[[1,"ez-number-input",{"strvalue":[1025],"value":[1026],"label":[513],"enabled":[516],"errormessage":[1537],"precision":[1538],"prettyprecision":[1538],"textleft":[516],"formatnumber":[513],"setFocus":[64],"setBlur":[64],"handleFocusout":[64]}]]],["ez-popover",[[1,"ez-popover",{"autoclose":[516],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxwidth":[513],"isOpened":[1540,"is-opened"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"title":[1]}]]],["ez-button_16",[[0,"ez-form",{"metadataexecutor":[1],"loadexecutor":[1],"saveexecutor":[1],"removeexecutor":[1],"fieldsearchexecutor":[1],"ignoresavevalidation":[4],"metadata":[16],"slavemode":[4],"validate":[64],"getChanges":[64],"changeFieldValue":[64]}],[1,"form-metadata",{"name":[1],"label":[1],"dataunit":[1025],"many":[4],"autoload":[4],"metadata":[1040]}],[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errormessage":[1537]}],[1,"ez-search",{"value":[1040],"label":[1537],"enabled":[1540],"errormessage":[1537],"optionloader":[16],"showselectedvalue":[4],"showoptionvalue":[4]}],[1,"ez-numeric-input",{"label":[513],"value":[1538],"enabled":[516],"errormessage":[1537],"precision":[8],"prettyprecision":[8]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-collapsable-box",{"value":[1540],"label":[513],"showHide":[64]}],[1,"ez-tabselector",{"selectedindex":[1537],"selectedtab":[1537],"tabs":[1]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errormessage":[1537],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[1,"ez-upload",{"maxFileSize":[514,"max-file-size"],"headers":[16],"timeout":[514],"withCredentials":[516,"with-credentials"],"formDataName":[513,"form-data-name"],"target":[513],"fileList":[32],"addFiles":[64]}],[1,"place-holder"],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513]}],[1,"ez-combo-box",{"value":[1040],"label":[513],"enabled":[516],"options":[1040],"errormessage":[1537],"searchmode":[4],"showselectedvalue":[4],"showoptionvalue":[4],"optionloader":[16],"_preSelection":[32],"_visibleOptions":[32]}],[1,"ez-calendar",{"value":[1040],"floating":[516],"show":[64],"hide":[64]}],[1,"ez-icon",{"size":[513],"href":[513]}],[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errormessage":[1537],"onlynumber":[516],"mask":[1],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
package/dist/ezui/ezui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-
|
|
1
|
+
import{p as e,b as a}from"./p-762ac7a0.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((e=>a([["p-caa50ec5",[[1,"ez-dialog",{confirm:[1028],critical:[1028],message:[1025],oppened:[1540],personalizedIconPath:[1025,"personalized-icon-path"],title:[1025],handleButtonClick:[64]}]]],["p-55c5b134",[[1,"ez-label-chip",{label:[513],enabled:[516],removable:[516],value:[1540],setFocus:[64],setBlur:[64]}]]],["p-7f528c19",[[1,"ez-time-input",{label:[513],viewValue:[1537,"view-value"],value:[1026],enabled:[516],errormessage:[1537],showSeconds:[516,"show-seconds"],setFocus:[64],setBlur:[64]}]]],["p-b81916dd",[[1,"ez-action-chip",{label:[513],enabled:[516]}]]],["p-06c7c4e3",[[1,"ez-modal",{modalsize:[1],align:[1],oppened:[4],closeesc:[4],closeoutsideclick:[4]}]]],["p-d8a47f23",[[1,"ez-number-input",{strvalue:[1025],value:[1026],label:[513],enabled:[516],errormessage:[1537],precision:[1538],prettyprecision:[1538],textleft:[516],formatnumber:[513],setFocus:[64],setBlur:[64],handleFocusout:[64]}]]],["p-171bdc12",[[1,"ez-popover",{autoclose:[516],top:[1537],left:[1537],bottom:[1537],right:[1537],boxwidth:[513],isOpened:[1540,"is-opened"],updatePosition:[64],show:[64],hide:[64]}]]],["p-40fe4f51",[[1,"ez-popup",{size:[1],opened:[1540],useHeader:[1540,"use-header"],title:[1]}]]],["p-c2368320",[[0,"ez-form",{metadataexecutor:[1],loadexecutor:[1],saveexecutor:[1],removeexecutor:[1],fieldsearchexecutor:[1],ignoresavevalidation:[4],metadata:[16],slavemode:[4],validate:[64],getChanges:[64],changeFieldValue:[64]}],[1,"form-metadata",{name:[1],label:[1],dataunit:[1025],many:[4],autoload:[4],metadata:[1040]}],[1,"ez-date-input",{label:[513],value:[1040],enabled:[516],errormessage:[1537]}],[1,"ez-search",{value:[1040],label:[1537],enabled:[1540],errormessage:[1537],optionloader:[16],showselectedvalue:[4],showoptionvalue:[4]}],[1,"ez-numeric-input",{label:[513],value:[1538],enabled:[516],errormessage:[1537],precision:[8],prettyprecision:[8]}],[1,"ez-check",{label:[513],value:[1540],enabled:[516],mode:[513],getMode:[64],setFocus:[64]}],[1,"ez-collapsable-box",{value:[1540],label:[513],showHide:[64]}],[1,"ez-tabselector",{selectedindex:[1537],selectedtab:[1537],tabs:[1]}],[1,"ez-text-area",{label:[513],value:[1537],enabled:[516],loading:[516],errormessage:[1537],rows:[1538],setFocus:[64],setBlur:[64]}],[1,"ez-upload",{maxFileSize:[514,"max-file-size"],headers:[16],timeout:[514],withCredentials:[516,"with-credentials"],formDataName:[513,"form-data-name"],target:[513],fileList:[32],addFiles:[64]}],[1,"place-holder"],[1,"ez-button",{label:[513],enabled:[516],mode:[513],image:[513]}],[1,"ez-combo-box",{value:[1040],label:[513],enabled:[516],options:[1040],errormessage:[1537],searchmode:[4],showselectedvalue:[4],showoptionvalue:[4],optionloader:[16],_preSelection:[32],_visibleOptions:[32]}],[1,"ez-calendar",{value:[1040],floating:[516],show:[64],hide:[64]}],[1,"ez-icon",{size:[513],href:[513]}],[1,"ez-text-input",{label:[513],value:[1537],enabled:[516],loading:[516],errormessage:[1537],onlynumber:[516],mask:[1],restrict:[1],setFocus:[64],setBlur:[64]}]]]],e)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as d,c as t,h as i,H as o}from"./p-762ac7a0.js";let l=class{constructor(i){d(this,i),this.ezChange=t(this,"ezChange",7),this.oppened=!0,this.closeesc=!1,this.closeoutsideclick=!1,this.handleKeyboardEvent=d=>{"Escape"===(null==d?void 0:d.key)&&this.closeesc&&this.closeModal()}}handleOppenedChange(){this.oppened?document.addEventListener("keydown",this.handleKeyboardEvent):document.removeEventListener("keydown",this.handleKeyboardEvent)}closeModal(){this.oppened=!1,this.ezChange.emit(this.oppened)}componentDidLoad(){this.handleOppenedChange()}onMouseDownHandler(d){this.closeoutsideclick&&d.target===this._overlay&&this.closeModal()}onWeelHandler(d){d.stopPropagation(),d.preventDefault()}render(){const d="left"===this.align?"left":"right";return i(o,null,this.oppened?i("div",{class:"modal",onMouseDown:d=>this.onMouseDownHandler(d),onWheel:d=>this.onWeelHandler(d)},i("div",{class:`modal__container modal__container--${d}`,ref:d=>this._overlay=d},i("div",{class:`modal__content modal__content--${d} ${this.modalsize}`},i("slot",null)))):void 0)}static get watchers(){return{oppened:["handleOppenedChange"]}}};l.style=":host{--modal-z-index:var(--most-visible, 3);--modal-vertical-padding:var(--space--large, 24px);display:block}.modal{position:fixed;padding:var(--modal-vertical-padding) 0;display:flex;top:0px;z-index:var(--modal-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}@keyframes expand-modal--left{from{transform:translate(-100%)}}@keyframes expand-modal--right{from{transform:translate(100%)}}.modal__container{display:flex;flex-wrap:wrap;height:100%;box-sizing:border-box;width:100%;align-items:flex-start}.modal__container--right{animation:expand-modal--right .2s ease-in-out 1;justify-content:flex-end}.modal__container--left{animation:expand-modal--left .2s ease-in-out 1;justify-content:flex-start}.modal__content{display:flex;flex-wrap:wrap;max-height:calc(100% - 48px);overflow-y:auto;background-color:rgb(255, 255, 255);padding:24px;border-radius:12px 0px 0px 12px;box-shadow:rgb(0 38 111 / 12%) 0px 0px 16px 0px}.modal__content--right{border-radius:12px 0px 0px 12px}.modal__content--left{border-radius:0px 12px 12px 0px}.modal__box__container{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;border-radius:12px}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";export{l as ez_modal}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as s,g as o}from"./p-762ac7a0.js";import"./p-9dfccb16.js";import{F as h}from"./p-ddd0ef12.js";let e=class{constructor(i){t(this,i),this._firstRender=!0,this.autoclose=!0,this.top="0px",this.left="0px",this.bottom="0px",this.right="0px",this.boxwidth="fit-content"}async updatePosition(t=this.top,i=this.left,s=this.bottom,o=this.right){h.updateFloatPosition(this._box,this._container,{autoClose:this.autoclose,top:t,left:i,bottom:s,right:o,innerClickTest:(t,i)=>!!t.contains(i)||!(!t.shadowRoot||!t.shadowRoot.contains(i))||((t=this._host).lastElementChild.shadowRoot?t.lastElementChild.shadowRoot.contains(i):t.contains(i))})}async show(t=this.top,i=this.left,s=this.bottom,o=this.right){this._floatingID=h.float(this._box,this._container,{autoClose:this.autoclose,top:t,left:i,bottom:s,right:o,innerClickTest:(t,i)=>!!t.contains(i)||!(!t.shadowRoot||!t.shadowRoot.contains(i))||((t=this._host).lastElementChild.shadowRoot?t.lastElementChild.shadowRoot.contains(i):t.contains(i))}),this.isOpened=!0}async hide(){void 0!==this._floatingID&&(h.close(this._floatingID),this._floatingID=void 0,this.isOpened=!1)}componentDidRender(){this._firstRender&&(this._box.remove(),this._firstRender=!1)}render(){return i(s,null,i("section",{ref:t=>this._container=t},i("div",{class:"box "+("fit-content"===this.boxwidth?"box--fit-content":"box--full-width"),ref:t=>this._box=t},i("slot",null))))}get _host(){return o(this)}};e.style=":host{--pop__box--border-radius:var(--border--radius-medium, 12px);--pop__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);position:relative;display:flex;user-select:none;width:100%}.box{z-index:var(--more-visible, 1);display:flex;flex-direction:column;height:fit-content;background-color:transparent;border-radius:var(--pop__box--border-radius);box-shadow:var(--pop__box--box-shadow)}.box--fit-content{width:fit-content}.box--full-width{width:100%}";export{e as ez_popover}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as o,h as i,H as p}from"./p-762ac7a0.js";let e=class{constructor(i){t(this,i),this.ezChange=o(this,"ezChange",7),this.size="col--sd-6",this.opened=!1,this.useHeader=!1}render(){return this.opened?i(p,null,i("div",{class:"overlay"},i("div",{class:"popup col "+this.size},i("div",{class:"popup__container"},i("div",{class:"popup__content"},i("div",{class:"popup__header"},this.title?i("div",{class:"title popup__title"},this.title):void 0,i("button",{class:this.title?"btn-close":"btn-close btn-close--solo",onClick:()=>{this.opened=!1,this.ezChange.emit("CANCEL")}})),i("div",{class:"popup__expandable-content"},i("slot",null))))))):null}};e.style=':host{display:flex;--popup-title--primary:var(--title--primary, #2b3a54);--popup-font-pattern:var(--font-pattern, "\'Sora\', \'Algerian\'");--popup-text-weight--large:var(--text-weight--large, 600);--popup-space--small:var(--space--small, 6px);--popup-space--medium:var(--space--medium, 12px);--popup-space--large:var(--space--large, 24px);--popup-error--background-color:var(--color--alert-error-800, #BD0025);--popup-warning--background-color:var(--color--alert-warning-500, #EFB103);--popup-text-weight--medium:var(--text-weight--medium, 400);--popup-text-shadow:var(--text-shadow, "0 0 0 #353535, 0 0 1px transparent");--popup-text--medium:var(--text--medium, 14px);--popup-text--primary:var(--text--primary, #626e82);--popup-z-index:var(--most-visible, 3);--popup--trash__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>\');--popup--close__image:url(\'data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg%22%3E<path d="M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z"/></svg>\')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--popup-z-index);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;display:flex;flex-wrap:wrap;overflow:hidden;background:#FFFF;color:var(--popup-title--primary);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--popup-space--large)}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:flex;flex-wrap:wrap}.popup__expandable-content{box-sizing:border-box;overflow-y:auto;width:100%;display:flex;flex-wrap:wrap;max-height:80vh;content-visibility:auto}.popup__header{padding-bottom:var(--popup-space--large);width:100%;display:flex}.popup__title{width:100%}.dialog__error--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--popup-error--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--popup-warning--background-color)}.message{font-weight:var(--popup-text-weight--medium)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:\'\';display:flex;background-color:var(--popup-title--primary);width:12px;height:12px;-webkit-mask-image:var(--popup--close__image);mask-image:var(--popup--close__image)}.btn-close--solo{width:100%}.title{display:flex;font-family:var(--popup-font-pattern);margin:0;font-weight:var(--popup-text-weight--large);line-height:1.3}.title--large{font-size:var(--popup-title--large)}.title__container{display:flex;align-items:center;padding-bottom:var(--popup-space--medium);align-self:center}.title--label{padding-left:var(--popup-space--small)}.text{font-family:var(--popup-font-pattern);text-shadow:var(--popup-text-shadow)}.text--medium{font-size:var(--popup-text--medium)}.text--primary{color:var(--popup-text--primary);text-shadow:var(--popup-text-shadow)}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}';export{e as ez_popup}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as l,c as e,h as a}from"./p-762ac7a0.js";let r=class{constructor(a){l(this,a),this.removeChip=e(this,"removeChip",7),this.valueChange=e(this,"valueChange",7),this.enabled=!0,this.removable=!1,this.value=!1}async setFocus(){this._labelElem.focus()}async setBlur(){this._labelElem.blur()}handleClick(l){const e=l.target;null!==e.assignedSlot||e.classList.contains("label__icon")||(this.valueChange.emit(this.value),this.swichState())}swichState(){this.enabled&&(this.value=!this.value)}reflectChange(){this._divElem&&(this._divElem.classList.remove("label__container--active"),this._divElem.classList.remove("label__container"),this._divElem.classList.add(this.value?"label__container--active":"label__container"))}handleSlotChange(l){const e=l.target,a=e.assignedElements()[0];a&&(a.style.position="absolute",a.style.display="flex",a.style.alignItems="center",a.style.justifyContent="center",a.style.overflow="hidden",a.style.top="0px",a.style.width="var(--lc__icon--width)",a.style.height="var(--lc--height)","leftIcon"==e.name?(a.style.left="0px",this._labelElem.classList.add("padding-left--small")):"rightIcon"==e.name&&(a.style.right="0px",this.removable?this._iconElement.classList.add("padding-right--small"):this._labelElem.classList.add("padding-right--small")))}componentDidLoad(){this._divElem&&(this.value?this._divElem.classList.add("label__container--active"):this.handleEnabledState())}handleEnabledState(){this._divElem.classList.remove("label__container--disabled"),this.enabled||(this._divElem.classList.remove("label__container"),this._divElem.classList.add("label__container--disabled"),this._labelElem&&(this._labelElem.style.cursor="default"))}render(){return a("div",{onClick:l=>this.handleClick(l),class:this.value?"label__container--active":"label__container",ref:l=>this._divElem=l},a("slot",{name:"leftIcon",onSlotchange:l=>{this.handleSlotChange(l)}}),a("label",{class:this.removable?"padding-right--small":" ",ref:l=>this._labelElem=l},this.label),this.removable?a("ez-icon",{class:"label__icon align--middle padding-horizontal--medium",onClick:()=>{this.removeChip.emit()},ref:l=>this._iconElement=l,href:"/themes/default/images/icons/actions-sprite.svg#close",size:"x-small"}):null,a("slot",{name:"rightIcon",onSlotchange:l=>{this.handleSlotChange(l)}}))}static get watchers(){return{value:["reflectChange"],enabled:["handleEnabledState"]}}};r.style=":host{--lc--height:36px;--lc--width:100%;--lc__icon--width:48px;--lc--border-radius:var(--border--radius-large, 24px);--lc--font-size:var(--text--medium, 14px);--lc--font-family:var(--font-pattern, Arial);--lc--font-weight:var(--text-weight--large, 500);--lc--space--medium:var(--space--medium, 6px);--lc__border:1px solid;--lc__border-color-strokes:var(--color--strokes, #DCE0E8);--lc__label--title--primary:var(--title--primary, #919191);--lc__label--color-primary:var(--color--primary, #008561);--lc__label-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--lc__label--background-color:#0085610F;--lc__label__default--background-color--hover:var(--color--primary-200, #f2faf8);--lc__label__default--border-color--hover:var(--color--primary-600, #007a5a);--lc__label--text--disabled:var(--text--disable, #AFB6C0);--lc__label--text--primary:var(--text--primary, #626e82);--lc__message_box--font-size:var(--text--small, 12px);--lc__message_box--info--color:var(--color--success, #22085d);--lc__message_box--error--color:var(--color--error, #FF0000)}.padding-right--small{padding-right:var(--lc--space--medium)}.padding-left--small{padding-left:var(--lc--space--medium)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;color:var(--lc__label--title--primary);fill:var(--lc__label--title--primary);border:var(--lc__border);border-radius:var(--lc--border-radius);border-color:var( --lc__border-color-strokes);padding-right:var(--space--large, 12px);padding-left:var(--space--large, 12px)}.label__container:hover{border-color:var(--lc__label__default--border-color--hover);background-color:var(--lc__label__default--background-color--hover)}.label__container--active{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;border:var(--lc__border);border-radius:var(--lc--border-radius);padding-right:var(--space--large, 12px);padding-left:var(--space--large, 12px);fill:var(--lc__label--color-primary);color:var(--lc__label--color-primary);border-color:var(--lc__label--background-color);background-color:var(--lc__label--background-color)}.label__container--disabled{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;border:var(--lc__border);border-color:var(--lc__label-color--disable-secondary);border-radius:var(--lc--border-radius);padding-right:var(--space--large, 12px);padding-left:var(--space--large, 12px);fill:var(--lc__label--text--disabled);color:var(--lc__label--text--disabled);background-color:var(--lc__label-color--disable-secondary)}label{display:flex;align-items:center;width:calc(100% - var(--lc__icon--width));width:fit-content;font-weight:var(--text-weight--large, 600);cursor:pointer;height:var(--lc--height);font-family:var(--lc--font-family);font-size:var(--lc--font-size)}.label__icon{display:flex;cursor:pointer}";export{r as ez_label_chip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},i={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},r=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u="http://www.w3.org/1999/xlink",a=new WeakMap,f=e=>"sc-"+e.o,h={},p=e=>"object"==(e=typeof e)||"function"===e,d=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1,r=[];const c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!p(l))&&(l+=""),o&&i?r[r.length-1].i+=l:r.push(o?y(null,l):l),i=o)};if(c(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,$);const u=y(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=s,u},y=(e,t)=>({t:0,m:e,i:t,$:null,h:null,u:null,p:null}),m={},$={forEach:(e,t)=>e.map(w).forEach(t),map:(e,t)=>e.map(w).map(t).map(b)},w=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.g,vtag:e.m,vtext:e.i}),b=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),d(e.vtag,t,...e.vchildren||[])}const t=y(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.g=e.vname,t},g=(e,t,n,l,o,r)=>{if(n!==l){let c=X(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=j(n),o=j(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(c||"o"!==t[0]||"n"!==t[1]){const s=p(l);if((c||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}let i=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,i=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(i?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!c||4&r||o)&&!s&&(l=!0===l?"":l,i?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):X(s,a)?a.slice(2):a[2]+t.slice(3),n&&i.rel(e,t,n,!1),l&&i.ael(e,t,l,!1)}},v=/\s/,j=e=>e?e.split(v):[],k=(e,t,n,l)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||h,i=t.u||h;for(l in o)l in i||g(s,l,o[l],void 0,n,t.t);for(l in i)g(s,l,o[l],i[l],n,t.t)},S=(t,l,s)=>{let i,r,c=l.h[s],u=0;if(null!==c.i)i=c.$=o.createTextNode(c.i);else{if(n||(n="svg"===c.m),i=c.$=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.m),n&&"foreignObject"===c.m&&(n=!1),k(null,c,n),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),c.h)for(u=0;u<c.h.length;++u)r=S(t,c,u),r&&i.appendChild(r);"svg"===c.m?n=!1:"foreignObject"===i.tagName&&(n=!0)}return i},O=(e,n,l,s,o,i)=>{let r,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=i;++o)s[o]&&(r=S(null,l,o),r&&(s[o].$=r,c.insertBefore(r,n)))},M=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.$,P(l),s.remove())},x=(e,t)=>e.m===t.m&&e.p===t.p,C=(e,t)=>{const l=t.$=e.$,s=e.h,o=t.h,i=t.m,r=t.i;null===r?(n="svg"===i||"foreignObject"!==i&&n,"slot"===i||k(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o,i=0,r=0,c=0,u=0,a=t.length-1,f=t[0],h=t[a],p=l.length-1,d=l[0],y=l[p];for(;i<=a&&r<=p;)if(null==f)f=t[++i];else if(null==h)h=t[--a];else if(null==d)d=l[++r];else if(null==y)y=l[--p];else if(x(f,d))C(f,d),f=t[++i],d=l[++r];else if(x(h,y))C(h,y),h=t[--a],y=l[--p];else if(x(f,y))C(f,y),e.insertBefore(f.$,h.$.nextSibling),f=t[++i],y=l[--p];else if(x(h,d))C(h,d),e.insertBefore(h.$,f.$),h=t[--a],d=l[++r];else{for(c=-1,u=i;u<=a;++u)if(t[u]&&null!==t[u].p&&t[u].p===d.p){c=u;break}c>=0?(o=t[c],o.m!==d.m?s=S(t&&t[r],n,c):(C(o,d),t[c]=void 0,s=o.$),d=l[++r]):(s=S(t&&t[r],n,r),d=l[++r]),s&&f.$.parentNode.insertBefore(s,f.$)}i>a?O(e,null==l[p+1]?null:l[p+1].$,n,l,r,p):r>p&&M(t,i,a)})(l,s,t,o):null!==o?(null!==e.i&&(l.textContent=""),O(l,null,t,o,0,o.length-1)):null!==s&&M(s,0,s.length-1),n&&"svg"===i&&(n=!1)):e.i!==r&&(l.data=r)},P=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(P)},E=e=>J(e).v,L=(e,t,n)=>{const l=E(e);return{emit:e=>R(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},R=(e,t,n)=>{const l=i.ce(t,n);return e.dispatchEvent(l),l},W=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},T=(e,t)=>{if(e.t|=16,!(4&e.t))return W(e,e.k),ce((()=>A(e,t)));e.t|=512},A=(e,t)=>{const n=e.S;let l;return t&&(l=z(n,"componentWillLoad")),l=N(l,(()=>z(n,"componentWillRender"))),N(l,(()=>D(e,n,t)))},D=async(e,t,n)=>{const l=e.v,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.v,l=t.t,s=((e,t)=>{let n=f(t),l=te.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=a.get(e=e.head||e);s||a.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);F(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>H(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},F=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.v,o=n.O,i=n.M||y(null,null),r=(e=>e&&e.m===m)(l)?l:d(null,null,l);t=s.tagName,o.C&&(r.u=r.u||{},o.C.map((([e,t])=>r.u[t]=s[e]))),r.m=null,r.t|=4,n.M=r,r.$=i.$=s.shadowRoot||s,e=s["s-sc"],C(i,r)})(n,l)}catch(e){Y(e,n.v)}return null},H=e=>{const t=e.v,n=e.S,l=e.k;z(n,"componentDidRender"),64&e.t||(e.t|=64,V(t),z(n,"componentDidLoad"),e.P(t),l||q()),e.L(t),e.j&&(e.j(),e.j=void 0),512&e.t&&re((()=>T(e,!1))),e.t&=-517},U=e=>{{const t=J(e),n=t.v.isConnected;return n&&2==(18&t.t)&&T(t,!1),n}},q=()=>{V(o.documentElement),re((()=>R(s,"appload",{detail:{namespace:"ezui"}})))},z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){Y(e)}},N=(e,t)=>e&&e.then?e.then(t):t(),V=e=>e.classList.add("hydrated"),_=(e,t,n)=>{if(t.R){e.watchers&&(t.W=e.watchers);const l=Object.entries(t.R),s=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,e,{get(){return((e,t)=>J(this).T.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=J(e),o=s.v,i=s.T.get(t),r=s.t,c=s.S;if(n=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.R[t][0]),!(8&r&&void 0!==i||n===i)&&(s.T.set(t,n),c)){if(l.W&&128&r){const e=l.W[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){Y(e,o)}}))}2==(18&r)&&T(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,e,{value(...t){const n=J(this);return n.A.then((()=>n.S[e](...t)))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){i.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.C.push([e,s]),s}))}}return e},B=e=>{z(e,"connectedCallback")},G=(e,t={})=>{const n=[],l=t.exclude||[],r=s.customElements,u=o.head,a=u.querySelector("meta[charset]"),h=o.createElement("style"),p=[];let d,y=!0;Object.assign(i,t),i.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],o:t[1],R:t[2],D:t[3]};s.R=t[2],s.C=[],s.W={};const o=s.o,u=class extends HTMLElement{constructor(e){super(e),Q(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?p.push(this):i.jmp((()=>(e=>{if(0==(1&i.t)){const t=J(e),n=t.O,l=()=>{};if(1&t.t)B(t.S);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){W(t,t.k=n);break}}n.R&&Object.entries(n.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=ee(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.W=s.watchers,_(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){Y(e)}t.t&=-9,t.t|=128,e(),B(t.S)}if(s.style){let e=s.style;const t=f(n);if(!te.has(t)){const l=()=>{};((e,t,n)=>{let l=te.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,te.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.k,i=()=>T(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){i.jmp((()=>{}))}componentOnReady(){return J(this).F}};s.H=e[0],l.includes(o)||r.get(o)||(n.push(o),r.define(o,_(u,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),u.insertBefore(h,a?a.nextSibling:u.firstChild),y=!1,p.length?p.map((e=>e.connectedCallback())):i.jmp((()=>d=setTimeout(q,30)))},I=new WeakMap,J=e=>I.get(e),K=(e,t)=>I.set(t.S=e,t),Q=(e,t)=>{const n={t:0,v:e,O:t,T:new Map};return n.A=new Promise((e=>n.L=e)),n.F=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],I.set(e,n)},X=(e,t)=>t in e,Y=(e,t)=>(0,console.error)(e,t),Z=new Map,ee=e=>{const t=e.o.replace(/-/g,"_"),n=e.H,l=Z.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(Z.set(n,e),e[t])),Y)},te=new Map,ne=[],le=[],se=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&i.t?re(ie):i.raf(ie))},oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){Y(e)}e.length=0},ie=()=>{oe(ne),oe(le),(l=ne.length>0)&&i.raf(ie)},re=e=>r().then(e),ce=se(le,!0);export{m as H,G as b,L as c,U as f,E as g,d as h,r as p,K as r}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as e}from"./p-762ac7a0.js";import{M as r,T as o,N as s}from"./p-9dfccb16.js";let a=class{constructor(i){t(this,i),this.enabled=!0,this.showSeconds=!1}showError(){"string"==typeof this.errormessage&&""!==this.errormessage?(this._inputElem.classList.add("hasError"),this._messageBoxElem.classList.add("hasError")):(this._inputElem.classList.remove("hasError"),this._messageBoxElem.classList.remove("hasError"))}prepareMask(){this.showSeconds?null==this._maskFormatter?this._maskFormatter=new r("##:##:##"):this._maskFormatter.mask="##:##:##":null==this._maskFormatter?this._maskFormatter=new r("##:##"):this._maskFormatter.mask="##:##"}adjustFloatingLabel(){this.label&&(this._inputElem.classList.contains("input--with--label")||this._inputElem.classList.add("input--with--label"),this.viewValue&&this.viewValue.toString().length>0?this._labelElem.classList.contains("input__label--floated")||this._labelElem.classList.add("input__label--floated"):this._labelElem.classList.contains("input__label--floated")&&this._labelElem.classList.remove("input__label--floated"))}onValueChanged(){NaN===this.value&&(this.value=void 0,this.handleFocusout())}async setFocus(){this._inputElem.focus()}async setBlur(){this._inputElem.blur()}setInputElemnt(t){this._iconElement=t}handleFocusout(){this.errormessage="",this.prepareValue(this.viewValue),o.validateTime(this.viewValue,this.showSeconds)||(this.clearField(),this.errormessage="Favor inserir um horário válido."),this.adjustFloatingLabel()}prepareValue(t){try{this.viewValue=o.prepareValue(t,this.showSeconds)}catch(t){this.clearField(),this.errormessage=t.message}}clearField(){this.viewValue=this.value=void 0}handleChange(){this.viewValue=this._inputElem.value,this.value=s.stringToNumber(this.viewValue.replace(/\D/g,""))}adjustIconStyle(){this._iconElement&&(this._iconElement.style.position="absolute",this._iconElement.style.display="flex",this._iconElement.style.alignItems="center",this._iconElement.style.justifyContent="center",this._iconElement.style.overflow="hidden",this._iconElement.style.top="0px",this._iconElement.style.width="var(--eztime__icon--width)",this._iconElement.style.height="var(--eztime--height)",this._iconElement.style.left="0px",this._iconElement.style.borderRadius="var(--eztime--border-radius) 0 0 var(--eztime--border-radius)",this._inputElem.classList.add("icon--left"),this._labelElem&&this._labelElem.classList.add("input__label--left")),this.showError()}doFocus(){this.label&&this._labelElem&&(this._labelElem.classList.contains("input__label--floated")||this._labelElem.classList.add("input__label--floated"))}componentDidLoad(){this.onValueChanged(),this.adjustIconStyle(),this.adjustFloatingLabel(),this.showError()}componentWillLoad(){this.prepareMask(),this.value?this.prepareValue(this.value.toString()):this.viewValue&&this.prepareValue(this.viewValue)}render(){return i(e,null,i("ez-icon",{ref:t=>this._iconElement=t,href:"/themes/default/images/icons/actions-sprite.svg#timer-outline"}),this.label?i("label",{onClick:()=>this._inputElem.focus(),class:this.value?"input__label input__label--floated":"input__label",ref:t=>this._labelElem=t,title:this.label},this.label):null,i("input",{onFocus:()=>this.doFocus(),ref:t=>this._inputElem=t,type:"text",value:this.viewValue,disabled:!this.enabled,onInput:()=>{this.handleChange()},onFocusout:()=>{this.handleFocusout()}}),i("span",{class:"message-box",ref:t=>this._messageBoxElem=t},this.errormessage))}static get watchers(){return{errormessage:["showError"],showSeconds:["prepareMask"],value:["onValueChanged"]}}};a.style=":host{--eztime--height:42px;--eztime--width:100%;--eztime__icon--width:48px;--eztime--border-radius:var(--border--radius-medium, 12px);--eztime--font-size:var(--text--medium, 14px);--eztime--font-family:var(--font-pattern, Arial);--eztime--font-weight:var(--text-weight--large, 500);--eztime--space--medium:var(--space--medium, 6px);--eztime__input--background-color:var(--background--medium, #e0e0e0);--eztime__input--border:var(--border--medium, 2px solid);--eztime__input--border-color:var(--eztime__input--background-color);--eztime__input--focus--border-color:var(--color--primary, #008561);--eztime__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--eztime__input--disabled--color:var(--text--disable, #AFB6C0);--eztime__input--error--border-color:#CC2936;--eztime__label--color:var(--title--primary, #919191);--eztime__message_box--font-size:var(--text--small, 12px);--eztime__message_box--info--color:var(--color--success, #22085d);--eztime__message_box--error--color:var(--color--error, #FF0000);display:flex;flex-wrap:wrap;position:relative;width:var(--eztime--width)}.invisible{visibility:hidden}input{width:100%;box-sizing:border-box;padding:var(--space--medium, 6px);font-weight:var(--text-weight--large, 600);height:var(--eztime--height);border-radius:var(--eztime--border-radius);font-family:var(--eztime--font-family);font-size:var(--eztime--font-size);border:var(--eztime__input--border);border-color:var(--eztime__input--border-color);background-color:var(--eztime__input--background-color)}input:disabled{background-color:var(--eztime__input--disabled--background-color);color:var(--eztime__input--disabled--color)}input:focus{outline:none;border-color:var(--eztime__input--focus--border-color)}input.icon--left{padding-left:var(--eztime__icon--width)}input.icon--right{padding-right:var(--eztime__icon--width)}input::placeholder{color:var(--eztime__placeholder--color);font-weight:var(--eztime__placeholder--font-weight)}input:disabled::placeholder{color:var(--eztime__placeholder--disabled--color)}input.hasError{color:inherit;border-color:var(--eztime__input--error--border-color)}input.text--right{text-align:right}.message-box{min-height:16px;min-width:100%;margin-top:2px;line-height:12px;font-family:var(--eztime--font-family);font-size:var(--eztime__message_box--font-size);color:var(--eztime__message_box--info--color)}.hasError{color:var(--eztime__message_box--error--color)}.input__label{font-size:var(--eztime--font-size);font-weight:var(--eztime--font-weight);position:absolute;color:var(it__label--color);top:var(--eztime--space--medium);font-family:var(--eztime--font-family);-webkit-transition:font-size .3s, top .3s;transition:font-size .3s, top .3s;z-index:var(--visible);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;left:var(--eztime__icon--width);width:calc(100% - 10px - var(--eztime__icon--width))}.input__label--floated{font-family:var(--eztime--font-family);font-size:var(--text--extra-small);top:var(--space--small);color:var(--text--primary)}.input__label--left{left:var(--eztime__icon--width);width:calc(100% - 10px - var(--eztime__icon--width))}.input__label--right{padding-right:var(--eztime__icon--width);width:calc(100% - 10px - var(--eztime__icon--width))}.input--with--label{padding-bottom:0}";export{a as ez_time_input}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,c as r,h as e}from"./p-762ac7a0.js";let o=class{constructor(e){a(this,e),this.actionClick=r(this,"actionClick",7),this.enabled=!0}handleSlotChange(a){const r=a.target,e=r.assignedElements()[0];e&&(e.style.position="absolute",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e.style.overflow="hidden",e.style.top="0px",e.style.width="var(--ac__icon--width)",e.style.height="var(--ac--height)","leftIcon"==r.name?(e.style.left="0px",this._labelElem.classList.add("padding-left--small")):"rightIcon"==r.name&&(e.style.right="0px",this._labelElem.classList.add("padding-right--small")))}render(){return e("div",{onClick:()=>this.actionClick.emit(),class:"label__container"},e("slot",{name:"leftIcon",onSlotchange:a=>{this.handleSlotChange(a)}}),e("label",{ref:a=>this._labelElem=a},this.label),e("slot",{name:"rightIcon",onSlotchange:a=>{this.handleSlotChange(a)}}))}};o.style=":host{--ac--height:36px;--ac--width:100%;--ac__icon--width:48px;--ac--border-radius:var(--border--radius-large, 24px);--ac--font-size:var(--text--medium, 14px);--ac--font-family:var(--font-pattern, Arial);--ac--font-weight:var(--text-weight--large, 500);--ac--space--medium:var(--space--medium, 6px);--ac__border:1px solid;--ac__border-color-strokes:var(--color--strokes, #DCE0E8);--ac__label--title--primary:var(--title--primary, #919191);--ac__label--color-primary:var(--color--primary, #008561);--ac__label-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ac__label--background-color:#0085610F;--ac__label__default--background-color--hover:var(--color--primary-200, #f2faf8);--ac__label__default--border-color--hover:var(--color--primary-600, #007a5a);--ac__label--text--disabled:var(--text--disable, #AFB6C0);--ac__label--text--primary:var(--text--primary, #626e82);--ac__message_box--font-size:var(--text--small, 12px);--ac__message_box--info--color:var(--color--success, #22085d);--ac__message_box--error--color:var(--color--error, #FF0000)}.padding-right--small{padding-right:var(--ac--space--medium)}.padding-left--small{padding-left:var(--ac--space--medium)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;color:var(--ac__label--title--primary);fill:var(--ac__label--title--primary);border:var(--ac__border);border-radius:var(--ac--border-radius);border-color:var( --ac__border-color-strokes);padding-right:var(--space--large, 12px);padding-left:var(--space--large, 12px);cursor:pointer}.label__container:hover{border-color:var(--ac__label__default--border-color--hover);background-color:var(--ac__label__default--background-color--hover)}.label__container--active:hover{border-color:var(--ac__label__active--background-color--hover);background-color:var(--ac__label__active--background-color--hover)}label{display:flex;align-items:center;width:calc(100% - var(--ac__icon--width));width:fit-content;font-weight:var(--text-weight--large, 600);cursor:pointer;height:var(--ac--height);font-family:var(--ac--font-family);font-size:var(--ac--font-size)}";export{o as ez_action_chip}
|