@sankhyalabs/ezui 4.2.1 → 4.4.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-badge.cjs.entry.js +120 -0
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +3 -14
- package/dist/cjs/ez-filter-input_4.cjs.entry.js +2 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +7 -5
- package/dist/cjs/ez-popover.cjs.entry.js +6 -0
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-badge/enum/sizes.js +9 -0
- package/dist/collection/components/ez-badge/ez-badge.css +165 -0
- package/dist/collection/components/ez-badge/ez-badge.js +211 -0
- package/dist/collection/components/ez-badge/interfaces/IPosition.js +1 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css +4 -0
- package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js +2 -13
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +20 -1
- package/dist/collection/components/ez-icon/ez-icon.css +141 -139
- package/dist/collection/components/ez-list/ez-list.css +6 -12
- package/dist/collection/components/ez-list/ez-list.js +25 -5
- package/dist/collection/components/ez-popover/ez-popover.js +6 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +137 -23
- package/dist/esm/ez-badge.entry.js +116 -0
- package/dist/esm/ez-breadcrumb.entry.js +3 -14
- package/dist/esm/ez-filter-input_4.entry.js +2 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +8 -6
- package/dist/esm/ez-popover.entry.js +6 -0
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-02fc35a6.entry.js +1 -0
- package/dist/ezui/p-077a6943.entry.js +1 -0
- package/dist/ezui/p-0d04119a.entry.js +1 -0
- package/dist/ezui/p-2a848666.entry.js +1 -0
- package/dist/ezui/p-6388d982.entry.js +1 -0
- package/dist/ezui/p-759e37b7.entry.js +1 -0
- package/dist/types/components/ez-badge/enum/sizes.d.ts +8 -0
- package/dist/types/components/ez-badge/ez-badge.d.ts +35 -0
- package/dist/types/components/ez-badge/interfaces/IPosition.d.ts +4 -0
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +4 -0
- package/dist/types/components/ez-list/ez-list.d.ts +4 -0
- package/dist/types/components/ez-popover/ez-popover.d.ts +1 -1
- package/dist/types/components.d.ts +66 -0
- package/package.json +2 -2
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-62481744.entry.js +0 -1
- package/dist/ezui/p-6cf406ff.entry.js +0 -1
- package/dist/ezui/p-8d5ec02b.entry.js +0 -1
- package/dist/ezui/p-9a1549c2.entry.js +0 -1
- package/dist/ezui/p-cc40fcb3.entry.js +0 -1
|
@@ -926,18 +926,124 @@ const EzApplication$1 = class extends HTMLElement$1 {
|
|
|
926
926
|
static get style() { return ezApplicationCss; }
|
|
927
927
|
};
|
|
928
928
|
|
|
929
|
+
var Sizes;
|
|
930
|
+
(function (Sizes) {
|
|
931
|
+
Sizes["EXTRA_LARGE"] = "extra-large";
|
|
932
|
+
Sizes["LARGE"] = "large";
|
|
933
|
+
Sizes["MEDIUM"] = "medium";
|
|
934
|
+
Sizes["SMALL_MEDIUM"] = "small-medium";
|
|
935
|
+
Sizes["SMALL"] = "small";
|
|
936
|
+
Sizes["EXTRA_SMALL"] = "extra-small";
|
|
937
|
+
})(Sizes || (Sizes = {}));
|
|
938
|
+
|
|
939
|
+
const ezBadgeCss = ":host{--ez-badge--size-2xs:var(--space--2xs, 8px);--ez-badge--size-xs:var(--space--xs, 12px);--ez-badge--size-sm:var(--space--sm, 16px);--ez-badge--size-md:var(--space--md, 20px);--ez-badge--size-lg:var(--space--lg, 24px);--ez-badge--size-xl:var(--space--xl, 32px);--ez-badge--padding-2xs:0;--ez-badge--padding-xs:var(--space--nano, 2px);--ez-badge--padding-sm:calc(var(--space--nano, 2px) + 1px);--ez-badge--padding-md:var(--space--3xs, 4px);--ez-badge--padding-lg:calc(var(--space--3xs, 4px) + 2px);--ez-badge--padding-xl:var(--space--2xs);--ez-badge--border-radius:calc(var(--border--radius-medium, 12px) + 8px);--ez-badge--font-family:var(--font-pattern, Roboto);--ez-badge--font-weight-medium:var(--text-weight--medium, 400);--ez-badge--background-color:var(--color--primary, #008561);--ez-badge--border-none:0;--ez-badge--color:var(--text--inverted, #ffffff);--ez-badge--gap:calc(var(--ez-badge--padding-xs) + 1px);--ez-badge--font-size-md:var(--text--medium);--ez-badge--font-size-sm:var(--text--medium);--ez-badge--font-size-xs:var(--text--small)}ez-icon{--ez-icon--color:inherit}.badge{display:flex;justify-content:center;align-items:center;position:relative}.badge__content{font-family:var(--ez-badge--font-family, Roboto);font-weight:var(--ez-badge--font-weight-medium, 400);background-color:var(--ez-badge--background-color, #008561);border:var(--ez-badge--border-none, 0);color:var(--ez-badge--color, #ffffff);border-radius:var(--ez-badge--border-radius, 20px);gap:var(--ez-badge--gap, 3px);display:flex;justify-content:center;align-items:center}.badge__content--fill-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px)}.badge__content--fill-2xs{height:var(--ez-badge--size-2xs, 8px);min-width:var(--ez-badge--size-2xs, 8px)}.badge__content--text-md{height:calc(var(--ez-badge--size-md, 20px) - 2px);min-width:var(--ez-badge--size-sm, 20px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-md)}.badge__content--text-sm{height:calc(var(--ez-badge--size-sm, 16px) - 2px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-sm)}.badge__content--text-xs{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-2xs);padding-bottom:var(--ez-badge--padding-2xs);padding-right:var(--ez-badge--padding-lg);padding-left:var(--ez-badge--padding-lg);font-size:var(--ez-badge--font-size-xs)}.badge__content--icon-lg{height:var(--ez-badge--size-lg, 24px);min-width:var(--ez-badge--size-lg, 24px);padding:var(--ez-badge--padding-md)}.badge__content--icon-md{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-md)}.badge__content--icon-sm{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px);padding:var(--ez-badge--padding-xs)}.badge__content--fill{position:absolute;top:0;inset-inline-end:0;z-index:var(--most-visible, 2)}.badge__content--fill-top-right{transform:translate(50%, -50%);position:absolute;top:0;right:0}.badge__content--fill-top-left{transform:translate(-50%, -50%);position:absolute;top:0;left:0}.badge__content--fill-bottom-left{transform:translate(-50%, 50%);position:absolute;bottom:0;left:0}.badge__content--fill-bottom-right{transform:translate(50%, 50%);position:absolute;bottom:0;right:0}";
|
|
940
|
+
|
|
941
|
+
const EzBadge$1 = class extends HTMLElement$1 {
|
|
942
|
+
constructor() {
|
|
943
|
+
super();
|
|
944
|
+
this.__registerHost();
|
|
945
|
+
this.__attachShadow();
|
|
946
|
+
this._sizes = {
|
|
947
|
+
[Sizes.EXTRA_LARGE]: {
|
|
948
|
+
sufix: "xl",
|
|
949
|
+
},
|
|
950
|
+
[Sizes.LARGE]: {
|
|
951
|
+
sufix: "lg",
|
|
952
|
+
},
|
|
953
|
+
[Sizes.MEDIUM]: {
|
|
954
|
+
sufix: "md",
|
|
955
|
+
},
|
|
956
|
+
[Sizes.SMALL_MEDIUM]: {
|
|
957
|
+
sufix: "sm",
|
|
958
|
+
},
|
|
959
|
+
[Sizes.SMALL]: {
|
|
960
|
+
sufix: "xs",
|
|
961
|
+
},
|
|
962
|
+
[Sizes.EXTRA_SMALL]: {
|
|
963
|
+
sufix: "2xs",
|
|
964
|
+
},
|
|
965
|
+
};
|
|
966
|
+
this.hasSlot = false;
|
|
967
|
+
this.size = "small";
|
|
968
|
+
this.label = undefined;
|
|
969
|
+
this.iconLeft = undefined;
|
|
970
|
+
this.iconRight = undefined;
|
|
971
|
+
this.position = { horizontal: "right", vertical: "top" };
|
|
972
|
+
}
|
|
973
|
+
getIconSize() {
|
|
974
|
+
switch (this.size) {
|
|
975
|
+
case "large":
|
|
976
|
+
return "large";
|
|
977
|
+
case "medium":
|
|
978
|
+
case "small-medium":
|
|
979
|
+
return "small";
|
|
980
|
+
case "small":
|
|
981
|
+
return "x-small";
|
|
982
|
+
default:
|
|
983
|
+
return null;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
componentDidLoad() {
|
|
987
|
+
if (this._element) {
|
|
988
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
989
|
+
}
|
|
990
|
+
if (this._badge) {
|
|
991
|
+
const dataInfo = { id: 'embedded' };
|
|
992
|
+
ElementIDUtils.addIDInfo(this._badge, 'ezBadge', dataInfo);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
handleSlotChange() {
|
|
996
|
+
this.hasSlot = true;
|
|
997
|
+
}
|
|
998
|
+
validateIconLeft() {
|
|
999
|
+
return (this.iconLeft) && this.iconLeft.trim() !== "";
|
|
1000
|
+
}
|
|
1001
|
+
validateIconRight() {
|
|
1002
|
+
return (this.iconRight) && this.iconRight.trim() !== "";
|
|
1003
|
+
}
|
|
1004
|
+
validateLabel() {
|
|
1005
|
+
return (this.label) && this.label.trim() !== "";
|
|
1006
|
+
}
|
|
1007
|
+
createContainerClassName() {
|
|
1008
|
+
let sizeSufix = this._sizes[this.size].sufix;
|
|
1009
|
+
let containerClassNames = ["badge__content"];
|
|
1010
|
+
if (this.hasSlot) {
|
|
1011
|
+
containerClassNames.push("badge__content--fill-" + sizeSufix);
|
|
1012
|
+
if (this.position.vertical == "bottom" && this.position.horizontal == "right") {
|
|
1013
|
+
containerClassNames.push("badge__content--fill-bottom-right");
|
|
1014
|
+
}
|
|
1015
|
+
if (this.position.vertical == "bottom" && this.position.horizontal == "left") {
|
|
1016
|
+
containerClassNames.push("badge__content--fill-bottom-left");
|
|
1017
|
+
}
|
|
1018
|
+
if (this.position.vertical == "top" && this.position.horizontal == "right") {
|
|
1019
|
+
containerClassNames.push("badge__content--fill-top-right");
|
|
1020
|
+
}
|
|
1021
|
+
if (this.position.vertical == "top" && this.position.horizontal == "left") {
|
|
1022
|
+
containerClassNames.push("badge__content--fill-top-left");
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
if (this.label) {
|
|
1026
|
+
containerClassNames.push("badge__content--text-" + sizeSufix);
|
|
1027
|
+
}
|
|
1028
|
+
else if (this.iconLeft || this.iconRight) {
|
|
1029
|
+
containerClassNames.push("badge__content--icon-" + sizeSufix);
|
|
1030
|
+
}
|
|
1031
|
+
else {
|
|
1032
|
+
containerClassNames.push("badge__content--fill-" + sizeSufix);
|
|
1033
|
+
}
|
|
1034
|
+
return containerClassNames.join(" ");
|
|
1035
|
+
}
|
|
1036
|
+
render() {
|
|
1037
|
+
return (h(Host, null, h("div", { class: "badge" }, h("div", null, h("slot", { name: "child-badge", onSlotchange: () => { this.handleSlotChange(); } })), h("div", { class: this.createContainerClassName(), ref: (el) => this._badge = el }, this.validateIconLeft() && h("ez-icon", { class: "icon", iconName: this.iconLeft, size: this.getIconSize() }), this.validateLabel() && h("label", { title: this.label }, this.label), this.validateIconRight() && h("ez-icon", { class: "icon", iconName: this.iconRight, size: this.getIconSize() })))));
|
|
1038
|
+
}
|
|
1039
|
+
get _element() { return this; }
|
|
1040
|
+
static get style() { return ezBadgeCss; }
|
|
1041
|
+
};
|
|
1042
|
+
|
|
929
1043
|
const BreadcrumbItem = (props) => {
|
|
930
1044
|
const { items, selectedItem, itemsHidden, showDropdown, handleShowDropdown, collapseConfigPosition, ellipsesPositionedEnd } = props;
|
|
931
1045
|
const formatDropdownItems = () => {
|
|
932
|
-
return itemsHidden.map((item) => ({
|
|
933
|
-
id: item.id,
|
|
934
|
-
label: item.label,
|
|
935
|
-
type: 'item',
|
|
936
|
-
children: null,
|
|
937
|
-
iconName: item.iconName || null,
|
|
938
|
-
subAction: null,
|
|
939
|
-
group: null
|
|
940
|
-
}));
|
|
1046
|
+
return itemsHidden.map((item) => (Object.assign(Object.assign({}, item), { type: 'item', children: null, iconName: item.iconName || null, subAction: null, group: null })));
|
|
941
1047
|
};
|
|
942
1048
|
const onClickEllipsis = (evt) => {
|
|
943
1049
|
evt.stopPropagation();
|
|
@@ -949,10 +1055,7 @@ const BreadcrumbItem = (props) => {
|
|
|
949
1055
|
h("span", { class: "ellipses__item" }, "..."),
|
|
950
1056
|
ellipsesPositionedEnd || h("ez-icon", Object.assign({ class: "breadcrumb__item--chevron", size: "small", iconName: "chevron-right" }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo(`iconPath${item.id}`)}` })),
|
|
951
1057
|
showDropdown &&
|
|
952
|
-
h("ez-dropdown", Object.assign({ class: "dropdown-ellipsis", items: formatDropdownItems(), onEzClick: (evt) => {
|
|
953
|
-
const { id, label, iconName } = evt.detail;
|
|
954
|
-
selectedItem.emit({ id, label, iconName });
|
|
955
|
-
} }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("dropdown")}` }))));
|
|
1058
|
+
h("ez-dropdown", Object.assign({ class: "dropdown-ellipsis", items: formatDropdownItems(), onEzClick: (evt) => selectedItem.emit(evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("dropdown")}` }))));
|
|
956
1059
|
};
|
|
957
1060
|
return (h("div", { class: "breadcrumb__items" }, items.map((item, index) => {
|
|
958
1061
|
const isLastItem = index === (items.length - 1);
|
|
@@ -966,7 +1069,7 @@ const BreadcrumbItem = (props) => {
|
|
|
966
1069
|
})));
|
|
967
1070
|
};
|
|
968
1071
|
|
|
969
|
-
const ezBreadcrumbCss = ":host{--breadcrumb__item--label--color--title-primary:var(--color--title-primary, #2B3A54);--breadcrumb__item--label--color--active:var(--color--primary, '#008561');--breadcrumb__item--label--font-weight:var(--text-weight--large, 600);display:block;font-size:var(--text--medium, 14px);font-family:var(--font-pattern, \"Roboto\");font-weight:var(--text-weight--medium, 400)}.breadcrumb__group{display:flex}.breadcrumb__list{list-style-type:none;display:inline-block;margin:0;padding:0;overflow:hidden;white-space:nowrap}.breadcrumb__item{display:inline-flex;align-items:center;cursor:pointer}.breadcrumb__item--label{color:var(--breadcrumb__item--label--color--title-primary);margin:0px}.breadcrumb__item--icon{padding-right:3px;color:var(--breadcrumb__item--label--color--title-primary)}.breadcrumb__item--chevron{padding:0px 6px;cursor:default}.active{color:var(--breadcrumb__item--label--color--active);font-weight:var(--breadcrumb__item--label--font-weight);cursor:default}.active-icon{--icon--color:var(--breadcrumb__item--label--color--active);cursor:default}.breadcrumb__items{display:flex}";
|
|
1072
|
+
const ezBreadcrumbCss = ":host{--breadcrumb__item--label--color--title-primary:var(--color--title-primary, #2B3A54);--breadcrumb__item--label--color--active:var(--color--primary, '#008561');--breadcrumb__item--label--font-weight:var(--text-weight--large, 600);display:block;font-size:var(--text--medium, 14px);font-family:var(--font-pattern, \"Roboto\");font-weight:var(--text-weight--medium, 400)}.breadcrumb{display:flex}.breadcrumb__group{display:flex}.breadcrumb__list{list-style-type:none;display:inline-block;margin:0;padding:0;overflow:hidden;white-space:nowrap}.breadcrumb__item{display:inline-flex;align-items:center;cursor:pointer}.breadcrumb__item--label{color:var(--breadcrumb__item--label--color--title-primary);margin:0px}.breadcrumb__item--icon{padding-right:3px;color:var(--breadcrumb__item--label--color--title-primary)}.breadcrumb__item--chevron{padding:0px 6px;cursor:default}.active{color:var(--breadcrumb__item--label--color--active);font-weight:var(--breadcrumb__item--label--font-weight);cursor:default}.active-icon{--icon--color:var(--breadcrumb__item--label--color--active);cursor:default}.breadcrumb__items{display:flex}";
|
|
970
1073
|
|
|
971
1074
|
const EzBreadcrumb$1 = class extends HTMLElement$1 {
|
|
972
1075
|
constructor() {
|
|
@@ -3519,6 +3622,7 @@ const EzFilterInput$1 = class extends HTMLElement$1 {
|
|
|
3519
3622
|
this.restrict = undefined;
|
|
3520
3623
|
this.mode = "regular";
|
|
3521
3624
|
this.asyncSearch = false;
|
|
3625
|
+
this.canShowError = true;
|
|
3522
3626
|
}
|
|
3523
3627
|
observeLabel() {
|
|
3524
3628
|
if (this._textInput) {
|
|
@@ -3596,7 +3700,7 @@ const EzFilterInput$1 = class extends HTMLElement$1 {
|
|
|
3596
3700
|
}
|
|
3597
3701
|
render() {
|
|
3598
3702
|
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
3599
|
-
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
3703
|
+
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
3600
3704
|
}
|
|
3601
3705
|
get _elem() { return this; }
|
|
3602
3706
|
static get watchers() { return {
|
|
@@ -124393,7 +124497,7 @@ const EzGuideNavigator$1 = class extends HTMLElement$1 {
|
|
|
124393
124497
|
static get style() { return ezGuideNavigatorCss; }
|
|
124394
124498
|
};
|
|
124395
124499
|
|
|
124396
|
-
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-account-outline:before{content:\"\\
|
|
124500
|
+
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-actions-sprite-v1:before{content:\"\\ea06\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea07\"}.ez-icon-alert-circle:before{content:\"\\ea08\"}.ez-icon-alert-mail:before{content:\"\\ea09\"}.ez-icon-alert-popup:before{content:\"\\ea0a\"}.ez-icon-anexo:before{content:\"\\ea0b\"}.ez-icon-antecipação:before{content:\"\\ea0c\"}.ez-icon-apps:before{content:\"\\ea0d\"}.ez-icon-arrow_back:before{content:\"\\ea0e\"}.ez-icon-arrow_downward:before{content:\"\\ea0f\"}.ez-icon-baixa:before{content:\"\\ea10\"}.ez-icon-balance:before{content:\"\\ea11\"}.ez-icon-bell-inverted:before{content:\"\\ea12\"}.ez-icon-bell:before{content:\"\\ea13\"}.ez-icon-boleto:before{content:\"\\ea14\"}.ez-icon-boolean:before{content:\"\\ea15\"}.ez-icon-business-center:before{content:\"\\ea16\"}.ez-icon-calendar-clock:before{content:\"\\ea17\"}.ez-icon-calendar:before{content:\"\\ea18\"}.ez-icon-cash-remove:before{content:\"\\ea19\"}.ez-icon-check-circle-inverted:before{content:\"\\ea1a\"}.ez-icon-check-circle:before{content:\"\\ea1b\"}.ez-icon-check:before{content:\"\\ea1c\"}.ez-icon-chevron-down:before{content:\"\\ea1d\"}.ez-icon-chevron-left:before{content:\"\\ea1e\"}.ez-icon-chevron-right:before{content:\"\\ea1f\"}.ez-icon-chevron-up:before{content:\"\\ea20\"}.ez-icon-circle--medium:before{content:\"\\ea21\"}.ez-icon-circle:before{content:\"\\ea22\"}.ez-icon-cleaning:before{content:\"\\ea23\"}.ez-icon-clipboard:before{content:\"\\ea24\"}.ez-icon-close:before{content:\"\\ea25\"}.ez-icon-cobrar:before{content:\"\\ea26\"}.ez-icon-code:before{content:\"\\ea27\"}.ez-icon-configuration:before{content:\"\\ea28\"}.ez-icon-copy:before{content:\"\\ea29\"}.ez-icon-credit_card:before{content:\"\\ea2a\"}.ez-icon-crop:before{content:\"\\ea2b\"}.ez-icon-custom:before{content:\"\\ea2c\"}.ez-icon-delete:before{content:\"\\ea2d\"}.ez-icon-description:before{content:\"\\ea2e\"}.ez-icon-dividir:before{content:\"\\ea2f\"}.ez-icon-docx:before{content:\"\\ea30\"}.ez-icon-dot-notification:before{content:\"\\ea31\"}.ez-icon-dots-horizontal:before{content:\"\\ea32\"}.ez-icon-dots-vertical:before{content:\"\\ea33\"}.ez-icon-drag-indicator:before{content:\"\\ea34\"}.ez-icon-dual-chevron-down:before{content:\"\\ea35\"}.ez-icon-dual-chevron-up:before{content:\"\\ea36\"}.ez-icon-edit-file:before{content:\"\\ea37\"}.ez-icon-edit-table:before{content:\"\\ea38\"}.ez-icon-edit-time:before{content:\"\\ea39\"}.ez-icon-edit:before{content:\"\\ea3a\"}.ez-icon-email:before{content:\"\\ea3b\"}.ez-icon-estorno:before{content:\"\\ea3c\"}.ez-icon-exe:before{content:\"\\ea3d\"}.ez-icon-expand:before{content:\"\\ea3e\"}.ez-icon-expandir_card:before{content:\"\\ea3f\"}.ez-icon-extrato:before{content:\"\\ea40\"}.ez-icon-eye-off:before{content:\"\\ea41\"}.ez-icon-eye:before{content:\"\\ea42\"}.ez-icon-favorite:before{content:\"\\ea43\"}.ez-icon-figma:before{content:\"\\ea44\"}.ez-icon-file-download:before{content:\"\\ea45\"}.ez-icon-file-upload:before{content:\"\\ea46\"}.ez-icon-filter:before{content:\"\\ea47\"}.ez-icon-find-file:before{content:\"\\ea48\"}.ez-icon-find-page:before{content:\"\\ea49\"}.ez-icon-format-color-fill:before{content:\"\\ea4a\"}.ez-icon-generic:before{content:\"\\ea4b\"}.ez-icon-gif:before{content:\"\\ea4c\"}.ez-icon-graph_bar:before{content:\"\\ea4d\"}.ez-icon-handshake:before{content:\"\\ea4e\"}.ez-icon-help-inverted:before{content:\"\\ea4f\"}.ez-icon-help:before{content:\"\\ea50\"}.ez-icon-hide_menu:before{content:\"\\ea51\"}.ez-icon-home:before{content:\"\\ea52\"}.ez-icon-icons104:before{content:\"\\ea53\"}.ez-icon-language:before{content:\"\\ea54\"}.ez-icon-launch:before{content:\"\\ea55\"}.ez-icon-lightbulb:before{content:\"\\ea56\"}.ez-icon-list:before{content:\"\\ea57\"}.ez-icon-location:before{content:\"\\ea58\"}.ez-icon-lock-outline:before{content:\"\\ea59\"}.ez-icon-lock:before{content:\"\\ea5a\"}.ez-icon-menu:before{content:\"\\ea5b\"}.ez-icon-mid:before{content:\"\\ea5c\"}.ez-icon-minus:before{content:\"\\ea5d\"}.ez-icon-money-off:before{content:\"\\ea5e\"}.ez-icon-money:before{content:\"\\ea5f\"}.ez-icon-more:before{content:\"\\ea60\"}.ez-icon-mp3:before{content:\"\\ea61\"}.ez-icon-mp4:before{content:\"\\ea62\"}.ez-icon-north-west:before{content:\"\\ea63\"}.ez-icon-number:before{content:\"\\ea64\"}.ez-icon-ordem-ascendente:before{content:\"\\ea65\"}.ez-icon-ordem-descendente:before{content:\"\\ea66\"}.ez-icon-parcelar:before{content:\"\\ea67\"}.ez-icon-pause:before{content:\"\\ea68\"}.ez-icon-payments:before{content:\"\\ea69\"}.ez-icon-pdf:before{content:\"\\ea6a\"}.ez-icon-play:before{content:\"\\ea6b\"}.ez-icon-plus:before{content:\"\\ea6c\"}.ez-icon-png:before{content:\"\\ea6d\"}.ez-icon-power:before{content:\"\\ea6e\"}.ez-icon-pptx:before{content:\"\\ea6f\"}.ez-icon-print:before{content:\"\\ea70\"}.ez-icon-push-pin:before{content:\"\\ea71\"}.ez-icon-rateio:before{content:\"\\ea72\"}.ez-icon-receipt:before{content:\"\\ea73\"}.ez-icon-recolher_card:before{content:\"\\ea74\"}.ez-icon-restore:before{content:\"\\ea75\"}.ez-icon-return:before{content:\"\\ea76\"}.ez-icon-save:before{content:\"\\ea77\"}.ez-icon-search:before{content:\"\\ea78\"}.ez-icon-settings-inverted:before{content:\"\\ea79\"}.ez-icon-settings:before{content:\"\\ea7a\"}.ez-icon-share:before{content:\"\\ea7b\"}.ez-icon-shield:before{content:\"\\ea7c\"}.ez-icon-show_menu:before{content:\"\\ea7d\"}.ez-icon-south-east:before{content:\"\\ea7e\"}.ez-icon-sync:before{content:\"\\ea7f\"}.ez-icon-table:before{content:\"\\ea80\"}.ez-icon-tag_code:before{content:\"\\ea81\"}.ez-icon-text:before{content:\"\\ea82\"}.ez-icon-timeline:before{content:\"\\ea83\"}.ez-icon-timer-outline:before{content:\"\\ea84\"}.ez-icon-tune:before{content:\"\\ea85\"}.ez-icon-txt:before{content:\"\\ea86\"}.ez-icon-un-pin:before{content:\"\\ea87\"}.ez-icon-unfold_less:before{content:\"\\ea88\"}.ez-icon-unfold_more:before{content:\"\\ea89\"}.ez-icon-user-circle:before{content:\"\\ea8a\"}.ez-icon-warning-outline:before{content:\"\\ea8b\"}.ez-icon-warning_triangle:before{content:\"\\ea8c\"}.ez-icon-whatshot:before{content:\"\\ea8d\"}.ez-icon-xlsx:before{content:\"\\ea8e\"}.ez-icon-zip:before{content:\"\\ea8f\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
|
|
124397
124501
|
|
|
124398
124502
|
const EzIcon$1 = class extends HTMLElement$1 {
|
|
124399
124503
|
constructor() {
|
|
@@ -124431,7 +124535,7 @@ const EzIcon$1 = class extends HTMLElement$1 {
|
|
|
124431
124535
|
static get style() { return ezIconCss; }
|
|
124432
124536
|
};
|
|
124433
124537
|
|
|
124434
|
-
const ezListCss = ":host{--ez-list__host--z-index:var(--visible, 1);--ez-list__host--border-radius:var(--border--radius-medium, 12px);--ez-list__host--padding:var(--space--medium, 12px);--ez-list__icon--padding:var(--space--small, 6px);--ez-list__icon--color:#AFB6C0;--ez-list__item--margin:0 var(--space--small, 6px);--ez-list__item--color:var(--title--primary, #2b3a54);--ez-list__item--border-bottom:var(--border--small, 1px solid);--ez-list__item--border-color:var(--title--primary, #2b3a54);--ez-list__item--font-family:var(--font-pattern, \"Roboto\");--ez-list__item--font-size:var(--text--medium, 14px);--ez-list__selectable--padding-right:var(--space--small, 6px);--ez-list__selectable--padding-left:var(--space--small, 6px);--ez-list__selected-item--border-radius:var(--border--radius-small, 6px);--ez-list__selected-item--background-color:var(--color--primary-300, #E2F4EF);--ez-list__group--font-family:var(--font-pattern, \"Roboto\");--ez-list__group--font-size:var(--text--medium, 14px);--ez-list__group--font-weight:var(--text-weight--large, 600);--ez-list__group--padding-bottom:var(--space-small, 6px);--ez-list__group-overlay--font-family:var(--font-pattern, \"Roboto\");--ez-list__group-overlay--font-size:var(--text--medium, 14px);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__last-droppable-space--height:var(--space--small, 6px);--ez-list__draggable-list--padding-bottom:var(--space--small, 6px);--ez-list__draggable-icon--image:url('data:image/svg+xml;utf8,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z\"/></svg>');--ez-list__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-list__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-list__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-list__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-list__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-list__scrollbar--width:var(--space--medium, 12px);max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-list__host--z-index)}p{margin:0}.draggable{display:
|
|
124538
|
+
const ezListCss = ":host{--ez-list__host--z-index:var(--visible, 1);--ez-list__host--border-radius:var(--border--radius-medium, 12px);--ez-list__host--padding:var(--space--medium, 12px);--ez-list__icon--padding:var(--space--small, 6px);--ez-list__icon--color:#AFB6C0;--ez-list__item--margin:0 var(--space--small, 6px);--ez-list__item--color:var(--title--primary, #2b3a54);--ez-list__item--border-bottom:var(--border--small, 1px solid);--ez-list__item--border-color:var(--title--primary, #2b3a54);--ez-list__item--font-family:var(--font-pattern, \"Roboto\");--ez-list__item--font-size:var(--text--medium, 14px);--ez-list__selectable--padding-right:var(--space--small, 6px);--ez-list__selectable--padding-left:var(--space--small, 6px);--ez-list__selected-item--border-radius:var(--border--radius-small, 6px);--ez-list__selected-item--background-color:var(--color--primary-300, #E2F4EF);--ez-list__group--font-family:var(--font-pattern, \"Roboto\");--ez-list__group--font-size:var(--text--medium, 14px);--ez-list__group--font-weight:var(--text-weight--large, 600);--ez-list__group--padding-bottom:var(--space-small, 6px);--ez-list__group-overlay--font-family:var(--font-pattern, \"Roboto\");--ez-list__group-overlay--font-size:var(--text--medium, 14px);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__last-droppable-space--height:var(--space--small, 6px);--ez-list__draggable-list--padding-bottom:var(--space--small, 6px);--ez-list__draggable-icon--image:url('data:image/svg+xml;utf8,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z\"/></svg>');--ez-list__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-list__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-list__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-list__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-list__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-list__scrollbar--width:var(--space--medium, 12px);max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-list__host--z-index)}p{margin:0}.draggable{width:100%;display:grid;grid-template-columns:minmax(0px, auto) minmax(0px, auto);place-items:center;border-top:1px dashed #fff;justify-content:space-between;font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size)}.dragging{background:#FFFFFF;border:1px solid #008561;box-sizing:border-box;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);border-radius:6px}.selectable{cursor:pointer;padding-right:var(--ez-list__selectable--padding-right);padding-left:var(--ez-list__selectable--padding-left)}.selectable-container{margin:0px !important}.hover-feedback:hover{background-color:var(--background--medium);border-radius:var(--border--radius-regular)}.item-content{display:flex;justify-content:flex-start;align-items:center;width:100%}.draggable-list{padding:0;margin:0;width:100%;max-height:100%;scrollbar-width:thin;color:var(--text-color);scrollbar-color:var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background)}.draggable-list li{display:flex;height:32px;margin:var(--ez-list__item--margin);font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size);color:var(--ez-list__item--color)}.over{border-top:1px dashed var(--ez-list__over--border--color)}.last-droppable-space{height:var(--ez-list__last-droppable-space--height)}.draggable-selected{background-color:var(--background--strong) !important}.draggable-selected div:hover{background-color:var(--background--strong) !important}.draggable-list::-webkit-scrollbar{background-color:var(--ez-list__scrollbar--color-background);width:var(--ez-list__scrollbar--width);max-width:var(--ez-list__scrollbar--width);min-width:var(--ez-list__scrollbar--width)}.draggable-list::-webkit-scrollbar-track{background-color:var(--ez-list__scrollbar--color-background);border-radius:var(--ez-list__scrollbar--border-radius)}.draggable-list::-webkit-scrollbar-thumb{background-color:var(--ez-list__scrollbar--color-default);border-radius:var(--ez-list__scrollbar--border-radius)}.draggable-list::-webkit-scrollbar-thumb:vertical:hover,.draggable-list::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-list__scrollbar--color-hover)}.draggable-list::-webkit-scrollbar-thumb:vertical:active,.draggable-list::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-list__scrollbar--color-clicked)}.draggable-icon{align-items:flex-start;display:flex;outline:none;border:none;background-color:unset}.draggable-icon::after{content:'';display:flex;width:18px;height:18px;background-color:var(--ez-list__icon--color);-webkit-mask-image:var(--ez-list__draggable-icon--image);mask-image:var(--ez-list__draggable-icon--image)}*{box-sizing:border-box}.checkbox{width:fit-content}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-container{display:flex;flex-direction:column;max-height:100%;overflow-y:auto;outline:none;width:100%;scrollbar-width:thin;scrollbar-color:var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background)}.group-name{-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;color:var(--title--primary);font-family:var(--ez-list__group--font-family);font-size:var(--ez-list__group--font-size);font-weight:var(--ez-list__group--font-weight);padding-bottom:var(--ez-list__group--padding-bottom)}.group{display:flex;flex-direction:column}.group-container::-webkit-scrollbar{background-color:var(--ez-list__scrollbar--color-background);width:var(--ez-list__scrollbar--width);max-width:var(--ez-list__scrollbar--width);min-width:var(--ez-list__scrollbar--width)}.group-container::-webkit-scrollbar-track{background-color:var(--ez-list__scrollbar--color-background);border-radius:var(--ez-list__scrollbar--border-radius)}.group-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__scrollbar--color-default);border-radius:var(--ez-list__scrollbar--border-radius)}.group-container::-webkit-scrollbar-thumb:vertical:hover,.group-container::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-list__scrollbar--color-hover)}.group-container::-webkit-scrollbar-thumb:vertical:active,.group-container::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-list__scrollbar--color-clicked)}.section-container{display:flex;position:relative;height:100%}.items-container{width:100%;max-height:100%;overflow-y:auto;outline:none;scrollbar-width:thin;scrollbar-color:var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background)}.group-items-container{width:100%;max-height:100%;height:100%;outline:none}.items-container::-webkit-scrollbar{background-color:var(--ez-list__scrollbar--color-background);width:var(--ez-list__scrollbar--width);max-width:var(--ez-list__scrollbar--width);min-width:var(--ez-list__scrollbar--width)}.items-container::-webkit-scrollbar-track{background-color:var(--ez-list__scrollbar--color-background);border-radius:var(--ez-list__scrollbar--border-radius)}.items-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__scrollbar--color-default);border-radius:var(--ez-list__scrollbar--border-radius)}.items-container::-webkit-scrollbar-thumb:vertical:hover,.items-container::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-list__scrollbar--color-hover)}.items-container::-webkit-scrollbar-thumb:vertical:active,.items-container::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-list__scrollbar--color-clicked)}.group-overlay{background:rgba(226, 244, 239, 0.8);border:1px solid #008561;border-radius:8px;position:absolute;display:none;place-items:center;top:0;bottom:0;left:0;right:0;z-index:2;margin:0;cursor:pointer;font-family:var(--ez-list__group-overlay--font-family);font-size:var(--ez-list__group-overlay--font-size)}.presetedHeight{min-height:100px}.overlay-text{position:absolute;top:50%;left:50%;font-size:50px;color:white;transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%)}.selected-item{background:var(--ez-list__selected-item--background-color);border-radius:var(--ez-list__selected-item--border-radius)}.slot-item{align-items:flex-end}.overGroup{background:rgba(226, 244, 239, 0.8);border:1px solid #008561;box-sizing:border-box;border-radius:8px;padding-top:6px}";
|
|
124435
124539
|
|
|
124436
124540
|
const EzList$1 = class extends HTMLElement$1 {
|
|
124437
124541
|
constructor() {
|
|
@@ -124439,6 +124543,7 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
124439
124543
|
this.__registerHost();
|
|
124440
124544
|
this.__attachShadow();
|
|
124441
124545
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
124546
|
+
this.ezSelectItem = createEvent(this, "ezSelectItem", 7);
|
|
124442
124547
|
this._listItemsHistory = [];
|
|
124443
124548
|
this._listItems = [];
|
|
124444
124549
|
this._listGroupItems = [];
|
|
@@ -124471,6 +124576,7 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
124471
124576
|
*/
|
|
124472
124577
|
async setSelection(selectedItem, scrollToOption) {
|
|
124473
124578
|
if (selectedItem && this.ezSelectable) {
|
|
124579
|
+
this.ezSelectItem.emit(selectedItem);
|
|
124474
124580
|
if (this.useGroups) {
|
|
124475
124581
|
let newList = [...this._listGroupItems];
|
|
124476
124582
|
newList.forEach(groupItem => {
|
|
@@ -124952,18 +125058,18 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
124952
125058
|
render() {
|
|
124953
125059
|
return (h(Host, { ref: (el) => this._element = el }, this.useGroups ?
|
|
124954
125060
|
h("div", { class: "group-container", ref: (el) => this._groupContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, this._listGroupItems.map(group => {
|
|
124955
|
-
return h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name" }, group.group), h("section", { class: "section-container", onDragOver: (ev) => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => (h("li", { id: "item_" + this.getItemId(item.label), class: {
|
|
125061
|
+
return h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name" }, group.group), h("section", { class: "section-container", onDragOver: (ev) => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => (h("li", Object.assign({ id: "item_" + this.getItemId(item.label), class: {
|
|
124956
125062
|
"selectable-container": this.ezSelectable,
|
|
124957
125063
|
"hover-feedback": this.hoverFeedback
|
|
124958
|
-
}, key: "item_" + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onClick: () => { this.setSelection(item); }, onDragLeave: () => { group.sort ? undefined : this.removeOverClass(); }, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: (event) => { group.sort ? undefined : this.onDragOverItem(event); }, onDrop: (event) => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ? this.getContainerItemBuilder(item, group, "slot-item") : undefined))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event, group) })), group.sort ?
|
|
125064
|
+
}, key: "item_" + this.getItemId(item.label) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils$1.replaceAccentuatedChars(item.label)}`) }), h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onClick: () => { this.setSelection(item); }, onDragLeave: () => { group.sort ? undefined : this.removeOverClass(); }, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: (event) => { group.sort ? undefined : this.onDragOverItem(event); }, onDrop: (event) => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ? this.getContainerItemBuilder(item, group, "slot-item") : undefined))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event, group) })), group.sort ?
|
|
124959
125065
|
h("div", { id: this.getGroupOverlayId(group.group), class: "group-overlay" }, "Mover para ", group.group)
|
|
124960
125066
|
: undefined));
|
|
124961
125067
|
}))
|
|
124962
125068
|
:
|
|
124963
|
-
h("div", { class: "items-container", ref: (el) => this._itemContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", { id: "item_" + this.getItemId(item.label), class: {
|
|
125069
|
+
h("div", { class: "items-container", ref: (el) => this._itemContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", Object.assign({ id: "item_" + this.getItemId(item.label), class: {
|
|
124964
125070
|
"selectable-container": this.ezSelectable,
|
|
124965
125071
|
"hover-feedback": this.hoverFeedback
|
|
124966
|
-
}, key: "item_" + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onDragStart: () => this.onDragStart({ item: item, index: index }), onClick: () => { this.setSelection(item); }, onDragLeave: () => this.removeOverClass(), onDragOver: (event) => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ? this.getContainerItemBuilder(item) : undefined)))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event) })))));
|
|
125072
|
+
}, key: "item_" + this.getItemId(item.label) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils$1.replaceAccentuatedChars(item.label)}`) }), h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onDragStart: () => this.onDragStart({ item: item, index: index }), onClick: () => { this.setSelection(item); }, onDragLeave: () => this.removeOverClass(), onDragOver: (event) => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ? this.getContainerItemBuilder(item) : undefined)))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event) })))));
|
|
124967
125073
|
}
|
|
124968
125074
|
static get style() { return ezListCss; }
|
|
124969
125075
|
};
|
|
@@ -125295,6 +125401,12 @@ const EzPopover$1 = class extends HTMLElement$1 {
|
|
|
125295
125401
|
if (!_container.lastElementChild.shadowRoot ? _container.contains(node) : _container.lastElementChild.shadowRoot.contains(node)) {
|
|
125296
125402
|
return true;
|
|
125297
125403
|
}
|
|
125404
|
+
const nodeShadowRoot = node.getRootNode();
|
|
125405
|
+
if (nodeShadowRoot instanceof ShadowRoot) {
|
|
125406
|
+
if (eventOrigin.composedPath().includes(nodeShadowRoot.host)) {
|
|
125407
|
+
return true;
|
|
125408
|
+
}
|
|
125409
|
+
}
|
|
125298
125410
|
}
|
|
125299
125411
|
}
|
|
125300
125412
|
return false;
|
|
@@ -127732,6 +127844,7 @@ const EzViewStack$1 = class extends HTMLElement$1 {
|
|
|
127732
127844
|
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]}]);
|
|
127733
127845
|
const EzAlert = /*@__PURE__*/proxyCustomElement(EzAlert$1, [1,"ez-alert",{"alertType":[513,"alert-type"]}]);
|
|
127734
127846
|
const EzApplication = /*@__PURE__*/proxyCustomElement(EzApplication$1, [0,"ez-application"]);
|
|
127847
|
+
const EzBadge = /*@__PURE__*/proxyCustomElement(EzBadge$1, [1,"ez-badge",{"size":[513],"label":[513],"iconLeft":[513,"icon-left"],"iconRight":[513,"icon-right"],"position":[1040],"hasSlot":[32]}]);
|
|
127735
127848
|
const EzBreadcrumb = /*@__PURE__*/proxyCustomElement(EzBreadcrumb$1, [1,"ez-breadcrumb",{"items":[1040],"fillMode":[1025,"fill-mode"],"maxItems":[1026,"max-items"],"positionEllipsis":[1026,"position-ellipsis"],"visibleItems":[32],"hiddenItems":[32],"showDropdown":[32],"collapseConfigPosition":[32]}]);
|
|
127736
127849
|
const EzButton = /*@__PURE__*/proxyCustomElement(EzButton$1, [1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513]},[[2,"click","clickListener"]]]);
|
|
127737
127850
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]}]);
|
|
@@ -127745,7 +127858,7 @@ const EzDateTimeInput = /*@__PURE__*/proxyCustomElement(EzDateTimeInput$1, [1,"e
|
|
|
127745
127858
|
const EzDialog = /*@__PURE__*/proxyCustomElement(EzDialog$1, [1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"]}]);
|
|
127746
127859
|
const EzDropdown = /*@__PURE__*/proxyCustomElement(EzDropdown$1, [1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]);
|
|
127747
127860
|
const EzFileItem = /*@__PURE__*/proxyCustomElement(EzFileItem$1, [1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]);
|
|
127748
|
-
const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"asyncSearch":[516,"async-search"]}]);
|
|
127861
|
+
const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"asyncSearch":[516,"async-search"],"canShowError":[516,"can-show-error"]}]);
|
|
127749
127862
|
const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16]}]);
|
|
127750
127863
|
const EzFormView = /*@__PURE__*/proxyCustomElement(EzFormView$1, [2,"ez-form-view",{"fields":[16]}]);
|
|
127751
127864
|
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_selectionCount":[32],"_selectionPageCount":[32]},[[0,"ezSelectionChange","onSelectionChange"]]]);
|
|
@@ -127777,6 +127890,7 @@ const defineCustomElements = (opts) => {
|
|
|
127777
127890
|
EzActionsButton,
|
|
127778
127891
|
EzAlert,
|
|
127779
127892
|
EzApplication,
|
|
127893
|
+
EzBadge,
|
|
127780
127894
|
EzBreadcrumb,
|
|
127781
127895
|
EzButton,
|
|
127782
127896
|
EzCalendar,
|
|
@@ -127824,4 +127938,4 @@ const defineCustomElements = (opts) => {
|
|
|
127824
127938
|
}
|
|
127825
127939
|
};
|
|
127826
127940
|
|
|
127827
|
-
export { EzActionsButton, EzAlert, EzApplication, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, defineCustomElements };
|
|
127941
|
+
export { EzActionsButton, EzAlert, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, defineCustomElements };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-de655f48.js';
|
|
2
|
+
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
+
|
|
4
|
+
var Sizes;
|
|
5
|
+
(function (Sizes) {
|
|
6
|
+
Sizes["EXTRA_LARGE"] = "extra-large";
|
|
7
|
+
Sizes["LARGE"] = "large";
|
|
8
|
+
Sizes["MEDIUM"] = "medium";
|
|
9
|
+
Sizes["SMALL_MEDIUM"] = "small-medium";
|
|
10
|
+
Sizes["SMALL"] = "small";
|
|
11
|
+
Sizes["EXTRA_SMALL"] = "extra-small";
|
|
12
|
+
})(Sizes || (Sizes = {}));
|
|
13
|
+
|
|
14
|
+
const ezBadgeCss = ":host{--ez-badge--size-2xs:var(--space--2xs, 8px);--ez-badge--size-xs:var(--space--xs, 12px);--ez-badge--size-sm:var(--space--sm, 16px);--ez-badge--size-md:var(--space--md, 20px);--ez-badge--size-lg:var(--space--lg, 24px);--ez-badge--size-xl:var(--space--xl, 32px);--ez-badge--padding-2xs:0;--ez-badge--padding-xs:var(--space--nano, 2px);--ez-badge--padding-sm:calc(var(--space--nano, 2px) + 1px);--ez-badge--padding-md:var(--space--3xs, 4px);--ez-badge--padding-lg:calc(var(--space--3xs, 4px) + 2px);--ez-badge--padding-xl:var(--space--2xs);--ez-badge--border-radius:calc(var(--border--radius-medium, 12px) + 8px);--ez-badge--font-family:var(--font-pattern, Roboto);--ez-badge--font-weight-medium:var(--text-weight--medium, 400);--ez-badge--background-color:var(--color--primary, #008561);--ez-badge--border-none:0;--ez-badge--color:var(--text--inverted, #ffffff);--ez-badge--gap:calc(var(--ez-badge--padding-xs) + 1px);--ez-badge--font-size-md:var(--text--medium);--ez-badge--font-size-sm:var(--text--medium);--ez-badge--font-size-xs:var(--text--small)}ez-icon{--ez-icon--color:inherit}.badge{display:flex;justify-content:center;align-items:center;position:relative}.badge__content{font-family:var(--ez-badge--font-family, Roboto);font-weight:var(--ez-badge--font-weight-medium, 400);background-color:var(--ez-badge--background-color, #008561);border:var(--ez-badge--border-none, 0);color:var(--ez-badge--color, #ffffff);border-radius:var(--ez-badge--border-radius, 20px);gap:var(--ez-badge--gap, 3px);display:flex;justify-content:center;align-items:center}.badge__content--fill-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px)}.badge__content--fill-2xs{height:var(--ez-badge--size-2xs, 8px);min-width:var(--ez-badge--size-2xs, 8px)}.badge__content--text-md{height:calc(var(--ez-badge--size-md, 20px) - 2px);min-width:var(--ez-badge--size-sm, 20px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-md)}.badge__content--text-sm{height:calc(var(--ez-badge--size-sm, 16px) - 2px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-sm)}.badge__content--text-xs{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-2xs);padding-bottom:var(--ez-badge--padding-2xs);padding-right:var(--ez-badge--padding-lg);padding-left:var(--ez-badge--padding-lg);font-size:var(--ez-badge--font-size-xs)}.badge__content--icon-lg{height:var(--ez-badge--size-lg, 24px);min-width:var(--ez-badge--size-lg, 24px);padding:var(--ez-badge--padding-md)}.badge__content--icon-md{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-md)}.badge__content--icon-sm{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px);padding:var(--ez-badge--padding-xs)}.badge__content--fill{position:absolute;top:0;inset-inline-end:0;z-index:var(--most-visible, 2)}.badge__content--fill-top-right{transform:translate(50%, -50%);position:absolute;top:0;right:0}.badge__content--fill-top-left{transform:translate(-50%, -50%);position:absolute;top:0;left:0}.badge__content--fill-bottom-left{transform:translate(-50%, 50%);position:absolute;bottom:0;left:0}.badge__content--fill-bottom-right{transform:translate(50%, 50%);position:absolute;bottom:0;right:0}";
|
|
15
|
+
|
|
16
|
+
const EzBadge = class {
|
|
17
|
+
constructor(hostRef) {
|
|
18
|
+
registerInstance(this, hostRef);
|
|
19
|
+
this._sizes = {
|
|
20
|
+
[Sizes.EXTRA_LARGE]: {
|
|
21
|
+
sufix: "xl",
|
|
22
|
+
},
|
|
23
|
+
[Sizes.LARGE]: {
|
|
24
|
+
sufix: "lg",
|
|
25
|
+
},
|
|
26
|
+
[Sizes.MEDIUM]: {
|
|
27
|
+
sufix: "md",
|
|
28
|
+
},
|
|
29
|
+
[Sizes.SMALL_MEDIUM]: {
|
|
30
|
+
sufix: "sm",
|
|
31
|
+
},
|
|
32
|
+
[Sizes.SMALL]: {
|
|
33
|
+
sufix: "xs",
|
|
34
|
+
},
|
|
35
|
+
[Sizes.EXTRA_SMALL]: {
|
|
36
|
+
sufix: "2xs",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
this.hasSlot = false;
|
|
40
|
+
this.size = "small";
|
|
41
|
+
this.label = undefined;
|
|
42
|
+
this.iconLeft = undefined;
|
|
43
|
+
this.iconRight = undefined;
|
|
44
|
+
this.position = { horizontal: "right", vertical: "top" };
|
|
45
|
+
}
|
|
46
|
+
getIconSize() {
|
|
47
|
+
switch (this.size) {
|
|
48
|
+
case "large":
|
|
49
|
+
return "large";
|
|
50
|
+
case "medium":
|
|
51
|
+
case "small-medium":
|
|
52
|
+
return "small";
|
|
53
|
+
case "small":
|
|
54
|
+
return "x-small";
|
|
55
|
+
default:
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
componentDidLoad() {
|
|
60
|
+
if (this._element) {
|
|
61
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
62
|
+
}
|
|
63
|
+
if (this._badge) {
|
|
64
|
+
const dataInfo = { id: 'embedded' };
|
|
65
|
+
ElementIDUtils.addIDInfo(this._badge, 'ezBadge', dataInfo);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
handleSlotChange() {
|
|
69
|
+
this.hasSlot = true;
|
|
70
|
+
}
|
|
71
|
+
validateIconLeft() {
|
|
72
|
+
return (this.iconLeft) && this.iconLeft.trim() !== "";
|
|
73
|
+
}
|
|
74
|
+
validateIconRight() {
|
|
75
|
+
return (this.iconRight) && this.iconRight.trim() !== "";
|
|
76
|
+
}
|
|
77
|
+
validateLabel() {
|
|
78
|
+
return (this.label) && this.label.trim() !== "";
|
|
79
|
+
}
|
|
80
|
+
createContainerClassName() {
|
|
81
|
+
let sizeSufix = this._sizes[this.size].sufix;
|
|
82
|
+
let containerClassNames = ["badge__content"];
|
|
83
|
+
if (this.hasSlot) {
|
|
84
|
+
containerClassNames.push("badge__content--fill-" + sizeSufix);
|
|
85
|
+
if (this.position.vertical == "bottom" && this.position.horizontal == "right") {
|
|
86
|
+
containerClassNames.push("badge__content--fill-bottom-right");
|
|
87
|
+
}
|
|
88
|
+
if (this.position.vertical == "bottom" && this.position.horizontal == "left") {
|
|
89
|
+
containerClassNames.push("badge__content--fill-bottom-left");
|
|
90
|
+
}
|
|
91
|
+
if (this.position.vertical == "top" && this.position.horizontal == "right") {
|
|
92
|
+
containerClassNames.push("badge__content--fill-top-right");
|
|
93
|
+
}
|
|
94
|
+
if (this.position.vertical == "top" && this.position.horizontal == "left") {
|
|
95
|
+
containerClassNames.push("badge__content--fill-top-left");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (this.label) {
|
|
99
|
+
containerClassNames.push("badge__content--text-" + sizeSufix);
|
|
100
|
+
}
|
|
101
|
+
else if (this.iconLeft || this.iconRight) {
|
|
102
|
+
containerClassNames.push("badge__content--icon-" + sizeSufix);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
containerClassNames.push("badge__content--fill-" + sizeSufix);
|
|
106
|
+
}
|
|
107
|
+
return containerClassNames.join(" ");
|
|
108
|
+
}
|
|
109
|
+
render() {
|
|
110
|
+
return (h(Host, null, h("div", { class: "badge" }, h("div", null, h("slot", { name: "child-badge", onSlotchange: () => { this.handleSlotChange(); } })), h("div", { class: this.createContainerClassName(), ref: (el) => this._badge = el }, this.validateIconLeft() && h("ez-icon", { class: "icon", iconName: this.iconLeft, size: this.getIconSize() }), this.validateLabel() && h("label", { title: this.label }, this.label), this.validateIconRight() && h("ez-icon", { class: "icon", iconName: this.iconRight, size: this.getIconSize() })))));
|
|
111
|
+
}
|
|
112
|
+
get _element() { return getElement(this); }
|
|
113
|
+
};
|
|
114
|
+
EzBadge.style = ezBadgeCss;
|
|
115
|
+
|
|
116
|
+
export { EzBadge as ez_badge };
|
|
@@ -4,15 +4,7 @@ import { ElementIDUtils, ObjectUtils, JSUtils } from '@sankhyalabs/core';
|
|
|
4
4
|
const BreadcrumbItem = (props) => {
|
|
5
5
|
const { items, selectedItem, itemsHidden, showDropdown, handleShowDropdown, collapseConfigPosition, ellipsesPositionedEnd } = props;
|
|
6
6
|
const formatDropdownItems = () => {
|
|
7
|
-
return itemsHidden.map((item) => ({
|
|
8
|
-
id: item.id,
|
|
9
|
-
label: item.label,
|
|
10
|
-
type: 'item',
|
|
11
|
-
children: null,
|
|
12
|
-
iconName: item.iconName || null,
|
|
13
|
-
subAction: null,
|
|
14
|
-
group: null
|
|
15
|
-
}));
|
|
7
|
+
return itemsHidden.map((item) => (Object.assign(Object.assign({}, item), { type: 'item', children: null, iconName: item.iconName || null, subAction: null, group: null })));
|
|
16
8
|
};
|
|
17
9
|
const onClickEllipsis = (evt) => {
|
|
18
10
|
evt.stopPropagation();
|
|
@@ -24,10 +16,7 @@ const BreadcrumbItem = (props) => {
|
|
|
24
16
|
h("span", { class: "ellipses__item" }, "..."),
|
|
25
17
|
ellipsesPositionedEnd || h("ez-icon", Object.assign({ class: "breadcrumb__item--chevron", size: "small", iconName: "chevron-right" }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo(`iconPath${item.id}`)}` })),
|
|
26
18
|
showDropdown &&
|
|
27
|
-
h("ez-dropdown", Object.assign({ class: "dropdown-ellipsis", items: formatDropdownItems(), onEzClick: (evt) => {
|
|
28
|
-
const { id, label, iconName } = evt.detail;
|
|
29
|
-
selectedItem.emit({ id, label, iconName });
|
|
30
|
-
} }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("dropdown")}` }))));
|
|
19
|
+
h("ez-dropdown", Object.assign({ class: "dropdown-ellipsis", items: formatDropdownItems(), onEzClick: (evt) => selectedItem.emit(evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("dropdown")}` }))));
|
|
31
20
|
};
|
|
32
21
|
return (h("div", { class: "breadcrumb__items" }, items.map((item, index) => {
|
|
33
22
|
const isLastItem = index === (items.length - 1);
|
|
@@ -41,7 +30,7 @@ const BreadcrumbItem = (props) => {
|
|
|
41
30
|
})));
|
|
42
31
|
};
|
|
43
32
|
|
|
44
|
-
const ezBreadcrumbCss = ":host{--breadcrumb__item--label--color--title-primary:var(--color--title-primary, #2B3A54);--breadcrumb__item--label--color--active:var(--color--primary, '#008561');--breadcrumb__item--label--font-weight:var(--text-weight--large, 600);display:block;font-size:var(--text--medium, 14px);font-family:var(--font-pattern, \"Roboto\");font-weight:var(--text-weight--medium, 400)}.breadcrumb__group{display:flex}.breadcrumb__list{list-style-type:none;display:inline-block;margin:0;padding:0;overflow:hidden;white-space:nowrap}.breadcrumb__item{display:inline-flex;align-items:center;cursor:pointer}.breadcrumb__item--label{color:var(--breadcrumb__item--label--color--title-primary);margin:0px}.breadcrumb__item--icon{padding-right:3px;color:var(--breadcrumb__item--label--color--title-primary)}.breadcrumb__item--chevron{padding:0px 6px;cursor:default}.active{color:var(--breadcrumb__item--label--color--active);font-weight:var(--breadcrumb__item--label--font-weight);cursor:default}.active-icon{--icon--color:var(--breadcrumb__item--label--color--active);cursor:default}.breadcrumb__items{display:flex}";
|
|
33
|
+
const ezBreadcrumbCss = ":host{--breadcrumb__item--label--color--title-primary:var(--color--title-primary, #2B3A54);--breadcrumb__item--label--color--active:var(--color--primary, '#008561');--breadcrumb__item--label--font-weight:var(--text-weight--large, 600);display:block;font-size:var(--text--medium, 14px);font-family:var(--font-pattern, \"Roboto\");font-weight:var(--text-weight--medium, 400)}.breadcrumb{display:flex}.breadcrumb__group{display:flex}.breadcrumb__list{list-style-type:none;display:inline-block;margin:0;padding:0;overflow:hidden;white-space:nowrap}.breadcrumb__item{display:inline-flex;align-items:center;cursor:pointer}.breadcrumb__item--label{color:var(--breadcrumb__item--label--color--title-primary);margin:0px}.breadcrumb__item--icon{padding-right:3px;color:var(--breadcrumb__item--label--color--title-primary)}.breadcrumb__item--chevron{padding:0px 6px;cursor:default}.active{color:var(--breadcrumb__item--label--color--active);font-weight:var(--breadcrumb__item--label--font-weight);cursor:default}.active-icon{--icon--color:var(--breadcrumb__item--label--color--active);cursor:default}.breadcrumb__items{display:flex}";
|
|
45
34
|
|
|
46
35
|
const EzBreadcrumb = class {
|
|
47
36
|
constructor(hostRef) {
|
|
@@ -28,6 +28,7 @@ const EzFilterInput = class {
|
|
|
28
28
|
this.restrict = undefined;
|
|
29
29
|
this.mode = "regular";
|
|
30
30
|
this.asyncSearch = false;
|
|
31
|
+
this.canShowError = true;
|
|
31
32
|
}
|
|
32
33
|
observeLabel() {
|
|
33
34
|
if (this._textInput) {
|
|
@@ -105,7 +106,7 @@ const EzFilterInput = class {
|
|
|
105
106
|
}
|
|
106
107
|
render() {
|
|
107
108
|
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
108
|
-
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
109
|
+
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
109
110
|
}
|
|
110
111
|
get _elem() { return getElement(this); }
|
|
111
112
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-de655f48.js';
|
|
2
2
|
import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
|
-
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-account-outline:before{content:\"\\
|
|
4
|
+
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-actions-sprite-v1:before{content:\"\\ea06\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea07\"}.ez-icon-alert-circle:before{content:\"\\ea08\"}.ez-icon-alert-mail:before{content:\"\\ea09\"}.ez-icon-alert-popup:before{content:\"\\ea0a\"}.ez-icon-anexo:before{content:\"\\ea0b\"}.ez-icon-antecipação:before{content:\"\\ea0c\"}.ez-icon-apps:before{content:\"\\ea0d\"}.ez-icon-arrow_back:before{content:\"\\ea0e\"}.ez-icon-arrow_downward:before{content:\"\\ea0f\"}.ez-icon-baixa:before{content:\"\\ea10\"}.ez-icon-balance:before{content:\"\\ea11\"}.ez-icon-bell-inverted:before{content:\"\\ea12\"}.ez-icon-bell:before{content:\"\\ea13\"}.ez-icon-boleto:before{content:\"\\ea14\"}.ez-icon-boolean:before{content:\"\\ea15\"}.ez-icon-business-center:before{content:\"\\ea16\"}.ez-icon-calendar-clock:before{content:\"\\ea17\"}.ez-icon-calendar:before{content:\"\\ea18\"}.ez-icon-cash-remove:before{content:\"\\ea19\"}.ez-icon-check-circle-inverted:before{content:\"\\ea1a\"}.ez-icon-check-circle:before{content:\"\\ea1b\"}.ez-icon-check:before{content:\"\\ea1c\"}.ez-icon-chevron-down:before{content:\"\\ea1d\"}.ez-icon-chevron-left:before{content:\"\\ea1e\"}.ez-icon-chevron-right:before{content:\"\\ea1f\"}.ez-icon-chevron-up:before{content:\"\\ea20\"}.ez-icon-circle--medium:before{content:\"\\ea21\"}.ez-icon-circle:before{content:\"\\ea22\"}.ez-icon-cleaning:before{content:\"\\ea23\"}.ez-icon-clipboard:before{content:\"\\ea24\"}.ez-icon-close:before{content:\"\\ea25\"}.ez-icon-cobrar:before{content:\"\\ea26\"}.ez-icon-code:before{content:\"\\ea27\"}.ez-icon-configuration:before{content:\"\\ea28\"}.ez-icon-copy:before{content:\"\\ea29\"}.ez-icon-credit_card:before{content:\"\\ea2a\"}.ez-icon-crop:before{content:\"\\ea2b\"}.ez-icon-custom:before{content:\"\\ea2c\"}.ez-icon-delete:before{content:\"\\ea2d\"}.ez-icon-description:before{content:\"\\ea2e\"}.ez-icon-dividir:before{content:\"\\ea2f\"}.ez-icon-docx:before{content:\"\\ea30\"}.ez-icon-dot-notification:before{content:\"\\ea31\"}.ez-icon-dots-horizontal:before{content:\"\\ea32\"}.ez-icon-dots-vertical:before{content:\"\\ea33\"}.ez-icon-drag-indicator:before{content:\"\\ea34\"}.ez-icon-dual-chevron-down:before{content:\"\\ea35\"}.ez-icon-dual-chevron-up:before{content:\"\\ea36\"}.ez-icon-edit-file:before{content:\"\\ea37\"}.ez-icon-edit-table:before{content:\"\\ea38\"}.ez-icon-edit-time:before{content:\"\\ea39\"}.ez-icon-edit:before{content:\"\\ea3a\"}.ez-icon-email:before{content:\"\\ea3b\"}.ez-icon-estorno:before{content:\"\\ea3c\"}.ez-icon-exe:before{content:\"\\ea3d\"}.ez-icon-expand:before{content:\"\\ea3e\"}.ez-icon-expandir_card:before{content:\"\\ea3f\"}.ez-icon-extrato:before{content:\"\\ea40\"}.ez-icon-eye-off:before{content:\"\\ea41\"}.ez-icon-eye:before{content:\"\\ea42\"}.ez-icon-favorite:before{content:\"\\ea43\"}.ez-icon-figma:before{content:\"\\ea44\"}.ez-icon-file-download:before{content:\"\\ea45\"}.ez-icon-file-upload:before{content:\"\\ea46\"}.ez-icon-filter:before{content:\"\\ea47\"}.ez-icon-find-file:before{content:\"\\ea48\"}.ez-icon-find-page:before{content:\"\\ea49\"}.ez-icon-format-color-fill:before{content:\"\\ea4a\"}.ez-icon-generic:before{content:\"\\ea4b\"}.ez-icon-gif:before{content:\"\\ea4c\"}.ez-icon-graph_bar:before{content:\"\\ea4d\"}.ez-icon-handshake:before{content:\"\\ea4e\"}.ez-icon-help-inverted:before{content:\"\\ea4f\"}.ez-icon-help:before{content:\"\\ea50\"}.ez-icon-hide_menu:before{content:\"\\ea51\"}.ez-icon-home:before{content:\"\\ea52\"}.ez-icon-icons104:before{content:\"\\ea53\"}.ez-icon-language:before{content:\"\\ea54\"}.ez-icon-launch:before{content:\"\\ea55\"}.ez-icon-lightbulb:before{content:\"\\ea56\"}.ez-icon-list:before{content:\"\\ea57\"}.ez-icon-location:before{content:\"\\ea58\"}.ez-icon-lock-outline:before{content:\"\\ea59\"}.ez-icon-lock:before{content:\"\\ea5a\"}.ez-icon-menu:before{content:\"\\ea5b\"}.ez-icon-mid:before{content:\"\\ea5c\"}.ez-icon-minus:before{content:\"\\ea5d\"}.ez-icon-money-off:before{content:\"\\ea5e\"}.ez-icon-money:before{content:\"\\ea5f\"}.ez-icon-more:before{content:\"\\ea60\"}.ez-icon-mp3:before{content:\"\\ea61\"}.ez-icon-mp4:before{content:\"\\ea62\"}.ez-icon-north-west:before{content:\"\\ea63\"}.ez-icon-number:before{content:\"\\ea64\"}.ez-icon-ordem-ascendente:before{content:\"\\ea65\"}.ez-icon-ordem-descendente:before{content:\"\\ea66\"}.ez-icon-parcelar:before{content:\"\\ea67\"}.ez-icon-pause:before{content:\"\\ea68\"}.ez-icon-payments:before{content:\"\\ea69\"}.ez-icon-pdf:before{content:\"\\ea6a\"}.ez-icon-play:before{content:\"\\ea6b\"}.ez-icon-plus:before{content:\"\\ea6c\"}.ez-icon-png:before{content:\"\\ea6d\"}.ez-icon-power:before{content:\"\\ea6e\"}.ez-icon-pptx:before{content:\"\\ea6f\"}.ez-icon-print:before{content:\"\\ea70\"}.ez-icon-push-pin:before{content:\"\\ea71\"}.ez-icon-rateio:before{content:\"\\ea72\"}.ez-icon-receipt:before{content:\"\\ea73\"}.ez-icon-recolher_card:before{content:\"\\ea74\"}.ez-icon-restore:before{content:\"\\ea75\"}.ez-icon-return:before{content:\"\\ea76\"}.ez-icon-save:before{content:\"\\ea77\"}.ez-icon-search:before{content:\"\\ea78\"}.ez-icon-settings-inverted:before{content:\"\\ea79\"}.ez-icon-settings:before{content:\"\\ea7a\"}.ez-icon-share:before{content:\"\\ea7b\"}.ez-icon-shield:before{content:\"\\ea7c\"}.ez-icon-show_menu:before{content:\"\\ea7d\"}.ez-icon-south-east:before{content:\"\\ea7e\"}.ez-icon-sync:before{content:\"\\ea7f\"}.ez-icon-table:before{content:\"\\ea80\"}.ez-icon-tag_code:before{content:\"\\ea81\"}.ez-icon-text:before{content:\"\\ea82\"}.ez-icon-timeline:before{content:\"\\ea83\"}.ez-icon-timer-outline:before{content:\"\\ea84\"}.ez-icon-tune:before{content:\"\\ea85\"}.ez-icon-txt:before{content:\"\\ea86\"}.ez-icon-un-pin:before{content:\"\\ea87\"}.ez-icon-unfold_less:before{content:\"\\ea88\"}.ez-icon-unfold_more:before{content:\"\\ea89\"}.ez-icon-user-circle:before{content:\"\\ea8a\"}.ez-icon-warning-outline:before{content:\"\\ea8b\"}.ez-icon-warning_triangle:before{content:\"\\ea8c\"}.ez-icon-whatshot:before{content:\"\\ea8d\"}.ez-icon-xlsx:before{content:\"\\ea8e\"}.ez-icon-zip:before{content:\"\\ea8f\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
|
|
5
5
|
|
|
6
6
|
const EzIcon = class {
|
|
7
7
|
constructor(hostRef) {
|