@tempots/beatui 0.30.1 → 0.31.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/dist/2019-BY_FFnZU.cjs +1 -0
- package/dist/{2019-Cd9nHhvg.js → 2019-C660mMK6.js} +9 -10
- package/dist/{2020-CyKJpuK6.js → 2020-C3P-aGet.js} +30 -31
- package/dist/2020-Cyyhc8pv.cjs +1 -0
- package/dist/{ar-Dz8Mg5la.js → ar-BUxQ3yNv.js} +30 -15
- package/dist/ar-DcFl4tkv.cjs +1 -0
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +85 -84
- package/dist/beatui.css +37 -11
- package/dist/beatui.tailwind.css +37 -11
- package/dist/{de-ToWTQGEo.js → de-CKKQr2-K.js} +27 -12
- package/dist/de-DEUS3n0J.cjs +1 -0
- package/dist/{es-CruxS0Tz.js → es-C5VUn_X1.js} +27 -12
- package/dist/es-CIeoDpkc.cjs +1 -0
- package/dist/{fa-Cf0NZLWA.js → fa-Cs2LZsfr.js} +30 -15
- package/dist/fa-gXa9Xdjn.cjs +1 -0
- package/dist/fr-6SpJ-gVV.cjs +1 -0
- package/dist/{fr-YKXmqMGr.js → fr-Dlw8mKFp.js} +20 -5
- package/dist/{he-D8ZOduPw.js → he-Cm4NxsyE.js} +30 -15
- package/dist/he-D9cwxZOb.cjs +1 -0
- package/dist/hi-CNRHnMsQ.cjs +1 -0
- package/dist/{hi-CIamzVEf.js → hi-Cjz1aQX2.js} +30 -15
- package/dist/index-BI5w0jSz.js +2707 -0
- package/dist/index-Bv2gn_kV.cjs +4 -0
- package/dist/index-C-FUCwXi.js +14275 -0
- package/dist/index-CKyH3jwP.cjs +1 -0
- package/dist/index-CXY0yKJD.cjs +34 -0
- package/dist/{index-O9BwR_8P.cjs → index-CYY_JLSN.cjs} +1 -1
- package/dist/index-DKy2mZws.cjs +1 -0
- package/dist/{index-B2079wM-.js → index-DjShJtXp.js} +15 -15
- package/dist/index-DwyUOY3r.js +68 -0
- package/dist/{index-DDpjzV7E.js → index-Jd2O_Iux.js} +304 -307
- package/dist/{index-DFJed4ks.js → index-_Kh76-c2.js} +1 -1
- package/dist/index-klVI8k8O.cjs +8 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +1123 -1229
- package/dist/it-DvBJ31Ls.cjs +1 -0
- package/dist/{it-Bn7tG_KC.js → it-iuFeIEsO.js} +29 -14
- package/dist/{ja-i1ULXeiu.js → ja-D6Dd96v-.js} +25 -10
- package/dist/ja-FKJGj5My.cjs +1 -0
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-BpKDmtvY.js → ko-C8GOsfIU.js} +30 -15
- package/dist/ko-PqVOGPUi.cjs +1 -0
- package/dist/markdown/index.cjs.js +1 -2
- package/dist/markdown/index.es.js +4 -420
- package/dist/{modal-DvGSDVSv.js → modal-CuhK7DqK.js} +14 -13
- package/dist/modal-RQtwnFy9.cjs +1 -0
- package/dist/{nl-Cs4PDWCJ.js → nl-Ct2cyWWi.js} +31 -16
- package/dist/nl-DAhT0vfu.cjs +1 -0
- package/dist/notice-BnX2sRrK.cjs +2 -0
- package/dist/notice-Dz_BJg8D.js +1467 -0
- package/dist/{pl-BFLNf991.js → pl-DewgRE-k.js} +31 -16
- package/dist/pl-JgD0mCRa.cjs +1 -0
- package/dist/prosemirror/index.cjs.js +1 -0
- package/dist/prosemirror/index.es.js +6 -0
- package/dist/prosemirror.css +294 -0
- package/dist/pt-BkoMl_PC.cjs +1 -0
- package/dist/{pt-BRZeOkcE.js → pt-CNyp2zeW.js} +31 -16
- package/dist/ru-9OW0HQFS.cjs +1 -0
- package/dist/{ru-KI7Gowz-.js → ru-U6PdSzha.js} +35 -20
- package/dist/styles-url-CF_019NX.js +4 -0
- package/dist/styles-url-DhmSan6u.cjs +1 -0
- package/dist/toolbar-D7fDCmUn.cjs +1 -0
- package/dist/toolbar-DTh9Ouhs.js +118 -0
- package/dist/{tr-CYk8Fua5.js → tr-CQVvooxi.js} +28 -13
- package/dist/tr-DsOaoQqh.cjs +1 -0
- package/dist/translations-BDRano6u.cjs +1 -0
- package/dist/{translations-DdNHXAWr.js → translations-Cic51rHH.js} +1 -1
- package/dist/translations-D4PjDB1t.js +831 -0
- package/dist/translations-DDFTHcX3.cjs +1 -0
- package/dist/types/beatui-i18n/default.d.ts +14 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +14 -0
- package/dist/types/beatui-i18n/translations.d.ts +14 -0
- package/dist/types/components/form/controller/controller.d.ts +1 -1
- package/dist/types/components/form/input/input-container.d.ts +3 -1
- package/dist/types/components/form/input/input-options.d.ts +6 -0
- package/dist/types/components/form/input/option.d.ts +3 -3
- package/dist/types/components/form/use-form.d.ts +2 -2
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +11 -0
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +4 -0
- package/dist/types/components/prosemirror/link-control.d.ts +12 -0
- package/dist/types/components/prosemirror/prosemirror-markdown-input.d.ts +76 -0
- package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +18 -0
- package/dist/types/components/prosemirror/utils.d.ts +12 -0
- package/dist/types/prosemirror/index.d.ts +2 -0
- package/dist/{ur-BIcZGLWt.js → ur-C3LypxEh.js} +30 -15
- package/dist/ur-C8v4y2tI.cjs +1 -0
- package/dist/utils-D8WljbbZ.cjs +1 -0
- package/dist/{utils-D1op9R8_.js → utils-DY9kZecl.js} +74 -73
- package/dist/vi-DzLo7qhK.cjs +1 -0
- package/dist/{vi-BeK62QeB.js → vi-M5ObJg3d.js} +19 -4
- package/dist/zh-BXk4IZBo.cjs +1 -0
- package/dist/{zh-Dt6yWDu2.js → zh-DGA8R46s.js} +32 -17
- package/package.json +20 -13
- package/dist/2019-Bl1mhxeM.cjs +0 -1
- package/dist/2020-BKqFJLj6.cjs +0 -1
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/apl-M-DNMvvR.cjs +0 -1
- package/dist/ar-CbsALGhG.cjs +0 -1
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asciiarmor-BMx3XVjX.cjs +0 -1
- package/dist/asn1-OOsVM4yU.cjs +0 -1
- package/dist/asn1-jKiBa2Ya.js +0 -95
- package/dist/asterisk-B1QUaW1C.cjs +0 -1
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-BjUlYKdF.cjs +0 -1
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-BEMIzMUI.cjs +0 -1
- package/dist/clike-DGTaUp48.js +0 -620
- package/dist/clojure-Ap_IXD2I.cjs +0 -1
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/cmake-C4D5_VmS.cjs +0 -1
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-BlTKFDRj.js +0 -72
- package/dist/cobol-Du-cT2hr.cjs +0 -1
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/coffeescript-DDFAj2ea.cjs +0 -1
- package/dist/commonlisp-CXBBRCTx.cjs +0 -1
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/crystal-DAFWRDbh.cjs +0 -1
- package/dist/css-BkF-NPzE.js +0 -1553
- package/dist/css-DzFJyRJ8.cjs +0 -1
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/cypher-BN0-oCze.cjs +0 -1
- package/dist/d-BHsqGcfm.cjs +0 -1
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/de-MO-u5hoD.cjs +0 -1
- package/dist/diff-CemTHKfk.cjs +0 -1
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-BBTH3voH.cjs +0 -1
- package/dist/dockerfile-DIy8NleC.js +0 -194
- package/dist/dtd-ChoVQPwv.cjs +0 -1
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/dylan-apTQIgUA.cjs +0 -1
- package/dist/ebnf-DUPDuY4r.js +0 -78
- package/dist/ebnf-LYmLy17h.cjs +0 -1
- package/dist/ecl-C7WNQq7-.cjs +0 -1
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-BJThA8RG.cjs +0 -1
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/elm-CcXP9T36.cjs +0 -1
- package/dist/erlang-B6mpcObI.cjs +0 -1
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/es-CqkWVfis.cjs +0 -1
- package/dist/fa-DR8j7v-l.cjs +0 -1
- package/dist/factor-B-tsx9yW.cjs +0 -1
- package/dist/factor-DDOC7X6P.js +0 -65
- package/dist/fcl-BzAKklXo.cjs +0 -1
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/forth-CPAzyZ_n.cjs +0 -1
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/fortran-DHiTlGV1.cjs +0 -1
- package/dist/fr-ClK0mWTO.cjs +0 -1
- package/dist/gas-BiPtGF2E.cjs +0 -1
- package/dist/gas-cpmYfFX2.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/gherkin-Djo7Y51D.cjs +0 -1
- package/dist/groovy-BMVITiCm.cjs +0 -1
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haskell-CngODaW-.cjs +0 -1
- package/dist/haxe-70NVW1pR.js +0 -359
- package/dist/haxe-Dyk-piTh.cjs +0 -1
- package/dist/he-DeJMBRTP.cjs +0 -1
- package/dist/hi-C9Anq8Ae.cjs +0 -1
- package/dist/http-BkLifcnL.cjs +0 -1
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/idl-FmHDmsE-.cjs +0 -1
- package/dist/index-0dpJGQbC.js +0 -94
- package/dist/index-52kzSRNb.cjs +0 -1
- package/dist/index-5a6_6F3Z.cjs +0 -6
- package/dist/index-BGHGZg_7.js +0 -552
- package/dist/index-BMn-7Ble.js +0 -1307
- package/dist/index-BR0F2BVZ.cjs +0 -1
- package/dist/index-BlCmv2EJ.cjs +0 -1
- package/dist/index-BlamLFdS.js +0 -76
- package/dist/index-By8a3eg5.cjs +0 -1
- package/dist/index-C0sjoDdy.js +0 -309
- package/dist/index-C9RMQY3t.cjs +0 -1
- package/dist/index-CDBeAhhM.js +0 -289
- package/dist/index-CH2HgQJF.cjs +0 -1
- package/dist/index-CT9YDHSn.js +0 -74
- package/dist/index-CUZnWZnQ.cjs +0 -3
- package/dist/index-CVNvgkJN.js +0 -342
- package/dist/index-C_NT6gCL.cjs +0 -1
- package/dist/index-CafCsH0Z.cjs +0 -1
- package/dist/index-Cei6J0b_.cjs +0 -8
- package/dist/index-CmcOKNW2.js +0 -302
- package/dist/index-CvpdOKX2.js +0 -136
- package/dist/index-CxE1PN5L.cjs +0 -1
- package/dist/index-D2BpI4Zz.cjs +0 -2
- package/dist/index-D40RPDMJ.cjs +0 -1
- package/dist/index-D5iq4kyE.cjs +0 -1
- package/dist/index-DFzKuRY8.cjs +0 -1
- package/dist/index-DIO9qaw5.cjs +0 -1
- package/dist/index-DIR2rO5B.cjs +0 -1
- package/dist/index-DPnQDm6f.js +0 -138
- package/dist/index-DU0jpFGR.cjs +0 -1
- package/dist/index-DUvVsNDG.cjs +0 -13
- package/dist/index-DVZnPL32.js +0 -953
- package/dist/index-DiYfLAVQ.js +0 -554
- package/dist/index-DnIheaHS.js +0 -251
- package/dist/index-Dp2K8q6O.cjs +0 -7
- package/dist/index-DrlNzz-e.js +0 -59
- package/dist/index-Dx9UDsJi.cjs +0 -1
- package/dist/index-DxY-AOQA.js +0 -157
- package/dist/index-Mmd0YHPJ.js +0 -960
- package/dist/index-NyiYUSW3.js +0 -101
- package/dist/index-alBMysbQ.js +0 -1874
- package/dist/index-lEkIbMCl.js +0 -612
- package/dist/index-qwDdlmIi.js +0 -270
- package/dist/index-x3mhc_C_.cjs +0 -1
- package/dist/it-5n3LuTHe.cjs +0 -1
- package/dist/ja-Bdp4_B8-.cjs +0 -1
- package/dist/javascript-C2yteZeJ.js +0 -691
- package/dist/javascript-DngSGg_0.cjs +0 -1
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/jinja2-wbVbDTNi.cjs +0 -1
- package/dist/julia-DA67Qw9E.cjs +0 -1
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/ko-B5SwKB-j.cjs +0 -1
- package/dist/livescript-Bg3URadp.cjs +0 -1
- package/dist/livescript-CanGTf8u.js +0 -272
- package/dist/lua-CIsxjGwi.cjs +0 -1
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/mathematica-BG089QIc.cjs +0 -1
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mbox-CySolFFZ.cjs +0 -1
- package/dist/milkdown/index.cjs.js +0 -1
- package/dist/milkdown/index.es.js +0 -4
- package/dist/milkdown-input-Bkgdi-Bv.cjs +0 -944
- package/dist/milkdown-input-CciSI_a5.js +0 -63967
- package/dist/milkdown-url-D99P-nA-.js +0 -4
- package/dist/milkdown-url-DqoUZH3u.cjs +0 -1
- package/dist/milkdown.css +0 -1914
- package/dist/mirc-BfqEffzk.cjs +0 -1
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/mllike-BSnXJBGA.js +0 -272
- package/dist/mllike-QUjwI6zq.cjs +0 -1
- package/dist/modal-CAKAT7wv.cjs +0 -1
- package/dist/modelica-B6Zhcb-M.cjs +0 -1
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-BToym4Bs.cjs +0 -1
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/mumps-wfyQdxSu.cjs +0 -1
- package/dist/nginx-CwqyBUfA.cjs +0 -1
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nl-Cenl4nr6.cjs +0 -1
- package/dist/notice-DBME6bFw.cjs +0 -2
- package/dist/notice-DVEacWKt.js +0 -2275
- package/dist/nsis-DPj2fUaP.cjs +0 -1
- package/dist/nsis-fePjrhq7.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/ntriples-DgwJmozm.cjs +0 -1
- package/dist/octave-1pkKrgAA.cjs +0 -1
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-BXOZCt0U.cjs +0 -1
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-De0D6mP7.js +0 -77
- package/dist/pascal-DtY2LEkJ.cjs +0 -1
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/perl-CVDWbEju.cjs +0 -1
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/pig-DMByOrnr.cjs +0 -1
- package/dist/pl-7xYNCk-v.cjs +0 -1
- package/dist/powershell-BaoYaFvj.cjs +0 -1
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/preprocess-CvkqwVNt.cjs +0 -3
- package/dist/preprocess-D898zxsP.js +0 -2295
- package/dist/properties-DXHJZ3WE.cjs +0 -1
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BKhXdfH6.cjs +0 -1
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/pt-DOLL0Jpj.cjs +0 -1
- package/dist/pug-CwAQJzGR.js +0 -248
- package/dist/pug-kEfRDOiF.cjs +0 -1
- package/dist/puppet-8mAyuMbW.cjs +0 -1
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/python-BkR3uSy8.js +0 -313
- package/dist/python-D-iU6WXz.cjs +0 -1
- package/dist/q-BPQ45Nxu.cjs +0 -1
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-LKEuhEGI.js +0 -104
- package/dist/r-r2_EZsON.cjs +0 -1
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/rpm-YK81m3qU.cjs +0 -1
- package/dist/ru-DoS9XuqG.cjs +0 -1
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/ruby-Cn1sFkZF.cjs +0 -1
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/sas-DAGcJy94.cjs +0 -1
- package/dist/scheme-B0ZrbojV.cjs +0 -1
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shell-BMYo43V6.cjs +0 -1
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/sieve-CIYW-b_H.cjs +0 -1
- package/dist/simple-mode-B0dvCdAA.js +0 -89
- package/dist/simple-mode-BIKNPBes.cjs +0 -1
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/smalltalk-CSslY-3i.cjs +0 -1
- package/dist/solr-A1kSnAwJ.cjs +0 -1
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-DnHMBLLY.cjs +0 -1
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-B7_BK8hB.cjs +0 -1
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/sql-9VmIWHrZ.cjs +0 -1
- package/dist/sql-CfG5lQ3l.js +0 -282
- package/dist/stex-B4wyjEnp.cjs +0 -1
- package/dist/stex-Du4h4KAU.js +0 -129
- package/dist/stylus-CAdqWld3.js +0 -250
- package/dist/stylus-D6GYOT3Z.cjs +0 -1
- package/dist/swift-DGw6Cgu8.cjs +0 -1
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-ByLXbQFo.cjs +0 -1
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/textile-iryw-lTw.cjs +0 -1
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiddlywiki-D8IJz1k7.cjs +0 -1
- package/dist/tiki-C5p5KSQK.cjs +0 -1
- package/dist/tiki-__Kn3CeS.js +0 -181
- package/dist/toml-3ZsH_4Qa.cjs +0 -1
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/tr-BVmoz40w.cjs +0 -1
- package/dist/translations-Dv56lQia.cjs +0 -1
- package/dist/troff-D-3QCOYN.cjs +0 -1
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-Bsa4sfRm.js +0 -123
- package/dist/ttcn-C2MXAqcM.cjs +0 -1
- package/dist/ttcn-cfg-BYqcMRxC.cjs +0 -1
- package/dist/ttcn-cfg-Bac_acMi.js +0 -88
- package/dist/turtle-DSJNatSv.cjs +0 -1
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/types/components/milkdown/milkdown-input.d.ts +0 -15
- package/dist/types/milkdown/index.d.ts +0 -1
- package/dist/ur-orNTOdMP.cjs +0 -1
- package/dist/utils-Dobqjl2y.cjs +0 -1
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vb-qzHzzvyB.cjs +0 -1
- package/dist/vbscript-1f_Dhg5H.js +0 -324
- package/dist/vbscript-CWm8v9tE.cjs +0 -1
- package/dist/velocity-D3_yAIp3.cjs +0 -1
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-BOhLNmQo.cjs +0 -1
- package/dist/verilog-CiS1jyi5.js +0 -262
- package/dist/vhdl-CMFbi8Im.cjs +0 -1
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/vi-BWyUDP07.cjs +0 -1
- package/dist/webidl-CWb_flNk.cjs +0 -1
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-BUQdORAS.js +0 -422
- package/dist/xquery-Cjw5fRnG.cjs +0 -1
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/yacas-urx_N5C8.cjs +0 -1
- package/dist/z80-CsG3CM6M.cjs +0 -1
- package/dist/z80-Pki2zAjW.js +0 -61
- package/dist/zh-RVJj1NQq.cjs +0 -1
- /package/dist/types/{components/milkdown/milkdown-url.d.ts → prosemirror/styles-url.d.ts} +0 -0
- /package/dist/types/{milkdown → prosemirror}/styles.d.ts +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,45 +1,48 @@
|
|
|
1
|
-
import { prop as
|
|
2
|
-
import { Use as
|
|
3
|
-
import { PopOver as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { T as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
1
|
+
import { prop as j, html as m, attr as s, computedOf as y, Use as Y, Empty as O, Value as S, WithElement as Q, Fragment as M, aria as A, OnDispose as W, OneOfValue as Ut, on as $, style as h, coalesce as Ne, When as te, ForEach as pe, Ensure as _e, OneOfType as pt, dataAttr as Ee, NotEmpty as zt, input as X, emitValue as P, emitValueAsDate as Wt, Portal as mt, WithProvider as qt, Task as Zt, Provide as bt, makeProviderMark as Yt, MapSignal as ft, svg as Ze, svgAttr as Ye } from "@tempots/dom";
|
|
2
|
+
import { Use as ms } from "@tempots/dom";
|
|
3
|
+
import { PopOver as Gt, ElementRect as ve, WindowSize as Kt, Query as Xt, Location as ge, NavigationService as Jt, Anchor as Fe } from "@tempots/ui";
|
|
4
|
+
import { a as ne, c as Ie, h as Ge, I as U, B as Ke, b as q, C as G, L as He, t as Xe, g as Je, i as Qe } from "./translations-D4PjDB1t.js";
|
|
5
|
+
import { v as fs, T as gs, j as hs, d as vs, f as xs, p as ys, o as ws, l as Ss, u as Cs, w as ks, k as Is, q as $s, m as Ts, n as _s, r as Ds, s as Vs } from "./translations-D4PjDB1t.js";
|
|
6
|
+
import { T as gt, a as Qt } from "./theme-CJVt8QIc.js";
|
|
7
|
+
import { t as Bs, am as Ls, f as Ms, J as Os, c as Ns, N as Ps, I as Es, K as Fs, d as Hs, k as Rs, b as js, a as Us, ab as zs, o as Ws, a0 as qs, ae as Zs, q as Ys, H as Gs, A as Ks, al as Xs, g as Js, E as Qs, x as el, aj as tl, $ as nl, a4 as al, j as sl, i as ll, h as rl, Y as ol, X as il, Q as ul, P as cl, S as dl, R as pl, W as ml, V as bl, U as fl, T as gl, a8 as hl, a7 as vl, aa as xl, a9 as yl, n as wl, m as Sl, l as Cl, _ as kl, Z as Il, ad as $l, p as Tl, G as _l, z as Dl, ak as Vl, D as Al, C as Bl, w as Ll, v as Ml, ai as Ol, ah as Nl, e as Pl, a3 as El, a2 as Fl, M as Hl, L as Rl, a5 as jl, a6 as Ul, r as zl, O as Wl, ac as ql, s as Zl, F as Yl, y as Gl, ag as Kl, B as Xl, u as Jl, af as Ql, a1 as er } from "./index-DJJ67-RV.js";
|
|
8
|
+
import { C as ht, s as re, m as vt, d as xt, I as Re, B as yt, c as wt, S as je, e as en } from "./notice-Dz_BJg8D.js";
|
|
9
|
+
import { A as nr, g as ar, b as sr, D as lr, E as rr, v as or, L as ir, M as ur, x as cr, N as dr, i as pr, P as mr, R as br, n as fr, q as gr, o as hr, k as vr, j as xr, f as yr, p as wr, h as Sr, r as Cr, t as kr, l as Ir, u as $r, w as Tr } from "./notice-Dz_BJg8D.js";
|
|
10
|
+
import { S as tn, G as St, E as nn, F as an, N as Ct, a as oe, M as me, e as et, n as sn, W as J, d as ln } from "./utils-DY9kZecl.js";
|
|
11
|
+
import { g as Dr, i as Vr, B as Ar, l as Br, O as Lr, C as Mr, j as Or, L as Nr, k as Pr, m as Er, o as Fr, p as Hr, I as Rr, q as jr, w as Ur, r as zr, A as Wr, H as qr, s as Zr, u as Yr, z as Gr, K as Kr, v as Xr, R as Jr, D as Qr, x as eo, T as to, y as no, b as ao, U as so, J as lo, P as ro, Q as oo, V as io, h as uo, c as co, t as po, f as mo } from "./utils-DY9kZecl.js";
|
|
12
|
+
import { g as $e } from "./timer-CQlK5LhW.js";
|
|
13
|
+
import { u as he, A as Pe, O as rn, F as on } from "./modal-CuhK7DqK.js";
|
|
14
|
+
import { B as fo, C as go, M as ho, a as vo, S as xo, b as yo, c as wo, o as So, s as Co, e as ko, d as Io, f as $o } from "./modal-CuhK7DqK.js";
|
|
15
|
+
import { L as _o } from "./link-portal-Cr2l9f3k.js";
|
|
16
|
+
import { T as Vo, a as Ao, c as Bo, b as Lo, d as Mo } from "./toolbar-DTh9Ouhs.js";
|
|
17
|
+
import { b as No, e as Po, i as Eo, a as Fo, c as Ho, o as Ro, l as jo, m as Uo, g as zo, k as Wo, j as qo, n as Zo, r as Yo, s as Go, d as Ko, h as Xo, t as Jo } from "./colors-WfmhQ5e1.js";
|
|
15
18
|
function Te(e) {
|
|
16
19
|
if (typeof e != "string") return !1;
|
|
17
20
|
const n = e.startsWith("#") ? e.slice(1) : e;
|
|
18
21
|
return /^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(n);
|
|
19
22
|
}
|
|
20
|
-
function
|
|
23
|
+
function un(e) {
|
|
21
24
|
if (typeof e != "string") return !1;
|
|
22
25
|
const n = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i, t = e.match(n);
|
|
23
26
|
if (!t) return !1;
|
|
24
|
-
const [, a, l, r] = t,
|
|
25
|
-
return
|
|
27
|
+
const [, a, l, r] = t, u = parseInt(a, 10), c = parseInt(l, 10), i = parseInt(r, 10);
|
|
28
|
+
return u >= 0 && u <= 255 && c >= 0 && c <= 255 && i >= 0 && i <= 255;
|
|
26
29
|
}
|
|
27
|
-
function
|
|
30
|
+
function cn(e) {
|
|
28
31
|
if (typeof e != "string") return !1;
|
|
29
32
|
const n = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0|1|0?\.\d+)\s*\)$/i, t = e.match(n);
|
|
30
33
|
if (!t) return !1;
|
|
31
|
-
const [, a, l, r,
|
|
32
|
-
return c >= 0 && c <= 255 &&
|
|
34
|
+
const [, a, l, r, u] = t, c = parseInt(a, 10), i = parseInt(l, 10), o = parseInt(r, 10), d = parseFloat(u);
|
|
35
|
+
return c >= 0 && c <= 255 && i >= 0 && i <= 255 && o >= 0 && o <= 255 && d >= 0 && d <= 1;
|
|
33
36
|
}
|
|
34
|
-
function
|
|
37
|
+
function dn(e) {
|
|
35
38
|
if (typeof e != "string") return !1;
|
|
36
39
|
const n = /^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/i, t = e.match(n);
|
|
37
40
|
if (!t) return !1;
|
|
38
|
-
const [, a, l, r] = t,
|
|
39
|
-
return
|
|
41
|
+
const [, a, l, r] = t, u = parseInt(a, 10), c = parseInt(l, 10), i = parseInt(r, 10);
|
|
42
|
+
return u >= 0 && u <= 360 && c >= 0 && c <= 100 && i >= 0 && i <= 100;
|
|
40
43
|
}
|
|
41
|
-
function
|
|
42
|
-
return Te(e) ||
|
|
44
|
+
function pn(e) {
|
|
45
|
+
return Te(e) || un(e) || cn(e) || dn(e);
|
|
43
46
|
}
|
|
44
47
|
function ce(e) {
|
|
45
48
|
if (!Te(e)) return null;
|
|
@@ -53,7 +56,7 @@ function oa(e, n, t) {
|
|
|
53
56
|
};
|
|
54
57
|
return `#${a(e)}${a(n)}${a(t)}`;
|
|
55
58
|
}
|
|
56
|
-
function
|
|
59
|
+
function tt(e) {
|
|
57
60
|
const n = ce(e);
|
|
58
61
|
if (!n) return null;
|
|
59
62
|
const t = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);
|
|
@@ -64,39 +67,39 @@ function nt(e) {
|
|
|
64
67
|
} : null;
|
|
65
68
|
}
|
|
66
69
|
function ia(e, n) {
|
|
67
|
-
const t =
|
|
70
|
+
const t = tt(e), a = tt(n);
|
|
68
71
|
if (!t || !a) return null;
|
|
69
|
-
const l = (o, d,
|
|
70
|
-
const [x, p, g] = [o, d,
|
|
72
|
+
const l = (o, d, f) => {
|
|
73
|
+
const [x, p, g] = [o, d, f].map((v) => (v = v / 255, v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4)));
|
|
71
74
|
return 0.2126 * x + 0.7152 * p + 0.0722 * g;
|
|
72
|
-
}, r = l(t.r, t.g, t.b),
|
|
73
|
-
return (c + 0.05) / (
|
|
75
|
+
}, r = l(t.r, t.g, t.b), u = l(a.r, a.g, a.b), c = Math.max(r, u), i = Math.min(r, u);
|
|
76
|
+
return (c + 0.05) / (i + 0.05);
|
|
74
77
|
}
|
|
75
78
|
function ua(e, n = 0, t = () => !0) {
|
|
76
79
|
let a = null, l;
|
|
77
|
-
const r =
|
|
78
|
-
return e.on((
|
|
79
|
-
l =
|
|
80
|
+
const r = j(e.value);
|
|
81
|
+
return e.on((u) => {
|
|
82
|
+
l = u, t(u) ? a == null && (a = setTimeout(() => {
|
|
80
83
|
a = null, r.set(l);
|
|
81
|
-
}, n)) : r.set(
|
|
84
|
+
}, n)) : r.set(u);
|
|
82
85
|
}), e.onDispose(() => {
|
|
83
86
|
a != null && clearTimeout(a);
|
|
84
87
|
}), r;
|
|
85
88
|
}
|
|
86
|
-
const
|
|
89
|
+
const nt = (e, n) => e < n ? e : n, Ce = (e, n) => e > n ? e : n, Le = ["xs", "sm", "md", "lg", "xl"];
|
|
87
90
|
function ca(e, n = 1) {
|
|
88
|
-
const t =
|
|
91
|
+
const t = Le.indexOf(e);
|
|
89
92
|
if (t === -1)
|
|
90
93
|
throw new Error(`Invalid size: ${e}`);
|
|
91
|
-
const a = Math.min(Math.max(t + n, 0),
|
|
92
|
-
return
|
|
94
|
+
const a = Math.min(Math.max(t + n, 0), Le.length - 1);
|
|
95
|
+
return Le[a];
|
|
93
96
|
}
|
|
94
|
-
function
|
|
97
|
+
function mn(e, n) {
|
|
95
98
|
const t = ["bc-tag"];
|
|
96
99
|
return e !== "md" && t.push(`bc-tag--${e}`), n && t.push("bc-tag--disabled"), t.join(" ");
|
|
97
100
|
}
|
|
98
|
-
function
|
|
99
|
-
const n =
|
|
101
|
+
function bn(e) {
|
|
102
|
+
const n = Ie(e, "light", "light"), t = Ie(e, "light", "dark"), a = Ge(e, "light", "light"), l = Ge(e, "light", "dark");
|
|
100
103
|
return [
|
|
101
104
|
`--tag-bg: ${n.backgroundColor}`,
|
|
102
105
|
`--tag-text: ${n.textColor}`,
|
|
@@ -108,7 +111,7 @@ function fn(e) {
|
|
|
108
111
|
`--tag-text-hover-dark: ${l.textColor}`
|
|
109
112
|
].join("; ");
|
|
110
113
|
}
|
|
111
|
-
const
|
|
114
|
+
const kt = ({
|
|
112
115
|
value: e,
|
|
113
116
|
color: n = "base",
|
|
114
117
|
onClose: t,
|
|
@@ -120,11 +123,11 @@ const It = ({
|
|
|
120
123
|
y(
|
|
121
124
|
a ?? "md",
|
|
122
125
|
r ?? !1
|
|
123
|
-
)((
|
|
126
|
+
)((u, c) => mn(u, c))
|
|
124
127
|
),
|
|
125
128
|
s.style(
|
|
126
129
|
y(n)(
|
|
127
|
-
(
|
|
130
|
+
(u) => bn(u ?? "base")
|
|
128
131
|
)
|
|
129
132
|
),
|
|
130
133
|
// Allow external classes like bc-tag--disabled to be applied
|
|
@@ -132,10 +135,10 @@ const It = ({
|
|
|
132
135
|
m.span(e),
|
|
133
136
|
t != null ? Y(
|
|
134
137
|
ne,
|
|
135
|
-
(
|
|
138
|
+
(u) => ht(
|
|
136
139
|
{
|
|
137
140
|
size: "xs",
|
|
138
|
-
label:
|
|
141
|
+
label: u.$.removeItem,
|
|
139
142
|
color: "white",
|
|
140
143
|
disabled: r,
|
|
141
144
|
onClick: () => t?.(S.get(e))
|
|
@@ -144,27 +147,27 @@ const It = ({
|
|
|
144
147
|
)
|
|
145
148
|
) : O
|
|
146
149
|
);
|
|
147
|
-
function
|
|
150
|
+
function fn({
|
|
148
151
|
value: e,
|
|
149
152
|
onChange: n,
|
|
150
153
|
disabled: t
|
|
151
154
|
}) {
|
|
152
|
-
return
|
|
155
|
+
return tn({
|
|
153
156
|
size: "sm",
|
|
154
157
|
value: e,
|
|
155
158
|
disabled: t,
|
|
156
159
|
options: {
|
|
157
160
|
system: m.span(
|
|
158
161
|
s.title("System"),
|
|
159
|
-
|
|
162
|
+
U({ icon: "line-md:laptop", color: "gray" })
|
|
160
163
|
),
|
|
161
164
|
light: m.span(
|
|
162
165
|
s.title("Light"),
|
|
163
|
-
|
|
166
|
+
U({ icon: "line-md:sunny-twotone-loop", color: "yellow" })
|
|
164
167
|
),
|
|
165
168
|
dark: m.span(
|
|
166
169
|
s.title("Dark"),
|
|
167
|
-
|
|
170
|
+
U({
|
|
168
171
|
icon: "line-md:sunny-outline-to-moon-alt-loop-transition",
|
|
169
172
|
color: "blue"
|
|
170
173
|
})
|
|
@@ -175,66 +178,66 @@ function gn({
|
|
|
175
178
|
}
|
|
176
179
|
function da() {
|
|
177
180
|
return Y(
|
|
178
|
-
|
|
179
|
-
({ appearancePreference: e, setAppearancePreference: n }) =>
|
|
181
|
+
gt,
|
|
182
|
+
({ appearancePreference: e, setAppearancePreference: n }) => fn({
|
|
180
183
|
value: e,
|
|
181
184
|
onChange: n
|
|
182
185
|
})
|
|
183
186
|
);
|
|
184
187
|
}
|
|
185
|
-
function
|
|
188
|
+
function gn(e) {
|
|
186
189
|
return e.startsWith("top") ? "flyout-top" : e.startsWith("bottom") ? "flyout-bottom" : e.startsWith("left") ? "flyout-left" : e.startsWith("right") ? "flyout-right" : "scale-fade";
|
|
187
190
|
}
|
|
188
|
-
function
|
|
191
|
+
function De(e) {
|
|
189
192
|
const {
|
|
190
193
|
content: n,
|
|
191
194
|
placement: t = "top",
|
|
192
195
|
showDelay: a = 250,
|
|
193
196
|
hideDelay: l = 500,
|
|
194
197
|
mainAxisOffset: r = 8,
|
|
195
|
-
crossAxisOffset:
|
|
198
|
+
crossAxisOffset: u = 0,
|
|
196
199
|
showOn: c = "hover-focus",
|
|
197
|
-
closable:
|
|
200
|
+
closable: i = !0,
|
|
198
201
|
arrow: o,
|
|
199
202
|
role: d,
|
|
200
|
-
hasPopup:
|
|
203
|
+
hasPopup: f = "dialog"
|
|
201
204
|
} = e;
|
|
202
|
-
return
|
|
205
|
+
return Gt((x, p) => {
|
|
203
206
|
const g = he({
|
|
204
207
|
initialStatus: "closed"
|
|
205
|
-
}), v = re("flyout"),
|
|
206
|
-
let C = null,
|
|
208
|
+
}), v = re("flyout"), T = j(!1);
|
|
209
|
+
let C = null, b = null, w = null, D = !1;
|
|
207
210
|
function V() {
|
|
208
|
-
k != null && (clearTimeout(k), k = null),
|
|
211
|
+
k != null && (clearTimeout(k), k = null), B != null && (clearTimeout(B), B = null), w && (w(), w = null), b && (b(), b = null), C && (document.removeEventListener("keydown", C), C = null), T.set(!1), D = !1;
|
|
209
212
|
}
|
|
210
213
|
function E() {
|
|
211
|
-
S.get(
|
|
214
|
+
S.get(i) && (C = (H) => {
|
|
212
215
|
H.key === "Escape" && N();
|
|
213
|
-
}, document.addEventListener("keydown", C)), D = !0,
|
|
216
|
+
}, document.addEventListener("keydown", C)), D = !0, T.set(!0), x({
|
|
214
217
|
placement: t ?? "top",
|
|
215
218
|
mainAxisOffset: r,
|
|
216
|
-
crossAxisOffset:
|
|
219
|
+
crossAxisOffset: u,
|
|
217
220
|
onClickOutside: () => {
|
|
218
|
-
S.get(
|
|
221
|
+
S.get(i) && N();
|
|
219
222
|
},
|
|
220
223
|
arrow: o,
|
|
221
|
-
content:
|
|
222
|
-
g.setElement(H), w =
|
|
224
|
+
content: Q((H) => {
|
|
225
|
+
g.setElement(H), w = $e(() => {
|
|
223
226
|
g.open(), w = null;
|
|
224
227
|
});
|
|
225
|
-
const F = (
|
|
226
|
-
S.get(
|
|
228
|
+
const F = (z) => {
|
|
229
|
+
S.get(i) && z.key === "Escape" && (z.preventDefault(), z.stopPropagation(), N(), T.set(!1));
|
|
227
230
|
};
|
|
228
231
|
return document.addEventListener("keydown", F, !0), M(
|
|
229
|
-
|
|
232
|
+
W(() => {
|
|
230
233
|
V(), document.removeEventListener("keydown", F, !0);
|
|
231
234
|
}),
|
|
232
235
|
s.class("bc-flyout"),
|
|
233
236
|
s.id(v),
|
|
234
237
|
s.tabindex(-1),
|
|
235
238
|
// Make focusable for screen readers
|
|
236
|
-
|
|
237
|
-
S.map(t,
|
|
239
|
+
Pe(
|
|
240
|
+
S.map(t, gn),
|
|
238
241
|
g.status
|
|
239
242
|
),
|
|
240
243
|
d ? s.role(d) : s.role("dialog"),
|
|
@@ -245,8 +248,8 @@ function Ae(e) {
|
|
|
245
248
|
});
|
|
246
249
|
}
|
|
247
250
|
let k = null;
|
|
248
|
-
function
|
|
249
|
-
if (k != null && (clearTimeout(k), k = null),
|
|
251
|
+
function _() {
|
|
252
|
+
if (k != null && (clearTimeout(k), k = null), B != null && (clearTimeout(B), B = null), b && (b(), b = null), g.isOpened.value || g.isOpening.value || g.isStartOpening.value)
|
|
250
253
|
return;
|
|
251
254
|
if (g.isClosing.value || g.isStartClosing.value) {
|
|
252
255
|
g.open();
|
|
@@ -257,68 +260,68 @@ function Ae(e) {
|
|
|
257
260
|
k = null, E();
|
|
258
261
|
}, H);
|
|
259
262
|
}
|
|
260
|
-
let
|
|
263
|
+
let B = null;
|
|
261
264
|
function N() {
|
|
262
|
-
if (k != null && (clearTimeout(k), k = null),
|
|
265
|
+
if (k != null && (clearTimeout(k), k = null), B != null && (clearTimeout(B), B = null), T.set(!1), w && (w(), w = null, D)) {
|
|
263
266
|
p(), V();
|
|
264
267
|
return;
|
|
265
268
|
}
|
|
266
269
|
const H = S.get(l);
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
B = setTimeout(() => {
|
|
271
|
+
B = null, b && (b(), b = null), g.close(), b = g.onClosed(() => {
|
|
269
272
|
p(), V();
|
|
270
273
|
});
|
|
271
274
|
}, H);
|
|
272
275
|
}
|
|
273
|
-
return
|
|
276
|
+
return Q((H) => {
|
|
274
277
|
const F = () => {
|
|
275
|
-
|
|
276
|
-
},
|
|
277
|
-
N(),
|
|
278
|
+
_(), T.set(!0);
|
|
279
|
+
}, z = () => {
|
|
280
|
+
N(), T.set(!1);
|
|
278
281
|
}, xe = M(
|
|
279
|
-
A.expanded(
|
|
282
|
+
A.expanded(T),
|
|
280
283
|
A.controls(v),
|
|
281
284
|
A.haspopup(
|
|
282
|
-
|
|
285
|
+
f
|
|
283
286
|
)
|
|
284
287
|
);
|
|
285
288
|
if (typeof c == "function")
|
|
286
289
|
return M(
|
|
287
290
|
xe,
|
|
288
|
-
c(F,
|
|
291
|
+
c(F, z)
|
|
289
292
|
);
|
|
290
293
|
const be = c;
|
|
291
294
|
return M(
|
|
292
295
|
xe,
|
|
293
|
-
|
|
296
|
+
W(() => {
|
|
294
297
|
g.dispose();
|
|
295
298
|
}),
|
|
296
|
-
|
|
299
|
+
Ut(be, {
|
|
297
300
|
"hover-focus": () => M(
|
|
298
301
|
$.mouseenter(() => F()),
|
|
299
|
-
$.mouseleave(() =>
|
|
302
|
+
$.mouseleave(() => z()),
|
|
300
303
|
$.focus(() => F()),
|
|
301
|
-
$.blur(() =>
|
|
304
|
+
$.blur(() => z())
|
|
302
305
|
),
|
|
303
306
|
hover: () => M(
|
|
304
307
|
$.mouseenter(() => F()),
|
|
305
|
-
$.mouseleave(() =>
|
|
308
|
+
$.mouseleave(() => z())
|
|
306
309
|
),
|
|
307
310
|
focus: () => M(
|
|
308
311
|
$.focus(() => F()),
|
|
309
|
-
$.blur(() =>
|
|
312
|
+
$.blur(() => z())
|
|
310
313
|
),
|
|
311
314
|
click: () => {
|
|
312
315
|
function ye() {
|
|
313
316
|
document.removeEventListener("click", de);
|
|
314
317
|
}
|
|
315
318
|
function de() {
|
|
316
|
-
ye(),
|
|
319
|
+
ye(), z();
|
|
317
320
|
}
|
|
318
321
|
return M(
|
|
319
|
-
|
|
322
|
+
W(ye),
|
|
320
323
|
$.click(() => {
|
|
321
|
-
F(),
|
|
324
|
+
F(), $e(() => {
|
|
322
325
|
document.addEventListener("click", de, {
|
|
323
326
|
once: !0
|
|
324
327
|
});
|
|
@@ -332,31 +335,31 @@ function Ae(e) {
|
|
|
332
335
|
});
|
|
333
336
|
});
|
|
334
337
|
}
|
|
335
|
-
const
|
|
336
|
-
function
|
|
337
|
-
for (const n of
|
|
338
|
+
const hn = ["!=", "<=", ">=", "<", ">", "="];
|
|
339
|
+
function vn(e) {
|
|
340
|
+
for (const n of hn)
|
|
338
341
|
if (typeof e == "string" && e.startsWith(n))
|
|
339
342
|
return [n, e.slice(n.length)];
|
|
340
343
|
return ["=", e];
|
|
341
344
|
}
|
|
342
|
-
function
|
|
343
|
-
const [a, l] =
|
|
345
|
+
function xn(e, n, t) {
|
|
346
|
+
const [a, l] = vn(n), r = e.findIndex((i) => i[1] === l);
|
|
344
347
|
if (r === -1)
|
|
345
348
|
throw new Error(`Breakpoint ${String(l)} not found`);
|
|
346
|
-
const
|
|
349
|
+
const u = e[r][0], c = r < e.length - 1 ? e[r + 1][0] : 1 / 0;
|
|
347
350
|
switch (a) {
|
|
348
351
|
case "=":
|
|
349
|
-
return t >=
|
|
352
|
+
return t >= u && t < c;
|
|
350
353
|
case "!=":
|
|
351
|
-
return !(t >=
|
|
354
|
+
return !(t >= u && t < c);
|
|
352
355
|
case "<=":
|
|
353
|
-
return t <=
|
|
356
|
+
return t <= u;
|
|
354
357
|
case ">=":
|
|
355
|
-
return t >=
|
|
358
|
+
return t >= u;
|
|
356
359
|
case "<":
|
|
357
|
-
return t <
|
|
360
|
+
return t < u;
|
|
358
361
|
case ">":
|
|
359
|
-
return t >
|
|
362
|
+
return t > u;
|
|
360
363
|
default:
|
|
361
364
|
return !1;
|
|
362
365
|
}
|
|
@@ -365,32 +368,32 @@ function pa(e, n) {
|
|
|
365
368
|
const t = e.findIndex((a) => a[0] > n) - 1;
|
|
366
369
|
return t >= 0 ? e[t][1] : (e.length > 0 && n >= e[0][0], e[0][1]);
|
|
367
370
|
}
|
|
368
|
-
function
|
|
371
|
+
function It(e, { breakpoints: n, mode: t = "viewport" }) {
|
|
369
372
|
const l = [...Object.entries(n).map(
|
|
370
|
-
([
|
|
371
|
-
)].sort((
|
|
372
|
-
const c =
|
|
373
|
-
const d = l.findIndex((
|
|
373
|
+
([u, c]) => [c, u]
|
|
374
|
+
)].sort((u, c) => u[0] - c[0]), r = (u) => {
|
|
375
|
+
const c = u.map(({ width: o }) => {
|
|
376
|
+
const d = l.findIndex((f) => f[0] > o) - 1;
|
|
374
377
|
return d >= 0 ? { width: o, breakpoint: l[d][1] } : l.length > 0 && o >= l[0][0] ? { width: o, breakpoint: l[0][1] } : { width: o, breakpoint: l[0][1] };
|
|
375
378
|
});
|
|
376
379
|
return e({
|
|
377
380
|
value: c,
|
|
378
381
|
breakpoints: n,
|
|
379
382
|
asList: l,
|
|
380
|
-
is: (o, d) =>
|
|
383
|
+
is: (o, d) => xn(l, o, d)
|
|
381
384
|
});
|
|
382
385
|
};
|
|
383
|
-
return t === "element" ? ve(r) :
|
|
386
|
+
return t === "element" ? ve(r) : Kt(r);
|
|
384
387
|
}
|
|
385
|
-
let
|
|
386
|
-
function
|
|
387
|
-
return e ? (isNaN(
|
|
388
|
+
let Me = NaN;
|
|
389
|
+
function yn(e, n) {
|
|
390
|
+
return e ? (isNaN(Me) && (Me = parseFloat(getComputedStyle(document.documentElement).fontSize)), parseFloat(e) * Me) : n;
|
|
388
391
|
}
|
|
389
392
|
function Z(e, n, t) {
|
|
390
|
-
return
|
|
393
|
+
return yn(e.getPropertyValue(n), t);
|
|
391
394
|
}
|
|
392
|
-
function
|
|
393
|
-
return
|
|
395
|
+
function wn(e) {
|
|
396
|
+
return Q((n) => {
|
|
394
397
|
const t = getComputedStyle(n), a = {
|
|
395
398
|
zero: 0,
|
|
396
399
|
xs: Z(t, "--breakpoint-xs", 640),
|
|
@@ -399,11 +402,11 @@ function Sn(e) {
|
|
|
399
402
|
lg: Z(t, "--breakpoint-lg", 1280),
|
|
400
403
|
xl: Z(t, "--breakpoint-xl", 1536)
|
|
401
404
|
};
|
|
402
|
-
return
|
|
405
|
+
return It(e, { breakpoints: a });
|
|
403
406
|
});
|
|
404
407
|
}
|
|
405
408
|
function ma(e) {
|
|
406
|
-
return
|
|
409
|
+
return Q((n) => {
|
|
407
410
|
const t = getComputedStyle(n), a = {
|
|
408
411
|
zero: 0,
|
|
409
412
|
"3xs": Z(t, "--container-3xs", 256),
|
|
@@ -419,7 +422,7 @@ function ma(e) {
|
|
|
419
422
|
"5xl": Z(t, "--container-5xl", 1536),
|
|
420
423
|
"6xl": Z(t, "--container-6xl", 2048)
|
|
421
424
|
};
|
|
422
|
-
return
|
|
425
|
+
return It(e, {
|
|
423
426
|
breakpoints: a,
|
|
424
427
|
mode: "element"
|
|
425
428
|
});
|
|
@@ -430,9 +433,9 @@ function ae(e, n) {
|
|
|
430
433
|
}
|
|
431
434
|
function ie(e) {
|
|
432
435
|
const n = S.toSignal(e).map(
|
|
433
|
-
(a) =>
|
|
436
|
+
(a) => Ie(a, "lighter", "light")
|
|
434
437
|
), t = S.toSignal(e).map(
|
|
435
|
-
(a) =>
|
|
438
|
+
(a) => Ie(a, "lighter", "dark")
|
|
436
439
|
);
|
|
437
440
|
return M(
|
|
438
441
|
h.variable("--panel-bg", n.$.backgroundColor),
|
|
@@ -499,7 +502,7 @@ const se = {
|
|
|
499
502
|
xl: 280
|
|
500
503
|
}
|
|
501
504
|
};
|
|
502
|
-
function
|
|
505
|
+
function at(e, n) {
|
|
503
506
|
if (typeof e == "number")
|
|
504
507
|
return {
|
|
505
508
|
zero: e,
|
|
@@ -519,20 +522,20 @@ function st(e, n) {
|
|
|
519
522
|
};
|
|
520
523
|
return t.xs < t.zero && (t.xs = t.zero), t.sm < t.xs && (t.sm = t.xs), t.md < t.sm && (t.md = t.sm), t.lg < t.md && (t.lg = t.md), t.xl < t.lg && (t.xl = t.lg), t;
|
|
521
524
|
}
|
|
522
|
-
function
|
|
525
|
+
function Oe(e) {
|
|
523
526
|
e = e.filter((n) => n.some((t) => t != null && !t.startsWith("?")));
|
|
524
527
|
for (let n = 0; n < e[0].length; n++)
|
|
525
528
|
e.every((t) => t[n] == null || t[n].startsWith("?")) && (e = e.map((t) => t.filter((a, l) => l !== n)), n--);
|
|
526
529
|
return e = e.map((n) => n.map((t) => t?.startsWith("?") ? t.slice(1) : t)), e;
|
|
527
530
|
}
|
|
528
|
-
function
|
|
531
|
+
function Sn({
|
|
529
532
|
smallBreakpoint: e,
|
|
530
533
|
mediumBreakpoint: n,
|
|
531
534
|
vertical: t,
|
|
532
535
|
horizontal: a,
|
|
533
536
|
is: l
|
|
534
537
|
}) {
|
|
535
|
-
function r(
|
|
538
|
+
function r(i) {
|
|
536
539
|
let o = [
|
|
537
540
|
[null],
|
|
538
541
|
[null],
|
|
@@ -543,21 +546,21 @@ function Cn({
|
|
|
543
546
|
];
|
|
544
547
|
const d = [];
|
|
545
548
|
d.push("1fr");
|
|
546
|
-
const
|
|
547
|
-
return a.banner && (
|
|
548
|
-
(a.header?.[
|
|
549
|
-
), o[1][1] = "header"), a.mainHeader && (
|
|
549
|
+
const f = [];
|
|
550
|
+
return a.banner && (f.push(a.banner[i] + "px"), o[0][1] = "banner"), (a.header || t.menu || t.aside) && (f.push(
|
|
551
|
+
(a.header?.[i] ?? se.header[i]) + "px"
|
|
552
|
+
), o[1][1] = "header"), a.mainHeader && (f.push(a.mainHeader[i] + "px"), o[2][1] = "mainHeader"), f.push("1fr"), o[3][1] = "main", a.mainFooter && (f.push(a.mainFooter[i] + "px"), o[4][1] = "mainFooter"), a.footer && (f.push(a.footer[i] + "px"), o[5][1] = "footer"), o = Oe(o), {
|
|
550
553
|
columns: d.join(" "),
|
|
551
|
-
rows:
|
|
554
|
+
rows: f.join(" "),
|
|
552
555
|
areas: o.map((p) => `"${p.join(" ")}"`).join(`
|
|
553
556
|
`),
|
|
554
557
|
displayMenu: !1,
|
|
555
558
|
displayAside: !1,
|
|
556
|
-
menuWidth: se.menu[
|
|
557
|
-
asideWidth: se.aside[
|
|
559
|
+
menuWidth: se.menu[i] + "px",
|
|
560
|
+
asideWidth: se.aside[i] + "px"
|
|
558
561
|
};
|
|
559
562
|
}
|
|
560
|
-
function i
|
|
563
|
+
function u(i) {
|
|
561
564
|
let o = [
|
|
562
565
|
[null, null],
|
|
563
566
|
[null, null],
|
|
@@ -567,22 +570,22 @@ function Cn({
|
|
|
567
570
|
[null, null]
|
|
568
571
|
];
|
|
569
572
|
const d = [];
|
|
570
|
-
t.menu && (d.push(t.menu[
|
|
571
|
-
const
|
|
572
|
-
return a.banner && (
|
|
573
|
-
(a.header?.[
|
|
574
|
-
), o[1][0] = "?header", o[1][1] = "header"), a.mainHeader && (
|
|
573
|
+
t.menu && (d.push(t.menu[i] + "px"), o[2][0] = "?menu", o[3][0] = "menu", o[4][0] = "?menu"), d.push("1fr");
|
|
574
|
+
const f = [];
|
|
575
|
+
return a.banner && (f.push(a.banner[i] + "px"), o[0][0] = "?banner", o[0][1] = "banner"), (a.header || t.aside) && (f.push(
|
|
576
|
+
(a.header?.[i] ?? se.header[i]) + "px"
|
|
577
|
+
), o[1][0] = "?header", o[1][1] = "header"), a.mainHeader && (f.push(a.mainHeader[i] + "px"), o[2][1] = "mainHeader"), f.push("1fr"), o[3][1] = "main", a.mainFooter && (f.push(a.mainFooter[i] + "px"), o[4][1] = "mainFooter"), a.footer && (f.push(a.footer[i] + "px"), o[5][0] = "?footer", o[5][1] = "footer"), o = Oe(o), {
|
|
575
578
|
columns: d.join(" "),
|
|
576
|
-
rows:
|
|
579
|
+
rows: f.join(" "),
|
|
577
580
|
areas: o.map((p) => `"${p.join(" ")}"`).join(`
|
|
578
581
|
`),
|
|
579
582
|
displayMenu: !0,
|
|
580
583
|
displayAside: !1,
|
|
581
|
-
menuWidth: se.menu[
|
|
582
|
-
asideWidth: se.aside[
|
|
584
|
+
menuWidth: se.menu[i] + "px",
|
|
585
|
+
asideWidth: se.aside[i] + "px"
|
|
583
586
|
};
|
|
584
587
|
}
|
|
585
|
-
function c(
|
|
588
|
+
function c(i) {
|
|
586
589
|
let o = [
|
|
587
590
|
[null, null, null],
|
|
588
591
|
[null, null, null],
|
|
@@ -592,35 +595,35 @@ function Cn({
|
|
|
592
595
|
[null, null, null]
|
|
593
596
|
];
|
|
594
597
|
const d = [];
|
|
595
|
-
t.menu && (d.push(t.menu[
|
|
596
|
-
const
|
|
597
|
-
return a.banner && (
|
|
598
|
+
t.menu && (d.push(t.menu[i] + "px"), o[2][0] = "?menu", o[3][0] = "menu", o[4][0] = "?menu"), d.push("1fr"), t.aside && (d.push(t.aside[i] + "px"), o[2][2] = "?aside", o[3][2] = "aside", o[4][2] = "?aside");
|
|
599
|
+
const f = [];
|
|
600
|
+
return a.banner && (f.push(a.banner[i] + "px"), o[0][0] = "?banner", o[0][1] = "banner", o[0][2] = "?banner"), a.header && (f.push(a.header[i] + "px"), o[1][0] = "?header", o[1][1] = "header", o[1][2] = "?header"), a.mainHeader && (f.push(a.mainHeader[i] + "px"), o[2][1] = "mainHeader"), f.push("1fr"), o[3][1] = "main", a.mainFooter && (f.push(a.mainFooter[i] + "px"), o[4][1] = "mainFooter"), a.footer && (f.push(a.footer[i] + "px"), o[5][0] = "?footer", o[5][1] = "footer", o[5][2] = "?footer"), o = Oe(o), {
|
|
598
601
|
columns: d.join(" "),
|
|
599
|
-
rows:
|
|
602
|
+
rows: f.join(" "),
|
|
600
603
|
areas: o.map((p) => `"${p.join(" ")}"`).join(`
|
|
601
604
|
`),
|
|
602
605
|
displayMenu: !0,
|
|
603
606
|
displayAside: !0,
|
|
604
|
-
menuWidth: se.menu[
|
|
605
|
-
asideWidth: se.aside[
|
|
607
|
+
menuWidth: se.menu[i] + "px",
|
|
608
|
+
asideWidth: se.aside[i] + "px"
|
|
606
609
|
};
|
|
607
610
|
}
|
|
608
611
|
return ({
|
|
609
|
-
width:
|
|
612
|
+
width: i,
|
|
610
613
|
breakpoint: o
|
|
611
|
-
}) => l(`<=${e}`,
|
|
614
|
+
}) => l(`<=${e}`, i) ? r(o) : l(`<=${n}`, i) ? u(o) : c(o);
|
|
612
615
|
}
|
|
613
|
-
const
|
|
616
|
+
const Cn = ["menu", "aside"], kn = [
|
|
614
617
|
"banner",
|
|
615
618
|
"header",
|
|
616
619
|
"mainHeader",
|
|
617
620
|
"mainFooter",
|
|
618
621
|
"footer"
|
|
619
622
|
];
|
|
620
|
-
function
|
|
623
|
+
function In(e, { displayMenu: n }, t) {
|
|
621
624
|
return e ? n ? "block" : t ? "float" : "none" : "none";
|
|
622
625
|
}
|
|
623
|
-
function
|
|
626
|
+
function $n(e, { displayAside: n }, t) {
|
|
624
627
|
return e ? n ? "block" : t ? "float" : "none" : "none";
|
|
625
628
|
}
|
|
626
629
|
function ba({
|
|
@@ -629,46 +632,46 @@ function ba({
|
|
|
629
632
|
...t
|
|
630
633
|
}) {
|
|
631
634
|
const a = Object.fromEntries(
|
|
632
|
-
|
|
635
|
+
Cn.filter((r) => t[r]).map(
|
|
633
636
|
(r) => [
|
|
634
637
|
r,
|
|
635
|
-
|
|
638
|
+
at(t[r].width ?? {}, se[r])
|
|
636
639
|
]
|
|
637
640
|
)
|
|
638
641
|
), l = Object.fromEntries(
|
|
639
|
-
|
|
642
|
+
kn.filter((r) => t[r]).map(
|
|
640
643
|
(r) => [
|
|
641
644
|
r,
|
|
642
|
-
|
|
645
|
+
at(t[r].height ?? {}, se[r])
|
|
643
646
|
]
|
|
644
647
|
)
|
|
645
648
|
);
|
|
646
649
|
return Y(
|
|
647
650
|
ne,
|
|
648
|
-
(r) =>
|
|
649
|
-
const
|
|
651
|
+
(r) => wn(({ value: u, is: c }) => {
|
|
652
|
+
const i = Sn({
|
|
650
653
|
smallBreakpoint: e,
|
|
651
654
|
mediumBreakpoint: n,
|
|
652
655
|
vertical: a,
|
|
653
656
|
horizontal: l,
|
|
654
657
|
is: c
|
|
655
|
-
}), o =
|
|
658
|
+
}), o = u.map(i), d = l.header != null || a.menu != null || a.aside != null, f = y(
|
|
656
659
|
a.aside != null,
|
|
657
660
|
o
|
|
658
|
-
)((
|
|
661
|
+
)((b, { displayAside: w }) => b && !w), x = y(
|
|
659
662
|
a.menu != null,
|
|
660
663
|
o
|
|
661
|
-
)((
|
|
664
|
+
)((b, { displayMenu: w }) => b && !w), p = he(), g = he(), v = j(0), T = y(
|
|
662
665
|
a.menu != null,
|
|
663
666
|
o,
|
|
664
667
|
p.display
|
|
665
|
-
)(
|
|
668
|
+
)(In), C = y(
|
|
666
669
|
a.aside != null,
|
|
667
670
|
o,
|
|
668
671
|
g.display
|
|
669
|
-
)(
|
|
672
|
+
)($n);
|
|
670
673
|
return m.div(
|
|
671
|
-
|
|
674
|
+
W(() => {
|
|
672
675
|
v.dispose(), p.dispose(), g.dispose();
|
|
673
676
|
}),
|
|
674
677
|
h.display("grid"),
|
|
@@ -696,28 +699,28 @@ function ba({
|
|
|
696
699
|
h.zIndex("20"),
|
|
697
700
|
h.display(d ? "block" : "none"),
|
|
698
701
|
h.gridArea("header"),
|
|
699
|
-
ve((
|
|
702
|
+
ve((b) => (b.$.bottom.feedProp(v), null)),
|
|
700
703
|
m.div(
|
|
701
704
|
h.display("flex"),
|
|
702
705
|
h.height("100%"),
|
|
703
706
|
m.div(
|
|
704
707
|
h.display(
|
|
705
|
-
x.map((
|
|
708
|
+
x.map((b) => b ? "flex" : "none")
|
|
706
709
|
),
|
|
707
710
|
h.alignItems("center"),
|
|
708
711
|
h.justifyContent("center"),
|
|
709
712
|
h.height("100%"),
|
|
710
713
|
h.width("60px"),
|
|
711
|
-
|
|
714
|
+
Ke(
|
|
712
715
|
{
|
|
713
716
|
onClick: () => p.toggle(),
|
|
714
717
|
variant: "light",
|
|
715
718
|
color: "base"
|
|
716
719
|
},
|
|
717
720
|
A.label(r.$.toggleMenu),
|
|
718
|
-
|
|
721
|
+
U({
|
|
719
722
|
icon: p.display.map(
|
|
720
|
-
(
|
|
723
|
+
(b) => b ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
|
|
721
724
|
)
|
|
722
725
|
})
|
|
723
726
|
)
|
|
@@ -733,9 +736,9 @@ function ba({
|
|
|
733
736
|
h.height("100%"),
|
|
734
737
|
h.width("60px"),
|
|
735
738
|
h.display(
|
|
736
|
-
|
|
739
|
+
f.map((b) => b ? "flex" : "none")
|
|
737
740
|
),
|
|
738
|
-
|
|
741
|
+
Ke(
|
|
739
742
|
{
|
|
740
743
|
onClick: () => g.toggle(),
|
|
741
744
|
roundedness: "full",
|
|
@@ -743,12 +746,12 @@ function ba({
|
|
|
743
746
|
color: "base"
|
|
744
747
|
},
|
|
745
748
|
A.label(r.$.toggleAside),
|
|
746
|
-
|
|
749
|
+
U(
|
|
747
750
|
{ icon: "line-md/chevron-left" },
|
|
748
751
|
s.style("transition: transform 0.2s ease-in-out"),
|
|
749
752
|
s.style(
|
|
750
753
|
g.display.map(
|
|
751
|
-
(
|
|
754
|
+
(b) => `transform: rotate(${b ? 180 : 0}deg)`
|
|
752
755
|
)
|
|
753
756
|
)
|
|
754
757
|
)
|
|
@@ -757,15 +760,15 @@ function ba({
|
|
|
757
760
|
)
|
|
758
761
|
),
|
|
759
762
|
t.menu ? m.nav(
|
|
760
|
-
|
|
763
|
+
Q((b) => p.setElement(b)),
|
|
761
764
|
h.zIndex("10"),
|
|
762
765
|
// Add ARIA attributes for navigation landmark
|
|
763
766
|
A.label(r.$.mainNavigation),
|
|
764
767
|
s.role("navigation"),
|
|
765
768
|
h.overflow("hidden"),
|
|
766
769
|
s.class(
|
|
767
|
-
|
|
768
|
-
(
|
|
770
|
+
T.map(
|
|
771
|
+
(b) => b === "float" ? ae(
|
|
769
772
|
"right",
|
|
770
773
|
t.menu?.shadow ?? "md"
|
|
771
774
|
) : ae(
|
|
@@ -776,33 +779,33 @@ function ba({
|
|
|
776
779
|
),
|
|
777
780
|
ie(t.menu?.color ?? "white"),
|
|
778
781
|
h.height(
|
|
779
|
-
|
|
780
|
-
(
|
|
782
|
+
T.map(
|
|
783
|
+
(b) => b === "float" ? "auto" : "100%"
|
|
781
784
|
)
|
|
782
785
|
),
|
|
783
786
|
h.overflow("hidden"),
|
|
784
787
|
h.gridArea("menu"),
|
|
785
788
|
h.display(
|
|
786
789
|
y(
|
|
787
|
-
|
|
790
|
+
T,
|
|
788
791
|
p.status
|
|
789
|
-
)((
|
|
792
|
+
)((b, w) => b === "none" && w === "closed" ? "none" : "block")
|
|
790
793
|
),
|
|
791
794
|
h.position(
|
|
792
795
|
y(
|
|
793
|
-
|
|
796
|
+
T,
|
|
794
797
|
p.status
|
|
795
|
-
)((
|
|
798
|
+
)((b, w) => b === "float" || b === "none" && w !== "closed" ? "fixed" : "initial")
|
|
796
799
|
),
|
|
797
|
-
h.top(v.map((
|
|
798
|
-
|
|
800
|
+
h.top(v.map((b) => `${b}px`)),
|
|
801
|
+
Pe(
|
|
799
802
|
"slide-right",
|
|
800
803
|
y(
|
|
801
|
-
|
|
804
|
+
T,
|
|
802
805
|
p.status
|
|
803
|
-
)((
|
|
806
|
+
)((b, w) => b === "block" ? "opened" : w)
|
|
804
807
|
),
|
|
805
|
-
h.width(
|
|
808
|
+
h.width(Ne(t.menu?.width, o.$.menuWidth)),
|
|
806
809
|
h.bottom("0"),
|
|
807
810
|
t.menu?.content
|
|
808
811
|
) : null,
|
|
@@ -841,8 +844,8 @@ function ba({
|
|
|
841
844
|
t.mainFooter.content
|
|
842
845
|
) : null,
|
|
843
846
|
t.aside ? m.aside(
|
|
844
|
-
|
|
845
|
-
g.setElement(
|
|
847
|
+
Q((b) => {
|
|
848
|
+
g.setElement(b);
|
|
846
849
|
}),
|
|
847
850
|
h.zIndex("10"),
|
|
848
851
|
// Add ARIA attributes for aside landmark
|
|
@@ -850,7 +853,7 @@ function ba({
|
|
|
850
853
|
s.role("complementary"),
|
|
851
854
|
s.class(
|
|
852
855
|
C.map(
|
|
853
|
-
(
|
|
856
|
+
(b) => b === "float" ? ae("left", "md") : ae("left", "none")
|
|
854
857
|
)
|
|
855
858
|
),
|
|
856
859
|
ie("white"),
|
|
@@ -860,26 +863,26 @@ function ba({
|
|
|
860
863
|
y(
|
|
861
864
|
C,
|
|
862
865
|
g.status
|
|
863
|
-
)((
|
|
866
|
+
)((b, w) => b === "none" && w === "closed" ? "none" : "block")
|
|
864
867
|
),
|
|
865
868
|
h.position(
|
|
866
869
|
y(
|
|
867
870
|
C,
|
|
868
871
|
g.status
|
|
869
|
-
)((
|
|
872
|
+
)((b, w) => b === "float" || b === "none" && w !== "closed" ? "fixed" : "initial")
|
|
870
873
|
),
|
|
871
|
-
h.top(v.map((
|
|
872
|
-
|
|
874
|
+
h.top(v.map((b) => `${b}px`)),
|
|
875
|
+
Pe(
|
|
873
876
|
"slide-left",
|
|
874
877
|
y(
|
|
875
878
|
C,
|
|
876
879
|
g.status
|
|
877
|
-
)((
|
|
880
|
+
)((b, w) => b === "block" ? "opened" : w)
|
|
878
881
|
),
|
|
879
882
|
h.width(
|
|
880
|
-
|
|
883
|
+
Ne(t.aside?.width, o.$.asideWidth)
|
|
881
884
|
),
|
|
882
|
-
h.bottom(v.map((
|
|
885
|
+
h.bottom(v.map((b) => `${b}px`)),
|
|
883
886
|
t.aside.content
|
|
884
887
|
) : null,
|
|
885
888
|
t.footer ? m.footer(
|
|
@@ -909,29 +912,29 @@ function ga({ gap: e = "lg" } = {}, ...n) {
|
|
|
909
912
|
...n
|
|
910
913
|
);
|
|
911
914
|
}
|
|
912
|
-
function
|
|
913
|
-
return
|
|
915
|
+
function _n({ open: e }, ...n) {
|
|
916
|
+
return Q((t) => {
|
|
914
917
|
const { status: a, setOpen: l, dispose: r } = he({
|
|
915
918
|
initialStatus: S.get(e) ? "opened" : "closed",
|
|
916
919
|
element: t
|
|
917
920
|
});
|
|
918
|
-
return S.on(e, l), ve((
|
|
919
|
-
const c =
|
|
921
|
+
return S.on(e, l), ve((u) => {
|
|
922
|
+
const c = j(null);
|
|
920
923
|
return y(
|
|
921
924
|
a,
|
|
922
|
-
|
|
925
|
+
u.$.height
|
|
923
926
|
)((o, d) => o === "opened" && d > 0 ? d : null).on((o) => {
|
|
924
927
|
o != null && c.set(o);
|
|
925
928
|
}), a.on((o) => {
|
|
926
929
|
if (t && o === "start-opening") {
|
|
927
|
-
const d = t.style.height,
|
|
930
|
+
const d = t.style.height, f = t.style.transition;
|
|
928
931
|
t.style.transition = "none", t.style.height = "auto", t.offsetHeight;
|
|
929
932
|
const x = t.scrollHeight;
|
|
930
|
-
x > 0 && c.set(x), t.style.height = d, t.style.transition =
|
|
933
|
+
x > 0 && c.set(x), t.style.height = d, t.style.transition = f, t.offsetHeight;
|
|
931
934
|
}
|
|
932
935
|
}), M(
|
|
933
|
-
|
|
934
|
-
|
|
936
|
+
W(r),
|
|
937
|
+
W(c.dispose),
|
|
935
938
|
s.style(
|
|
936
939
|
c.map((o) => `--collapse-height: ${o != null ? `${o}px` : "auto"}`)
|
|
937
940
|
),
|
|
@@ -941,11 +944,11 @@ function Dn({ open: e }, ...n) {
|
|
|
941
944
|
});
|
|
942
945
|
});
|
|
943
946
|
}
|
|
944
|
-
function
|
|
947
|
+
function Dn(e) {
|
|
945
948
|
return `${e}px`;
|
|
946
949
|
}
|
|
947
|
-
function
|
|
948
|
-
return S.map(e,
|
|
950
|
+
function st(e) {
|
|
951
|
+
return S.map(e, Dn);
|
|
949
952
|
}
|
|
950
953
|
function ha({
|
|
951
954
|
body: e,
|
|
@@ -954,21 +957,21 @@ function ha({
|
|
|
954
957
|
header: a,
|
|
955
958
|
headerHeight: l = 0,
|
|
956
959
|
topStart: r,
|
|
957
|
-
topEnd:
|
|
960
|
+
topEnd: u,
|
|
958
961
|
footer: c,
|
|
959
|
-
footerHeight:
|
|
962
|
+
footerHeight: i = 0,
|
|
960
963
|
bottomStart: o,
|
|
961
964
|
bottomEnd: d,
|
|
962
|
-
sidebarStart:
|
|
965
|
+
sidebarStart: f,
|
|
963
966
|
sidebarStartWidth: x = 0,
|
|
964
967
|
sidebarEnd: p,
|
|
965
968
|
sidebarEndWidth: g = 0,
|
|
966
969
|
anchorMode: v = "container-edge"
|
|
967
970
|
}) {
|
|
968
|
-
const
|
|
971
|
+
const T = j(0n), C = j(0n), b = st(l), w = st(x), D = j(16);
|
|
969
972
|
return m.div(
|
|
970
|
-
|
|
971
|
-
|
|
973
|
+
W(
|
|
974
|
+
T.dispose,
|
|
972
975
|
C.dispose,
|
|
973
976
|
D.dispose
|
|
974
977
|
),
|
|
@@ -978,31 +981,31 @@ function ha({
|
|
|
978
981
|
V.$.width,
|
|
979
982
|
x,
|
|
980
983
|
g
|
|
981
|
-
)((I,
|
|
984
|
+
)((I, L, R) => I - L - R), k = y(
|
|
982
985
|
V.$.height,
|
|
983
986
|
l,
|
|
984
|
-
|
|
985
|
-
)((I,
|
|
987
|
+
i
|
|
988
|
+
)((I, L, R) => I - L - R), _ = y(
|
|
986
989
|
n,
|
|
987
990
|
E
|
|
988
|
-
)((I,
|
|
991
|
+
)((I, L) => I > BigInt(L)), B = y(
|
|
989
992
|
t,
|
|
990
993
|
k
|
|
991
|
-
)((I,
|
|
994
|
+
)((I, L) => I > BigInt(L)), N = y(
|
|
992
995
|
E,
|
|
993
|
-
|
|
996
|
+
B,
|
|
994
997
|
D
|
|
995
|
-
)((I,
|
|
998
|
+
)((I, L, R) => L ? I - R : I), H = y(
|
|
996
999
|
k,
|
|
997
|
-
|
|
1000
|
+
_,
|
|
998
1001
|
D
|
|
999
|
-
)((I,
|
|
1002
|
+
)((I, L, R) => L ? I - R : I), F = y(
|
|
1000
1003
|
n,
|
|
1001
1004
|
N
|
|
1002
|
-
)((I,
|
|
1005
|
+
)((I, L) => Number(I / BigInt(Math.max(1, L)))), z = y(
|
|
1003
1006
|
t,
|
|
1004
1007
|
H
|
|
1005
|
-
)((I,
|
|
1008
|
+
)((I, L) => Number(I / BigInt(Math.max(1, L)))), xe = S.map(
|
|
1006
1009
|
v,
|
|
1007
1010
|
(I) => I === "body-end" || I === "body-end-bottom"
|
|
1008
1011
|
), be = te(
|
|
@@ -1013,8 +1016,8 @@ function ha({
|
|
|
1013
1016
|
n,
|
|
1014
1017
|
N,
|
|
1015
1018
|
g
|
|
1016
|
-
)((I,
|
|
1017
|
-
const ee = I + Number(
|
|
1019
|
+
)((I, L, R, K) => {
|
|
1020
|
+
const ee = I + Number(L), le = I + R, Be = Math.min(ee, le);
|
|
1018
1021
|
return `${Math.max(I + K, Be)}px`;
|
|
1019
1022
|
})
|
|
1020
1023
|
),
|
|
@@ -1029,56 +1032,56 @@ function ha({
|
|
|
1029
1032
|
l,
|
|
1030
1033
|
t,
|
|
1031
1034
|
H,
|
|
1032
|
-
|
|
1033
|
-
)((I,
|
|
1034
|
-
const ee = I + Number(
|
|
1035
|
+
i
|
|
1036
|
+
)((I, L, R, K) => {
|
|
1037
|
+
const ee = I + Number(L), le = I + R, Be = Math.min(ee, le);
|
|
1035
1038
|
return `${Math.max(I + K, Be)}px`;
|
|
1036
1039
|
})
|
|
1037
1040
|
),
|
|
1038
1041
|
() => h.bottom("0")
|
|
1039
|
-
),
|
|
1040
|
-
|
|
1042
|
+
), Ft = y(
|
|
1043
|
+
B,
|
|
1041
1044
|
D
|
|
1042
|
-
)((I,
|
|
1043
|
-
|
|
1045
|
+
)((I, L) => I ? `${L}px` : "0"), Ht = y(
|
|
1046
|
+
_,
|
|
1044
1047
|
D
|
|
1045
|
-
)((I,
|
|
1048
|
+
)((I, L) => I ? `${L}px` : "0"), Rt = h.transform(
|
|
1046
1049
|
y(
|
|
1047
1050
|
C,
|
|
1048
|
-
_,
|
|
1049
1051
|
T,
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1052
|
+
_,
|
|
1053
|
+
B
|
|
1054
|
+
)((I, L, R, K) => {
|
|
1055
|
+
const ee = R ? `translateX(-${I}px)` : "", le = K ? `translateY(-${L}px)` : "";
|
|
1053
1056
|
return `${ee} ${le}`.trim() || "none";
|
|
1054
1057
|
})
|
|
1055
|
-
),
|
|
1058
|
+
), We = h.transform(
|
|
1056
1059
|
C.map((I) => `translateX(-${I}px)`)
|
|
1057
|
-
),
|
|
1058
|
-
|
|
1060
|
+
), qe = h.transform(
|
|
1061
|
+
T.map((I) => `translateY(-${I}px)`)
|
|
1059
1062
|
), Ve = y(
|
|
1060
1063
|
t,
|
|
1061
1064
|
H
|
|
1062
|
-
)((I,
|
|
1065
|
+
)((I, L) => I - BigInt(Math.max(1, L))), Ae = y(
|
|
1063
1066
|
n,
|
|
1064
1067
|
N
|
|
1065
|
-
)((I,
|
|
1068
|
+
)((I, L) => I - BigInt(Math.max(1, L)));
|
|
1066
1069
|
let fe = null, we = 0, Se = 0;
|
|
1067
1070
|
const jt = () => {
|
|
1068
|
-
const I = Ve.value,
|
|
1071
|
+
const I = Ve.value, L = Ae.value, R = B.value, K = _.value;
|
|
1069
1072
|
if (R && Se !== 0) {
|
|
1070
|
-
const ee =
|
|
1073
|
+
const ee = nt(
|
|
1071
1074
|
Ce(0n, I),
|
|
1072
1075
|
Ce(
|
|
1073
1076
|
0n,
|
|
1074
|
-
|
|
1077
|
+
T.value + BigInt(Math.round(Se))
|
|
1075
1078
|
)
|
|
1076
1079
|
);
|
|
1077
|
-
|
|
1080
|
+
T.set(ee);
|
|
1078
1081
|
}
|
|
1079
1082
|
if (K && we !== 0) {
|
|
1080
|
-
const ee =
|
|
1081
|
-
Ce(0n,
|
|
1083
|
+
const ee = nt(
|
|
1084
|
+
Ce(0n, L),
|
|
1082
1085
|
Ce(
|
|
1083
1086
|
0n,
|
|
1084
1087
|
C.value + BigInt(Math.round(we))
|
|
@@ -1089,28 +1092,28 @@ function ha({
|
|
|
1089
1092
|
we = 0, Se = 0, fe = null;
|
|
1090
1093
|
};
|
|
1091
1094
|
return M(
|
|
1092
|
-
|
|
1093
|
-
|
|
1095
|
+
W(
|
|
1096
|
+
_.on((I) => {
|
|
1094
1097
|
I || C.set(0n);
|
|
1095
1098
|
}),
|
|
1096
|
-
|
|
1097
|
-
I ||
|
|
1099
|
+
B.on((I) => {
|
|
1100
|
+
I || T.set(0n);
|
|
1098
1101
|
}),
|
|
1099
1102
|
Ve.dispose,
|
|
1100
|
-
|
|
1103
|
+
Ae.dispose,
|
|
1101
1104
|
() => {
|
|
1102
1105
|
fe && clearTimeout(fe);
|
|
1103
1106
|
}
|
|
1104
1107
|
),
|
|
1105
1108
|
$.wheel((I) => {
|
|
1106
1109
|
I.preventDefault();
|
|
1107
|
-
const { deltaX:
|
|
1108
|
-
we +=
|
|
1110
|
+
const { deltaX: L, deltaY: R } = I;
|
|
1111
|
+
we += L, Se += R, fe || (fe = setTimeout(jt, 16));
|
|
1109
1112
|
}),
|
|
1110
1113
|
m.div(
|
|
1111
1114
|
s.class("bc-nine-slice-pane-container"),
|
|
1112
|
-
h.right(
|
|
1113
|
-
h.bottom(
|
|
1115
|
+
h.right(Ft),
|
|
1116
|
+
h.bottom(Ht),
|
|
1114
1117
|
// top-start corner
|
|
1115
1118
|
r != null ? m.div(
|
|
1116
1119
|
s.class("bc-nine-slice-pane bc-nine-slice-top-start"),
|
|
@@ -1129,42 +1132,42 @@ function ha({
|
|
|
1129
1132
|
// style.width(visibleAreaWidthPx),
|
|
1130
1133
|
m.div(
|
|
1131
1134
|
s.class("bc-nine-slice-pane-content"),
|
|
1132
|
-
|
|
1135
|
+
We,
|
|
1133
1136
|
a
|
|
1134
1137
|
)
|
|
1135
1138
|
) : null,
|
|
1136
1139
|
// top-end corner
|
|
1137
|
-
|
|
1140
|
+
u != null ? m.div(
|
|
1138
1141
|
s.class("bc-nine-slice-pane bc-nine-slice-top-end"),
|
|
1139
1142
|
h.top("0"),
|
|
1140
1143
|
be,
|
|
1141
1144
|
// style.height(headerHeightPx),
|
|
1142
1145
|
// style.width(sidebarEndWidthPx),
|
|
1143
|
-
|
|
1146
|
+
u
|
|
1144
1147
|
) : null,
|
|
1145
1148
|
// middle-start sidebar
|
|
1146
|
-
|
|
1149
|
+
f != null ? m.div(
|
|
1147
1150
|
s.class("bc-nine-slice-pane bc-nine-slice-sidebar-start"),
|
|
1148
1151
|
h.left("0"),
|
|
1149
|
-
h.top(
|
|
1152
|
+
h.top(b),
|
|
1150
1153
|
// style.height(visibleAreaHeightPx),
|
|
1151
1154
|
// style.width(sidebarStartWidthPx),
|
|
1152
1155
|
m.div(
|
|
1153
1156
|
s.class("bc-nine-slice-pane-content"),
|
|
1154
|
-
|
|
1155
|
-
|
|
1157
|
+
qe,
|
|
1158
|
+
f
|
|
1156
1159
|
)
|
|
1157
1160
|
) : null,
|
|
1158
1161
|
// middle-center (main body)
|
|
1159
1162
|
m.div(
|
|
1160
1163
|
s.class("bc-nine-slice-pane bc-nine-slice-body"),
|
|
1161
1164
|
h.left(w),
|
|
1162
|
-
h.top(
|
|
1165
|
+
h.top(b),
|
|
1163
1166
|
// style.width(visibleAreaWidth.map(toPx)),
|
|
1164
1167
|
// style.height(visibleAreaHeight.map(toPx)),
|
|
1165
1168
|
m.div(
|
|
1166
1169
|
s.class("bc-nine-slice-pane-content"),
|
|
1167
|
-
|
|
1170
|
+
Rt,
|
|
1168
1171
|
e
|
|
1169
1172
|
)
|
|
1170
1173
|
),
|
|
@@ -1172,12 +1175,12 @@ function ha({
|
|
|
1172
1175
|
p != null ? m.div(
|
|
1173
1176
|
s.class("bc-nine-slice-pane bc-nine-slice-sidebar-end"),
|
|
1174
1177
|
be,
|
|
1175
|
-
h.top(
|
|
1178
|
+
h.top(b),
|
|
1176
1179
|
// style.height(visibleAreaHeightPx),
|
|
1177
1180
|
// style.width(sidebarEndWidthPx),
|
|
1178
1181
|
m.div(
|
|
1179
1182
|
s.class("bc-nine-slice-pane-content"),
|
|
1180
|
-
|
|
1183
|
+
qe,
|
|
1181
1184
|
p
|
|
1182
1185
|
)
|
|
1183
1186
|
) : null,
|
|
@@ -1199,7 +1202,7 @@ function ha({
|
|
|
1199
1202
|
// style.width(visibleAreaWidthPx),
|
|
1200
1203
|
m.div(
|
|
1201
1204
|
s.class("bc-nine-slice-pane-content"),
|
|
1202
|
-
|
|
1205
|
+
We,
|
|
1203
1206
|
c
|
|
1204
1207
|
)
|
|
1205
1208
|
) : null,
|
|
@@ -1220,13 +1223,13 @@ function ha({
|
|
|
1220
1223
|
h.left("0"),
|
|
1221
1224
|
h.right(
|
|
1222
1225
|
y(
|
|
1223
|
-
|
|
1226
|
+
B,
|
|
1224
1227
|
D
|
|
1225
|
-
)((I,
|
|
1228
|
+
)((I, L) => I ? `${L}px` : "0")
|
|
1226
1229
|
),
|
|
1227
1230
|
h.bottom("0"),
|
|
1228
1231
|
h.height(
|
|
1229
|
-
|
|
1232
|
+
_.map(
|
|
1230
1233
|
(I) => I ? "16px" : "0"
|
|
1231
1234
|
)
|
|
1232
1235
|
),
|
|
@@ -1241,9 +1244,9 @@ function ha({
|
|
|
1241
1244
|
h.backgroundColor("#ff000066")
|
|
1242
1245
|
),
|
|
1243
1246
|
$.scroll((I) => {
|
|
1244
|
-
const
|
|
1247
|
+
const L = I.target, R = L.scrollLeft, K = L.scrollWidth - L.clientWidth;
|
|
1245
1248
|
if (K > 0) {
|
|
1246
|
-
const ee = R / K, le =
|
|
1249
|
+
const ee = R / K, le = Ae.value;
|
|
1247
1250
|
C.set(
|
|
1248
1251
|
BigInt(Math.round(Number(le) * ee))
|
|
1249
1252
|
);
|
|
@@ -1257,13 +1260,13 @@ function ha({
|
|
|
1257
1260
|
h.top("0"),
|
|
1258
1261
|
h.bottom(
|
|
1259
1262
|
y(
|
|
1260
|
-
|
|
1263
|
+
_,
|
|
1261
1264
|
D
|
|
1262
|
-
)((I,
|
|
1265
|
+
)((I, L) => I ? `${L}px` : "0")
|
|
1263
1266
|
),
|
|
1264
1267
|
h.right("0"),
|
|
1265
1268
|
h.width(
|
|
1266
|
-
|
|
1269
|
+
B.map(
|
|
1267
1270
|
(I) => I ? "16px" : "0"
|
|
1268
1271
|
)
|
|
1269
1272
|
),
|
|
@@ -1275,18 +1278,18 @@ function ha({
|
|
|
1275
1278
|
h.height(
|
|
1276
1279
|
y(
|
|
1277
1280
|
l,
|
|
1278
|
-
|
|
1281
|
+
i,
|
|
1279
1282
|
t,
|
|
1280
|
-
|
|
1281
|
-
)((I,
|
|
1283
|
+
z
|
|
1284
|
+
)((I, L, R, K) => `${100 / Math.max(1, K)}%`)
|
|
1282
1285
|
),
|
|
1283
1286
|
h.backgroundColor("#ff000066")
|
|
1284
1287
|
),
|
|
1285
1288
|
$.scroll((I) => {
|
|
1286
|
-
const
|
|
1289
|
+
const L = I.target, R = L.scrollTop, K = L.scrollHeight - L.clientHeight;
|
|
1287
1290
|
if (K > 0) {
|
|
1288
1291
|
const ee = R / K, le = Ve.value;
|
|
1289
|
-
|
|
1292
|
+
T.set(
|
|
1290
1293
|
BigInt(Math.round(Number(le) * ee))
|
|
1291
1294
|
);
|
|
1292
1295
|
}
|
|
@@ -1296,10 +1299,10 @@ function ha({
|
|
|
1296
1299
|
})
|
|
1297
1300
|
);
|
|
1298
1301
|
}
|
|
1299
|
-
function
|
|
1300
|
-
const r =
|
|
1301
|
-
function i
|
|
1302
|
-
const o =
|
|
1302
|
+
function lt({ header: e, footer: n, body: t, shadowOnScroll: a = !0 }, ...l) {
|
|
1303
|
+
const r = j("none");
|
|
1304
|
+
function u(i) {
|
|
1305
|
+
const o = i.scrollTop === 0, d = i.scrollTop + i.clientHeight >= i.scrollHeight - 1;
|
|
1303
1306
|
o && d ? r.set("none") : o ? r.set("bottom") : d ? r.set("top") : r.set("both");
|
|
1304
1307
|
}
|
|
1305
1308
|
return m.div(
|
|
@@ -1308,9 +1311,9 @@ function rt({ header: e, footer: n, body: t, shadowOnScroll: a = !0 }, ...l) {
|
|
|
1308
1311
|
y(
|
|
1309
1312
|
r,
|
|
1310
1313
|
a
|
|
1311
|
-
)((
|
|
1314
|
+
)((i, o) => {
|
|
1312
1315
|
if (!o) return "";
|
|
1313
|
-
switch (
|
|
1316
|
+
switch (i) {
|
|
1314
1317
|
case "both":
|
|
1315
1318
|
return "bc-scrollable-panel--scrolled-up bc-scrollable-panel--scrolled-down";
|
|
1316
1319
|
case "bottom":
|
|
@@ -1326,12 +1329,12 @@ function rt({ header: e, footer: n, body: t, shadowOnScroll: a = !0 }, ...l) {
|
|
|
1326
1329
|
m.div(s.class("bc-scrollable-panel--header-shadow"), m.div()),
|
|
1327
1330
|
m.div(
|
|
1328
1331
|
s.class("bc-scrollable-panel__body"),
|
|
1329
|
-
|
|
1330
|
-
(
|
|
1332
|
+
Q(
|
|
1333
|
+
(i) => W($e(() => u(i)))
|
|
1331
1334
|
),
|
|
1332
|
-
$.scroll((
|
|
1333
|
-
const o =
|
|
1334
|
-
|
|
1335
|
+
$.scroll((i) => {
|
|
1336
|
+
const o = i.target;
|
|
1337
|
+
u(o);
|
|
1335
1338
|
}),
|
|
1336
1339
|
t
|
|
1337
1340
|
),
|
|
@@ -1352,10 +1355,10 @@ function va({ variant: e = "default", size: n = "md", roundedness: t = "lg" } =
|
|
|
1352
1355
|
n,
|
|
1353
1356
|
t
|
|
1354
1357
|
)(
|
|
1355
|
-
(l, r,
|
|
1358
|
+
(l, r, u) => Vn(
|
|
1356
1359
|
l ?? "default",
|
|
1357
1360
|
r ?? "md",
|
|
1358
|
-
|
|
1361
|
+
u ?? "lg"
|
|
1359
1362
|
)
|
|
1360
1363
|
)
|
|
1361
1364
|
),
|
|
@@ -1392,63 +1395,63 @@ const ue = {
|
|
|
1392
1395
|
(n) => n.type === "group" ? ue.getValues(n.options) : n.type === "break" ? [] : [n.value]
|
|
1393
1396
|
),
|
|
1394
1397
|
contains: (e, n, t = (a, l) => a === l) => ue.getValues(e).some((a) => t(a, n))
|
|
1395
|
-
},
|
|
1398
|
+
}, $t = (e) => {
|
|
1396
1399
|
const {
|
|
1397
1400
|
onChange: n,
|
|
1398
1401
|
onBlur: t,
|
|
1399
1402
|
role: a,
|
|
1400
1403
|
display: l,
|
|
1401
1404
|
optionsSource: r,
|
|
1402
|
-
allowSpaceToggle:
|
|
1405
|
+
allowSpaceToggle: u = !1,
|
|
1403
1406
|
onBeforeOpen: c,
|
|
1404
|
-
onAfterOpen:
|
|
1407
|
+
onAfterOpen: i,
|
|
1405
1408
|
buildListboxContent: o
|
|
1406
|
-
} = e, d =
|
|
1407
|
-
let v,
|
|
1409
|
+
} = e, d = j(!1), f = j(-1), x = j(null), p = re("dropdown"), g = re("listbox");
|
|
1410
|
+
let v, T;
|
|
1408
1411
|
const C = (w) => {
|
|
1409
|
-
n?.(w), d.set(!1),
|
|
1410
|
-
},
|
|
1412
|
+
n?.(w), d.set(!1), f.set(-1), x.set(null), v?.focus();
|
|
1413
|
+
}, b = (w) => {
|
|
1411
1414
|
const D = ue.getValues(S.get(r));
|
|
1412
1415
|
switch (w.key) {
|
|
1413
1416
|
case "ArrowDown": {
|
|
1414
1417
|
if (w.preventDefault(), !d.value)
|
|
1415
|
-
d.set(!0), D.length > 0 && (
|
|
1418
|
+
d.set(!0), D.length > 0 && (f.set(0), x.set(D[0]));
|
|
1416
1419
|
else {
|
|
1417
1420
|
const V = Math.min(
|
|
1418
|
-
|
|
1421
|
+
f.value + 1,
|
|
1419
1422
|
D.length - 1
|
|
1420
1423
|
);
|
|
1421
|
-
|
|
1424
|
+
f.set(V), x.set(D[V] ?? null);
|
|
1422
1425
|
}
|
|
1423
1426
|
break;
|
|
1424
1427
|
}
|
|
1425
1428
|
case "ArrowUp": {
|
|
1426
1429
|
if (w.preventDefault(), d.value) {
|
|
1427
|
-
const V = Math.max(
|
|
1428
|
-
|
|
1430
|
+
const V = Math.max(f.value - 1, 0);
|
|
1431
|
+
f.set(V), x.set(D[V] ?? null);
|
|
1429
1432
|
}
|
|
1430
1433
|
break;
|
|
1431
1434
|
}
|
|
1432
1435
|
case "Enter": {
|
|
1433
|
-
if (w.preventDefault(), d.value &&
|
|
1434
|
-
const V = D[
|
|
1436
|
+
if (w.preventDefault(), d.value && f.value >= 0) {
|
|
1437
|
+
const V = D[f.value];
|
|
1435
1438
|
V != null && C(V);
|
|
1436
1439
|
} else {
|
|
1437
1440
|
c?.();
|
|
1438
1441
|
const V = ue.getValues(S.get(r));
|
|
1439
|
-
d.set(!0), V.length > 0 && (
|
|
1442
|
+
d.set(!0), V.length > 0 && (f.set(0), x.set(V[0])), setTimeout(() => i?.(), 0);
|
|
1440
1443
|
}
|
|
1441
1444
|
break;
|
|
1442
1445
|
}
|
|
1443
1446
|
case "Escape": {
|
|
1444
|
-
d.value && (w.preventDefault(), d.set(!1),
|
|
1447
|
+
d.value && (w.preventDefault(), d.set(!1), f.set(-1), x.set(null), v?.focus());
|
|
1445
1448
|
break;
|
|
1446
1449
|
}
|
|
1447
1450
|
case " ": {
|
|
1448
|
-
if (S.get(
|
|
1451
|
+
if (S.get(u)) {
|
|
1449
1452
|
w.preventDefault();
|
|
1450
1453
|
const V = ue.getValues(S.get(r));
|
|
1451
|
-
d.set(!d.value), d.value && V.length > 0 && (
|
|
1454
|
+
d.set(!d.value), d.value && V.length > 0 && (f.set(0), x.set(V[0]));
|
|
1452
1455
|
}
|
|
1453
1456
|
break;
|
|
1454
1457
|
}
|
|
@@ -1457,18 +1460,18 @@ const ue = {
|
|
|
1457
1460
|
return q(
|
|
1458
1461
|
{
|
|
1459
1462
|
...e,
|
|
1460
|
-
input:
|
|
1463
|
+
input: St(
|
|
1461
1464
|
s.class("bc-dropdown__trigger"),
|
|
1462
1465
|
m.span(s.class("bc-dropdown__display"), l),
|
|
1463
|
-
|
|
1466
|
+
U(
|
|
1464
1467
|
{ icon: "ph:caret-up-down-bold", color: "neutral" },
|
|
1465
1468
|
s.class("bc-dropdown__arrow")
|
|
1466
1469
|
)
|
|
1467
1470
|
)
|
|
1468
1471
|
},
|
|
1469
1472
|
ve((w) => M(
|
|
1470
|
-
|
|
1471
|
-
() => D.removeEventListener("keydown",
|
|
1473
|
+
Q((D) => (v = D, D.addEventListener("keydown", b), W(
|
|
1474
|
+
() => D.removeEventListener("keydown", b)
|
|
1472
1475
|
))),
|
|
1473
1476
|
G(e),
|
|
1474
1477
|
s.id(p),
|
|
@@ -1487,13 +1490,13 @@ const ue = {
|
|
|
1487
1490
|
),
|
|
1488
1491
|
t != null ? $.blur(() => {
|
|
1489
1492
|
setTimeout(() => {
|
|
1490
|
-
|
|
1493
|
+
T?.contains(document.activeElement) || (d.set(!1), f.set(-1), t());
|
|
1491
1494
|
}, 100);
|
|
1492
1495
|
}) : O,
|
|
1493
|
-
|
|
1496
|
+
De({
|
|
1494
1497
|
content: () => m.div(
|
|
1495
|
-
|
|
1496
|
-
|
|
1498
|
+
Q((D) => {
|
|
1499
|
+
T = D;
|
|
1497
1500
|
}),
|
|
1498
1501
|
h.minWidth(w.$.width.map((D) => `${D - 10}px`)),
|
|
1499
1502
|
s.class("bc-dropdown__listbox"),
|
|
@@ -1504,7 +1507,7 @@ const ue = {
|
|
|
1504
1507
|
dropdownId: p,
|
|
1505
1508
|
listboxId: g,
|
|
1506
1509
|
focusedValue: x,
|
|
1507
|
-
handleKeyDown:
|
|
1510
|
+
handleKeyDown: b,
|
|
1508
1511
|
onSelect: C
|
|
1509
1512
|
})
|
|
1510
1513
|
),
|
|
@@ -1514,15 +1517,15 @@ const ue = {
|
|
|
1514
1517
|
showOn: (D, V) => {
|
|
1515
1518
|
const E = V;
|
|
1516
1519
|
V = () => {
|
|
1517
|
-
d.set(!1),
|
|
1520
|
+
d.set(!1), f.set(-1), x.set(null), E();
|
|
1518
1521
|
};
|
|
1519
1522
|
const k = () => {
|
|
1520
1523
|
if (d.value)
|
|
1521
1524
|
V();
|
|
1522
1525
|
else {
|
|
1523
1526
|
c?.();
|
|
1524
|
-
const
|
|
1525
|
-
d.set(!0),
|
|
1527
|
+
const _ = ue.getValues(S.get(r));
|
|
1528
|
+
d.set(!0), _.length > 0 && (f.set(0), x.set(_[0])), D(), setTimeout(() => i?.(), 0);
|
|
1526
1529
|
}
|
|
1527
1530
|
};
|
|
1528
1531
|
return $.click(k);
|
|
@@ -1533,61 +1536,61 @@ const ue = {
|
|
|
1533
1536
|
})
|
|
1534
1537
|
))
|
|
1535
1538
|
);
|
|
1536
|
-
}, Tt = (e, n, t, a, l) =>
|
|
1539
|
+
}, Tt = (e, n, t, a, l) => _e(
|
|
1537
1540
|
e,
|
|
1538
|
-
(r) =>
|
|
1539
|
-
value: (
|
|
1541
|
+
(r) => pt(r, {
|
|
1542
|
+
value: (u) => {
|
|
1540
1543
|
const c = y(
|
|
1541
|
-
|
|
1544
|
+
u,
|
|
1542
1545
|
t
|
|
1543
|
-
)((o, d) => n(o.value, d)),
|
|
1544
|
-
|
|
1546
|
+
)((o, d) => n(o.value, d)), i = y(
|
|
1547
|
+
u,
|
|
1545
1548
|
l
|
|
1546
1549
|
)((o, d) => d != null && n(o.value, d));
|
|
1547
1550
|
return m.div(
|
|
1548
|
-
|
|
1549
|
-
|
|
1551
|
+
W(c.dispose),
|
|
1552
|
+
W(i.dispose),
|
|
1550
1553
|
s.class("bc-dropdown__option"),
|
|
1551
1554
|
s.class(
|
|
1552
1555
|
y(
|
|
1553
1556
|
c,
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
)((o, d,
|
|
1557
|
+
i,
|
|
1558
|
+
u
|
|
1559
|
+
)((o, d, f) => {
|
|
1557
1560
|
const x = [];
|
|
1558
|
-
return o && x.push("bc-dropdown__option--selected"), d && x.push("bc-dropdown__option--focused"),
|
|
1561
|
+
return o && x.push("bc-dropdown__option--selected"), d && x.push("bc-dropdown__option--focused"), f.disabled && x.push("bc-dropdown__option--disabled"), x.join(" ");
|
|
1559
1562
|
})
|
|
1560
1563
|
),
|
|
1561
1564
|
s.role("option"),
|
|
1562
|
-
s.id(
|
|
1565
|
+
s.id(u.map((o) => `dropdown-option-${String(o.value)}`)),
|
|
1563
1566
|
A.selected(c),
|
|
1564
|
-
|
|
1567
|
+
nn("value", u.$.value),
|
|
1565
1568
|
te(
|
|
1566
|
-
|
|
1567
|
-
() => $.click(() => a(
|
|
1569
|
+
u.map((o) => !o.disabled),
|
|
1570
|
+
() => $.click(() => a(u.value.value)),
|
|
1568
1571
|
() => O
|
|
1569
1572
|
),
|
|
1570
1573
|
m.div(
|
|
1571
1574
|
s.class("bc-dropdown__option-content"),
|
|
1572
1575
|
// Before content - simple conditional rendering
|
|
1573
|
-
|
|
1576
|
+
u.value.before && m.span(
|
|
1574
1577
|
s.class("bc-dropdown__option-before"),
|
|
1575
|
-
|
|
1578
|
+
u.value.before
|
|
1576
1579
|
),
|
|
1577
1580
|
// Label
|
|
1578
|
-
m.span(s.class("bc-dropdown__option-label"),
|
|
1581
|
+
m.span(s.class("bc-dropdown__option-label"), u.$.label),
|
|
1579
1582
|
// After content - simple conditional rendering
|
|
1580
|
-
|
|
1583
|
+
u.value.after && m.span(s.class("bc-dropdown__option-after"), u.value.after)
|
|
1581
1584
|
)
|
|
1582
1585
|
);
|
|
1583
1586
|
},
|
|
1584
|
-
group: (
|
|
1587
|
+
group: (u) => m.div(
|
|
1585
1588
|
s.class("bc-dropdown__group"),
|
|
1586
1589
|
s.role("group"),
|
|
1587
|
-
A.label(
|
|
1588
|
-
m.div(s.class("bc-dropdown__group-label"),
|
|
1590
|
+
A.label(u.$.group),
|
|
1591
|
+
m.div(s.class("bc-dropdown__group-label"), u.$.group),
|
|
1589
1592
|
pe(
|
|
1590
|
-
|
|
1593
|
+
u.$.options,
|
|
1591
1594
|
(c) => Tt(
|
|
1592
1595
|
c,
|
|
1593
1596
|
n,
|
|
@@ -1599,32 +1602,32 @@ const ue = {
|
|
|
1599
1602
|
),
|
|
1600
1603
|
break: () => m.hr(s.class("bc-dropdown__separator"))
|
|
1601
1604
|
})
|
|
1602
|
-
),
|
|
1605
|
+
), An = (e) => {
|
|
1603
1606
|
const {
|
|
1604
1607
|
value: n,
|
|
1605
1608
|
options: t,
|
|
1606
1609
|
unselectedLabel: a,
|
|
1607
1610
|
equality: l = (o, d) => o === d,
|
|
1608
1611
|
placeholder: r,
|
|
1609
|
-
searchable:
|
|
1612
|
+
searchable: u = !1
|
|
1610
1613
|
} = e, c = y(
|
|
1611
1614
|
n,
|
|
1612
1615
|
t
|
|
1613
1616
|
)((o, d) => {
|
|
1614
1617
|
if (o == null) return "";
|
|
1615
|
-
const
|
|
1618
|
+
const f = (x) => {
|
|
1616
1619
|
for (const p of x) {
|
|
1617
1620
|
if (p.type === "value" && l(p.value, o))
|
|
1618
1621
|
return p.label;
|
|
1619
1622
|
if (p.type === "group") {
|
|
1620
|
-
const g =
|
|
1623
|
+
const g = f(p.options);
|
|
1621
1624
|
if (g) return g;
|
|
1622
1625
|
}
|
|
1623
1626
|
}
|
|
1624
1627
|
};
|
|
1625
|
-
return
|
|
1626
|
-
}),
|
|
1627
|
-
return
|
|
1628
|
+
return f(d) || String(o);
|
|
1629
|
+
}), i = y(u)((o) => !o);
|
|
1630
|
+
return $t({
|
|
1628
1631
|
...e,
|
|
1629
1632
|
role: "dropdown",
|
|
1630
1633
|
display: te(
|
|
@@ -1632,57 +1635,57 @@ const ue = {
|
|
|
1632
1635
|
() => c,
|
|
1633
1636
|
() => Y(
|
|
1634
1637
|
ne,
|
|
1635
|
-
(o) =>
|
|
1638
|
+
(o) => Ne(r, a, o.$.selectOne)
|
|
1636
1639
|
)
|
|
1637
1640
|
),
|
|
1638
1641
|
optionsSource: t,
|
|
1639
|
-
allowSpaceToggle:
|
|
1642
|
+
allowSpaceToggle: i,
|
|
1640
1643
|
buildListboxContent: ({ focusedValue: o, onSelect: d }) => pe(
|
|
1641
1644
|
t,
|
|
1642
|
-
(
|
|
1645
|
+
(f) => Tt(f, l, n, d, o)
|
|
1643
1646
|
)
|
|
1644
1647
|
});
|
|
1645
1648
|
}, Bn = (e) => {
|
|
1646
1649
|
const { controller: n, onChange: t, onBlur: a, ...l } = e;
|
|
1647
|
-
return
|
|
1650
|
+
return An({
|
|
1648
1651
|
...l,
|
|
1649
1652
|
value: n.value,
|
|
1650
1653
|
onChange: xt(n, t),
|
|
1651
1654
|
onBlur: vt(n, a)
|
|
1652
1655
|
});
|
|
1653
|
-
}, xa = (e) =>
|
|
1656
|
+
}, xa = (e) => Re({
|
|
1654
1657
|
...e,
|
|
1655
1658
|
content: Bn(e)
|
|
1656
|
-
}),
|
|
1659
|
+
}), _t = (e, n, t, a, l, r) => _e(
|
|
1657
1660
|
e,
|
|
1658
|
-
(
|
|
1661
|
+
(u) => pt(u, {
|
|
1659
1662
|
value: (c) => {
|
|
1660
|
-
const
|
|
1663
|
+
const i = y(
|
|
1661
1664
|
c,
|
|
1662
1665
|
t
|
|
1663
|
-
)((d,
|
|
1666
|
+
)((d, f) => n(d.value, f)), o = y(
|
|
1664
1667
|
c,
|
|
1665
1668
|
l
|
|
1666
1669
|
)(
|
|
1667
|
-
(d,
|
|
1670
|
+
(d, f) => f != null && n(d.value, f)
|
|
1668
1671
|
);
|
|
1669
1672
|
return m.div(
|
|
1670
|
-
|
|
1671
|
-
|
|
1673
|
+
W(i.dispose),
|
|
1674
|
+
W(o.dispose),
|
|
1672
1675
|
s.class("bc-dropdown__option"),
|
|
1673
1676
|
s.class(
|
|
1674
1677
|
y(
|
|
1675
|
-
|
|
1678
|
+
i,
|
|
1676
1679
|
o,
|
|
1677
1680
|
c
|
|
1678
|
-
)((d,
|
|
1681
|
+
)((d, f, x) => {
|
|
1679
1682
|
const p = [];
|
|
1680
|
-
return d && p.push("bc-dropdown__option--selected"),
|
|
1683
|
+
return d && p.push("bc-dropdown__option--selected"), f && p.push("bc-dropdown__option--focused"), x.disabled && p.push("bc-dropdown__option--disabled"), p.join(" ");
|
|
1681
1684
|
})
|
|
1682
1685
|
),
|
|
1683
1686
|
s.role("option"),
|
|
1684
1687
|
s.id(c.map((d) => `dropdown-option-${String(d.value)}`)),
|
|
1685
|
-
A.selected(
|
|
1688
|
+
A.selected(i),
|
|
1686
1689
|
te(
|
|
1687
1690
|
c.map((d) => !d.disabled),
|
|
1688
1691
|
() => $.click(() => a(c.value.value)),
|
|
@@ -1712,8 +1715,8 @@ const ue = {
|
|
|
1712
1715
|
m.div(s.class("bc-dropdown__group-label"), c.$.group),
|
|
1713
1716
|
pe(
|
|
1714
1717
|
c.$.options,
|
|
1715
|
-
(
|
|
1716
|
-
|
|
1718
|
+
(i) => _t(
|
|
1719
|
+
i,
|
|
1717
1720
|
n,
|
|
1718
1721
|
t,
|
|
1719
1722
|
a,
|
|
@@ -1724,51 +1727,51 @@ const ue = {
|
|
|
1724
1727
|
),
|
|
1725
1728
|
break: () => m.hr(s.class("bc-dropdown__separator"))
|
|
1726
1729
|
})
|
|
1727
|
-
),
|
|
1730
|
+
), Ln = (e) => {
|
|
1728
1731
|
const {
|
|
1729
1732
|
value: n,
|
|
1730
1733
|
loadOptions: t,
|
|
1731
1734
|
renderOption: a,
|
|
1732
1735
|
renderValue: l,
|
|
1733
|
-
equality: r = (
|
|
1734
|
-
placeholder:
|
|
1736
|
+
equality: r = (b, w) => b === w,
|
|
1737
|
+
placeholder: u,
|
|
1735
1738
|
searchPlaceholder: c,
|
|
1736
|
-
debounceMs:
|
|
1737
|
-
} = e, o =
|
|
1739
|
+
debounceMs: i = 150
|
|
1740
|
+
} = e, o = j(""), d = j(!1), f = j([]);
|
|
1738
1741
|
let x;
|
|
1739
1742
|
const p = S.toSignal(n), g = () => (l ?? a)(p);
|
|
1740
1743
|
let v = null;
|
|
1741
|
-
const
|
|
1742
|
-
d.set(!0), Promise.resolve(t(
|
|
1743
|
-
|
|
1744
|
+
const T = (b) => {
|
|
1745
|
+
d.set(!0), Promise.resolve(t(b)).then((w) => {
|
|
1746
|
+
f.set(w ?? []);
|
|
1744
1747
|
}).catch(() => {
|
|
1745
|
-
|
|
1748
|
+
f.set([]);
|
|
1746
1749
|
}).finally(() => d.set(!1));
|
|
1747
|
-
}, C = (
|
|
1750
|
+
}, C = (b) => {
|
|
1748
1751
|
v != null && (clearTimeout(v), v = null), v = setTimeout(
|
|
1749
1752
|
() => {
|
|
1750
|
-
|
|
1753
|
+
T(b);
|
|
1751
1754
|
},
|
|
1752
|
-
Math.max(0,
|
|
1755
|
+
Math.max(0, i)
|
|
1753
1756
|
);
|
|
1754
1757
|
};
|
|
1755
|
-
return
|
|
1758
|
+
return $t({
|
|
1756
1759
|
...e,
|
|
1757
1760
|
role: "combobox",
|
|
1758
1761
|
display: te(
|
|
1759
|
-
y(n)((
|
|
1762
|
+
y(n)((b) => b != null),
|
|
1760
1763
|
g,
|
|
1761
|
-
() => Y(ne, (
|
|
1764
|
+
() => Y(ne, (b) => b.$.selectOne)
|
|
1762
1765
|
),
|
|
1763
|
-
optionsSource:
|
|
1766
|
+
optionsSource: f,
|
|
1764
1767
|
onBeforeOpen: () => {
|
|
1765
|
-
const
|
|
1766
|
-
C(
|
|
1768
|
+
const b = S.get(o);
|
|
1769
|
+
C(b);
|
|
1767
1770
|
},
|
|
1768
1771
|
onAfterOpen: () => {
|
|
1769
1772
|
x?.focus();
|
|
1770
1773
|
},
|
|
1771
|
-
buildListboxContent: ({ focusedValue:
|
|
1774
|
+
buildListboxContent: ({ focusedValue: b, handleKeyDown: w, onSelect: D }) => M(
|
|
1772
1775
|
// Search input at the top
|
|
1773
1776
|
m.div(
|
|
1774
1777
|
s.class("bc-dropdown__search"),
|
|
@@ -1778,11 +1781,11 @@ const ue = {
|
|
|
1778
1781
|
s.placeholder(
|
|
1779
1782
|
y(
|
|
1780
1783
|
c,
|
|
1781
|
-
|
|
1784
|
+
u
|
|
1782
1785
|
)((V, E) => V ?? E ?? "Search")
|
|
1783
1786
|
),
|
|
1784
1787
|
s.value(o),
|
|
1785
|
-
|
|
1788
|
+
Q((V) => (x = V, O)),
|
|
1786
1789
|
$.input((V) => {
|
|
1787
1790
|
const E = V.target;
|
|
1788
1791
|
o.set(E.value), C(E.value);
|
|
@@ -1794,99 +1797,99 @@ const ue = {
|
|
|
1794
1797
|
d,
|
|
1795
1798
|
() => m.div(
|
|
1796
1799
|
s.class("bc-dropdown__loading"),
|
|
1797
|
-
|
|
1800
|
+
U({ icon: "ph:spinner-bold", color: "neutral" })
|
|
1798
1801
|
),
|
|
1799
1802
|
() => pe(
|
|
1800
|
-
|
|
1801
|
-
(V) =>
|
|
1803
|
+
f,
|
|
1804
|
+
(V) => _t(
|
|
1802
1805
|
V,
|
|
1803
1806
|
r,
|
|
1804
1807
|
p,
|
|
1805
1808
|
D,
|
|
1806
|
-
|
|
1809
|
+
b,
|
|
1807
1810
|
a
|
|
1808
1811
|
)
|
|
1809
1812
|
)
|
|
1810
1813
|
)
|
|
1811
1814
|
)
|
|
1812
1815
|
});
|
|
1813
|
-
},
|
|
1816
|
+
}, Mn = (e) => {
|
|
1814
1817
|
const { controller: n, onChange: t, onBlur: a, ...l } = e;
|
|
1815
|
-
return
|
|
1818
|
+
return Ln({
|
|
1816
1819
|
...l,
|
|
1817
1820
|
value: n.value,
|
|
1818
1821
|
onChange: xt(n, t),
|
|
1819
1822
|
onBlur: vt(n, a)
|
|
1820
1823
|
});
|
|
1821
|
-
}, ya = (e) =>
|
|
1824
|
+
}, ya = (e) => Re({
|
|
1822
1825
|
...e,
|
|
1823
|
-
content:
|
|
1826
|
+
content: Mn(e)
|
|
1824
1827
|
});
|
|
1825
|
-
function
|
|
1828
|
+
function Dt(e) {
|
|
1826
1829
|
const {
|
|
1827
1830
|
items: n,
|
|
1828
1831
|
placement: t = "bottom-start",
|
|
1829
1832
|
showDelay: a = 0,
|
|
1830
1833
|
hideDelay: l = 100,
|
|
1831
1834
|
mainAxisOffset: r = 4,
|
|
1832
|
-
crossAxisOffset:
|
|
1835
|
+
crossAxisOffset: u = 0,
|
|
1833
1836
|
showOn: c = "click",
|
|
1834
|
-
closable:
|
|
1837
|
+
closable: i = !0,
|
|
1835
1838
|
onClose: o,
|
|
1836
1839
|
onAction: d,
|
|
1837
|
-
ariaLabel:
|
|
1840
|
+
ariaLabel: f,
|
|
1838
1841
|
ariaLabelledBy: x
|
|
1839
|
-
} = e, p = re("menu"), g =
|
|
1840
|
-
let
|
|
1841
|
-
return
|
|
1842
|
-
content: () =>
|
|
1843
|
-
|
|
1844
|
-
const
|
|
1845
|
-
if (
|
|
1846
|
-
let N = k +
|
|
1847
|
-
for (; H <
|
|
1848
|
-
N >=
|
|
1849
|
-
const F =
|
|
1842
|
+
} = e, p = re("menu"), g = j(-1), v = j([]);
|
|
1843
|
+
let T = null;
|
|
1844
|
+
return De({
|
|
1845
|
+
content: () => Q((C) => {
|
|
1846
|
+
T = document.activeElement;
|
|
1847
|
+
const b = (k, _, B) => {
|
|
1848
|
+
if (_.length === 0) return -1;
|
|
1849
|
+
let N = k + B, H = 0;
|
|
1850
|
+
for (; H < _.length; ) {
|
|
1851
|
+
N >= _.length && (N = 0), N < 0 && (N = _.length - 1);
|
|
1852
|
+
const F = _[N];
|
|
1850
1853
|
if (F && F.getAttribute("aria-disabled") !== "true")
|
|
1851
1854
|
return N;
|
|
1852
|
-
N +=
|
|
1855
|
+
N += B, H++;
|
|
1853
1856
|
}
|
|
1854
1857
|
return k;
|
|
1855
1858
|
}, w = (k) => {
|
|
1856
|
-
const
|
|
1859
|
+
const _ = v.value, B = g.value;
|
|
1857
1860
|
switch (k.key) {
|
|
1858
1861
|
case "ArrowDown":
|
|
1859
1862
|
k.preventDefault(), k.stopPropagation();
|
|
1860
|
-
const N =
|
|
1861
|
-
D(N,
|
|
1863
|
+
const N = b(B, _, 1);
|
|
1864
|
+
D(N, _);
|
|
1862
1865
|
break;
|
|
1863
1866
|
case "ArrowUp":
|
|
1864
1867
|
k.preventDefault(), k.stopPropagation();
|
|
1865
|
-
const H =
|
|
1866
|
-
D(H,
|
|
1868
|
+
const H = b(B, _, -1);
|
|
1869
|
+
D(H, _);
|
|
1867
1870
|
break;
|
|
1868
1871
|
case "Enter":
|
|
1869
1872
|
case " ":
|
|
1870
|
-
if (k.preventDefault(), k.stopPropagation(),
|
|
1871
|
-
const F =
|
|
1873
|
+
if (k.preventDefault(), k.stopPropagation(), B >= 0 && _[B]) {
|
|
1874
|
+
const F = _[B];
|
|
1872
1875
|
if (F.getAttribute("aria-disabled") === "true")
|
|
1873
1876
|
return;
|
|
1874
|
-
const
|
|
1875
|
-
|
|
1877
|
+
const z = F.getAttribute("data-key");
|
|
1878
|
+
z && d && d(z), F.click(), o?.();
|
|
1876
1879
|
}
|
|
1877
1880
|
break;
|
|
1878
1881
|
case "Escape":
|
|
1879
1882
|
o?.();
|
|
1880
1883
|
break;
|
|
1881
1884
|
case "Home":
|
|
1882
|
-
k.preventDefault(), k.stopPropagation(),
|
|
1885
|
+
k.preventDefault(), k.stopPropagation(), _.length > 0 && D(0, _);
|
|
1883
1886
|
break;
|
|
1884
1887
|
case "End":
|
|
1885
|
-
k.preventDefault(), k.stopPropagation(),
|
|
1888
|
+
k.preventDefault(), k.stopPropagation(), _.length > 0 && D(_.length - 1, _);
|
|
1886
1889
|
break;
|
|
1887
1890
|
case "ArrowRight":
|
|
1888
|
-
if (k.preventDefault(), k.stopPropagation(),
|
|
1889
|
-
const F =
|
|
1891
|
+
if (k.preventDefault(), k.stopPropagation(), B >= 0 && _[B]) {
|
|
1892
|
+
const F = _[B];
|
|
1890
1893
|
F.classList.contains(
|
|
1891
1894
|
"bc-menu-item--has-submenu"
|
|
1892
1895
|
) && F.dispatchEvent(new Event("mouseenter"));
|
|
@@ -1896,44 +1899,44 @@ function At(e) {
|
|
|
1896
1899
|
k.preventDefault(), k.stopPropagation(), o?.();
|
|
1897
1900
|
break;
|
|
1898
1901
|
}
|
|
1899
|
-
}, D = (k,
|
|
1900
|
-
g.value >= 0 &&
|
|
1902
|
+
}, D = (k, _) => {
|
|
1903
|
+
g.value >= 0 && _[g.value] && (_[g.value].classList.remove(
|
|
1901
1904
|
"bc-menu-item--focused"
|
|
1902
|
-
),
|
|
1905
|
+
), _[g.value].removeAttribute("aria-selected")), k >= 0 && _[k] && (_[k].classList.add("bc-menu-item--focused"), _[k].setAttribute("aria-selected", "true"), g.set(k), typeof _[k].scrollIntoView == "function" && _[k].scrollIntoView({ block: "nearest" }));
|
|
1903
1906
|
}, V = () => {
|
|
1904
1907
|
const k = Array.from(
|
|
1905
1908
|
C.querySelectorAll('[role="menuitem"]')
|
|
1906
1909
|
);
|
|
1907
1910
|
if (v.set(k), k.length > 0) {
|
|
1908
|
-
const
|
|
1909
|
-
(
|
|
1911
|
+
const _ = k.findIndex(
|
|
1912
|
+
(B) => B.getAttribute("aria-disabled") !== "true"
|
|
1910
1913
|
);
|
|
1911
|
-
|
|
1914
|
+
_ >= 0 && D(_, k);
|
|
1912
1915
|
}
|
|
1913
1916
|
}, E = new MutationObserver(V);
|
|
1914
1917
|
return E.observe(C, { childList: !0, subtree: !0 }), setTimeout(() => {
|
|
1915
1918
|
V(), C.focus();
|
|
1916
1919
|
}, 0), document.addEventListener("keydown", w, !0), M(
|
|
1917
|
-
|
|
1918
|
-
E.disconnect(), document.removeEventListener("keydown", w, !0),
|
|
1920
|
+
W(() => {
|
|
1921
|
+
E.disconnect(), document.removeEventListener("keydown", w, !0), T && T.focus();
|
|
1919
1922
|
}),
|
|
1920
1923
|
s.class("bc-menu"),
|
|
1921
1924
|
s.id(p),
|
|
1922
1925
|
s.role("menu"),
|
|
1923
1926
|
s.tabindex(-1),
|
|
1924
1927
|
A.orientation("vertical"),
|
|
1925
|
-
|
|
1928
|
+
f ? A.label(f) : M(),
|
|
1926
1929
|
x ? A.labelledby(x) : M(),
|
|
1927
1930
|
A.activedescendant(
|
|
1928
1931
|
g.map((k) => {
|
|
1929
|
-
const
|
|
1930
|
-
return k >= 0 &&
|
|
1932
|
+
const _ = v.value;
|
|
1933
|
+
return k >= 0 && _[k] ? _[k].id || `${p}-item-${k}` : "";
|
|
1931
1934
|
})
|
|
1932
1935
|
),
|
|
1933
1936
|
$.click((k) => {
|
|
1934
|
-
const
|
|
1935
|
-
if (
|
|
1936
|
-
const N =
|
|
1937
|
+
const B = k.target.closest('[role="menuitem"]');
|
|
1938
|
+
if (B && B.getAttribute("aria-disabled") !== "true") {
|
|
1939
|
+
const N = B.getAttribute("data-key");
|
|
1937
1940
|
N && d && d(N);
|
|
1938
1941
|
}
|
|
1939
1942
|
}),
|
|
@@ -1943,10 +1946,10 @@ function At(e) {
|
|
|
1943
1946
|
A.live("polite"),
|
|
1944
1947
|
A.atomic(!0),
|
|
1945
1948
|
g.map((k) => {
|
|
1946
|
-
const
|
|
1947
|
-
if (k >= 0 &&
|
|
1948
|
-
const
|
|
1949
|
-
return
|
|
1949
|
+
const _ = v.value;
|
|
1950
|
+
if (k >= 0 && _[k]) {
|
|
1951
|
+
const B = _[k].textContent || "";
|
|
1952
|
+
return _[k].getAttribute("aria-disabled") === "true" ? `${B}, disabled` : `${B}, ${k + 1} of ${_.length}`;
|
|
1950
1953
|
}
|
|
1951
1954
|
return "";
|
|
1952
1955
|
})
|
|
@@ -1958,9 +1961,9 @@ function At(e) {
|
|
|
1958
1961
|
showDelay: a,
|
|
1959
1962
|
hideDelay: l,
|
|
1960
1963
|
mainAxisOffset: r,
|
|
1961
|
-
crossAxisOffset:
|
|
1964
|
+
crossAxisOffset: u,
|
|
1962
1965
|
showOn: c,
|
|
1963
|
-
closable:
|
|
1966
|
+
closable: i,
|
|
1964
1967
|
role: "menu"
|
|
1965
1968
|
});
|
|
1966
1969
|
}
|
|
@@ -1971,21 +1974,21 @@ function wa(e) {
|
|
|
1971
1974
|
startContent: a,
|
|
1972
1975
|
endContent: l,
|
|
1973
1976
|
disabled: r = !1,
|
|
1974
|
-
onClick:
|
|
1977
|
+
onClick: u,
|
|
1975
1978
|
ariaLabel: c,
|
|
1976
|
-
submenu:
|
|
1979
|
+
submenu: i,
|
|
1977
1980
|
submenuPlacement: o = "right-start"
|
|
1978
|
-
} = e, d = n ?? re("menu-item"),
|
|
1981
|
+
} = e, d = n ?? re("menu-item"), f = `menu-item-${d}`, x = i != null;
|
|
1979
1982
|
return m.div(
|
|
1980
1983
|
s.class(
|
|
1981
1984
|
y(r)(
|
|
1982
1985
|
(p) => `bc-menu-item ${p ? "bc-menu-item--disabled" : ""} ${x ? "bc-menu-item--has-submenu" : ""}`
|
|
1983
1986
|
)
|
|
1984
1987
|
),
|
|
1985
|
-
s.id(
|
|
1988
|
+
s.id(f),
|
|
1986
1989
|
s.role("menuitem"),
|
|
1987
1990
|
s.tabindex(-1),
|
|
1988
|
-
|
|
1991
|
+
Ee.key(d),
|
|
1989
1992
|
A.disabled(r),
|
|
1990
1993
|
A.selected(!1),
|
|
1991
1994
|
// Will be updated by focus management
|
|
@@ -1996,7 +1999,7 @@ function wa(e) {
|
|
|
1996
1999
|
p.preventDefault(), p.stopPropagation();
|
|
1997
2000
|
return;
|
|
1998
2001
|
}
|
|
1999
|
-
|
|
2002
|
+
u?.();
|
|
2000
2003
|
}),
|
|
2001
2004
|
// Start content
|
|
2002
2005
|
a && m.span(s.class("bc-menu-item__start"), a),
|
|
@@ -2005,11 +2008,11 @@ function wa(e) {
|
|
|
2005
2008
|
// End content
|
|
2006
2009
|
l && m.span(s.class("bc-menu-item__end"), l),
|
|
2007
2010
|
// Submenu (if present)
|
|
2008
|
-
x &&
|
|
2011
|
+
x && i ? De({
|
|
2009
2012
|
content: () => M(
|
|
2010
2013
|
s.class("bc-menu bc-submenu"),
|
|
2011
2014
|
s.role("menu"),
|
|
2012
|
-
...
|
|
2015
|
+
...i()
|
|
2013
2016
|
),
|
|
2014
2017
|
placement: o,
|
|
2015
2018
|
showOn: "hover",
|
|
@@ -2031,21 +2034,21 @@ function Vt(e = {}) {
|
|
|
2031
2034
|
n && m.span(s.class("bc-menu-separator__label"), n)
|
|
2032
2035
|
);
|
|
2033
2036
|
}
|
|
2034
|
-
function
|
|
2037
|
+
function At(e, n, t) {
|
|
2035
2038
|
return e.some((l) => t(l, n)) ? e.filter((l) => !t(l, n)) : [...e, n];
|
|
2036
2039
|
}
|
|
2037
2040
|
function Bt(e, n, t) {
|
|
2038
2041
|
return e.filter((a) => !t(a, n));
|
|
2039
2042
|
}
|
|
2040
|
-
function
|
|
2043
|
+
function Lt(e, n, t) {
|
|
2041
2044
|
return e.some((a) => t(a, n));
|
|
2042
2045
|
}
|
|
2043
|
-
function
|
|
2046
|
+
function Mt(e, n, t) {
|
|
2044
2047
|
for (const a of e)
|
|
2045
2048
|
if (a.type === "value") {
|
|
2046
2049
|
if (t(a.value, n)) return { label: a.label };
|
|
2047
2050
|
} else if (a.type === "group") {
|
|
2048
|
-
const l =
|
|
2051
|
+
const l = Mt(
|
|
2049
2052
|
a.options,
|
|
2050
2053
|
n,
|
|
2051
2054
|
t
|
|
@@ -2053,45 +2056,45 @@ function Ot(e, n, t) {
|
|
|
2053
2056
|
if (l != null) return l;
|
|
2054
2057
|
}
|
|
2055
2058
|
}
|
|
2056
|
-
function
|
|
2057
|
-
return
|
|
2059
|
+
function On(e, n, t) {
|
|
2060
|
+
return Mt(e, n, t)?.label ?? String(n);
|
|
2058
2061
|
}
|
|
2059
|
-
function
|
|
2060
|
-
const a = n.trim().toLowerCase(), l = t ?? ((
|
|
2062
|
+
function Ot(e, n, t) {
|
|
2063
|
+
const a = n.trim().toLowerCase(), l = t ?? ((u, c) => c.label.toLowerCase().includes(u));
|
|
2061
2064
|
if (a === "") return e;
|
|
2062
2065
|
const r = [];
|
|
2063
|
-
for (const
|
|
2064
|
-
if (
|
|
2065
|
-
l(a, { label:
|
|
2066
|
-
else if (
|
|
2067
|
-
const c =
|
|
2068
|
-
|
|
2066
|
+
for (const u of e)
|
|
2067
|
+
if (u.type === "value")
|
|
2068
|
+
l(a, { label: u.label }) && r.push(u);
|
|
2069
|
+
else if (u.type === "group") {
|
|
2070
|
+
const c = Ot(
|
|
2071
|
+
u.options,
|
|
2069
2072
|
a,
|
|
2070
2073
|
l
|
|
2071
2074
|
);
|
|
2072
|
-
c.length > 0 && r.push({ ...
|
|
2075
|
+
c.length > 0 && r.push({ ...u, options: c });
|
|
2073
2076
|
}
|
|
2074
2077
|
return r;
|
|
2075
2078
|
}
|
|
2076
|
-
function
|
|
2079
|
+
function Nt(e) {
|
|
2077
2080
|
const { values: n, options: t, equality: a, disabled: l, onRemove: r } = e;
|
|
2078
|
-
return
|
|
2081
|
+
return zt(
|
|
2079
2082
|
n,
|
|
2080
2083
|
() => pe(
|
|
2081
2084
|
n,
|
|
2082
|
-
(
|
|
2085
|
+
(u) => kt({
|
|
2083
2086
|
value: y(
|
|
2084
|
-
|
|
2087
|
+
u,
|
|
2085
2088
|
t
|
|
2086
|
-
)((c,
|
|
2087
|
-
onClose: () => r(
|
|
2089
|
+
)((c, i) => On(i, c, a)),
|
|
2090
|
+
onClose: () => r(u.value),
|
|
2088
2091
|
disabled: l
|
|
2089
2092
|
})
|
|
2090
2093
|
),
|
|
2091
2094
|
() => m.span(s.class("bc-input-container__placeholder"), e.placeholder)
|
|
2092
2095
|
);
|
|
2093
2096
|
}
|
|
2094
|
-
function
|
|
2097
|
+
function Pt(e) {
|
|
2095
2098
|
const {
|
|
2096
2099
|
value: n,
|
|
2097
2100
|
options: t,
|
|
@@ -2100,31 +2103,31 @@ function Et(e) {
|
|
|
2100
2103
|
} = e, r = (o) => {
|
|
2101
2104
|
const d = S.get(n);
|
|
2102
2105
|
e.onChange?.(Bt(d, o, a));
|
|
2103
|
-
},
|
|
2106
|
+
}, u = (o) => {
|
|
2104
2107
|
const d = S.get(n);
|
|
2105
|
-
e.onChange?.(
|
|
2106
|
-
}, c = (o) => y(n)((d) =>
|
|
2108
|
+
e.onChange?.(At(d, o, a));
|
|
2109
|
+
}, c = (o) => y(n)((d) => Lt(d, o, a)), i = Dt({
|
|
2107
2110
|
items: () => {
|
|
2108
2111
|
const o = S.get(t), d = [];
|
|
2109
|
-
for (const
|
|
2110
|
-
if (
|
|
2111
|
-
const x = c(
|
|
2112
|
+
for (const f of o)
|
|
2113
|
+
if (f.type === "value") {
|
|
2114
|
+
const x = c(f.value);
|
|
2112
2115
|
d.push(
|
|
2113
2116
|
m.div(
|
|
2114
2117
|
s.role("menuitem"),
|
|
2115
2118
|
s.tabindex(-1),
|
|
2116
|
-
A.disabled(
|
|
2119
|
+
A.disabled(f.disabled === !0),
|
|
2117
2120
|
A.checked(x),
|
|
2118
2121
|
s.class("bc-menu-item"),
|
|
2119
|
-
m.span(s.class("bc-menu-item__content"),
|
|
2120
|
-
$.click(() =>
|
|
2122
|
+
m.span(s.class("bc-menu-item__content"), f.label),
|
|
2123
|
+
$.click(() => u(f.value))
|
|
2121
2124
|
)
|
|
2122
2125
|
);
|
|
2123
|
-
} else
|
|
2126
|
+
} else f.type === "group" ? d.push(
|
|
2124
2127
|
m.div(
|
|
2125
2128
|
s.class("bc-menu-group"),
|
|
2126
|
-
m.div(s.class("bc-menu-group__label"),
|
|
2127
|
-
...
|
|
2129
|
+
m.div(s.class("bc-menu-group__label"), f.group),
|
|
2130
|
+
...f.options.map((x) => {
|
|
2128
2131
|
if (x.type === "value") {
|
|
2129
2132
|
const p = c(x.value);
|
|
2130
2133
|
return m.div(
|
|
@@ -2134,7 +2137,7 @@ function Et(e) {
|
|
|
2134
2137
|
A.checked(p),
|
|
2135
2138
|
s.class("bc-menu-item"),
|
|
2136
2139
|
m.span(s.class("bc-menu-item__content"), x.label),
|
|
2137
|
-
$.click(() =>
|
|
2140
|
+
$.click(() => u(x.value))
|
|
2138
2141
|
);
|
|
2139
2142
|
}
|
|
2140
2143
|
return M();
|
|
@@ -2151,10 +2154,10 @@ function Et(e) {
|
|
|
2151
2154
|
});
|
|
2152
2155
|
return q({
|
|
2153
2156
|
...e,
|
|
2154
|
-
before: e.before ??
|
|
2157
|
+
before: e.before ?? U({ icon: "tabler:tags", color: "neutral" }),
|
|
2155
2158
|
input: M(
|
|
2156
2159
|
s.class("bc-input-container__tags"),
|
|
2157
|
-
|
|
2160
|
+
Nt({
|
|
2158
2161
|
values: n,
|
|
2159
2162
|
placeholder: l,
|
|
2160
2163
|
options: t,
|
|
@@ -2164,42 +2167,42 @@ function Et(e) {
|
|
|
2164
2167
|
}),
|
|
2165
2168
|
m.div(
|
|
2166
2169
|
s.class("bc-input-container__tags-selector"),
|
|
2167
|
-
|
|
2170
|
+
U({
|
|
2168
2171
|
icon: "line-md:plus",
|
|
2169
2172
|
color: "neutral",
|
|
2170
2173
|
size: "sm"
|
|
2171
2174
|
}),
|
|
2172
|
-
|
|
2175
|
+
i
|
|
2173
2176
|
)
|
|
2174
2177
|
)
|
|
2175
2178
|
});
|
|
2176
2179
|
}
|
|
2177
2180
|
function Sa(e) {
|
|
2178
|
-
return yt(
|
|
2181
|
+
return yt(Pt, e);
|
|
2179
2182
|
}
|
|
2180
2183
|
function Ca(e) {
|
|
2181
|
-
return wt(
|
|
2184
|
+
return wt(Pt, e);
|
|
2182
2185
|
}
|
|
2183
|
-
function
|
|
2186
|
+
function Et(e) {
|
|
2184
2187
|
const {
|
|
2185
2188
|
value: n,
|
|
2186
2189
|
options: t,
|
|
2187
2190
|
equality: a = (p, g) => p === g,
|
|
2188
2191
|
placeholder: l,
|
|
2189
2192
|
searchPlaceholder: r,
|
|
2190
|
-
filter:
|
|
2191
|
-
} = e, c =
|
|
2193
|
+
filter: u
|
|
2194
|
+
} = e, c = j(""), i = (p) => {
|
|
2192
2195
|
const g = S.get(n);
|
|
2193
2196
|
e.onChange?.(Bt(g, p, a));
|
|
2194
2197
|
}, o = (p) => {
|
|
2195
2198
|
const g = S.get(n);
|
|
2196
|
-
e.onChange?.(
|
|
2197
|
-
}, d = (p) => y(n)((g) =>
|
|
2199
|
+
e.onChange?.(At(g, p, a));
|
|
2200
|
+
}, d = (p) => y(n)((g) => Lt(g, p, a)), f = y(
|
|
2198
2201
|
t,
|
|
2199
2202
|
c
|
|
2200
|
-
)((p, g) =>
|
|
2203
|
+
)((p, g) => Ot(p, g, u)), x = Dt({
|
|
2201
2204
|
items: () => {
|
|
2202
|
-
const p = [], g = S.get(
|
|
2205
|
+
const p = [], g = S.get(f);
|
|
2203
2206
|
if (g.length === 0)
|
|
2204
2207
|
return p.push(
|
|
2205
2208
|
m.div(
|
|
@@ -2209,13 +2212,13 @@ function Ft(e) {
|
|
|
2209
2212
|
), p;
|
|
2210
2213
|
for (const v of g)
|
|
2211
2214
|
if (v.type === "value") {
|
|
2212
|
-
const
|
|
2215
|
+
const T = d(v.value);
|
|
2213
2216
|
p.push(
|
|
2214
2217
|
m.div(
|
|
2215
2218
|
s.role("menuitem"),
|
|
2216
2219
|
s.tabindex(-1),
|
|
2217
2220
|
A.disabled(v.disabled === !0),
|
|
2218
|
-
A.checked(
|
|
2221
|
+
A.checked(T),
|
|
2219
2222
|
s.class("bc-menu-item"),
|
|
2220
2223
|
m.span(s.class("bc-menu-item__content"), v.label),
|
|
2221
2224
|
$.click(() => o(v.value))
|
|
@@ -2225,17 +2228,17 @@ function Ft(e) {
|
|
|
2225
2228
|
m.div(
|
|
2226
2229
|
s.class("bc-menu-group"),
|
|
2227
2230
|
m.div(s.class("bc-menu-group__label"), v.group),
|
|
2228
|
-
...v.options.map((
|
|
2229
|
-
if (
|
|
2230
|
-
const C = d(
|
|
2231
|
+
...v.options.map((T) => {
|
|
2232
|
+
if (T.type === "value") {
|
|
2233
|
+
const C = d(T.value);
|
|
2231
2234
|
return m.div(
|
|
2232
2235
|
s.role("menuitem"),
|
|
2233
2236
|
s.tabindex(-1),
|
|
2234
|
-
A.disabled(
|
|
2237
|
+
A.disabled(T.disabled === !0),
|
|
2235
2238
|
A.checked(C),
|
|
2236
2239
|
s.class("bc-menu-item"),
|
|
2237
|
-
m.span(s.class("bc-menu-item__content"),
|
|
2238
|
-
$.click(() => o(
|
|
2240
|
+
m.span(s.class("bc-menu-item__content"), T.label),
|
|
2241
|
+
$.click(() => o(T.value))
|
|
2239
2242
|
);
|
|
2240
2243
|
}
|
|
2241
2244
|
return M();
|
|
@@ -2250,14 +2253,14 @@ function Ft(e) {
|
|
|
2250
2253
|
// Open the menu when the search input gains focus
|
|
2251
2254
|
// We intentionally do not auto-hide on blur here because the Menu
|
|
2252
2255
|
// manages its own close behavior (outside click, Escape, etc.)
|
|
2253
|
-
showOn: (p, g) =>
|
|
2254
|
-
const
|
|
2256
|
+
showOn: (p, g) => Q((v) => {
|
|
2257
|
+
const T = v.querySelector(
|
|
2255
2258
|
".bc-dropdown__search-input"
|
|
2256
2259
|
);
|
|
2257
|
-
if (
|
|
2260
|
+
if (T) {
|
|
2258
2261
|
const C = () => p();
|
|
2259
|
-
return
|
|
2260
|
-
|
|
2262
|
+
return T.addEventListener("focus", C), W(() => {
|
|
2263
|
+
T.removeEventListener("focus", C);
|
|
2261
2264
|
});
|
|
2262
2265
|
}
|
|
2263
2266
|
return M();
|
|
@@ -2266,16 +2269,16 @@ function Ft(e) {
|
|
|
2266
2269
|
});
|
|
2267
2270
|
return q({
|
|
2268
2271
|
...e,
|
|
2269
|
-
before: e.before ??
|
|
2272
|
+
before: e.before ?? U({ icon: "tabler:tags", color: "neutral" }),
|
|
2270
2273
|
input: M(
|
|
2271
2274
|
s.class("bc-input-container__tags"),
|
|
2272
|
-
|
|
2275
|
+
Nt({
|
|
2273
2276
|
values: n,
|
|
2274
2277
|
options: t,
|
|
2275
2278
|
placeholder: l,
|
|
2276
2279
|
equality: a,
|
|
2277
2280
|
disabled: e.disabled,
|
|
2278
|
-
onRemove:
|
|
2281
|
+
onRemove: i
|
|
2279
2282
|
}),
|
|
2280
2283
|
// Always-visible search box replacing the selector button
|
|
2281
2284
|
m.div(
|
|
@@ -2304,46 +2307,46 @@ function Ft(e) {
|
|
|
2304
2307
|
});
|
|
2305
2308
|
}
|
|
2306
2309
|
function ka(e) {
|
|
2307
|
-
return yt(
|
|
2310
|
+
return yt(Et, e);
|
|
2308
2311
|
}
|
|
2309
2312
|
function Ia(e) {
|
|
2310
|
-
return wt(
|
|
2313
|
+
return wt(Et, e);
|
|
2311
2314
|
}
|
|
2312
2315
|
const $a = (e) => {
|
|
2313
2316
|
const { value: n, onBlur: t, onChange: a } = e;
|
|
2314
2317
|
return q({
|
|
2315
2318
|
...e,
|
|
2316
|
-
input:
|
|
2319
|
+
input: X.date(
|
|
2317
2320
|
G(e),
|
|
2318
2321
|
s.valueAsDate(n),
|
|
2319
2322
|
s.class("bc-input"),
|
|
2320
2323
|
t != null ? $.blur(P(t)) : O,
|
|
2321
|
-
a != null ? $.change(
|
|
2324
|
+
a != null ? $.change(Wt(a)) : O
|
|
2322
2325
|
)
|
|
2323
2326
|
});
|
|
2324
|
-
},
|
|
2327
|
+
}, Nn = (e) => {
|
|
2325
2328
|
const n = e.getFullYear(), t = (e.getMonth() + 1).toString().padStart(2, "0"), a = e.getDate().toString().padStart(2, "0"), l = e.getHours().toString().padStart(2, "0"), r = e.getMinutes().toString().padStart(2, "0");
|
|
2326
2329
|
return `${n}-${t}-${a}T${l}:${r}`;
|
|
2327
|
-
},
|
|
2330
|
+
}, Ta = (e) => {
|
|
2328
2331
|
const { value: n, onBlur: t, onChange: a } = e;
|
|
2329
2332
|
return q({
|
|
2330
2333
|
...e,
|
|
2331
|
-
input:
|
|
2334
|
+
input: X["datetime-local"](
|
|
2332
2335
|
G(e),
|
|
2333
|
-
s.value(S.map(n,
|
|
2336
|
+
s.value(S.map(n, Nn)),
|
|
2334
2337
|
s.class("bc-input"),
|
|
2335
2338
|
t != null ? $.blur(P(t)) : O,
|
|
2336
2339
|
a != null ? $.change(P((l) => a(new Date(l)))) : O
|
|
2337
2340
|
)
|
|
2338
2341
|
});
|
|
2339
|
-
},
|
|
2342
|
+
}, _a = (e) => {
|
|
2340
2343
|
const {
|
|
2341
2344
|
value: n,
|
|
2342
2345
|
onInput: t,
|
|
2343
2346
|
onChange: a,
|
|
2344
2347
|
...l
|
|
2345
2348
|
} = e;
|
|
2346
|
-
return
|
|
2349
|
+
return an({
|
|
2347
2350
|
...l,
|
|
2348
2351
|
maxFiles: 1,
|
|
2349
2352
|
value: S.map(n, (r) => r == null ? [] : [r]),
|
|
@@ -2354,7 +2357,7 @@ const $a = (e) => {
|
|
|
2354
2357
|
t?.(r[0]);
|
|
2355
2358
|
}
|
|
2356
2359
|
});
|
|
2357
|
-
}, Da = (e) =>
|
|
2360
|
+
}, Da = (e) => Xt({
|
|
2358
2361
|
request: e.request,
|
|
2359
2362
|
load: e.load,
|
|
2360
2363
|
convertError: String,
|
|
@@ -2362,7 +2365,7 @@ const $a = (e) => {
|
|
|
2362
2365
|
const t = n.map(
|
|
2363
2366
|
(a) => a.map((l) => typeof l == "object" && "id" in l && "label" in l ? ue.value(l.id, l.label) : l)
|
|
2364
2367
|
);
|
|
2365
|
-
return
|
|
2368
|
+
return Ct({
|
|
2366
2369
|
...e,
|
|
2367
2370
|
options: t,
|
|
2368
2371
|
unselectedLabel: e.unselectedLabel,
|
|
@@ -2372,44 +2375,44 @@ const $a = (e) => {
|
|
|
2372
2375
|
pending: () => Y(
|
|
2373
2376
|
ne,
|
|
2374
2377
|
(n) => m.span(
|
|
2375
|
-
|
|
2378
|
+
U({
|
|
2376
2379
|
icon: "line-md:loading-twotone-loop",
|
|
2377
2380
|
title: n.$.loadingShort
|
|
2378
2381
|
})
|
|
2379
2382
|
)
|
|
2380
2383
|
)
|
|
2381
|
-
}),
|
|
2382
|
-
const { value: n, onBlur: t, onChange: a, onInput: l, after: r, disabled:
|
|
2384
|
+
}), Va = (e) => {
|
|
2385
|
+
const { value: n, onBlur: t, onChange: a, onInput: l, after: r, disabled: u, ...c } = e, i = oe(n, u, a);
|
|
2383
2386
|
return me({
|
|
2384
2387
|
...c,
|
|
2385
|
-
value: S.map(n,
|
|
2386
|
-
onChange: a != null ? (o) => a(
|
|
2387
|
-
onInput: l != null ? (o) => l(
|
|
2388
|
+
value: S.map(n, sn),
|
|
2389
|
+
onChange: a != null ? (o) => a(et(o)) : void 0,
|
|
2390
|
+
onInput: l != null ? (o) => l(et(o)) : void 0,
|
|
2388
2391
|
onBlur: t,
|
|
2389
|
-
after: r != null ? M(
|
|
2392
|
+
after: r != null ? M(i, r) : i
|
|
2390
2393
|
});
|
|
2391
|
-
},
|
|
2394
|
+
}, rt = (e) => {
|
|
2392
2395
|
try {
|
|
2393
2396
|
return BigInt(e);
|
|
2394
2397
|
} catch {
|
|
2395
2398
|
return null;
|
|
2396
2399
|
}
|
|
2397
|
-
},
|
|
2398
|
-
const { value: n, step: t, min: a, max: l, onChange: r, onInput:
|
|
2400
|
+
}, Aa = (e) => {
|
|
2401
|
+
const { value: n, step: t, min: a, max: l, onChange: r, onInput: u, after: c } = e, i = (p) => {
|
|
2399
2402
|
const g = a != null ? S.get(a) : void 0, v = l != null ? S.get(l) : void 0;
|
|
2400
2403
|
return g != null && p < g ? g : v != null && p > v ? v : p;
|
|
2401
2404
|
}, o = t != null ? Y(ne, (p) => {
|
|
2402
2405
|
const g = y(
|
|
2403
2406
|
n,
|
|
2404
2407
|
a
|
|
2405
|
-
)((C,
|
|
2408
|
+
)((C, b) => b == null ? !0 : (C ?? 0n) > b), v = y(
|
|
2406
2409
|
n,
|
|
2407
2410
|
l
|
|
2408
|
-
)((C,
|
|
2409
|
-
const w = S.get(n) ?? 0n, D = S.get(t), V =
|
|
2410
|
-
if (C < 0n && k != null && E < k || C > 0n &&
|
|
2411
|
-
const
|
|
2412
|
-
|
|
2411
|
+
)((C, b) => b == null ? !0 : (C ?? 0n) < b), T = (C, b) => {
|
|
2412
|
+
const w = S.get(n) ?? 0n, D = S.get(t), V = b?.shiftKey ? 10n : 1n, E = w + D * V * C, k = a != null ? S.get(a) : void 0, _ = l != null ? S.get(l) : void 0;
|
|
2413
|
+
if (C < 0n && k != null && E < k || C > 0n && _ != null && E > _) return;
|
|
2414
|
+
const B = i(E);
|
|
2415
|
+
B !== w && r && r(B);
|
|
2413
2416
|
};
|
|
2414
2417
|
return je(
|
|
2415
2418
|
s.class("bc-number-input-steppers"),
|
|
@@ -2422,11 +2425,11 @@ const $a = (e) => {
|
|
|
2422
2425
|
y(
|
|
2423
2426
|
v,
|
|
2424
2427
|
e.disabled ?? !1
|
|
2425
|
-
)((C,
|
|
2428
|
+
)((C, b) => !C || b)
|
|
2426
2429
|
),
|
|
2427
|
-
$.click((C) =>
|
|
2430
|
+
$.click((C) => T(1n, C)),
|
|
2428
2431
|
A.label(p.$.incrementValue),
|
|
2429
|
-
|
|
2432
|
+
U({ icon: "line-md:plus", size: "xs" })
|
|
2430
2433
|
),
|
|
2431
2434
|
m.button(
|
|
2432
2435
|
s.type("button"),
|
|
@@ -2437,58 +2440,58 @@ const $a = (e) => {
|
|
|
2437
2440
|
y(
|
|
2438
2441
|
g,
|
|
2439
2442
|
e.disabled ?? !1
|
|
2440
|
-
)((C,
|
|
2443
|
+
)((C, b) => !C || b)
|
|
2441
2444
|
),
|
|
2442
|
-
$.click((C) =>
|
|
2445
|
+
$.click((C) => T(-1n, C)),
|
|
2443
2446
|
A.label(p.$.decrementValue),
|
|
2444
|
-
|
|
2447
|
+
U({ icon: "line-md:minus", size: "xs" })
|
|
2445
2448
|
)
|
|
2446
2449
|
);
|
|
2447
|
-
}) : null, d = c != null && o != null ? M(o, c) : c ?? o,
|
|
2448
|
-
const g =
|
|
2449
|
-
g != null && r(
|
|
2450
|
-
} : void 0, x =
|
|
2451
|
-
const g =
|
|
2452
|
-
g != null && i(
|
|
2450
|
+
}) : null, d = c != null && o != null ? M(o, c) : c ?? o, f = r ? (p) => {
|
|
2451
|
+
const g = rt(p);
|
|
2452
|
+
g != null && r(i(g));
|
|
2453
|
+
} : void 0, x = u ? (p) => {
|
|
2454
|
+
const g = rt(p);
|
|
2455
|
+
g != null && u(i(g));
|
|
2453
2456
|
} : void 0;
|
|
2454
2457
|
return me({
|
|
2455
2458
|
...e,
|
|
2456
2459
|
value: S.map(n, (p) => p.toString()),
|
|
2457
|
-
onChange:
|
|
2460
|
+
onChange: f,
|
|
2458
2461
|
onInput: x,
|
|
2459
2462
|
after: d,
|
|
2460
2463
|
mask: null,
|
|
2461
2464
|
allowMode: "digits",
|
|
2462
2465
|
class: "bc-number-input"
|
|
2463
2466
|
});
|
|
2464
|
-
},
|
|
2467
|
+
}, ot = (e) => {
|
|
2465
2468
|
if (e == null || e === "") return null;
|
|
2466
2469
|
try {
|
|
2467
2470
|
return BigInt(e);
|
|
2468
2471
|
} catch {
|
|
2469
2472
|
return null;
|
|
2470
2473
|
}
|
|
2471
|
-
},
|
|
2472
|
-
const { value: n, step: t, min: a, max: l, onChange: r, onInput:
|
|
2473
|
-
const v = a != null ? S.get(a) : void 0,
|
|
2474
|
-
return v != null && g < v ? v :
|
|
2474
|
+
}, Ba = (e) => {
|
|
2475
|
+
const { value: n, step: t, min: a, max: l, onChange: r, onInput: u, after: c } = e, i = (g) => {
|
|
2476
|
+
const v = a != null ? S.get(a) : void 0, T = l != null ? S.get(l) : void 0;
|
|
2477
|
+
return v != null && g < v ? v : T != null && g > T ? T : g;
|
|
2475
2478
|
}, o = t != null ? Y(ne, (g) => {
|
|
2476
2479
|
const v = y(
|
|
2477
2480
|
n,
|
|
2478
2481
|
a
|
|
2479
|
-
)((
|
|
2480
|
-
const D =
|
|
2482
|
+
)((b, w) => {
|
|
2483
|
+
const D = b ?? 0n;
|
|
2481
2484
|
return w == null ? !0 : D > w;
|
|
2482
|
-
}),
|
|
2485
|
+
}), T = y(
|
|
2483
2486
|
n,
|
|
2484
2487
|
l
|
|
2485
|
-
)((
|
|
2486
|
-
const D =
|
|
2488
|
+
)((b, w) => {
|
|
2489
|
+
const D = b ?? 0n;
|
|
2487
2490
|
return w == null ? !0 : D < w;
|
|
2488
|
-
}), C = (
|
|
2489
|
-
const D = S.get(n) ?? 0n, V = S.get(t), E = w?.shiftKey ? 10n : 1n, k = D + V * E *
|
|
2490
|
-
if (
|
|
2491
|
-
const N =
|
|
2491
|
+
}), C = (b, w) => {
|
|
2492
|
+
const D = S.get(n) ?? 0n, V = S.get(t), E = w?.shiftKey ? 10n : 1n, k = D + V * E * b, _ = a != null ? S.get(a) : void 0, B = l != null ? S.get(l) : void 0;
|
|
2493
|
+
if (b < 0n && _ != null && k < _ || b > 0n && B != null && k > B) return;
|
|
2494
|
+
const N = i(k);
|
|
2492
2495
|
N !== D && r && r(N);
|
|
2493
2496
|
};
|
|
2494
2497
|
return je(
|
|
@@ -2500,13 +2503,13 @@ const $a = (e) => {
|
|
|
2500
2503
|
),
|
|
2501
2504
|
s.disabled(
|
|
2502
2505
|
y(
|
|
2503
|
-
|
|
2506
|
+
T,
|
|
2504
2507
|
e.disabled ?? !1
|
|
2505
|
-
)((
|
|
2508
|
+
)((b, w) => !b || w)
|
|
2506
2509
|
),
|
|
2507
|
-
$.click((
|
|
2510
|
+
$.click((b) => C(1n, b)),
|
|
2508
2511
|
A.label(g.$.incrementValue),
|
|
2509
|
-
|
|
2512
|
+
U({ icon: "line-md:plus", size: "xs" })
|
|
2510
2513
|
),
|
|
2511
2514
|
m.button(
|
|
2512
2515
|
s.type("button"),
|
|
@@ -2517,42 +2520,42 @@ const $a = (e) => {
|
|
|
2517
2520
|
y(
|
|
2518
2521
|
v,
|
|
2519
2522
|
e.disabled ?? !1
|
|
2520
|
-
)((
|
|
2523
|
+
)((b, w) => !b || w)
|
|
2521
2524
|
),
|
|
2522
|
-
$.click((
|
|
2525
|
+
$.click((b) => C(-1n, b)),
|
|
2523
2526
|
A.label(g.$.decrementValue),
|
|
2524
|
-
|
|
2527
|
+
U({ icon: "line-md:minus", size: "xs" })
|
|
2525
2528
|
)
|
|
2526
2529
|
);
|
|
2527
|
-
}) : null, d = oe(n, e.disabled, r),
|
|
2528
|
-
const v =
|
|
2529
|
-
r(v === null ? null :
|
|
2530
|
-
} : void 0, p =
|
|
2531
|
-
const v =
|
|
2532
|
-
|
|
2530
|
+
}) : null, d = oe(n, e.disabled, r), f = c != null && o != null ? M(o, d, c) : c != null ? M(d, c) : o != null ? M(o, d) : d, x = r ? (g) => {
|
|
2531
|
+
const v = ot(g);
|
|
2532
|
+
r(v === null ? null : i(v));
|
|
2533
|
+
} : void 0, p = u ? (g) => {
|
|
2534
|
+
const v = ot(g);
|
|
2535
|
+
u(v === null ? null : i(v));
|
|
2533
2536
|
} : void 0;
|
|
2534
2537
|
return me({
|
|
2535
2538
|
...e,
|
|
2536
2539
|
value: S.map(n, (g) => g == null ? "" : g.toString()),
|
|
2537
2540
|
onChange: x,
|
|
2538
2541
|
onInput: p,
|
|
2539
|
-
after:
|
|
2542
|
+
after: f,
|
|
2540
2543
|
mask: null,
|
|
2541
2544
|
allowMode: "digits",
|
|
2542
2545
|
class: "bc-number-input"
|
|
2543
2546
|
});
|
|
2544
|
-
},
|
|
2545
|
-
const { value: n, onChange: t, onBlur: a, before: l } = e, r =
|
|
2546
|
-
t?.(S.get(n).filter((o) => o !==
|
|
2547
|
+
}, La = (e) => {
|
|
2548
|
+
const { value: n, onChange: t, onBlur: a, before: l } = e, r = j(""), u = (i) => {
|
|
2549
|
+
t?.(S.get(n).filter((o) => o !== i));
|
|
2547
2550
|
}, c = () => {
|
|
2548
|
-
const
|
|
2549
|
-
|
|
2551
|
+
const i = r.value.trim(), o = S.get(n);
|
|
2552
|
+
i === "" || o.includes(i) || (r.set(""), t?.([...o, i]));
|
|
2550
2553
|
};
|
|
2551
2554
|
return q({
|
|
2552
2555
|
...e,
|
|
2553
2556
|
before: M(
|
|
2554
2557
|
l,
|
|
2555
|
-
|
|
2558
|
+
U({
|
|
2556
2559
|
icon: "tabler:tag",
|
|
2557
2560
|
color: "neutral"
|
|
2558
2561
|
})
|
|
@@ -2561,13 +2564,13 @@ const $a = (e) => {
|
|
|
2561
2564
|
s.class("bc-input-container__tags"),
|
|
2562
2565
|
pe(
|
|
2563
2566
|
n,
|
|
2564
|
-
(
|
|
2565
|
-
value:
|
|
2566
|
-
onClose: () => i
|
|
2567
|
+
(i) => kt({
|
|
2568
|
+
value: i,
|
|
2569
|
+
onClose: () => u(i.value),
|
|
2567
2570
|
disabled: e.disabled
|
|
2568
2571
|
})
|
|
2569
2572
|
),
|
|
2570
|
-
|
|
2573
|
+
X.text(
|
|
2571
2574
|
G(e),
|
|
2572
2575
|
s.value(r),
|
|
2573
2576
|
s.class("bc-input bc-input-container__tags-input"),
|
|
@@ -2579,10 +2582,10 @@ const $a = (e) => {
|
|
|
2579
2582
|
});
|
|
2580
2583
|
}, Ma = (e) => {
|
|
2581
2584
|
const { value: n, onBlur: t, onChange: a } = e;
|
|
2582
|
-
return
|
|
2585
|
+
return J(
|
|
2583
2586
|
(l) => q({
|
|
2584
2587
|
...e,
|
|
2585
|
-
input:
|
|
2588
|
+
input: X.date(
|
|
2586
2589
|
G(e),
|
|
2587
2590
|
s.value(S.map(n, (r) => r.toString())),
|
|
2588
2591
|
s.class("bc-input"),
|
|
@@ -2592,30 +2595,30 @@ const $a = (e) => {
|
|
|
2592
2595
|
})
|
|
2593
2596
|
);
|
|
2594
2597
|
}, Oa = (e) => {
|
|
2595
|
-
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e,
|
|
2596
|
-
return
|
|
2598
|
+
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e, u = oe(n, r, a);
|
|
2599
|
+
return J(
|
|
2597
2600
|
(c) => q({
|
|
2598
2601
|
...e,
|
|
2599
|
-
input:
|
|
2602
|
+
input: X.date(
|
|
2600
2603
|
G(e),
|
|
2601
|
-
s.value(S.map(n, (
|
|
2604
|
+
s.value(S.map(n, (i) => i?.toString() ?? "")),
|
|
2602
2605
|
s.class("bc-input"),
|
|
2603
2606
|
t != null ? $.blur(P(t)) : O,
|
|
2604
2607
|
a != null ? $.change(
|
|
2605
2608
|
P(
|
|
2606
|
-
(
|
|
2609
|
+
(i) => a(i === "" ? null : c.PlainDate.from(i))
|
|
2607
2610
|
)
|
|
2608
2611
|
) : O
|
|
2609
2612
|
),
|
|
2610
|
-
after: l != null ? M(
|
|
2613
|
+
after: l != null ? M(u, l) : u
|
|
2611
2614
|
})
|
|
2612
2615
|
);
|
|
2613
2616
|
}, Na = (e) => {
|
|
2614
2617
|
const { value: n, onBlur: t, onChange: a } = e;
|
|
2615
|
-
return
|
|
2618
|
+
return J(
|
|
2616
2619
|
(l) => q({
|
|
2617
2620
|
...e,
|
|
2618
|
-
input:
|
|
2621
|
+
input: X.time(
|
|
2619
2622
|
G(e),
|
|
2620
2623
|
s.value(S.map(n, (r) => r.toString())),
|
|
2621
2624
|
s.class("bc-input"),
|
|
@@ -2625,30 +2628,30 @@ const $a = (e) => {
|
|
|
2625
2628
|
})
|
|
2626
2629
|
);
|
|
2627
2630
|
}, Pa = (e) => {
|
|
2628
|
-
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e,
|
|
2629
|
-
return
|
|
2631
|
+
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e, u = oe(n, r, a);
|
|
2632
|
+
return J(
|
|
2630
2633
|
(c) => q({
|
|
2631
2634
|
...e,
|
|
2632
|
-
input:
|
|
2635
|
+
input: X.time(
|
|
2633
2636
|
G(e),
|
|
2634
|
-
s.value(S.map(n, (
|
|
2637
|
+
s.value(S.map(n, (i) => i?.toString())),
|
|
2635
2638
|
s.class("bc-input"),
|
|
2636
2639
|
t != null ? $.blur(P(t)) : O,
|
|
2637
2640
|
a != null ? $.change(
|
|
2638
2641
|
P(
|
|
2639
|
-
(
|
|
2642
|
+
(i) => a(i === "" ? null : c.PlainTime.from(i))
|
|
2640
2643
|
)
|
|
2641
2644
|
) : O
|
|
2642
2645
|
),
|
|
2643
|
-
after: l != null ? M(
|
|
2646
|
+
after: l != null ? M(u, l) : u
|
|
2644
2647
|
})
|
|
2645
2648
|
);
|
|
2646
2649
|
}, Ea = (e) => {
|
|
2647
2650
|
const { value: n, onBlur: t, onChange: a } = e;
|
|
2648
|
-
return
|
|
2651
|
+
return J(
|
|
2649
2652
|
(l) => q({
|
|
2650
2653
|
...e,
|
|
2651
|
-
input:
|
|
2654
|
+
input: X["datetime-local"](
|
|
2652
2655
|
G(e),
|
|
2653
2656
|
s.value(S.map(n, (r) => r.toJSON())),
|
|
2654
2657
|
s.class("bc-input"),
|
|
@@ -2658,36 +2661,36 @@ const $a = (e) => {
|
|
|
2658
2661
|
})
|
|
2659
2662
|
);
|
|
2660
2663
|
}, Fa = (e) => {
|
|
2661
|
-
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e,
|
|
2662
|
-
return
|
|
2664
|
+
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e, u = oe(n, r, a);
|
|
2665
|
+
return J(
|
|
2663
2666
|
(c) => q({
|
|
2664
2667
|
...e,
|
|
2665
|
-
input:
|
|
2668
|
+
input: X["datetime-local"](
|
|
2666
2669
|
G(e),
|
|
2667
|
-
s.value(S.map(n, (
|
|
2670
|
+
s.value(S.map(n, (i) => i?.toJSON())),
|
|
2668
2671
|
s.class("bc-input"),
|
|
2669
2672
|
t != null ? $.blur(P(t)) : O,
|
|
2670
2673
|
a != null ? $.change(
|
|
2671
2674
|
P(
|
|
2672
|
-
(
|
|
2675
|
+
(i) => a(i === "" ? null : c.PlainDateTime.from(i))
|
|
2673
2676
|
)
|
|
2674
2677
|
) : O
|
|
2675
2678
|
),
|
|
2676
|
-
after: l != null ? M(
|
|
2679
|
+
after: l != null ? M(u, l) : u
|
|
2677
2680
|
})
|
|
2678
2681
|
);
|
|
2679
|
-
},
|
|
2680
|
-
const n = new Date(e), t = n.getFullYear().toString().padStart(4, "0"), a = (n.getMonth() + 1).toString().padStart(2, "0"), l = n.getDate().toString().padStart(2, "0"), r = n.getHours().toString().padStart(2, "0"),
|
|
2681
|
-
return `${t}-${a}-${l}T${r}:${
|
|
2682
|
+
}, Pn = (e) => {
|
|
2683
|
+
const n = new Date(e), t = n.getFullYear().toString().padStart(4, "0"), a = (n.getMonth() + 1).toString().padStart(2, "0"), l = n.getDate().toString().padStart(2, "0"), r = n.getHours().toString().padStart(2, "0"), u = n.getMinutes().toString().padStart(2, "0");
|
|
2684
|
+
return `${t}-${a}-${l}T${r}:${u}`;
|
|
2682
2685
|
}, Ha = (e) => {
|
|
2683
2686
|
const { value: n, onBlur: t, onChange: a } = e;
|
|
2684
|
-
return
|
|
2687
|
+
return J(
|
|
2685
2688
|
(l) => q({
|
|
2686
2689
|
...e,
|
|
2687
|
-
input:
|
|
2690
|
+
input: X["datetime-local"](
|
|
2688
2691
|
G(e),
|
|
2689
2692
|
s.value(
|
|
2690
|
-
S.map(n, (r) =>
|
|
2693
|
+
S.map(n, (r) => Pn(Number(r.epochMilliseconds)))
|
|
2691
2694
|
),
|
|
2692
2695
|
s.class("bc-input"),
|
|
2693
2696
|
t != null ? $.blur(P(t)) : O,
|
|
@@ -2699,79 +2702,79 @@ const $a = (e) => {
|
|
|
2699
2702
|
)
|
|
2700
2703
|
})
|
|
2701
2704
|
);
|
|
2702
|
-
},
|
|
2703
|
-
const n = new Date(e), t = n.getFullYear().toString().padStart(4, "0"), a = (n.getMonth() + 1).toString().padStart(2, "0"), l = n.getDate().toString().padStart(2, "0"), r = n.getHours().toString().padStart(2, "0"),
|
|
2704
|
-
return `${t}-${a}-${l}T${r}:${
|
|
2705
|
+
}, En = (e) => {
|
|
2706
|
+
const n = new Date(e), t = n.getFullYear().toString().padStart(4, "0"), a = (n.getMonth() + 1).toString().padStart(2, "0"), l = n.getDate().toString().padStart(2, "0"), r = n.getHours().toString().padStart(2, "0"), u = n.getMinutes().toString().padStart(2, "0");
|
|
2707
|
+
return `${t}-${a}-${l}T${r}:${u}`;
|
|
2705
2708
|
}, Ra = (e) => {
|
|
2706
|
-
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e,
|
|
2707
|
-
return
|
|
2709
|
+
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e, u = oe(n, r, a);
|
|
2710
|
+
return J(
|
|
2708
2711
|
(c) => q({
|
|
2709
2712
|
...e,
|
|
2710
|
-
input:
|
|
2713
|
+
input: X["datetime-local"](
|
|
2711
2714
|
G(e),
|
|
2712
2715
|
s.value(
|
|
2713
2716
|
S.map(
|
|
2714
2717
|
n,
|
|
2715
|
-
(
|
|
2718
|
+
(i) => i == null ? null : En(Number(i.epochMilliseconds))
|
|
2716
2719
|
)
|
|
2717
2720
|
),
|
|
2718
2721
|
s.class("bc-input"),
|
|
2719
2722
|
t != null ? $.blur(P(t)) : O,
|
|
2720
2723
|
a != null ? $.change(
|
|
2721
2724
|
P(
|
|
2722
|
-
(
|
|
2725
|
+
(i) => a(i === "" ? null : c.Instant.from(new Date(i).toISOString()))
|
|
2723
2726
|
)
|
|
2724
2727
|
) : O
|
|
2725
2728
|
),
|
|
2726
|
-
after: l != null ? M(
|
|
2729
|
+
after: l != null ? M(u, l) : u
|
|
2727
2730
|
})
|
|
2728
2731
|
);
|
|
2729
|
-
},
|
|
2732
|
+
}, ja = (e) => {
|
|
2730
2733
|
const { value: n, onBlur: t, onChange: a } = e;
|
|
2731
|
-
return
|
|
2734
|
+
return J(
|
|
2732
2735
|
(l) => q({
|
|
2733
2736
|
...e,
|
|
2734
|
-
input:
|
|
2737
|
+
input: X["datetime-local"](
|
|
2735
2738
|
G(e),
|
|
2736
2739
|
s.value(S.map(n, (r) => r.toJSON())),
|
|
2737
2740
|
s.class("bc-input"),
|
|
2738
2741
|
t != null ? $.blur(P(t)) : O,
|
|
2739
2742
|
a != null ? $.change(
|
|
2740
2743
|
P((r) => {
|
|
2741
|
-
const
|
|
2742
|
-
return a(l.ZonedDateTime.from({ ...
|
|
2744
|
+
const u = l.PlainDateTime.from(r), c = S.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2745
|
+
return a(l.ZonedDateTime.from({ ...u, timeZone: c }));
|
|
2743
2746
|
})
|
|
2744
2747
|
) : O
|
|
2745
2748
|
)
|
|
2746
2749
|
})
|
|
2747
2750
|
);
|
|
2748
|
-
},
|
|
2749
|
-
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e,
|
|
2750
|
-
return
|
|
2751
|
+
}, Ua = (e) => {
|
|
2752
|
+
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e, u = oe(n, r, a);
|
|
2753
|
+
return J(
|
|
2751
2754
|
(c) => q({
|
|
2752
2755
|
...e,
|
|
2753
|
-
input:
|
|
2756
|
+
input: X["datetime-local"](
|
|
2754
2757
|
G(e),
|
|
2755
|
-
s.value(S.map(n, (
|
|
2758
|
+
s.value(S.map(n, (i) => i?.toJSON())),
|
|
2756
2759
|
s.class("bc-input"),
|
|
2757
2760
|
t != null ? $.blur(P(t)) : O,
|
|
2758
2761
|
a != null ? $.change(
|
|
2759
|
-
P((
|
|
2760
|
-
if (
|
|
2761
|
-
const o = c.PlainDateTime.from(
|
|
2762
|
+
P((i) => {
|
|
2763
|
+
if (i === "") return a(null);
|
|
2764
|
+
const o = c.PlainDateTime.from(i), d = S.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2762
2765
|
return a(c.ZonedDateTime.from({ ...o, timeZone: d }));
|
|
2763
2766
|
})
|
|
2764
2767
|
) : O
|
|
2765
2768
|
),
|
|
2766
|
-
after: l != null ? M(
|
|
2769
|
+
after: l != null ? M(u, l) : u
|
|
2767
2770
|
})
|
|
2768
2771
|
);
|
|
2769
2772
|
}, za = (e) => {
|
|
2770
2773
|
const { value: n, onBlur: t, onChange: a } = e;
|
|
2771
|
-
return
|
|
2774
|
+
return J(
|
|
2772
2775
|
(l) => q({
|
|
2773
2776
|
...e,
|
|
2774
|
-
input:
|
|
2777
|
+
input: X.month(
|
|
2775
2778
|
G(e),
|
|
2776
2779
|
s.value(S.map(n, (r) => r.toString())),
|
|
2777
2780
|
s.class("bc-input"),
|
|
@@ -2781,27 +2784,27 @@ const $a = (e) => {
|
|
|
2781
2784
|
})
|
|
2782
2785
|
);
|
|
2783
2786
|
}, Wa = (e) => {
|
|
2784
|
-
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e,
|
|
2785
|
-
return
|
|
2787
|
+
const { value: n, onBlur: t, onChange: a, after: l, disabled: r } = e, u = oe(n, r, a);
|
|
2788
|
+
return J(
|
|
2786
2789
|
(c) => q({
|
|
2787
2790
|
...e,
|
|
2788
|
-
input:
|
|
2791
|
+
input: X.month(
|
|
2789
2792
|
G(e),
|
|
2790
|
-
s.value(S.map(n, (
|
|
2793
|
+
s.value(S.map(n, (i) => i?.toString())),
|
|
2791
2794
|
s.class("bc-input"),
|
|
2792
2795
|
t != null ? $.blur(P(t)) : O,
|
|
2793
2796
|
a != null ? $.change(
|
|
2794
2797
|
P(
|
|
2795
|
-
(
|
|
2798
|
+
(i) => a(i === "" ? null : c.PlainYearMonth.from(i))
|
|
2796
2799
|
)
|
|
2797
2800
|
) : O
|
|
2798
2801
|
),
|
|
2799
|
-
after: l != null ? M(
|
|
2802
|
+
after: l != null ? M(u, l) : u
|
|
2800
2803
|
})
|
|
2801
2804
|
);
|
|
2802
2805
|
}, qa = (e) => {
|
|
2803
2806
|
const { value: n, onChange: t } = e;
|
|
2804
|
-
return
|
|
2807
|
+
return J(
|
|
2805
2808
|
(a) => me({
|
|
2806
2809
|
...e,
|
|
2807
2810
|
// Map Temporal value to MM-DD string
|
|
@@ -2814,11 +2817,11 @@ const $a = (e) => {
|
|
|
2814
2817
|
);
|
|
2815
2818
|
}, Za = (e) => {
|
|
2816
2819
|
const { value: n, onChange: t, after: a, disabled: l } = e, r = oe(n, l, t);
|
|
2817
|
-
return
|
|
2818
|
-
(
|
|
2820
|
+
return J(
|
|
2821
|
+
(u) => me({
|
|
2819
2822
|
...e,
|
|
2820
2823
|
value: S.map(n, (c) => c?.toString() ?? ""),
|
|
2821
|
-
onChange: t != null ? (c) => t(c === "" ? null :
|
|
2824
|
+
onChange: t != null ? (c) => t(c === "" ? null : u.PlainMonthDay.from(`--${c}`)) : void 0,
|
|
2822
2825
|
onInput: void 0,
|
|
2823
2826
|
mask: "99-99",
|
|
2824
2827
|
placeholder: "MM-DD",
|
|
@@ -2827,19 +2830,19 @@ const $a = (e) => {
|
|
|
2827
2830
|
);
|
|
2828
2831
|
}, Ya = (e) => {
|
|
2829
2832
|
const { value: n, onChange: t } = e;
|
|
2830
|
-
return
|
|
2833
|
+
return J(
|
|
2831
2834
|
(a) => me({
|
|
2832
2835
|
...e,
|
|
2833
2836
|
value: S.map(n, (l) => l.toString()),
|
|
2834
2837
|
onChange: t ? (l) => t(a.Duration.from(l)) : void 0,
|
|
2835
2838
|
onInput: void 0,
|
|
2836
|
-
...
|
|
2839
|
+
...ln(a.Duration.from),
|
|
2837
2840
|
placeholder: "P0DT0H0M0S"
|
|
2838
2841
|
})
|
|
2839
2842
|
);
|
|
2840
2843
|
};
|
|
2841
2844
|
function Ga(e, n, t) {
|
|
2842
|
-
return
|
|
2845
|
+
return _e(
|
|
2843
2846
|
e.value,
|
|
2844
2847
|
() => {
|
|
2845
2848
|
const a = e.transform(
|
|
@@ -2847,7 +2850,7 @@ function Ga(e, n, t) {
|
|
|
2847
2850
|
(l) => l
|
|
2848
2851
|
);
|
|
2849
2852
|
return M(
|
|
2850
|
-
|
|
2853
|
+
W(() => a.dispose()),
|
|
2851
2854
|
n(a)
|
|
2852
2855
|
);
|
|
2853
2856
|
},
|
|
@@ -2860,14 +2863,14 @@ const Ka = {
|
|
|
2860
2863
|
error: (e) => ({ type: "error", error: e }),
|
|
2861
2864
|
success: { type: "success" }
|
|
2862
2865
|
};
|
|
2863
|
-
class
|
|
2866
|
+
class Fn extends en {
|
|
2864
2867
|
constructor(n, t, a, l, r) {
|
|
2865
2868
|
super(n, t, a, l, r);
|
|
2866
2869
|
}
|
|
2867
2870
|
/**
|
|
2868
2871
|
* Validates that the current value is a valid color
|
|
2869
2872
|
*/
|
|
2870
|
-
isValidColor = this.value.map(
|
|
2873
|
+
isValidColor = this.value.map(pn);
|
|
2871
2874
|
/**
|
|
2872
2875
|
* Validates that the current value is a valid hex color
|
|
2873
2876
|
*/
|
|
@@ -2907,8 +2910,8 @@ class Hn extends en {
|
|
|
2907
2910
|
* @param b - Blue value (0-255)
|
|
2908
2911
|
*/
|
|
2909
2912
|
setRgb = (n, t, a) => {
|
|
2910
|
-
const l = (
|
|
2911
|
-
const c = Math.round(Math.max(0, Math.min(255,
|
|
2913
|
+
const l = (u) => {
|
|
2914
|
+
const c = Math.round(Math.max(0, Math.min(255, u))).toString(16);
|
|
2912
2915
|
return c.length === 1 ? "0" + c : c;
|
|
2913
2916
|
}, r = `#${l(n)}${l(t)}${l(a)}`;
|
|
2914
2917
|
this.change(r);
|
|
@@ -2950,7 +2953,7 @@ class Hn extends en {
|
|
|
2950
2953
|
};
|
|
2951
2954
|
}
|
|
2952
2955
|
function Xa(e) {
|
|
2953
|
-
return new
|
|
2956
|
+
return new Fn(
|
|
2954
2957
|
e.path,
|
|
2955
2958
|
e.change,
|
|
2956
2959
|
e.value,
|
|
@@ -2975,44 +2978,44 @@ function Qa({
|
|
|
2975
2978
|
}) {
|
|
2976
2979
|
return Y(
|
|
2977
2980
|
ne,
|
|
2978
|
-
(a) => Y(
|
|
2981
|
+
(a) => Y(He, ({ locale: l, setLocale: r }) => Re({
|
|
2979
2982
|
horizontal: !0,
|
|
2980
|
-
content:
|
|
2983
|
+
content: St(
|
|
2981
2984
|
s.class("bc-group--align-center bc-group--gap-2"),
|
|
2982
|
-
|
|
2985
|
+
U({
|
|
2983
2986
|
icon: "ic:twotone-language",
|
|
2984
2987
|
size: "lg",
|
|
2985
2988
|
color: "neutral",
|
|
2986
2989
|
title: a.$.locale
|
|
2987
2990
|
}),
|
|
2988
|
-
|
|
2991
|
+
Ct({
|
|
2989
2992
|
options: S.map(
|
|
2990
2993
|
e,
|
|
2991
|
-
(
|
|
2992
|
-
let
|
|
2993
|
-
return c.nativeName != null && c.nativeName !== c.name && (
|
|
2994
|
+
(u) => u.map((c) => {
|
|
2995
|
+
let i = c.name;
|
|
2996
|
+
return c.nativeName != null && c.nativeName !== c.name && (i += ` (${c.nativeName})`), ue.value(c.code, i);
|
|
2994
2997
|
})
|
|
2995
2998
|
),
|
|
2996
2999
|
value: l,
|
|
2997
|
-
onChange: (
|
|
2998
|
-
t && r(
|
|
3000
|
+
onChange: (u) => {
|
|
3001
|
+
t && r(u), n?.(u);
|
|
2999
3002
|
}
|
|
3000
3003
|
})
|
|
3001
3004
|
)
|
|
3002
3005
|
}))
|
|
3003
3006
|
);
|
|
3004
3007
|
}
|
|
3005
|
-
const
|
|
3006
|
-
|
|
3007
|
-
({ direction: e }) =>
|
|
3008
|
+
const Hn = () => Y(
|
|
3009
|
+
He,
|
|
3010
|
+
({ direction: e }) => mt("body", s.class(e.map((n) => `b-${n}`)))
|
|
3008
3011
|
);
|
|
3009
3012
|
function es({ includeAuthI18n: e = !1 }, ...n) {
|
|
3010
|
-
return
|
|
3011
|
-
t(ge, {}), t(
|
|
3012
|
-
const l = M(
|
|
3013
|
-
return e ?
|
|
3014
|
-
() => import("./translations-
|
|
3015
|
-
({ AuthI18n: r }) =>
|
|
3013
|
+
return qt(({ set: t, use: a }) => {
|
|
3014
|
+
t(ge, {}), t(He, {}), t(ne, {}), t(gt, {}), Jt.attach(a(ge));
|
|
3015
|
+
const l = M(Qt(), Hn(), ...n);
|
|
3016
|
+
return e ? Zt(
|
|
3017
|
+
() => import("./translations-Cic51rHH.js"),
|
|
3018
|
+
({ AuthI18n: r }) => bt(r, {}, () => l)
|
|
3016
3019
|
) : l;
|
|
3017
3020
|
});
|
|
3018
3021
|
}
|
|
@@ -3025,7 +3028,7 @@ function ts({ content: e }) {
|
|
|
3025
3028
|
null
|
|
3026
3029
|
);
|
|
3027
3030
|
return m.div(
|
|
3028
|
-
|
|
3031
|
+
W(
|
|
3029
3032
|
t.on((a, l) => {
|
|
3030
3033
|
l != null && URL.revokeObjectURL(l);
|
|
3031
3034
|
}),
|
|
@@ -3039,7 +3042,7 @@ function ts({ content: e }) {
|
|
|
3039
3042
|
m.iframe(s.class("h-full w-full"), s.src(t))
|
|
3040
3043
|
);
|
|
3041
3044
|
}
|
|
3042
|
-
const ns = ({ id: e, css: n }) =>
|
|
3045
|
+
const ns = ({ id: e, css: n }) => mt("head", m.style(s.id(e), s.innerHTML(n))), Ue = ({
|
|
3043
3046
|
viewTransition: e,
|
|
3044
3047
|
state: n,
|
|
3045
3048
|
scroll: t,
|
|
@@ -3048,7 +3051,7 @@ const ns = ({ id: e, css: n }) => bt("head", m.style(s.id(e), s.innerHTML(n))),
|
|
|
3048
3051
|
const l = {};
|
|
3049
3052
|
return n !== void 0 && (l.state = n), t !== void 0 && (l.scroll = t), a !== void 0 && (l.replace = a), e !== void 0 && (l.viewTransition = e), l;
|
|
3050
3053
|
};
|
|
3051
|
-
function
|
|
3054
|
+
function it(e, n) {
|
|
3052
3055
|
const t = ["bc-link"];
|
|
3053
3056
|
if (n)
|
|
3054
3057
|
t.push("bc-link--disabled");
|
|
@@ -3067,8 +3070,8 @@ function ut(e, n) {
|
|
|
3067
3070
|
}
|
|
3068
3071
|
return t.join(" ");
|
|
3069
3072
|
}
|
|
3070
|
-
function
|
|
3071
|
-
const n =
|
|
3073
|
+
function ut(e) {
|
|
3074
|
+
const n = Xe(e, "light"), t = Xe(e, "dark");
|
|
3072
3075
|
return [
|
|
3073
3076
|
`--link-color: ${n}`,
|
|
3074
3077
|
`--link-color-dark: ${t}`,
|
|
@@ -3076,19 +3079,19 @@ function ct(e) {
|
|
|
3076
3079
|
`--link-hover-color-dark: ${t}`
|
|
3077
3080
|
].join("; ");
|
|
3078
3081
|
}
|
|
3079
|
-
function
|
|
3082
|
+
function Rn({
|
|
3080
3083
|
href: e,
|
|
3081
3084
|
variant: n = "default",
|
|
3082
3085
|
color: t = "primary",
|
|
3083
3086
|
colorDisabled: a = "base",
|
|
3084
3087
|
disabled: l = !1,
|
|
3085
3088
|
viewTransition: r = !0,
|
|
3086
|
-
state:
|
|
3089
|
+
state: u,
|
|
3087
3090
|
scroll: c,
|
|
3088
|
-
replace:
|
|
3091
|
+
replace: i,
|
|
3089
3092
|
target: o,
|
|
3090
3093
|
rel: d
|
|
3091
|
-
}, ...
|
|
3094
|
+
}, ...f) {
|
|
3092
3095
|
return te(
|
|
3093
3096
|
l,
|
|
3094
3097
|
() => m.span(
|
|
@@ -3096,41 +3099,41 @@ function Un({
|
|
|
3096
3099
|
y(
|
|
3097
3100
|
n,
|
|
3098
3101
|
l
|
|
3099
|
-
)((x, p) =>
|
|
3102
|
+
)((x, p) => it(x, p))
|
|
3100
3103
|
),
|
|
3101
3104
|
s.style(
|
|
3102
3105
|
y(a)(
|
|
3103
|
-
(x) =>
|
|
3106
|
+
(x) => ut(x ?? "base")
|
|
3104
3107
|
)
|
|
3105
3108
|
),
|
|
3106
|
-
...
|
|
3109
|
+
...f
|
|
3107
3110
|
),
|
|
3108
|
-
() =>
|
|
3111
|
+
() => Fe(
|
|
3109
3112
|
{
|
|
3110
3113
|
href: e,
|
|
3111
|
-
...
|
|
3114
|
+
...Ue({
|
|
3112
3115
|
viewTransition: r,
|
|
3113
|
-
state:
|
|
3116
|
+
state: u,
|
|
3114
3117
|
scroll: c,
|
|
3115
|
-
replace:
|
|
3118
|
+
replace: i
|
|
3116
3119
|
})
|
|
3117
3120
|
},
|
|
3118
3121
|
s.class(
|
|
3119
3122
|
y(
|
|
3120
3123
|
n,
|
|
3121
3124
|
l
|
|
3122
|
-
)((x, p) =>
|
|
3125
|
+
)((x, p) => it(x, p))
|
|
3123
3126
|
),
|
|
3124
3127
|
s.style(
|
|
3125
|
-
y(t)((x) =>
|
|
3128
|
+
y(t)((x) => ut(x ?? "primary"))
|
|
3126
3129
|
),
|
|
3127
3130
|
o ? s.target(o) : null,
|
|
3128
3131
|
d ? s.rel(d) : null,
|
|
3129
|
-
...
|
|
3132
|
+
...f
|
|
3130
3133
|
)
|
|
3131
3134
|
);
|
|
3132
3135
|
}
|
|
3133
|
-
const jn = (e) => e ? e.startsWith("#") ? e : `#${e}` : "",
|
|
3136
|
+
const jn = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", Un = (e) => {
|
|
3134
3137
|
if (!e) return new URLSearchParams();
|
|
3135
3138
|
if (typeof e == "string") {
|
|
3136
3139
|
const n = e.startsWith("?") ? e.slice(1) : e;
|
|
@@ -3138,24 +3141,24 @@ const jn = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", zn = (e) => {
|
|
|
3138
3141
|
}
|
|
3139
3142
|
return e instanceof URLSearchParams ? new URLSearchParams(e) : new URLSearchParams(e);
|
|
3140
3143
|
};
|
|
3141
|
-
function
|
|
3142
|
-
const a =
|
|
3144
|
+
function zn(e, n, t) {
|
|
3145
|
+
const a = Un(e.search), l = a.toString(), r = l ? `?${l}` : "", u = jn(e.hash);
|
|
3143
3146
|
switch (t) {
|
|
3144
3147
|
case "exact":
|
|
3145
|
-
return e.pathname + r +
|
|
3148
|
+
return e.pathname + r + u === n;
|
|
3146
3149
|
case "prefix":
|
|
3147
3150
|
return e.pathname.startsWith(n) || (e.pathname + r).startsWith(n);
|
|
3148
3151
|
case "params":
|
|
3149
3152
|
try {
|
|
3150
|
-
const c = typeof document < "u" && document.baseURI ? document.baseURI : "http://localhost/",
|
|
3151
|
-
if (e.pathname !==
|
|
3153
|
+
const c = typeof document < "u" && document.baseURI ? document.baseURI : "http://localhost/", i = new URL(n, c);
|
|
3154
|
+
if (e.pathname !== i.pathname)
|
|
3152
3155
|
return !1;
|
|
3153
3156
|
const o = Array.from(
|
|
3154
|
-
new URLSearchParams(
|
|
3157
|
+
new URLSearchParams(i.search).entries()
|
|
3155
3158
|
).sort(), d = Array.from(a.entries()).sort();
|
|
3156
|
-
return o.length !== d.length ? !1 : o.every(([
|
|
3159
|
+
return o.length !== d.length ? !1 : o.every(([f, x], p) => {
|
|
3157
3160
|
const [g, v] = d[p];
|
|
3158
|
-
return
|
|
3161
|
+
return f === g && x === v;
|
|
3159
3162
|
});
|
|
3160
3163
|
} catch {
|
|
3161
3164
|
return e.pathname === n;
|
|
@@ -3164,9 +3167,9 @@ function Wn(e, n, t) {
|
|
|
3164
3167
|
return !1;
|
|
3165
3168
|
}
|
|
3166
3169
|
}
|
|
3167
|
-
function
|
|
3170
|
+
function ze(e, n) {
|
|
3168
3171
|
return n === "exact" ? y(e)((t) => t) : y(e)(
|
|
3169
|
-
(t) => (a) =>
|
|
3172
|
+
(t) => (a) => zn(a, t, n)
|
|
3170
3173
|
);
|
|
3171
3174
|
}
|
|
3172
3175
|
function as({
|
|
@@ -3176,13 +3179,13 @@ function as({
|
|
|
3176
3179
|
...a
|
|
3177
3180
|
}, ...l) {
|
|
3178
3181
|
return Y(ge, (r) => {
|
|
3179
|
-
const
|
|
3180
|
-
|
|
3182
|
+
const u = r.matchSignal(
|
|
3183
|
+
ze(e, n)
|
|
3181
3184
|
), c = y(
|
|
3182
|
-
|
|
3185
|
+
u,
|
|
3183
3186
|
t
|
|
3184
|
-
)((
|
|
3185
|
-
return
|
|
3187
|
+
)((i, o) => o ?? !0 ? i : !1);
|
|
3188
|
+
return Rn(
|
|
3186
3189
|
{
|
|
3187
3190
|
...a,
|
|
3188
3191
|
href: e,
|
|
@@ -3199,24 +3202,24 @@ function ss({
|
|
|
3199
3202
|
scroll: a,
|
|
3200
3203
|
replace: l,
|
|
3201
3204
|
target: r,
|
|
3202
|
-
rel:
|
|
3205
|
+
rel: u,
|
|
3203
3206
|
matchMode: c,
|
|
3204
|
-
disableWhenActive:
|
|
3207
|
+
disableWhenActive: i,
|
|
3205
3208
|
variant: o = "filled",
|
|
3206
3209
|
size: d = "md",
|
|
3207
|
-
color:
|
|
3210
|
+
color: f = "base",
|
|
3208
3211
|
roundedness: x = "sm",
|
|
3209
3212
|
disabled: p = !1
|
|
3210
3213
|
}, ...g) {
|
|
3211
|
-
return c !== void 0 ||
|
|
3212
|
-
const
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
)((w, D) => !(D ?? !0) || !c ? !1 : w),
|
|
3214
|
+
return c !== void 0 || i !== void 0 ? Y(ge, (v) => {
|
|
3215
|
+
const T = c !== void 0 ? v.matchSignal(ze(e, c)) : y(v.location)(() => !1), C = y(
|
|
3216
|
+
T,
|
|
3217
|
+
i
|
|
3218
|
+
)((w, D) => !(D ?? !0) || !c ? !1 : w), b = y(
|
|
3216
3219
|
p,
|
|
3217
3220
|
C
|
|
3218
3221
|
)((w, D) => w || D);
|
|
3219
|
-
return
|
|
3222
|
+
return ct(
|
|
3220
3223
|
{
|
|
3221
3224
|
href: e,
|
|
3222
3225
|
viewTransition: n,
|
|
@@ -3224,16 +3227,16 @@ function ss({
|
|
|
3224
3227
|
scroll: a,
|
|
3225
3228
|
replace: l,
|
|
3226
3229
|
target: r,
|
|
3227
|
-
rel:
|
|
3230
|
+
rel: u,
|
|
3228
3231
|
variant: o,
|
|
3229
3232
|
size: d,
|
|
3230
|
-
color:
|
|
3233
|
+
color: f,
|
|
3231
3234
|
roundedness: x,
|
|
3232
|
-
disabled:
|
|
3235
|
+
disabled: b
|
|
3233
3236
|
},
|
|
3234
3237
|
...g
|
|
3235
3238
|
);
|
|
3236
|
-
}) :
|
|
3239
|
+
}) : ct(
|
|
3237
3240
|
{
|
|
3238
3241
|
href: e,
|
|
3239
3242
|
viewTransition: n,
|
|
@@ -3241,39 +3244,39 @@ function ss({
|
|
|
3241
3244
|
scroll: a,
|
|
3242
3245
|
replace: l,
|
|
3243
3246
|
target: r,
|
|
3244
|
-
rel:
|
|
3247
|
+
rel: u,
|
|
3245
3248
|
variant: o,
|
|
3246
3249
|
size: d,
|
|
3247
|
-
color:
|
|
3250
|
+
color: f,
|
|
3248
3251
|
roundedness: x,
|
|
3249
3252
|
disabled: p
|
|
3250
3253
|
},
|
|
3251
3254
|
...g
|
|
3252
3255
|
);
|
|
3253
3256
|
}
|
|
3254
|
-
function
|
|
3257
|
+
function ct({
|
|
3255
3258
|
href: e,
|
|
3256
3259
|
viewTransition: n,
|
|
3257
3260
|
state: t,
|
|
3258
3261
|
scroll: a,
|
|
3259
3262
|
replace: l,
|
|
3260
3263
|
target: r,
|
|
3261
|
-
rel:
|
|
3264
|
+
rel: u,
|
|
3262
3265
|
variant: c,
|
|
3263
|
-
size:
|
|
3266
|
+
size: i,
|
|
3264
3267
|
color: o,
|
|
3265
3268
|
roundedness: d,
|
|
3266
|
-
disabled:
|
|
3269
|
+
disabled: f
|
|
3267
3270
|
}, ...x) {
|
|
3268
3271
|
return te(
|
|
3269
|
-
|
|
3272
|
+
f ?? !1,
|
|
3270
3273
|
() => m.span(
|
|
3271
3274
|
s.class(
|
|
3272
3275
|
y(
|
|
3273
|
-
|
|
3276
|
+
i,
|
|
3274
3277
|
d
|
|
3275
3278
|
)(
|
|
3276
|
-
(p, g) =>
|
|
3279
|
+
(p, g) => Je(
|
|
3277
3280
|
p ?? "md",
|
|
3278
3281
|
g ?? "sm",
|
|
3279
3282
|
!1
|
|
@@ -3285,9 +3288,9 @@ function dt({
|
|
|
3285
3288
|
y(
|
|
3286
3289
|
c,
|
|
3287
3290
|
o,
|
|
3288
|
-
|
|
3291
|
+
f
|
|
3289
3292
|
)(
|
|
3290
|
-
(p, g, v) =>
|
|
3293
|
+
(p, g, v) => Qe(
|
|
3291
3294
|
p ?? "filled",
|
|
3292
3295
|
g ?? "base",
|
|
3293
3296
|
v
|
|
@@ -3296,10 +3299,10 @@ function dt({
|
|
|
3296
3299
|
),
|
|
3297
3300
|
...x
|
|
3298
3301
|
),
|
|
3299
|
-
() =>
|
|
3302
|
+
() => Fe(
|
|
3300
3303
|
{
|
|
3301
3304
|
href: e,
|
|
3302
|
-
...
|
|
3305
|
+
...Ue({
|
|
3303
3306
|
viewTransition: n,
|
|
3304
3307
|
state: t,
|
|
3305
3308
|
scroll: a,
|
|
@@ -3308,10 +3311,10 @@ function dt({
|
|
|
3308
3311
|
},
|
|
3309
3312
|
s.class(
|
|
3310
3313
|
y(
|
|
3311
|
-
|
|
3314
|
+
i,
|
|
3312
3315
|
d
|
|
3313
3316
|
)(
|
|
3314
|
-
(p, g) =>
|
|
3317
|
+
(p, g) => Je(
|
|
3315
3318
|
p ?? "md",
|
|
3316
3319
|
g ?? "sm",
|
|
3317
3320
|
!1
|
|
@@ -3323,9 +3326,9 @@ function dt({
|
|
|
3323
3326
|
y(
|
|
3324
3327
|
c,
|
|
3325
3328
|
o,
|
|
3326
|
-
|
|
3329
|
+
f
|
|
3327
3330
|
)(
|
|
3328
|
-
(p, g, v) =>
|
|
3331
|
+
(p, g, v) => Qe(
|
|
3329
3332
|
p ?? "filled",
|
|
3330
3333
|
g ?? "base",
|
|
3331
3334
|
v
|
|
@@ -3333,13 +3336,13 @@ function dt({
|
|
|
3333
3336
|
)
|
|
3334
3337
|
),
|
|
3335
3338
|
r ? s.target(r) : null,
|
|
3336
|
-
|
|
3339
|
+
u ? s.rel(u) : null,
|
|
3337
3340
|
...x
|
|
3338
3341
|
)
|
|
3339
3342
|
);
|
|
3340
3343
|
}
|
|
3341
|
-
const
|
|
3342
|
-
mark:
|
|
3344
|
+
const Wn = {
|
|
3345
|
+
mark: Yt("SidebarContext"),
|
|
3343
3346
|
create: (e) => ({
|
|
3344
3347
|
value: {
|
|
3345
3348
|
backgroundMode: "light"
|
|
@@ -3349,8 +3352,8 @@ const qn = {
|
|
|
3349
3352
|
})
|
|
3350
3353
|
};
|
|
3351
3354
|
function ls({ backgroundMode: e = "light" }, ...n) {
|
|
3352
|
-
return
|
|
3353
|
-
|
|
3355
|
+
return bt(
|
|
3356
|
+
Wn,
|
|
3354
3357
|
S.map(
|
|
3355
3358
|
e,
|
|
3356
3359
|
(t) => ({
|
|
@@ -3369,7 +3372,7 @@ function ls({ backgroundMode: e = "light" }, ...n) {
|
|
|
3369
3372
|
)
|
|
3370
3373
|
);
|
|
3371
3374
|
}
|
|
3372
|
-
function
|
|
3375
|
+
function dt({ rail: e, header: n }, ...t) {
|
|
3373
3376
|
return je(
|
|
3374
3377
|
n != null ? m.div(s.class("bc-sidebar-group__header"), n) : null,
|
|
3375
3378
|
m.div(
|
|
@@ -3384,19 +3387,19 @@ function pt({ rail: e, header: n }, ...t) {
|
|
|
3384
3387
|
)
|
|
3385
3388
|
);
|
|
3386
3389
|
}
|
|
3387
|
-
function
|
|
3388
|
-
const t =
|
|
3390
|
+
function qn(e, ...n) {
|
|
3391
|
+
const t = Ue({
|
|
3389
3392
|
viewTransition: e.viewTransition ?? !0,
|
|
3390
3393
|
state: e.state,
|
|
3391
3394
|
scroll: e.scroll,
|
|
3392
3395
|
replace: e.replace
|
|
3393
3396
|
});
|
|
3394
|
-
return
|
|
3397
|
+
return Fe({ href: e.href, ...t }, ...n);
|
|
3395
3398
|
}
|
|
3396
|
-
function
|
|
3399
|
+
function Zn(...e) {
|
|
3397
3400
|
return m.span(...e);
|
|
3398
3401
|
}
|
|
3399
|
-
function
|
|
3402
|
+
function Yn(e, ...n) {
|
|
3400
3403
|
return m.button(
|
|
3401
3404
|
s.type("button"),
|
|
3402
3405
|
$.click(e.onClick),
|
|
@@ -3411,12 +3414,12 @@ function Gn(e, ...n) {
|
|
|
3411
3414
|
...n
|
|
3412
3415
|
);
|
|
3413
3416
|
}
|
|
3414
|
-
function
|
|
3417
|
+
function Gn(e) {
|
|
3415
3418
|
const n = [s.class("bc-sidebar-link")];
|
|
3416
3419
|
return e.icon != null && n.push(
|
|
3417
3420
|
m.span(
|
|
3418
3421
|
s.class("bc-sidebar-link--icon"),
|
|
3419
|
-
|
|
3422
|
+
U({ icon: e.icon })
|
|
3420
3423
|
)
|
|
3421
3424
|
), n.push(
|
|
3422
3425
|
m.span(s.class("bc-sidebar-link__content"), e.content)
|
|
@@ -3429,11 +3432,11 @@ function Kn(e) {
|
|
|
3429
3432
|
$.click((t, a) => {
|
|
3430
3433
|
e.action?.onClick?.(a);
|
|
3431
3434
|
}),
|
|
3432
|
-
|
|
3435
|
+
U({ icon: e.action?.icon })
|
|
3433
3436
|
)
|
|
3434
|
-
), "onClick" in e ?
|
|
3437
|
+
), "onClick" in e ? Yn(e, ...n) : Y(ge, (t) => {
|
|
3435
3438
|
const a = t.matchSignal(
|
|
3436
|
-
|
|
3439
|
+
ze(e.href, "exact"),
|
|
3437
3440
|
{
|
|
3438
3441
|
includeSearch: !1,
|
|
3439
3442
|
includeHash: !1
|
|
@@ -3441,8 +3444,8 @@ function Kn(e) {
|
|
|
3441
3444
|
);
|
|
3442
3445
|
return te(
|
|
3443
3446
|
a,
|
|
3444
|
-
() =>
|
|
3445
|
-
() =>
|
|
3447
|
+
() => Zn(...n),
|
|
3448
|
+
() => qn(e, ...n)
|
|
3446
3449
|
);
|
|
3447
3450
|
});
|
|
3448
3451
|
}
|
|
@@ -3452,41 +3455,41 @@ function rs({
|
|
|
3452
3455
|
header: t,
|
|
3453
3456
|
startOpen: a = !0
|
|
3454
3457
|
}, ...l) {
|
|
3455
|
-
const r = S.deriveProp(a),
|
|
3456
|
-
return
|
|
3458
|
+
const r = S.deriveProp(a), u = re("sidebar-group"), c = `${u}-content`;
|
|
3459
|
+
return dt(
|
|
3457
3460
|
{},
|
|
3458
3461
|
s.class("bc-sidebar-group-collapsible"),
|
|
3459
3462
|
s.class(
|
|
3460
3463
|
r.map(
|
|
3461
|
-
(
|
|
3464
|
+
(i) => i ? "bc-sidebar-group-collapsible--open" : "bc-sidebar-group-collapsible--closed"
|
|
3462
3465
|
)
|
|
3463
3466
|
),
|
|
3464
3467
|
// Add ARIA attributes for group
|
|
3465
3468
|
s.role("group"),
|
|
3466
|
-
s.id(
|
|
3467
|
-
|
|
3469
|
+
s.id(u),
|
|
3470
|
+
Gn({
|
|
3468
3471
|
icon: n,
|
|
3469
|
-
onClick: () => r.update((
|
|
3472
|
+
onClick: () => r.update((i) => !i),
|
|
3470
3473
|
// Add ARIA attributes for the toggle button
|
|
3471
3474
|
ariaExpanded: r,
|
|
3472
3475
|
ariaControls: c,
|
|
3473
3476
|
right: m.span(
|
|
3474
3477
|
s.class("bc-sidebar-group-collapsible-indicator"),
|
|
3475
|
-
|
|
3478
|
+
U({ icon: "lucide:chevron-down", color: "base" })
|
|
3476
3479
|
),
|
|
3477
3480
|
content: t
|
|
3478
3481
|
}),
|
|
3479
|
-
|
|
3482
|
+
dt({ rail: e }, s.id(c), _n({ open: r }, ...l))
|
|
3480
3483
|
);
|
|
3481
3484
|
}
|
|
3482
3485
|
function os() {
|
|
3483
3486
|
return m.hr(s.class("bc-sidebar-separator"));
|
|
3484
3487
|
}
|
|
3485
|
-
function
|
|
3488
|
+
function Kn(e, n, t) {
|
|
3486
3489
|
const a = ["bc-tabs", `bc-tabs--${e}`, `bc-tabs--${n}`];
|
|
3487
3490
|
return t && a.push("bc-tabs--disabled"), a.join(" ");
|
|
3488
3491
|
}
|
|
3489
|
-
function
|
|
3492
|
+
function Xn(e, n, t) {
|
|
3490
3493
|
const a = ["bc-tab", `bc-tab--${e}`];
|
|
3491
3494
|
return n && a.push("bc-tab--active"), t && a.push("bc-tab--disabled"), a.join(" ");
|
|
3492
3495
|
}
|
|
@@ -3496,8 +3499,8 @@ function ke(e, n, t) {
|
|
|
3496
3499
|
l >= a ? l = 0 : l < 0 && (l = a - 1);
|
|
3497
3500
|
let r = 0;
|
|
3498
3501
|
for (; r < a; ) {
|
|
3499
|
-
const
|
|
3500
|
-
if (!S.get(
|
|
3502
|
+
const u = n[l];
|
|
3503
|
+
if (!S.get(u.disabled ?? !1))
|
|
3501
3504
|
return l;
|
|
3502
3505
|
l += t, l >= a ? l = 0 : l < 0 && (l = a - 1), r++;
|
|
3503
3506
|
}
|
|
@@ -3510,18 +3513,18 @@ function is(e) {
|
|
|
3510
3513
|
onChange: a,
|
|
3511
3514
|
size: l = "md",
|
|
3512
3515
|
disabled: r = !1,
|
|
3513
|
-
orientation:
|
|
3516
|
+
orientation: u = "horizontal",
|
|
3514
3517
|
showContent: c = !0,
|
|
3515
|
-
ariaLabel:
|
|
3516
|
-
} = e, o = re("tablist"), d =
|
|
3518
|
+
ariaLabel: i
|
|
3519
|
+
} = e, o = re("tablist"), d = j(-1), f = y(t)((p) => n.find((g) => g.key === p)), x = (p) => {
|
|
3517
3520
|
if (S.get(r)) return;
|
|
3518
|
-
const v = d.value,
|
|
3521
|
+
const v = d.value, T = S.get(u) === "horizontal";
|
|
3519
3522
|
let C = v;
|
|
3520
3523
|
switch (p.key) {
|
|
3521
|
-
case (
|
|
3524
|
+
case (T ? "ArrowRight" : "ArrowDown"):
|
|
3522
3525
|
p.preventDefault(), C = ke(v, n, 1);
|
|
3523
3526
|
break;
|
|
3524
|
-
case (
|
|
3527
|
+
case (T ? "ArrowLeft" : "ArrowUp"):
|
|
3525
3528
|
p.preventDefault(), C = ke(v, n, -1);
|
|
3526
3529
|
break;
|
|
3527
3530
|
case "Home":
|
|
@@ -3533,26 +3536,26 @@ function is(e) {
|
|
|
3533
3536
|
case "Enter":
|
|
3534
3537
|
case " ":
|
|
3535
3538
|
if (p.preventDefault(), v >= 0 && v < n.length) {
|
|
3536
|
-
const
|
|
3537
|
-
S.get(
|
|
3539
|
+
const b = n[v];
|
|
3540
|
+
S.get(b.disabled ?? !1) || a?.(b.key);
|
|
3538
3541
|
}
|
|
3539
3542
|
break;
|
|
3540
3543
|
}
|
|
3541
3544
|
C !== v && C >= 0 && C < n.length && (d.set(C), setTimeout(() => {
|
|
3542
|
-
const
|
|
3545
|
+
const b = document.querySelector(
|
|
3543
3546
|
`[data-tab-index="${C}"]`
|
|
3544
3547
|
);
|
|
3545
|
-
|
|
3548
|
+
b && b.focus();
|
|
3546
3549
|
}, 0));
|
|
3547
3550
|
};
|
|
3548
3551
|
return m.div(
|
|
3549
3552
|
s.class(
|
|
3550
3553
|
y(
|
|
3551
3554
|
l,
|
|
3552
|
-
|
|
3555
|
+
u,
|
|
3553
3556
|
r
|
|
3554
3557
|
)(
|
|
3555
|
-
(p, g, v) =>
|
|
3558
|
+
(p, g, v) => Kn(
|
|
3556
3559
|
p ?? "md",
|
|
3557
3560
|
g ?? "horizontal",
|
|
3558
3561
|
v ?? !1
|
|
@@ -3565,24 +3568,24 @@ function is(e) {
|
|
|
3565
3568
|
s.role("tablist"),
|
|
3566
3569
|
s.id(o),
|
|
3567
3570
|
A.orientation(
|
|
3568
|
-
|
|
3571
|
+
u ?? "horizontal"
|
|
3569
3572
|
),
|
|
3570
|
-
|
|
3573
|
+
i ? A.label(i) : M(),
|
|
3571
3574
|
$.keydown(x),
|
|
3572
3575
|
...n.map((p, g) => {
|
|
3573
|
-
const v = y(t)((w) => w === p.key),
|
|
3576
|
+
const v = y(t)((w) => w === p.key), T = y(
|
|
3574
3577
|
r,
|
|
3575
3578
|
p.disabled
|
|
3576
|
-
)((w, D) => w || D), C = `${o}-tab-${p.key}`,
|
|
3579
|
+
)((w, D) => w || D), C = `${o}-tab-${p.key}`, b = `${o}-panel-${p.key}`;
|
|
3577
3580
|
return m.button(
|
|
3578
3581
|
s.type("button"),
|
|
3579
3582
|
s.class(
|
|
3580
3583
|
y(
|
|
3581
3584
|
l,
|
|
3582
3585
|
v,
|
|
3583
|
-
|
|
3586
|
+
T
|
|
3584
3587
|
)(
|
|
3585
|
-
(w, D, V) =>
|
|
3588
|
+
(w, D, V) => Xn(
|
|
3586
3589
|
w ?? "md",
|
|
3587
3590
|
D ?? !1,
|
|
3588
3591
|
V ?? !1
|
|
@@ -3598,10 +3601,10 @@ function is(e) {
|
|
|
3598
3601
|
)((w, D) => w || D === g ? 0 : -1)
|
|
3599
3602
|
),
|
|
3600
3603
|
A.selected(v),
|
|
3601
|
-
A.controls(
|
|
3602
|
-
A.disabled(
|
|
3603
|
-
s.disabled(
|
|
3604
|
-
|
|
3604
|
+
A.controls(b),
|
|
3605
|
+
A.disabled(T),
|
|
3606
|
+
s.disabled(T),
|
|
3607
|
+
Ee["tab-index"](String(g)),
|
|
3605
3608
|
p.ariaLabel ? A.label(p.ariaLabel) : M(),
|
|
3606
3609
|
$.click((w) => {
|
|
3607
3610
|
w.preventDefault(), S.get(p.disabled ?? !1) || S.get(r) || (a?.(p.key), d.set(g));
|
|
@@ -3616,158 +3619,49 @@ function is(e) {
|
|
|
3616
3619
|
// Panel
|
|
3617
3620
|
te(
|
|
3618
3621
|
c ?? !0,
|
|
3619
|
-
() =>
|
|
3620
|
-
const g = p.$.key, v = g.map((C) => `${o}-tab-${C}`),
|
|
3622
|
+
() => _e(f, (p) => {
|
|
3623
|
+
const g = p.$.key, v = g.map((C) => `${o}-tab-${C}`), T = g.map((C) => `${o}-panel-${C}`);
|
|
3621
3624
|
return m.div(
|
|
3622
3625
|
s.class("bc-tabs__panels"),
|
|
3623
3626
|
m.div(
|
|
3624
3627
|
s.class("bc-tabs__panel"),
|
|
3625
|
-
s.id(
|
|
3628
|
+
s.id(T),
|
|
3626
3629
|
s.role("tabpanel"),
|
|
3627
3630
|
s.tabindex(0),
|
|
3628
3631
|
A.labelledby(v),
|
|
3629
|
-
|
|
3632
|
+
ft(p, (C) => C.content())
|
|
3630
3633
|
)
|
|
3631
3634
|
);
|
|
3632
3635
|
})
|
|
3633
3636
|
)
|
|
3634
3637
|
);
|
|
3635
3638
|
}
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
'[role="button"]:not([aria-disabled="true"])',
|
|
3639
|
-
"a[href]",
|
|
3640
|
-
"input:not([disabled])",
|
|
3641
|
-
"select:not([disabled])",
|
|
3642
|
-
"textarea:not([disabled])",
|
|
3643
|
-
'[tabindex]:not([tabindex="-1"])'
|
|
3644
|
-
].join(", ");
|
|
3645
|
-
function us(...e) {
|
|
3646
|
-
return m.div(
|
|
3647
|
-
s.class("bc-toolbar"),
|
|
3648
|
-
s.role("toolbar"),
|
|
3649
|
-
A.orientation("horizontal"),
|
|
3650
|
-
// Keyboard navigation with roving tabindex among focusable children
|
|
3651
|
-
X((n) => {
|
|
3652
|
-
const t = () => {
|
|
3653
|
-
const r = Array.from(
|
|
3654
|
-
n.querySelectorAll(Ie)
|
|
3655
|
-
);
|
|
3656
|
-
r.length !== 0 && r.forEach(
|
|
3657
|
-
(i, c) => i.setAttribute("tabindex", c === 0 ? "0" : "-1")
|
|
3658
|
-
);
|
|
3659
|
-
}, a = (r) => {
|
|
3660
|
-
const i = Array.from(
|
|
3661
|
-
n.querySelectorAll(Ie)
|
|
3662
|
-
);
|
|
3663
|
-
if (i.length === 0) return;
|
|
3664
|
-
const c = i.findIndex(
|
|
3665
|
-
(b) => b === document.activeElement
|
|
3666
|
-
);
|
|
3667
|
-
let o = (c === -1 ? 0 : c) + r;
|
|
3668
|
-
o < 0 && (o = i.length - 1), o >= i.length && (o = 0), i.forEach((b) => b.setAttribute("tabindex", "-1"));
|
|
3669
|
-
const d = i[o];
|
|
3670
|
-
d.setAttribute("tabindex", "0"), d.focus();
|
|
3671
|
-
};
|
|
3672
|
-
setTimeout(t, 0);
|
|
3673
|
-
const l = (r) => {
|
|
3674
|
-
switch (r.key) {
|
|
3675
|
-
case "ArrowRight":
|
|
3676
|
-
r.preventDefault(), a(1);
|
|
3677
|
-
break;
|
|
3678
|
-
case "ArrowLeft":
|
|
3679
|
-
r.preventDefault(), a(-1);
|
|
3680
|
-
break;
|
|
3681
|
-
case "Home":
|
|
3682
|
-
r.preventDefault(), a(-1);
|
|
3683
|
-
{
|
|
3684
|
-
const i = Array.from(
|
|
3685
|
-
n.querySelectorAll(Ie)
|
|
3686
|
-
);
|
|
3687
|
-
if (i.length) {
|
|
3688
|
-
i.forEach((u) => u.setAttribute("tabindex", "-1"));
|
|
3689
|
-
const c = i[0];
|
|
3690
|
-
c.setAttribute("tabindex", "0"), c.focus();
|
|
3691
|
-
}
|
|
3692
|
-
}
|
|
3693
|
-
break;
|
|
3694
|
-
case "End":
|
|
3695
|
-
r.preventDefault();
|
|
3696
|
-
{
|
|
3697
|
-
const i = Array.from(
|
|
3698
|
-
n.querySelectorAll(Ie)
|
|
3699
|
-
);
|
|
3700
|
-
if (i.length) {
|
|
3701
|
-
i.forEach((u) => u.setAttribute("tabindex", "-1"));
|
|
3702
|
-
const c = i[i.length - 1];
|
|
3703
|
-
c.setAttribute("tabindex", "0"), c.focus();
|
|
3704
|
-
}
|
|
3705
|
-
}
|
|
3706
|
-
break;
|
|
3707
|
-
}
|
|
3708
|
-
};
|
|
3709
|
-
return n.addEventListener("keydown", l), z(() => {
|
|
3710
|
-
n.removeEventListener("keydown", l);
|
|
3711
|
-
});
|
|
3712
|
-
}),
|
|
3713
|
-
...e
|
|
3714
|
-
);
|
|
3715
|
-
}
|
|
3716
|
-
function cs(e, ...n) {
|
|
3717
|
-
return Ee(
|
|
3718
|
-
{
|
|
3719
|
-
color: "neutral",
|
|
3720
|
-
roundedness: "md",
|
|
3721
|
-
variant: "light",
|
|
3722
|
-
...e
|
|
3723
|
-
},
|
|
3724
|
-
s.class("bc-toolbar__button"),
|
|
3725
|
-
...n
|
|
3726
|
-
);
|
|
3727
|
-
}
|
|
3728
|
-
function ds(...e) {
|
|
3729
|
-
return m.div(
|
|
3730
|
-
s.class("bc-toolbar__group"),
|
|
3731
|
-
s.role("group"),
|
|
3732
|
-
...e
|
|
3733
|
-
);
|
|
3734
|
-
}
|
|
3735
|
-
function ps() {
|
|
3736
|
-
return m.div(
|
|
3737
|
-
s.class("bc-toolbar__divider"),
|
|
3738
|
-
s.role("separator"),
|
|
3739
|
-
A.orientation("vertical")
|
|
3740
|
-
);
|
|
3741
|
-
}
|
|
3742
|
-
function ms() {
|
|
3743
|
-
return m.div(s.class("bc-toolbar__spacer"));
|
|
3744
|
-
}
|
|
3745
|
-
function bs(e) {
|
|
3746
|
-
return on((n, t) => {
|
|
3639
|
+
function us(e) {
|
|
3640
|
+
return rn((n, t) => {
|
|
3747
3641
|
let a = t;
|
|
3748
3642
|
const l = () => a();
|
|
3749
3643
|
return e((c) => {
|
|
3750
3644
|
const {
|
|
3751
|
-
size:
|
|
3645
|
+
size: i = "md",
|
|
3752
3646
|
side: o = "right",
|
|
3753
3647
|
dismissable: d = !0,
|
|
3754
|
-
showCloseButton:
|
|
3648
|
+
showCloseButton: f = !0,
|
|
3755
3649
|
onClose: x,
|
|
3756
3650
|
overlayEffect: p = "opaque",
|
|
3757
3651
|
container: g = "body",
|
|
3758
3652
|
header: v,
|
|
3759
|
-
body:
|
|
3653
|
+
body: T,
|
|
3760
3654
|
footer: C
|
|
3761
3655
|
} = c;
|
|
3762
3656
|
a = t;
|
|
3763
|
-
const
|
|
3657
|
+
const b = j("capturing");
|
|
3764
3658
|
S.on(d, (V) => {
|
|
3765
|
-
|
|
3659
|
+
b.set(V ? "capturing" : "non-capturing");
|
|
3766
3660
|
});
|
|
3767
3661
|
const w = y(
|
|
3768
3662
|
v != null,
|
|
3769
|
-
|
|
3770
|
-
)((V, E) => V || E), D =
|
|
3663
|
+
f
|
|
3664
|
+
)((V, E) => V || E), D = Q((V) => {
|
|
3771
3665
|
const E = he({
|
|
3772
3666
|
initialStatus: "closed",
|
|
3773
3667
|
element: V
|
|
@@ -3776,46 +3670,46 @@ function bs(e) {
|
|
|
3776
3670
|
E.close(), E.onClosed(() => {
|
|
3777
3671
|
t();
|
|
3778
3672
|
});
|
|
3779
|
-
},
|
|
3780
|
-
const
|
|
3673
|
+
}, $e(() => E.open());
|
|
3674
|
+
const _ = re("drawer"), B = v != null ? `${_}-header` : void 0, N = `${_}-body`;
|
|
3781
3675
|
return m.div(
|
|
3782
3676
|
s.class(
|
|
3783
3677
|
y(
|
|
3784
|
-
|
|
3678
|
+
i,
|
|
3785
3679
|
o,
|
|
3786
3680
|
E.status
|
|
3787
3681
|
)(
|
|
3788
|
-
(H, F,
|
|
3682
|
+
(H, F, z) => `bc-drawer bc-drawer--size-${H} bc-drawer--container-${g} bc-drawer--side-${F} bc-drawer--status-${z}`
|
|
3789
3683
|
)
|
|
3790
3684
|
),
|
|
3791
3685
|
// Essential ARIA attributes for drawer dialog
|
|
3792
3686
|
s.role("dialog"),
|
|
3793
3687
|
A.modal(!0),
|
|
3794
|
-
...
|
|
3688
|
+
...B ? [A.labelledby(B)] : [],
|
|
3795
3689
|
A.describedby(N),
|
|
3796
3690
|
s.tabindex(-1),
|
|
3797
3691
|
// Make drawer focusable for initial focus
|
|
3798
|
-
s.id(
|
|
3799
|
-
|
|
3692
|
+
s.id(_),
|
|
3693
|
+
Ee.focusTrap("true"),
|
|
3800
3694
|
// Mark as focus trap container
|
|
3801
3695
|
// Focus trap for keyboard navigation
|
|
3802
|
-
|
|
3696
|
+
on({
|
|
3803
3697
|
active: !0,
|
|
3804
3698
|
escapeDeactivates: !1,
|
|
3805
3699
|
// Let Overlay handle escape key
|
|
3806
3700
|
initialFocus: () => document.querySelector(
|
|
3807
|
-
`#${
|
|
3701
|
+
`#${_} [aria-label="Close drawer"]`
|
|
3808
3702
|
) || null
|
|
3809
3703
|
}),
|
|
3810
3704
|
$.mousedown((H) => H.stopPropagation()),
|
|
3811
3705
|
// Prevent overlay click-outside when clicking drawer content
|
|
3812
3706
|
// Drawer content container
|
|
3813
|
-
|
|
3707
|
+
ft(w, (H) => lt(H ? {
|
|
3814
3708
|
header: m.div(
|
|
3815
3709
|
s.class("bc-drawer__header"),
|
|
3816
|
-
m.div(s.id(
|
|
3710
|
+
m.div(s.id(B), v),
|
|
3817
3711
|
te(
|
|
3818
|
-
|
|
3712
|
+
f,
|
|
3819
3713
|
() => Y(
|
|
3820
3714
|
ne,
|
|
3821
3715
|
(F) => ht({
|
|
@@ -3829,21 +3723,21 @@ function bs(e) {
|
|
|
3829
3723
|
body: m.div(
|
|
3830
3724
|
s.class("bc-drawer__body"),
|
|
3831
3725
|
s.id(N),
|
|
3832
|
-
|
|
3726
|
+
T
|
|
3833
3727
|
),
|
|
3834
3728
|
footer: C && m.div(s.class("bc-drawer__footer"), C)
|
|
3835
3729
|
} : {
|
|
3836
3730
|
body: m.div(
|
|
3837
3731
|
s.class("bc-drawer__body"),
|
|
3838
3732
|
s.id(N),
|
|
3839
|
-
|
|
3733
|
+
T
|
|
3840
3734
|
),
|
|
3841
3735
|
footer: C && m.div(s.class("bc-drawer__footer"), C)
|
|
3842
3736
|
}))
|
|
3843
3737
|
);
|
|
3844
3738
|
});
|
|
3845
3739
|
n({
|
|
3846
|
-
mode:
|
|
3740
|
+
mode: b,
|
|
3847
3741
|
effect: p ?? "opaque",
|
|
3848
3742
|
container: g,
|
|
3849
3743
|
content: D,
|
|
@@ -3859,42 +3753,42 @@ function bs(e) {
|
|
|
3859
3753
|
});
|
|
3860
3754
|
});
|
|
3861
3755
|
}
|
|
3862
|
-
function
|
|
3756
|
+
function Jn(e) {
|
|
3863
3757
|
const n = {
|
|
3864
3758
|
up: "M0 16 L8 10 L16 16 Z",
|
|
3865
3759
|
down: "M0 0 L8 6 L16 0 Z",
|
|
3866
3760
|
left: "M16 0 L10 8 L16 16 Z",
|
|
3867
3761
|
right: "M0 0 L6 8 L0 16 Z"
|
|
3868
3762
|
};
|
|
3869
|
-
return
|
|
3870
|
-
|
|
3871
|
-
|
|
3763
|
+
return Ze.svg(
|
|
3764
|
+
Ye.viewBox("0 0 16 16"),
|
|
3765
|
+
Ze.path(Ye.d(e.map((t) => n[t])))
|
|
3872
3766
|
);
|
|
3873
3767
|
}
|
|
3874
|
-
function
|
|
3768
|
+
function cs(e) {
|
|
3875
3769
|
const {
|
|
3876
3770
|
content: n,
|
|
3877
3771
|
placement: t = "top",
|
|
3878
3772
|
showDelay: a = 250,
|
|
3879
3773
|
hideDelay: l = 500,
|
|
3880
3774
|
mainAxisOffset: r = 8,
|
|
3881
|
-
crossAxisOffset:
|
|
3775
|
+
crossAxisOffset: u = 0,
|
|
3882
3776
|
showOn: c = "hover-focus"
|
|
3883
|
-
} = e,
|
|
3777
|
+
} = e, i = re("tooltip");
|
|
3884
3778
|
return M(
|
|
3885
|
-
A.describedby(
|
|
3886
|
-
|
|
3779
|
+
A.describedby(i),
|
|
3780
|
+
De({
|
|
3887
3781
|
content: () => M(
|
|
3888
3782
|
s.class("bc-tooltip"),
|
|
3889
3783
|
s.role("tooltip"),
|
|
3890
|
-
s.id(
|
|
3784
|
+
s.id(i),
|
|
3891
3785
|
n
|
|
3892
3786
|
),
|
|
3893
3787
|
placement: t,
|
|
3894
3788
|
showDelay: a,
|
|
3895
3789
|
hideDelay: l,
|
|
3896
3790
|
mainAxisOffset: r,
|
|
3897
|
-
crossAxisOffset:
|
|
3791
|
+
crossAxisOffset: u,
|
|
3898
3792
|
showOn: c,
|
|
3899
3793
|
closable: !0,
|
|
3900
3794
|
role: "tooltip",
|
|
@@ -3903,341 +3797,341 @@ function fs(e) {
|
|
|
3903
3797
|
arrow: (o) => {
|
|
3904
3798
|
const d = o.map(
|
|
3905
3799
|
({
|
|
3906
|
-
placement:
|
|
3907
|
-
}) =>
|
|
3800
|
+
placement: f
|
|
3801
|
+
}) => f.includes("top") ? "down" : f.includes("bottom") ? "up" : f.includes("left") ? "right" : f.includes("right") ? "left" : "up"
|
|
3908
3802
|
);
|
|
3909
3803
|
return M(
|
|
3910
3804
|
s.class("bc-tooltip__arrow"),
|
|
3911
|
-
s.class(d.map((
|
|
3805
|
+
s.class(d.map((f) => `bc-tooltip__arrow-${f}`)),
|
|
3912
3806
|
h.transform(
|
|
3913
|
-
o.map(({ x:
|
|
3807
|
+
o.map(({ x: f, y: x }) => f == null && x == null ? "" : f != null ? `translate(${f}px, 0)` : `translate(0, ${x}px)`)
|
|
3914
3808
|
),
|
|
3915
|
-
|
|
3809
|
+
Jn(d)
|
|
3916
3810
|
);
|
|
3917
3811
|
}
|
|
3918
3812
|
})
|
|
3919
3813
|
);
|
|
3920
3814
|
}
|
|
3921
3815
|
export {
|
|
3922
|
-
|
|
3816
|
+
Pe as AnimatedToggleClass,
|
|
3923
3817
|
ba as AppShell,
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3818
|
+
fn as AppearanceSelector,
|
|
3819
|
+
nr as ArrayController,
|
|
3820
|
+
Dr as Base64Input,
|
|
3821
|
+
Vr as Base64sInput,
|
|
3822
|
+
Mn as BaseComboboxControl,
|
|
3929
3823
|
ka as BaseComboboxTagsControl,
|
|
3930
3824
|
yt as BaseControl,
|
|
3931
3825
|
Bn as BaseDropdownControl,
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3826
|
+
Ar as BaseListControl,
|
|
3827
|
+
ar as BaseMappedControl,
|
|
3828
|
+
Br as BaseNativeSelectControl,
|
|
3935
3829
|
Sa as BaseSelectTagsControl,
|
|
3936
3830
|
es as BeatUI,
|
|
3937
3831
|
ne as BeatUII18n,
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3832
|
+
Aa as BigintInput,
|
|
3833
|
+
fo as BooleanValidator,
|
|
3834
|
+
Ke as Button,
|
|
3941
3835
|
ss as ButtonLink,
|
|
3942
|
-
|
|
3836
|
+
Lr as Card,
|
|
3943
3837
|
ga as Center,
|
|
3944
3838
|
fa as CenterH,
|
|
3945
|
-
|
|
3946
|
-
|
|
3839
|
+
sr as CheckboxInput,
|
|
3840
|
+
Nt as Chips,
|
|
3947
3841
|
ht as CloseButton,
|
|
3948
|
-
|
|
3842
|
+
_n as Collapse,
|
|
3949
3843
|
rs as CollapsibleSidebarGroup,
|
|
3950
|
-
|
|
3951
|
-
|
|
3844
|
+
Fn as ColorController,
|
|
3845
|
+
Mr as ColorInput,
|
|
3952
3846
|
ya as ComboboxControl,
|
|
3953
|
-
|
|
3847
|
+
Ln as ComboboxInput,
|
|
3954
3848
|
Ia as ComboboxTagsControl,
|
|
3955
|
-
|
|
3849
|
+
Et as ComboboxTagsInput,
|
|
3956
3850
|
G as CommonInputAttributes,
|
|
3957
|
-
|
|
3851
|
+
go as ConfirmModal,
|
|
3958
3852
|
wt as Control,
|
|
3959
3853
|
en as Controller,
|
|
3960
|
-
|
|
3854
|
+
lr as DangerLabel,
|
|
3961
3855
|
$a as DateInput,
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3856
|
+
Ta as DateTimeInput,
|
|
3857
|
+
us as Drawer,
|
|
3858
|
+
$t as DropdownBase,
|
|
3965
3859
|
xa as DropdownControl,
|
|
3966
|
-
|
|
3860
|
+
An as DropdownInput,
|
|
3967
3861
|
Ya as DurationInput,
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3862
|
+
Or as EditableText,
|
|
3863
|
+
rr as EmailInput,
|
|
3864
|
+
or as EmphasisLabel,
|
|
3971
3865
|
Ga as EnsureControl,
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3866
|
+
nn as Expando,
|
|
3867
|
+
_a as FileInput,
|
|
3868
|
+
an as FilesInput,
|
|
3869
|
+
De as Flyout,
|
|
3870
|
+
on as FocusTrap,
|
|
3977
3871
|
Ka as FormStatus,
|
|
3978
|
-
|
|
3979
|
-
|
|
3872
|
+
St as Group,
|
|
3873
|
+
U as Icon,
|
|
3980
3874
|
q as InputContainer,
|
|
3981
|
-
|
|
3875
|
+
Re as InputWrapper,
|
|
3982
3876
|
Ha as InstantInput,
|
|
3983
|
-
|
|
3984
|
-
|
|
3877
|
+
fs as LOGICAL_PROPERTY_MAP,
|
|
3878
|
+
ir as Label,
|
|
3985
3879
|
Da as LazyNativeSelect,
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3880
|
+
Rn as Link,
|
|
3881
|
+
_o as LinkPortal,
|
|
3882
|
+
Nr as ListControl,
|
|
3883
|
+
Pr as ListInput,
|
|
3884
|
+
He as Locale,
|
|
3991
3885
|
Qa as LocaleSelector,
|
|
3992
|
-
|
|
3886
|
+
ur as MappedControl,
|
|
3993
3887
|
me as MaskInput,
|
|
3994
|
-
|
|
3888
|
+
Dt as Menu,
|
|
3995
3889
|
wa as MenuItem,
|
|
3996
3890
|
Vt as MenuSeparator,
|
|
3997
|
-
|
|
3998
|
-
|
|
3891
|
+
ho as Modal,
|
|
3892
|
+
cr as MutedLabel,
|
|
3999
3893
|
ts as NativePdfPreview,
|
|
4000
|
-
|
|
4001
|
-
|
|
3894
|
+
Ct as NativeSelect,
|
|
3895
|
+
Er as NativeSelectControl,
|
|
4002
3896
|
as as NavigationLink,
|
|
4003
3897
|
ha as NineSliceScrollView,
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
3898
|
+
dr as Notice,
|
|
3899
|
+
Ba as NullableBigintInput,
|
|
3900
|
+
Fr as NullableDateInput,
|
|
3901
|
+
Hr as NullableDateTimeInput,
|
|
3902
|
+
Rr as NullableDurationInput,
|
|
3903
|
+
jr as NullableEmailInput,
|
|
4010
3904
|
Ra as NullableInstantInput,
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
3905
|
+
Va as NullableMaskInput,
|
|
3906
|
+
Ur as NullableNumberInput,
|
|
3907
|
+
zr as NullablePasswordInput,
|
|
4014
3908
|
Oa as NullablePlainDateInput,
|
|
4015
3909
|
Fa as NullablePlainDateTimeInput,
|
|
4016
3910
|
Za as NullablePlainMonthDayInput,
|
|
4017
3911
|
Pa as NullablePlainTimeInput,
|
|
4018
3912
|
Wa as NullablePlainYearMonthInput,
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
3913
|
+
Wr as NullableRatingInput,
|
|
3914
|
+
qr as NullableSliderInput,
|
|
3915
|
+
Zr as NullableTextArea,
|
|
3916
|
+
Yr as NullableTextInput,
|
|
3917
|
+
Gr as NullableUUIDInput,
|
|
3918
|
+
Kr as NullableUrlInput,
|
|
3919
|
+
Ua as NullableZonedDateTimeInput,
|
|
3920
|
+
Xr as NumberInput,
|
|
3921
|
+
pr as ObjectController,
|
|
3922
|
+
vo as ObjectValidator,
|
|
4029
3923
|
ue as Option,
|
|
4030
|
-
|
|
4031
|
-
|
|
3924
|
+
rn as Overlay,
|
|
3925
|
+
mr as PasswordInput,
|
|
4032
3926
|
Ma as PlainDateInput,
|
|
4033
3927
|
Ea as PlainDateTimeInput,
|
|
4034
3928
|
qa as PlainMonthDayInput,
|
|
4035
3929
|
Na as PlainTimeInput,
|
|
4036
3930
|
za as PlainYearMonthInput,
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
3931
|
+
Jr as RatingInput,
|
|
3932
|
+
br as RequiredSymbol,
|
|
3933
|
+
lt as ScrollablePanel,
|
|
3934
|
+
tn as SegmentedInput,
|
|
4041
3935
|
Ca as SelectTagsControl,
|
|
4042
|
-
|
|
3936
|
+
Pt as SelectTagsInput,
|
|
4043
3937
|
ls as Sidebar,
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
3938
|
+
Zn as SidebarActiveLink,
|
|
3939
|
+
Yn as SidebarClickLink,
|
|
3940
|
+
Wn as SidebarContext,
|
|
3941
|
+
dt as SidebarGroup,
|
|
3942
|
+
Gn as SidebarLink,
|
|
4049
3943
|
os as SidebarSeparator,
|
|
4050
|
-
|
|
3944
|
+
qn as SidebarUrlLink,
|
|
4051
3945
|
va as Sink,
|
|
4052
|
-
|
|
3946
|
+
Qr as SliderInput,
|
|
4053
3947
|
je as Stack,
|
|
4054
3948
|
da as StandaloneAppearanceSelector,
|
|
4055
|
-
|
|
3949
|
+
xo as StringValidator,
|
|
4056
3950
|
ns as StylePortal,
|
|
4057
|
-
|
|
3951
|
+
eo as Switch,
|
|
4058
3952
|
is as Tabs,
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
3953
|
+
kt as Tag,
|
|
3954
|
+
La as TagsInput,
|
|
3955
|
+
to as TextArea,
|
|
3956
|
+
gs as TextInput,
|
|
3957
|
+
gt as Theme,
|
|
3958
|
+
Qt as ThemeAppearance,
|
|
3959
|
+
Vo as Toolbar,
|
|
3960
|
+
Ao as ToolbarButton,
|
|
3961
|
+
Bo as ToolbarDivider,
|
|
3962
|
+
Lo as ToolbarGroup,
|
|
3963
|
+
Mo as ToolbarSpacer,
|
|
3964
|
+
cs as Tooltip,
|
|
3965
|
+
no as UUIDInput,
|
|
3966
|
+
ao as UnionController,
|
|
3967
|
+
so as UnstyledDropZone,
|
|
3968
|
+
lo as UrlInput,
|
|
3969
|
+
ms as Use,
|
|
3970
|
+
wn as WithBeatUIBreakpoint,
|
|
4077
3971
|
ma as WithBeatUIElementBreakpoint,
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
3972
|
+
It as WithBreakpoint,
|
|
3973
|
+
J as WithTemporal,
|
|
3974
|
+
ja as ZonedDateTimeInput,
|
|
3975
|
+
No as backgroundConfig,
|
|
3976
|
+
Bs as baseSpacing,
|
|
3977
|
+
Ls as beatuiPreset,
|
|
3978
|
+
Po as bgColors,
|
|
3979
|
+
yo as boolean,
|
|
3980
|
+
Eo as borderColors,
|
|
3981
|
+
Ms as breakpoints,
|
|
3982
|
+
Os as changeFontSize,
|
|
4089
3983
|
Ja as colorInputOptionsFromController,
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
3984
|
+
Fo as colorShades,
|
|
3985
|
+
Ho as colors,
|
|
3986
|
+
xn as compareBreakpoint,
|
|
3987
|
+
fr as connectCommonAttributes,
|
|
3988
|
+
gr as connectNumberInput,
|
|
3989
|
+
hr as connectStringInput,
|
|
3990
|
+
vr as convertStandardSchemaIssues,
|
|
3991
|
+
xr as convertStandardSchemaPathToPath,
|
|
3992
|
+
Ns as createBeatuiPreset,
|
|
4099
3993
|
Xa as createColorController,
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
3994
|
+
ze as createLocationMatcher,
|
|
3995
|
+
wo as createStandardSchema,
|
|
3996
|
+
hs as defaultLocale,
|
|
3997
|
+
vs as defaultMessages,
|
|
4104
3998
|
ua as delaySignal,
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
3999
|
+
ro as emitExpando,
|
|
4000
|
+
oo as emitOptionExpando,
|
|
4001
|
+
et as emptyToNull,
|
|
4002
|
+
io as ensureTemporal,
|
|
4003
|
+
uo as fileToBase64,
|
|
4110
4004
|
pa as findBreakpoint,
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4005
|
+
Ps as fontFamily,
|
|
4006
|
+
Es as fontSize,
|
|
4007
|
+
Fs as fontWeight,
|
|
4008
|
+
xs as formatFileSize,
|
|
4009
|
+
Hs as generateAllTokenVariables,
|
|
4010
|
+
Rs as generateBreakpointVariables,
|
|
4011
|
+
Je as generateButtonClasses,
|
|
4012
|
+
Qe as generateButtonStyles,
|
|
4013
|
+
Ro as generateColorVariables,
|
|
4014
|
+
jo as generateCoreColorVariables,
|
|
4015
|
+
js as generateCoreTokenVariables,
|
|
4016
|
+
Us as generateFontFamilyOverrideVariables,
|
|
4017
|
+
it as generateLinkClasses,
|
|
4018
|
+
ut as generateLinkStyles,
|
|
4019
|
+
zs as generateMotionVariables,
|
|
4020
|
+
Ws as generateRadiusVariables,
|
|
4021
|
+
Uo as generateSemanticColorVariables,
|
|
4022
|
+
qs as generateSemanticFontVariables,
|
|
4023
|
+
Zs as generateSemanticMotionVariables,
|
|
4024
|
+
Ys as generateSemanticRadiusVariables,
|
|
4025
|
+
Gs as generateSemanticShadowVariables,
|
|
4026
|
+
Ks as generateSemanticSpacingVariables,
|
|
4027
|
+
Xs as generateSemanticTextShadowVariables,
|
|
4028
|
+
Js as generateSemanticTokenVariables,
|
|
4029
|
+
Qs as generateShadowVariables,
|
|
4030
|
+
el as generateSpacingVariables,
|
|
4031
|
+
tl as generateTextShadowVariables,
|
|
4032
|
+
nl as generateTypographyVariables,
|
|
4033
|
+
al as generateZIndexVariables,
|
|
4034
|
+
sl as getBreakpointMediaQuery,
|
|
4035
|
+
ll as getBreakpointVar,
|
|
4036
|
+
rl as getBreakpointVarName,
|
|
4037
|
+
zo as getColorVar,
|
|
4038
|
+
Wo as getColorVarName,
|
|
4145
4039
|
ia as getContrastRatio,
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4040
|
+
ys as getDirectionClassName,
|
|
4041
|
+
ws as getDirectionFromLocale,
|
|
4042
|
+
ol as getFontFamilyVar,
|
|
4043
|
+
il as getFontFamilyVarName,
|
|
4044
|
+
ul as getFontSizeVar,
|
|
4045
|
+
cl as getFontSizeVarName,
|
|
4046
|
+
dl as getFontWeightVar,
|
|
4047
|
+
pl as getFontWeightVarName,
|
|
4048
|
+
Ss as getIconLocally,
|
|
4049
|
+
ml as getLetterSpacingVar,
|
|
4050
|
+
bl as getLetterSpacingVarName,
|
|
4051
|
+
fl as getLineHeightVar,
|
|
4052
|
+
gl as getLineHeightVarName,
|
|
4053
|
+
hl as getMotionDurationVar,
|
|
4054
|
+
vl as getMotionDurationVarName,
|
|
4055
|
+
xl as getMotionEasingVar,
|
|
4056
|
+
yl as getMotionEasingVarName,
|
|
4057
|
+
Cs as getOppositeDirection,
|
|
4058
|
+
ks as getPhysicalProperty,
|
|
4059
|
+
wl as getRadiusMediaQuery,
|
|
4060
|
+
Sl as getRadiusVar,
|
|
4061
|
+
Cl as getRadiusVarName,
|
|
4062
|
+
kl as getSemanticFontVar,
|
|
4063
|
+
Il as getSemanticFontVarName,
|
|
4064
|
+
$l as getSemanticMotionVarName,
|
|
4065
|
+
Tl as getSemanticRadiusVarName,
|
|
4066
|
+
_l as getSemanticShadowVarName,
|
|
4067
|
+
Dl as getSemanticSpacingVarName,
|
|
4068
|
+
Vl as getSemanticTextShadowVarName,
|
|
4069
|
+
Al as getShadowVar,
|
|
4070
|
+
Bl as getShadowVarName,
|
|
4071
|
+
Ll as getSpacingVar,
|
|
4072
|
+
Ml as getSpacingVarName,
|
|
4073
|
+
Ol as getTextShadowVar,
|
|
4074
|
+
Nl as getTextShadowVarName,
|
|
4075
|
+
Pl as getTokenValue,
|
|
4076
|
+
El as getZIndexVar,
|
|
4077
|
+
Fl as getZIndexVarName,
|
|
4078
|
+
tt as hexToRgb,
|
|
4185
4079
|
ca as increaseSize,
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4080
|
+
qo as interactiveColors,
|
|
4081
|
+
Is as isIndexedDBAvailable,
|
|
4082
|
+
$s as isRTLLocale,
|
|
4083
|
+
zn as isUrlMatch,
|
|
4084
|
+
pn as isValidColor,
|
|
4191
4085
|
Te as isValidHexColor,
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4086
|
+
dn as isValidHslColor,
|
|
4087
|
+
un as isValidRgbColor,
|
|
4088
|
+
cn as isValidRgbaColor,
|
|
4089
|
+
Hl as letterSpacing,
|
|
4090
|
+
Rl as lineHeight,
|
|
4091
|
+
Ts as makeI18nProvider,
|
|
4092
|
+
yr as makeMapValidation,
|
|
4093
|
+
_s as makeMessages,
|
|
4200
4094
|
vt as makeOnBlurHandler,
|
|
4201
4095
|
xt as makeOnChangeHandler,
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4096
|
+
jl as motionDurations,
|
|
4097
|
+
Ul as motionEasings,
|
|
4098
|
+
Zo as normalizeColorName,
|
|
4205
4099
|
ce as normalizeHexColor,
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4100
|
+
sn as nullToEmpty,
|
|
4101
|
+
So as object,
|
|
4102
|
+
wr as parsePath,
|
|
4103
|
+
Sr as pathToString,
|
|
4104
|
+
zl as radius,
|
|
4105
|
+
Ds as resolveDirection,
|
|
4106
|
+
Yo as resolveSemanticColorMap,
|
|
4213
4107
|
oa as rgbToHex,
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4108
|
+
Go as semanticColorNames,
|
|
4109
|
+
Ko as semanticColors,
|
|
4110
|
+
Wl as semanticFontNames,
|
|
4111
|
+
ql as semanticMotionNames,
|
|
4112
|
+
Zl as semanticRadiusNames,
|
|
4113
|
+
Yl as semanticShadowNames,
|
|
4114
|
+
Gl as semanticSpacingNames,
|
|
4115
|
+
Kl as semanticTextShadowNames,
|
|
4222
4116
|
re as sessionId,
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4117
|
+
Xl as shadows,
|
|
4118
|
+
Jl as spacing,
|
|
4119
|
+
Cr as standardSchemaResultToValidation,
|
|
4120
|
+
Vs as storeIconLocally,
|
|
4121
|
+
Co as string,
|
|
4122
|
+
kr as taskToValidation,
|
|
4123
|
+
Xo as textColors,
|
|
4124
|
+
Ql as textShadows,
|
|
4125
|
+
Jo as themeColorNames,
|
|
4126
|
+
co as transformEmptyStringToUndefined,
|
|
4127
|
+
po as transformNullToUndefined,
|
|
4128
|
+
mo as transformUndefinedToNull,
|
|
4235
4129
|
he as useAnimatedElementToggle,
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4130
|
+
ko as useAnimatedToggle,
|
|
4131
|
+
Ir as useController,
|
|
4132
|
+
Io as useFocusTrap,
|
|
4133
|
+
$r as useForm,
|
|
4134
|
+
$o as useTimedToggle,
|
|
4135
|
+
Tr as wrapSegment,
|
|
4136
|
+
er as zIndex
|
|
4243
4137
|
};
|