@xplortech/apollo-core 1.0.0-beta.4 → 1.0.0-beta.5
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/apollo-core/apollo-core.css +5841 -9
- package/dist/apollo-core/apollo-core.esm.js +125 -1
- package/dist/apollo-core/app-globals-0f993ce5.js +3 -0
- package/dist/apollo-core/css-shim-bbdf0cc6.js +4 -0
- package/dist/apollo-core/dom-1f98a75f.js +73 -0
- package/dist/apollo-core/index-5b4a209e.js +2938 -0
- package/dist/apollo-core/index-912d1a21.js +584 -0
- package/dist/apollo-core/index.esm.js +1 -0
- package/dist/apollo-core/p-25f84d39.entry.js +1 -0
- package/dist/apollo-core/{p-13e7d3ea.entry.js → p-50eb8239.entry.js} +1 -1
- package/dist/apollo-core/regular-133c23b5.js +16052 -0
- package/dist/apollo-core/shadow-css-67b66845.js +389 -0
- package/dist/apollo-core/xpl-application-shell.entry.js +60 -0
- package/dist/apollo-core/xpl-avatar.entry.js +19 -0
- package/dist/apollo-core/xpl-backdrop.entry.js +21 -0
- package/dist/apollo-core/xpl-badge.entry.js +17 -0
- package/dist/apollo-core/xpl-breadcrumb-item.entry.js +17 -0
- package/dist/apollo-core/xpl-breadcrumbs.entry.js +12 -0
- package/dist/apollo-core/xpl-button-row.entry.js +18 -0
- package/dist/apollo-core/xpl-button.entry.js +60 -0
- package/dist/apollo-core/xpl-checkbox.entry.js +25 -0
- package/dist/apollo-core/xpl-choicelist.entry.js +39 -0
- package/dist/apollo-core/xpl-content-area.entry.js +16 -0
- package/dist/apollo-core/xpl-divider.entry.js +14 -0
- package/dist/apollo-core/xpl-dropdown-group.entry.js +31 -0
- package/dist/apollo-core/xpl-dropdown-heading.entry.js +12 -0
- package/dist/apollo-core/xpl-dropdown-option.entry.js +61 -0
- package/dist/apollo-core/xpl-dropdown.entry.js +104 -0
- package/dist/apollo-core/xpl-grid-item.entry.js +21 -0
- package/dist/apollo-core/xpl-grid.entry.js +31 -0
- package/dist/apollo-core/xpl-input.entry.js +2547 -0
- package/dist/apollo-core/xpl-list.entry.js +57 -0
- package/dist/apollo-core/xpl-main-nav.entry.js +26 -0
- package/dist/apollo-core/xpl-nav-item.entry.js +26 -0
- package/dist/apollo-core/xpl-pagination.entry.js +72 -0
- package/dist/apollo-core/xpl-radio.entry.js +25 -0
- package/dist/apollo-core/xpl-secondary-nav.entry.js +12 -0
- package/dist/apollo-core/xpl-select.entry.js +662 -0
- package/dist/apollo-core/xpl-table.entry.js +91 -0
- package/dist/apollo-core/xpl-tag.entry.js +17 -0
- package/dist/apollo-core/xpl-toggle.entry.js +30 -0
- package/dist/apollo-core/xpl-utility-bar.entry.js +27 -0
- package/dist/cjs/apollo-core.cjs.js +112 -4
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-a7379e2b.js +6 -0
- package/dist/cjs/dom-3e7d9c3b.js +75 -0
- package/dist/cjs/index-318d5fc7.js +586 -0
- package/dist/cjs/index-88e58962.js +2975 -0
- package/dist/cjs/index.cjs.js +1 -0
- package/dist/cjs/loader.cjs.js +18 -2
- package/dist/cjs/regular-503465f4.js +16054 -0
- package/dist/cjs/shadow-css-09555044.js +391 -0
- package/dist/cjs/xpl-application-shell.cjs.entry.js +8 -2
- package/dist/cjs/xpl-avatar.cjs.entry.js +23 -0
- package/dist/cjs/xpl-avatar_12.cjs.entry.js +6 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/xpl-badge.cjs.entry.js +21 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +21 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +16 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +1 -1
- package/dist/cjs/xpl-button.cjs.entry.js +64 -0
- package/dist/cjs/xpl-checkbox.cjs.entry.js +29 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -1
- package/dist/cjs/xpl-content-area.cjs.entry.js +20 -0
- package/dist/cjs/xpl-divider.cjs.entry.js +1 -1
- package/dist/cjs/xpl-dropdown-group.cjs.entry.js +35 -0
- package/dist/cjs/xpl-dropdown-heading.cjs.entry.js +16 -0
- package/dist/cjs/xpl-dropdown-option.cjs.entry.js +65 -0
- package/dist/cjs/xpl-dropdown.cjs.entry.js +108 -0
- 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 +21 -4
- package/dist/cjs/xpl-list.cjs.entry.js +2 -2
- package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -1
- package/dist/cjs/xpl-nav-item.cjs.entry.js +30 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
- package/dist/cjs/xpl-radio.cjs.entry.js +29 -0
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +16 -0
- package/dist/cjs/xpl-select.cjs.entry.js +44 -3
- package/dist/cjs/xpl-table.cjs.entry.js +95 -0
- package/dist/cjs/xpl-tag.cjs.entry.js +21 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +3 -3
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +31 -0
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +31 -2
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +27 -1
- package/dist/custom-elements/index.js +599 -4
- package/dist/esm/apollo-core.js +112 -4
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-bbdf0cc6.js +4 -0
- package/dist/esm/dom-1f98a75f.js +73 -0
- package/dist/esm/index-5b4a209e.js +2938 -0
- package/dist/esm/index-912d1a21.js +584 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +18 -2
- package/dist/esm/regular-133c23b5.js +16052 -0
- package/dist/esm/shadow-css-67b66845.js +389 -0
- package/dist/esm/xpl-application-shell.entry.js +8 -2
- package/dist/esm/xpl-avatar.entry.js +19 -0
- package/dist/esm/xpl-avatar_12.entry.js +6 -0
- package/dist/esm/xpl-backdrop.entry.js +1 -1
- package/dist/esm/xpl-badge.entry.js +17 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js +17 -0
- package/dist/esm/xpl-breadcrumbs.entry.js +12 -0
- package/dist/esm/xpl-button-row.entry.js +1 -1
- package/dist/esm/xpl-button.entry.js +60 -0
- package/dist/esm/xpl-checkbox.entry.js +25 -0
- package/dist/esm/xpl-choicelist.entry.js +1 -1
- package/dist/esm/xpl-content-area.entry.js +16 -0
- package/dist/esm/xpl-divider.entry.js +1 -1
- package/dist/esm/xpl-dropdown-group.entry.js +31 -0
- package/dist/esm/xpl-dropdown-heading.entry.js +12 -0
- package/dist/esm/xpl-dropdown-option.entry.js +61 -0
- package/dist/esm/xpl-dropdown.entry.js +104 -0
- 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 +20 -3
- package/dist/esm/xpl-list.entry.js +2 -2
- package/dist/esm/xpl-main-nav.entry.js +1 -1
- package/dist/esm/xpl-nav-item.entry.js +26 -0
- package/dist/esm/xpl-pagination.entry.js +1 -1
- package/dist/esm/xpl-radio.entry.js +25 -0
- package/dist/esm/xpl-secondary-nav.entry.js +12 -0
- package/dist/esm/xpl-select.entry.js +43 -2
- package/dist/esm/xpl-table.entry.js +91 -0
- package/dist/esm/xpl-tag.entry.js +17 -0
- package/dist/esm/xpl-toggle.entry.js +2 -2
- package/dist/esm/xpl-utility-bar.entry.js +27 -0
- package/dist/stories/application-shell.stories.js +17 -8
- package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/application-shell.stories.d.ts +14 -5
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +6 -1
- package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +5 -0
- package/dist/types/components.d.ts +18 -0
- package/package.json +1 -1
- package/dist/apollo-core/p-97bdb450.entry.js +0 -1
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/button.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/dropdown.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/input.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/list.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/select.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/table.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects/apollo-admin/packages → roc/Sites}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
|
|
7
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
8
|
+
var t = {};
|
|
9
|
+
for (var p in s)
|
|
10
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
13
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
14
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
15
|
+
t[p[i]] = s[p[i]];
|
|
16
|
+
}
|
|
17
|
+
return t;
|
|
18
|
+
};
|
|
19
|
+
const XplDropdownGroup = class {
|
|
20
|
+
constructor(hostRef) {
|
|
21
|
+
index.registerInstance(this, hostRef);
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
const { groupName, options } = this;
|
|
25
|
+
const hasOptions = options && options.length;
|
|
26
|
+
const mappedOptions = hasOptions &&
|
|
27
|
+
options.map((_a) => {
|
|
28
|
+
var { groupName } = _a, properties = __rest(_a, ["groupName"]);
|
|
29
|
+
return groupName ? (index.h("xpl-dropdown-group", Object.assign({ label: groupName }, properties))) : (index.h("xpl-dropdown-option", Object.assign({}, properties)));
|
|
30
|
+
});
|
|
31
|
+
return (index.h(index.Host, { role: "group", "aria-label": groupName }, index.h("li", { class: "xpl-dropdown-list-item" }, index.h("xpl-dropdown-heading", { label: groupName }), index.h("ul", { class: "xpl-dropdown-list" }, mappedOptions || index.h("slot", { name: "options" })))));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.xpl_dropdown_group = XplDropdownGroup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
|
|
7
|
+
const XplDropdownHeading = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (index.h(index.Host, { class: { 'xpl-dropdown-heading': true }, role: "presentation" }, index.h("span", null, this.label || index.h("slot", { name: "heading" }))));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.xpl_dropdown_heading = XplDropdownHeading;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
|
|
7
|
+
const XplDropdownOption = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
componentWillLoad() {
|
|
12
|
+
this.dropdown = this.hostElement.closest('xpl-dropdown');
|
|
13
|
+
}
|
|
14
|
+
handleClick(ev) {
|
|
15
|
+
const { closeOnSelect, mode } = this.dropdown;
|
|
16
|
+
if (Boolean(ev.x && ev.y)) {
|
|
17
|
+
this.dropdown.handleSelect(ev, { component: this });
|
|
18
|
+
if (mode === 'single' && closeOnSelect)
|
|
19
|
+
this.dropdown.isOpen = false;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
handleKeyup(ev) {
|
|
23
|
+
const { dropdown } = this;
|
|
24
|
+
const navigationKeys = [
|
|
25
|
+
'ArrowDown',
|
|
26
|
+
'ArrowLeft',
|
|
27
|
+
'ArrowRight',
|
|
28
|
+
'ArrowUp',
|
|
29
|
+
'Tab',
|
|
30
|
+
];
|
|
31
|
+
const { closeOnSelect, mode, selectOnFocus } = this.dropdown;
|
|
32
|
+
if (selectOnFocus && navigationKeys.includes(ev.key)) {
|
|
33
|
+
const hostElement = document.activeElement.closest('xpl-dropdown-option');
|
|
34
|
+
dropdown.handleSelect(ev, { component: { hostElement } });
|
|
35
|
+
if (mode === 'single' && closeOnSelect)
|
|
36
|
+
this.dropdown.isOpen = false;
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const selectionKeys = ['Escape', 'Enter'];
|
|
40
|
+
if (selectionKeys.includes(ev.key)) {
|
|
41
|
+
dropdown.handleSelect(ev, { component: this });
|
|
42
|
+
if (this.dropdown.closeOnSelect)
|
|
43
|
+
this.dropdown.isOpen = false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
connectedCallback() {
|
|
47
|
+
this.hostElement.addEventListener('click', this.handleClick.bind(this));
|
|
48
|
+
this.hostElement.addEventListener('keyup', this.handleKeyup.bind(this));
|
|
49
|
+
}
|
|
50
|
+
disconnectedCallback() {
|
|
51
|
+
this.hostElement.removeEventListener('click', this.handleClick);
|
|
52
|
+
this.hostElement.removeEventListener('keyup', this.handleKeyup);
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
const { label, isSelected, isDisabled } = this;
|
|
56
|
+
return (index.h(index.Host, { class: {
|
|
57
|
+
'xpl-dropdown-option': true,
|
|
58
|
+
'xpl-dropdown-option--disabled': isDisabled,
|
|
59
|
+
'xpl-dropdown-option--selected': isSelected,
|
|
60
|
+
}, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected }, index.h("li", { class: "xpl-dropdown-list-item" }, label || index.h("slot", { name: "option" }))));
|
|
61
|
+
}
|
|
62
|
+
get hostElement() { return index.getElement(this); }
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.xpl_dropdown_option = XplDropdownOption;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
|
|
7
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
8
|
+
var t = {};
|
|
9
|
+
for (var p in s)
|
|
10
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
13
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
14
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
15
|
+
t[p[i]] = s[p[i]];
|
|
16
|
+
}
|
|
17
|
+
return t;
|
|
18
|
+
};
|
|
19
|
+
const XplDropdown = class {
|
|
20
|
+
constructor(hostRef) {
|
|
21
|
+
index.registerInstance(this, hostRef);
|
|
22
|
+
/** text to display as heading */
|
|
23
|
+
// eslint-disable-next-line @stencil/strict-mutable
|
|
24
|
+
this.isOpen = false;
|
|
25
|
+
/** options that are listed */
|
|
26
|
+
this.closeOnSelect = true;
|
|
27
|
+
/** constant representing number of options that can be selected */
|
|
28
|
+
this.mode = 'single';
|
|
29
|
+
/** whether selection should be made when focusing on interactable element */
|
|
30
|
+
this.selectOnFocus = false;
|
|
31
|
+
this.handleClickOutside = ({ target }) => {
|
|
32
|
+
const { triggerId } = this;
|
|
33
|
+
const isTrigger = triggerId && target.id === triggerId;
|
|
34
|
+
const isInside = this.hostElement.contains(target);
|
|
35
|
+
if (!isInside && !isTrigger)
|
|
36
|
+
this.isOpen = false;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* called on dropdown option click and keydown events to update isSelected states
|
|
41
|
+
*/
|
|
42
|
+
async handleSelect(e, { component }) {
|
|
43
|
+
const { hostElement, mode, options, update } = this;
|
|
44
|
+
const isSingle = mode === 'single';
|
|
45
|
+
const isMulti = mode === 'multi';
|
|
46
|
+
if (Boolean(options)) {
|
|
47
|
+
options
|
|
48
|
+
.reduce((acc, curr) => [
|
|
49
|
+
...acc,
|
|
50
|
+
...(curr.groupName ? curr.options : [curr]),
|
|
51
|
+
], [])
|
|
52
|
+
.forEach((option) => {
|
|
53
|
+
const isMatch = option.label === component.hostElement.label;
|
|
54
|
+
if (isSingle) {
|
|
55
|
+
option.isSelected = isMatch;
|
|
56
|
+
component.hostElement.isSelected = option.isSelected;
|
|
57
|
+
}
|
|
58
|
+
else if (isMulti && isMatch) {
|
|
59
|
+
option.isSelected = !option.isSelected;
|
|
60
|
+
component.hostElement.isSelected = option.isSelected;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const mapOptions = (option) => {
|
|
64
|
+
option.options = option.groupName
|
|
65
|
+
? option.options.map(mapOptions)
|
|
66
|
+
: undefined;
|
|
67
|
+
return option;
|
|
68
|
+
};
|
|
69
|
+
this.options = options.map(mapOptions);
|
|
70
|
+
}
|
|
71
|
+
else if (isSingle) {
|
|
72
|
+
const optionNodes = Array.from(hostElement.querySelectorAll('xpl-dropdown-option'));
|
|
73
|
+
optionNodes.forEach((node) => (node.isSelected = node === component.hostElement));
|
|
74
|
+
}
|
|
75
|
+
else if (isMulti) {
|
|
76
|
+
component.isSelected = !component.isSelected;
|
|
77
|
+
}
|
|
78
|
+
if (Boolean(update))
|
|
79
|
+
update(e, { component: this });
|
|
80
|
+
}
|
|
81
|
+
componentWillLoad() {
|
|
82
|
+
this.handleSelect = this.handleSelect.bind(this);
|
|
83
|
+
}
|
|
84
|
+
connectedCallback() {
|
|
85
|
+
document.addEventListener('mousedown', this.handleClickOutside.bind(this));
|
|
86
|
+
}
|
|
87
|
+
disconnectedCallback() {
|
|
88
|
+
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
89
|
+
}
|
|
90
|
+
render() {
|
|
91
|
+
let { isOpen } = this;
|
|
92
|
+
const { mode, options } = this;
|
|
93
|
+
const hasOptions = options && options.length;
|
|
94
|
+
const mappedOptions = hasOptions &&
|
|
95
|
+
options.map((_a) => {
|
|
96
|
+
var { groupName, options } = _a, properties = __rest(_a, ["groupName", "options"]);
|
|
97
|
+
return groupName ? (index.h("xpl-dropdown-group", Object.assign({ groupName: groupName, options: options }, properties))) : (index.h("xpl-dropdown-option", Object.assign({}, properties)));
|
|
98
|
+
});
|
|
99
|
+
return (index.h(index.Host, { "aria-expanded": isOpen, class: {
|
|
100
|
+
'xpl-dropdown': true,
|
|
101
|
+
'xpl-dropdown--multi': mode === 'multi',
|
|
102
|
+
'xpl-dropdown--open': isOpen,
|
|
103
|
+
}, role: "listbox" }, index.h("ul", { class: "xpl-dropdown-list" }, mappedOptions || index.h("slot", { name: "options" }))));
|
|
104
|
+
}
|
|
105
|
+
get hostElement() { return index.getElement(this); }
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
exports.xpl_dropdown = XplDropdown;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
require('./
|
|
7
|
-
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
const index$1 = require('./index-318d5fc7.js');
|
|
7
|
+
require('./regular-503465f4.js');
|
|
8
8
|
|
|
9
9
|
const HOOKS = [
|
|
10
10
|
"onChange",
|
|
@@ -437,6 +437,12 @@ function compareDates(date1, date2, timeless = true) {
|
|
|
437
437
|
}
|
|
438
438
|
return date1.getTime() - date2.getTime();
|
|
439
439
|
}
|
|
440
|
+
function compareTimes(date1, date2) {
|
|
441
|
+
return (3600 * (date1.getHours() - date2.getHours()) +
|
|
442
|
+
60 * (date1.getMinutes() - date2.getMinutes()) +
|
|
443
|
+
date1.getSeconds() -
|
|
444
|
+
date2.getSeconds());
|
|
445
|
+
}
|
|
440
446
|
const isBetween = (ts, ts1, ts2) => {
|
|
441
447
|
return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);
|
|
442
448
|
};
|
|
@@ -472,6 +478,7 @@ function getDefaultHours(config) {
|
|
|
472
478
|
return { hours, minutes, seconds };
|
|
473
479
|
}
|
|
474
480
|
|
|
481
|
+
"use strict";
|
|
475
482
|
if (typeof Object.assign !== "function") {
|
|
476
483
|
Object.assign = function (target, ...args) {
|
|
477
484
|
if (!target) {
|
|
@@ -1574,6 +1581,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1574
1581
|
self._input.focus();
|
|
1575
1582
|
}
|
|
1576
1583
|
break;
|
|
1584
|
+
default:
|
|
1585
|
+
break;
|
|
1577
1586
|
}
|
|
1578
1587
|
}
|
|
1579
1588
|
if (self.amPM !== undefined && eventTarget === self.amPM) {
|
|
@@ -1920,6 +1929,12 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1920
1929
|
let editableSheet = null;
|
|
1921
1930
|
for (let i = 0; i < document.styleSheets.length; i++) {
|
|
1922
1931
|
const sheet = document.styleSheets[i];
|
|
1932
|
+
try {
|
|
1933
|
+
sheet.cssRules;
|
|
1934
|
+
}
|
|
1935
|
+
catch (err) {
|
|
1936
|
+
continue;
|
|
1937
|
+
}
|
|
1923
1938
|
editableSheet = sheet;
|
|
1924
1939
|
break;
|
|
1925
1940
|
}
|
|
@@ -2075,6 +2090,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2075
2090
|
.split(self.l10n.rangeSeparator)
|
|
2076
2091
|
.map((date) => self.parseDate(date, format));
|
|
2077
2092
|
break;
|
|
2093
|
+
default:
|
|
2094
|
+
break;
|
|
2078
2095
|
}
|
|
2079
2096
|
}
|
|
2080
2097
|
else
|
|
@@ -2476,7 +2493,7 @@ const XplInput = class {
|
|
|
2476
2493
|
}
|
|
2477
2494
|
componentWillLoad() {
|
|
2478
2495
|
if (this._id === undefined || this._id === null || this._id === '')
|
|
2479
|
-
this._id =
|
|
2496
|
+
this._id = index$1.v4();
|
|
2480
2497
|
if (this.multiline && this.maxCharacterCount !== undefined) {
|
|
2481
2498
|
this.characterCount =
|
|
2482
2499
|
this.value !== undefined ? this.value.length : 0;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
require('./regular-
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
require('./regular-503465f4.js');
|
|
7
7
|
|
|
8
8
|
const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata, }) => {
|
|
9
9
|
const hasRight = avatars || badges || subtext;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
|
|
7
|
+
const XplNavItem = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.navOpen = index.createEvent(this, "navOpen", 7);
|
|
11
|
+
/**
|
|
12
|
+
* @property {boolean} - Whether or not the item should control the main nav state on click
|
|
13
|
+
*/
|
|
14
|
+
this.navControl = false;
|
|
15
|
+
}
|
|
16
|
+
onNavToggle() {
|
|
17
|
+
if (window.innerWidth <= 640) {
|
|
18
|
+
this.navOpen.emit(false);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (index.h(index.Host, { class: "xpl-nav-item", role: "listitem", onClick: () => {
|
|
23
|
+
if (this.navControl) {
|
|
24
|
+
this.onNavToggle();
|
|
25
|
+
}
|
|
26
|
+
} }, index.h("slot", { name: "link" }, index.h("slot", { name: "icon" }), index.h("slot", null))));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.xpl_nav_item = XplNavItem;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
const index$1 = require('./index-318d5fc7.js');
|
|
7
|
+
|
|
8
|
+
const XplRadio = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.radioChange = index.createEvent(this, "radioChange", 7);
|
|
12
|
+
this.id = index$1.v4();
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (index.h(index.Host, { class: {
|
|
16
|
+
'xpl-checkbox-radio-container': true,
|
|
17
|
+
styled: this.styled,
|
|
18
|
+
disabled: this.disabled,
|
|
19
|
+
} }, index.h("input", { class: "xpl-radio", type: "radio", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, value: this.value, onChange: () => this.radioChange.emit(true) }), index.h("label", { class: {
|
|
20
|
+
'xpl-label': true,
|
|
21
|
+
'xpl-label--disabled': this.disabled,
|
|
22
|
+
}, htmlFor: this.id }, index.h("slot", null), this.description && (index.h("small", { class: {
|
|
23
|
+
'xpl-description': true,
|
|
24
|
+
'xpl-description--disabled': this.disabled,
|
|
25
|
+
} }, this.description)))));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.xpl_radio = XplRadio;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
|
|
7
|
+
const XplSecondaryNav = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (index.h(index.Host, { class: "xpl-secondary-nav" }, index.h("nav", { "aria-label": "Secondary Nav" }, index.h("slot", null))));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.xpl_secondary_nav = XplSecondaryNav;
|
|
@@ -2,11 +2,52 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
const index$1 = require('./index-318d5fc7.js');
|
|
7
7
|
|
|
8
8
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
9
9
|
|
|
10
|
+
function getDefaultExportFromCjs (x) {
|
|
11
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
15
|
+
return module = {
|
|
16
|
+
path: basedir,
|
|
17
|
+
exports: {},
|
|
18
|
+
require: function (path, base) {
|
|
19
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
20
|
+
}
|
|
21
|
+
}, fn(module, module.exports), module.exports;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
25
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
29
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function getAugmentedNamespace(n) {
|
|
33
|
+
if (n.__esModule) return n;
|
|
34
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
35
|
+
Object.keys(n).forEach(function (k) {
|
|
36
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
37
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return n[k];
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
return a;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function commonjsRequire () {
|
|
48
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
49
|
+
}
|
|
50
|
+
|
|
10
51
|
/**
|
|
11
52
|
* lodash (Custom Build) <https://lodash.com/>
|
|
12
53
|
* Build: `lodash modularize exports="npm" -o ./`
|
|
@@ -480,7 +521,7 @@ const XplSelect = class {
|
|
|
480
521
|
*/
|
|
481
522
|
this.truncate = true;
|
|
482
523
|
this.active = false;
|
|
483
|
-
this.id =
|
|
524
|
+
this.id = index$1.v4();
|
|
484
525
|
this.keepFocus = false;
|
|
485
526
|
this.value = '';
|
|
486
527
|
this.displayValue = '';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
|
|
7
|
+
const XplTable = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.tableSelect = index.createEvent(this, "tableSelect", 7);
|
|
11
|
+
this.areAllSelected = false;
|
|
12
|
+
this.hasScrolled = false;
|
|
13
|
+
this.selectAll = (e) => {
|
|
14
|
+
const { target } = e;
|
|
15
|
+
if (!(target instanceof HTMLInputElement))
|
|
16
|
+
return;
|
|
17
|
+
const { checked } = target;
|
|
18
|
+
this.areAllSelected = checked;
|
|
19
|
+
this.selected = this.selected.map(() => checked);
|
|
20
|
+
this.onChange();
|
|
21
|
+
};
|
|
22
|
+
this.selectOne = (e, i) => {
|
|
23
|
+
const { target } = e;
|
|
24
|
+
if (!(target instanceof HTMLInputElement))
|
|
25
|
+
return;
|
|
26
|
+
const { checked } = target;
|
|
27
|
+
this.areAllSelected = false;
|
|
28
|
+
this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));
|
|
29
|
+
this.onChange();
|
|
30
|
+
};
|
|
31
|
+
this.onChange = () => {
|
|
32
|
+
this.tableSelect.emit({
|
|
33
|
+
selected: this.selected,
|
|
34
|
+
areAllSelected: this.areAllSelected,
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
this.onScroll = () => {
|
|
38
|
+
this.hasScrolled = this.container.scrollLeft > 0;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* TODO: Need to figure out how this interplays with data
|
|
42
|
+
* received from an API/server
|
|
43
|
+
*/
|
|
44
|
+
this.sortBy = (col, ascending = true) => {
|
|
45
|
+
this.rowData.sort((a, b) => {
|
|
46
|
+
const A = a[col];
|
|
47
|
+
const B = b[col];
|
|
48
|
+
if (typeof A === 'number' && typeof B === 'number') {
|
|
49
|
+
const f = ascending ? 1 : -1;
|
|
50
|
+
return A > B ? f : -f;
|
|
51
|
+
}
|
|
52
|
+
return -1;
|
|
53
|
+
});
|
|
54
|
+
this.rowData = Array.from(this.rowData);
|
|
55
|
+
this.render();
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
componentWillLoad() {
|
|
59
|
+
this.areAllSelected = false;
|
|
60
|
+
this.rowData = this.data !== undefined ? Array.from(this.data) : [];
|
|
61
|
+
this.selected = new Array(this.rowData.length).fill(false);
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
let className = 'xpl-table';
|
|
65
|
+
if (this.striped)
|
|
66
|
+
className += ' xpl-table--striped';
|
|
67
|
+
if (this.freeze)
|
|
68
|
+
className += ' xpl-table--freeze';
|
|
69
|
+
if (this.hasScrolled)
|
|
70
|
+
className += ' xpl-table--has-scrolled';
|
|
71
|
+
return (index.h(index.Host, null, index.h("div", { class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => (this.container = el) }, index.h("table", { class: className }, this.columns && (index.h("thead", null, this.columns.map((column, i) => {
|
|
72
|
+
return (index.h("th", null, this.multiselect && i === 0 ? (index.h("label", { htmlFor: "__xpl-table-th" }, index.h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
|
|
73
|
+
// appear indeterminate when at least one but not all
|
|
74
|
+
// are selected
|
|
75
|
+
indeterminate: !this
|
|
76
|
+
.areAllSelected &&
|
|
77
|
+
this.selected.some((a) => a), onChange: (e) => {
|
|
78
|
+
this.selectAll(e);
|
|
79
|
+
}, type: "checkbox" }), column)) : (column)));
|
|
80
|
+
}))), index.h("tbody", null, this.rowData.map((row, rowNum) => {
|
|
81
|
+
return (index.h("tr", { class: this.selected &&
|
|
82
|
+
this.selected[rowNum]
|
|
83
|
+
? 'xpl-table-row-selected'
|
|
84
|
+
: '' }, row.map((cell, i) => {
|
|
85
|
+
return (index.h("td", null, this.multiselect &&
|
|
86
|
+
i === 0 ? (index.h("label", { htmlFor: '__xpl-table-row-' +
|
|
87
|
+
rowNum }, index.h("input", { id: '__xpl-table-row-' +
|
|
88
|
+
rowNum, checked: this
|
|
89
|
+
.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), index.h("div", { innerHTML: cell }))) : (index.h("div", { innerHTML: cell }))));
|
|
90
|
+
})));
|
|
91
|
+
}))))));
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
exports.xpl_table = XplTable;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
|
|
7
|
+
const XplTag = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.close = index.createEvent(this, "close", 7);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (index.h(index.Host, { class: "xpl-tag-container" }, index.h("button", { class: "xpl-tag", onClick: () => {
|
|
14
|
+
this.close.emit();
|
|
15
|
+
} }, index.h("slot", null)), index.h("button", { class: "xpl-tag__close", onClick: () => {
|
|
16
|
+
this.close.emit();
|
|
17
|
+
} }, "\u00D7")));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.xpl_tag = XplTag;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
const index$1 = require('./index-318d5fc7.js');
|
|
7
7
|
|
|
8
8
|
const XplToggle = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -12,7 +12,7 @@ const XplToggle = class {
|
|
|
12
12
|
* The size of the toggle -- `default` or `small`
|
|
13
13
|
*/
|
|
14
14
|
this.variant = 'default';
|
|
15
|
-
this.id =
|
|
15
|
+
this.id = index$1.v4();
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
let containerClassName = 'xpl-toggle-container';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88e58962.js');
|
|
6
|
+
|
|
7
|
+
const XplUtilityBar = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.navOpen = index.createEvent(this, "navOpen", 7);
|
|
11
|
+
this.open = true;
|
|
12
|
+
this.bars = `
|
|
13
|
+
<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>
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
onNavToggle() {
|
|
17
|
+
this.open = !this.open;
|
|
18
|
+
this.navOpen.emit(this.open);
|
|
19
|
+
}
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.open =
|
|
22
|
+
this.isNavOpenAtStartup !== undefined
|
|
23
|
+
? this.isNavOpenAtStartup
|
|
24
|
+
: this.open;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (index.h(index.Host, null, index.h("nav", { "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (index.h("div", null, index.h("button", { class: "xpl-utility-bar__nav-control", onClick: () => this.onNavToggle(), innerHTML: `${this.bars}` }), index.h("slot", { name: "aside" }))) : (index.h("slot", { name: "aside" })), index.h("slot", { name: "main" }))));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.xpl_utility_bar = XplUtilityBar;
|