@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.
Files changed (137) hide show
  1. package/build/style.css +4 -55
  2. package/dist/apollo-core/apollo-core.css +5 -5
  3. package/dist/apollo-core/apollo-core.esm.js +1 -1
  4. package/dist/apollo-core/p-10f00380.entry.js +1 -0
  5. package/dist/apollo-core/p-26ec64fe.entry.js +1 -0
  6. package/dist/apollo-core/p-2f90296c.js +2 -2
  7. package/dist/apollo-core/p-31acfdb4.entry.js +1 -0
  8. package/dist/apollo-core/p-4184ac44.entry.js +1 -0
  9. package/dist/apollo-core/{p-dad11011.entry.js → p-4fa14839.entry.js} +1 -1
  10. package/dist/apollo-core/p-55b87345.js +2 -0
  11. package/dist/apollo-core/p-63a6c98a.entry.js +1 -0
  12. package/dist/apollo-core/p-68c33b77.entry.js +1 -0
  13. package/dist/apollo-core/{p-a7cc4114.entry.js → p-78d07caf.entry.js} +1 -1
  14. package/dist/apollo-core/p-796957d3.entry.js +1 -0
  15. package/dist/apollo-core/p-88160d68.entry.js +1 -0
  16. package/dist/apollo-core/p-9ec318bb.entry.js +1 -0
  17. package/dist/apollo-core/p-a2a34e44.entry.js +1 -0
  18. package/dist/apollo-core/p-beea2502.entry.js +1 -0
  19. package/dist/apollo-core/p-d499e43f.entry.js +1 -0
  20. package/dist/apollo-core/{p-c8af4ed6.entry.js → p-d8a3d94c.entry.js} +1 -1
  21. package/dist/apollo-core/p-e047b446.entry.js +1 -0
  22. package/dist/cjs/apollo-core.cjs.js +6 -2
  23. package/dist/cjs/{index-acf3dd7a.js → index-2ab4832e.js} +592 -215
  24. package/dist/cjs/loader.cjs.js +3 -2
  25. package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -13
  26. package/dist/cjs/xpl-avatar_12.cjs.entry.js +72 -38
  27. package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -5
  28. package/dist/cjs/xpl-button-row.cjs.entry.js +4 -1
  29. package/dist/cjs/xpl-choicelist.cjs.entry.js +8 -1
  30. package/dist/cjs/xpl-divider.cjs.entry.js +2 -1
  31. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +7 -1
  32. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +8 -9
  33. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
  34. package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
  35. package/dist/cjs/xpl-input.cjs.entry.js +615 -501
  36. package/dist/cjs/xpl-list.cjs.entry.js +1 -23
  37. package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -4
  38. package/dist/cjs/xpl-pagination.cjs.entry.js +5 -2
  39. package/dist/cjs/xpl-select.cjs.entry.js +7 -22
  40. package/dist/cjs/xpl-toggle.cjs.entry.js +7 -4
  41. package/dist/collection/collection-manifest.json +2 -2
  42. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +118 -132
  43. package/dist/collection/components/xpl-avatar/xpl-avatar.js +150 -144
  44. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +26 -28
  45. package/dist/collection/components/xpl-badge/xpl-badge.js +43 -39
  46. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +2 -5
  47. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +2 -5
  48. package/dist/collection/components/xpl-button/xpl-button.js +204 -205
  49. package/dist/collection/components/xpl-button-row/xpl-button-row.js +105 -104
  50. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +181 -171
  51. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +133 -126
  52. package/dist/collection/components/xpl-content-area/xpl-content-area.js +27 -31
  53. package/dist/collection/components/xpl-divider/xpl-divider.js +26 -23
  54. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +46 -42
  55. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +26 -22
  56. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +60 -54
  57. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +170 -167
  58. package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
  59. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +75 -74
  60. package/dist/collection/components/xpl-input/xpl-input.js +404 -417
  61. package/dist/collection/components/xpl-list/xpl-list.js +42 -75
  62. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +47 -54
  63. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +47 -49
  64. package/dist/collection/components/xpl-pagination/xpl-pagination.js +116 -128
  65. package/dist/collection/components/xpl-radio/xpl-radio.js +157 -148
  66. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +2 -4
  67. package/dist/collection/components/xpl-select/xpl-select.js +212 -238
  68. package/dist/collection/components/xpl-table/xpl-table.js +168 -151
  69. package/dist/collection/components/xpl-tag/xpl-tag.js +24 -25
  70. package/dist/collection/components/xpl-toggle/xpl-toggle.js +137 -135
  71. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +73 -70
  72. package/dist/custom-elements/index.js +756 -641
  73. package/dist/esm/apollo-core.js +3 -2
  74. package/dist/esm/{index-e3c4bb97.js → index-392b5b96.js} +592 -216
  75. package/dist/esm/loader.js +3 -2
  76. package/dist/esm/polyfills/css-shim.js +1 -1
  77. package/dist/esm/xpl-application-shell.entry.js +2 -13
  78. package/dist/esm/xpl-avatar_12.entry.js +72 -38
  79. package/dist/esm/xpl-backdrop.entry.js +1 -5
  80. package/dist/esm/xpl-button-row.entry.js +4 -1
  81. package/dist/esm/xpl-choicelist.entry.js +8 -1
  82. package/dist/esm/xpl-divider.entry.js +2 -1
  83. package/dist/esm/xpl-dropdown-group_3.entry.js +7 -1
  84. package/dist/esm/xpl-dropdown_2.entry.js +8 -9
  85. package/dist/esm/xpl-grid-item.entry.js +1 -1
  86. package/dist/esm/xpl-grid.entry.js +1 -1
  87. package/dist/esm/xpl-input.entry.js +615 -501
  88. package/dist/esm/xpl-list.entry.js +1 -23
  89. package/dist/esm/xpl-main-nav.entry.js +1 -4
  90. package/dist/esm/xpl-pagination.entry.js +5 -2
  91. package/dist/esm/xpl-select.entry.js +7 -22
  92. package/dist/esm/xpl-toggle.entry.js +7 -4
  93. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +1 -1
  94. package/dist/types/components/xpl-table/xpl-table.d.ts +2 -0
  95. package/dist/types/components.d.ts +47 -11
  96. package/dist/types/stencil-public-runtime.d.ts +85 -11
  97. package/loader/index.d.ts +9 -1
  98. package/loader/package.json +1 -0
  99. package/package.json +1 -1
  100. package/dist/apollo-core/p-25f84d39.entry.js +0 -1
  101. package/dist/apollo-core/p-2ce2fe5c.entry.js +0 -1
  102. package/dist/apollo-core/p-3ff1ff38.entry.js +0 -1
  103. package/dist/apollo-core/p-63dd9a65.entry.js +0 -1
  104. package/dist/apollo-core/p-6c3c1e3d.entry.js +0 -1
  105. package/dist/apollo-core/p-81a6ce4c.entry.js +0 -1
  106. package/dist/apollo-core/p-918b0731.entry.js +0 -1
  107. package/dist/apollo-core/p-a43e2d1f.entry.js +0 -1
  108. package/dist/apollo-core/p-b6d1b135.entry.js +0 -1
  109. package/dist/apollo-core/p-bc0ebed2.entry.js +0 -1
  110. package/dist/apollo-core/p-d4aa2fa9.js +0 -1
  111. package/dist/apollo-core/p-d4e5d3aa.entry.js +0 -1
  112. package/dist/apollo-core/p-db74c99c.entry.js +0 -1
  113. package/dist/apollo-core/p-ee16942f.entry.js +0 -1
  114. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/application-shell.stories.d.ts +0 -0
  115. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
  116. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
  117. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
  118. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
  119. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
  120. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/button.stories.d.ts +0 -0
  121. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
  122. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
  123. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
  124. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
  125. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/dropdown.stories.d.ts +0 -0
  126. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
  127. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/input.stories.d.ts +0 -0
  128. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/list.stories.d.ts +0 -0
  129. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
  130. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  131. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
  132. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
  133. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/select.stories.d.ts +0 -0
  134. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/table.stories.d.ts +0 -0
  135. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  136. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
  137. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
@@ -1,5 +1,14 @@
1
- import { Component, Host, h, Prop, State } from '@stencil/core';
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.heading !== undefined ||
17
- this.description !== undefined ? (h("div", { class: "xpl-choicelist-heading" },
18
- this.heading && h("h3", null, this.heading),
19
- this.description && h("p", null, this.description))) : null,
20
- this.choices && (h("ul", { class: className }, this.choices.map(({ children, description, label }, i) => {
21
- const inner = this.multi ? (h("xpl-checkbox", { description: description, name: this.name, onCheckboxChange: (e) => {
22
- const { detail } = e;
23
- this.selected = this.selected.map((v, j) => (i === j ? detail : v));
24
- } }, label)) : (h("xpl-radio", { description: description, name: this.name, onRadioChange: () => {
25
- this.selected = this.selected.map((_, j) => i === j);
26
- } }, label));
27
- let className = this.styled && this.selected[i]
28
- ? 'selected'
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() { return {
41
- "choices": {
42
- "type": "unknown",
43
- "mutable": false,
44
- "complexType": {
45
- "original": "Choice[]",
46
- "resolved": "Choice[]",
47
- "references": {
48
- "Choice": {
49
- "location": "import",
50
- "path": "./choice"
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
- "required": false,
55
- "optional": false,
56
- "docs": {
57
- "tags": [],
58
- "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]"
59
- }
60
- },
61
- "description": {
62
- "type": "string",
63
- "mutable": false,
64
- "complexType": {
65
- "original": "string",
66
- "resolved": "string",
67
- "references": {}
68
- },
69
- "required": false,
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
- "required": false,
104
- "optional": true,
105
- "docs": {
106
- "tags": [],
107
- "text": "Whether the user can select more than one choice (true) or only a single choice (false). Corresponds to checkboxes vs. radio buttons."
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
- "attribute": "multi",
110
- "reflect": false
111
- },
112
- "name": {
113
- "type": "string",
114
- "mutable": false,
115
- "complexType": {
116
- "original": "string",
117
- "resolved": "string",
118
- "references": {}
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
- "required": false,
121
- "optional": true,
122
- "docs": {
123
- "tags": [],
124
- "text": "The `name` to be associated with form data."
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
- "attribute": "name",
127
- "reflect": false
128
- },
129
- "styled": {
130
- "type": "boolean",
131
- "mutable": false,
132
- "complexType": {
133
- "original": "boolean",
134
- "resolved": "boolean",
135
- "references": {}
136
- },
137
- "required": false,
138
- "optional": true,
139
- "docs": {
140
- "tags": [],
141
- "text": "If `true`, will include borders around the list and between individual choices."
142
- },
143
- "attribute": "styled",
144
- "reflect": false
145
- }
146
- }; }
147
- static get states() { return {
148
- "selected": {}
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 { Component, Host, h, Prop } from '@stencil/core';
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() { return {
17
- "size": {
18
- "type": "string",
19
- "mutable": false,
20
- "complexType": {
21
- "original": "'wide' | 'narrow' | 'full'",
22
- "resolved": "\"full\" | \"narrow\" | \"wide\"",
23
- "references": {}
24
- },
25
- "required": false,
26
- "optional": false,
27
- "docs": {
28
- "tags": [{
29
- "text": "{string} size - The content-area size.",
30
- "name": "property"
31
- }],
32
- "text": ""
33
- },
34
- "attribute": "size",
35
- "reflect": false,
36
- "defaultValue": "'wide'"
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 { Component, Host, h, Prop } from '@stencil/core';
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() { return {
12
- "tier": {
13
- "type": "number",
14
- "mutable": false,
15
- "complexType": {
16
- "original": "number",
17
- "resolved": "number",
18
- "references": {}
19
- },
20
- "required": false,
21
- "optional": true,
22
- "docs": {
23
- "tags": [],
24
- "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."
25
- },
26
- "attribute": "tier",
27
- "reflect": false
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) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
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 { Component, Host, h, Prop } from '@stencil/core';
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() { return {
29
- "groupName": {
30
- "type": "string",
31
- "mutable": false,
32
- "complexType": {
33
- "original": "string",
34
- "resolved": "string",
35
- "references": {}
36
- },
37
- "required": false,
38
- "optional": false,
39
- "docs": {
40
- "tags": [],
41
- "text": "text to display as heading"
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
- "attribute": "label",
44
- "reflect": false
45
- },
46
- "options": {
47
- "type": "unknown",
48
- "mutable": false,
49
- "complexType": {
50
- "original": "DropdownOptionGroup['options']",
51
- "resolved": "Partial<DropdownOption & DropdownOptionGroup>[]",
52
- "references": {
53
- "DropdownOptionGroup": {
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
  }
@@ -1,27 +1,31 @@
1
- import { Component, Host, h, Prop } from '@stencil/core';
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() { return {
9
- "label": {
10
- "type": "string",
11
- "mutable": false,
12
- "complexType": {
13
- "original": "string",
14
- "resolved": "string",
15
- "references": {}
16
- },
17
- "required": false,
18
- "optional": false,
19
- "docs": {
20
- "tags": [],
21
- "text": "text to display as heading"
22
- },
23
- "attribute": "label",
24
- "reflect": false
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
  }