@wikicasa-dev/components 2.1.4-alpha.2 → 2.1.4-alpha.21
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/BaseAutocomplete.d.ts +14 -12
- package/dist/UIKit/BaseAutocomplete.js +3 -2
- package/dist/UIKit/BaseBadge.d.ts +2 -38
- package/dist/UIKit/BaseDropDown.d.ts +8 -13
- package/dist/UIKit/BaseInput.d.ts +4 -5
- package/dist/UIKit/BasePagination.d.ts +7 -1
- package/dist/UIKit/BasePin.d.ts +22 -0
- package/dist/UIKit/BaseSelect.d.ts +26 -0
- package/dist/UIKit/BaseSelect.js +5 -0
- package/dist/UIKit/BaseTextarea.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -3
- package/dist/UIKit/types.d.ts +7 -3
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/cloneDeep.js +4 -0
- package/dist/_virtual/create-plugin.js +4 -0
- package/dist/_virtual/createPlugin.js +4 -0
- package/dist/_virtual/default-theme.js +4 -0
- package/dist/_virtual/defaultTheme.js +7 -0
- package/dist/_virtual/plugin.js +7 -0
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseAutocomplete.css +1 -0
- 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/{NativeSelect.css → BaseSelect.css} +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +94 -87
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/keyboard.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/classes-to-selector.js +1 -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 +11 -0
- 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 +25 -0
- 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 +26 -0
- 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 +23 -0
- 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 +34 -0
- 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 +11 -0
- 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 +1068 -0
- 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 +10 -9
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +106 -140
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +16 -45
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +15 -15
- 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 +53 -65
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +52 -51
- 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 +63 -40
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/{NativeSelect.vue.js → BaseSelect.vue.js} +12 -12
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +8 -8
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +7 -9
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +30 -30
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +1 -1
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +7 -6
- package/dist/packages/components/plugins/buttonPlugin.js +232 -0
- package/dist/tailwind.config.js +147 -0
- package/package.json +24 -31
- package/plugins/buttonPlugin.ts +290 -0
- package/dist/UIKit/NativeSelect.js +0 -5
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_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.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/controller.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/pagination.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/zoom.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/utils.js +0 -0
|
@@ -1,61 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as N, mergeModels as L, useModel as O, ref as k, useAttrs as j, useId as x, computed as D, watch as p, createElementBlock as o, openBlock as s, normalizeClass as T, unref as m, renderSlot as v, createElementVNode as G, createBlock as J, createCommentVNode as g, withKeys as Q, withModifiers as w, Fragment as B, renderList as E } from "vue";
|
|
2
|
+
import R 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 W } from "../../../../composables/useFloatingLabel.js";
|
|
5
|
+
const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Y = ["innerHTML"], Z = ["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__ */ N({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "BaseInput",
|
|
11
11
|
props: /* @__PURE__ */ L({
|
|
12
|
-
inputClass: {},
|
|
13
12
|
labelText: { default: "" },
|
|
14
13
|
feedback: {},
|
|
15
14
|
isValid: { default: null },
|
|
16
15
|
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
17
16
|
formatter: { default: null },
|
|
17
|
+
inputClass: {},
|
|
18
18
|
labelClasses: {},
|
|
19
19
|
labelTextClasses: {},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
withRightIcon: { type: Boolean, default: () => {
|
|
23
|
-
} },
|
|
24
|
-
dataCy: {}
|
|
20
|
+
dataCy: {},
|
|
21
|
+
withBorder: { type: Boolean, default: !0 }
|
|
25
22
|
}, {
|
|
26
23
|
modelValue: { default: "" },
|
|
27
24
|
modelModifiers: {}
|
|
28
25
|
}),
|
|
29
26
|
emits: /* @__PURE__ */ L(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
30
27
|
setup(l, { expose: M, emit: H }) {
|
|
31
|
-
const u =
|
|
28
|
+
const u = O(l, "modelValue"), i = k(""), d = H, {
|
|
32
29
|
labelState: c,
|
|
33
30
|
handleFocusIn: P,
|
|
34
|
-
handleFocusOut:
|
|
35
|
-
setInlineLabel:
|
|
31
|
+
handleFocusOut: $,
|
|
32
|
+
setInlineLabel: h,
|
|
36
33
|
setFloatingLabel: V
|
|
37
|
-
} =
|
|
34
|
+
} = W(), F = j(), q = x(), r = D(() => F.id || q), n = k("text"), f = k({}), b = k(null), K = () => {
|
|
38
35
|
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]));
|
|
39
|
-
},
|
|
36
|
+
}, C = (e, a) => {
|
|
40
37
|
if (!l.formatter || !l.formatter.formatFn)
|
|
41
38
|
return i.value = e, "";
|
|
42
39
|
const t = e.length ? l.formatter.formatFn(e) : e;
|
|
43
40
|
return a && (a.value = t), i.value = t, t;
|
|
44
|
-
},
|
|
41
|
+
}, I = (e, a = !0) => {
|
|
45
42
|
if (a && (!l.formatter || !l.formatter.unFormatFn))
|
|
46
43
|
return u.value = e, e;
|
|
47
44
|
if (!a || !l.formatter || !l.formatter.unFormatFn) return;
|
|
48
45
|
const t = l.formatter.unFormatFn(e);
|
|
49
46
|
return u.value = t ?? "", t;
|
|
50
|
-
},
|
|
51
|
-
const a = e, t =
|
|
52
|
-
|
|
47
|
+
}, S = ({ target: e }) => {
|
|
48
|
+
const a = e, t = I(a.value);
|
|
49
|
+
C(
|
|
53
50
|
`${t}`,
|
|
54
51
|
t === u.value ? a : void 0
|
|
55
52
|
);
|
|
56
|
-
}, S = () => {
|
|
57
|
-
u.value = "", $();
|
|
58
53
|
}, z = () => {
|
|
54
|
+
u.value = "", h();
|
|
55
|
+
}, A = () => {
|
|
59
56
|
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
60
57
|
};
|
|
61
58
|
return p(
|
|
@@ -69,10 +66,10 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
69
66
|
), p(
|
|
70
67
|
u,
|
|
71
68
|
(e) => {
|
|
72
|
-
|
|
69
|
+
C(
|
|
73
70
|
`${e}`,
|
|
74
|
-
|
|
75
|
-
), i.value != null && i.value.length > 0 && c.value !== "floating-label" ? V() : !i.value && document && document.activeElement !== b.value &&
|
|
71
|
+
I(`${e}`, !1) === e ? b.value : void 0
|
|
72
|
+
), i.value != null && i.value.length > 0 && c.value !== "floating-label" ? V() : !i.value && document && document.activeElement !== b.value && h();
|
|
76
73
|
},
|
|
77
74
|
{
|
|
78
75
|
immediate: !0
|
|
@@ -80,9 +77,9 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
80
77
|
), p(
|
|
81
78
|
() => l.keepFloatingLabel,
|
|
82
79
|
(e) => {
|
|
83
|
-
e ? V() :
|
|
80
|
+
e ? V() : $(u.value);
|
|
84
81
|
}
|
|
85
|
-
), n.value =
|
|
82
|
+
), n.value = F.type || "text", M({
|
|
86
83
|
select: () => {
|
|
87
84
|
b.value?.select();
|
|
88
85
|
}
|
|
@@ -90,20 +87,20 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
90
87
|
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", [
|
|
91
88
|
e.$attrs.class,
|
|
92
89
|
{ "floating-label": e.labelText },
|
|
93
|
-
|
|
90
|
+
m(c) === "floating-label" ? "floating-state" : "inline-state",
|
|
94
91
|
{
|
|
95
|
-
"has-right-icon":
|
|
92
|
+
"has-right-icon": !!e.$slots.rightIcon
|
|
96
93
|
},
|
|
97
94
|
{
|
|
98
|
-
"has-left-icon":
|
|
95
|
+
"has-left-icon": !!e.$slots.leftIcon
|
|
99
96
|
},
|
|
100
97
|
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
101
98
|
]])
|
|
102
99
|
}, [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
handleClean:
|
|
106
|
-
handleShowPasswd:
|
|
100
|
+
v(e.$slots, "leftIcon"),
|
|
101
|
+
v(e.$slots, "rightIcon", {
|
|
102
|
+
handleClean: z,
|
|
103
|
+
handleShowPasswd: A,
|
|
107
104
|
curType: n.value
|
|
108
105
|
}),
|
|
109
106
|
G("input", {
|
|
@@ -112,12 +109,16 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
112
109
|
ref: b,
|
|
113
110
|
"data-cy": e.dataCy,
|
|
114
111
|
name: e.$attrs.name,
|
|
115
|
-
class: T(["input-element disabled:uikit-text-w-secondary uikit-peer uikit-relative uikit-box-border uikit-block uikit-
|
|
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", [
|
|
116
113
|
{
|
|
117
114
|
"is-invalid": e.isValid === !1,
|
|
118
|
-
"is-valid": e.isValid
|
|
115
|
+
"is-valid": e.isValid,
|
|
116
|
+
"uikit-pt-md": e.labelText
|
|
119
117
|
},
|
|
120
|
-
e.inputClass
|
|
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
|
+
}
|
|
121
122
|
]]),
|
|
122
123
|
"data-validation": e.isValid ? "valid" : e.isValid === !1 ? "invalid" : "",
|
|
123
124
|
autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
|
|
@@ -133,50 +134,50 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
133
134
|
placeholder: e.$attrs.placeholder,
|
|
134
135
|
value: i.value,
|
|
135
136
|
onClick: a[0] || (a[0] = (t) => d("click", t)),
|
|
136
|
-
onFocusin: a[1] || (a[1] =
|
|
137
|
+
onFocusin: a[1] || (a[1] = w(
|
|
137
138
|
(t) => {
|
|
138
|
-
d("focusin", t), e.labelText &&
|
|
139
|
+
d("focusin", t), e.labelText && m(P)();
|
|
139
140
|
},
|
|
140
141
|
["stop"]
|
|
141
142
|
)),
|
|
142
|
-
onFocusout: a[2] || (a[2] =
|
|
143
|
+
onFocusout: a[2] || (a[2] = w(
|
|
143
144
|
(t) => {
|
|
144
|
-
d("focusout", t), e.labelText && !e.keepFloatingLabel &&
|
|
145
|
+
d("focusout", t), e.labelText && !e.keepFloatingLabel && m($)(i.value);
|
|
145
146
|
},
|
|
146
147
|
["stop"]
|
|
147
148
|
)),
|
|
148
|
-
onInput:
|
|
149
|
+
onInput: w(S, ["stop"]),
|
|
149
150
|
onKeydown: [
|
|
150
151
|
a[3] || (a[3] = Q(() => d("keydownEnterPressed"), ["enter"])),
|
|
151
152
|
a[4] || (a[4] = (t) => d("keydown", t))
|
|
152
153
|
],
|
|
153
154
|
onKeyup: a[5] || (a[5] = (t) => d("keyup", t))
|
|
154
|
-
}, null, 42,
|
|
155
|
-
e.labelText ? (s(), J(
|
|
155
|
+
}, null, 42, X),
|
|
156
|
+
e.labelText ? (s(), J(R, {
|
|
156
157
|
key: 0,
|
|
157
158
|
for: r.value,
|
|
158
159
|
"label-text": e.labelText,
|
|
159
|
-
"label-state":
|
|
160
|
+
"label-state": m(c),
|
|
160
161
|
"is-valid": e.isValid,
|
|
161
162
|
required: e.$attrs.required,
|
|
162
163
|
disabled: e.$attrs.disabled,
|
|
163
164
|
"label-classes": [e.labelClasses, _],
|
|
164
165
|
"label-text-classes": e.labelTextClasses
|
|
165
|
-
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) :
|
|
166
|
-
|
|
166
|
+
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : g("", !0),
|
|
167
|
+
v(e.$slots, "feedback", {}, () => [
|
|
167
168
|
e.isValid === !1 ? (s(!0), o(B, { key: 0 }, E(f.value.invalid, (t, y) => (s(), o("div", {
|
|
168
169
|
key: `${r.value}_invalid_${y}`,
|
|
169
170
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-red",
|
|
170
171
|
innerHTML: t
|
|
171
|
-
}, null, 8,
|
|
172
|
+
}, null, 8, Y))), 128)) : e.isValid === !0 ? (s(!0), o(B, { key: 1 }, E(f.value.valid, (t, y) => (s(), o("div", {
|
|
172
173
|
key: `${r.value}_valid_${y}`,
|
|
173
174
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-blue",
|
|
174
175
|
innerHTML: t
|
|
175
|
-
}, null, 8,
|
|
176
|
+
}, null, 8, Z))), 128)) : g("", !0)
|
|
176
177
|
]),
|
|
177
178
|
e.$slots["under-label"] ? (s(), o("div", U, [
|
|
178
|
-
|
|
179
|
-
])) :
|
|
179
|
+
v(e.$slots, "under-label")
|
|
180
|
+
])) : g("", !0)
|
|
180
181
|
], 2));
|
|
181
182
|
}
|
|
182
183
|
});
|
|
@@ -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.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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-2xs 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 L, mergeModels as N, computed as m, useModel as D, createBlock as n, openBlock as u, unref as i, withCtx as l, createVNode as o, createElementBlock as b, createElementVNode as f, toDisplayString as k, Fragment as p, renderList as U, resolveDynamicComponent as B, mergeProps as F, createTextVNode as y } from "vue";
|
|
2
|
+
import { PaginationRoot as S, PaginationList as M, PaginationPrev as T, PaginationListItem as E, PaginationEllipsis as V, PaginationNext as j } from "reka-ui";
|
|
3
|
+
import { ArrowIcon as h } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useBreakpoints as z } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js";
|
|
6
|
+
const I = { class: "max-sm:uikit-hidden" }, Q = { class: "max-sm:uikit-hidden" }, G = /* @__PURE__ */ L({
|
|
7
7
|
__name: "BasePagination",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ N({
|
|
9
9
|
count: { default: 0 },
|
|
10
10
|
limit: { default: 25 },
|
|
11
11
|
siblings: {},
|
|
@@ -13,79 +13,102 @@ const z = { class: "max-sm:uikit-hidden" }, I = { class: "max-sm:uikit-hidden" }
|
|
|
13
13
|
prevLabel: { default: "" },
|
|
14
14
|
nextLabel: { default: "" },
|
|
15
15
|
prevDataCy: {},
|
|
16
|
-
nextDataCy: {}
|
|
16
|
+
nextDataCy: {},
|
|
17
|
+
linkProps: {},
|
|
18
|
+
linkTag: { type: [Object, Function, String], default: "a" },
|
|
19
|
+
baseUrl: {},
|
|
20
|
+
pageQueryParameter: { default: "p" },
|
|
21
|
+
formatter: { type: Function }
|
|
17
22
|
}, {
|
|
18
23
|
pageNumber: { default: 1 },
|
|
19
24
|
pageNumberModifiers: {}
|
|
20
25
|
}),
|
|
21
26
|
emits: ["update:pageNumber"],
|
|
22
|
-
setup(
|
|
23
|
-
const { isSmall: w } =
|
|
27
|
+
setup(a) {
|
|
28
|
+
const { isSmall: w } = z({
|
|
24
29
|
breakpoints: {
|
|
25
30
|
sm: 640,
|
|
26
31
|
md: 768,
|
|
27
32
|
lg: 1024,
|
|
28
33
|
xl: 1280
|
|
29
34
|
}
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
}), v = m(() => a.baseUrl ? a.linkTag : "button"), s = D(a, "pageNumber"), x = m(() => Math.ceil(a.count / a.limit)), P = (t = 1) => t === 1, C = (t = 1) => t === x.value, g = (t = 1) => {
|
|
36
|
+
if (a.baseUrl)
|
|
37
|
+
try {
|
|
38
|
+
const e = new URL(a.baseUrl);
|
|
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),
|
|
34
48
|
total: t.count,
|
|
35
49
|
"sibling-count": t.siblings ?? (i(w) ? 0 : 1),
|
|
36
50
|
"items-per-page": t.limit,
|
|
37
51
|
"show-edges": "",
|
|
38
52
|
class: "uikit-text-16"
|
|
39
53
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
42
|
-
default:
|
|
43
|
-
|
|
54
|
+
default: l(() => [
|
|
55
|
+
o(i(M), { class: "uikit-flex uikit-gap-x-md" }, {
|
|
56
|
+
default: l(({ items: d }) => [
|
|
57
|
+
o(i(T), {
|
|
44
58
|
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",
|
|
45
59
|
"data-cy": t.prevDataCy,
|
|
46
|
-
disabled:
|
|
60
|
+
disabled: P(s.value)
|
|
47
61
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
62
|
+
default: l(() => [
|
|
63
|
+
o(i(h), {
|
|
50
64
|
width: 20,
|
|
51
65
|
height: 11,
|
|
52
66
|
"stroke-color": t.arrowColor,
|
|
53
67
|
class: "uikit-inline-block uikit-rotate-90"
|
|
54
68
|
}, null, 8, ["stroke-color"]),
|
|
55
|
-
|
|
69
|
+
f("span", I, k(t.prevLabel), 1)
|
|
56
70
|
]),
|
|
57
71
|
_: 1
|
|
58
72
|
}, 8, ["data-cy", "disabled"]),
|
|
59
|
-
(
|
|
60
|
-
|
|
61
|
-
key:
|
|
62
|
-
value:
|
|
63
|
-
|
|
73
|
+
(u(!0), b(p, null, U(d, (r, c) => (u(), b(p, null, [
|
|
74
|
+
r.type === "page" ? (u(), n(i(E), {
|
|
75
|
+
key: c,
|
|
76
|
+
value: r.value,
|
|
77
|
+
"as-child": ""
|
|
64
78
|
}, {
|
|
65
|
-
default:
|
|
66
|
-
|
|
79
|
+
default: l(() => [
|
|
80
|
+
(u(), n(B(v.value), F({
|
|
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"]))
|
|
67
90
|
]),
|
|
68
91
|
_: 2
|
|
69
|
-
}, 1032, ["value"])) : (
|
|
70
|
-
key:
|
|
92
|
+
}, 1032, ["value"])) : (u(), n(i(V), {
|
|
93
|
+
key: r.type,
|
|
71
94
|
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",
|
|
72
|
-
index:
|
|
95
|
+
index: c
|
|
73
96
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
|
|
97
|
+
default: l(() => e[1] || (e[1] = [
|
|
98
|
+
y(" … ")
|
|
76
99
|
])),
|
|
77
100
|
_: 2,
|
|
78
101
|
__: [1]
|
|
79
102
|
}, 1032, ["index"]))
|
|
80
103
|
], 64))), 256)),
|
|
81
|
-
|
|
104
|
+
o(i(j), {
|
|
82
105
|
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",
|
|
83
106
|
"data-cy": t.nextDataCy,
|
|
84
|
-
disabled:
|
|
107
|
+
disabled: C(s.value)
|
|
85
108
|
}, {
|
|
86
|
-
default:
|
|
87
|
-
|
|
88
|
-
|
|
109
|
+
default: l(() => [
|
|
110
|
+
f("span", Q, k(t.nextLabel), 1),
|
|
111
|
+
o(i(h), {
|
|
89
112
|
"stroke-color": t.arrowColor,
|
|
90
113
|
width: 20,
|
|
91
114
|
height: 11,
|
|
@@ -103,5 +126,5 @@ const z = { class: "max-sm:uikit-hidden" }, I = { class: "max-sm:uikit-hidden" }
|
|
|
103
126
|
}
|
|
104
127
|
});
|
|
105
128
|
export {
|
|
106
|
-
|
|
129
|
+
G as default
|
|
107
130
|
};
|
|
@@ -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-2xs uikit-px-xs 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
|
-
import { defineComponent as x, mergeModels as u, useCssVars as
|
|
2
|
-
const
|
|
3
|
-
__name: "
|
|
1
|
+
import { defineComponent as x, mergeModels as u, useCssVars as w, computed as C, useModel as v, useId as y, watch as S, createElementBlock as a, openBlock as d, createCommentVNode as V, createElementVNode as O, normalizeClass as c, unref as m, toDisplayString as p, Fragment as z, renderList as B } from "vue";
|
|
2
|
+
const E = { class: "select-wrapper" }, D = ["for"], M = ["id"], T = ["data-idx", "selected"], N = /* @__PURE__ */ x({
|
|
3
|
+
__name: "BaseSelect",
|
|
4
4
|
props: /* @__PURE__ */ u({
|
|
5
5
|
labelText: { default: "" },
|
|
6
6
|
options: { default: () => [] },
|
|
@@ -18,10 +18,10 @@ const B = { class: "select-wrapper" }, D = ["for"], M = ["id"], N = ["data-idx",
|
|
|
18
18
|
}),
|
|
19
19
|
emits: /* @__PURE__ */ u(["change"], ["update:modelValue"]),
|
|
20
20
|
setup(o, { emit: f }) {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
w((e) => ({
|
|
22
|
+
"7c189782": b.value
|
|
23
23
|
}));
|
|
24
|
-
const s =
|
|
24
|
+
const s = v(o, "modelValue"), k = f, n = y(), b = C(() => `${o.arrowSize}px`), g = ({ target: e }) => {
|
|
25
25
|
const i = (e.selectedOptions?.[0]).dataset.idx;
|
|
26
26
|
if (i === void 0) return;
|
|
27
27
|
const h = o.options[i];
|
|
@@ -36,7 +36,7 @@ const B = { class: "select-wrapper" }, D = ["for"], M = ["id"], N = ["data-idx",
|
|
|
36
36
|
t && (s.value = t);
|
|
37
37
|
},
|
|
38
38
|
{ immediate: !0 }
|
|
39
|
-
), (e, t) => (d(), a("div",
|
|
39
|
+
), (e, t) => (d(), a("div", E, [
|
|
40
40
|
e.labelText ? (d(), a("label", {
|
|
41
41
|
key: 0,
|
|
42
42
|
for: m(n),
|
|
@@ -44,22 +44,22 @@ const B = { class: "select-wrapper" }, D = ["for"], M = ["id"], N = ["data-idx",
|
|
|
44
44
|
}, p(e.labelText), 11, D)) : V("", !0),
|
|
45
45
|
O("select", {
|
|
46
46
|
id: m(n),
|
|
47
|
-
class: c(["uikit-cursor-pointer uikit-bg-white uikit-pr-xl uikit-text-16 uikit-font-regular", {
|
|
47
|
+
class: c(["uikit-w-full uikit-cursor-pointer uikit-bg-white uikit-pr-xl uikit-text-16 uikit-font-regular", {
|
|
48
48
|
"uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-py-md uikit-pl-sm": e.border
|
|
49
49
|
}]),
|
|
50
50
|
onChange: t[0] || (t[0] = (l) => {
|
|
51
|
-
|
|
51
|
+
k("change", l), g(l);
|
|
52
52
|
})
|
|
53
53
|
}, [
|
|
54
|
-
(d(!0), a(z, null,
|
|
54
|
+
(d(!0), a(z, null, B(e.options, (l, i) => (d(), a("option", {
|
|
55
55
|
key: `option-${i}`,
|
|
56
56
|
"data-idx": i,
|
|
57
57
|
selected: r(l, s.value)
|
|
58
|
-
}, p(l.label), 9,
|
|
58
|
+
}, p(l.label), 9, T))), 128))
|
|
59
59
|
], 42, M)
|
|
60
60
|
]));
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
export {
|
|
64
|
-
|
|
64
|
+
N as default
|
|
65
65
|
};
|
|
@@ -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.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as $, mergeModels as n, useModel as T, ref as h, watch as C, createElementBlock as f, openBlock as b, normalizeClass as r, createElementVNode as v, createCommentVNode as L, unref as o, createVNode as x, withModifiers as u, nextTick as F } from "vue";
|
|
2
2
|
import M from "./BaseFloatingLabel.vue.js";
|
|
3
3
|
import '../../../../assets/packages/components/lib/UIKit/BaseFloatingLabel.css';/* empty css */
|
|
4
4
|
import { useFloatingLabel as E } from "../../../../composables/useFloatingLabel.js";
|
|
5
|
-
const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelledby", "readonly", "value"], B = ["innerHTML"], q = "peer-data-[validation='invalid']/fieldset:uikit-text-w-red peer-data-[validation='valid']/fieldset:uikit-text-w-blue", S = /* @__PURE__ */
|
|
5
|
+
const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelledby", "readonly", "value"], B = ["innerHTML"], q = "peer-data-[validation='invalid']/fieldset:uikit-text-w-red peer-data-[validation='valid']/fieldset:uikit-text-w-blue", S = /* @__PURE__ */ $({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "BaseTextarea",
|
|
8
8
|
props: /* @__PURE__ */ n({
|
|
@@ -17,21 +17,21 @@ const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelle
|
|
|
17
17
|
}),
|
|
18
18
|
emits: /* @__PURE__ */ n(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
|
|
19
19
|
setup(k, { expose: m, emit: p }) {
|
|
20
|
-
const t =
|
|
20
|
+
const t = T(k, "modelValue"), s = p, {
|
|
21
21
|
labelState: d,
|
|
22
22
|
handleFocusIn: c,
|
|
23
23
|
handleFocusOut: w,
|
|
24
24
|
setFloatingLabel: y,
|
|
25
25
|
setInlineLabel: V
|
|
26
|
-
} = E(), a =
|
|
27
|
-
|
|
26
|
+
} = E(), a = h(null);
|
|
27
|
+
C(
|
|
28
28
|
t,
|
|
29
29
|
(e) => {
|
|
30
30
|
`${e}`.length && d.value !== "floating-label" ? y() : !e?.length && d.value !== "inline-label" && document.activeElement !== a.value && V();
|
|
31
31
|
},
|
|
32
32
|
{ immediate: !0 }
|
|
33
33
|
);
|
|
34
|
-
const
|
|
34
|
+
const g = ({ target: e }) => {
|
|
35
35
|
t.value = e.value;
|
|
36
36
|
};
|
|
37
37
|
return m({
|
|
@@ -59,7 +59,7 @@ const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelle
|
|
|
59
59
|
ref_key: "textarea",
|
|
60
60
|
ref: a,
|
|
61
61
|
"data-cy": e.$attrs["data-cy"],
|
|
62
|
-
class: r(["textarea-scrollbar uikit-peer/fieldset uikit-relative uikit-min-h-[130px] uikit-min-w-[343px] uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-2xs uikit-border uikit-border-solid uikit-bg-white uikit-px-sm uikit-py-lg uikit-text-16 uikit-outline-none focus-visible:uikit-border-w-blue data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue", [
|
|
62
|
+
class: r(["textarea-scrollbar uikit-peer/fieldset uikit-relative uikit-min-h-[130px] uikit-min-w-[343px] uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-px-sm uikit-py-lg uikit-text-16 uikit-outline-none focus-visible:uikit-border-w-blue data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue", [
|
|
63
63
|
{ "is-invalid": e.isValid === !1 },
|
|
64
64
|
{ "is-valid": e.isValid },
|
|
65
65
|
{ "uikit-resize-none": !e.resize },
|
|
@@ -82,7 +82,7 @@ const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelle
|
|
|
82
82
|
},
|
|
83
83
|
["stop"]
|
|
84
84
|
)),
|
|
85
|
-
onInput: u(
|
|
85
|
+
onInput: u(g, ["stop"]),
|
|
86
86
|
onKeydown: i[2] || (i[2] = u((l) => s("keydown", l), ["stop"])),
|
|
87
87
|
onClick: i[3] || (i[3] = (l) => s("click", l)),
|
|
88
88
|
value: t.value
|
|
@@ -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-
|
|
32
|
+
class: s(["uikit-btn uikit-btn-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.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js";
|
|
3
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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",
|
|
@@ -19,7 +19,7 @@ const N = ["for"], q = /* @__PURE__ */ m({
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["click", "change", "update:modelValue"],
|
|
21
21
|
setup(t, { emit: r }) {
|
|
22
|
-
const i = f(), d = h(() => `${t.id
|
|
22
|
+
const i = f(), d = h(() => `${t.id ?? i}`), a = r;
|
|
23
23
|
b(
|
|
24
24
|
() => t.checked,
|
|
25
25
|
(e) => {
|
|
@@ -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-2xs 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
|