@tempots/beatui 0.81.0 → 0.82.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/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{ar-DwHLVgKj.cjs → ar-D7CXDmVZ.cjs} +1 -1
- package/dist/{ar-Bo_FZZi7.js → ar-nOSKXpIW.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +63 -1349
- package/dist/auth-divider-BqZPH1-z.cjs +1 -0
- package/dist/auth-divider-Wr-S16kF.js +1355 -0
- package/dist/beatui.css +2035 -295
- package/dist/beatui.tailwind.css +2036 -296
- package/dist/better-auth/index.cjs.js +1 -0
- package/dist/better-auth/index.es.js +754 -0
- package/dist/{de-zI5mdV4M.cjs → de-WzsOu9Gn.cjs} +1 -1
- package/dist/{de-CCqwOkqN.js → de-f2xcEb34.js} +1 -1
- package/dist/{deep-merge-1uN6CG6K.js → deep-merge-BYm0y62g.js} +271 -285
- package/dist/deep-merge-d7sf0xmN.cjs +1 -0
- package/dist/duration-input-B9UNmUCh.cjs +1 -0
- package/dist/{duration-input-C9kpsw-t.js → duration-input-DqcJbxKD.js} +31 -29
- package/dist/editor-toolbar-group--a-xgsJw.cjs +1 -0
- package/dist/editor-toolbar-group-CVpl5mxF.js +31 -0
- package/dist/{es-BF02UrPL.js → es-CDqqzpCw.js} +1 -1
- package/dist/{es-Cw90CAbu.cjs → es-Ds2Xf3wV.cjs} +1 -1
- package/dist/{fa-DPQV4YB8.js → fa-C7tE_hR3.js} +1 -1
- package/dist/{fa-B4lssnzR.cjs → fa-Ct1UtDB7.cjs} +1 -1
- package/dist/{fr-1Kd6z1F-.cjs → fr-CzAkRFed.cjs} +1 -1
- package/dist/{fr-dmxPhwkD.js → fr-yOW_68YY.js} +1 -1
- package/dist/{he-BtQbrVt3.js → he-D2oUloCJ.js} +1 -1
- package/dist/{he-CJ3XnuPm.cjs → he-DlXALrK7.cjs} +1 -1
- package/dist/{hi-BpfnFKHp.cjs → hi-3dBhLwDs.cjs} +1 -1
- package/dist/{hi-D_Le4Yka.js → hi-D5ZlZoQq.js} +1 -1
- package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
- package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
- package/dist/{index-CfaWytS2.cjs → index-05UbKOYe.cjs} +1 -1
- package/dist/{index-K6u33-GC.cjs → index-Bt7FYl80.cjs} +19 -19
- package/dist/{index-YtW7SCWB.js → index-C2Lq1m45.js} +1434 -1463
- package/dist/{index-CGEzILlC.js → index-lYhXnu6I.js} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2389 -2738
- package/dist/input-container-C6qEIjcA.cjs +1 -0
- package/dist/input-container-DiCjOzR2.js +247 -0
- package/dist/{it-DyHjSuHN.js → it-6e6X-4BB.js} +1 -1
- package/dist/{it-COCZ9NyB.cjs → it-DohtcWi9.cjs} +1 -1
- package/dist/{ja-X43lABza.js → ja-BxNuNo2H.js} +1 -1
- package/dist/{ja--NdggLU9.cjs → ja-eyTArrgS.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -8
- package/dist/json-schema/index.es.js +1359 -7608
- package/dist/json-schema-display/index.cjs.js +1 -0
- package/dist/json-schema-display/index.es.js +846 -0
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +542 -698
- package/dist/{ko-BUvb0ggK.cjs → ko-BFLCDMMs.cjs} +1 -1
- package/dist/{ko-B9g9iw99.js → ko-Ch0jFsBV.js} +1 -1
- package/dist/lexical/index.cjs.js +46 -0
- package/dist/lexical/index.es.js +21370 -0
- package/dist/lexical.css +1124 -0
- package/dist/menu-CZzRsQP_.js +372 -0
- package/dist/menu-ClrU72xH.cjs +1 -0
- package/dist/modal-I5srcntN.cjs +1 -0
- package/dist/modal-v3u2Fpnd.js +488 -0
- package/dist/{nl-0S25Gsld.cjs → nl-Bx2ACvr4.cjs} +1 -1
- package/dist/{nl-Ew5jnSsT.js → nl-NuTdZO1s.js} +1 -1
- package/dist/{notice-C-964yaY.js → notice-BuZvdvZh.js} +84 -82
- package/dist/notice-CLDdy1MW.cjs +1 -0
- package/dist/oneof-branch-detection-DsM1K5xc.cjs +8 -0
- package/dist/oneof-branch-detection-Dt8ss9lc.js +6281 -0
- package/dist/{pl-C9f6UBSe.js → pl-Bs4nLJ__.js} +1 -1
- package/dist/{pl-B3k-K3S4.cjs → pl-QHl6sl8f.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYtAvbrw.js → pt-BETjHZrL.js} +1 -1
- package/dist/{pt-CKoikRO5.cjs → pt-DZGw2Z-1.cjs} +1 -1
- package/dist/{ru-ZexN-b8V.js → ru-Bi1_DEKM.js} +1 -1
- package/dist/{ru-COb7RSDt.cjs → ru-D03IuLqh.cjs} +1 -1
- package/dist/session-id-3KiilioY.js +8 -0
- package/dist/session-id-B5lJMzbB.cjs +1 -0
- package/dist/stack-BJgsPJ9A.js +873 -0
- package/dist/stack-DcZ_u50f.cjs +1 -0
- package/dist/string-B9vVyfq3.cjs +1 -0
- package/dist/string-DYyMxBl-.js +19 -0
- package/dist/styles-url-B2dzXrYt.cjs +1 -0
- package/dist/styles-url-Cw_mxshe.js +4 -0
- package/dist/text-input-B3VBat1k.js +44 -0
- package/dist/text-input-Ds8e7Z1G.cjs +1 -0
- package/dist/{toolbar-DNpBIoJo.js → toolbar-D994_E_s.js} +4 -4
- package/dist/toolbar-x0_8lmKu.cjs +1 -0
- package/dist/{tr-tO_EH-Y2.cjs → tr-B_-_1wua.cjs} +1 -1
- package/dist/{tr-BDvn05-H.js → tr-DiYB-FwX.js} +1 -1
- package/dist/translations-B4-Zd2LM.cjs +1 -0
- package/dist/translations-Cq8bUKJP.js +584 -0
- package/dist/{translations-DwGC_94w.cjs → translations-D62qqNV9.cjs} +1 -1
- package/dist/{translations-CfWR4loD.js → translations-DPr6c05Z.js} +1 -1
- package/dist/types/better-auth/bridge.d.ts +2 -0
- package/dist/types/better-auth/callbacks.d.ts +6 -0
- package/dist/types/better-auth/components/authenticated.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
- package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
- package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
- package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
- package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
- package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
- package/dist/types/better-auth/i18n/default.d.ts +29 -0
- package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
- package/dist/types/better-auth/i18n/translations.d.ts +27 -0
- package/dist/types/better-auth/index.d.ts +22 -0
- package/dist/types/better-auth/provider.d.ts +6 -0
- package/dist/types/better-auth/session.d.ts +14 -0
- package/dist/types/better-auth/social-mapping.d.ts +2 -0
- package/dist/types/better-auth/types.d.ts +164 -0
- package/dist/types/components/auth/auth-container.d.ts +1 -1
- package/dist/types/components/auth/social-providers.d.ts +1 -1
- package/dist/types/components/auth/types.d.ts +2 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
- package/dist/types/components/editor-toolbar/index.d.ts +2 -0
- package/dist/types/components/json-schema-display/display-widget-customization.d.ts +61 -0
- package/dist/types/components/json-schema-display/display-wrapper.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/any-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/array-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/boolean-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/composition-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/enum-const-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/generic-display.d.ts +18 -0
- package/dist/types/components/json-schema-display/displays/null-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/number-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/object-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/string-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/index.d.ts +14 -0
- package/dist/types/components/json-schema-display/json-schema-display.d.ts +25 -0
- package/dist/types/components/json-schema-display/mismatch.d.ts +14 -0
- package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
- package/dist/types/components/json-structure/controls/index.d.ts +1 -0
- package/dist/types/components/lexical/bare-editor.d.ts +29 -0
- package/dist/types/components/lexical/code/index.d.ts +1 -0
- package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
- package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
- package/dist/types/components/lexical/docked-editor.d.ts +23 -0
- package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/floating/index.d.ts +6 -0
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
- package/dist/types/components/lexical/index.d.ts +8 -0
- package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
- package/dist/types/components/lexical/table/index.d.ts +1 -0
- package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +30 -0
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +1 -11
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +1 -4
- package/dist/types/json-schema-display/index.d.ts +1 -0
- package/dist/types/lexical/commands/index.d.ts +17 -0
- package/dist/types/lexical/headless.d.ts +39 -0
- package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
- package/dist/types/lexical/index.d.ts +20 -0
- package/dist/types/lexical/lazy-loader.d.ts +35 -0
- package/dist/types/lexical/nodes.d.ts +29 -0
- package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
- package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
- package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
- package/dist/types/lexical/plugins/code.d.ts +7 -0
- package/dist/types/lexical/plugins/dragon.d.ts +6 -0
- package/dist/types/lexical/plugins/file-io.d.ts +10 -0
- package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
- package/dist/types/lexical/plugins/history.d.ts +7 -0
- package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
- package/dist/types/lexical/plugins/html-io.d.ts +9 -0
- package/dist/types/lexical/plugins/index.d.ts +24 -0
- package/dist/types/lexical/plugins/link.d.ts +6 -0
- package/dist/types/lexical/plugins/list.d.ts +6 -0
- package/dist/types/lexical/plugins/mark.d.ts +15 -0
- package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
- package/dist/types/lexical/plugins/offset.d.ts +6 -0
- package/dist/types/lexical/plugins/overflow.d.ts +7 -0
- package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
- package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
- package/dist/types/lexical/plugins/selection.d.ts +6 -0
- package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
- package/dist/types/lexical/plugins/table.d.ts +11 -0
- package/dist/types/lexical/plugins/text.d.ts +13 -0
- package/dist/types/lexical/plugins/yjs.d.ts +9 -0
- package/dist/types/lexical/styles-url.d.ts +2 -0
- package/dist/types/lexical/styles.d.ts +2 -0
- package/dist/types/lexical/types.d.ts +634 -0
- package/dist/types/lexical-i18n/default.d.ts +92 -0
- package/dist/types/lexical-i18n/index.d.ts +21 -0
- package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
- package/dist/types/lexical-i18n/translations.d.ts +21 -0
- package/dist/{ur-DbEqQgS6.js → ur-B69X-xNs.js} +1 -1
- package/dist/{ur-BbnYJ3HS.cjs → ur-DyUSmIbo.cjs} +1 -1
- package/dist/use-animated-toggle-ChycsEoj.js +175 -0
- package/dist/use-animated-toggle-DR6CyMac.cjs +1 -0
- package/dist/use-form-B56E_x5Y.js +859 -0
- package/dist/use-form-Cnp3XQ5X.cjs +2 -0
- package/dist/utils-DEbsp9Q9.js +129 -0
- package/dist/utils-DIUEhA-Z.cjs +1 -0
- package/dist/{vi-CpZUeuSj.js → vi-BdzxA60L.js} +1 -1
- package/dist/{vi-ByBwvGQY.cjs → vi-CBmPaHxg.cjs} +1 -1
- package/dist/widget-customization-Dk7XcVly.cjs +1 -0
- package/dist/widget-customization-Ds9sicAg.js +1073 -0
- package/dist/{zh-DnxK0ieB.cjs → zh-Cb1b8uik.cjs} +1 -1
- package/dist/{zh-DJyhKO0I.js → zh-Dn1UJiZa.js} +1 -1
- package/package.json +59 -8
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/deep-merge-CBIkQM4E.cjs +0 -1
- package/dist/duration-input-DHWhQJnn.cjs +0 -1
- package/dist/modal-CSHIhHvI.js +0 -654
- package/dist/modal-cc8Ehngz.cjs +0 -1
- package/dist/notice-C_BWqu2K.cjs +0 -1
- package/dist/toolbar-D5FcnRju.cjs +0 -1
- package/dist/translations-0tLX4x7M.js +0 -866
- package/dist/translations-WPN3ibDg.cjs +0 -1
- package/dist/use-form-D4JFOcjo.cjs +0 -2
- package/dist/use-form-D4rqJkvG.js +0 -1731
- package/dist/widget-customization-BSjJz3_Y.js +0 -1195
- package/dist/widget-customization-CrFVrt4V.cjs +0 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const ru: {
|
|
2
|
+
cut: string;
|
|
3
|
+
copy: string;
|
|
4
|
+
paste: string;
|
|
5
|
+
insertTable: string;
|
|
6
|
+
indent: string;
|
|
7
|
+
outdent: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
fontColor: string;
|
|
11
|
+
highlightColor: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
clearFormatting: string;
|
|
14
|
+
bold: string;
|
|
15
|
+
italic: string;
|
|
16
|
+
underline: string;
|
|
17
|
+
strikethrough: string;
|
|
18
|
+
code: string;
|
|
19
|
+
heading1: string;
|
|
20
|
+
heading2: string;
|
|
21
|
+
heading3: string;
|
|
22
|
+
heading4: string;
|
|
23
|
+
heading5: string;
|
|
24
|
+
heading6: string;
|
|
25
|
+
bulletList: string;
|
|
26
|
+
orderedList: string;
|
|
27
|
+
checkList: string;
|
|
28
|
+
quote: string;
|
|
29
|
+
codeBlock: string;
|
|
30
|
+
divider: string;
|
|
31
|
+
link: string;
|
|
32
|
+
table: string;
|
|
33
|
+
undo: string;
|
|
34
|
+
redo: string;
|
|
35
|
+
slashCommandsTitle: string;
|
|
36
|
+
slashCommandsEmpty: string;
|
|
37
|
+
slashCommandHeading1: string;
|
|
38
|
+
slashCommandHeading1Desc: string;
|
|
39
|
+
slashCommandHeading2: string;
|
|
40
|
+
slashCommandHeading2Desc: string;
|
|
41
|
+
slashCommandHeading3: string;
|
|
42
|
+
slashCommandHeading3Desc: string;
|
|
43
|
+
slashCommandBulletList: string;
|
|
44
|
+
slashCommandBulletListDesc: string;
|
|
45
|
+
slashCommandOrderedList: string;
|
|
46
|
+
slashCommandOrderedListDesc: string;
|
|
47
|
+
slashCommandQuote: string;
|
|
48
|
+
slashCommandQuoteDesc: string;
|
|
49
|
+
slashCommandCodeBlock: string;
|
|
50
|
+
slashCommandCodeBlockDesc: string;
|
|
51
|
+
slashCommandDivider: string;
|
|
52
|
+
slashCommandDividerDesc: string;
|
|
53
|
+
slashCommandTable: string;
|
|
54
|
+
slashCommandTableDesc: string;
|
|
55
|
+
insertRowAbove: string;
|
|
56
|
+
insertRowBelow: string;
|
|
57
|
+
insertColumnLeft: string;
|
|
58
|
+
insertColumnRight: string;
|
|
59
|
+
deleteRow: string;
|
|
60
|
+
deleteColumn: string;
|
|
61
|
+
deleteTable: string;
|
|
62
|
+
linkUrl: string;
|
|
63
|
+
linkUrlPlaceholder: string;
|
|
64
|
+
linkText: string;
|
|
65
|
+
linkTextPlaceholder: string;
|
|
66
|
+
linkInsert: string;
|
|
67
|
+
linkEdit: string;
|
|
68
|
+
linkRemove: string;
|
|
69
|
+
linkOpen: string;
|
|
70
|
+
codeLanguage: string;
|
|
71
|
+
codeLanguagePlaceholder: string;
|
|
72
|
+
exportMarkdown: string;
|
|
73
|
+
exportHtml: string;
|
|
74
|
+
exportJson: string;
|
|
75
|
+
importFile: string;
|
|
76
|
+
characterCount: (count: number) => string;
|
|
77
|
+
characterCountWithMax: (count: number, max: number) => string;
|
|
78
|
+
characterCountExceeded: string;
|
|
79
|
+
errorGeneric: string;
|
|
80
|
+
errorLoadFailed: string;
|
|
81
|
+
errorSaveFailed: string;
|
|
82
|
+
placeholder: string;
|
|
83
|
+
placeholderEmpty: string;
|
|
84
|
+
a11yEditor: string;
|
|
85
|
+
a11yToolbar: string;
|
|
86
|
+
a11yFloatingToolbar: string;
|
|
87
|
+
a11ySlashCommands: string;
|
|
88
|
+
a11yTableControls: string;
|
|
89
|
+
a11yCodeLanguage: string;
|
|
90
|
+
};
|
|
91
|
+
export default ru;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const tr: {
|
|
2
|
+
cut: string;
|
|
3
|
+
copy: string;
|
|
4
|
+
paste: string;
|
|
5
|
+
insertTable: string;
|
|
6
|
+
indent: string;
|
|
7
|
+
outdent: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
fontColor: string;
|
|
11
|
+
highlightColor: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
clearFormatting: string;
|
|
14
|
+
bold: string;
|
|
15
|
+
italic: string;
|
|
16
|
+
underline: string;
|
|
17
|
+
strikethrough: string;
|
|
18
|
+
code: string;
|
|
19
|
+
heading1: string;
|
|
20
|
+
heading2: string;
|
|
21
|
+
heading3: string;
|
|
22
|
+
heading4: string;
|
|
23
|
+
heading5: string;
|
|
24
|
+
heading6: string;
|
|
25
|
+
bulletList: string;
|
|
26
|
+
orderedList: string;
|
|
27
|
+
checkList: string;
|
|
28
|
+
quote: string;
|
|
29
|
+
codeBlock: string;
|
|
30
|
+
divider: string;
|
|
31
|
+
link: string;
|
|
32
|
+
table: string;
|
|
33
|
+
undo: string;
|
|
34
|
+
redo: string;
|
|
35
|
+
slashCommandsTitle: string;
|
|
36
|
+
slashCommandsEmpty: string;
|
|
37
|
+
slashCommandHeading1: string;
|
|
38
|
+
slashCommandHeading1Desc: string;
|
|
39
|
+
slashCommandHeading2: string;
|
|
40
|
+
slashCommandHeading2Desc: string;
|
|
41
|
+
slashCommandHeading3: string;
|
|
42
|
+
slashCommandHeading3Desc: string;
|
|
43
|
+
slashCommandBulletList: string;
|
|
44
|
+
slashCommandBulletListDesc: string;
|
|
45
|
+
slashCommandOrderedList: string;
|
|
46
|
+
slashCommandOrderedListDesc: string;
|
|
47
|
+
slashCommandQuote: string;
|
|
48
|
+
slashCommandQuoteDesc: string;
|
|
49
|
+
slashCommandCodeBlock: string;
|
|
50
|
+
slashCommandCodeBlockDesc: string;
|
|
51
|
+
slashCommandDivider: string;
|
|
52
|
+
slashCommandDividerDesc: string;
|
|
53
|
+
slashCommandTable: string;
|
|
54
|
+
slashCommandTableDesc: string;
|
|
55
|
+
insertRowAbove: string;
|
|
56
|
+
insertRowBelow: string;
|
|
57
|
+
insertColumnLeft: string;
|
|
58
|
+
insertColumnRight: string;
|
|
59
|
+
deleteRow: string;
|
|
60
|
+
deleteColumn: string;
|
|
61
|
+
deleteTable: string;
|
|
62
|
+
linkUrl: string;
|
|
63
|
+
linkUrlPlaceholder: string;
|
|
64
|
+
linkText: string;
|
|
65
|
+
linkTextPlaceholder: string;
|
|
66
|
+
linkInsert: string;
|
|
67
|
+
linkEdit: string;
|
|
68
|
+
linkRemove: string;
|
|
69
|
+
linkOpen: string;
|
|
70
|
+
codeLanguage: string;
|
|
71
|
+
codeLanguagePlaceholder: string;
|
|
72
|
+
exportMarkdown: string;
|
|
73
|
+
exportHtml: string;
|
|
74
|
+
exportJson: string;
|
|
75
|
+
importFile: string;
|
|
76
|
+
characterCount: (count: number) => string;
|
|
77
|
+
characterCountWithMax: (count: number, max: number) => string;
|
|
78
|
+
characterCountExceeded: string;
|
|
79
|
+
errorGeneric: string;
|
|
80
|
+
errorLoadFailed: string;
|
|
81
|
+
errorSaveFailed: string;
|
|
82
|
+
placeholder: string;
|
|
83
|
+
placeholderEmpty: string;
|
|
84
|
+
a11yEditor: string;
|
|
85
|
+
a11yToolbar: string;
|
|
86
|
+
a11yFloatingToolbar: string;
|
|
87
|
+
a11ySlashCommands: string;
|
|
88
|
+
a11yTableControls: string;
|
|
89
|
+
a11yCodeLanguage: string;
|
|
90
|
+
};
|
|
91
|
+
export default tr;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const ur: {
|
|
2
|
+
cut: string;
|
|
3
|
+
copy: string;
|
|
4
|
+
paste: string;
|
|
5
|
+
insertTable: string;
|
|
6
|
+
indent: string;
|
|
7
|
+
outdent: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
fontColor: string;
|
|
11
|
+
highlightColor: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
clearFormatting: string;
|
|
14
|
+
bold: string;
|
|
15
|
+
italic: string;
|
|
16
|
+
underline: string;
|
|
17
|
+
strikethrough: string;
|
|
18
|
+
code: string;
|
|
19
|
+
heading1: string;
|
|
20
|
+
heading2: string;
|
|
21
|
+
heading3: string;
|
|
22
|
+
heading4: string;
|
|
23
|
+
heading5: string;
|
|
24
|
+
heading6: string;
|
|
25
|
+
bulletList: string;
|
|
26
|
+
orderedList: string;
|
|
27
|
+
checkList: string;
|
|
28
|
+
quote: string;
|
|
29
|
+
codeBlock: string;
|
|
30
|
+
divider: string;
|
|
31
|
+
link: string;
|
|
32
|
+
table: string;
|
|
33
|
+
undo: string;
|
|
34
|
+
redo: string;
|
|
35
|
+
slashCommandsTitle: string;
|
|
36
|
+
slashCommandsEmpty: string;
|
|
37
|
+
slashCommandHeading1: string;
|
|
38
|
+
slashCommandHeading1Desc: string;
|
|
39
|
+
slashCommandHeading2: string;
|
|
40
|
+
slashCommandHeading2Desc: string;
|
|
41
|
+
slashCommandHeading3: string;
|
|
42
|
+
slashCommandHeading3Desc: string;
|
|
43
|
+
slashCommandBulletList: string;
|
|
44
|
+
slashCommandBulletListDesc: string;
|
|
45
|
+
slashCommandOrderedList: string;
|
|
46
|
+
slashCommandOrderedListDesc: string;
|
|
47
|
+
slashCommandQuote: string;
|
|
48
|
+
slashCommandQuoteDesc: string;
|
|
49
|
+
slashCommandCodeBlock: string;
|
|
50
|
+
slashCommandCodeBlockDesc: string;
|
|
51
|
+
slashCommandDivider: string;
|
|
52
|
+
slashCommandDividerDesc: string;
|
|
53
|
+
slashCommandTable: string;
|
|
54
|
+
slashCommandTableDesc: string;
|
|
55
|
+
insertRowAbove: string;
|
|
56
|
+
insertRowBelow: string;
|
|
57
|
+
insertColumnLeft: string;
|
|
58
|
+
insertColumnRight: string;
|
|
59
|
+
deleteRow: string;
|
|
60
|
+
deleteColumn: string;
|
|
61
|
+
deleteTable: string;
|
|
62
|
+
linkUrl: string;
|
|
63
|
+
linkUrlPlaceholder: string;
|
|
64
|
+
linkText: string;
|
|
65
|
+
linkTextPlaceholder: string;
|
|
66
|
+
linkInsert: string;
|
|
67
|
+
linkEdit: string;
|
|
68
|
+
linkRemove: string;
|
|
69
|
+
linkOpen: string;
|
|
70
|
+
codeLanguage: string;
|
|
71
|
+
codeLanguagePlaceholder: string;
|
|
72
|
+
exportMarkdown: string;
|
|
73
|
+
exportHtml: string;
|
|
74
|
+
exportJson: string;
|
|
75
|
+
importFile: string;
|
|
76
|
+
characterCount: (count: number) => string;
|
|
77
|
+
characterCountWithMax: (count: number, max: number) => string;
|
|
78
|
+
characterCountExceeded: string;
|
|
79
|
+
errorGeneric: string;
|
|
80
|
+
errorLoadFailed: string;
|
|
81
|
+
errorSaveFailed: string;
|
|
82
|
+
placeholder: string;
|
|
83
|
+
placeholderEmpty: string;
|
|
84
|
+
a11yEditor: string;
|
|
85
|
+
a11yToolbar: string;
|
|
86
|
+
a11yFloatingToolbar: string;
|
|
87
|
+
a11ySlashCommands: string;
|
|
88
|
+
a11yTableControls: string;
|
|
89
|
+
a11yCodeLanguage: string;
|
|
90
|
+
};
|
|
91
|
+
export default ur;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const vi: {
|
|
2
|
+
cut: string;
|
|
3
|
+
copy: string;
|
|
4
|
+
paste: string;
|
|
5
|
+
insertTable: string;
|
|
6
|
+
indent: string;
|
|
7
|
+
outdent: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
fontColor: string;
|
|
11
|
+
highlightColor: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
clearFormatting: string;
|
|
14
|
+
bold: string;
|
|
15
|
+
italic: string;
|
|
16
|
+
underline: string;
|
|
17
|
+
strikethrough: string;
|
|
18
|
+
code: string;
|
|
19
|
+
heading1: string;
|
|
20
|
+
heading2: string;
|
|
21
|
+
heading3: string;
|
|
22
|
+
heading4: string;
|
|
23
|
+
heading5: string;
|
|
24
|
+
heading6: string;
|
|
25
|
+
bulletList: string;
|
|
26
|
+
orderedList: string;
|
|
27
|
+
checkList: string;
|
|
28
|
+
quote: string;
|
|
29
|
+
codeBlock: string;
|
|
30
|
+
divider: string;
|
|
31
|
+
link: string;
|
|
32
|
+
table: string;
|
|
33
|
+
undo: string;
|
|
34
|
+
redo: string;
|
|
35
|
+
slashCommandsTitle: string;
|
|
36
|
+
slashCommandsEmpty: string;
|
|
37
|
+
slashCommandHeading1: string;
|
|
38
|
+
slashCommandHeading1Desc: string;
|
|
39
|
+
slashCommandHeading2: string;
|
|
40
|
+
slashCommandHeading2Desc: string;
|
|
41
|
+
slashCommandHeading3: string;
|
|
42
|
+
slashCommandHeading3Desc: string;
|
|
43
|
+
slashCommandBulletList: string;
|
|
44
|
+
slashCommandBulletListDesc: string;
|
|
45
|
+
slashCommandOrderedList: string;
|
|
46
|
+
slashCommandOrderedListDesc: string;
|
|
47
|
+
slashCommandQuote: string;
|
|
48
|
+
slashCommandQuoteDesc: string;
|
|
49
|
+
slashCommandCodeBlock: string;
|
|
50
|
+
slashCommandCodeBlockDesc: string;
|
|
51
|
+
slashCommandDivider: string;
|
|
52
|
+
slashCommandDividerDesc: string;
|
|
53
|
+
slashCommandTable: string;
|
|
54
|
+
slashCommandTableDesc: string;
|
|
55
|
+
insertRowAbove: string;
|
|
56
|
+
insertRowBelow: string;
|
|
57
|
+
insertColumnLeft: string;
|
|
58
|
+
insertColumnRight: string;
|
|
59
|
+
deleteRow: string;
|
|
60
|
+
deleteColumn: string;
|
|
61
|
+
deleteTable: string;
|
|
62
|
+
linkUrl: string;
|
|
63
|
+
linkUrlPlaceholder: string;
|
|
64
|
+
linkText: string;
|
|
65
|
+
linkTextPlaceholder: string;
|
|
66
|
+
linkInsert: string;
|
|
67
|
+
linkEdit: string;
|
|
68
|
+
linkRemove: string;
|
|
69
|
+
linkOpen: string;
|
|
70
|
+
codeLanguage: string;
|
|
71
|
+
codeLanguagePlaceholder: string;
|
|
72
|
+
exportMarkdown: string;
|
|
73
|
+
exportHtml: string;
|
|
74
|
+
exportJson: string;
|
|
75
|
+
importFile: string;
|
|
76
|
+
characterCount: (count: number) => string;
|
|
77
|
+
characterCountWithMax: (count: number, max: number) => string;
|
|
78
|
+
characterCountExceeded: string;
|
|
79
|
+
errorGeneric: string;
|
|
80
|
+
errorLoadFailed: string;
|
|
81
|
+
errorSaveFailed: string;
|
|
82
|
+
placeholder: string;
|
|
83
|
+
placeholderEmpty: string;
|
|
84
|
+
a11yEditor: string;
|
|
85
|
+
a11yToolbar: string;
|
|
86
|
+
a11yFloatingToolbar: string;
|
|
87
|
+
a11ySlashCommands: string;
|
|
88
|
+
a11yTableControls: string;
|
|
89
|
+
a11yCodeLanguage: string;
|
|
90
|
+
};
|
|
91
|
+
export default vi;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const zh: {
|
|
2
|
+
cut: string;
|
|
3
|
+
copy: string;
|
|
4
|
+
paste: string;
|
|
5
|
+
insertTable: string;
|
|
6
|
+
indent: string;
|
|
7
|
+
outdent: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
fontColor: string;
|
|
11
|
+
highlightColor: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
clearFormatting: string;
|
|
14
|
+
bold: string;
|
|
15
|
+
italic: string;
|
|
16
|
+
underline: string;
|
|
17
|
+
strikethrough: string;
|
|
18
|
+
code: string;
|
|
19
|
+
heading1: string;
|
|
20
|
+
heading2: string;
|
|
21
|
+
heading3: string;
|
|
22
|
+
heading4: string;
|
|
23
|
+
heading5: string;
|
|
24
|
+
heading6: string;
|
|
25
|
+
bulletList: string;
|
|
26
|
+
orderedList: string;
|
|
27
|
+
checkList: string;
|
|
28
|
+
quote: string;
|
|
29
|
+
codeBlock: string;
|
|
30
|
+
divider: string;
|
|
31
|
+
link: string;
|
|
32
|
+
table: string;
|
|
33
|
+
undo: string;
|
|
34
|
+
redo: string;
|
|
35
|
+
slashCommandsTitle: string;
|
|
36
|
+
slashCommandsEmpty: string;
|
|
37
|
+
slashCommandHeading1: string;
|
|
38
|
+
slashCommandHeading1Desc: string;
|
|
39
|
+
slashCommandHeading2: string;
|
|
40
|
+
slashCommandHeading2Desc: string;
|
|
41
|
+
slashCommandHeading3: string;
|
|
42
|
+
slashCommandHeading3Desc: string;
|
|
43
|
+
slashCommandBulletList: string;
|
|
44
|
+
slashCommandBulletListDesc: string;
|
|
45
|
+
slashCommandOrderedList: string;
|
|
46
|
+
slashCommandOrderedListDesc: string;
|
|
47
|
+
slashCommandQuote: string;
|
|
48
|
+
slashCommandQuoteDesc: string;
|
|
49
|
+
slashCommandCodeBlock: string;
|
|
50
|
+
slashCommandCodeBlockDesc: string;
|
|
51
|
+
slashCommandDivider: string;
|
|
52
|
+
slashCommandDividerDesc: string;
|
|
53
|
+
slashCommandTable: string;
|
|
54
|
+
slashCommandTableDesc: string;
|
|
55
|
+
insertRowAbove: string;
|
|
56
|
+
insertRowBelow: string;
|
|
57
|
+
insertColumnLeft: string;
|
|
58
|
+
insertColumnRight: string;
|
|
59
|
+
deleteRow: string;
|
|
60
|
+
deleteColumn: string;
|
|
61
|
+
deleteTable: string;
|
|
62
|
+
linkUrl: string;
|
|
63
|
+
linkUrlPlaceholder: string;
|
|
64
|
+
linkText: string;
|
|
65
|
+
linkTextPlaceholder: string;
|
|
66
|
+
linkInsert: string;
|
|
67
|
+
linkEdit: string;
|
|
68
|
+
linkRemove: string;
|
|
69
|
+
linkOpen: string;
|
|
70
|
+
codeLanguage: string;
|
|
71
|
+
codeLanguagePlaceholder: string;
|
|
72
|
+
exportMarkdown: string;
|
|
73
|
+
exportHtml: string;
|
|
74
|
+
exportJson: string;
|
|
75
|
+
importFile: string;
|
|
76
|
+
characterCount: (count: number) => string;
|
|
77
|
+
characterCountWithMax: (count: number, max: number) => string;
|
|
78
|
+
characterCountExceeded: string;
|
|
79
|
+
errorGeneric: string;
|
|
80
|
+
errorLoadFailed: string;
|
|
81
|
+
errorSaveFailed: string;
|
|
82
|
+
placeholder: string;
|
|
83
|
+
placeholderEmpty: string;
|
|
84
|
+
a11yEditor: string;
|
|
85
|
+
a11yToolbar: string;
|
|
86
|
+
a11yFloatingToolbar: string;
|
|
87
|
+
a11ySlashCommands: string;
|
|
88
|
+
a11yTableControls: string;
|
|
89
|
+
a11yCodeLanguage: string;
|
|
90
|
+
};
|
|
91
|
+
export default zh;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { LexicalMessages } from './default';
|
|
2
|
+
/**
|
|
3
|
+
* Get a translated message by key from a messages object
|
|
4
|
+
*/
|
|
5
|
+
export declare function t(messages: LexicalMessages, key: keyof LexicalMessages, ...args: unknown[]): string;
|
|
6
|
+
/**
|
|
7
|
+
* Get messages for a locale. Falls back to English if locale not found.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getMessagesForLocale(locale: string): Promise<LexicalMessages>;
|
|
10
|
+
/**
|
|
11
|
+
* Determine text direction based on locale
|
|
12
|
+
*/
|
|
13
|
+
export declare function getDirectionForLocale(locale: string): 'ltr' | 'rtl';
|
|
14
|
+
/**
|
|
15
|
+
* Get default locale
|
|
16
|
+
*/
|
|
17
|
+
export declare function getDefaultLocale(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Get default messages
|
|
20
|
+
*/
|
|
21
|
+
export declare function getDefaultMessages(): LexicalMessages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-B4-Zd2LM.cjs"),a={loadingExtended:"لوڈ ہو رہا ہے، براہ کرم انتظار کریں",loadingShort:"لوڈ ہو رہا ہے...",locale:"زبان",iconDescription:"آئیکن",loadingIcon:"لوڈنگ آئیکن",failedToLoadIcon:"آئیکن لوڈ کرنے میں ناکام",editLabel:"ترمیم",selectOne:"ایک منتخب کریں",selectNone:"کوئی نہیں",selectMany:"متعدد منتخب کریں",noResults:"کوئی نتیجہ نہیں",passwordPlaceholderText:"خفیہ پاس ورڈ",togglePasswordVisibility:"پاس ورڈ کی مرئیت تبدیل کریں",toggleMenu:"مینو ٹوگل کریں",toggleAside:"سائیڈ پینل ٹوگل کریں",mainNavigation:"بنیادی نیویگیشن",sidebar:"سائیڈ بار",closeDrawer:"دراز بند کریں",closeModal:"ماڈل بند کریں",confirm:"تصدیق",cancel:"منسوخ",addLabel:"شامل کریں",removeItem:"آئٹم ہٹائیں",currentLocale:"اردو",ar:"عربی",de:"جرمن",en:"انگریزی",es:"ہسپانوی",fr:"فرانسیسی",he:"عبرانی",hi:"ہندی",it:"اطالوی",ja:"جاپانی",ko:"کوریائی",nl:"ڈچ",pl:"پولش",pt:"پرتگالی",ru:"روسی",tr:"ترکی",vi:"ویتنامی",zh:"چینی",fa:"فارسی",ur:"اردو",emailPlaceholderText:"اپنا ای میل داخل کریں",incrementValue:"قدر اضافہ کریں",decrementValue:"قدر کم کریں",dropZoneInstructions:e=>e?"منتخب کرنے کے لیے کلک کریں یا فائلیں یہاں گھسیٹیں، یا فائل منتخب کرنے کے لیے Enter یا Space دبائیں":"فائلیں یہاں گھسیٹیں",fileSizeUnits:["بائٹس","KB","MB","GB","TB"],removeFile:"فائل حذف کریں",clearAllFiles:"تمام فائلیں صاف کریں",clearValue:"قدر صاف کریں",unknownType:"نامعلوم قسم",filesInputInstructions:(e,o,t)=>{let n=e==null||e>1?"منتخب کرنے کے لیے کلک کریں یا فائلیں یہاں گھسیٹیں":"منتخب کرنے کے لیے کلک کریں یا فائل یہاں گھسیٹیں";if(e||o){const l=[];if(e!=null&&e>1&&l.push(`زیادہ سے زیادہ ${e} فائلیں`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`ہر ایک زیادہ سے زیادہ ${i}`)}l.length>0&&(n+=` (${l.join("، ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,o)=>`Page ${e} is out of range (1-${o})`,renderFailed:"Failed to render PDF page"}};exports.default=a;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { prop as x, computedOf as g, Fragment as E, attr as f, WithElement as w, OnDispose as S } from "@tempots/dom";
|
|
2
|
+
import { g as p, I as m } from "./timer-Rd2sKnvH.js";
|
|
3
|
+
function h({
|
|
4
|
+
initialStatus: n = "closed",
|
|
5
|
+
openedAfter: s,
|
|
6
|
+
closedAfter: r
|
|
7
|
+
}) {
|
|
8
|
+
const e = x(n), t = () => {
|
|
9
|
+
e.set("start-opening");
|
|
10
|
+
}, i = () => {
|
|
11
|
+
e.set("start-closing");
|
|
12
|
+
}, l = e.map(
|
|
13
|
+
(o) => o !== "closed" && o !== "start-closing" && o !== "closing"
|
|
14
|
+
), c = (o) => {
|
|
15
|
+
o ? t() : i();
|
|
16
|
+
}, d = () => {
|
|
17
|
+
c(!l.value);
|
|
18
|
+
}, a = [], T = (o) => {
|
|
19
|
+
a.push(
|
|
20
|
+
e.on((L) => {
|
|
21
|
+
L === "closed" && o();
|
|
22
|
+
})
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
let u = () => {
|
|
26
|
+
};
|
|
27
|
+
e.on((o) => {
|
|
28
|
+
switch (u(), o) {
|
|
29
|
+
case "start-opening":
|
|
30
|
+
u = p(() => e.set("opening"));
|
|
31
|
+
break;
|
|
32
|
+
case "opening":
|
|
33
|
+
u = s(() => e.set("opened"));
|
|
34
|
+
break;
|
|
35
|
+
case "start-closing":
|
|
36
|
+
u = p(() => e.set("closing"));
|
|
37
|
+
break;
|
|
38
|
+
case "closing":
|
|
39
|
+
u = r(() => e.set("closed"));
|
|
40
|
+
break;
|
|
41
|
+
case "closed":
|
|
42
|
+
u = () => {
|
|
43
|
+
};
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}), e.onDispose(() => {
|
|
47
|
+
a.forEach((o) => o()), u();
|
|
48
|
+
});
|
|
49
|
+
const b = e.map((o) => o === "closed"), O = e.map((o) => o === "start-opening"), v = e.map((o) => o === "opening"), $ = e.map((o) => o === "opened"), k = e.map((o) => o === "closing"), y = e.map((o) => o === "start-closing");
|
|
50
|
+
return {
|
|
51
|
+
status: e,
|
|
52
|
+
open: t,
|
|
53
|
+
close: i,
|
|
54
|
+
toggle: d,
|
|
55
|
+
setOpen: c,
|
|
56
|
+
display: l,
|
|
57
|
+
isClosed: b,
|
|
58
|
+
isStartOpening: O,
|
|
59
|
+
isOpening: v,
|
|
60
|
+
isOpened: $,
|
|
61
|
+
isClosing: k,
|
|
62
|
+
isStartClosing: y,
|
|
63
|
+
dispose: () => e.dispose(),
|
|
64
|
+
listenOnClosed: T
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function W({
|
|
68
|
+
initialStatus: n = "closed",
|
|
69
|
+
duration: s,
|
|
70
|
+
openDuration: r = s ?? 500,
|
|
71
|
+
closeDuration: e = s ?? 500
|
|
72
|
+
} = {}) {
|
|
73
|
+
return h({
|
|
74
|
+
initialStatus: n,
|
|
75
|
+
openedAfter: (t) => m(t, r),
|
|
76
|
+
closedAfter: (t) => m(t, e)
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function A(n, s) {
|
|
80
|
+
let r = !1, e = null;
|
|
81
|
+
function t() {
|
|
82
|
+
r || (r = !0, n.removeEventListener("transitionend", i), n.removeEventListener("animationend", l), e && (clearTimeout(e), e = null), s());
|
|
83
|
+
}
|
|
84
|
+
function i(a) {
|
|
85
|
+
a.target === n && t();
|
|
86
|
+
}
|
|
87
|
+
function l(a) {
|
|
88
|
+
a.target === n && t();
|
|
89
|
+
}
|
|
90
|
+
const d = p(() => {
|
|
91
|
+
if (typeof n.getAnimations > "u") {
|
|
92
|
+
e = setTimeout(t, 16);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
n.addEventListener("transitionend", i), n.addEventListener("animationend", l), n.getAnimations().length === 0 && (e = setTimeout(t, 1e3));
|
|
96
|
+
});
|
|
97
|
+
return () => {
|
|
98
|
+
r = !0, d(), e && (clearTimeout(e), e = null), n.removeEventListener("transitionend", i), n.removeEventListener("animationend", l);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function j({
|
|
102
|
+
initialStatus: n = "closed",
|
|
103
|
+
element: s
|
|
104
|
+
} = {}) {
|
|
105
|
+
let r = s;
|
|
106
|
+
return {
|
|
107
|
+
setElement: (e) => {
|
|
108
|
+
r = e;
|
|
109
|
+
},
|
|
110
|
+
...h({
|
|
111
|
+
initialStatus: n,
|
|
112
|
+
openedAfter: (e) => r == null ? (e(), () => {
|
|
113
|
+
}) : A(r, e),
|
|
114
|
+
closedAfter: (e) => r == null ? (e(), () => {
|
|
115
|
+
}) : A(r, e)
|
|
116
|
+
})
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function B(n) {
|
|
120
|
+
if (n == null) return "";
|
|
121
|
+
const s = [];
|
|
122
|
+
return n.fade && s.push("fade"), n.slide && s.push(`slide-${n.slide}`), n.scale != null && s.push("scale"), s.length > 0 ? s.join(" ") : "none";
|
|
123
|
+
}
|
|
124
|
+
function D(n) {
|
|
125
|
+
if (n == null) return "";
|
|
126
|
+
const s = [];
|
|
127
|
+
return n.scale != null && typeof n.scale == "number" && s.push(`--scale-factor: ${n.scale}`), n.transformOrigin != null && s.push(`--transform-origin: ${n.transformOrigin}`), n.duration != null && s.push(`--animation-duration: ${n.duration}ms`), n.easing != null && s.push(`--animation-easing: ${n.easing}`), s.join("; ");
|
|
128
|
+
}
|
|
129
|
+
function N({
|
|
130
|
+
animation: n,
|
|
131
|
+
status: s
|
|
132
|
+
}) {
|
|
133
|
+
const r = g(
|
|
134
|
+
n,
|
|
135
|
+
s
|
|
136
|
+
)((t, i) => {
|
|
137
|
+
if (t == null)
|
|
138
|
+
return `bc-animated-toggle bc-animated-toggle--${i}`;
|
|
139
|
+
const l = i === "start-opening" || i === "opening" || i === "opened";
|
|
140
|
+
let c;
|
|
141
|
+
return "enter" in t || "exit" in t ? c = l ? t.enter : t.exit : c = t, `bc-animated-toggle bc-animated-toggle--${B(c)} bc-animated-toggle--${i}`;
|
|
142
|
+
}), e = g(
|
|
143
|
+
n,
|
|
144
|
+
s
|
|
145
|
+
)((t, i) => {
|
|
146
|
+
if (t == null) return "";
|
|
147
|
+
const l = i === "start-opening" || i === "opening" || i === "opened";
|
|
148
|
+
let c;
|
|
149
|
+
return "enter" in t || "exit" in t ? c = l ? t.enter : t.exit : c = t, D(c);
|
|
150
|
+
});
|
|
151
|
+
return E(f.class(r), f.style(e));
|
|
152
|
+
}
|
|
153
|
+
function q({
|
|
154
|
+
initialStatus: n = "closed",
|
|
155
|
+
animation: s
|
|
156
|
+
}, r) {
|
|
157
|
+
return w((e) => {
|
|
158
|
+
const { setElement: t, dispose: i, ...l } = j({
|
|
159
|
+
initialStatus: n,
|
|
160
|
+
element: e
|
|
161
|
+
});
|
|
162
|
+
return t(e), E(
|
|
163
|
+
N({ status: l.status, animation: s }),
|
|
164
|
+
S(i),
|
|
165
|
+
r(l)
|
|
166
|
+
);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
export {
|
|
170
|
+
N as A,
|
|
171
|
+
q as a,
|
|
172
|
+
h as b,
|
|
173
|
+
W as c,
|
|
174
|
+
j as u
|
|
175
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("@tempots/dom"),g=require("./timer-BJHOsuS6.cjs");function f({initialStatus:t="closed",openedAfter:s,closedAfter:r}){const e=a.prop(t),n=()=>{e.set("start-opening")},i=()=>{e.set("start-closing")},l=e.map(o=>o!=="closed"&&o!=="start-closing"&&o!=="closing"),c=o=>{o?n():i()},p=()=>{c(!l.value)},u=[],E=o=>{u.push(e.on(L=>{L==="closed"&&o()}))};let d=()=>{};e.on(o=>{switch(d(),o){case"start-opening":d=g.g(()=>e.set("opening"));break;case"opening":d=s(()=>e.set("opened"));break;case"start-closing":d=g.g(()=>e.set("closing"));break;case"closing":d=r(()=>e.set("closed"));break;case"closed":d=()=>{};break}}),e.onDispose(()=>{u.forEach(o=>o()),d()});const h=e.map(o=>o==="closed"),O=e.map(o=>o==="start-opening"),b=e.map(o=>o==="opening"),v=e.map(o=>o==="opened"),$=e.map(o=>o==="closing"),y=e.map(o=>o==="start-closing");return{status:e,open:n,close:i,toggle:p,setOpen:c,display:l,isClosed:h,isStartOpening:O,isOpening:b,isOpened:v,isClosing:$,isStartClosing:y,dispose:()=>e.dispose(),listenOnClosed:E}}function k({initialStatus:t="closed",duration:s,openDuration:r=s??500,closeDuration:e=s??500}={}){return f({initialStatus:t,openedAfter:n=>g.I(n,r),closedAfter:n=>g.I(n,e)})}function m(t,s){let r=!1,e=null;function n(){r||(r=!0,t.removeEventListener("transitionend",i),t.removeEventListener("animationend",l),e&&(clearTimeout(e),e=null),s())}function i(u){u.target===t&&n()}function l(u){u.target===t&&n()}const c=()=>{if(typeof t.getAnimations>"u"){e=setTimeout(n,16);return}t.addEventListener("transitionend",i),t.addEventListener("animationend",l),t.getAnimations().length===0&&(e=setTimeout(n,1e3))},p=g.g(c);return()=>{r=!0,p(),e&&(clearTimeout(e),e=null),t.removeEventListener("transitionend",i),t.removeEventListener("animationend",l)}}function A({initialStatus:t="closed",element:s}={}){let r=s;return{setElement:e=>{r=e},...f({initialStatus:t,openedAfter:e=>r==null?(e(),()=>{}):m(r,e),closedAfter:e=>r==null?(e(),()=>{}):m(r,e)})}}function x(t){if(t==null)return"";const s=[];return t.fade&&s.push("fade"),t.slide&&s.push(`slide-${t.slide}`),t.scale!=null&&s.push("scale"),s.length>0?s.join(" "):"none"}function w(t){if(t==null)return"";const s=[];return t.scale!=null&&typeof t.scale=="number"&&s.push(`--scale-factor: ${t.scale}`),t.transformOrigin!=null&&s.push(`--transform-origin: ${t.transformOrigin}`),t.duration!=null&&s.push(`--animation-duration: ${t.duration}ms`),t.easing!=null&&s.push(`--animation-easing: ${t.easing}`),s.join("; ")}function T({animation:t,status:s}){const r=a.computedOf(t,s)((n,i)=>{if(n==null)return`bc-animated-toggle bc-animated-toggle--${i}`;const l=i==="start-opening"||i==="opening"||i==="opened";let c;return"enter"in n||"exit"in n?c=l?n.enter:n.exit:c=n,`bc-animated-toggle bc-animated-toggle--${x(c)} bc-animated-toggle--${i}`}),e=a.computedOf(t,s)((n,i)=>{if(n==null)return"";const l=i==="start-opening"||i==="opening"||i==="opened";let c;return"enter"in n||"exit"in n?c=l?n.enter:n.exit:c=n,w(c)});return a.Fragment(a.attr.class(r),a.attr.style(e))}function S({initialStatus:t="closed",animation:s},r){return a.WithElement(e=>{const{setElement:n,dispose:i,...l}=A({initialStatus:t,element:e});return n(e),a.Fragment(T({status:l.status,animation:s}),a.OnDispose(i),r(l))})}exports.AnimatedToggle=S;exports.AnimatedToggleClass=T;exports.useAnimatedElementToggle=A;exports.useAnimatedToggle=f;exports.useTimedToggle=k;
|