savor-ui 0.4.0 → 0.4.1
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/CHANGELOG.md +11 -0
- package/dist/es/components/src/table/table.vue_vue_type_script_setup_true_vapor_true_lang.mjs +63 -61
- package/dist/es/components/src/transition/transition-height.vue_vue_type_script_setup_true_vapor_true_lang.mjs +1 -1
- package/dist/es/components/src/transition/transition-opacity.d.ts +3 -0
- package/dist/es/components/src/transition/transition-opacity.vue_vue_type_script_setup_true_vapor_true_lang.mjs +8 -1
- package/dist/es/components/src/transition/transition-scale.d.ts +3 -0
- package/dist/es/components/src/transition/transition-scale.vue_vue_type_script_setup_true_vapor_true_lang.mjs +8 -1
- package/dist/es/components/src/transition/transition-side.d.ts +2 -0
- package/dist/es/components/src/transition/transition-side.vue_vue_type_script_setup_true_vapor_true_lang.mjs +21 -5
- package/dist/es/components/src/transition/transition-width.vue_vue_type_script_setup_true_vapor_true_lang.mjs +1 -1
- package/dist/es/components/src/transition/transition.vue_vue_type_script_setup_true_vapor_true_lang.mjs +28 -7
- package/dist/es/theme/components/input-number.scss +2 -2
- package/dist/es/theme/components/input-tag.scss +2 -2
- package/dist/es/theme/components/input.scss +7 -6
- package/dist/es/theme/components/table.scss +15 -3
- package/dist/es/theme/components/textarea.scss +4 -1
- package/dist/json/web-types.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## [0.4.1](https://gitee.com/mach552/savor-ui/compare/v0.4.0...v0.4.1) (2026-06-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **input:** 调整一些样式问题 ([be7305f](https://gitee.com/mach552/savor-ui/commits/be7305ffc837a94f32bd8e971a0cf89e68d63cea))
|
|
11
|
+
* **table:** 修复空状态下整体滚动问题 ([df4c6c8](https://gitee.com/mach552/savor-ui/commits/df4c6c8cc409ee6d9d7159dd523f0ea385ff2f06))
|
|
12
|
+
* **table:** 修复宽高属性无效问题 ([834917b](https://gitee.com/mach552/savor-ui/commits/834917bb908eaf70b1293afdae0cb4779520e4c6))
|
|
13
|
+
* **table:** 修复fixed列没有选中样式问题 ([7cd3def](https://gitee.com/mach552/savor-ui/commits/7cd3defe6eeb77426e8d59e8796b25e73ecc40f1))
|
|
14
|
+
* **transition:** 修复传递无效属性问题 ([b06508c](https://gitee.com/mach552/savor-ui/commits/b06508c06085d183d1e515cf4365a4406e6045bf))
|
|
15
|
+
|
|
5
16
|
# [0.4.0](https://gitee.com/mach552/savor-ui/compare/v0.3.3...v0.4.0) (2026-06-17)
|
|
6
17
|
|
|
7
18
|
|
package/dist/es/components/src/table/table.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -8,9 +8,9 @@ import o from "./col-group.vue.mjs";
|
|
|
8
8
|
import { tableContextKey as s } from "./types.mjs";
|
|
9
9
|
import c from "./table-body.vue.mjs";
|
|
10
10
|
import l from "./table-header.vue.mjs";
|
|
11
|
-
import { computed as u, createComponent as d, createForSlots as f, createIf as p, createSlot as m, defineVaporComponent as h, mergeModels as g, provide as _, ref as v, renderEffect as y, setClass as b, setInsertionState as x, setStyle as S, template as C, unref as w, useModel as T, watch as
|
|
11
|
+
import { computed as u, createComponent as d, createForSlots as f, createIf as p, createSlot as m, defineVaporComponent as h, mergeModels as g, provide as _, ref as v, renderEffect as y, setClass as b, setInsertionState as x, setStyle as S, template as C, unref as w, useModel as T, watch as E } from "vue";
|
|
12
12
|
//#region ../components/src/table/table.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var D = C("<table table-layout=fixed></table>"), ee = C("<div>"), O = C("<div>", 1), k = /*@__PURE__*/ h({
|
|
14
14
|
name: "STable",
|
|
15
15
|
__name: "table",
|
|
16
16
|
props: /*@__PURE__*/ g({
|
|
@@ -18,7 +18,7 @@ var te = C("<table table-layout=fixed></table>"), E = C("<div>"), D = C("<div>",
|
|
|
18
18
|
columns: { default: () => [] },
|
|
19
19
|
height: {},
|
|
20
20
|
maxHeight: {},
|
|
21
|
-
width: {},
|
|
21
|
+
width: { default: "100%" },
|
|
22
22
|
border: {},
|
|
23
23
|
stripe: { type: Boolean },
|
|
24
24
|
size: { default: "medium" },
|
|
@@ -39,36 +39,36 @@ var te = C("<table table-layout=fixed></table>"), E = C("<div>"), D = C("<div>",
|
|
|
39
39
|
"checkAll",
|
|
40
40
|
"expandedRow"
|
|
41
41
|
], ["update:checked", "update:selected"]),
|
|
42
|
-
setup(h, { expose: g, emit: C, slots:
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
},
|
|
42
|
+
setup(h, { expose: g, emit: C, slots: k }) {
|
|
43
|
+
let A = h, j = C, M = r("table"), N = T(h, "checked"), P = T(h, "selected"), te = (e, t, n) => {
|
|
44
|
+
N.value = n, j("checkRow", e, t, n);
|
|
45
|
+
}, ne = (e, t) => {
|
|
46
|
+
P.value = e, j("selectRow", e, t);
|
|
47
|
+
}, re = (e) => {
|
|
48
|
+
N.value = [...e], j("checkAll", e);
|
|
49
|
+
}, ie = u(() => {
|
|
50
50
|
let e = [];
|
|
51
|
-
if (!
|
|
52
|
-
for (let t of
|
|
51
|
+
if (!A.border || A.border.length === 0) return e;
|
|
52
|
+
for (let t of A.border) e.push(M.m(`border-${t}`));
|
|
53
53
|
return e;
|
|
54
|
-
}),
|
|
54
|
+
}), F = v(0), I = v(!0), L = v(!1), R = 0, z = () => `col_${R++}`, B = (e) => ({
|
|
55
55
|
...e,
|
|
56
|
-
id:
|
|
56
|
+
id: z(),
|
|
57
57
|
fixedOffset: void 0,
|
|
58
58
|
colSpan: 1,
|
|
59
59
|
rowSpan: 1,
|
|
60
60
|
isColumnGroup: !1,
|
|
61
61
|
level: 1,
|
|
62
62
|
field: e.field ?? "",
|
|
63
|
-
children: e.children ? e.children.map(
|
|
64
|
-
}),
|
|
63
|
+
children: e.children ? e.children.map(B) : void 0
|
|
64
|
+
}), V = u(() => A.columns.map(B)), H = u(() => {
|
|
65
65
|
let e = [], t = (n) => {
|
|
66
66
|
n.forEach((n) => {
|
|
67
67
|
n.children && n.children.length ? t(n.children) : e.push(n);
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
|
-
return t(
|
|
71
|
-
}),
|
|
70
|
+
return t(V.value), U(e), e;
|
|
71
|
+
}), U = (e) => {
|
|
72
72
|
let n = 0;
|
|
73
73
|
e.forEach((e) => {
|
|
74
74
|
if (e.fixed === "left") {
|
|
@@ -86,7 +86,7 @@ var te = C("<table table-layout=fixed></table>"), E = C("<div>"), D = C("<div>",
|
|
|
86
86
|
r += e;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
},
|
|
89
|
+
}, W = (e) => {
|
|
90
90
|
let t = 1, n = (e, r) => {
|
|
91
91
|
if (r && (e.level = r.level + 1, t < e.level && (t = e.level)), e.children && e.children.length) {
|
|
92
92
|
let t = 0;
|
|
@@ -108,18 +108,15 @@ var te = C("<table table-layout=fixed></table>"), E = C("<div>"), D = C("<div>",
|
|
|
108
108
|
return a(e), i.forEach((e) => {
|
|
109
109
|
!e.children || !e.children.length ? e.rowSpan = t - e.level + 1 : e.rowSpan = 1, r[e.level - 1].push(e);
|
|
110
110
|
}), r;
|
|
111
|
-
},
|
|
111
|
+
}, G = u(() => W(V.value)), K = u(() => {
|
|
112
112
|
let t = {};
|
|
113
|
-
return
|
|
114
|
-
}), K = u(() => {
|
|
115
|
-
let t = {};
|
|
116
|
-
return k.height && (t.height = e(k.height), t.overflowY = "auto"), k.maxHeight && (t.maxHeight = e(k.maxHeight), t.overflowY = "auto"), t;
|
|
113
|
+
return A.width && (t.width = e(A.width)), A.data.length === 0 && (t.position = "sticky", t.top = "0"), t;
|
|
117
114
|
}), q = (e) => {
|
|
118
115
|
let t = e.target;
|
|
119
|
-
|
|
116
|
+
I.value = t.scrollLeft === 0, L.value = t.scrollLeft + t.clientWidth >= t.scrollWidth - 1;
|
|
120
117
|
}, J = v({}), Y = v([]), X = (e) => e.map((e) => {
|
|
121
118
|
let t = { ...e };
|
|
122
|
-
t._id || (
|
|
119
|
+
t._id || (A.rowKey && t[A.rowKey] !== void 0 ? t._id = String(t[A.rowKey]) : t.id === void 0 ? t._id = n(8) : t._id = String(t.id));
|
|
123
120
|
let r = t.children;
|
|
124
121
|
return Array.isArray(r) && r.length > 0 && (t.children = X(r)), t;
|
|
125
122
|
}), Z = (e, t = 0, n = !0) => {
|
|
@@ -134,68 +131,73 @@ var te = C("<table table-layout=fixed></table>"), E = C("<div>"), D = C("<div>",
|
|
|
134
131
|
};
|
|
135
132
|
n && r.push(c), o && r.push(...Z(a, t + 1, n && s));
|
|
136
133
|
}), r;
|
|
137
|
-
}, Q = u(() => Z(Y.value)),
|
|
138
|
-
J.value[e._id] = !J.value[e._id],
|
|
134
|
+
}, Q = u(() => Z(Y.value)), ae = (e, t) => {
|
|
135
|
+
J.value[e._id] = !J.value[e._id], j("expandedRow", e, t, Y.value.filter((e) => J.value[e._id]));
|
|
139
136
|
};
|
|
140
|
-
|
|
137
|
+
E(() => A.data, (e) => {
|
|
141
138
|
Y.value = X(e);
|
|
142
139
|
}, {
|
|
143
140
|
deep: !0,
|
|
144
141
|
immediate: !0
|
|
145
142
|
}), _(s, {
|
|
146
|
-
props:
|
|
147
|
-
originColumns:
|
|
148
|
-
flatColumns:
|
|
149
|
-
columnRows:
|
|
150
|
-
isScrollAtLeft:
|
|
151
|
-
isScrollAtRight:
|
|
152
|
-
headerHeight:
|
|
153
|
-
checked:
|
|
154
|
-
selected:
|
|
143
|
+
props: A,
|
|
144
|
+
originColumns: V,
|
|
145
|
+
flatColumns: H,
|
|
146
|
+
columnRows: G,
|
|
147
|
+
isScrollAtLeft: I,
|
|
148
|
+
isScrollAtRight: L,
|
|
149
|
+
headerHeight: F,
|
|
150
|
+
checked: N,
|
|
151
|
+
selected: P
|
|
155
152
|
}), g({
|
|
156
153
|
clearSelect: () => {
|
|
157
|
-
|
|
154
|
+
N.value = [], P.value = {};
|
|
158
155
|
},
|
|
159
156
|
selectAll: () => {
|
|
160
|
-
|
|
157
|
+
N.value = [...Q.value];
|
|
161
158
|
}
|
|
162
159
|
});
|
|
163
|
-
let $ =
|
|
160
|
+
let $ = O();
|
|
164
161
|
return y(() => {
|
|
165
|
-
let
|
|
162
|
+
let t = w(M), n = w(e);
|
|
166
163
|
b($, [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
...
|
|
170
|
-
])
|
|
164
|
+
t.b(),
|
|
165
|
+
t.m(h.size),
|
|
166
|
+
...ie.value
|
|
167
|
+
]), S($, {
|
|
168
|
+
height: n(h.height),
|
|
169
|
+
width: n(h.width),
|
|
170
|
+
maxHeight: n(h.maxHeight)
|
|
171
|
+
});
|
|
171
172
|
}), x($, null, 0), d(w(i), {
|
|
172
|
-
height: () =>
|
|
173
|
-
|
|
174
|
-
"
|
|
173
|
+
height: () => h.height ? "100%" : "",
|
|
174
|
+
width: () => h.width ? "100%" : "",
|
|
175
|
+
"max-height": () => h.maxHeight ? w(e)(h.maxHeight) : "",
|
|
176
|
+
"offset-top": () => F.value,
|
|
175
177
|
always: () => h.scrollAlways,
|
|
176
178
|
native: () => h.nativeScrollbar,
|
|
177
179
|
onScroll: () => q
|
|
178
180
|
}, () => {
|
|
179
|
-
let e =
|
|
181
|
+
let e = D();
|
|
180
182
|
return y(() => {
|
|
181
|
-
b(e, [w(
|
|
182
|
-
}), x(e, null, 0), d(o, { columns: () =>
|
|
183
|
+
b(e, [w(M).e("inner")]), S(e, K.value);
|
|
184
|
+
}), x(e, null, 0), d(o, { columns: () => H.value }), x(e, null, 1), d(l, {
|
|
183
185
|
data: () => Q.value,
|
|
184
|
-
onCheckAll: () =>
|
|
186
|
+
onCheckAll: () => re
|
|
185
187
|
}), x(e, null, 2), d(c, {
|
|
186
188
|
data: () => Q.value,
|
|
187
|
-
onCheckRow: () =>
|
|
188
|
-
onSelectRow: () =>
|
|
189
|
-
onExpandedRow: () =>
|
|
190
|
-
}, { $: [() => f(
|
|
189
|
+
onCheckRow: () => te,
|
|
190
|
+
onSelectRow: () => ne,
|
|
191
|
+
onExpandedRow: () => ae
|
|
192
|
+
}, { $: [() => f(k, (e, t) => ({
|
|
191
193
|
name: t,
|
|
192
194
|
fn: (e) => m(() => t, { $: [() => e] }, null, 4)
|
|
193
195
|
}))] }), [e, p(() => !h.data.length, () => {
|
|
194
|
-
let e =
|
|
195
|
-
return y(() => b(e, [w(
|
|
196
|
+
let e = ee();
|
|
197
|
+
return y(() => b(e, [w(M).e("empty")])), x(e, null, 0), m("empty", null, () => d(w(a))), e;
|
|
196
198
|
}, null, 129)];
|
|
197
199
|
}), $;
|
|
198
200
|
}
|
|
199
201
|
});
|
|
200
202
|
//#endregion
|
|
201
|
-
export {
|
|
203
|
+
export { k as default };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { PublicProps, VNode } from 'vue';
|
|
2
2
|
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
appear?: boolean;
|
|
5
|
+
mode?: "in-out" | "out-in" | "default";
|
|
6
|
+
} & {
|
|
4
7
|
onAfterLeave?: ((el: HTMLElement) => any) | undefined;
|
|
5
8
|
onBeforeEnter?: ((el: HTMLElement) => any) | undefined;
|
|
6
9
|
onEnter?: ((el: HTMLElement) => any) | undefined;
|
|
@@ -2,6 +2,10 @@ import { VaporTransition as e, createComponent as t, createSlot as n, defineVapo
|
|
|
2
2
|
//#region ../components/src/transition/transition-opacity.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
3
3
|
var a = /*@__PURE__*/ r({
|
|
4
4
|
__name: "transition-opacity",
|
|
5
|
+
props: {
|
|
6
|
+
appear: { type: Boolean },
|
|
7
|
+
mode: { default: "in-out" }
|
|
8
|
+
},
|
|
5
9
|
emits: [
|
|
6
10
|
"beforeEnter",
|
|
7
11
|
"enter",
|
|
@@ -29,7 +33,10 @@ var a = /*@__PURE__*/ r({
|
|
|
29
33
|
};
|
|
30
34
|
return t(e, {
|
|
31
35
|
name: "opacity-fade",
|
|
32
|
-
$: [() => i(s)
|
|
36
|
+
$: [() => i(s), {
|
|
37
|
+
mode: () => r.mode,
|
|
38
|
+
appear: () => r.appear
|
|
39
|
+
}]
|
|
33
40
|
}, () => n("default", null, null, 4), !0);
|
|
34
41
|
}
|
|
35
42
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { PublicProps, VNode } from 'vue';
|
|
2
2
|
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
appear?: boolean;
|
|
5
|
+
mode?: "in-out" | "out-in" | "default";
|
|
6
|
+
} & {
|
|
4
7
|
onAfterLeave?: ((el: HTMLElement) => any) | undefined;
|
|
5
8
|
onBeforeEnter?: ((el: HTMLElement) => any) | undefined;
|
|
6
9
|
onEnter?: ((el: HTMLElement) => any) | undefined;
|
|
@@ -2,6 +2,10 @@ import { VaporTransition as e, createComponent as t, createSlot as n, defineVapo
|
|
|
2
2
|
//#region ../components/src/transition/transition-scale.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
3
3
|
var a = /*@__PURE__*/ r({
|
|
4
4
|
__name: "transition-scale",
|
|
5
|
+
props: {
|
|
6
|
+
appear: { type: Boolean },
|
|
7
|
+
mode: { default: "in-out" }
|
|
8
|
+
},
|
|
5
9
|
emits: [
|
|
6
10
|
"beforeEnter",
|
|
7
11
|
"enter",
|
|
@@ -33,7 +37,10 @@ var a = /*@__PURE__*/ r({
|
|
|
33
37
|
};
|
|
34
38
|
return t(e, {
|
|
35
39
|
name: "scale-fade",
|
|
36
|
-
$: [() => i(s)
|
|
40
|
+
$: [() => i(s), {
|
|
41
|
+
mode: () => r.mode,
|
|
42
|
+
appear: () => r.appear
|
|
43
|
+
}]
|
|
37
44
|
}, () => n("default", null, null, 4), !0);
|
|
38
45
|
}
|
|
39
46
|
});
|
|
@@ -2,6 +2,8 @@ import { PublicProps, VNode } from 'vue';
|
|
|
2
2
|
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: PublicProps & __VLS_PrettifyLocal<{
|
|
4
4
|
placement?: "left" | "right" | "top" | "bottom";
|
|
5
|
+
appear?: boolean;
|
|
6
|
+
mode?: "in-out" | "out-in" | "default";
|
|
5
7
|
} & {
|
|
6
8
|
onAfterLeave?: ((el: HTMLElement) => any) | undefined;
|
|
7
9
|
onBeforeEnter?: ((el: HTMLElement) => any) | undefined;
|
|
@@ -2,7 +2,11 @@ import { VaporTransition as e, createComponent as t, createIf as n, createSlot a
|
|
|
2
2
|
//#region ../components/src/transition/transition-side.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
3
3
|
var o = /*@__PURE__*/ i({
|
|
4
4
|
__name: "transition-side",
|
|
5
|
-
props: {
|
|
5
|
+
props: {
|
|
6
|
+
placement: { default: "left" },
|
|
7
|
+
appear: { type: Boolean },
|
|
8
|
+
mode: { default: "in-out" }
|
|
9
|
+
},
|
|
6
10
|
emits: [
|
|
7
11
|
"beforeEnter",
|
|
8
12
|
"enter",
|
|
@@ -30,16 +34,28 @@ var o = /*@__PURE__*/ i({
|
|
|
30
34
|
};
|
|
31
35
|
return n(() => i.placement === "left", () => t(e, {
|
|
32
36
|
name: "side-left-fade",
|
|
33
|
-
$: [() => a(c)
|
|
37
|
+
$: [() => a(c), {
|
|
38
|
+
mode: () => i.mode,
|
|
39
|
+
appear: () => i.appear
|
|
40
|
+
}]
|
|
34
41
|
}, () => r("default", null, null, 4), !0), () => n(() => i.placement === "right", () => t(e, {
|
|
35
42
|
name: "side-right-fade",
|
|
36
|
-
$: [() => a(c)
|
|
43
|
+
$: [() => a(c), {
|
|
44
|
+
mode: () => i.mode,
|
|
45
|
+
appear: () => i.appear
|
|
46
|
+
}]
|
|
37
47
|
}, () => r("default", null, null, 4), !0), () => n(() => i.placement === "top", () => t(e, {
|
|
38
48
|
name: "side-top-fade",
|
|
39
|
-
$: [() => a(c)
|
|
49
|
+
$: [() => a(c), {
|
|
50
|
+
mode: () => i.mode,
|
|
51
|
+
appear: () => i.appear
|
|
52
|
+
}]
|
|
40
53
|
}, () => r("default", null, null, 4), !0), () => n(() => i.placement === "bottom", () => t(e, {
|
|
41
54
|
name: "side-bottom-fade",
|
|
42
|
-
$: [() => a(c)
|
|
55
|
+
$: [() => a(c), {
|
|
56
|
+
mode: () => i.mode,
|
|
57
|
+
appear: () => i.appear
|
|
58
|
+
}]
|
|
43
59
|
}, () => r("default", null, null, 4), !0)), 773), 517), 261);
|
|
44
60
|
}
|
|
45
61
|
});
|
|
@@ -23,24 +23,45 @@ var u = /*@__PURE__*/ c({
|
|
|
23
23
|
"afterLeave"
|
|
24
24
|
],
|
|
25
25
|
setup(c, { emit: u }) {
|
|
26
|
-
let d =
|
|
26
|
+
let d = u, f = {
|
|
27
27
|
beforeEnter: (e) => {
|
|
28
|
-
|
|
28
|
+
d("beforeEnter", e);
|
|
29
29
|
},
|
|
30
30
|
enter: (e) => {
|
|
31
|
-
|
|
31
|
+
d("enter", e);
|
|
32
32
|
},
|
|
33
33
|
afterEnter: (e) => {
|
|
34
|
-
|
|
34
|
+
d("afterEnter", e);
|
|
35
35
|
},
|
|
36
36
|
leave: (e) => {
|
|
37
|
-
|
|
37
|
+
d("leave", e);
|
|
38
38
|
},
|
|
39
39
|
afterLeave: (e) => {
|
|
40
|
-
|
|
40
|
+
d("afterLeave", e);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
return o(() => c.type === "height", () => a(e, {
|
|
43
|
+
return o(() => c.type === "height", () => a(e, {
|
|
44
|
+
appear: () => c.appear,
|
|
45
|
+
mode: () => c.mode,
|
|
46
|
+
$: [() => l(f)]
|
|
47
|
+
}, () => s("default", null, null, 4), !0), () => o(() => c.type === "width", () => a(i, {
|
|
48
|
+
appear: () => c.appear,
|
|
49
|
+
mode: () => c.mode,
|
|
50
|
+
$: [() => l(f)]
|
|
51
|
+
}, () => s("default", null, null, 4), !0), () => o(() => c.type === "opacity", () => a(t, {
|
|
52
|
+
appear: () => c.appear,
|
|
53
|
+
mode: () => c.mode,
|
|
54
|
+
$: [() => l(f)]
|
|
55
|
+
}, () => s("default", null, null, 4), !0), () => o(() => c.type === "scale", () => a(n, {
|
|
56
|
+
appear: () => c.appear,
|
|
57
|
+
mode: () => c.mode,
|
|
58
|
+
$: [() => l(f)]
|
|
59
|
+
}, () => s("default", null, null, 4), !0), () => o(() => c.type === "side", () => a(r, {
|
|
60
|
+
appear: () => c.appear,
|
|
61
|
+
mode: () => c.mode,
|
|
62
|
+
placement: () => c.placement,
|
|
63
|
+
$: [() => l(f)]
|
|
64
|
+
}, () => s("default", null, null, 4), !0)), 1029), 773), 517), 261);
|
|
44
65
|
}
|
|
45
66
|
});
|
|
46
67
|
//#endregion
|
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
cursor: pointer;
|
|
109
109
|
user-select: none;
|
|
110
110
|
&:hover {
|
|
111
|
-
background-color: getCssVar("color", "fill-
|
|
111
|
+
background-color: getCssVar("color", "fill-2");
|
|
112
112
|
}
|
|
113
113
|
&:active {
|
|
114
|
-
background-color: getCssVar("color", "fill-
|
|
114
|
+
background-color: getCssVar("color", "fill-4");
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
@include e(suffix) {
|
|
@@ -143,10 +143,10 @@
|
|
|
143
143
|
cursor: pointer;
|
|
144
144
|
user-select: none;
|
|
145
145
|
&:hover {
|
|
146
|
-
background-color: getCssVar("color", "fill-
|
|
146
|
+
background-color: getCssVar("color", "fill-2");
|
|
147
147
|
}
|
|
148
148
|
&:active {
|
|
149
|
-
background-color: getCssVar("color", "fill-
|
|
149
|
+
background-color: getCssVar("color", "fill-4");
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
@include e(suffix) {
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
border-color: getCssVar("color", "danger-6");
|
|
46
46
|
}
|
|
47
47
|
@include when(filled) {
|
|
48
|
-
background-color: getCssVar("color", "
|
|
49
|
-
border-color: getCssVar("color", "
|
|
48
|
+
background-color: getCssVar("color", "danger-1");
|
|
49
|
+
border-color: getCssVar("color", "danger-1");
|
|
50
50
|
&:hover {
|
|
51
|
-
background-color: getCssVar("color", "
|
|
51
|
+
background-color: getCssVar("color", "danger-2");
|
|
52
52
|
}
|
|
53
53
|
&:focus-within {
|
|
54
54
|
background-color: getCssVar("color", "bg-2");
|
|
55
|
-
border-color: getCssVar("color", "
|
|
55
|
+
border-color: getCssVar("color", "danger-5");
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
@include e(input) {
|
|
96
96
|
flex-grow: 1;
|
|
97
|
+
width: 0;
|
|
97
98
|
font-size: inherit;
|
|
98
99
|
padding: 0;
|
|
99
100
|
outline: none;
|
|
@@ -120,10 +121,10 @@
|
|
|
120
121
|
cursor: pointer;
|
|
121
122
|
user-select: none;
|
|
122
123
|
&:hover {
|
|
123
|
-
background-color: getCssVar("color", "fill-
|
|
124
|
+
background-color: getCssVar("color", "fill-2");
|
|
124
125
|
}
|
|
125
126
|
&:active {
|
|
126
|
-
background-color: getCssVar("color", "fill-
|
|
127
|
+
background-color: getCssVar("color", "fill-4");
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
@include e(eye) {
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
@include b(table) {
|
|
5
5
|
position: relative;
|
|
6
|
-
width: 100%;
|
|
7
6
|
font-size: 14px;
|
|
8
7
|
background-color: getCssVar("color", "bg-2");
|
|
9
8
|
box-sizing: border-box;
|
|
9
|
+
overflow: hidden;
|
|
10
10
|
|
|
11
11
|
@include e(inner) {
|
|
12
|
-
width: 100%;
|
|
13
12
|
border-collapse: separate;
|
|
14
13
|
border-spacing: 0;
|
|
15
14
|
display: table;
|
|
@@ -118,12 +117,24 @@
|
|
|
118
117
|
}
|
|
119
118
|
@include when(selected) {
|
|
120
119
|
background-color: getCssVar("color", "fill-2");
|
|
120
|
+
@include be(table, body-cell) {
|
|
121
|
+
background-color: getCssVar("color", "fill-2");
|
|
122
|
+
@include m(fixed) {
|
|
123
|
+
background-color: getCssVar("color", "fill-2");
|
|
124
|
+
}
|
|
125
|
+
}
|
|
121
126
|
}
|
|
122
127
|
@include when(selection) {
|
|
123
128
|
cursor: pointer;
|
|
124
129
|
}
|
|
125
130
|
@include when(stripe) {
|
|
126
131
|
background-color: getCssVar("color", "fill-1");
|
|
132
|
+
@include be(table, body-cell) {
|
|
133
|
+
background-color: getCssVar("color", "fill-1");
|
|
134
|
+
@include m(fixed) {
|
|
135
|
+
background-color: getCssVar("color", "fill-1");
|
|
136
|
+
}
|
|
137
|
+
}
|
|
127
138
|
}
|
|
128
139
|
}
|
|
129
140
|
|
|
@@ -229,11 +240,12 @@
|
|
|
229
240
|
}
|
|
230
241
|
|
|
231
242
|
@include e(empty) {
|
|
243
|
+
width: 100%;
|
|
232
244
|
display: flex;
|
|
233
245
|
align-items: center;
|
|
234
246
|
justify-content: center;
|
|
235
247
|
padding: 32px 0;
|
|
236
|
-
color:
|
|
248
|
+
color: getCssVar("color", "text-2");
|
|
237
249
|
font-size: 14px;
|
|
238
250
|
}
|
|
239
251
|
|
|
@@ -113,7 +113,10 @@
|
|
|
113
113
|
justify-content: center;
|
|
114
114
|
cursor: pointer;
|
|
115
115
|
&:hover {
|
|
116
|
-
background-color: getCssVar("color", "fill-
|
|
116
|
+
background-color: getCssVar("color", "fill-2");
|
|
117
|
+
}
|
|
118
|
+
&:active {
|
|
119
|
+
background-color: getCssVar("color", "fill-4");
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
|
package/dist/json/web-types.json
CHANGED