@sankhyalabs/ezui 5.20.0-dev.3 → 5.20.0-dev.31

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.
Files changed (142) hide show
  1. package/README.md +4 -5
  2. package/dist/cjs/{CSSVarsUtils-b136a156.js → CSSVarsUtils-10c9d5b4.js} +13 -0
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +34 -29
  5. package/dist/cjs/ez-card-item_3.cjs.entry.js +6 -5
  6. package/dist/cjs/ez-combo-box.cjs.entry.js +9 -8
  7. package/dist/cjs/ez-date-input.cjs.entry.js +4 -1
  8. package/dist/cjs/ez-date-time-input.cjs.entry.js +4 -1
  9. package/dist/cjs/ez-form-view.cjs.entry.js +34 -15
  10. package/dist/cjs/ez-grid.cjs.entry.js +130 -36
  11. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -10
  13. package/dist/cjs/ez-number-input.cjs.entry.js +4 -1
  14. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-search.cjs.entry.js +7 -8
  16. package/dist/cjs/ez-split-button.cjs.entry.js +147 -0
  17. package/dist/cjs/ez-split-item.cjs.entry.js +20 -2
  18. package/dist/cjs/ez-split-panel.cjs.entry.js +51 -13
  19. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  20. package/dist/cjs/ezui.cjs.js +1 -1
  21. package/dist/cjs/filter-column.cjs.entry.js +16 -5
  22. package/dist/cjs/index-a7b0c73d.js +8 -4
  23. package/dist/cjs/loader.cjs.js +1 -1
  24. package/dist/collection/collection-manifest.json +2 -1
  25. package/dist/collection/components/ez-alert-list/ez-alert-list.css +1 -1
  26. package/dist/collection/components/ez-alert-list/ez-alert-list.js +33 -28
  27. package/dist/collection/components/ez-card-item/ez-card-item.css +39 -6
  28. package/dist/collection/components/ez-card-item/ez-card-item.js +22 -3
  29. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
  30. package/dist/collection/components/ez-combo-box/ez-combo-box.js +8 -7
  31. package/dist/collection/components/ez-date-input/ez-date-input.js +3 -0
  32. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +3 -0
  33. package/dist/collection/components/ez-form-view/ez-form-view.css +17 -1
  34. package/dist/collection/components/ez-form-view/ez-form-view.js +22 -5
  35. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  36. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  37. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
  38. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +4 -2
  39. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  40. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  41. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
  42. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +33 -17
  43. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +14 -1
  44. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +21 -0
  45. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
  46. package/dist/collection/components/ez-grid/ez-grid.css +25 -1
  47. package/dist/collection/components/ez-grid/ez-grid.js +67 -10
  48. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
  49. package/dist/collection/components/ez-icon/ez-icon.css +119 -117
  50. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +2 -10
  51. package/dist/collection/components/ez-number-input/ez-number-input.js +3 -0
  52. package/dist/collection/components/ez-popup/ez-popup.css +2 -5
  53. package/dist/collection/components/ez-search/ez-search.css +2 -1
  54. package/dist/collection/components/ez-search/ez-search.js +5 -6
  55. package/dist/collection/components/ez-split-button/ez-split-button.css +229 -0
  56. package/dist/collection/components/ez-split-button/ez-split-button.js +436 -0
  57. package/dist/collection/components/ez-split-button/test/dropdownItems.js +42 -0
  58. package/dist/collection/components/ez-split-panel/ez-split-panel.css +6 -7
  59. package/dist/collection/components/ez-split-panel/ez-split-panel.js +87 -15
  60. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +62 -12
  61. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +82 -2
  62. package/dist/collection/utils/CSSVarsUtils.js +13 -0
  63. package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
  64. package/dist/custom-elements/index.d.ts +6 -0
  65. package/dist/custom-elements/index.js +471 -133
  66. package/dist/esm/{CSSVarsUtils-a97cfa29.js → CSSVarsUtils-71ce76be.js} +13 -0
  67. package/dist/esm/ez-actions-button.entry.js +1 -1
  68. package/dist/esm/ez-alert-list.entry.js +34 -29
  69. package/dist/esm/ez-card-item_3.entry.js +6 -5
  70. package/dist/esm/ez-combo-box.entry.js +9 -8
  71. package/dist/esm/ez-date-input.entry.js +4 -1
  72. package/dist/esm/ez-date-time-input.entry.js +4 -1
  73. package/dist/esm/ez-form-view.entry.js +35 -16
  74. package/dist/esm/ez-grid.entry.js +131 -37
  75. package/dist/esm/ez-icon.entry.js +1 -1
  76. package/dist/esm/ez-multi-selection-list.entry.js +2 -10
  77. package/dist/esm/ez-number-input.entry.js +4 -1
  78. package/dist/esm/ez-popup.entry.js +1 -1
  79. package/dist/esm/ez-search.entry.js +7 -8
  80. package/dist/esm/ez-split-button.entry.js +143 -0
  81. package/dist/esm/ez-split-item.entry.js +20 -2
  82. package/dist/esm/ez-split-panel.entry.js +51 -13
  83. package/dist/esm/ez-time-input.entry.js +1 -1
  84. package/dist/esm/ezui.js +1 -1
  85. package/dist/esm/filter-column.entry.js +16 -5
  86. package/dist/esm/index-baa5e267.js +8 -4
  87. package/dist/esm/loader.js +1 -1
  88. package/dist/ezui/ezui.esm.js +1 -1
  89. package/dist/ezui/{p-6e2f8e6b.entry.js → p-1e367a93.entry.js} +2 -2
  90. package/dist/ezui/p-2eb8f73b.entry.js +1 -0
  91. package/dist/ezui/p-3376ad44.entry.js +1 -0
  92. package/dist/ezui/{p-40f72de4.entry.js → p-784fe207.entry.js} +1 -1
  93. package/dist/ezui/p-7af81663.entry.js +1 -0
  94. package/dist/ezui/p-7bc07c31.entry.js +1 -0
  95. package/dist/ezui/p-8e7031a0.entry.js +1 -0
  96. package/dist/ezui/{p-eb36f072.entry.js → p-99ead599.entry.js} +1 -1
  97. package/dist/ezui/{p-7eb3e1a5.js → p-9e11fc7b.js} +1 -1
  98. package/dist/ezui/p-9f1e89c9.entry.js +1 -0
  99. package/dist/ezui/{p-51c5e071.entry.js → p-abc23d6f.entry.js} +1 -1
  100. package/dist/ezui/p-af95cd16.entry.js +1 -0
  101. package/dist/ezui/{p-c0f1715f.entry.js → p-b567fa8c.entry.js} +1 -1
  102. package/dist/ezui/p-b9fbf4e7.entry.js +1 -0
  103. package/dist/ezui/p-bae3d0aa.entry.js +1 -0
  104. package/dist/ezui/p-baf80b13.entry.js +1 -0
  105. package/dist/ezui/{p-f56dd1da.entry.js → p-d7d7423a.entry.js} +1 -1
  106. package/dist/ezui/p-db77a984.entry.js +1 -0
  107. package/dist/ezui/{p-9cad9b6e.entry.js → p-e85c48d7.entry.js} +1 -1
  108. package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +1 -1
  109. package/dist/types/components/ez-card-item/ez-card-item.d.ts +4 -0
  110. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
  111. package/dist/types/components/ez-form-view/ez-form-view.d.ts +3 -0
  112. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +1 -0
  113. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
  114. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
  115. package/dist/types/components/ez-grid/controller/ag-grid/DataSourceInterceptor.d.ts +8 -0
  116. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  117. package/dist/types/components/ez-grid/ez-grid.d.ts +15 -2
  118. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +4 -1
  119. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +0 -1
  120. package/dist/types/components/ez-split-button/ez-split-button.d.ts +89 -0
  121. package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +2 -0
  122. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +28 -0
  123. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +27 -0
  124. package/dist/types/components.d.ts +156 -0
  125. package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
  126. package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
  127. package/package.json +13 -5
  128. package/react/components.d.ts +1 -0
  129. package/react/components.js +1 -0
  130. package/react/components.js.map +1 -1
  131. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
  132. package/dist/ezui/p-133fae4a.entry.js +0 -1
  133. package/dist/ezui/p-24d3fede.entry.js +0 -1
  134. package/dist/ezui/p-43b03119.entry.js +0 -1
  135. package/dist/ezui/p-4a7f113d.entry.js +0 -1
  136. package/dist/ezui/p-596634e9.entry.js +0 -1
  137. package/dist/ezui/p-76ba9d67.entry.js +0 -1
  138. package/dist/ezui/p-796c1a88.entry.js +0 -1
  139. package/dist/ezui/p-af15c277.entry.js +0 -1
  140. package/dist/ezui/p-ba875f37.entry.js +0 -1
  141. package/dist/ezui/p-d6ffe679.entry.js +0 -1
  142. package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
@@ -1,8 +1,7 @@
1
- :host {
1
+ :host {
2
+ }
2
3
 
3
- }
4
-
5
- .ez-split-gutter {
6
- cursor: grab;
7
- background-color: transparent;
8
- }
4
+ .ez-split-gutter {
5
+ cursor: grab;
6
+ background-color: transparent;
7
+ }
@@ -1,14 +1,27 @@
1
- import { h, Host } from "@stencil/core";
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
+ this._buildInProgress = false;
7
8
  this.direction = 'column';
9
+ this.anchorToExpand = false;
8
10
  }
9
- componentDidLoad() {
11
+ rebuildLayout() {
12
+ Array.from(this._element.querySelectorAll(".ez-split-gutter")).reverse().forEach(el => {
13
+ el.remove();
14
+ });
15
+ Array.from(this._element.getElementsByTagName("EzSplitPanel")).reverse().forEach(el => {
16
+ el['rebuildLayout']();
17
+ });
18
+ this.buildItems();
19
+ this.initSplit();
20
+ }
21
+ buildItems() {
10
22
  this._panelID = StringUtils.generateUUID();
11
23
  this._element.dataset.panelId = this._panelID;
24
+ this._element.dataset.uniqueId = "EzSplitPanel";
12
25
  let itemsElements = Array.from(this._element.children);
13
26
  this._items = itemsElements.filter(child => { var _a; return ((_a = child.tagName) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === 'EZ-SPLIT-ITEM'; });
14
27
  let trackCount = 1;
@@ -19,7 +32,30 @@ export class SplitPanel {
19
32
  }
20
33
  trackCount += 2;
21
34
  });
35
+ }
36
+ componentDidLoad() {
37
+ this.buildItems();
22
38
  this.initSplit();
39
+ this._mutationObserver = new MutationObserver((mutationsList) => {
40
+ for (const mutation of mutationsList) {
41
+ if (mutation.type === 'childList' && this._buildInProgress === false) {
42
+ this._buildInProgress = true;
43
+ window.requestAnimationFrame(() => {
44
+ this.rebuildLayout();
45
+ });
46
+ window.requestAnimationFrame(() => this._buildInProgress = false);
47
+ break;
48
+ }
49
+ }
50
+ });
51
+ // Configure o observer para observar mudanças nos filhos
52
+ this._mutationObserver.observe(this._element, { childList: true, subtree: false });
53
+ }
54
+ disconnectedCallback() {
55
+ //disconect o _mutationObserver
56
+ if (this._mutationObserver != undefined) {
57
+ this._mutationObserver.disconnect();
58
+ }
23
59
  }
24
60
  initSplit() {
25
61
  if (!this._items.length) {
@@ -31,7 +67,7 @@ export class SplitPanel {
31
67
  getGutters() {
32
68
  const gutters = {
33
69
  columnGutters: [],
34
- rowGutters: []
70
+ rowGutters: [],
35
71
  };
36
72
  if (!this._items.length) {
37
73
  return gutters;
@@ -41,19 +77,19 @@ export class SplitPanel {
41
77
  if (index == this._items.length - 1)
42
78
  return;
43
79
  let gutterTrack = item.dataset.trackNumber;
44
- if (index === (this._items.length - 1)) {
80
+ if (index === this._items.length - 1) {
45
81
  gutterTrack = this._items.length.toString();
46
82
  }
47
83
  gutters[proToChange].push({
48
84
  track: Number(gutterTrack),
49
- element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`)
85
+ element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`),
50
86
  });
51
87
  });
52
88
  return gutters;
53
89
  }
54
90
  addItemGutter(item) {
55
91
  const gutter = document.createElement('div');
56
- gutter.classList.add("ez-split-gutter");
92
+ gutter.classList.add('ez-split-gutter');
57
93
  gutter.classList.add(this.direction);
58
94
  gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
59
95
  gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
@@ -61,29 +97,31 @@ export class SplitPanel {
61
97
  }
62
98
  getElementStyle() {
63
99
  const style = {
64
- 'display': "grid",
65
- 'height': '100%',
66
- 'width': '100%'
100
+ display: 'grid',
101
+ height: '100%',
102
+ width: '100%',
103
+ position: this.anchorToExpand ? 'relative' : 'unset',
67
104
  };
68
105
  return style;
69
106
  }
70
107
  getGridTemplate() {
71
108
  let template = '';
72
- this._items.forEach((_col, index) => {
109
+ this._items.forEach((col, index) => {
110
+ const size = col.size || '1fr';
73
111
  if (index === this._items.length - 1) {
74
- template += ` 1fr`;
112
+ template += ` ${size}`;
75
113
  return;
76
114
  }
77
115
  if (index === 0) {
78
- template += `1fr 5px`;
116
+ template += `${size} 5px`;
79
117
  return;
80
118
  }
81
- template += ` 1fr 5px`;
119
+ template += ` ${size} 5px`;
82
120
  });
83
121
  return template;
84
122
  }
85
123
  render() {
86
- return (h(Host, { style: this.getElementStyle() }));
124
+ return h(Host, { style: this.getElementStyle() });
87
125
  }
88
126
  static get is() { return "ez-split-panel"; }
89
127
  static get originalStyleUrls() {
@@ -115,6 +153,40 @@ export class SplitPanel {
115
153
  "attribute": "direction",
116
154
  "reflect": false,
117
155
  "defaultValue": "'column'"
156
+ },
157
+ "anchorToExpand": {
158
+ "type": "boolean",
159
+ "mutable": false,
160
+ "complexType": {
161
+ "original": "boolean",
162
+ "resolved": "boolean",
163
+ "references": {}
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": "Respons\u00E1vel por definir o painel que limita o tamanho do item expandido."
170
+ },
171
+ "attribute": "anchor-to-expand",
172
+ "reflect": false,
173
+ "defaultValue": "false"
174
+ }
175
+ };
176
+ }
177
+ static get methods() {
178
+ return {
179
+ "rebuildLayout": {
180
+ "complexType": {
181
+ "signature": "() => Promise<void>",
182
+ "parameters": [],
183
+ "references": {},
184
+ "return": "Promise<void>"
185
+ },
186
+ "docs": {
187
+ "text": "",
188
+ "tags": []
189
+ }
118
190
  }
119
191
  };
120
192
  }
@@ -1,12 +1,62 @@
1
- :host {
2
-
3
- }
4
-
5
- .box_split-item {
6
- background-color: var(--background--xlight);
7
- padding: var(--space--nano);
8
- width: 100%;
9
- height: 100%;
10
- border-radius: var(--border--radius-medium);
11
- box-shadow: var(--shadow);
12
- }
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
+
8
+ .box_split-item {
9
+ background-color: var(--background--xlight);
10
+ width: 100%;
11
+ height: 100%;
12
+ border-radius: var(--border--radius-medium);
13
+ box-shadow: var(--shadow);
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 {
21
+ overflow: auto;
22
+ }
23
+
24
+ .expanded__item {
25
+ position: absolute;
26
+ z-index: var(--more-visible);
27
+ top: 0;
28
+ left: 0;
29
+ width: 100%;
30
+ height: 100%;
31
+ }
32
+
33
+ .ez-split-item--header {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: space-between;
37
+ }
38
+
39
+ .ez-split-item--header-title {
40
+ flex: 1;
41
+ white-space: nowrap;
42
+ overflow: hidden;
43
+ }
44
+
45
+ .ez-split-item--header-title h3 {
46
+ white-space: nowrap;
47
+ overflow: hidden;
48
+ text-overflow: ellipsis;
49
+ display: block;
50
+ }
51
+
52
+ .ez-split-item--header-buttons {
53
+ display: flex;
54
+ align-items: center;
55
+ }
56
+
57
+ .ez-split-item--content {
58
+ display: block;
59
+ height: 100%;
60
+ }
61
+
62
+
@@ -1,7 +1,23 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { Host, h } from '@stencil/core';
2
+ import { CSSVarsUtils } from '../../../../utils';
2
3
  export class SplitItem {
4
+ constructor() {
5
+ this.label = undefined;
6
+ this.enableExpand = true;
7
+ this._expanded = false;
8
+ this.size = undefined;
9
+ }
10
+ /**
11
+ * Alterna a visibilidade do painel.
12
+ */
13
+ toggleExpandItem() {
14
+ this._expanded = !this._expanded;
15
+ }
16
+ componentDidLoad() {
17
+ CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
18
+ }
3
19
  render() {
4
- return (h(Host, { class: 'box_split-item' }));
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("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-margin--small ez-title ez-title--small", title: this.label }, 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))));
5
21
  }
6
22
  static get is() { return "ez-split-item"; }
7
23
  static get originalStyleUrls() {
@@ -14,4 +30,68 @@ export class SplitItem {
14
30
  "$": ["ez-split-item.css"]
15
31
  };
16
32
  }
33
+ static get properties() {
34
+ return {
35
+ "label": {
36
+ "type": "string",
37
+ "mutable": false,
38
+ "complexType": {
39
+ "original": "string",
40
+ "resolved": "string",
41
+ "references": {}
42
+ },
43
+ "required": false,
44
+ "optional": false,
45
+ "docs": {
46
+ "tags": [],
47
+ "text": "Define um t\u00EDtulo para o painel."
48
+ },
49
+ "attribute": "label",
50
+ "reflect": false
51
+ },
52
+ "enableExpand": {
53
+ "type": "boolean",
54
+ "mutable": false,
55
+ "complexType": {
56
+ "original": "boolean",
57
+ "resolved": "boolean",
58
+ "references": {}
59
+ },
60
+ "required": false,
61
+ "optional": false,
62
+ "docs": {
63
+ "tags": [],
64
+ "text": "Define se o item pode ser expandido"
65
+ },
66
+ "attribute": "enable-expand",
67
+ "reflect": true,
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
89
+ }
90
+ };
91
+ }
92
+ static get states() {
93
+ return {
94
+ "_expanded": {}
95
+ };
96
+ }
17
97
  }
@@ -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) {
@@ -0,0 +1,9 @@
1
+ import { DataUnit } from "@sankhyalabs/core";
2
+ import DataBinder from "../DataBinder";
3
+ describe('DataBinder', () => {
4
+ it('constructor', async () => {
5
+ const du = new DataUnit();
6
+ const db = new DataBinder(du);
7
+ expect(db).toBeTruthy();
8
+ });
9
+ });
@@ -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;