@sankhyalabs/ezui 0.0.0-bugfix-dev-kb-74998.4 → 0.0.0-bugfix-dev-KB-75210.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_3.cjs.entry.js → ez-card-item_2.cjs.entry.js} +0 -123
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
- package/dist/cjs/ez-filter-input.cjs.entry.js +130 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +8 -2
- package/dist/cjs/ez-grid.cjs.entry.js +777 -109
- package/dist/cjs/ez-list.cjs.entry.js +253 -205
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +4 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +3 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +54 -2
- package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +2 -2
- package/dist/cjs/index-a7b0c73d.js +10 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
- package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
- package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +6 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +4 -0
- package/dist/collection/components/ez-grid/ez-grid.css +24 -6
- package/dist/collection/components/ez-grid/ez-grid.js +25 -5
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +1 -1
- package/dist/collection/components/ez-list/ez-list.js +296 -206
- package/dist/collection/components/ez-list/ezListHelper.js +85 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +2 -2
- package/dist/collection/components/ez-popup/ez-popup.css +1 -0
- package/dist/collection/components/ez-popup/ez-popup.js +5 -2
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +71 -1
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +13 -2
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +20 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +1481 -338
- package/dist/esm/{ez-card-item_3.entry.js → ez-card-item_2.entry.js} +1 -123
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-double-list.entry.js +283 -0
- package/dist/esm/ez-filter-input.entry.js +126 -0
- package/dist/esm/ez-form-view.entry.js +8 -2
- package/dist/esm/ez-grid.entry.js +778 -110
- package/dist/esm/ez-list.entry.js +253 -205
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +4 -1
- package/dist/esm/ez-split-item.entry.js +3 -2
- package/dist/esm/ez-split-panel.entry.js +54 -2
- package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +2 -2
- package/dist/esm/index-baa5e267.js +10 -2
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-16e612fc.entry.js +1 -0
- package/dist/ezui/p-17eabf46.entry.js +1 -0
- package/dist/ezui/p-2475fd6e.entry.js +1 -0
- package/dist/ezui/{p-baf80b13.entry.js → p-35d467a8.entry.js} +1 -1
- package/dist/ezui/p-5b205c80.entry.js +1 -0
- package/dist/ezui/p-65f471bc.entry.js +1 -0
- package/dist/ezui/p-66924de6.entry.js +1 -0
- package/dist/ezui/p-7e677b7b.entry.js +1 -0
- package/dist/ezui/p-80dfc50b.js +1 -0
- package/dist/ezui/{p-b36542d8.entry.js → p-a6fe527a.entry.js} +1 -1
- package/dist/ezui/p-b46e9f59.entry.js +309 -0
- package/dist/ezui/p-e3e3fd7a.entry.js +1 -0
- package/dist/ezui/{p-2b46b37b.entry.js → p-fa6732f2.entry.js} +1 -1
- package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
- package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +4 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +5 -1
- package/dist/types/components/ez-list/ez-list.d.ts +23 -2
- package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +1 -1
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +7 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +4 -0
- package/dist/types/components.d.ts +133 -13
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-4575d511.entry.js +0 -1
- package/dist/ezui/p-90bcd2ba.entry.js +0 -1
- package/dist/ezui/p-bfad39eb.entry.js +0 -1
- package/dist/ezui/p-c806f32f.entry.js +0 -1
- package/dist/ezui/p-ca1ce49f.entry.js +0 -309
- package/dist/ezui/p-cd2e78f0.entry.js +0 -1
- package/dist/ezui/p-e78e0843.entry.js +0 -1
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
|
|
8
7
|
|
|
9
8
|
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--medium);\n padding-bottom: 0px;\n padding-right: 0px;\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}";
|
|
10
9
|
|
|
@@ -60,127 +59,6 @@ const EzCardItem = class {
|
|
|
60
59
|
};
|
|
61
60
|
EzCardItem.style = ezCardItemCss;
|
|
62
61
|
|
|
63
|
-
const ezFilterInputCss = ":host{display:block;width:100%}";
|
|
64
|
-
|
|
65
|
-
const EzFilterInput = class {
|
|
66
|
-
constructor(hostRef) {
|
|
67
|
-
index.registerInstance(this, hostRef);
|
|
68
|
-
this.ezChange = index.createEvent(this, "ezChange", 7);
|
|
69
|
-
this.ezSearching = index.createEvent(this, "ezSearching", 7);
|
|
70
|
-
this.ezFocusIn = index.createEvent(this, "ezFocusIn", 7);
|
|
71
|
-
this._searchingText = "";
|
|
72
|
-
this.handleFocus = () => {
|
|
73
|
-
if (this._searchingText === "") {
|
|
74
|
-
this._textInput.value = "";
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
this._textInput.value = this._searchingText;
|
|
78
|
-
}
|
|
79
|
-
this.ezFocusIn.emit();
|
|
80
|
-
};
|
|
81
|
-
this.label = undefined;
|
|
82
|
-
this.value = undefined;
|
|
83
|
-
this.enabled = true;
|
|
84
|
-
this.errorMessage = undefined;
|
|
85
|
-
this.restrict = undefined;
|
|
86
|
-
this.mode = "regular";
|
|
87
|
-
this.asyncSearch = false;
|
|
88
|
-
this.canShowError = true;
|
|
89
|
-
this.autoFocus = false;
|
|
90
|
-
this.noMargin = false;
|
|
91
|
-
}
|
|
92
|
-
observeLabel() {
|
|
93
|
-
if (this._textInput) {
|
|
94
|
-
this._textInput.label = this.label;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
observeErrorMessage() {
|
|
98
|
-
if (this._textInput) {
|
|
99
|
-
this._textInput.errorMessage = this.errorMessage;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
observeValue(newValue, oldValue) {
|
|
103
|
-
if (this._textInput && newValue != oldValue) {
|
|
104
|
-
this._textInput.value = newValue;
|
|
105
|
-
this.ezChange.emit(newValue);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Aplica o foco no campo.
|
|
110
|
-
*/
|
|
111
|
-
async setFocus(options) {
|
|
112
|
-
this._textInput.setFocus(options);
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Remove o foco do campo.
|
|
116
|
-
*/
|
|
117
|
-
async setBlur() {
|
|
118
|
-
this._textInput.setBlur();
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Retorna se o conteúdo é inválido.
|
|
122
|
-
*/
|
|
123
|
-
async isInvalid() {
|
|
124
|
-
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Método responsável por setar um novo valor ao campo.
|
|
128
|
-
*/
|
|
129
|
-
async setValue(newValue) {
|
|
130
|
-
if (!this.asyncSearch || this._textInput == undefined) {
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
if (newValue !== this.value) {
|
|
134
|
-
this.value = newValue;
|
|
135
|
-
this._searchingText = "";
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
this._textInput.value = newValue;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Método responsável por resetar o valor do campo para o ultimo valor inputado.
|
|
143
|
-
*/
|
|
144
|
-
async endSearch() {
|
|
145
|
-
if (!this.asyncSearch || this._textInput == undefined) {
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
if (this._textInput.value !== this.value) {
|
|
149
|
-
this._textInput.value = this.value;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
handleChange(evt) {
|
|
153
|
-
const newValue = evt.detail;
|
|
154
|
-
this.errorMessage = "";
|
|
155
|
-
if (this.asyncSearch) {
|
|
156
|
-
this._searchingText = newValue;
|
|
157
|
-
this.ezSearching.emit(newValue);
|
|
158
|
-
}
|
|
159
|
-
else if (newValue !== this.value) {
|
|
160
|
-
this.value = newValue;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
componentDidLoad() {
|
|
164
|
-
CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
165
|
-
if (this.autoFocus) {
|
|
166
|
-
requestAnimationFrame(() => {
|
|
167
|
-
this.setFocus({ selectText: true });
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
render() {
|
|
172
|
-
core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
173
|
-
return (index.h("ez-text-input", { "data-element-id": core.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, noMargin: this.noMargin }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
174
|
-
}
|
|
175
|
-
get _elem() { return index.getElement(this); }
|
|
176
|
-
static get watchers() { return {
|
|
177
|
-
"label": ["observeLabel"],
|
|
178
|
-
"errorMessage": ["observeErrorMessage"],
|
|
179
|
-
"value": ["observeValue"]
|
|
180
|
-
}; }
|
|
181
|
-
};
|
|
182
|
-
EzFilterInput.style = ezFilterInputCss;
|
|
183
|
-
|
|
184
62
|
const multiSelectionBoxMessageCss = ".multi-selection__message{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;min-height:320px;text-align:center}.multi-selection__text-message{margin-top:-30px;font-family:var(--font-pattern);font-size:var(--text--meduim);padding:var(--space-xs);color:var(--text--primary)}";
|
|
185
63
|
|
|
186
64
|
const MultiSelectionBoxMessage = class {
|
|
@@ -195,5 +73,4 @@ const MultiSelectionBoxMessage = class {
|
|
|
195
73
|
MultiSelectionBoxMessage.style = multiSelectionBoxMessageCss;
|
|
196
74
|
|
|
197
75
|
exports.ez_card_item = EzCardItem;
|
|
198
|
-
exports.ez_filter_input = EzFilterInput;
|
|
199
76
|
exports.multi_selection_box_message = MultiSelectionBoxMessage;
|