eco-vue-js 0.10.43 → 0.10.45
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/components/BottomSheet/WBottomSheet.vue.d.ts +3 -9
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +25 -81
- package/dist/components/Button/WButton.vue.d.ts +1 -0
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +16 -3
- package/dist/components/Button/WButtonTab.vue.d.ts +2 -0
- package/dist/components/Button/WButtonTab.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonTab.vue.js +14 -5
- package/dist/components/Button/types.d.ts +1 -0
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +3 -2
- package/dist/components/Checkbox/WCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckboxGroup.vue.js +41 -34
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.d.ts +31 -0
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.d.ts.map +1 -0
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.js +140 -0
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue2.js +5 -0
- package/dist/components/Checkbox/types.d.ts +35 -5
- package/dist/components/Checkbox/types.d.ts.map +1 -1
- package/dist/components/Dismissable/WDismissable.vue.d.ts +34 -0
- package/dist/components/Dismissable/WDismissable.vue.d.ts.map +1 -0
- package/dist/components/Dismissable/WDismissable.vue.js +85 -0
- package/dist/components/Dismissable/WDismissable.vue2.js +5 -0
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +1 -1
- package/dist/components/HeaderBar/WHeaderBarSearch.vue.d.ts +2 -0
- package/dist/components/HeaderBar/WHeaderBarSearch.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBarSearch.vue.js +4 -1
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +9 -5
- package/dist/components/List/components/ListFilterGlobal.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListFilterGlobal.vue.js +2 -3
- package/dist/components/List/components/ListFilterLocal.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListFilterLocal.vue.js +32 -21
- package/dist/components/Modal/WModalStepper.vue.d.ts +8 -0
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Skeleton/WSkeleton.vue.d.ts +16 -1
- package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -1
- package/dist/components/Skeleton/WSkeleton.vue.js +4 -2
- package/dist/components/Status/WStatusIcon.vue.d.ts +7 -0
- package/dist/components/Status/WStatusIcon.vue.d.ts.map +1 -0
- package/dist/components/Status/WStatusIcon.vue.js +28 -0
- package/dist/components/Status/WStatusIcon.vue2.js +5 -0
- package/dist/components/Tabs/WTabs.vue.d.ts +6 -0
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +5 -3
- package/dist/components/Tabs/WTabsItem.vue.js +2 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.d.ts +1 -0
- package/dist/components/Tabs/components/TabTitleButton.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.js +6 -3
- package/dist/components/Tabs/types.d.ts +2 -0
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/imports/componentsPlugin.d.ts +4 -1
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/main.js +4 -1
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +2 -1
- package/package.json +10 -1
@@ -1,5 +1,8 @@
|
|
1
1
|
import { FieldWrapperProps } from '../FieldWrapper/types';
|
2
2
|
import { Component } from 'vue';
|
3
|
+
/**
|
4
|
+
* Checkbox
|
5
|
+
*/
|
3
6
|
export interface CheckboxProps {
|
4
7
|
modelValue: boolean | null;
|
5
8
|
title?: string;
|
@@ -11,40 +14,67 @@ export interface CheckboxProps {
|
|
11
14
|
intermediate?: boolean;
|
12
15
|
tooltipText?: string;
|
13
16
|
alignTop?: boolean;
|
17
|
+
noMargin?: boolean;
|
14
18
|
}
|
15
19
|
export type CheckboxGroupOptionProps<Option> = {
|
16
|
-
option: Option;
|
20
|
+
option: Option | undefined;
|
17
21
|
selected?: boolean;
|
18
22
|
};
|
19
23
|
export type CheckboxGroupOptionComponent<Option> = Component<CheckboxGroupOptionProps<Option>>;
|
20
24
|
export type GroupModelStringified<Model> = Exclude<Model, null | boolean> | (Model extends boolean ? 'true' | 'false' : never) | (Model extends null ? 'null' : never);
|
25
|
+
/**
|
26
|
+
* CheckboxGroup
|
27
|
+
*/
|
21
28
|
interface CheckboxGroupPropsBase<Model extends number | string | null | boolean> extends Omit<FieldWrapperProps, 'modelValue'>, Omit<CheckboxProps, 'modelValue' | 'title' | 'icon' | 'intermediate' | 'tooltipText'> {
|
22
|
-
modelValue: Model;
|
29
|
+
modelValue: Model | undefined;
|
23
30
|
wrap?: boolean;
|
24
|
-
col?: boolean;
|
25
31
|
stretch?: boolean;
|
26
32
|
allowClear?: boolean;
|
27
33
|
iconMap?: Record<GroupModelStringified<Model>, SVGComponent>;
|
28
34
|
titleMap?: Record<GroupModelStringified<Model>, string>;
|
29
35
|
tooltipTextMap?: Record<GroupModelStringified<Model>, string>;
|
30
36
|
classMap?: Record<GroupModelStringified<Model>, string>;
|
37
|
+
optionClass?: string;
|
31
38
|
}
|
32
39
|
interface CheckboxGroupPropsForModel<Model extends number | string | null | boolean, Entity extends Record<string, unknown>, ValueGetter extends {
|
33
40
|
fn(value: Entity): Model;
|
34
41
|
}['fn'] | undefined = undefined> extends CheckboxGroupPropsBase<Model> {
|
35
|
-
list: Model[];
|
42
|
+
list: Model[] | readonly Model[];
|
36
43
|
valueGetter?: ValueGetter | undefined;
|
37
44
|
optionComponent?: CheckboxGroupOptionComponent<Model>;
|
38
45
|
}
|
39
46
|
interface CheckboxGroupPropsForEntity<Model extends number | string | null | boolean, Entity extends Record<string, unknown>, ValueGetter extends {
|
40
47
|
fn(value: Entity): Model;
|
41
48
|
}['fn'] | undefined = undefined> extends CheckboxGroupPropsBase<Model> {
|
42
|
-
list: Entity[];
|
49
|
+
list: Entity[] | readonly Entity[];
|
43
50
|
valueGetter: ValueGetter | ((value: Entity) => Model);
|
44
51
|
optionComponent?: CheckboxGroupOptionComponent<Entity>;
|
45
52
|
}
|
46
53
|
export type CheckboxGroupProps<Model extends number | string | null | boolean, Entity extends Record<string, unknown>, ValueGetter extends {
|
47
54
|
fn(value: Entity): Model;
|
48
55
|
}['fn'] | undefined = undefined> = CheckboxGroupPropsForEntity<Model, Entity, ValueGetter> | CheckboxGroupPropsForModel<Model, Entity, ValueGetter>;
|
56
|
+
/**
|
57
|
+
* CheckboxGroupMultiple
|
58
|
+
*/
|
59
|
+
interface CheckboxGroupMultiplePropsBase<Model extends number | string | null | boolean> extends Omit<CheckboxGroupPropsBase<Model>, 'modelValue' | 'allowClear'> {
|
60
|
+
modelValue: Model[];
|
61
|
+
}
|
62
|
+
interface CheckboxGroupMultiplePropsForModel<Model extends number | string | null | boolean, Entity extends Record<string, unknown>, ValueGetter extends {
|
63
|
+
fn(value: Entity): Model;
|
64
|
+
}['fn'] | undefined = undefined> extends CheckboxGroupMultiplePropsBase<Model> {
|
65
|
+
list: Model[] | readonly Model[];
|
66
|
+
valueGetter?: ValueGetter | undefined;
|
67
|
+
optionComponent?: CheckboxGroupOptionComponent<Model>;
|
68
|
+
}
|
69
|
+
interface CheckboxGroupMultiplePropsForEntity<Model extends number | string | null | boolean, Entity extends Record<string, unknown>, ValueGetter extends {
|
70
|
+
fn(value: Entity): Model;
|
71
|
+
}['fn'] | undefined = undefined> extends CheckboxGroupMultiplePropsBase<Model> {
|
72
|
+
list: Entity[] | readonly Entity[];
|
73
|
+
valueGetter: ValueGetter | ((value: Entity) => Model);
|
74
|
+
optionComponent?: CheckboxGroupOptionComponent<Entity>;
|
75
|
+
}
|
76
|
+
export type CheckboxGroupMultipleProps<Model extends number | string | null | boolean, Entity extends Record<string, unknown>, ValueGetter extends {
|
77
|
+
fn(value: Entity): Model;
|
78
|
+
}['fn'] | undefined = undefined> = CheckboxGroupMultiplePropsForEntity<Model, Entity, ValueGetter> | CheckboxGroupMultiplePropsForModel<Model, Entity, ValueGetter>;
|
49
79
|
export {};
|
50
80
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,wBAAwB,CAAC,MAAM,IAAI;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAC,CAAA;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KA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S,CAAA;IACrC,eAAe,CAAC,EAAE,4BAA4B,CAAC,KAAK,CAAC,CAAA;CACtD;AAED,UAAU,mCAAmC,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,CAChN,SAAQ,8BAA8B,CAAC,KAAK,CAAC;IAC7C,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAAA;IAClC,WAAW,EAAE,WAAW,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,CAAA;IACrD,eAAe,CAAC,EAAE,4BAA4B,CAAC,MAAM,CAAC,CAAA;CACvD;AAED,MAAM,MAAM,0BAA0B,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,IAAI,mCAAmC,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,GAAG,kCAAkC,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAA"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
type __VLS_Props = {
|
2
|
+
isOpen: boolean;
|
3
|
+
contentClass?: string;
|
4
|
+
};
|
5
|
+
declare function __VLS_template(): {
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
slots: {
|
8
|
+
default?(_: {
|
9
|
+
hide: () => void;
|
10
|
+
}): any;
|
11
|
+
};
|
12
|
+
refs: {
|
13
|
+
container: HTMLDivElement;
|
14
|
+
content: HTMLDivElement;
|
15
|
+
};
|
16
|
+
rootEl: any;
|
17
|
+
};
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
20
|
+
close: () => any;
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
22
|
+
onClose?: (() => any) | undefined;
|
23
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
24
|
+
container: HTMLDivElement;
|
25
|
+
content: HTMLDivElement;
|
26
|
+
}, any>;
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
28
|
+
export default _default;
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
30
|
+
new (): {
|
31
|
+
$slots: S;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
//# sourceMappingURL=WDismissable.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WDismissable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Dismissable/WDismissable.vue"],"names":[],"mappings":"AA8BA;AA6FA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;AAwDF,iBAAS,cAAc;WAsET,OAAO,IAA6B;;;;YAZrB,GAAG;;;;;;;EAiB/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { defineComponent, useTemplateRef, watch, onMounted, onBeforeUnmount, createBlock, openBlock, Transition, withCtx, createElementBlock, createCommentVNode, createElementVNode, withModifiers, normalizeClass, renderSlot } from 'vue';
|
2
|
+
|
3
|
+
const _hoisted_1 = {
|
4
|
+
key: 0,
|
5
|
+
ref: "container",
|
6
|
+
class: "no-scrollbar snap-y snap-mandatory snap-always overflow-scroll overflow-y-auto overscroll-contain scroll-smooth"
|
7
|
+
};
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
|
+
__name: "WDismissable",
|
10
|
+
props: {
|
11
|
+
isOpen: { type: Boolean },
|
12
|
+
contentClass: {}
|
13
|
+
},
|
14
|
+
emits: ["close"],
|
15
|
+
setup(__props, { emit: __emit }) {
|
16
|
+
const props = __props;
|
17
|
+
const emit = __emit;
|
18
|
+
const containerRef = useTemplateRef("container");
|
19
|
+
const contentRef = useTemplateRef("content");
|
20
|
+
const hide = () => {
|
21
|
+
containerRef.value?.scrollTo({ top: 0, behavior: "smooth" });
|
22
|
+
};
|
23
|
+
const show = () => {
|
24
|
+
containerRef.value?.scrollTo({ top: contentRef.value?.offsetTop, behavior: "smooth" });
|
25
|
+
};
|
26
|
+
const observerCb = (entries) => {
|
27
|
+
entries.forEach((entry) => {
|
28
|
+
if (entry.target === contentRef.value && !entry.isIntersecting) {
|
29
|
+
emit("close");
|
30
|
+
}
|
31
|
+
});
|
32
|
+
};
|
33
|
+
const observer = new IntersectionObserver(observerCb, {
|
34
|
+
root: null,
|
35
|
+
threshold: 0.3
|
36
|
+
});
|
37
|
+
let timeout;
|
38
|
+
watch(contentRef, (value, oldValue) => {
|
39
|
+
if (oldValue) observer.unobserve(oldValue);
|
40
|
+
if (value) {
|
41
|
+
if (timeout) clearTimeout(timeout);
|
42
|
+
timeout = setTimeout(() => {
|
43
|
+
observer.observe(value);
|
44
|
+
}, 500);
|
45
|
+
}
|
46
|
+
});
|
47
|
+
onMounted(() => {
|
48
|
+
if (props.isOpen) show();
|
49
|
+
});
|
50
|
+
onBeforeUnmount(() => {
|
51
|
+
observer.disconnect();
|
52
|
+
});
|
53
|
+
return (_ctx, _cache) => {
|
54
|
+
return openBlock(), createBlock(Transition, {
|
55
|
+
"enter-active-class": "transition-opacity",
|
56
|
+
"leave-active-class": "transition-opacity",
|
57
|
+
"enter-from-class": "opacity-0",
|
58
|
+
"leave-to-class": "opacity-0",
|
59
|
+
onAfterEnter: show
|
60
|
+
}, {
|
61
|
+
default: withCtx(() => [
|
62
|
+
_ctx.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
63
|
+
createElementVNode("button", {
|
64
|
+
class: "square-full snap-start",
|
65
|
+
onClick: hide
|
66
|
+
}),
|
67
|
+
createElementVNode("div", {
|
68
|
+
ref: "content",
|
69
|
+
class: normalizeClass(["snap-end", _ctx.contentClass]),
|
70
|
+
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
71
|
+
}, ["stop"])),
|
72
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
73
|
+
}, ["stop"]))
|
74
|
+
}, [
|
75
|
+
renderSlot(_ctx.$slots, "default", { hide })
|
76
|
+
], 34)
|
77
|
+
], 512)) : createCommentVNode("", true)
|
78
|
+
]),
|
79
|
+
_: 3
|
80
|
+
});
|
81
|
+
};
|
82
|
+
}
|
83
|
+
});
|
84
|
+
|
85
|
+
export { _sfc_main as default };
|
@@ -9,13 +9,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
valueGetter: {},
|
10
10
|
optionComponent: {},
|
11
11
|
wrap: { type: Boolean },
|
12
|
-
col: { type: Boolean },
|
13
12
|
stretch: { type: Boolean },
|
14
13
|
allowClear: { type: Boolean },
|
15
14
|
iconMap: {},
|
16
15
|
titleMap: {},
|
17
16
|
tooltipTextMap: {},
|
18
17
|
classMap: {},
|
18
|
+
optionClass: {},
|
19
19
|
title: {},
|
20
20
|
titleIcon: {},
|
21
21
|
description: {},
|
@@ -5,11 +5,13 @@ declare function __VLS_template(): {
|
|
5
5
|
default: (props: {
|
6
6
|
visible?: boolean;
|
7
7
|
hide?: () => void;
|
8
|
+
show?: () => void;
|
8
9
|
}) => VNode[];
|
9
10
|
}> & {
|
10
11
|
default: (props: {
|
11
12
|
visible?: boolean;
|
12
13
|
hide?: () => void;
|
14
|
+
show?: () => void;
|
13
15
|
}) => VNode[];
|
14
16
|
};
|
15
17
|
refs: {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WHeaderBarSearch.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/HeaderBar/WHeaderBarSearch.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WHeaderBarSearch.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/HeaderBar/WHeaderBarSearch.vue"],"names":[],"mappings":"AAiCA,OAAO,EAAC,KAAK,KAAK,EAA6C,MAAM,KAAK,CAAA;AAiC1E,iBAAS,cAAc;WAYT,OAAO,IAA6B;;iBAjBvC,CAAC,KAAK,EAAE;YAAC,OAAO,CAAC,EAAE,OAAO,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;SAAC,KAAK,KAAK,EAAE;;iBAA7E,CAAC,KAAK,EAAE;YAAC,OAAO,CAAC,EAAE,OAAO,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;SAAC,KAAK,KAAK,EAAE;;;;EAsBvF;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -10,7 +10,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
const hide = () => {
|
11
11
|
updateVisible(false);
|
12
12
|
};
|
13
|
-
const
|
13
|
+
const show = () => {
|
14
|
+
updateVisible(true);
|
15
|
+
};
|
16
|
+
const slotsDefault = computed(() => slots.default?.({ visible: visible.value, hide, show }));
|
14
17
|
const { updateHeaderSearch } = useHeaderSearch();
|
15
18
|
watch(slotsDefault, updateHeaderSearch, { immediate: true });
|
16
19
|
onBeforeUnmount(() => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AA0MA;AAyaA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA;yBAWtB,IAAI,SAAS,SAAS,GAAG,MAAM,EAC/C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA8nBO,mBAAmB,CAAC,oCAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;qBAthB7B,IAAI;oBAOL,IAAI;;;MA+gBgD,GAAG,IAAI;WACpE,GAAG;;uBAnDgB,GAAG;0BACA,GAAG;wBACJ,GAAG;wBACH,GAAG;wBACH,GAAG;uBACJ,GAAG;wBACF,GAAG;uBACJ,GAAG;uBACH,GAAG;;;YAtkBzB,mBAAmB,SAAS,4CAAa,SAAS,GAAG,IAAI;YACzD,gBAAgB,SAAS,aAAa,GAAG,IAAI;YAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,oBAAoB,SAAS,aAAa,GAAG,IAAI;YACjD,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,SAAS,GAAG,IAAI;YAC7C,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,WAAW,SAAS,UAAU,GAAG,IAAI;YACrC,cAAc,SAAS,UAAU,GAAG,IAAI;YACxC,cAAc,SAAS,KAAK,GAAG,IAAI;YACnC,OAAO,GAAG,IAAI;;EAwmBhB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAzoBzE,wBAyoB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, watch, nextTick, onMounted, onBeforeUnmount, computed, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, createElementBlock, createCommentVNode,
|
1
|
+
import { defineComponent, useTemplateRef, ref, watch, nextTick, onMounted, onBeforeUnmount, computed, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, toDisplayString, withModifiers, resolveDynamicComponent, withKeys, unref } from 'vue';
|
2
2
|
import _sfc_main$1 from '../FieldWrapper/WFieldWrapper.vue.js';
|
3
3
|
import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
|
4
4
|
import { Notify } from '../../utils/Notify.js';
|
5
5
|
import _sfc_main$2 from './components/InputActions.vue.js';
|
6
6
|
|
7
|
-
const _hoisted_1 = { class: "flex flex-wrap gap-1" };
|
8
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
8
|
...{ inheritAttrs: false },
|
10
9
|
__name: "WInput",
|
@@ -215,7 +214,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
215
214
|
_ctx.readonly ? {
|
216
215
|
name: "default",
|
217
216
|
fn: withCtx(() => [
|
218
|
-
createElementVNode("div",
|
217
|
+
createElementVNode("div", {
|
218
|
+
class: normalizeClass(["flex gap-1", {
|
219
|
+
"flex-wrap": !_ctx.seamless,
|
220
|
+
"overflow-hidden": _ctx.seamless
|
221
|
+
}])
|
222
|
+
}, [
|
219
223
|
renderSlot(_ctx.$slots, "prefix"),
|
220
224
|
!_ctx.hideInput ? (openBlock(), createElementBlock("div", {
|
221
225
|
key: 0,
|
@@ -224,14 +228,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
224
228
|
"text-secure": _ctx.textSecure && !isSecureVisible.value && _ctx.modelValue
|
225
229
|
})
|
226
230
|
}, toDisplayString(_ctx.modelValue || _ctx.emptyValue), 3)) : createCommentVNode("", true)
|
227
|
-
])
|
231
|
+
], 2)
|
228
232
|
]),
|
229
233
|
key: "2"
|
230
234
|
} : {
|
231
235
|
name: "field",
|
232
236
|
fn: withCtx(({ id, setFocused, focused }) => [
|
233
237
|
createElementVNode("div", {
|
234
|
-
class: normalizeClass(["relative grid min-h-[--w-input-min-height,var(--w-input-height,2.75rem)] grid-cols-[auto,1fr,auto] overflow-hidden rounded-[--w-input-rounded,0.75rem] border border-solid
|
238
|
+
class: normalizeClass(["relative grid min-h-[--w-input-min-height,var(--w-input-height,2.75rem)] grid-cols-[auto,1fr,auto] overflow-hidden rounded-[--w-input-rounded,0.75rem] border border-solid", {
|
235
239
|
"focus-within:border-primary dark:focus-within:border-primary-dark focus-within:outline-primary/20 dark:focus-within:outline-primary-dark/20 focus-within:outline focus-within:outline-2": !_ctx.disabled && !_ctx.readonly && !_ctx.unclickable,
|
236
240
|
"cursor-text": !_ctx.disabled,
|
237
241
|
"border-negative dark:border-negative-dark": _ctx.errorMessage,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListFilterGlobal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListFilterGlobal.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ListFilterGlobal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListFilterGlobal.vue"],"names":[],"mappings":"AA4FA;AAiKA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAA;yBAmB5B,WAAW,EAC3B,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAyXO,mBAAmB,CAAC;;;gBAvXlB,eAAe,CAAC,WAAW,CAAC,EAAE,GAAG,SAAS;sBACpC,eAAe,CAAC,WAAW,CAAC,GAAG,SAAS;gBAC9C,OAAO;qBACF,WAAW;8BACF,KAAK,CAAC,MAAM,WAAW,CAAC;mBAmX8C,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;wBA7CkB,GAAG;;cAnU1B,qBAAqB,SAAS,WAAW,KAAG,IAAI;EAoXlD,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApYzE,wBAoY4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -58,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
58
58
|
key: 0,
|
59
59
|
ref: "input",
|
60
60
|
"model-value": _ctx.queryParams.search,
|
61
|
-
autofocus: visible,
|
61
|
+
autofocus: visible && !_ctx.queryParams.search,
|
62
62
|
placeholder: "Search..",
|
63
63
|
"allow-clear": "",
|
64
64
|
persist: "",
|
@@ -89,7 +89,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
89
89
|
"no-margin": "",
|
90
90
|
class: "w-full",
|
91
91
|
icon: markRaw(unref(IconSearch)),
|
92
|
-
onBlur: ($event) => !_ctx.queryParams.search && hide?.(),
|
93
92
|
"onClick:clear": hide,
|
94
93
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:query-params", { search: $event || void 0 }))
|
95
94
|
}, createSlots({ _: 2 }, [
|
@@ -103,7 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
103
102
|
]),
|
104
103
|
key: "0"
|
105
104
|
} : void 0
|
106
|
-
]), 1032, ["model-value", "autofocus", "icon", "
|
105
|
+
]), 1032, ["model-value", "autofocus", "icon", "onClick:clear"]))
|
107
106
|
])
|
108
107
|
]),
|
109
108
|
_: 1
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListFilterLocal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListFilterLocal.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ListFilterLocal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListFilterLocal.vue"],"names":[],"mappings":"AA4FA;AAqKA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAA;yBAkB5B,WAAW,EAC3B,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAmWO,mBAAmB,CAAC;;;gBAjWlB,eAAe,CAAC,WAAW,CAAC,EAAE,GAAG,SAAS;sBACpC,eAAe,CAAC,WAAW,CAAC,GAAG,SAAS;gBAC9C,OAAO;qBACF,WAAW;8BACF,KAAK,CAAC,MAAM,WAAW,CAAC;mBA6V8C,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA1VL,qBAAqB,SAAS,WAAW,KAAG,IAAI;EA8VlD,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA9WzE,wBA8W4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { defineComponent, ref, computed, createElementBlock, openBlock, createVNode, markRaw, unref, withCtx, createBlock, createCommentVNode, createElementVNode, resolveDynamicComponent, Fragment, renderList } from 'vue';
|
2
2
|
import _sfc_main$1 from '../../Expansion/WExpansionItem.vue.js';
|
3
|
-
import _sfc_main$4 from '../../
|
3
|
+
import _sfc_main$4 from '../../Form/WFormValidator.vue.js';
|
4
|
+
import _sfc_main$5 from '../../Input/WInput.vue.js';
|
4
5
|
import _sfc_main$2 from '../../Tabs/WTabs.vue.js';
|
5
6
|
import _sfc_main$3 from '../../Tabs/WTabsItem.vue.js';
|
6
7
|
import IconClose from '../../../assets/icons/sax/IconClose.svg.js';
|
7
8
|
import IconFilter from '../../../assets/icons/sax/IconFilter.svg.js';
|
8
9
|
import IconSearch from '../../../assets/icons/sax/IconSearch.svg.js';
|
9
|
-
import _sfc_main$
|
10
|
+
import _sfc_main$6 from './ListFilterSelect.vue.js';
|
10
11
|
import { getItemProp } from '../models/utils.js';
|
11
12
|
|
12
13
|
const _hoisted_1 = { class: "sm:-w--width-inner sm:-left--left-inner pb-4 sm:sticky" };
|
@@ -35,9 +36,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
35
36
|
return !fields.some((field) => props.disabledFilterFields.includes(field));
|
36
37
|
}) ?? [];
|
37
38
|
});
|
38
|
-
const selected = ref([]);
|
39
39
|
const shown = computed(() => filterList.value.filter((item) => getItemProp(props.queryParams, item, "fields")?.some((field) => field in props.queryParams)).map((item) => props.filter?.indexOf(item) ?? -1));
|
40
|
-
const
|
40
|
+
const selected = ref(shown.value.slice());
|
41
|
+
const allShown = computed(() => [...selected.value, ...shown.value].filter((item, index, array) => array.indexOf(item) === index));
|
41
42
|
const excluded = computed(() => {
|
42
43
|
const hidden = props.filter?.filter((item) => !filterList.value.includes(item)).map((item) => props.filter?.indexOf(item) ?? -1) ?? [];
|
43
44
|
return [...allShown.value, ...hidden];
|
@@ -55,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
56
|
return (_ctx, _cache) => {
|
56
57
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
57
58
|
createVNode(_sfc_main$1, {
|
58
|
-
title:
|
59
|
+
title: `Filters (${shown.value.length})`,
|
59
60
|
icon: markRaw(unref(IconFilter)),
|
60
61
|
"is-open": isOpen.value,
|
61
62
|
"toggle-class": "sm:px-3",
|
@@ -66,6 +67,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
66
67
|
"switch-to-new": "",
|
67
68
|
"disable-min-height": "",
|
68
69
|
side: "",
|
70
|
+
"status-icon": "",
|
71
|
+
name: "filter",
|
69
72
|
class: "w-tabs-side-width-72"
|
70
73
|
}, {
|
71
74
|
default: withCtx(() => [
|
@@ -73,22 +76,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
73
76
|
key: 0,
|
74
77
|
name: "search",
|
75
78
|
title: "Search",
|
76
|
-
icon: markRaw(unref(IconSearch))
|
79
|
+
icon: markRaw(unref(IconSearch)),
|
80
|
+
"has-value": !!_ctx.queryParams.search
|
77
81
|
}, {
|
78
82
|
right: withCtx(() => _cache[5] || (_cache[5] = [
|
79
83
|
createElementVNode("div", { class: "w-10" }, null, -1)
|
80
84
|
])),
|
81
85
|
default: withCtx(() => [
|
82
86
|
createElementVNode("div", _hoisted_2, [
|
83
|
-
createVNode(_sfc_main$4, {
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
87
|
+
createVNode(_sfc_main$4, { name: "search" }, {
|
88
|
+
default: withCtx(() => [
|
89
|
+
createVNode(_sfc_main$5, {
|
90
|
+
ref: "input",
|
91
|
+
"model-value": _ctx.queryParams.search,
|
92
|
+
placeholder: "Search..",
|
93
|
+
"allow-clear": "",
|
94
|
+
class: "w-full",
|
95
|
+
icon: markRaw(unref(IconSearch)),
|
96
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:query-params", { search: $event || void 0 }))
|
97
|
+
}, null, 8, ["model-value", "icon"])
|
98
|
+
]),
|
99
|
+
_: 1
|
100
|
+
}),
|
92
101
|
_ctx.filterSearch ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.filterSearch), {
|
93
102
|
key: 0,
|
94
103
|
"query-params": _ctx.queryParams,
|
@@ -97,14 +106,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
97
106
|
])
|
98
107
|
]),
|
99
108
|
_: 1
|
100
|
-
}, 8, ["icon"])) : createCommentVNode("", true),
|
109
|
+
}, 8, ["icon", "has-value"])) : createCommentVNode("", true),
|
101
110
|
_ctx.filter ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
102
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(filterList.value.filter((item) => allShown.value.includes(_ctx.filter?.indexOf(item) ?? -1)), (item) => {
|
111
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(filterList.value.filter((item) => allShown.value.includes(_ctx.filter?.indexOf(item) ?? -1)), (item, index) => {
|
103
112
|
return openBlock(), createBlock(_sfc_main$3, {
|
104
113
|
key: _ctx.filter.indexOf(item),
|
105
114
|
name: _ctx.filter.indexOf(item).toString(),
|
106
115
|
title: unref(getItemProp)(_ctx.queryParams, item, "title") ?? "",
|
107
|
-
icon: unref(getItemProp)(_ctx.queryParams, item, "icon")
|
116
|
+
icon: unref(getItemProp)(_ctx.queryParams, item, "icon"),
|
117
|
+
init: index === 0 && !_ctx.queryParams.search,
|
118
|
+
"has-value": shown.value.includes(_ctx.filter.indexOf(item))
|
108
119
|
}, {
|
109
120
|
right: withCtx(() => [
|
110
121
|
createElementVNode("button", {
|
@@ -125,9 +136,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
125
136
|
])
|
126
137
|
]),
|
127
138
|
_: 2
|
128
|
-
}, 1032, ["name", "title", "icon"]);
|
139
|
+
}, 1032, ["name", "title", "icon", "init", "has-value"]);
|
129
140
|
}), 128)),
|
130
|
-
allShown.value.length < filterList.value.length ? (openBlock(), createBlock(_sfc_main$
|
141
|
+
allShown.value.length < filterList.value.length ? (openBlock(), createBlock(_sfc_main$6, {
|
131
142
|
key: 0,
|
132
143
|
filter: _ctx.filter,
|
133
144
|
exclude: excluded.value,
|
@@ -140,7 +151,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
140
151
|
})
|
141
152
|
]),
|
142
153
|
_: 1
|
143
|
-
}, 8, ["icon", "is-open"])
|
154
|
+
}, 8, ["title", "icon", "is-open"])
|
144
155
|
]);
|
145
156
|
};
|
146
157
|
}
|
@@ -27,6 +27,7 @@ declare function __VLS_template(): {
|
|
27
27
|
readonly showHasValue?: boolean | undefined;
|
28
28
|
readonly noSwitchOnInvalid?: boolean | undefined;
|
29
29
|
readonly wrap?: boolean | undefined;
|
30
|
+
readonly statusIcon?: boolean | undefined;
|
30
31
|
readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
31
32
|
readonly "onUpdate:first"?: ((value: boolean) => any) | undefined;
|
32
33
|
readonly "onUpdate:last"?: ((value: boolean) => any) | undefined;
|
@@ -166,6 +167,7 @@ declare function __VLS_template(): {
|
|
166
167
|
readonly stepper?: boolean | undefined;
|
167
168
|
readonly showHasValue?: boolean | undefined;
|
168
169
|
readonly side?: boolean | undefined;
|
170
|
+
readonly statusIcon?: boolean | undefined;
|
169
171
|
readonly onClick?: ((value: MouseEvent) => any) | undefined;
|
170
172
|
readonly "onUpdate:scroll-position"?: ((value: {
|
171
173
|
left: number;
|
@@ -207,6 +209,7 @@ declare function __VLS_template(): {
|
|
207
209
|
stepper?: boolean;
|
208
210
|
showHasValue?: boolean;
|
209
211
|
side?: boolean;
|
212
|
+
statusIcon?: boolean;
|
210
213
|
}> & Readonly<{
|
211
214
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
212
215
|
"onUpdate:scroll-position"?: ((value: {
|
@@ -257,6 +260,7 @@ declare function __VLS_template(): {
|
|
257
260
|
stepper?: boolean;
|
258
261
|
showHasValue?: boolean;
|
259
262
|
side?: boolean;
|
263
|
+
statusIcon?: boolean;
|
260
264
|
}> & Readonly<{
|
261
265
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
262
266
|
"onUpdate:scroll-position"?: ((value: {
|
@@ -578,6 +582,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
578
582
|
readonly showHasValue?: boolean | undefined;
|
579
583
|
readonly noSwitchOnInvalid?: boolean | undefined;
|
580
584
|
readonly wrap?: boolean | undefined;
|
585
|
+
readonly statusIcon?: boolean | undefined;
|
581
586
|
readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
582
587
|
readonly "onUpdate:first"?: ((value: boolean) => any) | undefined;
|
583
588
|
readonly "onUpdate:last"?: ((value: boolean) => any) | undefined;
|
@@ -717,6 +722,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
717
722
|
readonly stepper?: boolean | undefined;
|
718
723
|
readonly showHasValue?: boolean | undefined;
|
719
724
|
readonly side?: boolean | undefined;
|
725
|
+
readonly statusIcon?: boolean | undefined;
|
720
726
|
readonly onClick?: ((value: MouseEvent) => any) | undefined;
|
721
727
|
readonly "onUpdate:scroll-position"?: ((value: {
|
722
728
|
left: number;
|
@@ -758,6 +764,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
758
764
|
stepper?: boolean;
|
759
765
|
showHasValue?: boolean;
|
760
766
|
side?: boolean;
|
767
|
+
statusIcon?: boolean;
|
761
768
|
}> & Readonly<{
|
762
769
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
763
770
|
"onUpdate:scroll-position"?: ((value: {
|
@@ -808,6 +815,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
808
815
|
stepper?: boolean;
|
809
816
|
showHasValue?: boolean;
|
810
817
|
side?: boolean;
|
818
|
+
statusIcon?: boolean;
|
811
819
|
}> & Readonly<{
|
812
820
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
813
821
|
"onUpdate:scroll-position"?: ((value: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AAsEA;AA2HA,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAA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frsY,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,3 +1,18 @@
|
|
1
|
-
declare
|
1
|
+
declare function __VLS_template(): {
|
2
|
+
attrs: Partial<{}>;
|
3
|
+
slots: {
|
4
|
+
default?(_: {}): any;
|
5
|
+
};
|
6
|
+
refs: {};
|
7
|
+
rootEl: HTMLDivElement;
|
8
|
+
};
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
2
12
|
export default _default;
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
14
|
+
new (): {
|
15
|
+
$slots: S;
|
16
|
+
};
|
17
|
+
};
|
3
18
|
//# sourceMappingURL=WSkeleton.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSkeleton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/WSkeleton.vue"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"WSkeleton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/WSkeleton.vue"],"names":[],"mappings":"AAYA,iBAAS,cAAc;WAyBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createElementBlock, openBlock, normalizeStyle } from 'vue';
|
1
|
+
import { createElementBlock, openBlock, normalizeStyle, renderSlot } from 'vue';
|
2
2
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
|
3
3
|
|
4
4
|
const _sfc_main = { };
|
@@ -7,7 +7,9 @@ function _sfc_render(_ctx, _cache) {
|
|
7
7
|
return (openBlock(), createElementBlock("div", {
|
8
8
|
class: "bg-primary-light dark:bg-primary-darkest w-skeleton before:animate-ticker",
|
9
9
|
style: normalizeStyle({'--skeleton-width-internal': (Math.round(Math.random() * 40) + 40) + '%'})
|
10
|
-
},
|
10
|
+
}, [
|
11
|
+
renderSlot(_ctx.$slots, "default")
|
12
|
+
], 4))
|
11
13
|
}
|
12
14
|
const WSkeleton = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
|
13
15
|
|