@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,8 +1,6 @@
1
- import { Component, Host, Prop, State, Event, h, } from '@stencil/core';
1
+ import { Host, h, } from '@stencil/core';
2
2
  export class XplTable {
3
3
  constructor() {
4
- this.areAllSelected = false;
5
- this.hasScrolled = false;
6
4
  this.selectAll = (e) => {
7
5
  const { target } = e;
8
6
  if (!(target instanceof HTMLInputElement))
@@ -30,28 +28,43 @@ export class XplTable {
30
28
  this.onScroll = () => {
31
29
  this.hasScrolled = this.container.scrollLeft > 0;
32
30
  };
31
+ /**
32
+ * TODO: Need to figure out how this interplays with data
33
+ * received from an API/server
34
+ */
35
+ // private sortBy = (col: number, ascending = true) => {
36
+ // this.rowData.sort((a, b) => {
37
+ // const A = a[col];
38
+ // const B = b[col];
39
+ // if (typeof A === 'number' && typeof B === 'number') {
40
+ // const f = ascending ? 1 : -1;
41
+ // return A > B ? f : -f;
42
+ // }
43
+ // return -1;
44
+ // });
45
+ // this.rowData = Array.from(this.rowData);
46
+ // this.render();
47
+ // };
48
+ this.setData = () => {
49
+ this.rowData = this.data !== undefined ? Array.from(this.data) : [];
50
+ this.selected = new Array(this.rowData.length).fill(false);
51
+ };
52
+ this.columns = undefined;
53
+ this.data = undefined;
54
+ this.freeze = undefined;
55
+ this.multiselect = undefined;
56
+ this.striped = undefined;
57
+ this.areAllSelected = false;
58
+ this.rowData = undefined;
59
+ this.hasScrolled = false;
60
+ this.selected = undefined;
61
+ }
62
+ watchData() {
63
+ this.setData();
33
64
  }
34
- /**
35
- * TODO: Need to figure out how this interplays with data
36
- * received from an API/server
37
- */
38
- // private sortBy = (col: number, ascending = true) => {
39
- // this.rowData.sort((a, b) => {
40
- // const A = a[col];
41
- // const B = b[col];
42
- // if (typeof A === 'number' && typeof B === 'number') {
43
- // const f = ascending ? 1 : -1;
44
- // return A > B ? f : -f;
45
- // }
46
- // return -1;
47
- // });
48
- // this.rowData = Array.from(this.rowData);
49
- // this.render();
50
- // };
51
65
  componentWillLoad() {
52
66
  this.areAllSelected = false;
53
- this.rowData = this.data !== undefined ? Array.from(this.data) : [];
54
- this.selected = new Array(this.rowData.length).fill(false);
67
+ this.setData();
55
68
  }
56
69
  render() {
57
70
  let className = 'xpl-table';
@@ -61,140 +74,144 @@ export class XplTable {
61
74
  className += ' xpl-table--freeze';
62
75
  if (this.hasScrolled)
63
76
  className += ' xpl-table--has-scrolled';
64
- return (h(Host, null,
65
- h("div", { class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => (this.container = el) },
66
- h("table", { class: className },
67
- 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" },
69
- h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
70
- // appear indeterminate when at least one but not all
71
- // are selected
72
- indeterminate: !this
73
- .areAllSelected &&
74
- this.selected.some((a) => a), onChange: (e) => {
75
- this.selectAll(e);
76
- }, type: "checkbox" }),
77
- column)) : (column)));
78
- }))),
79
- h("tbody", null, this.rowData.map((row, rowNum) => {
80
- return (h("tr", { class: this.selected &&
81
- this.selected[rowNum]
82
- ? 'xpl-table-row-selected'
83
- : '' }, row.map((cell, i) => {
84
- return (h("td", null, this.multiselect &&
85
- i === 0 ? (h("label", { htmlFor: '__xpl-table-row-' +
86
- rowNum },
87
- h("input", { id: '__xpl-table-row-' +
88
- rowNum, checked: this
89
- .selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }),
90
- h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))));
91
- })));
92
- }))))));
77
+ 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) => {
78
+ return (h("th", null, this.multiselect && i === 0 ? (h("label", { htmlFor: "__xpl-table-th" }, h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
79
+ // appear indeterminate when at least one but not all
80
+ // are selected
81
+ indeterminate: !this
82
+ .areAllSelected &&
83
+ this.selected.some((a) => a), onChange: (e) => {
84
+ this.selectAll(e);
85
+ }, type: "checkbox" }), column)) : (column)));
86
+ }))), h("tbody", null, this.rowData.map((row, rowNum) => {
87
+ return (h("tr", { class: this.selected &&
88
+ this.selected[rowNum]
89
+ ? 'xpl-table-row-selected'
90
+ : '' }, row.map((cell, i) => {
91
+ return (h("td", null, this.multiselect &&
92
+ i === 0 ? (h("label", { htmlFor: '__xpl-table-row-' +
93
+ rowNum }, h("input", { id: '__xpl-table-row-' +
94
+ rowNum, checked: this
95
+ .selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))));
96
+ })));
97
+ }))))));
93
98
  }
94
99
  static get is() { return "xpl-table"; }
95
- static get properties() { return {
96
- "columns": {
97
- "type": "unknown",
98
- "mutable": false,
99
- "complexType": {
100
- "original": "string[]",
101
- "resolved": "string[]",
102
- "references": {}
103
- },
104
- "required": false,
105
- "optional": true,
106
- "docs": {
107
- "tags": [],
108
- "text": ""
109
- }
110
- },
111
- "data": {
112
- "type": "unknown",
113
- "mutable": false,
114
- "complexType": {
115
- "original": "string[][]",
116
- "resolved": "string[][]",
117
- "references": {}
118
- },
119
- "required": false,
120
- "optional": true,
121
- "docs": {
122
- "tags": [],
123
- "text": ""
124
- }
125
- },
126
- "freeze": {
127
- "type": "boolean",
128
- "mutable": false,
129
- "complexType": {
130
- "original": "boolean",
131
- "resolved": "boolean",
132
- "references": {}
100
+ static get properties() {
101
+ return {
102
+ "columns": {
103
+ "type": "unknown",
104
+ "mutable": false,
105
+ "complexType": {
106
+ "original": "string[]",
107
+ "resolved": "string[]",
108
+ "references": {}
109
+ },
110
+ "required": false,
111
+ "optional": true,
112
+ "docs": {
113
+ "tags": [],
114
+ "text": ""
115
+ }
133
116
  },
134
- "required": false,
135
- "optional": true,
136
- "docs": {
137
- "tags": [],
138
- "text": ""
117
+ "data": {
118
+ "type": "unknown",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "string[][]",
122
+ "resolved": "string[][]",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": true,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": ""
130
+ }
139
131
  },
140
- "attribute": "freeze",
141
- "reflect": false
142
- },
143
- "multiselect": {
144
- "type": "boolean",
145
- "mutable": false,
146
- "complexType": {
147
- "original": "boolean",
148
- "resolved": "boolean",
149
- "references": {}
132
+ "freeze": {
133
+ "type": "boolean",
134
+ "mutable": false,
135
+ "complexType": {
136
+ "original": "boolean",
137
+ "resolved": "boolean",
138
+ "references": {}
139
+ },
140
+ "required": false,
141
+ "optional": true,
142
+ "docs": {
143
+ "tags": [],
144
+ "text": ""
145
+ },
146
+ "attribute": "freeze",
147
+ "reflect": false
150
148
  },
151
- "required": false,
152
- "optional": true,
153
- "docs": {
154
- "tags": [],
155
- "text": ""
149
+ "multiselect": {
150
+ "type": "boolean",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "boolean",
154
+ "resolved": "boolean",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": true,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": ""
162
+ },
163
+ "attribute": "multiselect",
164
+ "reflect": false
156
165
  },
157
- "attribute": "multiselect",
158
- "reflect": false
159
- },
160
- "striped": {
161
- "type": "boolean",
162
- "mutable": false,
163
- "complexType": {
164
- "original": "boolean",
165
- "resolved": "boolean",
166
- "references": {}
167
- },
168
- "required": false,
169
- "optional": true,
170
- "docs": {
171
- "tags": [],
172
- "text": ""
173
- },
174
- "attribute": "striped",
175
- "reflect": false
176
- }
177
- }; }
178
- static get states() { return {
179
- "areAllSelected": {},
180
- "rowData": {},
181
- "hasScrolled": {},
182
- "selected": {}
183
- }; }
184
- static get events() { return [{
185
- "method": "tableSelect",
186
- "name": "tableSelect",
187
- "bubbles": true,
188
- "cancelable": true,
189
- "composed": true,
190
- "docs": {
191
- "tags": [],
192
- "text": ""
193
- },
194
- "complexType": {
195
- "original": "any",
196
- "resolved": "any",
197
- "references": {}
166
+ "striped": {
167
+ "type": "boolean",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "boolean",
171
+ "resolved": "boolean",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": true,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": ""
179
+ },
180
+ "attribute": "striped",
181
+ "reflect": false
198
182
  }
199
- }]; }
183
+ };
184
+ }
185
+ static get states() {
186
+ return {
187
+ "areAllSelected": {},
188
+ "rowData": {},
189
+ "hasScrolled": {},
190
+ "selected": {}
191
+ };
192
+ }
193
+ static get events() {
194
+ return [{
195
+ "method": "tableSelect",
196
+ "name": "tableSelect",
197
+ "bubbles": true,
198
+ "cancelable": true,
199
+ "composed": true,
200
+ "docs": {
201
+ "tags": [],
202
+ "text": ""
203
+ },
204
+ "complexType": {
205
+ "original": "any",
206
+ "resolved": "any",
207
+ "references": {}
208
+ }
209
+ }];
210
+ }
211
+ static get watchers() {
212
+ return [{
213
+ "propName": "data",
214
+ "methodName": "watchData"
215
+ }];
216
+ }
200
217
  }
@@ -1,30 +1,29 @@
1
- import { Component, Host, h, Event } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  export class XplTag {
3
3
  render() {
4
- return (h(Host, { class: "xpl-tag-container" },
5
- h("button", { class: "xpl-tag", onClick: () => {
6
- this.close.emit();
7
- } },
8
- h("slot", null)),
9
- h("button", { class: "xpl-tag__close", onClick: () => {
10
- this.close.emit();
11
- } }, "\u00D7")));
4
+ return (h(Host, { class: "xpl-tag-container" }, h("button", { class: "xpl-tag", onClick: () => {
5
+ this.close.emit();
6
+ } }, h("slot", null)), h("button", { class: "xpl-tag__close", onClick: () => {
7
+ this.close.emit();
8
+ } }, "\u00D7")));
12
9
  }
13
10
  static get is() { return "xpl-tag"; }
14
- static get events() { return [{
15
- "method": "close",
16
- "name": "close",
17
- "bubbles": true,
18
- "cancelable": true,
19
- "composed": true,
20
- "docs": {
21
- "tags": [],
22
- "text": ""
23
- },
24
- "complexType": {
25
- "original": "any",
26
- "resolved": "any",
27
- "references": {}
28
- }
29
- }]; }
11
+ static get events() {
12
+ return [{
13
+ "method": "close",
14
+ "name": "close",
15
+ "bubbles": true,
16
+ "cancelable": true,
17
+ "composed": true,
18
+ "docs": {
19
+ "tags": [],
20
+ "text": ""
21
+ },
22
+ "complexType": {
23
+ "original": "any",
24
+ "resolved": "any",
25
+ "references": {}
26
+ }
27
+ }];
28
+ }
30
29
  }