ranui 0.3.1-alpha.1 → 0.4.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/README.zh-CN.md +3 -3
- package/dist/Temml-3BKyDWY9.js +4 -0
- package/dist/Temml-B3J22Yln.cjs +1 -0
- package/dist/{abnfDiagram-VRR7QNED-CTsqwzwi.js → abnfDiagram-VRR7QNED-C21Pc9Db.js} +4 -4
- package/dist/abnfDiagram-VRR7QNED-Do5oGbAb.cjs +1 -0
- package/dist/add-user-Dk1LIZtp.cjs +6 -0
- package/dist/add-user-WnpaBGEK.js +15 -0
- package/dist/arc-ByizYZ13.cjs +1 -0
- package/dist/{arc-DRPGof21.js → arc-DJJx8BhF.js} +1 -1
- package/dist/arc-DOGcyb-0.js +9 -0
- package/dist/architecture-TIHT7OUA-BJNZJd9x.cjs +1 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-8mjyXr-w.js → architectureDiagram-ZJ3FMSHR-Dt0W9V1f.js} +7 -7
- package/dist/{architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs → architectureDiagram-ZJ3FMSHR-WH22GUwo.cjs} +2 -2
- package/dist/{arrow-down-Bi5kqUrX.js → arrow-down-DrjnnTe1.js} +4 -2
- package/dist/arrow-down-Dt-KyDFE.cjs +5 -0
- package/dist/{blockDiagram-677ZJIJ3-3F79MOSt.js → blockDiagram-677ZJIJ3-Cb0N9R3M.js} +8 -8
- package/dist/book-8PpGdTqf.cjs +1 -0
- package/dist/book-CkgJlJ4n.js +10 -0
- package/dist/build/config.d.ts +11 -2
- package/dist/builder-BjRti6oP.cjs +1 -0
- package/dist/builder.js +40 -40
- package/dist/{button-Dw6YKyNd.js → button-DFBA474n.js} +14 -12
- package/dist/button.js +1 -1
- package/dist/{c4Diagram-LMCZKHZV-Cxn_gqu_.js → c4Diagram-LMCZKHZV-CFLtikIe.js} +5 -5
- package/dist/{card-BHN9Xp4S.js → card-Cfkb7dIm.js} +13 -13
- package/dist/card.js +1 -1
- package/dist/{channel-k5-UxdcV.js → channel-B9hm3LKF.js} +1 -1
- package/dist/check-63MT_RxH.cjs +1 -0
- package/dist/check-circle-Cbsw_Ffd.cjs +1 -0
- package/dist/check-circle-Dpkv0_9Z.js +10 -0
- package/dist/check-circle-fill-DVVjVyV6.cjs +1 -0
- package/dist/check-circle-fill-eBwMoYEo.js +10 -0
- package/dist/{checkbox-O_J_n1_W.js → checkbox-CeVzf_ff.js} +15 -14
- package/dist/checkbox.js +1 -1
- package/dist/{chunk-32BRIVSS-jAuAwMVV.js → chunk-32BRIVSS-DhXCFCbM.js} +3 -3
- package/dist/{chunk-52WLFC77-wpL7en7e.js → chunk-52WLFC77-CLS2Long.js} +8 -8
- package/dist/chunk-5FCAYU7R-M2ohMDGf.cjs +1 -0
- package/dist/chunk-5HE753X5-DkUtBcPF.cjs +1 -0
- package/dist/chunk-5JV3BV7I-BAn3GEjF.cjs +1 -0
- package/dist/chunk-5TONJI2A-Bk0HPVuY.cjs +2 -0
- package/dist/chunk-BIQX33UG-CaI4JSOY.cjs +1 -0
- package/dist/{chunk-C7G6YPKG-CA-DNpvI.js → chunk-C7G6YPKG-CuJexLt7.js} +1 -1
- package/dist/chunk-CQNSW5MT-DHm86rAm.cjs +1 -0
- package/dist/chunk-CYSBUYHQ-8HNynFK-.cjs +1 -0
- package/dist/chunk-EMLP6XTP-DESFjGc5.cjs +1 -0
- package/dist/{chunk-EX3LRPZG-BCmf0iDq.js → chunk-EX3LRPZG-C-g2gFWb.js} +7 -7
- package/dist/{chunk-FWX5IMBZ-DZ5VYvm5.js → chunk-FWX5IMBZ-Cpx1Lg-4.js} +8 -8
- package/dist/{chunk-HOUHSVGY-DRQcQeMT.js → chunk-HOUHSVGY-DpvP0Kt0.js} +2 -2
- package/dist/{chunk-ICXQ74PX-DR8rL-xF.js → chunk-ICXQ74PX-DPZfA3a8.js} +3 -3
- package/dist/chunk-JG7HCLWE-DJPVQhqh.cjs +2 -0
- package/dist/{chunk-MOJQB5TN-BC46HDyu.js → chunk-MOJQB5TN-BWgg4qSh.js} +3 -3
- package/dist/chunk-MOZMSUNE-BiirTonv.cjs +1 -0
- package/dist/{chunk-OGEWGWER-BV51ll2w.js → chunk-OGEWGWER-CYsD5SNd.js} +2 -2
- package/dist/chunk-OSBZ3O6U-BDLnzsCC.cjs +1 -0
- package/dist/{chunk-PUDLZKDR-NdMR0Ft5.js → chunk-PUDLZKDR-Dw2BOPG-.js} +9 -9
- package/dist/{chunk-Q4XR5HBZ-3BHjjc9u.js → chunk-Q4XR5HBZ-D_n2NzvL.js} +4 -4
- package/dist/chunk-QBLGF6JB-DgQIhta2.cjs +1 -0
- package/dist/chunk-R7FJI6CG-BjmGc1OU.cjs +1 -0
- package/dist/{chunk-RYQCIY6F-BER2T9t0.js → chunk-RYQCIY6F-CIHQ94xS.js} +1 -1
- package/dist/chunk-U6XO7XAA-Cxdku9z7.cjs +2 -0
- package/dist/{chunk-V7JOEXUC-Cr_hr02u.js → chunk-V7JOEXUC-DNMlt0_E.js} +7 -7
- package/dist/{chunk-VAUOI2AC-izt0o4id.js → chunk-VAUOI2AC-CrgGIUR-.js} +2 -2
- package/dist/{chunk-VR4S4FIN-CJi5okl4.js → chunk-VR4S4FIN-DQsfbArk.js} +2 -2
- package/dist/{chunk-WYO6CB5R-DDHkKowO.js → chunk-WYO6CB5R-DyGmS3I6.js} +1 -1
- package/dist/{chunk-XXDRQBXY-BB1i_53q.js → chunk-XXDRQBXY-BeVLa_G2.js} +1 -1
- package/dist/chunk-YOTPTUD7-BCQ2zMB7.cjs +1 -0
- package/dist/{chunk-ZGVPDNZ5-6uMbTJXy.js → chunk-ZGVPDNZ5-DlEsNy2g.js} +7 -7
- package/dist/circle-DgoPsPmL.cjs +1 -0
- package/dist/circle-fold-CZf63cE1.js +9 -0
- package/dist/circle-fold-DGHgTbNx.cjs +1 -0
- package/dist/circle-line-DDD6hHbp.cjs +1 -0
- package/dist/circle-line-vsuTmqx8.js +9 -0
- package/dist/circle-rotate-B7JrnjYG.cjs +1 -0
- package/dist/circle-rotate-DDC3CKzB.js +9 -0
- package/dist/circle-spin-CIMhAYj5.cjs +1 -0
- package/dist/circle-spin-Djuwx9eN.js +9 -0
- package/dist/circle-turn-D1Z-dXF8.cjs +1 -0
- package/dist/circle-turn-DtYjq4Ky.js +9 -0
- package/dist/classDiagram-OUVF2IWQ-CkQt8O2B.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-CkQt8O2B.js +30 -0
- package/dist/close-CDF9aHTU.js +10 -0
- package/dist/close-Ck_jxN7T.cjs +1 -0
- package/dist/close-circle-B3lBlRHE.cjs +1 -0
- package/dist/close-circle-DZZJhaf-.js +10 -0
- package/dist/close-circle-fill-Ds9W-XNo.cjs +1 -0
- package/dist/close-circle-fill-OiY9CVOv.js +10 -0
- package/dist/colorpicker-C8vbgSta.js +250 -0
- package/dist/colorpicker.js +1 -1
- package/dist/components/icon/index.d.ts +7 -0
- package/dist/components/loading/index.d.ts +6 -29
- package/dist/components/loading/types.d.ts +11 -0
- package/dist/components/loading/variants/arc/index.d.ts +6 -0
- package/dist/components/loading/variants/circle/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-fold/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-line/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-rotate/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-spin/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-turn/index.d.ts +6 -0
- package/dist/components/loading/variants/cube/index.d.ts +6 -0
- package/dist/components/loading/variants/cube-dim/index.d.ts +6 -0
- package/dist/components/loading/variants/cube-fold/index.d.ts +6 -0
- package/dist/components/loading/variants/cube-grid/index.d.ts +6 -0
- package/dist/components/loading/variants/dot/index.d.ts +6 -0
- package/dist/components/loading/variants/dot-bar/index.d.ts +6 -0
- package/dist/components/loading/variants/dot-circle/index.d.ts +6 -0
- package/dist/components/loading/variants/dot-line/index.d.ts +6 -0
- package/dist/components/loading/variants/dot-pulse/index.d.ts +6 -0
- package/dist/components/loading/variants/double-bounce/index.d.ts +6 -0
- package/dist/components/loading/variants/drop/index.d.ts +6 -0
- package/dist/components/loading/variants/line/index.d.ts +6 -0
- package/dist/components/loading/variants/line-scale/index.d.ts +6 -0
- package/dist/components/loading/variants/pacman/index.d.ts +6 -0
- package/dist/components/loading/variants/pulse/index.d.ts +6 -0
- package/dist/components/loading/variants/rotate/index.d.ts +6 -0
- package/dist/components/loading/variants/scale-out/index.d.ts +6 -0
- package/dist/components/loading/variants/solar/index.d.ts +6 -0
- package/dist/components/loading/variants/square/index.d.ts +6 -0
- package/dist/components/loading/variants/stretch/index.d.ts +6 -0
- package/dist/components/loading/variants/text/index.d.ts +6 -0
- package/dist/components/loading/variants/triple-bounce/index.d.ts +6 -0
- package/dist/components/math/index.d.ts +37 -1
- package/dist/components/player/index.d.ts +0 -1
- package/dist/components/popover/index.d.ts +5 -5
- package/dist/components/select/index.d.ts +23 -0
- package/dist/{content-YOKzMoc7.js → content-WyCTQEb9.js} +7 -7
- package/dist/content.js +1 -1
- package/dist/copy-CMAYGCsm.cjs +1 -0
- package/dist/{cose-bilkent-JH36ORCC-DTwvJlGw.js → cose-bilkent-JH36ORCC-DCMxiO2H.js} +2 -2
- package/dist/cube-BHbuhZjD.cjs +1 -0
- package/dist/cube-BJr0a40o.js +9 -0
- package/dist/cube-dim-FDQVX9Sb.js +9 -0
- package/dist/cube-dim-JK8OwqXU.cjs +1 -0
- package/dist/cube-fold-68Pk6igJ.js +9 -0
- package/dist/cube-fold-DMmWEicy.cjs +1 -0
- package/dist/cube-grid-C5ONBtr1.cjs +1 -0
- package/dist/cube-grid-DTgwN5o-.js +9 -0
- package/dist/cynefin-VYW2F7L2-Yeua0tAa.cjs +1 -0
- package/dist/{cynefinDiagram-TSTJHNR4-Bjt4QTVh.js → cynefinDiagram-TSTJHNR4-B6dEjVBJ.js} +4 -4
- package/dist/{cynefinDiagram-TSTJHNR4-ISDORSxO.cjs → cynefinDiagram-TSTJHNR4-CAx-94I7.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-Dfku86Az.js → dagre-VKFMJZFB-CkNsP9vI.js} +10 -10
- package/dist/{diagram-FQU43EPY-BvQ5jmVn.js → diagram-FQU43EPY-Cefzg0En.js} +3 -3
- package/dist/{diagram-FQU43EPY-BAiRt5eL.cjs → diagram-FQU43EPY-Cn7-Jxoj.cjs} +2 -2
- package/dist/{diagram-G47NLZAW-DT2BBA0T.js → diagram-G47NLZAW-BsDJqCJu.js} +6 -6
- package/dist/{diagram-G47NLZAW-DGnmEa8u.cjs → diagram-G47NLZAW-Clm1JIiF.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-DxgkStA3.cjs → diagram-NH7WQ7WH-BQWzEBKY.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-W7jg4Vh8.js → diagram-NH7WQ7WH-DEGzjxf4.js} +4 -4
- package/dist/{diagram-OA4YK3LP-DkvFII73.cjs → diagram-OA4YK3LP-B90IV5Q-.cjs} +3 -3
- package/dist/{diagram-OA4YK3LP-jU--aqQl.js → diagram-OA4YK3LP-BZUB0lzT.js} +5 -5
- package/dist/{diagram-WEI45ONY-XvzRFmmY.cjs → diagram-WEI45ONY-B-8IP8vK.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-C_Qhf4ny.js → diagram-WEI45ONY-BURO1A6S.js} +4 -4
- package/dist/{dist-C0Fwsvsq.js → dist-9Ly83Lo6.js} +1 -1
- package/dist/dot-D8taMWFZ.cjs +1 -0
- package/dist/dot-bar-CXBmT1RL.js +9 -0
- package/dist/dot-bar-Ddbyx-0a.cjs +1 -0
- package/dist/dot-circle-DksscvAR.js +9 -0
- package/dist/dot-circle-DxoSLiz7.cjs +1 -0
- package/dist/dot-line-8Z2hpBOL.js +9 -0
- package/dist/dot-line-CKcmWaBb.cjs +1 -0
- package/dist/dot-pulse-BC7xaifX.js +9 -0
- package/dist/dot-pulse-DVwedcib.cjs +1 -0
- package/dist/double-bounce-BVGrEHLy.js +9 -0
- package/dist/double-bounce-Cxp3i6ip.cjs +1 -0
- package/dist/download-DiDwbZL3.cjs +1 -0
- package/dist/drop-CTufsC6T.js +9 -0
- package/dist/drop-DU-RgWR1.js +16 -0
- package/dist/drop-_Iz47Fmh.cjs +7 -0
- package/dist/drop-q8qufm5t.cjs +1 -0
- package/dist/{dropdown-CzGAVWYC.js → dropdown-B2Sk5gQF.js} +22 -21
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-B5ZJxr_W.cjs +1 -0
- package/dist/{ebnfDiagram-CCIWWBDH-Gnr20Oc1.js → ebnfDiagram-CCIWWBDH-B6Gh-zq6.js} +4 -4
- package/dist/{erDiagram-Q63AITRT-D0Hh9b-W.js → erDiagram-Q63AITRT-B1iQoGRH.js} +13 -13
- package/dist/eventmodeling-45OFAUF4-_fgxNekW.cjs +1 -0
- package/dist/eye-BoGpexya.cjs +4 -0
- package/dist/eye-close-DdWDFgn0.cjs +4 -0
- package/dist/eye-close-pVr4NTjX.js +13 -0
- package/dist/eye-j7jzy-2Y.js +13 -0
- package/dist/factory-Ce9hR27Y.js +653 -0
- package/dist/flowDiagram-23GEKE2U-BxyRR3qT.js +19 -0
- package/dist/{form-B8afuJlF.js → form-C0-UiXLj.js} +9 -9
- package/dist/form.js +1 -1
- package/dist/fullscreen-0HIdaZda.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-B40Eabk0.js → ganttDiagram-NO4QXBWP-BE1v5yrp.js} +6 -6
- package/dist/gitGraph-TEB2WS4Q-BlIs9PSc.cjs +1 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-BUJNSssA.js → gitGraphDiagram-IHSO6WYX-BVRc2mkM.js} +3 -3
- package/dist/{gitGraphDiagram-IHSO6WYX-DW06165m.cjs → gitGraphDiagram-IHSO6WYX-DODKoP1i.cjs} +1 -1
- package/dist/github-BjP57_Xw.js +11 -0
- package/dist/github-_spzUZUJ.cjs +2 -0
- package/dist/{glass-BniIptBE.js → glass-TzHfgesD.js} +6 -6
- package/dist/glass.js +1 -1
- package/dist/globe-0D8896Sf.js +15 -0
- package/dist/globe-DOwlStJB.cjs +6 -0
- package/dist/home-C2_ARWjR.cjs +1 -0
- package/dist/home-COHVdQmi.js +10 -0
- package/dist/i18n-B3HBw6rL.js +1 -0
- package/dist/i18n-Cf5TtRb4-BeflTU82.js +175 -0
- package/dist/i18n.js +3 -2
- package/dist/icon-BoaQYEij.js +318 -0
- package/dist/icon.js +1 -1
- package/dist/icons.js +91 -3
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +235 -2
- package/dist/iife/content.iife.js +1 -1
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -1
- package/dist/iife/icon.iife.js +238 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +238 -1
- package/dist/iife/link.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +332 -260
- package/dist/iife/mermaid.iife.js +489 -252
- package/dist/iife/message.iife.js +238 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +243 -10
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +235 -2
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/iife/theme-switch.iife.js +1 -1
- package/dist/{image-CqoQfJoV.js → image-CNpdv9k_.js} +8 -8
- package/dist/image.js +1 -1
- package/dist/index.cjs +26 -263
- package/dist/index.d.ts +9 -0
- package/dist/index.iife.js +617 -781
- package/dist/index.js +88 -87
- package/dist/info-DKCQHKI2-Chhdpnw0.cjs +1 -0
- package/dist/info-circle-Ciy6yKz-.js +14 -0
- package/dist/info-circle-fill-ChhhmoCU.cjs +1 -0
- package/dist/info-circle-fill-D5WjbRhd.js +10 -0
- package/dist/info-circle-xp0NNK4i.cjs +5 -0
- package/dist/infoDiagram-FWYZ7A6U-D_0rNuCQ.cjs +2 -0
- package/dist/{infoDiagram-FWYZ7A6U-Dc0m9qAx.js → infoDiagram-FWYZ7A6U-Z_GyAL7u.js} +3 -3
- package/dist/input-_iNjylVC.js +195 -0
- package/dist/input.js +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-DuFtHOmf.js → ishikawaDiagram-FXEZZL3T-l087wv0C.js} +4 -4
- package/dist/issue-DF89eLmN.js +11 -0
- package/dist/issue-jx2d2kOG.cjs +2 -0
- package/dist/{journeyDiagram-5HDEW3XC-Bshelnhq.js → journeyDiagram-5HDEW3XC-DmNilMKR.js} +4 -4
- package/dist/{kanban-definition-HUTT4EX6-Dogv2paU.js → kanban-definition-HUTT4EX6-CmUdDowM.js} +9 -9
- package/dist/latinmodernmath-BNPh95x3.cjs +1 -0
- package/dist/latinmodernmath-BnpcbCAh.js +4 -0
- package/dist/line-Bhz15vpy.js +9 -0
- package/dist/{line-BIPmUVxO.js → line-CteEpfCu.js} +1 -1
- package/dist/line-qgqu6ngc.cjs +1 -0
- package/dist/line-scale-CtMO8YfX.js +9 -0
- package/dist/line-scale-Dr9ILV5d.cjs +1 -0
- package/dist/{linear-B2AM4ZBe.js → linear-C8AjwHWi.js} +1 -1
- package/dist/{link-BCrmHvXP.js → link-CmMSKe18.js} +9 -9
- package/dist/link.js +1 -1
- package/dist/loading-DHQDAkef.js +116 -0
- package/dist/loading-_bxcEaz0.js +10 -0
- package/dist/loading-fDM8Celd.cjs +1 -0
- package/dist/loading-scene-DTIgBHY7.cjs +53 -0
- package/dist/loading-scene-nEgp25AV.js +62 -0
- package/dist/loading.js +1 -1
- package/dist/lock-DSKjvWfl.cjs +4 -0
- package/dist/lock-Dw1hWtdP.js +13 -0
- package/dist/math-DobANAnr.js +223 -0
- package/dist/math.js +1 -1
- package/dist/menu-DQpdpBLB.js +11 -0
- package/dist/menu-DdHtbEk4.cjs +2 -0
- package/dist/{mermaid-C1oQyPE3.js → mermaid-CwMPhttK.js} +11 -11
- package/dist/mermaid-parser.core-BgDzuhyE.cjs +3 -0
- package/dist/{mermaid.core-B2d5lQW2.js → mermaid.core-do05yX9X.js} +49 -49
- package/dist/{mermaid.core-a1hgpWfs.cjs → mermaid.core-r_D7CSaj.cjs} +2 -2
- package/dist/mermaid.js +1 -1
- package/dist/message-BFv9-X-4.js +10 -0
- package/dist/{message-CNdmbeLf.js → message-CT-at-dX.js} +24 -21
- package/dist/message-DHzOpb1d.cjs +1 -0
- package/dist/message.js +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-f7s5ZePP.js → mindmap-definition-LN4V7U3C-Mj5HCDww.js} +12 -12
- package/dist/modal-COzuPRoz.cjs +2 -0
- package/dist/{modal-gRagDkTb.js → modal-DkFW7_It.js} +12 -12
- package/dist/modal.js +1 -1
- package/dist/more-l0-w-c99.js +11 -0
- package/dist/more-tqkE9a7G.cjs +2 -0
- package/dist/packet-7NZHBO7P-BIgRfmDy.cjs +1 -0
- package/dist/pacman-C7_BcAl5.cjs +1 -0
- package/dist/pacman-DSIM9KGC.js +9 -0
- package/dist/pegDiagram-2B236MQR-CTcfU4SV.cjs +1 -0
- package/dist/{pegDiagram-2B236MQR-B-Xeh55J.js → pegDiagram-2B236MQR-Crdw8nmA.js} +4 -4
- package/dist/pie-RZYD4A2V-BJEu4CoQ.cjs +1 -0
- package/dist/{pieDiagram-ENE6RG2P-CVSE95zc.js → pieDiagram-ENE6RG2P-9GNsaY-6.js} +6 -6
- package/dist/{pieDiagram-ENE6RG2P-BkSiP4iu.cjs → pieDiagram-ENE6RG2P-D1QD_sOE.cjs} +2 -2
- package/dist/{player-BkkmkqR4.js → player-Dhv_QP4a.js} +112 -113
- package/dist/player.js +1 -1
- package/dist/plugins/load-svg.d.ts +16 -3
- package/dist/plus-C91b38f6.js +11 -0
- package/dist/plus-DjDn222b.cjs +2 -0
- package/dist/{popover-BZKSLe3D.js → popover-DR5ua2_I.js} +17 -15
- package/dist/popover.js +1 -1
- package/dist/power-off-CM1fKRrr.js +10 -0
- package/dist/power-off-C_Akq2D-.cjs +1 -0
- package/dist/preview-ByPt3tw_.cjs +1 -0
- package/dist/preview-CAEhg4Xl.js +10 -0
- package/dist/{progress-vk40tuhm.js → progress-BRIBVXqD.js} +13 -12
- package/dist/progress.js +1 -1
- package/dist/pulse-DNmbppj-.js +9 -0
- package/dist/pulse-QISsDmFE.cjs +1 -0
- package/dist/{quadrantDiagram-ABIIQ3AL-TJ8FmqES.js → quadrantDiagram-ABIIQ3AL-rDltxRrQ.js} +3 -3
- package/dist/{radar-Bg0cexzU.js → radar-B9eKnRw8.js} +12 -10
- package/dist/radar-I7S5WNFK-DYV5_m9_.cjs +1 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-6oFUgWYG.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-DY3xJn9p.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-DljDdad3.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-DNRdpVaC.cjs +1 -0
- package/dist/{railroadDiagram-RFXS5EU6-0lS5wYI7.js → railroadDiagram-RFXS5EU6-B6b0YncQ.js} +4 -4
- package/dist/railroadDiagram-RFXS5EU6-DCqD-VXV.cjs +1 -0
- package/dist/refresh-CjGodz5_.cjs +1 -0
- package/dist/{requirementDiagram-TGXJPOKE-viCQLyJd.js → requirementDiagram-TGXJPOKE-BVEkrDX1.js} +12 -12
- package/dist/rolldown-runtime-DkpYurw3.js +25 -0
- package/dist/rotate-BX5qIRKZ.js +9 -0
- package/dist/rotate-VMR047YI.cjs +1 -0
- package/dist/{route-CGwS0cd_.js → route-C9sC9d8P.js} +10 -11
- package/dist/route.js +1 -1
- package/dist/{router-BK6DEkcN.js → router-CID9Dasr.js} +11 -11
- package/dist/router.js +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-CV6_AuMF.js → sankeyDiagram-HTMAVEWB-C_G-oWGd.js} +2 -2
- package/dist/scale-out-DqffQsuL.js +9 -0
- package/dist/scale-out-aZu3503p.cjs +1 -0
- package/dist/{scratch-ClF1awGi.js → scratch-y8Op8fTo.js} +8 -8
- package/dist/scratch.js +1 -1
- package/dist/search-Bci4TKOK.js +11 -0
- package/dist/search-DewMt8lt.cjs +2 -0
- package/dist/{section-BL0V7Kjf.js → section-cgPwzwLR.js} +10 -10
- package/dist/section.js +1 -1
- package/dist/{select-DRKYa3W2.js → select-Bqo_7nRL.js} +52 -46
- package/dist/select.js +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-B9WNesh2.js → sequenceDiagram-DBY2YBRQ-B8lP53eo.js} +5 -5
- package/dist/setting-BlJhorAQ.cjs +1 -0
- package/dist/setting-RhW6oH2c.js +10 -0
- package/dist/{skeleton-D7JIbROq.js → skeleton-wq2ybbYv.js} +9 -9
- package/dist/skeleton.js +1 -1
- package/dist/solar-BPmDmWLU.js +9 -0
- package/dist/solar-DaoF834l.cjs +1 -0
- package/dist/sort-CZTjWeHC.cjs +7 -0
- package/dist/sort-tAqAKb3x.js +16 -0
- package/dist/sprite-DHG11_c7.cjs +138 -0
- package/dist/sprite-ICuni2rO.js +147 -0
- package/dist/square-DKQ0d_O6.js +9 -0
- package/dist/square-DiBkWYAH.cjs +1 -0
- package/dist/{src-DtRLxcYO.js → src-CM-0IT-N.js} +1 -1
- package/dist/ssg.js +1 -1
- package/dist/ssr-stream.js +1 -1
- package/dist/{ssr-DSGwPtEd.js → ssr-vZNJHtYm.js} +5 -5
- package/dist/ssr.js +1 -1
- package/dist/{stateDiagram-2N3HPSRC-DxH4BMSh.js → stateDiagram-2N3HPSRC-DzG4g-Br.js} +15 -15
- package/dist/stateDiagram-v2-6OUMAXLB-tbh4Ib6Z.js +30 -0
- package/dist/stretch-BXJ4labN.js +9 -0
- package/dist/stretch-LP22YEA3.cjs +1 -0
- package/dist/{swimlanes-5IMT3BWC-DcADNGpg.js → swimlanes-5IMT3BWC-CQpI-vXu.js} +10 -10
- package/dist/swimlanesDiagram-G3AALYLV-C_mEClzT.js +31 -0
- package/dist/{tab-DFVtDJb2.js → tab-DMUILL_2.js} +12 -12
- package/dist/tab.js +1 -1
- package/dist/{tabpane-C3qZGN-D.js → tabpane-R8Kyn9jv.js} +11 -11
- package/dist/tabpane.js +1 -1
- package/dist/team-DshvOQrF.cjs +1 -0
- package/dist/team-oJOYGlHy.js +10 -0
- package/dist/temml-DKTWcsY9.js +9934 -0
- package/dist/temml-qMLYhcAb.cjs +96 -0
- package/dist/test/e2e/helpers.d.ts +32 -0
- package/dist/test/unit/select-ssr-upgrade.test.d.ts +1 -0
- package/dist/text-8gI5TFOa.js +17 -0
- package/dist/text-C_XRjuGr.cjs +1 -0
- package/dist/theme-DAG2-N5e.js +52 -0
- package/dist/{theme-switch-BXNH5uPD.js → theme-switch-D3MpVw-R.js} +16 -17
- package/dist/theme-switch.js +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timeline-definition-FHXFAJF6-C80VjPLh.js → timeline-definition-FHXFAJF6-JZu2t9NH.js} +5 -5
- package/dist/treeView-QDETBFTQ-JVYSN7d-.cjs +1 -0
- package/dist/treemap-6X3UGDF4-ChqvozdN.cjs +1 -0
- package/dist/triple-bounce-CMwTsw-f.js +9 -0
- package/dist/triple-bounce-CNjk5imb.cjs +1 -0
- package/dist/typings.d.ts +9 -0
- package/dist/unlock-B6Kz8QUC.cjs +4 -0
- package/dist/unlock-DMG2IKZP.js +13 -0
- package/dist/user-BvjpVTOP.js +10 -0
- package/dist/user-CNTRFuXZ.cjs +1 -0
- package/dist/utils/builder/escape.d.ts +6 -1
- package/dist/utils/dom.d.ts +2 -15
- package/dist/utils/i18n/index.d.ts +2 -69
- package/dist/utils/i18n.js +5 -87
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/style.d.ts +7 -5
- package/dist/utils-DqjNwwjC.js +48 -0
- package/dist/utils-nntJky78.js +646 -0
- package/dist/{vennDiagram-L72KCM5P-BYHB7OW8.js → vennDiagram-L72KCM5P-DM6fQj7p.js} +4 -4
- package/dist/wardley-OPB4EBWU-BI6su3co.cjs +1 -0
- package/dist/{wardleyDiagram-EHGQE667--ubmCaWM.js → wardleyDiagram-EHGQE667-CzH0l2vj.js} +4 -4
- package/dist/{wardleyDiagram-EHGQE667-K6ckkRZS.cjs → wardleyDiagram-EHGQE667-ZMxVQw17.cjs} +2 -2
- package/dist/warning-circle-2Ni7fSPp.js +10 -0
- package/dist/warning-circle-CxDUN_Pg.cjs +1 -0
- package/dist/warning-circle-fill-CNmn_n74.js +10 -0
- package/dist/warning-circle-fill-CRKQ8eDt.cjs +1 -0
- package/dist/without-content-BCQsfG1Q.cjs +1 -0
- package/dist/without-content-C7ATBu1N.js +10 -0
- package/dist/{xychartDiagram-FW5EYKEG-DLqWcTPt.js → xychartDiagram-FW5EYKEG-GL1uK3EN.js} +8 -8
- package/dist/zoom-in-BLTVwnRI.cjs +1 -0
- package/dist/zoom-out-BIXvVAC9.cjs +1 -0
- package/docs/COMPONENTS.md +5 -5
- package/package.json +119 -35
- package/typings.d.ts +9 -0
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +0 -1
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +0 -1
- package/dist/builtin-1lUEp_ro.js +0 -416
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +0 -30
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +0 -30
- package/dist/colorpicker-CKA4xN-g.js +0 -314
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +0 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +0 -1
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +0 -1
- package/dist/factory-ZNhcQ4tf.js +0 -482
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +0 -19
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +0 -1
- package/dist/icon-GZrfSeon.js +0 -256
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +0 -1
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +0 -2
- package/dist/input-ZY2Wumze.js +0 -195
- package/dist/katex-es-BTpuCxxV.cjs +0 -261
- package/dist/katex-es-CKRwcaiU.js +0 -23682
- package/dist/loading-M6gWxLbm.js +0 -206
- package/dist/math-8E-45Y8e.js +0 -52
- package/dist/mermaid-parser.core-DYumW1vq.cjs +0 -6
- package/dist/mocks-CMGoftIc.js +0 -179
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +0 -1
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +0 -1
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +0 -1
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +0 -1
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +0 -1
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +0 -1
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +0 -1
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +0 -1
- package/dist/rolldown-runtime-9ZSF5uba.js +0 -16
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +0 -30
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +0 -31
- package/dist/test/unit/colorpicker.color.utils.test.d.ts +0 -1
- package/dist/test/unit/utils.math.test.d.ts +0 -1
- package/dist/test/unit/utils.tween.test.d.ts +0 -1
- package/dist/theme-kOWZbKCq.js +0 -70
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +0 -1
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +0 -1
- package/dist/utils/color.d.ts +0 -52
- package/dist/utils/image.d.ts +0 -39
- package/dist/utils/math.d.ts +0 -26
- package/dist/utils/tween.d.ts +0 -21
- package/dist/utils-D1iZnChu.js +0 -614
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +0 -1
- package/dist/warning-circle-fill-Cz0qu7AH.js +0 -23
package/dist/icon-GZrfSeon.js
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { a as c, n as h, o as d, r as n, t as u } from "./utils-D1iZnChu.js";
|
|
2
|
-
import { t as v } from "./events-C59wGdni.js";
|
|
3
|
-
import { _ as g, i as f } from "./factory-ZNhcQ4tf.js";
|
|
4
|
-
import { a as p, n as m } from "./ssr-DSGwPtEd.js";
|
|
5
|
-
var w = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:var(--ran-icon-host-display, inline-flex)}:host([spin]){animation-name:var(--ran-icon-host-spin-animation-name, rotate);animation-duration:var(--ran-icon-host-spin-animation-name, 1.4s);animation-timing-function:linear;animation-iteration-count:var(--ran-icon-host-spin-animation-name, infinite)}.ran-icon{display:var(--ran-icon-display, flex);align-items:var(--ran-icon-align-items, center);justify-content:var(--ran-icon-justify-content, center);color:var(--ran-icon-color, inherit);font-size:var(--ran-icon-font-size, 1em);margin:var(--ran-icon-margin, 0)}.ran-icon svg{width:var(--ran-icon-svg-width, 1em);height:var(--ran-icon-svg-height, 1em);fill:var(--ran-icon-svg-fill, currentColor);stroke:var(--ran-icon-svg-stroke, currentColor)}@keyframes rotate{to{transform:var(--ran-icon-keyframes-to-transform, rotate(360deg))}}", y = {
|
|
6
|
-
success: !0,
|
|
7
|
-
_identification: !0,
|
|
8
|
-
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></g></svg>'
|
|
9
|
-
}, _ = {
|
|
10
|
-
success: !0,
|
|
11
|
-
_identification: !0,
|
|
12
|
-
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></g></svg>'
|
|
13
|
-
}, b = {
|
|
14
|
-
success: !0,
|
|
15
|
-
_identification: !0,
|
|
16
|
-
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></g></svg>'
|
|
17
|
-
}, k = {
|
|
18
|
-
success: !0,
|
|
19
|
-
_identification: !0,
|
|
20
|
-
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3M8 21H5a2 2 0 0 1-2-2v-3m18 0v3a2 2 0 0 1-2 2h-3"/></g></svg>'
|
|
21
|
-
}, x = {
|
|
22
|
-
success: !0,
|
|
23
|
-
_identification: !0,
|
|
24
|
-
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>'
|
|
25
|
-
}, A = {
|
|
26
|
-
success: !0,
|
|
27
|
-
_identification: !0,
|
|
28
|
-
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>'
|
|
29
|
-
}, S = {
|
|
30
|
-
success: !0,
|
|
31
|
-
_identification: !0,
|
|
32
|
-
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></g></svg>'
|
|
33
|
-
}, C = {
|
|
34
|
-
copy: y,
|
|
35
|
-
check: _,
|
|
36
|
-
download: b,
|
|
37
|
-
fullscreen: k,
|
|
38
|
-
"zoom-in": x,
|
|
39
|
-
"zoom-out": A,
|
|
40
|
-
refresh: S
|
|
41
|
-
}, z = !1, l = /* @__PURE__ */ new Map(), a = !1, o = (t) => /<svg[\s>]/i.test(t), E = (t) => {
|
|
42
|
-
if (typeof t == "string") return o(t) ? t : void 0;
|
|
43
|
-
if (!t || typeof t != "object") return;
|
|
44
|
-
const e = t, i = e.data;
|
|
45
|
-
if (typeof i == "string" && o(i)) return i;
|
|
46
|
-
const s = e.default;
|
|
47
|
-
if (typeof s == "string" && o(s)) return s;
|
|
48
|
-
if (s && typeof s == "object") {
|
|
49
|
-
const r = s;
|
|
50
|
-
if (typeof r.data == "string" && o(r.data)) return r.data;
|
|
51
|
-
}
|
|
52
|
-
}, D = (t, e) => {
|
|
53
|
-
a = !0;
|
|
54
|
-
const i = E(e);
|
|
55
|
-
i && (l.set(`inline:${t}`, i), typeof window < "u" && window.dispatchEvent(new CustomEvent("ranui-icon-registered", { detail: { name: t } })));
|
|
56
|
-
}, j = (t) => {
|
|
57
|
-
a = !0, Object.entries(t).forEach(([e, i]) => {
|
|
58
|
-
D(e, i);
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
j(C);
|
|
62
|
-
var N = [
|
|
63
|
-
"add-user",
|
|
64
|
-
"arrow-down",
|
|
65
|
-
"book",
|
|
66
|
-
"check",
|
|
67
|
-
"check-circle",
|
|
68
|
-
"check-circle-fill",
|
|
69
|
-
"close",
|
|
70
|
-
"close-circle",
|
|
71
|
-
"close-circle-fill",
|
|
72
|
-
"copy",
|
|
73
|
-
"download",
|
|
74
|
-
"drop",
|
|
75
|
-
"eye",
|
|
76
|
-
"eye-close",
|
|
77
|
-
"fullscreen",
|
|
78
|
-
"github",
|
|
79
|
-
"globe",
|
|
80
|
-
"home",
|
|
81
|
-
"info-circle",
|
|
82
|
-
"info-circle-fill",
|
|
83
|
-
"issue",
|
|
84
|
-
"loading",
|
|
85
|
-
"loading-scene",
|
|
86
|
-
"lock",
|
|
87
|
-
"menu",
|
|
88
|
-
"message",
|
|
89
|
-
"more",
|
|
90
|
-
"plus",
|
|
91
|
-
"power-off",
|
|
92
|
-
"preview",
|
|
93
|
-
"refresh",
|
|
94
|
-
"search",
|
|
95
|
-
"setting",
|
|
96
|
-
"sort",
|
|
97
|
-
"team",
|
|
98
|
-
"unlock",
|
|
99
|
-
"user",
|
|
100
|
-
"warning-circle",
|
|
101
|
-
"warning-circle-fill",
|
|
102
|
-
"without-content",
|
|
103
|
-
"zoom-in",
|
|
104
|
-
"zoom-out"
|
|
105
|
-
], M = class extends m {
|
|
106
|
-
isDev = z;
|
|
107
|
-
_events = new v();
|
|
108
|
-
static get observedAttributes() {
|
|
109
|
-
return [
|
|
110
|
-
"name",
|
|
111
|
-
"size",
|
|
112
|
-
"color",
|
|
113
|
-
"spin",
|
|
114
|
-
"decorative",
|
|
115
|
-
"aria-label",
|
|
116
|
-
"sheet"
|
|
117
|
-
];
|
|
118
|
-
}
|
|
119
|
-
_icon;
|
|
120
|
-
_div;
|
|
121
|
-
_shadowDom;
|
|
122
|
-
_onIconRegistered = (t) => {
|
|
123
|
-
const e = t.detail?.name;
|
|
124
|
-
e && e === this.name && !this._icon && this.setIcon();
|
|
125
|
-
};
|
|
126
|
-
constructor() {
|
|
127
|
-
super(), this._shadowDom = h(this, w);
|
|
128
|
-
const t = u(this._shadowDom, ".ran-icon", () => f().class("ran-icon").part("ran-icon").build());
|
|
129
|
-
this._div = t;
|
|
130
|
-
}
|
|
131
|
-
get name() {
|
|
132
|
-
return n(this, "name");
|
|
133
|
-
}
|
|
134
|
-
set name(t) {
|
|
135
|
-
t && this.setAttribute("name", t);
|
|
136
|
-
}
|
|
137
|
-
get size() {
|
|
138
|
-
return n(this, "size");
|
|
139
|
-
}
|
|
140
|
-
set size(t) {
|
|
141
|
-
t && this.setAttribute("size", t);
|
|
142
|
-
}
|
|
143
|
-
get color() {
|
|
144
|
-
return n(this, "color");
|
|
145
|
-
}
|
|
146
|
-
set color(t) {
|
|
147
|
-
t && this.setAttribute("color", t);
|
|
148
|
-
}
|
|
149
|
-
get spin() {
|
|
150
|
-
return this.hasAttribute("spin");
|
|
151
|
-
}
|
|
152
|
-
set spin(t) {
|
|
153
|
-
t ? this.setAttribute("spin", "") : this.removeAttribute("spin");
|
|
154
|
-
}
|
|
155
|
-
get decorative() {
|
|
156
|
-
const t = this.getAttribute("decorative");
|
|
157
|
-
return t == null ? !this.hasAttribute("aria-label") : t !== "false" && t !== "0";
|
|
158
|
-
}
|
|
159
|
-
set decorative(t) {
|
|
160
|
-
this.setAttribute("decorative", t ? "true" : "false");
|
|
161
|
-
}
|
|
162
|
-
get ariaLabel() {
|
|
163
|
-
return n(this, "aria-label");
|
|
164
|
-
}
|
|
165
|
-
set ariaLabel(t) {
|
|
166
|
-
c(this, "aria-label", t, { removeEmpty: !0 });
|
|
167
|
-
}
|
|
168
|
-
get sheet() {
|
|
169
|
-
return n(this, "sheet");
|
|
170
|
-
}
|
|
171
|
-
set sheet(t) {
|
|
172
|
-
c(this, "sheet", t);
|
|
173
|
-
}
|
|
174
|
-
handlerExternalCss = () => {
|
|
175
|
-
d(this, this._shadowDom, "sheet", null, this.sheet);
|
|
176
|
-
};
|
|
177
|
-
syncA11y = () => {
|
|
178
|
-
if (this._icon) {
|
|
179
|
-
if (this.decorative) {
|
|
180
|
-
this.setAttribute("aria-hidden", "true"), this.removeAttribute("role"), this._icon.setAttribute("aria-hidden", "true"), this._icon.setAttribute("focusable", "false");
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
this.removeAttribute("aria-hidden"), this.setAttribute("role", "img"), this._icon.removeAttribute("aria-hidden"), this._icon.setAttribute("focusable", "false");
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
setIcon = () => {
|
|
187
|
-
if (typeof document > "u") return;
|
|
188
|
-
this._icon && (this._icon.remove(), this._icon = void 0);
|
|
189
|
-
const t = this.name;
|
|
190
|
-
if (t) if (t.startsWith("<svg")) this.renderSvg(t, t);
|
|
191
|
-
else try {
|
|
192
|
-
const e = `inline:${t}`, i = l.get(e);
|
|
193
|
-
if (!i) {
|
|
194
|
-
this.isDev && a && console.warn(`[ranui-icon] icon not registered: ${t}`);
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
i && this.isSvgText(i) ? this.renderSvg(i, t) : this.isDev && console.warn(`[ranui-icon] invalid svg text: ${t}`);
|
|
198
|
-
} catch (e) {
|
|
199
|
-
this.isDev && console.warn(`[ranui-icon] render icon failed: ${t}`, e);
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
isSvgText = (t) => o(t);
|
|
203
|
-
parseSvg = (t) => {
|
|
204
|
-
const e = new window.DOMParser().parseFromString(t, "image/svg+xml").documentElement;
|
|
205
|
-
if (!e || e.tagName.toLowerCase() === "parsererror" || e.tagName.toLowerCase() !== "svg") return;
|
|
206
|
-
const i = new XMLSerializer().serializeToString(e), s = g("template").build();
|
|
207
|
-
s.innerHTML = i.trim();
|
|
208
|
-
const r = s.content.firstElementChild;
|
|
209
|
-
if (!(!r || r.tagName.toLowerCase() !== "svg"))
|
|
210
|
-
return r;
|
|
211
|
-
};
|
|
212
|
-
renderSvg = (t, e) => {
|
|
213
|
-
const i = this.parseSvg(t);
|
|
214
|
-
i ? (this._icon = i, this._icon.setAttribute("part", "icon-svg"), this._icon.setAttribute("data-name", e), this._div.appendChild(this._icon), this.setSize(), this.setColor(), this.setSpin(), this.syncA11y()) : this.isDev && console.warn(`[ranui-icon] parse svg failed: ${e}`);
|
|
215
|
-
};
|
|
216
|
-
setSize = () => {
|
|
217
|
-
if (this._icon) {
|
|
218
|
-
const t = this.size || "1em";
|
|
219
|
-
this._icon.setAttribute("width", t), this._icon.setAttribute("height", t);
|
|
220
|
-
const e = /^\d+(\.\d+)?$/.test(t) ? `${t}px` : t;
|
|
221
|
-
this._icon.style.setProperty("width", e), this._icon.style.setProperty("height", e);
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
setColor = () => {
|
|
225
|
-
if (this._icon) {
|
|
226
|
-
const t = this.color || "currentColor";
|
|
227
|
-
this._icon.style.setProperty("color", t), this._icon.style.setProperty("fill", t), this._icon.style.setProperty("stroke", t);
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
setSpin = () => {
|
|
231
|
-
this.spin ? this._div.classList.add("ran-icon-spin") : this._div.classList.remove("ran-icon-spin");
|
|
232
|
-
};
|
|
233
|
-
connectedCallback() {
|
|
234
|
-
this._events.on(window, "ranui-icon-registered", this._onIconRegistered), this.handlerExternalCss(), this.setIcon();
|
|
235
|
-
}
|
|
236
|
-
disconnectedCallback() {
|
|
237
|
-
this._events.abort();
|
|
238
|
-
}
|
|
239
|
-
attributeChangedCallback(t, e, i) {
|
|
240
|
-
e !== i && (t === "name" && this.setIcon(), t === "size" && this.setSize(), t === "color" && this.setColor(), t === "spin" && this.setSpin(), (t === "decorative" || t === "aria-label") && this.syncA11y(), t === "sheet" && this.handlerExternalCss());
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
p("r-icon", M);
|
|
244
|
-
export {
|
|
245
|
-
S as a,
|
|
246
|
-
k as c,
|
|
247
|
-
y as d,
|
|
248
|
-
j as i,
|
|
249
|
-
b as l,
|
|
250
|
-
N as n,
|
|
251
|
-
A as o,
|
|
252
|
-
D as r,
|
|
253
|
-
x as s,
|
|
254
|
-
M as t,
|
|
255
|
-
_ as u
|
|
256
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("./chunk-KEIR6QF5-C4fcHpY0.cjs");const e=require("./mermaid-parser.core-DYumW1vq.cjs");exports.createInfoServices=e.createInfoServices;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const s=require("./mermaid-parser.core-DYumW1vq.cjs"),a=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),t=require("./src-C9EhKhbk.cjs"),o=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),_=require("./chunk-VAUOI2AC-DfQf5L2_.cjs");var c={parse:a.__name(async e=>{const r=await s.parse("info",e);t.log.debug(r)},"parse")},u={version:"11.16.0"},d={parser:c,db:{getVersion:a.__name(()=>u.version,"getVersion")},renderer:{draw:a.__name((e,r,i)=>{t.log.debug(`rendering info diagram
|
|
2
|
-
`+e);const n=_.selectSvgElement(r);o.configureSvgSize(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw")}};exports.diagram=d;
|
package/dist/input-ZY2Wumze.js
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { a as s, c as r, n as o, o as u, r as l, s as i, t as p } from "./utils-D1iZnChu.js";
|
|
2
|
-
import { t as h } from "./events-C59wGdni.js";
|
|
3
|
-
import { _ as c, c as d, i as a, s as b } from "./factory-ZNhcQ4tf.js";
|
|
4
|
-
import { a as v, n as g } from "./ssr-DSGwPtEd.js";
|
|
5
|
-
import "./icon-GZrfSeon.js";
|
|
6
|
-
var m = `.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{position:var(--ran-input-host-position, relative);display:var(--ran-input-host-display, block);box-sizing:var(--ran-input-host-box-sizing, border-box)}:host([placeholder]) .ran-input-label{transform:var(--ran-input-label-placeholder-transform, translateY( calc(-50% - .43em) ) scale(.8));top:var(--ran-input-label-placeholder-top, 0)}:host .ran-input-label{transform:var(--ran-input-label-transform, translateY(-50%));top:var(--ran-input-label-top, 50%)}.ran-input{box-sizing:var(--ran-input-box-sizing, border-box);position:var(--ran-input-position, relative);display:var(--ran-input-display, flex);width:var(--ran-input-width, 100%);height:var(--ran-input-height, auto);min-width:var(--ran-input-min-width, 0);padding:var(--ran-input-padding, 0px 0px 0px 4px);color:var(--ran-input-color, var(--ran-color-text, #000000d9));font-size:var(--ran-input-font-size, 12px);font-family:var(--ran-input-font-family, var(--ran-skin-font-family, inherit));line-height:var(--ran-input-line-height, 1.5715);background-color:var(--ran-input-background-color, var(--ran-color-bg-elevated, #fff));background-image:var(--ran-input-background-image, none);border:var(--ran-input-border, 1px solid var(--ran-color-border, #eaeaea));border-image-source:var(--ran-input-border-image-source, none);border-image-slice:var(--ran-input-border-image-slice, 8);border-image-width:var(--ran-input-border-image-width, 4px);border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-input-border-radius, var(--ran-radius-sm, 6px));transition:var(--ran-input-transition, none);min-height:var(--ran-input-min-height, 32px)}.ran-input .ran-icon{display:var(--ran-input-icon-display, flex);align-items:var(--ran-input-icon-align-items, center);justify-content:var(--ran-input-icon-justify-content, center)}.ran-input:focus-within{border-color:var(--ran-input-active-border-color, var(--ran-color-primary, #006bff));box-shadow:var(--ran-input-active-box-shadow, 0 0 0 2px var(--ran-blue-400, #cae7ff));border-right-width:var(--ran-input-active-border-right-width, 1px);outline:var(--ran-input-active-outline, 0)}.ran-input:hover{border-color:var(--ran-input-hover-border-color, var(--ran-color-primary, #006bff));border-right-width:var(--ran-input-hover-border-right-width, 1px)}.ran-input>.ran-input-content:hover~.ran-input-label{color:var(--ran-input-label-hover-color, var(--ran-color-primary, #006bff))}.ran-input[value]>.ran-input-label{transform:var(--ran-input-label-value-transform, translateY( calc(-50% - .43em) ) scale(.8));color:var(--ran-input-label-value-color, var(--ran-color-text-disabled, #00000040))}.ran-input[status=error] .ran-input-content,.ran-input[status=warning] .ran-input-content{padding-right:var(--ran-input-content-status-padding-right, 28px)}.ran-input[status=error]:after,.ran-input[status=warning]:after{content:"";position:absolute;top:50%;right:10px;width:16px;height:16px;transform:translateY(-50%);pointer-events:none;mask-position:center;mask-repeat:no-repeat;mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain}.ran-input[status=error]{border-color:var(--ran-input-status-error-border-color, var(--ran-color-danger, #ff4d4f))}.ran-input[status=error]>.ran-input-content~.ran-input-label{color:var(--ran-input-label-status-error-color, var(--ran-color-danger, #ff4d4f))}.ran-input[status=error]:after{background-color:var(--ran-color-danger, #ff4d4f);mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm-.75 3.5h1.5v5h-1.5v-5zM8 11a1 1 0 110 2 1 1 0 010-2z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm-.75 3.5h1.5v5h-1.5v-5zM8 11a1 1 0 110 2 1 1 0 010-2z'/%3E%3C/svg%3E")}.ran-input[status=warning]{border-color:var(--ran-input-status-warning-border-color, var(--ran-color-warning, #faad14))}.ran-input[status=warning]>.ran-input-content~.ran-input-label{color:var(--ran-input-label-status-warning-color, var(--ran-color-warning, #faad14))}.ran-input[status=warning]:after{background-color:var(--ran-color-warning, #faad14);mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5l6.85 11.86a.5.5 0 01-.43.75H1.58a.5.5 0 01-.43-.75L8 1.5zm-.75 4.25v3.5h1.5v-3.5h-1.5zM8 10.75a1 1 0 110 2 1 1 0 010-2z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5l6.85 11.86a.5.5 0 01-.43.75H1.58a.5.5 0 01-.43-.75L8 1.5zm-.75 4.25v3.5h1.5v-3.5h-1.5zM8 10.75a1 1 0 110 2 1 1 0 010-2z'/%3E%3C/svg%3E")}.ran-input[disabled]{color:var(--ran-input-disabled-color, var(--ran-color-text-disabled, #00000040));background-color:var(--ran-input-disabled-background-color, var(--ran-color-bg-muted, #f5f5f5));border-color:var(--ran-input-disabled-border-color, var(--ran-color-border, #eaeaea));box-shadow:var(--ran-input-disabled-box-shadow, none);cursor:var(--ran-input-disabled-cursor, not-allowed);opacity:var(--ran-input-disabled-opacity, 1)}.ran-input[disabled]>.ran-input-content{color:var(--ran-input-content-disabled-color, var(--ran-color-text-disabled, #00000040));background-color:var(--ran-input-content-disabled-background-color, var(--ran-color-bg-muted, #f5f5f5));border-color:var(--ran-input-content-disabled-border-color, var(--ran-color-border, #eaeaea));box-shadow:var(--ran-input-content-disabled-box-shadow, none);cursor:var(--ran-input-content-disabled-cursor, not-allowed);opacity:var(--ran-input-content-disabled-opacity, 1)}.ran-input[disabled]>.ran-input-content~.ran-input-label{color:var(--ran-input-label-disabled-color, var(--ran-color-text-disabled, #00000040));background-color:var(--ran-input-label-disabled-background-color, var(--ran-color-bg-muted, #f5f5f5))}.ran-input[disabled]>.ran-input-label{color:var(--ran-input-label-disabled-color, var(--ran-color-text-disabled, #999));border-color:var(--ran-input-label-disabled-border-color, var(--ran-color-border, #eaeaea));box-shadow:var(--ran-input-label-disabled-box-shadow, none);cursor:var(--ran-input-label-disabled-cursor, not-allowed)}.ran-input-content{writing-mode:var(--ran-input-content-writing-mode, horizontal-tb);text-rendering:var(--ran-input-content-text-rendering, auto);letter-spacing:var(--ran-input-content-letter-spacing, normal);word-spacing:var(--ran-input-content-word-spacing, normal);text-transform:var(--ran-input-content-text-transform, none);text-indent:var(--ran-input-content-text-indent, 0px);text-shadow:var(--ran-input-content-text-shadow, none);text-align:var(--ran-input-content-text-align, start);cursor:var(--ran-input-content-cursor, text);touch-action:var(--ran-input-content-touch-action, manipulation);-webkit-appearance:var(--ran-input-content--webkit-appearance, none);text-overflow:var(--ran-input-content-text-overflow, ellipsis);box-sizing:var(--ran-input-content-box-sizing, border-box);margin:var(--ran-input-content-margin, 0);font-variant:var(--ran-input-content-font-variant, tabular-nums);list-style:var(--ran-input-content-list-style, none);font-feature-settings:var(--ran-input-content-font-feature-settings, "tnum");position:var(--ran-input-content-position, relative);border:var(--ran-input-content-border, none);width:var(--ran-input-content-width, 100%);height:var(--ran-input-content-height, 100%);min-height:var(--ran-input-content-min-height, 30px);min-width:var(--ran-input-content-min-width, 0);color:var(--ran-input-content-color, var(--ran-color-text, #000000d9));font-size:var(--ran-input-content-font-size, 14px);line-height:var(--ran-input-content-line-height, 1.48);background-color:var(--ran-input-content-background-color, var(--ran-color-bg-elevated, #fff));background-image:var(--ran-input-content-background-image, none);transition:var(--ran-input-content-transition, none);outline:var(--ran-input-content-outline, none);border-radius:var(--ran-input-content-border-radius, var(--ran-radius-sm, 6px));padding:var(--ran-input-content-padding, 0 0 0 2px);font-weight:var(--ran-input-content-font-weight, 400)}.ran-input-content:focus,.ran-input-content:hover{border:var(--ran-input-content-hover-border, none);outline:var(--ran-input-content-hover-outline, 0)}.ran-input-content::placeholder{color:var(--ran-input-content-placeholder-color, var(--ran-color-text-disabled, #999))}.ran-input-content:placeholder-shown~.ran-input-label{transform:var(--ran-input-content-placeholder-label-transform, translateY( calc(-50% - .43em) ) scale(.8))}.ran-input-content:focus~.ran-input-label{transform:var(--ran-input-content-focus-label-transform, translateY( calc(-50% - .43em) ) scale(.8));top:var(--ran-input-content-focus-label-top, 0px)}.ran-input-content::-webkit-search-cancel-button{display:none;-webkit-appearance:none}.ran-input-label{box-sizing:var(--ran-input-label-box-sizing, border-box);pointer-events:var(--ran-input-label-pointer-events, none);position:var(--ran-input-label-position, absolute);font-size:var(--ran-input-label-font-size, 14px);left:var(--ran-input-label-left, 8px);transition:var(--ran-input-label-transition, transform .3s, top .3s, font-size .3s);transform-origin:var(--ran-input-label-transform-origin, left);padding:var(--ran-input-label-padding, 0 0);color:var(--ran-input-label-color, var(--ran-color-text-disabled, #999));background:var(--ran-input-label-background, var(--ran-color-bg-elevated, #fff));opacity:var(--ran-input-label-opacity, .9)}.ran-input-message{margin-top:var(--ran-input-message-margin-top, 4px);font-size:var(--ran-input-message-font-size, 12px);line-height:var(--ran-input-message-line-height, 1.5);color:var(--ran-input-message-color, var(--ran-color-text-secondary, #8c8c8c))}.ran-input-message:empty{display:none}:host([status="error"]) .ran-input-message{color:var(--ran-input-message-error-color, var(--ran-color-danger, #ff4d4f))}:host([status="warning"]) .ran-input-message{color:var(--ran-input-message-warning-color, var(--ran-color-warning, #faad14))}`, f = 0, x = class extends g {
|
|
7
|
-
static formAssociated = !0;
|
|
8
|
-
_internals;
|
|
9
|
-
static get observedAttributes() {
|
|
10
|
-
return [
|
|
11
|
-
"label",
|
|
12
|
-
"disabled",
|
|
13
|
-
"name",
|
|
14
|
-
"placeholder",
|
|
15
|
-
"type",
|
|
16
|
-
"icon",
|
|
17
|
-
"value",
|
|
18
|
-
"status",
|
|
19
|
-
"message",
|
|
20
|
-
"min",
|
|
21
|
-
"max",
|
|
22
|
-
"step",
|
|
23
|
-
"required",
|
|
24
|
-
"sheet"
|
|
25
|
-
];
|
|
26
|
-
}
|
|
27
|
-
_events = new h();
|
|
28
|
-
_shadowDom;
|
|
29
|
-
_input;
|
|
30
|
-
_label;
|
|
31
|
-
_inputContent;
|
|
32
|
-
_icon;
|
|
33
|
-
_message;
|
|
34
|
-
constructor() {
|
|
35
|
-
super();
|
|
36
|
-
try {
|
|
37
|
-
this._internals = this.attachInternals();
|
|
38
|
-
} catch {
|
|
39
|
-
this._internals = void 0;
|
|
40
|
-
}
|
|
41
|
-
this._shadowDom = o(this, m);
|
|
42
|
-
const t = p(this._shadowDom, ".ran-input", () => a().class("ran-input").part("input").children(b().class("ran-input-content").part("content")).build());
|
|
43
|
-
this._input = t, this._inputContent = t.querySelector(".ran-input-content"), this._inputContent.id || (this._inputContent.id = `ran-input-${++f}`);
|
|
44
|
-
}
|
|
45
|
-
focus(t) {
|
|
46
|
-
this._inputContent?.focus(t);
|
|
47
|
-
}
|
|
48
|
-
blur() {
|
|
49
|
-
this._inputContent?.blur();
|
|
50
|
-
}
|
|
51
|
-
select() {
|
|
52
|
-
this._inputContent?.select?.();
|
|
53
|
-
}
|
|
54
|
-
get value() {
|
|
55
|
-
return this.getAttribute("value") || "";
|
|
56
|
-
}
|
|
57
|
-
set value(t) {
|
|
58
|
-
!r(this) && t ? (this.setAttribute("value", t), this._input.setAttribute("value", t)) : (this.removeAttribute("value"), this._input.removeAttribute("value")), this._internals?.setFormValue?.(this.getAttribute("value") ?? "");
|
|
59
|
-
}
|
|
60
|
-
get placeholder() {
|
|
61
|
-
return this.getAttribute("placeholder") || "";
|
|
62
|
-
}
|
|
63
|
-
set placeholder(t) {
|
|
64
|
-
t ? this.setAttribute("placeholder", t) : this.removeAttribute("placeholder");
|
|
65
|
-
}
|
|
66
|
-
get required() {
|
|
67
|
-
return this.hasAttribute("required");
|
|
68
|
-
}
|
|
69
|
-
set required(t) {
|
|
70
|
-
!t || t === "false" ? this.removeAttribute("required") : this.setAttribute("required", "");
|
|
71
|
-
}
|
|
72
|
-
get disabled() {
|
|
73
|
-
return r(this);
|
|
74
|
-
}
|
|
75
|
-
set disabled(t) {
|
|
76
|
-
i.includes(t) ? (this.removeAttribute("disabled"), this._input.removeAttribute("disabled"), this._inputContent.removeAttribute("disabled")) : (this.setAttribute("disabled", ""), this._input.setAttribute("disabled", ""), this._inputContent.setAttribute("disabled", ""));
|
|
77
|
-
}
|
|
78
|
-
get label() {
|
|
79
|
-
return this.getAttribute("label") || "";
|
|
80
|
-
}
|
|
81
|
-
set label(t) {
|
|
82
|
-
this.setAttribute("label", t);
|
|
83
|
-
}
|
|
84
|
-
get status() {
|
|
85
|
-
return this.getAttribute("status") || "";
|
|
86
|
-
}
|
|
87
|
-
set status(t) {
|
|
88
|
-
t ? (this.setAttribute("status", t), this._input.setAttribute("status", t)) : (this.removeAttribute("status"), this._input.removeAttribute("status"));
|
|
89
|
-
}
|
|
90
|
-
get message() {
|
|
91
|
-
return this.getAttribute("message") || "";
|
|
92
|
-
}
|
|
93
|
-
set message(t) {
|
|
94
|
-
t ? this.setAttribute("message", t) : this.removeAttribute("message");
|
|
95
|
-
}
|
|
96
|
-
get name() {
|
|
97
|
-
return this.getAttribute("name") || "";
|
|
98
|
-
}
|
|
99
|
-
set name(t) {
|
|
100
|
-
this.setAttribute("name", t);
|
|
101
|
-
}
|
|
102
|
-
get min() {
|
|
103
|
-
return this.getAttribute("min") || "";
|
|
104
|
-
}
|
|
105
|
-
set min(t) {
|
|
106
|
-
this.type === "number" && this.setAttribute("min", t);
|
|
107
|
-
}
|
|
108
|
-
get max() {
|
|
109
|
-
return this.getAttribute("max") || "";
|
|
110
|
-
}
|
|
111
|
-
set max(t) {
|
|
112
|
-
this.type === "number" && this.setAttribute("max", t);
|
|
113
|
-
}
|
|
114
|
-
get step() {
|
|
115
|
-
return this.getAttribute("step") || "";
|
|
116
|
-
}
|
|
117
|
-
set step(t) {
|
|
118
|
-
this.type === "number" && this.setAttribute("step", t);
|
|
119
|
-
}
|
|
120
|
-
get icon() {
|
|
121
|
-
return this.getAttribute("icon") || "";
|
|
122
|
-
}
|
|
123
|
-
set icon(t) {
|
|
124
|
-
t ? this.setAttribute("icon", t) : this.removeAttribute("icon");
|
|
125
|
-
}
|
|
126
|
-
get type() {
|
|
127
|
-
return this.getAttribute("type") || "";
|
|
128
|
-
}
|
|
129
|
-
set type(t) {
|
|
130
|
-
t ? this.setAttribute("type", t) : this.removeAttribute("type");
|
|
131
|
-
}
|
|
132
|
-
get sheet() {
|
|
133
|
-
return l(this, "sheet");
|
|
134
|
-
}
|
|
135
|
-
set sheet(t) {
|
|
136
|
-
s(this, "sheet", t);
|
|
137
|
-
}
|
|
138
|
-
handlerExternalCss = () => {
|
|
139
|
-
u(this, this._shadowDom, "sheet", null, this.sheet);
|
|
140
|
-
};
|
|
141
|
-
customInput = (t) => {
|
|
142
|
-
t.stopPropagation(), t.preventDefault();
|
|
143
|
-
const { target: e, data: n = "" } = t;
|
|
144
|
-
this.value = e?.value || n || "", this.dispatchEvent(new CustomEvent("input", { detail: { value: this.value } }));
|
|
145
|
-
};
|
|
146
|
-
customChange = () => {
|
|
147
|
-
this.value = this._inputContent?.value ?? this.value, this.dispatchEvent(new CustomEvent("change", { detail: { value: this.value } }));
|
|
148
|
-
};
|
|
149
|
-
listenPlaceholder = (t, e) => {
|
|
150
|
-
t === "placeholder" && this._inputContent && (e != null ? this._inputContent.setAttribute("placeholder", e) : this._inputContent.removeAttribute("placeholder"));
|
|
151
|
-
};
|
|
152
|
-
listenLabel = (t, e) => {
|
|
153
|
-
t === "label" && this._inputContent && (e != null ? this._label ? this._label.innerHTML = e : (this._label = d().class("ran-input-label").part("label").text(e).build(), this._label.htmlFor = this._inputContent.id, this._input.appendChild(this._label)) : (this._input.removeAttribute("label"), this._label && (this._input.removeChild(this._label), this._label = void 0)));
|
|
154
|
-
};
|
|
155
|
-
listenType = (t, e) => {
|
|
156
|
-
t === "type" && this._inputContent && (e ? this._inputContent.setAttribute("type", e) : (this._inputContent.removeAttribute("type"), this._inputContent.removeAttribute("min"), this._inputContent.removeAttribute("max"), this._inputContent.removeAttribute("step")));
|
|
157
|
-
};
|
|
158
|
-
listenStatus = (t, e) => {
|
|
159
|
-
t === "status" && this._input && (e ? this._input.setAttribute("status", e) : this._input.removeAttribute("status"));
|
|
160
|
-
};
|
|
161
|
-
listenMessage = (t, e) => {
|
|
162
|
-
t === "message" && (e ? (this._message || (this._message = a().class("ran-input-message").part("message").build(), this._shadowDom.appendChild(this._message)), this._message.textContent = e) : this._message && (this._message.remove(), this._message = void 0));
|
|
163
|
-
};
|
|
164
|
-
listenNumericConstraint = (t, e) => {
|
|
165
|
-
(t === "min" || t === "max" || t === "step") && this._inputContent && (this.type === "number" && e != null ? this._inputContent.setAttribute(t, e) : this._inputContent.removeAttribute(t));
|
|
166
|
-
};
|
|
167
|
-
listenRequired = (t, e) => {
|
|
168
|
-
t === "required" && this._inputContent && (e != null ? this._inputContent.setAttribute("required", "") : this._inputContent.removeAttribute("required"));
|
|
169
|
-
};
|
|
170
|
-
listenDisabled = (t, e) => {
|
|
171
|
-
t === "disabled" && this._input && (i.includes(e) ? this._input.removeAttribute("disabled") : (this._input.setAttribute("disabled", ""), this._inputContent.setAttribute("disabled", "")));
|
|
172
|
-
};
|
|
173
|
-
listenIcon = (t, e, n) => {
|
|
174
|
-
t === "icon" && e && e !== n && (this.removeAttribute("label"), this.setAttribute("icon", e), this.dealIcon());
|
|
175
|
-
};
|
|
176
|
-
dealIcon = () => {
|
|
177
|
-
this._icon || (this._icon = c("r-icon").class("ran-icon").build(), this._inputContent.insertAdjacentElement("beforebegin", this._icon)), this.icon && this._icon.setAttribute("name", this.icon);
|
|
178
|
-
};
|
|
179
|
-
listenEvent = (t, e, n) => {
|
|
180
|
-
this.listenPlaceholder(t, n), this.listenLabel(t, n), this.listenStatus(t, n), this.listenMessage(t, n), this.listenNumericConstraint(t, n), this.listenRequired(t, n), this.listenDisabled(t, n), this.listenIcon(t, n, e), t === "value" && e !== n && (this._inputContent.value = n, this._input.setAttribute("value", n));
|
|
181
|
-
};
|
|
182
|
-
connectedCallback() {
|
|
183
|
-
this.handlerExternalCss(), this.value && (this._inputContent.value = this.value, this._input.setAttribute("value", this.value)), this._internals?.setFormValue?.(this.value), this.status && this._input.setAttribute("status", this.status), this.message && this.listenMessage("message", this.message), r(this) && (this._input.setAttribute("disabled", ""), this._inputContent.setAttribute("disabled", "")), this.type && this._inputContent.setAttribute("type", this.type), this.type === "number" && (this.min && this._inputContent.setAttribute("min", this.min), this.max && this._inputContent.setAttribute("max", this.max), this.step && this._inputContent.setAttribute("step", this.step)), this.required && this._inputContent.setAttribute("required", ""), this._events.on(this._inputContent, "input", this.customInput), this._events.on(this._inputContent, "change", this.customChange), document.readyState === "complete" && this.dealIcon();
|
|
184
|
-
}
|
|
185
|
-
disconnectedCallback() {
|
|
186
|
-
this._events.abort();
|
|
187
|
-
}
|
|
188
|
-
attributeChangedCallback(t, e, n) {
|
|
189
|
-
e !== n && (this.listenEvent(t, e, n), t === "sheet" && this.handlerExternalCss());
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
v("r-input", x);
|
|
193
|
-
export {
|
|
194
|
-
x as t
|
|
195
|
-
};
|