@aurodesignsystem/auro-dialog 3.1.7 → 4.0.0-rc-1.1
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 +17 -0
- package/NOTICE +2 -0
- package/README.md +16 -50
- package/demo/api.html +64 -0
- package/demo/api.js +4 -4
- package/demo/api.min.js +101 -2240
- package/demo/auro-dialog.min.js +871 -0
- package/demo/index.html +63 -0
- package/demo/index.js +4 -3
- package/demo/index.md +1 -1
- package/demo/index.min.js +13 -2176
- package/dist/auro-dialog-GEQYCVM4.js +111 -0
- package/dist/index.d.ts +118 -0
- package/dist/index.js +1 -0
- package/dist/registered.js +1 -0
- package/package.json +43 -131
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/.vscode/settings.json +0 -2
- package/apiExamples/accessibility.js +0 -12
- package/apiExamples/basic.js +0 -14
- package/apiExamples/custom.js +0 -14
- package/apiExamples/decoupled.js +0 -27
- package/apiExamples/editCloseButton.js +0 -12
- package/apiExamples/modal.js +0 -40
- package/apiExamples/popoverAndDropdown.js +0 -14
- package/apiExamples/sizeOptions.js +0 -40
- package/dist/auro-dialog.d.ts +0 -34
- package/dist/auro-dialog.d.ts.map +0 -1
- package/dist/auro-dialog__bundled.js +0 -2155
- package/dist/buttonVersion.d.ts +0 -3
- package/dist/buttonVersion.d.ts.map +0 -1
- package/dist/componentBase.d.ts +0 -117
- package/dist/componentBase.d.ts.map +0 -1
- package/dist/iconVersion.d.ts +0 -3
- package/dist/iconVersion.d.ts.map +0 -1
- package/dist/styles/color-css.d.ts +0 -3
- package/dist/styles/color-css.d.ts.map +0 -1
- package/dist/styles/style-css.d.ts +0 -3
- package/dist/styles/style-css.d.ts.map +0 -1
- package/dist/styles/style-unformatted-css.d.ts +0 -3
- package/dist/styles/style-unformatted-css.d.ts.map +0 -1
- package/dist/styles/tokens-css.d.ts +0 -3
- package/dist/styles/tokens-css.d.ts.map +0 -1
- package/index.js +0 -3
- package/packageScripts/postinstall.mjs +0 -28
- package/src/auro-dialog.js +0 -46
- package/src/buttonVersion.js +0 -1
- package/src/componentBase.js +0 -308
- package/src/iconVersion.js +0 -1
- package/src/styles/color-css.js +0 -2
- package/src/styles/style-css.js +0 -2
- package/src/styles/style-unformatted-css.js +0 -2
- package/src/styles/tokens-css.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
|
+
# [4.0.0-rc-1.1](https://github.com/AlaskaAirlines/auro-dialog/compare/v3.1.8...v4.0.0-rc-1.1) (2025-10-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* feat!: upgrade package tooling to use auro-cli ([8c9303d](https://github.com/AlaskaAirlines/auro-dialog/commit/8c9303dfd9cd89003fcb8b7db83ed683a067ee6a)), closes [AlaskaAirlines/auro-cli#108](https://github.com/AlaskaAirlines/auro-cli/issues/108) [AlaskaAirlines/auro-cli#109](https://github.com/AlaskaAirlines/auro-cli/issues/109) [AlaskaAirlines/auro-cli#110](https://github.com/AlaskaAirlines/auro-cli/issues/110) [AlaskaAirlines/auro-cli#111](https://github.com/AlaskaAirlines/auro-cli/issues/111)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### BREAKING CHANGES
|
|
8
|
+
|
|
9
|
+
* Package exports have changed. To access the component class add /class to the end of the import. See "exports" in the package.json for more details.
|
|
10
|
+
|
|
1
11
|
# Semantic Release Automated Changelog
|
|
2
12
|
|
|
13
|
+
## [3.1.8](https://github.com/AlaskaAirlines/auro-dialog/compare/v3.1.7...v3.1.8) (2025-09-29)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* add room on content area for focus-indicator [#76](https://github.com/AlaskaAirlines/auro-dialog/issues/76) [#75](https://github.com/AlaskaAirlines/auro-dialog/issues/75) ([e85d4c9](https://github.com/AlaskaAirlines/auro-dialog/commit/e85d4c9662acb6043ba6e4d13169115bdc32a870))
|
|
19
|
+
|
|
3
20
|
## [3.1.7](https://github.com/AlaskaAirlines/auro-dialog/compare/v3.1.6...v3.1.7) (2025-09-04)
|
|
4
21
|
|
|
5
22
|
|
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ The README.md file is a compiled document. No edits should be made directly to t
|
|
|
4
4
|
README.md is created by running `npm run build:docs`.
|
|
5
5
|
|
|
6
6
|
This file is generated based on a template fetched from
|
|
7
|
-
`https://raw.githubusercontent.com/AlaskaAirlines/
|
|
8
|
-
and copied to `./componentDocs/README.md` each time the
|
|
7
|
+
`https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/README.md`
|
|
8
|
+
and copied to `./componentDocs/README.md` each time the docs are compiled.
|
|
9
9
|
|
|
10
10
|
The following sections are editable by making changes to the following files:
|
|
11
11
|
|
|
@@ -34,14 +34,14 @@ Auro holds the opinions of the [Nielsen Norman Group](https://www.nngroup.com/ar
|
|
|
34
34
|
|
|
35
35
|
## UI development browser support
|
|
36
36
|
|
|
37
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
37
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/browserSupport.md) -->
|
|
38
38
|
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
39
39
|
|
|
40
40
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
41
41
|
|
|
42
42
|
## Install
|
|
43
43
|
|
|
44
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
44
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentInstall.md) -->
|
|
45
45
|
[](https://github.com/AlaskaAirlines/auro-dialog/actions/workflows/testPublish.yml)
|
|
46
46
|
[](https://www.npmjs.com/package/@aurodesignsystem/auro-dialog)
|
|
47
47
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -51,24 +51,22 @@ For the most up to date information on [UI development browser support](https://
|
|
|
51
51
|
$ npm i @aurodesignsystem/auro-dialog
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
Installing as a direct, dev or peer dependency is up to the user installing the package. If you are unsure as to what type of dependency you should use, consider reading this [stack overflow](https://stackoverflow.com/questions/18875674/whats-the-difference-between-dependencies-devdependencies-and-peerdependencies) answer.
|
|
55
|
-
|
|
56
54
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
57
55
|
|
|
58
56
|
### Design Token CSS Custom Property dependency
|
|
59
57
|
|
|
60
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
58
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/designTokens.md) -->
|
|
61
59
|
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
62
60
|
|
|
63
61
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
64
62
|
|
|
65
63
|
### Define dependency in project component
|
|
66
64
|
|
|
67
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
65
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
|
|
68
66
|
Defining the component dependency within each component that is using the `<auro-dialog>` component.
|
|
69
67
|
|
|
70
68
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
71
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
69
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
|
|
72
70
|
|
|
73
71
|
```js
|
|
74
72
|
import "@aurodesignsystem/auro-dialog";
|
|
@@ -103,23 +101,13 @@ import "@aurodesignsystem/auro-dialog";
|
|
|
103
101
|
```
|
|
104
102
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
103
|
|
|
106
|
-
##
|
|
107
|
-
|
|
108
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleInstallDescription.md) -->
|
|
109
|
-
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. See -- `auro-dialog__bundled.js` for modern browsers. Legacy browsers such as IE11 are no longer supported.
|
|
110
|
-
|
|
111
|
-
**WARNING!** When installing into your application environment, DO NOT use `@latest` for the requested version. Risks include unknown MAJOR version releases and instant adoption of any new features and possible bugs without developer knowledge. The `@latest` wildcard should NEVER be used for production customer-facing applications. You have been warned.
|
|
104
|
+
## Use CDN
|
|
112
105
|
|
|
113
|
-
<!-- AURO-GENERATED-CONTENT:
|
|
114
|
-
|
|
115
|
-
### Bundle example code
|
|
106
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
|
|
107
|
+
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.
|
|
116
108
|
|
|
117
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUseModBrowsers.md) -->
|
|
118
|
-
|
|
119
109
|
```html
|
|
120
|
-
<
|
|
121
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@/dist/bundled/essentials.css" />
|
|
122
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@3.1.7/dist/auro-dialog__bundled.js" type="module"></script>
|
|
110
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/+esm"></script>
|
|
123
111
|
```
|
|
124
112
|
|
|
125
113
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -167,7 +155,7 @@ The `<auro-dialog>` component should be used in situations where users may:
|
|
|
167
155
|
|
|
168
156
|
## Development
|
|
169
157
|
|
|
170
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
158
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/developmentDescription.md) -->
|
|
171
159
|
In order to develop against this project, if you are not part of the core team, you will be required to fork the project prior to submitting a pull request.
|
|
172
160
|
|
|
173
161
|
Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document.
|
|
@@ -176,42 +164,20 @@ Please be sure to review the [contribution guidelines](https://auro.alaskaair.co
|
|
|
176
164
|
|
|
177
165
|
### Start development environment
|
|
178
166
|
|
|
179
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
167
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/localhost.md) -->
|
|
180
168
|
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open a shell session to run the **dev server**.
|
|
181
169
|
|
|
182
170
|
```shell
|
|
183
171
|
$ npm run dev
|
|
184
172
|
```
|
|
185
173
|
|
|
186
|
-
Open [localhost:8000](http://localhost:8000/)
|
|
187
|
-
|
|
188
|
-
If running separate sessions is preferred, please run the following commands in individual terminal shells.
|
|
189
|
-
|
|
190
|
-
```shell
|
|
191
|
-
$ npm run build:watch
|
|
192
|
-
|
|
193
|
-
$ npm run serve
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
174
|
+
Open [localhost:8000](http://localhost:8000/)
|
|
197
175
|
|
|
198
|
-
### API generation
|
|
199
|
-
|
|
200
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/api.md) -->
|
|
201
|
-
The custom element API file is generated in the build and committed back to the repo with a version change. If the API doc has changed without a version change, author's are to run `npm run build:api` to generate the doc and commit to version control.
|
|
202
|
-
|
|
203
176
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
204
177
|
|
|
205
178
|
### Testing
|
|
206
179
|
|
|
207
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
208
|
-
Automated tests are required for every Auro component. See `.\test\auro-dialog.test.js` for the tests for this component. Run `npm test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
|
|
209
|
-
|
|
210
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
211
|
-
|
|
212
|
-
### Bundled assets
|
|
213
|
-
|
|
214
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/bundles.md) -->
|
|
215
|
-
Bundled assets are only generated in the remote and not merged back to this repo. To review and/or test a bundled asset locally, run `$ npm run bundler` to generate assets.
|
|
180
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/testing.md) -->
|
|
181
|
+
Automated tests are required for every Auro component. See `.\test\auro-dialog.test.js` for the tests for this component. Run `npm run test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
|
|
216
182
|
|
|
217
183
|
<!-- AURO-GENERATED-CONTENT:END -->
|
package/demo/api.html
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3
|
+
See LICENSE in the project root for license information.
|
|
4
|
+
|
|
5
|
+
HTML in this document is standardized and NOT to be edited.
|
|
6
|
+
All demo code should be added/edited in ./demo/api.md
|
|
7
|
+
|
|
8
|
+
With the exception of adding custom elements if needed for the demo.
|
|
9
|
+
|
|
10
|
+
----------------------- DO NOT EDIT -----------------------------
|
|
11
|
+
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
<!DOCTYPE html>
|
|
15
|
+
<html lang="en">
|
|
16
|
+
<head>
|
|
17
|
+
<meta charset="UTF-8" />
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
+
<title>Auro Web Component Demo | auro-dialog</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-dialog's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
34
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
35
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
36
|
+
</head>
|
|
37
|
+
<body class="auro-markdown">
|
|
38
|
+
<main></main>
|
|
39
|
+
|
|
40
|
+
<script type="module">
|
|
41
|
+
import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
|
|
42
|
+
import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
|
|
43
|
+
fetch('./api.md')
|
|
44
|
+
.then((response) => response.text())
|
|
45
|
+
.then((text) => {
|
|
46
|
+
const rawHtml = marked.parse(text);
|
|
47
|
+
document.querySelector('main').innerHTML = rawHtml;
|
|
48
|
+
Prism.highlightAll();
|
|
49
|
+
});
|
|
50
|
+
</script>
|
|
51
|
+
<script type="module" data-demo-script="true">
|
|
52
|
+
import { initExamples } from './api.min.js';
|
|
53
|
+
initExamples();
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<!-- If additional elements are needed for the demo, add them here. -->
|
|
57
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
|
|
58
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-menu@latest/dist/auro-menu__bundled.js" type="module"></script>
|
|
59
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-combobox@latest/dist/auro-combobox__bundled.js" type="module"></script>
|
|
60
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/dist/auro-hyperlink__bundled.js" type="module"></script>
|
|
61
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-popover@latest/dist/auro-popover__bundled.js" type="module"></script>
|
|
62
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
|
|
63
|
+
</body>
|
|
64
|
+
</html>
|
package/demo/api.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { initBasicExample } from "../apiExamples/basic";
|
|
2
1
|
import { initAccessibilityExample } from "../apiExamples/accessibility";
|
|
2
|
+
import { initBasicExample } from "../apiExamples/basic";
|
|
3
3
|
import { initDecoupledExample } from "../apiExamples/decoupled";
|
|
4
4
|
import { initEditCloseButtonExample } from "../apiExamples/editCloseButton";
|
|
5
5
|
import { initModalExample } from "../apiExamples/modal";
|
|
6
6
|
import { initPopoverAndDropdownExample } from "../apiExamples/popoverAndDropdown";
|
|
7
7
|
import { initSizeOptionsExample } from "../apiExamples/sizeOptions";
|
|
8
|
-
import { AuroDialog } from '../src/auro-dialog.js';
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
import "../src/registered"
|
|
11
10
|
|
|
12
11
|
export function initExamples(initCount) {
|
|
12
|
+
// biome-ignore lint/style/noParameterAssign: legacy error handling
|
|
13
13
|
initCount = initCount || 0;
|
|
14
14
|
|
|
15
15
|
try {
|
|
@@ -20,7 +20,7 @@ export function initExamples(initCount) {
|
|
|
20
20
|
initModalExample();
|
|
21
21
|
initPopoverAndDropdownExample();
|
|
22
22
|
initSizeOptionsExample();
|
|
23
|
-
} catch (
|
|
23
|
+
} catch (_err) {
|
|
24
24
|
if (initCount <= 20) {
|
|
25
25
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
26
26
|
setTimeout(() => {
|