@sankhyalabs/ezui 5.20.0-dev.1 → 5.20.0-dev.11
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/README.md +4 -5
- package/dist/cjs/ez-alert-list.cjs.entry.js +33 -28
- package/dist/cjs/ez-card-item_3.cjs.entry.js +182 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +12 -156
- package/dist/cjs/ez-date-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +4 -2
- package/dist/cjs/ez-grid.cjs.entry.js +27 -21
- 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 +3 -0
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +611 -31
- package/dist/cjs/ez-split-button.cjs.entry.js +147 -0
- package/dist/cjs/ez-split-item.cjs.entry.js +12 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +15 -12
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +16 -5
- package/dist/cjs/index-a7b0c73d.js +10 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +33 -28
- package/dist/collection/components/ez-card-item/ez-card-item.css +35 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +13 -174
- package/dist/collection/components/ez-date-input/ez-date-input.js +3 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +3 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +4 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +11 -10
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +15 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
- package/dist/collection/components/ez-grid/ez-grid.css +1 -0
- package/dist/collection/components/ez-grid/ez-grid.js +2 -2
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
- package/dist/collection/components/ez-icon/ez-icon.css +1 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +2 -10
- package/dist/collection/components/ez-number-input/ez-number-input.js +3 -0
- package/dist/collection/components/ez-popup/ez-popup.css +0 -1
- package/dist/collection/components/ez-search/ez-search.css +331 -0
- package/dist/collection/components/ez-search/ez-search.js +689 -55
- 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 +6 -7
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +35 -14
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +40 -12
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +78 -2
- package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +895 -281
- package/dist/esm/ez-alert-list.entry.js +33 -28
- package/dist/esm/ez-card-item_3.entry.js +176 -0
- package/dist/esm/ez-combo-box.entry.js +13 -157
- package/dist/esm/ez-date-input.entry.js +3 -0
- package/dist/esm/ez-date-time-input.entry.js +3 -0
- package/dist/esm/ez-form-view.entry.js +4 -2
- package/dist/esm/ez-grid.entry.js +27 -21
- 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 +3 -0
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +613 -33
- package/dist/esm/ez-split-button.entry.js +143 -0
- package/dist/esm/ez-split-item.entry.js +12 -2
- package/dist/esm/ez-split-panel.entry.js +15 -12
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +16 -5
- package/dist/esm/index-baa5e267.js +10 -10
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-51c5e071.entry.js → p-02c8831a.entry.js} +1 -1
- package/dist/ezui/{p-f56dd1da.entry.js → p-07cbffce.entry.js} +1 -1
- package/dist/ezui/p-13dbad96.entry.js +1 -0
- package/dist/ezui/{p-c0f1715f.entry.js → p-18e7870d.entry.js} +1 -1
- package/dist/ezui/p-25ed09c6.entry.js +1 -0
- package/dist/ezui/p-428a05fe.entry.js +1 -0
- package/dist/ezui/p-50186acb.entry.js +1 -0
- package/dist/ezui/p-60848ef6.entry.js +1 -0
- package/dist/ezui/{p-6e2f8e6b.entry.js → p-661f6820.entry.js} +1 -1
- package/dist/ezui/p-672dd122.entry.js +1 -0
- package/dist/ezui/{p-40f72de4.entry.js → p-784fe207.entry.js} +1 -1
- package/dist/ezui/p-940ed30b.entry.js +1 -0
- package/dist/ezui/p-b9fbf4e7.entry.js +1 -0
- package/dist/ezui/p-baf80b13.entry.js +1 -0
- package/dist/ezui/p-e52cbcc7.entry.js +1 -0
- package/dist/ezui/p-e562d05e.entry.js +1 -0
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +1 -1
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -15
- 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/DataSource.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +4 -1
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +0 -1
- package/dist/types/components/ez-search/ez-search.d.ts +100 -10
- 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/ez-split-panel.d.ts +23 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +22 -0
- package/dist/types/components.d.ts +170 -14
- package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
- package/package.json +12 -4
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-card-item.cjs.entry.js +0 -52
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +0 -137
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
- package/dist/esm/ez-card-item.entry.js +0 -48
- package/dist/esm/ez-filter-input_2.entry.js +0 -132
- package/dist/ezui/p-05f5a778.entry.js +0 -1
- package/dist/ezui/p-24d3fede.entry.js +0 -1
- package/dist/ezui/p-4a7f113d.entry.js +0 -1
- package/dist/ezui/p-5613fe63.entry.js +0 -1
- package/dist/ezui/p-596634e9.entry.js +0 -1
- package/dist/ezui/p-76ba9d67.entry.js +0 -1
- package/dist/ezui/p-796c1a88.entry.js +0 -1
- package/dist/ezui/p-a32aaac6.entry.js +0 -1
- package/dist/ezui/p-a5ac7151.entry.js +0 -1
- package/dist/ezui/p-af15c277.entry.js +0 -1
- package/dist/ezui/p-d6ffe679.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StringUtils } from '@sankhyalabs/core';
|
|
2
|
+
import { Host, h } from '@stencil/core';
|
|
2
3
|
import Split from 'split-grid';
|
|
3
|
-
import { StringUtils } from "@sankhyalabs/core";
|
|
4
4
|
export class SplitPanel {
|
|
5
5
|
constructor() {
|
|
6
6
|
this._items = [];
|
|
7
7
|
this.direction = 'column';
|
|
8
|
+
this.anchorToExpand = false;
|
|
8
9
|
}
|
|
9
10
|
componentDidLoad() {
|
|
10
11
|
this._panelID = StringUtils.generateUUID();
|
|
@@ -31,7 +32,7 @@ export class SplitPanel {
|
|
|
31
32
|
getGutters() {
|
|
32
33
|
const gutters = {
|
|
33
34
|
columnGutters: [],
|
|
34
|
-
rowGutters: []
|
|
35
|
+
rowGutters: [],
|
|
35
36
|
};
|
|
36
37
|
if (!this._items.length) {
|
|
37
38
|
return gutters;
|
|
@@ -41,19 +42,19 @@ export class SplitPanel {
|
|
|
41
42
|
if (index == this._items.length - 1)
|
|
42
43
|
return;
|
|
43
44
|
let gutterTrack = item.dataset.trackNumber;
|
|
44
|
-
if (index ===
|
|
45
|
+
if (index === this._items.length - 1) {
|
|
45
46
|
gutterTrack = this._items.length.toString();
|
|
46
47
|
}
|
|
47
48
|
gutters[proToChange].push({
|
|
48
49
|
track: Number(gutterTrack),
|
|
49
|
-
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`)
|
|
50
|
+
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`),
|
|
50
51
|
});
|
|
51
52
|
});
|
|
52
53
|
return gutters;
|
|
53
54
|
}
|
|
54
55
|
addItemGutter(item) {
|
|
55
56
|
const gutter = document.createElement('div');
|
|
56
|
-
gutter.classList.add(
|
|
57
|
+
gutter.classList.add('ez-split-gutter');
|
|
57
58
|
gutter.classList.add(this.direction);
|
|
58
59
|
gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
|
|
59
60
|
gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
|
|
@@ -61,29 +62,31 @@ export class SplitPanel {
|
|
|
61
62
|
}
|
|
62
63
|
getElementStyle() {
|
|
63
64
|
const style = {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
display: 'grid',
|
|
66
|
+
height: '100%',
|
|
67
|
+
width: '100%',
|
|
68
|
+
position: this.anchorToExpand ? 'relative' : 'unset',
|
|
67
69
|
};
|
|
68
70
|
return style;
|
|
69
71
|
}
|
|
70
72
|
getGridTemplate() {
|
|
71
73
|
let template = '';
|
|
72
|
-
this._items.forEach((
|
|
74
|
+
this._items.forEach((col, index) => {
|
|
75
|
+
const size = col.size || '1fr';
|
|
73
76
|
if (index === this._items.length - 1) {
|
|
74
|
-
template += `
|
|
77
|
+
template += ` ${size}`;
|
|
75
78
|
return;
|
|
76
79
|
}
|
|
77
80
|
if (index === 0) {
|
|
78
|
-
template +=
|
|
81
|
+
template += `${size} 5px`;
|
|
79
82
|
return;
|
|
80
83
|
}
|
|
81
|
-
template += `
|
|
84
|
+
template += ` ${size} 5px`;
|
|
82
85
|
});
|
|
83
86
|
return template;
|
|
84
87
|
}
|
|
85
88
|
render() {
|
|
86
|
-
return
|
|
89
|
+
return h(Host, { style: this.getElementStyle() });
|
|
87
90
|
}
|
|
88
91
|
static get is() { return "ez-split-panel"; }
|
|
89
92
|
static get originalStyleUrls() {
|
|
@@ -115,6 +118,24 @@ export class SplitPanel {
|
|
|
115
118
|
"attribute": "direction",
|
|
116
119
|
"reflect": false,
|
|
117
120
|
"defaultValue": "'column'"
|
|
121
|
+
},
|
|
122
|
+
"anchorToExpand": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "boolean",
|
|
127
|
+
"resolved": "boolean",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": "Respons\u00E1vel por definir o painel que limita o tamanho do item expandido."
|
|
135
|
+
},
|
|
136
|
+
"attribute": "anchor-to-expand",
|
|
137
|
+
"reflect": false,
|
|
138
|
+
"defaultValue": "false"
|
|
118
139
|
}
|
|
119
140
|
};
|
|
120
141
|
}
|
|
@@ -1,12 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
.box_split-item {
|
|
2
|
+
background-color: var(--background--xlight);
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
border-radius: var(--border--radius-medium);
|
|
6
|
+
box-shadow: var(--shadow);
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
display: flex;
|
|
10
|
+
padding: var(--space--nano);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.box_split-item > .ez-split-item--content {
|
|
14
|
+
overflow: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.expanded__item {
|
|
18
|
+
position: absolute;
|
|
19
|
+
z-index: var(--more-visible);
|
|
20
|
+
top: 0;
|
|
21
|
+
left: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ez-split-item--header {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ez-split-item--header-buttons {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ez-split-item--content {
|
|
38
|
+
display: block;
|
|
39
|
+
height: 100%;
|
|
40
|
+
}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class SplitItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.label = undefined;
|
|
5
|
+
this.enableExpand = true;
|
|
6
|
+
this._expanded = false;
|
|
7
|
+
this.size = undefined;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Alterna a visibilidade do painel.
|
|
11
|
+
*/
|
|
12
|
+
toggleExpandItem() {
|
|
13
|
+
this._expanded = !this._expanded;
|
|
14
|
+
}
|
|
3
15
|
render() {
|
|
4
|
-
return (h(Host, { class:
|
|
16
|
+
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: "medium", 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" }, h("slot", null))));
|
|
5
17
|
}
|
|
6
18
|
static get is() { return "ez-split-item"; }
|
|
7
19
|
static get originalStyleUrls() {
|
|
@@ -14,4 +26,68 @@ export class SplitItem {
|
|
|
14
26
|
"$": ["ez-split-item.css"]
|
|
15
27
|
};
|
|
16
28
|
}
|
|
29
|
+
static get properties() {
|
|
30
|
+
return {
|
|
31
|
+
"label": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "string",
|
|
36
|
+
"resolved": "string",
|
|
37
|
+
"references": {}
|
|
38
|
+
},
|
|
39
|
+
"required": false,
|
|
40
|
+
"optional": false,
|
|
41
|
+
"docs": {
|
|
42
|
+
"tags": [],
|
|
43
|
+
"text": "Define um t\u00EDtulo para o painel."
|
|
44
|
+
},
|
|
45
|
+
"attribute": "label",
|
|
46
|
+
"reflect": false
|
|
47
|
+
},
|
|
48
|
+
"enableExpand": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "boolean",
|
|
53
|
+
"resolved": "boolean",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": false,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": "Define se o item pode ser expandido"
|
|
61
|
+
},
|
|
62
|
+
"attribute": "enable-expand",
|
|
63
|
+
"reflect": true,
|
|
64
|
+
"defaultValue": "true"
|
|
65
|
+
},
|
|
66
|
+
"size": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "string",
|
|
71
|
+
"resolved": "string",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": true,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [{
|
|
78
|
+
"name": "values",
|
|
79
|
+
"text": "'%', 'fr'"
|
|
80
|
+
}],
|
|
81
|
+
"text": "Define o tamanho inicial do painel."
|
|
82
|
+
},
|
|
83
|
+
"attribute": "size",
|
|
84
|
+
"reflect": false
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
static get states() {
|
|
89
|
+
return {
|
|
90
|
+
"_expanded": {}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
17
93
|
}
|
|
@@ -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;
|