@aurodesignsystem-dev/auro-formkit 0.0.0-pr1379.0 → 0.0.0-pr1379.10
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/CHANGELOG.md +2 -2
- package/README.md +87 -113
- package/components/combobox/demo/keyboardBehavior.html +81 -0
- package/components/counter/demo/keyboardBehavior.html +81 -0
- package/components/datepicker/demo/keyboard-behavior.html +81 -0
- package/components/dropdown/demo/keyboardBehavior.html +81 -0
- package/components/select/demo/keyboardBehavior.html +81 -0
- package/package.json +64 -53
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +0 -66
- package/components/bibtemplate/dist/buttonVersion.d.ts +0 -2
- package/components/bibtemplate/dist/headerVersion.d.ts +0 -2
- package/components/bibtemplate/dist/iconVersion.d.ts +0 -2
- package/components/bibtemplate/dist/index.d.ts +0 -2
- package/components/bibtemplate/dist/index.js +0 -395
- package/components/bibtemplate/dist/registered.js +0 -395
- package/components/bibtemplate/dist/styles/color-css.d.ts +0 -2
- package/components/bibtemplate/dist/styles/style-css.d.ts +0 -2
- package/components/bibtemplate/dist/styles/tokens-css.d.ts +0 -2
- package/components/checkbox/demo/api.md +0 -489
- package/components/checkbox/demo/api.min.js +0 -2133
- package/components/checkbox/demo/index.md +0 -55
- package/components/checkbox/demo/index.min.js +0 -2108
- package/components/checkbox/demo/readme.md +0 -142
- package/components/checkbox/dist/auro-checkbox-group.d.ts +0 -176
- package/components/checkbox/dist/auro-checkbox.d.ts +0 -209
- package/components/checkbox/dist/index.d.ts +0 -3
- package/components/checkbox/dist/index.js +0 -2057
- package/components/checkbox/dist/registered.js +0 -2058
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -2
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -2
- package/components/checkbox/dist/styles/color-css.d.ts +0 -2
- package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -2
- package/components/checkbox/dist/styles/tokens-css.d.ts +0 -2
- package/components/combobox/demo/api.md +0 -2287
- package/components/combobox/demo/api.min.js +0 -17549
- package/components/combobox/demo/index.md +0 -196
- package/components/combobox/demo/index.min.js +0 -17454
- package/components/combobox/demo/readme.md +0 -158
- package/components/combobox/dist/auro-combobox.d.ts +0 -552
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +0 -6
- package/components/combobox/dist/index.d.ts +0 -2
- package/components/combobox/dist/index.js +0 -15474
- package/components/combobox/dist/registered.js +0 -15476
- package/components/combobox/dist/styles/emphasized/style-css.d.ts +0 -2
- package/components/combobox/dist/styles/snowflake/style-css.d.ts +0 -2
- package/components/combobox/dist/styles/style-css.d.ts +0 -2
- package/components/counter/demo/api.md +0 -1285
- package/components/counter/demo/api.min.js +0 -7993
- package/components/counter/demo/index.md +0 -92
- package/components/counter/demo/index.min.js +0 -7974
- package/components/counter/demo/readme.md +0 -161
- package/components/counter/dist/auro-counter-button.d.ts +0 -14
- package/components/counter/dist/auro-counter-group.d.ts +0 -390
- package/components/counter/dist/auro-counter-wrapper.d.ts +0 -17
- package/components/counter/dist/auro-counter.d.ts +0 -126
- package/components/counter/dist/buttonVersion.d.ts +0 -2
- package/components/counter/dist/iconVersion.d.ts +0 -2
- package/components/counter/dist/index.d.ts +0 -3
- package/components/counter/dist/index.js +0 -7896
- package/components/counter/dist/registered.js +0 -7897
- package/components/counter/dist/styles/color-css.d.ts +0 -2
- package/components/counter/dist/styles/counter-button-color-css.d.ts +0 -2
- package/components/counter/dist/styles/counter-button-css.d.ts +0 -2
- package/components/counter/dist/styles/counter-group-css.d.ts +0 -2
- package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +0 -2
- package/components/counter/dist/styles/counter-wrapper-css.d.ts +0 -2
- package/components/counter/dist/styles/shapeSize-css.d.ts +0 -2
- package/components/counter/dist/styles/style-css.d.ts +0 -2
- package/components/counter/dist/styles/tokens-css.d.ts +0 -2
- package/components/datepicker/demo/api.md +0 -1824
- package/components/datepicker/demo/api.min.js +0 -24530
- package/components/datepicker/demo/index.md +0 -158
- package/components/datepicker/demo/index.min.js +0 -24251
- package/components/datepicker/demo/readme.md +0 -137
- package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -169
- package/components/datepicker/dist/auro-calendar-month.d.ts +0 -20
- package/components/datepicker/dist/auro-calendar.d.ts +0 -173
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -722
- package/components/datepicker/dist/buttonVersion.d.ts +0 -2
- package/components/datepicker/dist/iconVersion.d.ts +0 -2
- package/components/datepicker/dist/index.d.ts +0 -2
- package/components/datepicker/dist/index.js +0 -24166
- package/components/datepicker/dist/popoverVersion.d.ts +0 -2
- package/components/datepicker/dist/registered.js +0 -24166
- package/components/datepicker/dist/styles/classic/color-css.d.ts +0 -2
- package/components/datepicker/dist/styles/classic/style-css.d.ts +0 -2
- package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -2
- package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -2
- package/components/datepicker/dist/styles/color-css.d.ts +0 -2
- package/components/datepicker/dist/styles/color-month-css.d.ts +0 -2
- package/components/datepicker/dist/styles/shapeSize-css.d.ts +0 -2
- package/components/datepicker/dist/styles/snowflake/color-css.d.ts +0 -2
- package/components/datepicker/dist/styles/snowflake/style-css.d.ts +0 -2
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -2
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -2
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -2
- package/components/datepicker/dist/styles/style-css.d.ts +0 -2
- package/components/datepicker/dist/styles/tokens-css.d.ts +0 -2
- package/components/datepicker/dist/utilities.d.ts +0 -78
- package/components/datepicker/dist/utilitiesCalendar.d.ts +0 -38
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +0 -50
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -5
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -60
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -57
- package/components/dropdown/demo/api.md +0 -1358
- package/components/dropdown/demo/api.min.js +0 -4853
- package/components/dropdown/demo/index.md +0 -283
- package/components/dropdown/demo/index.min.js +0 -4788
- package/components/dropdown/demo/readme.md +0 -160
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -482
- package/components/dropdown/dist/auro-dropdownBib.d.ts +0 -155
- package/components/dropdown/dist/iconVersion.d.ts +0 -2
- package/components/dropdown/dist/index.d.ts +0 -2
- package/components/dropdown/dist/index.js +0 -4685
- package/components/dropdown/dist/keyboardUtils.d.ts +0 -18
- package/components/dropdown/dist/registered.js +0 -4685
- package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +0 -2
- package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +0 -2
- package/components/dropdown/dist/styles/classic/color-css.d.ts +0 -2
- package/components/dropdown/dist/styles/classic/style-css.d.ts +0 -2
- package/components/dropdown/dist/styles/color-css.d.ts +0 -2
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +0 -2
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +0 -2
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +0 -2
- package/components/dropdown/dist/styles/style-css.d.ts +0 -2
- package/components/dropdown/dist/styles/tokens-css.d.ts +0 -2
- package/components/form/demo/api.md +0 -319
- package/components/form/demo/api.min.js +0 -69996
- package/components/form/demo/index.md +0 -128
- package/components/form/demo/index.min.js +0 -69996
- package/components/form/demo/readme.md +0 -145
- package/components/form/dist/auro-form.d.ts +0 -280
- package/components/form/dist/index.d.ts +0 -2
- package/components/form/dist/index.js +0 -718
- package/components/form/dist/registered.d.ts +0 -1
- package/components/form/dist/registered.js +0 -718
- package/components/form/dist/styles/style-css.d.ts +0 -2
- package/components/helptext/dist/auro-helptext.d.ts +0 -69
- package/components/helptext/dist/index.d.ts +0 -2
- package/components/helptext/dist/index.js +0 -231
- package/components/helptext/dist/registered.js +0 -231
- package/components/helptext/dist/styles/color-css.d.ts +0 -2
- package/components/helptext/dist/styles/style-css.d.ts +0 -2
- package/components/helptext/dist/styles/tokens-css.d.ts +0 -2
- package/components/input/demo/api.md +0 -1397
- package/components/input/demo/api.min.js +0 -7435
- package/components/input/demo/index.md +0 -161
- package/components/input/demo/index.min.js +0 -7355
- package/components/input/demo/readme.md +0 -134
- package/components/input/dist/auro-input.d.ts +0 -195
- package/components/input/dist/base-input.d.ts +0 -628
- package/components/input/dist/buttonVersion.d.ts +0 -2
- package/components/input/dist/i18n.d.ts +0 -18
- package/components/input/dist/iconVersion.d.ts +0 -2
- package/components/input/dist/index.d.ts +0 -2
- package/components/input/dist/index.js +0 -7278
- package/components/input/dist/registered.js +0 -7278
- package/components/input/dist/styles/classic/color-css.d.ts +0 -2
- package/components/input/dist/styles/classic/style-css.d.ts +0 -2
- package/components/input/dist/styles/color-css.d.ts +0 -2
- package/components/input/dist/styles/default/borders-css.d.ts +0 -2
- package/components/input/dist/styles/default/color-css.d.ts +0 -2
- package/components/input/dist/styles/default/mixins-css.d.ts +0 -2
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +0 -2
- package/components/input/dist/styles/default/style-css.d.ts +0 -2
- package/components/input/dist/styles/emphasized/color-css.d.ts +0 -2
- package/components/input/dist/styles/emphasized/style-css.d.ts +0 -2
- package/components/input/dist/styles/mixins-css.d.ts +0 -2
- package/components/input/dist/styles/shapeSize-css.d.ts +0 -2
- package/components/input/dist/styles/snowflake/style-css.d.ts +0 -2
- package/components/input/dist/styles/style-css.d.ts +0 -2
- package/components/input/dist/styles/tokens-css.d.ts +0 -2
- package/components/input/dist/utilities.d.ts +0 -25
- package/components/layoutElement/dist/auroElement.d.ts +0 -40
- package/components/layoutElement/dist/index.d.ts +0 -2
- package/components/layoutElement/dist/index.js +0 -107
- package/components/layoutElement/dist/registered.js +0 -107
- package/components/menu/demo/api.md +0 -1200
- package/components/menu/demo/api.min.js +0 -2292
- package/components/menu/demo/index.md +0 -72
- package/components/menu/demo/index.min.js +0 -2185
- package/components/menu/demo/readme.md +0 -145
- package/components/menu/dist/auro-menu-utils.d.ts +0 -34
- package/components/menu/dist/auro-menu.context.d.ts +0 -227
- package/components/menu/dist/auro-menu.d.ts +0 -324
- package/components/menu/dist/auro-menuoption.d.ts +0 -210
- package/components/menu/dist/iconVersion.d.ts +0 -2
- package/components/menu/dist/index.d.ts +0 -4
- package/components/menu/dist/index.js +0 -2148
- package/components/menu/dist/registered.js +0 -2096
- package/components/menu/dist/styles/default/color-menu-css.d.ts +0 -2
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +0 -2
- package/components/menu/dist/styles/default/style-menu-css.d.ts +0 -2
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +0 -2
- package/components/menu/dist/styles/default/tokens-css.d.ts +0 -2
- package/components/radio/demo/api.md +0 -675
- package/components/radio/demo/api.min.js +0 -2210
- package/components/radio/demo/index.md +0 -73
- package/components/radio/demo/index.min.js +0 -2167
- package/components/radio/demo/readme.md +0 -141
- package/components/radio/dist/auro-radio-group.d.ts +0 -250
- package/components/radio/dist/auro-radio.d.ts +0 -180
- package/components/radio/dist/index.d.ts +0 -3
- package/components/radio/dist/index.js +0 -2116
- package/components/radio/dist/registered.js +0 -2117
- package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -2
- package/components/radio/dist/styles/color-css.d.ts +0 -2
- package/components/radio/dist/styles/groupColor-css.d.ts +0 -2
- package/components/radio/dist/styles/style-css.d.ts +0 -2
- package/components/radio/dist/styles/tokens-css.d.ts +0 -2
- package/components/select/demo/api.md +0 -2378
- package/components/select/demo/api.min.js +0 -10133
- package/components/select/demo/index.md +0 -355
- package/components/select/demo/index.min.js +0 -10040
- package/components/select/demo/readme.md +0 -148
- package/components/select/dist/auro-select.d.ts +0 -545
- package/components/select/dist/index.d.ts +0 -2
- package/components/select/dist/index.js +0 -8072
- package/components/select/dist/registered.js +0 -8072
- package/components/select/dist/selectKeyboardStrategy.d.ts +0 -8
- package/components/select/dist/styles/emphasized/color-css.d.ts +0 -2
- package/components/select/dist/styles/shapeSize-css.d.ts +0 -2
- package/components/select/dist/styles/style-css.d.ts +0 -2
- package/components/select/dist/styles/tokens-css.d.ts +0 -2
- package/custom-elements.json +0 -18656
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
The README.md file is a compiled document. No edits should be made directly to this file.
|
|
3
|
-
|
|
4
|
-
README.md is created by running `npm run build:docs`.
|
|
5
|
-
|
|
6
|
-
This file is generated based on a template fetched from
|
|
7
|
-
`../../docs/templates/componentReadmeTemplate.md`
|
|
8
|
-
and copied to `./componentDocs/README.md` each time the docs are compiled.
|
|
9
|
-
|
|
10
|
-
The following sections are editable by making changes to the following files:
|
|
11
|
-
|
|
12
|
-
| SECTION | DESCRIPTION | FILE LOCATION |
|
|
13
|
-
|------------------------|---------------------------------------------------|-------------------------------------|
|
|
14
|
-
| Description | Description of the component | `./docs/partials/description.md` |
|
|
15
|
-
| Use Cases | Examples for when to use this component | `./docs/partials/useCases.md` |
|
|
16
|
-
| Additional Information | For use to add any component specific information | `./docs/partials/readmeAddlInfo.md` |
|
|
17
|
-
| Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` |
|
|
18
|
-
-->
|
|
19
|
-
|
|
20
|
-
# Select
|
|
21
|
-
|
|
22
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
23
|
-
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
|
-
`<auro-select>` is a combination <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements">HTML custom element</auro-hyperlink> that consists of a pre-defined trigger element, `<auro-menu>` for the panel content. The `<auro-select>` element presents a menu of options. The options within the menu are represented by `<auro-menu>` and `<auro-menuoption>` elements. You can pre-select options for the user with the `selected` attribute as part of the `<auro-menuoption>` API.
|
|
25
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
26
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
27
|
-
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
28
|
-
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
|
|
29
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
30
|
-
|
|
31
|
-
## Select Use Cases
|
|
32
|
-
|
|
33
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
34
|
-
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
35
|
-
See description.
|
|
36
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
37
|
-
|
|
38
|
-
## Getting Started
|
|
39
|
-
|
|
40
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
|
|
41
|
-
<!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
|
|
42
|
-
|
|
43
|
-
#### NPM Installation
|
|
44
|
-
|
|
45
|
-
```shell
|
|
46
|
-
$ npm i @aurodesignsystem/auro-formkit
|
|
47
|
-
```
|
|
48
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
49
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
50
|
-
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
51
|
-
|
|
52
|
-
### TypeScript Module Resolution
|
|
53
|
-
|
|
54
|
-
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
55
|
-
|
|
56
|
-
```json
|
|
57
|
-
{
|
|
58
|
-
"compilerOptions": {
|
|
59
|
-
"moduleResolution": "bundler"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
This configuration enables proper module resolution for the component's TypeScript files.
|
|
65
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
66
|
-
|
|
67
|
-
## Install from CDN
|
|
68
|
-
|
|
69
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
70
|
-
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
71
|
-
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
72
|
-
|
|
73
|
-
```html
|
|
74
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-select/+esm"></script>
|
|
75
|
-
```
|
|
76
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
77
|
-
|
|
78
|
-
## Formkit Development
|
|
79
|
-
|
|
80
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
81
|
-
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
82
|
-
|
|
83
|
-
### Filtering
|
|
84
|
-
|
|
85
|
-
Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
|
|
86
|
-
|
|
87
|
-
To only develop a single component, use the `--filter` flag:
|
|
88
|
-
|
|
89
|
-
```shell
|
|
90
|
-
npx turbo dev --filter=@aurodesignsystem/auro-input
|
|
91
|
-
```
|
|
92
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
93
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
94
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
95
|
-
|
|
96
|
-
## Custom Component Registration for Version Management
|
|
97
|
-
|
|
98
|
-
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
99
|
-
|
|
100
|
-
When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
|
|
101
|
-
|
|
102
|
-
However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
|
|
103
|
-
|
|
104
|
-
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
105
|
-
|
|
106
|
-
```js
|
|
107
|
-
// Import the class only
|
|
108
|
-
import { AuroSelect } from '@aurodesignsystem/auro-formkit/auro-select/class';
|
|
109
|
-
|
|
110
|
-
// Register with a custom name if desired
|
|
111
|
-
AuroSelect.register('custom-select');
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
This will create a new custom element `<custom-select>` that behaves exactly like `<auro-select>`, allowing both to coexist on the same page without interfering with each other.
|
|
115
|
-
|
|
116
|
-
<div class="exampleWrapper exampleWrapper--flex">
|
|
117
|
-
<custom-select placeholder="Placeholder Text">
|
|
118
|
-
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
119
|
-
<span slot="label">Label</span>
|
|
120
|
-
<auro-menu>
|
|
121
|
-
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
122
|
-
<auro-menuoption value="price">Price</auro-menuoption>
|
|
123
|
-
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
124
|
-
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
125
|
-
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
126
|
-
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
127
|
-
</auro-menu>
|
|
128
|
-
</custom-select>
|
|
129
|
-
</div>
|
|
130
|
-
<auro-accordion alignRight>
|
|
131
|
-
<span slot="trigger">See code</span>
|
|
132
|
-
|
|
133
|
-
```html
|
|
134
|
-
<custom-select placeholder="Placeholder Text">
|
|
135
|
-
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
136
|
-
<span slot="label">Label</span>
|
|
137
|
-
<auro-menu>
|
|
138
|
-
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
139
|
-
<auro-menuoption value="price">Price</auro-menuoption>
|
|
140
|
-
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
141
|
-
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
142
|
-
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
143
|
-
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
144
|
-
</auro-menu>
|
|
145
|
-
</custom-select>
|
|
146
|
-
```
|
|
147
|
-
</auro-accordion>
|
|
148
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1,545 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `auro-select` element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
3
|
-
* @customElement auro-select
|
|
4
|
-
*
|
|
5
|
-
* @slot - Default slot for the menu content.
|
|
6
|
-
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
7
|
-
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
8
|
-
* @slot label - Defines the content of the label.
|
|
9
|
-
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
10
|
-
* @slot helpText - Defines the content of the helpText.
|
|
11
|
-
* @slot valueText - Dropdown value text display.
|
|
12
|
-
* @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
|
|
13
|
-
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
14
|
-
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
15
|
-
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
16
|
-
* @csspart dropdownTrigger - Apply CSS to the trigger content container.
|
|
17
|
-
* @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
|
|
18
|
-
* @csspart dropdownSize - Apply size styles to the dropdown bib (height, width, maxHeight, maxWidth only).
|
|
19
|
-
* @csspart helpText - Apply CSS to the help text.
|
|
20
|
-
*/
|
|
21
|
-
export class AuroSelect extends AuroElement {
|
|
22
|
-
static get properties(): {
|
|
23
|
-
/**
|
|
24
|
-
* Defines whether the component will be on lighter or darker backgrounds.
|
|
25
|
-
* @type {'default' | 'inverse'}
|
|
26
|
-
* @default 'default'
|
|
27
|
-
*/
|
|
28
|
-
appearance: "default" | "inverse";
|
|
29
|
-
/**
|
|
30
|
-
* If declared, bib's position will be automatically calculated where to appear.
|
|
31
|
-
*/
|
|
32
|
-
autoPlacement: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
reflect: boolean;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* If declared, sets the autocomplete attribute for the select element.
|
|
38
|
-
*/
|
|
39
|
-
autocomplete: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
reflect: boolean;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* When attribute is present, element shows disabled state.
|
|
45
|
-
*/
|
|
46
|
-
disabled: {
|
|
47
|
-
type: BooleanConstructor;
|
|
48
|
-
reflect: boolean;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
52
|
-
*/
|
|
53
|
-
error: {
|
|
54
|
-
type: StringConstructor;
|
|
55
|
-
reflect: boolean;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* If declared, make the width of the bib match the width of the content, rather than the trigger.
|
|
59
|
-
*/
|
|
60
|
-
flexMenuWidth: {
|
|
61
|
-
type: BooleanConstructor;
|
|
62
|
-
reflect: boolean;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* When attribute is present, element will be 100% width of container element.
|
|
66
|
-
*/
|
|
67
|
-
fluid: {
|
|
68
|
-
type: BooleanConstructor;
|
|
69
|
-
reflect: boolean;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* If declared, the label and value will be visually hidden and the displayValue will render 100% of the time.
|
|
73
|
-
*/
|
|
74
|
-
forceDisplayValue: {
|
|
75
|
-
type: BooleanConstructor;
|
|
76
|
-
reflect: boolean;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
80
|
-
*
|
|
81
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
82
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
83
|
-
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
84
|
-
* @default 'sm'
|
|
85
|
-
*/
|
|
86
|
-
fullscreenBreakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "disabled";
|
|
87
|
-
/**
|
|
88
|
-
* @private
|
|
89
|
-
*/
|
|
90
|
-
hasDisplayValueContent: {
|
|
91
|
-
type: BooleanConstructor;
|
|
92
|
-
reflect: boolean;
|
|
93
|
-
attribute: boolean;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* @private
|
|
97
|
-
*/
|
|
98
|
-
hasFocus: {
|
|
99
|
-
type: BooleanConstructor;
|
|
100
|
-
reflect: boolean;
|
|
101
|
-
attribute: boolean;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* @private
|
|
105
|
-
*/
|
|
106
|
-
isPopoverVisible: {
|
|
107
|
-
type: BooleanConstructor;
|
|
108
|
-
reflect: boolean;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
112
|
-
* Otherwise, Heading 600.
|
|
113
|
-
*/
|
|
114
|
-
largeFullscreenHeadline: {
|
|
115
|
-
type: BooleanConstructor;
|
|
116
|
-
reflect: boolean;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Determines the overall layout of the select component.
|
|
120
|
-
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
121
|
-
* @default 'classic'
|
|
122
|
-
*/
|
|
123
|
-
layout: "classic" | "emphasized" | "snowflake";
|
|
124
|
-
/**
|
|
125
|
-
* If declared, the popover and trigger will be set to the same width.
|
|
126
|
-
*/
|
|
127
|
-
matchWidth: {
|
|
128
|
-
type: BooleanConstructor;
|
|
129
|
-
reflect: boolean;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Sets multi-select mode, allowing multiple options to be selected at once.
|
|
133
|
-
*/
|
|
134
|
-
multiSelect: {
|
|
135
|
-
type: BooleanConstructor;
|
|
136
|
-
reflect: boolean;
|
|
137
|
-
attribute: string;
|
|
138
|
-
};
|
|
139
|
-
/**
|
|
140
|
-
* The name for the select element.
|
|
141
|
-
*/
|
|
142
|
-
name: {
|
|
143
|
-
type: StringConstructor;
|
|
144
|
-
reflect: boolean;
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* When true, checkmark on selected option will no longer be present.
|
|
148
|
-
*/
|
|
149
|
-
noCheckmark: {
|
|
150
|
-
type: BooleanConstructor;
|
|
151
|
-
reflect: boolean;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* If declared, the bib will NOT flip to an alternate position
|
|
155
|
-
* when there isn't enough space in the specified `placement`.
|
|
156
|
-
*/
|
|
157
|
-
noFlip: {
|
|
158
|
-
type: BooleanConstructor;
|
|
159
|
-
reflect: boolean;
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* If set, disables auto-validation on blur.
|
|
163
|
-
*/
|
|
164
|
-
noValidate: {
|
|
165
|
-
type: BooleanConstructor;
|
|
166
|
-
reflect: boolean;
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* Gap between the trigger element and bib.
|
|
170
|
-
* @default 0
|
|
171
|
-
*/
|
|
172
|
-
offset: {
|
|
173
|
-
type: NumberConstructor;
|
|
174
|
-
reflect: boolean;
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* DEPRECATED - use `appearance="inverse"` instead.
|
|
178
|
-
*/
|
|
179
|
-
onDark: {
|
|
180
|
-
type: BooleanConstructor;
|
|
181
|
-
reflect: boolean;
|
|
182
|
-
};
|
|
183
|
-
/**
|
|
184
|
-
* @private
|
|
185
|
-
*/
|
|
186
|
-
options: {
|
|
187
|
-
type: ArrayConstructor;
|
|
188
|
-
state: boolean;
|
|
189
|
-
};
|
|
190
|
-
/**
|
|
191
|
-
* Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.
|
|
192
|
-
* @type {HTMLElement|Array<HTMLElement>}
|
|
193
|
-
*/
|
|
194
|
-
optionSelected: HTMLElement | Array<HTMLElement>;
|
|
195
|
-
/**
|
|
196
|
-
* Define custom placeholder text.
|
|
197
|
-
*/
|
|
198
|
-
placeholder: {
|
|
199
|
-
type: StringConstructor;
|
|
200
|
-
reflect: boolean;
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* Position where the bib should appear relative to the trigger.
|
|
204
|
-
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
205
|
-
* @default 'bottom-start'
|
|
206
|
-
*/
|
|
207
|
-
placement: "top" | "right" | "bottom" | "left" | "bottom-start" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "left-start" | "left-end";
|
|
208
|
-
/**
|
|
209
|
-
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
210
|
-
*/
|
|
211
|
-
required: {
|
|
212
|
-
type: BooleanConstructor;
|
|
213
|
-
reflect: boolean;
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* Sets a custom help text message to display for all validityStates.
|
|
217
|
-
*/
|
|
218
|
-
setCustomValidity: {
|
|
219
|
-
type: StringConstructor;
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* Custom help text message to display when validity = `customError`.
|
|
223
|
-
*/
|
|
224
|
-
setCustomValidityCustomError: {
|
|
225
|
-
type: StringConstructor;
|
|
226
|
-
};
|
|
227
|
-
/**
|
|
228
|
-
* Custom help text message to display when validity = `valueMissing`.
|
|
229
|
-
*/
|
|
230
|
-
setCustomValidityValueMissing: {
|
|
231
|
-
type: StringConstructor;
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* Determines the shape of the dropdown bib.
|
|
235
|
-
* @type {'classic' | 'pill' | 'pill-left' | 'pill-right' | 'snowflake'}
|
|
236
|
-
*/
|
|
237
|
-
shape: "classic" | "pill" | "pill-left" | "pill-right" | "snowflake";
|
|
238
|
-
/**
|
|
239
|
-
* If set, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
240
|
-
*/
|
|
241
|
-
shift: {
|
|
242
|
-
type: BooleanConstructor;
|
|
243
|
-
reflect: boolean;
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* Determines the size of the dropdown bib. Only the `emphasized` layout supports size=`xl`, while all other layouts support size=`lg`.
|
|
247
|
-
* @type {'lg' | 'xl'}
|
|
248
|
-
*/
|
|
249
|
-
size: "lg" | "xl";
|
|
250
|
-
/**
|
|
251
|
-
* Indicates whether the input is in a dirty state (has been interacted with).
|
|
252
|
-
* @private
|
|
253
|
-
*/
|
|
254
|
-
touched: {
|
|
255
|
-
type: BooleanConstructor;
|
|
256
|
-
reflect: boolean;
|
|
257
|
-
attribute: boolean;
|
|
258
|
-
};
|
|
259
|
-
/**
|
|
260
|
-
* Specifies the `validityState` this element is in.
|
|
261
|
-
*/
|
|
262
|
-
validity: {
|
|
263
|
-
type: StringConstructor;
|
|
264
|
-
reflect: boolean;
|
|
265
|
-
};
|
|
266
|
-
/**
|
|
267
|
-
* Value selected for the component.
|
|
268
|
-
*/
|
|
269
|
-
value: {
|
|
270
|
-
type: StringConstructor;
|
|
271
|
-
reflect: boolean;
|
|
272
|
-
attribute: string;
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
static get styles(): import("lit").CSSResult[];
|
|
276
|
-
/**
|
|
277
|
-
* This will register this element with the browser.
|
|
278
|
-
* @param {string} [name="auro-select"] - The name of element that you want to register to.
|
|
279
|
-
*
|
|
280
|
-
* @example
|
|
281
|
-
* AuroSelect.register("custom-select") // this will register this element to <custom-select/>
|
|
282
|
-
*
|
|
283
|
-
*/
|
|
284
|
-
static register(name?: string): void;
|
|
285
|
-
matchWidth: boolean;
|
|
286
|
-
placement: string;
|
|
287
|
-
offset: number;
|
|
288
|
-
noFlip: boolean;
|
|
289
|
-
shift: boolean;
|
|
290
|
-
autoPlacement: boolean;
|
|
291
|
-
forceDisplayValue: boolean;
|
|
292
|
-
/**
|
|
293
|
-
* @private
|
|
294
|
-
*/
|
|
295
|
-
private uniqueId;
|
|
296
|
-
/**
|
|
297
|
-
* @private
|
|
298
|
-
*/
|
|
299
|
-
private validation;
|
|
300
|
-
/**
|
|
301
|
-
* @private
|
|
302
|
-
*/
|
|
303
|
-
private runtimeUtils;
|
|
304
|
-
/**
|
|
305
|
-
* @private
|
|
306
|
-
*/
|
|
307
|
-
private dropdownTag;
|
|
308
|
-
/**
|
|
309
|
-
* @private
|
|
310
|
-
*/
|
|
311
|
-
private bibtemplateTag;
|
|
312
|
-
/**
|
|
313
|
-
* @private
|
|
314
|
-
*/
|
|
315
|
-
private helpTextTag;
|
|
316
|
-
/**
|
|
317
|
-
* @private
|
|
318
|
-
*/
|
|
319
|
-
private isHiddenWhileLoading;
|
|
320
|
-
/**
|
|
321
|
-
* @private
|
|
322
|
-
*/
|
|
323
|
-
private hasFocus;
|
|
324
|
-
/**
|
|
325
|
-
* @private
|
|
326
|
-
*/
|
|
327
|
-
private hasDisplayValueContent;
|
|
328
|
-
/**
|
|
329
|
-
* @private
|
|
330
|
-
* @returns {void} Internal defaults.
|
|
331
|
-
*/
|
|
332
|
-
private _initializeDefaults;
|
|
333
|
-
appearance: string;
|
|
334
|
-
value: any;
|
|
335
|
-
fullscreenBreakpoint: string;
|
|
336
|
-
onDark: boolean;
|
|
337
|
-
isPopoverVisible: any;
|
|
338
|
-
shape: string;
|
|
339
|
-
size: string;
|
|
340
|
-
/**
|
|
341
|
-
* Formatted value based on `multiSelect` state.
|
|
342
|
-
* Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
|
|
343
|
-
* @private
|
|
344
|
-
* @returns {String|Array<String>}
|
|
345
|
-
*/
|
|
346
|
-
private get formattedValue();
|
|
347
|
-
/**
|
|
348
|
-
* Returns classmap configuration for html5 input labels in all layouts.
|
|
349
|
-
* @private
|
|
350
|
-
* @returns {Record<string, boolean>}
|
|
351
|
-
*/
|
|
352
|
-
private get commonLabelClasses();
|
|
353
|
-
/**
|
|
354
|
-
* Returns the label font class based on layout and selection state.
|
|
355
|
-
* @private
|
|
356
|
-
* @returns {string} - The font class for the label.
|
|
357
|
-
*/
|
|
358
|
-
private get labelFontClass();
|
|
359
|
-
/**
|
|
360
|
-
* Whether or not the component has a value.
|
|
361
|
-
* @returns {boolean} - Returns true if the component has a value or placeholder.
|
|
362
|
-
* @private
|
|
363
|
-
*/
|
|
364
|
-
private get hasValue();
|
|
365
|
-
/**
|
|
366
|
-
* Binds all behavior needed to the dropdown after rendering.
|
|
367
|
-
* @private
|
|
368
|
-
* @returns {void}
|
|
369
|
-
*/
|
|
370
|
-
private configureDropdown;
|
|
371
|
-
dropdown: any;
|
|
372
|
-
optionActive: any;
|
|
373
|
-
bibtemplate: any;
|
|
374
|
-
/**
|
|
375
|
-
* Updates the displayed value in an Auro dropdown component based on optionSelected.
|
|
376
|
-
* @private
|
|
377
|
-
* @returns {void}
|
|
378
|
-
*/
|
|
379
|
-
private updateDisplayedValue;
|
|
380
|
-
/**
|
|
381
|
-
* Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
|
|
382
|
-
* @private
|
|
383
|
-
*/
|
|
384
|
-
private updateMenuShapeSize;
|
|
385
|
-
/**
|
|
386
|
-
* Sets aria-setsize and aria-posinset on each menu option so screen readers
|
|
387
|
-
* can announce position even when the listbox context is broken by
|
|
388
|
-
* shadow DOM boundaries.
|
|
389
|
-
* @private
|
|
390
|
-
* @returns {void}
|
|
391
|
-
*/
|
|
392
|
-
private updateOptionPositions;
|
|
393
|
-
/**
|
|
394
|
-
* Binds all behavior needed to the menu after rendering.
|
|
395
|
-
* @private
|
|
396
|
-
* @returns {void}
|
|
397
|
-
*/
|
|
398
|
-
private configureMenu;
|
|
399
|
-
menu: Element;
|
|
400
|
-
defaultMenuSize: string;
|
|
401
|
-
defaultMenuShape: string;
|
|
402
|
-
options: any;
|
|
403
|
-
optionSelected: any;
|
|
404
|
-
/**
|
|
405
|
-
* Binds all behavior needed to the component after rendering.
|
|
406
|
-
* @private
|
|
407
|
-
* @returns {void}
|
|
408
|
-
*/
|
|
409
|
-
private configureSelect;
|
|
410
|
-
nativeSelect: HTMLSelectElement;
|
|
411
|
-
/**
|
|
412
|
-
* Updates the active option in the menu.
|
|
413
|
-
* @param {number} index - Index of the option to make active.
|
|
414
|
-
*/
|
|
415
|
-
updateActiveOption(index: number): void;
|
|
416
|
-
/**
|
|
417
|
-
* Updates the active option in the menu based on keyboard input.
|
|
418
|
-
* @private
|
|
419
|
-
* @param {string} _key - The key pressed by the user.
|
|
420
|
-
* @returns {void}
|
|
421
|
-
*/
|
|
422
|
-
private updateActiveOptionBasedOnKey;
|
|
423
|
-
sameLetterTimes: any;
|
|
424
|
-
lastLetter: string;
|
|
425
|
-
/**
|
|
426
|
-
* Manages the visibility of the dropdown based on loading state changes.
|
|
427
|
-
*
|
|
428
|
-
* This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
|
|
429
|
-
* If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
|
|
430
|
-
* and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
|
|
431
|
-
* hidden, it checks if the active element is within the dropdown and shows it again if true.
|
|
432
|
-
*
|
|
433
|
-
* @private
|
|
434
|
-
* @param {CustomEvent} event - The event object containing details about the loading state change.
|
|
435
|
-
* @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
|
|
436
|
-
* @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
|
|
437
|
-
* @returns {void}
|
|
438
|
-
*/
|
|
439
|
-
private handleMenuLoadingChange;
|
|
440
|
-
/**
|
|
441
|
-
* Hides the dropdown bib if its open.
|
|
442
|
-
* @returns {void}
|
|
443
|
-
*/
|
|
444
|
-
hideBib(): void;
|
|
445
|
-
/**
|
|
446
|
-
* Shows the dropdown bib if there are options to show.
|
|
447
|
-
* @returns {void}
|
|
448
|
-
*/
|
|
449
|
-
showBib(): void;
|
|
450
|
-
/**
|
|
451
|
-
* Function to support @focusin event.
|
|
452
|
-
* @private
|
|
453
|
-
* @return {void}
|
|
454
|
-
*/
|
|
455
|
-
private handleFocusin;
|
|
456
|
-
touched: boolean;
|
|
457
|
-
/**
|
|
458
|
-
* Watch for slot changes and recalculate the menuoptions.
|
|
459
|
-
* @private
|
|
460
|
-
* @param {Event} event - `slotchange` event.
|
|
461
|
-
* @returns {void}
|
|
462
|
-
*/
|
|
463
|
-
private handleSlotChange;
|
|
464
|
-
/**
|
|
465
|
-
* Resets all options to their default state.
|
|
466
|
-
* @private
|
|
467
|
-
*/
|
|
468
|
-
private clearSelection;
|
|
469
|
-
firstUpdated(): void;
|
|
470
|
-
setMenuValue(value: any): void;
|
|
471
|
-
/**
|
|
472
|
-
* Scrolls the currently active option into view.
|
|
473
|
-
* Respects user's motion preferences for accessibility.
|
|
474
|
-
* @private
|
|
475
|
-
*/
|
|
476
|
-
private scrollActiveOptionIntoView;
|
|
477
|
-
/**
|
|
478
|
-
* Scrolls the currently selected option into view.
|
|
479
|
-
* Respects user's motion preferences for accessibility.
|
|
480
|
-
* @private
|
|
481
|
-
*/
|
|
482
|
-
private scrollSelectedOptionIntoView;
|
|
483
|
-
updated(changedProperties: any): void;
|
|
484
|
-
/**
|
|
485
|
-
* Resets component to initial state.
|
|
486
|
-
* @returns {void}
|
|
487
|
-
*/
|
|
488
|
-
reset(): void;
|
|
489
|
-
/**
|
|
490
|
-
* Validates value.
|
|
491
|
-
* @param {boolean} [force=false] - Whether to force validation.
|
|
492
|
-
*/
|
|
493
|
-
validate(force?: boolean): void;
|
|
494
|
-
/**
|
|
495
|
-
* Syncs the value from the native select element to the component's value.
|
|
496
|
-
* @param {Event} event // The change event from the native select element.
|
|
497
|
-
* @returns {void}
|
|
498
|
-
* @private
|
|
499
|
-
*/
|
|
500
|
-
private _handleNativeSelectChange;
|
|
501
|
-
/**
|
|
502
|
-
* Updates the native select element's value based on the component's value.
|
|
503
|
-
* @returns {void}
|
|
504
|
-
* @private
|
|
505
|
-
*/
|
|
506
|
-
private _updateNativeSelect;
|
|
507
|
-
/**
|
|
508
|
-
* Returns HTML for the hidden HTML5 select.
|
|
509
|
-
* @private
|
|
510
|
-
* @returns {html} - Returns HTML for the hidden HTML5 select.
|
|
511
|
-
*/
|
|
512
|
-
private renderNativeSelect;
|
|
513
|
-
/**
|
|
514
|
-
* Returns HTML for the help text and error message.
|
|
515
|
-
* @private
|
|
516
|
-
* @returns {html} - Returns HTML for the help text and error message.
|
|
517
|
-
*/
|
|
518
|
-
private renderHtmlHelpText;
|
|
519
|
-
/**
|
|
520
|
-
* Returns HTML for the emphasized layout.
|
|
521
|
-
* @private
|
|
522
|
-
* @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
|
|
523
|
-
*/
|
|
524
|
-
private renderLayoutEmphasized;
|
|
525
|
-
/**
|
|
526
|
-
* Returns HTML for the snowflake layout.
|
|
527
|
-
* @private
|
|
528
|
-
* @returns {import("lit").TemplateResult} - Returns HTML for the snowflake layout.
|
|
529
|
-
*/
|
|
530
|
-
private renderLayoutSnowflake;
|
|
531
|
-
/**
|
|
532
|
-
* Returns HTML for the classic layout.
|
|
533
|
-
* @private
|
|
534
|
-
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
535
|
-
*/
|
|
536
|
-
private renderLayoutClassic;
|
|
537
|
-
/**
|
|
538
|
-
* Logic to determine the layout of the component.
|
|
539
|
-
* @private
|
|
540
|
-
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
541
|
-
* @returns {void}
|
|
542
|
-
*/
|
|
543
|
-
private renderLayout;
|
|
544
|
-
}
|
|
545
|
-
import { AuroElement } from '../../layoutElement/src/auroElement.js';
|