@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-9999.0 → 0.0.0-bugfix-dev-KB-46291.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/{CSSVarsUtils-b136a156.js → CSSVarsUtils-10c9d5b4.js} +13 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +6 -5
- package/dist/cjs/ez-combo-box.cjs.entry.js +7 -6
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +30 -13
- package/dist/cjs/ez-grid.cjs.entry.js +90 -10
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -10
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +4 -5
- package/dist/cjs/ez-split-button.cjs.entry.js +147 -0
- package/dist/cjs/ez-split-item.cjs.entry.js +11 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +6 -5
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- 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/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-alert-list/ez-alert-list.css +1 -1
- package/dist/collection/components/ez-card-item/ez-card-item.css +19 -5
- package/dist/collection/components/ez-card-item/ez-card-item.js +22 -3
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +6 -5
- package/dist/collection/components/ez-form-view/ez-form-view.css +17 -1
- package/dist/collection/components/ez-form-view/ez-form-view.js +22 -5
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +5 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +2 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +21 -0
- package/dist/collection/components/ez-grid/ez-grid.css +25 -2
- package/dist/collection/components/ez-grid/ez-grid.js +65 -8
- package/dist/collection/components/ez-icon/ez-icon.css +118 -116
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +2 -10
- package/dist/collection/components/ez-popup/ez-popup.css +2 -4
- package/dist/collection/components/ez-search/ez-search.js +3 -4
- package/dist/collection/components/ez-split-button/ez-split-button.css +229 -0
- package/dist/collection/components/ez-split-button/ez-split-button.js +436 -0
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +42 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +0 -1
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +5 -4
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +15 -4
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +27 -2
- package/dist/collection/utils/CSSVarsUtils.js +13 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +309 -58
- package/dist/esm/{CSSVarsUtils-a97cfa29.js → CSSVarsUtils-71ce76be.js} +13 -0
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +6 -5
- package/dist/esm/ez-combo-box.entry.js +7 -6
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +31 -14
- package/dist/esm/ez-grid.entry.js +91 -11
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +2 -10
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +4 -5
- package/dist/esm/ez-split-button.entry.js +143 -0
- package/dist/esm/ez-split-item.entry.js +12 -3
- package/dist/esm/ez-split-panel.entry.js +6 -5
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +8 -4
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-300bf244.entry.js → p-07cbffce.entry.js} +1 -1
- package/dist/ezui/p-248319e4.entry.js +1 -0
- package/dist/ezui/p-2eb8f73b.entry.js +1 -0
- package/dist/ezui/{p-40f72de4.entry.js → p-784fe207.entry.js} +1 -1
- package/dist/ezui/p-7af81663.entry.js +1 -0
- package/dist/ezui/p-7bc07c31.entry.js +1 -0
- package/dist/ezui/p-801fd0f8.entry.js +1 -0
- package/dist/ezui/{p-940ed30b.entry.js → p-8e7031a0.entry.js} +1 -1
- package/dist/ezui/{p-eb36f072.entry.js → p-99ead599.entry.js} +1 -1
- package/dist/ezui/{p-7eb3e1a5.js → p-9e11fc7b.js} +1 -1
- package/dist/ezui/{p-672dd122.entry.js → p-9f1e89c9.entry.js} +1 -1
- package/dist/ezui/{p-ab629244.entry.js → p-a332a654.entry.js} +2 -2
- package/dist/ezui/{p-02c8831a.entry.js → p-abc23d6f.entry.js} +1 -1
- package/dist/ezui/{p-50186acb.entry.js → p-af95cd16.entry.js} +1 -1
- package/dist/ezui/{p-18e7870d.entry.js → p-b567fa8c.entry.js} +1 -1
- package/dist/ezui/p-b9fbf4e7.entry.js +1 -0
- package/dist/ezui/p-db77a984.entry.js +1 -0
- package/dist/ezui/{p-9cad9b6e.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +4 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSourceInterceptor.d.ts +8 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +15 -2
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +0 -1
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +89 -0
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +2 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +10 -0
- package/dist/types/components.d.ts +131 -0
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
- package/package.json +3 -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-13dbad96.entry.js +0 -1
- package/dist/ezui/p-428a05fe.entry.js +0 -1
- package/dist/ezui/p-60848ef6.entry.js +0 -1
- package/dist/ezui/p-cd0499a2.entry.js +0 -1
- package/dist/ezui/p-e52cbcc7.entry.js +0 -1
- package/dist/ezui/p-e562d05e.entry.js +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const dropdownItems = [
|
|
2
|
+
{
|
|
3
|
+
id: "1",
|
|
4
|
+
label: "label1",
|
|
5
|
+
type: 'item',
|
|
6
|
+
iconName: "iconName1",
|
|
7
|
+
subAction: {
|
|
8
|
+
id: "1",
|
|
9
|
+
label: "subActionLabel1",
|
|
10
|
+
type: "primary"
|
|
11
|
+
},
|
|
12
|
+
group: "group"
|
|
13
|
+
}, {
|
|
14
|
+
id: "2",
|
|
15
|
+
label: "label2",
|
|
16
|
+
type: 'item',
|
|
17
|
+
iconName: "iconName2",
|
|
18
|
+
subAction: null,
|
|
19
|
+
group: null,
|
|
20
|
+
}, {
|
|
21
|
+
id: "3",
|
|
22
|
+
label: "label3",
|
|
23
|
+
type: 'item',
|
|
24
|
+
iconName: "iconName3",
|
|
25
|
+
subAction: null,
|
|
26
|
+
group: null,
|
|
27
|
+
}, {
|
|
28
|
+
id: "",
|
|
29
|
+
label: "",
|
|
30
|
+
type: 'divider',
|
|
31
|
+
iconName: "",
|
|
32
|
+
subAction: null,
|
|
33
|
+
group: null,
|
|
34
|
+
}, {
|
|
35
|
+
id: "4",
|
|
36
|
+
label: "label4",
|
|
37
|
+
type: 'item',
|
|
38
|
+
iconName: "iconName4",
|
|
39
|
+
subAction: null,
|
|
40
|
+
group: null,
|
|
41
|
+
}
|
|
42
|
+
];
|
|
@@ -71,16 +71,17 @@ export class SplitPanel {
|
|
|
71
71
|
}
|
|
72
72
|
getGridTemplate() {
|
|
73
73
|
let template = '';
|
|
74
|
-
this._items.forEach((
|
|
74
|
+
this._items.forEach((col, index) => {
|
|
75
|
+
const size = col.size || '1fr';
|
|
75
76
|
if (index === this._items.length - 1) {
|
|
76
|
-
template += `
|
|
77
|
+
template += ` ${size}`;
|
|
77
78
|
return;
|
|
78
79
|
}
|
|
79
80
|
if (index === 0) {
|
|
80
|
-
template +=
|
|
81
|
+
template += `${size} 5px`;
|
|
81
82
|
return;
|
|
82
83
|
}
|
|
83
|
-
template += `
|
|
84
|
+
template += ` ${size} 5px`;
|
|
84
85
|
});
|
|
85
86
|
return template;
|
|
86
87
|
}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
+
ez-split-item {
|
|
2
|
+
/*@doc Define altura mínima da snk-grid */
|
|
3
|
+
--snk-grid-min-height: 0;
|
|
4
|
+
/*@doc Define altura mínima da grid */
|
|
5
|
+
--ez-grid--min-height: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
1
8
|
.box_split-item {
|
|
2
9
|
background-color: var(--background--xlight);
|
|
3
|
-
padding: var(--space--nano);
|
|
4
10
|
width: 100%;
|
|
5
11
|
height: 100%;
|
|
6
12
|
border-radius: var(--border--radius-medium);
|
|
7
13
|
box-shadow: var(--shadow);
|
|
8
|
-
display: flex;
|
|
9
14
|
flex-direction: column;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
display: flex;
|
|
17
|
+
padding: var(--space--nano);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.box_split-item > .ez-split-item--content {
|
|
10
21
|
overflow: auto;
|
|
11
22
|
}
|
|
12
23
|
|
|
@@ -32,5 +43,5 @@
|
|
|
32
43
|
|
|
33
44
|
.ez-split-item--content {
|
|
34
45
|
display: block;
|
|
35
|
-
height:
|
|
36
|
-
}
|
|
46
|
+
height: 100%;
|
|
47
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { h } from '@stencil/core';
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
import { CSSVarsUtils } from '../../../../utils';
|
|
2
3
|
export class SplitItem {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.label = undefined;
|
|
5
6
|
this.enableExpand = true;
|
|
6
7
|
this._expanded = false;
|
|
8
|
+
this.size = undefined;
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* Alterna a visibilidade do painel.
|
|
@@ -11,8 +13,11 @@ export class SplitItem {
|
|
|
11
13
|
toggleExpandItem() {
|
|
12
14
|
this._expanded = !this._expanded;
|
|
13
15
|
}
|
|
16
|
+
componentDidLoad() {
|
|
17
|
+
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
18
|
+
}
|
|
14
19
|
render() {
|
|
15
|
-
return (h(
|
|
20
|
+
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content", ref: el => (this._slot = el) }, h("slot", null))));
|
|
16
21
|
}
|
|
17
22
|
static get is() { return "ez-split-item"; }
|
|
18
23
|
static get originalStyleUrls() {
|
|
@@ -61,6 +66,26 @@ export class SplitItem {
|
|
|
61
66
|
"attribute": "enable-expand",
|
|
62
67
|
"reflect": true,
|
|
63
68
|
"defaultValue": "true"
|
|
69
|
+
},
|
|
70
|
+
"size": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "string",
|
|
75
|
+
"resolved": "string",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": true,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [{
|
|
82
|
+
"name": "values",
|
|
83
|
+
"text": "'%', 'fr'"
|
|
84
|
+
}],
|
|
85
|
+
"text": "Define o tamanho inicial do painel."
|
|
86
|
+
},
|
|
87
|
+
"attribute": "size",
|
|
88
|
+
"reflect": false
|
|
64
89
|
}
|
|
65
90
|
};
|
|
66
91
|
}
|
|
@@ -64,6 +64,19 @@ export default class CSSVarsUtils {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
static applyVarsGrid(host, child) {
|
|
68
|
+
if (child) {
|
|
69
|
+
[
|
|
70
|
+
"--ez-grid--min-height",
|
|
71
|
+
"--snk-grid-min-height",
|
|
72
|
+
].forEach(prop => {
|
|
73
|
+
const propValue = getComputedStyle(host).getPropertyValue(prop);
|
|
74
|
+
if (propValue !== null && propValue !== undefined) {
|
|
75
|
+
child.style.setProperty(prop, propValue);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
67
80
|
static applyIfExists(host, element, varName) {
|
|
68
81
|
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
69
82
|
if (prop) {
|
|
@@ -224,6 +224,12 @@ export const EzSkeleton: {
|
|
|
224
224
|
new (): EzSkeleton;
|
|
225
225
|
};
|
|
226
226
|
|
|
227
|
+
interface EzSplitButton extends Components.EzSplitButton, HTMLElement {}
|
|
228
|
+
export const EzSplitButton: {
|
|
229
|
+
prototype: EzSplitButton;
|
|
230
|
+
new (): EzSplitButton;
|
|
231
|
+
};
|
|
232
|
+
|
|
227
233
|
interface EzSplitItem extends Components.EzSplitItem, HTMLElement {}
|
|
228
234
|
export const EzSplitItem: {
|
|
229
235
|
prototype: EzSplitItem;
|