@xplortech/apollo-core 1.0.0-beta.5 → 1.0.0-beta.7

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 (155) hide show
  1. package/LICENSE +21 -0
  2. package/build/style.css +1 -1
  3. package/dist/apollo-core/apollo-core.css +9 -5841
  4. package/dist/apollo-core/apollo-core.esm.js +1 -125
  5. package/dist/apollo-core/index.esm.js +0 -1
  6. package/dist/apollo-core/p-ee16942f.entry.js +1 -0
  7. package/dist/cjs/apollo-core.cjs.js +4 -112
  8. package/dist/cjs/index.cjs.js +0 -1
  9. package/dist/cjs/loader.cjs.js +2 -18
  10. package/dist/cjs/xpl-application-shell.cjs.entry.js +1 -1
  11. package/dist/cjs/xpl-avatar_12.cjs.entry.js +17 -17
  12. package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -1
  13. package/dist/cjs/xpl-button-row.cjs.entry.js +1 -1
  14. package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -1
  15. package/dist/cjs/xpl-divider.cjs.entry.js +1 -1
  16. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +4 -1
  17. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +1 -2
  18. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
  19. package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
  20. package/dist/cjs/xpl-input.cjs.entry.js +4 -21
  21. package/dist/cjs/xpl-list.cjs.entry.js +2 -2
  22. package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -1
  23. package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
  24. package/dist/cjs/xpl-select.cjs.entry.js +3 -44
  25. package/dist/cjs/xpl-toggle.cjs.entry.js +3 -3
  26. package/dist/collection/collection-manifest.json +1 -1
  27. package/dist/collection/components/xpl-choicelist/choice.js +1 -0
  28. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +3 -3
  29. package/dist/collection/components/xpl-dropdown/dropdownoption.js +1 -0
  30. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -1
  31. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +4 -1
  32. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +16 -8
  33. package/dist/collection/components/xpl-list/listitem.js +1 -0
  34. package/dist/collection/components/xpl-list/xpl-list.js +2 -2
  35. package/dist/collection/components/xpl-select/selectchoice.js +1 -0
  36. package/dist/collection/components/xpl-select/xpl-select.js +2 -1
  37. package/dist/collection/components/xpl-table/xpl-table.js +17 -17
  38. package/dist/custom-elements/index.js +23 -604
  39. package/dist/esm/apollo-core.js +4 -112
  40. package/dist/esm/index.js +1 -1
  41. package/dist/esm/loader.js +2 -18
  42. package/dist/esm/xpl-application-shell.entry.js +1 -1
  43. package/dist/esm/xpl-avatar_12.entry.js +17 -17
  44. package/dist/esm/xpl-backdrop.entry.js +1 -1
  45. package/dist/esm/xpl-button-row.entry.js +1 -1
  46. package/dist/esm/xpl-choicelist.entry.js +1 -1
  47. package/dist/esm/xpl-divider.entry.js +1 -1
  48. package/dist/esm/xpl-dropdown-group_3.entry.js +4 -1
  49. package/dist/esm/xpl-dropdown_2.entry.js +1 -2
  50. package/dist/esm/xpl-grid-item.entry.js +1 -1
  51. package/dist/esm/xpl-grid.entry.js +1 -1
  52. package/dist/esm/xpl-input.entry.js +3 -20
  53. package/dist/esm/xpl-list.entry.js +2 -2
  54. package/dist/esm/xpl-main-nav.entry.js +1 -1
  55. package/dist/esm/xpl-pagination.entry.js +1 -1
  56. package/dist/esm/xpl-select.entry.js +2 -43
  57. package/dist/esm/xpl-toggle.entry.js +2 -2
  58. package/dist/types/components/xpl-choicelist/choice.d.ts +5 -5
  59. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +2 -1
  60. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +8 -10
  61. package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +1 -0
  62. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +6 -4
  63. package/dist/types/components/xpl-list/listitem.d.ts +15 -19
  64. package/dist/types/components/xpl-list/xpl-list.d.ts +1 -0
  65. package/dist/types/components/xpl-select/selectchoice.d.ts +3 -2
  66. package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
  67. package/dist/types/components/xpl-table/xpl-table.d.ts +5 -6
  68. package/dist/types/components.d.ts +17 -6
  69. package/package.json +2 -2
  70. package/dist/apollo-core/app-globals-0f993ce5.js +0 -3
  71. package/dist/apollo-core/css-shim-bbdf0cc6.js +0 -4
  72. package/dist/apollo-core/dom-1f98a75f.js +0 -73
  73. package/dist/apollo-core/index-5b4a209e.js +0 -2938
  74. package/dist/apollo-core/index-912d1a21.js +0 -584
  75. package/dist/apollo-core/p-50eb8239.entry.js +0 -1
  76. package/dist/apollo-core/regular-133c23b5.js +0 -16052
  77. package/dist/apollo-core/shadow-css-67b66845.js +0 -389
  78. package/dist/apollo-core/xpl-application-shell.entry.js +0 -60
  79. package/dist/apollo-core/xpl-avatar.entry.js +0 -19
  80. package/dist/apollo-core/xpl-backdrop.entry.js +0 -21
  81. package/dist/apollo-core/xpl-badge.entry.js +0 -17
  82. package/dist/apollo-core/xpl-breadcrumb-item.entry.js +0 -17
  83. package/dist/apollo-core/xpl-breadcrumbs.entry.js +0 -12
  84. package/dist/apollo-core/xpl-button-row.entry.js +0 -18
  85. package/dist/apollo-core/xpl-button.entry.js +0 -60
  86. package/dist/apollo-core/xpl-checkbox.entry.js +0 -25
  87. package/dist/apollo-core/xpl-choicelist.entry.js +0 -39
  88. package/dist/apollo-core/xpl-content-area.entry.js +0 -16
  89. package/dist/apollo-core/xpl-divider.entry.js +0 -14
  90. package/dist/apollo-core/xpl-dropdown-group.entry.js +0 -31
  91. package/dist/apollo-core/xpl-dropdown-heading.entry.js +0 -12
  92. package/dist/apollo-core/xpl-dropdown-option.entry.js +0 -61
  93. package/dist/apollo-core/xpl-dropdown.entry.js +0 -104
  94. package/dist/apollo-core/xpl-grid-item.entry.js +0 -21
  95. package/dist/apollo-core/xpl-grid.entry.js +0 -31
  96. package/dist/apollo-core/xpl-input.entry.js +0 -2547
  97. package/dist/apollo-core/xpl-list.entry.js +0 -57
  98. package/dist/apollo-core/xpl-main-nav.entry.js +0 -26
  99. package/dist/apollo-core/xpl-nav-item.entry.js +0 -26
  100. package/dist/apollo-core/xpl-pagination.entry.js +0 -72
  101. package/dist/apollo-core/xpl-radio.entry.js +0 -25
  102. package/dist/apollo-core/xpl-secondary-nav.entry.js +0 -12
  103. package/dist/apollo-core/xpl-select.entry.js +0 -662
  104. package/dist/apollo-core/xpl-table.entry.js +0 -91
  105. package/dist/apollo-core/xpl-tag.entry.js +0 -17
  106. package/dist/apollo-core/xpl-toggle.entry.js +0 -30
  107. package/dist/apollo-core/xpl-utility-bar.entry.js +0 -27
  108. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  109. package/dist/cjs/css-shim-a7379e2b.js +0 -6
  110. package/dist/cjs/dom-3e7d9c3b.js +0 -75
  111. package/dist/cjs/index-318d5fc7.js +0 -586
  112. package/dist/cjs/index-88e58962.js +0 -2975
  113. package/dist/cjs/regular-503465f4.js +0 -16054
  114. package/dist/cjs/shadow-css-09555044.js +0 -391
  115. package/dist/cjs/xpl-avatar.cjs.entry.js +0 -23
  116. package/dist/cjs/xpl-badge.cjs.entry.js +0 -21
  117. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +0 -21
  118. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +0 -16
  119. package/dist/cjs/xpl-button.cjs.entry.js +0 -64
  120. package/dist/cjs/xpl-checkbox.cjs.entry.js +0 -29
  121. package/dist/cjs/xpl-content-area.cjs.entry.js +0 -20
  122. package/dist/cjs/xpl-dropdown-group.cjs.entry.js +0 -35
  123. package/dist/cjs/xpl-dropdown-heading.cjs.entry.js +0 -16
  124. package/dist/cjs/xpl-dropdown-option.cjs.entry.js +0 -65
  125. package/dist/cjs/xpl-dropdown.cjs.entry.js +0 -108
  126. package/dist/cjs/xpl-nav-item.cjs.entry.js +0 -30
  127. package/dist/cjs/xpl-radio.cjs.entry.js +0 -29
  128. package/dist/cjs/xpl-secondary-nav.cjs.entry.js +0 -16
  129. package/dist/cjs/xpl-table.cjs.entry.js +0 -95
  130. package/dist/cjs/xpl-tag.cjs.entry.js +0 -21
  131. package/dist/cjs/xpl-utility-bar.cjs.entry.js +0 -31
  132. package/dist/esm/app-globals-0f993ce5.js +0 -3
  133. package/dist/esm/css-shim-bbdf0cc6.js +0 -4
  134. package/dist/esm/dom-1f98a75f.js +0 -73
  135. package/dist/esm/index-5b4a209e.js +0 -2938
  136. package/dist/esm/index-912d1a21.js +0 -584
  137. package/dist/esm/regular-133c23b5.js +0 -16052
  138. package/dist/esm/shadow-css-67b66845.js +0 -389
  139. package/dist/esm/xpl-avatar.entry.js +0 -19
  140. package/dist/esm/xpl-badge.entry.js +0 -17
  141. package/dist/esm/xpl-breadcrumb-item.entry.js +0 -17
  142. package/dist/esm/xpl-breadcrumbs.entry.js +0 -12
  143. package/dist/esm/xpl-button.entry.js +0 -60
  144. package/dist/esm/xpl-checkbox.entry.js +0 -25
  145. package/dist/esm/xpl-content-area.entry.js +0 -16
  146. package/dist/esm/xpl-dropdown-group.entry.js +0 -31
  147. package/dist/esm/xpl-dropdown-heading.entry.js +0 -12
  148. package/dist/esm/xpl-dropdown-option.entry.js +0 -61
  149. package/dist/esm/xpl-dropdown.entry.js +0 -104
  150. package/dist/esm/xpl-nav-item.entry.js +0 -26
  151. package/dist/esm/xpl-radio.entry.js +0 -25
  152. package/dist/esm/xpl-secondary-nav.entry.js +0 -12
  153. package/dist/esm/xpl-table.entry.js +0 -91
  154. package/dist/esm/xpl-tag.entry.js +0 -17
  155. package/dist/esm/xpl-utility-bar.entry.js +0 -27
@@ -1,104 +0,0 @@
1
- import { r as registerInstance, h, e as Host, g as getElement } from './index-5b4a209e.js';
2
-
3
- var __rest = (undefined && undefined.__rest) || function (s, e) {
4
- var t = {};
5
- for (var p in s)
6
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
7
- t[p] = s[p];
8
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
9
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
11
- t[p[i]] = s[p[i]];
12
- }
13
- return t;
14
- };
15
- const XplDropdown = class {
16
- constructor(hostRef) {
17
- registerInstance(this, hostRef);
18
- /** text to display as heading */
19
- // eslint-disable-next-line @stencil/strict-mutable
20
- this.isOpen = false;
21
- /** options that are listed */
22
- this.closeOnSelect = true;
23
- /** constant representing number of options that can be selected */
24
- this.mode = 'single';
25
- /** whether selection should be made when focusing on interactable element */
26
- this.selectOnFocus = false;
27
- this.handleClickOutside = ({ target }) => {
28
- const { triggerId } = this;
29
- const isTrigger = triggerId && target.id === triggerId;
30
- const isInside = this.hostElement.contains(target);
31
- if (!isInside && !isTrigger)
32
- this.isOpen = false;
33
- };
34
- }
35
- /**
36
- * called on dropdown option click and keydown events to update isSelected states
37
- */
38
- async handleSelect(e, { component }) {
39
- const { hostElement, mode, options, update } = this;
40
- const isSingle = mode === 'single';
41
- const isMulti = mode === 'multi';
42
- if (Boolean(options)) {
43
- options
44
- .reduce((acc, curr) => [
45
- ...acc,
46
- ...(curr.groupName ? curr.options : [curr]),
47
- ], [])
48
- .forEach((option) => {
49
- const isMatch = option.label === component.hostElement.label;
50
- if (isSingle) {
51
- option.isSelected = isMatch;
52
- component.hostElement.isSelected = option.isSelected;
53
- }
54
- else if (isMulti && isMatch) {
55
- option.isSelected = !option.isSelected;
56
- component.hostElement.isSelected = option.isSelected;
57
- }
58
- });
59
- const mapOptions = (option) => {
60
- option.options = option.groupName
61
- ? option.options.map(mapOptions)
62
- : undefined;
63
- return option;
64
- };
65
- this.options = options.map(mapOptions);
66
- }
67
- else if (isSingle) {
68
- const optionNodes = Array.from(hostElement.querySelectorAll('xpl-dropdown-option'));
69
- optionNodes.forEach((node) => (node.isSelected = node === component.hostElement));
70
- }
71
- else if (isMulti) {
72
- component.isSelected = !component.isSelected;
73
- }
74
- if (Boolean(update))
75
- update(e, { component: this });
76
- }
77
- componentWillLoad() {
78
- this.handleSelect = this.handleSelect.bind(this);
79
- }
80
- connectedCallback() {
81
- document.addEventListener('mousedown', this.handleClickOutside.bind(this));
82
- }
83
- disconnectedCallback() {
84
- document.removeEventListener('mousedown', this.handleClickOutside);
85
- }
86
- render() {
87
- let { isOpen } = this;
88
- const { mode, options } = this;
89
- const hasOptions = options && options.length;
90
- const mappedOptions = hasOptions &&
91
- options.map((_a) => {
92
- var { groupName, options } = _a, properties = __rest(_a, ["groupName", "options"]);
93
- return groupName ? (h("xpl-dropdown-group", Object.assign({ groupName: groupName, options: options }, properties))) : (h("xpl-dropdown-option", Object.assign({}, properties)));
94
- });
95
- return (h(Host, { "aria-expanded": isOpen, class: {
96
- 'xpl-dropdown': true,
97
- 'xpl-dropdown--multi': mode === 'multi',
98
- 'xpl-dropdown--open': isOpen,
99
- }, role: "listbox" }, h("ul", { class: "xpl-dropdown-list" }, mappedOptions || h("slot", { name: "options" }))));
100
- }
101
- get hostElement() { return getElement(this); }
102
- };
103
-
104
- export { XplDropdown as xpl_dropdown };
@@ -1,26 +0,0 @@
1
- import { r as registerInstance, f as createEvent, h, e as Host } from './index-5b4a209e.js';
2
-
3
- const XplNavItem = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.navOpen = createEvent(this, "navOpen", 7);
7
- /**
8
- * @property {boolean} - Whether or not the item should control the main nav state on click
9
- */
10
- this.navControl = false;
11
- }
12
- onNavToggle() {
13
- if (window.innerWidth <= 640) {
14
- this.navOpen.emit(false);
15
- }
16
- }
17
- render() {
18
- return (h(Host, { class: "xpl-nav-item", role: "listitem", onClick: () => {
19
- if (this.navControl) {
20
- this.onNavToggle();
21
- }
22
- } }, h("slot", { name: "link" }, h("slot", { name: "icon" }), h("slot", null))));
23
- }
24
- };
25
-
26
- export { XplNavItem as xpl_nav_item };
@@ -1,25 +0,0 @@
1
- import { r as registerInstance, f as createEvent, h, e as Host } from './index-5b4a209e.js';
2
- import { v as v4 } from './index-912d1a21.js';
3
-
4
- const XplRadio = class {
5
- constructor(hostRef) {
6
- registerInstance(this, hostRef);
7
- this.radioChange = createEvent(this, "radioChange", 7);
8
- this.id = v4();
9
- }
10
- render() {
11
- return (h(Host, { class: {
12
- 'xpl-checkbox-radio-container': true,
13
- styled: this.styled,
14
- disabled: this.disabled,
15
- } }, 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) }), h("label", { class: {
16
- 'xpl-label': true,
17
- 'xpl-label--disabled': this.disabled,
18
- }, htmlFor: this.id }, h("slot", null), this.description && (h("small", { class: {
19
- 'xpl-description': true,
20
- 'xpl-description--disabled': this.disabled,
21
- } }, this.description)))));
22
- }
23
- };
24
-
25
- export { XplRadio as xpl_radio };
@@ -1,12 +0,0 @@
1
- import { r as registerInstance, h, e as Host } from './index-5b4a209e.js';
2
-
3
- const XplSecondaryNav = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- }
7
- render() {
8
- return (h(Host, { class: "xpl-secondary-nav" }, h("nav", { "aria-label": "Secondary Nav" }, h("slot", null))));
9
- }
10
- };
11
-
12
- export { XplSecondaryNav as xpl_secondary_nav };
@@ -1,91 +0,0 @@
1
- import { r as registerInstance, f as createEvent, h, e as Host } from './index-5b4a209e.js';
2
-
3
- const XplTable = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.tableSelect = createEvent(this, "tableSelect", 7);
7
- this.areAllSelected = false;
8
- this.hasScrolled = false;
9
- this.selectAll = (e) => {
10
- const { target } = e;
11
- if (!(target instanceof HTMLInputElement))
12
- return;
13
- const { checked } = target;
14
- this.areAllSelected = checked;
15
- this.selected = this.selected.map(() => checked);
16
- this.onChange();
17
- };
18
- this.selectOne = (e, i) => {
19
- const { target } = e;
20
- if (!(target instanceof HTMLInputElement))
21
- return;
22
- const { checked } = target;
23
- this.areAllSelected = false;
24
- this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));
25
- this.onChange();
26
- };
27
- this.onChange = () => {
28
- this.tableSelect.emit({
29
- selected: this.selected,
30
- areAllSelected: this.areAllSelected,
31
- });
32
- };
33
- this.onScroll = () => {
34
- this.hasScrolled = this.container.scrollLeft > 0;
35
- };
36
- /**
37
- * TODO: Need to figure out how this interplays with data
38
- * received from an API/server
39
- */
40
- this.sortBy = (col, ascending = true) => {
41
- this.rowData.sort((a, b) => {
42
- const A = a[col];
43
- const B = b[col];
44
- if (typeof A === 'number' && typeof B === 'number') {
45
- const f = ascending ? 1 : -1;
46
- return A > B ? f : -f;
47
- }
48
- return -1;
49
- });
50
- this.rowData = Array.from(this.rowData);
51
- this.render();
52
- };
53
- }
54
- componentWillLoad() {
55
- this.areAllSelected = false;
56
- this.rowData = this.data !== undefined ? Array.from(this.data) : [];
57
- this.selected = new Array(this.rowData.length).fill(false);
58
- }
59
- render() {
60
- let className = 'xpl-table';
61
- if (this.striped)
62
- className += ' xpl-table--striped';
63
- if (this.freeze)
64
- className += ' xpl-table--freeze';
65
- if (this.hasScrolled)
66
- className += ' xpl-table--has-scrolled';
67
- 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) => {
68
- return (h("th", null, this.multiselect && i === 0 ? (h("label", { htmlFor: "__xpl-table-th" }, h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
69
- // appear indeterminate when at least one but not all
70
- // are selected
71
- indeterminate: !this
72
- .areAllSelected &&
73
- this.selected.some((a) => a), onChange: (e) => {
74
- this.selectAll(e);
75
- }, type: "checkbox" }), column)) : (column)));
76
- }))), h("tbody", null, this.rowData.map((row, rowNum) => {
77
- return (h("tr", { class: this.selected &&
78
- this.selected[rowNum]
79
- ? 'xpl-table-row-selected'
80
- : '' }, row.map((cell, i) => {
81
- return (h("td", null, this.multiselect &&
82
- i === 0 ? (h("label", { htmlFor: '__xpl-table-row-' +
83
- rowNum }, h("input", { id: '__xpl-table-row-' +
84
- rowNum, checked: this
85
- .selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))));
86
- })));
87
- }))))));
88
- }
89
- };
90
-
91
- export { XplTable as xpl_table };
@@ -1,17 +0,0 @@
1
- import { r as registerInstance, f as createEvent, h, e as Host } from './index-5b4a209e.js';
2
-
3
- const XplTag = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.close = createEvent(this, "close", 7);
7
- }
8
- render() {
9
- return (h(Host, { class: "xpl-tag-container" }, h("button", { class: "xpl-tag", onClick: () => {
10
- this.close.emit();
11
- } }, h("slot", null)), h("button", { class: "xpl-tag__close", onClick: () => {
12
- this.close.emit();
13
- } }, "\u00D7")));
14
- }
15
- };
16
-
17
- export { XplTag as xpl_tag };
@@ -1,27 +0,0 @@
1
- import { r as registerInstance, f as createEvent, h, e as Host } from './index-5b4a209e.js';
2
-
3
- const XplUtilityBar = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.navOpen = createEvent(this, "navOpen", 7);
7
- this.open = true;
8
- this.bars = `
9
- <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>
10
- `;
11
- }
12
- onNavToggle() {
13
- this.open = !this.open;
14
- this.navOpen.emit(this.open);
15
- }
16
- componentWillLoad() {
17
- this.open =
18
- this.isNavOpenAtStartup !== undefined
19
- ? this.isNavOpenAtStartup
20
- : this.open;
21
- }
22
- render() {
23
- return (h(Host, null, h("nav", { "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (h("div", null, h("button", { class: "xpl-utility-bar__nav-control", onClick: () => this.onNavToggle(), innerHTML: `${this.bars}` }), h("slot", { name: "aside" }))) : (h("slot", { name: "aside" })), h("slot", { name: "main" }))));
24
- }
25
- };
26
-
27
- export { XplUtilityBar as xpl_utility_bar };