@fewangsit/wangsvue-gsts 1.0.0-alpha.34 → 1.0.0-alpha.35
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/changelogpage/index.es.js +30 -31
- package/datatable/index.d.ts +8 -1
- package/datatable/index.es.js +367 -363
- package/languageswitcher/index.es.js +30 -29
- package/package.json +1 -1
- package/plugins/basei18n.es.js +59 -58
- package/stats.html +1 -1
- package/style.css +1 -1
- package/utils/cookie.util.d.ts +18 -0
- package/utils/cookie.util.es.js +19 -0
- package/utils/date.util.d.ts +12 -0
- package/utils/date.util.es.js +49 -56
- package/utils/index.d.ts +5 -1
- package/wangsvue-gsts.es.js +146 -145
- package/wangsvue-gsts.esm.browser.js +4334 -4322
- package/wangsvue-gsts.system.js +58 -58
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as A, inject as E, shallowRef as _, ref as O, computed as N, createElementBlock as z, openBlock as b, normalizeProps as w, guardReactiveProps as B, unref as l, createElementVNode as Q, createVNode as p, createBlock as V, createCommentVNode as R, mergeProps as v } from "vue";
|
|
2
2
|
import { ChangelogServices as S } from "@tagsamurai/gsts-api-services";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { _ as K } from "../
|
|
6
|
-
import { _ as L } from "../
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { _ as
|
|
10
|
-
|
|
11
|
-
const re = /* @__PURE__ */ q({
|
|
3
|
+
import { u as H } from "../utils/toast.util.es.js";
|
|
4
|
+
import { _ as I } from "../buttondownload/index.es.js";
|
|
5
|
+
import { _ as K } from "../buttonfilter/index.es.js";
|
|
6
|
+
import { _ as L } from "../buttonsearch/index.es.js";
|
|
7
|
+
import { D as M } from "../datatable/index.es.js";
|
|
8
|
+
import { _ as P } from "../tooltipspan/index.es.js";
|
|
9
|
+
import { _ as G } from "../changelogfilter/index.es.js";
|
|
10
|
+
const oe = /* @__PURE__ */ A({
|
|
12
11
|
__name: "ChangelogPage",
|
|
13
12
|
props: {
|
|
14
13
|
useButtonDownload: { type: Boolean, default: !1 },
|
|
@@ -28,8 +27,8 @@ const re = /* @__PURE__ */ q({
|
|
|
28
27
|
tableName: {}
|
|
29
28
|
},
|
|
30
29
|
emits: ["hide"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
30
|
+
setup(D) {
|
|
31
|
+
const F = H(), r = E("preset", {}).changelog, e = D, x = _(0), h = _(!1), f = O({
|
|
33
32
|
object: e.object,
|
|
34
33
|
...e.customParams
|
|
35
34
|
}), k = N(() => {
|
|
@@ -40,21 +39,21 @@ const re = /* @__PURE__ */ q({
|
|
|
40
39
|
var a;
|
|
41
40
|
return e.tableName ?? `changelog-page-${(a = f.value.object) == null ? void 0 : a.toLowerCase().split(" ").join("-")}`;
|
|
42
41
|
}), $ = (() => {
|
|
43
|
-
var o,
|
|
42
|
+
var o, s, i, m, u, d, c, g, C, y, j, T;
|
|
44
43
|
const a = [
|
|
45
44
|
{
|
|
46
45
|
field: "createdAt",
|
|
47
46
|
header: "Date",
|
|
48
47
|
sortable: !0,
|
|
49
48
|
visible: !((o = e.removedColumns) != null && o.includes("createdAt")),
|
|
50
|
-
|
|
49
|
+
dateFormatOptions: { showTime: !0 }
|
|
51
50
|
},
|
|
52
51
|
{
|
|
53
52
|
field: "action",
|
|
54
53
|
header: "Action",
|
|
55
54
|
sortable: !0,
|
|
56
55
|
fixed: !0,
|
|
57
|
-
visible: !((
|
|
56
|
+
visible: !((s = e.removedColumns) != null && s.includes("action")),
|
|
58
57
|
bodyTemplate: (t) => t.action ?? "-"
|
|
59
58
|
},
|
|
60
59
|
{
|
|
@@ -62,7 +61,7 @@ const re = /* @__PURE__ */ q({
|
|
|
62
61
|
header: "Object",
|
|
63
62
|
sortable: !0,
|
|
64
63
|
fixed: !0,
|
|
65
|
-
visible: !((
|
|
64
|
+
visible: !((i = e.additionalTemplateColumns) != null && i.length) && !((m = e.removedColumns) != null && m.includes("object")),
|
|
66
65
|
bodyTemplate: (t) => t.object ?? "-"
|
|
67
66
|
},
|
|
68
67
|
{
|
|
@@ -87,7 +86,7 @@ const re = /* @__PURE__ */ q({
|
|
|
87
86
|
sortable: !0,
|
|
88
87
|
visible: !((g = e.removedColumns) != null && g.includes("oldValue")),
|
|
89
88
|
bodyComponent: (t) => ({
|
|
90
|
-
component:
|
|
89
|
+
component: P,
|
|
91
90
|
props: { fullText: t.oldValue }
|
|
92
91
|
})
|
|
93
92
|
},
|
|
@@ -97,7 +96,7 @@ const re = /* @__PURE__ */ q({
|
|
|
97
96
|
sortable: !0,
|
|
98
97
|
visible: !((C = e.removedColumns) != null && C.includes("newValue")),
|
|
99
98
|
bodyComponent: (t) => ({
|
|
100
|
-
component:
|
|
99
|
+
component: P,
|
|
101
100
|
props: { fullText: t.newValue }
|
|
102
101
|
})
|
|
103
102
|
},
|
|
@@ -112,32 +111,32 @@ const re = /* @__PURE__ */ q({
|
|
|
112
111
|
return (j = e.additionalTemplateColumns) != null && j.length && ((T = e.additionalTemplateColumns) == null || T.forEach((t) => {
|
|
113
112
|
a.splice(t.index, 0, t.column);
|
|
114
113
|
})), a;
|
|
115
|
-
})(),
|
|
114
|
+
})(), q = async (a) => {
|
|
116
115
|
try {
|
|
117
116
|
const { data: o } = await S.getChangelogs(a);
|
|
118
117
|
return o;
|
|
119
118
|
} catch (o) {
|
|
120
|
-
console.error(o),
|
|
119
|
+
console.error(o), F.add({
|
|
121
120
|
error: o,
|
|
122
121
|
message: ""
|
|
123
122
|
});
|
|
124
123
|
}
|
|
125
124
|
};
|
|
126
125
|
return (a, o) => {
|
|
127
|
-
var
|
|
128
|
-
return b(),
|
|
129
|
-
Q("div", w(B((
|
|
130
|
-
p(
|
|
131
|
-
p(
|
|
126
|
+
var s, i, m, u, d;
|
|
127
|
+
return b(), z("div", w(B((s = l(r)) == null ? void 0 : s.root)), [
|
|
128
|
+
Q("div", w(B((i = l(r)) == null ? void 0 : i.header)), [
|
|
129
|
+
p(L, v((m = l(r)) == null ? void 0 : m.buttonsearch, { "table-name": n.value }), null, 16, ["table-name"]),
|
|
130
|
+
p(K, v((u = l(r)) == null ? void 0 : u.buttonfilter, {
|
|
132
131
|
"table-name": n.value,
|
|
133
132
|
onShowFilter: o[0] || (o[0] = (c) => h.value = c)
|
|
134
133
|
}), null, 16, ["table-name"]),
|
|
135
|
-
e.useButtonDownload ? (b(), V(
|
|
134
|
+
e.useButtonDownload ? (b(), V(I, v({ key: 0 }, (d = l(r)) == null ? void 0 : d.buttondownload, {
|
|
136
135
|
"file-name": a.fileName ?? "Changelog",
|
|
137
136
|
"table-name": n.value
|
|
138
137
|
}), null, 16, ["file-name", "table-name"])) : R("", !0)
|
|
139
138
|
], 16),
|
|
140
|
-
p(
|
|
139
|
+
p(G, {
|
|
141
140
|
"additional-template-filters": a.additionalTemplateFilters,
|
|
142
141
|
"custom-params": e.customParams,
|
|
143
142
|
"default-params-query": f.value,
|
|
@@ -146,11 +145,11 @@ const re = /* @__PURE__ */ q({
|
|
|
146
145
|
"removed-filters": a.removedFilters,
|
|
147
146
|
"table-name": n.value
|
|
148
147
|
}, null, 8, ["additional-template-filters", "custom-params", "default-params-query", "object", "object-name-column", "removed-filters", "table-name"]),
|
|
149
|
-
(b(), V(
|
|
150
|
-
key:
|
|
148
|
+
(b(), V(M, {
|
|
149
|
+
key: x.value,
|
|
151
150
|
columns: l($),
|
|
152
151
|
"default-query-params": f.value,
|
|
153
|
-
"fetch-function":
|
|
152
|
+
"fetch-function": q,
|
|
154
153
|
"scroll-height": k.value,
|
|
155
154
|
"table-name": n.value,
|
|
156
155
|
"use-option": !1,
|
|
@@ -164,5 +163,5 @@ const re = /* @__PURE__ */ q({
|
|
|
164
163
|
}
|
|
165
164
|
});
|
|
166
165
|
export {
|
|
167
|
-
|
|
166
|
+
oe as _
|
|
168
167
|
};
|
package/datatable/index.d.ts
CHANGED
|
@@ -733,6 +733,13 @@ export type TreeTableEmits = BaseDataTableEmits & {
|
|
|
733
733
|
|
|
734
734
|
export type DataTableEmits = TreeTableEmits;
|
|
735
735
|
|
|
736
|
+
export type DataTableSlots = {
|
|
737
|
+
/**
|
|
738
|
+
* Slot for rendering sub content below a table row.
|
|
739
|
+
*/
|
|
740
|
+
'row-subcontent': (props: { item: Data }) => any;
|
|
741
|
+
};
|
|
742
|
+
|
|
736
743
|
/**
|
|
737
744
|
* **WangsVue - DataTable**
|
|
738
745
|
*
|
|
@@ -746,7 +753,7 @@ export type DataTableEmits = TreeTableEmits;
|
|
|
746
753
|
*/
|
|
747
754
|
declare class DataTable extends ClassComponent<
|
|
748
755
|
DataTableProps,
|
|
749
|
-
|
|
756
|
+
DataTableSlots,
|
|
750
757
|
DataTableEmits
|
|
751
758
|
> {}
|
|
752
759
|
|