@sankhyalabs/ezui 6.5.0-dev.4 → 6.5.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ApplicationUtils-a8c7553f.js → ApplicationUtils-6d393a1e.js} +1 -1
- package/dist/cjs/{app-globals-abfd9b11.js → app-globals-471cf35e.js} +1 -1
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +3 -3
- package/dist/cjs/ez-grid.cjs.entry.js +3 -3
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +89 -29
- package/dist/cjs/ez-search-plus.cjs.entry.js +2 -2
- package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +2 -2
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +245 -70
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-5b60179a.js → index-4ae2f4f6.js} +3 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{search-column-042cde9d.js → search-column-b99a6371.js} +2 -2
- package/dist/collection/components/ez-popup/ez-popup.css +24 -40
- package/dist/collection/components/ez-popup/ez-popup.js +134 -29
- package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js +1 -0
- package/dist/collection/components/ez-split-button/ez-split-button.css +256 -116
- package/dist/collection/components/ez-split-button/ez-split-button.js +390 -76
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +4 -4
- package/dist/collection/utils/i18n/locales/en-us.js +1 -0
- package/dist/collection/utils/i18n/locales/es-es.js +1 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +1 -0
- package/dist/custom-elements/index.js +337 -100
- package/dist/esm/{ApplicationUtils-0fd22faf.js → ApplicationUtils-abffacb5.js} +1 -1
- package/dist/esm/{app-globals-9a422cb4.js → app-globals-457e3ce3.js} +1 -1
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/ez-combo-box-list_4.entry.js +2 -2
- package/dist/esm/ez-combo-box.entry.js +2 -2
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-double-list.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +3 -3
- package/dist/esm/ez-grid.entry.js +3 -3
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-pagination.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +90 -30
- package/dist/esm/ez-search-plus.entry.js +2 -2
- package/dist/esm/ez-search-result-list.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +2 -2
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-sortable-list.entry.js +1 -1
- package/dist/esm/ez-spinner.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +246 -71
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +2 -2
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-6517a082.js → index-2d2631f6.js} +3 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{search-column-38ddb94e.js → search-column-33bd60a2.js} +2 -2
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-b71ac997.entry.js → p-1046d6ea.entry.js} +1 -1
- package/dist/ezui/{p-c77d297b.entry.js → p-1be46be7.entry.js} +1 -1
- package/dist/ezui/{p-53da64a6.entry.js → p-1cdd68b8.entry.js} +1 -1
- package/dist/ezui/{p-432c2321.entry.js → p-206b8d7c.entry.js} +1 -1
- package/dist/ezui/{p-47abb383.entry.js → p-21567b04.entry.js} +1 -1
- package/dist/ezui/{p-69e45272.entry.js → p-24ad21b3.entry.js} +1 -1
- package/dist/ezui/{p-714b46e6.entry.js → p-26b9d725.entry.js} +1 -1
- package/dist/ezui/{p-e9691b45.entry.js → p-26e04c83.entry.js} +1 -1
- package/dist/ezui/{p-7626d180.js → p-2b5d2aac.js} +1 -1
- package/dist/ezui/{p-66d18c42.entry.js → p-34a63e55.entry.js} +1 -1
- package/dist/ezui/{p-71b3fb24.entry.js → p-39686f48.entry.js} +1 -1
- package/dist/ezui/{p-d0f4544c.js → p-475b71ca.js} +1 -1
- package/dist/ezui/{p-356b0a25.entry.js → p-4df05980.entry.js} +1 -1
- package/dist/ezui/{p-d7e8ca9e.entry.js → p-54b1aceb.entry.js} +1 -1
- package/dist/ezui/{p-4446f3cd.entry.js → p-7212066a.entry.js} +1 -1
- package/dist/ezui/{p-c565e9c1.entry.js → p-75cde3f4.entry.js} +1 -1
- package/dist/ezui/{p-187d669d.js → p-7caf6797.js} +1 -1
- package/dist/ezui/{p-9f1694a5.entry.js → p-8906694c.entry.js} +1 -1
- package/dist/ezui/p-8a52f030.js +1 -0
- package/dist/ezui/{p-058025a4.entry.js → p-a077a8ba.entry.js} +1 -1
- package/dist/ezui/{p-035b5180.entry.js → p-a0dc214f.entry.js} +1 -1
- package/dist/ezui/{p-8b0e6b83.entry.js → p-a9d71475.entry.js} +1 -1
- package/dist/ezui/p-ac215c95.entry.js +1 -0
- package/dist/ezui/{p-d423e2b3.entry.js → p-b2e99998.entry.js} +1 -1
- package/dist/ezui/{p-cc4b89ea.entry.js → p-b6cf2d25.entry.js} +1 -1
- package/dist/ezui/{p-d2d9befa.entry.js → p-ba541cad.entry.js} +1 -1
- package/dist/ezui/{p-18e383c1.entry.js → p-bd81ade8.entry.js} +1 -1
- package/dist/ezui/p-bdb02f67.entry.js +1 -0
- package/dist/ezui/{p-22d80677.entry.js → p-bf136e89.entry.js} +1 -1
- package/dist/ezui/{p-2a4ebffa.entry.js → p-c482200d.entry.js} +1 -1
- package/dist/ezui/{p-171e5243.entry.js → p-d9c2c877.entry.js} +1 -1
- package/dist/ezui/{p-60a626da.entry.js → p-dd934eea.entry.js} +1 -1
- package/dist/ezui/{p-a7c85153.entry.js → p-defc720e.entry.js} +1 -1
- package/dist/ezui/{p-df58d45b.entry.js → p-e033e59a.entry.js} +1 -1
- package/dist/ezui/{p-2c72377f.entry.js → p-e4717b01.entry.js} +1 -1
- package/dist/ezui/{p-9b1f6efb.entry.js → p-ea467f98.entry.js} +1 -1
- package/dist/ezui/{p-e1e48a22.entry.js → p-ed143c2f.entry.js} +1 -1
- package/dist/ezui/{p-4805957f.entry.js → p-edcd8715.entry.js} +1 -1
- package/dist/ezui/{p-4ff1501e.entry.js → p-f5a87d81.entry.js} +1 -1
- package/dist/ezui/{p-dc8841c8.entry.js → p-f5e62b38.entry.js} +1 -1
- package/dist/ezui/{p-0c966145.entry.js → p-fb9856e6.entry.js} +1 -1
- package/dist/types/components/ez-popup/ez-popup.d.ts +16 -3
- package/dist/types/components/ez-popup/interfaces/EzButtonProps.d.ts +28 -0
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +93 -8
- package/dist/types/components.d.ts +133 -4
- package/dist/types/utils/i18n/locales/en-us.d.ts +1 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +1 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +1 -0
- package/dist/types/utils/i18n/translations.d.ts +3 -0
- package/package.json +1 -1
- package/dist/ezui/p-62b8d0db.js +0 -1
- package/dist/ezui/p-9c5cd3b2.entry.js +0 -1
- package/dist/ezui/p-c331a21e.entry.js +0 -1
|
@@ -2803,6 +2803,7 @@ const ptBrTranslations = {
|
|
|
2803
2803
|
loading: "Carregando",
|
|
2804
2804
|
apply: "Aplicar",
|
|
2805
2805
|
cancel: "Cancelar",
|
|
2806
|
+
confirm: "Confirmar",
|
|
2806
2807
|
ok: "OK",
|
|
2807
2808
|
alerts: "Avisos",
|
|
2808
2809
|
requiredInfo: " (obrigatório) *",
|
|
@@ -3095,6 +3096,7 @@ const enUsTranslations = {
|
|
|
3095
3096
|
loading: "Loading",
|
|
3096
3097
|
apply: "Apply",
|
|
3097
3098
|
cancel: "Cancel",
|
|
3099
|
+
confirm: "Confirm",
|
|
3098
3100
|
ok: "OK",
|
|
3099
3101
|
alerts: "Alerts",
|
|
3100
3102
|
requiredInfo: " (required) *",
|
|
@@ -3387,6 +3389,7 @@ const esEsTranslations = {
|
|
|
3387
3389
|
loading: "Cargando",
|
|
3388
3390
|
apply: "Aplicar",
|
|
3389
3391
|
cancel: "Cancelar",
|
|
3392
|
+
confirm: "Confirmar",
|
|
3390
3393
|
ok: "OK",
|
|
3391
3394
|
alerts: "Avisos",
|
|
3392
3395
|
requiredInfo: " (obligatorio) *",
|
|
@@ -82798,7 +82801,7 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
82798
82801
|
static get style() { return ezPopoverPlusCss; }
|
|
82799
82802
|
};
|
|
82800
82803
|
|
|
82801
|
-
const ezPopupCss = ":host{display:flex;width:auto;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--
|
|
82804
|
+
const ezPopupCss = ":host{display:flex;width:auto;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--24, 24px);--ez-popup__title--font-family:var(--font--pattern, \"Roboto\");--ez-popup__title--font-size:var(--font-size--xxlarge, 22px);--ez-popup__title--color:var(--title--primary, #00281D);--ez-popup__title--font-weight:var(--font-weight--regular, 400)}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);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__container{width:100%;max-height:90%;height:100%;display:flex;flex-direction:column;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding);margin:0;border:none;position:unset;gap:var(--space--16, 16px)}.popup__container--auto{height:auto}.popup__overflow-y--auto{overflow-y:auto}.popup__content{box-sizing:border-box;height:100%;width:100%}.popup__expandable-content{box-sizing:border-box;width:100%;flex:1;font-family:var(--font--pattern, \"Roboto\");font-size:var(--font-size--default, 14px);color:var(--title--primary, #00281D);font-weight:var(--font-weight--regular, 400);line-height:var(--line-height--24, 24px)}.popup__header{width:100%;display:flex;align-items:center}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:var(--line-height--32, 32px)}.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--solo{width:100%}.popup__footer{display:flex;width:100%;flex-direction:row-reverse;gap:var(--space--8, 8px)}.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}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@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%}}";
|
|
82802
82805
|
|
|
82803
82806
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
82804
82807
|
constructor() {
|
|
@@ -82807,29 +82810,23 @@ const EzPopup$1 = class extends HTMLElement$1 {
|
|
|
82807
82810
|
this.__attachShadow();
|
|
82808
82811
|
this.ezClosePopup = createEvent(this, "ezClosePopup", 7);
|
|
82809
82812
|
this.ezPopupAction = createEvent(this, "ezPopupAction", 7);
|
|
82810
|
-
this._sizeClasses = {
|
|
82811
|
-
"x-small": "col--sd-3 ez-popup__size-limit--x-small",
|
|
82812
|
-
"small": "col--sd-5",
|
|
82813
|
-
"medium": "col--sd-6",
|
|
82814
|
-
"large": "col--sd-9",
|
|
82815
|
-
"x-large": "col--sd-11",
|
|
82816
|
-
"default": "ez-popup__size-limit--x-small",
|
|
82817
|
-
"auto": "",
|
|
82818
|
-
};
|
|
82819
82813
|
this.size = "medium";
|
|
82820
82814
|
this.opened = false;
|
|
82821
82815
|
this.useHeader = true;
|
|
82822
82816
|
this.heightMode = "full";
|
|
82823
82817
|
this.ezTitle = undefined;
|
|
82824
82818
|
this.enabledScroll = false;
|
|
82819
|
+
this.autoClose = true;
|
|
82820
|
+
this.footerButtons = [];
|
|
82825
82821
|
}
|
|
82826
82822
|
observeConfig() {
|
|
82827
82823
|
this.manageOverflow();
|
|
82828
82824
|
}
|
|
82825
|
+
async componentWillLoad() {
|
|
82826
|
+
this.i18n = await initI18n();
|
|
82827
|
+
}
|
|
82829
82828
|
componentDidLoad() {
|
|
82830
|
-
|
|
82831
|
-
this._popupRef.focus();
|
|
82832
|
-
}
|
|
82829
|
+
this.popUpFocus();
|
|
82833
82830
|
this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element, enableShadowDom: true })
|
|
82834
82831
|
.bind("Enter", this.ezPopupAction.emit.bind("OK"))
|
|
82835
82832
|
.bind("Escape", () => this.closePopup())
|
|
@@ -82864,31 +82861,96 @@ const EzPopup$1 = class extends HTMLElement$1 {
|
|
|
82864
82861
|
if (!this.opened) {
|
|
82865
82862
|
return;
|
|
82866
82863
|
}
|
|
82867
|
-
|
|
82868
|
-
|
|
82869
|
-
|
|
82870
|
-
this._popupRef.focus();
|
|
82871
|
-
}
|
|
82872
|
-
});
|
|
82864
|
+
if (this._popupRef) {
|
|
82865
|
+
this._popupRef.focus();
|
|
82866
|
+
}
|
|
82873
82867
|
}
|
|
82874
82868
|
getGridSize() {
|
|
82875
|
-
|
|
82876
|
-
|
|
82877
|
-
|
|
82878
|
-
|
|
82879
|
-
|
|
82880
|
-
|
|
82869
|
+
const _sizeClasses = {
|
|
82870
|
+
"x-small": "col--sd-3 ez-popup__size-limit--x-small",
|
|
82871
|
+
"small": "col--sd-5",
|
|
82872
|
+
"medium": "col--sd-6",
|
|
82873
|
+
"large": "col--sd-9",
|
|
82874
|
+
"x-large": "col--sd-11",
|
|
82875
|
+
"default": "ez-popup__size-limit--x-small",
|
|
82876
|
+
"auto": "",
|
|
82877
|
+
};
|
|
82878
|
+
if (!this.size || !_sizeClasses.hasOwnProperty(this.size)) {
|
|
82879
|
+
return _sizeClasses["medium"];
|
|
82880
|
+
}
|
|
82881
|
+
return _sizeClasses[this.size] || _sizeClasses["medium"];
|
|
82881
82882
|
}
|
|
82882
|
-
|
|
82883
|
-
|
|
82883
|
+
getDialogClass() {
|
|
82884
|
+
let className = 'popup__container';
|
|
82885
|
+
if (this.heightMode === 'auto') {
|
|
82886
|
+
className += ' popup__container--auto';
|
|
82887
|
+
}
|
|
82888
|
+
if (this.enabledScroll) {
|
|
82889
|
+
className += ' popup__overflow-y--auto';
|
|
82890
|
+
}
|
|
82891
|
+
className += ` ${this.getGridSize()}`;
|
|
82892
|
+
return className;
|
|
82884
82893
|
}
|
|
82885
82894
|
componentDidRender() {
|
|
82886
82895
|
this.manageOverlay();
|
|
82887
82896
|
this.popUpFocus();
|
|
82888
82897
|
}
|
|
82898
|
+
handleAutoClose(event) {
|
|
82899
|
+
if (!this.opened || !this._popupRef || !this.autoClose) {
|
|
82900
|
+
return;
|
|
82901
|
+
}
|
|
82902
|
+
if (this._popupRef.contains(event.target)) {
|
|
82903
|
+
return;
|
|
82904
|
+
}
|
|
82905
|
+
const slot = this._popupRef.querySelector('slot');
|
|
82906
|
+
if (slot && slot.assignedElements().length > 0) {
|
|
82907
|
+
const assignedElements = slot.assignedElements();
|
|
82908
|
+
for (const element of assignedElements) {
|
|
82909
|
+
if (element.contains(event.target)) {
|
|
82910
|
+
return;
|
|
82911
|
+
}
|
|
82912
|
+
}
|
|
82913
|
+
}
|
|
82914
|
+
if (this._popupRef.shadowRoot && this._popupRef.shadowRoot.contains(event.target)) {
|
|
82915
|
+
return;
|
|
82916
|
+
}
|
|
82917
|
+
this.closePopup();
|
|
82918
|
+
}
|
|
82919
|
+
handleDefaultPropsButtonsByIndex(index) {
|
|
82920
|
+
switch (index) {
|
|
82921
|
+
case 0:
|
|
82922
|
+
return {
|
|
82923
|
+
label: this.i18n ? this.i18n('app.confirm') : 'Confirmar',
|
|
82924
|
+
variant: "primary",
|
|
82925
|
+
size: "small",
|
|
82926
|
+
onClick: () => {
|
|
82927
|
+
this.closePopup();
|
|
82928
|
+
this.ezPopupAction.emit("OK");
|
|
82929
|
+
}
|
|
82930
|
+
};
|
|
82931
|
+
case 1:
|
|
82932
|
+
return {
|
|
82933
|
+
label: this.i18n ? this.i18n('app.cancel') : 'Cancelar',
|
|
82934
|
+
variant: "secondary",
|
|
82935
|
+
size: "small",
|
|
82936
|
+
onClick: () => {
|
|
82937
|
+
this.closePopup();
|
|
82938
|
+
}
|
|
82939
|
+
};
|
|
82940
|
+
case 2:
|
|
82941
|
+
return {
|
|
82942
|
+
label: this.i18n ? this.i18n('app.close') : 'Fechar',
|
|
82943
|
+
variant: "tertiary",
|
|
82944
|
+
size: "small",
|
|
82945
|
+
onClick: () => {
|
|
82946
|
+
this.closePopup();
|
|
82947
|
+
}
|
|
82948
|
+
};
|
|
82949
|
+
}
|
|
82950
|
+
}
|
|
82889
82951
|
render() {
|
|
82890
|
-
return (h(Host, null, this.opened
|
|
82891
|
-
h(
|
|
82952
|
+
return (h(Host, null, this.opened && (h("div", { class: "overlay", tabIndex: -1, onClick: this.handleAutoClose.bind(this) }, h("dialog", { ref: ref => this._popupRef = ref, class: this.getDialogClass() }, this.useHeader &&
|
|
82953
|
+
h("header", { class: "popup__header" }, !!this.ezTitle && h("h1", { class: "popup__title" }, this.ezTitle), h("ez-button", { class: this.ezTitle ? "btn-close" : "btn-close btn-close--solo", variant: "tertiary", mode: "icon", iconName: "close", size: "small", onClick: this.closePopup.bind(this) })), h("main", { class: "popup__expandable-content" }, h("slot", null)), this.footerButtons.length > 0 && (h("footer", { class: "popup__footer" }, this.footerButtons.slice(0, 3).map((buttonProps, index) => (h("ez-button", Object.assign({ key: index }, this.handleDefaultPropsButtonsByIndex(index), buttonProps)))))))))));
|
|
82892
82954
|
}
|
|
82893
82955
|
get _element() { return this; }
|
|
82894
82956
|
static get watchers() { return {
|
|
@@ -88636,8 +88698,12 @@ const EzSpinner$1 = class extends HTMLElement$1 {
|
|
|
88636
88698
|
static get style() { return ezSpinnerCss; }
|
|
88637
88699
|
};
|
|
88638
88700
|
|
|
88639
|
-
const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #2B3A54);--ez-split-button--font-size:var(--text--small, 12px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--light, #ffffff);--ez-split-button--border-radius:var(--border--radius-large, 24px);--ez-split-button--border:1px solid var(--color--strokes);--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--background--light, #ffffff);--ez-split-button--disabled-color:var(--text--primary);--ez-split-button--disabled--background-color:var(--background--medium);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none;justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button:focus{box-shadow:0 0 0 2px var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__right-button:focus{box-shadow:2px 0 0 0 var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:active,.ez-split-button__right-button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled{border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled{border:var(--ez-split-button--disabled-border);border-left:none}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:var(--ez-elevation--8);border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
|
|
88701
|
+
const ezSplitButtonCss = ":host{--ez-split-button--min-width:var(--space--40, 40px);--ez-split-button--width:auto;--ez-split-button--height:var(--space--32, 32px);--ez-split-button__medium-icon--width:var(--space--40, 40px);--ez-split-button__large-icon--width:var(--space--44, 44px);--ez-split-button__label--padding-top:var(--space--0, 0px);--ez-split-button__label--padding-bottom:var(--space--0, 0px);--ez-split-button__right-button--padding-left:var(--space--8, 8px);--ez-split-button__right-button--padding-right:var(--space--12, 12px);--ez-split-button--color:var(--color--ocean-green-600, #008561);--ez-split-button__left-icon--color:var(--color--ocean-green-600, #008561);--ez-split-button__right-icon--color:var(--color--ocean-green-600, #008561);--ez-split-button--background-color:var(--color--gray-70, #FFFFFF);--ez-split-button--border:1px solid var(--color--gray-90, #EAEAEA);--ez-split-button--font-size:var(--font-size--default, 14px);--ez-split-button--line-height:var(--line-height--28, 28px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--font-weight--regular,400);--ez-split-button--border-radius:var(--border--radius-24, 24px);--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--color--gray-80, #F9F9F9);--ez-split-button--disabled-color:var(--color--gray-400, #77777A);--ez-split-button--disabled--background-color:var(--color--gray-80, #F9F9F9);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;display:flex;width:fit-content}:host(.ez-split-button--primary){--ez-split-button--color:var(--color--gray-70);--ez-split-button--background-color:var(--color--ocean-green-500);--ez-split-button--font-weight:var(--font-weight--regular);--ez-split-button--border:none;--ez-split-button__left-icon--color:var(--color--gray-70);--ez-split-button__right-icon--color:var(--color--gray-70);--ez-split-button--hover-color:var(--color--gray-70);--ez-split-button--hover--background-color:var(--color--ocean-green-700);--ez-split-button--hover--border:none;--ez-split-button--left-icon--hover-color:var(--color--gray-70);--ez-split-button--right-icon--hover-color:var(--color--gray-70);--ez-split-button--disabled-color:var(--color--gray-70);--ez-split-button--disabled--background-color:var(--color--gray-400);--ez-split-button--disabled--border:none;--ez-split-button--disabled-icon-color:var(--color--gray-200);--ez-split-button__left-icon--disabled-color:var(--color--gray-200);--ez-split-button__right-icon--disabled-color:var(--color--gray-200)}:host(.ez-split-button--secondary){--ez-split-button--color:var(--color--ocean-green-600);--ez-split-button--background-color:var(--color--gray-70);--ez-split-button--border:1px solid var(--color--gray-90);--ez-split-button--left-icon--color:var(--color--ocean-green-600);--ez-split-button--right-icon--color:var(--color--ocean-green-600);--ez-split-button--hover-color:var(--color--ocean-green-600);--ez-split-button--hover--background-color:var(--color--gray-80);--ez-split-button--hover--border:1px solid var(--color--gray-90);--ez-split-button--left-icon--hover-color:var(--color--ocean-green-600);--ez-split-button--right-icon--hover-color:var(--color--ocean-green-600);--ez-split-button--disabled-color:var(--color--gray-400);--ez-split-button--disabled--background-color:var(--color--gray-80);--ez-split-button--disabled--border:1px solid var(--color--gray-200);--ez-split-button--disabled-icon-color:var(--color--gray-400);--ez-split-button__left-icon--disabled-color:var(--color--gray-300);--ez-split-button__right-icon--disabled-color:var(--color--gray-300)}:host(.ez-split-button--tertiary){--ez-split-button--color:var(--color--ocean-green-600);--ez-split-button--background-color:transparent;--ez-split-button--font-weight:var(--font-weight--regular);--ez-split-button--border:none;--ez-split-button--left-icon--color:var(--color--ocean-green-600);--ez-split-button--right-icon--color:var(--color--ocean-green-600);--ez-split-button--hover-color:var(--color--ocean-green-800);--ez-split-button--hover--background-color:transparent;--ez-split-button--hover--border:none;--ez-split-button--left-icon--hover-color:var(--color--ocean-green-800);--ez-split-button--right-icon--hover-color:var(--color--ocean-green-800);--ez-split-button--disabled-color:var(--color--gray-400);--ez-split-button--disabled--background-color:transparent;--ez-split-button--disabled--border:transparent;--ez-split-button--disabled-icon-color:var(--color--gray-200);--ez-split-button__left-icon--disabled-color:var(--color--gray-200);--ez-split-button__right-icon--disabled-color:var(--color--gray-200)}.ez-split-button.large{--ez-split-button--height:var(--space--42, 42px)}.ez-split-button.medium{--ez-split-button--height:var(--space--32, 32px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear, transform 0.15s ease;white-space:nowrap;overflow:hidden;transform:scale(1);min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none}label{cursor:pointer;line-height:var(--ez-split-button--line-height)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none;gap:var(--space--8, 8px);padding-left:var(--space--12, 12px);padding-right:var(--space--8, 8px)}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button.force-focus-visible,.ez-split-button__left-button:focus-visible{box-shadow:-1px 1px 0px 1px var(--color--gray-70), \n -1px -1px 0px 1px var(--color--gray-70), \n -2px -2px 0px 2px var(--color--ocean-green-200), \n -2px 2px 0px 2px var(--color--ocean-green-200), \n 0px -2px 0px 2px var(--color--ocean-green-200), \n 0px 2px 0px 2px var(--color--ocean-green-200)}.ez-split-button__right-button.force-focus-visible,.ez-split-button__right-button:focus-visible{box-shadow:1px 1px 0px 1px var(--color--gray-70), \n 1px -1px 0px 1px var(--color--gray-70), \n 2px -2px 0px 2px var(--color--ocean-green-200), \n 2px 2px 0px 2px var(--color--ocean-green-200), \n 0px -2px 0px 2px var(--color--ocean-green-200), \n 0px 2px 0px 2px var(--color--ocean-green-200)}.ez-split-button__left-button[aria-disabled].force-focus-visible,.ez-split-button__left-button[aria-disabled]:focus-visible{box-shadow:-1px 1px 0px 1px var(--color--gray-70), \n -1px -1px 0px 1px var(--color--gray-70), \n -2px -2px 0px 2px var(--color--petroleum-100), \n -2px 2px 0px 2px var(--color--petroleum-100), \n 0px -2px 0px 2px var(--color--petroleum-100), \n 0px 2px 0px 2px var(--color--petroleum-100)}.ez-split-button__right-button[aria-disabled].force-focus-visible,.ez-split-button__right-button[aria-disabled]:focus-visible{box-shadow:1px 1px 0px 1px var(--color--gray-70), \n 1px -1px 0px 1px var(--color--gray-70), \n 2px -2px 0px 2px var(--color--petroleum-100), \n 2px 2px 0px 2px var(--color--petroleum-100), \n 0px -2px 0px 2px var(--color--petroleum-100), \n 0px 2px 0px 2px var(--color--petroleum-100)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled],.ez-split-button__left-button:disabled label,.ez-split-button__left-button[aria-disabled] label,.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button__left-icon--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled]{--ez-icon--color:var(--ez-split-button__left-icon--disabled-color);border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{--ez-icon--color:var(--ez-split-button__right-icon--disabled-color);border:var(--ez-split-button--disabled-border);border-left:none}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__divider{width:1px;box-sizing:border-box;position:relative;background-color:var(--ez-split-button--background-color);height:var(--ez-split-button--height);border-top:var(--ez-split-button--border);border-bottom:var(--ez-split-button--border)}.ez-split-button__divider[aria-disabled],.ez-split-button__divider.disabled{cursor:not-allowed;background-color:var(--ez-split-button--disabled--background-color);border-top:var(--ez-split-button--disabled--border);border-bottom:var(--ez-split-button--disabled--border)}.ez-split-button__divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 10%);border-radius:2px;height:75%;top:10%;bottom:10%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left);padding-right:var(--ez-split-button__right-button--padding-right)}.ez-split-button{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:var(--ez-elevation--8);border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}.ripple{position:absolute;width:20px;height:20px;border-radius:50%;background:rgba(255, 255, 255, 0.3);pointer-events:none;transform:scale(0);animation:ripple-animation 0.6s linear;z-index:0}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}:host .ripple,:host(.ez-split-button--secondary) .ripple{background:rgba(0, 133, 97, 0.2)}:host(.ez-split-button--primary) .ripple{background:rgba(255, 255, 255, 0.3)}:host(.ez-split-button--tertiary) .ripple{background:rgba(0, 133, 97, 0.15)}.ez-split-button__left-button.pressed,.ez-split-button__right-button.pressed{transform:scale(0.98)}.ez-split-button__left-button>*:not(.ripple),.ez-split-button__right-button>*:not(.ripple){position:relative;z-index:1}.ez-split-button__left-button:disabled .ripple,.ez-split-button__left-button[aria-disabled] .ripple,.ez-split-button__right-button:disabled .ripple,.ez-split-button__right-button[aria-disabled] .ripple{display:none}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled],.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{transform:scale(1) !important}";
|
|
88640
88702
|
|
|
88703
|
+
const ANIMATION_TIMINGS = {
|
|
88704
|
+
PRESSED_DURATION: 150,
|
|
88705
|
+
RIPPLE_DURATION: 600
|
|
88706
|
+
};
|
|
88641
88707
|
const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
88642
88708
|
constructor() {
|
|
88643
88709
|
super();
|
|
@@ -88646,9 +88712,63 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
|
88646
88712
|
this.buttonClick = createEvent(this, "buttonClick", 7);
|
|
88647
88713
|
this.dropdownItemClick = createEvent(this, "dropdownItemClick", 7);
|
|
88648
88714
|
this.dropdownSubActionClick = createEvent(this, "dropdownSubActionClick", 7);
|
|
88715
|
+
this.rippleCounter = 0;
|
|
88716
|
+
this.eventListeners = new WeakMap();
|
|
88717
|
+
this.createRipple = (event, isLeftButton) => {
|
|
88718
|
+
const button = isLeftButton ? this.leftButton : this.rightButton;
|
|
88719
|
+
if (!button || this.isButtonDisabled || this.suppressAnimation)
|
|
88720
|
+
return;
|
|
88721
|
+
const coordinates = this.getEventCoordinates(event);
|
|
88722
|
+
const rect = button.getBoundingClientRect();
|
|
88723
|
+
const ripplePosition = {
|
|
88724
|
+
x: coordinates.x - rect.left,
|
|
88725
|
+
y: coordinates.y - rect.top
|
|
88726
|
+
};
|
|
88727
|
+
const newRipple = Object.assign(Object.assign({}, ripplePosition), { id: ++this.rippleCounter });
|
|
88728
|
+
this.addRippleToButton(newRipple, isLeftButton);
|
|
88729
|
+
};
|
|
88730
|
+
/**
|
|
88731
|
+
* Método responsável em posicionar o dropdown na tela.
|
|
88732
|
+
* Faz com que o dropdown se ajuste automaticamente ao espaco na tela
|
|
88733
|
+
*/
|
|
88734
|
+
this.positionDropdown = () => {
|
|
88735
|
+
if (!this.rightButton || !this.dropdownParent)
|
|
88736
|
+
return;
|
|
88737
|
+
requestAnimationFrame(() => {
|
|
88738
|
+
const { rightButton, dropdownParent } = this;
|
|
88739
|
+
const rightButtonRect = rightButton.getBoundingClientRect();
|
|
88740
|
+
const dropdownRect = dropdownParent.getBoundingClientRect();
|
|
88741
|
+
const viewportHeight = window.innerHeight;
|
|
88742
|
+
const viewportWidth = window.innerWidth;
|
|
88743
|
+
// Calcule posições de forma mais eficiente
|
|
88744
|
+
const spaceBelow = viewportHeight - rightButtonRect.bottom;
|
|
88745
|
+
const spaceAbove = rightButtonRect.top;
|
|
88746
|
+
const spaceRight = viewportWidth - rightButtonRect.left;
|
|
88747
|
+
const spaceLeft = rightButtonRect.left;
|
|
88748
|
+
const shouldOpenUpward = spaceBelow < dropdownRect.height && spaceAbove > dropdownRect.height;
|
|
88749
|
+
const shouldOpenLeftward = spaceRight < dropdownRect.width && spaceLeft > dropdownRect.width;
|
|
88750
|
+
const styles = this.calculateDropdownPosition(rightButtonRect, dropdownRect, shouldOpenUpward, shouldOpenLeftward);
|
|
88751
|
+
Object.assign(dropdownParent.style, styles);
|
|
88752
|
+
});
|
|
88753
|
+
};
|
|
88754
|
+
this.removeForcedFocusVisibleLeft = () => {
|
|
88755
|
+
var _a;
|
|
88756
|
+
(_a = this.leftButton) === null || _a === void 0 ? void 0 : _a.classList.remove('force-focus-visible');
|
|
88757
|
+
};
|
|
88758
|
+
this.removeForcedFocusVisibleRight = () => {
|
|
88759
|
+
var _a;
|
|
88760
|
+
(_a = this.rightButton) === null || _a === void 0 ? void 0 : _a.classList.remove('force-focus-visible');
|
|
88761
|
+
};
|
|
88762
|
+
this.leftRipples = [];
|
|
88763
|
+
this.rightRipples = [];
|
|
88764
|
+
this.isLeftPressed = false;
|
|
88765
|
+
this.isRightPressed = false;
|
|
88649
88766
|
this.show = false;
|
|
88650
88767
|
this.enabled = true;
|
|
88768
|
+
this.isDisabled = false;
|
|
88651
88769
|
this.iconName = undefined;
|
|
88770
|
+
this.leftIconName = undefined;
|
|
88771
|
+
this.rightIconName = undefined;
|
|
88652
88772
|
this.image = undefined;
|
|
88653
88773
|
this.items = undefined;
|
|
88654
88774
|
this.label = undefined;
|
|
@@ -88656,6 +88776,8 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
|
88656
88776
|
this.rightTitle = undefined;
|
|
88657
88777
|
this.mode = 'default';
|
|
88658
88778
|
this.size = 'medium';
|
|
88779
|
+
this.variant = undefined;
|
|
88780
|
+
this.suppressAnimation = false;
|
|
88659
88781
|
this.itemBuilder = undefined;
|
|
88660
88782
|
}
|
|
88661
88783
|
/**
|
|
@@ -88670,12 +88792,14 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
|
88670
88792
|
*/
|
|
88671
88793
|
async setLeftButtonFocus() {
|
|
88672
88794
|
this.leftButton.focus();
|
|
88795
|
+
this.leftButton.classList.add("force-focus-visible");
|
|
88673
88796
|
}
|
|
88674
88797
|
/**
|
|
88675
88798
|
* Aplica o foco no botão do dropdown.
|
|
88676
|
-
|
|
88799
|
+
*/
|
|
88677
88800
|
async setRightButtonFocus() {
|
|
88678
88801
|
this.rightButton.focus();
|
|
88802
|
+
this.rightButton.classList.add("force-focus-visible");
|
|
88679
88803
|
}
|
|
88680
88804
|
/**
|
|
88681
88805
|
* Abre ou Fecha o dropdown do Split Button.
|
|
@@ -88689,18 +88813,99 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
|
88689
88813
|
async isOpenedDropdown() {
|
|
88690
88814
|
return this.show;
|
|
88691
88815
|
}
|
|
88816
|
+
getEventCoordinates(event) {
|
|
88817
|
+
if (event instanceof MouseEvent) {
|
|
88818
|
+
return { x: event.clientX, y: event.clientY };
|
|
88819
|
+
}
|
|
88820
|
+
return {
|
|
88821
|
+
x: event.touches[0].clientX,
|
|
88822
|
+
y: event.touches[0].clientY
|
|
88823
|
+
};
|
|
88824
|
+
}
|
|
88825
|
+
addRippleToButton(ripple, isLeftButton) {
|
|
88826
|
+
if (isLeftButton) {
|
|
88827
|
+
this.leftRipples = [...this.leftRipples, ripple];
|
|
88828
|
+
this.setButtonPressed(true, true);
|
|
88829
|
+
this.scheduleRippleCleanup(ripple, true);
|
|
88830
|
+
}
|
|
88831
|
+
else {
|
|
88832
|
+
this.rightRipples = [...this.rightRipples, ripple];
|
|
88833
|
+
this.setButtonPressed(false, true);
|
|
88834
|
+
this.scheduleRippleCleanup(ripple, false);
|
|
88835
|
+
}
|
|
88836
|
+
}
|
|
88837
|
+
setButtonPressed(isLeftButton, pressed) {
|
|
88838
|
+
if (isLeftButton) {
|
|
88839
|
+
this.isLeftPressed = pressed;
|
|
88840
|
+
}
|
|
88841
|
+
else {
|
|
88842
|
+
this.isRightPressed = pressed;
|
|
88843
|
+
}
|
|
88844
|
+
}
|
|
88845
|
+
scheduleRippleCleanup(ripple, isLeftButton) {
|
|
88846
|
+
setTimeout(() => {
|
|
88847
|
+
this.setButtonPressed(isLeftButton, false);
|
|
88848
|
+
}, ANIMATION_TIMINGS.PRESSED_DURATION);
|
|
88849
|
+
setTimeout(() => {
|
|
88850
|
+
this.removeRipple(ripple.id, isLeftButton);
|
|
88851
|
+
}, ANIMATION_TIMINGS.RIPPLE_DURATION);
|
|
88852
|
+
}
|
|
88853
|
+
removeRipple(rippleId, isLeftButton) {
|
|
88854
|
+
if (isLeftButton) {
|
|
88855
|
+
this.leftRipples = this.leftRipples.filter(ripple => ripple.id !== rippleId);
|
|
88856
|
+
}
|
|
88857
|
+
else {
|
|
88858
|
+
this.rightRipples = this.rightRipples.filter(ripple => ripple.id !== rippleId);
|
|
88859
|
+
}
|
|
88860
|
+
}
|
|
88861
|
+
onMouseDown(event) {
|
|
88862
|
+
const composedPath = event.composedPath();
|
|
88863
|
+
const isLeftButton = composedPath.includes(this.leftButton);
|
|
88864
|
+
const isRightButton = composedPath.includes(this.rightButton);
|
|
88865
|
+
if (isLeftButton) {
|
|
88866
|
+
this.createRipple(event, true);
|
|
88867
|
+
return;
|
|
88868
|
+
}
|
|
88869
|
+
if (isRightButton) {
|
|
88870
|
+
this.createRipple(event, false);
|
|
88871
|
+
return;
|
|
88872
|
+
}
|
|
88873
|
+
}
|
|
88874
|
+
onTouchStart(event) {
|
|
88875
|
+
const composedPath = event.composedPath();
|
|
88876
|
+
const isLeftButton = composedPath.includes(this.leftButton);
|
|
88877
|
+
const isRightButton = composedPath.includes(this.rightButton);
|
|
88878
|
+
if (isLeftButton) {
|
|
88879
|
+
this.createRipple(event, true);
|
|
88880
|
+
return;
|
|
88881
|
+
}
|
|
88882
|
+
if (isRightButton) {
|
|
88883
|
+
this.createRipple(event, false);
|
|
88884
|
+
return;
|
|
88885
|
+
}
|
|
88886
|
+
}
|
|
88692
88887
|
clickListener(evt) {
|
|
88693
|
-
|
|
88888
|
+
const isDisabled = !this.enabled ||
|
|
88889
|
+
this.isDisabled === true ||
|
|
88890
|
+
this.isDisabled === "" ||
|
|
88891
|
+
this.isDisabled === "full";
|
|
88892
|
+
if (isDisabled) {
|
|
88694
88893
|
evt.preventDefault();
|
|
88695
88894
|
evt.stopPropagation();
|
|
88696
88895
|
evt.stopImmediatePropagation();
|
|
88697
88896
|
}
|
|
88698
88897
|
}
|
|
88699
|
-
|
|
88898
|
+
shouldShowLabelOnLeftButton() {
|
|
88899
|
+
return this.mode !== 'icon-only';
|
|
88900
|
+
}
|
|
88901
|
+
shouldShowIconOnLeftButton() {
|
|
88902
|
+
return this.mode !== 'default';
|
|
88903
|
+
}
|
|
88904
|
+
getIconSize(defaultSize = 'medium') {
|
|
88700
88905
|
var _a;
|
|
88701
|
-
const
|
|
88906
|
+
const validSizes = ['small', 'medium', 'large'];
|
|
88702
88907
|
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
88703
|
-
return
|
|
88908
|
+
return validSizes.includes(sizeLowerCase) ? sizeLowerCase : defaultSize;
|
|
88704
88909
|
}
|
|
88705
88910
|
closeDropdown() {
|
|
88706
88911
|
this.show = false;
|
|
@@ -88711,95 +88916,127 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
|
88711
88916
|
handleDropdownItemClick(evt) {
|
|
88712
88917
|
this.dropdownItemClick.emit(evt.detail);
|
|
88713
88918
|
evt.stopPropagation();
|
|
88919
|
+
this.closeDropdown();
|
|
88714
88920
|
}
|
|
88715
88921
|
handleDropdownSubActionClick(evt) {
|
|
88716
88922
|
this.dropdownSubActionClick.emit(evt.detail);
|
|
88717
88923
|
evt.stopPropagation();
|
|
88718
88924
|
this.closeDropdown();
|
|
88719
88925
|
}
|
|
88720
|
-
|
|
88721
|
-
|
|
88722
|
-
|
|
88723
|
-
|
|
88724
|
-
|
|
88725
|
-
|
|
88726
|
-
|
|
88727
|
-
|
|
88728
|
-
|
|
88729
|
-
|
|
88730
|
-
width: offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.width,
|
|
88731
|
-
height: offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.height
|
|
88732
|
-
};
|
|
88733
|
-
this.offsetParentRect = rectWithoutScroll;
|
|
88926
|
+
calculateDropdownPosition(buttonRect, dropdownRect, openUpward, openLeftward) {
|
|
88927
|
+
const baseOffset = this.offsetParentRect || { top: 0, left: 0 };
|
|
88928
|
+
return {
|
|
88929
|
+
top: openUpward ? 'auto' : `${buttonRect.bottom - baseOffset.top + window.scrollY}px`,
|
|
88930
|
+
bottom: openUpward ? `${window.innerHeight - buttonRect.top - window.scrollY}px` : 'auto',
|
|
88931
|
+
left: openLeftward
|
|
88932
|
+
? `${buttonRect.right - dropdownRect.width - baseOffset.left + window.scrollX}px`
|
|
88933
|
+
: `${buttonRect.left - baseOffset.left + window.scrollX}px`,
|
|
88934
|
+
maxHeight: openUpward ? `${buttonRect.top - baseOffset.top}px` : 'none'
|
|
88935
|
+
};
|
|
88734
88936
|
}
|
|
88735
|
-
|
|
88736
|
-
|
|
88737
|
-
|
|
88738
|
-
|
|
88739
|
-
|
|
88740
|
-
|
|
88741
|
-
const { rightButton: _rightButton, dropdownParent: _dropdownParent } = this;
|
|
88742
|
-
const rightButtonRect = _rightButton.getBoundingClientRect();
|
|
88743
|
-
const dropdownParentRect = _dropdownParent.getBoundingClientRect();
|
|
88744
|
-
const spaceBelow = window.innerHeight - (rightButtonRect.bottom + ((_a = this.offsetParentRect) === null || _a === void 0 ? void 0 : _a.top));
|
|
88745
|
-
const spaceAbove = rightButtonRect.top + ((_b = this.offsetParentRect) === null || _b === void 0 ? void 0 : _b.top);
|
|
88746
|
-
const spaceRight = window.innerWidth - (rightButtonRect.left + ((_c = this.offsetParentRect) === null || _c === void 0 ? void 0 : _c.left));
|
|
88747
|
-
const spaceLeft = rightButtonRect.left;
|
|
88748
|
-
const hasSpaceBelow = spaceBelow < dropdownParentRect.height && spaceAbove > dropdownParentRect.height;
|
|
88749
|
-
const hasSpaceRight = spaceRight < dropdownParentRect.width && spaceLeft > dropdownParentRect.width;
|
|
88750
|
-
let top = `${rightButtonRect.bottom - ((_d = this.offsetParentRect) === null || _d === void 0 ? void 0 : _d.top) + window.scrollY}px`;
|
|
88751
|
-
let left = `${rightButtonRect.left - ((_e = this.offsetParentRect) === null || _e === void 0 ? void 0 : _e.left) + window.scrollX}px`;
|
|
88752
|
-
let bottom = 'auto';
|
|
88753
|
-
if (hasSpaceBelow) {
|
|
88754
|
-
bottom = `${window.innerHeight - rightButtonRect.top - window.scrollY}px`;
|
|
88755
|
-
top = 'auto';
|
|
88756
|
-
_dropdownParent.style.maxHeight = `${spaceAbove}px`;
|
|
88757
|
-
}
|
|
88758
|
-
if (hasSpaceRight) {
|
|
88759
|
-
left = `${rightButtonRect.right - dropdownParentRect.width - ((_f = this.offsetParentRect) === null || _f === void 0 ? void 0 : _f.left) + window.scrollX}px`;
|
|
88760
|
-
}
|
|
88761
|
-
_dropdownParent.style.top = top;
|
|
88762
|
-
_dropdownParent.style.bottom = bottom;
|
|
88763
|
-
_dropdownParent.style.left = left;
|
|
88937
|
+
setupEventListeners() {
|
|
88938
|
+
const controller = new AbortController();
|
|
88939
|
+
const { signal } = controller;
|
|
88940
|
+
window.addEventListener('scroll', this.positionDropdown, { signal, passive: true });
|
|
88941
|
+
window.addEventListener('resize', this.positionDropdown, { signal, passive: true });
|
|
88942
|
+
this.eventListeners.set(this._element, controller);
|
|
88764
88943
|
}
|
|
88765
|
-
|
|
88766
|
-
|
|
88767
|
-
|
|
88944
|
+
cleanupEventListeners() {
|
|
88945
|
+
const controller = this.eventListeners.get(this._element);
|
|
88946
|
+
if (controller) {
|
|
88947
|
+
controller.abort();
|
|
88948
|
+
this.eventListeners.delete(this._element);
|
|
88949
|
+
}
|
|
88768
88950
|
}
|
|
88769
88951
|
async componentWillLoad() {
|
|
88770
88952
|
this.i18n = await initI18n();
|
|
88771
|
-
this.setEvents();
|
|
88772
|
-
}
|
|
88773
|
-
componentWillRender() {
|
|
88774
|
-
this.resolveOffsetParentRect();
|
|
88775
88953
|
}
|
|
88776
88954
|
componentDidLoad() {
|
|
88777
|
-
|
|
88955
|
+
this.addElementIDs();
|
|
88956
|
+
this.setupEventListeners();
|
|
88957
|
+
this.addBlurListeners();
|
|
88958
|
+
setTimeout(() => this.positionDropdown(), 0);
|
|
88959
|
+
}
|
|
88960
|
+
disconnectedCallback() {
|
|
88961
|
+
this.cleanupEventListeners();
|
|
88962
|
+
this.removeBlurListeners();
|
|
88963
|
+
}
|
|
88964
|
+
componentDidUpdate() {
|
|
88965
|
+
if (this.show) {
|
|
88966
|
+
this.positionDropdown();
|
|
88967
|
+
}
|
|
88968
|
+
}
|
|
88969
|
+
addElementIDs() {
|
|
88970
|
+
if (this._element) {
|
|
88778
88971
|
ElementIDUtils.addIDInfo(this._element);
|
|
88972
|
+
}
|
|
88779
88973
|
if (this.leftButton) {
|
|
88780
|
-
|
|
88781
|
-
ElementIDUtils.addIDInfo(this.leftButton, 'left-button', dataInfo);
|
|
88974
|
+
ElementIDUtils.addIDInfo(this.leftButton, 'leftButton', { id: 'embedded' });
|
|
88782
88975
|
}
|
|
88783
88976
|
if (this.rightButton) {
|
|
88784
|
-
|
|
88785
|
-
ElementIDUtils.addIDInfo(this.rightButton, 'right-button', dataInfo);
|
|
88977
|
+
ElementIDUtils.addIDInfo(this.rightButton, 'rightButton', { id: 'embedded' });
|
|
88786
88978
|
}
|
|
88787
|
-
this.positionDropdown();
|
|
88788
88979
|
}
|
|
88789
|
-
|
|
88790
|
-
|
|
88980
|
+
renderRipples(ripples) {
|
|
88981
|
+
return ripples.map((ripple) => (h("span", { key: ripple.id, class: "ripple", style: {
|
|
88982
|
+
left: `${ripple.x - 10}px`,
|
|
88983
|
+
top: `${ripple.y - 10}px`,
|
|
88984
|
+
} })));
|
|
88791
88985
|
}
|
|
88792
88986
|
render() {
|
|
88793
88987
|
const hasIconButton = this.shouldShowIconOnLeftButton();
|
|
88794
88988
|
const hasLabelButton = this.shouldShowLabelOnLeftButton();
|
|
88795
88989
|
const iconSize = this.getIconSize();
|
|
88796
|
-
return (h(
|
|
88990
|
+
return (h(Host, { class: this.variant ? `ez-split-button--${this.variant}` : '' }, h("div", { class: `ez-split-button ${this.size} ${this.mode}` }, this.renderLeftButton(hasIconButton, hasLabelButton, iconSize), this.renderDivider(), this.renderDropdownSection(iconSize))));
|
|
88797
88991
|
}
|
|
88798
|
-
|
|
88799
|
-
return
|
|
88992
|
+
renderLeftButton(hasIconButton, hasLabelButton, iconSize) {
|
|
88993
|
+
return (h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode} ${this.isLeftPressed ? 'pressed' : ''}`, title: this.leftTitle || this.label, type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.handleButtonClick(), ref: el => (this.leftButton = el) }, hasIconButton && this.renderLeftIcon(iconSize), hasLabelButton && this.renderLabel(), !this.suppressAnimation && this.renderRipples(this.leftRipples)));
|
|
88800
88994
|
}
|
|
88801
|
-
|
|
88802
|
-
return
|
|
88995
|
+
renderDivider() {
|
|
88996
|
+
return h("div", { class: `ez-split-button__divider ${this.mode} ez-split-button__divider--${this.size} ${this.isButtonDisabled ? 'disabled' : ''}`, "aria-disabled": this.isButtonAriaDisabled });
|
|
88997
|
+
}
|
|
88998
|
+
renderDropdownSection(iconSize) {
|
|
88999
|
+
return (h("div", { class: "dropdown" }, this.renderRightButton(iconSize), this.renderDropdownContent()));
|
|
89000
|
+
}
|
|
89001
|
+
renderRightButton(iconSize) {
|
|
89002
|
+
return (h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ${this.isRightPressed ? 'pressed' : ''}`, title: this.rightTitle || this.i18n("ez-split-button.moreOptions"), type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.toggleDropdown(), ref: el => (this.rightButton = el) }, this.renderRightIcon(iconSize), !this.suppressAnimation && this.renderRipples(this.rightRipples)));
|
|
89003
|
+
}
|
|
89004
|
+
renderDropdownContent() {
|
|
89005
|
+
return (h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && this.renderDropdown()));
|
|
89006
|
+
}
|
|
89007
|
+
renderLeftIcon(iconSize) {
|
|
89008
|
+
return (h("ez-icon", { href: this.image, iconName: this.leftIconName || this.iconName, size: iconSize }));
|
|
89009
|
+
}
|
|
89010
|
+
renderLabel() {
|
|
89011
|
+
return h("label", { title: this.leftTitle || this.label }, this.label);
|
|
89012
|
+
}
|
|
89013
|
+
renderRightIcon(iconSize) {
|
|
89014
|
+
const iconName = this.rightIconName || 'chevron-down';
|
|
89015
|
+
const containerClass = `ez-split-button__right-button-container ${iconSize ? `btn-icon--${iconSize}` : ''}`;
|
|
89016
|
+
return (h("ez-icon", { class: containerClass, iconName: iconName, size: iconSize }));
|
|
89017
|
+
}
|
|
89018
|
+
renderDropdown() {
|
|
89019
|
+
return (h("ez-dropdown", { items: this.items, onClick: evt => evt.stopPropagation(), onEzOutsideClick: () => this.closeDropdown(), onEzClick: evt => this.handleDropdownItemClick(evt), onEzSubActionClick: evt => this.handleDropdownSubActionClick(evt), itemBuilder: this.itemBuilder }));
|
|
89020
|
+
}
|
|
89021
|
+
addBlurListeners() {
|
|
89022
|
+
var _a, _b;
|
|
89023
|
+
this.removeBlurListeners();
|
|
89024
|
+
(_a = this.leftButton) === null || _a === void 0 ? void 0 : _a.addEventListener('blur', this.removeForcedFocusVisibleLeft);
|
|
89025
|
+
(_b = this.rightButton) === null || _b === void 0 ? void 0 : _b.addEventListener('blur', this.removeForcedFocusVisibleRight);
|
|
89026
|
+
}
|
|
89027
|
+
removeBlurListeners() {
|
|
89028
|
+
var _a, _b;
|
|
89029
|
+
(_a = this.leftButton) === null || _a === void 0 ? void 0 : _a.removeEventListener('blur', this.removeForcedFocusVisibleLeft);
|
|
89030
|
+
(_b = this.rightButton) === null || _b === void 0 ? void 0 : _b.removeEventListener('blur', this.removeForcedFocusVisibleRight);
|
|
89031
|
+
}
|
|
89032
|
+
connectedCallback() {
|
|
89033
|
+
this.addBlurListeners();
|
|
89034
|
+
}
|
|
89035
|
+
get isButtonDisabled() {
|
|
89036
|
+
return this.isDisabled === "full" || !this.enabled;
|
|
89037
|
+
}
|
|
89038
|
+
get isButtonAriaDisabled() {
|
|
89039
|
+
return this.isDisabled === true || this.isDisabled === "";
|
|
88803
89040
|
}
|
|
88804
89041
|
get _element() { return this; }
|
|
88805
89042
|
static get style() { return ezSplitButtonCss; }
|
|
@@ -92711,7 +92948,7 @@ const EzPagination = /*@__PURE__*/proxyCustomElement(EzPagination$1, [2,"ez-pagi
|
|
|
92711
92948
|
const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"]}]);
|
|
92712
92949
|
const EzPopoverCore = /*@__PURE__*/proxyCustomElement(EzPopoverCore$1, [1,"ez-popover-core",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"overlayType":[513,"overlay-type"],"anchorElement":[1537,"anchor-element"],"options":[1040],"useAnchorSize":[516,"use-anchor-size"],"minWidth":[514,"min-width"]}]);
|
|
92713
92950
|
const EzPopoverPlus = /*@__PURE__*/proxyCustomElement(EzPopoverPlus$1, [1,"ez-popover-plus",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"overlayType":[513,"overlay-type"],"anchorElement":[1537,"anchor-element"],"options":[1040],"useAnchorSize":[516,"use-anchor-size"],"minWidth":[514,"min-width"]}]);
|
|
92714
|
-
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"],"enabledScroll":[4,"enabled-scroll"]}]);
|
|
92951
|
+
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"],"enabledScroll":[4,"enabled-scroll"],"autoClose":[4,"auto-close"],"footerButtons":[16]}]);
|
|
92715
92952
|
const EzProgressBar = /*@__PURE__*/proxyCustomElement(EzProgressBar$1, [2,"ez-progress-bar",{"percent":[514],"label":[513],"helpText":[513,"help-text"]}]);
|
|
92716
92953
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
92717
92954
|
const EzRichText = /*@__PURE__*/proxyCustomElement(EzRichText$1, [2,"ez-rich-text",{"showPreview":[4,"show-preview"],"value":[1537],"label":[513],"mode":[513],"enabled":[516],"rows":[514],"errorMessage":[1537,"error-message"],"canShowError":[516,"can-show-error"],"showConfigs":[4,"show-configs"],"showTextFormat":[4,"show-text-format"],"showUndoRedo":[4,"show-undo-redo"],"previewMode":[32]},[[0,"executeToolbarCommand","handleExecuteToolbarCommand"]]]);
|
|
@@ -92730,7 +92967,7 @@ const EzSimpleImageUploader = /*@__PURE__*/proxyCustomElement(EzSimpleImageUploa
|
|
|
92730
92967
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"template":[1],"count":[2],"variant":[1],"width":[1],"height":[1],"marginTop":[1,"margin-top"],"marginRight":[1,"margin-right"],"marginBottom":[1,"margin-bottom"],"marginLeft":[1,"margin-left"],"animation":[1]}]);
|
|
92731
92968
|
const EzSortableList = /*@__PURE__*/proxyCustomElement(EzSortableList$1, [1,"ez-sortable-list",{"title":[1],"hideHeader":[4,"hide-header"],"hideTotalizer":[4,"hide-totalizer"],"group":[1],"dataSource":[16],"idSortableList":[1,"id-sortable-list"],"entityLabel":[1,"entity-label"],"entityLabelPlural":[1,"entity-label-plural"],"emptyMessage":[1,"empty-message"],"hoverFeedback":[4,"hover-feedback"],"enableMultipleSelection":[4,"enable-multiple-selection"],"removeItensMoved":[4,"remove-itens-moved"],"itemRightSlotBuilder":[1040],"itemLeftSlotBuilder":[1040],"filterTerm":[32],"selectedItems":[32]}]);
|
|
92732
92969
|
const EzSpinner = /*@__PURE__*/proxyCustomElement(EzSpinner$1, [1,"ez-spinner",{"size":[1]}]);
|
|
92733
|
-
const EzSplitButton = /*@__PURE__*/proxyCustomElement(EzSplitButton$1, [1,"ez-split-button",{"show":[
|
|
92970
|
+
const EzSplitButton = /*@__PURE__*/proxyCustomElement(EzSplitButton$1, [1,"ez-split-button",{"show":[1540],"enabled":[516],"isDisabled":[520,"is-disabled"],"iconName":[513,"icon-name"],"leftIconName":[513,"left-icon-name"],"rightIconName":[513,"right-icon-name"],"image":[513],"items":[16],"label":[513],"leftTitle":[513,"left-title"],"rightTitle":[513,"right-title"],"mode":[513],"size":[513],"variant":[1537],"suppressAnimation":[1540,"suppress-animation"],"itemBuilder":[16],"leftRipples":[32],"rightRipples":[32],"isLeftPressed":[32],"isRightPressed":[32]},[[1,"mousedown","onMouseDown"],[1,"touchstart","onTouchStart"],[2,"click","clickListener"]]]);
|
|
92734
92971
|
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"size":[1],"structural":[4],"_expanded":[32]}]);
|
|
92735
92972
|
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"],"structural":[4]}]);
|
|
92736
92973
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
|