nuxt-hs-ui 2.0.35 → 2.0.37
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/module.json
CHANGED
|
@@ -14,8 +14,8 @@ const alertTv = tv({
|
|
|
14
14
|
base: [
|
|
15
15
|
//
|
|
16
16
|
`p-2`,
|
|
17
|
-
"bg-white border
|
|
18
|
-
"rounded
|
|
17
|
+
"bg-white border border-[var(--main-color)] text-[color-mix(in_srgb,_var(--main-color)_,_#000_30%)]",
|
|
18
|
+
"rounded overflow-hidden",
|
|
19
19
|
],
|
|
20
20
|
bg: "absolute inset-0 bg-[var(--main-color)] opacity-10",
|
|
21
21
|
inner: "",
|
|
@@ -40,7 +40,7 @@ export declare const TabulatorInitEmitFunc: () => {
|
|
|
40
40
|
tableRefreshStopToggle: () => void;
|
|
41
41
|
};
|
|
42
42
|
export declare const Option: (option?: any) => any;
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const Func: {
|
|
44
44
|
cellMouseOut: (e: any) => void;
|
|
45
45
|
cellMouseUp: (e: any) => void;
|
|
46
46
|
cellMouseDown: (e: any) => void;
|
|
@@ -68,26 +68,14 @@ export declare const GetCellHtml: (html: string) => string;
|
|
|
68
68
|
export declare const GetHeaderHtml: (html: string) => string;
|
|
69
69
|
/** Data-Row-Table ボタン列 */
|
|
70
70
|
export declare const GetListTableBtnSetting: (arg: {
|
|
71
|
-
detailUrl: string;
|
|
71
|
+
detailUrl: string | null;
|
|
72
72
|
mode: "select" | "detail";
|
|
73
73
|
actionBtnTheme: Theme;
|
|
74
74
|
componentName: string;
|
|
75
75
|
TabulatorFunc: typeof TabulatorFunc;
|
|
76
76
|
emit: any;
|
|
77
77
|
size: string;
|
|
78
|
-
}) =>
|
|
79
|
-
title: string;
|
|
80
|
-
formatter: (cell: any) => string;
|
|
81
|
-
cellClick: (e: any, cell: any) => void;
|
|
82
|
-
cellMouseUp: (e: any) => void;
|
|
83
|
-
cellMouseOut: (e: any) => void;
|
|
84
|
-
cellMouseDown: (e: any) => void;
|
|
85
|
-
headerSort: boolean;
|
|
86
|
-
download: boolean;
|
|
87
|
-
field: string | undefined;
|
|
88
|
-
width: string | undefined;
|
|
89
|
-
minWidth: string | undefined;
|
|
90
|
-
};
|
|
78
|
+
}) => any;
|
|
91
79
|
/** List用 並べ替え処理 */
|
|
92
80
|
export declare const ListOriginSortItems: <T>(arg: {
|
|
93
81
|
a: T;
|
|
@@ -125,15 +125,15 @@ export const Option = (option) => {
|
|
|
125
125
|
pagination: {
|
|
126
126
|
page_size: "Page Size ",
|
|
127
127
|
page_title: "Show Page",
|
|
128
|
-
first: "",
|
|
128
|
+
first: "<<",
|
|
129
129
|
// text for the first page button
|
|
130
130
|
first_title: "First",
|
|
131
131
|
// tooltip text for the first page button
|
|
132
|
-
last: "",
|
|
132
|
+
last: ">>",
|
|
133
133
|
last_title: "Last",
|
|
134
|
-
prev: "",
|
|
134
|
+
prev: "<",
|
|
135
135
|
prev_title: "Prev ",
|
|
136
|
-
next: "",
|
|
136
|
+
next: ">",
|
|
137
137
|
next_title: "Next",
|
|
138
138
|
all: "All",
|
|
139
139
|
counter: {
|
|
@@ -167,7 +167,7 @@ export const Option = (option) => {
|
|
|
167
167
|
option
|
|
168
168
|
);
|
|
169
169
|
};
|
|
170
|
-
export const
|
|
170
|
+
export const Func = {
|
|
171
171
|
cellMouseOut,
|
|
172
172
|
cellMouseUp,
|
|
173
173
|
cellMouseDown,
|
|
@@ -206,19 +206,22 @@ export const GetListTableBtnSetting = (arg) => {
|
|
|
206
206
|
mode,
|
|
207
207
|
actionBtnTheme,
|
|
208
208
|
componentName,
|
|
209
|
-
TabulatorFunc
|
|
209
|
+
TabulatorFunc,
|
|
210
210
|
emit,
|
|
211
211
|
size
|
|
212
212
|
} = arg;
|
|
213
213
|
const storeMultiLang = useHsMultiLang();
|
|
214
214
|
const tx = storeMultiLang.tx;
|
|
215
215
|
return {
|
|
216
|
-
...
|
|
216
|
+
...TabulatorFunc.ColumnsDisplay("", 100),
|
|
217
217
|
title: ``,
|
|
218
218
|
formatter: (cell) => {
|
|
219
219
|
const row = cell.getRow().getData();
|
|
220
|
-
const
|
|
221
|
-
|
|
220
|
+
const herf = (() => {
|
|
221
|
+
if (mode !== "detail") return "";
|
|
222
|
+
if (!detailUrl) return "";
|
|
223
|
+
return `href="${detailUrl.replace(/new$/, "")}${row.pId}"`;
|
|
224
|
+
})();
|
|
222
225
|
const style = [
|
|
223
226
|
`border:solid 2px ${GetGolorCode(actionBtnTheme)}`,
|
|
224
227
|
`color:${GetGolorCode(actionBtnTheme)}`,
|
|
@@ -246,9 +249,9 @@ ${icon}${caption}
|
|
|
246
249
|
emit("select-private-id", row.pId);
|
|
247
250
|
}
|
|
248
251
|
},
|
|
249
|
-
cellMouseUp:
|
|
250
|
-
cellMouseOut:
|
|
251
|
-
cellMouseDown:
|
|
252
|
+
cellMouseUp: TabulatorFunc.cellMouseUp,
|
|
253
|
+
cellMouseOut: TabulatorFunc.cellMouseOut,
|
|
254
|
+
cellMouseDown: TabulatorFunc.cellMouseDown
|
|
252
255
|
};
|
|
253
256
|
};
|
|
254
257
|
export const ListOriginSortItems = (arg) => {
|