@xplortech/apollo-core 1.0.0-beta.6 → 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 (138) hide show
  1. package/LICENSE +21 -0
  2. package/build/style.css +4 -55
  3. package/dist/apollo-core/apollo-core.css +5 -5
  4. package/dist/apollo-core/apollo-core.esm.js +1 -1
  5. package/dist/apollo-core/p-10f00380.entry.js +1 -0
  6. package/dist/apollo-core/p-26ec64fe.entry.js +1 -0
  7. package/dist/apollo-core/p-2f90296c.js +2 -2
  8. package/dist/apollo-core/p-31acfdb4.entry.js +1 -0
  9. package/dist/apollo-core/p-4184ac44.entry.js +1 -0
  10. package/dist/apollo-core/{p-dad11011.entry.js → p-4fa14839.entry.js} +1 -1
  11. package/dist/apollo-core/p-55b87345.js +2 -0
  12. package/dist/apollo-core/p-63a6c98a.entry.js +1 -0
  13. package/dist/apollo-core/p-68c33b77.entry.js +1 -0
  14. package/dist/apollo-core/{p-a7cc4114.entry.js → p-78d07caf.entry.js} +1 -1
  15. package/dist/apollo-core/p-796957d3.entry.js +1 -0
  16. package/dist/apollo-core/p-88160d68.entry.js +1 -0
  17. package/dist/apollo-core/p-9ec318bb.entry.js +1 -0
  18. package/dist/apollo-core/p-a2a34e44.entry.js +1 -0
  19. package/dist/apollo-core/p-beea2502.entry.js +1 -0
  20. package/dist/apollo-core/p-d499e43f.entry.js +1 -0
  21. package/dist/apollo-core/{p-c8af4ed6.entry.js → p-d8a3d94c.entry.js} +1 -1
  22. package/dist/apollo-core/p-e047b446.entry.js +1 -0
  23. package/dist/cjs/apollo-core.cjs.js +6 -2
  24. package/dist/cjs/{index-acf3dd7a.js → index-2ab4832e.js} +592 -215
  25. package/dist/cjs/loader.cjs.js +3 -2
  26. package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -13
  27. package/dist/cjs/xpl-avatar_12.cjs.entry.js +72 -38
  28. package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -5
  29. package/dist/cjs/xpl-button-row.cjs.entry.js +4 -1
  30. package/dist/cjs/xpl-choicelist.cjs.entry.js +8 -1
  31. package/dist/cjs/xpl-divider.cjs.entry.js +2 -1
  32. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +7 -1
  33. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +8 -9
  34. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
  35. package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
  36. package/dist/cjs/xpl-input.cjs.entry.js +615 -501
  37. package/dist/cjs/xpl-list.cjs.entry.js +1 -23
  38. package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -4
  39. package/dist/cjs/xpl-pagination.cjs.entry.js +5 -2
  40. package/dist/cjs/xpl-select.cjs.entry.js +7 -22
  41. package/dist/cjs/xpl-toggle.cjs.entry.js +7 -4
  42. package/dist/collection/collection-manifest.json +2 -2
  43. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +118 -132
  44. package/dist/collection/components/xpl-avatar/xpl-avatar.js +150 -144
  45. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +26 -28
  46. package/dist/collection/components/xpl-badge/xpl-badge.js +43 -39
  47. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +2 -5
  48. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +2 -5
  49. package/dist/collection/components/xpl-button/xpl-button.js +204 -205
  50. package/dist/collection/components/xpl-button-row/xpl-button-row.js +105 -104
  51. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +181 -171
  52. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +133 -126
  53. package/dist/collection/components/xpl-content-area/xpl-content-area.js +27 -31
  54. package/dist/collection/components/xpl-divider/xpl-divider.js +26 -23
  55. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +46 -42
  56. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +26 -22
  57. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +60 -54
  58. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +170 -167
  59. package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
  60. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +75 -74
  61. package/dist/collection/components/xpl-input/xpl-input.js +404 -417
  62. package/dist/collection/components/xpl-list/xpl-list.js +42 -75
  63. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +47 -54
  64. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +47 -49
  65. package/dist/collection/components/xpl-pagination/xpl-pagination.js +116 -128
  66. package/dist/collection/components/xpl-radio/xpl-radio.js +157 -148
  67. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +2 -4
  68. package/dist/collection/components/xpl-select/xpl-select.js +212 -238
  69. package/dist/collection/components/xpl-table/xpl-table.js +168 -151
  70. package/dist/collection/components/xpl-tag/xpl-tag.js +24 -25
  71. package/dist/collection/components/xpl-toggle/xpl-toggle.js +137 -135
  72. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +73 -70
  73. package/dist/custom-elements/index.js +756 -641
  74. package/dist/esm/apollo-core.js +3 -2
  75. package/dist/esm/{index-e3c4bb97.js → index-392b5b96.js} +592 -216
  76. package/dist/esm/loader.js +3 -2
  77. package/dist/esm/polyfills/css-shim.js +1 -1
  78. package/dist/esm/xpl-application-shell.entry.js +2 -13
  79. package/dist/esm/xpl-avatar_12.entry.js +72 -38
  80. package/dist/esm/xpl-backdrop.entry.js +1 -5
  81. package/dist/esm/xpl-button-row.entry.js +4 -1
  82. package/dist/esm/xpl-choicelist.entry.js +8 -1
  83. package/dist/esm/xpl-divider.entry.js +2 -1
  84. package/dist/esm/xpl-dropdown-group_3.entry.js +7 -1
  85. package/dist/esm/xpl-dropdown_2.entry.js +8 -9
  86. package/dist/esm/xpl-grid-item.entry.js +1 -1
  87. package/dist/esm/xpl-grid.entry.js +1 -1
  88. package/dist/esm/xpl-input.entry.js +615 -501
  89. package/dist/esm/xpl-list.entry.js +1 -23
  90. package/dist/esm/xpl-main-nav.entry.js +1 -4
  91. package/dist/esm/xpl-pagination.entry.js +5 -2
  92. package/dist/esm/xpl-select.entry.js +7 -22
  93. package/dist/esm/xpl-toggle.entry.js +7 -4
  94. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +1 -1
  95. package/dist/types/components/xpl-table/xpl-table.d.ts +2 -0
  96. package/dist/types/components.d.ts +47 -11
  97. package/dist/types/stencil-public-runtime.d.ts +85 -11
  98. package/loader/index.d.ts +9 -1
  99. package/loader/package.json +1 -0
  100. package/package.json +1 -1
  101. package/dist/apollo-core/p-25f84d39.entry.js +0 -1
  102. package/dist/apollo-core/p-2ce2fe5c.entry.js +0 -1
  103. package/dist/apollo-core/p-3ff1ff38.entry.js +0 -1
  104. package/dist/apollo-core/p-63dd9a65.entry.js +0 -1
  105. package/dist/apollo-core/p-6c3c1e3d.entry.js +0 -1
  106. package/dist/apollo-core/p-81a6ce4c.entry.js +0 -1
  107. package/dist/apollo-core/p-918b0731.entry.js +0 -1
  108. package/dist/apollo-core/p-a43e2d1f.entry.js +0 -1
  109. package/dist/apollo-core/p-b6d1b135.entry.js +0 -1
  110. package/dist/apollo-core/p-bc0ebed2.entry.js +0 -1
  111. package/dist/apollo-core/p-d4aa2fa9.js +0 -1
  112. package/dist/apollo-core/p-d4e5d3aa.entry.js +0 -1
  113. package/dist/apollo-core/p-db74c99c.entry.js +0 -1
  114. package/dist/apollo-core/p-ee16942f.entry.js +0 -1
  115. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/application-shell.stories.d.ts +0 -0
  116. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
  117. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
  118. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
  119. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
  120. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
  121. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/button.stories.d.ts +0 -0
  122. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
  123. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
  124. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
  125. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
  126. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/dropdown.stories.d.ts +0 -0
  127. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
  128. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/input.stories.d.ts +0 -0
  129. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/list.stories.d.ts +0 -0
  130. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
  131. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  132. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
  133. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
  134. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/select.stories.d.ts +0 -0
  135. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/table.stories.d.ts +0 -0
  136. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  137. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
  138. /package/dist/types/Users/{roc/Sites → fernandogelin/Xplor}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { v4 as uuid } from 'uuid';
2
- import { Component, Host, h, Prop, State } from '@stencil/core';
2
+ import { Host, h } from '@stencil/core';
3
3
  import throttle from 'lodash.throttle';
4
4
  function tagWidth(text) {
5
5
  const context = document.createElement('canvas').getContext('2d');
@@ -9,35 +9,20 @@ function tagWidth(text) {
9
9
  }
10
10
  export class XplSelect {
11
11
  constructor() {
12
- /**
13
- * An array of choices for the user to choose from.
14
- * Each choice should be of the form:
15
- * {
16
- * label: string;
17
- * href?: string;
18
- * value?: string;
19
- * isGroupHeading?: boolean;
20
- * }
21
- */
22
12
  this.choices = [];
23
- /**
24
- * Whether to allow a single choice or multiple choices.
25
- */
13
+ this.description = undefined;
14
+ this.disabled = undefined;
15
+ this.error = undefined;
16
+ this.label = undefined;
26
17
  this.mode = 'single';
27
- /**
28
- * Only used in multi-choice selects. If `true`,
29
- * badges representing selections that would overflow the
30
- * container are replaced with "+x more" (where x is the
31
- * number not shown). If `false`, the container's height will
32
- * adjust to show all badges representing selections.
33
- */
18
+ this.placeholder = undefined;
34
19
  this.truncate = true;
35
20
  this.active = false;
36
21
  this.id = uuid();
37
22
  this.keepFocus = false;
23
+ this.selected = undefined;
38
24
  this.value = '';
39
25
  this.displayValue = '';
40
- // infinity isn't real, it's just a mathematical construct, it can't hurt you
41
26
  this.visibleChoices = Infinity;
42
27
  }
43
28
  componentWillLoad() {
@@ -116,230 +101,219 @@ export class XplSelect {
116
101
  }, onKeyDown: (e) => {
117
102
  if (e.key === 'Escape')
118
103
  this.active = false;
119
- }, ref: (el) => (this.container = el) },
120
- this.label || this.description ? (h("label", { class: {
121
- 'xpl-label': true,
122
- 'xpl-label--disabled': this.disabled,
123
- }, htmlFor: this.id },
124
- this.label,
125
- this.description && (h("small", { class: {
126
- 'xpl-description': true,
127
- 'xpl-description--disabled': this.disabled,
128
- } }, this.description)))) : null,
129
- h("div", { class: {
130
- 'xpl-input': true,
131
- 'xpl-input--disabled': this.disabled,
132
- 'xpl-input--error': this.error !== undefined,
133
- } },
134
- h("div", { class: "xpl-input-wrapper" },
135
- h("div", { class: {
136
- 'xpl-select-value': true,
137
- 'xpl-select-value--active': this.mode === 'multi' &&
138
- this.value.length > 0,
139
- 'has-value': this.value.length > 0,
140
- } },
141
- this.mode === 'single'
142
- ? this.displayValue || this.placeholder
143
- : this.value.length > 0
144
- ? this.selected.map((v, i) => {
145
- if (!v)
146
- return null;
147
- if (visibleChoices >= this.visibleChoices)
148
- return null;
149
- visibleChoices++;
150
- return (h("xpl-tag", { onClose: () => {
151
- this.flattenChoices().forEach((v, j) => {
152
- if (i === j)
153
- v.isSelected =
154
- false;
155
- });
156
- const mapOptions = (option) => {
157
- option.options =
158
- option.groupName
159
- ? option.options.map(mapOptions)
160
- : undefined;
161
- return option;
162
- };
163
- this.choices =
164
- this.choices.map(mapOptions);
165
- this.update();
166
- this.maybeTruncateChoices();
167
- } }, this.getDisplayValue(i)));
168
- })
169
- : this.placeholder,
170
- this.visibleChoices < Infinity &&
171
- `+ ${this.selected.filter((a) => a).length -
172
- this.visibleChoices} more`),
173
- h("button", { disabled: this.disabled, id: this.id, onKeyDown: (e) => {
174
- if (e.key === 'Tab')
175
- this.keepFocus = true;
176
- }, onClick: () => {
177
- const { dropdown } = this;
178
- if (!this.disabled)
179
- dropdown.isOpen = !dropdown.isOpen;
180
- } })),
181
- !this.disabled && (h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
182
- this.update();
183
- this.maybeTruncateChoices();
184
- } })),
185
- this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id },
186
- h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
187
- h("path", { d: "M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" })),
188
- this.error))),
189
- h("input", { type: "hidden", value: this.value })));
104
+ }, ref: (el) => (this.container = el) }, this.label || this.description ? (h("label", { class: {
105
+ 'xpl-label': true,
106
+ 'xpl-label--disabled': this.disabled,
107
+ }, htmlFor: this.id }, this.label, this.description && (h("small", { class: {
108
+ 'xpl-description': true,
109
+ 'xpl-description--disabled': this.disabled,
110
+ } }, this.description)))) : null, h("div", { class: {
111
+ 'xpl-input': true,
112
+ 'xpl-input--disabled': this.disabled,
113
+ 'xpl-input--error': this.error !== undefined,
114
+ } }, h("div", { class: "xpl-input-wrapper" }, h("div", { class: {
115
+ 'xpl-select-value': true,
116
+ 'xpl-select-value--active': this.mode === 'multi' &&
117
+ this.value.length > 0,
118
+ 'has-value': this.value.length > 0,
119
+ } }, this.mode === 'single'
120
+ ? this.displayValue || this.placeholder
121
+ : this.value.length > 0
122
+ ? this.selected.map((v, i) => {
123
+ if (!v)
124
+ return null;
125
+ if (visibleChoices >= this.visibleChoices)
126
+ return null;
127
+ visibleChoices++;
128
+ return (h("xpl-tag", { onClose: () => {
129
+ this.flattenChoices().forEach((v, j) => {
130
+ if (i === j)
131
+ v.isSelected =
132
+ false;
133
+ });
134
+ const mapOptions = (option) => {
135
+ option.options =
136
+ option.groupName
137
+ ? option.options.map(mapOptions)
138
+ : undefined;
139
+ return option;
140
+ };
141
+ this.choices =
142
+ this.choices.map(mapOptions);
143
+ this.update();
144
+ this.maybeTruncateChoices();
145
+ } }, this.getDisplayValue(i)));
146
+ })
147
+ : this.placeholder, this.visibleChoices < Infinity &&
148
+ `+ ${this.selected.filter((a) => a).length -
149
+ this.visibleChoices} more`), h("button", { disabled: this.disabled, id: this.id, onKeyDown: (e) => {
150
+ if (e.key === 'Tab')
151
+ this.keepFocus = true;
152
+ }, onClick: () => {
153
+ const { dropdown } = this;
154
+ if (!this.disabled)
155
+ dropdown.isOpen = !dropdown.isOpen;
156
+ } })), !this.disabled && (h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
157
+ this.update();
158
+ this.maybeTruncateChoices();
159
+ } })), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" })), this.error))), h("input", { type: "hidden", value: this.value })));
190
160
  }
191
161
  static get is() { return "xpl-select"; }
192
- static get properties() { return {
193
- "choices": {
194
- "type": "unknown",
195
- "mutable": false,
196
- "complexType": {
197
- "original": "SelectChoice[]",
198
- "resolved": "SelectChoice[]",
199
- "references": {
200
- "SelectChoice": {
201
- "location": "import",
202
- "path": "./selectchoice"
162
+ static get properties() {
163
+ return {
164
+ "choices": {
165
+ "type": "unknown",
166
+ "mutable": false,
167
+ "complexType": {
168
+ "original": "SelectChoice[]",
169
+ "resolved": "SelectChoice[]",
170
+ "references": {
171
+ "SelectChoice": {
172
+ "location": "import",
173
+ "path": "./selectchoice"
174
+ }
203
175
  }
204
- }
176
+ },
177
+ "required": false,
178
+ "optional": true,
179
+ "docs": {
180
+ "tags": [],
181
+ "text": "An array of choices for the user to choose from.\nEach choice should be of the form:\n{\n label: string;\n href?: string;\n value?: string;\n isGroupHeading?: boolean;\n}"
182
+ },
183
+ "defaultValue": "[]"
205
184
  },
206
- "required": false,
207
- "optional": true,
208
- "docs": {
209
- "tags": [],
210
- "text": "An array of choices for the user to choose from.\nEach choice should be of the form:\n{\n label: string;\n href?: string;\n value?: string;\n isGroupHeading?: boolean;\n}"
185
+ "description": {
186
+ "type": "string",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "string",
190
+ "resolved": "string",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": true,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": "Optional text that appears below the input label."
198
+ },
199
+ "attribute": "description",
200
+ "reflect": false
211
201
  },
212
- "defaultValue": "[]"
213
- },
214
- "description": {
215
- "type": "string",
216
- "mutable": false,
217
- "complexType": {
218
- "original": "string",
219
- "resolved": "string",
220
- "references": {}
202
+ "disabled": {
203
+ "type": "boolean",
204
+ "mutable": false,
205
+ "complexType": {
206
+ "original": "boolean",
207
+ "resolved": "boolean",
208
+ "references": {}
209
+ },
210
+ "required": false,
211
+ "optional": true,
212
+ "docs": {
213
+ "tags": [],
214
+ "text": ""
215
+ },
216
+ "attribute": "disabled",
217
+ "reflect": false
221
218
  },
222
- "required": false,
223
- "optional": true,
224
- "docs": {
225
- "tags": [],
226
- "text": "Optional text that appears below the input label."
219
+ "error": {
220
+ "type": "string",
221
+ "mutable": false,
222
+ "complexType": {
223
+ "original": "string",
224
+ "resolved": "string",
225
+ "references": {}
226
+ },
227
+ "required": false,
228
+ "optional": true,
229
+ "docs": {
230
+ "tags": [],
231
+ "text": "If an empty string (attribute present with no value),\nwill display visually as an error. If a string is\nincluded, will display visually as an error and include\nthe value as an error message."
232
+ },
233
+ "attribute": "error",
234
+ "reflect": false
227
235
  },
228
- "attribute": "description",
229
- "reflect": false
230
- },
231
- "disabled": {
232
- "type": "boolean",
233
- "mutable": false,
234
- "complexType": {
235
- "original": "boolean",
236
- "resolved": "boolean",
237
- "references": {}
236
+ "label": {
237
+ "type": "string",
238
+ "mutable": false,
239
+ "complexType": {
240
+ "original": "string",
241
+ "resolved": "string",
242
+ "references": {}
243
+ },
244
+ "required": false,
245
+ "optional": true,
246
+ "docs": {
247
+ "tags": [],
248
+ "text": ""
249
+ },
250
+ "attribute": "label",
251
+ "reflect": false
238
252
  },
239
- "required": false,
240
- "optional": true,
241
- "docs": {
242
- "tags": [],
243
- "text": ""
253
+ "mode": {
254
+ "type": "string",
255
+ "mutable": false,
256
+ "complexType": {
257
+ "original": "'single' | 'multi'",
258
+ "resolved": "\"multi\" | \"single\"",
259
+ "references": {}
260
+ },
261
+ "required": false,
262
+ "optional": true,
263
+ "docs": {
264
+ "tags": [],
265
+ "text": "Whether to allow a single choice or multiple choices."
266
+ },
267
+ "attribute": "mode",
268
+ "reflect": false,
269
+ "defaultValue": "'single'"
244
270
  },
245
- "attribute": "disabled",
246
- "reflect": false
247
- },
248
- "error": {
249
- "type": "string",
250
- "mutable": false,
251
- "complexType": {
252
- "original": "string",
253
- "resolved": "string",
254
- "references": {}
271
+ "placeholder": {
272
+ "type": "string",
273
+ "mutable": false,
274
+ "complexType": {
275
+ "original": "string",
276
+ "resolved": "string",
277
+ "references": {}
278
+ },
279
+ "required": false,
280
+ "optional": false,
281
+ "docs": {
282
+ "tags": [],
283
+ "text": ""
284
+ },
285
+ "attribute": "placeholder",
286
+ "reflect": false
255
287
  },
256
- "required": false,
257
- "optional": true,
258
- "docs": {
259
- "tags": [],
260
- "text": "If an empty string (attribute present with no value),\nwill display visually as an error. If a string is\nincluded, will display visually as an error and include\nthe value as an error message."
261
- },
262
- "attribute": "error",
263
- "reflect": false
264
- },
265
- "label": {
266
- "type": "string",
267
- "mutable": false,
268
- "complexType": {
269
- "original": "string",
270
- "resolved": "string",
271
- "references": {}
272
- },
273
- "required": false,
274
- "optional": true,
275
- "docs": {
276
- "tags": [],
277
- "text": ""
278
- },
279
- "attribute": "label",
280
- "reflect": false
281
- },
282
- "mode": {
283
- "type": "string",
284
- "mutable": false,
285
- "complexType": {
286
- "original": "'single' | 'multi'",
287
- "resolved": "\"multi\" | \"single\"",
288
- "references": {}
289
- },
290
- "required": false,
291
- "optional": true,
292
- "docs": {
293
- "tags": [],
294
- "text": "Whether to allow a single choice or multiple choices."
295
- },
296
- "attribute": "mode",
297
- "reflect": false,
298
- "defaultValue": "'single'"
299
- },
300
- "placeholder": {
301
- "type": "string",
302
- "mutable": false,
303
- "complexType": {
304
- "original": "string",
305
- "resolved": "string",
306
- "references": {}
307
- },
308
- "required": false,
309
- "optional": false,
310
- "docs": {
311
- "tags": [],
312
- "text": ""
313
- },
314
- "attribute": "placeholder",
315
- "reflect": false
316
- },
317
- "truncate": {
318
- "type": "boolean",
319
- "mutable": false,
320
- "complexType": {
321
- "original": "boolean",
322
- "resolved": "boolean",
323
- "references": {}
324
- },
325
- "required": false,
326
- "optional": true,
327
- "docs": {
328
- "tags": [],
329
- "text": "Only used in multi-choice selects. If `true`,\nbadges representing selections that would overflow the\ncontainer are replaced with \"+x more\" (where x is the\nnumber not shown). If `false`, the container's height will\nadjust to show all badges representing selections."
330
- },
331
- "attribute": "truncate",
332
- "reflect": false,
333
- "defaultValue": "true"
334
- }
335
- }; }
336
- static get states() { return {
337
- "active": {},
338
- "id": {},
339
- "keepFocus": {},
340
- "selected": {},
341
- "value": {},
342
- "displayValue": {},
343
- "visibleChoices": {}
344
- }; }
288
+ "truncate": {
289
+ "type": "boolean",
290
+ "mutable": false,
291
+ "complexType": {
292
+ "original": "boolean",
293
+ "resolved": "boolean",
294
+ "references": {}
295
+ },
296
+ "required": false,
297
+ "optional": true,
298
+ "docs": {
299
+ "tags": [],
300
+ "text": "Only used in multi-choice selects. If `true`,\nbadges representing selections that would overflow the\ncontainer are replaced with \"+x more\" (where x is the\nnumber not shown). If `false`, the container's height will\nadjust to show all badges representing selections."
301
+ },
302
+ "attribute": "truncate",
303
+ "reflect": false,
304
+ "defaultValue": "true"
305
+ }
306
+ };
307
+ }
308
+ static get states() {
309
+ return {
310
+ "active": {},
311
+ "id": {},
312
+ "keepFocus": {},
313
+ "selected": {},
314
+ "value": {},
315
+ "displayValue": {},
316
+ "visibleChoices": {}
317
+ };
318
+ }
345
319
  }