@xplortech/apollo-core 1.0.0-beta.6 → 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/LICENSE +21 -0
- 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
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2ab4832e.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -18,4 +18,5 @@ const defineCustomElements = (win, options) => {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
exports.setNonce = index.setNonce;
|
|
21
22
|
exports.defineCustomElements = defineCustomElements;
|
|
@@ -2,26 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2ab4832e.js');
|
|
6
6
|
|
|
7
7
|
const XplApplicationShell = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
|
-
/**
|
|
11
|
-
* @property {boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar
|
|
12
|
-
*/
|
|
13
10
|
this.withSubnav = false;
|
|
14
|
-
/**
|
|
15
|
-
* @property {boolean} - Whether or not the Grid should have space for a utility bar
|
|
16
|
-
*/
|
|
17
11
|
this.withUtility = true;
|
|
18
|
-
/**
|
|
19
|
-
* @property {string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.
|
|
20
|
-
*/
|
|
21
12
|
this.navWidth = 'default';
|
|
22
|
-
|
|
23
|
-
* @state {boolean} - Whether or not the main nav is open, updates when the nav-open event is emitted.
|
|
24
|
-
*/
|
|
13
|
+
this.isNavOpenAtStartup = undefined;
|
|
25
14
|
this.navOpen = true;
|
|
26
15
|
}
|
|
27
16
|
closeNavOnMobile() {
|
|
@@ -2,13 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2ab4832e.js');
|
|
6
6
|
const v4 = require('./v4-14140ff3.js');
|
|
7
7
|
|
|
8
8
|
const XplAvatar = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
|
+
this.color = undefined;
|
|
11
12
|
this.disabled = false;
|
|
13
|
+
this.href = undefined;
|
|
14
|
+
this.name = undefined;
|
|
15
|
+
this.size = undefined;
|
|
16
|
+
this.src = undefined;
|
|
17
|
+
this.status = undefined;
|
|
18
|
+
this.target = undefined;
|
|
12
19
|
}
|
|
13
20
|
render() {
|
|
14
21
|
let className = 'xpl-avatar';
|
|
@@ -24,6 +31,8 @@ const XplAvatar = class {
|
|
|
24
31
|
const XplBadge = class {
|
|
25
32
|
constructor(hostRef) {
|
|
26
33
|
index.registerInstance(this, hostRef);
|
|
34
|
+
this.dot = undefined;
|
|
35
|
+
this.variant = undefined;
|
|
27
36
|
}
|
|
28
37
|
render() {
|
|
29
38
|
let className = 'xpl-badge';
|
|
@@ -61,17 +70,15 @@ const XplBreadcrumbs = class {
|
|
|
61
70
|
const XplButton = class {
|
|
62
71
|
constructor(hostRef) {
|
|
63
72
|
index.registerInstance(this, hostRef);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
73
|
+
this.disabled = undefined;
|
|
74
|
+
this.link = undefined;
|
|
75
|
+
this.iconOnly = undefined;
|
|
76
|
+
this.fullWidth = undefined;
|
|
77
|
+
this.name = undefined;
|
|
67
78
|
this.size = 'default';
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
*/
|
|
79
|
+
this.type = undefined;
|
|
80
|
+
this.value = undefined;
|
|
71
81
|
this.variant = 'primary';
|
|
72
|
-
/**
|
|
73
|
-
* @property {"neutral" | "warning" | "success"} - button state (color) neutral=purple, success=green, warning=red
|
|
74
|
-
*/
|
|
75
82
|
this.state = 'neutral';
|
|
76
83
|
}
|
|
77
84
|
componentDidRender() {
|
|
@@ -119,6 +126,14 @@ const XplCheckbox = class {
|
|
|
119
126
|
constructor(hostRef) {
|
|
120
127
|
index.registerInstance(this, hostRef);
|
|
121
128
|
this.checkboxChange = index.createEvent(this, "checkboxChange", 7);
|
|
129
|
+
this.checked = undefined;
|
|
130
|
+
this.description = undefined;
|
|
131
|
+
this.disabled = undefined;
|
|
132
|
+
this.indeterminate = undefined;
|
|
133
|
+
this.name = undefined;
|
|
134
|
+
this.required = undefined;
|
|
135
|
+
this.styled = undefined;
|
|
136
|
+
this.value = undefined;
|
|
122
137
|
this.id = v4.v4();
|
|
123
138
|
}
|
|
124
139
|
render() {
|
|
@@ -139,9 +154,6 @@ const XplCheckbox = class {
|
|
|
139
154
|
const XplContentArea = class {
|
|
140
155
|
constructor(hostRef) {
|
|
141
156
|
index.registerInstance(this, hostRef);
|
|
142
|
-
/**
|
|
143
|
-
* @property {string} size - The content-area size.
|
|
144
|
-
*/
|
|
145
157
|
this.size = 'wide';
|
|
146
158
|
}
|
|
147
159
|
render() {
|
|
@@ -153,9 +165,6 @@ const XplNavItem = class {
|
|
|
153
165
|
constructor(hostRef) {
|
|
154
166
|
index.registerInstance(this, hostRef);
|
|
155
167
|
this.navOpen = index.createEvent(this, "navOpen", 7);
|
|
156
|
-
/**
|
|
157
|
-
* @property {boolean} - Whether or not the item should control the main nav state on click
|
|
158
|
-
*/
|
|
159
168
|
this.navControl = false;
|
|
160
169
|
}
|
|
161
170
|
onNavToggle() {
|
|
@@ -176,6 +185,13 @@ const XplRadio = class {
|
|
|
176
185
|
constructor(hostRef) {
|
|
177
186
|
index.registerInstance(this, hostRef);
|
|
178
187
|
this.radioChange = index.createEvent(this, "radioChange", 7);
|
|
188
|
+
this.checked = undefined;
|
|
189
|
+
this.description = undefined;
|
|
190
|
+
this.disabled = undefined;
|
|
191
|
+
this.name = undefined;
|
|
192
|
+
this.required = undefined;
|
|
193
|
+
this.styled = undefined;
|
|
194
|
+
this.value = undefined;
|
|
179
195
|
this.id = v4.v4();
|
|
180
196
|
}
|
|
181
197
|
render() {
|
|
@@ -206,8 +222,6 @@ const XplTable = class {
|
|
|
206
222
|
constructor(hostRef) {
|
|
207
223
|
index.registerInstance(this, hostRef);
|
|
208
224
|
this.tableSelect = index.createEvent(this, "tableSelect", 7);
|
|
209
|
-
this.areAllSelected = false;
|
|
210
|
-
this.hasScrolled = false;
|
|
211
225
|
this.selectAll = (e) => {
|
|
212
226
|
const { target } = e;
|
|
213
227
|
if (!(target instanceof HTMLInputElement))
|
|
@@ -235,28 +249,43 @@ const XplTable = class {
|
|
|
235
249
|
this.onScroll = () => {
|
|
236
250
|
this.hasScrolled = this.container.scrollLeft > 0;
|
|
237
251
|
};
|
|
252
|
+
/**
|
|
253
|
+
* TODO: Need to figure out how this interplays with data
|
|
254
|
+
* received from an API/server
|
|
255
|
+
*/
|
|
256
|
+
// private sortBy = (col: number, ascending = true) => {
|
|
257
|
+
// this.rowData.sort((a, b) => {
|
|
258
|
+
// const A = a[col];
|
|
259
|
+
// const B = b[col];
|
|
260
|
+
// if (typeof A === 'number' && typeof B === 'number') {
|
|
261
|
+
// const f = ascending ? 1 : -1;
|
|
262
|
+
// return A > B ? f : -f;
|
|
263
|
+
// }
|
|
264
|
+
// return -1;
|
|
265
|
+
// });
|
|
266
|
+
// this.rowData = Array.from(this.rowData);
|
|
267
|
+
// this.render();
|
|
268
|
+
// };
|
|
269
|
+
this.setData = () => {
|
|
270
|
+
this.rowData = this.data !== undefined ? Array.from(this.data) : [];
|
|
271
|
+
this.selected = new Array(this.rowData.length).fill(false);
|
|
272
|
+
};
|
|
273
|
+
this.columns = undefined;
|
|
274
|
+
this.data = undefined;
|
|
275
|
+
this.freeze = undefined;
|
|
276
|
+
this.multiselect = undefined;
|
|
277
|
+
this.striped = undefined;
|
|
278
|
+
this.areAllSelected = false;
|
|
279
|
+
this.rowData = undefined;
|
|
280
|
+
this.hasScrolled = false;
|
|
281
|
+
this.selected = undefined;
|
|
282
|
+
}
|
|
283
|
+
watchData() {
|
|
284
|
+
this.setData();
|
|
238
285
|
}
|
|
239
|
-
/**
|
|
240
|
-
* TODO: Need to figure out how this interplays with data
|
|
241
|
-
* received from an API/server
|
|
242
|
-
*/
|
|
243
|
-
// private sortBy = (col: number, ascending = true) => {
|
|
244
|
-
// this.rowData.sort((a, b) => {
|
|
245
|
-
// const A = a[col];
|
|
246
|
-
// const B = b[col];
|
|
247
|
-
// if (typeof A === 'number' && typeof B === 'number') {
|
|
248
|
-
// const f = ascending ? 1 : -1;
|
|
249
|
-
// return A > B ? f : -f;
|
|
250
|
-
// }
|
|
251
|
-
// return -1;
|
|
252
|
-
// });
|
|
253
|
-
// this.rowData = Array.from(this.rowData);
|
|
254
|
-
// this.render();
|
|
255
|
-
// };
|
|
256
286
|
componentWillLoad() {
|
|
257
287
|
this.areAllSelected = false;
|
|
258
|
-
this.
|
|
259
|
-
this.selected = new Array(this.rowData.length).fill(false);
|
|
288
|
+
this.setData();
|
|
260
289
|
}
|
|
261
290
|
render() {
|
|
262
291
|
let className = 'xpl-table';
|
|
@@ -288,16 +317,21 @@ const XplTable = class {
|
|
|
288
317
|
})));
|
|
289
318
|
}))))));
|
|
290
319
|
}
|
|
320
|
+
static get watchers() { return {
|
|
321
|
+
"data": ["watchData"]
|
|
322
|
+
}; }
|
|
291
323
|
};
|
|
292
324
|
|
|
293
325
|
const XplUtilityBar = class {
|
|
294
326
|
constructor(hostRef) {
|
|
295
327
|
index.registerInstance(this, hostRef);
|
|
296
328
|
this.navOpen = index.createEvent(this, "navOpen", 7);
|
|
297
|
-
this.open = true;
|
|
298
329
|
this.bars = `
|
|
299
330
|
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14 xpl-utility-nav__bars" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg>
|
|
300
331
|
`;
|
|
332
|
+
this.navControl = undefined;
|
|
333
|
+
this.isNavOpenAtStartup = undefined;
|
|
334
|
+
this.open = true;
|
|
301
335
|
}
|
|
302
336
|
onNavToggle() {
|
|
303
337
|
this.open = !this.open;
|
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2ab4832e.js');
|
|
6
6
|
|
|
7
7
|
const XplBackdrop = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
|
-
/**
|
|
11
|
-
* @property {boolean} - When true, backdrop will have relative position. This is useful when the backdrop doesn't cover the whole view area.
|
|
12
|
-
* If false, the position will be fixed and cover the whole view area.
|
|
13
|
-
*/
|
|
14
10
|
this.relative = false;
|
|
15
11
|
}
|
|
16
12
|
render() {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2ab4832e.js');
|
|
6
6
|
|
|
7
7
|
const XplButtonRow = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -13,6 +13,9 @@ const XplButtonRow = class {
|
|
|
13
13
|
this.onPrimary = () => this.clickPrimary.emit();
|
|
14
14
|
this.onSecondary = () => this.clickSecondary.emit();
|
|
15
15
|
this.onTertiary = () => this.clickTertiary.emit();
|
|
16
|
+
this.primary = undefined;
|
|
17
|
+
this.secondary = undefined;
|
|
18
|
+
this.tertiary = undefined;
|
|
16
19
|
}
|
|
17
20
|
render() {
|
|
18
21
|
return (index.h(index.Host, { class: "xpl-button-row" }, index.h("div", { class: "xpl-button-row-inner" }, index.h("div", { class: "xpl-button-row__left" }, this.secondary && (index.h("xpl-button", { variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary))), index.h("div", { class: "xpl-button-row__right" }, this.tertiary && (index.h("xpl-button", { variant: "subtle", type: "button", onClick: this.onTertiary }, this.tertiary)), this.secondary && (index.h("xpl-button", { variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary)), this.primary && (index.h("xpl-button", { class: "xpl-button-row__primary", onClick: this.onPrimary }, this.primary))))));
|
|
@@ -2,11 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2ab4832e.js');
|
|
6
6
|
|
|
7
7
|
const XplChoicelist = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
|
+
this.choices = undefined;
|
|
11
|
+
this.description = undefined;
|
|
12
|
+
this.heading = undefined;
|
|
13
|
+
this.multi = undefined;
|
|
14
|
+
this.name = undefined;
|
|
15
|
+
this.styled = undefined;
|
|
16
|
+
this.selected = undefined;
|
|
10
17
|
}
|
|
11
18
|
componentWillLoad() {
|
|
12
19
|
this.selected =
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2ab4832e.js');
|
|
6
6
|
|
|
7
7
|
const XplDivider = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
|
+
this.tier = undefined;
|
|
10
11
|
}
|
|
11
12
|
render() {
|
|
12
13
|
let className = 'xpl-divider';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2ab4832e.js');
|
|
6
6
|
|
|
7
7
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
8
8
|
var t = {};
|
|
@@ -19,6 +19,8 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
19
19
|
const XplDropdownGroup = class {
|
|
20
20
|
constructor(hostRef) {
|
|
21
21
|
index.registerInstance(this, hostRef);
|
|
22
|
+
this.groupName = undefined;
|
|
23
|
+
this.options = undefined;
|
|
22
24
|
}
|
|
23
25
|
render() {
|
|
24
26
|
const { groupName, options } = this;
|
|
@@ -35,6 +37,7 @@ const XplDropdownGroup = class {
|
|
|
35
37
|
const XplDropdownHeading = class {
|
|
36
38
|
constructor(hostRef) {
|
|
37
39
|
index.registerInstance(this, hostRef);
|
|
40
|
+
this.label = undefined;
|
|
38
41
|
}
|
|
39
42
|
render() {
|
|
40
43
|
return (index.h(index.Host, { class: { 'xpl-dropdown-heading': true }, role: "presentation" }, index.h("span", null, this.label || index.h("slot", { name: "heading" }))));
|
|
@@ -44,6 +47,9 @@ const XplDropdownHeading = class {
|
|
|
44
47
|
const XplDropdownOption = class {
|
|
45
48
|
constructor(hostRef) {
|
|
46
49
|
index.registerInstance(this, hostRef);
|
|
50
|
+
this.isDisabled = undefined;
|
|
51
|
+
this.label = undefined;
|
|
52
|
+
this.isSelected = undefined;
|
|
47
53
|
}
|
|
48
54
|
componentWillLoad() {
|
|
49
55
|
this.dropdown = this.hostElement.closest('xpl-dropdown');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2ab4832e.js');
|
|
6
6
|
|
|
7
7
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
8
8
|
var t = {};
|
|
@@ -19,14 +19,6 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
19
19
|
const XplDropdown = class {
|
|
20
20
|
constructor(hostRef) {
|
|
21
21
|
index.registerInstance(this, hostRef);
|
|
22
|
-
/** text to display as heading */
|
|
23
|
-
this.isOpen = false;
|
|
24
|
-
/** options that are listed */
|
|
25
|
-
this.closeOnSelect = true;
|
|
26
|
-
/** constant representing number of options that can be selected */
|
|
27
|
-
this.mode = 'single';
|
|
28
|
-
/** whether selection should be made when focusing on interactable element */
|
|
29
|
-
this.selectOnFocus = false;
|
|
30
22
|
this.handleClickOutside = ({ target }) => {
|
|
31
23
|
const { triggerId } = this;
|
|
32
24
|
const isTrigger = triggerId && target.id === triggerId;
|
|
@@ -34,6 +26,13 @@ const XplDropdown = class {
|
|
|
34
26
|
if (!isInside && !isTrigger)
|
|
35
27
|
this.isOpen = false;
|
|
36
28
|
};
|
|
29
|
+
this.isOpen = false;
|
|
30
|
+
this.closeOnSelect = true;
|
|
31
|
+
this.mode = 'single';
|
|
32
|
+
this.options = undefined;
|
|
33
|
+
this.selectOnFocus = false;
|
|
34
|
+
this.triggerId = undefined;
|
|
35
|
+
this.update = undefined;
|
|
37
36
|
}
|
|
38
37
|
/**
|
|
39
38
|
* called on dropdown option click and keydown events to update isSelected states
|