@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-79210.0 → 0.0.0-bugfix-dev-KB-76625.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ez-card-item_2.cjs.entry.js +1415 -7
- package/dist/cjs/ez-grid.cjs.entry.js +1 -4
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +186 -0
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +184 -0
- package/dist/cjs/ez-search.cjs.entry.js +28 -158
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +8 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/ez-card-item/ez-card-item.css +1 -3
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +0 -3
- package/dist/collection/components/ez-grid/ez-grid.css +6 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +0 -64
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +56 -130
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +527 -0
- package/dist/collection/components/ez-search/ez-search.css +0 -219
- package/dist/collection/components/ez-search/ez-search.js +28 -167
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
- package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +262 -185
- package/dist/esm/ez-card-item_2.entry.js +1415 -7
- package/dist/esm/ez-grid.entry.js +1 -4
- package/dist/esm/ez-multi-selection-list.entry.js +182 -0
- package/dist/esm/ez-popover-plus_3.entry.js +178 -0
- package/dist/esm/ez-search.entry.js +29 -159
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +8 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/searchFormatters-8229207e.js +20 -0
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-31da1b57.entry.js +1 -0
- package/dist/ezui/p-37201156.entry.js +1 -0
- package/dist/ezui/p-40a60148.js +1 -0
- package/dist/ezui/{p-e80d3452.entry.js → p-a5950a0d.entry.js} +1 -1
- package/dist/ezui/p-b7706b43.entry.js +1 -0
- package/dist/ezui/p-dc73e1fe.entry.js +1 -0
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +8 -20
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
- package/dist/types/components/ez-search/ez-search.d.ts +3 -13
- package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
- package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
- package/dist/types/components.d.ts +157 -3
- package/package.json +1 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-multi-selection-list_2.cjs.entry.js +0 -1584
- package/dist/esm/ez-multi-selection-list_2.entry.js +0 -1579
- package/dist/ezui/p-58783dcf.entry.js +0 -1
- package/dist/ezui/p-65f471bc.entry.js +0 -1
- package/dist/ezui/p-b555cb24.entry.js +0 -1
|
@@ -2084,7 +2084,7 @@ const EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
2084
2084
|
static get style() { return ezCalendarCss; }
|
|
2085
2085
|
};
|
|
2086
2086
|
|
|
2087
|
-
const ezCardItemCss = ":host { \n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define o tamanho da fonte do componente no modo compacto.*/\n --ez-card-item--font-size-compacted: var(--text--extra-small, 10px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--text-weight--medium, 400);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--text-weight--large, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--detail-label--font-weight: var(--text-weight--large, 400);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item__detail{\n display: inline-block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: var(--opacity--soft);\n}\n\n\n\n.card-item__expanded {\n padding: var(--space--medium);\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__right {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail{\n cursor: pointer;\n}\n\n.card-item__detail-default:not(:last-child) {\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--detail-label--font-weight);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container_default{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n/* Modo compacto */\n.card-item__compacted {\n padding: var(--space--
|
|
2087
|
+
const ezCardItemCss = ":host { \n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define o tamanho da fonte do componente no modo compacto.*/\n --ez-card-item--font-size-compacted: var(--text--extra-small, 10px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--text-weight--medium, 400);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--text-weight--large, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--detail-label--font-weight: var(--text-weight--large, 400);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item__detail{\n display: inline-block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: var(--opacity--soft);\n}\n\n\n\n.card-item__expanded {\n padding: var(--space--medium);\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__right {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail{\n cursor: pointer;\n}\n\n.card-item__detail-default:not(:last-child) {\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--detail-label--font-weight);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container_default{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n/* Modo compacto */\n.card-item__compacted {\n padding: var(--space--2xs) var(--space--small);\n}\n\n.card-item__detail-label-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__detail-value-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__title-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__details-container__left-compacted{\n width: 100%;\n}\n\n.card-item__details-container__right-compacted {\n width: 100%;\n}\n\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-container__left {\n width: 100%;\n }\n \n .card-item__details-container__right {\n width: 100%;\n }\n}\n\n@container box (max-width: 200px) {\n .card-item__title {\n font-size: 10px;\n }\n\n .card-item__detail-label {\n font-size: 10px;\n }\n\n .card-item__detail-value {\n font-size: 10px;\n }\n\n}";
|
|
2088
2088
|
|
|
2089
2089
|
const EzCardItem$1 = class extends HTMLElement$1 {
|
|
2090
2090
|
constructor() {
|
|
@@ -71973,9 +71973,6 @@ class AgGridController {
|
|
|
71973
71973
|
if (cfgColumn.customWidth != undefined) {
|
|
71974
71974
|
return cfgColumn.customWidth;
|
|
71975
71975
|
}
|
|
71976
|
-
if (cfgColumn.width != undefined) {
|
|
71977
|
-
return cfgColumn.width;
|
|
71978
|
-
}
|
|
71979
71976
|
const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
71980
71977
|
if ((field === null || field === void 0 ? void 0 : field.userInterface) === UserInterface.SEARCH) {
|
|
71981
71978
|
return this.DEFAULT_MAX_SIZE;
|
|
@@ -72190,7 +72187,7 @@ class InMemoryFilterColumnDataSource {
|
|
|
72190
72187
|
}
|
|
72191
72188
|
}
|
|
72192
72189
|
|
|
72193
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:var(--shadow);--ez-grid--min-height:300px;--ez-grid__container--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--shadow:var(--shadow--xsmall);--ez-grid__header--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--outline:none;--ez-grid__header--border:none;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid-header.shadow-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.grid-header.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow--outline);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.header-overlay.sc-ez-grid{padding-top:15px;margin-top:-12px}.grid__container.sc-ez-grid{outline:none;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color);border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-small)}.grid__container.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__container--shadow--outline);border:none;outline:none}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.grid-header__pagination.sc-ez-grid{justify-content:flex-end;flex-wrap:nowrap}.grid-header__pagination-label.sc-ez-grid{width:100%;white-space:nowrap}.overflowed.sc-ez-grid{display:none}.pagination-contracted.sc-ez-grid{width:100px}.pagination-expanded.sc-ez-grid{min-width:150px}.left__header-contracted.sc-ez-grid{width:calc(100% - 100px)}.left__header-expanded.sc-ez-grid{flex-grow:1}.cancel-pagination.sc-ez-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:8px;width:180px}.cancel-pagination-btn.sc-ez-grid{color:var(--color--error);font-size:var(--text--medium);font-weight:var(--text-weight--large);font-family:var(--font-pattern, Roboto);text-wrap:nowrap;cursor:pointer}.spin.sc-ez-grid{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
|
|
72190
|
+
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:var(--shadow);--ez-grid--min-height:300px;--ez-grid__container--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--shadow:var(--shadow--xsmall);--ez-grid__header--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--outline:none;--ez-grid__header--border:none;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid-header.shadow-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.grid-header.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow--outline);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.header-overlay.sc-ez-grid{padding-top:15px;margin-top:-12px}.grid__container.sc-ez-grid{outline:none;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color);border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-small)}.grid__container.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__container--shadow--outline);border:none;outline:none}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.grid-header__pagination.sc-ez-grid{justify-content:flex-end;flex-wrap:nowrap}.grid-header__pagination-label.sc-ez-grid{width:100%;white-space:nowrap}.overflowed.sc-ez-grid{display:none}.pagination-contracted.sc-ez-grid{width:100px}.pagination-expanded.sc-ez-grid{min-width:150px}.left__header-contracted.sc-ez-grid{width:calc(100% - 100px)}.left__header-expanded.sc-ez-grid{flex-grow:1}.grid__footer.sc-ez-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}.cancel-pagination.sc-ez-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:8px;width:180px}.cancel-pagination-btn.sc-ez-grid{color:var(--color--error);font-size:var(--text--medium);font-weight:var(--text-weight--large);font-family:var(--font-pattern, Roboto);text-wrap:nowrap;cursor:pointer}.spin.sc-ez-grid{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
|
|
72194
72191
|
|
|
72195
72192
|
const windowInstace$1 = window;
|
|
72196
72193
|
const matches = (text, filter) => {
|
|
@@ -74831,7 +74828,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
74831
74828
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
74832
74829
|
|
|
74833
74830
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
74834
|
-
|
|
74831
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
74832
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
74835
74833
|
}
|
|
74836
74834
|
function getContainingBlock(element) {
|
|
74837
74835
|
let currentNode = getParentNode(element);
|
|
@@ -75427,9 +75425,9 @@ const computePosition = (reference, floating, options) => {
|
|
|
75427
75425
|
});
|
|
75428
75426
|
};
|
|
75429
75427
|
|
|
75430
|
-
const
|
|
75428
|
+
const ezPopoverCoreCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--elevation--20, 20);position:relative;display:flex;user-select:none}.popover__overlay{display:none;position:fixed;padding:0;top:0px;left:0px;width:100%;height:100vh;box-sizing:border-box;z-index:var(--elevation--16, 16)}.popover__overlay--light{background-color:rgba(var(--rgb-background--overlay), var(--opacity--bright))}.popover__overlay--medium{background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.popover__box{display:none;position:fixed;top:0;left:0;z-index:var(--ez-popover__box--z-index);flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:calc(100% - 10px)}";
|
|
75431
75429
|
|
|
75432
|
-
const
|
|
75430
|
+
const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
75433
75431
|
constructor() {
|
|
75434
75432
|
super();
|
|
75435
75433
|
this.__registerHost();
|
|
@@ -75442,8 +75440,10 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75442
75440
|
this.overlayType = "light";
|
|
75443
75441
|
this.anchorElement = undefined;
|
|
75444
75442
|
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
75443
|
+
this.useAnchorSize = false;
|
|
75444
|
+
this.minWidth = 150;
|
|
75445
75445
|
}
|
|
75446
|
-
|
|
75446
|
+
observeOpened(newValue, oldValue) {
|
|
75447
75447
|
if (newValue !== oldValue) {
|
|
75448
75448
|
if (newValue) {
|
|
75449
75449
|
this.openPopover();
|
|
@@ -75451,8 +75451,6 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75451
75451
|
else {
|
|
75452
75452
|
this.hidePopover();
|
|
75453
75453
|
}
|
|
75454
|
-
this.ezVisibilityChange.emit(newValue);
|
|
75455
|
-
return;
|
|
75456
75454
|
}
|
|
75457
75455
|
}
|
|
75458
75456
|
/**
|
|
@@ -75512,17 +75510,37 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75512
75510
|
verticalGap: this.parseSizePixel(top, this.options.verticalGap),
|
|
75513
75511
|
});
|
|
75514
75512
|
}
|
|
75513
|
+
getElement(element) {
|
|
75514
|
+
if (typeof element === 'string') {
|
|
75515
|
+
return document.getElementById(element);
|
|
75516
|
+
}
|
|
75517
|
+
return element;
|
|
75518
|
+
}
|
|
75519
|
+
getAnchorElement() {
|
|
75520
|
+
if (!this.anchorElement) {
|
|
75521
|
+
return this._host;
|
|
75522
|
+
}
|
|
75523
|
+
if (Array.isArray(this.anchorElement)) {
|
|
75524
|
+
for (const element of this.anchorElement) {
|
|
75525
|
+
const htmlElement = this.getElement(element);
|
|
75526
|
+
if (htmlElement) {
|
|
75527
|
+
return htmlElement;
|
|
75528
|
+
}
|
|
75529
|
+
}
|
|
75530
|
+
}
|
|
75531
|
+
return this.getElement(this.anchorElement);
|
|
75532
|
+
}
|
|
75515
75533
|
async updatePositionPopover() {
|
|
75516
75534
|
if (!this._box || !this.opened) {
|
|
75517
75535
|
return;
|
|
75518
75536
|
}
|
|
75519
|
-
|
|
75520
|
-
|
|
75521
|
-
|
|
75522
|
-
|
|
75523
|
-
this.
|
|
75537
|
+
const currentAnchorElement = this.getAnchorElement();
|
|
75538
|
+
if (this.useAnchorSize) {
|
|
75539
|
+
const anchorSize = currentAnchorElement.getBoundingClientRect().width;
|
|
75540
|
+
const width = anchorSize < this.minWidth ? this.minWidth : anchorSize;
|
|
75541
|
+
this._box.style.width = `${width}px`;
|
|
75524
75542
|
}
|
|
75525
|
-
await computePosition(
|
|
75543
|
+
await computePosition(currentAnchorElement, this._box, {
|
|
75526
75544
|
placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
|
|
75527
75545
|
middleware: [flip(), shift({ padding: 5 })],
|
|
75528
75546
|
strategy: 'fixed',
|
|
@@ -75547,12 +75565,14 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75547
75565
|
if (!this._box) {
|
|
75548
75566
|
return;
|
|
75549
75567
|
}
|
|
75550
|
-
this.
|
|
75551
|
-
|
|
75552
|
-
|
|
75553
|
-
|
|
75554
|
-
|
|
75555
|
-
|
|
75568
|
+
if (this.opened) {
|
|
75569
|
+
this._box.style.display = 'flex';
|
|
75570
|
+
this._box.style.visibility = 'hidden';
|
|
75571
|
+
await this.updatePositionPopover();
|
|
75572
|
+
this.openOverlay();
|
|
75573
|
+
this.ezVisibilityChange.emit(true);
|
|
75574
|
+
this._box.style.visibility = 'visible';
|
|
75575
|
+
}
|
|
75556
75576
|
}
|
|
75557
75577
|
openOverlay() {
|
|
75558
75578
|
if (!this._overlay || !this._overlayIsActive) {
|
|
@@ -75592,6 +75612,7 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75592
75612
|
this._overlayIsActive = this.checkStatusOverlay();
|
|
75593
75613
|
this._resizeObserver = new ResizeObserver(this.updatePositionPopover.bind(this));
|
|
75594
75614
|
this._resizeObserver.observe(this._box);
|
|
75615
|
+
this.openPopover();
|
|
75595
75616
|
}
|
|
75596
75617
|
disconnectedCallback() {
|
|
75597
75618
|
window.removeEventListener('scroll', this.updatePositionDebounce.bind(this), true);
|
|
@@ -75609,6 +75630,97 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75609
75630
|
static get watchers() { return {
|
|
75610
75631
|
"opened": ["observeOpened"]
|
|
75611
75632
|
}; }
|
|
75633
|
+
static get style() { return ezPopoverCoreCss; }
|
|
75634
|
+
};
|
|
75635
|
+
|
|
75636
|
+
const ezPopoverPlusCss = ":host{display:none}";
|
|
75637
|
+
|
|
75638
|
+
const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
75639
|
+
constructor() {
|
|
75640
|
+
super();
|
|
75641
|
+
this.__registerHost();
|
|
75642
|
+
this.__attachShadow();
|
|
75643
|
+
this.ezVisibilityChange = createEvent(this, "ezVisibilityChange", 7);
|
|
75644
|
+
this.autoClose = true;
|
|
75645
|
+
this.boxWidth = "fit-content";
|
|
75646
|
+
this.opened = false;
|
|
75647
|
+
this.overlayType = "light";
|
|
75648
|
+
this.anchorElement = undefined;
|
|
75649
|
+
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
75650
|
+
this.useAnchorSize = false;
|
|
75651
|
+
}
|
|
75652
|
+
async observeOpened(newValue) {
|
|
75653
|
+
if (newValue && !this._popOverCore) {
|
|
75654
|
+
this.renderPopoverCore();
|
|
75655
|
+
}
|
|
75656
|
+
this._popOverCore.opened = newValue;
|
|
75657
|
+
}
|
|
75658
|
+
/**
|
|
75659
|
+
* Atualiza a posição do popover.
|
|
75660
|
+
*/
|
|
75661
|
+
async updatePosition(top, left) {
|
|
75662
|
+
await this._popOverCore.updatePosition(top, left);
|
|
75663
|
+
}
|
|
75664
|
+
/**
|
|
75665
|
+
* Exibe o ez-popover.
|
|
75666
|
+
*/
|
|
75667
|
+
async show(top, left) {
|
|
75668
|
+
if (!this._popOverCore) {
|
|
75669
|
+
this.renderPopoverCore();
|
|
75670
|
+
}
|
|
75671
|
+
await this._popOverCore.show(top, left);
|
|
75672
|
+
}
|
|
75673
|
+
/**
|
|
75674
|
+
* Ancora a exibição do popOver a um elemento HTML.
|
|
75675
|
+
*/
|
|
75676
|
+
async showUnder(element, options) {
|
|
75677
|
+
if (!this._popOverCore) {
|
|
75678
|
+
this.renderPopoverCore();
|
|
75679
|
+
}
|
|
75680
|
+
await this._popOverCore.showUnder(element, options);
|
|
75681
|
+
}
|
|
75682
|
+
/**
|
|
75683
|
+
* Oculta o ez-popover.
|
|
75684
|
+
*/
|
|
75685
|
+
async hide() {
|
|
75686
|
+
var _a;
|
|
75687
|
+
await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.hide());
|
|
75688
|
+
}
|
|
75689
|
+
/**
|
|
75690
|
+
* Altera as opções.
|
|
75691
|
+
*/
|
|
75692
|
+
async setOptions(options) {
|
|
75693
|
+
await this._popOverCore.setOptions(options);
|
|
75694
|
+
}
|
|
75695
|
+
/**
|
|
75696
|
+
* Altera o elemento de ancoragem.
|
|
75697
|
+
*/
|
|
75698
|
+
async setAnchorElement(anchor) {
|
|
75699
|
+
await this._popOverCore.setAnchorElement(anchor);
|
|
75700
|
+
}
|
|
75701
|
+
renderPopoverCore() {
|
|
75702
|
+
this._popOverCore = document.createElement('ez-popover-core');
|
|
75703
|
+
this._popOverCore.opened = this.opened;
|
|
75704
|
+
this._popOverCore.anchorElement = this.anchorElement;
|
|
75705
|
+
this._popOverCore.autoClose = this.autoClose;
|
|
75706
|
+
this._popOverCore.boxWidth = this.boxWidth;
|
|
75707
|
+
this._popOverCore.overlayType = this.overlayType;
|
|
75708
|
+
this._popOverCore.options = this.options;
|
|
75709
|
+
this._popOverCore.useAnchorSize = this.useAnchorSize;
|
|
75710
|
+
this._popOverCore.addEventListener('ezVisibilityChange', ({ detail }) => {
|
|
75711
|
+
this.ezVisibilityChange.emit(detail);
|
|
75712
|
+
this.opened = detail;
|
|
75713
|
+
});
|
|
75714
|
+
this._popOverCore.appendChild(this._host.children.item(0));
|
|
75715
|
+
document.body.appendChild(this._popOverCore);
|
|
75716
|
+
}
|
|
75717
|
+
render() {
|
|
75718
|
+
return (h(Host, null, h("slot", null)));
|
|
75719
|
+
}
|
|
75720
|
+
get _host() { return this; }
|
|
75721
|
+
static get watchers() { return {
|
|
75722
|
+
"opened": ["observeOpened"]
|
|
75723
|
+
}; }
|
|
75612
75724
|
static get style() { return ezPopoverPlusCss; }
|
|
75613
75725
|
};
|
|
75614
75726
|
|
|
@@ -75940,7 +76052,26 @@ class ScrollCtrl {
|
|
|
75940
76052
|
}
|
|
75941
76053
|
}
|
|
75942
76054
|
|
|
75943
|
-
const
|
|
76055
|
+
const START_HIGH_LIGHT_TAG = "<span class='card-item__highlight'>";
|
|
76056
|
+
const END_HIGH_LIGHT_TAG = "</span>";
|
|
76057
|
+
function replaceHighlight(value) {
|
|
76058
|
+
const startHighlight = new RegExp(START_HIGH_LIGHT_TAG, 'g');
|
|
76059
|
+
const endHighlight = new RegExp(END_HIGH_LIGHT_TAG, 'g');
|
|
76060
|
+
const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
76061
|
+
return replaceQuotes(newValue);
|
|
76062
|
+
}
|
|
76063
|
+
function replaceQuotes(text) {
|
|
76064
|
+
if (text == undefined) {
|
|
76065
|
+
return;
|
|
76066
|
+
}
|
|
76067
|
+
return String(text)
|
|
76068
|
+
.replace(/&/g, '&')
|
|
76069
|
+
.replace(/</g, '<')
|
|
76070
|
+
.replace(/>/g, '>')
|
|
76071
|
+
.replace(/"/g, '"');
|
|
76072
|
+
}
|
|
76073
|
+
|
|
76074
|
+
const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}";
|
|
75944
76075
|
|
|
75945
76076
|
const EzSearch$1 = class extends HTMLElement$1 {
|
|
75946
76077
|
constructor() {
|
|
@@ -76076,20 +76207,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76076
76207
|
async clearValue() {
|
|
76077
76208
|
this.clearSearch();
|
|
76078
76209
|
}
|
|
76079
|
-
scrollListener() {
|
|
76080
|
-
var _a;
|
|
76081
|
-
if (this._floatingID == undefined) {
|
|
76082
|
-
return;
|
|
76083
|
-
}
|
|
76084
|
-
if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
|
|
76085
|
-
this.hideOptions();
|
|
76086
|
-
}
|
|
76087
|
-
else {
|
|
76088
|
-
window.requestAnimationFrame(() => {
|
|
76089
|
-
this.updateListPosition();
|
|
76090
|
-
});
|
|
76091
|
-
}
|
|
76092
|
-
}
|
|
76093
76210
|
async handleValueAsString(value) {
|
|
76094
76211
|
if (this.getSelectedOption(value)) {
|
|
76095
76212
|
this.setInputValue();
|
|
@@ -76103,49 +76220,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76103
76220
|
this.ezChange.emit(this.value);
|
|
76104
76221
|
this._currentValue = this.value;
|
|
76105
76222
|
}
|
|
76106
|
-
updateListPosition() {
|
|
76107
|
-
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
76108
|
-
const elementRect = this._listWrapper.getBoundingClientRect();
|
|
76109
|
-
const containerRect = this._listContainer.getBoundingClientRect();
|
|
76110
|
-
const textInputRect = this._textInput.getBoundingClientRect();
|
|
76111
|
-
const limitHeight = bottomLimit || window.innerHeight;
|
|
76112
|
-
const neededHeight = containerRect.bottom + elementRect.height;
|
|
76113
|
-
if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
|
|
76114
|
-
fromBottom = true;
|
|
76115
|
-
}
|
|
76116
|
-
if (!hardPosition) {
|
|
76117
|
-
verticalPosition = verticalPosition || 0;
|
|
76118
|
-
horizontalPosition = horizontalPosition || 0;
|
|
76119
|
-
if (fromBottom) {
|
|
76120
|
-
verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
|
|
76121
|
-
}
|
|
76122
|
-
else {
|
|
76123
|
-
verticalPosition += containerRect.top;
|
|
76124
|
-
}
|
|
76125
|
-
if (fromRight) {
|
|
76126
|
-
horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
|
|
76127
|
-
}
|
|
76128
|
-
else {
|
|
76129
|
-
horizontalPosition += containerRect.left;
|
|
76130
|
-
}
|
|
76131
|
-
}
|
|
76132
|
-
if (verticalPosition != undefined) {
|
|
76133
|
-
this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
|
|
76134
|
-
this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
|
|
76135
|
-
}
|
|
76136
|
-
if (horizontalPosition != undefined) {
|
|
76137
|
-
this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
|
|
76138
|
-
this._listWrapper.style[fromRight ? "left" : "right"] = "";
|
|
76139
|
-
}
|
|
76140
|
-
}
|
|
76141
|
-
getListPosition() {
|
|
76142
|
-
if (this.listOptionsPosition) {
|
|
76143
|
-
return this.listOptionsPosition;
|
|
76144
|
-
}
|
|
76145
|
-
return {
|
|
76146
|
-
verticalPosition: 6
|
|
76147
|
-
};
|
|
76148
|
-
}
|
|
76149
76223
|
isDifferentValues(firstValue, secondValue) {
|
|
76150
76224
|
return ObjectUtils$1.objectToString(firstValue || {}) !== ObjectUtils$1.objectToString(secondValue || {});
|
|
76151
76225
|
}
|
|
@@ -76160,24 +76234,14 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76160
76234
|
getText() {
|
|
76161
76235
|
const currentValue = this.getSelectedOption(this._currentValue);
|
|
76162
76236
|
const text = this.getFormattedText(currentValue);
|
|
76163
|
-
return
|
|
76164
|
-
}
|
|
76165
|
-
replaceQuotes(text) {
|
|
76166
|
-
if (text == undefined) {
|
|
76167
|
-
return;
|
|
76168
|
-
}
|
|
76169
|
-
return String(text)
|
|
76170
|
-
.replace(/&/g, '&')
|
|
76171
|
-
.replace(/</g, '<')
|
|
76172
|
-
.replace(/>/g, '>')
|
|
76173
|
-
.replace(/"/g, '"');
|
|
76237
|
+
return replaceQuotes(text);
|
|
76174
76238
|
}
|
|
76175
76239
|
getSelectedOption(value) {
|
|
76176
76240
|
if (typeof value === "string" || value instanceof String) {
|
|
76177
76241
|
return this._visibleOptions.find(o => o.value === value);
|
|
76178
76242
|
}
|
|
76179
76243
|
if (value) {
|
|
76180
|
-
return Object.assign(Object.assign({}, value), { value:
|
|
76244
|
+
return Object.assign(Object.assign({}, value), { value: replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
76181
76245
|
}
|
|
76182
76246
|
return value;
|
|
76183
76247
|
}
|
|
@@ -76215,75 +76279,19 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76215
76279
|
}
|
|
76216
76280
|
return 0;
|
|
76217
76281
|
}
|
|
76218
|
-
createOption(detail) {
|
|
76219
|
-
let { key, title } = detail;
|
|
76220
|
-
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
76221
|
-
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
76222
|
-
title = StringUtils$1.decodeHtmlEntities(title);
|
|
76223
|
-
const option = {
|
|
76224
|
-
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
76225
|
-
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
76226
|
-
};
|
|
76227
|
-
this.selectOption(option);
|
|
76228
|
-
}
|
|
76229
|
-
buildItem(opt, index) {
|
|
76230
|
-
opt.label = opt.label || opt.value;
|
|
76231
|
-
const card = {
|
|
76232
|
-
key: opt.value,
|
|
76233
|
-
title: opt.label,
|
|
76234
|
-
details: opt.details
|
|
76235
|
-
};
|
|
76236
|
-
return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
|
|
76237
|
-
}
|
|
76238
76282
|
showOptions() {
|
|
76239
76283
|
if (!this.enabled)
|
|
76240
76284
|
return;
|
|
76241
76285
|
if (this.isOptionsVisible()) {
|
|
76242
76286
|
return;
|
|
76243
76287
|
}
|
|
76244
|
-
|
|
76245
|
-
this._resizeObserver.observe(this._textInput);
|
|
76246
|
-
this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: false, isFixed: true, backClickListener: () => this.hideOptions() });
|
|
76247
|
-
this.setFocus();
|
|
76248
|
-
window.requestAnimationFrame(() => {
|
|
76249
|
-
this.updateListPosition();
|
|
76250
|
-
if (!this.listOptionsPosition) {
|
|
76251
|
-
this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
76252
|
-
}
|
|
76253
|
-
});
|
|
76288
|
+
this._ezPopOverPlusElement.showUnder(this._textInput);
|
|
76254
76289
|
}
|
|
76255
76290
|
hideOptions() {
|
|
76256
|
-
|
|
76257
|
-
FloatingManager.close(this._floatingID);
|
|
76258
|
-
}
|
|
76259
|
-
this._floatingID = undefined;
|
|
76260
|
-
if (!!this._resizeObserver)
|
|
76261
|
-
this._resizeObserver.unobserve(this._textInput);
|
|
76291
|
+
this._ezPopOverPlusElement.hide();
|
|
76262
76292
|
}
|
|
76263
76293
|
isOptionsVisible() {
|
|
76264
|
-
return this.
|
|
76265
|
-
}
|
|
76266
|
-
nextOption() {
|
|
76267
|
-
if (!this.isOptionsVisible()) {
|
|
76268
|
-
return;
|
|
76269
|
-
}
|
|
76270
|
-
this.showOptions();
|
|
76271
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
76272
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
76273
|
-
}
|
|
76274
|
-
previousOption() {
|
|
76275
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
76276
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
76277
|
-
}
|
|
76278
|
-
scrollToOption(opt) {
|
|
76279
|
-
window.requestAnimationFrame(() => {
|
|
76280
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
|
|
76281
|
-
? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
|
|
76282
|
-
: undefined;
|
|
76283
|
-
if (liElem) {
|
|
76284
|
-
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
76285
|
-
}
|
|
76286
|
-
});
|
|
76294
|
+
return this._ezPopOverPlusElement.opened;
|
|
76287
76295
|
}
|
|
76288
76296
|
selectCurrentOption() {
|
|
76289
76297
|
if (this._preSelection !== undefined) {
|
|
@@ -76326,17 +76334,11 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76326
76334
|
this._source = [];
|
|
76327
76335
|
this.updateVisibleOptions();
|
|
76328
76336
|
}
|
|
76329
|
-
replaceHighlight(value) {
|
|
76330
|
-
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
76331
|
-
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
76332
|
-
const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
76333
|
-
return this.replaceQuotes(newValue);
|
|
76334
|
-
}
|
|
76335
76337
|
selectOption(newOption, focusOnInput = true) {
|
|
76336
76338
|
var _a, _b;
|
|
76337
76339
|
const currentValue = this.getSelectedOption(this.value);
|
|
76338
|
-
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value:
|
|
76339
|
-
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value:
|
|
76340
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
76341
|
+
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
|
|
76340
76342
|
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
76341
76343
|
|| (currentValue == undefined && newOptionsFormatted != undefined && "value" in newOptionsFormatted)) {
|
|
76342
76344
|
const adjustedOpt = !(newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) ? undefined : newOptionsFormatted;
|
|
@@ -76446,7 +76448,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76446
76448
|
this.showNoResultMessage();
|
|
76447
76449
|
return;
|
|
76448
76450
|
}
|
|
76449
|
-
this._currentValue = value ? Object.assign(Object.assign({}, value), { value:
|
|
76451
|
+
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: replaceHighlight(value.value), label: replaceHighlight(value.label) }) : value;
|
|
76450
76452
|
this.value = this._currentValue;
|
|
76451
76453
|
this.setTextInputValue();
|
|
76452
76454
|
}
|
|
@@ -76455,7 +76457,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76455
76457
|
if (this.value === undefined || this.value === null)
|
|
76456
76458
|
return;
|
|
76457
76459
|
const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
|
|
76458
|
-
this._textInput.value =
|
|
76460
|
+
this._textInput.value = replaceQuotes(textValue);
|
|
76459
76461
|
}
|
|
76460
76462
|
}
|
|
76461
76463
|
loadOptionValue(argument) {
|
|
@@ -76492,7 +76494,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76492
76494
|
return;
|
|
76493
76495
|
}
|
|
76494
76496
|
let text = this.getFormattedText(this.value);
|
|
76495
|
-
text =
|
|
76497
|
+
text = replaceQuotes(text);
|
|
76496
76498
|
this._textInput.value = text;
|
|
76497
76499
|
}
|
|
76498
76500
|
//---------------------------------------------
|
|
@@ -76519,9 +76521,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76519
76521
|
}
|
|
76520
76522
|
componentDidRender() {
|
|
76521
76523
|
var _a;
|
|
76522
|
-
if (this._floatingID === undefined) {
|
|
76523
|
-
this._listWrapper.remove();
|
|
76524
|
-
}
|
|
76525
76524
|
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
76526
76525
|
ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
|
|
76527
76526
|
});
|
|
@@ -76533,10 +76532,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76533
76532
|
window.requestAnimationFrame(() => {
|
|
76534
76533
|
if (!Array.isArray(entries) || !entries.length)
|
|
76535
76534
|
return;
|
|
76536
|
-
const { clientWidth } = this._listContainer;
|
|
76537
|
-
if (clientWidth > 0 && !!this._listWrapper) {
|
|
76538
|
-
this._listWrapper.style.width = `${clientWidth}px`;
|
|
76539
|
-
}
|
|
76540
76535
|
});
|
|
76541
76536
|
});
|
|
76542
76537
|
await this.handleInitialValue();
|
|
@@ -76603,7 +76598,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76603
76598
|
this._changeDeboucingTimeout = null;
|
|
76604
76599
|
}
|
|
76605
76600
|
}
|
|
76606
|
-
keyDownHandler(event) {
|
|
76601
|
+
async keyDownHandler(event) {
|
|
76607
76602
|
this._tabPressed = false;
|
|
76608
76603
|
if (event.ctrlKey) {
|
|
76609
76604
|
if (event.key === "f" || event.key === "F") {
|
|
@@ -76619,15 +76614,20 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76619
76614
|
switch (event.key) {
|
|
76620
76615
|
case "ArrowDown":
|
|
76621
76616
|
event.stopPropagation();
|
|
76622
|
-
if (this.canShowListOptions())
|
|
76617
|
+
if (this.canShowListOptions()) {
|
|
76623
76618
|
event.preventDefault();
|
|
76624
|
-
|
|
76619
|
+
}
|
|
76620
|
+
if (!this.isOptionsVisible()) {
|
|
76621
|
+
this.showOptions();
|
|
76622
|
+
}
|
|
76623
|
+
await this._searchList.nextOption();
|
|
76625
76624
|
break;
|
|
76626
76625
|
case "ArrowUp":
|
|
76627
76626
|
event.stopPropagation();
|
|
76628
|
-
if (this.canShowListOptions())
|
|
76627
|
+
if (this.canShowListOptions()) {
|
|
76629
76628
|
event.preventDefault();
|
|
76630
|
-
|
|
76629
|
+
}
|
|
76630
|
+
await this._searchList.previousOption();
|
|
76631
76631
|
break;
|
|
76632
76632
|
case "Enter":
|
|
76633
76633
|
this.handleEventPropagation(event);
|
|
@@ -76649,7 +76649,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76649
76649
|
}
|
|
76650
76650
|
//O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
|
|
76651
76651
|
handleEventPropagation(event) {
|
|
76652
|
-
if (this.
|
|
76652
|
+
if (this._ezPopOverPlusElement.opened && this.stopPropagateEnterKeyEvent) {
|
|
76653
76653
|
event.stopPropagation();
|
|
76654
76654
|
}
|
|
76655
76655
|
}
|
|
@@ -76661,17 +76661,17 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76661
76661
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
76662
76662
|
}
|
|
76663
76663
|
canShowLoadSpinDescription() {
|
|
76664
|
-
return this._showLoadingDescription && this.
|
|
76664
|
+
return this._showLoadingDescription && !this._ezPopOverPlusElement.opened;
|
|
76665
|
+
}
|
|
76666
|
+
onChangePreSelection(value) {
|
|
76667
|
+
this._preSelection = value;
|
|
76665
76668
|
}
|
|
76666
76669
|
render() {
|
|
76667
76670
|
var _a;
|
|
76668
76671
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
76669
76672
|
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
|
|
76670
76673
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
76671
|
-
: undefined), h("
|
|
76672
|
-
&& this._visibleOptions.length === 0
|
|
76673
|
-
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
76674
|
-
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem }), this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
|
|
76674
|
+
: undefined), h("ez-popover-plus", { ref: elem => this._ezPopOverPlusElement = elem, autoClose: false, overlayType: "none", useAnchorSize: true, anchorElement: [this._textInput, this.el] }, h("search-list", { ref: (ref) => this._searchList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, canShowListOptions: this.canShowListOptions(), value: this.value, showOptionValue: this.showOptionValue, preSelection: this._preSelection, onChangeValue: ({ detail }) => this.selectOption(detail), onChangePreSelection: ({ detail }) => this.onChangePreSelection(detail) }))));
|
|
76675
76675
|
}
|
|
76676
76676
|
get el() { return this; }
|
|
76677
76677
|
static get watchers() { return {
|
|
@@ -80386,6 +80386,79 @@ const MultiSelectionBoxMessage$1 = class extends HTMLElement$1 {
|
|
|
80386
80386
|
static get style() { return multiSelectionBoxMessageCss; }
|
|
80387
80387
|
};
|
|
80388
80388
|
|
|
80389
|
+
const searchListCss = ":host{--ez-search__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--small, 6px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px)}.list-options{position:relative;z-index:var(--more-visible, 2);margin:var(--space--small) 0px;padding:0px;padding-inline-start:0px;box-sizing:border-box;width:100%;height:100%;max-height:350px;min-width:150px;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-search__scrollbar--color-clicked)}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;margin:var(--space--medium) 0px;min-height:var(--ez-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-search__list-title--primary);border-top:3px solid transparent}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-search--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.item__list>li:hover{background-color:var(--ez-search--background-medium)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-search--border-radius-small);gap:var(--space--small, 6px)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}";
|
|
80390
|
+
|
|
80391
|
+
const SearchList$1 = class extends HTMLElement$1 {
|
|
80392
|
+
constructor() {
|
|
80393
|
+
super();
|
|
80394
|
+
this.__registerHost();
|
|
80395
|
+
this.__attachShadow();
|
|
80396
|
+
this.changeValue = createEvent(this, "changeValue", 7);
|
|
80397
|
+
this.changePreSelection = createEvent(this, "changePreSelection", 7);
|
|
80398
|
+
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
80399
|
+
this._endHighlightTag = "</span>";
|
|
80400
|
+
this.showLoading = undefined;
|
|
80401
|
+
this.visibleOptions = [];
|
|
80402
|
+
this.textEmptyList = undefined;
|
|
80403
|
+
this.canShowListOptions = undefined;
|
|
80404
|
+
this.value = undefined;
|
|
80405
|
+
this.showOptionValue = true;
|
|
80406
|
+
this.preSelection = undefined;
|
|
80407
|
+
}
|
|
80408
|
+
async nextOption() {
|
|
80409
|
+
const newPreSelection = this.preSelection === undefined ? 0 : Math.min(this.preSelection + 1, this.visibleOptions.length - 1);
|
|
80410
|
+
this.changePreSelection.emit(newPreSelection);
|
|
80411
|
+
this.scrollToOption(this.visibleOptions[newPreSelection]);
|
|
80412
|
+
}
|
|
80413
|
+
async previousOption() {
|
|
80414
|
+
const newPreSelection = this.preSelection === undefined ? 0 : Math.max(this.preSelection - 1, 0);
|
|
80415
|
+
this.changePreSelection.emit(newPreSelection);
|
|
80416
|
+
this.scrollToOption(this.visibleOptions[newPreSelection]);
|
|
80417
|
+
}
|
|
80418
|
+
selectOption(newOption) {
|
|
80419
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
80420
|
+
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
|
|
80421
|
+
this.changeValue.emit(newOptionsFormatted);
|
|
80422
|
+
}
|
|
80423
|
+
createOption(detail) {
|
|
80424
|
+
let { key, title } = detail;
|
|
80425
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
80426
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
80427
|
+
title = StringUtils$1.decodeHtmlEntities(title);
|
|
80428
|
+
const option = {
|
|
80429
|
+
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
80430
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
80431
|
+
};
|
|
80432
|
+
this.selectOption(option);
|
|
80433
|
+
}
|
|
80434
|
+
scrollToOption(opt) {
|
|
80435
|
+
window.requestAnimationFrame(() => {
|
|
80436
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
|
|
80437
|
+
? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
|
|
80438
|
+
: undefined;
|
|
80439
|
+
if (liElem) {
|
|
80440
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
80441
|
+
}
|
|
80442
|
+
});
|
|
80443
|
+
}
|
|
80444
|
+
buildItem(opt, index) {
|
|
80445
|
+
opt.label = opt.label || opt.value;
|
|
80446
|
+
const card = {
|
|
80447
|
+
key: opt.value,
|
|
80448
|
+
title: opt.label,
|
|
80449
|
+
details: opt.details
|
|
80450
|
+
};
|
|
80451
|
+
return h("div", { style: { "height": "100%" }, class: index === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this.changePreSelection.emit(index) }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
|
|
80452
|
+
}
|
|
80453
|
+
render() {
|
|
80454
|
+
return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
|
|
80455
|
+
&& this.visibleOptions.length === 0
|
|
80456
|
+
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList)), this.showLoading
|
|
80457
|
+
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), this.canShowListOptions && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
|
|
80458
|
+
}
|
|
80459
|
+
static get style() { return searchListCss; }
|
|
80460
|
+
};
|
|
80461
|
+
|
|
80389
80462
|
const EzActionsButton = /*@__PURE__*/proxyCustomElement(EzActionsButton$1, [1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32]}]);
|
|
80390
80463
|
const EzAlert = /*@__PURE__*/proxyCustomElement(EzAlert$1, [1,"ez-alert",{"alertType":[513,"alert-type"]}]);
|
|
80391
80464
|
const EzAlertList = /*@__PURE__*/proxyCustomElement(EzAlertList$1, [1,"ez-alert-list",{"alerts":[1040],"enableDragAndDrop":[516,"enable-drag-and-drop"],"enableExpand":[516,"enable-expand"],"itemRightSlotBuilder":[16],"opened":[1540],"expanded":[1540],"_container":[32]}]);
|
|
@@ -80420,11 +80493,12 @@ const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,
|
|
|
80420
80493
|
const EzMultiSelectionList = /*@__PURE__*/proxyCustomElement(EzMuiltiSelectionList, [2,"ez-multi-selection-list",{"columnName":[1,"column-name"],"dataSource":[16],"useOptions":[1028,"use-options"],"options":[1040],"isTextSearch":[4,"is-text-search"],"filteredOptions":[32],"displayOptions":[32],"viewScenario":[32],"displayOptionToCheckAllItems":[32]}]);
|
|
80421
80494
|
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"canShowError":[516,"can-show-error"],"errorMessage":[1537,"error-message"],"allowNegative":[4,"allow-negative"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"autoFocus":[4,"auto-focus"],"_value":[32]}]);
|
|
80422
80495
|
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"]}]);
|
|
80423
|
-
const
|
|
80496
|
+
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"]}]);
|
|
80497
|
+
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"]}]);
|
|
80424
80498
|
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"]}]);
|
|
80425
80499
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
80426
80500
|
const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]);
|
|
80427
|
-
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"contextProperties":[8,"context-properties"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"stopPropagateEnterKeyEvent":[4,"stop-propagate-enter-key-event"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"],"options":[1040],"suppressSearch":[4,"suppress-search"],"ensureClearButtonVisible":[4,"ensure-clear-button-visible"],"suppressPreLoad":[4,"suppress-pre-load"],"autoFocus":[4,"auto-focus"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_showLoadingDescription":[32],"_criteria":[32]}
|
|
80501
|
+
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"contextProperties":[8,"context-properties"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"stopPropagateEnterKeyEvent":[4,"stop-propagate-enter-key-event"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"],"options":[1040],"suppressSearch":[4,"suppress-search"],"ensureClearButtonVisible":[4,"ensure-clear-button-visible"],"suppressPreLoad":[4,"suppress-pre-load"],"autoFocus":[4,"auto-focus"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_showLoadingDescription":[32],"_criteria":[32]}]);
|
|
80428
80502
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
80429
80503
|
const EzSidebarNavigator = /*@__PURE__*/proxyCustomElement(EzSidebarNavigator$1, [1,"ez-sidebar-navigator",{"type":[1],"mode":[1025],"size":[1],"isResponsive":[4,"is-responsive"],"titleMenu":[1,"title-menu"],"showCollapseMenu":[4,"show-collapse-menu"],"showFixedButton":[4,"show-fixed-button"],"open":[32]}]);
|
|
80430
80504
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
|
|
@@ -80443,6 +80517,7 @@ const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"la
|
|
|
80443
80517
|
const EzViewStack = /*@__PURE__*/proxyCustomElement(EzViewStack$1, [0,"ez-view-stack"]);
|
|
80444
80518
|
const FilterColumn = /*@__PURE__*/proxyCustomElement(FilterColumn$1, [0,"filter-column",{"opened":[4],"columnName":[1,"column-name"],"columnLabel":[1,"column-label"],"gridHeaderHidden":[4,"grid-header-hidden"],"noHeaderTaskBar":[1028,"no-header-task-bar"],"dataSource":[16],"dataUnit":[16],"options":[1040],"selectedItems":[32],"fieldDescriptor":[32],"useOptions":[32],"isTextSearch":[32]}]);
|
|
80445
80519
|
const MultiSelectionBoxMessage = /*@__PURE__*/proxyCustomElement(MultiSelectionBoxMessage$1, [0,"multi-selection-box-message",{"message":[1]}]);
|
|
80520
|
+
const SearchList = /*@__PURE__*/proxyCustomElement(SearchList$1, [1,"search-list",{"showLoading":[4,"show-loading"],"visibleOptions":[16],"textEmptyList":[1,"text-empty-list"],"canShowListOptions":[4,"can-show-list-options"],"value":[1],"showOptionValue":[4,"show-option-value"],"preSelection":[2,"pre-selection"]}]);
|
|
80446
80521
|
const defineCustomElements = (opts) => {
|
|
80447
80522
|
if (typeof customElements !== 'undefined') {
|
|
80448
80523
|
[
|
|
@@ -80480,6 +80555,7 @@ const defineCustomElements = (opts) => {
|
|
|
80480
80555
|
EzMultiSelectionList,
|
|
80481
80556
|
EzNumberInput,
|
|
80482
80557
|
EzPopover,
|
|
80558
|
+
EzPopoverCore,
|
|
80483
80559
|
EzPopoverPlus,
|
|
80484
80560
|
EzPopup,
|
|
80485
80561
|
EzRadioButton,
|
|
@@ -80502,7 +80578,8 @@ const defineCustomElements = (opts) => {
|
|
|
80502
80578
|
EzUpload,
|
|
80503
80579
|
EzViewStack,
|
|
80504
80580
|
FilterColumn,
|
|
80505
|
-
MultiSelectionBoxMessage
|
|
80581
|
+
MultiSelectionBoxMessage,
|
|
80582
|
+
SearchList
|
|
80506
80583
|
].forEach(cmp => {
|
|
80507
80584
|
if (!customElements.get(cmp.is)) {
|
|
80508
80585
|
customElements.define(cmp.is, cmp, opts);
|
|
@@ -80511,4 +80588,4 @@ const defineCustomElements = (opts) => {
|
|
|
80511
80588
|
}
|
|
80512
80589
|
};
|
|
80513
80590
|
|
|
80514
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverPlus, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSidebarNavigator, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTooltip, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|
|
80591
|
+
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverCore, EzPopoverPlus, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSidebarNavigator, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTooltip, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, SearchList, defineCustomElements };
|