@xplortech/apollo-core 1.0.0-beta.7 → 1.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/style.css +4 -55
- package/dist/apollo-core/apollo-core.css +5 -5
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-10f00380.entry.js +1 -0
- package/dist/apollo-core/p-26ec64fe.entry.js +1 -0
- package/dist/apollo-core/p-2f90296c.js +2 -2
- package/dist/apollo-core/p-31acfdb4.entry.js +1 -0
- package/dist/apollo-core/p-4184ac44.entry.js +1 -0
- package/dist/apollo-core/{p-dad11011.entry.js → p-4fa14839.entry.js} +1 -1
- package/dist/apollo-core/p-55b87345.js +2 -0
- package/dist/apollo-core/p-63a6c98a.entry.js +1 -0
- package/dist/apollo-core/p-68c33b77.entry.js +1 -0
- package/dist/apollo-core/{p-a7cc4114.entry.js → p-78d07caf.entry.js} +1 -1
- package/dist/apollo-core/p-796957d3.entry.js +1 -0
- package/dist/apollo-core/p-88160d68.entry.js +1 -0
- package/dist/apollo-core/p-9ec318bb.entry.js +1 -0
- package/dist/apollo-core/p-a2a34e44.entry.js +1 -0
- package/dist/apollo-core/p-beea2502.entry.js +1 -0
- package/dist/apollo-core/p-d499e43f.entry.js +1 -0
- package/dist/apollo-core/{p-c8af4ed6.entry.js → p-d8a3d94c.entry.js} +1 -1
- package/dist/apollo-core/p-e047b446.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +6 -2
- package/dist/cjs/{index-acf3dd7a.js → index-2ab4832e.js} +592 -215
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -13
- package/dist/cjs/xpl-avatar_12.cjs.entry.js +72 -38
- package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -5
- package/dist/cjs/xpl-button-row.cjs.entry.js +4 -1
- package/dist/cjs/xpl-choicelist.cjs.entry.js +8 -1
- package/dist/cjs/xpl-divider.cjs.entry.js +2 -1
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +7 -1
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js +8 -9
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/cjs/xpl-input.cjs.entry.js +615 -501
- package/dist/cjs/xpl-list.cjs.entry.js +1 -23
- package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -4
- package/dist/cjs/xpl-pagination.cjs.entry.js +5 -2
- package/dist/cjs/xpl-select.cjs.entry.js +7 -22
- package/dist/cjs/xpl-toggle.cjs.entry.js +7 -4
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +118 -132
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +150 -144
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +26 -28
- package/dist/collection/components/xpl-badge/xpl-badge.js +43 -39
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +2 -5
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +2 -5
- package/dist/collection/components/xpl-button/xpl-button.js +204 -205
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +105 -104
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +181 -171
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +133 -126
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +27 -31
- package/dist/collection/components/xpl-divider/xpl-divider.js +26 -23
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +46 -42
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +26 -22
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +60 -54
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +170 -167
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +75 -74
- package/dist/collection/components/xpl-input/xpl-input.js +404 -417
- package/dist/collection/components/xpl-list/xpl-list.js +42 -75
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +47 -54
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +47 -49
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +116 -128
- package/dist/collection/components/xpl-radio/xpl-radio.js +157 -148
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +2 -4
- package/dist/collection/components/xpl-select/xpl-select.js +212 -238
- package/dist/collection/components/xpl-table/xpl-table.js +168 -151
- package/dist/collection/components/xpl-tag/xpl-tag.js +24 -25
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +137 -135
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +73 -70
- package/dist/custom-elements/index.js +756 -641
- package/dist/esm/apollo-core.js +3 -2
- package/dist/esm/{index-e3c4bb97.js → index-392b5b96.js} +592 -216
- package/dist/esm/loader.js +3 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/xpl-application-shell.entry.js +2 -13
- package/dist/esm/xpl-avatar_12.entry.js +72 -38
- package/dist/esm/xpl-backdrop.entry.js +1 -5
- package/dist/esm/xpl-button-row.entry.js +4 -1
- package/dist/esm/xpl-choicelist.entry.js +8 -1
- package/dist/esm/xpl-divider.entry.js +2 -1
- package/dist/esm/xpl-dropdown-group_3.entry.js +7 -1
- package/dist/esm/xpl-dropdown_2.entry.js +8 -9
- package/dist/esm/xpl-grid-item.entry.js +1 -1
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/esm/xpl-input.entry.js +615 -501
- package/dist/esm/xpl-list.entry.js +1 -23
- package/dist/esm/xpl-main-nav.entry.js +1 -4
- package/dist/esm/xpl-pagination.entry.js +5 -2
- package/dist/esm/xpl-select.entry.js +7 -22
- package/dist/esm/xpl-toggle.entry.js +7 -4
- package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +1 -1
- package/dist/types/components/xpl-table/xpl-table.d.ts +2 -0
- package/dist/types/components.d.ts +47 -11
- package/dist/types/stencil-public-runtime.d.ts +85 -11
- package/loader/index.d.ts +9 -1
- package/loader/package.json +1 -0
- package/package.json +1 -1
- package/dist/apollo-core/p-25f84d39.entry.js +0 -1
- package/dist/apollo-core/p-2ce2fe5c.entry.js +0 -1
- package/dist/apollo-core/p-3ff1ff38.entry.js +0 -1
- package/dist/apollo-core/p-63dd9a65.entry.js +0 -1
- package/dist/apollo-core/p-6c3c1e3d.entry.js +0 -1
- package/dist/apollo-core/p-81a6ce4c.entry.js +0 -1
- package/dist/apollo-core/p-918b0731.entry.js +0 -1
- package/dist/apollo-core/p-a43e2d1f.entry.js +0 -1
- package/dist/apollo-core/p-b6d1b135.entry.js +0 -1
- package/dist/apollo-core/p-bc0ebed2.entry.js +0 -1
- package/dist/apollo-core/p-d4aa2fa9.js +0 -1
- package/dist/apollo-core/p-d4e5d3aa.entry.js +0 -1
- package/dist/apollo-core/p-db74c99c.entry.js +0 -1
- package/dist/apollo-core/p-ee16942f.entry.js +0 -1
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/application-shell.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/button.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/dropdown.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/input.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/list.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/select.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/table.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class XplChoicelist {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.choices = undefined;
|
|
5
|
+
this.description = undefined;
|
|
6
|
+
this.heading = undefined;
|
|
7
|
+
this.multi = undefined;
|
|
8
|
+
this.name = undefined;
|
|
9
|
+
this.styled = undefined;
|
|
10
|
+
this.selected = undefined;
|
|
11
|
+
}
|
|
3
12
|
componentWillLoad() {
|
|
4
13
|
this.selected =
|
|
5
14
|
this.choices !== undefined &&
|
|
@@ -12,139 +21,137 @@ export class XplChoicelist {
|
|
|
12
21
|
let className = 'xpl-choicelist';
|
|
13
22
|
if (this.styled)
|
|
14
23
|
className += ' xpl-choicelist--styled';
|
|
15
|
-
return (h(Host, { class: "xpl-choicelist-container" },
|
|
16
|
-
this.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
?
|
|
29
|
-
|
|
30
|
-
return (h("li", { class: className },
|
|
31
|
-
inner,
|
|
32
|
-
children && (h("ul", null, children.map((child) => {
|
|
33
|
-
const childInner = this
|
|
34
|
-
.multi ? (h("xpl-checkbox", { description: child.description }, child.label)) : (h("xpl-radio", { description: child.description }, child.label));
|
|
35
|
-
return (h("li", null, childInner));
|
|
36
|
-
})))));
|
|
24
|
+
return (h(Host, { class: "xpl-choicelist-container" }, this.heading !== undefined ||
|
|
25
|
+
this.description !== undefined ? (h("div", { class: "xpl-choicelist-heading" }, this.heading && h("h3", null, this.heading), this.description && h("p", null, this.description))) : null, this.choices && (h("ul", { class: className }, this.choices.map(({ children, description, label }, i) => {
|
|
26
|
+
const inner = this.multi ? (h("xpl-checkbox", { description: description, name: this.name, onCheckboxChange: (e) => {
|
|
27
|
+
const { detail } = e;
|
|
28
|
+
this.selected = this.selected.map((v, j) => (i === j ? detail : v));
|
|
29
|
+
} }, label)) : (h("xpl-radio", { description: description, name: this.name, onRadioChange: () => {
|
|
30
|
+
this.selected = this.selected.map((_, j) => i === j);
|
|
31
|
+
} }, label));
|
|
32
|
+
let className = this.styled && this.selected[i]
|
|
33
|
+
? 'selected'
|
|
34
|
+
: '';
|
|
35
|
+
return (h("li", { class: className }, inner, children && (h("ul", null, children.map((child) => {
|
|
36
|
+
const childInner = this
|
|
37
|
+
.multi ? (h("xpl-checkbox", { description: child.description }, child.label)) : (h("xpl-radio", { description: child.description }, child.label));
|
|
38
|
+
return (h("li", null, childInner));
|
|
37
39
|
})))));
|
|
40
|
+
})))));
|
|
38
41
|
}
|
|
39
42
|
static get is() { return "xpl-choicelist"; }
|
|
40
|
-
static get properties() {
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
43
|
+
static get properties() {
|
|
44
|
+
return {
|
|
45
|
+
"choices": {
|
|
46
|
+
"type": "unknown",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "Choice[]",
|
|
50
|
+
"resolved": "Choice[]",
|
|
51
|
+
"references": {
|
|
52
|
+
"Choice": {
|
|
53
|
+
"location": "import",
|
|
54
|
+
"path": "./choice"
|
|
55
|
+
}
|
|
51
56
|
}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": false,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": "An array of choices to be displayed in the list.\nEach choice should be an object with keys:\n- `checked` [boolean] - whether to pre-check or not\n- `children` [Choice[]] - an array of child choices (recursive)\n- `description` [string]\n- `label` [string]"
|
|
52
63
|
}
|
|
53
64
|
},
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"optional": true,
|
|
71
|
-
"docs": {
|
|
72
|
-
"tags": [],
|
|
73
|
-
"text": "Descriptive text to be displayed above the choicelist."
|
|
74
|
-
},
|
|
75
|
-
"attribute": "description",
|
|
76
|
-
"reflect": false
|
|
77
|
-
},
|
|
78
|
-
"heading": {
|
|
79
|
-
"type": "string",
|
|
80
|
-
"mutable": false,
|
|
81
|
-
"complexType": {
|
|
82
|
-
"original": "string",
|
|
83
|
-
"resolved": "string",
|
|
84
|
-
"references": {}
|
|
85
|
-
},
|
|
86
|
-
"required": false,
|
|
87
|
-
"optional": true,
|
|
88
|
-
"docs": {
|
|
89
|
-
"tags": [],
|
|
90
|
-
"text": "The title text to be displayed above the choicelist."
|
|
91
|
-
},
|
|
92
|
-
"attribute": "heading",
|
|
93
|
-
"reflect": false
|
|
94
|
-
},
|
|
95
|
-
"multi": {
|
|
96
|
-
"type": "boolean",
|
|
97
|
-
"mutable": false,
|
|
98
|
-
"complexType": {
|
|
99
|
-
"original": "boolean",
|
|
100
|
-
"resolved": "boolean",
|
|
101
|
-
"references": {}
|
|
65
|
+
"description": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "string",
|
|
70
|
+
"resolved": "string",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": true,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": "Descriptive text to be displayed above the choicelist."
|
|
78
|
+
},
|
|
79
|
+
"attribute": "description",
|
|
80
|
+
"reflect": false
|
|
102
81
|
},
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
|
|
82
|
+
"heading": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "string",
|
|
87
|
+
"resolved": "string",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": true,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "The title text to be displayed above the choicelist."
|
|
95
|
+
},
|
|
96
|
+
"attribute": "heading",
|
|
97
|
+
"reflect": false
|
|
108
98
|
},
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
"
|
|
99
|
+
"multi": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "boolean",
|
|
104
|
+
"resolved": "boolean",
|
|
105
|
+
"references": {}
|
|
106
|
+
},
|
|
107
|
+
"required": false,
|
|
108
|
+
"optional": true,
|
|
109
|
+
"docs": {
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": "Whether the user can select more than one choice (true) or only a single choice (false). Corresponds to checkboxes vs. radio buttons."
|
|
112
|
+
},
|
|
113
|
+
"attribute": "multi",
|
|
114
|
+
"reflect": false
|
|
119
115
|
},
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
|
|
116
|
+
"name": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "string",
|
|
121
|
+
"resolved": "string",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": true,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": "The `name` to be associated with form data."
|
|
129
|
+
},
|
|
130
|
+
"attribute": "name",
|
|
131
|
+
"reflect": false
|
|
125
132
|
},
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
133
|
+
"styled": {
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"mutable": false,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "boolean",
|
|
138
|
+
"resolved": "boolean",
|
|
139
|
+
"references": {}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": true,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": "If `true`, will include borders around the list and between individual choices."
|
|
146
|
+
},
|
|
147
|
+
"attribute": "styled",
|
|
148
|
+
"reflect": false
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
static get states() {
|
|
153
|
+
return {
|
|
154
|
+
"selected": {}
|
|
155
|
+
};
|
|
156
|
+
}
|
|
150
157
|
}
|
|
@@ -1,39 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class XplContentArea {
|
|
3
3
|
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* @property {string} size - The content-area size.
|
|
6
|
-
*/
|
|
7
4
|
this.size = 'wide';
|
|
8
5
|
}
|
|
9
6
|
render() {
|
|
10
|
-
return (h(Host, null,
|
|
11
|
-
h("main", { class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` },
|
|
12
|
-
h("div", { class: "xpl-content-area" },
|
|
13
|
-
h("slot", null)))));
|
|
7
|
+
return (h(Host, null, h("main", { class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, h("div", { class: "xpl-content-area" }, h("slot", null)))));
|
|
14
8
|
}
|
|
15
9
|
static get is() { return "xpl-content-area"; }
|
|
16
|
-
static get properties() {
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
10
|
+
static get properties() {
|
|
11
|
+
return {
|
|
12
|
+
"size": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"mutable": false,
|
|
15
|
+
"complexType": {
|
|
16
|
+
"original": "'wide' | 'narrow' | 'full'",
|
|
17
|
+
"resolved": "\"full\" | \"narrow\" | \"wide\"",
|
|
18
|
+
"references": {}
|
|
19
|
+
},
|
|
20
|
+
"required": false,
|
|
21
|
+
"optional": false,
|
|
22
|
+
"docs": {
|
|
23
|
+
"tags": [{
|
|
24
|
+
"name": "property",
|
|
25
|
+
"text": "{string} size - The content-area size."
|
|
26
|
+
}],
|
|
27
|
+
"text": ""
|
|
28
|
+
},
|
|
29
|
+
"attribute": "size",
|
|
30
|
+
"reflect": false,
|
|
31
|
+
"defaultValue": "'wide'"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
39
35
|
}
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class XplDivider {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.tier = undefined;
|
|
5
|
+
}
|
|
3
6
|
render() {
|
|
4
7
|
let className = 'xpl-divider';
|
|
5
8
|
className += ` xpl-divider--${this.tier}`;
|
|
6
|
-
return (h(Host, { class: className },
|
|
7
|
-
h("span", null,
|
|
8
|
-
h("slot", null))));
|
|
9
|
+
return (h(Host, { class: className }, h("span", null, h("slot", null))));
|
|
9
10
|
}
|
|
10
11
|
static get is() { return "xpl-divider"; }
|
|
11
|
-
static get properties() {
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
12
|
+
static get properties() {
|
|
13
|
+
return {
|
|
14
|
+
"tier": {
|
|
15
|
+
"type": "number",
|
|
16
|
+
"mutable": false,
|
|
17
|
+
"complexType": {
|
|
18
|
+
"original": "number",
|
|
19
|
+
"resolved": "number",
|
|
20
|
+
"references": {}
|
|
21
|
+
},
|
|
22
|
+
"required": false,
|
|
23
|
+
"optional": true,
|
|
24
|
+
"docs": {
|
|
25
|
+
"tags": [],
|
|
26
|
+
"text": "The tier should be an integer between 0 and 3.\nTier 0 dividers do not display text, and 1-3 increase\nin size with each increasing tier."
|
|
27
|
+
},
|
|
28
|
+
"attribute": "tier",
|
|
29
|
+
"reflect": false
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
30
33
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
2
|
var t = {};
|
|
3
|
-
for (var p in s)
|
|
4
|
-
|
|
3
|
+
for (var p in s)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
5
6
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
7
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
8
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
@@ -9,8 +10,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
10
|
}
|
|
10
11
|
return t;
|
|
11
12
|
};
|
|
12
|
-
import {
|
|
13
|
+
import { Host, h } from '@stencil/core';
|
|
13
14
|
export class XplDropdownGroup {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.groupName = undefined;
|
|
17
|
+
this.options = undefined;
|
|
18
|
+
}
|
|
14
19
|
render() {
|
|
15
20
|
const { groupName, options } = this;
|
|
16
21
|
const hasOptions = options && options.length;
|
|
@@ -19,49 +24,48 @@ export class XplDropdownGroup {
|
|
|
19
24
|
var { groupName } = _a, properties = __rest(_a, ["groupName"]);
|
|
20
25
|
return groupName ? (h("xpl-dropdown-group", Object.assign({ label: groupName }, properties))) : (h("xpl-dropdown-option", Object.assign({}, properties)));
|
|
21
26
|
});
|
|
22
|
-
return (h(Host, { role: "group", "aria-label": groupName },
|
|
23
|
-
h("li", { class: "xpl-dropdown-list-item" },
|
|
24
|
-
h("xpl-dropdown-heading", { label: groupName }),
|
|
25
|
-
h("ul", { class: "xpl-dropdown-list" }, mappedOptions || h("slot", { name: "options" })))));
|
|
27
|
+
return (h(Host, { role: "group", "aria-label": groupName }, h("li", { class: "xpl-dropdown-list-item" }, h("xpl-dropdown-heading", { label: groupName }), h("ul", { class: "xpl-dropdown-list" }, mappedOptions || h("slot", { name: "options" })))));
|
|
26
28
|
}
|
|
27
29
|
static get is() { return "xpl-dropdown-group"; }
|
|
28
|
-
static get properties() {
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
30
|
+
static get properties() {
|
|
31
|
+
return {
|
|
32
|
+
"groupName": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"mutable": false,
|
|
35
|
+
"complexType": {
|
|
36
|
+
"original": "string",
|
|
37
|
+
"resolved": "string",
|
|
38
|
+
"references": {}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": false,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": "text to display as heading"
|
|
45
|
+
},
|
|
46
|
+
"attribute": "label",
|
|
47
|
+
"reflect": false
|
|
42
48
|
},
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"location": "import",
|
|
55
|
-
"path": "../dropdownoption"
|
|
49
|
+
"options": {
|
|
50
|
+
"type": "unknown",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "DropdownOptionGroup['options']",
|
|
54
|
+
"resolved": "Partial<DropdownOption & DropdownOptionGroup>[]",
|
|
55
|
+
"references": {
|
|
56
|
+
"DropdownOptionGroup": {
|
|
57
|
+
"location": "import",
|
|
58
|
+
"path": "../dropdownoption"
|
|
59
|
+
}
|
|
56
60
|
}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": true,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "options that are listed"
|
|
57
67
|
}
|
|
58
|
-
},
|
|
59
|
-
"required": false,
|
|
60
|
-
"optional": true,
|
|
61
|
-
"docs": {
|
|
62
|
-
"tags": [],
|
|
63
|
-
"text": "options that are listed"
|
|
64
68
|
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
67
71
|
}
|
package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class XplDropdownHeading {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.label = undefined;
|
|
5
|
+
}
|
|
3
6
|
render() {
|
|
4
|
-
return (h(Host, { class: { 'xpl-dropdown-heading': true }, role: "presentation" },
|
|
5
|
-
h("span", null, this.label || h("slot", { name: "heading" }))));
|
|
7
|
+
return (h(Host, { class: { 'xpl-dropdown-heading': true }, role: "presentation" }, h("span", null, this.label || h("slot", { name: "heading" }))));
|
|
6
8
|
}
|
|
7
9
|
static get is() { return "xpl-dropdown-heading"; }
|
|
8
|
-
static get properties() {
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
static get properties() {
|
|
11
|
+
return {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"mutable": false,
|
|
15
|
+
"complexType": {
|
|
16
|
+
"original": "string",
|
|
17
|
+
"resolved": "string",
|
|
18
|
+
"references": {}
|
|
19
|
+
},
|
|
20
|
+
"required": false,
|
|
21
|
+
"optional": false,
|
|
22
|
+
"docs": {
|
|
23
|
+
"tags": [],
|
|
24
|
+
"text": "text to display as heading"
|
|
25
|
+
},
|
|
26
|
+
"attribute": "label",
|
|
27
|
+
"reflect": false
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
27
31
|
}
|