@onereach/ui-components 21.6.2 → 21.7.0-beta.5412.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/esm/{OrProgress-cgGfaP0m.mjs → OrProgress-KR0cTOFr.mjs} +20 -20
- package/dist/esm/OrProgress-KR0cTOFr.mjs.map +1 -0
- package/dist/esm/components/index.mjs +1 -1
- package/dist/esm/components/or-progress-v3/index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +4 -5
- package/dist/esm/OrProgress-cgGfaP0m.mjs.map +0 -1
|
@@ -122,48 +122,48 @@ const G = [
|
|
|
122
122
|
"root"
|
|
123
123
|
],
|
|
124
124
|
setup(e) {
|
|
125
|
-
const
|
|
125
|
+
const d = z(), {
|
|
126
126
|
header: f,
|
|
127
127
|
label: h,
|
|
128
128
|
percent: k,
|
|
129
129
|
footer: g
|
|
130
|
-
} = A(), { width:
|
|
130
|
+
} = A(), { width: u } = F(d), i = r(() => e.progress ?? (e.value ?? 0) / (e.maxValue ?? 1)), B = r(() => e.value ?? (e.progress ?? 0) * (e.maxValue ?? 1)), w = r(() => (i.value * 100).toFixed(e.precision) + "%"), m = r(() => e.type === a.Linear), p = r(() => e.type === a.Circle), P = r(() => !!f || !!h || !!k), b = r(() => !!g), v = r(() => e.loading ? s.Primary : e.color === s.Auto ? i.value <= 0.5 ? s.Success : i.value <= 0.95 ? s.Warning : s.Error : Object.values(s).includes(e.color) ? e.color : s.Success), L = r(() => W.value ? 20 : 16), V = r(() => [
|
|
131
131
|
"or-progress-v3",
|
|
132
132
|
...G,
|
|
133
133
|
...J[e.type]
|
|
134
|
-
]), V = r(() => [
|
|
135
|
-
...K
|
|
136
134
|
]), $ = r(() => [
|
|
137
|
-
...
|
|
135
|
+
...K
|
|
138
136
|
]), q = r(() => [
|
|
139
|
-
...
|
|
137
|
+
...Q
|
|
140
138
|
]), C = r(() => [
|
|
141
|
-
...
|
|
139
|
+
...U
|
|
142
140
|
]), D = r(() => [
|
|
141
|
+
...ee
|
|
142
|
+
]), N = r(() => [
|
|
143
143
|
...X
|
|
144
144
|
]), E = r(() => [
|
|
145
145
|
...Y,
|
|
146
146
|
...e.loading ? Z[e.type] : [],
|
|
147
147
|
..._[v.value]
|
|
148
148
|
]), S = r(
|
|
149
|
-
() => m.value ?
|
|
149
|
+
() => m.value ? u.value - 4 : (
|
|
150
150
|
// 2 + 2 px horizontal padding for rounding
|
|
151
151
|
p.value ? 14 * Math.PI : (
|
|
152
152
|
// 14 = diameter = viewBox - stroke-width
|
|
153
153
|
0
|
|
154
154
|
)
|
|
155
155
|
)
|
|
156
|
-
), M = r(() =>
|
|
156
|
+
), M = r(() => u.value ? u.value - 2 : "100%"), T = r(
|
|
157
157
|
() => e.loading ? void 0 : (1 - i.value) * S.value
|
|
158
158
|
), { isMobile: W } = j();
|
|
159
159
|
return {
|
|
160
|
-
root:
|
|
161
|
-
rootStyles:
|
|
162
|
-
headerStyles:
|
|
163
|
-
labelStyles:
|
|
164
|
-
percentStyles:
|
|
165
|
-
footerStyles:
|
|
166
|
-
progressBarBackgroundStyles:
|
|
160
|
+
root: d,
|
|
161
|
+
rootStyles: V,
|
|
162
|
+
headerStyles: $,
|
|
163
|
+
labelStyles: q,
|
|
164
|
+
percentStyles: C,
|
|
165
|
+
footerStyles: D,
|
|
166
|
+
progressBarBackgroundStyles: N,
|
|
167
167
|
progressBarMainPartStyles: E,
|
|
168
168
|
strokeDasharray: S,
|
|
169
169
|
strokeDashoffset: T,
|
|
@@ -173,8 +173,8 @@ const G = [
|
|
|
173
173
|
percent: w,
|
|
174
174
|
isLinearType: m,
|
|
175
175
|
isCircleType: p,
|
|
176
|
-
isShowingHeader:
|
|
177
|
-
isShowingFooter:
|
|
176
|
+
isShowingHeader: P,
|
|
177
|
+
isShowingFooter: b,
|
|
178
178
|
localColor: v,
|
|
179
179
|
computedSize: L
|
|
180
180
|
};
|
|
@@ -191,7 +191,7 @@ const G = [
|
|
|
191
191
|
"stroke-width": "2",
|
|
192
192
|
"stroke-linecap": "round"
|
|
193
193
|
}, ie = ["stroke-dasharray", "stroke-dashoffset"];
|
|
194
|
-
function ce(e,
|
|
194
|
+
function ce(e, d, f, h, k, g) {
|
|
195
195
|
return n(), l("div", {
|
|
196
196
|
ref: "root",
|
|
197
197
|
class: o(e.rootStyles)
|
|
@@ -273,4 +273,4 @@ export {
|
|
|
273
273
|
s as P,
|
|
274
274
|
a
|
|
275
275
|
};
|
|
276
|
-
//# sourceMappingURL=OrProgress-
|
|
276
|
+
//# sourceMappingURL=OrProgress-KR0cTOFr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrProgress-KR0cTOFr.mjs","sources":["../../../components/or-progress-v3/src/props.ts","../../../components/or-progress-v3/src/styles.ts","../../../components/or-progress-v3/src/OrProgress.vue"],"sourcesContent":["export enum ProgressColor {\n Auto = 'auto',\n Primary = 'primary',\n Success = 'success',\n Warning = 'warning',\n Error = 'error',\n}\n\nexport enum ProgressType {\n Linear = 'linear',\n Circle = 'circle',\n}\n","import { ProgressColor, ProgressType } from './props';\n\nexport const ProgressRoot: string[] = [\n // Typography\n 'typography-caption-regular',\n\n // Theme\n 'text-outline',\n 'dark:text-outline-dark',\n];\n\nexport const ProgressRootTypes: Record<ProgressType, string[]> = {\n [ProgressType.Linear]: [\n // Layout\n 'flex',\n 'flex-col',\n\n // Box\n 'w-full',\n 'min-w-[160px]',\n 'max-w-[295px]',\n ],\n\n [ProgressType.Circle]: [\n '-rotate-90',\n ],\n};\n\nexport const ProgressHeader: string[] = [\n // Layout\n 'flex',\n 'flex-row',\n\n // Spacing\n 'mb-[6px]',\n];\n\nexport const ProgressHeaderLabel: string[] = [\n // Typography\n 'typography-caption-bold',\n\n // Theme\n 'text-on-background',\n 'dark:text-on-background-dark',\n];\n\nexport const ProgressHeaderPercent: string[] = [\n // Spacing\n 'ml-auto',\n];\n\nexport const ProgressBarBackground: string[] = [\n // Theme\n 'stroke-surface-variant',\n 'dark:stroke-surface-variant-dark',\n];\n\nexport const ProgressBarMain: string[] = [\n // Position\n 'origin-center',\n\n // Animation\n 'transition-[stroke-dashoffset]',\n];\n\nexport const ProgressBarAnimationTypes: Record<ProgressType, string[]> = {\n [ProgressType.Linear]: [\n // Animation\n 'animate-linear-loader',\n ],\n\n [ProgressType.Circle]: [\n // Animation\n 'animate-circular-loader',\n ],\n};\n\nexport const ProgressBarColors: Record<Exclude<ProgressColor, ProgressColor.Auto>, string[]> = {\n [ProgressColor.Primary]: [\n // Theme\n 'stroke-primary-hover',\n 'dark:stroke-primary-hover-dark',\n ],\n\n [ProgressColor.Success]: [\n // Theme\n 'stroke-success-hover',\n 'dark:stroke-success-hover-dark',\n ],\n\n [ProgressColor.Warning]: [\n // Theme\n 'stroke-warning-hover',\n 'dark:stroke-warning-hover-dark',\n ],\n\n [ProgressColor.Error]: [\n // Theme\n 'stroke-error-hover',\n 'dark:stroke-error-hover-dark',\n ],\n};\n\nexport const ProgressFooter: string[] = [\n // Spacing\n 'mt-[2px]',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n >\n <template v-if=\"isLinearType\">\n <div\n v-if=\"isShowingHeader\"\n :class=\"headerStyles\"\n >\n <slot name=\"header\">\n <div :class=\"labelStyles\">\n <slot name=\"label\" />\n </div>\n <div :class=\"percentStyles\">\n <slot\n name=\"percent\"\n :value=\"percent\"\n >\n {{ percent }}\n </slot>\n </div>\n </slot>\n </div>\n <svg\n width=\"100%\"\n height=\"2\"\n >\n <g\n fill=\"none\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n >\n <line\n :class=\"progressBarBackgroundStyles\"\n\n x1=\"2\"\n y1=\"50%\"\n :x2=\"strokeWidth\"\n y2=\"50%\"\n />\n\n <line\n :class=\"progressBarMainPartStyles\"\n\n x1=\"2\"\n y1=\"50%\"\n :x2=\"strokeWidth\"\n y2=\"50%\"\n :stroke-dasharray=\"strokeDasharray\"\n :stroke-dashoffset=\"strokeDashoffset\"\n />\n </g>\n </svg>\n <div\n v-if=\"isShowingFooter\"\n :class=\"footerStyles\"\n >\n <slot\n name=\"footer\"\n :value=\"localValue\"\n />\n </div>\n </template>\n <template v-else-if=\"isCircleType\">\n <svg\n viewBox=\"0 0 16 16\"\n :width=\"computedSize\"\n :height=\"computedSize\"\n >\n <g\n fill=\"none\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n >\n <circle\n :class=\"progressBarBackgroundStyles\"\n\n cx=\"50%\"\n cy=\"50%\"\n r=\"7\"\n />\n\n <circle\n :class=\"progressBarMainPartStyles\"\n\n cx=\"50%\"\n cy=\"50%\"\n r=\"7\"\n :stroke-dasharray=\"strokeDasharray\"\n :stroke-dashoffset=\"strokeDashoffset\"\n />\n </g>\n </svg>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { useElementBounding } from '@vueuse/core';\nimport { computed, defineComponent, PropType, ref, useSlots } from 'vue';\nimport { useResponsive } from '@onereach/ui-components-common/hooks';\nimport { ProgressColor, ProgressType } from './props';\nimport * as Styles from './styles';\n\nexport default defineComponent({\n name: 'OrProgress',\n\n props: {\n maxValue: {\n type: Number,\n required: false,\n default: 1,\n },\n value: {\n type: Number,\n required: false,\n default: null,\n },\n progress: {\n type: Number,\n required: false,\n default: null,\n },\n precision: {\n type: Number,\n required: false,\n default: 2,\n },\n type: {\n type: String as PropType<`${ProgressType}`>,\n required: false,\n default: () => ProgressType.Linear,\n },\n color: {\n type: String as PropType<`${ProgressColor}`>,\n required: false,\n default: () => ProgressColor.Auto,\n },\n loading: {\n type: Boolean,\n required: false,\n default: false,\n },\n },\n\n expose: [\n 'root',\n ],\n\n setup(props) {\n // Refs\n const root = ref<HTMLElement>();\n\n // Slots\n const {\n header: headerSlot,\n label: labelSlot,\n percent: percentSlot,\n footer: footerSlot,\n } = useSlots();\n\n // State\n const { width } = useElementBounding(root);\n\n const localProgress = computed(() => props.progress ?? (props.value ?? 0) / (props.maxValue ?? 1));\n\n const localValue = computed(() => props.value ?? (props.progress ?? 0) * (props.maxValue ?? 1));\n\n const percent = computed(() => (localProgress.value * 100).toFixed(props.precision) + '%');\n\n const isLinearType = computed(() => props.type === ProgressType.Linear);\n\n const isCircleType = computed(() => props.type === ProgressType.Circle);\n\n const isShowingHeader = computed(() => !!headerSlot || !!labelSlot || !!percentSlot);\n\n const isShowingFooter = computed(() => !!footerSlot);\n\n const localColor = computed(() => {\n if (props.loading) return ProgressColor.Primary;\n if (props.color === ProgressColor.Auto) {\n if (localProgress.value <= 0.5) {\n return ProgressColor.Success;\n } else if (localProgress.value <= 0.95) {\n return ProgressColor.Warning;\n } else {\n return ProgressColor.Error;\n }\n } else {\n return Object.values(ProgressColor).includes(props.color as ProgressColor)\n ? props.color\n : ProgressColor.Success;\n }\n });\n\n const computedSize = computed(() => isMobile.value ? 20 : 16);\n\n // Styles\n const rootStyles = computed(() => [\n 'or-progress-v3',\n ...Styles.ProgressRoot,\n ...Styles.ProgressRootTypes[props.type],\n ]);\n\n const headerStyles = computed(() => [\n ...Styles.ProgressHeader,\n ]);\n\n const labelStyles = computed(() => [\n ...Styles.ProgressHeaderLabel,\n ]);\n\n const percentStyles = computed(() => [\n ...Styles.ProgressHeaderPercent,\n ]);\n\n const footerStyles = computed(() => [\n ...Styles.ProgressFooter,\n ]);\n\n const progressBarBackgroundStyles = computed(() => [\n ...Styles.ProgressBarBackground,\n ]);\n\n const progressBarMainPartStyles = computed(() => [\n ...Styles.ProgressBarMain,\n ...(props.loading ? Styles.ProgressBarAnimationTypes[props.type] : []),\n ...Styles.ProgressBarColors[localColor.value],\n ]);\n\n const strokeDasharray = computed(() =>\n isLinearType.value ? width.value - 4 : // 2 + 2 px horizontal padding for rounding\n isCircleType.value ? 14 * Math.PI : // 14 = diameter = viewBox - stroke-width\n 0,\n );\n\n const strokeWidth = computed(() => {\n return width.value\n ? width.value - 2\n : '100%';\n });\n\n const strokeDashoffset = computed(() => props.loading ?\n undefined :\n (1 - localProgress.value) * strokeDasharray.value,\n );\n\n // Helpers\n const { isMobile } = useResponsive();\n\n return {\n root,\n rootStyles,\n headerStyles,\n labelStyles,\n percentStyles,\n footerStyles,\n progressBarBackgroundStyles,\n progressBarMainPartStyles,\n strokeDasharray,\n strokeDashoffset,\n strokeWidth,\n localProgress,\n localValue,\n percent,\n isLinearType,\n isCircleType,\n isShowingHeader,\n isShowingFooter,\n localColor,\n computedSize,\n };\n },\n});\n</script>\n"],"names":["ProgressColor","ProgressType","ProgressRoot","ProgressRootTypes","ProgressHeader","ProgressHeaderLabel","ProgressHeaderPercent","ProgressBarBackground","ProgressBarMain","ProgressBarAnimationTypes","ProgressBarColors","ProgressFooter","_sfc_main","defineComponent","props","root","ref","headerSlot","labelSlot","percentSlot","footerSlot","useSlots","width","useElementBounding","localProgress","computed","localValue","percent","isLinearType","isCircleType","isShowingHeader","isShowingFooter","localColor","computedSize","isMobile","rootStyles","Styles.ProgressRoot","Styles.ProgressRootTypes","headerStyles","Styles.ProgressHeader","labelStyles","Styles.ProgressHeaderLabel","percentStyles","Styles.ProgressHeaderPercent","footerStyles","Styles.ProgressFooter","progressBarBackgroundStyles","Styles.ProgressBarBackground","progressBarMainPartStyles","Styles.ProgressBarMain","Styles.ProgressBarAnimationTypes","Styles.ProgressBarColors","strokeDasharray","strokeWidth","strokeDashoffset","useResponsive","_hoisted_1","_hoisted_2","_hoisted_5","_hoisted_6","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createElementBlock","_normalizeClass","_Fragment","_renderSlot","_createElementVNode","_createCommentVNode","_hoisted_3"],"mappings":";;;;AAAY,IAAAA,sBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,QAAQ,SALEA,IAAAA,KAAA,CAAA,CAAA,GAQAC,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA;ACNL,MAAMC,IAA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mjs";
|
|
61
61
|
import { O as Pa } from "../OrPagination-DIacMkVe.mjs";
|
|
62
62
|
import { O as Ia, a as ga, P as Da, i as ba } from "../OrPopover-DbygLPtT.mjs";
|
|
63
|
-
import { O as Ra, P as Ba, a as Ea } from "../OrProgress-
|
|
63
|
+
import { O as Ra, P as Ba, a as Ea } from "../OrProgress-KR0cTOFr.mjs";
|
|
64
64
|
import { O as Fa } from "../OrRadioGroup-_n_7vdJU.mjs";
|
|
65
65
|
import { O as za } from "../OrRadio-CJLJrxIS.mjs";
|
|
66
66
|
import { O as Ma } from "../OrRangeSlider-FL1E28ec.mjs";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ import { N as la, O as Ta, V as ca } from "./OrNotification-Dz3Tr1wI.mjs";
|
|
|
60
60
|
import { O as Sa } from "./OrOverlay-BjrghiC-.mjs";
|
|
61
61
|
import { O as Pa } from "./OrPagination-DIacMkVe.mjs";
|
|
62
62
|
import { O as Ia, a as ga, P as Da, i as ba } from "./OrPopover-DbygLPtT.mjs";
|
|
63
|
-
import { O as Ra, P as Ba, a as Ea } from "./OrProgress-
|
|
63
|
+
import { O as Ra, P as Ba, a as Ea } from "./OrProgress-KR0cTOFr.mjs";
|
|
64
64
|
import { O as Fa } from "./OrRadioGroup-_n_7vdJU.mjs";
|
|
65
65
|
import { O as za } from "./OrRadio-CJLJrxIS.mjs";
|
|
66
66
|
import { O as Ma } from "./OrRangeSlider-FL1E28ec.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.7.0-beta.5412.0",
|
|
4
4
|
"description": "Vue components library for v3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@codemirror/view": "^6",
|
|
47
47
|
"@floating-ui/dom": "1.5.3",
|
|
48
48
|
"@lezer/highlight": "*",
|
|
49
|
-
"@onereach/styles": "^21.6.
|
|
50
|
-
"@onereach/ui-components-common": "^21.6.
|
|
49
|
+
"@onereach/styles": "^21.6.1",
|
|
50
|
+
"@onereach/ui-components-common": "^21.6.1",
|
|
51
51
|
"@splidejs/splide": "4.0.6",
|
|
52
52
|
"@tiptap/core": "2.0.3",
|
|
53
53
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -102,6 +102,5 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"npmUnpacked": "4.15.2"
|
|
106
|
-
"gitHead": "a5d6cc360eb513f3e16f8e94f3e8cc173d605d67"
|
|
105
|
+
"npmUnpacked": "4.15.2"
|
|
107
106
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrProgress-cgGfaP0m.mjs","sources":["../../../components/or-progress-v3/src/props.ts","../../../components/or-progress-v3/src/styles.ts","../../../components/or-progress-v3/src/OrProgress.vue"],"sourcesContent":["export enum ProgressColor {\n Auto = 'auto',\n Primary = 'primary',\n Success = 'success',\n Warning = 'warning',\n Error = 'error',\n}\n\nexport enum ProgressType {\n Linear = 'linear',\n Circle = 'circle',\n}\n","import { ProgressColor, ProgressType } from './props';\n\nexport const ProgressRoot: string[] = [\n // Typography\n 'typography-caption-regular',\n\n // Theme\n 'text-outline',\n 'dark:text-outline-dark',\n];\n\nexport const ProgressRootTypes: Record<ProgressType, string[]> = {\n [ProgressType.Linear]: [\n // Layout\n 'flex',\n 'flex-col',\n\n // Box\n 'w-full',\n 'min-w-[160px]',\n 'max-w-[295px]',\n ],\n\n [ProgressType.Circle]: [\n '-rotate-90',\n ],\n};\n\nexport const ProgressHeader: string[] = [\n // Layout\n 'flex',\n 'flex-row',\n\n // Spacing\n 'mb-[6px]',\n];\n\nexport const ProgressHeaderLabel: string[] = [\n // Typography\n 'typography-caption-bold',\n\n // Theme\n 'text-on-background',\n 'dark:text-on-background-dark',\n];\n\nexport const ProgressHeaderPercent: string[] = [\n // Spacing\n 'ml-auto',\n];\n\nexport const ProgressBarBackground: string[] = [\n // Theme\n 'stroke-surface-variant',\n 'dark:stroke-surface-variant-dark',\n];\n\nexport const ProgressBarMain: string[] = [\n // Position\n 'origin-center',\n\n // Animation\n 'transition-[stroke-dashoffset]',\n];\n\nexport const ProgressBarAnimationTypes: Record<ProgressType, string[]> = {\n [ProgressType.Linear]: [\n // Animation\n 'animate-linear-loader',\n ],\n\n [ProgressType.Circle]: [\n // Animation\n 'animate-circular-loader',\n ],\n};\n\nexport const ProgressBarColors: Record<Exclude<ProgressColor, ProgressColor.Auto>, string[]> = {\n [ProgressColor.Primary]: [\n // Theme\n 'stroke-primary-hover',\n 'dark:stroke-primary-hover-dark',\n ],\n\n [ProgressColor.Success]: [\n // Theme\n 'stroke-success-hover',\n 'dark:stroke-success-hover-dark',\n ],\n\n [ProgressColor.Warning]: [\n // Theme\n 'stroke-warning-hover',\n 'dark:stroke-warning-hover-dark',\n ],\n\n [ProgressColor.Error]: [\n // Theme\n 'stroke-error-hover',\n 'dark:stroke-error-hover-dark',\n ],\n};\n\nexport const ProgressFooter: string[] = [\n // Spacing\n 'mt-[2px]',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n >\n <template v-if=\"isLinearType\">\n <div\n v-if=\"isShowingHeader\"\n :class=\"headerStyles\"\n >\n <slot name=\"header\">\n <div :class=\"labelStyles\">\n <slot name=\"label\" />\n </div>\n <div :class=\"percentStyles\">\n <slot\n name=\"percent\"\n :value=\"percent\"\n >\n {{ percent }}\n </slot>\n </div>\n </slot>\n </div>\n <svg\n width=\"100%\"\n height=\"2\"\n >\n <g\n fill=\"none\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n >\n <line\n :class=\"progressBarBackgroundStyles\"\n\n x1=\"2\"\n y1=\"50%\"\n :x2=\"strokeWidth\"\n y2=\"50%\"\n />\n\n <line\n :class=\"progressBarMainPartStyles\"\n\n x1=\"2\"\n y1=\"50%\"\n :x2=\"strokeWidth\"\n y2=\"50%\"\n :stroke-dasharray=\"strokeDasharray\"\n :stroke-dashoffset=\"strokeDashoffset\"\n />\n </g>\n </svg>\n <div\n v-if=\"isShowingFooter\"\n :class=\"footerStyles\"\n >\n <slot\n name=\"footer\"\n :value=\"localValue\"\n />\n </div>\n </template>\n <template v-else-if=\"isCircleType\">\n <svg\n viewBox=\"0 0 16 16\"\n :width=\"computedSize\"\n :height=\"computedSize\"\n >\n <g\n fill=\"none\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n >\n <circle\n :class=\"progressBarBackgroundStyles\"\n\n cx=\"50%\"\n cy=\"50%\"\n r=\"7\"\n />\n\n <circle\n :class=\"progressBarMainPartStyles\"\n\n cx=\"50%\"\n cy=\"50%\"\n r=\"7\"\n :stroke-dasharray=\"strokeDasharray\"\n :stroke-dashoffset=\"strokeDashoffset\"\n />\n </g>\n </svg>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { useElementBounding } from '@vueuse/core';\nimport { computed, defineComponent, PropType, ref, useSlots } from 'vue';\nimport { useResponsive } from '@onereach/ui-components-common/hooks';\nimport { ProgressColor, ProgressType } from './props';\nimport * as Styles from './styles';\n\nexport default defineComponent({\n name: 'OrProgress',\n\n props: {\n maxValue: {\n type: Number,\n required: false,\n default: 1,\n },\n value: {\n type: Number,\n required: false,\n default: null,\n },\n progress: {\n type: Number,\n required: false,\n default: null,\n },\n precision: {\n type: Number,\n required: false,\n default: 2,\n },\n type: {\n type: String as PropType<`${ProgressType}`>,\n required: false,\n default: () => ProgressType.Linear,\n },\n color: {\n type: String as PropType<`${ProgressColor}`>,\n required: false,\n default: () => ProgressColor.Auto,\n },\n loading: {\n type: Boolean,\n required: false,\n default: false,\n },\n },\n\n expose: [\n 'root',\n ],\n\n setup(props) {\n // Refs\n const root = ref<HTMLElement>();\n\n // Slots\n const {\n header: headerSlot,\n label: labelSlot,\n percent: percentSlot,\n footer: footerSlot,\n } = useSlots();\n\n // State\n const { width } = useElementBounding(root);\n\n const localProgress = computed(() => props.progress ?? (props.value ?? 0) / (props.maxValue ?? 1));\n\n const localValue = computed(() => props.value ?? (props.progress ?? 0) * (props.maxValue ?? 1));\n\n const percent = computed(() => Number((localProgress.value * 100).toFixed(props.precision)) + '%');\n\n const isLinearType = computed(() => props.type === ProgressType.Linear);\n\n const isCircleType = computed(() => props.type === ProgressType.Circle);\n\n const isShowingHeader = computed(() => !!headerSlot || !!labelSlot || !!percentSlot);\n\n const isShowingFooter = computed(() => !!footerSlot);\n\n const localColor = computed(() => {\n if (props.loading) return ProgressColor.Primary;\n if (props.color === ProgressColor.Auto) {\n if (localProgress.value <= 0.5) {\n return ProgressColor.Success;\n } else if (localProgress.value <= 0.95) {\n return ProgressColor.Warning;\n } else {\n return ProgressColor.Error;\n }\n } else {\n return Object.values(ProgressColor).includes(props.color as ProgressColor)\n ? props.color\n : ProgressColor.Success;\n }\n });\n\n const computedSize = computed(() => isMobile.value ? 20 : 16);\n\n // Styles\n const rootStyles = computed(() => [\n 'or-progress-v3',\n ...Styles.ProgressRoot,\n ...Styles.ProgressRootTypes[props.type],\n ]);\n\n const headerStyles = computed(() => [\n ...Styles.ProgressHeader,\n ]);\n\n const labelStyles = computed(() => [\n ...Styles.ProgressHeaderLabel,\n ]);\n\n const percentStyles = computed(() => [\n ...Styles.ProgressHeaderPercent,\n ]);\n\n const footerStyles = computed(() => [\n ...Styles.ProgressFooter,\n ]);\n\n const progressBarBackgroundStyles = computed(() => [\n ...Styles.ProgressBarBackground,\n ]);\n\n const progressBarMainPartStyles = computed(() => [\n ...Styles.ProgressBarMain,\n ...(props.loading ? Styles.ProgressBarAnimationTypes[props.type] : []),\n ...Styles.ProgressBarColors[localColor.value],\n ]);\n\n const strokeDasharray = computed(() =>\n isLinearType.value ? width.value - 4 : // 2 + 2 px horizontal padding for rounding\n isCircleType.value ? 14 * Math.PI : // 14 = diameter = viewBox - stroke-width\n 0,\n );\n\n const strokeWidth = computed(() => {\n return width.value\n ? width.value - 2\n : '100%';\n });\n\n const strokeDashoffset = computed(() => props.loading ?\n undefined :\n (1 - localProgress.value) * strokeDasharray.value,\n );\n\n // Helpers\n const { isMobile } = useResponsive();\n\n return {\n root,\n rootStyles,\n headerStyles,\n labelStyles,\n percentStyles,\n footerStyles,\n progressBarBackgroundStyles,\n progressBarMainPartStyles,\n strokeDasharray,\n strokeDashoffset,\n strokeWidth,\n localProgress,\n localValue,\n percent,\n isLinearType,\n isCircleType,\n isShowingHeader,\n isShowingFooter,\n localColor,\n computedSize,\n };\n },\n});\n</script>\n"],"names":["ProgressColor","ProgressType","ProgressRoot","ProgressRootTypes","ProgressHeader","ProgressHeaderLabel","ProgressHeaderPercent","ProgressBarBackground","ProgressBarMain","ProgressBarAnimationTypes","ProgressBarColors","ProgressFooter","_sfc_main","defineComponent","props","root","ref","headerSlot","labelSlot","percentSlot","footerSlot","useSlots","width","useElementBounding","localProgress","computed","localValue","percent","isLinearType","isCircleType","isShowingHeader","isShowingFooter","localColor","computedSize","isMobile","rootStyles","Styles.ProgressRoot","Styles.ProgressRootTypes","headerStyles","Styles.ProgressHeader","labelStyles","Styles.ProgressHeaderLabel","percentStyles","Styles.ProgressHeaderPercent","footerStyles","Styles.ProgressFooter","progressBarBackgroundStyles","Styles.ProgressBarBackground","progressBarMainPartStyles","Styles.ProgressBarMain","Styles.ProgressBarAnimationTypes","Styles.ProgressBarColors","strokeDasharray","strokeWidth","strokeDashoffset","useResponsive","_hoisted_1","_hoisted_2","_hoisted_5","_hoisted_6","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createElementBlock","_normalizeClass","_Fragment","_renderSlot","_createElementVNode","_createCommentVNode","_hoisted_3"],"mappings":";;;;AAAY,IAAAA,sBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,QAAQ,SALEA,IAAAA,KAAA,CAA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