@aquera/nile-elements 0.1.35-beta-2.0 → 0.1.36
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/README.md +12 -66
- package/demo/index.css +4 -7
- package/demo/index.html +36 -20
- package/demo/variables.css +0 -13
- package/demo/variables_v2.css +0 -13
- package/dist/{fixture-df8b52d7.esm.js → fixture-2b5b3aba.esm.js} +1 -1
- package/dist/{fixture-d5b55278.cjs.js → fixture-7bfb866e.cjs.js} +3 -3
- package/dist/fixture-7bfb866e.cjs.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/internal/animate.cjs.js +1 -1
- package/dist/internal/animate.cjs.js.map +1 -1
- package/dist/internal/animate.esm.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.cjs.js.map +1 -1
- package/dist/nile-error-message/nile-error-message.css.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.css.cjs.js.map +1 -1
- package/dist/nile-error-message/nile-error-message.css.esm.js +4 -6
- package/dist/nile-error-message/nile-error-message.esm.js +4 -4
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.cjs.js +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.cjs.js.map +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.esm.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.esm.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.esm.js +1 -1
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.test.esm.js +1 -1
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js.map +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.esm.js +0 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-table/nile-table.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- package/dist/nile-tooltip/index.cjs.js +1 -1
- package/dist/nile-tooltip/index.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +45 -78
- package/dist/nile-tooltip/nile-tooltip.esm.js +28 -23
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.css.js +4 -6
- package/dist/src/nile-error-message/nile-error-message.css.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.d.ts +0 -4
- package/dist/src/nile-error-message/nile-error-message.js +0 -20
- package/dist/src/nile-error-message/nile-error-message.js.map +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.css.js +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.css.js.map +1 -1
- package/dist/src/nile-file-preview/index.d.ts +1 -0
- package/dist/src/nile-file-preview/index.js +2 -0
- package/dist/src/nile-file-preview/index.js.map +1 -0
- package/dist/src/{nile-filter-chip/nile-filter-chip.css.d.ts → nile-file-preview/nile-file-preview.css.d.ts} +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.css.js +533 -0
- package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -0
- package/dist/src/nile-file-preview/nile-file-preview.d.ts +48 -0
- package/dist/src/nile-file-preview/nile-file-preview.js +149 -0
- package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -0
- package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +11 -0
- package/dist/src/nile-file-preview/nile-file-preview.template.js +144 -0
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -0
- package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +7 -0
- package/dist/src/nile-file-preview/nile-file-preview.test.js +30 -0
- package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -0
- package/dist/src/nile-file-preview/types/file-preview.enums.d.ts +23 -0
- package/dist/src/nile-file-preview/types/file-preview.enums.js +28 -0
- package/dist/src/nile-file-preview/types/file-preview.enums.js.map +1 -0
- package/dist/src/nile-file-preview/types/file-preview.interface.d.ts +4 -0
- package/dist/src/nile-file-preview/types/file-preview.interface.js +2 -0
- package/dist/src/nile-file-preview/types/file-preview.interface.js.map +1 -0
- package/dist/src/nile-file-preview/types/index.d.ts +2 -0
- package/dist/src/nile-file-preview/types/index.js +3 -0
- package/dist/src/nile-file-preview/types/index.js.map +1 -0
- package/dist/src/nile-file-preview/utils/file-preview.util.d.ts +3 -0
- package/dist/src/nile-file-preview/utils/file-preview.util.js +29 -0
- package/dist/src/nile-file-preview/utils/file-preview.util.js.map +1 -0
- package/dist/src/nile-file-preview/utils/index.d.ts +1 -0
- package/dist/src/nile-file-preview/utils/index.js +2 -0
- package/dist/src/nile-file-preview/utils/index.js.map +1 -0
- package/dist/src/nile-file-upload/index.d.ts +1 -0
- package/dist/src/nile-file-upload/index.js +2 -0
- package/dist/src/{nile-filter-chip → nile-file-upload}/index.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.css.d.ts +12 -0
- package/dist/src/nile-file-upload/nile-file-upload.css.js +547 -0
- package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -0
- package/dist/src/nile-file-upload/nile-file-upload.d.ts +45 -0
- package/dist/src/nile-file-upload/nile-file-upload.js +148 -0
- package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -0
- package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +11 -0
- package/dist/src/nile-file-upload/nile-file-upload.template.js +163 -0
- package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -0
- package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +7 -0
- package/dist/src/nile-file-upload/nile-file-upload.test.js +30 -0
- package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -0
- package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +28 -0
- package/dist/src/nile-file-upload/types/file-upload.enums.js +35 -0
- package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -0
- package/dist/src/nile-file-upload/types/file-upload.type.d.ts +4 -0
- package/dist/src/nile-file-upload/types/file-upload.type.js +2 -0
- package/dist/src/nile-file-upload/types/file-upload.type.js.map +1 -0
- package/dist/src/nile-file-upload/types/index.d.ts +2 -0
- package/dist/src/nile-file-upload/types/index.js +3 -0
- package/dist/src/nile-file-upload/types/index.js.map +1 -0
- package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +19 -0
- package/dist/src/nile-file-upload/utils/drag-drop.util.js +77 -0
- package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -0
- package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +9 -0
- package/dist/src/nile-file-upload/utils/file-validation.util.js +58 -0
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -0
- package/dist/src/nile-progress-bar/nile-progress-bar.css.js +0 -1
- package/dist/src/nile-progress-bar/nile-progress-bar.css.js.map +1 -1
- package/dist/src/nile-select/nile-select.js +1 -1
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-table/nile-table.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js +43 -76
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.d.ts +46 -24
- package/dist/src/nile-tooltip/nile-tooltip.js +232 -235
- package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/plop-templates/lit/index.ts.hbs +1 -1
- package/plop-templates/lit/lit.css.ts.hbs +1 -1
- package/plop-templates/lit/lit.ts.hbs +3 -7
- package/plopfile.js +1 -32
- package/src/index.ts +1 -2
- package/src/nile-error-message/nile-error-message.css.ts +4 -6
- package/src/nile-error-message/nile-error-message.ts +0 -18
- package/src/nile-error-notification/nile-error-notification.css.ts +1 -1
- package/src/nile-progress-bar/nile-progress-bar.css.ts +0 -1
- package/src/nile-select/nile-select.ts +1 -1
- package/src/nile-table/nile-table.ts +2 -2
- package/src/nile-tooltip/nile-tooltip.css.ts +44 -77
- package/src/nile-tooltip/nile-tooltip.ts +230 -268
- package/vscode-html-custom-data.json +95 -144
- package/dist/fixture-d5b55278.cjs.js.map +0 -1
- package/dist/nile-filter-chip/index.cjs.js +0 -2
- package/dist/nile-filter-chip/index.cjs.js.map +0 -1
- package/dist/nile-filter-chip/index.esm.js +0 -1
- package/dist/nile-filter-chip/nile-filter-chip.cjs.js +0 -2
- package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +0 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +0 -2
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +0 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +0 -121
- package/dist/nile-filter-chip/nile-filter-chip.esm.js +0 -43
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +0 -2
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +0 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +0 -20
- package/dist/nile-tooltip/nile-tooltip-utils.cjs.js +0 -2
- package/dist/nile-tooltip/nile-tooltip-utils.cjs.js.map +0 -1
- package/dist/nile-tooltip/nile-tooltip-utils.esm.js +0 -1
- package/dist/nile-tooltip/nile-tooltip.test.cjs.js +0 -2
- package/dist/nile-tooltip/nile-tooltip.test.cjs.js.map +0 -1
- package/dist/nile-tooltip/nile-tooltip.test.esm.js +0 -47
- package/dist/src/nile-filter-chip/index.d.ts +0 -1
- package/dist/src/nile-filter-chip/index.js +0 -2
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js +0 -133
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +0 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.d.ts +0 -36
- package/dist/src/nile-filter-chip/nile-filter-chip.js +0 -141
- package/dist/src/nile-filter-chip/nile-filter-chip.js.map +0 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.test.d.ts +0 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js +0 -80
- package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +0 -1
- package/dist/src/nile-tooltip/nile-tooltip-utils.d.ts +0 -18
- package/dist/src/nile-tooltip/nile-tooltip-utils.js +0 -216
- package/dist/src/nile-tooltip/nile-tooltip-utils.js.map +0 -1
- package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +0 -1
- package/dist/src/nile-tooltip/nile-tooltip.test.js +0 -148
- package/dist/src/nile-tooltip/nile-tooltip.test.js.map +0 -1
- package/plop-templates/lit/lit.template.ts.hbs +0 -3
- package/plop-templates/lit/lit.test.ts.hbs +0 -38
- package/plop-templates/lit/sub-components/index.ts.hbs +0 -4
- package/plop-templates/lit/types/index.ts.hbs +0 -0
- package/plop-templates/lit/types/type.ts.hbs +0 -3
- package/plop-templates/lit/utils/lit.utils.ts.hbs +0 -4
- package/src/nile-filter-chip/index.ts +0 -1
- package/src/nile-filter-chip/nile-filter-chip.css.ts +0 -138
- package/src/nile-filter-chip/nile-filter-chip.test.ts +0 -92
- package/src/nile-filter-chip/nile-filter-chip.ts +0 -136
- package/src/nile-tooltip/nile-tooltip-utils.ts +0 -271
- package/src/nile-tooltip/nile-tooltip.test.ts +0 -168
package/README.md
CHANGED
@@ -79,77 +79,23 @@ To run a local development server that serves the basic demo located in `demo/in
|
|
79
79
|
|
80
80
|
In this section, you can find the updates for each release of `nile-elements`. It's a good practice to maintain detailed release notes to help users and developers understand what changes have been made from one version to another and how these changes might affect their projects.
|
81
81
|
|
82
|
-
#### Version 0.1.
|
83
|
-
- Nile
|
84
|
-
|
85
|
-
#### Version 0.1.35-beta-1.11
|
86
|
-
- Nile Badge: UIF-697 nile badge content slot not working
|
87
|
-
|
88
|
-
#### Version 0.1.35-beta-1.10
|
89
|
-
- Nile Filter-Chip: UIF-516 filterchipdefectfix
|
90
|
-
|
91
|
-
#### Version 0.1.35-beta-1.9
|
92
|
-
- Nile Badge: UIF-697 nile badge content slot not working
|
93
|
-
|
94
|
-
#### Version 0.1.35-beta-1.8
|
95
|
-
- Nile Icon : Icon Cleanup
|
96
|
-
- Dependency Nile version 0.3.62-beta-1.6
|
97
|
-
|
98
|
-
#### Version 0.1.35-beta-1.7
|
99
|
-
- Nile Token: Nile SMB tokens release
|
100
|
-
- Dependency Nile 0.3.62-beta-1.5
|
101
|
-
|
102
|
-
#### Version 0.1.35-beta-1.6
|
103
|
-
- Nile Icon : Icon Cleanup
|
104
|
-
- Dependency Nile version 0.3.62-beta-1.4
|
105
|
-
|
106
|
-
#### Version 0.1.35-beta-1.5
|
107
|
-
- Nile Icon : Icon Cleanup
|
108
|
-
- Dependency Nile version 0.3.62-beta-1.3
|
109
|
-
|
110
|
-
#### Version 0.1.35-beta-1.4
|
111
|
-
- Nile Icon : Icon Cleanup
|
112
|
-
- Dependency Nile version 0.3.62-beta-1.2
|
113
|
-
|
114
|
-
#### Version 0.1.35-beta-1.3
|
115
|
-
- Nile Filter Chip: Component Updates
|
82
|
+
#### Version 0.1.36
|
83
|
+
- Nile Icon: UIF-620 Remove duplicate icons from Nile Icon set
|
84
|
+
- Dependency Nile 0.3.62
|
116
85
|
|
117
86
|
#### Version 0.1.35
|
118
|
-
- Nile
|
119
|
-
- Dependency Nile version 0.3.62-beta-1.1
|
120
|
-
|
121
|
-
#### Version 0.1.35-beta-1.2
|
122
|
-
- Nile Select: Help text property updated
|
123
|
-
|
124
|
-
#### Version 0.1.35-beta-1.1
|
125
|
-
- Nile Filter Chip : New Component
|
126
|
-
- Dependency Nile 0.3.61-beta-1.1
|
127
|
-
|
128
|
-
#### Version 0.1.35-beta-1.0
|
129
|
-
- Nile Code Editor: Bugfix for autocomplete dialog
|
130
|
-
|
131
|
-
#### Version 0.1.34-beta-1.1
|
132
|
-
- Nile Code Editor: Bugfix for search section one cmd+f
|
133
|
-
|
134
|
-
#### Version 0.1.34-beta-1.0
|
135
|
-
- Nile Error Message: Ux updated & maxHeight, maxWidth properties added
|
136
|
-
|
137
|
-
|
138
|
-
#### Version 0.1.33-beta-1.1
|
139
|
-
- Nile Menu: Property added allowSpaceKey
|
140
|
-
|
141
|
-
#### Version 0.1.33-beta-1.0
|
142
|
-
- Nile Menu: Bugfix for using space key in nile input inside nile-menu
|
87
|
+
- Nile Code Editor: Bugfix for UIF-480, UIF-522
|
143
88
|
|
144
|
-
#### Version 0.1.
|
145
|
-
- Nile
|
146
|
-
- Dependency Nile 0.3.61-beta-1.0
|
89
|
+
#### Version 0.1.34
|
90
|
+
- Nile Input: Safari's autoFill password icon - defect fix
|
147
91
|
|
148
|
-
#### Version 0.1.
|
149
|
-
-
|
92
|
+
#### Version 0.1.33
|
93
|
+
- Nile Menu: Bugfix for nile-input inside nile menu, Property added allowSpaceKey
|
94
|
+
- Nile tokens: Spacing tokens updated e.g: nile-spacing-spacing-lg to nile-spacing-lg
|
95
|
+
- Dependency: Nile 0.3.61
|
150
96
|
|
151
|
-
#### Version 0.1.32
|
152
|
-
- Nile
|
97
|
+
#### Version 0.1.32
|
98
|
+
- Nile Table: Nile Table available as a wrapper component
|
153
99
|
|
154
100
|
#### Version 0.1.31
|
155
101
|
- Nile Stepper: Stylings updates and State change bugfixes
|
package/demo/index.css
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
body {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
display: flex;
|
6
|
-
height: 100vh;
|
2
|
+
background: #fafafa;
|
3
|
+
font-family: colfax-regular, sans-serif;
|
4
|
+
margin:0px;
|
7
5
|
}
|
8
|
-
|
9
6
|
#demo {
|
10
7
|
max-width: 40ch;
|
11
8
|
padding: 48px;
|
@@ -118,4 +115,4 @@ nile-drawer {
|
|
118
115
|
|
119
116
|
.body {
|
120
117
|
display: flex;
|
121
|
-
}
|
118
|
+
}
|
package/demo/index.html
CHANGED
@@ -1,23 +1,39 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html lang="en-GB">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8" />
|
5
|
-
<link rel="stylesheet" href="variables.css" id="stylesheet" />
|
6
|
-
<link rel="stylesheet" href="index.css" />
|
7
|
-
<script type="module" src="index.js"></script>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<nile-error-message
|
11
|
-
errorMessage="Storage Limit Exceeded"
|
12
|
-
errorResponse="Insufficient storage, The server is unable to store the representation needed to complete the request."
|
13
|
-
>
|
14
|
-
</nile-error-message>
|
15
3
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8" />
|
6
|
+
<link rel="stylesheet" href="variables_v2.css" id="stylesheet" />
|
7
|
+
<link rel="stylesheet" href="index.css" />
|
8
|
+
<script type="module" src="index.js"></script>
|
9
|
+
</head>
|
10
|
+
<style>
|
11
|
+
.flex-container {
|
12
|
+
display: flex;
|
13
|
+
flex-wrap: wrap;
|
14
|
+
gap: 30px;
|
15
|
+
padding: 0;
|
16
|
+
margin: 0;
|
17
|
+
border: 1px solid silver;
|
18
|
+
height: 900px;
|
19
|
+
}
|
20
|
+
|
21
|
+
nile-button {
|
22
|
+
flex: 0 0 auto;
|
23
|
+
height: 38px;
|
24
|
+
}
|
25
|
+
</style>
|
26
|
+
|
27
|
+
<body>
|
28
|
+
<div style="padding: 30px;">
|
29
|
+
<nile-progress-bar value="80"></nile-progress-bar>
|
30
|
+
</div>
|
31
|
+
<div style="padding: 30px;">
|
32
|
+
<nile-circular-progressbar content="text"></nile-circular-progressbar>
|
33
|
+
<nile-circular-progressbar value="80" size="60"></nile-circular-progressbar>
|
34
|
+
<nile-circular-progressbar></nile-circular-progressbar>
|
35
|
+
<nile-circular-progressbar value="30" content=" "></nile-circular-progressbar>
|
36
|
+
</div>
|
37
|
+
</body>
|
38
|
+
|
39
|
+
</html>
|
package/demo/variables.css
CHANGED
@@ -258,19 +258,6 @@
|
|
258
258
|
--nile-font-family-sans-serif: colfax-regular, Helvetica, Helvetica Neue, Arial, Segoe UI, Roboto, Droid Sans, sans-serif;
|
259
259
|
--nile-font-family-medium: colfax-medium;
|
260
260
|
--nile-font-family-body: var(--nile-font-family-sans-serif);
|
261
|
-
--nile-filter-chip-values-color-default: var(--nile-colors-primary-600);
|
262
|
-
--nile-filter-chip-text-default: var(--nile-colors-dark-900);
|
263
|
-
--nile-filter-chip-link-clear-all-color-default: var(--nile-colors-primary-600);
|
264
|
-
--nile-filter-chip-label-color-default: var(--nile-colors-dark-900);
|
265
|
-
--nile-filter-chip-icon-color-default: var(--nile-colors-neutral-500);
|
266
|
-
--nile-filter-chip-hover-background: var(--nile-colors-dark-200);
|
267
|
-
--nile-filter-chip-close-icon-hover-color: var(--nile-colors-neutral-700);
|
268
|
-
--nile-filter-chip-close-icon-hover-background: var(--nile-colors-neutral-100);
|
269
|
-
--nile-filter-chip-close-icon-color-default: var(--nile-colors-dark-500);
|
270
|
-
--nile-filter-chip-chip-border-color-stroke: var(--nile-colors-neutral-400);
|
271
|
-
--nile-filter-chip-background-default: var(--nile-colors-white-base);
|
272
|
-
--nile-filter-chip-active-border-color-stroke: var(--nile-colors-neutral-700);
|
273
|
-
--nile-filter-chip-active-background: var(--nile-colors-neutral-400);
|
274
261
|
--nile-empty-state-min-width: 300px;
|
275
262
|
--nile-empty-state-max-width: 512px;
|
276
263
|
--nile-colors-yellow-700: #B89219;
|
package/demo/variables_v2.css
CHANGED
@@ -257,19 +257,6 @@
|
|
257
257
|
--nile-font-family-serif: inter;
|
258
258
|
--nile-font-family-sans-serif: inter;
|
259
259
|
--nile-font-family-body: var(--nile-font-family-sans-serif);
|
260
|
-
--nile-filter-chip-values-color-default: var(--nile-colors-primary-600);
|
261
|
-
--nile-filter-chip-text-default: var(--nile-colors-dark-900);
|
262
|
-
--nile-filter-chip-link-clear-all-color-default: var(--nile-colors-primary-600);
|
263
|
-
--nile-filter-chip-label-color-default: var(--nile-colors-dark-900);
|
264
|
-
--nile-filter-chip-icon-color-default: var(--nile-colors-neutral-500);
|
265
|
-
--nile-filter-chip-hover-background: var(--nile-colors-dark-200);
|
266
|
-
--nile-filter-chip-close-icon-hover-color: var(--nile-colors-neutral-700);
|
267
|
-
--nile-filter-chip-close-icon-hover-background: var(--nile-colors-neutral-100);
|
268
|
-
--nile-filter-chip-close-icon-color-default: var(--nile-colors-dark-500);
|
269
|
-
--nile-filter-chip-chip-border-color-stroke: var(--nile-colors-neutral-400);
|
270
|
-
--nile-filter-chip-background-default: var(--nile-colors-white-base);
|
271
|
-
--nile-filter-chip-active-border-color-stroke: var(--nile-colors-neutral-700);
|
272
|
-
--nile-filter-chip-active-background: var(--nile-colors-neutral-400);
|
273
260
|
--nile-empty-state-min-width: 300px;
|
274
261
|
--nile-empty-state-max-width: 512px;
|
275
262
|
--nile-colors-yellow-900: #713b12;
|
@@ -566,4 +566,4 @@ function d(t){if(function(t){return"undefined"!=typeof Symbol&&"object"==typeof
|
|
566
566
|
*
|
567
567
|
* @param {Object} target
|
568
568
|
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
569
|
-
*/function w(t){var e=[];for(var n in t)e.push(n);return e}function b(t){return null===t||"object"!=typeof t}e.exports=c,e.exports.MemoizeMap=r},{"type-detect":39}],37:[function(t,e,n){var i=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(t){if("function"!=typeof t)return null;var e="";if(void 0===Function.prototype.name&&void 0===t.name){var n=i.call(t).match(o);n&&(e=n[1])}else e=t.name;return e}},{}],38:[function(t,e,n){function i(t,e){return null!=t&&e in Object(t)}function o(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((function(t){if("constructor"===t||"__proto__"===t||"prototype"===t)return{};var e=/^\[(\d+)\]$/.exec(t);return e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")}}))}function r(t,e,n){var i=t,o=null;n=void 0===n?e.length:n;for(var r=0;r<n;r++){var a=e[r];i&&(i=void 0===a.p?i[a.i]:i[a.p],r===n-1&&(o=i))}return o}function a(t,e){var n=o(e),a=n[n.length-1],s={parent:n.length>1?r(t,n,n.length-1):t,name:a.p||a.i,value:r(t,n)};return s.exists=i(s.parent,s.name),s}e.exports={hasProperty:i,getPathInfo:a,getPathValue:function(t,e){return a(t,e).value},setPathValue:function(t,e,n){return function(t,e,n){for(var i=t,o=n.length,r=null,a=0;a<o;a++){var s=null,c=null;if(r=n[a],a===o-1)i[s=void 0===r.p?r.i:r.p]=e;else if(void 0!==r.p&&i[r.p])i=i[r.p];else if(void 0!==r.i&&i[r.i])i=i[r.i];else{var u=n[a+1];s=void 0===r.p?r.i:r.p,c=void 0===u.p?[]:{},i[s]=c,i=i[s]}}}(t,n,o(e)),t}}},{}],39:[function(t,e,n){!function(t,i){"object"==typeof n&&void 0!==e?e.exports=i():t.typeDetect=i()}(this,(function(){var t="function"==typeof Promise,e="object"==typeof self?self:o,n="undefined"!=typeof Symbol,i="undefined"!=typeof Map,r="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,u=n&&void 0!==Symbol.iterator,f=n&&void 0!==Symbol.toStringTag,h=r&&"function"==typeof Set.prototype.entries,l=i&&"function"==typeof Map.prototype.entries,d=h&&Object.getPrototypeOf((new Set).entries()),p=l&&Object.getPrototypeOf((new Map).entries()),w=u&&"function"==typeof Array.prototype[Symbol.iterator],b=w&&Object.getPrototypeOf([][Symbol.iterator]()),v=u&&"function"==typeof String.prototype[Symbol.iterator],m=v&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var o=typeof n;if("object"!==o)return o;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var h=Object.getPrototypeOf(n);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":t&&h===Promise.prototype?"Promise":r&&h===Set.prototype?"Set":i&&h===Map.prototype?"Map":s&&h===WeakSet.prototype?"WeakSet":a&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":i&&h===p?"Map Iterator":r&&h===d?"Set Iterator":w&&h===b?"Array Iterator":v&&h===m?"String Iterator":null===h?"Object":Object.prototype.toString.call(n).slice(8,-1)}}))},{}]},{},[1])(1);a.version,a.AssertionError,a.use,a.util,a.config,a.Assertion;var s=a.expect;a.should,a.Should;var c=a.assert;const u=["script","style","svg"],f=["class","id"],h=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function l(t,e={}){const n=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"==typeof t)):[],i=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"!=typeof t)):[],o=[...e.ignoreTags||[],...u],r=e.ignoreChildren||[],a=e.stripEmptyAttributes||f,s=/(&|")/g,c=t=>"&"===t?"&":""";let l="",d=-1;const p=new Set,w=new Set;function b(){return" ".repeat(d)}function v(t){return t instanceof Element?t.getAttribute("data-tag-name")||t.localName:t.nodeName.toLowerCase()}function m(t){const e=v(t);return!o.includes(e)&&!r.includes(e)&&!p.has(t)}function g({name:t,value:e}){return a.includes(t)&&""===e.trim()}function y(t,{name:e,value:n}){return g({name:e,value:n})?"":"class"===e?` class="${function(t){return[...t.classList.values()].sort().join(" ")}(t)}"`:` ${e}="${n.replace(s,c)}"`}const x=(t,e)=>t.name.localeCompare(e.name);function j(t){let e="";const o=Array.from(t.attributes).filter((r=function(t){return function(e){return!(!n.includes(e.name)&&!g(e)&&!i.find((n=>{if(!n.tags||!n.attributes)throw new Error("An object entry to ignoreAttributes should contain a 'tags' and an 'attributes' property.");return n.tags.includes(v(t))&&n.attributes.includes(e.name)})))}}(t),(...t)=>!r(...t))).sort(x);var r;if(1===o.length)e=y(t,o[0]);else if(o.length>1){for(let n=0;n<o.length;n+=1)e+=`\n${b()} ${y(t,o[n])}`;e+=`\n${b()}`}return e}function E(t,e){var n;if("diff-container"!==v(t)&&!o.includes(v(t))&&!w.has(t))if(w.add(t),t instanceof Text)!function(t,e){let n="",i=t;for(;i&&i instanceof Text;)n+=i.nodeValue,i=e.nextSibling();i&&e.previousSibling(),n=n.trim(),""!==n&&(l+=`${b()}${n}\n`)}(t,e);else{if(!(t instanceof Element))throw new Error(`Unknown node type: ${t}`);n=t,l+=`${b()}<${v(n)}${j(n)}>\n`}}function O(t){var e;o.includes(v(t))||t instanceof Element&&("diff-container"===v(e=t)||h.includes(v(e))||(l+=`${b()}</${v(e)}>\n`))}let S;if("string"==typeof t)S=document.createElement("diff-container"),S.innerHTML=t,d=-1;else{if(!(t instanceof Node))throw new Error(`Cannot create diffable HTML from: ${t}`);S=t,d=0}const k=document.createTreeWalker(S,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;k.currentNode;){const t=k.currentNode;if(E(t,k),m(t)&&k.firstChild())d+=1;else{O(t);if(!k.nextSibling()){d-=1;const t=k.parentNode();if(!t)break;p.add(t)}}}return l}const d=new URL(window.location.href).searchParams.get("wtr-session-id");function p(t){return null!=t&&"object"==typeof t}async function w(t,e,n){if("string"!=typeof d)throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");let i;try{const t=await import("../../../../../../../../__web-dev-server__web-socket.js");({sendMessageWaitForResponse:i}=t)}catch(t){throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?")}try{const o=await i({type:"wtr-command",sessionId:d,command:t,payload:e});if(!o.executed){let e;throw e=n?`Unknown command ${t}. Add the ${n} to your config.`:`Unknown command ${t}. Did you install a plugin to handle this command?`,new Error(e)}return o.result}catch(n){throw new Error(`Error while executing command ${t}${e?` with payload ${JSON.stringify(e)}`:""}: ${n.message}`)}}let b,v;const m=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm;async function g({cache:t=!0}={}){if(t&&v)return v;const e=await w("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");if("string"!=typeof e?.content)throw new Error("Expected a result as string");const n=`${(t=>([...t.matchAll(m)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t))(e.content)}/* ${Math.random()} */`,i=await import(`data:text/javascript;charset=utf-8,${n}`);if(!i||!p(i.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return v=i.snapshots,v}function y(t){const e=[];let n;for(n="hook"===t.type?t.ctx.currentTest:t;n&&n.parent;)n.title&&e.push(n.title),n=n.parent;return e.reverse()}function x(...t){switch(t.length){case 2:{const[e,n]=t;return{message:e,options:n}}case 1:{const[n]=t;return(e=n)&&null!==e&&"object"==typeof e&&("ignoreAttributes"in e||"ignoreTags"in e||"ignoreChildren"in e||"stripEmptyAttributes"in e)?{options:n}:{message:n}}default:return{}}var e}let j;async function E(t,e){return j||await async function(){if(window.axe)j=window.axe;else if("function"!=typeof require){if(await import("./axe.min-c2cd8733.esm.js"),!window.axe)throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");j=window.axe}else j=require("axe-core/axe.min.js")}(),new Promise(((n,i)=>{j.run(t,e,((t,e)=>{t?i(new Error(t)):n(e)}))}))}var O,S={};O={get exports(){return S},set exports(t){S=t}},function(t){O.exports=t}((function(t,e){var n=e.flag,i=function(t){var e;return a(t)?0===t.length?"empty NodeList":(e=Array.prototype.slice.call(t,0,5).map(i).join(", "),t.length>5?e+"... (+"+(t.length-5)+" more)":e):r(t)?(e=t.tagName.toLowerCase(),t.id&&(e+="#"+t.id),t.className&&(e+="."+String(t.className).replace(/\s+/g,".")),Array.prototype.forEach.call(t.attributes,(function(t){"class"!==t.name&&"id"!==t.name&&(e+="["+t.name+(t.value?'="'+t.value+'"]':"]"))})),e):String(t)},o=function(t,o){var r=n(this,"object"),a=r.getAttribute(t);n(this,"negate")&&void 0!==o||this.assert(!!r.attributes[t],"expected "+i(r)+" to have an attribute #{exp}","expected "+i(r)+" not to have an attribute #{exp}",t),void 0!==o&&this.assert(o===a,"expected "+i(r)+" to have an attribute "+e.inspect(t)+" with the value #{exp}, but the value was #{act}","expected "+i(r)+" not to have an attribute "+e.inspect(t)+" with the value #{act}",o,a),n(this,"object",a)},r=function(t){return 1===t.nodeType},a=function(t){return"[object NodeList]"===Object.prototype.toString.call(t)};e.elToString=i,t.Assertion.addMethod("attr",o),t.Assertion.addMethod("attribute",o),t.Assertion.addMethod("class",(function(t){var e=n(this,"object");if(t instanceof RegExp)return this.assert(Array.from(e.classList).some((function(e){return t.test(e)})),"expected "+i(e)+" to have class matching #{exp}","expected "+i(e)+" not to have class matching #{exp}",t);this.assert(e.classList.contains(t),"expected "+i(e)+" to have class #{exp}","expected "+i(e)+" not to have class #{exp}",t)})),t.Assertion.addMethod("id",(function(t){var e=n(this,"object");this.assert(e.id==t,"expected "+i(e)+" to have id #{exp}","expected "+i(e)+" not to have id #{exp}",t)})),t.Assertion.addMethod("html",(function(t){var e=n(this,"object"),o=n(this,"object").innerHTML;n(this,"contains")?this.assert(o.indexOf(t)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",t,o):this.assert(o===t,"expected "+i(e)+" to have HTML #{exp}, but the HTML was #{act}","expected "+i(e)+" not to have HTML #{exp}",t,o)})),t.Assertion.addChainableMethod("trimmed",null,(function(){n(this,"trim-text",!0)})),t.Assertion.addProperty("rendered",(function(){n(this,"rendered-text",!0)})),t.Assertion.addMethod("text",(function(t){var o,r,s=n(this,"object"),c=n(this,"contains"),u=n(this,"trim-text"),f=n(this,"rendered-text")?"innerText":"textContent";a(s)?(o=Array.prototype.map.call(s,(function(t){return u?t[f].trim():t[f]})),Array.isArray(t)?(r=c?t[n(this,"negate")?"some":"every"]((function(t){return Array.prototype.some.call(s,(function(e){return(u?e[f].trim():e[f])===t}))})):e.eql(o,t),o=o.join(),t=t.join()):(o=o.join(""),r=c?o.indexOf(t)>=0:o===t)):(o=u?s[f].trim():s[f],r=c?o.indexOf(t)>=0:o===t);var h=i(s),l="";u&&(l+="trimmed "),n(this,"rendered-text")&&(l+="rendered "),l+="text",c?this.assert(r,"expected "+h+" to contain #{exp}, but the "+l+" was #{act}","expected "+h+" not to contain #{exp}, but the "+l+" was #{act}",t,o):this.assert(r,"expected "+h+" to have "+l+" #{exp}, but the "+l+" was #{act}","expected "+h+" not to have "+l+" #{exp}",t,o)})),t.Assertion.addMethod("value",(function(t){var e=n(this,"object"),o=n(this,"object").value;this.assert(n(this,"object").value===t,"expected "+i(e)+" to have value #{exp}, but the value was #{act}","expected "+i(e)+" not to have value #{exp}",t,o)})),t.Assertion.overwriteProperty("exist",(function(t){return function(){var e=n(this,"object");a(e)?this.assert(e.length>0,"expected an empty NodeList to have nodes","expected "+i(e)+" to not exist"):t.apply(this,arguments)}})),t.Assertion.overwriteProperty("empty",(function(t){return function(){var e=n(this,"object");r(e)?this.assert(0===e.children.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):a(e)?this.assert(0===e.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("length",(function(t){return function(e){var o=n(this,"object");if(a(o)||r(o)){var s=o.children?o.children.length:o.length;this.assert(s===e,"expected "+i(o)+" to have #{exp} children but it had #{act} children","expected "+i(o)+" to not have #{exp} children",e,s)}else t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.overwriteMethod("match",(function(t){return function(e){var o=n(this,"object");r(o)?this.assert(o.matches(e),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):a(o)?this.assert(!!o.length&&Array.prototype.every.call(o,(function(t){return t.matches(e)})),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("contain",(function(t){return function(e){var o=n(this,"object");r(o)?"string"==typeof e?this.assert(!!o.querySelector(e),"expected "+i(o)+" to contain #{exp}","expected "+i(o)+" to not contain #{exp}",e):this.assert(o.contains(e),"expected "+i(o)+" to contain "+i(e),"expected "+i(o)+" to not contain "+i(e)):t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.addMethod("descendant",(function(t){var e=n(this,"object"),o=t;"string"==typeof t?(o=e.querySelector(t),this.assert(!!o,"expected "+i(e)+" to have descendant #{exp}","expected "+i(e)+" to not have descendant #{exp}",t)):this.assert(e.contains(t),"expected "+i(e)+" to contain "+i(t),"expected "+i(e)+" to not contain "+i(t)),n(this,"object",o)})),t.Assertion.addMethod("descendants",(function(t){var e=n(this,"object"),o=e.querySelectorAll(t);this.assert(!!o.length,"expected "+i(e)+" to have descendants #{exp}","expected "+i(e)+" to not have descendants #{exp}",t),n(this,"object",o)})),t.Assertion.addProperty("displayed",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).display:t.style.display;this.assert("none"!==e,"expected "+i(t)+" to be displayed, but it was not","expected "+i(t)+" to not be displayed, but it was as "+e,e)})),t.Assertion.addProperty("visible",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).visibility:t.style.visibility;this.assert("hidden"!==e&&"collapse"!==e,"expected "+i(t)+" to be visible, but it was "+("hidden"===e?"hidden":"collapsed"),"expected "+i(t)+" to not be visible, but it was",e)})),t.Assertion.addMethod("tagName",(function(t){var e=n(this,"object"),o=e.tagName;this.assert(o.toUpperCase()===t.toUpperCase(),"expected "+i(e)+" to have tagName "+t+", but it was "+o,"expected "+i(e)+" to not have tagName "+t+", but it was "+o,o)})),t.Assertion.addMethod("style",(function(t,e){var o=n(this,"object"),r=window.getComputedStyle(o).getPropertyValue(t).trim();this.assert(r===e,"expected "+i(o)+" to have style property "+t+" equal to "+e+", but it was equal to "+r,"expected "+i(o)+" to not have style property "+t+" equal to "+e+", but it was equal to "+r,r)})),t.Assertion.overwriteProperty("focus",(function(){return function(){var t=n(this,"object"),e=t.ownerDocument.activeElement;this.assert(t===t.ownerDocument.activeElement,"expected #{this} to have focus","expected #{this} not to have focus",t,e)}})),t.Assertion.overwriteProperty("checked",(function(){return function(){var t=n(this,"object");if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type&&"radio"!==t.type)throw new TypeError(i(t)+" is not a checkbox or radio input");this.assert(t.checked,"expected "+i(t)+" to be checked","expected "+i(t)+" to not be checked")}}))}));var k=S;var A={};!function(t){!function(e){t.exports=e}((function(t,e){var n,i,o,r=Array.prototype.slice;function a(t){return"function"==typeof t&&"function"==typeof t.getCall&&"function"==typeof t.calledWithExactly}function s(t){switch(t){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(t||0)+" times"}}function c(t){if(!a(t._obj)&&(!(n=t._obj)||!a(n.proxy)))throw new TypeError(e.inspect(t._obj)+" is not a spy or a call to a spy!");var n}function u(t,e,n,i,o){var r=i?"always have ":"have ";function s(e){return t.printf.apply(t,e)}return n=n||"",a(t.proxy)&&(t=t.proxy),{affirmative:function(){return s(["expected %n to "+r+e+n].concat(o))},negative:function(){return s(["expected %n to not "+r+e].concat(o))}}}function f(n,i,o){e.addProperty(t.Assertion.prototype,n,(function(){c(this);var t=u(this._obj,i,o,!1);this.assert(this._obj[n],t.affirmative,t.negative)}))}function h(t,n,i){return function(){c(this);var o="always"+t[0].toUpperCase()+t.substring(1),a=e.flag(this,"always")&&"function"==typeof this._obj[o],s=a?o:t,f=u(this._obj,n,i,a,r.call(arguments));this.assert(this._obj[s].apply(this._obj,arguments),f.affirmative,f.negative)}}function l(n,i,o,r){var a=h(i,o,r);e.addMethod(t.Assertion.prototype,n,a)}function d(t,e,n){l(t,t,e,n)}e.addProperty(t.Assertion.prototype,"always",(function(){e.flag(this,"always",!0)})),f("called","been called"," at least once, but it was never called"),n="callCount",i="been called exactly %1",o=", but it was called %c%C",e.addMethod(t.Assertion.prototype,n,(function(t){c(this);var e=u(this._obj,i,o,!1,[s(t)]);this.assert(this._obj[n]===t,e.affirmative,e.negative)})),f("calledOnce","been called exactly once",", but it was called %c%C"),f("calledTwice","been called exactly twice",", but it was called %c%C"),f("calledThrice","been called exactly thrice",", but it was called %c%C"),function(n,i,o){var r=h(n,i,o);e.addProperty(t.Assertion.prototype,n,r)}("calledWithNew","been called with new"),d("calledBefore","been called before %1"),d("calledAfter","been called after %1"),d("calledImmediatelyBefore","been called immediately before %1"),d("calledImmediatelyAfter","been called immediately after %1"),d("calledOn","been called with %1 as this",", but it was called with %t instead"),d("calledWith","been called with arguments %*","%D"),d("calledOnceWith","been called exactly once with arguments %*","%D"),d("calledWithExactly","been called with exact arguments %*","%D"),d("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),d("calledWithMatch","been called with arguments matching %*","%D"),d("returned","returned %1"),l("thrown","threw","thrown %1")}))}({get exports(){return A},set exports(t){A=t}});var D=A;function T(t){return new Promise((e=>{setTimeout(e,t)}))}function M(t,e){return new Promise((n=>{t.addEventListener(e,(function i(o){n(o),t.removeEventListener(e,i)}))}))}function q(t,e,n={}){const{interval:i=50,timeout:o=1e3}=n,{stack:r}=new Error;return new Promise(((n,a)=>{let s;setTimeout((()=>{clearTimeout(s);const t=new Error(e?`Timeout: ${e}`:`waitUntil timed out after ${o}ms`);t.stack=r,a(t)}),o),async function e(){try{await t()?n():s=setTimeout((()=>{e()}),i)}catch(t){a(t)}}()}))}a.use(((t,e)=>{t.Assertion.addProperty("lightDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"lightDom",!0)})),t.Assertion.addProperty("shadowDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"shadowDom",!0)})),t.Assertion.addProperty("dom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"dom",!0)}));const n=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase();let n=" ";return Array.prototype.slice.call(t.attributes).forEach((t=>{n+=`${t.name}="${t.value}" `})),n=n.slice(0,-1),`<${e}${n}>${t.innerHTML}</${e}>`}return t.outerHTML})(t),i=t=>t.innerHTML,o=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase(),n=new RegExp(e,"g");let i=t.shadowRoot.innerHTML;return i=i.replace(/style-scope/g,""),i=i.replace(n,""),i=i.replace(/(class=".*?)(\s)*"/g,'$1"'),i=i.replace(/ class="\w?"/g,""),i}return t.shadowRoot.innerHTML})(t),r=(e,n,i,...o)=>{const{message:r,options:a}=x(...o),s=new t.Assertion(l(e,a),r),c=l(n,a);i?s.not.equal(c,r):s.equal(c,r)},a=t=>function(a,...s){if(e.flag(this,"lightDom")||e.flag(this,"shadowDom")||e.flag(this,"dom")){let t;t=e.flag(this,"lightDom")?i(this._obj):e.flag(this,"shadowDom")?o(this._obj):n(this._obj),r(t,a,e.flag(this,"negate"),s[0])}else t.apply(this,[a,...s])};function s(e,n,...i){const o=window.__mocha_context__,r=window.__snapshot__,{message:a,options:s}=x(...i),{index:c}=o;o.index+=1;const u=y(o.runnable),f=l(e,s);if(r.update)r.set(u,c,f,"html");else{const e=r.get(u,c);if(e){const i=r.match(f,l(e.code,s));if(i&&n||!i&&!n)throw new t.AssertionError(a||`Received value does not match stored snapshot ${c}`,{actual:f,expected:e.code,showDiff:!0},t.util.flag(this,"ssfi"))}else r.set(u,c,f,"html")}}async function c(e,n,...i){const{message:o,options:r}=x(...i),a=y(window.__WTR_MOCHA_RUNNER__.test).join(" "),s=l(e,r),c=await async function(t){if(!p(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");return(await g(t))[t.name]}({name:a}),u=await async function(){return b||(b=await w("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),b}();if(c&&!u.updateSnapshots){if(n?c===s:c!==s)throw new t.AssertionError(o||`Snapshot ${a} does not match the saved snapshot on disk`,{actual:s,expected:c,showDiff:!0},t.util.flag(this,"ssfi"))}else c!==s&&await async function(t){if(!p(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");if(void 0!==t.content&&"string"!=typeof t.content)throw new Error("You must provide a snapshot content");return(await g())[t.name]=t.content,w("save-snapshot",t,"snapshotPlugin from @web/test-runner-commands")}({name:a,content:s})}function u(t,e,...n){if(window.__mocha_context__&&window.__snapshot__)return s.call(this,t,e,...n);if(window.__WTR_MOCHA_RUNNER__)return c.call(this,t,e,...n);throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot")}function f(n){const r=t.util.flag(this,"object");let a;return a=e.flag(this,"shadowDom")?o(r):e.flag(this,"lightDom")?i(r):r,u.call(this,a,e.flag(this,"negate"),n)}t.Assertion.overwriteMethod("equals",a),t.Assertion.overwriteMethod("equal",a),t.Assertion.overwriteMethod("eq",a),e.addMethod(t.Assertion.prototype,"equalSnapshot",f),e.addMethod(t.Assertion.prototype,"notEqualSnapshot",f),e.addMethod(t.assert,"equalSnapshot",u),e.addMethod(t.assert,"notEqualSnapshot",u),t.assert.dom={equal(t,e,...i){return r.call(this,n(t),e,!1,...i)},notEqual(t,e,...i){return r.call(this,n(t),e,!0,...i)},equalSnapshot(t,...e){return u.call(this,t,!1,...e)},notEqualSnapshot(t,...e){return u.call(this,t,!0,...e)}},t.assert.lightDom={equal(t,e,...n){return r.call(this,i(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,i(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,i(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,i(t),!0,...e)}},t.assert.shadowDom={equal(t,e,...n){return r.call(this,o(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,o(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,o(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,o(t),!0,...e)}}})),a.use(((t,e)=>{const{assert:n}=t;e.addMethod(t.Assertion.prototype,"accessible",(function(t){const n=this._obj,i=t||{},o=function(t){if(!t||!t.length)return;const e={};return t.forEach((t=>{e[t]={enabled:!1}})),e}(i.ignoredRules),r={resultTypes:["violations"]};o&&(r.rules=o);let a=i.done?i.done:void 0;if(a||(a=()=>{}),i.ignoredTags){n.parentNode.querySelectorAll(i.ignoredTags.toString()).forEach((t=>t.setAttribute("aria-hidden",!0)))}const s=E(n,r).then((t=>function(t,e,n){const{violations:i}=e;if(i.length&&t)return void n();if(!i.length&&!t)return void n();const o=[];i.length&&(o[o.length]="Accessibility Violations",o[o.length]="---",i.forEach((t=>{o[o.length]=`Rule: ${t.id}`,o[o.length]=`Impact: ${t.impact}`,o[o.length]=`${t.help} (${t.helpUrl})`,t.nodes.forEach((t=>{o[o.length]="",t.target&&(o[o.length]=`Issue target: ${t.target}`),o[o.length]=`Context: ${t.html}`,t.failureSummary&&(o[o.length]=`${t.failureSummary}`)})),o[o.length]="---"})));const r=new Error(o.join("\n"));throw n(r),r}(e.flag(this,"negate"),t,a)));return this.then=s.then.bind(s),this})),n.isAccessible=function(e,n){return new t.Assertion(e).to.be.accessible(n)},n.isNotAccessible=function(e,n){return new t.Assertion(e).not.to.be.accessible(n)}})),a.use(k),a.use(D);const $=t=>"object"==typeof t&&Promise.resolve(t)===t;async function P(t){let e=!1,n=t&&t.updateComplete;return $(n)&&(await n,e=!0),n=!(!t||!t.componentOnReady)&&t.componentOnReady(),$(n)&&(await n,e=!0),e||await new Promise((t=>{requestAnimationFrame((()=>t()))})),window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush(),t}const N=[];function F(t=document.createElement("div")){return document.body.appendChild(t),N.push(t),t}function L(){N&&N.forEach((t=>{document.body.removeChild(t)})),N.length=0}function C(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}function R(t){return null!=(e=t)&&"function"==typeof e[Symbol.iterator]?[...t].every(C):C(t);var e}const I=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11}),_=({nodeType:t,textContent:e})=>{switch(t){case I.COMMENT_NODE:return!1;case I.TEXT_NODE:return e.trim();default:return!0}};async function U(t,e={}){const o=function(t,e={},o){const r=F(e.parentNode);if((e.render??n)(e.scopedElements?o(t,e.scopedElements):t,r),i(t))return r.firstElementChild;const[a]=Array.from(r.childNodes).filter(_);return a}(t,e,e.scopedElements?await import("./scopedElementsWrapper-4c29be11.esm.js").then((t=>t.getScopedElementsTemplate)):void 0);if(await P(o),e.scopedElements){const[t]=Array.from(o.shadowRoot.childNodes).filter(_);return await P(t),t}return o}async function W(n,i={}){if(i.scopedElements)return U(t`${e(n)}`,i);const o=function(t,e={}){const n=F(e.parentNode);return n.innerHTML=t,n.children[0]}(n,i);return await P(o),o}async function z(t,e){if("string"==typeof t)return W(t,e);if(e?.render||R(t))return U(t,e);throw new Error("Invalid template provided - string or lit-html TemplateResult is supported")}try{"afterEach"in window&&afterEach((()=>{L()})),"teardown"in window&&teardown((()=>{L()}))}catch(t){}export{s as a,T as b,P as e,z as f,c as h,M as o,q as w};
|
569
|
+
*/function w(t){var e=[];for(var n in t)e.push(n);return e}function b(t){return null===t||"object"!=typeof t}e.exports=c,e.exports.MemoizeMap=r},{"type-detect":39}],37:[function(t,e,n){var i=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(t){if("function"!=typeof t)return null;var e="";if(void 0===Function.prototype.name&&void 0===t.name){var n=i.call(t).match(o);n&&(e=n[1])}else e=t.name;return e}},{}],38:[function(t,e,n){function i(t,e){return null!=t&&e in Object(t)}function o(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((function(t){if("constructor"===t||"__proto__"===t||"prototype"===t)return{};var e=/^\[(\d+)\]$/.exec(t);return e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")}}))}function r(t,e,n){var i=t,o=null;n=void 0===n?e.length:n;for(var r=0;r<n;r++){var a=e[r];i&&(i=void 0===a.p?i[a.i]:i[a.p],r===n-1&&(o=i))}return o}function a(t,e){var n=o(e),a=n[n.length-1],s={parent:n.length>1?r(t,n,n.length-1):t,name:a.p||a.i,value:r(t,n)};return s.exists=i(s.parent,s.name),s}e.exports={hasProperty:i,getPathInfo:a,getPathValue:function(t,e){return a(t,e).value},setPathValue:function(t,e,n){return function(t,e,n){for(var i=t,o=n.length,r=null,a=0;a<o;a++){var s=null,c=null;if(r=n[a],a===o-1)i[s=void 0===r.p?r.i:r.p]=e;else if(void 0!==r.p&&i[r.p])i=i[r.p];else if(void 0!==r.i&&i[r.i])i=i[r.i];else{var u=n[a+1];s=void 0===r.p?r.i:r.p,c=void 0===u.p?[]:{},i[s]=c,i=i[s]}}}(t,n,o(e)),t}}},{}],39:[function(t,e,n){!function(t,i){"object"==typeof n&&void 0!==e?e.exports=i():t.typeDetect=i()}(this,(function(){var t="function"==typeof Promise,e="object"==typeof self?self:o,n="undefined"!=typeof Symbol,i="undefined"!=typeof Map,r="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,u=n&&void 0!==Symbol.iterator,f=n&&void 0!==Symbol.toStringTag,h=r&&"function"==typeof Set.prototype.entries,l=i&&"function"==typeof Map.prototype.entries,d=h&&Object.getPrototypeOf((new Set).entries()),p=l&&Object.getPrototypeOf((new Map).entries()),w=u&&"function"==typeof Array.prototype[Symbol.iterator],b=w&&Object.getPrototypeOf([][Symbol.iterator]()),v=u&&"function"==typeof String.prototype[Symbol.iterator],m=v&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var o=typeof n;if("object"!==o)return o;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var h=Object.getPrototypeOf(n);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":t&&h===Promise.prototype?"Promise":r&&h===Set.prototype?"Set":i&&h===Map.prototype?"Map":s&&h===WeakSet.prototype?"WeakSet":a&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":i&&h===p?"Map Iterator":r&&h===d?"Set Iterator":w&&h===b?"Array Iterator":v&&h===m?"String Iterator":null===h?"Object":Object.prototype.toString.call(n).slice(8,-1)}}))},{}]},{},[1])(1);a.version,a.AssertionError,a.use,a.util,a.config,a.Assertion;var s=a.expect;a.should,a.Should,a.assert;const c=["script","style","svg"],u=["class","id"],f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function h(t,e={}){const n=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"==typeof t)):[],i=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"!=typeof t)):[],o=[...e.ignoreTags||[],...c],r=e.ignoreChildren||[],a=e.stripEmptyAttributes||u,s=/(&|")/g,h=t=>"&"===t?"&":""";let l="",d=-1;const p=new Set,w=new Set;function b(){return" ".repeat(d)}function v(t){return t instanceof Element?t.getAttribute("data-tag-name")||t.localName:t.nodeName.toLowerCase()}function m(t){const e=v(t);return!o.includes(e)&&!r.includes(e)&&!p.has(t)}function g({name:t,value:e}){return a.includes(t)&&""===e.trim()}function y(t,{name:e,value:n}){return g({name:e,value:n})?"":"class"===e?` class="${function(t){return[...t.classList.values()].sort().join(" ")}(t)}"`:` ${e}="${n.replace(s,h)}"`}const x=(t,e)=>t.name.localeCompare(e.name);function j(t){let e="";const o=Array.from(t.attributes).filter((r=function(t){return function(e){return!(!n.includes(e.name)&&!g(e)&&!i.find((n=>{if(!n.tags||!n.attributes)throw new Error("An object entry to ignoreAttributes should contain a 'tags' and an 'attributes' property.");return n.tags.includes(v(t))&&n.attributes.includes(e.name)})))}}(t),(...t)=>!r(...t))).sort(x);var r;if(1===o.length)e=y(t,o[0]);else if(o.length>1){for(let n=0;n<o.length;n+=1)e+=`\n${b()} ${y(t,o[n])}`;e+=`\n${b()}`}return e}function E(t,e){var n;if("diff-container"!==v(t)&&!o.includes(v(t))&&!w.has(t))if(w.add(t),t instanceof Text)!function(t,e){let n="",i=t;for(;i&&i instanceof Text;)n+=i.nodeValue,i=e.nextSibling();i&&e.previousSibling(),n=n.trim(),""!==n&&(l+=`${b()}${n}\n`)}(t,e);else{if(!(t instanceof Element))throw new Error(`Unknown node type: ${t}`);n=t,l+=`${b()}<${v(n)}${j(n)}>\n`}}function O(t){var e;o.includes(v(t))||t instanceof Element&&("diff-container"===v(e=t)||f.includes(v(e))||(l+=`${b()}</${v(e)}>\n`))}let S;if("string"==typeof t)S=document.createElement("diff-container"),S.innerHTML=t,d=-1;else{if(!(t instanceof Node))throw new Error(`Cannot create diffable HTML from: ${t}`);S=t,d=0}const k=document.createTreeWalker(S,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;k.currentNode;){const t=k.currentNode;if(E(t,k),m(t)&&k.firstChild())d+=1;else{O(t);if(!k.nextSibling()){d-=1;const t=k.parentNode();if(!t)break;p.add(t)}}}return l}const l=new URL(window.location.href).searchParams.get("wtr-session-id");function d(t){return null!=t&&"object"==typeof t}async function p(t,e,n){if("string"!=typeof l)throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");let i;try{const t=await import("../../../../../../../__web-dev-server__web-socket.js");({sendMessageWaitForResponse:i}=t)}catch(t){throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?")}try{const o=await i({type:"wtr-command",sessionId:l,command:t,payload:e});if(!o.executed){let e;throw e=n?`Unknown command ${t}. Add the ${n} to your config.`:`Unknown command ${t}. Did you install a plugin to handle this command?`,new Error(e)}return o.result}catch(n){throw new Error(`Error while executing command ${t}${e?` with payload ${JSON.stringify(e)}`:""}: ${n.message}`)}}let w,b;const v=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm;async function m({cache:t=!0}={}){if(t&&b)return b;const e=await p("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");if("string"!=typeof e?.content)throw new Error("Expected a result as string");const n=`${(t=>([...t.matchAll(v)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t))(e.content)}/* ${Math.random()} */`,i=await import(`data:text/javascript;charset=utf-8,${n}`);if(!i||!d(i.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return b=i.snapshots,b}function g(t){const e=[];let n;for(n="hook"===t.type?t.ctx.currentTest:t;n&&n.parent;)n.title&&e.push(n.title),n=n.parent;return e.reverse()}function y(...t){switch(t.length){case 2:{const[e,n]=t;return{message:e,options:n}}case 1:{const[n]=t;return(e=n)&&null!==e&&"object"==typeof e&&("ignoreAttributes"in e||"ignoreTags"in e||"ignoreChildren"in e||"stripEmptyAttributes"in e)?{options:n}:{message:n}}default:return{}}var e}let x;async function j(t,e){return x||await async function(){if(window.axe)x=window.axe;else if("function"!=typeof require){if(await import("./axe.min-c2cd8733.esm.js"),!window.axe)throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");x=window.axe}else x=require("axe-core/axe.min.js")}(),new Promise(((n,i)=>{x.run(t,e,((t,e)=>{t?i(new Error(t)):n(e)}))}))}var E,O={};E={get exports(){return O},set exports(t){O=t}},function(t){E.exports=t}((function(t,e){var n=e.flag,i=function(t){var e;return a(t)?0===t.length?"empty NodeList":(e=Array.prototype.slice.call(t,0,5).map(i).join(", "),t.length>5?e+"... (+"+(t.length-5)+" more)":e):r(t)?(e=t.tagName.toLowerCase(),t.id&&(e+="#"+t.id),t.className&&(e+="."+String(t.className).replace(/\s+/g,".")),Array.prototype.forEach.call(t.attributes,(function(t){"class"!==t.name&&"id"!==t.name&&(e+="["+t.name+(t.value?'="'+t.value+'"]':"]"))})),e):String(t)},o=function(t,o){var r=n(this,"object"),a=r.getAttribute(t);n(this,"negate")&&void 0!==o||this.assert(!!r.attributes[t],"expected "+i(r)+" to have an attribute #{exp}","expected "+i(r)+" not to have an attribute #{exp}",t),void 0!==o&&this.assert(o===a,"expected "+i(r)+" to have an attribute "+e.inspect(t)+" with the value #{exp}, but the value was #{act}","expected "+i(r)+" not to have an attribute "+e.inspect(t)+" with the value #{act}",o,a),n(this,"object",a)},r=function(t){return 1===t.nodeType},a=function(t){return"[object NodeList]"===Object.prototype.toString.call(t)};e.elToString=i,t.Assertion.addMethod("attr",o),t.Assertion.addMethod("attribute",o),t.Assertion.addMethod("class",(function(t){var e=n(this,"object");if(t instanceof RegExp)return this.assert(Array.from(e.classList).some((function(e){return t.test(e)})),"expected "+i(e)+" to have class matching #{exp}","expected "+i(e)+" not to have class matching #{exp}",t);this.assert(e.classList.contains(t),"expected "+i(e)+" to have class #{exp}","expected "+i(e)+" not to have class #{exp}",t)})),t.Assertion.addMethod("id",(function(t){var e=n(this,"object");this.assert(e.id==t,"expected "+i(e)+" to have id #{exp}","expected "+i(e)+" not to have id #{exp}",t)})),t.Assertion.addMethod("html",(function(t){var e=n(this,"object"),o=n(this,"object").innerHTML;n(this,"contains")?this.assert(o.indexOf(t)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",t,o):this.assert(o===t,"expected "+i(e)+" to have HTML #{exp}, but the HTML was #{act}","expected "+i(e)+" not to have HTML #{exp}",t,o)})),t.Assertion.addChainableMethod("trimmed",null,(function(){n(this,"trim-text",!0)})),t.Assertion.addProperty("rendered",(function(){n(this,"rendered-text",!0)})),t.Assertion.addMethod("text",(function(t){var o,r,s=n(this,"object"),c=n(this,"contains"),u=n(this,"trim-text"),f=n(this,"rendered-text")?"innerText":"textContent";a(s)?(o=Array.prototype.map.call(s,(function(t){return u?t[f].trim():t[f]})),Array.isArray(t)?(r=c?t[n(this,"negate")?"some":"every"]((function(t){return Array.prototype.some.call(s,(function(e){return(u?e[f].trim():e[f])===t}))})):e.eql(o,t),o=o.join(),t=t.join()):(o=o.join(""),r=c?o.indexOf(t)>=0:o===t)):(o=u?s[f].trim():s[f],r=c?o.indexOf(t)>=0:o===t);var h=i(s),l="";u&&(l+="trimmed "),n(this,"rendered-text")&&(l+="rendered "),l+="text",c?this.assert(r,"expected "+h+" to contain #{exp}, but the "+l+" was #{act}","expected "+h+" not to contain #{exp}, but the "+l+" was #{act}",t,o):this.assert(r,"expected "+h+" to have "+l+" #{exp}, but the "+l+" was #{act}","expected "+h+" not to have "+l+" #{exp}",t,o)})),t.Assertion.addMethod("value",(function(t){var e=n(this,"object"),o=n(this,"object").value;this.assert(n(this,"object").value===t,"expected "+i(e)+" to have value #{exp}, but the value was #{act}","expected "+i(e)+" not to have value #{exp}",t,o)})),t.Assertion.overwriteProperty("exist",(function(t){return function(){var e=n(this,"object");a(e)?this.assert(e.length>0,"expected an empty NodeList to have nodes","expected "+i(e)+" to not exist"):t.apply(this,arguments)}})),t.Assertion.overwriteProperty("empty",(function(t){return function(){var e=n(this,"object");r(e)?this.assert(0===e.children.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):a(e)?this.assert(0===e.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("length",(function(t){return function(e){var o=n(this,"object");if(a(o)||r(o)){var s=o.children?o.children.length:o.length;this.assert(s===e,"expected "+i(o)+" to have #{exp} children but it had #{act} children","expected "+i(o)+" to not have #{exp} children",e,s)}else t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.overwriteMethod("match",(function(t){return function(e){var o=n(this,"object");r(o)?this.assert(o.matches(e),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):a(o)?this.assert(!!o.length&&Array.prototype.every.call(o,(function(t){return t.matches(e)})),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("contain",(function(t){return function(e){var o=n(this,"object");r(o)?"string"==typeof e?this.assert(!!o.querySelector(e),"expected "+i(o)+" to contain #{exp}","expected "+i(o)+" to not contain #{exp}",e):this.assert(o.contains(e),"expected "+i(o)+" to contain "+i(e),"expected "+i(o)+" to not contain "+i(e)):t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.addMethod("descendant",(function(t){var e=n(this,"object"),o=t;"string"==typeof t?(o=e.querySelector(t),this.assert(!!o,"expected "+i(e)+" to have descendant #{exp}","expected "+i(e)+" to not have descendant #{exp}",t)):this.assert(e.contains(t),"expected "+i(e)+" to contain "+i(t),"expected "+i(e)+" to not contain "+i(t)),n(this,"object",o)})),t.Assertion.addMethod("descendants",(function(t){var e=n(this,"object"),o=e.querySelectorAll(t);this.assert(!!o.length,"expected "+i(e)+" to have descendants #{exp}","expected "+i(e)+" to not have descendants #{exp}",t),n(this,"object",o)})),t.Assertion.addProperty("displayed",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).display:t.style.display;this.assert("none"!==e,"expected "+i(t)+" to be displayed, but it was not","expected "+i(t)+" to not be displayed, but it was as "+e,e)})),t.Assertion.addProperty("visible",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).visibility:t.style.visibility;this.assert("hidden"!==e&&"collapse"!==e,"expected "+i(t)+" to be visible, but it was "+("hidden"===e?"hidden":"collapsed"),"expected "+i(t)+" to not be visible, but it was",e)})),t.Assertion.addMethod("tagName",(function(t){var e=n(this,"object"),o=e.tagName;this.assert(o.toUpperCase()===t.toUpperCase(),"expected "+i(e)+" to have tagName "+t+", but it was "+o,"expected "+i(e)+" to not have tagName "+t+", but it was "+o,o)})),t.Assertion.addMethod("style",(function(t,e){var o=n(this,"object"),r=window.getComputedStyle(o).getPropertyValue(t).trim();this.assert(r===e,"expected "+i(o)+" to have style property "+t+" equal to "+e+", but it was equal to "+r,"expected "+i(o)+" to not have style property "+t+" equal to "+e+", but it was equal to "+r,r)})),t.Assertion.overwriteProperty("focus",(function(){return function(){var t=n(this,"object"),e=t.ownerDocument.activeElement;this.assert(t===t.ownerDocument.activeElement,"expected #{this} to have focus","expected #{this} not to have focus",t,e)}})),t.Assertion.overwriteProperty("checked",(function(){return function(){var t=n(this,"object");if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type&&"radio"!==t.type)throw new TypeError(i(t)+" is not a checkbox or radio input");this.assert(t.checked,"expected "+i(t)+" to be checked","expected "+i(t)+" to not be checked")}}))}));var S=O;var k={};!function(t){!function(e){t.exports=e}((function(t,e){var n,i,o,r=Array.prototype.slice;function a(t){return"function"==typeof t&&"function"==typeof t.getCall&&"function"==typeof t.calledWithExactly}function s(t){switch(t){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(t||0)+" times"}}function c(t){if(!a(t._obj)&&(!(n=t._obj)||!a(n.proxy)))throw new TypeError(e.inspect(t._obj)+" is not a spy or a call to a spy!");var n}function u(t,e,n,i,o){var r=i?"always have ":"have ";function s(e){return t.printf.apply(t,e)}return n=n||"",a(t.proxy)&&(t=t.proxy),{affirmative:function(){return s(["expected %n to "+r+e+n].concat(o))},negative:function(){return s(["expected %n to not "+r+e].concat(o))}}}function f(n,i,o){e.addProperty(t.Assertion.prototype,n,(function(){c(this);var t=u(this._obj,i,o,!1);this.assert(this._obj[n],t.affirmative,t.negative)}))}function h(t,n,i){return function(){c(this);var o="always"+t[0].toUpperCase()+t.substring(1),a=e.flag(this,"always")&&"function"==typeof this._obj[o],s=a?o:t,f=u(this._obj,n,i,a,r.call(arguments));this.assert(this._obj[s].apply(this._obj,arguments),f.affirmative,f.negative)}}function l(n,i,o,r){var a=h(i,o,r);e.addMethod(t.Assertion.prototype,n,a)}function d(t,e,n){l(t,t,e,n)}e.addProperty(t.Assertion.prototype,"always",(function(){e.flag(this,"always",!0)})),f("called","been called"," at least once, but it was never called"),n="callCount",i="been called exactly %1",o=", but it was called %c%C",e.addMethod(t.Assertion.prototype,n,(function(t){c(this);var e=u(this._obj,i,o,!1,[s(t)]);this.assert(this._obj[n]===t,e.affirmative,e.negative)})),f("calledOnce","been called exactly once",", but it was called %c%C"),f("calledTwice","been called exactly twice",", but it was called %c%C"),f("calledThrice","been called exactly thrice",", but it was called %c%C"),function(n,i,o){var r=h(n,i,o);e.addProperty(t.Assertion.prototype,n,r)}("calledWithNew","been called with new"),d("calledBefore","been called before %1"),d("calledAfter","been called after %1"),d("calledImmediatelyBefore","been called immediately before %1"),d("calledImmediatelyAfter","been called immediately after %1"),d("calledOn","been called with %1 as this",", but it was called with %t instead"),d("calledWith","been called with arguments %*","%D"),d("calledOnceWith","been called exactly once with arguments %*","%D"),d("calledWithExactly","been called with exact arguments %*","%D"),d("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),d("calledWithMatch","been called with arguments matching %*","%D"),d("returned","returned %1"),l("thrown","threw","thrown %1")}))}({get exports(){return k},set exports(t){k=t}});var A=k;function D(t){return new Promise((e=>{setTimeout(e,t)}))}function T(t,e){return new Promise((n=>{t.addEventListener(e,(function i(o){n(o),t.removeEventListener(e,i)}))}))}function M(t,e,n={}){const{interval:i=50,timeout:o=1e3}=n,{stack:r}=new Error;return new Promise(((n,a)=>{let s;setTimeout((()=>{clearTimeout(s);const t=new Error(e?`Timeout: ${e}`:`waitUntil timed out after ${o}ms`);t.stack=r,a(t)}),o),async function e(){try{await t()?n():s=setTimeout((()=>{e()}),i)}catch(t){a(t)}}()}))}a.use(((t,e)=>{t.Assertion.addProperty("lightDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"lightDom",!0)})),t.Assertion.addProperty("shadowDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"shadowDom",!0)})),t.Assertion.addProperty("dom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"dom",!0)}));const n=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase();let n=" ";return Array.prototype.slice.call(t.attributes).forEach((t=>{n+=`${t.name}="${t.value}" `})),n=n.slice(0,-1),`<${e}${n}>${t.innerHTML}</${e}>`}return t.outerHTML})(t),i=t=>t.innerHTML,o=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase(),n=new RegExp(e,"g");let i=t.shadowRoot.innerHTML;return i=i.replace(/style-scope/g,""),i=i.replace(n,""),i=i.replace(/(class=".*?)(\s)*"/g,'$1"'),i=i.replace(/ class="\w?"/g,""),i}return t.shadowRoot.innerHTML})(t),r=(e,n,i,...o)=>{const{message:r,options:a}=y(...o),s=new t.Assertion(h(e,a),r),c=h(n,a);i?s.not.equal(c,r):s.equal(c,r)},a=t=>function(a,...s){if(e.flag(this,"lightDom")||e.flag(this,"shadowDom")||e.flag(this,"dom")){let t;t=e.flag(this,"lightDom")?i(this._obj):e.flag(this,"shadowDom")?o(this._obj):n(this._obj),r(t,a,e.flag(this,"negate"),s[0])}else t.apply(this,[a,...s])};function s(e,n,...i){const o=window.__mocha_context__,r=window.__snapshot__,{message:a,options:s}=y(...i),{index:c}=o;o.index+=1;const u=g(o.runnable),f=h(e,s);if(r.update)r.set(u,c,f,"html");else{const e=r.get(u,c);if(e){const i=r.match(f,h(e.code,s));if(i&&n||!i&&!n)throw new t.AssertionError(a||`Received value does not match stored snapshot ${c}`,{actual:f,expected:e.code,showDiff:!0},t.util.flag(this,"ssfi"))}else r.set(u,c,f,"html")}}async function c(e,n,...i){const{message:o,options:r}=y(...i),a=g(window.__WTR_MOCHA_RUNNER__.test).join(" "),s=h(e,r),c=await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");return(await m(t))[t.name]}({name:a}),u=await async function(){return w||(w=await p("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),w}();if(c&&!u.updateSnapshots){if(n?c===s:c!==s)throw new t.AssertionError(o||`Snapshot ${a} does not match the saved snapshot on disk`,{actual:s,expected:c,showDiff:!0},t.util.flag(this,"ssfi"))}else c!==s&&await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");if(void 0!==t.content&&"string"!=typeof t.content)throw new Error("You must provide a snapshot content");return(await m())[t.name]=t.content,p("save-snapshot",t,"snapshotPlugin from @web/test-runner-commands")}({name:a,content:s})}function u(t,e,...n){if(window.__mocha_context__&&window.__snapshot__)return s.call(this,t,e,...n);if(window.__WTR_MOCHA_RUNNER__)return c.call(this,t,e,...n);throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot")}function f(n){const r=t.util.flag(this,"object");let a;return a=e.flag(this,"shadowDom")?o(r):e.flag(this,"lightDom")?i(r):r,u.call(this,a,e.flag(this,"negate"),n)}t.Assertion.overwriteMethod("equals",a),t.Assertion.overwriteMethod("equal",a),t.Assertion.overwriteMethod("eq",a),e.addMethod(t.Assertion.prototype,"equalSnapshot",f),e.addMethod(t.Assertion.prototype,"notEqualSnapshot",f),e.addMethod(t.assert,"equalSnapshot",u),e.addMethod(t.assert,"notEqualSnapshot",u),t.assert.dom={equal(t,e,...i){return r.call(this,n(t),e,!1,...i)},notEqual(t,e,...i){return r.call(this,n(t),e,!0,...i)},equalSnapshot(t,...e){return u.call(this,t,!1,...e)},notEqualSnapshot(t,...e){return u.call(this,t,!0,...e)}},t.assert.lightDom={equal(t,e,...n){return r.call(this,i(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,i(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,i(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,i(t),!0,...e)}},t.assert.shadowDom={equal(t,e,...n){return r.call(this,o(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,o(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,o(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,o(t),!0,...e)}}})),a.use(((t,e)=>{const{assert:n}=t;e.addMethod(t.Assertion.prototype,"accessible",(function(t){const n=this._obj,i=t||{},o=function(t){if(!t||!t.length)return;const e={};return t.forEach((t=>{e[t]={enabled:!1}})),e}(i.ignoredRules),r={resultTypes:["violations"]};o&&(r.rules=o);let a=i.done?i.done:void 0;if(a||(a=()=>{}),i.ignoredTags){n.parentNode.querySelectorAll(i.ignoredTags.toString()).forEach((t=>t.setAttribute("aria-hidden",!0)))}const s=j(n,r).then((t=>function(t,e,n){const{violations:i}=e;if(i.length&&t)return void n();if(!i.length&&!t)return void n();const o=[];i.length&&(o[o.length]="Accessibility Violations",o[o.length]="---",i.forEach((t=>{o[o.length]=`Rule: ${t.id}`,o[o.length]=`Impact: ${t.impact}`,o[o.length]=`${t.help} (${t.helpUrl})`,t.nodes.forEach((t=>{o[o.length]="",t.target&&(o[o.length]=`Issue target: ${t.target}`),o[o.length]=`Context: ${t.html}`,t.failureSummary&&(o[o.length]=`${t.failureSummary}`)})),o[o.length]="---"})));const r=new Error(o.join("\n"));throw n(r),r}(e.flag(this,"negate"),t,a)));return this.then=s.then.bind(s),this})),n.isAccessible=function(e,n){return new t.Assertion(e).to.be.accessible(n)},n.isNotAccessible=function(e,n){return new t.Assertion(e).not.to.be.accessible(n)}})),a.use(S),a.use(A);const q=t=>"object"==typeof t&&Promise.resolve(t)===t;async function $(t){let e=!1,n=t&&t.updateComplete;return q(n)&&(await n,e=!0),n=!(!t||!t.componentOnReady)&&t.componentOnReady(),q(n)&&(await n,e=!0),e||await new Promise((t=>{requestAnimationFrame((()=>t()))})),window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush(),t}const P=[];function N(t=document.createElement("div")){return document.body.appendChild(t),P.push(t),t}function F(){P&&P.forEach((t=>{document.body.removeChild(t)})),P.length=0}function L(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}function C(t){return null!=(e=t)&&"function"==typeof e[Symbol.iterator]?[...t].every(L):L(t);var e}const R=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11}),I=({nodeType:t,textContent:e})=>{switch(t){case R.COMMENT_NODE:return!1;case R.TEXT_NODE:return e.trim();default:return!0}};async function _(t,e={}){const o=function(t,e={},o){const r=N(e.parentNode);if((e.render??n)(e.scopedElements?o(t,e.scopedElements):t,r),i(t))return r.firstElementChild;const[a]=Array.from(r.childNodes).filter(I);return a}(t,e,e.scopedElements?await import("./scopedElementsWrapper-4c29be11.esm.js").then((t=>t.getScopedElementsTemplate)):void 0);if(await $(o),e.scopedElements){const[t]=Array.from(o.shadowRoot.childNodes).filter(I);return await $(t),t}return o}async function U(n,i={}){if(i.scopedElements)return _(t`${e(n)}`,i);const o=function(t,e={}){const n=N(e.parentNode);return n.innerHTML=t,n.children[0]}(n,i);return await $(o),o}async function W(t,e){if("string"==typeof t)return U(t,e);if(e?.render||C(t))return _(t,e);throw new Error("Invalid template provided - string or lit-html TemplateResult is supported")}try{"afterEach"in window&&afterEach((()=>{F()})),"teardown"in window&&teardown((()=>{F()}))}catch(t){}export{s as a,D as b,$ as e,W as f,T as o,M as w};
|