@xplortech/apollo-core 1.0.0-beta.7 → 1.0.0-beta.8
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/build/style.css +4 -55
- package/dist/apollo-core/apollo-core.css +5 -5
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-10f00380.entry.js +1 -0
- package/dist/apollo-core/p-26ec64fe.entry.js +1 -0
- package/dist/apollo-core/p-2f90296c.js +2 -2
- package/dist/apollo-core/p-31acfdb4.entry.js +1 -0
- package/dist/apollo-core/p-4184ac44.entry.js +1 -0
- package/dist/apollo-core/{p-dad11011.entry.js → p-4fa14839.entry.js} +1 -1
- package/dist/apollo-core/p-55b87345.js +2 -0
- package/dist/apollo-core/p-63a6c98a.entry.js +1 -0
- package/dist/apollo-core/p-68c33b77.entry.js +1 -0
- package/dist/apollo-core/{p-a7cc4114.entry.js → p-78d07caf.entry.js} +1 -1
- package/dist/apollo-core/p-796957d3.entry.js +1 -0
- package/dist/apollo-core/p-88160d68.entry.js +1 -0
- package/dist/apollo-core/p-9ec318bb.entry.js +1 -0
- package/dist/apollo-core/p-a2a34e44.entry.js +1 -0
- package/dist/apollo-core/p-beea2502.entry.js +1 -0
- package/dist/apollo-core/p-d499e43f.entry.js +1 -0
- package/dist/apollo-core/{p-c8af4ed6.entry.js → p-d8a3d94c.entry.js} +1 -1
- package/dist/apollo-core/p-e047b446.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +6 -2
- package/dist/cjs/{index-acf3dd7a.js → index-2ab4832e.js} +592 -215
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -13
- package/dist/cjs/xpl-avatar_12.cjs.entry.js +72 -38
- package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -5
- package/dist/cjs/xpl-button-row.cjs.entry.js +4 -1
- package/dist/cjs/xpl-choicelist.cjs.entry.js +8 -1
- package/dist/cjs/xpl-divider.cjs.entry.js +2 -1
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +7 -1
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js +8 -9
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/cjs/xpl-input.cjs.entry.js +615 -501
- package/dist/cjs/xpl-list.cjs.entry.js +1 -23
- package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -4
- package/dist/cjs/xpl-pagination.cjs.entry.js +5 -2
- package/dist/cjs/xpl-select.cjs.entry.js +7 -22
- package/dist/cjs/xpl-toggle.cjs.entry.js +7 -4
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +118 -132
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +150 -144
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +26 -28
- package/dist/collection/components/xpl-badge/xpl-badge.js +43 -39
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +2 -5
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +2 -5
- package/dist/collection/components/xpl-button/xpl-button.js +204 -205
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +105 -104
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +181 -171
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +133 -126
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +27 -31
- package/dist/collection/components/xpl-divider/xpl-divider.js +26 -23
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +46 -42
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +26 -22
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +60 -54
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +170 -167
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +75 -74
- package/dist/collection/components/xpl-input/xpl-input.js +404 -417
- package/dist/collection/components/xpl-list/xpl-list.js +42 -75
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +47 -54
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +47 -49
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +116 -128
- package/dist/collection/components/xpl-radio/xpl-radio.js +157 -148
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +2 -4
- package/dist/collection/components/xpl-select/xpl-select.js +212 -238
- package/dist/collection/components/xpl-table/xpl-table.js +168 -151
- package/dist/collection/components/xpl-tag/xpl-tag.js +24 -25
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +137 -135
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +73 -70
- package/dist/custom-elements/index.js +756 -641
- package/dist/esm/apollo-core.js +3 -2
- package/dist/esm/{index-e3c4bb97.js → index-392b5b96.js} +592 -216
- package/dist/esm/loader.js +3 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/xpl-application-shell.entry.js +2 -13
- package/dist/esm/xpl-avatar_12.entry.js +72 -38
- package/dist/esm/xpl-backdrop.entry.js +1 -5
- package/dist/esm/xpl-button-row.entry.js +4 -1
- package/dist/esm/xpl-choicelist.entry.js +8 -1
- package/dist/esm/xpl-divider.entry.js +2 -1
- package/dist/esm/xpl-dropdown-group_3.entry.js +7 -1
- package/dist/esm/xpl-dropdown_2.entry.js +8 -9
- package/dist/esm/xpl-grid-item.entry.js +1 -1
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/esm/xpl-input.entry.js +615 -501
- package/dist/esm/xpl-list.entry.js +1 -23
- package/dist/esm/xpl-main-nav.entry.js +1 -4
- package/dist/esm/xpl-pagination.entry.js +5 -2
- package/dist/esm/xpl-select.entry.js +7 -22
- package/dist/esm/xpl-toggle.entry.js +7 -4
- package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +1 -1
- package/dist/types/components/xpl-table/xpl-table.d.ts +2 -0
- package/dist/types/components.d.ts +47 -11
- package/dist/types/stencil-public-runtime.d.ts +85 -11
- package/loader/index.d.ts +9 -1
- package/loader/package.json +1 -0
- package/package.json +1 -1
- package/dist/apollo-core/p-25f84d39.entry.js +0 -1
- package/dist/apollo-core/p-2ce2fe5c.entry.js +0 -1
- package/dist/apollo-core/p-3ff1ff38.entry.js +0 -1
- package/dist/apollo-core/p-63dd9a65.entry.js +0 -1
- package/dist/apollo-core/p-6c3c1e3d.entry.js +0 -1
- package/dist/apollo-core/p-81a6ce4c.entry.js +0 -1
- package/dist/apollo-core/p-918b0731.entry.js +0 -1
- package/dist/apollo-core/p-a43e2d1f.entry.js +0 -1
- package/dist/apollo-core/p-b6d1b135.entry.js +0 -1
- package/dist/apollo-core/p-bc0ebed2.entry.js +0 -1
- package/dist/apollo-core/p-d4aa2fa9.js +0 -1
- package/dist/apollo-core/p-d4e5d3aa.entry.js +0 -1
- package/dist/apollo-core/p-db74c99c.entry.js +0 -1
- package/dist/apollo-core/p-ee16942f.entry.js +0 -1
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/application-shell.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/button.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/dropdown.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/input.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/list.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/select.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/table.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h, } from '@stencil/core';
|
|
2
2
|
export class XplTable {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.areAllSelected = false;
|
|
5
|
-
this.hasScrolled = false;
|
|
6
4
|
this.selectAll = (e) => {
|
|
7
5
|
const { target } = e;
|
|
8
6
|
if (!(target instanceof HTMLInputElement))
|
|
@@ -30,28 +28,43 @@ export class XplTable {
|
|
|
30
28
|
this.onScroll = () => {
|
|
31
29
|
this.hasScrolled = this.container.scrollLeft > 0;
|
|
32
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* TODO: Need to figure out how this interplays with data
|
|
33
|
+
* received from an API/server
|
|
34
|
+
*/
|
|
35
|
+
// private sortBy = (col: number, ascending = true) => {
|
|
36
|
+
// this.rowData.sort((a, b) => {
|
|
37
|
+
// const A = a[col];
|
|
38
|
+
// const B = b[col];
|
|
39
|
+
// if (typeof A === 'number' && typeof B === 'number') {
|
|
40
|
+
// const f = ascending ? 1 : -1;
|
|
41
|
+
// return A > B ? f : -f;
|
|
42
|
+
// }
|
|
43
|
+
// return -1;
|
|
44
|
+
// });
|
|
45
|
+
// this.rowData = Array.from(this.rowData);
|
|
46
|
+
// this.render();
|
|
47
|
+
// };
|
|
48
|
+
this.setData = () => {
|
|
49
|
+
this.rowData = this.data !== undefined ? Array.from(this.data) : [];
|
|
50
|
+
this.selected = new Array(this.rowData.length).fill(false);
|
|
51
|
+
};
|
|
52
|
+
this.columns = undefined;
|
|
53
|
+
this.data = undefined;
|
|
54
|
+
this.freeze = undefined;
|
|
55
|
+
this.multiselect = undefined;
|
|
56
|
+
this.striped = undefined;
|
|
57
|
+
this.areAllSelected = false;
|
|
58
|
+
this.rowData = undefined;
|
|
59
|
+
this.hasScrolled = false;
|
|
60
|
+
this.selected = undefined;
|
|
61
|
+
}
|
|
62
|
+
watchData() {
|
|
63
|
+
this.setData();
|
|
33
64
|
}
|
|
34
|
-
/**
|
|
35
|
-
* TODO: Need to figure out how this interplays with data
|
|
36
|
-
* received from an API/server
|
|
37
|
-
*/
|
|
38
|
-
// private sortBy = (col: number, ascending = true) => {
|
|
39
|
-
// this.rowData.sort((a, b) => {
|
|
40
|
-
// const A = a[col];
|
|
41
|
-
// const B = b[col];
|
|
42
|
-
// if (typeof A === 'number' && typeof B === 'number') {
|
|
43
|
-
// const f = ascending ? 1 : -1;
|
|
44
|
-
// return A > B ? f : -f;
|
|
45
|
-
// }
|
|
46
|
-
// return -1;
|
|
47
|
-
// });
|
|
48
|
-
// this.rowData = Array.from(this.rowData);
|
|
49
|
-
// this.render();
|
|
50
|
-
// };
|
|
51
65
|
componentWillLoad() {
|
|
52
66
|
this.areAllSelected = false;
|
|
53
|
-
this.
|
|
54
|
-
this.selected = new Array(this.rowData.length).fill(false);
|
|
67
|
+
this.setData();
|
|
55
68
|
}
|
|
56
69
|
render() {
|
|
57
70
|
let className = 'xpl-table';
|
|
@@ -61,140 +74,144 @@ export class XplTable {
|
|
|
61
74
|
className += ' xpl-table--freeze';
|
|
62
75
|
if (this.hasScrolled)
|
|
63
76
|
className += ' xpl-table--has-scrolled';
|
|
64
|
-
return (h(Host, null,
|
|
65
|
-
h("
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
h("
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
i === 0 ? (h("label", { htmlFor: '__xpl-table-row-' +
|
|
86
|
-
rowNum },
|
|
87
|
-
h("input", { id: '__xpl-table-row-' +
|
|
88
|
-
rowNum, checked: this
|
|
89
|
-
.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }),
|
|
90
|
-
h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))));
|
|
91
|
-
})));
|
|
92
|
-
}))))));
|
|
77
|
+
return (h(Host, null, h("div", { class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => (this.container = el) }, h("table", { class: className }, this.columns && (h("thead", null, this.columns.map((column, i) => {
|
|
78
|
+
return (h("th", null, this.multiselect && i === 0 ? (h("label", { htmlFor: "__xpl-table-th" }, h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
|
|
79
|
+
// appear indeterminate when at least one but not all
|
|
80
|
+
// are selected
|
|
81
|
+
indeterminate: !this
|
|
82
|
+
.areAllSelected &&
|
|
83
|
+
this.selected.some((a) => a), onChange: (e) => {
|
|
84
|
+
this.selectAll(e);
|
|
85
|
+
}, type: "checkbox" }), column)) : (column)));
|
|
86
|
+
}))), h("tbody", null, this.rowData.map((row, rowNum) => {
|
|
87
|
+
return (h("tr", { class: this.selected &&
|
|
88
|
+
this.selected[rowNum]
|
|
89
|
+
? 'xpl-table-row-selected'
|
|
90
|
+
: '' }, row.map((cell, i) => {
|
|
91
|
+
return (h("td", null, this.multiselect &&
|
|
92
|
+
i === 0 ? (h("label", { htmlFor: '__xpl-table-row-' +
|
|
93
|
+
rowNum }, h("input", { id: '__xpl-table-row-' +
|
|
94
|
+
rowNum, checked: this
|
|
95
|
+
.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))));
|
|
96
|
+
})));
|
|
97
|
+
}))))));
|
|
93
98
|
}
|
|
94
99
|
static get is() { return "xpl-table"; }
|
|
95
|
-
static get properties() {
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"data": {
|
|
112
|
-
"type": "unknown",
|
|
113
|
-
"mutable": false,
|
|
114
|
-
"complexType": {
|
|
115
|
-
"original": "string[][]",
|
|
116
|
-
"resolved": "string[][]",
|
|
117
|
-
"references": {}
|
|
118
|
-
},
|
|
119
|
-
"required": false,
|
|
120
|
-
"optional": true,
|
|
121
|
-
"docs": {
|
|
122
|
-
"tags": [],
|
|
123
|
-
"text": ""
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"freeze": {
|
|
127
|
-
"type": "boolean",
|
|
128
|
-
"mutable": false,
|
|
129
|
-
"complexType": {
|
|
130
|
-
"original": "boolean",
|
|
131
|
-
"resolved": "boolean",
|
|
132
|
-
"references": {}
|
|
100
|
+
static get properties() {
|
|
101
|
+
return {
|
|
102
|
+
"columns": {
|
|
103
|
+
"type": "unknown",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "string[]",
|
|
107
|
+
"resolved": "string[]",
|
|
108
|
+
"references": {}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": true,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": ""
|
|
115
|
+
}
|
|
133
116
|
},
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
|
|
117
|
+
"data": {
|
|
118
|
+
"type": "unknown",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "string[][]",
|
|
122
|
+
"resolved": "string[][]",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": true,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": ""
|
|
130
|
+
}
|
|
139
131
|
},
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
149
|
-
"
|
|
132
|
+
"freeze": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"mutable": false,
|
|
135
|
+
"complexType": {
|
|
136
|
+
"original": "boolean",
|
|
137
|
+
"resolved": "boolean",
|
|
138
|
+
"references": {}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": true,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": ""
|
|
145
|
+
},
|
|
146
|
+
"attribute": "freeze",
|
|
147
|
+
"reflect": false
|
|
150
148
|
},
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
|
|
149
|
+
"multiselect": {
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "boolean",
|
|
154
|
+
"resolved": "boolean",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": true,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": ""
|
|
162
|
+
},
|
|
163
|
+
"attribute": "multiselect",
|
|
164
|
+
"reflect": false
|
|
156
165
|
},
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
},
|
|
174
|
-
"attribute": "striped",
|
|
175
|
-
"reflect": false
|
|
176
|
-
}
|
|
177
|
-
}; }
|
|
178
|
-
static get states() { return {
|
|
179
|
-
"areAllSelected": {},
|
|
180
|
-
"rowData": {},
|
|
181
|
-
"hasScrolled": {},
|
|
182
|
-
"selected": {}
|
|
183
|
-
}; }
|
|
184
|
-
static get events() { return [{
|
|
185
|
-
"method": "tableSelect",
|
|
186
|
-
"name": "tableSelect",
|
|
187
|
-
"bubbles": true,
|
|
188
|
-
"cancelable": true,
|
|
189
|
-
"composed": true,
|
|
190
|
-
"docs": {
|
|
191
|
-
"tags": [],
|
|
192
|
-
"text": ""
|
|
193
|
-
},
|
|
194
|
-
"complexType": {
|
|
195
|
-
"original": "any",
|
|
196
|
-
"resolved": "any",
|
|
197
|
-
"references": {}
|
|
166
|
+
"striped": {
|
|
167
|
+
"type": "boolean",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "boolean",
|
|
171
|
+
"resolved": "boolean",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": true,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": ""
|
|
179
|
+
},
|
|
180
|
+
"attribute": "striped",
|
|
181
|
+
"reflect": false
|
|
198
182
|
}
|
|
199
|
-
}
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
static get states() {
|
|
186
|
+
return {
|
|
187
|
+
"areAllSelected": {},
|
|
188
|
+
"rowData": {},
|
|
189
|
+
"hasScrolled": {},
|
|
190
|
+
"selected": {}
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
static get events() {
|
|
194
|
+
return [{
|
|
195
|
+
"method": "tableSelect",
|
|
196
|
+
"name": "tableSelect",
|
|
197
|
+
"bubbles": true,
|
|
198
|
+
"cancelable": true,
|
|
199
|
+
"composed": true,
|
|
200
|
+
"docs": {
|
|
201
|
+
"tags": [],
|
|
202
|
+
"text": ""
|
|
203
|
+
},
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "any",
|
|
206
|
+
"resolved": "any",
|
|
207
|
+
"references": {}
|
|
208
|
+
}
|
|
209
|
+
}];
|
|
210
|
+
}
|
|
211
|
+
static get watchers() {
|
|
212
|
+
return [{
|
|
213
|
+
"propName": "data",
|
|
214
|
+
"methodName": "watchData"
|
|
215
|
+
}];
|
|
216
|
+
}
|
|
200
217
|
}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class XplTag {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { class: "xpl-tag-container" },
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
h("button", { class: "xpl-tag__close", onClick: () => {
|
|
10
|
-
this.close.emit();
|
|
11
|
-
} }, "\u00D7")));
|
|
4
|
+
return (h(Host, { class: "xpl-tag-container" }, h("button", { class: "xpl-tag", onClick: () => {
|
|
5
|
+
this.close.emit();
|
|
6
|
+
} }, h("slot", null)), h("button", { class: "xpl-tag__close", onClick: () => {
|
|
7
|
+
this.close.emit();
|
|
8
|
+
} }, "\u00D7")));
|
|
12
9
|
}
|
|
13
10
|
static get is() { return "xpl-tag"; }
|
|
14
|
-
static get events() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
static get events() {
|
|
12
|
+
return [{
|
|
13
|
+
"method": "close",
|
|
14
|
+
"name": "close",
|
|
15
|
+
"bubbles": true,
|
|
16
|
+
"cancelable": true,
|
|
17
|
+
"composed": true,
|
|
18
|
+
"docs": {
|
|
19
|
+
"tags": [],
|
|
20
|
+
"text": ""
|
|
21
|
+
},
|
|
22
|
+
"complexType": {
|
|
23
|
+
"original": "any",
|
|
24
|
+
"resolved": "any",
|
|
25
|
+
"references": {}
|
|
26
|
+
}
|
|
27
|
+
}];
|
|
28
|
+
}
|
|
30
29
|
}
|