screenreader-speech-capture 0.9.0 → 0.10.0
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 +17 -0
- package/dist/cli.mjs +1 -1
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/{0.CnPCLsGJ.css → 0.DH3e8XLu.css} +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/0.DH3e8XLu.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/0.DH3e8XLu.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.br +3 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/4.DIE1qdmp.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/4.DIE1qdmp.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/4.DIE1qdmp.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/5.DCMlxwLh.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/5.DCMlxwLh.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/5.DCMlxwLh.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/Pane.Co7gxzxw.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/Pane.Co7gxzxw.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/Pane.Co7gxzxw.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{Cba3ZwaX.js → 4R6qUa-I.js} +12 -13
- package/dist/ui/client/ui/_app/immutable/chunks/4R6qUa-I.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/4R6qUa-I.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BC9D66S_.js +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BC9D66S_.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BC9D66S_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BCiTXg3M.js +138 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BCiTXg3M.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BCiTXg3M.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BGgW64O2.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BGgW64O2.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BGgW64O2.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bvlvl8SZ.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bvlvl8SZ.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bvlvl8SZ.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/ByQTEKOy.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/ByQTEKOy.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/ByQTEKOy.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C-UVUBR9.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C-UVUBR9.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C-UVUBR9.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C1Z3Vlq6.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C1Z3Vlq6.js.br +11 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C1Z3Vlq6.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CSj31z2g.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CSj31z2g.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CSj31z2g.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D7Lf2nU5.js +48 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D7Lf2nU5.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D7Lf2nU5.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D8AQra8V.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D8AQra8V.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D8AQra8V.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DLBNPxq0.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DLBNPxq0.js.br +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DLBNPxq0.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DMXmTTni.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DMXmTTni.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DMXmTTni.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DVjfBgOA.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DVjfBgOA.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DVjfBgOA.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/EBfbaSFC.js +40 -0
- package/dist/ui/client/ui/_app/immutable/chunks/EBfbaSFC.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/EBfbaSFC.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/HjKxdHgL.js +4 -0
- package/dist/ui/client/ui/_app/immutable/chunks/HjKxdHgL.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/HjKxdHgL.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/y62iQtQV.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/y62iQtQV.js.br +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/y62iQtQV.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.BRCyy_aP.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.BRCyy_aP.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.BRCyy_aP.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.ujo8oI9U.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.ujo8oI9U.js.br +5 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.ujo8oI9U.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CYE8I_uA.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CYE8I_uA.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CYE8I_uA.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.DTsysZRk.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.DTsysZRk.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.DTsysZRk.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.hev1nfuM.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.hev1nfuM.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.hev1nfuM.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CApflji6.js +5 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CApflji6.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CApflji6.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.BkefkGQL.js +160 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.BkefkGQL.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.BkefkGQL.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.CDYh05RH.js +6 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.CDYh05RH.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.CDYh05RH.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.DwISzDQO.js +6 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.DwISzDQO.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.DwISzDQO.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -1
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +193 -10
- package/dist/ui/server/_app/immutable/assets/ExternalLink.CYXazpKA.css +1 -0
- package/dist/ui/server/_app/immutable/assets/Pane.Co7gxzxw.css +1 -0
- package/dist/ui/server/_app/immutable/assets/{_layout.CnPCLsGJ.css → _layout.DH3e8XLu.css} +1 -1
- package/dist/ui/server/_app/immutable/assets/_layout.DSVNnDlO.css +1 -0
- package/dist/ui/server/_app/immutable/assets/_page.C0Nhvs_m.css +1 -0
- package/dist/ui/server/_app/immutable/assets/_page.DCMlxwLh.css +1 -0
- package/dist/ui/server/_app/immutable/assets/_page.DIE1qdmp.css +1 -0
- package/dist/ui/server/chunks/ExternalLink.js +12 -0
- package/dist/ui/server/chunks/ExternalLink.js.map +1 -0
- package/dist/ui/server/chunks/Pane.js +13 -0
- package/dist/ui/server/chunks/Pane.js.map +1 -0
- package/dist/ui/server/chunks/composition.js +462 -120
- package/dist/ui/server/chunks/composition.js.map +1 -1
- package/dist/ui/server/chunks/config-state.js +21 -0
- package/dist/ui/server/chunks/config-state.js.map +1 -0
- package/dist/ui/server/chunks/dialog.js +592 -0
- package/dist/ui/server/chunks/dialog.js.map +1 -0
- package/dist/ui/server/chunks/filled-button.js +116 -0
- package/dist/ui/server/chunks/filled-button.js.map +1 -0
- package/dist/ui/server/chunks/icon-button.js +2 -46
- package/dist/ui/server/chunks/icon-button.js.map +1 -1
- package/dist/ui/server/chunks/icon.js +49 -0
- package/dist/ui/server/chunks/icon.js.map +1 -0
- package/dist/ui/server/chunks/index-server.js +5 -1
- package/dist/ui/server/chunks/index-server.js.map +1 -0
- package/dist/ui/server/chunks/instance.js +5 -5
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/chunks/navigation.js +9 -13
- package/dist/ui/server/chunks/navigation.js.map +1 -1
- package/dist/ui/server/chunks/navigation2.js +15 -0
- package/dist/ui/server/chunks/navigation2.js.map +1 -0
- package/dist/ui/server/chunks/outlined-text-field.js +11 -398
- package/dist/ui/server/chunks/outlined-text-field.js.map +1 -1
- package/dist/ui/server/chunks/paths.js +2 -0
- package/dist/ui/server/chunks/redispatch-event.js +91 -0
- package/dist/ui/server/chunks/redispatch-event.js.map +1 -0
- package/dist/ui/server/chunks/server2.js +11 -1
- package/dist/ui/server/chunks/server2.js.map +1 -1
- package/dist/ui/server/chunks/src.js +112 -3
- package/dist/ui/server/chunks/src.js.map +1 -1
- package/dist/ui/server/chunks/state.js +1 -1
- package/dist/ui/server/chunks/static-html.js +38 -0
- package/dist/ui/server/chunks/static-html.js.map +1 -0
- package/dist/ui/server/chunks/text-button.js +307 -0
- package/dist/ui/server/chunks/text-button.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +4 -17
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +14 -0
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +1 -1
- package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +1 -1
- package/dist/ui/server/entries/fallbacks/error.svelte.js +1 -1
- package/dist/ui/server/entries/hooks.server.js +4 -1
- package/dist/ui/server/entries/hooks.server.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +5 -10
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.svelte.js +15 -597
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/settings/_page.server.ts.js +12 -0
- package/dist/ui/server/entries/pages/settings/_page.server.ts.js.map +1 -0
- package/dist/ui/server/entries/pages/settings/_page.svelte.js +3470 -70
- package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/setup/_layout.svelte.js +51 -0
- package/dist/ui/server/entries/pages/setup/_layout.svelte.js.map +1 -0
- package/dist/ui/server/entries/pages/setup/_page.svelte.js +225 -3
- package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/setup/instructions/_page.server.ts.js +12 -0
- package/dist/ui/server/entries/pages/setup/instructions/_page.server.ts.js.map +1 -0
- package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +271 -0
- package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -0
- package/dist/ui/server/manifest-full.js +21 -5
- package/dist/ui/server/manifest.js +21 -5
- package/dist/ui/server/nodes/0.js +2 -2
- package/dist/ui/server/nodes/1.js +1 -1
- package/dist/ui/server/nodes/2.js +4 -6
- package/dist/ui/server/nodes/3.js +6 -4
- package/dist/ui/server/nodes/4.js +6 -4
- package/dist/ui/server/nodes/5.js +8 -0
- package/dist/ui/server/nodes/6.js +10 -0
- package/dist/ui/server/server.js +21 -5
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/0.CnPCLsGJ.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/0.CnPCLsGJ.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css +0 -1
- package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/0YgL1EU2.js +0 -179
- package/dist/ui/client/ui/_app/immutable/chunks/0YgL1EU2.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/0YgL1EU2.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BYvlzyV8.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/BYvlzyV8.js.br +0 -2
- package/dist/ui/client/ui/_app/immutable/chunks/BYvlzyV8.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BfvDkxmG.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/BfvDkxmG.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BfvDkxmG.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cba3ZwaX.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cba3ZwaX.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DErxe_FC.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/DErxe_FC.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DErxe_FC.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dqufijaz.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/Dqufijaz.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dqufijaz.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WpCriteK.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/WpCriteK.js.br +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/WpCriteK.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/wbLSPbHY.js +0 -4
- package/dist/ui/client/ui/_app/immutable/chunks/wbLSPbHY.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/wbLSPbHY.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.B6hhDf4F.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.B6hhDf4F.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.B6hhDf4F.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.Dluk7nQO.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/start.Dluk7nQO.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.Dluk7nQO.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.D-lhv0Us.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.D-lhv0Us.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.D-lhv0Us.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Cs4GAsCO.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/1.Cs4GAsCO.js.br +0 -2
- package/dist/ui/client/ui/_app/immutable/nodes/1.Cs4GAsCO.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmuzlN_T.js +0 -52
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmuzlN_T.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmuzlN_T.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DMXXeBbC.js +0 -5
- package/dist/ui/client/ui/_app/immutable/nodes/3.DMXXeBbC.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DMXXeBbC.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.CMHCNMDn.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/4.CMHCNMDn.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.CMHCNMDn.js.gz +0 -0
- package/dist/ui/server/_app/immutable/assets/_page.CK2Biket.css +0 -1
- /package/dist/ui/client/ui/_app/immutable/assets/{2.ChCvyBVk.css → 3.ChCvyBVk.css} +0 -0
- /package/dist/ui/client/ui/_app/immutable/assets/{2.ChCvyBVk.css.br → 3.ChCvyBVk.css.br} +0 -0
- /package/dist/ui/client/ui/_app/immutable/assets/{2.ChCvyBVk.css.gz → 3.ChCvyBVk.css.gz} +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { mt as resolve } from "../../chunks/internal.js";
|
|
2
|
-
import { d as
|
|
2
|
+
import { d as attr, f as clsx, h as escape_html, i as ensure_array_like, m as run, n as attr_style, r as derived, t as attr_class } from "../../chunks/server2.js";
|
|
3
3
|
import "../../chunks/index-server.js";
|
|
4
|
-
import { n as goto } from "../../chunks/
|
|
5
|
-
import
|
|
4
|
+
import { n as goto } from "../../chunks/navigation2.js";
|
|
5
|
+
import "../../chunks/paths.js";
|
|
6
6
|
import { t as page } from "../../chunks/state.js";
|
|
7
|
+
import "../../chunks/icon.js";
|
|
8
|
+
import { G as t, I as T, K as __decorate, W as i, c as canClearSpeech, d as logHeading, l as canDeleteSession, s as canAddMarker, t as appStores, u as formatReceivedTime } from "../../chunks/composition.js";
|
|
9
|
+
import { n as styles$1 } from "../../chunks/redispatch-event.js";
|
|
10
|
+
import { n as Button, t as styles$2 } from "../../chunks/text-button.js";
|
|
7
11
|
import "../../chunks/icon-button.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
12
|
+
import "../../chunks/dialog.js";
|
|
13
|
+
import "../../chunks/outlined-text-field.js";
|
|
14
|
+
import { g as API_LIMITS } from "../../chunks/src.js";
|
|
10
15
|
import { a as selectedScope, i as scopeAfterDelete, n as describeSession, t as OUTSIDE_SESSIONS } from "../../chunks/sessions.js";
|
|
11
16
|
// src/lib/components/LoopbackBanner/LoopbackBanner.svelte
|
|
12
17
|
function LoopbackBanner($$renderer) {
|
|
@@ -34,9 +39,9 @@ var FilledTonalButton = class extends Button {
|
|
|
34
39
|
* Copyright 2026 Google LLC
|
|
35
40
|
* SPDX-License-Identifier: Apache-2.0
|
|
36
41
|
*/
|
|
37
|
-
var styles
|
|
42
|
+
var styles = i`:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)}
|
|
38
43
|
`;
|
|
39
|
-
styles
|
|
44
|
+
styles.styleSheet;
|
|
40
45
|
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/filled-tonal-button.js
|
|
41
46
|
/**
|
|
42
47
|
* @license
|
|
@@ -66,598 +71,11 @@ styles$2.styleSheet;
|
|
|
66
71
|
*/
|
|
67
72
|
var MdFilledTonalButton = class MdFilledTonalButton extends FilledTonalButton {};
|
|
68
73
|
MdFilledTonalButton.styles = [
|
|
69
|
-
styles$
|
|
70
|
-
styles$
|
|
71
|
-
styles
|
|
74
|
+
styles$2,
|
|
75
|
+
styles$1,
|
|
76
|
+
styles
|
|
72
77
|
];
|
|
73
78
|
MdFilledTonalButton = __decorate([t("md-filled-tonal-button")], MdFilledTonalButton);
|
|
74
|
-
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/internal/divider.js
|
|
75
|
-
/**
|
|
76
|
-
* @license
|
|
77
|
-
* Copyright 2023 Google LLC
|
|
78
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* A divider component.
|
|
82
|
-
*/
|
|
83
|
-
var Divider = class extends i$1 {
|
|
84
|
-
constructor() {
|
|
85
|
-
super(...arguments);
|
|
86
|
-
/**
|
|
87
|
-
* Indents the divider with equal padding on both sides.
|
|
88
|
-
*/
|
|
89
|
-
this.inset = false;
|
|
90
|
-
/**
|
|
91
|
-
* Indents the divider with padding on the leading side.
|
|
92
|
-
*/
|
|
93
|
-
this.insetStart = false;
|
|
94
|
-
/**
|
|
95
|
-
* Indents the divider with padding on the trailing side.
|
|
96
|
-
*/
|
|
97
|
-
this.insetEnd = false;
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
__decorate([n({
|
|
101
|
-
type: Boolean,
|
|
102
|
-
reflect: true
|
|
103
|
-
})], Divider.prototype, "inset", void 0);
|
|
104
|
-
__decorate([n({
|
|
105
|
-
type: Boolean,
|
|
106
|
-
reflect: true,
|
|
107
|
-
attribute: "inset-start"
|
|
108
|
-
})], Divider.prototype, "insetStart", void 0);
|
|
109
|
-
__decorate([n({
|
|
110
|
-
type: Boolean,
|
|
111
|
-
reflect: true,
|
|
112
|
-
attribute: "inset-end"
|
|
113
|
-
})], Divider.prototype, "insetEnd", void 0);
|
|
114
|
-
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/internal/divider-styles.cssresult.js
|
|
115
|
-
/**
|
|
116
|
-
* @license
|
|
117
|
-
* Copyright 2026 Google LLC
|
|
118
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
119
|
-
*/
|
|
120
|
-
var styles$1 = i`:host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}
|
|
121
|
-
`;
|
|
122
|
-
styles$1.styleSheet;
|
|
123
|
-
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/divider.js
|
|
124
|
-
/**
|
|
125
|
-
* @license
|
|
126
|
-
* Copyright 2023 Google LLC
|
|
127
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
128
|
-
*/
|
|
129
|
-
/**
|
|
130
|
-
* @summary A divider is a thin line that groups content in lists and
|
|
131
|
-
* containers.
|
|
132
|
-
*
|
|
133
|
-
* @description Dividers can reinforce tapability, such as when used to separate
|
|
134
|
-
* list items or define tappable regions in an accordion.
|
|
135
|
-
*
|
|
136
|
-
* @final
|
|
137
|
-
* @suppress {visibility}
|
|
138
|
-
*/
|
|
139
|
-
var MdDivider = class MdDivider extends Divider {};
|
|
140
|
-
MdDivider.styles = [styles$1];
|
|
141
|
-
MdDivider = __decorate([t("md-divider")], MdDivider);
|
|
142
|
-
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/animations.js
|
|
143
|
-
/**
|
|
144
|
-
* @license
|
|
145
|
-
* Copyright 2023 Google LLC
|
|
146
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
147
|
-
*/
|
|
148
|
-
/**
|
|
149
|
-
* The default dialog open animation.
|
|
150
|
-
*/
|
|
151
|
-
var DIALOG_DEFAULT_OPEN_ANIMATION = {
|
|
152
|
-
dialog: [[[{ "transform": "translateY(-50px)" }, { "transform": "translateY(0)" }], {
|
|
153
|
-
duration: 500,
|
|
154
|
-
easing: EASING.EMPHASIZED
|
|
155
|
-
}]],
|
|
156
|
-
scrim: [[[{ "opacity": 0 }, { "opacity": .32 }], {
|
|
157
|
-
duration: 500,
|
|
158
|
-
easing: "linear"
|
|
159
|
-
}]],
|
|
160
|
-
container: [[[{ "opacity": 0 }, { "opacity": 1 }], {
|
|
161
|
-
duration: 50,
|
|
162
|
-
easing: "linear",
|
|
163
|
-
pseudoElement: "::before"
|
|
164
|
-
}], [[{ "height": "35%" }, { "height": "100%" }], {
|
|
165
|
-
duration: 500,
|
|
166
|
-
easing: EASING.EMPHASIZED,
|
|
167
|
-
pseudoElement: "::before"
|
|
168
|
-
}]],
|
|
169
|
-
headline: [[[
|
|
170
|
-
{ "opacity": 0 },
|
|
171
|
-
{
|
|
172
|
-
"opacity": 0,
|
|
173
|
-
offset: .2
|
|
174
|
-
},
|
|
175
|
-
{ "opacity": 1 }
|
|
176
|
-
], {
|
|
177
|
-
duration: 250,
|
|
178
|
-
easing: "linear",
|
|
179
|
-
fill: "forwards"
|
|
180
|
-
}]],
|
|
181
|
-
content: [[[
|
|
182
|
-
{ "opacity": 0 },
|
|
183
|
-
{
|
|
184
|
-
"opacity": 0,
|
|
185
|
-
offset: .2
|
|
186
|
-
},
|
|
187
|
-
{ "opacity": 1 }
|
|
188
|
-
], {
|
|
189
|
-
duration: 250,
|
|
190
|
-
easing: "linear",
|
|
191
|
-
fill: "forwards"
|
|
192
|
-
}]],
|
|
193
|
-
actions: [[[
|
|
194
|
-
{ "opacity": 0 },
|
|
195
|
-
{
|
|
196
|
-
"opacity": 0,
|
|
197
|
-
offset: .5
|
|
198
|
-
},
|
|
199
|
-
{ "opacity": 1 }
|
|
200
|
-
], {
|
|
201
|
-
duration: 300,
|
|
202
|
-
easing: "linear",
|
|
203
|
-
fill: "forwards"
|
|
204
|
-
}]]
|
|
205
|
-
};
|
|
206
|
-
/**
|
|
207
|
-
* The default dialog close animation.
|
|
208
|
-
*/
|
|
209
|
-
var DIALOG_DEFAULT_CLOSE_ANIMATION = {
|
|
210
|
-
dialog: [[[{ "transform": "translateY(0)" }, { "transform": "translateY(-50px)" }], {
|
|
211
|
-
duration: 150,
|
|
212
|
-
easing: EASING.EMPHASIZED_ACCELERATE
|
|
213
|
-
}]],
|
|
214
|
-
scrim: [[[{ "opacity": .32 }, { "opacity": 0 }], {
|
|
215
|
-
duration: 150,
|
|
216
|
-
easing: "linear"
|
|
217
|
-
}]],
|
|
218
|
-
container: [[[{ "height": "100%" }, { "height": "35%" }], {
|
|
219
|
-
duration: 150,
|
|
220
|
-
easing: EASING.EMPHASIZED_ACCELERATE,
|
|
221
|
-
pseudoElement: "::before"
|
|
222
|
-
}], [[{ "opacity": "1" }, { "opacity": "0" }], {
|
|
223
|
-
delay: 100,
|
|
224
|
-
duration: 50,
|
|
225
|
-
easing: "linear",
|
|
226
|
-
pseudoElement: "::before"
|
|
227
|
-
}]],
|
|
228
|
-
headline: [[[{ "opacity": 1 }, { "opacity": 0 }], {
|
|
229
|
-
duration: 100,
|
|
230
|
-
easing: "linear",
|
|
231
|
-
fill: "forwards"
|
|
232
|
-
}]],
|
|
233
|
-
content: [[[{ "opacity": 1 }, { "opacity": 0 }], {
|
|
234
|
-
duration: 100,
|
|
235
|
-
easing: "linear",
|
|
236
|
-
fill: "forwards"
|
|
237
|
-
}]],
|
|
238
|
-
actions: [[[{ "opacity": 1 }, { "opacity": 0 }], {
|
|
239
|
-
duration: 100,
|
|
240
|
-
easing: "linear",
|
|
241
|
-
fill: "forwards"
|
|
242
|
-
}]]
|
|
243
|
-
};
|
|
244
|
-
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/dialog.js
|
|
245
|
-
/**
|
|
246
|
-
* @license
|
|
247
|
-
* Copyright 2023 Google LLC
|
|
248
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
249
|
-
*/
|
|
250
|
-
var dialogBaseClass = mixinDelegatesAria(i$1);
|
|
251
|
-
/**
|
|
252
|
-
* A dialog component.
|
|
253
|
-
*
|
|
254
|
-
* @fires open {Event} Dispatched when the dialog is opening before any animations.
|
|
255
|
-
* @fires opened {Event} Dispatched when the dialog has opened after any animations.
|
|
256
|
-
* @fires close {Event} Dispatched when the dialog is closing before any animations.
|
|
257
|
-
* @fires closed {Event} Dispatched when the dialog has closed after any animations.
|
|
258
|
-
* @fires cancel {Event} Dispatched when the dialog has been canceled by clicking
|
|
259
|
-
* on the scrim or pressing Escape.
|
|
260
|
-
*/
|
|
261
|
-
var Dialog = class extends dialogBaseClass {
|
|
262
|
-
/**
|
|
263
|
-
* Opens the dialog when set to `true` and closes it when set to `false`.
|
|
264
|
-
*/
|
|
265
|
-
get open() {
|
|
266
|
-
return this.isOpen;
|
|
267
|
-
}
|
|
268
|
-
set open(open) {
|
|
269
|
-
if (open === this.isOpen) return;
|
|
270
|
-
this.isOpen = open;
|
|
271
|
-
if (open) {
|
|
272
|
-
this.setAttribute("open", "");
|
|
273
|
-
this.show();
|
|
274
|
-
} else {
|
|
275
|
-
this.removeAttribute("open");
|
|
276
|
-
this.close();
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
constructor() {
|
|
280
|
-
super();
|
|
281
|
-
/**
|
|
282
|
-
* Skips the opening and closing animations.
|
|
283
|
-
*/
|
|
284
|
-
this.quick = false;
|
|
285
|
-
/**
|
|
286
|
-
* Gets or sets the dialog's return value, usually to indicate which button
|
|
287
|
-
* a user pressed to close it.
|
|
288
|
-
*
|
|
289
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue
|
|
290
|
-
*/
|
|
291
|
-
this.returnValue = "";
|
|
292
|
-
/**
|
|
293
|
-
* Disables focus trapping, which by default keeps keyboard Tab navigation
|
|
294
|
-
* within the dialog.
|
|
295
|
-
*
|
|
296
|
-
* When disabled, after focusing the last element of a dialog, pressing Tab
|
|
297
|
-
* again will release focus from the window back to the browser (such as the
|
|
298
|
-
* URL bar).
|
|
299
|
-
*
|
|
300
|
-
* Focus trapping is recommended for accessibility, and should not typically
|
|
301
|
-
* be disabled. Only turn this off if the use case of a dialog is more
|
|
302
|
-
* accessible without focus trapping.
|
|
303
|
-
*/
|
|
304
|
-
this.noFocusTrap = false;
|
|
305
|
-
/**
|
|
306
|
-
* Gets the opening animation for a dialog. Set to a new function to customize
|
|
307
|
-
* the animation.
|
|
308
|
-
*/
|
|
309
|
-
this.getOpenAnimation = () => DIALOG_DEFAULT_OPEN_ANIMATION;
|
|
310
|
-
/**
|
|
311
|
-
* Gets the closing animation for a dialog. Set to a new function to customize
|
|
312
|
-
* the animation.
|
|
313
|
-
*/
|
|
314
|
-
this.getCloseAnimation = () => DIALOG_DEFAULT_CLOSE_ANIMATION;
|
|
315
|
-
this.isOpen = false;
|
|
316
|
-
this.isOpening = false;
|
|
317
|
-
this.isConnectedPromise = this.getIsConnectedPromise();
|
|
318
|
-
this.isAtScrollTop = false;
|
|
319
|
-
this.isAtScrollBottom = false;
|
|
320
|
-
this.nextClickIsFromContent = false;
|
|
321
|
-
this.hasHeadline = false;
|
|
322
|
-
this.hasActions = false;
|
|
323
|
-
this.hasIcon = false;
|
|
324
|
-
this.escapePressedWithoutCancel = false;
|
|
325
|
-
this.treewalker = null;
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Opens the dialog and fires a cancelable `open` event. After a dialog's
|
|
329
|
-
* animation, an `opened` event is fired.
|
|
330
|
-
*
|
|
331
|
-
* Add an `autofocus` attribute to a child of the dialog that should
|
|
332
|
-
* receive focus after opening.
|
|
333
|
-
*
|
|
334
|
-
* @return A Promise that resolves after the animation is finished and the
|
|
335
|
-
* `opened` event was fired.
|
|
336
|
-
*/
|
|
337
|
-
async show() {
|
|
338
|
-
this.isOpening = true;
|
|
339
|
-
await this.isConnectedPromise;
|
|
340
|
-
await this.updateComplete;
|
|
341
|
-
const dialog = this.dialog;
|
|
342
|
-
if (dialog.open || !this.isOpening) {
|
|
343
|
-
this.isOpening = false;
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
|
-
if (!this.dispatchEvent(new Event("open", { cancelable: true }))) {
|
|
347
|
-
this.open = false;
|
|
348
|
-
this.isOpening = false;
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
|
-
dialog.showModal();
|
|
352
|
-
this.open = true;
|
|
353
|
-
if (this.scroller) this.scroller.scrollTop = 0;
|
|
354
|
-
this.querySelector("[autofocus]")?.focus();
|
|
355
|
-
await this.animateDialog(this.getOpenAnimation());
|
|
356
|
-
this.dispatchEvent(new Event("opened"));
|
|
357
|
-
this.isOpening = false;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Closes the dialog and fires a cancelable `close` event. After a dialog's
|
|
361
|
-
* animation, a `closed` event is fired.
|
|
362
|
-
*
|
|
363
|
-
* @param returnValue A return value usually indicating which button was used
|
|
364
|
-
* to close a dialog. If a dialog is canceled by clicking the scrim or
|
|
365
|
-
* pressing Escape, it will not change the return value after closing.
|
|
366
|
-
* @return A Promise that resolves after the animation is finished and the
|
|
367
|
-
* `closed` event was fired.
|
|
368
|
-
*/
|
|
369
|
-
async close(returnValue = this.returnValue) {
|
|
370
|
-
this.isOpening = false;
|
|
371
|
-
if (!this.isConnected) {
|
|
372
|
-
this.open = false;
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
await this.updateComplete;
|
|
376
|
-
const dialog = this.dialog;
|
|
377
|
-
if (!dialog.open || this.isOpening) {
|
|
378
|
-
this.open = false;
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
const prevReturnValue = this.returnValue;
|
|
382
|
-
this.returnValue = returnValue;
|
|
383
|
-
if (!this.dispatchEvent(new Event("close", { cancelable: true }))) {
|
|
384
|
-
this.returnValue = prevReturnValue;
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
await this.animateDialog(this.getCloseAnimation());
|
|
388
|
-
dialog.close(returnValue);
|
|
389
|
-
this.open = false;
|
|
390
|
-
this.dispatchEvent(new Event("closed"));
|
|
391
|
-
}
|
|
392
|
-
connectedCallback() {
|
|
393
|
-
super.connectedCallback();
|
|
394
|
-
this.isConnectedPromiseResolve();
|
|
395
|
-
}
|
|
396
|
-
disconnectedCallback() {
|
|
397
|
-
super.disconnectedCallback();
|
|
398
|
-
this.isConnectedPromise = this.getIsConnectedPromise();
|
|
399
|
-
}
|
|
400
|
-
render() {
|
|
401
|
-
const scrollable = this.open && !(this.isAtScrollTop && this.isAtScrollBottom);
|
|
402
|
-
const classes = {
|
|
403
|
-
"has-headline": this.hasHeadline,
|
|
404
|
-
"has-actions": this.hasActions,
|
|
405
|
-
"has-icon": this.hasIcon,
|
|
406
|
-
"scrollable": scrollable,
|
|
407
|
-
"show-top-divider": scrollable && !this.isAtScrollTop,
|
|
408
|
-
"show-bottom-divider": scrollable && !this.isAtScrollBottom
|
|
409
|
-
};
|
|
410
|
-
const showFocusTrap = this.open && !this.noFocusTrap;
|
|
411
|
-
const focusTrap = T`
|
|
412
|
-
<div
|
|
413
|
-
class="focus-trap"
|
|
414
|
-
tabindex="0"
|
|
415
|
-
aria-hidden="true"
|
|
416
|
-
@focus=${this.handleFocusTrapFocus}></div>
|
|
417
|
-
`;
|
|
418
|
-
const { ariaLabel } = this;
|
|
419
|
-
return T`
|
|
420
|
-
<div class="scrim"></div>
|
|
421
|
-
<dialog
|
|
422
|
-
class=${e(classes)}
|
|
423
|
-
aria-label=${ariaLabel || A}
|
|
424
|
-
aria-labelledby=${this.hasHeadline ? "headline" : A}
|
|
425
|
-
role=${this.type === "alert" ? "alertdialog" : A}
|
|
426
|
-
@cancel=${this.handleCancel}
|
|
427
|
-
@click=${this.handleDialogClick}
|
|
428
|
-
@close=${this.handleClose}
|
|
429
|
-
@keydown=${this.handleKeydown}
|
|
430
|
-
.returnValue=${this.returnValue || A}>
|
|
431
|
-
${showFocusTrap ? focusTrap : A}
|
|
432
|
-
<div class="container" @click=${this.handleContentClick}>
|
|
433
|
-
<div class="headline">
|
|
434
|
-
<div class="icon" aria-hidden="true">
|
|
435
|
-
<slot name="icon" @slotchange=${this.handleIconChange}></slot>
|
|
436
|
-
</div>
|
|
437
|
-
<h2 id="headline" aria-hidden=${!this.hasHeadline || A}>
|
|
438
|
-
<slot
|
|
439
|
-
name="headline"
|
|
440
|
-
@slotchange=${this.handleHeadlineChange}></slot>
|
|
441
|
-
</h2>
|
|
442
|
-
<md-divider></md-divider>
|
|
443
|
-
</div>
|
|
444
|
-
<div class="scroller">
|
|
445
|
-
<div class="content">
|
|
446
|
-
<div class="top anchor"></div>
|
|
447
|
-
<slot name="content"></slot>
|
|
448
|
-
<div class="bottom anchor"></div>
|
|
449
|
-
</div>
|
|
450
|
-
</div>
|
|
451
|
-
<div class="actions">
|
|
452
|
-
<md-divider></md-divider>
|
|
453
|
-
<slot name="actions" @slotchange=${this.handleActionsChange}></slot>
|
|
454
|
-
</div>
|
|
455
|
-
</div>
|
|
456
|
-
${showFocusTrap ? focusTrap : A}
|
|
457
|
-
</dialog>
|
|
458
|
-
`;
|
|
459
|
-
}
|
|
460
|
-
firstUpdated() {
|
|
461
|
-
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
462
|
-
for (const entry of entries) this.handleAnchorIntersection(entry);
|
|
463
|
-
}, { root: this.scroller });
|
|
464
|
-
this.intersectionObserver.observe(this.topAnchor);
|
|
465
|
-
this.intersectionObserver.observe(this.bottomAnchor);
|
|
466
|
-
}
|
|
467
|
-
handleDialogClick() {
|
|
468
|
-
if (this.nextClickIsFromContent) {
|
|
469
|
-
this.nextClickIsFromContent = false;
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
if (!this.dispatchEvent(new Event("cancel", { cancelable: true }))) return;
|
|
473
|
-
this.close();
|
|
474
|
-
}
|
|
475
|
-
handleContentClick() {
|
|
476
|
-
this.nextClickIsFromContent = true;
|
|
477
|
-
}
|
|
478
|
-
handleSubmit(event) {
|
|
479
|
-
const form = event.target;
|
|
480
|
-
const { submitter } = event;
|
|
481
|
-
if (form.getAttribute("method") !== "dialog" || !submitter) return;
|
|
482
|
-
this.close(submitter.getAttribute("value") ?? this.returnValue);
|
|
483
|
-
}
|
|
484
|
-
handleCancel(event) {
|
|
485
|
-
if (event.target !== this.dialog) return;
|
|
486
|
-
this.escapePressedWithoutCancel = false;
|
|
487
|
-
const preventDefault = !redispatchEvent(this, event);
|
|
488
|
-
event.preventDefault();
|
|
489
|
-
if (preventDefault) return;
|
|
490
|
-
this.close();
|
|
491
|
-
}
|
|
492
|
-
handleClose() {
|
|
493
|
-
if (!this.escapePressedWithoutCancel) return;
|
|
494
|
-
this.escapePressedWithoutCancel = false;
|
|
495
|
-
this.dialog?.dispatchEvent(new Event("cancel", { cancelable: true }));
|
|
496
|
-
}
|
|
497
|
-
handleKeydown(event) {
|
|
498
|
-
if (event.key !== "Escape") return;
|
|
499
|
-
this.escapePressedWithoutCancel = true;
|
|
500
|
-
setTimeout(() => {
|
|
501
|
-
this.escapePressedWithoutCancel = false;
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
async animateDialog(animation) {
|
|
505
|
-
this.cancelAnimations?.abort();
|
|
506
|
-
this.cancelAnimations = new AbortController();
|
|
507
|
-
if (this.quick) return;
|
|
508
|
-
const { dialog, scrim, container, headline, content, actions } = this;
|
|
509
|
-
if (!dialog || !scrim || !container || !headline || !content || !actions) return;
|
|
510
|
-
const { container: containerAnimate, dialog: dialogAnimate, scrim: scrimAnimate, headline: headlineAnimate, content: contentAnimate, actions: actionsAnimate } = animation;
|
|
511
|
-
const elementAndAnimation = [
|
|
512
|
-
[dialog, dialogAnimate ?? []],
|
|
513
|
-
[scrim, scrimAnimate ?? []],
|
|
514
|
-
[container, containerAnimate ?? []],
|
|
515
|
-
[headline, headlineAnimate ?? []],
|
|
516
|
-
[content, contentAnimate ?? []],
|
|
517
|
-
[actions, actionsAnimate ?? []]
|
|
518
|
-
];
|
|
519
|
-
const animations = [];
|
|
520
|
-
for (const [element, animation] of elementAndAnimation) for (const animateArgs of animation) {
|
|
521
|
-
const animation = element.animate(...animateArgs);
|
|
522
|
-
this.cancelAnimations.signal.addEventListener("abort", () => {
|
|
523
|
-
animation.cancel();
|
|
524
|
-
});
|
|
525
|
-
animations.push(animation);
|
|
526
|
-
}
|
|
527
|
-
await Promise.all(animations.map((animation) => animation.finished.catch(() => {})));
|
|
528
|
-
}
|
|
529
|
-
handleHeadlineChange(event) {
|
|
530
|
-
const slot = event.target;
|
|
531
|
-
this.hasHeadline = slot.assignedElements().length > 0;
|
|
532
|
-
}
|
|
533
|
-
handleActionsChange(event) {
|
|
534
|
-
const slot = event.target;
|
|
535
|
-
this.hasActions = slot.assignedElements().length > 0;
|
|
536
|
-
}
|
|
537
|
-
handleIconChange(event) {
|
|
538
|
-
const slot = event.target;
|
|
539
|
-
this.hasIcon = slot.assignedElements().length > 0;
|
|
540
|
-
}
|
|
541
|
-
handleAnchorIntersection(entry) {
|
|
542
|
-
const { target, isIntersecting } = entry;
|
|
543
|
-
if (target === this.topAnchor) this.isAtScrollTop = isIntersecting;
|
|
544
|
-
if (target === this.bottomAnchor) this.isAtScrollBottom = isIntersecting;
|
|
545
|
-
}
|
|
546
|
-
getIsConnectedPromise() {
|
|
547
|
-
return new Promise((resolve) => {
|
|
548
|
-
this.isConnectedPromiseResolve = resolve;
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
handleFocusTrapFocus(event) {
|
|
552
|
-
const [firstFocusableChild, lastFocusableChild] = this.getFirstAndLastFocusableChildren();
|
|
553
|
-
if (!firstFocusableChild || !lastFocusableChild) {
|
|
554
|
-
this.dialog?.focus();
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
const isFirstFocusTrap = event.target === this.firstFocusTrap;
|
|
558
|
-
const isLastFocusTrap = !isFirstFocusTrap;
|
|
559
|
-
const focusCameFromFirstChild = event.relatedTarget === firstFocusableChild;
|
|
560
|
-
const focusCameFromLastChild = event.relatedTarget === lastFocusableChild;
|
|
561
|
-
const focusCameFromOutsideDialog = !focusCameFromFirstChild && !focusCameFromLastChild;
|
|
562
|
-
if (isLastFocusTrap && focusCameFromLastChild || isFirstFocusTrap && focusCameFromOutsideDialog) {
|
|
563
|
-
firstFocusableChild.focus();
|
|
564
|
-
return;
|
|
565
|
-
}
|
|
566
|
-
if (isFirstFocusTrap && focusCameFromFirstChild || isLastFocusTrap && focusCameFromOutsideDialog) {
|
|
567
|
-
lastFocusableChild.focus();
|
|
568
|
-
return;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
getFirstAndLastFocusableChildren() {
|
|
572
|
-
if (!this.treewalker) return [null, null];
|
|
573
|
-
let firstFocusableChild = null;
|
|
574
|
-
let lastFocusableChild = null;
|
|
575
|
-
this.treewalker.currentNode = this.treewalker.root;
|
|
576
|
-
while (this.treewalker.nextNode()) {
|
|
577
|
-
const nextChild = this.treewalker.currentNode;
|
|
578
|
-
if (!isFocusable(nextChild)) continue;
|
|
579
|
-
if (!firstFocusableChild) firstFocusableChild = nextChild;
|
|
580
|
-
lastFocusableChild = nextChild;
|
|
581
|
-
}
|
|
582
|
-
return [firstFocusableChild, lastFocusableChild];
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
__decorate([n({ type: Boolean })], Dialog.prototype, "open", null);
|
|
586
|
-
__decorate([n({ type: Boolean })], Dialog.prototype, "quick", void 0);
|
|
587
|
-
__decorate([n({ attribute: false })], Dialog.prototype, "returnValue", void 0);
|
|
588
|
-
__decorate([n()], Dialog.prototype, "type", void 0);
|
|
589
|
-
__decorate([n({
|
|
590
|
-
type: Boolean,
|
|
591
|
-
attribute: "no-focus-trap"
|
|
592
|
-
})], Dialog.prototype, "noFocusTrap", void 0);
|
|
593
|
-
__decorate([e$1("dialog")], Dialog.prototype, "dialog", void 0);
|
|
594
|
-
__decorate([e$1(".scrim")], Dialog.prototype, "scrim", void 0);
|
|
595
|
-
__decorate([e$1(".container")], Dialog.prototype, "container", void 0);
|
|
596
|
-
__decorate([e$1(".headline")], Dialog.prototype, "headline", void 0);
|
|
597
|
-
__decorate([e$1(".content")], Dialog.prototype, "content", void 0);
|
|
598
|
-
__decorate([e$1(".actions")], Dialog.prototype, "actions", void 0);
|
|
599
|
-
__decorate([r()], Dialog.prototype, "isAtScrollTop", void 0);
|
|
600
|
-
__decorate([r()], Dialog.prototype, "isAtScrollBottom", void 0);
|
|
601
|
-
__decorate([e$1(".scroller")], Dialog.prototype, "scroller", void 0);
|
|
602
|
-
__decorate([e$1(".top.anchor")], Dialog.prototype, "topAnchor", void 0);
|
|
603
|
-
__decorate([e$1(".bottom.anchor")], Dialog.prototype, "bottomAnchor", void 0);
|
|
604
|
-
__decorate([e$1(".focus-trap")], Dialog.prototype, "firstFocusTrap", void 0);
|
|
605
|
-
__decorate([r()], Dialog.prototype, "hasHeadline", void 0);
|
|
606
|
-
__decorate([r()], Dialog.prototype, "hasActions", void 0);
|
|
607
|
-
__decorate([r()], Dialog.prototype, "hasIcon", void 0);
|
|
608
|
-
function isFocusable(element) {
|
|
609
|
-
const knownFocusableElements = ":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])";
|
|
610
|
-
const notDisabled = ":not(:disabled,[disabled])";
|
|
611
|
-
if (element.matches(knownFocusableElements + notDisabled + ":not([tabindex^=\"-\"])")) return true;
|
|
612
|
-
if (!element.localName.includes("-")) return false;
|
|
613
|
-
if (!element.matches(notDisabled)) return false;
|
|
614
|
-
return element.shadowRoot?.delegatesFocus ?? false;
|
|
615
|
-
}
|
|
616
|
-
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/dialog-styles.cssresult.js
|
|
617
|
-
/**
|
|
618
|
-
* @license
|
|
619
|
-
* Copyright 2026 Google LLC
|
|
620
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
621
|
-
*/
|
|
622
|
-
var styles = i`:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:"";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));flex:1;font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}
|
|
623
|
-
`;
|
|
624
|
-
styles.styleSheet;
|
|
625
|
-
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/dialog.js
|
|
626
|
-
/**
|
|
627
|
-
* @license
|
|
628
|
-
* Copyright 2023 Google LLC
|
|
629
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
630
|
-
*/
|
|
631
|
-
/**
|
|
632
|
-
* @summary Dialogs can require an action, communicate information, or help
|
|
633
|
-
* users accomplish a task. There are two types of dialogs: basic and
|
|
634
|
-
* full-screen.
|
|
635
|
-
*
|
|
636
|
-
* @description
|
|
637
|
-
* A dialog is a modal window that appears in front of app content to provide
|
|
638
|
-
* critical information or ask for a decision. Dialogs disable all app
|
|
639
|
-
* functionality when they appear, and remain on screen until confirmed,
|
|
640
|
-
* dismissed, or a required action has been taken.
|
|
641
|
-
*
|
|
642
|
-
* Dialogs are purposefully interruptive, so they should be used sparingly.
|
|
643
|
-
* A less disruptive alternative is to use a menu, which provides options
|
|
644
|
-
* without interrupting a user’s experience.
|
|
645
|
-
*
|
|
646
|
-
* On mobile devices only, complex dialogs should be displayed fullscreen.
|
|
647
|
-
*
|
|
648
|
-
* __Example usages:__
|
|
649
|
-
* - Common use cases for basic dialogs include alerts, quick selection, and
|
|
650
|
-
* confirmation.
|
|
651
|
-
* - More complex dialogs may contain actions that require a series of tasks
|
|
652
|
-
* to complete. One example is creating a calendar entry with the event title,
|
|
653
|
-
* date, location, and time.
|
|
654
|
-
*
|
|
655
|
-
* @final
|
|
656
|
-
* @suppress {visibility}
|
|
657
|
-
*/
|
|
658
|
-
var MdDialog = class MdDialog extends Dialog {};
|
|
659
|
-
MdDialog.styles = [styles];
|
|
660
|
-
MdDialog = __decorate([t("md-dialog")], MdDialog);
|
|
661
79
|
// src/lib/components/SpeechLog/ClearSpeechDialog.svelte
|
|
662
80
|
function ClearSpeechDialog($$renderer, $$props) {
|
|
663
81
|
$$renderer.component(($$renderer) => {
|