@xplortech/apollo-core 0.5.3 → 1.0.0-beta.0
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 +758 -383
- package/dist/apollo-core/apollo-core.css +9 -5468
- package/dist/apollo-core/apollo-core.esm.js +1 -125
- package/dist/apollo-core/index.esm.js +0 -1
- package/dist/apollo-core/p-09b2f746.entry.js +1 -0
- package/dist/apollo-core/p-0bc956c6.entry.js +1 -0
- package/dist/apollo-core/p-1b1e7207.entry.js +1 -0
- package/dist/apollo-core/p-20389bb6.entry.js +1 -0
- package/dist/apollo-core/p-25983fde.entry.js +1 -0
- package/dist/apollo-core/p-2f90296c.js +10 -0
- package/dist/apollo-core/p-4a348764.entry.js +1 -0
- package/dist/apollo-core/p-4e2b69e8.entry.js +1 -0
- package/dist/apollo-core/p-84bf6b2d.entry.js +1 -0
- package/dist/apollo-core/p-880c0359.entry.js +1 -0
- package/dist/apollo-core/p-8e47a5be.entry.js +1 -0
- package/dist/apollo-core/p-93958292.entry.js +1 -0
- package/dist/apollo-core/p-93c27db5.entry.js +1 -0
- package/dist/apollo-core/p-ad90fe4d.js +1 -0
- package/dist/apollo-core/p-b2327e2c.entry.js +1 -0
- package/dist/apollo-core/p-c55b5d9c.entry.js +1 -0
- package/dist/apollo-core/p-e369d7af.entry.js +1 -0
- package/dist/apollo-core/p-e60ecaef.entry.js +1 -0
- package/dist/apollo-core/p-f929c958.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +19 -0
- package/dist/cjs/index-54ba5804.js +1623 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/{apollo-core/regular-133c23b5.js → cjs/regular-872f5226.js} +3 -12
- package/dist/cjs/v4-14140ff3.js +77 -0
- package/dist/cjs/xpl-application-shell.cjs.entry.js +58 -0
- package/dist/cjs/xpl-avatar_12.cjs.entry.js +299 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +25 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +22 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +43 -0
- package/dist/cjs/xpl-divider.cjs.entry.js +18 -0
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +104 -0
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js +123 -0
- package/dist/cjs/xpl-grid-item.cjs.entry.js +25 -0
- package/dist/cjs/xpl-grid.cjs.entry.js +35 -0
- package/dist/cjs/xpl-input.cjs.entry.js +2534 -0
- package/dist/cjs/xpl-list.cjs.entry.js +61 -0
- package/dist/cjs/xpl-main-nav.cjs.entry.js +30 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +76 -0
- package/dist/cjs/xpl-select.cjs.entry.js +625 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +34 -0
- package/dist/collection/collection-manifest.json +41 -0
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +147 -0
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +158 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +41 -0
- package/dist/collection/components/xpl-badge/xpl-badge.js +50 -0
- package/dist/{apollo-core/xpl-breadcrumb-item.entry.js → collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js} +12 -11
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +13 -0
- package/dist/collection/components/xpl-button/xpl-button.js +211 -0
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +117 -0
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +185 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +150 -0
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +39 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +30 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +66 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +27 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +110 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +260 -0
- package/dist/collection/components/xpl-grid/xpl-grid.js +26 -0
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +93 -0
- package/dist/collection/components/xpl-input/xpl-input.js +478 -0
- package/dist/collection/components/xpl-list/xpl-list.js +91 -0
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +72 -0
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +67 -0
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +190 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +168 -0
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +9 -0
- package/dist/collection/components/xpl-select/xpl-select.js +344 -0
- package/dist/collection/components/xpl-table/xpl-table.js +200 -0
- package/dist/collection/components/xpl-tag/xpl-tag.js +30 -0
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +157 -0
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +66 -0
- package/dist/custom-elements/index.d.ts +24 -0
- package/dist/custom-elements/index.js +20201 -0
- package/dist/esm/apollo-core.js +17 -0
- package/dist/esm/index-3df6db84.js +1594 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/regular-86225e9d.js +16041 -0
- package/dist/esm/v4-929670b7.js +75 -0
- package/dist/{apollo-core → esm}/xpl-application-shell.entry.js +12 -8
- package/dist/esm/xpl-avatar_12.entry.js +284 -0
- package/dist/{apollo-core → esm}/xpl-backdrop.entry.js +2 -2
- package/dist/{apollo-core → esm}/xpl-button-row.entry.js +2 -4
- package/dist/esm/xpl-choicelist.entry.js +39 -0
- package/dist/{apollo-core → esm}/xpl-divider.entry.js +2 -2
- package/dist/esm/xpl-dropdown-group_3.entry.js +98 -0
- package/dist/esm/xpl-dropdown_2.entry.js +118 -0
- package/dist/{apollo-core → esm}/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +31 -0
- package/dist/{apollo-core → esm}/xpl-input.entry.js +35 -45
- package/dist/{apollo-core → esm}/xpl-list.entry.js +18 -20
- package/dist/{apollo-core → esm}/xpl-main-nav.entry.js +2 -2
- package/dist/{apollo-core → esm}/xpl-pagination.entry.js +8 -8
- package/dist/{apollo-core → esm}/xpl-select.entry.js +88 -126
- package/dist/esm/xpl-toggle.entry.js +30 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stories/application-shell.stories.js +767 -0
- package/dist/stories/avatar.stories.js +173 -0
- package/dist/stories/backdrop.stories.js +18 -0
- package/dist/stories/badge.stories.js +48 -0
- package/dist/stories/breadcrumbs.stories.js +117 -0
- package/dist/stories/button-row.stories.js +68 -0
- package/dist/stories/button.stories.js +110 -0
- package/dist/stories/checkbox.stories.js +78 -0
- package/dist/stories/choicelist.stories.js +112 -0
- package/dist/stories/content-area.stories.js +53 -0
- package/dist/stories/divider.stories.js +34 -0
- package/dist/stories/dropdown.stories.js +377 -0
- package/dist/stories/grid.stories.js +100 -0
- package/dist/stories/input.stories.js +268 -0
- package/dist/stories/list.stories.js +154 -0
- package/dist/stories/main-nav.stories.js +308 -0
- package/dist/stories/pagination.stories.js +84 -0
- package/dist/stories/radio.stories.js +68 -0
- package/dist/stories/secondary-nav.stories.js +76 -0
- package/dist/stories/select.stories.js +119 -0
- package/dist/stories/table.stories.js +107 -0
- package/dist/stories/tabs.stories.js +24 -0
- package/dist/stories/toggle.stories.js +84 -0
- package/dist/stories/utility-bar.stories.js +94 -0
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/application-shell.stories.d.ts +4 -4
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/avatar.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/backdrop.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/badge.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/button-row.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/button.stories.d.ts +19 -10
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/checkbox.stories.d.ts +2 -2
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/choicelist.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/content-area.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/divider.stories.d.ts +1 -1
- package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/dropdown.stories.d.ts +134 -0
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/grid.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/input.stories.d.ts +5 -5
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/list.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/main-nav.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/radio.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/secondary-nav.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/select.stories.d.ts +2 -2
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/table.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/toggle.stories.d.ts +2 -2
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +2 -2
- package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +3 -3
- package/dist/types/components/xpl-badge/xpl-badge.d.ts +1 -1
- package/dist/types/components/xpl-button/xpl-button.d.ts +32 -8
- package/dist/types/components/xpl-button-row/xpl-button-row.d.ts +3 -3
- package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +1 -1
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +0 -1
- package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +3 -3
- package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +7 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.d.ts +5 -0
- package/dist/types/components/xpl-input/xpl-input.d.ts +4 -4
- package/dist/types/components/xpl-list/xpl-list.d.ts +2 -3
- package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +1 -1
- package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +10 -0
- package/dist/types/components/xpl-pagination/xpl-pagination.d.ts +1 -1
- package/dist/types/components/xpl-radio/xpl-radio.d.ts +1 -1
- package/dist/types/components/xpl-select/xpl-select.d.ts +6 -3
- package/dist/types/components/xpl-table/xpl-table.d.ts +1 -1
- package/dist/types/components/xpl-toggle/xpl-toggle.d.ts +1 -1
- package/dist/types/components.d.ts +264 -43
- package/package.json +10 -4
- package/dist/apollo-core/app-globals-0f993ce5.js +0 -3
- package/dist/apollo-core/css-shim-bbdf0cc6.js +0 -4
- package/dist/apollo-core/dom-1f98a75f.js +0 -73
- package/dist/apollo-core/index-3c9f25ef.js +0 -2938
- package/dist/apollo-core/index-912d1a21.js +0 -584
- package/dist/apollo-core/shadow-css-67b66845.js +0 -389
- package/dist/apollo-core/xpl-avatar.entry.js +0 -19
- package/dist/apollo-core/xpl-badge.entry.js +0 -17
- package/dist/apollo-core/xpl-breadcrumbs.entry.js +0 -14
- package/dist/apollo-core/xpl-button.entry.js +0 -34
- package/dist/apollo-core/xpl-checkbox.entry.js +0 -25
- package/dist/apollo-core/xpl-choicelist.entry.js +0 -32
- package/dist/apollo-core/xpl-content-area.entry.js +0 -16
- package/dist/apollo-core/xpl-grid.entry.js +0 -31
- package/dist/apollo-core/xpl-nav-item.entry.js +0 -12
- package/dist/apollo-core/xpl-radio.entry.js +0 -25
- package/dist/apollo-core/xpl-secondary-nav.entry.js +0 -12
- package/dist/apollo-core/xpl-table.entry.js +0 -85
- package/dist/apollo-core/xpl-tag.entry.js +0 -17
- package/dist/apollo-core/xpl-toggle.entry.js +0 -30
- package/dist/apollo-core/xpl-utility-bar.entry.js +0 -25
- package/dist/types/components/xpl-choicelist/choice.d.ts +0 -6
- package/dist/types/components/xpl-dropdown/dropdownchoice.d.ts +0 -6
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +0 -11
- package/dist/types/components/xpl-list/listitem.d.ts +0 -16
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { Component, Host, h, Prop, State } from '@stencil/core';
|
|
2
|
+
import { v4 as uuid } from 'uuid';
|
|
3
|
+
export class XplToggle {
|
|
4
|
+
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* The size of the toggle -- `default` or `small`
|
|
7
|
+
*/
|
|
8
|
+
this.variant = 'default';
|
|
9
|
+
this.id = uuid();
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
let containerClassName = 'xpl-toggle-container';
|
|
13
|
+
if (this.disabled)
|
|
14
|
+
containerClassName += ' xpl-toggle-container--disabled';
|
|
15
|
+
let className = 'xpl-toggle';
|
|
16
|
+
if (this.variant === 'small')
|
|
17
|
+
className += ' xpl-toggle--small';
|
|
18
|
+
return (h(Host, { class: containerClassName },
|
|
19
|
+
(this.heading || this.description) && (h("label", { class: {
|
|
20
|
+
'xpl-label': true,
|
|
21
|
+
'xpl-label--disabled': this.disabled,
|
|
22
|
+
}, htmlFor: this.id },
|
|
23
|
+
this.heading,
|
|
24
|
+
this.description && (h("small", { class: {
|
|
25
|
+
'xpl-description': true,
|
|
26
|
+
'xpl-description--disabled': this.disabled,
|
|
27
|
+
} }, this.description)))),
|
|
28
|
+
h("input", { class: className, type: "checkbox", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name }),
|
|
29
|
+
this.label && h("label", { htmlFor: this.id }, this.label)));
|
|
30
|
+
}
|
|
31
|
+
static get is() { return "xpl-toggle"; }
|
|
32
|
+
static get properties() { return {
|
|
33
|
+
"checked": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "boolean",
|
|
38
|
+
"resolved": "boolean",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": true,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": ""
|
|
46
|
+
},
|
|
47
|
+
"attribute": "checked",
|
|
48
|
+
"reflect": false
|
|
49
|
+
},
|
|
50
|
+
"description": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"mutable": false,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "string",
|
|
55
|
+
"resolved": "string",
|
|
56
|
+
"references": {}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": true,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": "The toggle's description appears *above* the toggle."
|
|
63
|
+
},
|
|
64
|
+
"attribute": "description",
|
|
65
|
+
"reflect": false
|
|
66
|
+
},
|
|
67
|
+
"disabled": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "boolean",
|
|
72
|
+
"resolved": "boolean",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": true,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"attribute": "disabled",
|
|
82
|
+
"reflect": false
|
|
83
|
+
},
|
|
84
|
+
"heading": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "string",
|
|
89
|
+
"resolved": "string",
|
|
90
|
+
"references": {}
|
|
91
|
+
},
|
|
92
|
+
"required": false,
|
|
93
|
+
"optional": true,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": "The toggle's heading appears *above* the toggle."
|
|
97
|
+
},
|
|
98
|
+
"attribute": "heading",
|
|
99
|
+
"reflect": false
|
|
100
|
+
},
|
|
101
|
+
"label": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "string",
|
|
106
|
+
"resolved": "string",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": true,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": "The toggle's label appears *to the right of* the toggle."
|
|
114
|
+
},
|
|
115
|
+
"attribute": "label",
|
|
116
|
+
"reflect": false
|
|
117
|
+
},
|
|
118
|
+
"name": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "string",
|
|
123
|
+
"resolved": "string",
|
|
124
|
+
"references": {}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": true,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": ""
|
|
131
|
+
},
|
|
132
|
+
"attribute": "name",
|
|
133
|
+
"reflect": false
|
|
134
|
+
},
|
|
135
|
+
"variant": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"mutable": false,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "'default' | 'small'",
|
|
140
|
+
"resolved": "\"default\" | \"small\"",
|
|
141
|
+
"references": {}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": true,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": "The size of the toggle -- `default` or `small`"
|
|
148
|
+
},
|
|
149
|
+
"attribute": "variant",
|
|
150
|
+
"reflect": false,
|
|
151
|
+
"defaultValue": "'default'"
|
|
152
|
+
}
|
|
153
|
+
}; }
|
|
154
|
+
static get states() { return {
|
|
155
|
+
"id": {}
|
|
156
|
+
}; }
|
|
157
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Component, Event, Host, h, Prop, State, } from '@stencil/core';
|
|
2
|
+
export class XplUtilityBar {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.open = true;
|
|
5
|
+
this.bars = `
|
|
6
|
+
<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>
|
|
7
|
+
`;
|
|
8
|
+
}
|
|
9
|
+
onNavToggle() {
|
|
10
|
+
this.open = !this.open;
|
|
11
|
+
this.navOpen.emit(this.open);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, null,
|
|
15
|
+
h("nav", { "aria-label": "utility navigation bar", class: "xpl-utility-bar" },
|
|
16
|
+
this.navControl ? (h("div", null,
|
|
17
|
+
h("button", { onClick: () => this.onNavToggle(), innerHTML: `${this.bars}` }),
|
|
18
|
+
h("slot", { name: "aside" }))) : (h("slot", { name: "aside" })),
|
|
19
|
+
h("slot", { name: "main" }))));
|
|
20
|
+
}
|
|
21
|
+
static get is() { return "xpl-utility-bar"; }
|
|
22
|
+
static get properties() { return {
|
|
23
|
+
"navControl": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"mutable": false,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "boolean",
|
|
28
|
+
"resolved": "boolean",
|
|
29
|
+
"references": {}
|
|
30
|
+
},
|
|
31
|
+
"required": false,
|
|
32
|
+
"optional": true,
|
|
33
|
+
"docs": {
|
|
34
|
+
"tags": [{
|
|
35
|
+
"text": "{boolean} - whether or not to show the bars to control the state of the navigation bar (open/close)",
|
|
36
|
+
"name": "property"
|
|
37
|
+
}],
|
|
38
|
+
"text": ""
|
|
39
|
+
},
|
|
40
|
+
"attribute": "nav-control",
|
|
41
|
+
"reflect": false
|
|
42
|
+
}
|
|
43
|
+
}; }
|
|
44
|
+
static get states() { return {
|
|
45
|
+
"open": {}
|
|
46
|
+
}; }
|
|
47
|
+
static get events() { return [{
|
|
48
|
+
"method": "navOpen",
|
|
49
|
+
"name": "navOpen",
|
|
50
|
+
"bubbles": true,
|
|
51
|
+
"cancelable": true,
|
|
52
|
+
"composed": true,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [{
|
|
55
|
+
"text": "{boolean} - Emits the desired state of the navigation bar (open: true/false)",
|
|
56
|
+
"name": "event"
|
|
57
|
+
}],
|
|
58
|
+
"text": ""
|
|
59
|
+
},
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "boolean",
|
|
62
|
+
"resolved": "boolean",
|
|
63
|
+
"references": {}
|
|
64
|
+
}
|
|
65
|
+
}]; }
|
|
66
|
+
}
|
|
@@ -74,6 +74,30 @@ export const XplDivider: {
|
|
|
74
74
|
new (): XplDivider;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
+
interface XplDropdown extends Components.XplDropdown, HTMLElement {}
|
|
78
|
+
export const XplDropdown: {
|
|
79
|
+
prototype: XplDropdown;
|
|
80
|
+
new (): XplDropdown;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
interface XplDropdownGroup extends Components.XplDropdownGroup, HTMLElement {}
|
|
84
|
+
export const XplDropdownGroup: {
|
|
85
|
+
prototype: XplDropdownGroup;
|
|
86
|
+
new (): XplDropdownGroup;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
interface XplDropdownHeading extends Components.XplDropdownHeading, HTMLElement {}
|
|
90
|
+
export const XplDropdownHeading: {
|
|
91
|
+
prototype: XplDropdownHeading;
|
|
92
|
+
new (): XplDropdownHeading;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
interface XplDropdownOption extends Components.XplDropdownOption, HTMLElement {}
|
|
96
|
+
export const XplDropdownOption: {
|
|
97
|
+
prototype: XplDropdownOption;
|
|
98
|
+
new (): XplDropdownOption;
|
|
99
|
+
};
|
|
100
|
+
|
|
77
101
|
interface XplGrid extends Components.XplGrid, HTMLElement {}
|
|
78
102
|
export const XplGrid: {
|
|
79
103
|
prototype: XplGrid;
|