@zazz-ui/core 0.4.1 → 0.5.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/AUTHORING.md +158 -0
- package/CHANGELOG.md +345 -0
- package/README.md +55 -23
- package/dist/scroll-state-C8mA5gq6.js +1 -0
- package/dist/sri.json +124 -72
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/editor/zazz.css-data.json +116794 -0
- package/editor/zazz.html-data.json +1683 -0
- package/editor/zazz.language-data.json +5001 -0
- package/editor/zazz.lint-data.json +152 -0
- package/package.json +12 -5
- package/src/base/_breakpoints.css +12 -0
- package/src/base/_layers.css +8 -9
- package/src/base/_properties-2xl.css +171 -0
- package/src/base/_properties-active.css +107 -0
- package/src/base/_properties-checked.css +107 -0
- package/src/base/_properties-current.css +107 -0
- package/src/base/_properties-disabled.css +107 -0
- package/src/base/_properties-focus-visible.css +107 -0
- package/src/base/_properties-focus-within.css +107 -0
- package/src/base/_properties-hover.css +107 -0
- package/src/base/_properties-lg.css +171 -0
- package/src/base/_properties-md.css +171 -0
- package/src/base/_properties-open.css +107 -0
- package/src/base/_properties-sm.css +171 -0
- package/src/base/_properties-starting.css +55 -0
- package/src/base/_properties-stuck.css +55 -0
- package/src/base/_properties-xl.css +171 -0
- package/src/base/_properties.css +555 -0
- package/src/base/_reset.css +67 -75
- package/src/base/_switches.css +145 -0
- package/src/base/_typography.css +437 -370
- package/src/base/_utilities-box.css +142 -0
- package/src/base/_utilities-color.css +290 -0
- package/src/base/_utilities-effects.css +235 -0
- package/src/base/_utilities-flow.css +312 -0
- package/src/base/_utilities-grid.css +143 -0
- package/src/base/_utilities-margin.css +376 -0
- package/src/base/_utilities-pseudo.css +426 -0
- package/src/base/_utilities-sizing.css +259 -0
- package/src/base/_utilities-spacing.css +190 -0
- package/src/base/_utilities-tier-2xl.css +93 -0
- package/src/base/_utilities-tier-active.css +61 -0
- package/src/base/_utilities-tier-checked.css +61 -0
- package/src/base/_utilities-tier-current.css +61 -0
- package/src/base/_utilities-tier-disabled.css +61 -0
- package/src/base/_utilities-tier-focus-visible.css +61 -0
- package/src/base/_utilities-tier-focus-within.css +61 -0
- package/src/base/_utilities-tier-hover.css +63 -0
- package/src/base/_utilities-tier-lg.css +93 -0
- package/src/base/_utilities-tier-md.css +93 -0
- package/src/base/_utilities-tier-open.css +61 -0
- package/src/base/_utilities-tier-sm.css +93 -0
- package/src/base/_utilities-tier-starting.css +35 -0
- package/src/base/_utilities-tier-stuck.css +114 -0
- package/src/base/_utilities-tier-xl.css +93 -0
- package/src/base/_utilities-typography.css +141 -0
- package/src/base/_variables.css +323 -372
- package/src/base/_view-transitions.css +10 -12
- package/src/base/command-score.d.ts.map +1 -1
- package/src/base/command-score.js +1 -2
- package/src/base/command-score.ts +1 -2
- package/src/base/dialog-lifecycle.js +1 -1
- package/src/base/dialog-lifecycle.ts +1 -1
- package/src/base/embla.d.ts +6 -7
- package/src/base/embla.d.ts.map +1 -1
- package/src/base/embla.js +89 -55
- package/src/base/embla.ts +89 -55
- package/src/base/hotkeys.d.ts +0 -5
- package/src/base/hotkeys.d.ts.map +1 -1
- package/src/base/hotkeys.ts +0 -5
- package/src/base/navigation.d.ts +12 -1
- package/src/base/navigation.d.ts.map +1 -1
- package/src/base/navigation.js +229 -86
- package/src/base/navigation.ts +224 -92
- package/src/base/reveal.js +14 -14
- package/src/base/reveal.ts +14 -14
- package/src/base/scroll-state.d.ts +21 -0
- package/src/base/scroll-state.d.ts.map +1 -0
- package/src/base/scroll-state.js +177 -0
- package/src/base/scroll-state.ts +188 -0
- package/src/base/signals.d.ts +1 -2
- package/src/base/signals.d.ts.map +1 -1
- package/src/base/signals.js +4 -6
- package/src/base/signals.ts +4 -6
- package/src/base/style-format.d.ts +33 -0
- package/src/base/style-format.d.ts.map +1 -0
- package/src/base/style-format.js +160 -0
- package/src/base/style-format.ts +180 -0
- package/src/base/typeahead.d.ts +19 -4
- package/src/base/typeahead.d.ts.map +1 -1
- package/src/base/typeahead.js +68 -21
- package/src/base/typeahead.ts +73 -23
- package/src/base/utilities.d.ts +188 -0
- package/src/base/utilities.d.ts.map +1 -0
- package/src/base/utilities.js +750 -0
- package/src/base/utilities.ts +865 -0
- package/src/base/utils.d.ts +3 -7
- package/src/base/utils.d.ts.map +1 -1
- package/src/base/utils.js +4 -8
- package/src/base/utils.ts +4 -8
- package/src/base/zazz-element.d.ts +14 -8
- package/src/base/zazz-element.d.ts.map +1 -1
- package/src/base/zazz-element.js +14 -8
- package/src/base/zazz-element.ts +15 -8
- package/src/globals.d.ts +1 -1
- package/src/head.d.ts +50 -4
- package/src/head.d.ts.map +1 -1
- package/src/head.js +119 -38
- package/src/head.ts +172 -41
- package/src/index.css +57 -14
- package/src/index.js +5 -0
- package/src/index.ts +6 -0
- package/src/manifest.d.ts +36 -5
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +150 -6
- package/src/manifest.ts +167 -9
- package/src/primitives/accordion/accordion.css +18 -17
- package/src/primitives/accordion/accordion.html +42 -9
- package/src/primitives/alert-dialog/alert-dialog.css +13 -13
- package/src/primitives/alert-dialog/alert-dialog.html +26 -12
- package/src/primitives/autocomplete/autocomplete-groups.html +64 -33
- package/src/primitives/autocomplete/autocomplete.css +43 -39
- package/src/primitives/autocomplete/autocomplete.d.ts +6 -5
- package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -1
- package/src/primitives/autocomplete/autocomplete.html +38 -26
- package/src/primitives/autocomplete/autocomplete.js +6 -5
- package/src/primitives/autocomplete/autocomplete.ts +6 -5
- package/src/primitives/avatar/avatar.html +110 -15
- package/src/primitives/badge/badge-icon.html +22 -8
- package/src/primitives/badge/badge.css +401 -128
- package/src/primitives/badge/badge.html +12 -6
- package/src/primitives/breadcrumbs/breadcrumbs.html +25 -5
- package/src/primitives/button/button-icon-only.html +17 -11
- package/src/primitives/button/button-icon.html +9 -3
- package/src/primitives/button/button.css +408 -164
- package/src/primitives/button/button.html +14 -7
- package/src/primitives/button-group/button-group-vertical.html +5 -5
- package/src/primitives/button-group/button-group.css +61 -31
- package/src/primitives/button-group/button-group.html +18 -12
- package/src/primitives/callout/callout.css +114 -0
- package/src/primitives/callout/callout.html +188 -0
- package/src/primitives/card/card-subgrid.html +249 -34
- package/src/primitives/card/card.css +125 -0
- package/src/primitives/card/card.html +141 -20
- package/src/primitives/carousel/carousel.css +30 -20
- package/src/primitives/carousel/carousel.d.ts +7 -10
- package/src/primitives/carousel/carousel.d.ts.map +1 -1
- package/src/primitives/carousel/carousel.html +420 -84
- package/src/primitives/carousel/carousel.js +1 -1
- package/src/primitives/carousel/carousel.ts +8 -11
- package/src/primitives/checkbox/checkbox-tasklist.html +6 -6
- package/src/primitives/checkbox/checkbox.css +98 -40
- package/src/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/src/primitives/checkbox/checkbox.html +13 -8
- package/src/primitives/checkbox/checkbox.js +7 -9
- package/src/primitives/checkbox/checkbox.ts +7 -15
- package/src/primitives/combobox/combobox-multiselect.html +53 -33
- package/src/primitives/combobox/combobox.css +145 -122
- package/src/primitives/combobox/combobox.d.ts +12 -11
- package/src/primitives/combobox/combobox.d.ts.map +1 -1
- package/src/primitives/combobox/combobox.html +48 -28
- package/src/primitives/combobox/combobox.js +46 -51
- package/src/primitives/combobox/combobox.ts +48 -55
- package/src/primitives/command/command-actions.d.ts +2 -3
- package/src/primitives/command/command-actions.d.ts.map +1 -1
- package/src/primitives/command/command-actions.html +48 -33
- package/src/primitives/command/command-actions.js +12 -10
- package/src/primitives/command/command-actions.ts +12 -13
- package/src/primitives/command/command-dialog.html +49 -25
- package/src/primitives/command/command.css +52 -42
- package/src/primitives/command/command.d.ts +10 -7
- package/src/primitives/command/command.d.ts.map +1 -1
- package/src/primitives/command/command.html +95 -46
- package/src/primitives/command/command.js +30 -13
- package/src/primitives/command/command.ts +30 -12
- package/src/primitives/debug/audit-core.d.ts +64 -0
- package/src/primitives/debug/audit-core.d.ts.map +1 -0
- package/src/primitives/debug/audit-core.js +356 -0
- package/src/primitives/debug/audit-core.ts +535 -0
- package/src/primitives/debug/debug.d.ts +50 -0
- package/src/primitives/debug/debug.d.ts.map +1 -0
- package/src/primitives/debug/debug.js +168 -0
- package/src/primitives/debug/debug.ts +211 -0
- package/src/primitives/dialog/dialog-with-form.html +67 -45
- package/src/primitives/dialog/dialog.css +87 -61
- package/src/primitives/dialog/dialog.html +25 -17
- package/src/primitives/fields/fields.css +108 -134
- package/src/primitives/fields/fields.html +39 -0
- package/src/primitives/input/input-icon-leading.html +3 -3
- package/src/primitives/input/input-icon-trailing.html +3 -3
- package/src/primitives/input/input.css +87 -49
- package/src/primitives/input/input.html +15 -15
- package/src/primitives/input-group/input-group-password-group.html +15 -15
- package/src/primitives/input-group/input-group.css +118 -75
- package/src/primitives/input-group/input-group.html +42 -30
- package/src/primitives/kbd/kbd-group.html +15 -2
- package/src/primitives/kbd/kbd.css +44 -31
- package/src/primitives/kbd/kbd.html +7 -1
- package/src/primitives/layout/layout.css +159 -0
- package/src/primitives/layout/layout.html +35 -0
- package/src/primitives/lightbox/lightbox.css +178 -105
- package/src/primitives/lightbox/lightbox.d.ts.map +1 -1
- package/src/primitives/lightbox/lightbox.html +138 -166
- package/src/primitives/lightbox/lightbox.js +10 -13
- package/src/primitives/lightbox/lightbox.ts +12 -13
- package/src/primitives/menu/menu-interest.html +60 -18
- package/src/primitives/menu/menu.css +22 -17
- package/src/primitives/menu/menu.d.ts +5 -5
- package/src/primitives/menu/menu.html +195 -40
- package/src/primitives/menu/menu.js +8 -8
- package/src/primitives/menu/menu.ts +8 -8
- package/src/primitives/menubar/menubar-help-search.html +78 -32
- package/src/primitives/menubar/menubar.html +166 -38
- package/src/primitives/meter/meter.css +41 -38
- package/src/primitives/meter/meter.html +44 -9
- package/src/primitives/mobile-menu/mobile-menu.css +47 -40
- package/src/primitives/mobile-menu/mobile-menu.html +1460 -179
- package/src/primitives/navigation-menu/navigation-menu-featured.html +155 -33
- package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +222 -47
- package/src/primitives/navigation-menu/navigation-menu-interest.html +130 -38
- package/src/primitives/navigation-menu/navigation-menu-megamenu.html +402 -72
- package/src/primitives/navigation-menu/navigation-menu-simple.html +90 -40
- package/src/primitives/navigation-menu/navigation-menu.css +104 -106
- package/src/primitives/navigation-menu/navigation-menu.html +554 -158
- package/src/primitives/otp/otp.css +43 -44
- package/src/primitives/otp/otp.d.ts +4 -5
- package/src/primitives/otp/otp.d.ts.map +1 -1
- package/src/primitives/otp/otp.html +7 -6
- package/src/primitives/otp/otp.js +13 -18
- package/src/primitives/otp/otp.ts +12 -19
- package/src/primitives/password-group/password-group.css +132 -107
- package/src/primitives/password-group/password-group.d.ts.map +1 -1
- package/src/primitives/password-group/password-group.html +23 -16
- package/src/primitives/password-group/password-group.js +11 -12
- package/src/primitives/password-group/password-group.ts +11 -12
- package/src/primitives/popover/popover.css +88 -95
- package/src/primitives/popover/popover.html +18 -0
- package/src/primitives/progress/progress-indeterminate.html +1 -1
- package/src/primitives/progress/progress.css +34 -35
- package/src/primitives/progress/progress.html +18 -4
- package/src/primitives/prose/prose.html +19 -12
- package/src/primitives/radio/radio.css +83 -46
- package/src/primitives/radio/radio.html +16 -11
- package/src/primitives/reveal/reveal.css +37 -46
- package/src/primitives/reveal/reveal.html +15 -0
- package/src/primitives/scroll-fade/scroll-fade.css +115 -0
- package/src/primitives/scroll-fade/scroll-fade.html +69 -0
- package/src/primitives/select/multiselect.d.ts +8 -10
- package/src/primitives/select/multiselect.d.ts.map +1 -1
- package/src/primitives/select/multiselect.js +23 -27
- package/src/primitives/select/multiselect.ts +23 -29
- package/src/primitives/select/select-align.html +79 -16
- package/src/primitives/select/select-multiple.html +8 -4
- package/src/primitives/select/select-sides.html +104 -21
- package/src/primitives/select/select.css +297 -186
- package/src/primitives/select/select.html +24 -5
- package/src/primitives/separator/separator.css +15 -18
- package/src/primitives/separator/separator.html +37 -10
- package/src/primitives/slider/slider.css +48 -38
- package/src/primitives/slider/slider.html +9 -1
- package/src/primitives/style-guard/style-guard.d.ts +19 -0
- package/src/primitives/style-guard/style-guard.d.ts.map +1 -0
- package/src/primitives/style-guard/style-guard.js +125 -0
- package/src/primitives/style-guard/style-guard.ts +153 -0
- package/src/primitives/switch/switch.css +42 -33
- package/src/primitives/switch/switch.html +11 -6
- package/src/primitives/table/table-alternating.html +1 -1
- package/src/primitives/table/table-grid.html +5 -5
- package/src/primitives/table/table-size-sm.html +1 -1
- package/src/primitives/table/table.css +64 -61
- package/src/primitives/table/table.html +7 -7
- package/src/primitives/tabs/tabs.css +167 -166
- package/src/primitives/tabs/tabs.d.ts +10 -11
- package/src/primitives/tabs/tabs.d.ts.map +1 -1
- package/src/primitives/tabs/tabs.html +192 -36
- package/src/primitives/tabs/tabs.js +14 -15
- package/src/primitives/tabs/tabs.ts +14 -15
- package/src/primitives/textarea/textarea.css +69 -44
- package/src/primitives/textarea/textarea.html +3 -3
- package/src/primitives/toaster/toaster.css +90 -92
- package/src/primitives/toaster/toaster.d.ts +0 -6
- package/src/primitives/toaster/toaster.d.ts.map +1 -1
- package/src/primitives/toaster/toaster.html +22 -18
- package/src/primitives/toaster/toaster.js +64 -72
- package/src/primitives/toaster/toaster.ts +71 -87
- package/src/primitives/toggle/toggle.css +368 -153
- package/src/primitives/toggle/toggle.html +27 -9
- package/src/primitives/toggle-group/toggle-group-multiple.html +3 -3
- package/src/primitives/toggle-group/toggle-group-vertical.html +4 -4
- package/src/primitives/toggle-group/toggle-group.css +76 -26
- package/src/primitives/toggle-group/toggle-group.html +3 -3
- package/src/primitives/toolbar/toolbar.html +35 -13
- package/src/primitives/tooltip/tooltip-disabled.html +3 -3
- package/src/primitives/tooltip/tooltip-sides.html +36 -14
- package/src/primitives/tooltip/tooltip-with-kbd.html +5 -5
- package/src/primitives/tooltip/tooltip.css +111 -80
- package/src/primitives/tooltip/tooltip.html +3 -3
- package/src/primitives/utilities/aspect-ratio.html +51 -7
- package/src/primitives/utilities/basis.html +64 -11
- package/src/primitives/utilities/col-span.html +65 -9
- package/src/primitives/utilities/compose.html +48 -10
- package/src/primitives/utilities/flex-align.html +89 -19
- package/src/primitives/utilities/flex-direction.html +111 -13
- package/src/primitives/utilities/flex-grow.html +41 -7
- package/src/primitives/utilities/gap.html +158 -19
- package/src/primitives/utilities/grid-cols.html +75 -7
- package/src/primitives/utilities/grid-responsive.html +111 -12
- package/src/primitives/utilities/margin-auto.html +38 -7
- package/src/primitives/utilities/object-fit.html +75 -13
- package/src/primitives/utilities/order.html +40 -4
- package/src/primitives/utilities/overflow.html +74 -20
- package/src/primitives/utilities/padding-compose.html +67 -10
- package/src/primitives/utilities/padding.html +84 -13
- package/src/primitives/utilities/pile.html +29 -0
- package/src/primitives/utilities/position.html +65 -8
- package/src/primitives/utilities/responsive-flex.html +54 -7
- package/src/primitives/utilities/responsive-grid.html +115 -12
- package/src/primitives/utilities/size.html +120 -16
- package/src/primitives/utilities/width.html +123 -16
- package/examples/about.html +0 -583
- package/examples/components.html +0 -1028
- package/examples/forms.html +0 -504
- package/examples/index.html +0 -261
- package/examples/layout.html +0 -313
- package/examples/products.html +0 -839
- package/examples/responsive.html +0 -332
- package/src/base/_layout.css +0 -571
- package/src/base/_utilities.css +0 -6758
- package/src/primitives/utilities/grid-pile.html +0 -5
package/src/base/embla.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Embla Carousel initialization and controls.
|
|
5
|
-
* @description Discovers carousel roots (`<ui-carousel>` or
|
|
5
|
+
* @description Discovers carousel roots (`<ui-carousel>` or `[data-ui~="carousel"]`),
|
|
6
6
|
* initializes Embla instances with optional plugins, and wires navigation,
|
|
7
7
|
* keyboard, and dialog-open behaviors (subscribing to `zazz:dialog-open`
|
|
8
8
|
* from base/dialog-lifecycle.ts; lightbox choreography lives in lightbox.ts).
|
|
9
9
|
*
|
|
10
|
-
* Structure: root is the element
|
|
11
|
-
* - root (`<ui-carousel>` |
|
|
10
|
+
* Structure: root is the element itself; parts are slots (`data-carousel-slot="<part>"`):
|
|
11
|
+
* - root (`<ui-carousel>` | `[data-ui~="carousel"]`): Carousel container; holds all config attributes
|
|
12
12
|
* - `carousel-viewport`: Visible window (required)
|
|
13
13
|
* - `carousel-container`: Slides flex track
|
|
14
14
|
* - `carousel-slide`: Individual slide
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* - `carousel-dots` / `carousel-dot`: Dot pagination container and template dot (optional)
|
|
17
17
|
* - `carousel-thumbs`: Linked thumb carousel container (optional)
|
|
18
18
|
*
|
|
19
|
-
* thumb navigation (on `data-slot="
|
|
19
|
+
* thumb navigation (on `data-carousel-slot="thumbs"`):
|
|
20
20
|
* - `data-carousel-thumbs-*`: thumb carousel options (defaults: containScroll keepSnaps, dragFree true)
|
|
21
21
|
* - Syncs with the main carousel in the same root
|
|
22
22
|
*
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* - `data-carousel-start-index`: Set on root by script; consumed when dialog opens
|
|
27
27
|
* - `data-carousel-keyboard`: Set to `"false"` to disable ArrowLeft/ArrowRight navigation
|
|
28
28
|
*
|
|
29
|
-
* Configuration (on the carousel root: `<ui-carousel>` or
|
|
29
|
+
* Configuration (on the carousel root: `<ui-carousel>` or `[data-ui~="carousel"]`):
|
|
30
30
|
* - `data-carousel-*`: Core Embla options
|
|
31
31
|
* - `data-carousel-plugins`: Space-separated plugin slugs (`autoplay`, `auto-scroll`, `class-names`)
|
|
32
32
|
* - `data-carousel-autoplay-*`: Autoplay plugin options (requires `autoplay` in plugins)
|
|
@@ -55,26 +55,25 @@
|
|
|
55
55
|
* data-carousel-plugins="class-names" data-carousel-class-names-snapped="is-snapped"
|
|
56
56
|
*
|
|
57
57
|
* @example Barebones carousel (4 text slides; auto-inits on DOMContentLoaded):
|
|
58
|
-
* <div
|
|
59
|
-
* <div data-slot="
|
|
60
|
-
* <div data-slot="
|
|
61
|
-
* <div data-slot="
|
|
62
|
-
* <div data-slot="
|
|
63
|
-
* <div data-slot="
|
|
64
|
-
* <div data-slot="
|
|
58
|
+
* <div data-ui="carousel">
|
|
59
|
+
* <div data-carousel-slot="viewport">
|
|
60
|
+
* <div data-carousel-slot="container">
|
|
61
|
+
* <div data-carousel-slot="slide">Slide 1</div>
|
|
62
|
+
* <div data-carousel-slot="slide">Slide 2</div>
|
|
63
|
+
* <div data-carousel-slot="slide">Slide 3</div>
|
|
64
|
+
* <div data-carousel-slot="slide">Slide 4</div>
|
|
65
65
|
* </div>
|
|
66
66
|
* </div>
|
|
67
|
-
* <button type="button" data-slot="
|
|
68
|
-
* <button type="button" data-slot="
|
|
67
|
+
* <button type="button" data-carousel-slot="prev">Prev</button>
|
|
68
|
+
* <button type="button" data-carousel-slot="next">Next</button>
|
|
69
69
|
* </div>
|
|
70
70
|
*/
|
|
71
71
|
|
|
72
72
|
import { Utils } from "./utils.ts";
|
|
73
73
|
import { registerRefresh } from "./zazz-element.ts";
|
|
74
74
|
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
// node_modules in tests/bundlers. No more UMD globals, no tag-order contract.
|
|
75
|
+
// Bare specifiers resolve through the page's import map in browsers (pinned
|
|
76
|
+
// jsDelivr URLs; see `head.ts`) and through node_modules in tests/bundlers.
|
|
78
77
|
import EmblaCarousel from "embla-carousel";
|
|
79
78
|
import type { EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from "embla-carousel";
|
|
80
79
|
import EmblaCarouselAutoplay from "embla-carousel-autoplay";
|
|
@@ -124,10 +123,8 @@ const PLUGIN_BY_SLUG: Record<CarouselPluginSlug, (node: Element) => EmblaPluginT
|
|
|
124
123
|
* @description Reads a node's prefixed `data-carousel-*` attributes as an
|
|
125
124
|
* options object of the shape Embla (or one of its plugins) expects.
|
|
126
125
|
*
|
|
127
|
-
* Attributes are strings, so the
|
|
128
|
-
*
|
|
129
|
-
* here with its justification (Embla validates its own options at runtime)
|
|
130
|
-
* instead of being repeated at every call site.
|
|
126
|
+
* Attributes are strings, so the single type assertion into Embla's option
|
|
127
|
+
* types lives here (Embla validates its own options at runtime).
|
|
131
128
|
*
|
|
132
129
|
* @param node - Element carrying the configuration attributes.
|
|
133
130
|
* @param prefix - Attribute prefix, e.g. `"data-carousel-autoplay-"`.
|
|
@@ -141,15 +138,47 @@ function readCarouselOptions<T>(node: Element, prefix: string): T {
|
|
|
141
138
|
// --- Active-index sync ---
|
|
142
139
|
|
|
143
140
|
/**
|
|
144
|
-
* @description
|
|
141
|
+
* @description Adds or removes one token of an element's `data-carousel-state`
|
|
142
|
+
* list, leaving the other tokens in place.
|
|
143
|
+
* @private
|
|
144
|
+
*/
|
|
145
|
+
function setCarouselState(node: Element, token: string, on: boolean): void {
|
|
146
|
+
const tokens = (node.getAttribute("data-carousel-state") ?? "").split(/\s+/).filter(Boolean);
|
|
147
|
+
const next = on ? [...new Set([...tokens, token])] : tokens.filter((t) => t !== token);
|
|
148
|
+
if (next.length) node.setAttribute("data-carousel-state", next.join(" "));
|
|
149
|
+
else node.removeAttribute("data-carousel-state");
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @description Mirrors Embla's view state onto the slides as `data-carousel-state`
|
|
154
|
+
* tokens: `in-view` for slides inside the viewport and `snapped` for the slides
|
|
155
|
+
* of the selected snap (what the ClassNames plugin exposes as classes).
|
|
156
|
+
* @private
|
|
157
|
+
*/
|
|
158
|
+
function bindSlideStates(emblaApi: EmblaCarouselType): void {
|
|
159
|
+
const update = () => {
|
|
160
|
+
const slides = emblaApi.slideNodes();
|
|
161
|
+
const inView = new Set(emblaApi.slidesInView());
|
|
162
|
+
const snapped = new Set(
|
|
163
|
+
emblaApi.internalEngine().slideRegistry[emblaApi.selectedScrollSnap()] ?? [],
|
|
164
|
+
);
|
|
165
|
+
slides.forEach((slide, index) => {
|
|
166
|
+
setCarouselState(slide, "in-view", inView.has(index));
|
|
167
|
+
setCarouselState(slide, "snapped", snapped.has(index));
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
emblaApi.on("init", update).on("reInit", update).on("select", update).on("slidesInView", update);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @description Sets `data-carousel-state="active"` on the node at `selected` and clears it
|
|
145
175
|
* from every other node: the shared "which one is current" marker used by
|
|
146
176
|
* both dot pagination and thumb navigation.
|
|
147
177
|
*
|
|
148
178
|
* @param nodes - Candidate nodes, in slide order.
|
|
149
179
|
* @param selected - The active index.
|
|
150
|
-
* @param options - Set `ariaCurrent` to also toggle `aria-current` (
|
|
151
|
-
*
|
|
152
|
-
* as their `.is-active` state is purely visual pagination).
|
|
180
|
+
* @param options - Set `ariaCurrent` to also toggle `aria-current` (thumbs only;
|
|
181
|
+
* dot pagination is purely visual).
|
|
153
182
|
* @private
|
|
154
183
|
*/
|
|
155
184
|
function setActiveIndex(
|
|
@@ -159,7 +188,7 @@ function setActiveIndex(
|
|
|
159
188
|
): void {
|
|
160
189
|
nodes.forEach((node, idx) => {
|
|
161
190
|
const active = idx === selected;
|
|
162
|
-
node
|
|
191
|
+
setCarouselState(node, "active", active);
|
|
163
192
|
if (!options.ariaCurrent) return;
|
|
164
193
|
if (active) {
|
|
165
194
|
node.setAttribute("aria-current", "true");
|
|
@@ -186,7 +215,7 @@ const addDotBtnsAndClickHandlers = (
|
|
|
186
215
|
): (() => void) | undefined => {
|
|
187
216
|
if (!dotsNode) return;
|
|
188
217
|
|
|
189
|
-
const templateDot = dotsNode.querySelector('[data-slot~="
|
|
218
|
+
const templateDot = dotsNode.querySelector('[data-carousel-slot~="dot"]');
|
|
190
219
|
if (!templateDot) return;
|
|
191
220
|
|
|
192
221
|
let dotNodes: HTMLElement[] = [];
|
|
@@ -439,8 +468,8 @@ function initCommandDragGuard(): void {
|
|
|
439
468
|
* skips roots that are already initialized or inside a closed dialog (no
|
|
440
469
|
* measurable viewport until open).
|
|
441
470
|
*
|
|
442
|
-
* Called by `initEmblaCarousels()` for
|
|
443
|
-
* the `<ui-carousel>` web component
|
|
471
|
+
* Called by `initEmblaCarousels()` for attribute-form (`[data-ui~="carousel"]`) markup and by
|
|
472
|
+
* the `<ui-carousel>` web component on connect.
|
|
444
473
|
*
|
|
445
474
|
* @param emblaNode - The carousel root element.
|
|
446
475
|
*/
|
|
@@ -452,15 +481,15 @@ function initEmblaRoot(emblaNode: Element): void {
|
|
|
452
481
|
|
|
453
482
|
emblaNode.setAttribute("data-carousel-init", "");
|
|
454
483
|
|
|
455
|
-
const emblathumbsNode = emblaNode.querySelector('[data-slot~="
|
|
484
|
+
const emblathumbsNode = emblaNode.querySelector('[data-carousel-slot~="thumbs"]');
|
|
456
485
|
const emblaViewportNode = emblathumbsNode
|
|
457
486
|
? emblaNode.querySelector(
|
|
458
|
-
'[data-slot~="
|
|
487
|
+
'[data-carousel-slot~="viewport"]:not([data-carousel-slot~="thumbs"] *)',
|
|
459
488
|
)
|
|
460
|
-
: emblaNode.querySelector('[data-slot~="
|
|
461
|
-
const emblaPrevButtonNode = emblaNode.querySelector('[data-slot~="
|
|
462
|
-
const emblaNextButtonNode = emblaNode.querySelector('[data-slot~="
|
|
463
|
-
const emblaDotsNode = emblaNode.querySelector('[data-slot~="
|
|
489
|
+
: emblaNode.querySelector('[data-carousel-slot~="viewport"]');
|
|
490
|
+
const emblaPrevButtonNode = emblaNode.querySelector('[data-carousel-slot~="prev"]');
|
|
491
|
+
const emblaNextButtonNode = emblaNode.querySelector('[data-carousel-slot~="next"]');
|
|
492
|
+
const emblaDotsNode = emblaNode.querySelector('[data-carousel-slot~="dots"]');
|
|
464
493
|
|
|
465
494
|
if (!emblaViewportNode) return;
|
|
466
495
|
|
|
@@ -488,7 +517,6 @@ function initEmblaRoot(emblaNode: Element): void {
|
|
|
488
517
|
// single snap Embla still rubber-bands on drag, which feels broken. The
|
|
489
518
|
// callback re-evaluates on every pointer down, so it stays correct across
|
|
490
519
|
// resizes/reInit. Respect an explicit data-carousel-watch-drag override.
|
|
491
|
-
// @see https://github.com/davidjerleke/embla-carousel/issues/416
|
|
492
520
|
if (!("watchDrag" in apiOptions)) {
|
|
493
521
|
apiOptions.watchDrag = (api: EmblaCarouselType) => api.canScrollPrev() || api.canScrollNext();
|
|
494
522
|
}
|
|
@@ -508,6 +536,14 @@ function initEmblaRoot(emblaNode: Element): void {
|
|
|
508
536
|
apiOptions as EmblaOptionsType,
|
|
509
537
|
plugins,
|
|
510
538
|
);
|
|
539
|
+
// Drag state is a data-carousel-state token on the viewport.
|
|
540
|
+
emblaApi.on("pointerDown", () => {
|
|
541
|
+
if (emblaViewportNode) setCarouselState(emblaViewportNode, "dragging", true);
|
|
542
|
+
});
|
|
543
|
+
emblaApi.on("pointerUp", () => {
|
|
544
|
+
if (emblaViewportNode) setCarouselState(emblaViewportNode, "dragging", false);
|
|
545
|
+
});
|
|
546
|
+
bindSlideStates(emblaApi);
|
|
511
547
|
|
|
512
548
|
emblaNode._emblaApi = emblaApi;
|
|
513
549
|
|
|
@@ -532,11 +568,11 @@ function initEmblaRoot(emblaNode: Element): void {
|
|
|
532
568
|
|
|
533
569
|
// Any command-bearing slide (e.g. a lightbox stage slide that opens the
|
|
534
570
|
// dialog) needs its click suppressed when it was really a drag.
|
|
535
|
-
if (emblaNode.querySelector('[data-slot~="
|
|
571
|
+
if (emblaNode.querySelector('[data-carousel-slot~="slide"][commandfor]')) {
|
|
536
572
|
bindDragClickSuppression(
|
|
537
573
|
emblaNode,
|
|
538
574
|
emblaApi,
|
|
539
|
-
'[data-slot~="
|
|
575
|
+
'[data-carousel-slot~="slide"][commandfor]',
|
|
540
576
|
{ dragThresholdPx: 14 },
|
|
541
577
|
signal,
|
|
542
578
|
);
|
|
@@ -544,7 +580,7 @@ function initEmblaRoot(emblaNode: Element): void {
|
|
|
544
580
|
|
|
545
581
|
if (emblathumbsNode) {
|
|
546
582
|
const emblathumbsViewportNode = emblathumbsNode.querySelector(
|
|
547
|
-
'[data-slot~="
|
|
583
|
+
'[data-carousel-slot~="viewport"]',
|
|
548
584
|
);
|
|
549
585
|
if (emblathumbsViewportNode) {
|
|
550
586
|
const thumbDefaults: EmblaOptionsType = { containScroll: "keepSnaps", dragFree: true };
|
|
@@ -564,7 +600,7 @@ function initEmblaRoot(emblaNode: Element): void {
|
|
|
564
600
|
bindDragClickSuppression(
|
|
565
601
|
emblathumbsNode,
|
|
566
602
|
emblaApiThumb,
|
|
567
|
-
'[data-slot~="
|
|
603
|
+
'[data-carousel-slot~="slide"]',
|
|
568
604
|
{},
|
|
569
605
|
signal,
|
|
570
606
|
);
|
|
@@ -575,7 +611,7 @@ function initEmblaRoot(emblaNode: Element): void {
|
|
|
575
611
|
/**
|
|
576
612
|
* @description Initializes all Embla carousels within a scope.
|
|
577
613
|
*
|
|
578
|
-
* Discovers carousel elements via `:is(ui-carousel,
|
|
614
|
+
* Discovers carousel elements via `:is(ui-carousel, [data-ui~="carousel"])` and configures them
|
|
579
615
|
* based on their data attributes. Roots managed by the `<ui-carousel>` web
|
|
580
616
|
* component are skipped: they initialize themselves via `connectedCallback()`.
|
|
581
617
|
*
|
|
@@ -583,7 +619,7 @@ function initEmblaRoot(emblaNode: Element): void {
|
|
|
583
619
|
*/
|
|
584
620
|
function initEmblaCarousels(scope?: Document | Element): void {
|
|
585
621
|
const root = scope || document;
|
|
586
|
-
const emblaRoots = root.querySelectorAll(
|
|
622
|
+
const emblaRoots = root.querySelectorAll(':is(ui-carousel, [data-ui~="carousel"])');
|
|
587
623
|
|
|
588
624
|
emblaRoots.forEach(function (emblaNode) {
|
|
589
625
|
// <ui-carousel> elements own their lifecycle (init on connect, destroy
|
|
@@ -598,7 +634,7 @@ function initEmblaCarousels(scope?: Document | Element): void {
|
|
|
598
634
|
|
|
599
635
|
/**
|
|
600
636
|
* @description Reacts to dialogs opening (via `zazz:dialog-open` from
|
|
601
|
-
* base/dialog-lifecycle.ts
|
|
637
|
+
* base/dialog-lifecycle.ts) with the carousel-domain work:
|
|
602
638
|
* initializes class-form roots that deferred while the dialog was
|
|
603
639
|
* `display: none`, applies a stored `data-carousel-start-index`, and focuses
|
|
604
640
|
* the viewport for keyboard navigation.
|
|
@@ -612,7 +648,7 @@ function initDialogOpenSubscription(): void {
|
|
|
612
648
|
const dialog = e.target;
|
|
613
649
|
initEmblaCarousels(dialog);
|
|
614
650
|
|
|
615
|
-
const roots = dialog.querySelectorAll(
|
|
651
|
+
const roots = dialog.querySelectorAll(':is(ui-carousel, [data-ui~="carousel"])');
|
|
616
652
|
roots.forEach(function (root) {
|
|
617
653
|
const startIndex = root.getAttribute("data-carousel-start-index");
|
|
618
654
|
if (startIndex != null && root._emblaApi) {
|
|
@@ -620,7 +656,7 @@ function initDialogOpenSubscription(): void {
|
|
|
620
656
|
root.removeAttribute("data-carousel-start-index");
|
|
621
657
|
}
|
|
622
658
|
|
|
623
|
-
const viewport = root.querySelector('[data-slot~="
|
|
659
|
+
const viewport = root.querySelector('[data-carousel-slot~="viewport"]');
|
|
624
660
|
if (viewport instanceof HTMLElement) {
|
|
625
661
|
viewport.focus({ preventScroll: true });
|
|
626
662
|
}
|
|
@@ -643,7 +679,7 @@ function getActiveEmblaRoot(): (Element & { _emblaApi: EmblaCarouselType }) | nu
|
|
|
643
679
|
const openDialog = document.querySelector("dialog[open]");
|
|
644
680
|
if (openDialog) {
|
|
645
681
|
const dialogRoot = openDialog.querySelector(
|
|
646
|
-
|
|
682
|
+
':is(ui-carousel, [data-ui~="carousel"])[data-carousel-init]',
|
|
647
683
|
);
|
|
648
684
|
if (dialogRoot?._emblaApi && dialogRoot.getAttribute("data-carousel-keyboard") !== "false") {
|
|
649
685
|
return dialogRoot as Element & { _emblaApi: EmblaCarouselType };
|
|
@@ -651,7 +687,7 @@ function getActiveEmblaRoot(): (Element & { _emblaApi: EmblaCarouselType }) | nu
|
|
|
651
687
|
}
|
|
652
688
|
|
|
653
689
|
const focusedRoot = document.activeElement?.closest(
|
|
654
|
-
|
|
690
|
+
':is(ui-carousel, [data-ui~="carousel"])[data-carousel-init]',
|
|
655
691
|
);
|
|
656
692
|
if (focusedRoot?._emblaApi && focusedRoot.getAttribute("data-carousel-keyboard") !== "false") {
|
|
657
693
|
return focusedRoot as Element & { _emblaApi: EmblaCarouselType };
|
|
@@ -719,7 +755,7 @@ const EmblaInit = {
|
|
|
719
755
|
* @description Stores or applies a start slide index from `[data-carousel-start]` triggers.
|
|
720
756
|
*
|
|
721
757
|
* Clicking an element with `data-carousel-start="N"` stores that index on the target
|
|
722
|
-
* carousel (found via `commandfor` → dialog → `:is(ui-carousel,
|
|
758
|
+
* carousel (found via `commandfor` → dialog → `:is(ui-carousel, [data-ui~="carousel"])`). The dialog
|
|
723
759
|
* open observer scrolls to it on open.
|
|
724
760
|
*/
|
|
725
761
|
function initEmblaStartLinks(): void {
|
|
@@ -727,13 +763,13 @@ function initEmblaStartLinks(): void {
|
|
|
727
763
|
if (!(e.target instanceof HTMLElement)) return;
|
|
728
764
|
|
|
729
765
|
const trigger = e.target.closest(
|
|
730
|
-
"[data-carousel-start], [data-slot~='
|
|
766
|
+
"[data-carousel-start], [data-carousel-slot~='slide'][commandfor]",
|
|
731
767
|
);
|
|
732
768
|
if (!trigger) return;
|
|
733
769
|
|
|
734
770
|
let index = trigger.getAttribute("data-carousel-start");
|
|
735
771
|
if (index == null && trigger.hasAttribute("commandfor")) {
|
|
736
|
-
const emblaRoot = trigger.closest(
|
|
772
|
+
const emblaRoot = trigger.closest(':is(ui-carousel, [data-ui~="carousel"])');
|
|
737
773
|
if (emblaRoot?._emblaApi) {
|
|
738
774
|
index = String(emblaRoot._emblaApi.selectedScrollSnap());
|
|
739
775
|
}
|
|
@@ -745,7 +781,7 @@ function initEmblaStartLinks(): void {
|
|
|
745
781
|
const dialog = document.getElementById(dialogId);
|
|
746
782
|
if (!dialog) return;
|
|
747
783
|
|
|
748
|
-
const root = dialog.querySelector(
|
|
784
|
+
const root = dialog.querySelector(':is(ui-carousel, [data-ui~="carousel"])');
|
|
749
785
|
if (!root) return;
|
|
750
786
|
|
|
751
787
|
if (root._emblaApi) {
|
|
@@ -758,7 +794,7 @@ function initEmblaStartLinks(): void {
|
|
|
758
794
|
|
|
759
795
|
// Auto-initialize when DOM is ready (only in browser environment)
|
|
760
796
|
if (typeof window !== "undefined" && typeof document !== "undefined") {
|
|
761
|
-
// After
|
|
797
|
+
// After an in-page navigation swap, initialize class-form carousels in the new content
|
|
762
798
|
// (<ui-carousel> elements ride the swap via their own lifecycle; init() skips
|
|
763
799
|
// already-initialized roots and closed dialogs).
|
|
764
800
|
registerRefresh((scope) => initEmblaCarousels(scope));
|
|
@@ -781,11 +817,9 @@ if (typeof window !== "undefined" && typeof document !== "undefined") {
|
|
|
781
817
|
}
|
|
782
818
|
|
|
783
819
|
// Attach to window for the documented public API (`window.EmblaInit`), and export
|
|
784
|
-
// for module consumers (carousel.js / navigation.js import it via the
|
|
820
|
+
// for module consumers (carousel.js / navigation.js import it via the index.js entry).
|
|
785
821
|
if (typeof window !== "undefined") {
|
|
786
822
|
window.EmblaInit = EmblaInit;
|
|
787
823
|
}
|
|
788
824
|
|
|
789
|
-
// setActiveIndex and parseCarouselPlugins are exported for unit tests only;
|
|
790
|
-
// not part of the public API.
|
|
791
825
|
export { EmblaInit, setActiveIndex, parseCarouselPlugins };
|
package/src/base/hotkeys.d.ts
CHANGED
|
@@ -5,11 +5,6 @@
|
|
|
5
5
|
* Control elsewhere. Bare-key hotkeys (no modifier) are suppressed while the
|
|
6
6
|
* user types in an editable context so accelerators never eat input.
|
|
7
7
|
*
|
|
8
|
-
* This file is a deliberate seam (like `signals.ts`): the kit's needs are a
|
|
9
|
-
* parser, a matcher, and an editable-target guard, so a dependency was not
|
|
10
|
-
* worth the pinning contract; swap the internals here if a library ever
|
|
11
|
-
* earns its keep.
|
|
12
|
-
*
|
|
13
8
|
* Spec grammar: `+`-separated tokens, case-insensitive. Modifiers: `mod`,
|
|
14
9
|
* `ctrl`/`control`, `alt`/`option`, `shift`, `meta`/`cmd`/`super`. The final
|
|
15
10
|
* token is the key, compared against `KeyboardEvent.key` (single letters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotkeys.d.ts","sourceRoot":"","sources":["hotkeys.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"hotkeys.d.ts","sourceRoot":"","sources":["hotkeys.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAIH,iEAAiE;AACjE,UAAU,MAAM;IACd,sEAAsE;IACtE,GAAG,EAAE,MAAM,CAAC;IACZ,wBAAwB;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,2BAA2B;IAC3B,GAAG,EAAE,OAAO,CAAC;IACb,sBAAsB;IACtB,KAAK,EAAE,OAAO,CAAC;IACf,6BAA6B;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,iFAAiF;IACjF,GAAG,EAAE,OAAO,CAAC;CACd;AAID;;;;;GAKG;AACH,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA6ChD;AAgBD;;;;;;;;;GASG;AACH,iBAAS,aAAa,CACpB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,OAA2B,GACjC,OAAO,CAUT;AAED;;;;;;GAMG;AACH,iBAAS,gBAAgB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAQ3D;AAED;;;;;;GAMG;AACH,iBAAS,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1C;AAED;;;;;;;;;GASG;AACH,iBAAS,UAAU,CACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,EACxC,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAO,GACrC,OAAO,CAgBT;AAED,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;AAC/E,YAAY,EAAE,MAAM,EAAE,CAAC"}
|
package/src/base/hotkeys.ts
CHANGED
|
@@ -7,11 +7,6 @@
|
|
|
7
7
|
* Control elsewhere. Bare-key hotkeys (no modifier) are suppressed while the
|
|
8
8
|
* user types in an editable context so accelerators never eat input.
|
|
9
9
|
*
|
|
10
|
-
* This file is a deliberate seam (like `signals.ts`): the kit's needs are a
|
|
11
|
-
* parser, a matcher, and an editable-target guard, so a dependency was not
|
|
12
|
-
* worth the pinning contract; swap the internals here if a library ever
|
|
13
|
-
* earns its keep.
|
|
14
|
-
*
|
|
15
10
|
* Spec grammar: `+`-separated tokens, case-insensitive. Modifiers: `mod`,
|
|
16
11
|
* `ctrl`/`control`, `alt`/`option`, `shift`, `meta`/`cmd`/`super`. The final
|
|
17
12
|
* token is the key, compared against `KeyboardEvent.key` (single letters
|
package/src/base/navigation.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @description Replaces the current body with `next`, carrying over every
|
|
3
|
+
* `data-ui-persist` element whose id appears in both, scroll offsets included;
|
|
4
|
+
* links in a carried element take `aria-current` from the destination. A
|
|
5
|
+
* `data-ui-persist-scroll` element comes from `next` and takes the scroll
|
|
6
|
+
* offset of the current element with the same id. Returns the new body.
|
|
7
|
+
*
|
|
8
|
+
* @param next - The destination's parsed `<body>`.
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
declare function swapBody(next: HTMLElement): HTMLElement;
|
|
12
|
+
export { swapBody };
|
|
2
13
|
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["navigation.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["navigation.ts"],"names":[],"mappings":"AAqFA;;;;;;;;;GASG;AACH,iBAAS,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAgDhD;AA2ID,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|