@wikicasa-dev/components 2.1.3 → 2.1.4-alpha.10
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/BaseAlert.d.ts +20 -9
- package/dist/UIKit/BaseBadge.d.ts +40 -5
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +4 -0
- package/dist/UIKit/BaseBanner.js +4 -0
- package/dist/UIKit/BaseBreadcrumb.js +3 -2
- package/dist/UIKit/BaseButton.d.ts +9 -8
- package/dist/UIKit/BaseChip.js +4 -0
- package/dist/UIKit/BaseCollapse.js +7 -0
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +5 -0
- package/dist/UIKit/BaseFloatingLabel.js +1 -3
- package/dist/UIKit/BaseInput.d.ts +4 -5
- package/dist/UIKit/BaseInput.js +1 -3
- package/dist/UIKit/BaseNotificationBadge.js +4 -0
- package/dist/UIKit/BasePagination.d.ts +10 -3
- package/dist/UIKit/BasePin.d.ts +22 -0
- package/dist/UIKit/BasePin.js +5 -0
- package/dist/UIKit/BaseSelect.d.ts +26 -0
- package/dist/UIKit/BaseSelect.js +5 -0
- package/dist/UIKit/BaseSlider.d.ts +14 -10
- package/dist/UIKit/BaseSlider.js +1 -4
- package/dist/UIKit/BaseSnackbar.js +4 -4
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +3 -3
- package/dist/UIKit/BaseToggle.d.ts +5 -8
- package/dist/UIKit/BaseToggle.js +1 -4
- package/dist/UIKit/BaseTooltip.d.ts +10 -20
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -5
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
- package/dist/UIKit/DatePicker.js +5 -0
- package/dist/UIKit/InputDropdown.js +4 -0
- package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
- package/dist/UIKit/Navigation/NavigationBar.js +5 -0
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
- package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +1 -3
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
- package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
- package/dist/UIKit/Tab/BaseTabItem.js +4 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
- package/dist/UIKit/types.d.ts +11 -6
- package/dist/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 +1 -0
- 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/BaseBreadcrumb.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +5 -2
- package/dist/index.js +98 -85
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +19 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +16 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +29 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +33 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.js +9 -9
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.js +17 -17
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/utils.js +32 -26
- 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 +30 -30
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +107 -13
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +28 -27
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +46 -11
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +32 -35
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +56 -36
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +48 -45
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +14 -17
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +93 -119
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +70 -66
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +89 -134
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +65 -0
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +107 -178
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +55 -73
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +27 -31
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +48 -33
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +19 -40
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +55 -52
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +20 -26
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +10 -9
- package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +10 -9
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +30 -27
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +40 -36
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +5 -6
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +5 -3
- package/package.json +26 -19
- package/plugins/buttonPlugin.ts +290 -0
- package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
- package/dist/UIKit/Slider/SimpleSlider.js +0 -7
- package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_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.11_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.11_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.11_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.11_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/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/classes-to-selector.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as o, createElementBlock as
|
|
2
|
-
const k = ["for"], b = ["innerHTML"],
|
|
1
|
+
import { defineComponent as o, createElementBlock as i, openBlock as s, withModifiers as r, normalizeClass as l, createElementVNode as d, createCommentVNode as u } from "vue";
|
|
2
|
+
const k = ["for"], b = ["innerHTML"], C = /* @__PURE__ */ o({
|
|
3
3
|
__name: "BaseFloatingLabel",
|
|
4
4
|
props: {
|
|
5
5
|
labelState: { default: "inline-label" },
|
|
@@ -10,31 +10,28 @@ const k = ["for"], b = ["innerHTML"], c = /* @__PURE__ */ o({
|
|
|
10
10
|
labelTextClasses: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["click"],
|
|
13
|
-
setup(
|
|
13
|
+
setup(p, { emit: a }) {
|
|
14
14
|
const n = a;
|
|
15
|
-
return (e,
|
|
15
|
+
return (e, t) => (s(), i("label", {
|
|
16
16
|
for: e.$attrs.for,
|
|
17
|
-
class:
|
|
18
|
-
onClick:
|
|
17
|
+
class: l(["uikit-floating-label uikit-h-5 uikit-pointer-events-none uikit-absolute uikit-left-sm uikit-text-16 uikit-text-w-gray", [e.labelState, { "uikit-text-w-secondary": e.disabled }, e.labelClasses]]),
|
|
18
|
+
onClick: t[0] || (t[0] = r((f) => n("click"), ["stop"]))
|
|
19
19
|
}, [
|
|
20
|
-
|
|
21
|
-
class:
|
|
22
|
-
e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
|
|
23
|
-
e.labelTextClasses
|
|
24
|
-
]]),
|
|
20
|
+
d("span", {
|
|
21
|
+
class: l([{ "uikit-text-w-secondary": e.disabled }, e.labelTextClasses]),
|
|
25
22
|
innerHTML: e.labelText
|
|
26
23
|
}, null, 10, b),
|
|
27
|
-
e.$attrs.required ? (s(),
|
|
24
|
+
e.$attrs.required ? (s(), i("span", {
|
|
28
25
|
key: 0,
|
|
29
|
-
class:
|
|
26
|
+
class: l(["uikit-absolute -uikit-top-[0.3rem]", [
|
|
30
27
|
{ "uikit-text-w-secondary": e.disabled },
|
|
31
|
-
{ "uikit-text-w-
|
|
32
|
-
{ "uikit-text-w-
|
|
28
|
+
{ "uikit-text-w-red": e.isValid === !1 },
|
|
29
|
+
{ "uikit-text-w-pink": (e.isValid || e.isValid === null) && !e.disabled }
|
|
33
30
|
]])
|
|
34
|
-
}, " *", 2)) :
|
|
31
|
+
}, " *", 2)) : u("", !0)
|
|
35
32
|
], 10, k));
|
|
36
33
|
}
|
|
37
34
|
});
|
|
38
35
|
export {
|
|
39
|
-
|
|
36
|
+
C as default
|
|
40
37
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
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
|
+
import '../../../../assets/packages/components/lib/UIKit/BaseFloatingLabel.css';/* empty css */
|
|
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 = {
|
|
5
6
|
key: 1,
|
|
6
7
|
class: "under-label uikit-absolute uikit-text-12"
|
|
7
|
-
},
|
|
8
|
+
}, _ = "peer-data-[validation='invalid']:uikit-text-w-red peer-data-[validation='valid']:uikit-text-w-blue", ne = /* @__PURE__ */ A({
|
|
8
9
|
inheritAttrs: !1,
|
|
9
10
|
__name: "BaseInput",
|
|
10
|
-
props: /* @__PURE__ */
|
|
11
|
+
props: /* @__PURE__ */ L({
|
|
11
12
|
inputClass: {},
|
|
12
13
|
labelText: { default: "" },
|
|
13
14
|
feedback: {},
|
|
@@ -15,7 +16,6 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
15
16
|
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
16
17
|
formatter: { default: null },
|
|
17
18
|
labelClasses: {},
|
|
18
|
-
fieldsetClasses: {},
|
|
19
19
|
labelTextClasses: {},
|
|
20
20
|
withLeftIcon: { type: Boolean, default: () => {
|
|
21
21
|
} },
|
|
@@ -26,73 +26,71 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
26
26
|
modelValue: { default: "" },
|
|
27
27
|
modelModifiers: {}
|
|
28
28
|
}),
|
|
29
|
-
emits: /* @__PURE__ */
|
|
30
|
-
setup(l, { expose:
|
|
31
|
-
const
|
|
32
|
-
labelState:
|
|
33
|
-
handleFocusIn:
|
|
34
|
-
handleFocusOut:
|
|
35
|
-
setInlineLabel:
|
|
36
|
-
setFloatingLabel:
|
|
37
|
-
} =
|
|
29
|
+
emits: /* @__PURE__ */ L(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
30
|
+
setup(l, { expose: M, emit: H }) {
|
|
31
|
+
const u = N(l, "modelValue"), i = v(""), d = H, {
|
|
32
|
+
labelState: c,
|
|
33
|
+
handleFocusIn: P,
|
|
34
|
+
handleFocusOut: w,
|
|
35
|
+
setInlineLabel: $,
|
|
36
|
+
setFloatingLabel: V
|
|
37
|
+
} = X(), I = O(), q = j(), r = D(() => I.id || q), n = v("text"), f = v({}), b = v(null), K = () => {
|
|
38
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]));
|
|
39
|
-
},
|
|
39
|
+
}, F = (e, a) => {
|
|
40
40
|
if (!l.formatter || !l.formatter.formatFn)
|
|
41
|
-
return
|
|
41
|
+
return i.value = e, "";
|
|
42
42
|
const t = e.length ? l.formatter.formatFn(e) : e;
|
|
43
|
-
return
|
|
44
|
-
},
|
|
45
|
-
if (
|
|
46
|
-
return
|
|
47
|
-
if (!
|
|
43
|
+
return a && (a.value = t), i.value = t, t;
|
|
44
|
+
}, C = (e, a = !0) => {
|
|
45
|
+
if (a && (!l.formatter || !l.formatter.unFormatFn))
|
|
46
|
+
return u.value = e, e;
|
|
47
|
+
if (!a || !l.formatter || !l.formatter.unFormatFn) return;
|
|
48
48
|
const t = l.formatter.unFormatFn(e);
|
|
49
|
-
return
|
|
50
|
-
},
|
|
51
|
-
const
|
|
52
|
-
|
|
49
|
+
return u.value = t ?? "", t;
|
|
50
|
+
}, R = ({ target: e }) => {
|
|
51
|
+
const a = e, t = C(a.value);
|
|
52
|
+
F(
|
|
53
53
|
`${t}`,
|
|
54
|
-
t ===
|
|
54
|
+
t === u.value ? a : void 0
|
|
55
55
|
);
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
},
|
|
56
|
+
}, S = () => {
|
|
57
|
+
u.value = "", $();
|
|
58
|
+
}, z = () => {
|
|
59
59
|
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
return p(
|
|
62
62
|
() => l.feedback,
|
|
63
63
|
() => {
|
|
64
|
-
|
|
64
|
+
K();
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
immediate: !0
|
|
68
68
|
}
|
|
69
|
-
),
|
|
70
|
-
|
|
69
|
+
), p(
|
|
70
|
+
u,
|
|
71
71
|
(e) => {
|
|
72
|
-
|
|
72
|
+
F(
|
|
73
73
|
`${e}`,
|
|
74
|
-
|
|
75
|
-
),
|
|
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 && $();
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
immediate: !0
|
|
79
79
|
}
|
|
80
|
-
),
|
|
80
|
+
), p(
|
|
81
81
|
() => l.keepFloatingLabel,
|
|
82
82
|
(e) => {
|
|
83
|
-
e ?
|
|
83
|
+
e ? V() : w(u.value);
|
|
84
84
|
}
|
|
85
|
-
)
|
|
86
|
-
const S = N();
|
|
87
|
-
return n.value = S.type || "text", B({
|
|
85
|
+
), n.value = I.type || "text", M({
|
|
88
86
|
select: () => {
|
|
89
87
|
b.value?.select();
|
|
90
88
|
}
|
|
91
|
-
}), (e,
|
|
92
|
-
class:
|
|
89
|
+
}), (e, a) => (s(), o("div", {
|
|
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", [
|
|
93
91
|
e.$attrs.class,
|
|
94
92
|
{ "floating-label": e.labelText },
|
|
95
|
-
|
|
93
|
+
k(c) === "floating-label" ? "floating-state" : "inline-state",
|
|
96
94
|
{
|
|
97
95
|
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
98
96
|
},
|
|
@@ -102,34 +100,29 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
102
100
|
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
103
101
|
]])
|
|
104
102
|
}, [
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
handleClean:
|
|
108
|
-
handleShowPasswd:
|
|
103
|
+
m(e.$slots, "leftIcon"),
|
|
104
|
+
m(e.$slots, "righticon", {
|
|
105
|
+
handleClean: S,
|
|
106
|
+
handleShowPasswd: z,
|
|
109
107
|
curType: n.value
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
id:
|
|
108
|
+
}),
|
|
109
|
+
G("input", {
|
|
110
|
+
id: r.value,
|
|
113
111
|
ref_key: "baseInputEl",
|
|
114
112
|
ref: b,
|
|
115
113
|
"data-cy": e.dataCy,
|
|
116
114
|
name: e.$attrs.name,
|
|
117
|
-
class:
|
|
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", [
|
|
118
116
|
{
|
|
119
|
-
"is-invalid
|
|
120
|
-
"is-valid
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
117
|
+
"is-invalid": e.isValid === !1,
|
|
118
|
+
"is-valid": e.isValid
|
|
127
119
|
},
|
|
128
120
|
e.inputClass
|
|
129
121
|
]]),
|
|
122
|
+
"data-validation": e.isValid ? "valid" : e.isValid === !1 ? "invalid" : "",
|
|
130
123
|
autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
|
|
131
124
|
disabled: e.$attrs.disabled,
|
|
132
|
-
"aria-labelledby":
|
|
125
|
+
"aria-labelledby": r.value,
|
|
133
126
|
readonly: e.$attrs.readonly,
|
|
134
127
|
type: n.value,
|
|
135
128
|
pattern: e.$attrs.pattern,
|
|
@@ -138,74 +131,55 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
138
131
|
maxlength: e.$attrs.maxlength,
|
|
139
132
|
inputmode: e.$attrs.inputmode,
|
|
140
133
|
placeholder: e.$attrs.placeholder,
|
|
141
|
-
value:
|
|
142
|
-
onClick:
|
|
143
|
-
onFocusin:
|
|
144
|
-
|
|
145
|
-
|
|
134
|
+
value: i.value,
|
|
135
|
+
onClick: a[0] || (a[0] = (t) => d("click", t)),
|
|
136
|
+
onFocusin: a[1] || (a[1] = g(
|
|
137
|
+
(t) => {
|
|
138
|
+
d("focusin", t), e.labelText && k(P)();
|
|
139
|
+
},
|
|
140
|
+
["stop"]
|
|
141
|
+
)),
|
|
142
|
+
onFocusout: a[2] || (a[2] = g(
|
|
143
|
+
(t) => {
|
|
144
|
+
d("focusout", t), e.labelText && !e.keepFloatingLabel && k(w)(i.value);
|
|
145
|
+
},
|
|
146
|
+
["stop"]
|
|
147
|
+
)),
|
|
148
|
+
onInput: g(R, ["stop"]),
|
|
146
149
|
onKeydown: [
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
a[3] || (a[3] = Q(() => d("keydownEnterPressed"), ["enter"])),
|
|
151
|
+
a[4] || (a[4] = (t) => d("keydown", t))
|
|
149
152
|
],
|
|
150
|
-
onKeyup:
|
|
151
|
-
}, null, 42,
|
|
152
|
-
|
|
153
|
-
class: v(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-py-0 uikit-text-left uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger", [
|
|
154
|
-
{
|
|
155
|
-
"is-invalid uikit-border-w-danger": e.isValid === !1,
|
|
156
|
-
"is-valid uikit-border-w-primary": e.isValid,
|
|
157
|
-
"uikit-border-w-secondary": e.isValid === null
|
|
158
|
-
},
|
|
159
|
-
{ "uikit-top-0": !e.labelText },
|
|
160
|
-
e.fieldsetClasses
|
|
161
|
-
]])
|
|
162
|
-
}, [
|
|
163
|
-
h("legend", Q, [
|
|
164
|
-
h("span", {
|
|
165
|
-
class: v(["visible-label uikit-opacity-0", [
|
|
166
|
-
{ "uikit-mx-5px": e.labelText },
|
|
167
|
-
{
|
|
168
|
-
"uikit-visible uikit-inline-block": s(d) === "floating-label"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"uikit-invisible uikit-hidden": s(d) === "inline-label"
|
|
172
|
-
}
|
|
173
|
-
]]),
|
|
174
|
-
innerHTML: e.labelText
|
|
175
|
-
}, null, 10, W)
|
|
176
|
-
])
|
|
177
|
-
], 2),
|
|
178
|
-
e.labelText ? (u(), O(D, {
|
|
153
|
+
onKeyup: a[5] || (a[5] = (t) => d("keyup", t))
|
|
154
|
+
}, null, 42, Y),
|
|
155
|
+
e.labelText ? (s(), J(W, {
|
|
179
156
|
key: 0,
|
|
180
|
-
for:
|
|
157
|
+
for: r.value,
|
|
181
158
|
"label-text": e.labelText,
|
|
182
|
-
"label-state":
|
|
159
|
+
"label-state": k(c),
|
|
183
160
|
"is-valid": e.isValid,
|
|
184
161
|
required: e.$attrs.required,
|
|
185
162
|
disabled: e.$attrs.disabled,
|
|
186
|
-
"label-classes": [
|
|
187
|
-
s(d) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
188
|
-
e.labelClasses
|
|
189
|
-
],
|
|
163
|
+
"label-classes": [e.labelClasses, _],
|
|
190
164
|
"label-text-classes": e.labelTextClasses
|
|
191
|
-
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) :
|
|
192
|
-
|
|
193
|
-
e.isValid === !1 ? (
|
|
194
|
-
key: `${
|
|
195
|
-
class: "uikit-mt-1 uikit-text-12 uikit-text-w-
|
|
165
|
+
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : h("", !0),
|
|
166
|
+
m(e.$slots, "feedback", {}, () => [
|
|
167
|
+
e.isValid === !1 ? (s(!0), o(B, { key: 0 }, E(f.value.invalid, (t, y) => (s(), o("div", {
|
|
168
|
+
key: `${r.value}_invalid_${y}`,
|
|
169
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-red",
|
|
196
170
|
innerHTML: t
|
|
197
|
-
}, null, 8,
|
|
198
|
-
key: `${
|
|
199
|
-
class: "uikit-mt-1 uikit-text-12 uikit-text-w-
|
|
171
|
+
}, null, 8, Z))), 128)) : e.isValid === !0 ? (s(!0), o(B, { key: 1 }, E(f.value.valid, (t, y) => (s(), o("div", {
|
|
172
|
+
key: `${r.value}_valid_${y}`,
|
|
173
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-blue",
|
|
200
174
|
innerHTML: t
|
|
201
|
-
}, null, 8,
|
|
202
|
-
]
|
|
203
|
-
e.$slots["under-label"] ? (
|
|
204
|
-
|
|
205
|
-
])) :
|
|
175
|
+
}, null, 8, x))), 128)) : h("", !0)
|
|
176
|
+
]),
|
|
177
|
+
e.$slots["under-label"] ? (s(), o("div", U, [
|
|
178
|
+
m(e.$slots, "under-label")
|
|
179
|
+
])) : h("", !0)
|
|
206
180
|
], 2));
|
|
207
181
|
}
|
|
208
182
|
});
|
|
209
183
|
export {
|
|
210
|
-
|
|
184
|
+
ne as default
|
|
211
185
|
};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import "../../../../node_modules/.pnpm
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import "../../../../_virtual/polyline.js";
|
|
6
|
-
import { CloseIcon as V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
7
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
8
|
-
const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
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.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
|
+
const j = ["id", "data-cy"], q = ["innerHTML"], X = /* @__PURE__ */ z({
|
|
9
5
|
__name: "BaseModal",
|
|
10
6
|
props: {
|
|
11
|
-
id: {
|
|
7
|
+
id: {},
|
|
12
8
|
size: { default: "modal-md" },
|
|
13
9
|
customBackdropClasses: {},
|
|
14
10
|
customModalDialogClasses: {},
|
|
@@ -27,25 +23,33 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
27
23
|
titleClasses: {}
|
|
28
24
|
},
|
|
29
25
|
emits: ["closed", "opened", "dialogClick"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
26
|
+
setup(s, { emit: C }) {
|
|
27
|
+
const b = () => navigator?.userAgent.includes("Windows"), M = (e, n) => new Promise((m, O) => {
|
|
28
|
+
setTimeout(() => {
|
|
29
|
+
try {
|
|
30
|
+
e && e(), m();
|
|
31
|
+
} catch ($) {
|
|
32
|
+
O($);
|
|
33
|
+
}
|
|
34
|
+
}, n);
|
|
35
|
+
}), c = C, t = d(!1), p = d(null), a = D("modalDialog"), k = d(!1), u = d(!1), B = K(), L = N(() => s.id || B), v = ({ key: e }) => {
|
|
32
36
|
e === "Escape" && i();
|
|
33
|
-
},
|
|
34
|
-
document?.body.addEventListener("keydown",
|
|
35
|
-
},
|
|
36
|
-
document?.body.removeEventListener("keydown",
|
|
37
|
-
},
|
|
38
|
-
t.value = !0,
|
|
39
|
-
|
|
40
|
-
}),
|
|
37
|
+
}, E = () => {
|
|
38
|
+
document?.body.addEventListener("keydown", v);
|
|
39
|
+
}, y = () => {
|
|
40
|
+
document?.body.removeEventListener("keydown", v);
|
|
41
|
+
}, T = async () => {
|
|
42
|
+
t.value = !0, U(() => {
|
|
43
|
+
E(), b() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
44
|
+
}), c("opened"), s.autoClose !== void 0 && setTimeout(() => {
|
|
41
45
|
i();
|
|
42
|
-
},
|
|
43
|
-
},
|
|
46
|
+
}, s.autoClose);
|
|
47
|
+
}, I = (e) => {
|
|
44
48
|
a.value && a.value.contains(e.target) && (u.value = !0);
|
|
45
49
|
}, x = (e) => {
|
|
46
50
|
a.value && a.value.contains(e.target) && (u.value = !1);
|
|
47
|
-
},
|
|
48
|
-
if (
|
|
51
|
+
}, H = async () => {
|
|
52
|
+
if (s.closeOnClickOut) {
|
|
49
53
|
if (u.value) {
|
|
50
54
|
u.value = !1;
|
|
51
55
|
return;
|
|
@@ -53,41 +57,41 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
53
57
|
await i();
|
|
54
58
|
}
|
|
55
59
|
}, i = async () => {
|
|
56
|
-
t.value = !1,
|
|
57
|
-
|
|
60
|
+
t.value = !1, y(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await M(() => {
|
|
61
|
+
p.value?.classList.add("uikit-hidden"), c("closed");
|
|
58
62
|
}, 250);
|
|
59
63
|
};
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
}),
|
|
63
|
-
() =>
|
|
64
|
+
return S(() => {
|
|
65
|
+
y(), document?.documentElement.classList.remove("uikit-no-scrolling"), b() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
66
|
+
}), V(
|
|
67
|
+
() => s.showModal,
|
|
64
68
|
async (e) => {
|
|
65
|
-
!e && !t.value ?
|
|
69
|
+
!e && !t.value ? k.value = !0 : k.value = !1, e && !t.value && await T(), !e && t.value && await i(), t.value = e;
|
|
66
70
|
},
|
|
67
71
|
{ immediate: !0 }
|
|
68
|
-
), (e,
|
|
69
|
-
|
|
72
|
+
), (e, n) => (f(), W(A, { to: "body" }, [
|
|
73
|
+
l("div", {
|
|
70
74
|
ref_key: "backdropEl",
|
|
71
|
-
ref:
|
|
75
|
+
ref: p,
|
|
72
76
|
class: o(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
73
77
|
e.customBackdropClasses,
|
|
74
78
|
{
|
|
75
|
-
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards]
|
|
79
|
+
"uikit-bg-w-darkblue/70 uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards]": t.value
|
|
76
80
|
},
|
|
77
81
|
{ "uikit-bg-transparent": !t.value },
|
|
78
82
|
{ "sm:uikit-pt-[30px]": !e.centered },
|
|
79
|
-
{ hide:
|
|
83
|
+
{ hide: k.value }
|
|
80
84
|
]]),
|
|
81
85
|
style: { "z-index": "1062" },
|
|
82
|
-
onClick:
|
|
83
|
-
onMousedown:
|
|
86
|
+
onClick: H,
|
|
87
|
+
onMousedown: I,
|
|
84
88
|
onMouseup: x
|
|
85
89
|
}, [
|
|
86
|
-
|
|
87
|
-
id:
|
|
90
|
+
l("dialog", {
|
|
91
|
+
id: L.value,
|
|
88
92
|
ref: "modalDialog",
|
|
89
93
|
"data-cy": e.dataCy,
|
|
90
|
-
class: o(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
|
|
94
|
+
class: o(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded-2xs uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
|
|
91
95
|
e.customModalDialogClasses,
|
|
92
96
|
{ show: t.value },
|
|
93
97
|
{ "closed uikit-overflow-hidden": !t.value },
|
|
@@ -97,50 +101,50 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
97
101
|
`base-${e.size}`,
|
|
98
102
|
e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
99
103
|
]]),
|
|
100
|
-
onClick:
|
|
104
|
+
onClick: n[0] || (n[0] = g((m) => c("dialogClick", m), ["stop"]))
|
|
101
105
|
}, [
|
|
102
|
-
|
|
103
|
-
class: o(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-
|
|
106
|
+
l("div", {
|
|
107
|
+
class: o(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-flex uikit-items-center uikit-border-0 uikit-bg-white uikit-p-md uikit-text-20 uikit-font-semibold sm:uikit-p-lg", [e.customModalHeaderClasses]])
|
|
104
108
|
}, [
|
|
105
|
-
e
|
|
109
|
+
r(e.$slots, "header", { closeModal: i }, () => [
|
|
110
|
+
l("span", {
|
|
111
|
+
class: o(["uikit-w-auto uikit-grow", e.titleClasses]),
|
|
112
|
+
innerHTML: e.headerTitle
|
|
113
|
+
}, null, 10, q)
|
|
114
|
+
]),
|
|
115
|
+
e.withCloseIcon ? (f(), w("button", {
|
|
106
116
|
key: 0,
|
|
107
117
|
id: "close-icon-btn",
|
|
108
118
|
"data-cy": "bbt-default-close-icon-btn",
|
|
109
|
-
class: o(["uikit-
|
|
119
|
+
class: o(["uikit-cursor-pointer uikit-bg-transparent uikit-p-0", e.closeIconBtnClasses]),
|
|
110
120
|
type: "button",
|
|
111
121
|
"aria-label": "Close",
|
|
112
|
-
onClick:
|
|
122
|
+
onClick: g(i, ["prevent", "stop"])
|
|
113
123
|
}, [
|
|
114
|
-
|
|
115
|
-
class: "bbt-close-icon uikit-box-border
|
|
116
|
-
width:
|
|
117
|
-
height:
|
|
124
|
+
F(P(R), {
|
|
125
|
+
class: "bbt-close-icon uikit-box-border",
|
|
126
|
+
width: 24,
|
|
127
|
+
height: 24
|
|
118
128
|
})
|
|
119
|
-
], 2)) : h("", !0)
|
|
120
|
-
d(e.$slots, "header", { closeModal: i }, () => [
|
|
121
|
-
s("span", {
|
|
122
|
-
class: o(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
|
|
123
|
-
innerHTML: e.headerTitle
|
|
124
|
-
}, null, 10, U)
|
|
125
|
-
])
|
|
129
|
+
], 2)) : h("", !0)
|
|
126
130
|
], 2),
|
|
127
|
-
|
|
128
|
-
class: o(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-
|
|
131
|
+
l("div", {
|
|
132
|
+
class: o(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-md uikit-pb-md uikit-no-scrollbar sm:uikit-px-lg sm:uikit-pb-lg", [e.customModalBodyClasses]])
|
|
129
133
|
}, [
|
|
130
|
-
|
|
134
|
+
r(e.$slots, "body", { closeModal: i })
|
|
131
135
|
], 2),
|
|
132
|
-
e.$slots.footer ? (
|
|
136
|
+
e.$slots.footer ? (f(), w("div", {
|
|
133
137
|
key: 0,
|
|
134
|
-
class: o(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-
|
|
138
|
+
class: o(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-w-cultured uikit-px-md uikit-py-sm sm:uikit-px-lg sm:uikit-py-md", e.customModalFooterClasses])
|
|
135
139
|
}, [
|
|
136
|
-
|
|
140
|
+
r(e.$slots, "footer", { closeModal: i })
|
|
137
141
|
], 2)) : h("", !0),
|
|
138
|
-
|
|
139
|
-
], 10,
|
|
142
|
+
r(e.$slots, "fixed-bottom")
|
|
143
|
+
], 10, j)
|
|
140
144
|
], 34)
|
|
141
145
|
]));
|
|
142
146
|
}
|
|
143
147
|
});
|
|
144
148
|
export {
|
|
145
|
-
|
|
149
|
+
X as default
|
|
146
150
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineComponent as o, createElementBlock as e, openBlock as i, renderSlot as n, createCommentVNode as u, toDisplayString as s } from "vue";
|
|
2
|
+
const r = { class: "uikit-relative uikit-inline-block" }, a = {
|
|
3
|
+
key: 0,
|
|
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
|
+
}, p = /* @__PURE__ */ o({
|
|
6
|
+
__name: "BaseNotificationBadge",
|
|
7
|
+
props: {
|
|
8
|
+
count: { default: 0 }
|
|
9
|
+
},
|
|
10
|
+
setup(l) {
|
|
11
|
+
return (t, c) => (i(), e("span", r, [
|
|
12
|
+
n(t.$slots, "default"),
|
|
13
|
+
t.count ? (i(), e("span", a, s(t.count), 1)) : u("", !0)
|
|
14
|
+
]));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
p as default
|
|
19
|
+
};
|