@oneb/ui-vue 0.3.31 → 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/dist/ChevronLeftIcon-7505e081.cjs +1 -0
- package/dist/ChevronLeftIcon-bb9adb5b.js +20 -0
- package/dist/ChevronRightIcon-2992cf0d.cjs +1 -0
- package/dist/ChevronRightIcon-b0585768.js +20 -0
- package/dist/ChevronUpIcon-64a673e1.cjs +1 -0
- package/dist/{ChevronRightIcon-4549a26b.js → ChevronUpIcon-c43f27a9.js} +2 -19
- package/dist/InformationCircleIcon-2f6097a0.js +20 -0
- package/dist/InformationCircleIcon-d6b67d5d.cjs +1 -0
- package/dist/MagnifyingGlassIcon-adf871ba.cjs +1 -0
- package/dist/MagnifyingGlassIcon-ca213d3d.js +20 -0
- package/dist/{NoSymbolIcon-e58a9aee.js → NoSymbolIcon-b3470a26.js} +8 -25
- package/dist/{NoSymbolIcon-5d326416.cjs → NoSymbolIcon-e84375bb.cjs} +1 -1
- package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-2c508e8a.js +79 -0
- package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-bf923b04.cjs +1 -0
- package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-b89117e7.js +521 -0
- package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-f6f7cd96.cjs +1 -0
- package/dist/OneHelpMenu-6ec63535.cjs +1 -0
- package/dist/{OneHelpMenu-73817f8a.js → OneHelpMenu-d5182c78.js} +118 -213
- package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-05266fc3.cjs +1 -0
- package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-bb2219c7.js +18 -0
- package/dist/OneModal-02a9a173.js +189 -0
- package/dist/OneModal-0e92c039.cjs +1 -0
- package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-c492c128.js +25 -0
- package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-e83a81ea.cjs +1 -0
- package/dist/SpinnerIcon-01be39fe.cjs +1 -0
- package/dist/{SpinnerIcon-74648c98.js → SpinnerIcon-516264ba.js} +5 -6
- package/dist/button/index.cjs +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +3 -4
- package/dist/checkbox/checkbox.d.ts +5 -0
- package/dist/checkbox/index.cjs +1 -1
- package/dist/checkbox/index.js +40 -34
- package/dist/chips/OneChips.vue.d.ts +2 -0
- package/dist/chips/chips.d.ts +25 -0
- package/dist/chips/index.cjs +1 -0
- package/dist/chips/index.d.ts +3 -0
- package/dist/chips/index.js +62 -0
- package/dist/clipboard-494e1513.cjs +1 -0
- package/dist/clipboard-733b79a1.js +22 -0
- package/dist/common/OneDetailsList.vue.d.ts +2 -0
- package/dist/common/OneDetailsRow.vue.d.ts +2 -0
- package/dist/common/index.cjs +1 -1
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.js +68 -16
- package/dist/composables/index.cjs +1 -0
- package/dist/composables/index.d.ts +18 -0
- package/dist/composables/index.js +91 -0
- package/dist/composables/useAsyncMethod.d.ts +17 -0
- package/dist/composables/useAsyncSelect.d.ts +26 -0
- package/dist/composables/useConfirm.d.ts +27 -0
- package/dist/composables/useCursorList.d.ts +42 -0
- package/dist/composables/useDebouncedRef.d.ts +6 -0
- package/dist/composables/useFileUpload.d.ts +21 -0
- package/dist/composables/useFormSubmit.d.ts +23 -0
- package/dist/composables/useIsMobile.d.ts +8 -0
- package/dist/confirm/OneConfirmHost.vue.d.ts +2 -0
- package/dist/confirm/confirm.d.ts +10 -0
- package/dist/confirm/index.cjs +1 -0
- package/dist/confirm/index.d.ts +5 -0
- package/dist/confirm/index.js +59 -0
- package/dist/cursorList/OneCursorList.vue.d.ts +2 -0
- package/dist/cursorList/index.cjs +1 -0
- package/dist/cursorList/index.d.ts +3 -0
- package/dist/cursorList/index.js +78 -0
- package/dist/dataTable/index.cjs +1 -1
- package/dist/dataTable/index.js +256 -301
- package/dist/dateTime/OneDateTime.vue.d.ts +2 -0
- package/dist/dateTime/dateTime.d.ts +43 -0
- package/dist/dateTime/index.cjs +1 -0
- package/dist/dateTime/index.d.ts +3 -0
- package/dist/dateTime/index.js +66 -0
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +302 -376
- package/dist/dropdown-5cb64ab7.cjs +1 -0
- package/dist/dropdown-c81fb945.js +101 -0
- package/dist/entityPicker/index.cjs +1 -1
- package/dist/entityPicker/index.js +57 -57
- package/dist/entityPicker/useEntityModal.d.ts +7 -3
- package/dist/errorsPage/OneCrashScreen.vue.d.ts +2 -0
- package/dist/errorsPage/OneErrorHero.vue.d.ts +2 -0
- package/dist/errorsPage/OneNotFoundPage.vue.d.ts +2 -0
- package/dist/errorsPage/OneServerErrorPage.vue.d.ts +2 -0
- package/dist/errorsPage/OneSnakeGame.vue.d.ts +2 -0
- package/dist/errorsPage/createAppErrorHandler.d.ts +24 -0
- package/dist/errorsPage/errorsType.d.ts +5 -0
- package/dist/errorsPage/index.cjs +1 -1
- package/dist/errorsPage/index.d.ts +8 -0
- package/dist/errorsPage/index.js +557 -28
- package/dist/errorsPage/useCrashState.d.ts +10 -0
- package/dist/fileUpload/OneDropzone.vue.d.ts +2 -0
- package/dist/fileUpload/OneFileUpload.vue.d.ts +2 -0
- package/dist/fileUpload/fileUpload.d.ts +17 -0
- package/dist/fileUpload/index.cjs +1 -0
- package/dist/fileUpload/index.d.ts +6 -0
- package/dist/fileUpload/index.js +228 -0
- package/dist/filterBuilder/OneFilterBuilder.vue.d.ts +2 -0
- package/dist/filterBuilder/OneFilterGroup.vue.d.ts +2 -0
- package/dist/filterBuilder/OneFilterRule.vue.d.ts +2 -0
- package/dist/filterBuilder/filterBuilder.d.ts +17 -0
- package/dist/filterBuilder/index.cjs +1 -0
- package/dist/filterBuilder/index.d.ts +5 -0
- package/dist/filterBuilder/index.js +257 -0
- package/dist/form/form.d.ts +1 -1
- package/dist/form/index.cjs +1 -1
- package/dist/form/index.js +66 -574
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +99 -15
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +243 -104
- package/dist/indicators/OneStatCard.vue.d.ts +2 -0
- package/dist/indicators/index.cjs +1 -1
- package/dist/indicators/index.d.ts +1 -0
- package/dist/indicators/index.js +66 -29
- package/dist/infobox/index.cjs +1 -1
- package/dist/infobox/index.js +4 -3
- package/dist/label/index.cjs +1 -1
- package/dist/label/index.js +5 -5
- package/dist/layout/OneAuthLayout.vue.d.ts +2 -0
- package/dist/layout/OneBackButton.vue.d.ts +2 -0
- package/dist/layout/OneBreadcrumbs.vue.d.ts +2 -0
- package/dist/layout/OneEmptyLayout.vue.d.ts +6 -0
- package/dist/layout/OneGridLayout.vue.d.ts +2 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.d.ts +6 -1
- package/dist/layout/index.js +1057 -765
- package/dist/layout/layout.d.ts +11 -0
- package/dist/modal/OneModalHost.vue.d.ts +2 -0
- package/dist/modal/index.cjs +1 -1
- package/dist/modal/index.d.ts +3 -0
- package/dist/modal/index.js +84 -27
- package/dist/modal/modal.d.ts +9 -0
- package/dist/modal/useModalStack.d.ts +20 -0
- package/dist/notifications/OneNotificationItem.vue.d.ts +2 -0
- package/dist/notifications/OneNotificationsBell.vue.d.ts +2 -0
- package/dist/notifications/OneNotificationsPanel.vue.d.ts +2 -0
- package/dist/notifications/index.cjs +1 -0
- package/dist/notifications/index.d.ts +7 -0
- package/dist/notifications/index.js +477 -0
- package/dist/notifications/notifications.d.ts +53 -0
- package/dist/notifications/useNotifyfeed.d.ts +32 -0
- package/dist/periodPicker/index.cjs +1 -1
- package/dist/periodPicker/index.js +126 -139
- package/dist/popover/OnePopover.vue.d.ts +2 -0
- package/dist/popover/index.cjs +1 -0
- package/dist/popover/index.d.ts +3 -0
- package/dist/popover/index.js +102 -0
- package/dist/popover/popover.d.ts +31 -0
- package/dist/progress/OneProgress.vue.d.ts +2 -0
- package/dist/progress/index.cjs +1 -0
- package/dist/progress/index.d.ts +3 -0
- package/dist/progress/index.js +74 -0
- package/dist/progress/progress.d.ts +32 -0
- package/dist/searchInput/OneSearchInput.vue.d.ts +2 -0
- package/dist/searchInput/index.cjs +1 -0
- package/dist/searchInput/index.d.ts +3 -0
- package/dist/searchInput/index.js +103 -0
- package/dist/searchInput/searchInput.d.ts +39 -0
- package/dist/settings/OneSettingsLayout.vue.d.ts +2 -0
- package/dist/settings/OneSettingsRow.vue.d.ts +2 -0
- package/dist/settings/OneSettingsSection.vue.d.ts +2 -0
- package/dist/settings/index.cjs +1 -0
- package/dist/settings/index.d.ts +4 -0
- package/dist/settings/index.js +116 -0
- package/dist/spinner/OneSpinner.vue.d.ts +2 -0
- package/dist/spinner/index.cjs +1 -0
- package/dist/spinner/index.d.ts +3 -0
- package/dist/spinner/index.js +30 -0
- package/dist/spinner/spinner.d.ts +10 -0
- package/dist/stageBadge/OneStageBadge.vue.d.ts +2 -0
- package/dist/stageBadge/index.cjs +1 -0
- package/dist/stageBadge/index.d.ts +3 -0
- package/dist/stageBadge/index.js +126 -0
- package/dist/stageBadge/stageBadge.d.ts +64 -0
- package/dist/stepper/OneStepper.vue.d.ts +2 -0
- package/dist/stepper/index.cjs +1 -0
- package/dist/stepper/index.d.ts +3 -0
- package/dist/stepper/index.js +53 -0
- package/dist/stepper/stepper.d.ts +24 -0
- package/dist/style.css +1 -1
- package/dist/switch/index.cjs +1 -1
- package/dist/switch/index.js +3 -4
- package/dist/tabs/OneTab.vue.d.ts +2 -0
- package/dist/tabs/OneTabs.vue.d.ts +2 -0
- package/dist/tabs/index.cjs +1 -0
- package/dist/tabs/index.d.ts +4 -0
- package/dist/tabs/index.js +64 -0
- package/dist/tabs/tabs.d.ts +7 -0
- package/dist/toast/OneMascotToast.vue.d.ts +2 -0
- package/dist/toast/RabbitIcon.vue.d.ts +2 -0
- package/dist/toast/index.cjs +1 -1
- package/dist/toast/index.d.ts +4 -0
- package/dist/toast/index.js +139 -73
- package/dist/toast/useMascotToast.d.ts +12 -0
- package/dist/tooltip/OneTooltip.vue.d.ts +2 -0
- package/dist/tooltip/index.cjs +2 -2
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +33 -30
- package/dist/useConfirm-6344b49d.cjs +1 -0
- package/dist/useConfirm-74e99a5c.js +23 -0
- package/dist/useCursorList-5c1b57aa.js +62 -0
- package/dist/useCursorList-e1cb41e7.cjs +1 -0
- package/dist/useElementWidth-b36a7ce9.js +40 -0
- package/dist/useElementWidth-b3e53f48.cjs +1 -0
- package/dist/useFileUpload-228dbc07.js +24 -0
- package/dist/useFileUpload-f47622bb.cjs +1 -0
- package/dist/useIsMobile-7b1f08cf.cjs +1 -0
- package/dist/useIsMobile-98fc0cf9.js +7 -0
- package/dist/useMediaQuery-1d87df02.cjs +1 -0
- package/dist/useMediaQuery-77a19b18.js +37 -0
- package/dist/useModal-6a5d870b.js +30 -0
- package/dist/useModal-aa6f4a57.cjs +1 -0
- package/dist/userList/OneUserInviteModal.vue.d.ts +2 -0
- package/dist/userList/OneUserList.vue.d.ts +2 -0
- package/dist/userList/OneUserListItem.vue.d.ts +2 -0
- package/dist/userList/index.cjs +1 -0
- package/dist/userList/index.d.ts +4 -0
- package/dist/userList/index.js +559 -0
- package/dist/utils/clipboard.d.ts +6 -0
- package/dist/utils/format.d.ts +17 -0
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +125 -0
- package/dist/utils/string.d.ts +25 -0
- package/dist/utils/versionChecker.d.ts +26 -0
- package/package.json +221 -23
- package/dist/ChevronRightIcon-7a2f0c20.cjs +0 -1
- package/dist/OneHelpMenu-c6e88d8f.cjs +0 -1
- package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
- package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
- package/dist/SpinnerIcon-ccb6f3fc.cjs +0 -1
- package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
- package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
- package/dist/useModal-0c73777f.cjs +0 -1
- package/dist/useModal-7fe9444b.js +0 -194
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("../_plugin-vue_export-helper-f246444f.cjs"),m={color:{type:String,default:"red"},size:{type:String,default:"sm"},text:{type:String,default:""},variant:{type:String,default:"indicators"},bargeVariant:{type:String,default:"stand"}},u={class:"px-1 font-semibold",style:{color:"white"}},p=e.defineComponent({__name:"OneIndicators",props:{...m},setup(i){const t=i,o=e.computed(()=>{switch(t.color){case"green":return"#22c55e";case"blue":return"#3b82f6";case"red":return"#ef4444";case"yellow":return"#eab308";default:return"#E3ECF2"}}),l=e.computed(()=>{let s="",n="",r;return t.text?t.size==="sm"?(n="min-w-[12px]",r="textSm"):t.size==="md"?(n="min-w-[16px]",r="textMd"):t.size==="lg"&&(n="min-w-[20px]",r="textLg"):t.size==="sm"?s="w-3 min-w-[12px]":t.size==="lg"?s="w-5 min-w-[20px]":t.size==="md"&&(s="w-4 min-w-[16px]"),`${s} ${r} ${n} h-${t.size==="sm"?3:t.size==="lg"?5:4}`}),a=e.computed(()=>{let s="",n="",r;return t.text?t.size==="sm"?(n="min-w-[44px]",r="textMd"):t.size==="md"?(n="min-w-[58px]",r="text10"):t.size==="lg"&&(n="min-w-[68px]",r="text-sm"):t.size==="sm"?s="min-w-[44px]":t.size==="lg"?s="min-w-[68px]":t.size==="md"&&(s="min-w-[58px]"),`${s} ${r} ${n} h-${t.size==="sm"?5:t.size==="lg"?7:6}`}),d=e.computed(()=>{const s=t.bargeVariant==="stand"?"1A":"",n=t.bargeVariant==="stand"?"1px solid":"none";return{backgroundColor:`${o.value}${s}`,border:n,borderColor:o.value}});return(s,n)=>t.variant==="indicators"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded-full border border-white flex items-center justify-center w-max",[l.value]]),style:e.normalizeStyle({backgroundColor:o.value})},[e.createElementVNode("p",u,e.toDisplayString(s.text),1)],6)):t.variant==="barge"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["rounded px-2 py-1 text-center w-max",[a.value,{"rounded-full":s.bargeVariant==="round",rounded:s.bargeVariant!=="round"}]]),style:e.normalizeStyle([d.value])},[e.createElementVNode("p",{class:"font-medium",style:e.normalizeStyle({color:s.bargeVariant!=="stand"?"white":o.value})},e.toDisplayString(s.text),5)],6)):e.createCommentVNode("",!0)}});const f=c._export_sfc(p,[["__scopeId","data-v-f0eea1db"]]),g={class:"bg-secondary-body-active rounded-10 p-4 min-h-[90px] flex items-start justify-between gap-3"},x={class:"flex flex-col justify-between gap-2 min-w-0 self-stretch"},y={class:"text-sm truncate"},b={class:"min-w-0"},_={class:"text-2xl font-bold leading-none"},w={key:0,class:"text-xl leading-none ml-1"},v={key:0,class:"bg-secondary-body rounded-10 p-1 shrink-0"},h=e.defineComponent({__name:"OneStatCard",props:{label:{type:String,required:!0},value:{type:[String,Number],required:!0},suffix:{type:String,default:void 0}},setup(i){return(t,o)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",x,[e.createElementVNode("div",y,e.toDisplayString(i.label),1),e.createElementVNode("div",b,[e.createElementVNode("span",_,e.toDisplayString(i.value),1),i.suffix?(e.openBlock(),e.createElementBlock("span",w,e.toDisplayString(i.suffix),1)):e.createCommentVNode("",!0)])]),t.$slots.icon?(e.openBlock(),e.createElementBlock("div",v,[e.renderSlot(t.$slots,"icon")])):e.createCommentVNode("",!0)]))}});exports.OneIndicators=f;exports.OneStatCard=h;
|
package/dist/indicators/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as p, computed as c, openBlock as l, createElementBlock as o, normalizeClass as f, normalizeStyle as u, createElementVNode as r, toDisplayString as d, createCommentVNode as m, renderSlot as y } from "vue";
|
|
2
|
+
import { _ } from "../_plugin-vue_export-helper-dad06003.js";
|
|
3
|
+
const w = {
|
|
4
4
|
color: {
|
|
5
5
|
type: String,
|
|
6
6
|
default: "red"
|
|
@@ -21,16 +21,16 @@ const y = {
|
|
|
21
21
|
type: String,
|
|
22
22
|
default: "stand"
|
|
23
23
|
}
|
|
24
|
-
},
|
|
24
|
+
}, h = {
|
|
25
25
|
class: "px-1 font-semibold",
|
|
26
26
|
style: { color: "white" }
|
|
27
|
-
},
|
|
27
|
+
}, v = /* @__PURE__ */ p({
|
|
28
28
|
__name: "OneIndicators",
|
|
29
29
|
props: {
|
|
30
|
-
...
|
|
30
|
+
...w
|
|
31
31
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const e =
|
|
32
|
+
setup(i) {
|
|
33
|
+
const e = i, a = c(() => {
|
|
34
34
|
switch (e.color) {
|
|
35
35
|
case "green":
|
|
36
36
|
return "#22c55e";
|
|
@@ -43,42 +43,79 @@ const y = {
|
|
|
43
43
|
default:
|
|
44
44
|
return "#E3ECF2";
|
|
45
45
|
}
|
|
46
|
-
}),
|
|
47
|
-
let t = "", s = "",
|
|
48
|
-
return e.text ? e.size === "sm" ? (s = "min-w-[12px]",
|
|
49
|
-
}),
|
|
50
|
-
let t = "", s = "",
|
|
51
|
-
return e.text ? e.size === "sm" ? (s = "min-w-[44px]",
|
|
52
|
-
}),
|
|
46
|
+
}), x = c(() => {
|
|
47
|
+
let t = "", s = "", n;
|
|
48
|
+
return e.text ? e.size === "sm" ? (s = "min-w-[12px]", n = "textSm") : e.size === "md" ? (s = "min-w-[16px]", n = "textMd") : e.size === "lg" && (s = "min-w-[20px]", n = "textLg") : e.size === "sm" ? t = "w-3 min-w-[12px]" : e.size === "lg" ? t = "w-5 min-w-[20px]" : e.size === "md" && (t = "w-4 min-w-[16px]"), `${t} ${n} ${s} h-${e.size === "sm" ? 3 : e.size === "lg" ? 5 : 4}`;
|
|
49
|
+
}), g = c(() => {
|
|
50
|
+
let t = "", s = "", n;
|
|
51
|
+
return e.text ? e.size === "sm" ? (s = "min-w-[44px]", n = "textMd") : e.size === "md" ? (s = "min-w-[58px]", n = "text10") : e.size === "lg" && (s = "min-w-[68px]", n = "text-sm") : e.size === "sm" ? t = "min-w-[44px]" : e.size === "lg" ? t = "min-w-[68px]" : e.size === "md" && (t = "min-w-[58px]"), `${t} ${n} ${s} h-${e.size === "sm" ? 5 : e.size === "lg" ? 7 : 6}`;
|
|
52
|
+
}), b = c(() => {
|
|
53
53
|
const t = e.bargeVariant === "stand" ? "1A" : "", s = e.bargeVariant === "stand" ? "1px solid" : "none";
|
|
54
54
|
return {
|
|
55
|
-
backgroundColor: `${
|
|
55
|
+
backgroundColor: `${a.value}${t}`,
|
|
56
56
|
border: s,
|
|
57
|
-
borderColor:
|
|
57
|
+
borderColor: a.value
|
|
58
58
|
};
|
|
59
59
|
});
|
|
60
60
|
return (t, s) => e.variant === "indicators" ? (l(), o("div", {
|
|
61
61
|
key: 0,
|
|
62
|
-
class:
|
|
63
|
-
style:
|
|
62
|
+
class: f(["rounded-full border border-white flex items-center justify-center w-max", [x.value]]),
|
|
63
|
+
style: u({ backgroundColor: a.value })
|
|
64
64
|
}, [
|
|
65
|
-
|
|
65
|
+
r("p", h, d(t.text), 1)
|
|
66
66
|
], 6)) : e.variant === "barge" ? (l(), o("div", {
|
|
67
67
|
key: 1,
|
|
68
|
-
class:
|
|
69
|
-
|
|
68
|
+
class: f(["rounded px-2 py-1 text-center w-max", [
|
|
69
|
+
g.value,
|
|
70
70
|
{ "rounded-full": t.bargeVariant === "round", rounded: t.bargeVariant !== "round" }
|
|
71
71
|
]]),
|
|
72
|
-
style:
|
|
72
|
+
style: u([b.value])
|
|
73
73
|
}, [
|
|
74
|
-
|
|
74
|
+
r("p", {
|
|
75
75
|
class: "font-medium",
|
|
76
|
-
style:
|
|
77
|
-
},
|
|
78
|
-
], 6)) :
|
|
76
|
+
style: u({ color: t.bargeVariant !== "stand" ? "white" : a.value })
|
|
77
|
+
}, d(t.text), 5)
|
|
78
|
+
], 6)) : m("", !0);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
const j = /* @__PURE__ */ _(v, [["__scopeId", "data-v-f0eea1db"]]), z = { class: "bg-secondary-body-active rounded-10 p-4 min-h-[90px] flex items-start justify-between gap-3" }, C = { class: "flex flex-col justify-between gap-2 min-w-0 self-stretch" }, S = { class: "text-sm truncate" }, $ = { class: "min-w-0" }, k = { class: "text-2xl font-bold leading-none" }, V = {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: "text-xl leading-none ml-1"
|
|
84
|
+
}, I = {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "bg-secondary-body rounded-10 p-1 shrink-0"
|
|
87
|
+
}, N = /* @__PURE__ */ p({
|
|
88
|
+
__name: "OneStatCard",
|
|
89
|
+
props: {
|
|
90
|
+
label: {
|
|
91
|
+
type: String,
|
|
92
|
+
required: !0
|
|
93
|
+
},
|
|
94
|
+
value: {
|
|
95
|
+
type: [String, Number],
|
|
96
|
+
required: !0
|
|
97
|
+
},
|
|
98
|
+
suffix: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: void 0
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
setup(i) {
|
|
104
|
+
return (e, a) => (l(), o("div", z, [
|
|
105
|
+
r("div", C, [
|
|
106
|
+
r("div", S, d(i.label), 1),
|
|
107
|
+
r("div", $, [
|
|
108
|
+
r("span", k, d(i.value), 1),
|
|
109
|
+
i.suffix ? (l(), o("span", V, d(i.suffix), 1)) : m("", !0)
|
|
110
|
+
])
|
|
111
|
+
]),
|
|
112
|
+
e.$slots.icon ? (l(), o("div", I, [
|
|
113
|
+
y(e.$slots, "icon")
|
|
114
|
+
])) : m("", !0)
|
|
115
|
+
]));
|
|
79
116
|
}
|
|
80
117
|
});
|
|
81
|
-
const h = /* @__PURE__ */ b(_, [["__scopeId", "data-v-f0eea1db"]]);
|
|
82
118
|
export {
|
|
83
|
-
|
|
119
|
+
j as OneIndicators,
|
|
120
|
+
N as OneStatCard
|
|
84
121
|
};
|
package/dist/infobox/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("../XMarkIcon-f94baa4c.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("../XMarkIcon-f94baa4c.cjs"),c=require("../NoSymbolIcon-e84375bb.cjs"),v=require("../InformationCircleIcon-d6b67d5d.cjs"),g={title:{type:String,required:!1},text:{type:String,required:!1},icon:{type:[Function,Object]},variant:{type:String,default:"info"},closable:{required:!1,type:Boolean,default:!0}},y={success:["bg-success-10"],warning:["bg-warning-10"],critical:["bg-danger-10"],info:["bg-primary-10"]},B=(r="info")=>{const o=[];return o.push(...y[r]??[]),o},h={key:0,class:"w-full"},x={class:"flex flex-col"},C={key:0,class:"w-full"},N={class:"flex justify-between"},E={class:"flex flex-row"},V={class:"text-xl font-medium pl-2"},w={key:0,class:"pt-3.5 px-8 font-light leading-6"},_={key:1,class:"flex justify-between"},I={key:0,class:"font-light leading-6 truncate pr-3"},S={key:2,class:"px-8 pt-2 flex gap-x-2.5 flex-shrink-0 mt-auto"},q=e.defineComponent({__name:"OneInfobox",props:g,emits:["hide"],setup(r,{emit:o}){const n=r,d=o,a=e.ref(!1),u={success:"text-success-base",warning:"text-warning-base",critical:"text-danger-base",info:"text-primary-base"},m={success:c.render,warning:c.render$1,critical:c.render$2,info:v.render},l=()=>{a.value=!0,d("hide")},p=e.computed(()=>B(n.variant)),f=e.computed(()=>u[n.variant]),k=e.computed(()=>n.icon??m[n.variant]);return(t,s)=>a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",{class:e.normalizeClass(["p-4 rounded",p.value])},[e.createElementVNode("div",x,[t.title?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("div",N,[e.createElementVNode("div",E,[e.createElementVNode("div",{class:e.normalizeClass(f.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{class:"h-7 w-7"}))],2),e.createElementVNode("p",V,e.toDisplayString(t.title),1)]),t.closable?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=b=>l())},[e.createVNode(e.unref(i.render),{class:"h-6 w-6"})])):e.createCommentVNode("",!0)]),t.text?(e.openBlock(),e.createElementBlock("p",w,e.toDisplayString(t.text),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",_,[t.text?(e.openBlock(),e.createElementBlock("p",I,e.toDisplayString(t.text),1)):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:s[1]||(s[1]=b=>l())},[e.createVNode(e.unref(i.render),{class:"h-6 w-6"})])):e.createCommentVNode("",!0)])),t.$slots.button?(e.openBlock(),e.createElementBlock("div",S,[e.renderSlot(t.$slots,"button",{hideBlock:l})])):e.createCommentVNode("",!0)])],2)]))}});exports.OneInfobox=q;
|
package/dist/infobox/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, ref as $, computed as u, openBlock as t, createElementBlock as s, createElementVNode as n, normalizeClass as p, createBlock as I, resolveDynamicComponent as B, toDisplayString as d, createVNode as m, unref as b, createCommentVNode as o, renderSlot as S } from "vue";
|
|
2
2
|
import { r as v } from "../XMarkIcon-51ef0691.js";
|
|
3
|
-
import { r as L, a as j, b as q
|
|
3
|
+
import { r as L, a as j, b as q } from "../NoSymbolIcon-b3470a26.js";
|
|
4
|
+
import { r as N } from "../InformationCircleIcon-2f6097a0.js";
|
|
4
5
|
const O = {
|
|
5
6
|
title: {
|
|
6
7
|
type: String,
|
|
@@ -48,7 +49,7 @@ const O = {
|
|
|
48
49
|
}, M = {
|
|
49
50
|
key: 2,
|
|
50
51
|
class: "px-8 pt-2 flex gap-x-2.5 flex-shrink-0 mt-auto"
|
|
51
|
-
},
|
|
52
|
+
}, W = /* @__PURE__ */ C({
|
|
52
53
|
__name: "OneInfobox",
|
|
53
54
|
props: O,
|
|
54
55
|
emits: ["hide"],
|
|
@@ -107,5 +108,5 @@ const O = {
|
|
|
107
108
|
}
|
|
108
109
|
});
|
|
109
110
|
export {
|
|
110
|
-
|
|
111
|
+
W as OneInfobox
|
|
111
112
|
};
|
package/dist/label/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=e.defineComponent({__name:"OneLabel",props:{size:{type:String,default:"standard"},color:{type:String,default:"blue"},filled:{type:Boolean,default:!0},text:{type:String,default:"Label"}},setup(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=e.defineComponent({__name:"OneLabel",props:{size:{type:String,default:"standard"},color:{type:String,default:"blue"},filled:{type:Boolean,default:!0},text:{type:String,default:"Label"}},setup(l){const t=l,s=e.ref(!1),r=e.computed(()=>{const n="inline-flex items-center cursor-pointer transition-opacity rounded-full",a=t.size==="mini"?"text-xs px-3 py-1":"text-sm px-4 py-2",i=t.filled?`${t.color}-filled`:`${t.color}-border`;return`${n} ${a} ${i} ${s.value?"opacity-80":"hover:opacity-90"}`}),c=()=>{s.value=!0},o=()=>{s.value=!1};return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value),onMousedown:c,onMouseup:o,onMouseleave:o},[e.createElementVNode("span",null,e.toDisplayString(l.text),1)],34))}});exports.OneLabel=u;
|
package/dist/label/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, ref as u, computed as p, openBlock as d, createElementBlock as f, normalizeClass as m, createElementVNode as
|
|
1
|
+
import { defineComponent as i, ref as u, computed as p, openBlock as d, createElementBlock as f, normalizeClass as m, createElementVNode as x, toDisplayString as y } from "vue";
|
|
2
2
|
const v = /* @__PURE__ */ i({
|
|
3
3
|
__name: "OneLabel",
|
|
4
4
|
props: {
|
|
@@ -25,20 +25,20 @@ const v = /* @__PURE__ */ i({
|
|
|
25
25
|
},
|
|
26
26
|
setup(s) {
|
|
27
27
|
const e = s, t = u(!1), a = p(() => {
|
|
28
|
-
const
|
|
29
|
-
return `${
|
|
28
|
+
const o = "inline-flex items-center cursor-pointer transition-opacity rounded-full", n = e.size === "mini" ? "text-xs px-3 py-1" : "text-sm px-4 py-2", c = e.filled ? `${e.color}-filled` : `${e.color}-border`;
|
|
29
|
+
return `${o} ${n} ${c} ${t.value ? "opacity-80" : "hover:opacity-90"}`;
|
|
30
30
|
}), r = () => {
|
|
31
31
|
t.value = !0;
|
|
32
32
|
}, l = () => {
|
|
33
33
|
t.value = !1;
|
|
34
34
|
};
|
|
35
|
-
return (
|
|
35
|
+
return (o, n) => (d(), f("div", {
|
|
36
36
|
class: m(a.value),
|
|
37
37
|
onMousedown: r,
|
|
38
38
|
onMouseup: l,
|
|
39
39
|
onMouseleave: l
|
|
40
40
|
}, [
|
|
41
|
-
|
|
41
|
+
x("span", null, y(s.text), 1)
|
|
42
42
|
], 34));
|
|
43
43
|
}
|
|
44
44
|
});
|