@hunter-industries/hunter-components 0.0.99 → 0.0.101
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/hunter-components.js +94 -98
- package/dist/hunter-components.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/types/App.vue.d.ts.map +1 -1
- package/dist/types/assets/icons/index.d.ts.map +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +40 -38
- package/dist/types/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/types/components/Button/ButtonIcon.vue.d.ts +12 -9
- package/dist/types/components/Button/ButtonIcon.vue.d.ts.map +1 -1
- package/dist/types/components/Button/ButtonToast.vue.d.ts.map +1 -1
- package/dist/types/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/types/components/Card/CategoryCard.vue.d.ts.map +1 -1
- package/dist/types/components/Chip/Chip.vue.d.ts +2 -2
- package/dist/types/components/Chip/Chip.vue.d.ts.map +1 -1
- package/dist/types/components/ColorIcon/ColorIcon.vue.d.ts.map +1 -1
- package/dist/types/components/Dropdown/Button/ButtonDropdown.vue.d.ts +14 -11
- package/dist/types/components/Dropdown/Button/ButtonDropdown.vue.d.ts.map +1 -1
- package/dist/types/components/Dropdown/Button/ButtonDropdownColors.vue.d.ts.map +1 -1
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/types/components/Dropdown/DropdownColors.vue.d.ts.map +1 -1
- package/dist/types/components/Dropdown/DropdownList/DropdownList.vue.d.ts +5 -6
- package/dist/types/components/Dropdown/DropdownList/DropdownList.vue.d.ts.map +1 -1
- package/dist/types/components/Dropdown/DropdownList/DropdownListCheckboxes.vue.d.ts.map +1 -1
- package/dist/types/components/Dropdown/DropdownList/DropdownListWithColorIcons.vue.d.ts.map +1 -1
- package/dist/types/components/Dropdown/DropdownList/DropdownListWithFilter.vue.d.ts.map +1 -1
- package/dist/types/components/Form/FormInput.vue.d.ts.map +1 -1
- package/dist/types/components/Form/index.vue.d.ts +2 -2
- package/dist/types/components/Form/index.vue.d.ts.map +1 -1
- package/dist/types/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/types/components/Image/ImageWithPlaceholder.vue.d.ts.map +1 -1
- package/dist/types/components/Input/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/types/components/Link/Link.vue.d.ts +11 -8
- package/dist/types/components/Link/Link.vue.d.ts.map +1 -1
- package/dist/types/components/Navigation/NavigationLinks.vue.d.ts +11 -8
- package/dist/types/components/Navigation/NavigationLinks.vue.d.ts.map +1 -1
- package/dist/types/components/SearchInput/SearchInput.vue.d.ts.map +1 -1
- package/dist/types/components/Slider/Slider.vue.d.ts +12 -4
- package/dist/types/components/Slider/Slider.vue.d.ts.map +1 -1
- package/dist/types/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/types/utils/convertValueToCssSizeProperty.d.ts.map +1 -1
- package/dist/types/utils/filterByString.d.ts.map +1 -1
- package/dist/types/utils/validateForm.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock, openBlock, createElementVNode, createStaticVNode, defineComponent, toRefs, computed, ref, createBlock, createCommentVNode, resolveDynamicComponent, mergeProps, normalizeStyle, normalizeClass, renderSlot, toDisplayString, unref, createVNode, createTextVNode, watchEffect, withDirectives, vShow, withCtx, vModelCheckbox, Fragment, renderList, watch, onBeforeUnmount, withModifiers, onMounted, vModelRadio, pushScopeId, popScopeId, vModelText, useCssVars } from "vue";
|
|
2
2
|
const _hoisted_1$21 = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
fill: "currentColor",
|
|
@@ -1255,11 +1255,11 @@ const _hoisted_1$S = {
|
|
|
1255
1255
|
fill: "none"
|
|
1256
1256
|
};
|
|
1257
1257
|
const _hoisted_2$O = /* @__PURE__ */ createStaticVNode('<circle cx="16" cy="16" r="15.625" fill="#fff" opacity=".8"></circle><path fill="#68aee0" d="M18.859 27.5v-23h6.64v23z"></path><path fill="#3A2F26" d="M20.756 27.501v-23h2.846v23z"></path><path fill="#68aee0" d="M20.76 19.91H2.5v-6.64h18.26z"></path><path fill="#3A2F26" d="M20.761 18.012H2.501v-2.846h18.26z"></path>', 5);
|
|
1258
|
-
const _hoisted_7$
|
|
1258
|
+
const _hoisted_7$2 = [
|
|
1259
1259
|
_hoisted_2$O
|
|
1260
1260
|
];
|
|
1261
1261
|
function render$C(_ctx, _cache) {
|
|
1262
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$S, [..._hoisted_7$
|
|
1262
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$S, [..._hoisted_7$2]);
|
|
1263
1263
|
}
|
|
1264
1264
|
const __vite_glob_0_75 = { render: render$C };
|
|
1265
1265
|
const _hoisted_1$R = {
|
|
@@ -1558,14 +1558,14 @@ const _hoisted_5$6 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
1558
1558
|
fill: "currentColor",
|
|
1559
1559
|
d: "M31.108 20.67H41.4a3.16 3.16 0 0 0-1.54.643c-.47.367-.6.74-.792 1.297l-.011.031h-5.227c-.2-.573-.58-.952-1.06-1.324a3.14 3.14 0 0 0-1.66-.647"
|
|
1560
1560
|
}, null, -1);
|
|
1561
|
-
const _hoisted_6$
|
|
1561
|
+
const _hoisted_6$3 = [
|
|
1562
1562
|
_hoisted_2$z,
|
|
1563
1563
|
_hoisted_3$w,
|
|
1564
1564
|
_hoisted_4$a,
|
|
1565
1565
|
_hoisted_5$6
|
|
1566
1566
|
];
|
|
1567
1567
|
function render$n(_ctx, _cache) {
|
|
1568
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$D, [..._hoisted_6$
|
|
1568
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$D, [..._hoisted_6$3]);
|
|
1569
1569
|
}
|
|
1570
1570
|
const __vite_glob_0_90 = { render: render$n };
|
|
1571
1571
|
const _hoisted_1$C = {
|
|
@@ -2281,17 +2281,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2281
2281
|
});
|
|
2282
2282
|
const iconProps = computed(() => {
|
|
2283
2283
|
const obj = {};
|
|
2284
|
-
if (props.fill)
|
|
2285
|
-
|
|
2286
|
-
if (props.
|
|
2287
|
-
obj.stroke = props.stroke;
|
|
2288
|
-
if (props.strokeWidth)
|
|
2289
|
-
obj.strokeWidth = props.strokeWidth.toString();
|
|
2284
|
+
if (props.fill) obj.fill = props.fill || "currentColor";
|
|
2285
|
+
if (props.stroke) obj.stroke = props.stroke;
|
|
2286
|
+
if (props.strokeWidth) obj.strokeWidth = props.strokeWidth.toString();
|
|
2290
2287
|
return obj;
|
|
2291
2288
|
});
|
|
2292
2289
|
const appendPxIfNeeded = (value) => {
|
|
2293
|
-
if (value == null)
|
|
2294
|
-
return void 0;
|
|
2290
|
+
if (value == null) return void 0;
|
|
2295
2291
|
const str = String(value);
|
|
2296
2292
|
return /\d+(px|em|rem|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/i.test(str) ? str : `${str}px`;
|
|
2297
2293
|
};
|
|
@@ -2301,8 +2297,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2301
2297
|
const icon = computed(() => icons[props.name]);
|
|
2302
2298
|
const iconClasses = computed(() => {
|
|
2303
2299
|
const classes = [props.className].flat();
|
|
2304
|
-
if (flipIcon.value)
|
|
2305
|
-
classes.push(`hcl-flip-icon ${flipIcon.value}`);
|
|
2300
|
+
if (flipIcon.value) classes.push(`hcl-flip-icon ${flipIcon.value}`);
|
|
2306
2301
|
return classes;
|
|
2307
2302
|
});
|
|
2308
2303
|
__expose({ hunterIcon });
|
|
@@ -2332,18 +2327,15 @@ const unitRegex = /(ch|em|rem|ex|px|cm|mm|in|pt|pc|vh|vw|vmin|vmax|svh|lvh|dvh|s
|
|
|
2332
2327
|
const keywordOrFuncRegex = /^(auto|min-content|max-content|fit-content\(.+\)|calc\(.+\)|clamp\(.+\)|min\(.+\)|max\(.+\)|var\(--[^)]+\))$/i;
|
|
2333
2328
|
const convertValueToCssSizeProperty = (value) => {
|
|
2334
2329
|
const w = value;
|
|
2335
|
-
if (w == null || w === "")
|
|
2336
|
-
return void 0;
|
|
2330
|
+
if (w == null || w === "") return void 0;
|
|
2337
2331
|
if (typeof w === "number" && Number.isFinite(w)) {
|
|
2338
2332
|
return `${w}px`;
|
|
2339
2333
|
}
|
|
2340
2334
|
if (typeof w === "string") {
|
|
2341
2335
|
const s = w.trim();
|
|
2342
|
-
if (keywordOrFuncRegex.test(s) || unitRegex.test(s))
|
|
2343
|
-
return s;
|
|
2336
|
+
if (keywordOrFuncRegex.test(s) || unitRegex.test(s)) return s;
|
|
2344
2337
|
const n = Number(s);
|
|
2345
|
-
if (Number.isFinite(n))
|
|
2346
|
-
return `${n}px`;
|
|
2338
|
+
if (Number.isFinite(n)) return `${n}px`;
|
|
2347
2339
|
}
|
|
2348
2340
|
return void 0;
|
|
2349
2341
|
};
|
|
@@ -2353,15 +2345,13 @@ const filterValuesContain = ({
|
|
|
2353
2345
|
key,
|
|
2354
2346
|
max
|
|
2355
2347
|
}) => {
|
|
2356
|
-
if (!query)
|
|
2357
|
-
return;
|
|
2348
|
+
if (!query) return;
|
|
2358
2349
|
query = query == null ? void 0 : query.toLowerCase();
|
|
2359
2350
|
let count = 0;
|
|
2360
2351
|
return options.filter((match) => {
|
|
2361
2352
|
const matchValue = match[key].toLowerCase();
|
|
2362
2353
|
if (matchValue.includes(query)) {
|
|
2363
|
-
if (!max)
|
|
2364
|
-
return match;
|
|
2354
|
+
if (!max) return match;
|
|
2365
2355
|
else if (max && count <= max - 1) {
|
|
2366
2356
|
count++;
|
|
2367
2357
|
return match;
|
|
@@ -2635,9 +2625,9 @@ const _hoisted_3$8 = {
|
|
|
2635
2625
|
};
|
|
2636
2626
|
const _hoisted_4$7 = ["src", "alt"];
|
|
2637
2627
|
const _hoisted_5$4 = { class: "hc__card__text" };
|
|
2638
|
-
const _hoisted_6$
|
|
2639
|
-
const _hoisted_7 = { class: "card-description-body-wrapper" };
|
|
2640
|
-
const _hoisted_8 = { class: "description" };
|
|
2628
|
+
const _hoisted_6$2 = { class: "hc__card__text__description" };
|
|
2629
|
+
const _hoisted_7$1 = { class: "card-description-body-wrapper" };
|
|
2630
|
+
const _hoisted_8$1 = { class: "description" };
|
|
2641
2631
|
const _hoisted_9 = {
|
|
2642
2632
|
key: 0,
|
|
2643
2633
|
class: "hc__card__buttons float2"
|
|
@@ -2702,12 +2692,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2702
2692
|
}, null, 8, _hoisted_4$7))
|
|
2703
2693
|
]),
|
|
2704
2694
|
createElementVNode("div", _hoisted_5$4, [
|
|
2705
|
-
createElementVNode("div", _hoisted_6$
|
|
2695
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
2706
2696
|
createElementVNode("div", {
|
|
2707
2697
|
class: normalizeClass(["hc__card__text__title", "uppercase"])
|
|
2708
2698
|
}, toDisplayString(_ctx.title), 1),
|
|
2709
|
-
createElementVNode("div", _hoisted_7, [
|
|
2710
|
-
createElementVNode("div", _hoisted_8, [
|
|
2699
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
2700
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
2711
2701
|
!_ctx.hideToggleButton ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
2712
2702
|
withDirectives(createVNode(unref(_sfc_main$l), {
|
|
2713
2703
|
variant: "icon-primary",
|
|
@@ -2772,8 +2762,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2772
2762
|
return isActive.value;
|
|
2773
2763
|
});
|
|
2774
2764
|
const handleSetActive = () => {
|
|
2775
|
-
if (props.keepActive === true)
|
|
2776
|
-
return;
|
|
2765
|
+
if (props.keepActive === true) return;
|
|
2777
2766
|
isActive.value = !isActive.value;
|
|
2778
2767
|
emit("updateIsActive", isActive.value, cardId.value);
|
|
2779
2768
|
};
|
|
@@ -2911,8 +2900,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2911
2900
|
);
|
|
2912
2901
|
const resolvedMaxHeight = computed(() => props.listMaxHeight ?? 244);
|
|
2913
2902
|
const scrollStyle = computed(() => {
|
|
2914
|
-
if (!isScrollable.value)
|
|
2915
|
-
return void 0;
|
|
2903
|
+
if (!isScrollable.value) return void 0;
|
|
2916
2904
|
return {
|
|
2917
2905
|
maxHeight: `${resolvedMaxHeight.value}px`,
|
|
2918
2906
|
overflowY: "auto"
|
|
@@ -2997,8 +2985,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2997
2985
|
if (visibleOptions.value.length === 0) {
|
|
2998
2986
|
isCollapsed.value = true;
|
|
2999
2987
|
return isCollapsed.value;
|
|
3000
|
-
} else
|
|
3001
|
-
isCollapsed.value = false;
|
|
2988
|
+
} else isCollapsed.value = false;
|
|
3002
2989
|
return;
|
|
3003
2990
|
} else {
|
|
3004
2991
|
isCollapsed.value = true;
|
|
@@ -3496,7 +3483,7 @@ const _hoisted_5$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
3496
3483
|
for: "metric",
|
|
3497
3484
|
class: "unit-label"
|
|
3498
3485
|
}, "Metric", -1));
|
|
3499
|
-
const _hoisted_6 = { class: "hunter-form-buttons" };
|
|
3486
|
+
const _hoisted_6$1 = { class: "hunter-form-buttons" };
|
|
3500
3487
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3501
3488
|
__name: "index",
|
|
3502
3489
|
props: {
|
|
@@ -3695,7 +3682,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3695
3682
|
_hoisted_5$2
|
|
3696
3683
|
])
|
|
3697
3684
|
]),
|
|
3698
|
-
createElementVNode("div", _hoisted_6, [
|
|
3685
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
3699
3686
|
createVNode(_sfc_main$l, mergeProps(unref(cancelButtonProps), {
|
|
3700
3687
|
variant: "tertiary",
|
|
3701
3688
|
className: "form-button",
|
|
@@ -3761,8 +3748,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3761
3748
|
);
|
|
3762
3749
|
const currentRoute = computed(() => props.activeLink);
|
|
3763
3750
|
onMounted(() => {
|
|
3764
|
-
if (!nuxtLinkContainer.value)
|
|
3765
|
-
return;
|
|
3751
|
+
if (!nuxtLinkContainer.value) return;
|
|
3766
3752
|
nuxtLinks.value = nuxtLinkContainer == null ? void 0 : nuxtLinkContainer.value.querySelectorAll("a");
|
|
3767
3753
|
nuxtLinks.value.forEach((el) => {
|
|
3768
3754
|
var _a;
|
|
@@ -3771,8 +3757,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3771
3757
|
});
|
|
3772
3758
|
});
|
|
3773
3759
|
watch(currentRoute, () => {
|
|
3774
|
-
if (!nuxtLinkContainer.value)
|
|
3775
|
-
return;
|
|
3760
|
+
if (!nuxtLinkContainer.value) return;
|
|
3776
3761
|
nuxtLinks.value && nuxtLinks.value.forEach((el) => {
|
|
3777
3762
|
var _a;
|
|
3778
3763
|
const { pathname } = new URL(el.href);
|
|
@@ -4048,14 +4033,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4048
4033
|
}
|
|
4049
4034
|
});
|
|
4050
4035
|
const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-603385ac"]]);
|
|
4051
|
-
const _hoisted_1 = { class: "slider-container" };
|
|
4052
|
-
const _hoisted_2 = {
|
|
4036
|
+
const _hoisted_1 = { class: "slider-and-single-unit-container" };
|
|
4037
|
+
const _hoisted_2 = { class: "slider-with-descriptions" };
|
|
4038
|
+
const _hoisted_3 = { class: "slider-container" };
|
|
4039
|
+
const _hoisted_4 = {
|
|
4053
4040
|
class: "ticks",
|
|
4054
4041
|
"aria-hidden": "true"
|
|
4055
4042
|
};
|
|
4056
|
-
const
|
|
4057
|
-
const
|
|
4058
|
-
const
|
|
4043
|
+
const _hoisted_5 = { class: "text-under-slider" };
|
|
4044
|
+
const _hoisted_6 = { class: "text" };
|
|
4045
|
+
const _hoisted_7 = { class: "title" };
|
|
4046
|
+
const _hoisted_8 = {
|
|
4047
|
+
key: 0,
|
|
4048
|
+
class: "unit-text"
|
|
4049
|
+
};
|
|
4059
4050
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4060
4051
|
__name: "Slider",
|
|
4061
4052
|
props: {
|
|
@@ -4067,15 +4058,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4067
4058
|
thumbColor: { default: "#00658a" },
|
|
4068
4059
|
thumbSize: { default: "25px" },
|
|
4069
4060
|
text: {},
|
|
4070
|
-
tickEvery: { default: 2 }
|
|
4061
|
+
tickEvery: { default: 2 },
|
|
4062
|
+
showSelection: { type: Boolean, default: true },
|
|
4063
|
+
unit: { default: '"' }
|
|
4071
4064
|
},
|
|
4072
4065
|
emits: ["change", "input"],
|
|
4073
4066
|
setup(__props, { emit: __emit }) {
|
|
4074
4067
|
useCssVars((_ctx) => ({
|
|
4075
|
-
"
|
|
4076
|
-
"
|
|
4077
|
-
"
|
|
4078
|
-
"
|
|
4068
|
+
"32a6fe14": primaryColor,
|
|
4069
|
+
"05354dbc": secondaryColor,
|
|
4070
|
+
"e10d3100": thumbColor,
|
|
4071
|
+
"49449f78": thumbSize
|
|
4079
4072
|
}));
|
|
4080
4073
|
const {
|
|
4081
4074
|
min,
|
|
@@ -4085,7 +4078,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4085
4078
|
secondaryColor,
|
|
4086
4079
|
thumbColor,
|
|
4087
4080
|
thumbSize,
|
|
4088
|
-
tickEvery
|
|
4081
|
+
tickEvery,
|
|
4082
|
+
showSelection,
|
|
4083
|
+
unit
|
|
4089
4084
|
} = __props;
|
|
4090
4085
|
const emit = __emit;
|
|
4091
4086
|
const minN = computed(() => Number(min));
|
|
@@ -4098,8 +4093,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4098
4093
|
);
|
|
4099
4094
|
function calcValue(val) {
|
|
4100
4095
|
const el = slider.value;
|
|
4101
|
-
if (!el)
|
|
4102
|
-
return;
|
|
4096
|
+
if (!el) return;
|
|
4103
4097
|
const hi = Number(el.max || maxN.value);
|
|
4104
4098
|
const lo = Number(el.min || minN.value);
|
|
4105
4099
|
const pct = (val - lo) / (hi - lo) * 100;
|
|
@@ -4107,57 +4101,59 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4107
4101
|
emit("input", val);
|
|
4108
4102
|
}
|
|
4109
4103
|
onMounted(() => {
|
|
4110
|
-
console.log("initial value", sliderValue.value);
|
|
4111
4104
|
calcValue(sliderValue.value);
|
|
4112
4105
|
});
|
|
4113
4106
|
return (_ctx, _cache) => {
|
|
4114
|
-
return openBlock(), createElementBlock(
|
|
4115
|
-
createElementVNode("div",
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
[
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4107
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
4108
|
+
createElementVNode("div", _hoisted_2, [
|
|
4109
|
+
createElementVNode("div", _hoisted_3, [
|
|
4110
|
+
withDirectives(createElementVNode("input", {
|
|
4111
|
+
type: "range",
|
|
4112
|
+
min,
|
|
4113
|
+
max,
|
|
4114
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => sliderValue.value = $event),
|
|
4115
|
+
class: "slider block w-full",
|
|
4116
|
+
id: "range",
|
|
4117
|
+
ref_key: "slider",
|
|
4118
|
+
ref: slider,
|
|
4119
|
+
onInput: _cache[1] || (_cache[1] = ($event) => calcValue(sliderValue.value)),
|
|
4120
|
+
onChange: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("change", sliderValue.value))
|
|
4121
|
+
}, null, 544), [
|
|
4122
|
+
[
|
|
4123
|
+
vModelText,
|
|
4124
|
+
sliderValue.value,
|
|
4125
|
+
void 0,
|
|
4126
|
+
{ number: true }
|
|
4127
|
+
]
|
|
4128
|
+
]),
|
|
4129
|
+
createElementVNode("div", _hoisted_4, [
|
|
4130
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(tickCount.value, (i) => {
|
|
4131
|
+
return openBlock(), createElementBlock("span", {
|
|
4132
|
+
key: i,
|
|
4133
|
+
class: normalizeClass(["tick", {
|
|
4134
|
+
hide: (i - 1) % tickEvery !== 0,
|
|
4135
|
+
passed: +min + (i - 1) < +sliderValue.value,
|
|
4136
|
+
active: +min + (i - 1) === +sliderValue.value
|
|
4137
|
+
}])
|
|
4138
|
+
}, null, 2);
|
|
4139
|
+
}), 128))
|
|
4140
|
+
])
|
|
4134
4141
|
]),
|
|
4135
|
-
createElementVNode("div",
|
|
4136
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
4137
|
-
return openBlock(), createElementBlock("
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
active: +min + (i - 1) === +sliderValue.value
|
|
4143
|
-
}])
|
|
4144
|
-
}, null, 2);
|
|
4145
|
-
}), 128))
|
|
4142
|
+
createElementVNode("div", _hoisted_5, [
|
|
4143
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.text, (item, _) => {
|
|
4144
|
+
return openBlock(), createElementBlock("div", _hoisted_6, [
|
|
4145
|
+
createElementVNode("div", _hoisted_7, toDisplayString(item.title), 1),
|
|
4146
|
+
createElementVNode("div", null, toDisplayString(item == null ? void 0 : item.description), 1)
|
|
4147
|
+
]);
|
|
4148
|
+
}), 256))
|
|
4146
4149
|
])
|
|
4147
4150
|
]),
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
return openBlock(), createElementBlock("div", _hoisted_4, [
|
|
4151
|
-
createElementVNode("div", _hoisted_5, toDisplayString(item.title), 1),
|
|
4152
|
-
createElementVNode("div", null, toDisplayString(item == null ? void 0 : item.description), 1)
|
|
4153
|
-
]);
|
|
4154
|
-
}), 256))
|
|
4155
|
-
])
|
|
4156
|
-
], 64);
|
|
4151
|
+
showSelection ? (openBlock(), createElementBlock("div", _hoisted_8, toDisplayString(`${sliderValue.value}${unit}`), 1)) : createCommentVNode("", true)
|
|
4152
|
+
]);
|
|
4157
4153
|
};
|
|
4158
4154
|
}
|
|
4159
4155
|
});
|
|
4160
|
-
const Slider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4156
|
+
const Slider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b87d7551"]]);
|
|
4161
4157
|
export {
|
|
4162
4158
|
_sfc_main$l as HunterButton,
|
|
4163
4159
|
ButtonIcon as HunterButtonIcon,
|