@wikicasa-dev/components 2.1.4-alpha.3 → 2.1.4-alpha.4
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/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/assets/packages/components/lib/UIKit/{NativeSelect.css → BaseSelect.css} +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +93 -87
- package/dist/packages/components/lib/UIKit/{NativeSelect.vue.js → BaseSelect.vue.js} +17 -17
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +8 -8
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +9 -7
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +2 -2
- package/package.json +1 -1
- package/dist/UIKit/NativeSelect.js +0 -5
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
type?: "default" | "large" | "rounded";
|
|
3
|
+
pinClass?: "white" | "blue" | "cultured" | "dark-blue" | "red";
|
|
4
|
+
outlined?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLSpanElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AccessibleSelectOptions, ClassTypeProp } from './types';
|
|
2
|
+
import { Optional } from '@wikicasa-dev/types';
|
|
3
|
+
declare const _default: <TPayload, TID extends string | number | undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly onChange?: ((args_0: Event) => any) | undefined;
|
|
6
|
+
readonly "onUpdate:modelValue"?: ((value: Optional<AccessibleSelectOptions<TPayload, TID>>) => any) | undefined;
|
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & ({
|
|
8
|
+
modelValue?: Optional<AccessibleSelectOptions<TPayload, TID>>;
|
|
9
|
+
} & {
|
|
10
|
+
labelText?: string;
|
|
11
|
+
options?: AccessibleSelectOptions<TPayload, TID>[];
|
|
12
|
+
border?: boolean;
|
|
13
|
+
labelClasses?: ClassTypeProp;
|
|
14
|
+
arrowSize?: number;
|
|
15
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
16
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
17
|
+
attrs: any;
|
|
18
|
+
slots: {};
|
|
19
|
+
emit: ((evt: "change", args_0: Event) => void) & ((evt: "update:modelValue", value: Optional<AccessibleSelectOptions<TPayload, TID>>) => void);
|
|
20
|
+
}>) => import('vue').VNode & {
|
|
21
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_PrettifyLocal<T> = {
|
|
25
|
+
[K in keyof T]: T[K];
|
|
26
|
+
} & {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "../packages/components/lib/UIKit/BaseTextarea.vue.js";
|
|
2
2
|
import '../assets/packages/components/lib/UIKit/BaseTextarea.css';/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-48b631cc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.select-wrapper{position:relative;display:inline-block}.select-wrapper select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3E%3Cg%3E%3Cpath d='M21.006,9.708l-7.448,7.448a.543.543,0,0,1-.779,0L5.331,9.708a.548.548,0,0,1,.384-.932H20.622A.543.543,0,0,1,21.006,9.708Z' transform='translate(-5.172 -5.048)' fill='%230e1d34'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:var(--
|
|
1
|
+
.select-wrapper{position:relative;display:inline-block}.select-wrapper select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3E%3Cg%3E%3Cpath d='M21.006,9.708l-7.448,7.448a.543.543,0,0,1-.779,0L5.331,9.708a.548.548,0,0,1,.384-.932H20.622A.543.543,0,0,1,21.006,9.708Z' transform='translate(-5.172 -5.048)' fill='%230e1d34'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:var(--50d63191)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.invalid-bg[data-v-
|
|
1
|
+
.invalid-bg[data-v-48b631cc],.valid-bg[data-v-48b631cc]{background-position:top 0px right 12px;background-size:20px}.textarea-scrollbar[data-v-48b631cc]::-webkit-scrollbar{width:8px;height:6px}.textarea-scrollbar[data-v-48b631cc]::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(244 247 255 / var(--tw-bg-opacity, 1))}.textarea-scrollbar[data-v-48b631cc]::-webkit-scrollbar-thumb{border-radius:5px;--tw-bg-opacity: 1;background-color:rgb(22 47 128 / var(--tw-bg-opacity, 1))}.is-valid.textarea-scrollbar[data-v-48b631cc]::-webkit-scrollbar-thumb{background-color:#f20282!important}.is-invalid.textarea-scrollbar[data-v-48b631cc]::-webkit-scrollbar-thumb{background-color:#f20003!important}
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ import { default as BaseIcon } from './UIKit/BaseIcon';
|
|
|
22
22
|
import { default as BaseInput } from './UIKit/BaseInput';
|
|
23
23
|
import { default as BasePagination } from './UIKit/BasePagination';
|
|
24
24
|
import { default as BasePaper } from './UIKit/BasePaper';
|
|
25
|
+
import { default as BasePin } from './UIKit/BasePin';
|
|
26
|
+
import { default as BaseSelect } from './UIKit/BaseSelect';
|
|
25
27
|
import { default as BaseSlider } from './UIKit/BaseSlider';
|
|
26
28
|
import { default as BaseTextarea } from './UIKit/BaseTextarea';
|
|
27
29
|
import { default as BaseToggle } from './UIKit/BaseToggle';
|
|
@@ -43,4 +45,4 @@ import { default as NavigationBar } from './UIKit/Navigation/NavigationBar';
|
|
|
43
45
|
import { default as NavigationBarItem } from './UIKit/Navigation/NavigationBarItem';
|
|
44
46
|
export * from './UIKit/types';
|
|
45
47
|
export type { ChartOptions, ChartData } from 'chart.js';
|
|
46
|
-
export { NavigationBar, NavigationBarItem, DoughnutChart, LineChart, BaseAccordion, BaseAccordionBtn, BaseAccordionContent, BaseAccordionItem, SelectItem, BaseAlert, BaseAutocomplete, BaseBadge, BaseButton, AccessibleSelect, BaseComplexToggle, BaseDropDown, BaseFloatingLabel, BaseCard, BaseIcon, BaseInput, BasePagination, BasePaper, BaseSlider, BaseTab, BaseTextarea, BaseToggle, BaseTooltip, BaseUploadFile, CheckboxBtn, CheckboxGroup, RadioButton, RadioGroup, SwiperCarousel, SwiperSlide, IntersectionObservable, IntersectionObserver, BaseModal, BaseSnackbar, BaseTabView, BaseShimmerLoader, ShimmerMultiLine, StaticSpinner, BaseBreadcrumb, };
|
|
48
|
+
export { NavigationBar, NavigationBarItem, DoughnutChart, LineChart, BaseAccordion, BaseAccordionBtn, BaseAccordionContent, BaseAccordionItem, SelectItem, BaseAlert, BaseAutocomplete, BaseBadge, BaseButton, AccessibleSelect, BaseComplexToggle, BaseDropDown, BaseFloatingLabel, BaseCard, BaseIcon, BaseInput, BasePagination, BasePaper, BasePin, BaseSelect, BaseSlider, BaseTab, BaseTextarea, BaseToggle, BaseTooltip, BaseUploadFile, CheckboxBtn, CheckboxGroup, RadioButton, RadioGroup, SwiperCarousel, SwiperSlide, IntersectionObservable, IntersectionObserver, BaseModal, BaseSnackbar, BaseTabView, BaseShimmerLoader, ShimmerMultiLine, StaticSpinner, BaseBreadcrumb, };
|
package/dist/index.js
CHANGED
|
@@ -1,97 +1,103 @@
|
|
|
1
|
-
import './assets/packages/components/lib/UIKit/Navigation/NavigationBar.css';import './assets/packages/components/lib/UIKit/BaseBreadcrumb.css';import './assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css';import './assets/packages/components/lib/UIKit/BaseModal.css';import './assets/packages/components/lib/UIKit/BaseInput.css';import './assets/packages/components/lib/UIKit/BaseFloatingLabel.css';import './assets/packages/components/lib/UIKit/BaseBadge.css';import './assets/packages/components/lib/UIKit/BaseAlert.css';import './assets/packages/components/src/tailwind.css';/* empty css */
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
1
|
+
import './assets/packages/components/lib/UIKit/Navigation/NavigationBar.css';import './assets/packages/components/lib/UIKit/BaseBreadcrumb.css';import './assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css';import './assets/packages/components/lib/UIKit/BaseModal.css';import './assets/packages/components/lib/UIKit/BaseSelect.css';import './assets/packages/components/lib/UIKit/BasePin.css';import './assets/packages/components/lib/UIKit/BaseInput.css';import './assets/packages/components/lib/UIKit/BaseFloatingLabel.css';import './assets/packages/components/lib/UIKit/BaseBadge.css';import './assets/packages/components/lib/UIKit/BaseAlert.css';import './assets/packages/components/src/tailwind.css';/* empty css */
|
|
2
|
+
import { default as i } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
|
|
3
|
+
import { default as n } from "./packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js";
|
|
4
|
+
import { default as S } from "./packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js";
|
|
5
|
+
import { default as g } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
|
|
6
|
+
import { default as h } from "./packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js";
|
|
7
|
+
import { default as I } from "./packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js";
|
|
8
|
+
import { default as v } from "./packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js";
|
|
9
|
+
import { default as L } from "./packages/components/lib/UIKit/Tab/BaseTab.vue.js";
|
|
10
|
+
import { default as D } from "./packages/components/lib/UIKit/Tab/BaseTabView.vue.js";
|
|
11
|
+
import { default as F } from "./packages/components/lib/UIKit/Radio/RadioButton.vue.js";
|
|
12
|
+
import { default as M } from "./packages/components/lib/UIKit/Radio/RadioGroup.vue.js";
|
|
13
|
+
import { default as O } from "./packages/components/lib/UIKit/AccessibleSelect.vue.js";
|
|
14
|
+
import { default as U } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
|
|
15
15
|
/* empty css */
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
16
|
+
import { default as j } from "./packages/components/lib/UIKit/BaseAutocomplete.vue.js";
|
|
17
|
+
import { default as y } from "./packages/components/lib/UIKit/BaseBadge.vue.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
19
|
+
import { default as E } from "./packages/components/lib/UIKit/BaseButton.vue.js";
|
|
20
|
+
import { default as J } from "./UIKit/BaseCard.js";
|
|
21
|
+
import { default as Q } from "./UIKit/BaseComplexToggle.js";
|
|
22
|
+
import { default as X } from "./packages/components/lib/UIKit/BaseDropDown.vue.js";
|
|
23
|
+
import { default as Z } from "./packages/components/lib/UIKit/BaseFloatingLabel.vue.js";
|
|
24
24
|
/* empty css */
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
25
|
+
import { default as $ } from "./UIKit/BaseIcon.js";
|
|
26
|
+
import { default as ae } from "./packages/components/lib/UIKit/BaseInput.vue.js";
|
|
27
27
|
/* empty css */
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
|
|
32
|
-
import { default as
|
|
33
|
-
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
28
|
+
import { default as te } from "./packages/components/lib/UIKit/BasePagination.vue.js";
|
|
29
|
+
import { default as fe } from "./UIKit/BasePaper.js";
|
|
30
|
+
import { default as pe } from "./packages/components/lib/UIKit/BasePin.vue.js";
|
|
31
|
+
/* empty css */
|
|
32
|
+
import { default as le } from "./packages/components/lib/UIKit/BaseSelect.vue.js";
|
|
33
|
+
/* empty css */
|
|
34
|
+
import { default as ue } from "./packages/components/lib/UIKit/BaseSlider.vue.js";
|
|
35
|
+
import { default as ie } from "./UIKit/BaseTextarea.js";
|
|
36
|
+
import { default as ne } from "./packages/components/lib/UIKit/BaseToggle.vue.js";
|
|
37
|
+
import { default as Se } from "./UIKit/BaseTooltip.js";
|
|
38
|
+
import { default as ge } from "./packages/components/lib/UIKit/BaseUploadFile.vue.js";
|
|
39
|
+
import { default as he } from "./packages/components/lib/UIKit/BaseModal.vue.js";
|
|
36
40
|
/* empty css */
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
41
|
+
import { default as Ie } from "./UIKit/BaseSnackbar.js";
|
|
42
|
+
import { default as ve } from "./UIKit/StaticSpinner.js";
|
|
43
|
+
import { default as Le } from "./packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js";
|
|
40
44
|
/* empty css */
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
45
|
+
import { default as De } from "./packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js";
|
|
46
|
+
import { default as Fe } from "./packages/components/lib/chart/DoughnutChart.vue.js";
|
|
47
|
+
import { default as Me } from "./packages/components/lib/chart/LineChart.vue.js";
|
|
48
|
+
import { default as Oe } from "./packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js";
|
|
49
|
+
import { default as Ue } from "./packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js";
|
|
50
|
+
import { default as je } from "./components/carousel/SwiperCarousel.js";
|
|
51
|
+
import { default as ye } from "./components/carousel/SwiperSlide.js";
|
|
52
|
+
import { default as Ee } from "./packages/components/lib/UIKit/BaseBreadcrumb.vue.js";
|
|
49
53
|
/* empty css */
|
|
50
|
-
import { default as
|
|
54
|
+
import { default as Je } from "./packages/components/lib/UIKit/Navigation/NavigationBar.vue.js";
|
|
51
55
|
/* empty css */
|
|
52
|
-
import { default as
|
|
56
|
+
import { default as Qe } from "./packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js";
|
|
53
57
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
58
|
+
O as AccessibleSelect,
|
|
59
|
+
i as BaseAccordion,
|
|
60
|
+
n as BaseAccordionBtn,
|
|
61
|
+
S as BaseAccordionContent,
|
|
62
|
+
g as BaseAccordionItem,
|
|
63
|
+
U as BaseAlert,
|
|
64
|
+
j as BaseAutocomplete,
|
|
65
|
+
y as BaseBadge,
|
|
66
|
+
Ee as BaseBreadcrumb,
|
|
67
|
+
E as BaseButton,
|
|
68
|
+
J as BaseCard,
|
|
69
|
+
Q as BaseComplexToggle,
|
|
70
|
+
X as BaseDropDown,
|
|
71
|
+
Z as BaseFloatingLabel,
|
|
72
|
+
$ as BaseIcon,
|
|
73
|
+
ae as BaseInput,
|
|
74
|
+
he as BaseModal,
|
|
75
|
+
te as BasePagination,
|
|
76
|
+
fe as BasePaper,
|
|
77
|
+
pe as BasePin,
|
|
78
|
+
le as BaseSelect,
|
|
79
|
+
Le as BaseShimmerLoader,
|
|
80
|
+
ue as BaseSlider,
|
|
81
|
+
Ie as BaseSnackbar,
|
|
82
|
+
L as BaseTab,
|
|
83
|
+
D as BaseTabView,
|
|
84
|
+
ie as BaseTextarea,
|
|
85
|
+
ne as BaseToggle,
|
|
86
|
+
Se as BaseTooltip,
|
|
87
|
+
ge as BaseUploadFile,
|
|
88
|
+
I as CheckboxBtn,
|
|
89
|
+
v as CheckboxGroup,
|
|
90
|
+
Fe as DoughnutChart,
|
|
91
|
+
Oe as IntersectionObservable,
|
|
92
|
+
Ue as IntersectionObserver,
|
|
93
|
+
Me as LineChart,
|
|
94
|
+
Je as NavigationBar,
|
|
95
|
+
Qe as NavigationBarItem,
|
|
96
|
+
F as RadioButton,
|
|
97
|
+
M as RadioGroup,
|
|
98
|
+
h as SelectItem,
|
|
99
|
+
De as ShimmerMultiLine,
|
|
100
|
+
ve as StaticSpinner,
|
|
101
|
+
je as SwiperCarousel,
|
|
102
|
+
ye as SwiperSlide
|
|
97
103
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as x, mergeModels as u, useCssVars as C, computed as
|
|
2
|
-
const
|
|
3
|
-
__name: "
|
|
1
|
+
import { defineComponent as x, mergeModels as u, useCssVars as C, computed as w, 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: () => [] },
|
|
@@ -17,26 +17,26 @@ const B = { class: "select-wrapper" }, D = ["for"], M = ["id"], N = ["data-idx",
|
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: /* @__PURE__ */ u(["change"], ["update:modelValue"]),
|
|
20
|
-
setup(
|
|
20
|
+
setup(i, { emit: b }) {
|
|
21
21
|
C((e) => ({
|
|
22
|
-
|
|
22
|
+
"50d63191": k.value
|
|
23
23
|
}));
|
|
24
|
-
const s =
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
-
const h =
|
|
24
|
+
const s = v(i, "modelValue"), f = b, n = y(), k = w(() => `${i.arrowSize}px`), g = ({ target: e }) => {
|
|
25
|
+
const o = (e.selectedOptions?.[0]).dataset.idx;
|
|
26
|
+
if (o === void 0) return;
|
|
27
|
+
const h = i.options[o];
|
|
28
28
|
s.value = h;
|
|
29
29
|
}, r = (e, t) => e.id === t?.id || e.label === t?.label;
|
|
30
30
|
return S(
|
|
31
31
|
s,
|
|
32
32
|
(e) => {
|
|
33
|
-
const t =
|
|
33
|
+
const t = i.options.find(
|
|
34
34
|
(l) => r(l, e)
|
|
35
35
|
);
|
|
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),
|
|
@@ -48,18 +48,18 @@ const B = { class: "select-wrapper" }, D = ["for"], M = ["id"], N = ["data-idx",
|
|
|
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
|
+
f("change", l), g(l);
|
|
52
52
|
})
|
|
53
53
|
}, [
|
|
54
|
-
(d(!0), a(z, null,
|
|
55
|
-
key: `option-${
|
|
56
|
-
"data-idx":
|
|
54
|
+
(d(!0), a(z, null, B(e.options, (l, o) => (d(), a("option", {
|
|
55
|
+
key: `option-${o}`,
|
|
56
|
+
"data-idx": o,
|
|
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,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, mergeModels as n, useModel as g, ref as C, watch as h, 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__ */ T({
|
|
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 = g(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 = C(null);
|
|
27
|
+
h(
|
|
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 $ = ({ 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-
|
|
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", [
|
|
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($, ["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
|
|
@@ -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) => {
|
|
@@ -13,13 +13,15 @@ const w = ["id", "data-cy"], F = /* @__PURE__ */ x({
|
|
|
13
13
|
autoCheckResetAll: { type: Boolean, default: !1 },
|
|
14
14
|
autoCheckResetEmpty: { type: Boolean, default: !1 },
|
|
15
15
|
manualToggleResetButton: { type: Boolean, default: !1 },
|
|
16
|
-
getKey: { type: Function, default
|
|
16
|
+
getKey: { type: Function, default() {
|
|
17
|
+
return (n) => typeof n == "string" || typeof n == "number" ? `${n}` : `${n.id}`;
|
|
18
|
+
} },
|
|
17
19
|
groupId: { default: "" },
|
|
18
20
|
dataCy: { default: "" }
|
|
19
21
|
},
|
|
20
22
|
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
21
23
|
setup(n, { emit: g }) {
|
|
22
|
-
const C = (e = "") => !e || !e.trim() ? "" : (e = e.trim(), e.replace(" ", "-").toLowerCase()), y = (e) => !e?.length, o = n,
|
|
24
|
+
const C = (e = "") => !e || !e.trim() ? "" : (e = e.trim(), e.replace(" ", "-").toLowerCase()), y = (e) => !e?.length, o = n, r = g, c = D(/* @__PURE__ */ new Map()), s = h(() => {
|
|
23
25
|
for (const e of o.checkboxData)
|
|
24
26
|
if (e.reset) return e;
|
|
25
27
|
return null;
|
|
@@ -36,7 +38,7 @@ const w = ["id", "data-cy"], F = /* @__PURE__ */ x({
|
|
|
36
38
|
`${t.id}`,
|
|
37
39
|
t
|
|
38
40
|
), t.checked && e.push(t);
|
|
39
|
-
|
|
41
|
+
r("update:modelValue", e);
|
|
40
42
|
})();
|
|
41
43
|
const u = (e, t) => {
|
|
42
44
|
const a = c.value.get(e);
|
|
@@ -52,17 +54,17 @@ const w = ["id", "data-cy"], F = /* @__PURE__ */ x({
|
|
|
52
54
|
e.checked = !1;
|
|
53
55
|
});
|
|
54
56
|
}, p = () => {
|
|
55
|
-
k(),
|
|
57
|
+
k(), r("update:modelValue", []), r("resetted");
|
|
56
58
|
}, d = (e) => c.value.get(o.getKey(e))?.checked ?? !1, i = (e) => {
|
|
57
59
|
if (y(o.checkboxData)) return;
|
|
58
60
|
const t = c.value.get(e.id);
|
|
59
|
-
t?.reset && e.checked ? k() :
|
|
61
|
+
t?.reset && e.checked ? k() : s.value && !t?.reset && u(o.getKey(s.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && s.value && f.value === v.value - 1 && c.value.forEach((l) => {
|
|
60
62
|
l.checked = !!l.reset;
|
|
61
|
-
}), o.autoCheckResetEmpty &&
|
|
63
|
+
}), o.autoCheckResetEmpty && s.value && !f.value && (!o.manualToggleResetButton || !t?.reset) && u(o.getKey(s.value), { checked: !0 });
|
|
62
64
|
const a = [];
|
|
63
65
|
c.value.forEach((l) => {
|
|
64
66
|
l.checked && a.push(l);
|
|
65
|
-
}),
|
|
67
|
+
}), r("update:modelValue", a), r("checkedGroup", o.groupId);
|
|
66
68
|
};
|
|
67
69
|
return E(
|
|
68
70
|
() => o.reset,
|
|
@@ -2,8 +2,8 @@ import { defineComponent as N, ref as T, watch as V, computed as x, createBlock
|
|
|
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
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 "./BaseSelect.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/BaseSelect.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import z from "./BaseButton.vue.js";
|
|
9
9
|
import R from "./BaseInput.vue.js";
|
package/package.json
CHANGED