@scalar/components 0.10.1 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -76
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/components/ScalarButton/ScalarButton.vue.js +51 -0
- package/dist/components/ScalarButton/ScalarButton.vue2.js +4 -0
- package/dist/components/ScalarButton/variants.js +40 -0
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.js +28 -0
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue2.js +4 -0
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue3.js +5 -0
- package/dist/components/ScalarCodeBlock/utils/prettyPrintString.js +15 -0
- package/dist/components/ScalarCodeBlock/utils/replaceCircularReferences.js +18 -0
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +51 -0
- package/dist/components/ScalarDropdown/ScalarDropdown.vue2.js +4 -0
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.js +10 -0
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +42 -0
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +4 -0
- package/dist/components/ScalarFloating/ScalarFloating.vue.js +68 -0
- package/dist/components/ScalarFloating/ScalarFloating.vue2.js +4 -0
- package/dist/components/ScalarFloating/useResizeWithTarget.js +24 -0
- package/dist/components/ScalarIcon/ScalarIcon.vue.js +39 -0
- package/dist/components/ScalarIcon/ScalarIcon.vue2.js +4 -0
- package/dist/components/ScalarIcon/icons/Info.svg.js +16 -0
- package/dist/components/ScalarIcon/icons/index.js +8 -0
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +46 -0
- package/dist/components/ScalarIconButton/ScalarIconButton.vue2.js +4 -0
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +102 -0
- package/dist/components/ScalarListbox/ScalarListbox.vue2.js +4 -0
- package/dist/components/ScalarLoading/ScalarLoading.vue.js +9 -0
- package/dist/components/ScalarLoading/ScalarLoading.vue2.js +83 -0
- package/dist/components/ScalarLoading/ScalarLoading.vue3.js +4 -0
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.js +25 -0
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue2.js +4 -0
- package/dist/components/ScalarModal/ScalarModal.vue.js +9 -0
- package/dist/components/ScalarModal/ScalarModal.vue2.js +108 -0
- package/dist/components/ScalarModal/ScalarModal.vue3.js +4 -0
- package/dist/components/ScalarPopover/ScalarPopover.vue.js +49 -0
- package/dist/components/ScalarPopover/ScalarPopover.vue2.js +4 -0
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +62 -0
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue2.js +4 -0
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +57 -0
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue2.js +4 -0
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +29 -0
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue2.js +4 -0
- package/dist/components/ScalarTextField/ScalarTextField.vue.js +7 -0
- package/dist/components/ScalarTextField/ScalarTextField.vue2.js +107 -0
- package/dist/components/ScalarTextField/ScalarTextField.vue3.js +4 -0
- package/dist/cva.js +19 -0
- package/dist/helpers/sleep.js +4 -0
- package/dist/index.d.ts +92 -45
- package/dist/index.js +40 -1311
- package/dist/style.css +1 -1
- package/dist/tailwind/tailwind.css.js +4 -0
- package/package.json +16 -16
- package/dist/Add-BHOyatcf.cjs +0 -1
- package/dist/ArrowLeft-D0Lenmyx.cjs +0 -1
- package/dist/ArrowRight-CtFXKmN-.cjs +0 -1
- package/dist/Background-CC9MR0o5.cjs +0 -1
- package/dist/Brackets-BH2hJOrC.cjs +0 -1
- package/dist/Branch-DscqPJxw.cjs +0 -1
- package/dist/CallToAction-CH2urf5-.cjs +0 -1
- package/dist/Checkmark-zGf1EnxZ.cjs +0 -1
- package/dist/ChevronDown-BB1ECzOu.cjs +0 -1
- package/dist/ChevronLeft-B1fJRTS6.cjs +0 -1
- package/dist/ChevronRight-67haRaE0.cjs +0 -1
- package/dist/ChevronUp-DZmVf1ZI.cjs +0 -1
- package/dist/Clipboard-CMP6ZrLh.cjs +0 -1
- package/dist/Close-DqX2BfNh.cjs +0 -1
- package/dist/CodeFolder-1sbKUi4C.cjs +0 -1
- package/dist/Cookie-Dai0Vq-L.cjs +0 -1
- package/dist/DarkMode-YTngOyuf.cjs +0 -1
- package/dist/Delete-C5KJApGv.cjs +0 -1
- package/dist/Discord-bYns0mfM.cjs +0 -1
- package/dist/DocsPage-BUQM1ZP5.cjs +0 -1
- package/dist/Duplicate-BcpwaK9W.cjs +0 -1
- package/dist/Edit-B2Dib3l9.cjs +0 -1
- package/dist/Ellipses-lwFMwsvO.cjs +0 -1
- package/dist/Error-BEEilYrB.cjs +0 -1
- package/dist/ExternalLink-Cdev1TTT.cjs +0 -1
- package/dist/FilterList-Ch3lrlmt.cjs +0 -1
- package/dist/Folder-BDWpN5FK.cjs +0 -1
- package/dist/GitHub-DgVS74mp.cjs +0 -1
- package/dist/Hide-BpM8svWr.cjs +0 -1
- package/dist/History-CIjAbmel.cjs +0 -1
- package/dist/JsonObject-D-pZ81gx.cjs +0 -1
- package/dist/Key-C9vNtSgp.cjs +0 -1
- package/dist/Leave-DNKXl2pb.cjs +0 -1
- package/dist/LightDarkModeToggle-CK1SiK6S.cjs +0 -1
- package/dist/LightMode-CbktVjW4.cjs +0 -1
- package/dist/Link-NVOZGmsH.cjs +0 -1
- package/dist/Lock-CEwhrvWA.cjs +0 -1
- package/dist/Logo-CPK0sTGo.cjs +0 -1
- package/dist/LogoAPI-auvrtupZ.cjs +0 -1
- package/dist/LogoClient-DrkORYwm.cjs +0 -1
- package/dist/LogoMarket-Bpc5LKT8.cjs +0 -1
- package/dist/LogoSwagger-DezmPG0T.cjs +0 -1
- package/dist/Magic-D_nChUbo.cjs +0 -1
- package/dist/Menu-BMIM0ijJ.cjs +0 -1
- package/dist/Page-vHFXthOd.cjs +0 -1
- package/dist/PaperAirplane-CCHkYifV.cjs +0 -1
- package/dist/Payment-D0GqQgZi.cjs +0 -1
- package/dist/Play-D-MVpYlN.cjs +0 -1
- package/dist/Refresh-BW_PXJVB.cjs +0 -1
- package/dist/Response-kwZlQMN4.cjs +0 -1
- package/dist/Search-Bd6LPK9x.cjs +0 -1
- package/dist/Show-CGQdMeuP.cjs +0 -1
- package/dist/SideBarClosed-DvogXH7H.cjs +0 -1
- package/dist/SideBarOpen-C4lWzbws.cjs +0 -1
- package/dist/Sort-ownhPFMM.cjs +0 -1
- package/dist/Terminal-32pUnEJb.cjs +0 -1
- package/dist/ThumbsDown-CaDWC79Q.cjs +0 -1
- package/dist/ThumbsUp-2Uv5cZwr.cjs +0 -1
- package/dist/Trash-Cu7tKxXp.cjs +0 -1
- package/dist/Unlock-CNorWYJe.cjs +0 -1
- package/dist/Upload-jkvbAI71.cjs +0 -1
- package/dist/User-CTJkuv9t.cjs +0 -1
- package/dist/index.cjs +0 -1
- package/dist/prism-autoloader-Dlh8Vzlw.js +0 -370
- package/dist/prism-autoloader-hGN9n4IP.cjs +0 -1
- package/dist/programming-framework-angular-Cb3hOem2.cjs +0 -1
- package/dist/programming-framework-astro-CqzXmk7-.cjs +0 -1
- package/dist/programming-framework-laravel-DPR0ohMY.cjs +0 -1
- package/dist/programming-framework-nextdotjs-CEJkEXh_.cjs +0 -1
- package/dist/programming-framework-react-C8QbUlg2.cjs +0 -1
- package/dist/programming-framework-vuedotjs-CfbQc23o.cjs +0 -1
- package/dist/programming-language-c-D_xNi2oU.cjs +0 -1
- package/dist/programming-language-clojure-C5dOsI4K.cjs +0 -1
- package/dist/programming-language-csharp-BHivZJkg.cjs +0 -1
- package/dist/programming-language-css3-wgDmqbZB.cjs +0 -1
- package/dist/programming-language-go-BjshiBx9.cjs +0 -1
- package/dist/programming-language-html5-CtUUccLl.cjs +0 -1
- package/dist/programming-language-http-Dz4cvjKh.cjs +0 -1
- package/dist/programming-language-java-d4f1Y0fu.cjs +0 -1
- package/dist/programming-language-javascript-BV0cufZy.cjs +0 -1
- package/dist/programming-language-json-D4cFxPs5.cjs +0 -1
- package/dist/programming-language-kotlin-eKkN_tOl.cjs +0 -1
- package/dist/programming-language-node-CFlS5cG5.cjs +0 -1
- package/dist/programming-language-objc-B5s5jkUH.cjs +0 -1
- package/dist/programming-language-ocaml-COhyM4XA.cjs +0 -1
- package/dist/programming-language-php-L-yPjdeD.cjs +0 -1
- package/dist/programming-language-powershell-CETg5mF_.cjs +0 -1
- package/dist/programming-language-python-D81TlBUm.cjs +0 -1
- package/dist/programming-language-r-BA21GfCv.cjs +0 -1
- package/dist/programming-language-ruby-CZdOfp80.cjs +0 -1
- package/dist/programming-language-scala-DXPi3PgB.cjs +0 -1
- package/dist/programming-language-shell-C5XFKH1k.cjs +0 -1
- package/dist/programming-language-swift-ARCBHgkE.cjs +0 -1
- package/dist/programming-language-typescript-DCLuAk73.cjs +0 -1
- package/dist/programming-script-code-DbeLXUtP.cjs +0 -1
- package/dist/programming-tool-git-D92HKo9l.cjs +0 -1
- package/dist/programming-tool-tailwindcss-Cog36cMC.cjs +0 -1
- package/src/tailwind/index.ts +0 -1
- package/src/tailwind/tailwind.theme.ts +0 -82
- /package/dist/{Add-yNxGpRcH.js → components/ScalarIcon/icons/Add.svg.js} +0 -0
- /package/dist/{ArrowLeft-D7tW1xQo.js → components/ScalarIcon/icons/ArrowLeft.svg.js} +0 -0
- /package/dist/{ArrowRight-DmO-sdb2.js → components/ScalarIcon/icons/ArrowRight.svg.js} +0 -0
- /package/dist/{Background-CU9VIbfN.js → components/ScalarIcon/icons/Background.svg.js} +0 -0
- /package/dist/{Brackets-CI207-BL.js → components/ScalarIcon/icons/Brackets.svg.js} +0 -0
- /package/dist/{Branch-CXwj8YuG.js → components/ScalarIcon/icons/Branch.svg.js} +0 -0
- /package/dist/{CallToAction-XLYRSI1h.js → components/ScalarIcon/icons/CallToAction.svg.js} +0 -0
- /package/dist/{Checkmark-DhbrPM0P.js → components/ScalarIcon/icons/Checkmark.svg.js} +0 -0
- /package/dist/{ChevronDown-Co7EAKAv.js → components/ScalarIcon/icons/ChevronDown.svg.js} +0 -0
- /package/dist/{ChevronLeft-DYt0idAu.js → components/ScalarIcon/icons/ChevronLeft.svg.js} +0 -0
- /package/dist/{ChevronRight-ylxToVWl.js → components/ScalarIcon/icons/ChevronRight.svg.js} +0 -0
- /package/dist/{ChevronUp-xAnukIfj.js → components/ScalarIcon/icons/ChevronUp.svg.js} +0 -0
- /package/dist/{Clipboard-CU_KxGEv.js → components/ScalarIcon/icons/Clipboard.svg.js} +0 -0
- /package/dist/{Close-xHiYwS8Q.js → components/ScalarIcon/icons/Close.svg.js} +0 -0
- /package/dist/{CodeFolder-Cv_igzJE.js → components/ScalarIcon/icons/CodeFolder.svg.js} +0 -0
- /package/dist/{Cookie-CEHvXpqB.js → components/ScalarIcon/icons/Cookie.svg.js} +0 -0
- /package/dist/{DarkMode-BMR457PH.js → components/ScalarIcon/icons/DarkMode.svg.js} +0 -0
- /package/dist/{Delete-BCZmxrDD.js → components/ScalarIcon/icons/Delete.svg.js} +0 -0
- /package/dist/{Discord-BHYOFBB2.js → components/ScalarIcon/icons/Discord.svg.js} +0 -0
- /package/dist/{DocsPage-Dwx7ZMU9.js → components/ScalarIcon/icons/DocsPage.svg.js} +0 -0
- /package/dist/{Duplicate-DRWEv4R_.js → components/ScalarIcon/icons/Duplicate.svg.js} +0 -0
- /package/dist/{Edit-Br04RNYb.js → components/ScalarIcon/icons/Edit.svg.js} +0 -0
- /package/dist/{Ellipses-Bo_X36Hx.js → components/ScalarIcon/icons/Ellipses.svg.js} +0 -0
- /package/dist/{Error-C5LiISnw.js → components/ScalarIcon/icons/Error.svg.js} +0 -0
- /package/dist/{ExternalLink-DK8L-EH7.js → components/ScalarIcon/icons/ExternalLink.svg.js} +0 -0
- /package/dist/{FilterList-CS8Il7NE.js → components/ScalarIcon/icons/FilterList.svg.js} +0 -0
- /package/dist/{Folder-CTvnVSEo.js → components/ScalarIcon/icons/Folder.svg.js} +0 -0
- /package/dist/{GitHub-NdE6Zs9k.js → components/ScalarIcon/icons/GitHub.svg.js} +0 -0
- /package/dist/{Hide-BgcCtErz.js → components/ScalarIcon/icons/Hide.svg.js} +0 -0
- /package/dist/{History-D9nmhNIn.js → components/ScalarIcon/icons/History.svg.js} +0 -0
- /package/dist/{JsonObject-hGdHUQ4M.js → components/ScalarIcon/icons/JsonObject.svg.js} +0 -0
- /package/dist/{Key-CWXJqX28.js → components/ScalarIcon/icons/Key.svg.js} +0 -0
- /package/dist/{Leave-K1J3uwoG.js → components/ScalarIcon/icons/Leave.svg.js} +0 -0
- /package/dist/{LightDarkModeToggle-De3vO47x.js → components/ScalarIcon/icons/LightDarkModeToggle.svg.js} +0 -0
- /package/dist/{LightMode-BeoMphBY.js → components/ScalarIcon/icons/LightMode.svg.js} +0 -0
- /package/dist/{Link-Bzuc__Nc.js → components/ScalarIcon/icons/Link.svg.js} +0 -0
- /package/dist/{Lock-xhiH1mKz.js → components/ScalarIcon/icons/Lock.svg.js} +0 -0
- /package/dist/{Logo-DwEDtgj-.js → components/ScalarIcon/icons/Logo.svg.js} +0 -0
- /package/dist/{LogoAPI-CohCfL3L.js → components/ScalarIcon/icons/LogoAPI.svg.js} +0 -0
- /package/dist/{LogoClient-Bq5O2QL2.js → components/ScalarIcon/icons/LogoClient.svg.js} +0 -0
- /package/dist/{LogoMarket-DwlApcab.js → components/ScalarIcon/icons/LogoMarket.svg.js} +0 -0
- /package/dist/{LogoSwagger-CH60H5qW.js → components/ScalarIcon/icons/LogoSwagger.svg.js} +0 -0
- /package/dist/{Magic-Dsi9_bEc.js → components/ScalarIcon/icons/Magic.svg.js} +0 -0
- /package/dist/{Menu-CFK5cOsm.js → components/ScalarIcon/icons/Menu.svg.js} +0 -0
- /package/dist/{Page-DA7CO5gc.js → components/ScalarIcon/icons/Page.svg.js} +0 -0
- /package/dist/{PaperAirplane-BC-4mGEB.js → components/ScalarIcon/icons/PaperAirplane.svg.js} +0 -0
- /package/dist/{Payment-hzcXP1Xb.js → components/ScalarIcon/icons/Payment.svg.js} +0 -0
- /package/dist/{Play-Cd4-o7Ji.js → components/ScalarIcon/icons/Play.svg.js} +0 -0
- /package/dist/{Refresh-BHRzzQ8P.js → components/ScalarIcon/icons/Refresh.svg.js} +0 -0
- /package/dist/{Response-DsTlT4S-.js → components/ScalarIcon/icons/Response.svg.js} +0 -0
- /package/dist/{Search-DqtlswRG.js → components/ScalarIcon/icons/Search.svg.js} +0 -0
- /package/dist/{Show-CbiiMLUa.js → components/ScalarIcon/icons/Show.svg.js} +0 -0
- /package/dist/{SideBarClosed-K53-CtXh.js → components/ScalarIcon/icons/SideBarClosed.svg.js} +0 -0
- /package/dist/{SideBarOpen-C7UgT82P.js → components/ScalarIcon/icons/SideBarOpen.svg.js} +0 -0
- /package/dist/{Sort-CaVMT7jM.js → components/ScalarIcon/icons/Sort.svg.js} +0 -0
- /package/dist/{Terminal-DJ7x2McL.js → components/ScalarIcon/icons/Terminal.svg.js} +0 -0
- /package/dist/{ThumbsDown-BMgnsASL.js → components/ScalarIcon/icons/ThumbsDown.svg.js} +0 -0
- /package/dist/{ThumbsUp-C1j6zY2j.js → components/ScalarIcon/icons/ThumbsUp.svg.js} +0 -0
- /package/dist/{Trash-BpA3zWPD.js → components/ScalarIcon/icons/Trash.svg.js} +0 -0
- /package/dist/{Unlock-HVYHMLxl.js → components/ScalarIcon/icons/Unlock.svg.js} +0 -0
- /package/dist/{Upload-D_pwqBDY.js → components/ScalarIcon/icons/Upload.svg.js} +0 -0
- /package/dist/{User-BLGkPc5I.js → components/ScalarIcon/icons/User.svg.js} +0 -0
- /package/dist/{programming-framework-angular-DD4Vjgbk.js → components/ScalarIcon/icons/programming-framework-angular.svg.js} +0 -0
- /package/dist/{programming-framework-astro-CLfrRt19.js → components/ScalarIcon/icons/programming-framework-astro.svg.js} +0 -0
- /package/dist/{programming-framework-laravel-kAy2wVLy.js → components/ScalarIcon/icons/programming-framework-laravel.svg.js} +0 -0
- /package/dist/{programming-framework-nextdotjs-BKdd_DY_.js → components/ScalarIcon/icons/programming-framework-nextdotjs.svg.js} +0 -0
- /package/dist/{programming-framework-react-PDgmtZuN.js → components/ScalarIcon/icons/programming-framework-react.svg.js} +0 -0
- /package/dist/{programming-framework-vuedotjs-Cim7D5tw.js → components/ScalarIcon/icons/programming-framework-vuedotjs.svg.js} +0 -0
- /package/dist/{programming-language-c-hPGu2Zvg.js → components/ScalarIcon/icons/programming-language-c.svg.js} +0 -0
- /package/dist/{programming-language-clojure-uqYXn7U6.js → components/ScalarIcon/icons/programming-language-clojure.svg.js} +0 -0
- /package/dist/{programming-language-csharp-CGxYkVA6.js → components/ScalarIcon/icons/programming-language-csharp.svg.js} +0 -0
- /package/dist/{programming-language-css3-Dpp4Cr6b.js → components/ScalarIcon/icons/programming-language-css3.svg.js} +0 -0
- /package/dist/{programming-language-go-CuKo8iD9.js → components/ScalarIcon/icons/programming-language-go.svg.js} +0 -0
- /package/dist/{programming-language-html5-DlqJK4EL.js → components/ScalarIcon/icons/programming-language-html5.svg.js} +0 -0
- /package/dist/{programming-language-http-f3NXC-Ae.js → components/ScalarIcon/icons/programming-language-http.svg.js} +0 -0
- /package/dist/{programming-language-java-BBodetdf.js → components/ScalarIcon/icons/programming-language-java.svg.js} +0 -0
- /package/dist/{programming-language-javascript-VxLvi1QG.js → components/ScalarIcon/icons/programming-language-javascript.svg.js} +0 -0
- /package/dist/{programming-language-json-Dq_K-q5f.js → components/ScalarIcon/icons/programming-language-json.svg.js} +0 -0
- /package/dist/{programming-language-kotlin-eTASnmL3.js → components/ScalarIcon/icons/programming-language-kotlin.svg.js} +0 -0
- /package/dist/{programming-language-node-oucaVOgY.js → components/ScalarIcon/icons/programming-language-node.svg.js} +0 -0
- /package/dist/{programming-language-objc-CPgQxmNi.js → components/ScalarIcon/icons/programming-language-objc.svg.js} +0 -0
- /package/dist/{programming-language-ocaml-Q1-Jv5Q5.js → components/ScalarIcon/icons/programming-language-ocaml.svg.js} +0 -0
- /package/dist/{programming-language-php-GY38f8r4.js → components/ScalarIcon/icons/programming-language-php.svg.js} +0 -0
- /package/dist/{programming-language-powershell-xLOxAYP_.js → components/ScalarIcon/icons/programming-language-powershell.svg.js} +0 -0
- /package/dist/{programming-language-python-Ct-_kNjo.js → components/ScalarIcon/icons/programming-language-python.svg.js} +0 -0
- /package/dist/{programming-language-r-Ch3T1qiC.js → components/ScalarIcon/icons/programming-language-r.svg.js} +0 -0
- /package/dist/{programming-language-ruby-DhdM4d7g.js → components/ScalarIcon/icons/programming-language-ruby.svg.js} +0 -0
- /package/dist/{programming-language-scala-BVg0dToJ.js → components/ScalarIcon/icons/programming-language-scala.svg.js} +0 -0
- /package/dist/{programming-language-shell-uj1zoCVW.js → components/ScalarIcon/icons/programming-language-shell.svg.js} +0 -0
- /package/dist/{programming-language-swift-Dn72xPjg.js → components/ScalarIcon/icons/programming-language-swift.svg.js} +0 -0
- /package/dist/{programming-language-typescript-CdF-HuRi.js → components/ScalarIcon/icons/programming-language-typescript.svg.js} +0 -0
- /package/dist/{programming-script-code-CUHv6qR8.js → components/ScalarIcon/icons/programming-script-code.svg.js} +0 -0
- /package/dist/{programming-tool-git-C-BMJCAo.js → components/ScalarIcon/icons/programming-tool-git.svg.js} +0 -0
- /package/dist/{programming-tool-tailwindcss-xjXi0E6g.js → components/ScalarIcon/icons/programming-tool-tailwindcss.svg.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,1313 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "circular-loader"
|
|
24
|
-
};
|
|
25
|
-
function Ct() {
|
|
26
|
-
return F({
|
|
27
|
-
isValid: !1,
|
|
28
|
-
isInvalid: !1,
|
|
29
|
-
isLoading: !1,
|
|
30
|
-
startLoading() {
|
|
31
|
-
this.isLoading = !0;
|
|
32
|
-
},
|
|
33
|
-
stopLoading() {
|
|
34
|
-
this.isLoading = !1;
|
|
35
|
-
},
|
|
36
|
-
validate(r = 800) {
|
|
37
|
-
this.isValid = !0;
|
|
38
|
-
const t = r - 300;
|
|
39
|
-
return new Promise(
|
|
40
|
-
(e) => setTimeout(() => this.clear().then(() => e(!0)), t)
|
|
41
|
-
);
|
|
42
|
-
},
|
|
43
|
-
invalidate(r = 1100) {
|
|
44
|
-
this.isInvalid = !0;
|
|
45
|
-
const t = r - 300;
|
|
46
|
-
return new Promise(
|
|
47
|
-
(e) => setTimeout(() => this.clear().then(() => e(!0)), t)
|
|
48
|
-
);
|
|
49
|
-
},
|
|
50
|
-
clear(r = 300) {
|
|
51
|
-
return this.isValid = !1, this.isInvalid = !1, this.isLoading = !1, new Promise((t) => {
|
|
52
|
-
setTimeout(() => {
|
|
53
|
-
t(!0);
|
|
54
|
-
}, r);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
const Pe = /* @__PURE__ */ _({
|
|
60
|
-
__name: "ScalarLoading",
|
|
61
|
-
props: {
|
|
62
|
-
loadingState: {},
|
|
63
|
-
size: { default: "24px" }
|
|
64
|
-
},
|
|
65
|
-
setup(r) {
|
|
66
|
-
return Z((t) => ({
|
|
67
|
-
d6cae758: t.size
|
|
68
|
-
})), (t, e) => t.loadingState ? (u(), b("div", {
|
|
69
|
-
key: 0,
|
|
70
|
-
class: y(o(w)("loader-wrapper"))
|
|
71
|
-
}, [
|
|
72
|
-
(u(), b("svg", {
|
|
73
|
-
class: y(["svg-loader", {
|
|
74
|
-
"icon-is-valid": t.loadingState.isValid,
|
|
75
|
-
"icon-is-invalid": t.loadingState.isInvalid
|
|
76
|
-
}]),
|
|
77
|
-
viewBox: "0 0 100 100",
|
|
78
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
79
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
80
|
-
}, [
|
|
81
|
-
De,
|
|
82
|
-
t.loadingState.isLoading ? (u(), b("g", Oe, [
|
|
83
|
-
f("circle", {
|
|
84
|
-
class: y(["loader-path", {
|
|
85
|
-
"loader-path-off": t.loadingState.isValid || t.loadingState.isInvalid
|
|
86
|
-
}]),
|
|
87
|
-
cx: "50",
|
|
88
|
-
cy: "50",
|
|
89
|
-
fill: "none",
|
|
90
|
-
r: "20",
|
|
91
|
-
"stroke-width": "2"
|
|
92
|
-
}, null, 2)
|
|
93
|
-
])) : N("", !0)
|
|
94
|
-
], 2))
|
|
95
|
-
], 2)) : N("", !0);
|
|
96
|
-
}
|
|
97
|
-
}), P = (r, t) => {
|
|
98
|
-
const e = r.__vccOpts || r;
|
|
99
|
-
for (const [a, d] of t)
|
|
100
|
-
e[a] = d;
|
|
101
|
-
return e;
|
|
102
|
-
}, Y = /* @__PURE__ */ P(Pe, [["__scopeId", "data-v-47faceda"]]), J = {
|
|
103
|
-
solid: [
|
|
104
|
-
"scalar-button-solid",
|
|
105
|
-
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
106
|
-
],
|
|
107
|
-
outlined: [
|
|
108
|
-
"scalar-button-outlined",
|
|
109
|
-
"active:bg-btn-1 border border-solid border-border bg-transparent text-fore-1 hocus:bg-border"
|
|
110
|
-
],
|
|
111
|
-
ghost: [
|
|
112
|
-
"scalar-button-ghost",
|
|
113
|
-
"bg-transparent text-fore-3 transition-colors active:text-fore-1 hocus:text-fore-1"
|
|
114
|
-
],
|
|
115
|
-
danger: [
|
|
116
|
-
"scalar-button-danger",
|
|
117
|
-
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
118
|
-
]
|
|
119
|
-
}, Be = L({
|
|
120
|
-
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
121
|
-
variants: {
|
|
122
|
-
disabled: {
|
|
123
|
-
true: "bg-background-2 text-color-3 cursor-not-allowed shadow-none"
|
|
124
|
-
},
|
|
125
|
-
fullWidth: { true: "w-full" },
|
|
126
|
-
size: { sm: "px-2 py-1 text-xs", md: "h-10 px-6 text-sm" },
|
|
127
|
-
variant: J
|
|
128
|
-
},
|
|
129
|
-
compoundVariants: [
|
|
130
|
-
{
|
|
131
|
-
disabled: !0,
|
|
132
|
-
variant: "ghost",
|
|
133
|
-
class: "bg-transparent text-ghost"
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
}), He = ["ariaDisabled", "type"], Me = {
|
|
137
|
-
key: 0,
|
|
138
|
-
class: "mr-2 h-4 w-4"
|
|
139
|
-
}, Ve = {
|
|
140
|
-
key: 1,
|
|
141
|
-
class: "ml-2"
|
|
142
|
-
}, It = /* @__PURE__ */ _({
|
|
143
|
-
inheritAttrs: !1,
|
|
144
|
-
__name: "ScalarButton",
|
|
145
|
-
props: {
|
|
146
|
-
disabled: { type: Boolean },
|
|
147
|
-
fullWidth: { type: Boolean, default: !1 },
|
|
148
|
-
loading: {},
|
|
149
|
-
size: { default: "md" },
|
|
150
|
-
variant: { default: "solid" },
|
|
151
|
-
type: { default: "button" }
|
|
152
|
-
},
|
|
153
|
-
setup(r) {
|
|
154
|
-
const t = k(() => {
|
|
155
|
-
const { class: e, ...a } = z();
|
|
156
|
-
return { class: e || "", rest: a };
|
|
157
|
-
});
|
|
158
|
-
return (e, a) => (u(), b("button", C(t.value.rest, {
|
|
159
|
-
ariaDisabled: e.disabled || void 0,
|
|
160
|
-
class: o(w)(
|
|
161
|
-
o(Be)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
162
|
-
{ "pl-9 pr-3": e.loading },
|
|
163
|
-
`${t.value.class}`
|
|
164
|
-
),
|
|
165
|
-
type: e.type
|
|
166
|
-
}), [
|
|
167
|
-
e.$slots.icon ? (u(), b("div", Me, [
|
|
168
|
-
S(e.$slots, "icon")
|
|
169
|
-
])) : N("", !0),
|
|
170
|
-
S(e.$slots, "default"),
|
|
171
|
-
e.loading ? (u(), b("div", Ve, [
|
|
172
|
-
x(o(Y), {
|
|
173
|
-
loadingState: e.loading,
|
|
174
|
-
size: "20px"
|
|
175
|
-
}, null, 8, ["loadingState"])
|
|
176
|
-
])) : N("", !0)
|
|
177
|
-
], 16, He));
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
(function(r) {
|
|
181
|
-
var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", e = {
|
|
182
|
-
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
183
|
-
lookbehind: !0,
|
|
184
|
-
alias: "punctuation",
|
|
185
|
-
// this looks reasonably well in all themes
|
|
186
|
-
inside: null
|
|
187
|
-
// see below
|
|
188
|
-
}, a = {
|
|
189
|
-
bash: e,
|
|
190
|
-
environment: {
|
|
191
|
-
pattern: RegExp("\\$" + t),
|
|
192
|
-
alias: "constant"
|
|
193
|
-
},
|
|
194
|
-
variable: [
|
|
195
|
-
// [0]: Arithmetic Environment
|
|
196
|
-
{
|
|
197
|
-
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
198
|
-
greedy: !0,
|
|
199
|
-
inside: {
|
|
200
|
-
// If there is a $ sign at the beginning highlight $(( and )) as variable
|
|
201
|
-
variable: [
|
|
202
|
-
{
|
|
203
|
-
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
204
|
-
lookbehind: !0
|
|
205
|
-
},
|
|
206
|
-
/^\$\(\(/
|
|
207
|
-
],
|
|
208
|
-
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
209
|
-
// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
|
|
210
|
-
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
211
|
-
// If there is no $ sign at the beginning highlight (( and )) as punctuation
|
|
212
|
-
punctuation: /\(\(?|\)\)?|,|;/
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
// [1]: Command Substitution
|
|
216
|
-
{
|
|
217
|
-
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
218
|
-
greedy: !0,
|
|
219
|
-
inside: {
|
|
220
|
-
variable: /^\$\(|^`|\)$|`$/
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
// [2]: Brace expansion
|
|
224
|
-
{
|
|
225
|
-
pattern: /\$\{[^}]+\}/,
|
|
226
|
-
greedy: !0,
|
|
227
|
-
inside: {
|
|
228
|
-
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
229
|
-
punctuation: /[\[\]]/,
|
|
230
|
-
environment: {
|
|
231
|
-
pattern: RegExp("(\\{)" + t),
|
|
232
|
-
lookbehind: !0,
|
|
233
|
-
alias: "constant"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
/\$(?:\w+|[#?*!@$])/
|
|
238
|
-
],
|
|
239
|
-
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
240
|
-
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
241
|
-
};
|
|
242
|
-
r.languages.bash = {
|
|
243
|
-
shebang: {
|
|
244
|
-
pattern: /^#!\s*\/.*/,
|
|
245
|
-
alias: "important"
|
|
246
|
-
},
|
|
247
|
-
comment: {
|
|
248
|
-
pattern: /(^|[^"{\\$])#.*/,
|
|
249
|
-
lookbehind: !0
|
|
250
|
-
},
|
|
251
|
-
"function-name": [
|
|
252
|
-
// a) function foo {
|
|
253
|
-
// b) foo() {
|
|
254
|
-
// c) function foo() {
|
|
255
|
-
// but not “foo {”
|
|
256
|
-
{
|
|
257
|
-
// a) and c)
|
|
258
|
-
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
259
|
-
lookbehind: !0,
|
|
260
|
-
alias: "function"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
// b)
|
|
264
|
-
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
265
|
-
alias: "function"
|
|
266
|
-
}
|
|
267
|
-
],
|
|
268
|
-
// Highlight variable names as variables in for and select beginnings.
|
|
269
|
-
"for-or-select": {
|
|
270
|
-
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
271
|
-
alias: "variable",
|
|
272
|
-
lookbehind: !0
|
|
273
|
-
},
|
|
274
|
-
// Highlight variable names as variables in the left-hand part
|
|
275
|
-
// of assignments (“=” and “+=”).
|
|
276
|
-
"assign-left": {
|
|
277
|
-
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
278
|
-
inside: {
|
|
279
|
-
environment: {
|
|
280
|
-
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t),
|
|
281
|
-
lookbehind: !0,
|
|
282
|
-
alias: "constant"
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
alias: "variable",
|
|
286
|
-
lookbehind: !0
|
|
287
|
-
},
|
|
288
|
-
// Highlight parameter names as variables
|
|
289
|
-
parameter: {
|
|
290
|
-
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
291
|
-
alias: "variable",
|
|
292
|
-
lookbehind: !0
|
|
293
|
-
},
|
|
294
|
-
string: [
|
|
295
|
-
// Support for Here-documents https://en.wikipedia.org/wiki/Here_document
|
|
296
|
-
{
|
|
297
|
-
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
298
|
-
lookbehind: !0,
|
|
299
|
-
greedy: !0,
|
|
300
|
-
inside: a
|
|
301
|
-
},
|
|
302
|
-
// Here-document with quotes around the tag
|
|
303
|
-
// → No expansion (so no “inside”).
|
|
304
|
-
{
|
|
305
|
-
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
306
|
-
lookbehind: !0,
|
|
307
|
-
greedy: !0,
|
|
308
|
-
inside: {
|
|
309
|
-
bash: e
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
// “Normal” string
|
|
313
|
-
{
|
|
314
|
-
// https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
|
|
315
|
-
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
316
|
-
lookbehind: !0,
|
|
317
|
-
greedy: !0,
|
|
318
|
-
inside: a
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
322
|
-
pattern: /(^|[^$\\])'[^']*'/,
|
|
323
|
-
lookbehind: !0,
|
|
324
|
-
greedy: !0
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
// https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
|
|
328
|
-
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
329
|
-
greedy: !0,
|
|
330
|
-
inside: {
|
|
331
|
-
entity: a.entity
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
],
|
|
335
|
-
environment: {
|
|
336
|
-
pattern: RegExp("\\$?" + t),
|
|
337
|
-
alias: "constant"
|
|
338
|
-
},
|
|
339
|
-
variable: a.variable,
|
|
340
|
-
function: {
|
|
341
|
-
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
342
|
-
lookbehind: !0
|
|
343
|
-
},
|
|
344
|
-
keyword: {
|
|
345
|
-
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
346
|
-
lookbehind: !0
|
|
347
|
-
},
|
|
348
|
-
// https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
|
|
349
|
-
builtin: {
|
|
350
|
-
pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
351
|
-
lookbehind: !0,
|
|
352
|
-
// Alias added to make those easier to distinguish from strings.
|
|
353
|
-
alias: "class-name"
|
|
354
|
-
},
|
|
355
|
-
boolean: {
|
|
356
|
-
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
357
|
-
lookbehind: !0
|
|
358
|
-
},
|
|
359
|
-
"file-descriptor": {
|
|
360
|
-
pattern: /\B&\d\b/,
|
|
361
|
-
alias: "important"
|
|
362
|
-
},
|
|
363
|
-
operator: {
|
|
364
|
-
// Lots of redirections here, but not just that.
|
|
365
|
-
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
366
|
-
inside: {
|
|
367
|
-
"file-descriptor": {
|
|
368
|
-
pattern: /^\d/,
|
|
369
|
-
alias: "important"
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
374
|
-
number: {
|
|
375
|
-
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
376
|
-
lookbehind: !0
|
|
377
|
-
}
|
|
378
|
-
}, e.inside = r.languages.bash;
|
|
379
|
-
for (var d = [
|
|
380
|
-
"comment",
|
|
381
|
-
"function-name",
|
|
382
|
-
"for-or-select",
|
|
383
|
-
"assign-left",
|
|
384
|
-
"parameter",
|
|
385
|
-
"string",
|
|
386
|
-
"environment",
|
|
387
|
-
"function",
|
|
388
|
-
"keyword",
|
|
389
|
-
"builtin",
|
|
390
|
-
"boolean",
|
|
391
|
-
"file-descriptor",
|
|
392
|
-
"operator",
|
|
393
|
-
"punctuation",
|
|
394
|
-
"number"
|
|
395
|
-
], c = a.variable[1].inside, s = 0; s < d.length; s++)
|
|
396
|
-
c[d[s]] = r.languages.bash[d[s]];
|
|
397
|
-
r.languages.sh = r.languages.bash, r.languages.shell = r.languages.bash;
|
|
398
|
-
})(Prism);
|
|
399
|
-
Prism.languages.json = {
|
|
400
|
-
property: {
|
|
401
|
-
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
402
|
-
lookbehind: !0,
|
|
403
|
-
greedy: !0
|
|
404
|
-
},
|
|
405
|
-
string: {
|
|
406
|
-
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
|
|
407
|
-
lookbehind: !0,
|
|
408
|
-
greedy: !0
|
|
409
|
-
},
|
|
410
|
-
comment: {
|
|
411
|
-
pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
412
|
-
greedy: !0
|
|
413
|
-
},
|
|
414
|
-
number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
|
|
415
|
-
punctuation: /[{}[\],]/,
|
|
416
|
-
operator: /:/,
|
|
417
|
-
boolean: /\b(?:false|true)\b/,
|
|
418
|
-
null: {
|
|
419
|
-
pattern: /\bnull\b/,
|
|
420
|
-
alias: "keyword"
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
Prism.languages.webmanifest = Prism.languages.json;
|
|
424
|
-
(function() {
|
|
425
|
-
if (typeof Prism > "u" || typeof document > "u")
|
|
426
|
-
return;
|
|
427
|
-
var r = "line-numbers", t = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
|
|
428
|
-
/**
|
|
429
|
-
* Get node for provided line number
|
|
430
|
-
*
|
|
431
|
-
* @param {Element} element pre element
|
|
432
|
-
* @param {number} number line number
|
|
433
|
-
* @returns {Element|undefined}
|
|
434
|
-
*/
|
|
435
|
-
getLine: function(s, p) {
|
|
436
|
-
if (!(s.tagName !== "PRE" || !s.classList.contains(r))) {
|
|
437
|
-
var i = s.querySelector(".line-numbers-rows");
|
|
438
|
-
if (i) {
|
|
439
|
-
var g = parseInt(s.getAttribute("data-start"), 10) || 1, m = g + (i.children.length - 1);
|
|
440
|
-
p < g && (p = g), p > m && (p = m);
|
|
441
|
-
var n = p - g;
|
|
442
|
-
return i.children[n];
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
/**
|
|
447
|
-
* Resizes the line numbers of the given element.
|
|
448
|
-
*
|
|
449
|
-
* This function will not add line numbers. It will only resize existing ones.
|
|
450
|
-
*
|
|
451
|
-
* @param {HTMLElement} element A `<pre>` element with line numbers.
|
|
452
|
-
* @returns {void}
|
|
453
|
-
*/
|
|
454
|
-
resize: function(s) {
|
|
455
|
-
a([s]);
|
|
456
|
-
},
|
|
457
|
-
/**
|
|
458
|
-
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
459
|
-
* the current viewport.
|
|
460
|
-
*
|
|
461
|
-
* Setting this to `true` will allow the plugin to do certain optimizations for better performance.
|
|
462
|
-
*
|
|
463
|
-
* Set this to `false` if you use any of the following CSS units: `vh`, `vw`, `vmin`, `vmax`.
|
|
464
|
-
*
|
|
465
|
-
* @type {boolean}
|
|
466
|
-
*/
|
|
467
|
-
assumeViewportIndependence: !0
|
|
468
|
-
};
|
|
469
|
-
function a(s) {
|
|
470
|
-
if (s = s.filter(function(i) {
|
|
471
|
-
var g = d(i), m = g["white-space"];
|
|
472
|
-
return m === "pre-wrap" || m === "pre-line";
|
|
473
|
-
}), s.length != 0) {
|
|
474
|
-
var p = s.map(function(i) {
|
|
475
|
-
var g = i.querySelector("code"), m = i.querySelector(".line-numbers-rows");
|
|
476
|
-
if (!(!g || !m)) {
|
|
477
|
-
var n = i.querySelector(".line-numbers-sizer"), h = g.textContent.split(t);
|
|
478
|
-
n || (n = document.createElement("span"), n.className = "line-numbers-sizer", g.appendChild(n)), n.innerHTML = "0", n.style.display = "block";
|
|
479
|
-
var l = n.getBoundingClientRect().height;
|
|
480
|
-
return n.innerHTML = "", {
|
|
481
|
-
element: i,
|
|
482
|
-
lines: h,
|
|
483
|
-
lineHeights: [],
|
|
484
|
-
oneLinerHeight: l,
|
|
485
|
-
sizer: n
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
}).filter(Boolean);
|
|
489
|
-
p.forEach(function(i) {
|
|
490
|
-
var g = i.sizer, m = i.lines, n = i.lineHeights, h = i.oneLinerHeight;
|
|
491
|
-
n[m.length - 1] = void 0, m.forEach(function(l, E) {
|
|
492
|
-
if (l && l.length > 1) {
|
|
493
|
-
var I = g.appendChild(document.createElement("span"));
|
|
494
|
-
I.style.display = "block", I.textContent = l;
|
|
495
|
-
} else
|
|
496
|
-
n[E] = h;
|
|
497
|
-
});
|
|
498
|
-
}), p.forEach(function(i) {
|
|
499
|
-
for (var g = i.sizer, m = i.lineHeights, n = 0, h = 0; h < m.length; h++)
|
|
500
|
-
m[h] === void 0 && (m[h] = g.children[n++].getBoundingClientRect().height);
|
|
501
|
-
}), p.forEach(function(i) {
|
|
502
|
-
var g = i.sizer, m = i.element.querySelector(".line-numbers-rows");
|
|
503
|
-
g.style.display = "none", g.innerHTML = "", i.lineHeights.forEach(function(n, h) {
|
|
504
|
-
m.children[h].style.height = n + "px";
|
|
505
|
-
});
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
function d(s) {
|
|
510
|
-
return s ? window.getComputedStyle ? getComputedStyle(s) : s.currentStyle || null : null;
|
|
511
|
-
}
|
|
512
|
-
var c = void 0;
|
|
513
|
-
window.addEventListener("resize", function() {
|
|
514
|
-
e.assumeViewportIndependence && c === window.innerWidth || (c = window.innerWidth, a(Array.prototype.slice.call(document.querySelectorAll("pre." + r))));
|
|
515
|
-
}), Prism.hooks.add("complete", function(s) {
|
|
516
|
-
if (s.code) {
|
|
517
|
-
var p = (
|
|
518
|
-
/** @type {Element} */
|
|
519
|
-
s.element
|
|
520
|
-
), i = (
|
|
521
|
-
/** @type {HTMLElement} */
|
|
522
|
-
p.parentNode
|
|
523
|
-
);
|
|
524
|
-
if (!(!i || !/pre/i.test(i.nodeName)) && !p.querySelector(".line-numbers-rows") && Prism.util.isActive(p, r)) {
|
|
525
|
-
p.classList.remove(r), i.classList.add(r);
|
|
526
|
-
var g = s.code.match(t), m = g ? g.length + 1 : 1, n, h = new Array(m + 1).join("<span></span>");
|
|
527
|
-
n = document.createElement("span"), n.setAttribute("aria-hidden", "true"), n.className = "line-numbers-rows", n.innerHTML = h, i.hasAttribute("data-start") && (i.style.counterReset = "linenumber " + (parseInt(i.getAttribute("data-start"), 10) - 1)), s.element.appendChild(n), a([i]), Prism.hooks.run("line-numbers", s);
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}), Prism.hooks.add("line-numbers", function(s) {
|
|
531
|
-
s.plugins = s.plugins || {}, s.plugins.lineNumbers = !0;
|
|
532
|
-
});
|
|
533
|
-
})();
|
|
534
|
-
function Ge(r) {
|
|
535
|
-
const t = /* @__PURE__ */ new Set();
|
|
536
|
-
return JSON.stringify(
|
|
537
|
-
r,
|
|
538
|
-
(e, a) => {
|
|
539
|
-
if (typeof a == "object" && a !== null) {
|
|
540
|
-
if (t.has(a))
|
|
541
|
-
return "[Circular]";
|
|
542
|
-
t.add(a);
|
|
543
|
-
}
|
|
544
|
-
return a;
|
|
545
|
-
},
|
|
546
|
-
2
|
|
547
|
-
);
|
|
548
|
-
}
|
|
549
|
-
function O(r) {
|
|
550
|
-
if (typeof r == "string")
|
|
551
|
-
return r;
|
|
552
|
-
if (typeof r == "object")
|
|
553
|
-
try {
|
|
554
|
-
return JSON.stringify(r, null, 2);
|
|
555
|
-
} catch {
|
|
556
|
-
return Ge(r);
|
|
557
|
-
}
|
|
558
|
-
return r;
|
|
559
|
-
}
|
|
560
|
-
const Fe = ["innerHTML"], Lt = /* @__PURE__ */ _({
|
|
561
|
-
__name: "ScalarCodeBlock",
|
|
562
|
-
props: {
|
|
563
|
-
content: {},
|
|
564
|
-
lang: { default: "js" },
|
|
565
|
-
lineNumbers: { type: Boolean, default: !1 },
|
|
566
|
-
hideCredentials: {}
|
|
567
|
-
},
|
|
568
|
-
setup(r) {
|
|
569
|
-
const t = r, e = ce(O(t.content)), a = `components-scalar-code-block${e}`, { plugins: d, highlightElement: c } = R;
|
|
570
|
-
t.hideCredentials && R.hooks.add("wrap", function(n) {
|
|
571
|
-
if (!t.hideCredentials)
|
|
572
|
-
return;
|
|
573
|
-
let h = !1;
|
|
574
|
-
typeof t.hideCredentials == "string" ? n.content.includes(t.hideCredentials) && (h = !0) : Array.isArray(t.hideCredentials) && (h = t.hideCredentials.some(
|
|
575
|
-
(l) => n.content.includes(l)
|
|
576
|
-
)), h && (n.content = n.content.replace(
|
|
577
|
-
/<span class="credentials">.*?<\/span>/g,
|
|
578
|
-
(l) => l.replace(/<span class="credentials">|<\/span>/g, "")
|
|
579
|
-
), n.content = n.content.replace(
|
|
580
|
-
new RegExp(
|
|
581
|
-
typeof t.hideCredentials == "string" ? t.hideCredentials : t.hideCredentials.join("|"),
|
|
582
|
-
"g"
|
|
583
|
-
),
|
|
584
|
-
(l) => `<span class="credentials">${l}</span>`
|
|
585
|
-
));
|
|
586
|
-
});
|
|
587
|
-
const s = A(null), p = A(pe[a] ?? ""), i = k(() => t.lang === "node" ? "js" : t.lang), g = t.lang;
|
|
588
|
-
U(
|
|
589
|
-
[() => t.lang, () => t.content, s],
|
|
590
|
-
() => {
|
|
591
|
-
s.value && t.content && (!p.value || t.lang !== g) && (p.value = "", ee(() => c(s.value)));
|
|
592
|
-
},
|
|
593
|
-
{ immediate: !0 }
|
|
594
|
-
);
|
|
595
|
-
const m = /\n(?!$)/g;
|
|
596
|
-
return te(async () => {
|
|
597
|
-
let n = "";
|
|
598
|
-
t.lineNumbers && R.hooks.add("after-tokenize", (l) => {
|
|
599
|
-
const E = l.code.match(m), I = E ? E.length + 1 : 1;
|
|
600
|
-
n = `<span aria-hidden="true" class="line-numbers-rows">${new Array(I + 1).join("<span></span>")}</span>`;
|
|
601
|
-
});
|
|
602
|
-
const h = R.highlight(
|
|
603
|
-
O(t.content),
|
|
604
|
-
R.languages[i.value],
|
|
605
|
-
i.value
|
|
606
|
-
);
|
|
607
|
-
if (p.value = h + n, e !== 0) {
|
|
608
|
-
const l = ae();
|
|
609
|
-
l.payload.data[a] = h + n;
|
|
610
|
-
}
|
|
611
|
-
}), j(async () => {
|
|
612
|
-
await import("./prism-autoloader-Dlh8Vzlw.js"), d.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
613
|
-
}), (n, h) => (u(), b("pre", {
|
|
614
|
-
class: y([
|
|
615
|
-
`scalar-component scalar-codeblock-pre language-${i.value}`,
|
|
616
|
-
{
|
|
617
|
-
"line-numbers": n.lineNumbers
|
|
618
|
-
}
|
|
619
|
-
])
|
|
620
|
-
}, [
|
|
621
|
-
p.value ? (u(), b("code", {
|
|
622
|
-
key: 0,
|
|
623
|
-
class: y(`scalar-codeblock-code language-${i.value}`),
|
|
624
|
-
innerHTML: o(O)(p.value)
|
|
625
|
-
}, null, 10, Fe)) : (u(), b("code", {
|
|
626
|
-
key: 1,
|
|
627
|
-
ref_key: "el",
|
|
628
|
-
ref: s,
|
|
629
|
-
class: y(`scalar-codeblock-code language-${i.value}`)
|
|
630
|
-
}, T(o(O)(n.content)), 3))
|
|
631
|
-
], 2));
|
|
632
|
-
}
|
|
633
|
-
});
|
|
634
|
-
function Ue(r, t = { enabled: A(!0) }) {
|
|
635
|
-
const e = A(0), a = A(0), d = A();
|
|
636
|
-
return typeof ResizeObserver < "u" && (d.value = new ResizeObserver(([c]) => {
|
|
637
|
-
var s, p;
|
|
638
|
-
c && (e.value = ((s = c.borderBoxSize[0]) == null ? void 0 : s.inlineSize) ?? 0, a.value = ((p = c.borderBoxSize[0]) == null ? void 0 : p.blockSize) ?? 0);
|
|
639
|
-
})), U(
|
|
640
|
-
[() => D(t.enabled), () => D(r)],
|
|
641
|
-
([c, s]) => {
|
|
642
|
-
!s || !d.value || (c ? d.value.observe(s) : d.value.disconnect());
|
|
643
|
-
},
|
|
644
|
-
{ immediate: !0 }
|
|
645
|
-
), {
|
|
646
|
-
width: k(
|
|
647
|
-
() => D(t.enabled) ? `${e.value}px` : void 0
|
|
648
|
-
),
|
|
649
|
-
height: k(
|
|
650
|
-
() => D(t.enabled) ? `${a.value}px` : void 0
|
|
651
|
-
)
|
|
652
|
-
};
|
|
653
|
-
}
|
|
654
|
-
const B = /* @__PURE__ */ _({
|
|
655
|
-
inheritAttrs: !1,
|
|
656
|
-
__name: "ScalarFloating",
|
|
657
|
-
props: {
|
|
658
|
-
placement: {},
|
|
659
|
-
resize: { type: Boolean },
|
|
660
|
-
middleware: {}
|
|
661
|
-
},
|
|
662
|
-
setup(r) {
|
|
663
|
-
const t = r, e = A(null), a = A(null), d = k(
|
|
664
|
-
() => {
|
|
665
|
-
var m, n;
|
|
666
|
-
return (((n = (m = a.value) == null ? void 0 : m.children) == null ? void 0 : n[0]) || a.value) ?? void 0;
|
|
667
|
-
}
|
|
668
|
-
), c = Ue(d, {
|
|
669
|
-
enabled: k(() => t.resize)
|
|
670
|
-
}), s = k(
|
|
671
|
-
() => M(t.placement || "bottom") === "y" ? c.width.value : void 0
|
|
672
|
-
), p = k(
|
|
673
|
-
() => M(t.placement || "bottom") === "x" ? c.height.value : void 0
|
|
674
|
-
), { floatingStyles: i, middlewareData: g } = Ne(d, e, {
|
|
675
|
-
placement: k(() => t.placement),
|
|
676
|
-
whileElementsMounted: Ae,
|
|
677
|
-
middleware: k(() => [
|
|
678
|
-
Ce(5),
|
|
679
|
-
Ie(),
|
|
680
|
-
Le(),
|
|
681
|
-
...t.middleware ?? []
|
|
682
|
-
])
|
|
683
|
-
});
|
|
684
|
-
return (m, n) => (u(), b(W, null, [
|
|
685
|
-
f("div", {
|
|
686
|
-
ref_key: "wrapperRef",
|
|
687
|
-
ref: a,
|
|
688
|
-
class: y({ contents: !!m.$slots.default })
|
|
689
|
-
}, [
|
|
690
|
-
S(m.$slots, "default")
|
|
691
|
-
], 2),
|
|
692
|
-
f("div", C({
|
|
693
|
-
ref_key: "floatingRef",
|
|
694
|
-
ref: e,
|
|
695
|
-
class: "relative z-context",
|
|
696
|
-
style: o(i)
|
|
697
|
-
}, m.$attrs), [
|
|
698
|
-
S(m.$slots, "floating", {
|
|
699
|
-
data: o(g),
|
|
700
|
-
height: p.value,
|
|
701
|
-
width: s.value
|
|
702
|
-
})
|
|
703
|
-
], 16)
|
|
704
|
-
], 64));
|
|
705
|
-
}
|
|
706
|
-
}), je = /* @__PURE__ */ f("div", { class: "absolute inset-0 -z-1 rounded bg-back-1 shadow-md brightness-lifted" }, null, -1), Tt = /* @__PURE__ */ _({
|
|
707
|
-
inheritAttrs: !1,
|
|
708
|
-
__name: "ScalarDropdown",
|
|
709
|
-
props: {
|
|
710
|
-
placement: {},
|
|
711
|
-
resize: { type: Boolean }
|
|
712
|
-
},
|
|
713
|
-
setup(r) {
|
|
714
|
-
return (t, e) => (u(), $(o(ue), null, {
|
|
715
|
-
default: v(() => [
|
|
716
|
-
x(o(B), {
|
|
717
|
-
placement: t.placement ?? "bottom-start",
|
|
718
|
-
resize: t.resize
|
|
719
|
-
}, {
|
|
720
|
-
floating: v(({ width: a }) => [
|
|
721
|
-
x(o(me), C({
|
|
722
|
-
class: "relative flex w-56 flex-col p-0.75",
|
|
723
|
-
style: { width: a }
|
|
724
|
-
}, t.$attrs), {
|
|
725
|
-
default: v(() => [
|
|
726
|
-
S(t.$slots, "items"),
|
|
727
|
-
je
|
|
728
|
-
]),
|
|
729
|
-
_: 2
|
|
730
|
-
}, 1040, ["style"])
|
|
731
|
-
]),
|
|
732
|
-
default: v(() => [
|
|
733
|
-
x(o(ge), { as: "template" }, {
|
|
734
|
-
default: v(() => [
|
|
735
|
-
S(t.$slots, "default")
|
|
736
|
-
]),
|
|
737
|
-
_: 3
|
|
738
|
-
})
|
|
739
|
-
]),
|
|
740
|
-
_: 3
|
|
741
|
-
}, 8, ["placement", "resize"])
|
|
742
|
-
]),
|
|
743
|
-
_: 3
|
|
744
|
-
}));
|
|
745
|
-
}
|
|
746
|
-
}), We = {}, Xe = { class: "-mx-0.75 my-0.75 h-px bg-border" };
|
|
747
|
-
function qe(r, t) {
|
|
748
|
-
return u(), b("div", Xe);
|
|
749
|
-
}
|
|
750
|
-
const zt = /* @__PURE__ */ P(We, [["render", qe]]), Rt = /* @__PURE__ */ _({
|
|
751
|
-
__name: "ScalarDropdownItem",
|
|
752
|
-
props: {
|
|
753
|
-
disabled: { type: Boolean }
|
|
754
|
-
},
|
|
755
|
-
emits: ["click"],
|
|
756
|
-
setup(r) {
|
|
757
|
-
const t = L({
|
|
758
|
-
base: [
|
|
759
|
-
// Layout
|
|
760
|
-
"min-w-0 items-center gap-3 rounded px-2.5 py-1.5 text-left",
|
|
761
|
-
"first-of-type:mt-0.75 last-of-type:mb-0.75",
|
|
762
|
-
// Text / background style
|
|
763
|
-
"truncate bg-transparent text-xs font-medium text-fore-2",
|
|
764
|
-
// Interaction
|
|
765
|
-
"cursor-pointer hover:bg-back-2 hover:text-fore-1"
|
|
766
|
-
],
|
|
767
|
-
variants: {
|
|
768
|
-
disabled: { true: "pointer-events-none text-fore-3" },
|
|
769
|
-
active: { true: "bg-back-2 text-fore-1" }
|
|
770
|
-
}
|
|
771
|
-
});
|
|
772
|
-
return (e, a) => (u(), $(o(fe), { disabled: e.disabled }, {
|
|
773
|
-
default: v(({ active: d }) => [
|
|
774
|
-
f("button", {
|
|
775
|
-
class: y(["item", o(w)("scalar-dropdown-item", o(t)({ active: d, disabled: e.disabled }))]),
|
|
776
|
-
type: "button",
|
|
777
|
-
onClick: a[0] || (a[0] = (c) => e.$emit("click", c))
|
|
778
|
-
}, [
|
|
779
|
-
S(e.$slots, "default")
|
|
780
|
-
], 2)
|
|
781
|
-
]),
|
|
782
|
-
_: 3
|
|
783
|
-
}, 8, ["disabled"]));
|
|
784
|
-
}
|
|
785
|
-
}), V = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-yNxGpRcH.js"), "./ArrowLeft.svg": () => import("./ArrowLeft-D7tW1xQo.js"), "./ArrowRight.svg": () => import("./ArrowRight-DmO-sdb2.js"), "./Background.svg": () => import("./Background-CU9VIbfN.js"), "./Brackets.svg": () => import("./Brackets-CI207-BL.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG.js"), "./CallToAction.svg": () => import("./CallToAction-XLYRSI1h.js"), "./Checkmark.svg": () => import("./Checkmark-DhbrPM0P.js"), "./ChevronDown.svg": () => import("./ChevronDown-Co7EAKAv.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DYt0idAu.js"), "./ChevronRight.svg": () => import("./ChevronRight-ylxToVWl.js"), "./ChevronUp.svg": () => import("./ChevronUp-xAnukIfj.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv.js"), "./Close.svg": () => import("./Close-xHiYwS8Q.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cv_igzJE.js"), "./Cookie.svg": () => import("./Cookie-CEHvXpqB.js"), "./DarkMode.svg": () => import("./DarkMode-BMR457PH.js"), "./Delete.svg": () => import("./Delete-BCZmxrDD.js"), "./Discord.svg": () => import("./Discord-BHYOFBB2.js"), "./DocsPage.svg": () => import("./DocsPage-Dwx7ZMU9.js"), "./Duplicate.svg": () => import("./Duplicate-DRWEv4R_.js"), "./Edit.svg": () => import("./Edit-Br04RNYb.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx.js"), "./Error.svg": () => import("./Error-C5LiISnw.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7.js"), "./FilterList.svg": () => import("./FilterList-CS8Il7NE.js"), "./Folder.svg": () => import("./Folder-CTvnVSEo.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k.js"), "./Hide.svg": () => import("./Hide-BgcCtErz.js"), "./History.svg": () => import("./History-D9nmhNIn.js"), "./JsonObject.svg": () => import("./JsonObject-hGdHUQ4M.js"), "./Key.svg": () => import("./Key-CWXJqX28.js"), "./Leave.svg": () => import("./Leave-K1J3uwoG.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-De3vO47x.js"), "./LightMode.svg": () => import("./LightMode-BeoMphBY.js"), "./Link.svg": () => import("./Link-Bzuc__Nc.js"), "./Lock.svg": () => import("./Lock-xhiH1mKz.js"), "./Logo.svg": () => import("./Logo-DwEDtgj-.js"), "./LogoAPI.svg": () => import("./LogoAPI-CohCfL3L.js"), "./LogoClient.svg": () => import("./LogoClient-Bq5O2QL2.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW.js"), "./Magic.svg": () => import("./Magic-Dsi9_bEc.js"), "./Menu.svg": () => import("./Menu-CFK5cOsm.js"), "./Page.svg": () => import("./Page-DA7CO5gc.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB.js"), "./Payment.svg": () => import("./Payment-hzcXP1Xb.js"), "./Play.svg": () => import("./Play-Cd4-o7Ji.js"), "./Refresh.svg": () => import("./Refresh-BHRzzQ8P.js"), "./Response.svg": () => import("./Response-DsTlT4S-.js"), "./Search.svg": () => import("./Search-DqtlswRG.js"), "./Show.svg": () => import("./Show-CbiiMLUa.js"), "./SideBarClosed.svg": () => import("./SideBarClosed-K53-CtXh.js"), "./SideBarOpen.svg": () => import("./SideBarOpen-C7UgT82P.js"), "./Sort.svg": () => import("./Sort-CaVMT7jM.js"), "./Terminal.svg": () => import("./Terminal-DJ7x2McL.js"), "./ThumbsDown.svg": () => import("./ThumbsDown-BMgnsASL.js"), "./ThumbsUp.svg": () => import("./ThumbsUp-C1j6zY2j.js"), "./Trash.svg": () => import("./Trash-BpA3zWPD.js"), "./Unlock.svg": () => import("./Unlock-HVYHMLxl.js"), "./Upload.svg": () => import("./Upload-D_pwqBDY.js"), "./User.svg": () => import("./User-BLGkPc5I.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cim7D5tw.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-uqYXn7U6.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-CGxYkVA6.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b.js"), "./programming-language-go.svg": () => import("./programming-language-go-CuKo8iD9.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL.js"), "./programming-language-http.svg": () => import("./programming-language-http-f3NXC-Ae.js"), "./programming-language-java.svg": () => import("./programming-language-java-BBodetdf.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG.js"), "./programming-language-json.svg": () => import("./programming-language-json-Dq_K-q5f.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-eTASnmL3.js"), "./programming-language-node.svg": () => import("./programming-language-node-oucaVOgY.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-CPgQxmNi.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-Q1-Jv5Q5.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-xLOxAYP_.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo.js"), "./programming-language-r.svg": () => import("./programming-language-r-Ch3T1qiC.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-uj1zoCVW.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi.js"), "./programming-script-code.svg": () => import("./programming-script-code-CUHv6qR8.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-C-BMJCAo.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g.js") }), G = (r) => {
|
|
786
|
-
const t = `./${r}.svg`;
|
|
787
|
-
return V[t] ? re(V[t]) : (console.warn(`Could not find icon: ${r}`), null);
|
|
788
|
-
}, Ke = ["src"], H = /* @__PURE__ */ _({
|
|
789
|
-
__name: "ScalarIcon",
|
|
790
|
-
props: {
|
|
791
|
-
icon: {},
|
|
792
|
-
size: {}
|
|
793
|
-
},
|
|
794
|
-
setup(r) {
|
|
795
|
-
const t = r, e = L({
|
|
796
|
-
variants: {
|
|
797
|
-
size: {
|
|
798
|
-
xs: "size-3 stroke-[1.4]",
|
|
799
|
-
sm: "size-3.5 stroke-[1.2]",
|
|
800
|
-
md: "size-4 stroke-[1.1]",
|
|
801
|
-
lg: "size-5",
|
|
802
|
-
xl: "size-6 stroke-[0.96]",
|
|
803
|
-
"2xl": "size-8 stroke-[0.92]",
|
|
804
|
-
"3xl": "size-10 stroke-[0.9]",
|
|
805
|
-
full: "size-full"
|
|
806
|
-
}
|
|
807
|
-
},
|
|
808
|
-
defaultVariants: {
|
|
809
|
-
size: "full"
|
|
810
|
-
}
|
|
811
|
-
}), a = G(t.icon);
|
|
812
|
-
return (d, c) => o(a) ? (u(), $(X(o(G)(d.icon)), {
|
|
813
|
-
key: 0,
|
|
814
|
-
class: y(o(w)("scalar-icon", o(e)({ size: d.size })))
|
|
815
|
-
}, null, 8, ["class"])) : (u(), b("img", {
|
|
816
|
-
key: 1,
|
|
817
|
-
src: d.icon
|
|
818
|
-
}, null, 8, Ke));
|
|
819
|
-
}
|
|
820
|
-
}), Ye = ["ariaDisabled"], Je = { class: "sr-only" }, Ze = /* @__PURE__ */ _({
|
|
821
|
-
__name: "ScalarIconButton",
|
|
822
|
-
props: {
|
|
823
|
-
label: {},
|
|
824
|
-
icon: {},
|
|
825
|
-
disabled: { type: Boolean },
|
|
826
|
-
variant: { default: "ghost" },
|
|
827
|
-
size: { default: "md" }
|
|
828
|
-
},
|
|
829
|
-
setup(r) {
|
|
830
|
-
const t = L({
|
|
831
|
-
base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
|
|
832
|
-
variants: {
|
|
833
|
-
size: {
|
|
834
|
-
xxs: "size-3.5 p-0.5",
|
|
835
|
-
xs: "size-5 p-1",
|
|
836
|
-
sm: "size-6 p-1",
|
|
837
|
-
md: "size-10 p-3",
|
|
838
|
-
full: "h-full w-full"
|
|
839
|
-
},
|
|
840
|
-
disabled: {
|
|
841
|
-
true: "cursor-not-allowed shadow-none"
|
|
842
|
-
},
|
|
843
|
-
variant: J
|
|
844
|
-
}
|
|
845
|
-
}), e = k(() => {
|
|
846
|
-
const { class: a, ...d } = z();
|
|
847
|
-
return { class: a || "", rest: d };
|
|
848
|
-
});
|
|
849
|
-
return (a, d) => (u(), b("button", C(e.value.rest, {
|
|
850
|
-
ariaDisabled: a.disabled || void 0,
|
|
851
|
-
class: o(w)(o(t)({ size: a.size, variant: a.variant, disabled: a.disabled }), e.value.class),
|
|
852
|
-
type: "button"
|
|
853
|
-
}), [
|
|
854
|
-
x(o(H), { icon: a.icon }, null, 8, ["icon"]),
|
|
855
|
-
f("span", Je, T(a.label), 1)
|
|
856
|
-
], 16, Ye));
|
|
857
|
-
}
|
|
858
|
-
}), Qe = { class: "inline-block min-w-0 flex-1 truncate" }, et = /* @__PURE__ */ f("div", { class: "absolute inset-0 -z-1 rounded bg-back-1 shadow-md brightness-lifted" }, null, -1), Dt = /* @__PURE__ */ _({
|
|
859
|
-
inheritAttrs: !1,
|
|
860
|
-
__name: "ScalarListbox",
|
|
861
|
-
props: {
|
|
862
|
-
options: {},
|
|
863
|
-
modelValue: {},
|
|
864
|
-
placement: {},
|
|
865
|
-
resize: { type: Boolean }
|
|
866
|
-
},
|
|
867
|
-
emits: ["update:modelValue"],
|
|
868
|
-
setup(r) {
|
|
869
|
-
const t = L({
|
|
870
|
-
base: [
|
|
871
|
-
// Layout
|
|
872
|
-
"flex min-w-0 items-center gap-2 rounded px-2.5 py-1.5 text-left",
|
|
873
|
-
"first-of-type:mt-0.75 last-of-type:mb-0.75",
|
|
874
|
-
// Text / background style
|
|
875
|
-
"truncate bg-transparent text-xs font-medium text-fore-2",
|
|
876
|
-
// Interaction
|
|
877
|
-
"cursor-pointer hover:bg-back-2 hover:text-fore-1"
|
|
878
|
-
],
|
|
879
|
-
variants: {
|
|
880
|
-
selected: { true: "text-fore-1" },
|
|
881
|
-
active: { true: "bg-back-2 text-fore-1" },
|
|
882
|
-
disabled: { true: "pointer-events-none opacity-50" }
|
|
883
|
-
}
|
|
884
|
-
});
|
|
885
|
-
return (e, a) => (u(), $(o(he), {
|
|
886
|
-
as: "div",
|
|
887
|
-
modelValue: e.modelValue,
|
|
888
|
-
"onUpdate:modelValue": a[0] || (a[0] = (d) => e.$emit("update:modelValue", d))
|
|
889
|
-
}, {
|
|
890
|
-
default: v(() => [
|
|
891
|
-
x(o(B), {
|
|
892
|
-
placement: e.placement ?? "bottom-start",
|
|
893
|
-
resize: e.resize
|
|
894
|
-
}, {
|
|
895
|
-
floating: v(({ width: d }) => [
|
|
896
|
-
x(o(ve), C({
|
|
897
|
-
class: "scalar-component relative flex w-40 flex-col p-0.75",
|
|
898
|
-
style: { width: d }
|
|
899
|
-
}, e.$attrs), {
|
|
900
|
-
default: v(() => [
|
|
901
|
-
(u(!0), b(W, null, se(e.options, (c) => (u(), $(o(be), {
|
|
902
|
-
key: c.id,
|
|
903
|
-
as: "template",
|
|
904
|
-
disabled: c.disabled,
|
|
905
|
-
value: c
|
|
906
|
-
}, {
|
|
907
|
-
default: v(({ active: s, selected: p }) => [
|
|
908
|
-
f("li", {
|
|
909
|
-
class: y(
|
|
910
|
-
o(w)(o(t)({ active: s, selected: p, disabled: c.disabled }))
|
|
911
|
-
)
|
|
912
|
-
}, [
|
|
913
|
-
f("span", Qe, T(c.label), 1),
|
|
914
|
-
p ? (u(), $(o(H), {
|
|
915
|
-
key: 0,
|
|
916
|
-
icon: "Checkmark",
|
|
917
|
-
size: "sm"
|
|
918
|
-
})) : N("", !0)
|
|
919
|
-
], 2)
|
|
920
|
-
]),
|
|
921
|
-
_: 2
|
|
922
|
-
}, 1032, ["disabled", "value"]))), 128)),
|
|
923
|
-
et
|
|
924
|
-
]),
|
|
925
|
-
_: 2
|
|
926
|
-
}, 1040, ["style"])
|
|
927
|
-
]),
|
|
928
|
-
default: v(() => [
|
|
929
|
-
x(o(Se), { as: "template" }, {
|
|
930
|
-
default: v(() => [
|
|
931
|
-
S(e.$slots, "default")
|
|
932
|
-
]),
|
|
933
|
-
_: 3
|
|
934
|
-
})
|
|
935
|
-
]),
|
|
936
|
-
_: 3
|
|
937
|
-
}, 8, ["placement", "resize"])
|
|
938
|
-
]),
|
|
939
|
-
_: 3
|
|
940
|
-
}, 8, ["modelValue"]));
|
|
941
|
-
}
|
|
942
|
-
}), Ot = () => F({
|
|
943
|
-
open: !1,
|
|
944
|
-
show() {
|
|
945
|
-
this.open = !0;
|
|
946
|
-
},
|
|
947
|
-
hide() {
|
|
948
|
-
this.open = !1;
|
|
949
|
-
}
|
|
950
|
-
}), tt = /* @__PURE__ */ _({
|
|
951
|
-
__name: "ScalarModal",
|
|
952
|
-
props: {
|
|
953
|
-
state: {},
|
|
954
|
-
title: {},
|
|
955
|
-
bodyClass: {},
|
|
956
|
-
maxWidth: {},
|
|
957
|
-
size: { default: "md" },
|
|
958
|
-
variant: {}
|
|
959
|
-
},
|
|
960
|
-
setup(r) {
|
|
961
|
-
const t = L({
|
|
962
|
-
base: [
|
|
963
|
-
"scalar-modal",
|
|
964
|
-
"col leading-snug relative mx-auto mb-0 mt-20 w-full rounded-lg bg-back-2 text-left text-fore-1 opacity-0"
|
|
965
|
-
].join(" "),
|
|
966
|
-
variants: {
|
|
967
|
-
size: {
|
|
968
|
-
xs: "max-w-screen-xs",
|
|
969
|
-
sm: "max-w-screen-sm",
|
|
970
|
-
md: "max-w-screen-md",
|
|
971
|
-
lg: "max-w-screen-lg"
|
|
972
|
-
},
|
|
973
|
-
variant: {
|
|
974
|
-
history: "scalar-modal-history bg-back-1",
|
|
975
|
-
search: "scalar-modal-search"
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
});
|
|
979
|
-
return (e, a) => (u(), $(o(ye), {
|
|
980
|
-
open: e.state.open,
|
|
981
|
-
onClose: a[0] || (a[0] = (d) => e.state.hide())
|
|
982
|
-
}, {
|
|
983
|
-
default: v(() => [
|
|
984
|
-
f("div", {
|
|
985
|
-
class: y(
|
|
986
|
-
o(w)(
|
|
987
|
-
"scalar-modal-layout fixed left-0 top-0",
|
|
988
|
-
"z-[1001] h-[100dvh] w-[100dvw]",
|
|
989
|
-
"bg-backdrop p-5 opacity-0"
|
|
990
|
-
)
|
|
991
|
-
)
|
|
992
|
-
}, [
|
|
993
|
-
x(o(_e), {
|
|
994
|
-
class: y(o(t)({ size: e.size, variant: e.variant })),
|
|
995
|
-
style: q({ maxWidth: e.maxWidth })
|
|
996
|
-
}, {
|
|
997
|
-
default: v(() => [
|
|
998
|
-
e.title ? (u(), $(o(ke), {
|
|
999
|
-
key: 0,
|
|
1000
|
-
class: y(["scalar-modal-header font-semiBold m-0 rounded-lg px-6 py-3 text-left text-xs text-fore-1", { "pb-0 pt-6": e.variant === "history" }])
|
|
1001
|
-
}, {
|
|
1002
|
-
default: v(() => [
|
|
1003
|
-
K(T(e.title), 1)
|
|
1004
|
-
]),
|
|
1005
|
-
_: 1
|
|
1006
|
-
}, 8, ["class"])) : N("", !0),
|
|
1007
|
-
x(o(we), {
|
|
1008
|
-
class: y([
|
|
1009
|
-
"scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
|
|
1010
|
-
o(w)(
|
|
1011
|
-
e.bodyClass,
|
|
1012
|
-
e.variant === "history" && "pt-3",
|
|
1013
|
-
e.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
|
|
1014
|
-
)
|
|
1015
|
-
])
|
|
1016
|
-
}, {
|
|
1017
|
-
default: v(() => [
|
|
1018
|
-
S(e.$slots, "default", {}, void 0, !0)
|
|
1019
|
-
]),
|
|
1020
|
-
_: 3
|
|
1021
|
-
}, 8, ["class"])
|
|
1022
|
-
]),
|
|
1023
|
-
_: 3
|
|
1024
|
-
}, 8, ["class", "style"])
|
|
1025
|
-
], 2)
|
|
1026
|
-
]),
|
|
1027
|
-
_: 3
|
|
1028
|
-
}, 8, ["open"]));
|
|
1029
|
-
}
|
|
1030
|
-
}), Pt = /* @__PURE__ */ P(tt, [["__scopeId", "data-v-ff85ced0"]]), at = /* @__PURE__ */ f("div", { class: "absolute inset-0 -z-1 rounded bg-back-1 shadow-md brightness-lifted" }, null, -1), Bt = /* @__PURE__ */ _({
|
|
1031
|
-
inheritAttrs: !1,
|
|
1032
|
-
__name: "ScalarPopover",
|
|
1033
|
-
props: {
|
|
1034
|
-
placement: {},
|
|
1035
|
-
resize: { type: Boolean }
|
|
1036
|
-
},
|
|
1037
|
-
setup(r) {
|
|
1038
|
-
return (t, e) => (u(), $(o(Ee), null, {
|
|
1039
|
-
default: v(() => [
|
|
1040
|
-
x(o(B), oe(ne(t.$props)), {
|
|
1041
|
-
floating: v(({ width: a, height: d }) => [
|
|
1042
|
-
x(o(xe), C({
|
|
1043
|
-
class: "relative flex flex-col p-0.75",
|
|
1044
|
-
style: { width: a, height: d }
|
|
1045
|
-
}, t.$attrs), {
|
|
1046
|
-
default: v(() => [
|
|
1047
|
-
S(t.$slots, "popover"),
|
|
1048
|
-
at
|
|
1049
|
-
]),
|
|
1050
|
-
_: 2
|
|
1051
|
-
}, 1040, ["style"])
|
|
1052
|
-
]),
|
|
1053
|
-
default: v(() => [
|
|
1054
|
-
x(o($e), { as: "template" }, {
|
|
1055
|
-
default: v(() => [
|
|
1056
|
-
S(t.$slots, "default")
|
|
1057
|
-
]),
|
|
1058
|
-
_: 3
|
|
1059
|
-
})
|
|
1060
|
-
]),
|
|
1061
|
-
_: 3
|
|
1062
|
-
}, 16)
|
|
1063
|
-
]),
|
|
1064
|
-
_: 3
|
|
1065
|
-
}));
|
|
1066
|
-
}
|
|
1067
|
-
}), rt = { class: "sr-only" }, st = ["value"], Ht = /* @__PURE__ */ _({
|
|
1068
|
-
inheritAttrs: !1,
|
|
1069
|
-
__name: "ScalarSearchInput",
|
|
1070
|
-
props: {
|
|
1071
|
-
loading: {},
|
|
1072
|
-
modelValue: {}
|
|
1073
|
-
},
|
|
1074
|
-
emits: ["update:modelValue"],
|
|
1075
|
-
setup(r, { emit: t }) {
|
|
1076
|
-
const e = t;
|
|
1077
|
-
function a(c) {
|
|
1078
|
-
e("update:modelValue", c.target.value);
|
|
1079
|
-
}
|
|
1080
|
-
const d = k(() => {
|
|
1081
|
-
const { class: c, ...s } = z();
|
|
1082
|
-
return { className: c || "", rest: s };
|
|
1083
|
-
});
|
|
1084
|
-
return (c, s) => (u(), b("label", C(d.value.rest, {
|
|
1085
|
-
class: o(w)(
|
|
1086
|
-
"flex rounded border bg-back-1 text-sm font-medium focus-within:border-fore-1",
|
|
1087
|
-
d.value.className
|
|
1088
|
-
)
|
|
1089
|
-
}), [
|
|
1090
|
-
f("span", rt, [
|
|
1091
|
-
S(c.$slots, "label", {}, () => [
|
|
1092
|
-
K("Enter search")
|
|
1093
|
-
])
|
|
1094
|
-
]),
|
|
1095
|
-
f("input", {
|
|
1096
|
-
autocapitalize: "off",
|
|
1097
|
-
autocomplete: "off",
|
|
1098
|
-
autocorrect: "off",
|
|
1099
|
-
class: "flex-1 rounded bg-transparent p-3 outline-none",
|
|
1100
|
-
placeholder: "Search...",
|
|
1101
|
-
spellcheck: "false",
|
|
1102
|
-
type: "text",
|
|
1103
|
-
value: c.modelValue,
|
|
1104
|
-
onInput: a
|
|
1105
|
-
}, null, 40, st),
|
|
1106
|
-
c.loading && c.loading.isLoading ? (u(), $(o(Y), {
|
|
1107
|
-
key: 0,
|
|
1108
|
-
class: "mr-3 self-center",
|
|
1109
|
-
loadingState: c.loading,
|
|
1110
|
-
size: "20px"
|
|
1111
|
-
}, null, 8, ["loadingState"])) : c.modelValue ? (u(), $(o(Ze), {
|
|
1112
|
-
key: 1,
|
|
1113
|
-
class: "self-center",
|
|
1114
|
-
icon: "Close",
|
|
1115
|
-
label: "Clear Search",
|
|
1116
|
-
size: "md",
|
|
1117
|
-
onClick: s[0] || (s[0] = (p) => e("update:modelValue", ""))
|
|
1118
|
-
})) : N("", !0)
|
|
1119
|
-
], 16));
|
|
1120
|
-
}
|
|
1121
|
-
}), ot = /* @__PURE__ */ f("div", { class: "flex flex-col items-center gap-2 px-3 py-4" }, [
|
|
1122
|
-
/* @__PURE__ */ f("div", { class: "rotate-90 text-lg font-bold" }, ":("),
|
|
1123
|
-
/* @__PURE__ */ f("div", { class: "text-sm font-medium text-fore-2" }, "No results found")
|
|
1124
|
-
], -1), Mt = /* @__PURE__ */ _({
|
|
1125
|
-
inheritAttrs: !1,
|
|
1126
|
-
__name: "ScalarSearchResultList",
|
|
1127
|
-
props: {
|
|
1128
|
-
noResults: { type: Boolean }
|
|
1129
|
-
},
|
|
1130
|
-
setup(r) {
|
|
1131
|
-
const t = k(() => {
|
|
1132
|
-
const { class: e, ...a } = z();
|
|
1133
|
-
return { className: e || "", rest: a };
|
|
1134
|
-
});
|
|
1135
|
-
return (e, a) => (u(), b("ul", C(t.value.rest, {
|
|
1136
|
-
class: o(w)("flex flex-col", t.value.className)
|
|
1137
|
-
}), [
|
|
1138
|
-
e.noResults ? S(e.$slots, "noResults", { key: 0 }, () => [
|
|
1139
|
-
ot
|
|
1140
|
-
]) : N("", !0),
|
|
1141
|
-
S(e.$slots, "default")
|
|
1142
|
-
], 16));
|
|
1143
|
-
}
|
|
1144
|
-
}), nt = { class: "contents" }, it = { class: "text-fore-3 group-hover:text-fore-1" }, lt = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, dt = { class: "flex items-center gap-1" }, ct = { class: "flex-1 truncate text-sm font-medium" }, pt = {
|
|
1145
|
-
key: 0,
|
|
1146
|
-
class: "text-xs text-fore-2"
|
|
1147
|
-
}, ut = { class: "truncate text-xs text-fore-2" }, Vt = /* @__PURE__ */ _({
|
|
1148
|
-
inheritAttrs: !1,
|
|
1149
|
-
__name: "ScalarSearchResultItem",
|
|
1150
|
-
props: {
|
|
1151
|
-
icon: {},
|
|
1152
|
-
active: { type: Boolean }
|
|
1153
|
-
},
|
|
1154
|
-
setup(r) {
|
|
1155
|
-
const t = k(() => {
|
|
1156
|
-
const { class: e, ...a } = z();
|
|
1157
|
-
return { className: e || "", rest: a };
|
|
1158
|
-
});
|
|
1159
|
-
return (e, a) => (u(), b("li", nt, [
|
|
1160
|
-
f("a", C(t.value.rest, {
|
|
1161
|
-
class: o(w)(
|
|
1162
|
-
"group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",
|
|
1163
|
-
{
|
|
1164
|
-
"bg-back-2": e.active
|
|
1165
|
-
},
|
|
1166
|
-
t.value.className
|
|
1167
|
-
)
|
|
1168
|
-
}), [
|
|
1169
|
-
f("div", it, [
|
|
1170
|
-
S(e.$slots, "icon", {}, () => [
|
|
1171
|
-
e.icon ? (u(), $(o(H), {
|
|
1172
|
-
key: 0,
|
|
1173
|
-
icon: e.icon,
|
|
1174
|
-
size: "sm"
|
|
1175
|
-
}, null, 8, ["icon"])) : N("", !0)
|
|
1176
|
-
])
|
|
1177
|
-
]),
|
|
1178
|
-
f("div", lt, [
|
|
1179
|
-
f("div", dt, [
|
|
1180
|
-
f("div", ct, [
|
|
1181
|
-
S(e.$slots, "default")
|
|
1182
|
-
]),
|
|
1183
|
-
e.$slots.addon ? (u(), b("div", pt, [
|
|
1184
|
-
S(e.$slots, "addon")
|
|
1185
|
-
])) : N("", !0)
|
|
1186
|
-
]),
|
|
1187
|
-
f("div", ut, [
|
|
1188
|
-
S(e.$slots, "description")
|
|
1189
|
-
])
|
|
1190
|
-
])
|
|
1191
|
-
], 16)
|
|
1192
|
-
]));
|
|
1193
|
-
}
|
|
1194
|
-
}), mt = { class: "scalar-input-container relative" }, gt = ["for"], ft = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, ht = /* @__PURE__ */ _({
|
|
1195
|
-
__name: "ScalarTextField",
|
|
1196
|
-
props: {
|
|
1197
|
-
modelValue: {},
|
|
1198
|
-
placeholder: {},
|
|
1199
|
-
label: {},
|
|
1200
|
-
labelShadowColor: { default: "var(--scalar-background-2)" },
|
|
1201
|
-
error: { type: Boolean },
|
|
1202
|
-
isMultiline: { type: Boolean },
|
|
1203
|
-
helperText: {},
|
|
1204
|
-
emitOnBlur: { type: Boolean, default: !0 },
|
|
1205
|
-
handleFieldSubmit: {},
|
|
1206
|
-
handleFieldChange: {},
|
|
1207
|
-
disableTrim: { type: Boolean, default: !1 }
|
|
1208
|
-
},
|
|
1209
|
-
emits: ["submit", "update:modelValue"],
|
|
1210
|
-
setup(r, { emit: t }) {
|
|
1211
|
-
const e = r, a = t, d = L({
|
|
1212
|
-
base: "scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
|
|
1213
|
-
variants: {
|
|
1214
|
-
focus: {
|
|
1215
|
-
true: "scalar-input-wrapper-focus border-fore-3 has-actv-btn:border has-actv-btn:border-border"
|
|
1216
|
-
},
|
|
1217
|
-
error: { true: "scalar-input-wrapper-error border-error" }
|
|
1218
|
-
}
|
|
1219
|
-
}), c = z(), s = c.id || `id-${ze()}`, p = A(), i = A(!1);
|
|
1220
|
-
let g;
|
|
1221
|
-
if (e.isMultiline) {
|
|
1222
|
-
const { triggerResize: l } = Te({
|
|
1223
|
-
element: p,
|
|
1224
|
-
input: e.modelValue
|
|
1225
|
-
});
|
|
1226
|
-
g = l;
|
|
1227
|
-
}
|
|
1228
|
-
function m(l) {
|
|
1229
|
-
const E = l.target.value;
|
|
1230
|
-
e.isMultiline && g(), e.handleFieldChange ? e.handleFieldChange(E) : a("update:modelValue", E);
|
|
1231
|
-
}
|
|
1232
|
-
function n(l) {
|
|
1233
|
-
const E = l.target, I = e.disableTrim || e.isMultiline ? E.value : E.value.trim();
|
|
1234
|
-
e.handleFieldSubmit ? e.handleFieldSubmit(I) : a("submit", I);
|
|
1235
|
-
}
|
|
1236
|
-
function h(l) {
|
|
1237
|
-
i.value = !1, e.emitOnBlur && e.modelValue && n(l);
|
|
1238
|
-
}
|
|
1239
|
-
return j(() => {
|
|
1240
|
-
var l;
|
|
1241
|
-
Object.prototype.hasOwnProperty.call(c, "autofocus") && ((l = p.value) == null || l.focus());
|
|
1242
|
-
}), (l, E) => (u(), b("div", mt, [
|
|
1243
|
-
f("div", {
|
|
1244
|
-
class: y(o(d)({ error: l.error, focus: i.value }))
|
|
1245
|
-
}, [
|
|
1246
|
-
(u(), $(X(l.isMultiline ? "textarea" : "input"), C({ id: o(s) }, l.$attrs, {
|
|
1247
|
-
ref_key: "input",
|
|
1248
|
-
ref: p,
|
|
1249
|
-
class: [
|
|
1250
|
-
"scalar-input",
|
|
1251
|
-
o(w)(
|
|
1252
|
-
{ "min-h-[77px]": l.isMultiline },
|
|
1253
|
-
"z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
|
|
1254
|
-
"outline-none transition-opacity"
|
|
1255
|
-
)
|
|
1256
|
-
],
|
|
1257
|
-
placeholder: l.placeholder,
|
|
1258
|
-
value: l.modelValue,
|
|
1259
|
-
onBlur: h,
|
|
1260
|
-
onFocus: E[0] || (E[0] = (I) => i.value = !0),
|
|
1261
|
-
onInput: m,
|
|
1262
|
-
onKeyup: ie(n, ["enter"])
|
|
1263
|
-
}), null, 16, ["id", "class", "placeholder", "value"])),
|
|
1264
|
-
l.label ? (u(), b("label", {
|
|
1265
|
-
key: 0,
|
|
1266
|
-
class: y(
|
|
1267
|
-
o(w)(
|
|
1268
|
-
"scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
|
|
1269
|
-
"shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
|
|
1270
|
-
)
|
|
1271
|
-
),
|
|
1272
|
-
for: o(s),
|
|
1273
|
-
style: q({
|
|
1274
|
-
"box-shadow": `0 0 4px 4px ${l.labelShadowColor}`,
|
|
1275
|
-
"background-color": l.labelShadowColor
|
|
1276
|
-
})
|
|
1277
|
-
}, T(l.label), 15, gt)) : N("", !0),
|
|
1278
|
-
f("div", ft, [
|
|
1279
|
-
S(l.$slots, "default", {}, void 0, !0)
|
|
1280
|
-
])
|
|
1281
|
-
], 2),
|
|
1282
|
-
f("span", {
|
|
1283
|
-
class: y(
|
|
1284
|
-
o(w)(
|
|
1285
|
-
"helper-text before:rounded-full mt-1.5 flex items-center text-xs text-error before:font-black",
|
|
1286
|
-
"before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
|
|
1287
|
-
"before:bg-error before:text-white before:content-['!'] empty:hidden"
|
|
1288
|
-
)
|
|
1289
|
-
)
|
|
1290
|
-
}, T(l.helperText), 3)
|
|
1291
|
-
]));
|
|
1292
|
-
}
|
|
1293
|
-
}), Gt = /* @__PURE__ */ P(ht, [["__scopeId", "data-v-4fc2339e"]]);
|
|
1
|
+
import { default as e } from "./components/ScalarModal/ScalarModal.vue.js";
|
|
2
|
+
import "./tailwind/tailwind.css.js";
|
|
3
|
+
import { default as f } from "./components/ScalarButton/ScalarButton.vue.js";
|
|
4
|
+
import { default as p } from "./components/ScalarCodeBlock/ScalarCodeBlock.vue.js";
|
|
5
|
+
import "./components/ScalarCodeBlock/ScalarCodeBlock.vue2.js";
|
|
6
|
+
import { default as c } from "./components/ScalarMarkdown/ScalarMarkdown.vue.js";
|
|
7
|
+
import { default as s } from "./components/ScalarDropdown/ScalarDropdown.vue.js";
|
|
8
|
+
import { default as S } from "./components/ScalarDropdown/ScalarDropdownDivider.vue.js";
|
|
9
|
+
import { default as i } from "./components/ScalarDropdown/ScalarDropdownItem.vue.js";
|
|
10
|
+
import { default as w } from "./components/ScalarFloating/ScalarFloating.vue.js";
|
|
11
|
+
import { default as L } from "./components/ScalarIcon/ScalarIcon.vue.js";
|
|
12
|
+
import { default as h } from "./components/ScalarIconButton/ScalarIconButton.vue.js";
|
|
13
|
+
import { default as M } from "./components/ScalarListbox/ScalarListbox.vue.js";
|
|
14
|
+
import { default as v } from "./components/ScalarLoading/ScalarLoading.vue.js";
|
|
15
|
+
import { default as R } from "./components/ScalarPopover/ScalarPopover.vue.js";
|
|
16
|
+
import { default as C } from "./components/ScalarSearchInput/ScalarSearchInput.vue.js";
|
|
17
|
+
import { default as T } from "./components/ScalarSearchResults/ScalarSearchResultItem.vue.js";
|
|
18
|
+
import { default as q } from "./components/ScalarSearchResults/ScalarSearchResultList.vue.js";
|
|
19
|
+
import { default as z } from "./components/ScalarTextField/ScalarTextField.vue.js";
|
|
20
|
+
import { useLoadingState as E } from "./components/ScalarLoading/ScalarLoading.vue2.js";
|
|
21
|
+
import { useModal as H } from "./components/ScalarModal/ScalarModal.vue2.js";
|
|
1294
22
|
export {
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
23
|
+
f as ScalarButton,
|
|
24
|
+
p as ScalarCodeBlock,
|
|
25
|
+
s as ScalarDropdown,
|
|
26
|
+
S as ScalarDropdownDivider,
|
|
27
|
+
i as ScalarDropdownItem,
|
|
28
|
+
w as ScalarFloating,
|
|
29
|
+
L as ScalarIcon,
|
|
30
|
+
h as ScalarIconButton,
|
|
31
|
+
M as ScalarListbox,
|
|
32
|
+
v as ScalarLoading,
|
|
33
|
+
c as ScalarMarkdown,
|
|
34
|
+
e as ScalarModal,
|
|
35
|
+
R as ScalarPopover,
|
|
36
|
+
C as ScalarSearchInput,
|
|
37
|
+
T as ScalarSearchResultItem,
|
|
38
|
+
q as ScalarSearchResultList,
|
|
39
|
+
z as ScalarTextField,
|
|
40
|
+
E as useLoadingState,
|
|
41
|
+
H as useModal
|
|
1313
42
|
};
|