eco-vue-js 0.10.32 → 0.10.33
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/assets/icons/sax/IconAddSquare.svg.js +2 -2
- package/dist/assets/icons/sax/{IconOutlineEdit.svg.js → IconEditSquare.svg.js} +6 -6
- package/dist/assets/icons/sax/IconFilter.svg.js +2 -2
- package/dist/assets/icons/sax/{IconOutlineFolderAdd.svg.js → IconFolderAdd.svg.js} +5 -5
- package/dist/assets/icons/sax/{IconOutlineCloseCircle.svg.js → IconMoon.svg.js} +4 -4
- package/dist/assets/icons/sax/IconSettings.svg.js +3 -3
- package/dist/assets/icons/sax/{IconOutlineCheckCircle.svg.js → IconSun.svg.js} +6 -6
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts +2 -0
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +37 -16
- package/dist/components/BottomSheet/WBottomSheet.vue.js +1 -1
- package/dist/components/Button/WButton.vue.d.ts +0 -1
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +9 -7
- package/dist/components/Button/WButtonAction.vue.d.ts +1 -1
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +38 -51
- package/dist/components/Button/WButtonCopy.vue.js +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +0 -1
- package/dist/components/Button/WButtonMore.vue.js +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.js +2 -2
- package/dist/components/Button/types.d.ts +0 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +3 -3
- package/dist/components/Chip/WChip.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.js +3 -3
- package/dist/components/DatePicker/components/CalendarToggle.vue.js +2 -2
- package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +10 -4
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +34 -0
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts.map +1 -1
- package/dist/components/Dropdown/utils/DropdownStyle.js +23 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -1
- package/dist/components/FieldWrapper/components/FilterButton.vue.js +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +0 -1
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +2 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue.js +1 -1
- package/dist/components/InfoCard/models/utils.js +2 -2
- package/dist/components/Input/WInput.vue.js +2 -2
- package/dist/components/Input/WInputAsync.vue.js +2 -2
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +5 -4
- package/dist/components/Link/WLinkArrow.vue.js +1 -1
- package/dist/components/List/WList.vue.d.ts +1 -1
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +8 -8
- package/dist/components/List/components/HeaderSettingsModeButton.vue.js +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +1 -1
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +6 -5
- package/dist/components/Modal/WModalExport.vue.js +1 -1
- package/dist/components/Modal/WModalImport.vue.js +1 -1
- package/dist/components/Modal/use/useIsBackdrop.d.ts +2 -0
- package/dist/components/Modal/use/useIsBackdrop.d.ts.map +1 -0
- package/dist/components/Modal/use/useIsBackdrop.js +8 -0
- package/dist/components/Nav/WNavBar.vue.js +1 -1
- package/dist/components/Nav/WNavItem.vue.js +2 -2
- package/dist/components/Progress/WProgress.vue.js +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +1 -1
- package/dist/components/Shine/WShine.vue.d.ts +5 -0
- package/dist/components/Shine/WShine.vue.d.ts.map +1 -0
- package/dist/components/Shine/WShine.vue.js +28 -0
- package/dist/components/Shine/WShine.vue2.js +5 -0
- package/dist/components/Shine/WShineEffect.vue.d.ts +3 -0
- package/dist/components/Shine/WShineEffect.vue.d.ts.map +1 -0
- package/dist/components/Shine/WShineEffect.vue.js +42 -0
- package/dist/components/Shine/WShineEffect.vue2.js +5 -0
- package/dist/components/Shine/use/useShine.d.ts +4 -0
- package/dist/components/Shine/use/useShine.d.ts.map +1 -0
- package/dist/components/Shine/use/useShine.js +8 -0
- package/dist/components/Tabs/WTabs.vue.d.ts +16 -8
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.js +1 -1
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +38 -25
- package/dist/components/Toggle/WToggleTheme.vue.d.ts +9 -0
- package/dist/components/Toggle/WToggleTheme.vue.d.ts.map +1 -0
- package/dist/components/Toggle/WToggleTheme.vue.js +37 -0
- package/dist/components/Toggle/WToggleTheme.vue2.js +5 -0
- package/dist/components/Toggle/types.d.ts +6 -0
- package/dist/components/Toggle/types.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +3 -3
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +1 -1
- package/dist/imports/componentsPlugin.d.ts +4 -1
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/imports/iconsSax.d.ts +4 -6
- package/dist/imports/iconsSax.d.ts.map +1 -1
- package/dist/imports/iconsSax.js +4 -6
- package/dist/main.js +5 -2
- package/dist/utils/HorizontalAlign.d.ts +2 -0
- package/dist/utils/HorizontalAlign.d.ts.map +1 -1
- package/dist/utils/HorizontalAlign.js +2 -0
- package/dist/utils/SemanticType.d.ts +36 -0
- package/dist/utils/SemanticType.d.ts.map +1 -1
- package/dist/utils/SemanticType.js +55 -1
- package/dist/utils/utils.d.ts +4 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +6 -1
- package/package.json +10 -1
- package/tailwind-base/index.ts +4 -10
- package/tailwind-base/plugins/default.ts +15 -0
- package/tailwind-base/theme/animations.ts +9 -0
- package/tailwind-base/theme/sizes.ts +1 -0
- package/dist/assets/icons/sax/IconOutlineRefresh.svg.js +0 -24
- package/dist/assets/icons/sax/IconOutlineStar.svg.js +0 -24
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts +0 -6
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts.map +0 -1
- package/dist/components/Button/models/semanticTypeStylesMap.js +0 -32
@@ -48,13 +48,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
48
|
createElementVNode("div", {
|
49
49
|
class: normalizeClass(["square-[1.5em] bg-default dark:bg-default-dark relative isolate flex items-center justify-center border border-solid [font-size:--w-checkbox-size]", {
|
50
50
|
"text-default dark:text-default-dark": _ctx.modelValue && !_ctx.disabled,
|
51
|
-
"text-primary
|
51
|
+
"text-primary dark:text-primary-dark": !_ctx.modelValue && !_ctx.disabled,
|
52
52
|
"text-gray-300 dark:text-gray-700": !_ctx.modelValue && _ctx.disabled,
|
53
53
|
"w-ripple w-hover-circle before:text-accent after:text-accent": !_ctx.disabled && !_ctx.readonly,
|
54
54
|
"rounded-full": _ctx.radio,
|
55
55
|
"rounded-md": !_ctx.radio,
|
56
56
|
"border-gray-300 dark:border-gray-700": _ctx.disabled,
|
57
|
-
"border-primary
|
57
|
+
"border-primary dark:border-primary-dark": !_ctx.disabled
|
58
58
|
}]),
|
59
59
|
onKeypress: withKeys(withModifiers(toggle, ["stop", "prevent"]), ["enter"])
|
60
60
|
}, [
|
@@ -71,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
71
71
|
"scale-[0.66] rounded": !_ctx.radio && _ctx.intermediate && _ctx.modelValue === null,
|
72
72
|
"scale-[0.66] rounded-full": _ctx.radio && !(_ctx.intermediate && _ctx.modelValue === null),
|
73
73
|
"rounded": !_ctx.radio && !(_ctx.intermediate && _ctx.modelValue === null),
|
74
|
-
"bg-primary
|
74
|
+
"bg-primary dark:bg-primary-dark": !_ctx.disabled,
|
75
75
|
"bg-gray-300 dark:bg-gray-700": _ctx.disabled
|
76
76
|
}])
|
77
77
|
}, null, 2), [
|
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
},
|
12
12
|
setup(__props) {
|
13
13
|
const classMap = {
|
14
|
-
[SemanticType.PRIMARY]: "text-primary
|
14
|
+
[SemanticType.PRIMARY]: "text-primary dark:text-primary-dark",
|
15
15
|
[SemanticType.SECONDARY]: "text-description",
|
16
16
|
[SemanticType.POSITIVE]: "text-positive dark:text-positive-dark",
|
17
17
|
[SemanticType.NEGARIVE]: "text-negative dark:text-negative-dark",
|
@@ -70,8 +70,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
70
70
|
}, [
|
71
71
|
withDirectives(createElementVNode("div", {
|
72
72
|
class: normalizeClass(["absolute h-9 opacity-50", {
|
73
|
-
"border-primary
|
74
|
-
"bg-primary
|
73
|
+
"border-primary border-y border-solid": _ctx.isHoverEnabled && !isDisabled.value,
|
74
|
+
"bg-primary dark:bg-primary-dark": !_ctx.isHoverEnabled && !isDisabled.value,
|
75
75
|
"bg-gray-200 dark:bg-gray-700": isDisabled.value,
|
76
76
|
"w-full": isBetweenRange.value || isDisabled.value,
|
77
77
|
"left-1/2 w-1/2": isFrom.value && !isTo.value,
|
@@ -84,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
84
|
class: normalizeClass(["square-9 relative flex items-center justify-center rounded-full", {
|
85
85
|
"w-ripple w-ripple-hover": !isDisabled.value,
|
86
86
|
"opacity-50": isDisabled.value,
|
87
|
-
"bg-primary
|
87
|
+
"bg-primary dark:bg-primary-dark font-semibold": isSelected.value
|
88
88
|
}])
|
89
89
|
}, [
|
90
90
|
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.startOfDay.getDate()), 1)
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
return (_ctx, _cache) => {
|
14
14
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
15
15
|
createElementVNode("div", {
|
16
|
-
class: "square-8 w-ripple hover:bg-primary
|
16
|
+
class: "square-8 w-ripple hover:bg-primary hover:dark:bg-primary-dark hover:text-default dark:hover:text-default text-description relative mr-auto flex cursor-pointer select-none items-center justify-center rounded-xl",
|
17
17
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:previous"))
|
18
18
|
}, [
|
19
19
|
createVNode(unref(IconArrow), { class: "-ml-1 rotate-90" })
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
35
35
|
})
|
36
36
|
]),
|
37
37
|
createElementVNode("div", {
|
38
|
-
class: "square-8 w-ripple hover:bg-primary
|
38
|
+
class: "square-8 w-ripple hover:bg-primary hover:dark:bg-primary-dark hover:text-default dark:hover:text-default text-description relative ml-auto flex cursor-pointer select-none items-center justify-center rounded-xl",
|
39
39
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click:next"))
|
40
40
|
}, [
|
41
41
|
createVNode(unref(IconArrow), { class: "-mr-1 -rotate-90" })
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
26
|
});
|
27
27
|
return (_ctx, _cache) => {
|
28
28
|
return openBlock(), createElementBlock("div", {
|
29
|
-
class: normalizeClass(["from-primary
|
29
|
+
class: normalizeClass(["from-primary dark:from-primary-dark text-default dark:text-default-dark relative w-full select-none rounded-xl bg-gradient-to-tr to-[#C376FF] px-4 py-3 dark:to-[#9b3be6]", {
|
30
30
|
"w-ripple w-ripple-hover cursor-pointer": clickable.value
|
31
31
|
}]),
|
32
32
|
onClick: updateCurrentDate
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/WDropdown.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/WDropdown.vue"],"names":[],"mappings":"AAqBA;AA0IA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAA;AA0H1C,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;;;;;;;YAXrB,GAAG;;;;;;EAgB/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kBAUnB,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,7 +1,8 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, computed, onBeforeMount, onMounted, onBeforeUnmount, watch, toRef, createElementBlock, openBlock, normalizeClass, normalizeStyle, renderSlot, mergeProps } from 'vue';
|
1
|
+
import { defineComponent, useTemplateRef, ref, computed, onBeforeMount, onMounted, onBeforeUnmount, watch, toRef, createElementBlock, openBlock, normalizeClass, normalizeStyle, unref, renderSlot, mergeProps } from 'vue';
|
2
2
|
import DOMListenerContainer from '../../utils/DOMListenerContainer.js';
|
3
|
+
import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
|
3
4
|
import { isClientSide, getAllScrollParents } from '../../utils/utils.js';
|
4
|
-
import { horizontalGetterOrderMap, searchStyleGetter } from './utils/DropdownStyle.js';
|
5
|
+
import { horizontalGetterOrderMap, searchStyleGetter, LeftCenter } from './utils/DropdownStyle.js';
|
5
6
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
8
|
__name: "WDropdown",
|
@@ -22,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
23
|
let horizontalGetter = null;
|
23
24
|
let verticalGetter = null;
|
24
25
|
const isTop = ref(false);
|
26
|
+
const isLeftCenter = ref(false);
|
25
27
|
const widthStyle = ref({});
|
26
28
|
const heightStyle = ref({});
|
27
29
|
const horizontalStyle = ref({});
|
@@ -41,6 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
43
|
const isTopChanged = newRect.top !== parentRect?.top || newRect.bottom !== parentRect?.bottom;
|
42
44
|
if (!horizontalGetter || isLeftChanged && (props.updateAlign || updateAlign)) {
|
43
45
|
horizontalGetter = searchStyleGetter(order.value, newRect, props.maxWidth);
|
46
|
+
isLeftCenter.value = horizontalGetter instanceof LeftCenter;
|
44
47
|
if (updateSize) widthStyle.value = horizontalGetter.widthStyleGetter(newRect, props.maxWidth);
|
45
48
|
}
|
46
49
|
if (!verticalGetter || isTopChanged && (props.updateAlign || updateAlign)) {
|
@@ -90,8 +93,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
90
93
|
return openBlock(), createElementBlock("div", {
|
91
94
|
ref: "dropdown",
|
92
95
|
style: normalizeStyle(styles.value),
|
93
|
-
class: normalizeClass(["group/dropdown fixed h-auto", {
|
94
|
-
"dropdown-top": isTop.value
|
96
|
+
class: normalizeClass(["group/dropdown fixed grid h-auto", {
|
97
|
+
"dropdown-top": isTop.value,
|
98
|
+
"content-center": _ctx.horizontalAlign === unref(HorizontalAlign).LEFT_CENTER || _ctx.horizontalAlign === unref(HorizontalAlign).RIGHT_CENTER,
|
99
|
+
"justify-end": isLeftCenter.value,
|
100
|
+
"justify-center": _ctx.horizontalAlign === unref(HorizontalAlign).CENTER
|
95
101
|
}])
|
96
102
|
}, [
|
97
103
|
renderSlot(_ctx.$slots, "default", mergeProps({ isTop: isTop.value }, {
|
@@ -9,12 +9,46 @@ export declare abstract class VerticalGetter implements StyleGetter {
|
|
9
9
|
abstract marginGetter(parentRect: DOMRect, maxHeight: number): number;
|
10
10
|
heightStyleGetter(parentRect: DOMRect, maxHeight: number): Record<string, string>;
|
11
11
|
}
|
12
|
+
declare class BottomInner extends VerticalGetter {
|
13
|
+
isTop: boolean;
|
14
|
+
styleGetter(parentRect: DOMRect): {
|
15
|
+
top: string;
|
16
|
+
};
|
17
|
+
marginGetter(parentRect: DOMRect, maxHeight: number): number;
|
18
|
+
}
|
19
|
+
declare class VerticalCenter extends VerticalGetter {
|
20
|
+
isTop: boolean;
|
21
|
+
styleGetter(parentRect: DOMRect): {
|
22
|
+
top: string;
|
23
|
+
};
|
24
|
+
marginGetter(): number;
|
25
|
+
heightStyleGetter(): {
|
26
|
+
height: string;
|
27
|
+
};
|
28
|
+
}
|
29
|
+
declare class TopInner extends VerticalGetter {
|
30
|
+
isTop: boolean;
|
31
|
+
styleGetter(parentRect: DOMRect): {
|
32
|
+
bottom: string;
|
33
|
+
};
|
34
|
+
marginGetter(parentRect: DOMRect, maxHeight: number): number;
|
35
|
+
}
|
12
36
|
export declare abstract class HorizontalGetter implements StyleGetter {
|
13
37
|
abstract verticalGetterOrder: Array<VerticalGetter>;
|
14
38
|
abstract styleGetter(parentRect: DOMRect): Record<string, string>;
|
15
39
|
abstract marginGetter(parentRect: DOMRect, maxWidth: number): number;
|
16
40
|
widthStyleGetter(parentRect: DOMRect, maxWidth: number): Record<string, string>;
|
17
41
|
}
|
42
|
+
declare class LeftOuter extends HorizontalGetter {
|
43
|
+
verticalGetterOrder: (BottomInner | TopInner)[];
|
44
|
+
styleGetter(parentRect: DOMRect): {
|
45
|
+
right: string;
|
46
|
+
};
|
47
|
+
marginGetter(parentRect: DOMRect, maxWidth: number): number;
|
48
|
+
}
|
49
|
+
export declare class LeftCenter extends LeftOuter {
|
50
|
+
verticalGetterOrder: VerticalCenter[];
|
51
|
+
}
|
18
52
|
export declare const horizontalGetterOrderMap: Record<HorizontalAlign, HorizontalGetter[]>;
|
19
53
|
export declare function searchStyleGetter<T extends StyleGetter>(order: Array<T>, parentRect: DOMRect, maxHeightOrWidth: number): T;
|
20
54
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DropdownStyle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/utils/DropdownStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAIvD,UAAU,WAAW;IACnB,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxD,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAA;CACpE;AAED,8BAAsB,cAAe,YAAW,WAAW;IACzD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IAEvB,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAEjE,QAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAErE,iBAAiB,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAGlF;
|
1
|
+
{"version":3,"file":"DropdownStyle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/utils/DropdownStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAIvD,UAAU,WAAW;IACnB,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxD,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM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,SAAQ,gBAAgB;IACtC,mBAAmB,6BAAsC;IAEzD,WAAW,CAAC,UAAU,EAAE,OAAO;;;IAI/B,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM;CAGnD;AAED,qBAAa,UAAW,SAAQ,SAAS;IACvC,mBAAmB,mBAAyB;CAC7C;AAED,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,eAAe,EAAE,gBAAgB,EAAE,CAShF,CAAA;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAC,CAY1H"}
|
@@ -24,6 +24,20 @@ class BottomOuter extends VerticalGetter {
|
|
24
24
|
return window.innerHeight - parentRect.bottom - maxHeight - EDGE;
|
25
25
|
}
|
26
26
|
}
|
27
|
+
class VerticalCenter extends VerticalGetter {
|
28
|
+
isTop = false;
|
29
|
+
styleGetter(parentRect) {
|
30
|
+
return { top: parentRect.top + parentRect.height / 2 + "px" };
|
31
|
+
}
|
32
|
+
marginGetter() {
|
33
|
+
return 0;
|
34
|
+
}
|
35
|
+
heightStyleGetter() {
|
36
|
+
return {
|
37
|
+
height: "0px"
|
38
|
+
};
|
39
|
+
}
|
40
|
+
}
|
27
41
|
class TopOuter extends VerticalGetter {
|
28
42
|
isTop = true;
|
29
43
|
styleGetter(parentRect) {
|
@@ -65,6 +79,9 @@ class RightInner extends HorizontalGetter {
|
|
65
79
|
return document.documentElement.clientWidth - parentRect.left - maxWidth - EDGE;
|
66
80
|
}
|
67
81
|
}
|
82
|
+
class RightCenter extends RightOuter {
|
83
|
+
verticalGetterOrder = [new VerticalCenter()];
|
84
|
+
}
|
68
85
|
class Fill extends HorizontalGetter {
|
69
86
|
verticalGetterOrder = [new BottomOuter(), new TopOuter()];
|
70
87
|
styleGetter(parentRect) {
|
@@ -114,12 +131,17 @@ class LeftOuter extends HorizontalGetter {
|
|
114
131
|
return parentRect.left - maxWidth - EDGE;
|
115
132
|
}
|
116
133
|
}
|
134
|
+
class LeftCenter extends LeftOuter {
|
135
|
+
verticalGetterOrder = [new VerticalCenter()];
|
136
|
+
}
|
117
137
|
const horizontalGetterOrderMap = {
|
118
138
|
[HorizontalAlign.RIGHT_OUTER]: [new RightOuter(), new LeftOuter(), new RightInner(), new LeftInner()],
|
139
|
+
[HorizontalAlign.RIGHT_CENTER]: [new RightCenter(), new LeftCenter()],
|
119
140
|
[HorizontalAlign.RIGHT_INNER]: [new RightInner(), new LeftInner()],
|
120
141
|
[HorizontalAlign.FILL]: [new Fill()],
|
121
142
|
[HorizontalAlign.CENTER]: [new Center()],
|
122
143
|
[HorizontalAlign.LEFT_INNER]: [new LeftInner(), new RightInner()],
|
144
|
+
[HorizontalAlign.LEFT_CENTER]: [new LeftCenter(), new RightCenter()],
|
123
145
|
[HorizontalAlign.LEFT_OUTER]: [new LeftOuter(), new RightOuter(), new LeftInner(), new RightInner()]
|
124
146
|
};
|
125
147
|
function searchStyleGetter(order, parentRect, maxHeightOrWidth) {
|
@@ -136,4 +158,4 @@ function _maxHeightOrWidthGetter(getter, parentRect, maxHeightOrWidth) {
|
|
136
158
|
else return maxHeightOrWidth + margin;
|
137
159
|
}
|
138
160
|
|
139
|
-
export { HorizontalGetter, VerticalGetter, horizontalGetterOrderMap, searchStyleGetter };
|
161
|
+
export { HorizontalGetter, LeftCenter, VerticalGetter, horizontalGetterOrderMap, searchStyleGetter };
|
@@ -73,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
73
73
|
_ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("label", {
|
74
74
|
key: 0,
|
75
75
|
for: unref(id),
|
76
|
-
class: normalizeClass(["text-accent relative block pr-6 text-xs font-semibold leading-loose
|
76
|
+
class: normalizeClass(["text-accent relative block pr-6 text-xs font-semibold leading-loose", {
|
77
77
|
"cursor-not-allowed opacity-50": _ctx.disabled && !_ctx.readonly && !_ctx.skeleton,
|
78
78
|
"col-start-1": _ctx.subgrid
|
79
79
|
}])
|
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
18
|
key: 1,
|
19
19
|
class: normalizeClass(["w-ripple w-ripple-hover rounded p-0.5", {
|
20
20
|
"text-description": _ctx.$route.query[_ctx.filterField] !== _ctx.encodedQueryParam,
|
21
|
-
"bg-primary
|
21
|
+
"bg-primary dark:bg-primary-dark text-default dark:text-default-dark": _ctx.$route.query[_ctx.filterField] === _ctx.encodedQueryParam
|
22
22
|
}]),
|
23
23
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$router.replace({ query: { ..._ctx.$route.query, [_ctx.filterField]: _ctx.$route.query[_ctx.filterField] === _ctx.encodedQueryParam ? void 0 : _ctx.encodedQueryParam } }))
|
24
24
|
}, [
|
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
48
|
"opacity-50": !_ctx.isActive,
|
49
49
|
"opacity-100": _ctx.isActive,
|
50
50
|
"text-negative dark:text-negative-dark": _ctx.hasError,
|
51
|
-
"text-primary
|
51
|
+
"text-primary dark:text-primary-dark": !_ctx.hasError
|
52
52
|
}),
|
53
53
|
width: _ctx.svgWidth,
|
54
54
|
height: _ctx.svgHeight
|
@@ -6,6 +6,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "WFormAsyncToggle",
|
7
7
|
props: {
|
8
8
|
title: {},
|
9
|
+
icon: {},
|
9
10
|
small: { type: Boolean },
|
10
11
|
disabled: { type: Boolean },
|
11
12
|
loading: { type: Boolean },
|
@@ -16,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
17
|
intermediate: { type: Boolean },
|
17
18
|
negate: { type: Boolean },
|
18
19
|
validate: {},
|
20
|
+
center: { type: Boolean },
|
19
21
|
useQueryFn: {},
|
20
22
|
noParams: { type: Boolean },
|
21
23
|
queryParams: {},
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
},
|
14
14
|
setup(__props) {
|
15
15
|
const stylesMap = {
|
16
|
-
[SemanticType.PRIMARY]: "text-primary
|
16
|
+
[SemanticType.PRIMARY]: "text-primary dark:text-primary-dark",
|
17
17
|
[SemanticType.SECONDARY]: "text-description",
|
18
18
|
[SemanticType.NEGARIVE]: "text-negative dark:text-negative-dark",
|
19
19
|
[SemanticType.POSITIVE]: "text-positive dark:text-positive-dark",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SemanticType } from '../../../utils/SemanticType.js';
|
2
2
|
|
3
3
|
const infoCardSemanticTypeMap = {
|
4
|
-
[SemanticType.PRIMARY]: "bg-primary
|
4
|
+
[SemanticType.PRIMARY]: "bg-primary/10 dark:bg-primary-dark/10",
|
5
5
|
[SemanticType.SECONDARY]: "bg-gray-100 dark:bg-gray-800",
|
6
6
|
[SemanticType.POSITIVE]: "bg-positive/10 dark:bg-positive-dark/10",
|
7
7
|
[SemanticType.NEGARIVE]: "bg-negative/10 dark:bg-negative-dark/10",
|
@@ -9,7 +9,7 @@ const infoCardSemanticTypeMap = {
|
|
9
9
|
[SemanticType.INFO]: "bg-info/10 dark:bg-info-dark/10"
|
10
10
|
};
|
11
11
|
const infoCardIconSemanticTypeMap = {
|
12
|
-
[SemanticType.PRIMARY]: "text-primary
|
12
|
+
[SemanticType.PRIMARY]: "text-primary dark:text-primary-dark",
|
13
13
|
[SemanticType.SECONDARY]: "text-description",
|
14
14
|
[SemanticType.POSITIVE]: "text-positive dark:text-positive-dark",
|
15
15
|
[SemanticType.NEGARIVE]: "text-negative dark:text-negative-dark",
|
@@ -214,7 +214,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
214
214
|
fn: withCtx(({ id, setFocused, focused }) => [
|
215
215
|
createElementVNode("div", {
|
216
216
|
class: normalizeClass(["bg-default dark:bg-default-dark relative grid min-h-[--w-input-height,2.75rem] grid-cols-[auto,1fr,auto] overflow-hidden rounded-[--w-input-rounded,0.75rem] border border-solid transition-colors duration-75", {
|
217
|
-
"focus-within:border-primary
|
217
|
+
"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,
|
218
218
|
"cursor-text": !_ctx.disabled,
|
219
219
|
"border-negative dark:border-negative-dark": _ctx.errorMessage,
|
220
220
|
"border-gray-300 dark:border-gray-700": !_ctx.disabled,
|
@@ -228,7 +228,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
228
228
|
key: 0,
|
229
229
|
class: normalizeClass(["flex h-full w-[--w-input-height,2.75rem] select-none items-center justify-center", {
|
230
230
|
"text-description": !focused,
|
231
|
-
"text-primary
|
231
|
+
"text-primary dark:text-primary-dark": focused
|
232
232
|
}])
|
233
233
|
}, [
|
234
234
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-[1.125em]" }))
|
@@ -226,7 +226,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
226
226
|
skeleton: _ctx.skeleton,
|
227
227
|
disabled: _ctx.disabled,
|
228
228
|
class: normalizeClass({
|
229
|
-
"bg-primary
|
229
|
+
"bg-primary dark:bg-primary-dark text-default dark:text-default-dark": canSave.value
|
230
230
|
}),
|
231
231
|
onClick: toggle
|
232
232
|
}, null, 8, ["icon", "tooltip-text", "loading", "skeleton", "disabled", "class"])) : createCommentVNode("", true)
|
@@ -257,7 +257,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
257
257
|
default: withCtx(() => [
|
258
258
|
timeout.value ? (openBlock(), createElementBlock("div", {
|
259
259
|
key: timeout.value.toString(),
|
260
|
-
class: "bg-primary
|
260
|
+
class: "bg-primary dark:bg-primary-dark relative h-full rounded-sm",
|
261
261
|
style: normalizeStyle({ "--debounce-duration": _ctx.debounce + "ms" })
|
262
262
|
}, null, 4)) : createCommentVNode("", true)
|
263
263
|
]),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Link/WLink.vue"],"names":[],"mappings":"AAcA;
|
1
|
+
{"version":3,"file":"WLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Link/WLink.vue"],"names":[],"mappings":"AAcA;AAiDA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAM5C,OAAO,EAAC,YAAY,EAAiD,MAAM,sBAAsB,CAAA;AAEjG,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB;AA4BD,iBAAS,cAAc;WAgDT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UAlGZ,MAAM;eAXf,YA/C8B;UA4DrB,YAAY;kBADJ,YAAY;YAFlB,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM;UADzC,MAAM;6EA4Gb,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"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot, normalizeClass, createTextVNode, toDisplayString } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
import IconLink from '../../assets/icons/sax/IconLink.svg.js';
|
4
|
-
import {
|
5
|
-
import { SemanticType } from '../../utils/SemanticType.js';
|
4
|
+
import { SemanticType, useSemanticTypeTextMap, useSemanticTypeChipMap } from '../../utils/SemanticType.js';
|
6
5
|
|
7
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
8
7
|
__name: "WLink",
|
@@ -15,13 +14,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
14
|
to: { default: void 0 }
|
16
15
|
},
|
17
16
|
setup(__props) {
|
17
|
+
const semanticTypeChipMap = useSemanticTypeChipMap();
|
18
|
+
const semanticTypeTextMap = useSemanticTypeTextMap();
|
18
19
|
return (_ctx, _cache) => {
|
19
20
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? unref(RouterLink) : "a"), mergeProps(!_ctx.to ? { target: _ctx.target, href: _ctx.href } : { to: _ctx.to }, {
|
20
|
-
class: ["cursor-pointer overflow-hidden truncate whitespace-normal font-normal no-underline hover:underline", unref(
|
21
|
+
class: ["cursor-pointer overflow-hidden truncate whitespace-normal font-normal no-underline hover:underline", unref(semanticTypeTextMap)[_ctx.semanticType]]
|
21
22
|
}), {
|
22
23
|
default: withCtx(() => [
|
23
24
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ?? unref(IconLink)), {
|
24
|
-
class: normalizeClass(["square-[1.25em] mr-[0.25em] mt-[-0.25em] inline rounded-[0.5em] p-px", unref(
|
25
|
+
class: normalizeClass(["square-[1.25em] mr-[0.25em] mt-[-0.25em] inline rounded-[0.5em] p-px", unref(semanticTypeChipMap)[_ctx.semanticType]])
|
25
26
|
}, null, 8, ["class"])),
|
26
27
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
27
28
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
return (_ctx, _cache) => {
|
13
13
|
return openBlock(), createBlock(unref(RouterLink), {
|
14
14
|
to: _ctx.to,
|
15
|
-
class: "text-description hover:text-primary
|
15
|
+
class: "text-description hover:text-primary dark:hover:text-primary-dark flex cursor-pointer select-none items-center gap-2 self-end py-2 font-normal no-underline"
|
16
16
|
}, {
|
17
17
|
default: withCtx(() => [
|
18
18
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
@@ -36,7 +36,7 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
|
|
36
36
|
groupBy?: (a: Data, b: Data) => boolean;
|
37
37
|
cardColumns: CardColumns;
|
38
38
|
cardAreas: CardAreas<Fields, CardColumns["length"]>;
|
39
|
-
cardTo?: (item: Data) => LinkProps["to"];
|
39
|
+
cardTo?: (item: Data) => LinkProps["to"] | undefined;
|
40
40
|
} & Partial<{}>> & import('vue').PublicProps;
|
41
41
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
42
42
|
attrs: any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WList.vue"],"names":[],"mappings":"AAqPA;AAqYA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AACzH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAWzC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAWrB,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,WAAW,SAAS,SAAS,OAAO,EAAE,EAC3I,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAA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OAAO;sBACJ,OAAO;mBACV,OAAO;qBACL,OAAO;yBACH,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,GAAG,SAAS;kBACzC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO;qBAC1B,WAAW;mBACb,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;iBAC1C,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS;mBAisBwC,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;YAjEiB,GAAG;2BACC,GAAG;;;;;YACP,GAAG;;cA/nBzB,cAAc,SAAS,QAAQ,KAAG,IAAI;EAksBxC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAzuBzE,wBAyuB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -11,19 +11,19 @@ import { AREA_SELECT, AREA_MORE } from './types.js';
|
|
11
11
|
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
14
|
-
class: "bg-primary
|
14
|
+
class: "bg-primary dark:bg-primary-dark @sm:hidden absolute left-0 top-0 h-full w-2"
|
15
15
|
};
|
16
16
|
const _hoisted_2 = {
|
17
17
|
key: 1,
|
18
|
-
class: "bg-primary
|
18
|
+
class: "bg-primary/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
19
19
|
};
|
20
20
|
const _hoisted_3 = {
|
21
21
|
key: 2,
|
22
|
-
class: "bg-primary
|
22
|
+
class: "bg-primary/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
23
23
|
};
|
24
24
|
const _hoisted_4 = {
|
25
25
|
key: 1,
|
26
|
-
class: "bg-primary
|
26
|
+
class: "bg-primary/10 dark:bg-primary-dark/10 rounded-inherit pointer-events-none absolute inset-0"
|
27
27
|
};
|
28
28
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
29
29
|
__name: "WListCard",
|
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
87
87
|
class: normalizeClass(["h-full rounded-l-[--w-list-rounded,unset]", {
|
88
88
|
"border border-r-0": _ctx.hasBorder,
|
89
89
|
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
90
|
-
"border-primary
|
90
|
+
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
91
91
|
"rounded-bl-[unset!important]": isOpen.value,
|
92
92
|
"border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
|
93
93
|
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": isActionShown.value,
|
@@ -115,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
115
115
|
"grid grid-cols-[--w-list-grid-cols] [grid-template-areas:--w-list-grid-areas] sm:rounded-[--w-list-rounded,unset]": _ctx.card,
|
116
116
|
"sm:border-y": _ctx.hasBorder,
|
117
117
|
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
118
|
-
"border-primary
|
118
|
+
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
119
119
|
"sm:border": _ctx.card && _ctx.hasBorder,
|
120
120
|
"border-b-transparent dark:border-b-transparent": !_ctx.card && _ctx.hasBorder && isOpen.value
|
121
121
|
}]
|
@@ -169,7 +169,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
169
169
|
class: normalizeClass(["h-full rounded-r-[--w-list-rounded,unset]", {
|
170
170
|
"rounded-tr-[--w-list-rounded,unset] border border-l-0": _ctx.hasBorder,
|
171
171
|
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
172
|
-
"border-primary
|
172
|
+
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
173
173
|
"rounded-br-[unset!important]": isOpen.value,
|
174
174
|
"border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
|
175
175
|
"w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": isActionShown.value
|
@@ -197,7 +197,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
197
197
|
key: 0,
|
198
198
|
class: normalizeClass(["sm:w-inner sm:left-inner col-span-full sm:sticky", {
|
199
199
|
"border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
|
200
|
-
"border-primary
|
200
|
+
"border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
|
201
201
|
"mt-[calc(var(--w-list-gap,1rem)*-1)] border border-t-0 px-5": !_ctx.card && _ctx.hasBorder,
|
202
202
|
"rounded-b-[--w-list-rounded,unset]": !_ctx.card
|
203
203
|
}])
|
@@ -10,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
return (_ctx, _cache) => {
|
11
11
|
return openBlock(), createElementBlock("button", {
|
12
12
|
class: normalizeClass(["w-ripple w-ripple-hover relative flex justify-center rounded-2xl p-4", {
|
13
|
-
"text-primary
|
13
|
+
"text-primary dark:text-primary-dark bg-primary/10 dark:bg-primary-dark/10": _ctx.active,
|
14
14
|
"text-description": !_ctx.active
|
15
15
|
}])
|
16
16
|
}, [
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
return (_ctx, _cache) => {
|
14
14
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to && !_ctx.disabled ? unref(RouterLink) : _ctx.href ? "a" : "button"), mergeProps(_ctx.to && !_ctx.disabled ? { to: _ctx.to } : _ctx.href ? { href: _ctx.href, download: _ctx.download } : void 0, {
|
15
15
|
class: ["text-description relative flex w-full min-w-36 select-none items-center justify-start gap-4 px-6 py-2 text-start outline-none first:pt-4 last:pb-4", {
|
16
|
-
"w-ripple w-ripple-hover hover:text-primary
|
16
|
+
"w-ripple w-ripple-hover hover:text-primary dark:hover:text-primary-dark cursor-pointer": !_ctx.disabled,
|
17
17
|
"cursor-not-allowed opacity-50": _ctx.disabled
|
18
18
|
}],
|
19
19
|
disabled: _ctx.disabled
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/WModal.vue"],"names":[],"mappings":"AAyCA;;
|
1
|
+
{"version":3,"file":"WModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/WModal.vue"],"names":[],"mappings":"AAyCA;;AA8XA,wBAMG"}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { defineComponent, ref, reactive, watch, onBeforeMount, onBeforeUnmount, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, TransitionGroup, Fragment, renderList, createElementVNode, createBlock, withModifiers, resolveDynamicComponent, mergeProps } from 'vue';
|
1
|
+
import { defineComponent, ref, reactive, watch, onBeforeMount, onBeforeUnmount, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, unref, normalizeStyle, TransitionGroup, Fragment, renderList, createElementVNode, createBlock, withModifiers, resolveDynamicComponent, mergeProps } from 'vue';
|
2
2
|
import { Modal, initModal } from '../../utils/Modal.js';
|
3
3
|
import { SemanticType } from '../../utils/SemanticType.js';
|
4
4
|
import _sfc_main$1 from './components/ModalCloseButton.vue.js';
|
5
|
+
import { useIsBackdrop } from './use/useIsBackdrop.js';
|
5
6
|
|
6
7
|
const _hoisted_1 = { class: "z-[1000]" };
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -9,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
setup(__props) {
|
10
11
|
const key = ref(0);
|
11
12
|
const modalMetaList = ref([]);
|
12
|
-
const
|
13
|
+
const isBackdrop = useIsBackdrop();
|
13
14
|
const hasChangesMap = reactive({});
|
14
15
|
const addModal = (component, props, cb, autoclose = false) => {
|
15
16
|
const modalMeta = {
|
@@ -55,11 +56,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
56
|
watch(modalMetaList, (value) => {
|
56
57
|
if (timeout) clearTimeout(timeout);
|
57
58
|
if (value.length) {
|
58
|
-
|
59
|
+
isBackdrop.value = true;
|
59
60
|
} else {
|
60
61
|
timeout = setTimeout(() => {
|
61
62
|
timeout = void 0;
|
62
|
-
|
63
|
+
isBackdrop.value = false;
|
63
64
|
}, 100);
|
64
65
|
}
|
65
66
|
});
|
@@ -78,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
78
79
|
"leave-to-class": "opacity-0"
|
79
80
|
}, {
|
80
81
|
default: withCtx(() => [
|
81
|
-
|
82
|
+
unref(isBackdrop) ? (openBlock(), createElementBlock("div", {
|
82
83
|
key: 0,
|
83
84
|
style: normalizeStyle({ zIndex: 100 + modalMetaList.value.length + modalMetaList.value.length - 1 }),
|
84
85
|
class: "bg-primary-light dark:bg-primary-darkest fixed left-0 top-0 size-full bg-opacity-40 backdrop-blur dark:bg-opacity-40"
|
@@ -104,7 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
104
104
|
createElementVNode("div", _hoisted_1, [
|
105
105
|
createVNode(_sfc_main$2, {
|
106
106
|
"model-value": progress.value * 100,
|
107
|
-
class: "bg-primary
|
107
|
+
class: "bg-primary dark:bg-primary-dark"
|
108
108
|
}, null, 8, ["model-value"]),
|
109
109
|
createElementVNode("div", _hoisted_2, toDisplayString(page.value) + " / " + toDisplayString(pagesCount.value), 1)
|
110
110
|
])
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
83
83
|
createElementVNode("div", _hoisted_1, [
|
84
84
|
createVNode(_sfc_main$2, {
|
85
85
|
"model-value": progress.value,
|
86
|
-
class: "bg-primary
|
86
|
+
class: "bg-primary dark:bg-primary-dark"
|
87
87
|
}, null, 8, ["model-value"]),
|
88
88
|
createElementVNode("div", _hoisted_2, toDisplayString(itemIndex.value) + " / " + toDisplayString(_ctx.items.length), 1)
|
89
89
|
])
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useIsBackdrop.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/use/useIsBackdrop.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,2CAEzB,CAAA"}
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
52
|
])
|
53
53
|
], 2),
|
54
54
|
createElementVNode("div", {
|
55
|
-
class: normalizeClass(["-square--header-height w-ripple fixed left-0 top-0 z-30 flex cursor-pointer items-center justify-center xl:hidden print:hidden", { "text-primary
|
55
|
+
class: normalizeClass(["-square--header-height w-ripple fixed left-0 top-0 z-30 flex cursor-pointer items-center justify-center xl:hidden print:hidden", { "text-primary": isOpen.value }]),
|
56
56
|
onClick: withModifiers(toggle, ["stop"])
|
57
57
|
}, [
|
58
58
|
createVNode(unref(IconMenu))
|