@scalar/components 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- package/dist/index.cjs +3 -2
- package/dist/index.d.ts +8 -10
- package/dist/index.js +199 -198
- package/dist/index.umd.cjs +3 -2
- package/package.json +2 -1
- package/dist/style.css +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { defineComponent as T, useCssVars as Q, openBlock as w, createElementBlock as y, normalizeClass as k, unref as v, createElementVNode as L, createCommentVNode as A, createStaticVNode as ee, reactive as V, computed as H, useAttrs as F, mergeProps as U, renderSlot as B, createVNode as D, ref as z, watch as te, nextTick as re, onMounted as Z, toDisplayString as M, defineAsyncComponent as ae, h as ne, createBlock as P, withCtx as O, normalizeStyle as W, createTextVNode as oe, resolveDynamicComponent as se, withKeys as le } from "vue";
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`.scalar-component.loader-wrapper[data-v-42a08e16],.scalar-component .loader-wrapper[data-v-42a08e16]{position:relative;height:var(--8d3a1414);width:var(--8d3a1414);display:flex;align-items:center;justify-content:center;--default-loader-size: 50%}.scalar-component.svg-loader[data-v-42a08e16],.scalar-component .svg-loader[data-v-42a08e16]{width:var(--loader-size, var(--default-loader-size));height:var(--loader-size, var(--default-loader-size));top:1rem;right:.9rem;overflow:visible;fill:none;background-color:transparent;stroke:currentColor}.scalar-component.svg-path[data-v-42a08e16],.scalar-component .svg-path[data-v-42a08e16]{stroke-width:14;fill:none;transition:.3s}.scalar-component.svg-x-mark[data-v-42a08e16],.scalar-component .svg-x-mark[data-v-42a08e16]{stroke-dasharray:57;stroke-dashoffset:57;transition-delay:0s}.scalar-component.svg-check-mark[data-v-42a08e16],.scalar-component .svg-check-mark[data-v-42a08e16]{stroke-dasharray:149;stroke-dashoffset:149;transition-delay:0s}.scalar-component.icon-is-invalid .svg-x-mark[data-v-42a08e16],.scalar-component .icon-is-invalid .svg-x-mark[data-v-42a08e16],.scalar-component.icon-is-valid .svg-check-mark[data-v-42a08e16],.scalar-component .icon-is-valid .svg-check-mark[data-v-42a08e16]{stroke-dashoffset:0;transition-delay:.3s}.scalar-component.circular-loader[data-v-42a08e16],.scalar-component .circular-loader[data-v-42a08e16]{animation:rotate-42a08e16 .7s linear infinite,fade-in-42a08e16 .4s;transform-origin:center center;transform:scale(5);background:transparent}.scalar-component.loader-path[data-v-42a08e16],.scalar-component .loader-path[data-v-42a08e16]{stroke-dasharray:50,200;stroke-dashoffset:-100;stroke-linecap:round}.scalar-component.loader-path-off[data-v-42a08e16],.scalar-component .loader-path-off[data-v-42a08e16]{stroke-dasharray:50,200;stroke-dashoffset:-100;transition:opacity .3s;opacity:0}@keyframes fade-in-42a08e16{0%{opacity:0}70%{opacity:0}to{opacity:1}}@keyframes rotate-42a08e16{0%{transform:scale(5) rotate(0)}to{transform:scale(5) rotate(360deg)}}.scalar-componentpre[class*=language-].line-numbers,.scalar-component pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}.scalar-componentpre[class*=language-].line-numbers>code,.scalar-component pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.scalar-component.line-numbers .line-numbers-rows,.scalar-component .line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;user-select:none}.scalar-component.line-numbers-rows>span,.scalar-component .line-numbers-rows>span{display:block;counter-increment:linenumber}.scalar-component.line-numbers-rows>span:before,.scalar-component .line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.scalar-component.scalar-codeblock-code[class*=language-],.scalar-component .scalar-codeblock-code[class*=language-],.scalar-component.scalar-codeblock-pre[class*=language-],.scalar-component .scalar-codeblock-pre[class*=language-]{color:var(--theme-color-3, var(--default-theme-color-2));background:none;font-family:var(--theme-font-code, var(--default-theme-font-code));font-size:var(--theme-small, var(--default-theme-small));text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.4;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}.scalar-component.scalar-codeblock-pre[class*=language-],.scalar-component .scalar-codeblock-pre[class*=language-]{margin:0;padding:.5rem;overflow:auto}.scalar-component:not(pre)>code[class*=language-],.scalar-component :not(pre)>code[class*=language-],.scalar-component.scalar-codeblock-pre[class*=language-],.scalar-component .scalar-codeblock-pre[class*=language-]{background:var(--theme-background-2, var(--default-theme-background-2))}.scalar-component.scalar-codeblock-pre[class*=language-].line-numbers,.scalar-component .scalar-codeblock-pre[class*=language-].line-numbers{padding-left:2em;position:relative;counter-reset:linenumber}.scalar-component.line-numbers span.line-numbers-rows,.scalar-component .line-numbers span.line-numbers-rows{width:2em;border:none;left:-2em}.scalar-component.line-numbers code,.scalar-component .line-numbers code{position:relative;white-space:inherit}.scalar-component:not(pre)>code[class*=language-],.scalar-component :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.scalar-component.token.comment,.scalar-component .token.comment,.scalar-component.token.block-comment,.scalar-component .token.block-comment,.scalar-component.token.prolog,.scalar-component .token.prolog,.scalar-component.token.doctype,.scalar-component .token.doctype,.scalar-component.token.cdata,.scalar-component .token.cdata{color:var(--theme-color-2, var(--default-theme-color-2))}.scalar-component.token.punctuation,.scalar-component .token.punctuation{color:var(--theme-color-3, var(--default-theme-color-3))}.scalar-component.token.tag,.scalar-component .token.tag,.scalar-component.token.attr-name,.scalar-component .token.attr-name,.scalar-component.token.namespace,.scalar-component .token.namespace,.scalar-component.token.deleted,.scalar-component .token.deleted{color:var(--theme-color-red, var(--default-theme-color-red))}.scalar-component.token.function-name,.scalar-component .token.function-name{color:var(--theme-color-green, var(--default-theme-color-green))}.scalar-component.token.boolean,.scalar-component .token.boolean,.scalar-component.token.number,.scalar-component .token.number,.scalar-component.token.function,.scalar-component .token.function{color:var(--theme-color-orange, var(--default-theme-color-orange))}.scalar-component.token.property,.scalar-component .token.property,.scalar-component.token.class-name,.scalar-component .token.class-name,.scalar-component.token.constant,.scalar-component .token.constant,.scalar-component.token.symbol,.scalar-component .token.symbol{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.token.selector,.scalar-component .token.selector,.scalar-component.token.important,.scalar-component .token.important,.scalar-component.token.atrule,.scalar-component .token.atrule,.scalar-component.token.keyword,.scalar-component .token.keyword,.scalar-component.token.builtin,.scalar-component .token.builtin{color:var(--theme-color-purple, var(--default-theme-color-purple))}.scalar-component.token.string,.scalar-component .token.string,.scalar-component.token.char,.scalar-component .token.char,.scalar-component.token.attr-value,.scalar-component .token.attr-value,.scalar-component.token.regex,.scalar-component .token.regex,.scalar-component.token.variable,.scalar-component .token.variable{color:var(--theme-color-blue, var(--default-theme-color-blue))}.scalar-component.light-mode .dark-mode .language-shell .token.variable,.scalar-component .light-mode .dark-mode .language-shell .token.variable{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.light-mode .dark-mode .language-shell .token.string,.scalar-component .light-mode .dark-mode .language-shell .token.string{color:var(--theme-color-blue, var(--default-theme-color-blue))}.scalar-component.language-shell .token.string,.scalar-component .language-shell .token.string{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.token.operator,.scalar-component .token.operator,.scalar-component.token.entity,.scalar-component .token.entity,.scalar-component.token.url,.scalar-component .token.url{color:var(--theme-color-3, var(--default-theme-color-3))}.scalar-component.token.important,.scalar-component .token.important,.scalar-component.token.bold,.scalar-component .token.bold{font-weight:700}.scalar-component.token.italic,.scalar-component .token.italic{font-style:italic}.scalar-component.token.entity,.scalar-component .token.entity{cursor:help}.scalar-component.token.inserted,.scalar-component .token.inserted{color:var(--theme-color-green, var(--default-theme-color-green))}.scalar-component.scalar-modal-layout[data-v-ff85ced0],.scalar-component .scalar-modal-layout[data-v-ff85ced0]{animation:modal-fade-ff85ced0 .2s forwards}.scalar-component.scalar-modal[data-v-ff85ced0],.scalar-component .scalar-modal[data-v-ff85ced0]{transform:scale(.98);animation:modal-pop-ff85ced0 .15s .15s forwards}@keyframes modal-fade-ff85ced0{0%{opacity:0}to{opacity:1}}@keyframes modal-pop-ff85ced0{0%{opacity:0}to{opacity:1;transform:scale(1)}}.scalar-component.scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50]{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.scalar-input-wrapper-error .scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input-wrapper-error .scalar-input-label[data-v-4717ec50]{color:var(--theme-color-error-color, var(--default-theme-color-red))}.scalar-component.scalar-input[data-v-4717ec50]::-moz-selection,.scalar-component .scalar-input[data-v-4717ec50]::-moz-selection{color:var(--theme-color-1, var(--default-theme-color-1));background:#ffa55859}.scalar-component.scalar-input[data-v-4717ec50]::selection,.scalar-component .scalar-input[data-v-4717ec50]::selection{color:var(--theme-color-1, var(--default-theme-color-1));background:#ffa55859}.scalar-component.scalar-input[data-v-4717ec50]:has(+.scalar-input-label),.scalar-component .scalar-input[data-v-4717ec50]:has(+.scalar-input-label){opacity:0}.scalar-component.scalar-input[data-v-4717ec50]:not(:-moz-placeholder-shown),.scalar-component .scalar-input[data-v-4717ec50]:not(:-moz-placeholder-shown){opacity:1;-moz-transition:opacity .2s ease-in-out .15s;transition:opacity .2s ease-in-out .15s}.scalar-component.scalar-input[data-v-4717ec50]:not(:placeholder-shown),.scalar-component .scalar-input[data-v-4717ec50]:not(:placeholder-shown),.scalar-component.scalar-input-wrapper-focus .scalar-input[data-v-4717ec50],.scalar-component .scalar-input-wrapper-focus .scalar-input[data-v-4717ec50]{opacity:1;transition:opacity .2s ease-in-out .15s}.scalar-component.scalar-input[data-v-4717ec50]:-webkit-autofill,.scalar-component .scalar-input[data-v-4717ec50]:-webkit-autofill,.scalar-component.scalar-input[data-v-4717ec50]:-webkit-autofill:hover,.scalar-component .scalar-input[data-v-4717ec50]:-webkit-autofill:hover,.scalar-component.scalar-input[data-v-4717ec50]:-webkit-autofill:focus,.scalar-component .scalar-input[data-v-4717ec50]:-webkit-autofill:focus,.scalar-component.scalar-input[data-v-4717ec50]:-webkit-autofill:active,.scalar-component .scalar-input[data-v-4717ec50]:-webkit-autofill:active,.scalar-component.scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill,.scalar-component .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill,.scalar-component.scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:hover,.scalar-component .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:hover,.scalar-component.scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:focus,.scalar-component .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:focus,.scalar-component.scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:active,.scalar-component .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:active{-webkit-box-shadow:0 0 0px 1000px var(--theme-background-1, var(--default-theme-background-1)) inset!important;-webkit-text-fill-color:var(--theme-color-1, var(--default-theme-color-1));color:var(--theme-color-1, var(--default-theme-color-1));border-radius:var(--theme-radius, var(--default-theme-radius))}.scalar-component.scalar-input:not(:-moz-placeholder-shown)+.scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input:not(:-moz-placeholder-shown)+.scalar-input-label[data-v-4717ec50]{transform:translate3d(0,-20px,0) scale(.8);transform-origin:top left}.scalar-component.scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50],.scalar-component.scalar-input:not(:placeholder-shown)+.scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input:not(:placeholder-shown)+.scalar-input-label[data-v-4717ec50]{transform:translate3d(0,-20px,0) scale(.8);transform-origin:top left}.scalar-component.scalar-input-wrapper-focus:has(button:active) .scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input-wrapper-focus:has(button:active) .scalar-input-label[data-v-4717ec50]{color:var(--theme-color-3, var(--default-theme-color-3))!important}.scalar-component,.scalar-component *{box-sizing:border-box;border-width:unset;border-style:unset;border-color:currentColor;font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:unset;font-weight:inherit;line-height:inherit;color:inherit;margin:unset;padding:unset}.scalar-component,.scalar-component *,.scalar-component:before,.scalar-component :before,.scalar-component:after,.scalar-component :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.scalar-component::backdrop,.scalar-component ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.scalar-component.sr-only,.scalar-component .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.scalar-component.pointer-events-none,.scalar-component .pointer-events-none{pointer-events:none}.scalar-component.visible,.scalar-component .visible{visibility:visible}.scalar-component.fixed,.scalar-component .fixed{position:fixed}.scalar-component.absolute,.scalar-component .absolute{position:absolute}.scalar-component.relative,.scalar-component .relative{position:relative}.scalar-component.left-0,.scalar-component .left-0{left:0}.scalar-component.top-0,.scalar-component .top-0{top:0}.scalar-component.z-10,.scalar-component .z-10{z-index:10}.scalar-component.z-\\[1001\\],.scalar-component .z-\\[1001\\]{z-index:1001}.scalar-component.m-0,.scalar-component .m-0{margin:0}.scalar-component.mx-2,.scalar-component .mx-2{margin-left:8px;margin-right:8px}.scalar-component.mx-auto,.scalar-component .mx-auto{margin-left:auto;margin-right:auto}.scalar-component.my-3,.scalar-component .my-3{margin-top:12px;margin-bottom:12px}.scalar-component.mb-0,.scalar-component .mb-0{margin-bottom:0}.scalar-component.ml-2,.scalar-component .ml-2{margin-left:8px}.scalar-component.mr-2,.scalar-component .mr-2{margin-right:8px}.scalar-component.mt-1,.scalar-component .mt-1{margin-top:4px}.scalar-component.mt-1\\.5,.scalar-component .mt-1\\.5{margin-top:6px}.scalar-component.mt-20,.scalar-component .mt-20{margin-top:80px}.scalar-component.block,.scalar-component .block{display:block}.scalar-component.flex,.scalar-component .flex{display:flex}.scalar-component.grid,.scalar-component .grid{display:grid}.scalar-component.hidden,.scalar-component .hidden{display:none}.scalar-component.aspect-square,.scalar-component .aspect-square{aspect-ratio:1 / 1}.scalar-component.h-10,.scalar-component .h-10{height:40px}.scalar-component.h-3,.scalar-component .h-3{height:12px}.scalar-component.h-3\\.5,.scalar-component .h-3\\.5{height:14px}.scalar-component.h-4,.scalar-component .h-4{height:16px}.scalar-component.h-5,.scalar-component .h-5{height:20px}.scalar-component.h-6,.scalar-component .h-6{height:24px}.scalar-component.h-\\[100dvh\\],.scalar-component .h-\\[100dvh\\]{height:100dvh}.scalar-component.h-full,.scalar-component .h-full{height:100%}.scalar-component.max-h-\\[440px\\],.scalar-component .max-h-\\[440px\\]{max-height:440px}.scalar-component.max-h-\\[calc\\(100dvh-240px\\)\\],.scalar-component .max-h-\\[calc\\(100dvh-240px\\)\\]{max-height:calc(100dvh - 240px)}.scalar-component.min-h-\\[77px\\],.scalar-component .min-h-\\[77px\\]{min-height:77px}.scalar-component.w-10,.scalar-component .w-10{width:40px}.scalar-component.w-3,.scalar-component .w-3{width:12px}.scalar-component.w-3\\.5,.scalar-component .w-3\\.5{width:14px}.scalar-component.w-4,.scalar-component .w-4{width:16px}.scalar-component.w-5,.scalar-component .w-5{width:20px}.scalar-component.w-6,.scalar-component .w-6{width:24px}.scalar-component.w-\\[100dvw\\],.scalar-component .w-\\[100dvw\\]{width:100dvw}.scalar-component.w-full,.scalar-component .w-full{width:100%}.scalar-component.max-w-screen-lg,.scalar-component .max-w-screen-lg{max-width:800px}.scalar-component.max-w-screen-md,.scalar-component .max-w-screen-md{max-width:640px}.scalar-component.max-w-screen-sm,.scalar-component .max-w-screen-sm{max-width:540px}.scalar-component.max-w-screen-xs,.scalar-component .max-w-screen-xs{max-width:480px}.scalar-component.origin-top-left,.scalar-component .origin-top-left{transform-origin:top left}.scalar-component.transform,.scalar-component .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scalar-component.cursor-not-allowed,.scalar-component .cursor-not-allowed{cursor:not-allowed}.scalar-component.cursor-pointer,.scalar-component .cursor-pointer{cursor:pointer}.scalar-component.resize-none,.scalar-component .resize-none{resize:none}.scalar-component.appearance-none,.scalar-component .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.scalar-component.items-start,.scalar-component .items-start{align-items:flex-start}.scalar-component.items-center,.scalar-component .items-center{align-items:center}.scalar-component.justify-center,.scalar-component .justify-center{justify-content:center}.scalar-component.gap-1,.scalar-component .gap-1{gap:4px}.scalar-component.gap-4,.scalar-component .gap-4{gap:16px}.scalar-component.overflow-hidden,.scalar-component .overflow-hidden{overflow:hidden}.scalar-component.overflow-y-auto,.scalar-component .overflow-y-auto{overflow-y:auto}.scalar-component.rounded,.scalar-component .rounded{border-radius:var(--theme-radius, var(--default-theme-radius))}.scalar-component.rounded-lg,.scalar-component .rounded-lg{border-radius:var(--theme-radius-lg, var(--default-theme-radius-lg))}.scalar-component.border,.scalar-component .border{border-width:1px}.scalar-component.border-0,.scalar-component .border-0{border-width:0px}.scalar-component.border-solid,.scalar-component .border-solid{border-style:solid}.scalar-component.border-border,.scalar-component .border-border{border-color:var(--theme-border-color, var(--default-theme-border-color))}.scalar-component.border-error,.scalar-component .border-error{border-color:var(--theme-error-color, var(--default-theme-color-red))}.scalar-component.border-fore-3,.scalar-component .border-fore-3{border-color:var(--theme-color-3, var(--default-theme-color-3))}.scalar-component.bg-back-1,.scalar-component .bg-back-1{background-color:var(--theme-background-1, var(--default-theme-background-1))}.scalar-component.bg-back-2,.scalar-component .bg-back-2{background-color:var(--theme-background-2, var(--default-theme-background-2))}.scalar-component.bg-back-btn-1,.scalar-component .bg-back-btn-1{background-color:var(--theme-button-1, var(--default-theme-button-1))}.scalar-component.bg-backdrop,.scalar-component .bg-backdrop{background-color:#00000070}.scalar-component.bg-error,.scalar-component .bg-error{background-color:var(--theme-error-color, var(--default-theme-color-red))}.scalar-component.bg-transparent,.scalar-component .bg-transparent{background-color:transparent}.scalar-component.p-0,.scalar-component .p-0{padding:0}.scalar-component.p-0\\.5,.scalar-component .p-0\\.5{padding:2px}.scalar-component.p-1,.scalar-component .p-1{padding:4px}.scalar-component.p-3,.scalar-component .p-3{padding:12px}.scalar-component.p-5,.scalar-component .p-5{padding:20px}.scalar-component.px-1,.scalar-component .px-1{padding-left:4px;padding-right:4px}.scalar-component.px-4,.scalar-component .px-4{padding-left:16px;padding-right:16px}.scalar-component.px-6,.scalar-component .px-6{padding-left:24px;padding-right:24px}.scalar-component.px-9,.scalar-component .px-9{padding-left:36px;padding-right:36px}.scalar-component.py-1,.scalar-component .py-1{padding-top:4px;padding-bottom:4px}.scalar-component.py-3,.scalar-component .py-3{padding-top:12px;padding-bottom:12px}.scalar-component.pb-0,.scalar-component .pb-0{padding-bottom:0}.scalar-component.pb-4,.scalar-component .pb-4{padding-bottom:16px}.scalar-component.pl-9,.scalar-component .pl-9{padding-left:36px}.scalar-component.pr-3,.scalar-component .pr-3{padding-right:12px}.scalar-component.pt-3,.scalar-component .pt-3{padding-top:12px}.scalar-component.pt-6,.scalar-component .pt-6{padding-top:24px}.scalar-component.text-left,.scalar-component .text-left{text-align:left}.scalar-component.text-sm,.scalar-component .text-sm{font-size:var(--theme-small, var(--default-theme-small, var(--theme-font-size-3, var(--default-theme-font-size-3))))}.scalar-component.text-xs,.scalar-component .text-xs{font-size:var(--theme-mini, var(--default-theme-mini, var(--theme-font-size-4, var(--default-theme-font-size-4))))}.scalar-component.font-medium,.scalar-component .font-medium{font-weight:var(--theme-font-medium, var(--default-theme-font-medium))}.scalar-component.font-normal,.scalar-component .font-normal{font-weight:400}.scalar-component.italic,.scalar-component .italic{font-style:italic}.scalar-component.text-error,.scalar-component .text-error{color:var(--theme-error-color, var(--default-theme-color-red))}.scalar-component.text-fore-1,.scalar-component .text-fore-1{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.text-fore-3,.scalar-component .text-fore-3{color:var(--theme-color-3, var(--default-theme-color-3))}.scalar-component.text-fore-btn-1,.scalar-component .text-fore-btn-1{color:var(--theme-button-1-color, var(--default-theme-button-1-color))}.scalar-component.text-ghost,.scalar-component .text-ghost{color:var(--theme-color-ghost, var(--default-theme-color-ghost))}.scalar-component.text-white,.scalar-component .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.scalar-component.opacity-0,.scalar-component .opacity-0{opacity:0}.scalar-component.shadow-none,.scalar-component .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.scalar-component.shadow-sm,.scalar-component .shadow-sm{--tw-shadow: rgba(0, 0, 0, .09) 0px 1px 4px;--tw-shadow-colored: 0px 1px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.scalar-component.outline-none,.scalar-component .outline-none{outline:2px solid transparent;outline-offset:2px}.scalar-component.outline,.scalar-component .outline{outline-style:solid}.scalar-component.blur,.scalar-component .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.scalar-component.filter,.scalar-component .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.scalar-component.transition,.scalar-component .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.scalar-component.transition-opacity,.scalar-component .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.scalar-component.transition-transform,.scalar-component .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.scalar-component.ease-in-out,.scalar-component .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scalar-component.row,.scalar-component .row{display:flex;flex-direction:row}.scalar-component.col,.scalar-component .col{display:flex;flex-direction:column}.scalar-component.before\\:mr-1:before,.scalar-component .before\\:mr-1:before{content:var(--tw-content);margin-right:4px}.scalar-component.before\\:mr-1\\.5:before,.scalar-component .before\\:mr-1\\.5:before{content:var(--tw-content);margin-right:6px}.scalar-component.before\\:block:before,.scalar-component .before\\:block:before{content:var(--tw-content);display:block}.scalar-component.before\\:h-4:before,.scalar-component .before\\:h-4:before{content:var(--tw-content);height:16px}.scalar-component.before\\:w-4:before,.scalar-component .before\\:w-4:before{content:var(--tw-content);width:16px}.scalar-component.before\\:bg-error:before,.scalar-component .before\\:bg-error:before{content:var(--tw-content);background-color:var(--theme-error-color, var(--default-theme-color-red))}.scalar-component.before\\:text-center:before,.scalar-component .before\\:text-center:before{content:var(--tw-content);text-align:center}.scalar-component.before\\:text-xxs:before,.scalar-component .before\\:text-xxs:before{content:var(--tw-content);font-size:var(--theme-micro, var(--default-theme-micro, var(--theme-font-size-5, var(--default-theme-font-size-5))))}.scalar-component.before\\:font-black:before,.scalar-component .before\\:font-black:before{content:var(--tw-content);font-weight:900}.scalar-component.before\\:leading-4:before,.scalar-component .before\\:leading-4:before{content:var(--tw-content);line-height:16px}.scalar-component.before\\:text-white:before,.scalar-component .before\\:text-white:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.scalar-component.before\\:content-\\[\\'\\!\\'\\]:before,.scalar-component .before\\:content-\\[\\'\\!\\'\\]:before{--tw-content: "!";content:var(--tw-content)}.scalar-component.empty\\:hidden:empty,.scalar-component .empty\\:hidden:empty{display:none}.scalar-component.hover\\:text-fore-1:hover,.scalar-component .hover\\:text-fore-1:hover{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.active\\:bg-back-btn-1:active,.scalar-component .active\\:bg-back-btn-1:active{background-color:var(--theme-button-1, var(--default-theme-button-1))}.scalar-component.active\\:text-fore-2:active,.scalar-component .active\\:text-fore-2:active{color:var(--theme-color-2, var(--default-theme-color-2))}.scalar-component.active\\:shadow-none:active,.scalar-component .active\\:shadow-none:active{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.scalar-component.active\\:brightness-90:active,.scalar-component .active\\:brightness-90:active{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.scalar-component.has-actv-btn\\:border:has(button:active),.scalar-component .has-actv-btn\\:border:has(button:active){border-width:1px}.scalar-component.has-actv-btn\\:border-border:has(button:active),.scalar-component .has-actv-btn\\:border-border:has(button:active){border-color:var(--theme-border-color, var(--default-theme-border-color))}.scalar-component.\\!empty\\:flex:not(:empty),.scalar-component .\\!empty\\:flex:not(:empty){display:flex}.scalar-component.\\!empty\\:w-7:not(:empty),.scalar-component .\\!empty\\:w-7:not(:empty){width:28px}.scalar-component.\\!empty\\:items-center:not(:empty),.scalar-component .\\!empty\\:items-center:not(:empty){align-items:center}.scalar-component.\\!empty\\:pr-3:not(:empty),.scalar-component .\\!empty\\:pr-3:not(:empty){padding-right:12px}.scalar-component.hocus\\:bg-back-2:hover,.scalar-component .hocus\\:bg-back-2:hover{background-color:var(--theme-background-2, var(--default-theme-background-2))}.scalar-component.hocus\\:bg-hover-btn-1:hover,.scalar-component .hocus\\:bg-hover-btn-1:hover{background-color:var(--theme-button-1-hover, var(--default-theme-button-1-hover))}.scalar-component.hocus\\:text-fore-2:hover,.scalar-component .hocus\\:text-fore-2:hover{color:var(--theme-color-2, var(--default-theme-color-2))}.scalar-component.hocus\\:brightness-90:hover,.scalar-component .hocus\\:brightness-90:hover{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.scalar-component.hocus\\:bg-back-2:focus-visible,.scalar-component .hocus\\:bg-back-2:focus-visible{background-color:var(--theme-background-2, var(--default-theme-background-2))}.scalar-component.hocus\\:bg-hover-btn-1:focus-visible,.scalar-component .hocus\\:bg-hover-btn-1:focus-visible{background-color:var(--theme-button-1-hover, var(--default-theme-button-1-hover))}.scalar-component.hocus\\:text-fore-2:focus-visible,.scalar-component .hocus\\:text-fore-2:focus-visible{color:var(--theme-color-2, var(--default-theme-color-2))}.scalar-component.hocus\\:brightness-90:focus-visible,.scalar-component .hocus\\:brightness-90:focus-visible{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.scalar-component.md\\:row,.scalar-component .md\\:row{display:flex;flex-direction:row}}`)),document.head.appendChild(a)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { defineComponent as I, useCssVars as Q, openBlock as w, createElementBlock as C, normalizeClass as k, unref as v, createElementVNode as A, createCommentVNode as T, createStaticVNode as ee, reactive as V, computed as H, useAttrs as F, mergeProps as U, renderSlot as B, createVNode as D, ref as z, watch as te, nextTick as re, onMounted as Z, toDisplayString as M, defineAsyncComponent as ae, h as ne, createBlock as P, withCtx as O, normalizeStyle as W, createTextVNode as oe, resolveDynamicComponent as se, withKeys as le } from "vue";
|
|
2
3
|
import { defineConfig as ie } from "cva";
|
|
3
4
|
import { extendTailwindMerge as ce } from "tailwind-merge";
|
|
4
5
|
import de from "prismjs";
|
|
@@ -12,11 +13,11 @@ const R = "scalar-component", fe = ce({
|
|
|
12
13
|
[R]: [R]
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
}), { cva: N, cx:
|
|
16
|
+
}), { cva: N, cx: E, compose: vt } = ie({
|
|
16
17
|
hooks: {
|
|
17
18
|
onComplete: (r) => `${fe(r, R)}`
|
|
18
19
|
}
|
|
19
|
-
}), be = /* @__PURE__ */ ee('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-
|
|
20
|
+
}), be = /* @__PURE__ */ ee('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-42a08e16></path>', 5), ke = {
|
|
20
21
|
key: 0,
|
|
21
22
|
class: "circular-loader"
|
|
22
23
|
};
|
|
@@ -54,7 +55,7 @@ function gt() {
|
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
|
-
const we = /* @__PURE__ */
|
|
58
|
+
const we = /* @__PURE__ */ I({
|
|
58
59
|
__name: "ScalarLoading",
|
|
59
60
|
props: {
|
|
60
61
|
loadingState: {},
|
|
@@ -62,12 +63,12 @@ const we = /* @__PURE__ */ T({
|
|
|
62
63
|
},
|
|
63
64
|
setup(r) {
|
|
64
65
|
return Q((t) => ({
|
|
65
|
-
"
|
|
66
|
-
})), (t, e) => t.loadingState ? (w(),
|
|
66
|
+
"8d3a1414": t.size
|
|
67
|
+
})), (t, e) => t.loadingState ? (w(), C("div", {
|
|
67
68
|
key: 0,
|
|
68
|
-
class: k(v(
|
|
69
|
+
class: k(v(E)("loader-wrapper"))
|
|
69
70
|
}, [
|
|
70
|
-
(w(),
|
|
71
|
+
(w(), C("svg", {
|
|
71
72
|
class: k(["svg-loader", {
|
|
72
73
|
"icon-is-valid": t.loadingState.isValid,
|
|
73
74
|
"icon-is-invalid": t.loadingState.isInvalid
|
|
@@ -77,8 +78,8 @@ const we = /* @__PURE__ */ T({
|
|
|
77
78
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
78
79
|
}, [
|
|
79
80
|
be,
|
|
80
|
-
t.loadingState.isLoading ? (w(),
|
|
81
|
-
|
|
81
|
+
t.loadingState.isLoading ? (w(), C("g", ke, [
|
|
82
|
+
A("circle", {
|
|
82
83
|
class: k(["loader-path", {
|
|
83
84
|
"loader-path-off": t.loadingState.isValid || t.loadingState.isInvalid
|
|
84
85
|
}]),
|
|
@@ -88,16 +89,16 @@ const we = /* @__PURE__ */ T({
|
|
|
88
89
|
r: "20",
|
|
89
90
|
"stroke-width": "2"
|
|
90
91
|
}, null, 2)
|
|
91
|
-
])) :
|
|
92
|
+
])) : T("", !0)
|
|
92
93
|
], 2))
|
|
93
|
-
], 2)) :
|
|
94
|
+
], 2)) : T("", !0);
|
|
94
95
|
}
|
|
95
96
|
}), $ = (r, t) => {
|
|
96
97
|
const e = r.__vccOpts || r;
|
|
97
|
-
for (const [
|
|
98
|
-
e[
|
|
98
|
+
for (const [s, d] of t)
|
|
99
|
+
e[s] = d;
|
|
99
100
|
return e;
|
|
100
|
-
}, X = /* @__PURE__ */ $(we, [["__scopeId", "data-v-
|
|
101
|
+
}, X = /* @__PURE__ */ $(we, [["__scopeId", "data-v-42a08e16"]]), K = {
|
|
101
102
|
solid: [
|
|
102
103
|
"scalar-button-solid",
|
|
103
104
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -137,7 +138,7 @@ const we = /* @__PURE__ */ T({
|
|
|
137
138
|
}, xe = {
|
|
138
139
|
key: 1,
|
|
139
140
|
class: "ml-2"
|
|
140
|
-
}, Ce = /* @__PURE__ */
|
|
141
|
+
}, Ce = /* @__PURE__ */ I({
|
|
141
142
|
inheritAttrs: !1,
|
|
142
143
|
__name: "ScalarButton",
|
|
143
144
|
props: {
|
|
@@ -149,28 +150,28 @@ const we = /* @__PURE__ */ T({
|
|
|
149
150
|
},
|
|
150
151
|
setup(r) {
|
|
151
152
|
const t = H(() => {
|
|
152
|
-
const { class: e, ...
|
|
153
|
-
return { className: e || "", rest:
|
|
153
|
+
const { class: e, ...s } = F();
|
|
154
|
+
return { className: e || "", rest: s };
|
|
154
155
|
});
|
|
155
|
-
return (e,
|
|
156
|
+
return (e, s) => (w(), C("button", U(t.value.rest, {
|
|
156
157
|
ariaDisabled: e.disabled || void 0,
|
|
157
|
-
class: v(
|
|
158
|
+
class: v(E)(
|
|
158
159
|
v(_e)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
159
160
|
{ "pl-9 pr-3": e.loading },
|
|
160
161
|
`${t.value.className}`
|
|
161
162
|
),
|
|
162
163
|
type: "button"
|
|
163
164
|
}), [
|
|
164
|
-
e.$slots.icon ? (w(),
|
|
165
|
+
e.$slots.icon ? (w(), C("div", ye, [
|
|
165
166
|
B(e.$slots, "icon")
|
|
166
|
-
])) :
|
|
167
|
+
])) : T("", !0),
|
|
167
168
|
B(e.$slots, "default"),
|
|
168
|
-
e.loading ? (w(),
|
|
169
|
+
e.loading ? (w(), C("div", xe, [
|
|
169
170
|
D(v(X), {
|
|
170
171
|
loadingState: e.loading,
|
|
171
172
|
size: "20px"
|
|
172
173
|
}, null, 8, ["loadingState"])
|
|
173
|
-
])) :
|
|
174
|
+
])) : T("", !0)
|
|
174
175
|
], 16, Se));
|
|
175
176
|
}
|
|
176
177
|
});
|
|
@@ -182,7 +183,7 @@ const we = /* @__PURE__ */ T({
|
|
|
182
183
|
// this looks reasonably well in all themes
|
|
183
184
|
inside: null
|
|
184
185
|
// see below
|
|
185
|
-
},
|
|
186
|
+
}, s = {
|
|
186
187
|
bash: e,
|
|
187
188
|
environment: {
|
|
188
189
|
pattern: RegExp("\\$" + t),
|
|
@@ -294,7 +295,7 @@ const we = /* @__PURE__ */ T({
|
|
|
294
295
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
295
296
|
lookbehind: !0,
|
|
296
297
|
greedy: !0,
|
|
297
|
-
inside:
|
|
298
|
+
inside: s
|
|
298
299
|
},
|
|
299
300
|
// Here-document with quotes around the tag
|
|
300
301
|
// → No expansion (so no “inside”).
|
|
@@ -312,7 +313,7 @@ const we = /* @__PURE__ */ T({
|
|
|
312
313
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
313
314
|
lookbehind: !0,
|
|
314
315
|
greedy: !0,
|
|
315
|
-
inside:
|
|
316
|
+
inside: s
|
|
316
317
|
},
|
|
317
318
|
{
|
|
318
319
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -325,7 +326,7 @@ const we = /* @__PURE__ */ T({
|
|
|
325
326
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
326
327
|
greedy: !0,
|
|
327
328
|
inside: {
|
|
328
|
-
entity:
|
|
329
|
+
entity: s.entity
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
332
|
],
|
|
@@ -333,7 +334,7 @@ const we = /* @__PURE__ */ T({
|
|
|
333
334
|
pattern: RegExp("\\$?" + t),
|
|
334
335
|
alias: "constant"
|
|
335
336
|
},
|
|
336
|
-
variable:
|
|
337
|
+
variable: s.variable,
|
|
337
338
|
function: {
|
|
338
339
|
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;|&])/,
|
|
339
340
|
lookbehind: !0
|
|
@@ -373,7 +374,7 @@ const we = /* @__PURE__ */ T({
|
|
|
373
374
|
lookbehind: !0
|
|
374
375
|
}
|
|
375
376
|
}, e.inside = r.languages.bash;
|
|
376
|
-
for (var
|
|
377
|
+
for (var d = [
|
|
377
378
|
"comment",
|
|
378
379
|
"function-name",
|
|
379
380
|
"for-or-select",
|
|
@@ -389,8 +390,8 @@ const we = /* @__PURE__ */ T({
|
|
|
389
390
|
"operator",
|
|
390
391
|
"punctuation",
|
|
391
392
|
"number"
|
|
392
|
-
],
|
|
393
|
-
|
|
393
|
+
], f = s.variable[1].inside, n = 0; n < d.length; n++)
|
|
394
|
+
f[d[n]] = r.languages.bash[d[n]];
|
|
394
395
|
r.languages.sh = r.languages.bash, r.languages.shell = r.languages.bash;
|
|
395
396
|
})(Prism);
|
|
396
397
|
Prism.languages.json = {
|
|
@@ -692,98 +693,98 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
692
693
|
xeoracube: "xeora",
|
|
693
694
|
yml: "yaml"
|
|
694
695
|
}
|
|
695
|
-
), e = {},
|
|
696
|
-
if (
|
|
697
|
-
var n = /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,
|
|
696
|
+
), e = {}, s = "none", d = "components/", f = Prism.util.currentScript();
|
|
697
|
+
if (f) {
|
|
698
|
+
var n = /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, m = /(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, o = f.getAttribute("data-autoloader-path");
|
|
698
699
|
if (o != null)
|
|
699
|
-
|
|
700
|
+
d = o.trim().replace(/\/?$/, "/");
|
|
700
701
|
else {
|
|
701
|
-
var
|
|
702
|
-
n.test(
|
|
702
|
+
var c = f.src;
|
|
703
|
+
n.test(c) ? d = c.replace(n, "components/") : m.test(c) && (d = c.replace(m, "$1components/"));
|
|
703
704
|
}
|
|
704
705
|
}
|
|
705
|
-
var
|
|
706
|
-
languages_path:
|
|
706
|
+
var h = Prism.plugins.autoloader = {
|
|
707
|
+
languages_path: d,
|
|
707
708
|
use_minified: !0,
|
|
708
|
-
loadLanguages:
|
|
709
|
+
loadLanguages: y
|
|
709
710
|
};
|
|
710
|
-
function i(a,
|
|
711
|
-
var
|
|
712
|
-
|
|
713
|
-
document.body.removeChild(
|
|
714
|
-
},
|
|
715
|
-
document.body.removeChild(
|
|
716
|
-
}, document.body.appendChild(
|
|
711
|
+
function i(a, u, g) {
|
|
712
|
+
var p = document.createElement("script");
|
|
713
|
+
p.src = a, p.async = !0, p.onload = function() {
|
|
714
|
+
document.body.removeChild(p), u && u();
|
|
715
|
+
}, p.onerror = function() {
|
|
716
|
+
document.body.removeChild(p), g && g();
|
|
717
|
+
}, document.body.appendChild(p);
|
|
717
718
|
}
|
|
718
|
-
function
|
|
719
|
-
var
|
|
720
|
-
if (!
|
|
719
|
+
function b(a) {
|
|
720
|
+
var u = (a.getAttribute("data-dependencies") || "").trim();
|
|
721
|
+
if (!u) {
|
|
721
722
|
var g = a.parentElement;
|
|
722
|
-
g && g.tagName.toLowerCase() === "pre" && (
|
|
723
|
+
g && g.tagName.toLowerCase() === "pre" && (u = (g.getAttribute("data-dependencies") || "").trim());
|
|
723
724
|
}
|
|
724
|
-
return
|
|
725
|
+
return u ? u.split(/\s*,\s*/g) : [];
|
|
725
726
|
}
|
|
726
|
-
function
|
|
727
|
+
function l(a) {
|
|
727
728
|
if (a.indexOf("!") >= 0)
|
|
728
729
|
return !1;
|
|
729
730
|
if (a = t[a] || a, a in Prism.languages)
|
|
730
731
|
return !0;
|
|
731
|
-
var
|
|
732
|
-
return
|
|
732
|
+
var u = e[a];
|
|
733
|
+
return u && !u.error && u.loading === !1;
|
|
733
734
|
}
|
|
734
|
-
function
|
|
735
|
-
return
|
|
735
|
+
function _(a) {
|
|
736
|
+
return h.languages_path + "prism-" + a + (h.use_minified ? ".min" : "") + ".js";
|
|
736
737
|
}
|
|
737
|
-
function
|
|
738
|
+
function y(a, u, g) {
|
|
738
739
|
typeof a == "string" && (a = [a]);
|
|
739
|
-
var
|
|
740
|
-
if (
|
|
741
|
-
|
|
740
|
+
var p = a.length, L = 0, x = !1;
|
|
741
|
+
if (p === 0) {
|
|
742
|
+
u && setTimeout(u, 0);
|
|
742
743
|
return;
|
|
743
744
|
}
|
|
744
|
-
function
|
|
745
|
-
|
|
745
|
+
function S() {
|
|
746
|
+
x || (L++, L === p && u && u(a));
|
|
746
747
|
}
|
|
747
748
|
a.forEach(function(G) {
|
|
748
|
-
J(G,
|
|
749
|
-
|
|
749
|
+
J(G, S, function() {
|
|
750
|
+
x || (x = !0, g && g(G));
|
|
750
751
|
});
|
|
751
752
|
});
|
|
752
753
|
}
|
|
753
|
-
function J(a,
|
|
754
|
-
var
|
|
754
|
+
function J(a, u, g) {
|
|
755
|
+
var p = a.indexOf("!") >= 0;
|
|
755
756
|
a = a.replace("!", ""), a = t[a] || a;
|
|
756
|
-
function
|
|
757
|
-
var
|
|
758
|
-
|
|
757
|
+
function L() {
|
|
758
|
+
var S = e[a];
|
|
759
|
+
S || (S = e[a] = {
|
|
759
760
|
callbacks: []
|
|
760
|
-
}),
|
|
761
|
-
success:
|
|
761
|
+
}), S.callbacks.push({
|
|
762
|
+
success: u,
|
|
762
763
|
error: g
|
|
763
|
-
}), !
|
|
764
|
-
|
|
764
|
+
}), !p && l(a) ? j(a, "success") : !p && S.error ? j(a, "error") : (p || !S.loading) && (S.loading = !0, S.error = !1, i(_(a), function() {
|
|
765
|
+
S.loading = !1, j(a, "success");
|
|
765
766
|
}, function() {
|
|
766
|
-
|
|
767
|
+
S.loading = !1, S.error = !0, j(a, "error");
|
|
767
768
|
}));
|
|
768
769
|
}
|
|
769
|
-
var
|
|
770
|
-
|
|
770
|
+
var x = r[a];
|
|
771
|
+
x && x.length ? y(x, L, g) : L();
|
|
771
772
|
}
|
|
772
|
-
function j(a,
|
|
773
|
+
function j(a, u) {
|
|
773
774
|
if (e[a]) {
|
|
774
|
-
for (var g = e[a].callbacks,
|
|
775
|
-
var
|
|
776
|
-
|
|
775
|
+
for (var g = e[a].callbacks, p = 0, L = g.length; p < L; p++) {
|
|
776
|
+
var x = g[p][u];
|
|
777
|
+
x && setTimeout(x, 0);
|
|
777
778
|
}
|
|
778
779
|
g.length = 0;
|
|
779
780
|
}
|
|
780
781
|
}
|
|
781
782
|
Prism.hooks.add("complete", function(a) {
|
|
782
|
-
var
|
|
783
|
-
if (!(!
|
|
784
|
-
var
|
|
785
|
-
/^diff-./i.test(g) ? (
|
|
786
|
-
Prism.highlightElement(
|
|
783
|
+
var u = a.element, g = a.language;
|
|
784
|
+
if (!(!u || !g || g === s)) {
|
|
785
|
+
var p = b(u);
|
|
786
|
+
/^diff-./i.test(g) ? (p.push("diff"), p.push(g.substr(5))) : p.push(g), p.every(l) || y(p, function() {
|
|
787
|
+
Prism.highlightElement(u);
|
|
787
788
|
});
|
|
788
789
|
}
|
|
789
790
|
});
|
|
@@ -799,13 +800,13 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
799
800
|
* @param {number} number line number
|
|
800
801
|
* @returns {Element|undefined}
|
|
801
802
|
*/
|
|
802
|
-
getLine: function(n,
|
|
803
|
+
getLine: function(n, m) {
|
|
803
804
|
if (!(n.tagName !== "PRE" || !n.classList.contains(r))) {
|
|
804
805
|
var o = n.querySelector(".line-numbers-rows");
|
|
805
806
|
if (o) {
|
|
806
|
-
var
|
|
807
|
-
|
|
808
|
-
var i =
|
|
807
|
+
var c = parseInt(n.getAttribute("data-start"), 10) || 1, h = c + (o.children.length - 1);
|
|
808
|
+
m < c && (m = c), m > h && (m = h);
|
|
809
|
+
var i = m - c;
|
|
809
810
|
return o.children[i];
|
|
810
811
|
}
|
|
811
812
|
}
|
|
@@ -819,7 +820,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
819
820
|
* @returns {void}
|
|
820
821
|
*/
|
|
821
822
|
resize: function(n) {
|
|
822
|
-
|
|
823
|
+
s([n]);
|
|
823
824
|
},
|
|
824
825
|
/**
|
|
825
826
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
@@ -833,72 +834,72 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
833
834
|
*/
|
|
834
835
|
assumeViewportIndependence: !0
|
|
835
836
|
};
|
|
836
|
-
function
|
|
837
|
+
function s(n) {
|
|
837
838
|
if (n = n.filter(function(o) {
|
|
838
|
-
var
|
|
839
|
-
return
|
|
839
|
+
var c = d(o), h = c["white-space"];
|
|
840
|
+
return h === "pre-wrap" || h === "pre-line";
|
|
840
841
|
}), n.length != 0) {
|
|
841
|
-
var
|
|
842
|
-
var
|
|
843
|
-
if (!(!
|
|
844
|
-
var i = o.querySelector(".line-numbers-sizer"),
|
|
845
|
-
i || (i = document.createElement("span"), i.className = "line-numbers-sizer",
|
|
846
|
-
var
|
|
842
|
+
var m = n.map(function(o) {
|
|
843
|
+
var c = o.querySelector("code"), h = o.querySelector(".line-numbers-rows");
|
|
844
|
+
if (!(!c || !h)) {
|
|
845
|
+
var i = o.querySelector(".line-numbers-sizer"), b = c.textContent.split(t);
|
|
846
|
+
i || (i = document.createElement("span"), i.className = "line-numbers-sizer", c.appendChild(i)), i.innerHTML = "0", i.style.display = "block";
|
|
847
|
+
var l = i.getBoundingClientRect().height;
|
|
847
848
|
return i.innerHTML = "", {
|
|
848
849
|
element: o,
|
|
849
|
-
lines:
|
|
850
|
+
lines: b,
|
|
850
851
|
lineHeights: [],
|
|
851
|
-
oneLinerHeight:
|
|
852
|
+
oneLinerHeight: l,
|
|
852
853
|
sizer: i
|
|
853
854
|
};
|
|
854
855
|
}
|
|
855
856
|
}).filter(Boolean);
|
|
856
|
-
|
|
857
|
-
var
|
|
858
|
-
i[
|
|
859
|
-
if (
|
|
860
|
-
var
|
|
861
|
-
|
|
857
|
+
m.forEach(function(o) {
|
|
858
|
+
var c = o.sizer, h = o.lines, i = o.lineHeights, b = o.oneLinerHeight;
|
|
859
|
+
i[h.length - 1] = void 0, h.forEach(function(l, _) {
|
|
860
|
+
if (l && l.length > 1) {
|
|
861
|
+
var y = c.appendChild(document.createElement("span"));
|
|
862
|
+
y.style.display = "block", y.textContent = l;
|
|
862
863
|
} else
|
|
863
|
-
i[
|
|
864
|
+
i[_] = b;
|
|
864
865
|
});
|
|
865
|
-
}),
|
|
866
|
-
for (var
|
|
867
|
-
|
|
868
|
-
}),
|
|
869
|
-
var
|
|
870
|
-
|
|
871
|
-
|
|
866
|
+
}), m.forEach(function(o) {
|
|
867
|
+
for (var c = o.sizer, h = o.lineHeights, i = 0, b = 0; b < h.length; b++)
|
|
868
|
+
h[b] === void 0 && (h[b] = c.children[i++].getBoundingClientRect().height);
|
|
869
|
+
}), m.forEach(function(o) {
|
|
870
|
+
var c = o.sizer, h = o.element.querySelector(".line-numbers-rows");
|
|
871
|
+
c.style.display = "none", c.innerHTML = "", o.lineHeights.forEach(function(i, b) {
|
|
872
|
+
h.children[b].style.height = i + "px";
|
|
872
873
|
});
|
|
873
874
|
});
|
|
874
875
|
}
|
|
875
876
|
}
|
|
876
|
-
function
|
|
877
|
+
function d(n) {
|
|
877
878
|
return n ? window.getComputedStyle ? getComputedStyle(n) : n.currentStyle || null : null;
|
|
878
879
|
}
|
|
879
|
-
var
|
|
880
|
+
var f = void 0;
|
|
880
881
|
window.addEventListener("resize", function() {
|
|
881
|
-
e.assumeViewportIndependence &&
|
|
882
|
+
e.assumeViewportIndependence && f === window.innerWidth || (f = window.innerWidth, s(Array.prototype.slice.call(document.querySelectorAll("pre." + r))));
|
|
882
883
|
}), Prism.hooks.add("complete", function(n) {
|
|
883
884
|
if (n.code) {
|
|
884
|
-
var
|
|
885
|
+
var m = (
|
|
885
886
|
/** @type {Element} */
|
|
886
887
|
n.element
|
|
887
888
|
), o = (
|
|
888
889
|
/** @type {HTMLElement} */
|
|
889
|
-
|
|
890
|
+
m.parentNode
|
|
890
891
|
);
|
|
891
|
-
if (!(!o || !/pre/i.test(o.nodeName)) && !
|
|
892
|
-
|
|
893
|
-
var
|
|
894
|
-
i = document.createElement("span"), i.setAttribute("aria-hidden", "true"), i.className = "line-numbers-rows", i.innerHTML =
|
|
892
|
+
if (!(!o || !/pre/i.test(o.nodeName)) && !m.querySelector(".line-numbers-rows") && Prism.util.isActive(m, r)) {
|
|
893
|
+
m.classList.remove(r), o.classList.add(r);
|
|
894
|
+
var c = n.code.match(t), h = c ? c.length + 1 : 1, i, b = new Array(h + 1).join("<span></span>");
|
|
895
|
+
i = document.createElement("span"), i.setAttribute("aria-hidden", "true"), i.className = "line-numbers-rows", i.innerHTML = b, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), n.element.appendChild(i), s([o]), Prism.hooks.run("line-numbers", n);
|
|
895
896
|
}
|
|
896
897
|
}
|
|
897
898
|
}), Prism.hooks.add("line-numbers", function(n) {
|
|
898
899
|
n.plugins = n.plugins || {}, n.plugins.lineNumbers = !0;
|
|
899
900
|
});
|
|
900
901
|
})();
|
|
901
|
-
const ft = /* @__PURE__ */
|
|
902
|
+
const ft = /* @__PURE__ */ I({
|
|
902
903
|
__name: "ScalarCodeBlock",
|
|
903
904
|
props: {
|
|
904
905
|
content: {},
|
|
@@ -906,32 +907,32 @@ const ft = /* @__PURE__ */ T({
|
|
|
906
907
|
lineNumbers: { type: Boolean, default: !1 }
|
|
907
908
|
},
|
|
908
909
|
setup(r) {
|
|
909
|
-
const t = r, { plugins: e, highlightElement:
|
|
910
|
+
const t = r, { plugins: e, highlightElement: s } = de, d = z(null), f = H(() => t.lang === "node" ? "js" : t.lang);
|
|
910
911
|
return e.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/", te(
|
|
911
912
|
() => [t.lang, t.content],
|
|
912
913
|
() => {
|
|
913
|
-
|
|
914
|
+
d.value && re(() => s(d.value));
|
|
914
915
|
}
|
|
915
916
|
), Z(() => {
|
|
916
|
-
|
|
917
|
-
}), (n,
|
|
917
|
+
d.value && s(d.value);
|
|
918
|
+
}), (n, m) => (w(), C("pre", {
|
|
918
919
|
class: k(["scalar-component scalar-codeblock-pre", {
|
|
919
920
|
"line-numbers": n.lineNumbers
|
|
920
921
|
}])
|
|
921
922
|
}, [
|
|
922
|
-
|
|
923
|
+
A("code", {
|
|
923
924
|
ref_key: "el",
|
|
924
|
-
ref:
|
|
925
|
-
class: k(`scalar-codeblock-code lang-${
|
|
925
|
+
ref: d,
|
|
926
|
+
class: k(`scalar-codeblock-code lang-${f.value}`)
|
|
926
927
|
}, M(n.content), 3)
|
|
927
928
|
], 2));
|
|
928
929
|
}
|
|
929
930
|
}), Ee = (r) => Object.fromEntries(Array.from(r).map((t) => [t.name, t.value])), Le = (r) => ({ raw: t }) => {
|
|
930
|
-
const
|
|
931
|
-
if (
|
|
931
|
+
const s = new r().parseFromString(t, "image/svg+xml");
|
|
932
|
+
if (s.getElementsByTagName("parsererror").length)
|
|
932
933
|
return;
|
|
933
|
-
const
|
|
934
|
-
return ne("svg", { ...o, innerHTML:
|
|
934
|
+
const d = s.documentElement, f = Ee(d.attributes), { width: n, height: m, ...o } = f;
|
|
935
|
+
return ne("svg", { ...o, innerHTML: d.innerHTML });
|
|
935
936
|
}, Ae = ae(async () => {
|
|
936
937
|
const r = typeof DOMParser > "u" ? (await import("@xmldom/xmldom")).DOMParser : DOMParser, t = Le(r);
|
|
937
938
|
return t.props = {
|
|
@@ -1034,7 +1035,7 @@ const ft = /* @__PURE__ */ T({
|
|
|
1034
1035
|
</svg>`, q = /* @__PURE__ */ Object.assign({ "./Add.svg": Te, "./CheckMark.svg": Ie, "./ChevronDown.svg": Me, "./ChevronLeft.svg": Ne, "./ChevronRight.svg": je, "./ChevronUp.svg": Oe, "./Clipboard.svg": Be, "./Close.svg": De, "./DarkMode.svg": Pe, "./Ellipses.svg": ze, "./ExternalLink.svg": Re, "./GitHub.svg": He, "./LightDarkModeToggle.svg": $e, "./LightMode.svg": Ge, "./Logo.svg": qe, "./LogoAPI.svg": Ve, "./LogoClient.svg": Fe, "./LogoMarket.svg": Ue, "./LogoSwagger.svg": Ze, "./Menu.svg": We, "./PaperAirplane.svg": Xe, "./Search.svg": Ke }), Ye = (r) => {
|
|
1035
1036
|
const t = `./${r}.svg`;
|
|
1036
1037
|
return q[t] === void 0 ? (console.warn(`Could not find icon: ${r}`), "") : q[t];
|
|
1037
|
-
}, Y = /* @__PURE__ */
|
|
1038
|
+
}, Y = /* @__PURE__ */ I({
|
|
1038
1039
|
__name: "ScalarIcon",
|
|
1039
1040
|
props: {
|
|
1040
1041
|
icon: {},
|
|
@@ -1055,14 +1056,14 @@ const ft = /* @__PURE__ */ T({
|
|
|
1055
1056
|
defaultVariants: {
|
|
1056
1057
|
size: "full"
|
|
1057
1058
|
}
|
|
1058
|
-
}),
|
|
1059
|
-
return (
|
|
1059
|
+
}), s = H(() => Ye(t.icon));
|
|
1060
|
+
return (d, f) => s.value ? (w(), P(v(Ae), {
|
|
1060
1061
|
key: 0,
|
|
1061
|
-
class: k(v(
|
|
1062
|
-
raw:
|
|
1063
|
-
}, null, 8, ["class", "raw"])) :
|
|
1062
|
+
class: k(v(E)("scalar-icon", v(e)({ size: d.size }))),
|
|
1063
|
+
raw: s.value
|
|
1064
|
+
}, null, 8, ["class", "raw"])) : T("", !0);
|
|
1064
1065
|
}
|
|
1065
|
-
}), Je = ["ariaDisabled"], Qe = { class: "sr-only" }, et = /* @__PURE__ */
|
|
1066
|
+
}), Je = ["ariaDisabled"], Qe = { class: "sr-only" }, et = /* @__PURE__ */ I({
|
|
1066
1067
|
__name: "ScalarIconButton",
|
|
1067
1068
|
props: {
|
|
1068
1069
|
label: {},
|
|
@@ -1087,13 +1088,13 @@ const ft = /* @__PURE__ */ T({
|
|
|
1087
1088
|
variant: K
|
|
1088
1089
|
}
|
|
1089
1090
|
});
|
|
1090
|
-
return (e,
|
|
1091
|
+
return (e, s) => (w(), C("button", {
|
|
1091
1092
|
ariaDisabled: e.disabled || void 0,
|
|
1092
|
-
class: k(v(
|
|
1093
|
+
class: k(v(E)(v(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
|
|
1093
1094
|
type: "button"
|
|
1094
1095
|
}, [
|
|
1095
1096
|
D(v(Y), { icon: e.icon }, null, 8, ["icon"]),
|
|
1096
|
-
|
|
1097
|
+
A("span", Qe, M(e.label), 1)
|
|
1097
1098
|
], 10, Je));
|
|
1098
1099
|
}
|
|
1099
1100
|
}), bt = () => V({
|
|
@@ -1104,7 +1105,7 @@ const ft = /* @__PURE__ */ T({
|
|
|
1104
1105
|
hide() {
|
|
1105
1106
|
this.open = !1;
|
|
1106
1107
|
}
|
|
1107
|
-
}), tt = /* @__PURE__ */
|
|
1108
|
+
}), tt = /* @__PURE__ */ I({
|
|
1108
1109
|
__name: "ScalarModal",
|
|
1109
1110
|
props: {
|
|
1110
1111
|
state: {},
|
|
@@ -1133,14 +1134,14 @@ const ft = /* @__PURE__ */ T({
|
|
|
1133
1134
|
}
|
|
1134
1135
|
}
|
|
1135
1136
|
});
|
|
1136
|
-
return (e,
|
|
1137
|
+
return (e, s) => (w(), P(v(ue), {
|
|
1137
1138
|
open: e.state.open,
|
|
1138
|
-
onClose:
|
|
1139
|
+
onClose: s[0] || (s[0] = (d) => e.state.hide())
|
|
1139
1140
|
}, {
|
|
1140
1141
|
default: O(() => [
|
|
1141
|
-
|
|
1142
|
+
A("div", {
|
|
1142
1143
|
class: k(
|
|
1143
|
-
v(
|
|
1144
|
+
v(E)(
|
|
1144
1145
|
"scalar-modal-layout fixed left-0 top-0",
|
|
1145
1146
|
"z-[1001] h-[100dvh] w-[100dvw]",
|
|
1146
1147
|
"bg-backdrop p-5 opacity-0"
|
|
@@ -1160,11 +1161,11 @@ const ft = /* @__PURE__ */ T({
|
|
|
1160
1161
|
oe(M(e.title), 1)
|
|
1161
1162
|
]),
|
|
1162
1163
|
_: 1
|
|
1163
|
-
}, 8, ["class"])) :
|
|
1164
|
+
}, 8, ["class"])) : T("", !0),
|
|
1164
1165
|
D(v(he), {
|
|
1165
1166
|
class: k([
|
|
1166
1167
|
"scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
|
|
1167
|
-
v(
|
|
1168
|
+
v(E)(
|
|
1168
1169
|
e.bodyClass,
|
|
1169
1170
|
e.variant === "history" && "pt-3",
|
|
1170
1171
|
e.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
|
|
@@ -1184,7 +1185,7 @@ const ft = /* @__PURE__ */ T({
|
|
|
1184
1185
|
_: 3
|
|
1185
1186
|
}, 8, ["open"]));
|
|
1186
1187
|
}
|
|
1187
|
-
}), rt = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-
|
|
1188
|
+
}), rt = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-ff85ced0"]]), at = { class: "scalar-input-container relative" }, nt = ["for"], ot = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, st = /* @__PURE__ */ I({
|
|
1188
1189
|
__name: "ScalarTextField",
|
|
1189
1190
|
props: {
|
|
1190
1191
|
modelValue: {},
|
|
@@ -1201,7 +1202,7 @@ const ft = /* @__PURE__ */ T({
|
|
|
1201
1202
|
},
|
|
1202
1203
|
emits: ["submit", "update:modelValue"],
|
|
1203
1204
|
setup(r, { emit: t }) {
|
|
1204
|
-
const e = r,
|
|
1205
|
+
const e = r, s = t, d = N({
|
|
1205
1206
|
base: "scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
|
|
1206
1207
|
variants: {
|
|
1207
1208
|
focus: {
|
|
@@ -1209,81 +1210,81 @@ const ft = /* @__PURE__ */ T({
|
|
|
1209
1210
|
},
|
|
1210
1211
|
error: { true: "scalar-input-wrapper-error border-error" }
|
|
1211
1212
|
}
|
|
1212
|
-
}),
|
|
1213
|
-
let
|
|
1213
|
+
}), f = F(), n = f.id || `id-${ge()}`, m = z(), o = z(!1);
|
|
1214
|
+
let c;
|
|
1214
1215
|
if (e.isMultiline) {
|
|
1215
|
-
const { triggerResize:
|
|
1216
|
-
element:
|
|
1216
|
+
const { triggerResize: l } = ve({
|
|
1217
|
+
element: m,
|
|
1217
1218
|
input: e.modelValue
|
|
1218
1219
|
});
|
|
1219
|
-
|
|
1220
|
+
c = l;
|
|
1220
1221
|
}
|
|
1221
|
-
function
|
|
1222
|
-
const
|
|
1223
|
-
e.isMultiline &&
|
|
1222
|
+
function h(l) {
|
|
1223
|
+
const _ = l.target.value;
|
|
1224
|
+
e.isMultiline && c(), e.handleFieldChange ? e.handleFieldChange(_) : s("update:modelValue", _);
|
|
1224
1225
|
}
|
|
1225
|
-
function
|
|
1226
|
-
const
|
|
1227
|
-
e.handleFieldSubmit ? e.handleFieldSubmit(
|
|
1226
|
+
function i(l) {
|
|
1227
|
+
const _ = l.target, y = e.disableTrim || e.isMultiline ? _.value : _.value.trim();
|
|
1228
|
+
e.handleFieldSubmit ? e.handleFieldSubmit(y) : s("submit", y);
|
|
1228
1229
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1230
|
+
function b(l) {
|
|
1231
|
+
o.value = !1, e.emitOnBlur && e.modelValue && i(l);
|
|
1231
1232
|
}
|
|
1232
1233
|
return Z(() => {
|
|
1233
|
-
var
|
|
1234
|
-
Object.prototype.hasOwnProperty.call(
|
|
1235
|
-
}), (
|
|
1236
|
-
|
|
1237
|
-
class: k(v(
|
|
1234
|
+
var l;
|
|
1235
|
+
Object.prototype.hasOwnProperty.call(f, "autofocus") && ((l = m.value) == null || l.focus());
|
|
1236
|
+
}), (l, _) => (w(), C("div", at, [
|
|
1237
|
+
A("div", {
|
|
1238
|
+
class: k(v(d)({ error: l.error, focus: o.value }))
|
|
1238
1239
|
}, [
|
|
1239
|
-
(w(), P(se(
|
|
1240
|
+
(w(), P(se(l.isMultiline ? "textarea" : "input"), U({ id: v(n) }, l.$attrs, {
|
|
1240
1241
|
ref_key: "input",
|
|
1241
|
-
ref:
|
|
1242
|
+
ref: m,
|
|
1242
1243
|
class: [
|
|
1243
1244
|
"scalar-input",
|
|
1244
|
-
v(
|
|
1245
|
-
{ "min-h-[77px]":
|
|
1245
|
+
v(E)(
|
|
1246
|
+
{ "min-h-[77px]": l.isMultiline },
|
|
1246
1247
|
"z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
|
|
1247
1248
|
"outline-none transition-opacity"
|
|
1248
1249
|
)
|
|
1249
1250
|
],
|
|
1250
|
-
placeholder:
|
|
1251
|
-
value:
|
|
1252
|
-
onBlur:
|
|
1253
|
-
onFocus:
|
|
1254
|
-
onInput:
|
|
1255
|
-
onKeyup: le(
|
|
1256
|
-
}), null, 16, ["id", "class", "placeholder", "value"
|
|
1257
|
-
|
|
1251
|
+
placeholder: l.placeholder,
|
|
1252
|
+
value: l.modelValue,
|
|
1253
|
+
onBlur: b,
|
|
1254
|
+
onFocus: _[0] || (_[0] = (y) => o.value = !0),
|
|
1255
|
+
onInput: h,
|
|
1256
|
+
onKeyup: le(i, ["enter"])
|
|
1257
|
+
}), null, 16, ["id", "class", "placeholder", "value"])),
|
|
1258
|
+
l.label ? (w(), C("label", {
|
|
1258
1259
|
key: 0,
|
|
1259
1260
|
class: k(
|
|
1260
|
-
v(
|
|
1261
|
+
v(E)(
|
|
1261
1262
|
"scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
|
|
1262
1263
|
"shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
|
|
1263
1264
|
)
|
|
1264
1265
|
),
|
|
1265
|
-
for: v(
|
|
1266
|
+
for: v(n),
|
|
1266
1267
|
style: W({
|
|
1267
|
-
"box-shadow": `0 0 4px 4px ${
|
|
1268
|
-
"background-color":
|
|
1268
|
+
"box-shadow": `0 0 4px 4px ${l.labelShadowColor}`,
|
|
1269
|
+
"background-color": l.labelShadowColor
|
|
1269
1270
|
})
|
|
1270
|
-
}, M(
|
|
1271
|
-
|
|
1272
|
-
B(
|
|
1271
|
+
}, M(l.label), 15, nt)) : T("", !0),
|
|
1272
|
+
A("div", ot, [
|
|
1273
|
+
B(l.$slots, "default", {}, void 0, !0)
|
|
1273
1274
|
])
|
|
1274
1275
|
], 2),
|
|
1275
|
-
|
|
1276
|
+
A("span", {
|
|
1276
1277
|
class: k(
|
|
1277
|
-
v(
|
|
1278
|
+
v(E)(
|
|
1278
1279
|
"helper-text before:rounded-full mt-1.5 flex items-center text-xs text-error before:font-black",
|
|
1279
1280
|
"before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
|
|
1280
1281
|
"before:bg-error before:text-white before:content-['!'] empty:hidden"
|
|
1281
1282
|
)
|
|
1282
1283
|
)
|
|
1283
|
-
}, M(
|
|
1284
|
+
}, M(l.helperText), 3)
|
|
1284
1285
|
]));
|
|
1285
1286
|
}
|
|
1286
|
-
}), lt = /* @__PURE__ */ $(st, [["__scopeId", "data-v-
|
|
1287
|
+
}), lt = /* @__PURE__ */ $(st, [["__scopeId", "data-v-4717ec50"]]), kt = {
|
|
1287
1288
|
boxShadow: {
|
|
1288
1289
|
DEFAULT: "var(--theme-shadow-1, var(--default-theme-shadow-1))",
|
|
1289
1290
|
md: "var(--theme-shadow-2, var(--default-theme-shadow-2))",
|