@wikicasa-dev/components 2.1.4-alpha.23 → 2.1.4-alpha.3
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/UIKit/Accordion/BaseAccordionContent.d.ts +4 -4
- package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +11 -11
- package/dist/UIKit/BaseAutocomplete.d.ts +12 -14
- package/dist/UIKit/BaseAutocomplete.js +2 -3
- package/dist/UIKit/BaseBadge.d.ts +38 -2
- package/dist/UIKit/BaseDropDown.d.ts +36 -21
- package/dist/UIKit/BaseInput.d.ts +5 -4
- package/dist/UIKit/BaseModal.d.ts +2 -2
- package/dist/UIKit/BasePagination.d.ts +1 -7
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -3
- package/dist/UIKit/NativeSelect.js +5 -0
- package/dist/UIKit/types.d.ts +3 -7
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/{BaseSelect.css → NativeSelect.css} +1 -1
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +87 -94
- package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/shared/classes-to-selector.js +1 -1
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +24 -24
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +35 -28
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +140 -106
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +45 -16
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +26 -23
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +91 -75
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +51 -52
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +40 -63
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +3 -3
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +35 -35
- package/dist/packages/components/lib/UIKit/{BaseSelect.vue.js → NativeSelect.vue.js} +12 -12
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +1 -1
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +6 -7
- package/package.json +31 -24
- package/dist/UIKit/BasePin.d.ts +0 -22
- package/dist/UIKit/BaseSelect.d.ts +0 -26
- package/dist/UIKit/BaseSelect.js +0 -5
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/cloneDeep.js +0 -4
- package/dist/_virtual/create-plugin.js +0 -4
- package/dist/_virtual/createPlugin.js +0 -4
- package/dist/_virtual/default-theme.js +0 -4
- package/dist/_virtual/defaultTheme.js +0 -7
- package/dist/_virtual/plugin.js +0 -7
- package/dist/assets/packages/components/lib/UIKit/BaseAutocomplete.css +0 -1
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/defaultTheme.js +0 -11
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/public/create-plugin.js +0 -25
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/public/default-theme.js +0 -26
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/util/cloneDeep.js +0 -23
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/util/createPlugin.js +0 -34
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/plugin.js +0 -11
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/stubs/config.full.js +0 -1068
- package/dist/packages/components/plugins/buttonPlugin.js +0 -232
- package/dist/tailwind.config.js +0 -147
- package/plugins/buttonPlugin.ts +0 -290
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.22-alpha.4 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.22-alpha.4 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3}/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/controller.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/pagination.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/zoom.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/shared/utils.js +0 -0
|
@@ -1,58 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as A, mergeModels as L, useModel as N, ref as v, useAttrs as O, useId as j, computed as D, watch as p, createElementBlock as o, openBlock as s, normalizeClass as T, unref as k, renderSlot as m, createElementVNode as G, createBlock as J, createCommentVNode as h, withKeys as Q, withModifiers as g, Fragment as B, renderList as E } from "vue";
|
|
2
|
+
import W from "./BaseFloatingLabel.vue.js";
|
|
3
3
|
import '../../../../assets/packages/components/lib/UIKit/BaseFloatingLabel.css';/* empty css */
|
|
4
|
-
import { useFloatingLabel as
|
|
5
|
-
const
|
|
4
|
+
import { useFloatingLabel as X } from "../../../../composables/useFloatingLabel.js";
|
|
5
|
+
const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Z = ["innerHTML"], x = ["innerHTML"], U = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "under-label uikit-absolute uikit-text-12"
|
|
8
|
-
}, _ = "peer-data-[validation='invalid']:uikit-text-w-red peer-data-[validation='valid']:uikit-text-w-blue", ne = /* @__PURE__ */
|
|
8
|
+
}, _ = "peer-data-[validation='invalid']:uikit-text-w-red peer-data-[validation='valid']:uikit-text-w-blue", ne = /* @__PURE__ */ A({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "BaseInput",
|
|
11
11
|
props: /* @__PURE__ */ L({
|
|
12
|
+
inputClass: {},
|
|
12
13
|
labelText: { default: "" },
|
|
13
14
|
feedback: {},
|
|
14
15
|
isValid: { default: null },
|
|
15
16
|
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
16
17
|
formatter: { default: null },
|
|
17
|
-
inputClass: {},
|
|
18
18
|
labelClasses: {},
|
|
19
19
|
labelTextClasses: {},
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
withLeftIcon: { type: Boolean, default: () => {
|
|
21
|
+
} },
|
|
22
|
+
withRightIcon: { type: Boolean, default: () => {
|
|
23
|
+
} },
|
|
24
|
+
dataCy: {}
|
|
22
25
|
}, {
|
|
23
26
|
modelValue: { default: "" },
|
|
24
27
|
modelModifiers: {}
|
|
25
28
|
}),
|
|
26
29
|
emits: /* @__PURE__ */ L(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
27
30
|
setup(l, { expose: M, emit: H }) {
|
|
28
|
-
const u =
|
|
31
|
+
const u = N(l, "modelValue"), i = v(""), d = H, {
|
|
29
32
|
labelState: c,
|
|
30
33
|
handleFocusIn: P,
|
|
31
|
-
handleFocusOut:
|
|
32
|
-
setInlineLabel:
|
|
34
|
+
handleFocusOut: w,
|
|
35
|
+
setInlineLabel: $,
|
|
33
36
|
setFloatingLabel: V
|
|
34
|
-
} =
|
|
37
|
+
} = X(), I = O(), q = j(), r = D(() => I.id || q), n = v("text"), f = v({}), b = v(null), K = () => {
|
|
35
38
|
l.feedback && (f.value = l.feedback, l.feedback.valid && typeof l.feedback.valid == "string" && (f.value.valid = [l.feedback.valid]), l.feedback.invalid && typeof l.feedback.invalid == "string" && (f.value.invalid = [l.feedback.invalid]));
|
|
36
|
-
},
|
|
39
|
+
}, F = (e, a) => {
|
|
37
40
|
if (!l.formatter || !l.formatter.formatFn)
|
|
38
41
|
return i.value = e, "";
|
|
39
42
|
const t = e.length ? l.formatter.formatFn(e) : e;
|
|
40
43
|
return a && (a.value = t), i.value = t, t;
|
|
41
|
-
},
|
|
44
|
+
}, C = (e, a = !0) => {
|
|
42
45
|
if (a && (!l.formatter || !l.formatter.unFormatFn))
|
|
43
46
|
return u.value = e, e;
|
|
44
47
|
if (!a || !l.formatter || !l.formatter.unFormatFn) return;
|
|
45
48
|
const t = l.formatter.unFormatFn(e);
|
|
46
49
|
return u.value = t ?? "", t;
|
|
47
|
-
},
|
|
48
|
-
const a = e, t =
|
|
49
|
-
|
|
50
|
+
}, R = ({ target: e }) => {
|
|
51
|
+
const a = e, t = C(a.value);
|
|
52
|
+
F(
|
|
50
53
|
`${t}`,
|
|
51
54
|
t === u.value ? a : void 0
|
|
52
55
|
);
|
|
56
|
+
}, S = () => {
|
|
57
|
+
u.value = "", $();
|
|
53
58
|
}, z = () => {
|
|
54
|
-
u.value = "", h();
|
|
55
|
-
}, A = () => {
|
|
56
59
|
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
57
60
|
};
|
|
58
61
|
return p(
|
|
@@ -66,10 +69,10 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
66
69
|
), p(
|
|
67
70
|
u,
|
|
68
71
|
(e) => {
|
|
69
|
-
|
|
72
|
+
F(
|
|
70
73
|
`${e}`,
|
|
71
|
-
|
|
72
|
-
), i.value != null && i.value.length > 0 && c.value !== "floating-label" ? V() : !i.value && document && document.activeElement !== b.value &&
|
|
74
|
+
C(`${e}`, !1) === e ? b.value : void 0
|
|
75
|
+
), i.value != null && i.value.length > 0 && c.value !== "floating-label" ? V() : !i.value && document && document.activeElement !== b.value && $();
|
|
73
76
|
},
|
|
74
77
|
{
|
|
75
78
|
immediate: !0
|
|
@@ -77,9 +80,9 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
77
80
|
), p(
|
|
78
81
|
() => l.keepFloatingLabel,
|
|
79
82
|
(e) => {
|
|
80
|
-
e ? V() :
|
|
83
|
+
e ? V() : w(u.value);
|
|
81
84
|
}
|
|
82
|
-
), n.value =
|
|
85
|
+
), n.value = I.type || "text", M({
|
|
83
86
|
select: () => {
|
|
84
87
|
b.value?.select();
|
|
85
88
|
}
|
|
@@ -87,20 +90,20 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
87
90
|
class: T(["uikit-input-wrapper [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px uikit-relative uikit-inline-block uikit-w-full", [
|
|
88
91
|
e.$attrs.class,
|
|
89
92
|
{ "floating-label": e.labelText },
|
|
90
|
-
|
|
93
|
+
k(c) === "floating-label" ? "floating-state" : "inline-state",
|
|
91
94
|
{
|
|
92
|
-
"has-right-icon": !!e.$slots.
|
|
95
|
+
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
93
96
|
},
|
|
94
97
|
{
|
|
95
|
-
"has-left-icon": !!e.$slots.leftIcon
|
|
98
|
+
"has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
96
99
|
},
|
|
97
100
|
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
98
101
|
]])
|
|
99
102
|
}, [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
handleClean:
|
|
103
|
-
handleShowPasswd:
|
|
103
|
+
m(e.$slots, "leftIcon"),
|
|
104
|
+
m(e.$slots, "righticon", {
|
|
105
|
+
handleClean: S,
|
|
106
|
+
handleShowPasswd: z,
|
|
104
107
|
curType: n.value
|
|
105
108
|
}),
|
|
106
109
|
G("input", {
|
|
@@ -109,16 +112,12 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
109
112
|
ref: b,
|
|
110
113
|
"data-cy": e.dataCy,
|
|
111
114
|
name: e.$attrs.name,
|
|
112
|
-
class: T(["input-element disabled:uikit-text-w-secondary uikit-peer uikit-relative uikit-box-border uikit-block uikit-w-full uikit-appearance-none uikit-truncate uikit-rounded-2xs uikit-bg-white uikit-px-sm uikit-pb-0 uikit-text-16 uikit-outline-none disabled:uikit-bg-w-cultured", [
|
|
115
|
+
class: T(["input-element disabled:uikit-text-w-secondary uikit-peer uikit-relative uikit-box-border uikit-block uikit-h-[56px] uikit-w-full uikit-appearance-none uikit-truncate uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-px-sm uikit-pb-0 uikit-pt-md uikit-text-16 uikit-outline-none focus-visible:uikit-border-w-blue disabled:uikit-bg-w-cultured data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue", [
|
|
113
116
|
{
|
|
114
117
|
"is-invalid": e.isValid === !1,
|
|
115
|
-
"is-valid": e.isValid
|
|
116
|
-
"uikit-pt-md": e.labelText
|
|
118
|
+
"is-valid": e.isValid
|
|
117
119
|
},
|
|
118
|
-
e.inputClass
|
|
119
|
-
{
|
|
120
|
-
"uikit-border uikit-border-solid uikit-border-w-lightgray focus-visible:uikit-border-w-blue data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue": e.withBorder
|
|
121
|
-
}
|
|
120
|
+
e.inputClass
|
|
122
121
|
]]),
|
|
123
122
|
"data-validation": e.isValid ? "valid" : e.isValid === !1 ? "invalid" : "",
|
|
124
123
|
autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
|
|
@@ -134,50 +133,50 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
134
133
|
placeholder: e.$attrs.placeholder,
|
|
135
134
|
value: i.value,
|
|
136
135
|
onClick: a[0] || (a[0] = (t) => d("click", t)),
|
|
137
|
-
onFocusin: a[1] || (a[1] =
|
|
136
|
+
onFocusin: a[1] || (a[1] = g(
|
|
138
137
|
(t) => {
|
|
139
|
-
d("focusin", t), e.labelText &&
|
|
138
|
+
d("focusin", t), e.labelText && k(P)();
|
|
140
139
|
},
|
|
141
140
|
["stop"]
|
|
142
141
|
)),
|
|
143
|
-
onFocusout: a[2] || (a[2] =
|
|
142
|
+
onFocusout: a[2] || (a[2] = g(
|
|
144
143
|
(t) => {
|
|
145
|
-
d("focusout", t), e.labelText && !e.keepFloatingLabel &&
|
|
144
|
+
d("focusout", t), e.labelText && !e.keepFloatingLabel && k(w)(i.value);
|
|
146
145
|
},
|
|
147
146
|
["stop"]
|
|
148
147
|
)),
|
|
149
|
-
onInput:
|
|
148
|
+
onInput: g(R, ["stop"]),
|
|
150
149
|
onKeydown: [
|
|
151
150
|
a[3] || (a[3] = Q(() => d("keydownEnterPressed"), ["enter"])),
|
|
152
151
|
a[4] || (a[4] = (t) => d("keydown", t))
|
|
153
152
|
],
|
|
154
153
|
onKeyup: a[5] || (a[5] = (t) => d("keyup", t))
|
|
155
|
-
}, null, 42,
|
|
156
|
-
e.labelText ? (s(), J(
|
|
154
|
+
}, null, 42, Y),
|
|
155
|
+
e.labelText ? (s(), J(W, {
|
|
157
156
|
key: 0,
|
|
158
157
|
for: r.value,
|
|
159
158
|
"label-text": e.labelText,
|
|
160
|
-
"label-state":
|
|
159
|
+
"label-state": k(c),
|
|
161
160
|
"is-valid": e.isValid,
|
|
162
161
|
required: e.$attrs.required,
|
|
163
162
|
disabled: e.$attrs.disabled,
|
|
164
163
|
"label-classes": [e.labelClasses, _],
|
|
165
164
|
"label-text-classes": e.labelTextClasses
|
|
166
|
-
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) :
|
|
167
|
-
|
|
165
|
+
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : h("", !0),
|
|
166
|
+
m(e.$slots, "feedback", {}, () => [
|
|
168
167
|
e.isValid === !1 ? (s(!0), o(B, { key: 0 }, E(f.value.invalid, (t, y) => (s(), o("div", {
|
|
169
168
|
key: `${r.value}_invalid_${y}`,
|
|
170
169
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-red",
|
|
171
170
|
innerHTML: t
|
|
172
|
-
}, null, 8,
|
|
171
|
+
}, null, 8, Z))), 128)) : e.isValid === !0 ? (s(!0), o(B, { key: 1 }, E(f.value.valid, (t, y) => (s(), o("div", {
|
|
173
172
|
key: `${r.value}_valid_${y}`,
|
|
174
173
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-blue",
|
|
175
174
|
innerHTML: t
|
|
176
|
-
}, null, 8,
|
|
175
|
+
}, null, 8, x))), 128)) : h("", !0)
|
|
177
176
|
]),
|
|
178
177
|
e.$slots["under-label"] ? (s(), o("div", U, [
|
|
179
|
-
|
|
180
|
-
])) :
|
|
178
|
+
m(e.$slots, "under-label")
|
|
179
|
+
])) : h("", !0)
|
|
181
180
|
], 2));
|
|
182
181
|
}
|
|
183
182
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as z, ref as d, useTemplateRef as D, useId as K, computed as N, onUnmounted as S, watch as V, createBlock as W, openBlock as f, Teleport as A, createElementVNode as l, normalizeClass as o, withModifiers as g, createElementBlock as w, createCommentVNode as h, renderSlot as r, createVNode as F, unref as P, nextTick as U } from "vue";
|
|
2
|
-
import { CloseIcon as R } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { CloseIcon as R } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const j = ["id", "data-cy"], q = ["innerHTML"], X = /* @__PURE__ */ z({
|
|
5
5
|
__name: "BaseModal",
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, createElementBlock as e, openBlock as i, renderSlot as n, createCommentVNode as u, toDisplayString as s } from "vue";
|
|
2
2
|
const r = { class: "uikit-relative uikit-inline-block" }, a = {
|
|
3
3
|
key: 0,
|
|
4
|
-
class: "uikit-pointer-events-none uikit-absolute -uikit-right-sm -uikit-top-sm uikit-rounded-
|
|
4
|
+
class: "uikit-pointer-events-none uikit-absolute -uikit-right-sm -uikit-top-sm uikit-rounded-3xs uikit-bg-w-cultured uikit-px-2xs uikit-text-12 uikit-font-medium uikit-text-w-blue"
|
|
5
5
|
}, p = /* @__PURE__ */ o({
|
|
6
6
|
__name: "BaseNotificationBadge",
|
|
7
7
|
props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { PaginationRoot as
|
|
3
|
-
import { ArrowIcon as
|
|
4
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import { useBreakpoints as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as v, mergeModels as P, useModel as C, computed as N, createBlock as n, openBlock as a, unref as i, withCtx as e, createVNode as l, createElementBlock as c, createElementVNode as p, toDisplayString as k, Fragment as b, renderList as L, createTextVNode as m } from "vue";
|
|
2
|
+
import { PaginationRoot as B, PaginationList as D, PaginationPrev as F, PaginationListItem as M, PaginationEllipsis as E, PaginationNext as V } from "reka-ui";
|
|
3
|
+
import { ArrowIcon as f } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useBreakpoints as _ } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js";
|
|
6
|
+
const z = { class: "max-sm:uikit-hidden" }, I = { class: "max-sm:uikit-hidden" }, j = /* @__PURE__ */ v({
|
|
7
7
|
__name: "BasePagination",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ P({
|
|
9
9
|
count: { default: 0 },
|
|
10
10
|
limit: { default: 25 },
|
|
11
11
|
siblings: {},
|
|
@@ -13,102 +13,79 @@ const I = { class: "max-sm:uikit-hidden" }, Q = { class: "max-sm:uikit-hidden" }
|
|
|
13
13
|
prevLabel: { default: "" },
|
|
14
14
|
nextLabel: { default: "" },
|
|
15
15
|
prevDataCy: {},
|
|
16
|
-
nextDataCy: {}
|
|
17
|
-
linkProps: {},
|
|
18
|
-
linkTag: { type: [Object, Function, String], default: "a" },
|
|
19
|
-
baseUrl: {},
|
|
20
|
-
pageQueryParameter: { default: "p" },
|
|
21
|
-
formatter: { type: Function }
|
|
16
|
+
nextDataCy: {}
|
|
22
17
|
}, {
|
|
23
18
|
pageNumber: { default: 1 },
|
|
24
19
|
pageNumberModifiers: {}
|
|
25
20
|
}),
|
|
26
21
|
emits: ["update:pageNumber"],
|
|
27
|
-
setup(
|
|
28
|
-
const { isSmall: w } =
|
|
22
|
+
setup(s) {
|
|
23
|
+
const { isSmall: w } = _({
|
|
29
24
|
breakpoints: {
|
|
30
25
|
sm: 640,
|
|
31
26
|
md: 768,
|
|
32
27
|
lg: 1024,
|
|
33
28
|
xl: 1280
|
|
34
29
|
}
|
|
35
|
-
}),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return t === 1 || e.searchParams.set(a.pageQueryParameter, `${t}`), e.toString();
|
|
40
|
-
} catch (e) {
|
|
41
|
-
console.error(e);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
return (t, e) => (u(), n(i(S), {
|
|
46
|
-
page: s.value,
|
|
47
|
-
"onUpdate:page": e[0] || (e[0] = (d) => s.value = d),
|
|
30
|
+
}), r = C(s, "pageNumber"), h = N(() => Math.ceil(s.count / s.limit)), x = (t = 1) => t === 1, y = (t = 1) => t === h.value;
|
|
31
|
+
return (t, u) => (a(), n(i(B), {
|
|
32
|
+
page: r.value,
|
|
33
|
+
"onUpdate:page": u[0] || (u[0] = (d) => r.value = d),
|
|
48
34
|
total: t.count,
|
|
49
35
|
"sibling-count": t.siblings ?? (i(w) ? 0 : 1),
|
|
50
36
|
"items-per-page": t.limit,
|
|
51
37
|
"show-edges": "",
|
|
52
38
|
class: "uikit-text-16"
|
|
53
39
|
}, {
|
|
54
|
-
default:
|
|
55
|
-
|
|
56
|
-
default:
|
|
57
|
-
|
|
40
|
+
default: e(() => [
|
|
41
|
+
l(i(D), { class: "uikit-flex uikit-gap-x-md" }, {
|
|
42
|
+
default: e(({ items: d }) => [
|
|
43
|
+
l(i(F), {
|
|
58
44
|
class: "uikit-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-xs uikit-bg-transparent uikit-text-w-blue disabled:uikit-cursor-default disabled:uikit-text-w-lightgray [&:disabled_path]:uikit-stroke-w-lightgray",
|
|
59
45
|
"data-cy": t.prevDataCy,
|
|
60
|
-
disabled:
|
|
46
|
+
disabled: x(r.value)
|
|
61
47
|
}, {
|
|
62
|
-
default:
|
|
63
|
-
|
|
48
|
+
default: e(() => [
|
|
49
|
+
l(i(f), {
|
|
64
50
|
width: 20,
|
|
65
51
|
height: 11,
|
|
66
52
|
"stroke-color": t.arrowColor,
|
|
67
53
|
class: "uikit-inline-block uikit-rotate-90"
|
|
68
54
|
}, null, 8, ["stroke-color"]),
|
|
69
|
-
|
|
55
|
+
p("span", z, k(t.prevLabel), 1)
|
|
70
56
|
]),
|
|
71
57
|
_: 1
|
|
72
58
|
}, 8, ["data-cy", "disabled"]),
|
|
73
|
-
(
|
|
74
|
-
|
|
75
|
-
key:
|
|
76
|
-
value:
|
|
77
|
-
"
|
|
59
|
+
(a(!0), c(b, null, L(d, (o, g) => (a(), c(b, null, [
|
|
60
|
+
o.type === "page" ? (a(), n(i(M), {
|
|
61
|
+
key: g,
|
|
62
|
+
value: o.value,
|
|
63
|
+
class: "uikit-size-xl uikit-cursor-pointer uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-text-w-blue data-[selected]:uikit-border-w-blue data-[selected]:uikit-bg-w-cultured"
|
|
78
64
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
(
|
|
81
|
-
class: "uikit-flex uikit-size-xl uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-text-w-blue data-[selected]:uikit-border-w-blue data-[selected]:uikit-bg-w-cultured",
|
|
82
|
-
href: g(r.value),
|
|
83
|
-
to: g(r.value)
|
|
84
|
-
}, { ref_for: !0 }, t.linkProps), {
|
|
85
|
-
default: l(() => [
|
|
86
|
-
y(k(t.formatter ? t.formatter(r.value) : r.value), 1)
|
|
87
|
-
]),
|
|
88
|
-
_: 2
|
|
89
|
-
}, 1040, ["href", "to"]))
|
|
65
|
+
default: e(() => [
|
|
66
|
+
m(k(o.value), 1)
|
|
90
67
|
]),
|
|
91
68
|
_: 2
|
|
92
|
-
}, 1032, ["value"])) : (
|
|
93
|
-
key:
|
|
69
|
+
}, 1032, ["value"])) : (a(), n(i(E), {
|
|
70
|
+
key: o.type,
|
|
94
71
|
class: "uikit-size-xl uikit-cursor-pointer uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-text-center uikit-text-w-lightgray",
|
|
95
|
-
index:
|
|
72
|
+
index: g
|
|
96
73
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
|
|
74
|
+
default: e(() => u[1] || (u[1] = [
|
|
75
|
+
m(" … ")
|
|
99
76
|
])),
|
|
100
77
|
_: 2,
|
|
101
78
|
__: [1]
|
|
102
79
|
}, 1032, ["index"]))
|
|
103
80
|
], 64))), 256)),
|
|
104
|
-
|
|
81
|
+
l(i(V), {
|
|
105
82
|
class: "uikit-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-xs uikit-bg-transparent uikit-text-w-blue disabled:uikit-cursor-default disabled:uikit-text-w-lightgray [&:disabled_path]:uikit-stroke-w-lightgray",
|
|
106
83
|
"data-cy": t.nextDataCy,
|
|
107
|
-
disabled:
|
|
84
|
+
disabled: y(r.value)
|
|
108
85
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
|
|
111
|
-
|
|
86
|
+
default: e(() => [
|
|
87
|
+
p("span", I, k(t.nextLabel), 1),
|
|
88
|
+
l(i(f), {
|
|
112
89
|
"stroke-color": t.arrowColor,
|
|
113
90
|
width: 20,
|
|
114
91
|
height: 11,
|
|
@@ -126,5 +103,5 @@ const I = { class: "max-sm:uikit-hidden" }, Q = { class: "max-sm:uikit-hidden" }
|
|
|
126
103
|
}
|
|
127
104
|
});
|
|
128
105
|
export {
|
|
129
|
-
|
|
106
|
+
j as default
|
|
130
107
|
};
|
|
@@ -20,7 +20,7 @@ const a = {
|
|
|
20
20
|
l("span", {
|
|
21
21
|
class: n(["uikit-pin-body uikit-box-border", [
|
|
22
22
|
{
|
|
23
|
-
"uikit-inline-flex uikit-min-w-xl uikit-rounded-
|
|
23
|
+
"uikit-inline-flex uikit-min-w-xl uikit-rounded-3xs uikit-px-sm uikit-py-2xs": ["default", "large"].includes(i.type),
|
|
24
24
|
"uikit-px-xs": i.type === "large",
|
|
25
25
|
"uikit-inline-flex uikit-size-lg uikit-items-center uikit-justify-center uikit-rounded-full": i.type === "rounded"
|
|
26
26
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, ref as u, onBeforeMount as f, createBlock as h, openBlock as i, Teleport as y, createElementVNode as e, withModifiers as l, normalizeClass as x, createElementBlock as a, createCommentVNode as s, createVNode as v, unref as _ } from "vue";
|
|
2
|
-
import { CloseIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { CloseIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const g = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-10px uikit-z-[2000] max-sm:uikit-left-0 max-sm:uikit-w-full" }, T = ["data-cy"], w = ["src", "alt"], L = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "snackbar-type-icon uikit-bg-contain uikit-bg-no-repeat"
|
|
@@ -29,7 +29,7 @@ const h = ["for"], k = ["id", "multiple", "accept"], B = /* @__PURE__ */ p({
|
|
|
29
29
|
class: s(["base-upload-file-wrapper uikit-relative", [e.$attrs.class]])
|
|
30
30
|
}, [
|
|
31
31
|
i("label", {
|
|
32
|
-
class: s(["uikit-btn uikit-btn-ternary", e.labelClasses]),
|
|
32
|
+
class: s(["uikit-btn uikit-btn-w-ternary", e.labelClasses]),
|
|
33
33
|
for: e.id
|
|
34
34
|
}, [
|
|
35
35
|
i("input", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, useId as f, computed as h, watch as b, createElementBlock as p, openBlock as u, createVNode as n, renderSlot as C, unref as l, normalizeClass as y, withCtx as s, createBlock as V, createCommentVNode as g, createTextVNode as B, toDisplayString as w } from "vue";
|
|
2
|
-
import { CheckIcon as I } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { CheckIcon as I } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js";
|
|
3
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
import { CheckboxRoot as v, CheckboxIndicator as x } from "reka-ui";
|
|
5
5
|
const N = ["for"], q = /* @__PURE__ */ m({
|
|
6
6
|
__name: "CheckboxBtn",
|
|
@@ -43,7 +43,7 @@ const N = ["for"], q = /* @__PURE__ */ m({
|
|
|
43
43
|
"model-value": e.modelValue,
|
|
44
44
|
"data-cy": e.dataCy,
|
|
45
45
|
disabled: e.disabled,
|
|
46
|
-
class: y(["uikit-inline-flex uikit-size-[20px] uikit-items-center uikit-justify-center uikit-rounded-
|
|
46
|
+
class: y(["uikit-inline-flex uikit-size-[20px] uikit-items-center uikit-justify-center uikit-rounded-3xs uikit-p-0 data-[state='unchecked']:uikit-border data-[state='unchecked']:uikit-border-solid data-[state='unchecked']:uikit-border-w-lightgray", [
|
|
47
47
|
{
|
|
48
48
|
"uikit-bg-white": !e.modelValue,
|
|
49
49
|
"uikit-bg-w-blue": e.modelValue
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as N, ref as T, watch as V, computed as x, createBlock as A, openBlock as w, unref as m, withCtx as n, createElementBlock as M, createCommentVNode as S, renderSlot as E, createVNode as a, createTextVNode as O, toDisplayString as P, createElementVNode as r } from "vue";
|
|
2
|
-
import { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
import j from "@vuepic/vue-datepicker";
|
|
5
|
-
import y from "./
|
|
6
|
-
import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';import '../../../../assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css';import '../../../../assets/packages/components/lib/UIKit/
|
|
5
|
+
import y from "./NativeSelect.vue.js";
|
|
6
|
+
import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';import '../../../../assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css';import '../../../../assets/packages/components/lib/UIKit/NativeSelect.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import z from "./BaseButton.vue.js";
|
|
9
9
|
import R from "./BaseInput.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, mergeModels as C, useModel as O, ref as k, watch as y, createElementBlock as w, openBlock as
|
|
1
|
+
import { defineComponent as E, mergeModels as C, useModel as O, ref as k, watch as y, createElementBlock as w, openBlock as r, createElementVNode as M, createVNode as p, withCtx as u, Fragment as h, renderList as D, createBlock as U, createTextVNode as x, toDisplayString as V, renderSlot as P } from "vue";
|
|
2
2
|
import R from "./BaseButton.vue.js";
|
|
3
3
|
import B from "./BaseInput.vue.js";
|
|
4
4
|
import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
|
|
@@ -24,7 +24,7 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
|
|
|
24
24
|
), d = O(
|
|
25
25
|
f,
|
|
26
26
|
"rightValue"
|
|
27
|
-
),
|
|
27
|
+
), v = k(!1), m = k(!1), g = k(!1), b = k(!1), $ = (i) => ({
|
|
28
28
|
id: -1,
|
|
29
29
|
label: i ? `${i}` : ""
|
|
30
30
|
}), S = (i, e = []) => {
|
|
@@ -48,23 +48,23 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
|
|
|
48
48
|
e && (d.value = e);
|
|
49
49
|
},
|
|
50
50
|
{ immediate: !0, deep: !0 }
|
|
51
|
-
), (i, e) => (
|
|
51
|
+
), (i, e) => (r(), w("div", j, [
|
|
52
52
|
M("div", z, [
|
|
53
53
|
p(I, {
|
|
54
|
-
"toggle-dropdown":
|
|
55
|
-
"onUpdate:toggleDropdown": e[1] || (e[1] = (t) =>
|
|
54
|
+
"toggle-dropdown": m.value,
|
|
55
|
+
"onUpdate:toggleDropdown": e[1] || (e[1] = (t) => m.value = t),
|
|
56
56
|
class: "!uikit-static",
|
|
57
|
-
"dropdown-classes": "!uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none
|
|
57
|
+
"dropdown-classes": "!uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none",
|
|
58
58
|
"disable-space-handler": "",
|
|
59
59
|
"onUpdate:selectedIdx": e[2] || (e[2] = (t) => a.value = i.leftSelectOptions[t]),
|
|
60
|
-
"onUpdate:dropdownState": e[3] || (e[3] = (t) =>
|
|
60
|
+
"onUpdate:dropdownState": e[3] || (e[3] = (t) => v.value = t)
|
|
61
61
|
}, {
|
|
62
|
-
|
|
62
|
+
btn_slot: u(({ toggleDropdown: t, setActiveIdx: o }) => [
|
|
63
63
|
p(B, {
|
|
64
64
|
"model-value": a.value.label,
|
|
65
65
|
"label-text": "Min",
|
|
66
66
|
onClick: (l) => {
|
|
67
|
-
l.stopPropagation(),
|
|
67
|
+
l.stopPropagation(), v.value || t(), g.value && (b.value = !0);
|
|
68
68
|
},
|
|
69
69
|
onKeyup: (l) => o(-1),
|
|
70
70
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => {
|
|
@@ -72,18 +72,18 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
|
|
|
72
72
|
})
|
|
73
73
|
}, null, 8, ["model-value", "onClick", "onKeyup"])
|
|
74
74
|
]),
|
|
75
|
-
default:
|
|
76
|
-
(
|
|
77
|
-
key: `left-option-${
|
|
78
|
-
class: "uikit-rounded-
|
|
79
|
-
active: t ===
|
|
80
|
-
onClick: (
|
|
81
|
-
a.value =
|
|
75
|
+
default: u(({ activeIdx: t, toggleDropdown: o, setActiveIdx: l }) => [
|
|
76
|
+
(r(!0), w(h, null, D(i.leftSelectOptions, (s, n) => (r(), U(L, {
|
|
77
|
+
key: `left-option-${n}`,
|
|
78
|
+
class: "uikit-rounded-3xs uikit-p-xs uikit-text-16",
|
|
79
|
+
active: t === n,
|
|
80
|
+
onClick: (c) => {
|
|
81
|
+
a.value = s, o();
|
|
82
82
|
},
|
|
83
|
-
onMouseover: (
|
|
83
|
+
onMouseover: (c) => l(n)
|
|
84
84
|
}, {
|
|
85
|
-
default:
|
|
86
|
-
x(V(
|
|
85
|
+
default: u(() => [
|
|
86
|
+
x(V(s.label), 1)
|
|
87
87
|
]),
|
|
88
88
|
_: 2
|
|
89
89
|
}, 1032, ["active", "onClick", "onMouseover"]))), 128))
|
|
@@ -91,20 +91,20 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
|
|
|
91
91
|
_: 1
|
|
92
92
|
}, 8, ["toggle-dropdown"]),
|
|
93
93
|
p(I, {
|
|
94
|
-
"toggle-dropdown":
|
|
95
|
-
"onUpdate:toggleDropdown": e[5] || (e[5] = (t) =>
|
|
94
|
+
"toggle-dropdown": b.value,
|
|
95
|
+
"onUpdate:toggleDropdown": e[5] || (e[5] = (t) => b.value = t),
|
|
96
96
|
"disable-space-handler": "",
|
|
97
97
|
class: "!uikit-static",
|
|
98
|
-
"dropdown-classes": "uikit-left-
|
|
98
|
+
"dropdown-classes": "uikit-left-0 !uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none",
|
|
99
99
|
"onUpdate:selectedIdx": e[6] || (e[6] = (t) => d.value = i.rightSelectOptions[t]),
|
|
100
100
|
"onUpdate:dropdownState": e[7] || (e[7] = (t) => g.value = t)
|
|
101
101
|
}, {
|
|
102
|
-
|
|
102
|
+
btn_slot: u(({ toggleDropdown: t, setActiveIdx: o }) => [
|
|
103
103
|
p(B, {
|
|
104
104
|
"model-value": d.value.label,
|
|
105
105
|
"label-text": "Max",
|
|
106
106
|
onClick: (l) => {
|
|
107
|
-
l.stopPropagation(), g.value || t(),
|
|
107
|
+
l.stopPropagation(), g.value || t(), v.value && (m.value = !0);
|
|
108
108
|
},
|
|
109
109
|
onKeyup: (l) => o(-1),
|
|
110
110
|
"onUpdate:modelValue": e[4] || (e[4] = (l) => {
|
|
@@ -112,18 +112,18 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
|
|
|
112
112
|
})
|
|
113
113
|
}, null, 8, ["model-value", "onClick", "onKeyup"])
|
|
114
114
|
]),
|
|
115
|
-
default:
|
|
116
|
-
(
|
|
117
|
-
key: `left-option-${
|
|
118
|
-
class: "uikit-rounded-
|
|
119
|
-
active: t ===
|
|
120
|
-
onClick: (
|
|
121
|
-
d.value =
|
|
115
|
+
default: u(({ activeIdx: t, toggleDropdown: o, setActiveIdx: l }) => [
|
|
116
|
+
(r(!0), w(h, null, D(i.rightSelectOptions, (s, n) => (r(), U(L, {
|
|
117
|
+
key: `left-option-${n}`,
|
|
118
|
+
class: "uikit-rounded-3xs uikit-p-xs uikit-text-16",
|
|
119
|
+
active: t === n,
|
|
120
|
+
onClick: (c) => {
|
|
121
|
+
d.value = s, o();
|
|
122
122
|
},
|
|
123
|
-
onMouseover: (
|
|
123
|
+
onMouseover: (c) => l(n)
|
|
124
124
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
x(V(
|
|
125
|
+
default: u(() => [
|
|
126
|
+
x(V(s.label), 1)
|
|
127
127
|
]),
|
|
128
128
|
_: 2
|
|
129
129
|
}, 1032, ["active", "onClick", "onMouseover"]))), 128))
|
|
@@ -137,7 +137,7 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
|
|
|
137
137
|
class: "uikit-w-full",
|
|
138
138
|
onClick: e[8] || (e[8] = (t) => N("submit", t))
|
|
139
139
|
}, {
|
|
140
|
-
default:
|
|
140
|
+
default: u(() => [
|
|
141
141
|
x(V(i.submitBtnLabel), 1)
|
|
142
142
|
]),
|
|
143
143
|
_: 1
|