eco-vue-js 0.10.40 → 0.10.42
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/ActionsBar/WActionsBar.vue.d.ts +0 -1
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +24 -38
- package/dist/components/ActionsBar/WActionsBarFilter.vue.d.ts +24 -0
- package/dist/components/ActionsBar/WActionsBarFilter.vue.d.ts.map +1 -0
- package/dist/components/ActionsBar/WActionsBarFilter.vue.js +25 -0
- package/dist/components/ActionsBar/WActionsBarFilter.vue2.js +5 -0
- package/dist/components/ActionsBar/use/useActionsBarFilter.d.ts +12 -0
- package/dist/components/ActionsBar/use/useActionsBarFilter.d.ts.map +1 -0
- package/dist/components/ActionsBar/use/useActionsBarFilter.js +20 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +16 -14
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +3 -4
- package/dist/components/Button/WButtonTab.vue.d.ts +42 -0
- package/dist/components/Button/WButtonTab.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonTab.vue.js +135 -0
- package/dist/components/Button/WButtonTab.vue2.js +5 -0
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +4 -2
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +4 -2
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +1 -0
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.js +4 -2
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +1 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +7 -4
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +1 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarWeek.vue.js +6 -3
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +4 -2
- package/dist/components/Dropdown/types.d.ts +2 -1
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +4 -2
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +7 -7
- package/dist/components/DropdownMenu/types.d.ts +0 -1
- package/dist/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.d.ts +1 -0
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.js +16 -15
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -1
- package/dist/components/Form/WForm.vue.d.ts.map +1 -1
- package/dist/components/Form/WForm.vue.js +3 -2
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +1 -20
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.js +30 -79
- package/dist/components/HeaderBar/WHeaderBarSearch.vue.d.ts +27 -0
- package/dist/components/HeaderBar/WHeaderBarSearch.vue.d.ts.map +1 -0
- package/dist/components/HeaderBar/WHeaderBarSearch.vue.js +24 -0
- package/dist/components/HeaderBar/WHeaderBarSearch.vue2.js +5 -0
- package/dist/components/HeaderBar/use/useHeaderSearch.d.ts +10 -0
- package/dist/components/HeaderBar/use/useHeaderSearch.d.ts.map +1 -0
- package/dist/components/HeaderBar/use/useHeaderSearch.js +14 -0
- package/dist/components/HeaderBar/use/useHeaderSearchVisible.d.ts +5 -0
- package/dist/components/HeaderBar/use/useHeaderSearchVisible.d.ts.map +1 -0
- package/dist/components/HeaderBar/use/useHeaderSearchVisible.js +14 -0
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +12 -20
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +8 -8
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +16 -3
- package/dist/components/Input/WInput.vue.d.ts +1 -1
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +8 -3
- package/dist/components/Input/WInputDate.vue.js +2 -2
- package/dist/components/Input/WInputOptions.vue.js +2 -2
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +2 -3
- package/dist/components/List/WList.vue.d.ts +11 -2
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +266 -228
- package/dist/components/List/WListHeader.vue.js +1 -1
- package/dist/components/List/WListHeaderItem.vue.d.ts +6 -2
- package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeaderItem.vue.js +22 -10
- package/dist/components/List/components/HeaderSort.vue.d.ts +3 -1
- package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSort.vue.js +4 -3
- package/dist/components/List/components/HeaderSortItem.vue.d.ts +7 -5
- package/dist/components/List/components/HeaderSortItem.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSortItem.vue.js +23 -10
- package/dist/components/List/components/ListFilterGlobal.vue.d.ts +25 -0
- package/dist/components/List/components/ListFilterGlobal.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListFilterGlobal.vue.js +154 -0
- package/dist/components/List/components/ListFilterGlobal.vue2.js +5 -0
- package/dist/components/List/components/ListFilterGlobalItem.vue.d.ts +29 -0
- package/dist/components/List/components/ListFilterGlobalItem.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListFilterGlobalItem.vue.js +49 -0
- package/dist/components/List/components/ListFilterGlobalItem.vue2.js +5 -0
- package/dist/components/List/components/ListFilterLocal.vue.d.ts +23 -0
- package/dist/components/List/components/ListFilterLocal.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListFilterLocal.vue.js +148 -0
- package/dist/components/List/components/ListFilterLocal.vue2.js +5 -0
- package/dist/components/List/components/ListFilterSelect.vue.d.ts +21 -0
- package/dist/components/List/components/ListFilterSelect.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListFilterSelect.vue.js +72 -0
- package/dist/components/List/components/ListFilterSelect.vue2.js +5 -0
- package/dist/components/List/models/utils.d.ts +3 -0
- package/dist/components/List/models/utils.d.ts.map +1 -0
- package/dist/components/List/models/utils.js +7 -0
- package/dist/components/List/types.d.ts +11 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +8 -7
- package/dist/components/Modal/WModalStepper.vue.d.ts +28 -52
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.js +11 -4
- package/dist/components/Modal/models/injection.d.ts +1 -1
- package/dist/components/Modal/models/injection.d.ts.map +1 -1
- package/dist/components/Modal/models/injection.js +2 -2
- package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavBar.vue.js +13 -8
- package/dist/components/Select/WSelect.vue.js +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +2 -2
- package/dist/components/Select/WSelectAsyncSingle.vue.js +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +1 -1
- package/dist/components/Select/WSelectStringified.vue.js +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +2 -2
- package/dist/components/Tabs/WTabs.vue.d.ts +18 -45
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +9 -18
- package/dist/components/Tabs/components/TabItem.vue.d.ts +1 -1
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.d.ts +2 -14
- package/dist/components/Tabs/components/TabTitleButton.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.js +19 -119
- package/dist/components/Tabs/types.d.ts +2 -1
- 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 +6 -3
- package/dist/types/global.d.ts +19 -4
- package/dist/utils/api.d.ts +14 -0
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/api.js +46 -2
- package/dist/utils/dateTime.d.ts +1 -0
- package/dist/utils/dateTime.d.ts.map +1 -1
- package/dist/utils/dateTime.js +4 -1
- package/dist/utils/utils.d.ts +18 -3
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +42 -1
- package/package.json +10 -1
- package/tailwind-base/plugins/default.ts +1 -0
- package/tailwind-base/theme/sizes.ts +2 -0
- package/dist/components/List/use/useOrdering.d.ts +0 -7
- package/dist/components/List/use/useOrdering.d.ts.map +0 -1
- package/dist/components/List/use/useOrdering.js +0 -36
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WActionsBar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionsBar/WActionsBar.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WActionsBar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionsBar/WActionsBar.vue"],"names":[],"mappings":"AA8EA;AAqIA,OAAO,EAAC,KAAK,SAAS,EAAE,KAAK,KAAK,EAAsD,MAAM,KAAK,CAAA;AAYnG,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;AAuCF,iBAAS,cAAc;WAiHT,OAAO,IAA6B;;cAxH1C,MAAM,KAAK,EAAE;iBACV,MAAM,KAAK,EAAE;iBACb,MAAM,KAAK,EAAE;;cAFhB,MAAM,KAAK,EAAE;iBACV,MAAM,KAAK,EAAE;iBACb,MAAM,KAAK,EAAE;;;;EA2HvB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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,54 +1,37 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, provide, computed, ref, onUnmounted, watch, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, Fragment, renderList, createBlock, resolveDynamicComponent, createCommentVNode, createVNode, renderSlot, markRaw } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Button/WButtonAction.vue.js';
|
3
3
|
import IconBack from '../../assets/icons/default/IconBack.svg.js';
|
4
4
|
import IconFilter from '../../assets/icons/sax/IconFilter.svg.js';
|
5
|
-
import '../Button/WButton.vue.js';
|
6
|
-
import '../../utils/mobile.js';
|
7
|
-
import '../Button/WButtonDropdown.vue.js';
|
8
5
|
import { SemanticType } from '../../utils/SemanticType.js';
|
9
|
-
import '
|
10
|
-
import '
|
11
|
-
import '../Dropdown/utils/DropdownStyle.js';
|
12
|
-
import '../../utils/Modal.js';
|
13
|
-
import '../Input/WInputSuggest.vue.js';
|
14
|
-
import '../HeaderBar/use/useHeader.js';
|
15
|
-
import '../InfoCard/models/utils.js';
|
16
|
-
import '../Input/WInputDate.vue.js';
|
17
|
-
import '../Link/WLink.vue.js';
|
18
|
-
import '@tanstack/vue-query';
|
19
|
-
import '../List/use/useListConfig.js';
|
20
|
-
import '../Modal/use/useIsBackdrop.js';
|
21
|
-
import '../Page/use/usePageBreadcrumbs.js';
|
6
|
+
import { wBaseZIndex, BASE_ZINDEX_ACTIONS_BAR } from '../../utils/utils.js';
|
7
|
+
import { useActionBarFilter } from './use/useActionsBarFilter.js';
|
22
8
|
|
23
9
|
const _hoisted_1 = { class: "no-scrollbar relative col-start-1 row-span-2 grid grid-cols-[--actions-bar-filter-width] justify-self-end overflow-y-auto overflow-x-hidden overscroll-contain" };
|
24
|
-
const _hoisted_2 = { class: "
|
25
|
-
const _hoisted_3 = { class: "row-
|
26
|
-
const _hoisted_4 = {
|
10
|
+
const _hoisted_2 = { class: "pb-16" };
|
11
|
+
const _hoisted_3 = { class: "relative row-span-2 grid h-full grid-cols-1 grid-rows-subgrid overflow-x-hidden overscroll-contain" };
|
12
|
+
const _hoisted_4 = { class: "row-start-2 grid grid-rows-[1fr,auto]" };
|
13
|
+
const _hoisted_5 = {
|
27
14
|
key: 0,
|
28
15
|
class: "mx-1 my-2 h-0.5 rounded bg-gray-200 md:my-4 dark:bg-gray-700"
|
29
16
|
};
|
30
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
31
18
|
__name: "WActionsBar",
|
32
19
|
props: {
|
33
|
-
filter: {},
|
34
20
|
bottom: {},
|
35
21
|
textFilter: {}
|
36
22
|
},
|
37
23
|
setup(__props) {
|
38
|
-
|
24
|
+
provide(wBaseZIndex, BASE_ZINDEX_ACTIONS_BAR);
|
39
25
|
let closeModal = null;
|
26
|
+
const { filter, count } = useActionBarFilter();
|
27
|
+
const hasFilter = computed(() => filter.value !== void 0);
|
40
28
|
const isOpen = ref(false);
|
41
|
-
const filterCount = ref(0);
|
42
29
|
const toggle = () => {
|
43
30
|
isOpen.value = !isOpen.value;
|
44
31
|
};
|
45
32
|
const close = () => {
|
46
33
|
isOpen.value = false;
|
47
34
|
};
|
48
|
-
const hasFilter = computed(() => !!props.filter);
|
49
|
-
const updateCount = (value) => {
|
50
|
-
filterCount.value = value;
|
51
|
-
};
|
52
35
|
onUnmounted(() => {
|
53
36
|
closeModal?.();
|
54
37
|
closeModal = null;
|
@@ -58,17 +41,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
58
41
|
});
|
59
42
|
return (_ctx, _cache) => {
|
60
43
|
return openBlock(), createElementBlock("div", {
|
61
|
-
class: normalizeClass(["height-full bg-default dark:bg-default-dark sm-not:[--actions-bar-filter-width:calc(100vw-var(--w-actions-bar-width))] fixed right-0 top-0
|
44
|
+
class: normalizeClass(["height-full bg-default dark:bg-default-dark sm-not:[--actions-bar-filter-width:calc(100vw-var(--w-actions-bar-width))] fixed right-0 top-0 grid grid-cols-[var(--actions-bar-filter-width-current,0),var(--w-actions-bar-width)] grid-rows-[var(--header-height),1fr] justify-end overflow-hidden shadow-md transition-[grid-template-columns] duration-300 print:hidden", {
|
62
45
|
"[--actions-bar-filter-width-current:var(--actions-bar-filter-width)]": isOpen.value && hasFilter.value
|
63
|
-
}])
|
46
|
+
}]),
|
47
|
+
style: normalizeStyle({ zIndex: unref(BASE_ZINDEX_ACTIONS_BAR) })
|
64
48
|
}, [
|
65
49
|
createElementVNode("div", _hoisted_1, [
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
50
|
+
createElementVNode("div", _hoisted_2, [
|
51
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "text-accent -px--inner-margin -h--header-height flex items-center text-xl font-semibold" }, " Filters ", -1)),
|
52
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filter), (slot, index) => {
|
53
|
+
return openBlock(), createBlock(resolveDynamicComponent(slot), { key: index });
|
54
|
+
}), 128))
|
55
|
+
])
|
70
56
|
]),
|
71
|
-
createElementVNode("div",
|
57
|
+
createElementVNode("div", _hoisted_3, [
|
72
58
|
hasFilter.value ? (openBlock(), createElementBlock("button", {
|
73
59
|
key: 0,
|
74
60
|
class: "w-ripple w-ripple-hover relative row-start-1 flex cursor-pointer select-none items-center justify-center",
|
@@ -78,16 +64,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
78
64
|
class: normalizeClass(["text-description square-4 transition-transform", { "[transform:rotateY(180deg)]": isOpen.value }])
|
79
65
|
}, null, 8, ["class"])
|
80
66
|
])) : createCommentVNode("", true),
|
81
|
-
createElementVNode("div",
|
67
|
+
createElementVNode("div", _hoisted_4, [
|
82
68
|
createElementVNode("div", null, [
|
83
69
|
renderSlot(_ctx.$slots, "top"),
|
84
|
-
_ctx.$slots.top && (hasFilter.value || _ctx.bottom || _ctx.$slots.bottom) ? (openBlock(), createElementBlock("div",
|
70
|
+
_ctx.$slots.top && (hasFilter.value || _ctx.bottom || _ctx.$slots.bottom) ? (openBlock(), createElementBlock("div", _hoisted_5)) : createCommentVNode("", true),
|
85
71
|
hasFilter.value ? (openBlock(), createBlock(_sfc_main$1, {
|
86
72
|
key: 1,
|
87
73
|
title: _ctx.textFilter ?? "Filters",
|
88
74
|
icon: markRaw(unref(IconFilter)),
|
89
75
|
active: isOpen.value,
|
90
|
-
count:
|
76
|
+
count: unref(count),
|
91
77
|
"semantic-type": unref(SemanticType).PRIMARY,
|
92
78
|
onClick: toggle
|
93
79
|
}, null, 8, ["title", "icon", "active", "count", "semantic-type"])) : createCommentVNode("", true),
|
@@ -98,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
98
84
|
renderSlot(_ctx.$slots, "footer")
|
99
85
|
])
|
100
86
|
])
|
101
|
-
],
|
87
|
+
], 6);
|
102
88
|
};
|
103
89
|
}
|
104
90
|
});
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { VNode } from 'vue';
|
2
|
+
type __VLS_Props = {
|
3
|
+
count: number;
|
4
|
+
};
|
5
|
+
declare function __VLS_template(): {
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
slots: Readonly<{
|
8
|
+
default: () => VNode[];
|
9
|
+
}> & {
|
10
|
+
default: () => VNode[];
|
11
|
+
};
|
12
|
+
refs: {};
|
13
|
+
rootEl: any;
|
14
|
+
};
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
16
|
+
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, {}, any>;
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
18
|
+
export default _default;
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
20
|
+
new (): {
|
21
|
+
$slots: S;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=WActionsBarFilter.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WActionsBarFilter.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionsBar/WActionsBarFilter.vue"],"names":[],"mappings":"AA6BA,OAAO,EAAC,KAAK,KAAK,EAA6C,MAAM,KAAK,CAAA;AAI1E,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAwBF,iBAAS,cAAc;WAYT,OAAO,IAA6B;;iBAjBvC,MAAM,KAAK,EAAE;;iBAAb,MAAM,KAAK,EAAE;;;;EAsBvB;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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,25 @@
|
|
1
|
+
import { defineComponent, useSlots, computed, watch, onBeforeUnmount } from 'vue';
|
2
|
+
import { useActionBarFilter } from './use/useActionsBarFilter.js';
|
3
|
+
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "WActionsBarFilter",
|
6
|
+
props: {
|
7
|
+
count: {}
|
8
|
+
},
|
9
|
+
setup(__props) {
|
10
|
+
const props = __props;
|
11
|
+
const slots = useSlots();
|
12
|
+
const slotsDefault = computed(() => slots.default?.());
|
13
|
+
const { updateFilter, updateCount } = useActionBarFilter();
|
14
|
+
watch(slotsDefault, updateFilter, { immediate: true });
|
15
|
+
watch(() => props.count, updateCount, { immediate: true });
|
16
|
+
onBeforeUnmount(() => {
|
17
|
+
updateFilter(void 0);
|
18
|
+
updateCount(0);
|
19
|
+
});
|
20
|
+
return () => {
|
21
|
+
};
|
22
|
+
}
|
23
|
+
});
|
24
|
+
|
25
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { VNode } from 'vue';
|
2
|
+
export declare const useActionBarFilter: () => {
|
3
|
+
filter: import('vue').Ref<VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
4
|
+
[key: string]: any;
|
5
|
+
}>[] | undefined, VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
6
|
+
[key: string]: any;
|
7
|
+
}>[] | undefined>;
|
8
|
+
count: import('vue').Ref<number, number>;
|
9
|
+
updateFilter: (value: VNode[] | undefined) => void;
|
10
|
+
updateCount: (value: number) => void;
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=useActionsBarFilter.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useActionsBarFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/ActionsBar/use/useActionsBarFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,KAAK,EAAM,MAAM,KAAK,CAAA;AAKnC,eAAO,MAAM,kBAAkB;;;;;;;0BACA,KAAK,EAAE,GAAG,SAAS;yBAIpB,MAAM;CAUnC,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { ref } from 'vue';
|
2
|
+
|
3
|
+
const filter = ref(void 0);
|
4
|
+
const count = ref(0);
|
5
|
+
const useActionBarFilter = () => {
|
6
|
+
const updateFilter = (value) => {
|
7
|
+
filter.value = value;
|
8
|
+
};
|
9
|
+
const updateCount = (value) => {
|
10
|
+
count.value = value;
|
11
|
+
};
|
12
|
+
return {
|
13
|
+
filter,
|
14
|
+
count,
|
15
|
+
updateFilter,
|
16
|
+
updateCount
|
17
|
+
};
|
18
|
+
};
|
19
|
+
|
20
|
+
export { useActionBarFilter };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"AA6DA;AA+HA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAC;AAwDF,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;;;YAdtB,GAAG;;;YACF,GAAG;yBACF,GAAG;;;;;;;EAiBhC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;kBASnB,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,16 +1,13 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, watch, onBeforeUnmount, createElementBlock, openBlock, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, createCommentVNode, createElementVNode, normalizeClass } from 'vue';
|
1
|
+
import { defineComponent, inject, useTemplateRef, ref, watch, onBeforeUnmount, createElementBlock, openBlock, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, unref, createElementVNode, normalizeClass } from 'vue';
|
2
|
+
import { wBaseZIndex, BASE_ZINDEX_DROPDOWN } from '../../utils/utils.js';
|
2
3
|
|
3
4
|
const _hoisted_1 = {
|
4
|
-
key: 0,
|
5
|
-
class: "bg-primary-light dark:bg-primary-darkest no-scrollbar fixed left-0 top-0 z-[1000] size-full snap-y snap-mandatory snap-always overflow-scroll overflow-y-auto overscroll-contain scroll-smooth bg-opacity-40 backdrop-blur dark:bg-opacity-40"
|
6
|
-
};
|
7
|
-
const _hoisted_2 = {
|
8
5
|
ref: "content",
|
9
6
|
class: "height-[90%] bg-default dark:bg-default-dark relative grid snap-end grid-cols-[1fr] grid-rows-[auto,1fr] rounded-t-3xl shadow-md"
|
10
7
|
};
|
11
|
-
const
|
12
|
-
const
|
13
|
-
const
|
8
|
+
const _hoisted_2 = { class: "px-3" };
|
9
|
+
const _hoisted_3 = { class: "flex h-9 items-center justify-center" };
|
10
|
+
const _hoisted_4 = { class: "overflow-y-auto overflow-x-hidden overscroll-contain" };
|
14
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
12
|
__name: "WBottomSheet",
|
16
13
|
props: {
|
@@ -19,6 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
16
|
emits: ["close"],
|
20
17
|
setup(__props, { emit: __emit }) {
|
21
18
|
const emit = __emit;
|
19
|
+
const baseZIndex = inject(wBaseZIndex, 0);
|
22
20
|
const backdropRef = useTemplateRef("backdrop");
|
23
21
|
const contentRef = useTemplateRef("content");
|
24
22
|
const swipeStarted = ref(false);
|
@@ -64,15 +62,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
64
62
|
onAfterEnter: show
|
65
63
|
}, {
|
66
64
|
default: withCtx(() => [
|
67
|
-
_ctx.isOpen ? (openBlock(), createElementBlock("div",
|
65
|
+
_ctx.isOpen ? (openBlock(), createElementBlock("div", {
|
66
|
+
key: 0,
|
67
|
+
class: "bg-primary-light dark:bg-primary-darkest no-scrollbar fixed left-0 top-0 size-full snap-y snap-mandatory snap-always overflow-scroll overflow-y-auto overscroll-contain scroll-smooth bg-opacity-40 backdrop-blur dark:bg-opacity-40",
|
68
|
+
style: normalizeStyle({ zIndex: unref(baseZIndex) + unref(BASE_ZINDEX_DROPDOWN) })
|
69
|
+
}, [
|
68
70
|
createElementVNode("div", {
|
69
71
|
ref: "backdrop",
|
70
72
|
class: "height-full snap-start",
|
71
73
|
onClick: hide
|
72
74
|
}, null, 512),
|
73
|
-
createElementVNode("div",
|
74
|
-
createElementVNode("div",
|
75
|
-
createElementVNode("div",
|
75
|
+
createElementVNode("div", _hoisted_1, [
|
76
|
+
createElementVNode("div", _hoisted_2, [
|
77
|
+
createElementVNode("div", _hoisted_3, [
|
76
78
|
createElementVNode("div", {
|
77
79
|
class: normalizeClass(["h-1 w-12 rounded-sm", {
|
78
80
|
"bg-gray-300": !swipeStarted.value,
|
@@ -82,12 +84,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
84
|
]),
|
83
85
|
renderSlot(_ctx.$slots, "toggle", { unclickable: false })
|
84
86
|
]),
|
85
|
-
createElementVNode("div",
|
87
|
+
createElementVNode("div", _hoisted_4, [
|
86
88
|
renderSlot(_ctx.$slots, "content")
|
87
89
|
]),
|
88
90
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "absolute top-full h-screen w-full bg-[inherit]" }, null, -1))
|
89
91
|
], 512)
|
90
|
-
])) : createCommentVNode("", true)
|
92
|
+
], 4)) : createCommentVNode("", true)
|
91
93
|
]),
|
92
94
|
_: 3
|
93
95
|
})
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonDropdown.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WButtonDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonDropdown.vue"],"names":[],"mappings":"AAqEA;AA0GA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAEhD,OAAO,EAAC,KAAK,KAAK,EAAM,MAAM,KAAK,CAAA;AAQnC,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAgBvD,QAAA,MAAM,KAAK,YAEV,CAAA;AAcD,iBAAS,cAAc;WA4KT,OAAO,IAA6B;;iBAvLvC,MAAM,KAAK,EAAE;kBACZ,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,OAAO,KAAK,CAAA;SAAC,KAAK,KAAK,EAAE;;iBAD1C,MAAM,KAAK,EAAE;kBACZ,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,OAAO,KAAK,CAAA;SAAC,KAAK,KAAK,EAAE;;;;EA2LpD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -14,8 +14,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
leftToggle: { type: Boolean },
|
15
15
|
disabled: { type: Boolean },
|
16
16
|
tooltipText: {},
|
17
|
-
teleport: { type: Boolean },
|
18
17
|
parentElement: {},
|
18
|
+
top: { type: Boolean },
|
19
19
|
horizontalAlign: { default: HorizontalAlign.LEFT_INNER },
|
20
20
|
maxHeight: { default: 200 },
|
21
21
|
maxWidth: { default: 320 }
|
@@ -31,8 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
31
|
"max-height": _ctx.maxHeight,
|
32
32
|
"max-width": _ctx.maxWidth,
|
33
33
|
"horizontal-align": _ctx.horizontalAlign,
|
34
|
-
"update-align": ""
|
35
|
-
teleport: _ctx.teleport
|
34
|
+
"update-align": ""
|
36
35
|
}, {
|
37
36
|
toggle: withCtx(() => [
|
38
37
|
createElementVNode("div", null, [
|
@@ -91,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
91
90
|
})
|
92
91
|
]),
|
93
92
|
_: 3
|
94
|
-
}, 8, ["is-open", "max-height", "max-width", "horizontal-align"
|
93
|
+
}, 8, ["is-open", "max-height", "max-width", "horizontal-align"]);
|
95
94
|
};
|
96
95
|
}
|
97
96
|
});
|
@@ -0,0 +1,42 @@
|
|
1
|
+
type __VLS_Props = {
|
2
|
+
active?: boolean;
|
3
|
+
hasError?: boolean;
|
4
|
+
hasValue?: boolean;
|
5
|
+
hasChanges?: boolean;
|
6
|
+
disabled?: boolean;
|
7
|
+
icon?: SVGComponent;
|
8
|
+
title?: string;
|
9
|
+
indicator?: boolean;
|
10
|
+
side?: boolean;
|
11
|
+
};
|
12
|
+
declare function __VLS_template(): {
|
13
|
+
attrs: Partial<{}>;
|
14
|
+
slots: {
|
15
|
+
title?(_: {
|
16
|
+
hasChanges: boolean | undefined;
|
17
|
+
hasError: boolean | undefined;
|
18
|
+
hasValue: boolean | undefined;
|
19
|
+
}): any;
|
20
|
+
suffix?(_: {
|
21
|
+
hasChanges: boolean | undefined;
|
22
|
+
hasError: boolean | undefined;
|
23
|
+
hasValue: boolean | undefined;
|
24
|
+
}): any;
|
25
|
+
};
|
26
|
+
refs: {};
|
27
|
+
rootEl: HTMLButtonElement;
|
28
|
+
};
|
29
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
30
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
31
|
+
click: (value: MouseEvent) => any;
|
32
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
33
|
+
onClick?: ((value: MouseEvent) => any) | undefined;
|
34
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
36
|
+
export default _default;
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
38
|
+
new (): {
|
39
|
+
$slots: S;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
//# sourceMappingURL=WButtonTab.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WButtonTab.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonTab.vue"],"names":[],"mappings":"AAiIA;AA4JA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAUF,iBAAS,cAAc;WAoMT,OAAO,IAA6B;;;;;;YAXtB,GAAG;;;;;YACF,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,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,135 @@
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, createBlock, unref, renderSlot, createVNode, normalizeProps, mergeProps, createTextVNode, Suspense, withCtx, resolveDynamicComponent, toDisplayString, guardReactiveProps, Transition } from 'vue';
|
2
|
+
import IconCheckCircle from '../../assets/icons/sax/IconCheckCircle.svg.js';
|
3
|
+
import IconClose from '../../assets/icons/sax/IconClose.svg.js';
|
4
|
+
import IconNegativeInfo from '../../assets/icons/sax/IconNegativeInfo.svg.js';
|
5
|
+
|
6
|
+
const _hoisted_1 = ["disabled"];
|
7
|
+
const _hoisted_2 = {
|
8
|
+
key: 0,
|
9
|
+
class: "p-8"
|
10
|
+
};
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
|
+
__name: "WButtonTab",
|
13
|
+
props: {
|
14
|
+
active: { type: Boolean },
|
15
|
+
hasError: { type: Boolean },
|
16
|
+
hasValue: { type: Boolean },
|
17
|
+
hasChanges: { type: Boolean },
|
18
|
+
disabled: { type: Boolean },
|
19
|
+
icon: {},
|
20
|
+
title: {},
|
21
|
+
indicator: { type: Boolean },
|
22
|
+
side: { type: Boolean }
|
23
|
+
},
|
24
|
+
emits: ["click"],
|
25
|
+
setup(__props) {
|
26
|
+
return (_ctx, _cache) => {
|
27
|
+
return openBlock(), createElementBlock("button", {
|
28
|
+
disabled: _ctx.disabled,
|
29
|
+
class: normalizeClass(["w-ripple-trigger grid select-none grid-cols-[auto,1fr] font-semibold outline-none transition-colors duration-500", {
|
30
|
+
"text-primary dark:text-primary-dark": !_ctx.hasError && _ctx.active,
|
31
|
+
"text-negative dark:text-negative-dark": _ctx.hasError,
|
32
|
+
"text-positive dark:text-positive-dark": !_ctx.active && !_ctx.hasError && _ctx.hasValue,
|
33
|
+
"text-description": !_ctx.active && !_ctx.hasError && !_ctx.hasValue,
|
34
|
+
"cursor-not-allowed opacity-50": _ctx.disabled,
|
35
|
+
"cursor-pointer": !_ctx.disabled
|
36
|
+
}]),
|
37
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.disabled && _ctx.$emit("click", $event))
|
38
|
+
}, [
|
39
|
+
_ctx.indicator ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
40
|
+
createElementVNode("div", {
|
41
|
+
class: normalizeClass(["text-default dark:text-default-dark rounded-full bg-[inherit] bg-opacity-100 p-1 outline transition-[outline-width] duration-500", {
|
42
|
+
"bg-negative dark:bg-negative-dark outline-negative/10 dark:outline-negative-dark/10": _ctx.hasError,
|
43
|
+
"bg-positive dark:bg-positive-dark outline-positive/10 dark:outline-positive-dark/10": !_ctx.hasError && _ctx.hasValue,
|
44
|
+
"bg-gray-400 outline-gray-400/10 dark:bg-gray-600 dark:outline-gray-600/10": !_ctx.hasError && !_ctx.hasValue,
|
45
|
+
"outline-[1.5rem]": _ctx.active
|
46
|
+
}])
|
47
|
+
}, [
|
48
|
+
_ctx.hasError ? (openBlock(), createBlock(unref(IconNegativeInfo), {
|
49
|
+
key: 0,
|
50
|
+
class: "size-8"
|
51
|
+
})) : _ctx.hasValue ? (openBlock(), createBlock(unref(IconCheckCircle), {
|
52
|
+
key: 1,
|
53
|
+
class: "size-8"
|
54
|
+
})) : (openBlock(), createBlock(unref(IconClose), {
|
55
|
+
key: 2,
|
56
|
+
class: "size-8"
|
57
|
+
}))
|
58
|
+
], 2)
|
59
|
+
])) : createCommentVNode("", true),
|
60
|
+
createElementVNode("div", {
|
61
|
+
class: normalizeClass(["relative col-start-2 self-start", {
|
62
|
+
"mt-3.5": _ctx.indicator,
|
63
|
+
"w-ripple w-ripple-hover": !_ctx.disabled
|
64
|
+
}])
|
65
|
+
}, [
|
66
|
+
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", normalizeProps(mergeProps({ key: 0 }, { hasChanges: _ctx.hasChanges, hasError: _ctx.hasError, hasValue: _ctx.hasValue }))) : (openBlock(), createElementBlock("div", {
|
67
|
+
key: 1,
|
68
|
+
class: normalizeClass(["flex items-center py-2", {
|
69
|
+
"justify-center text-center": !_ctx.side,
|
70
|
+
"text-start": _ctx.side
|
71
|
+
}])
|
72
|
+
}, [
|
73
|
+
createElementVNode("div", {
|
74
|
+
class: normalizeClass(["whitespace-nowrap px-3", {
|
75
|
+
"sm-not:-pl--inner-margin": _ctx.side
|
76
|
+
}])
|
77
|
+
}, [
|
78
|
+
_ctx.icon !== void 0 ? (openBlock(), createBlock(Suspense, { key: 0 }, {
|
79
|
+
fallback: withCtx(() => _cache[1] || (_cache[1] = [
|
80
|
+
createElementVNode("svg", { class: "square-[1.25em] -mt-1 inline" }, [
|
81
|
+
createElementVNode("g")
|
82
|
+
], -1)
|
83
|
+
])),
|
84
|
+
default: withCtx(() => [
|
85
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-[1.25em] -mt-1 inline" }))
|
86
|
+
]),
|
87
|
+
_: 1
|
88
|
+
})) : createCommentVNode("", true),
|
89
|
+
createTextVNode(" " + toDisplayString(_ctx.title), 1)
|
90
|
+
], 2),
|
91
|
+
renderSlot(_ctx.$slots, "suffix", normalizeProps(guardReactiveProps({ hasChanges: _ctx.hasChanges, hasError: _ctx.hasError, hasValue: _ctx.hasValue })))
|
92
|
+
], 2)),
|
93
|
+
createVNode(Transition, {
|
94
|
+
"enter-active-class": "transition-opacity",
|
95
|
+
"leave-active-class": "transition-opacity",
|
96
|
+
"enter-from-class": "opacity-0",
|
97
|
+
"leave-to-class": "opacity-0"
|
98
|
+
}, {
|
99
|
+
default: withCtx(() => [
|
100
|
+
_ctx.hasChanges ? (openBlock(), createElementBlock("div", {
|
101
|
+
key: 0,
|
102
|
+
class: normalizeClass(["square-2 absolute right-0 top-0 rounded-full transition-colors duration-500", {
|
103
|
+
"bg-info dark:bg-info-dark": !_ctx.hasError,
|
104
|
+
"bg-negative dark:bg-negative-dark": _ctx.hasError
|
105
|
+
}])
|
106
|
+
}, null, 2)) : createCommentVNode("", true)
|
107
|
+
]),
|
108
|
+
_: 1
|
109
|
+
}),
|
110
|
+
createVNode(Transition, {
|
111
|
+
"enter-active-class": "transition-[transform,opacity] origin-center duration-300",
|
112
|
+
"leave-active-class": "transition-[transform,opacity] origin-center duration-300",
|
113
|
+
"enter-from-class": "scale-x-0 opacity-0",
|
114
|
+
"leave-to-class": "scale-x-0 opacity-0",
|
115
|
+
css: !_ctx.indicator
|
116
|
+
}, {
|
117
|
+
default: withCtx(() => [
|
118
|
+
_ctx.active || _ctx.indicator ? (openBlock(), createElementBlock("div", {
|
119
|
+
key: 0,
|
120
|
+
class: normalizeClass(["absolute inset-x-0 bottom-0 h-0.5 rounded-sm", {
|
121
|
+
"bg-current": _ctx.indicator,
|
122
|
+
"bg-primary dark:bg-primary-dark": !_ctx.indicator,
|
123
|
+
"sm-not:-left--inner-margin": _ctx.side
|
124
|
+
}])
|
125
|
+
}, null, 2)) : createCommentVNode("", true)
|
126
|
+
]),
|
127
|
+
_: 1
|
128
|
+
}, 8, ["css"])
|
129
|
+
], 2)
|
130
|
+
], 10, _hoisted_1);
|
131
|
+
};
|
132
|
+
}
|
133
|
+
});
|
134
|
+
|
135
|
+
export { _sfc_main as default };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/WDatePicker.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/WDatePicker.vue"],"names":[],"mappings":"AA6DA;AA2JA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAU7C,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;CACf,CAAC;;;;;;AAkSF,wBAQG"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, ref, computed, watch, toRef, createElementBlock, openBlock, createElementVNode, createVNode, normalizeStyle, unref, Transition, withCtx, createBlock } from 'vue';
|
2
|
-
import { getStartOfMonth, getStartOfWeek, addDay, addMonth, monthShortFormatter, addYear } from '../../utils/dateTime.js';
|
2
|
+
import { getStartOfMonth, getStartOfDay, getStartOfWeek, addDay, addMonth, monthShortFormatter, addYear, isSameMonth } from '../../utils/dateTime.js';
|
3
3
|
import _sfc_main$3 from './components/CalendarMonth.vue.js';
|
4
4
|
import _sfc_main$2 from './components/CalendarToggle.vue.js';
|
5
5
|
import _sfc_main$1 from './components/CalendarValue.vue.js';
|
@@ -22,6 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
const dateRange = ref(props.modelValue);
|
23
23
|
const preselectedValue = ref(null);
|
24
24
|
const isDirect = ref(false);
|
25
|
+
const today = ref(getStartOfDay());
|
25
26
|
const year = computed(() => currentDate.value.getFullYear());
|
26
27
|
const setCurrentDate = (value) => {
|
27
28
|
isDirect.value = value > currentDate.value;
|
@@ -118,10 +119,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
118
119
|
"is-hover-enabled": preselectedValue.value !== null,
|
119
120
|
"min-date": _ctx.minDate,
|
120
121
|
"max-date": _ctx.maxDate,
|
122
|
+
today: today.value && unref(isSameMonth)(today.value, currentDate.value) ? today.value : void 0,
|
121
123
|
class: "px-3",
|
122
124
|
"onClick:day": onClickDay,
|
123
125
|
"onHover:day": setRange
|
124
|
-
}, null, 8, ["start-of-month", "date-range", "is-hover-enabled", "min-date", "max-date"]))
|
126
|
+
}, null, 8, ["start-of-month", "date-range", "is-hover-enabled", "min-date", "max-date", "today"]))
|
125
127
|
]),
|
126
128
|
_: 1
|
127
129
|
})
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDatePickerSingle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/WDatePickerSingle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WDatePickerSingle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/WDatePickerSingle.vue"],"names":[],"mappings":"AAyCA;AA4GA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,GAAG,SAAS,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;CACf,CAAC;;;;;;AAsMF,wBAQG"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, ref, computed, watch, toRef, createElementBlock, openBlock, normalizeStyle, createElementVNode, createVNode, unref, Transition, withCtx, createBlock } from 'vue';
|
2
|
-
import { getStartOfMonth, getStartOfWeek, addDay, addMonth, monthShortFormatter, addYear } from '../../utils/dateTime.js';
|
2
|
+
import { getStartOfMonth, getStartOfDay, getStartOfWeek, addDay, addMonth, monthShortFormatter, addYear } from '../../utils/dateTime.js';
|
3
3
|
import _sfc_main$2 from './components/CalendarMonth.vue.js';
|
4
4
|
import _sfc_main$1 from './components/CalendarToggle.vue.js';
|
5
5
|
|
@@ -21,6 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
21
|
const dateRange = ref(void 0);
|
22
22
|
const preselectedValue = ref(null);
|
23
23
|
const isDirect = ref(false);
|
24
|
+
const today = ref(getStartOfDay());
|
24
25
|
const year = computed(() => currentDate.value.getFullYear());
|
25
26
|
const setCurrentDate = (value) => {
|
26
27
|
isDirect.value = value > currentDate.value;
|
@@ -73,9 +74,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
73
74
|
"is-hover-enabled": preselectedValue.value !== null,
|
74
75
|
"min-date": _ctx.minDate,
|
75
76
|
"max-date": _ctx.maxDate,
|
77
|
+
today: today.value,
|
76
78
|
class: "px-3",
|
77
79
|
"onClick:day": onClickDay
|
78
|
-
}, null, 8, ["start-of-month", "date-range", "is-hover-enabled", "min-date", "max-date"]))
|
80
|
+
}, null, 8, ["start-of-month", "date-range", "is-hover-enabled", "min-date", "max-date", "today"]))
|
79
81
|
]),
|
80
82
|
_: 1
|
81
83
|
})
|
@@ -9,6 +9,7 @@ type __VLS_Props = {
|
|
9
9
|
disabled?: boolean;
|
10
10
|
minDate?: Date;
|
11
11
|
maxDate?: Date;
|
12
|
+
isToday: boolean;
|
12
13
|
};
|
13
14
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
14
15
|
"click:day": (value: Date) => any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarDay.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/components/CalendarDay.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"CalendarDay.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/components/CalendarDay.vue"],"names":[],"mappings":"AA0CA;AA6HA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAA;AAM9C,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,IAAI,CAAA;IAClB,UAAU,EAAE,IAAI,CAAA;IAChB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;CACjB,CAAC;;;;;;;;AAmJF,wBAQG"}
|