@shwfed/config 2.7.8 → 2.8.0
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/mcp.mjs +36 -24
- package/dist/module.json +1 -1
- package/dist/preview/assets/{badge-KAEXz3VO.js → badge-BI1mdo92.js} +1 -1
- package/dist/preview/assets/{config-Bb9Yeh33.js → config-BNF2r9jW.js} +1 -1
- package/dist/preview/assets/{config-BXx5syNf.js → config-BxuGYvER.js} +1 -1
- package/dist/preview/assets/{config-DPlbFBRi.js → config-Cy5w3JWQ.js} +1 -1
- package/dist/preview/assets/{config-DbfJWa8K.js → config-DqUnpWZk.js} +1 -1
- package/dist/preview/assets/{config-CtbYlZCL.js → config-Du5SuNSb.js} +1 -1
- package/dist/preview/assets/{config-C-QRPeN1.js → config-DuzQXHvg.js} +1 -1
- package/dist/preview/assets/{config-ZczGik30.js → config-OrJljNWU.js} +1 -1
- package/dist/preview/assets/{config-DbirfZyy.js → config-XgVqueyq.js} +1 -1
- package/dist/preview/assets/{config-CkKx7sVR.js → config-ggyCcWNZ.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-CQ6MUPKO.js → definition.vue_vue_type_script_setup_true_lang-lEhYVEcN.js} +1 -1
- package/dist/preview/assets/{index-Bv_aA34a.js → index-BvLLQuQr.js} +1 -1
- package/dist/preview/assets/{index-C9P-6gZd.css → index-DsMR5NfK.css} +1 -1
- package/dist/preview/assets/{index-DUOkekYu.js → index-Yv78vz4W.js} +168 -168
- package/dist/preview/assets/index-yrBKwEfk.js +1 -0
- package/dist/preview/assets/{item-SC0WQMVu.js → item-DMtXi_cx.js} +1 -1
- package/dist/preview/assets/{runtime-CLaRFZzt.js → runtime-2S3Yr051.js} +1 -1
- package/dist/preview/assets/{runtime-EVgYW6_7.js → runtime-BUPuX-Gq.js} +1 -1
- package/dist/preview/assets/{runtime-CC2caFS9.js → runtime-C4jFTZ4Z.js} +1 -1
- package/dist/preview/assets/{runtime-DcStOiOi.js → runtime-CA58Mif7.js} +1 -1
- package/dist/preview/assets/{runtime-i32sR7d3.js → runtime-CWqQzWuc.js} +1 -1
- package/dist/preview/assets/{runtime-Ckuz5Kxm.js → runtime-CjJBU_e1.js} +1 -1
- package/dist/preview/assets/{runtime-BPOf7Yqz.js → runtime-DeUmGsM_.js} +1 -1
- package/dist/preview/assets/{runtime-CnKlH0mi.js → runtime-DnXoWy2A.js} +1 -1
- package/dist/preview/assets/{runtime-DO0anKbw.js → runtime-wVZ1xP8L.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/config.vue +2 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +5 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.js +8 -3
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/runtime.vue +12 -1
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +8 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.js +3 -3
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue +15 -25
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue +11 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +1 -1
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js +4 -4
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.d.vue.ts +2 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.vue.d.ts +2 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +2 -0
- package/dist/runtime/components/form/index.vue +5 -1
- package/dist/runtime/components/form/utils/form-vars.js +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/config.vue +30 -0
- package/dist/runtime/components/table/index.d.vue.ts +2 -0
- package/dist/runtime/components/table/index.vue +8 -0
- package/dist/runtime/components/table/index.vue.d.ts +2 -0
- package/dist/runtime/components/table/schema.d.ts +4 -0
- package/dist/runtime/components/table/schema.js +4 -0
- package/dist/runtime/share/use-persisted-query.d.ts +21 -0
- package/dist/runtime/share/use-persisted-query.js +33 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-CJFU9znN.js +0 -1
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
50
|
readonly locale: "en" | "ja" | "ko";
|
|
51
51
|
readonly message: string;
|
|
52
52
|
}[]];
|
|
53
|
+
readonly successMessage?: string | undefined;
|
|
53
54
|
readonly accessor: string;
|
|
54
55
|
readonly sortKey?: string | undefined;
|
|
55
|
-
readonly successMessage?: string | undefined;
|
|
56
56
|
}) => any;
|
|
57
57
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
58
58
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -102,9 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
102
102
|
readonly locale: "en" | "ja" | "ko";
|
|
103
103
|
readonly message: string;
|
|
104
104
|
}[]];
|
|
105
|
+
readonly successMessage?: string | undefined;
|
|
105
106
|
readonly accessor: string;
|
|
106
107
|
readonly sortKey?: string | undefined;
|
|
107
|
-
readonly successMessage?: string | undefined;
|
|
108
108
|
}) => any) | undefined;
|
|
109
109
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
110
110
|
declare const _default: typeof __VLS_export;
|
|
@@ -64,9 +64,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
64
64
|
readonly readonly?: string | undefined;
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly enableSorting?: boolean | undefined;
|
|
67
|
+
readonly successMessage?: string | undefined;
|
|
67
68
|
readonly accessor: string;
|
|
68
69
|
readonly sortKey?: string | undefined;
|
|
69
|
-
readonly successMessage?: string | undefined;
|
|
70
70
|
}) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
72
72
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -130,9 +130,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
130
|
readonly readonly?: string | undefined;
|
|
131
131
|
readonly grow?: boolean | undefined;
|
|
132
132
|
readonly enableSorting?: boolean | undefined;
|
|
133
|
+
readonly successMessage?: string | undefined;
|
|
133
134
|
readonly accessor: string;
|
|
134
135
|
readonly sortKey?: string | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
136
|
}) => any) | undefined;
|
|
137
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
138
138
|
declare const _default: typeof __VLS_export;
|
|
@@ -64,9 +64,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
64
64
|
readonly readonly?: string | undefined;
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly enableSorting?: boolean | undefined;
|
|
67
|
+
readonly successMessage?: string | undefined;
|
|
67
68
|
readonly accessor: string;
|
|
68
69
|
readonly sortKey?: string | undefined;
|
|
69
|
-
readonly successMessage?: string | undefined;
|
|
70
70
|
}) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
72
72
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -130,9 +130,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
130
|
readonly readonly?: string | undefined;
|
|
131
131
|
readonly grow?: boolean | undefined;
|
|
132
132
|
readonly enableSorting?: boolean | undefined;
|
|
133
|
+
readonly successMessage?: string | undefined;
|
|
133
134
|
readonly accessor: string;
|
|
134
135
|
readonly sortKey?: string | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
136
|
}) => any) | undefined;
|
|
137
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
138
138
|
declare const _default: typeof __VLS_export;
|
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
50
|
readonly locale: "en" | "ja" | "ko";
|
|
51
51
|
readonly message: string;
|
|
52
52
|
}[]];
|
|
53
|
+
readonly successMessage?: string | undefined;
|
|
53
54
|
readonly accessor: string;
|
|
54
55
|
readonly sortKey?: string | undefined;
|
|
55
|
-
readonly successMessage?: string | undefined;
|
|
56
56
|
}) => any;
|
|
57
57
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
58
58
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -102,9 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
102
102
|
readonly locale: "en" | "ja" | "ko";
|
|
103
103
|
readonly message: string;
|
|
104
104
|
}[]];
|
|
105
|
+
readonly successMessage?: string | undefined;
|
|
105
106
|
readonly accessor: string;
|
|
106
107
|
readonly sortKey?: string | undefined;
|
|
107
|
-
readonly successMessage?: string | undefined;
|
|
108
108
|
}) => any) | undefined;
|
|
109
109
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
110
110
|
declare const _default: typeof __VLS_export;
|
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
50
|
readonly locale: "en" | "ja" | "ko";
|
|
51
51
|
readonly message: string;
|
|
52
52
|
}[]];
|
|
53
|
+
readonly successMessage?: string | undefined;
|
|
53
54
|
readonly accessor: string;
|
|
54
55
|
readonly sortKey?: string | undefined;
|
|
55
|
-
readonly successMessage?: string | undefined;
|
|
56
56
|
}) => any;
|
|
57
57
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
58
58
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -102,9 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
102
102
|
readonly locale: "en" | "ja" | "ko";
|
|
103
103
|
readonly message: string;
|
|
104
104
|
}[]];
|
|
105
|
+
readonly successMessage?: string | undefined;
|
|
105
106
|
readonly accessor: string;
|
|
106
107
|
readonly sortKey?: string | undefined;
|
|
107
|
-
readonly successMessage?: string | undefined;
|
|
108
108
|
}) => any) | undefined;
|
|
109
109
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
110
110
|
declare const _default: typeof __VLS_export;
|
|
@@ -64,9 +64,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
64
64
|
readonly readonly?: string | undefined;
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly enableSorting?: boolean | undefined;
|
|
67
|
+
readonly successMessage?: string | undefined;
|
|
67
68
|
readonly accessor: string;
|
|
68
69
|
readonly sortKey?: string | undefined;
|
|
69
|
-
readonly successMessage?: string | undefined;
|
|
70
70
|
}) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
72
72
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -130,9 +130,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
130
|
readonly readonly?: string | undefined;
|
|
131
131
|
readonly grow?: boolean | undefined;
|
|
132
132
|
readonly enableSorting?: boolean | undefined;
|
|
133
|
+
readonly successMessage?: string | undefined;
|
|
133
134
|
readonly accessor: string;
|
|
134
135
|
readonly sortKey?: string | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
136
|
}) => any) | undefined;
|
|
137
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
138
138
|
declare const _default: typeof __VLS_export;
|
|
@@ -64,9 +64,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
64
64
|
readonly readonly?: string | undefined;
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly enableSorting?: boolean | undefined;
|
|
67
|
+
readonly successMessage?: string | undefined;
|
|
67
68
|
readonly accessor: string;
|
|
68
69
|
readonly sortKey?: string | undefined;
|
|
69
|
-
readonly successMessage?: string | undefined;
|
|
70
70
|
}) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
72
72
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -130,9 +130,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
130
|
readonly readonly?: string | undefined;
|
|
131
131
|
readonly grow?: boolean | undefined;
|
|
132
132
|
readonly enableSorting?: boolean | undefined;
|
|
133
|
+
readonly successMessage?: string | undefined;
|
|
133
134
|
readonly accessor: string;
|
|
134
135
|
readonly sortKey?: string | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
136
|
}) => any) | undefined;
|
|
137
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
138
138
|
declare const _default: typeof __VLS_export;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
+
readonly successMessage?: string | undefined;
|
|
82
83
|
readonly accessor: string;
|
|
83
84
|
readonly sortKey?: string | undefined;
|
|
84
|
-
readonly successMessage?: string | undefined;
|
|
85
85
|
}) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
87
87
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -160,9 +160,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
160
|
};
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
|
+
readonly successMessage?: string | undefined;
|
|
163
164
|
readonly accessor: string;
|
|
164
165
|
readonly sortKey?: string | undefined;
|
|
165
|
-
readonly successMessage?: string | undefined;
|
|
166
166
|
}) => any) | undefined;
|
|
167
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const _default: typeof __VLS_export;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
+
readonly successMessage?: string | undefined;
|
|
82
83
|
readonly accessor: string;
|
|
83
84
|
readonly sortKey?: string | undefined;
|
|
84
|
-
readonly successMessage?: string | undefined;
|
|
85
85
|
}) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
87
87
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -160,9 +160,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
160
|
};
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
|
+
readonly successMessage?: string | undefined;
|
|
163
164
|
readonly accessor: string;
|
|
164
165
|
readonly sortKey?: string | undefined;
|
|
165
|
-
readonly successMessage?: string | undefined;
|
|
166
166
|
}) => any) | undefined;
|
|
167
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const _default: typeof __VLS_export;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
+
readonly successMessage?: string | undefined;
|
|
82
83
|
readonly accessor: string;
|
|
83
84
|
readonly sortKey?: string | undefined;
|
|
84
|
-
readonly successMessage?: string | undefined;
|
|
85
85
|
}) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
87
87
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -160,9 +160,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
160
|
};
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
|
+
readonly successMessage?: string | undefined;
|
|
163
164
|
readonly accessor: string;
|
|
164
165
|
readonly sortKey?: string | undefined;
|
|
165
|
-
readonly successMessage?: string | undefined;
|
|
166
166
|
}) => any) | undefined;
|
|
167
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const _default: typeof __VLS_export;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
+
readonly successMessage?: string | undefined;
|
|
82
83
|
readonly accessor: string;
|
|
83
84
|
readonly sortKey?: string | undefined;
|
|
84
|
-
readonly successMessage?: string | undefined;
|
|
85
85
|
}) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
87
87
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -160,9 +160,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
160
|
};
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
|
+
readonly successMessage?: string | undefined;
|
|
163
164
|
readonly accessor: string;
|
|
164
165
|
readonly sortKey?: string | undefined;
|
|
165
|
-
readonly successMessage?: string | undefined;
|
|
166
166
|
}) => any) | undefined;
|
|
167
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const _default: typeof __VLS_export;
|
|
@@ -87,8 +87,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
87
|
readonly target: string;
|
|
88
88
|
readonly operation: string;
|
|
89
89
|
}[] | undefined;
|
|
90
|
-
readonly accessor: string;
|
|
91
90
|
readonly successMessage?: string | undefined;
|
|
91
|
+
readonly accessor: string;
|
|
92
92
|
};
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -176,8 +176,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
176
|
readonly target: string;
|
|
177
177
|
readonly operation: string;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
readonly accessor: string;
|
|
180
179
|
readonly successMessage?: string | undefined;
|
|
180
|
+
readonly accessor: string;
|
|
181
181
|
};
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -87,8 +87,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
87
|
readonly target: string;
|
|
88
88
|
readonly operation: string;
|
|
89
89
|
}[] | undefined;
|
|
90
|
-
readonly accessor: string;
|
|
91
90
|
readonly successMessage?: string | undefined;
|
|
91
|
+
readonly accessor: string;
|
|
92
92
|
};
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -176,8 +176,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
176
|
readonly target: string;
|
|
177
177
|
readonly operation: string;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
readonly accessor: string;
|
|
180
179
|
readonly successMessage?: string | undefined;
|
|
180
|
+
readonly accessor: string;
|
|
181
181
|
};
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -87,8 +87,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
87
|
readonly target: string;
|
|
88
88
|
readonly operation: string;
|
|
89
89
|
}[] | undefined;
|
|
90
|
-
readonly accessor: string;
|
|
91
90
|
readonly successMessage?: string | undefined;
|
|
91
|
+
readonly accessor: string;
|
|
92
92
|
};
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -176,8 +176,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
176
|
readonly target: string;
|
|
177
177
|
readonly operation: string;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
readonly accessor: string;
|
|
180
179
|
readonly successMessage?: string | undefined;
|
|
180
|
+
readonly accessor: string;
|
|
181
181
|
};
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -87,8 +87,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
87
|
readonly target: string;
|
|
88
88
|
readonly operation: string;
|
|
89
89
|
}[] | undefined;
|
|
90
|
-
readonly accessor: string;
|
|
91
90
|
readonly successMessage?: string | undefined;
|
|
91
|
+
readonly accessor: string;
|
|
92
92
|
};
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -176,8 +176,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
176
|
readonly target: string;
|
|
177
177
|
readonly operation: string;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
readonly accessor: string;
|
|
180
179
|
readonly successMessage?: string | undefined;
|
|
180
|
+
readonly accessor: string;
|
|
181
181
|
};
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -914,6 +914,16 @@ function setPaginationEnabled(enabled) {
|
|
|
914
914
|
const { pagination: _drop, ...rest } = cur;
|
|
915
915
|
config.value = rest;
|
|
916
916
|
}
|
|
917
|
+
function setPersistQueryEnabled(enabled) {
|
|
918
|
+
if (enabled) {
|
|
919
|
+
writeGeneralPatch({ persistQuery: true });
|
|
920
|
+
return;
|
|
921
|
+
}
|
|
922
|
+
const cur = config.value;
|
|
923
|
+
if (!cur || cur.persistQuery === void 0) return;
|
|
924
|
+
const { persistQuery: _drop, ...rest } = cur;
|
|
925
|
+
config.value = rest;
|
|
926
|
+
}
|
|
917
927
|
function setPageSize(value) {
|
|
918
928
|
const cur = readGeneral();
|
|
919
929
|
if (!cur.pagination) return;
|
|
@@ -1462,6 +1472,26 @@ const tableQueryValue = computed({
|
|
|
1462
1472
|
|
|
1463
1473
|
<Separator />
|
|
1464
1474
|
|
|
1475
|
+
<div class="flex items-center gap-2">
|
|
1476
|
+
<h3 class="text-xs font-medium text-zinc-500">
|
|
1477
|
+
{{ generalFieldTitle("persistQuery") }}
|
|
1478
|
+
</h3>
|
|
1479
|
+
<Switch
|
|
1480
|
+
size="sm"
|
|
1481
|
+
:model-value="editingGeneralConfig.persistQuery === true"
|
|
1482
|
+
aria-label="搜索条件持久化"
|
|
1483
|
+
@update:model-value="setPersistQueryEnabled"
|
|
1484
|
+
/>
|
|
1485
|
+
</div>
|
|
1486
|
+
<p
|
|
1487
|
+
v-if="generalFieldDescription('persistQuery')"
|
|
1488
|
+
class="text-xs text-zinc-400"
|
|
1489
|
+
>
|
|
1490
|
+
{{ generalFieldDescription("persistQuery") }}
|
|
1491
|
+
</p>
|
|
1492
|
+
|
|
1493
|
+
<Separator />
|
|
1494
|
+
|
|
1465
1495
|
<h3 class="text-xs font-medium text-zinc-500">
|
|
1466
1496
|
样式
|
|
1467
1497
|
</h3>
|
|
@@ -31,6 +31,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
31
31
|
cellStyle?: string;
|
|
32
32
|
style?: string;
|
|
33
33
|
pagination?: import("effect/Schema").Schema.Type<typeof import("./schema.js").Pagination>;
|
|
34
|
+
persistQuery?: boolean;
|
|
34
35
|
initialState?: import("effect/Schema").Schema.Type<import("effect/Schema").Struct<{
|
|
35
36
|
columnVisibility: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>>;
|
|
36
37
|
columnOrder: import("effect/Schema").optional<import("effect/Schema").Array$<typeof import("effect/Schema").String>>;
|
|
@@ -76,6 +77,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
76
77
|
cellStyle?: string;
|
|
77
78
|
style?: string;
|
|
78
79
|
pagination?: import("effect/Schema").Schema.Type<typeof import("./schema.js").Pagination>;
|
|
80
|
+
persistQuery?: boolean;
|
|
79
81
|
initialState?: import("effect/Schema").Schema.Type<import("effect/Schema").Struct<{
|
|
80
82
|
columnVisibility: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>>;
|
|
81
83
|
columnOrder: import("effect/Schema").optional<import("effect/Schema").Array$<typeof import("effect/Schema").String>>;
|
|
@@ -30,6 +30,7 @@ import { evaluateInitial } from "../form/utils/initial";
|
|
|
30
30
|
import { provideTableInstanceId } from "./utils/instance";
|
|
31
31
|
import { provideSharedFetchLayer } from "./utils/shared-fetch";
|
|
32
32
|
import { provideEventTarget } from "../../share/event-bus";
|
|
33
|
+
import { usePersistedQuery } from "../../share/use-persisted-query";
|
|
33
34
|
import { findColumn } from "./utils/resolve";
|
|
34
35
|
import { interpolateMarkdown } from "./utils/runtime";
|
|
35
36
|
import { carrySymbolId, createRowKeyResolver } from "./utils/row-key";
|
|
@@ -42,6 +43,11 @@ const rowData = defineModel("rows", { type: Array, ...{ default: () => [] } });
|
|
|
42
43
|
const serverTotal = ref(void 0);
|
|
43
44
|
const isFetching = ref(false);
|
|
44
45
|
const queryState = ref({});
|
|
46
|
+
const persistedQuery = usePersistedQuery(
|
|
47
|
+
config.value?.id,
|
|
48
|
+
queryState,
|
|
49
|
+
() => config.value?.persistQuery === true
|
|
50
|
+
);
|
|
45
51
|
const { t, locale } = useI18n({
|
|
46
52
|
inheritLocale: true,
|
|
47
53
|
messages: {
|
|
@@ -379,6 +385,7 @@ async function fetchDataSource() {
|
|
|
379
385
|
}
|
|
380
386
|
}
|
|
381
387
|
async function resetQuery() {
|
|
388
|
+
persistedQuery.clear();
|
|
382
389
|
const initial = config.value?.query?.initial;
|
|
383
390
|
if (!initial) {
|
|
384
391
|
queryState.value = {};
|
|
@@ -435,6 +442,7 @@ provideEventTarget(tableInstanceId, {
|
|
|
435
442
|
const queryRef = ref(null);
|
|
436
443
|
onMounted(async () => {
|
|
437
444
|
await queryRef.value?.seeded;
|
|
445
|
+
persistedQuery.restore();
|
|
438
446
|
await fetchDataSource();
|
|
439
447
|
});
|
|
440
448
|
watch(
|
|
@@ -31,6 +31,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
31
31
|
cellStyle?: string;
|
|
32
32
|
style?: string;
|
|
33
33
|
pagination?: import("effect/Schema").Schema.Type<typeof import("./schema.js").Pagination>;
|
|
34
|
+
persistQuery?: boolean;
|
|
34
35
|
initialState?: import("effect/Schema").Schema.Type<import("effect/Schema").Struct<{
|
|
35
36
|
columnVisibility: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>>;
|
|
36
37
|
columnOrder: import("effect/Schema").optional<import("effect/Schema").Array$<typeof import("effect/Schema").String>>;
|
|
@@ -76,6 +77,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
76
77
|
cellStyle?: string;
|
|
77
78
|
style?: string;
|
|
78
79
|
pagination?: import("effect/Schema").Schema.Type<typeof import("./schema.js").Pagination>;
|
|
80
|
+
persistQuery?: boolean;
|
|
79
81
|
initialState?: import("effect/Schema").Schema.Type<import("effect/Schema").Struct<{
|
|
80
82
|
columnVisibility: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>>;
|
|
81
83
|
columnOrder: import("effect/Schema").optional<import("effect/Schema").Array$<typeof import("effect/Schema").String>>;
|
|
@@ -255,6 +255,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
255
255
|
readonly pageSizes?: readonly number[] | undefined;
|
|
256
256
|
readonly pageIndex?: number | undefined;
|
|
257
257
|
} | undefined;
|
|
258
|
+
readonly persistQuery?: boolean | undefined;
|
|
258
259
|
readonly initialState?: {
|
|
259
260
|
readonly expanded?: boolean | {
|
|
260
261
|
readonly [x: string]: boolean;
|
|
@@ -536,6 +537,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
536
537
|
message: Schema.SchemaClass<string, string, never>;
|
|
537
538
|
}>]>>;
|
|
538
539
|
}>>;
|
|
540
|
+
persistQuery: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
539
541
|
initialState: Schema.optional<Schema.Struct<{
|
|
540
542
|
columnVisibility: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Boolean>>;
|
|
541
543
|
columnOrder: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
@@ -703,6 +705,7 @@ export declare function createTableConfig(body: Omit<Schema.Schema.Type<ReturnTy
|
|
|
703
705
|
readonly pageSizes?: readonly number[] | undefined;
|
|
704
706
|
readonly pageIndex?: number | undefined;
|
|
705
707
|
} | undefined;
|
|
708
|
+
persistQuery?: boolean | undefined;
|
|
706
709
|
initialState?: {
|
|
707
710
|
readonly expanded?: boolean | {
|
|
708
711
|
readonly [x: string]: boolean;
|
|
@@ -761,6 +764,7 @@ export type TableConfigValue = Readonly<{
|
|
|
761
764
|
cellStyle?: string;
|
|
762
765
|
style?: string;
|
|
763
766
|
pagination?: Schema.Schema.Type<typeof Pagination>;
|
|
767
|
+
persistQuery?: boolean;
|
|
764
768
|
initialState?: Schema.Schema.Type<typeof InitialState>;
|
|
765
769
|
}>;
|
|
766
770
|
export type PaginationValue = Schema.Schema.Type<typeof Pagination>;
|
|
@@ -328,6 +328,10 @@ export function TableConfig(configure) {
|
|
|
328
328
|
pagination: Schema.optional(Pagination).annotations({
|
|
329
329
|
title: "\u5206\u9875"
|
|
330
330
|
}),
|
|
331
|
+
persistQuery: Schema.optional(Schema.Boolean.annotations({
|
|
332
|
+
title: "\u641C\u7D22\u6761\u4EF6\u6301\u4E45\u5316",
|
|
333
|
+
description: "\u5F00\u542F\u540E\uFF0C\u641C\u7D22\u6761\u4EF6\u8868\u5355\u7684\u5F53\u524D\u503C\u4F1A\u5199\u5165\u6D4F\u89C8\u5668\u4F1A\u8BDD\u5B58\u50A8\uFF08sessionStorage\uFF09\uFF0C\u5237\u65B0\u9875\u9762\u540E\u81EA\u52A8\u6062\u590D\uFF0C\u76F4\u5230\u5173\u95ED\u6807\u7B7E\u9875\u6216\u79BB\u5F00\u7AD9\u70B9\u3002\u9700\u8981\u8868\u683C\u5DF2\u914D\u7F6E ID\u3002"
|
|
334
|
+
})),
|
|
331
335
|
initialState: Schema.optional(InitialState)
|
|
332
336
|
}).pipe(Schema.filter((cfg) => {
|
|
333
337
|
if (cfg.dataSource?.total !== void 0 && cfg.pagination === void 0) {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { FormState } from '../components/form/utils/state.js';
|
|
3
|
+
/**
|
|
4
|
+
* Mirrors a table's query form state into `sessionStorage` so filters survive
|
|
5
|
+
* a page reload — until the tab is closed / the user leaves the site.
|
|
6
|
+
*
|
|
7
|
+
* Modeled on `useActiveTabId`: storage is keyed on the table's stable
|
|
8
|
+
* `config.id`, every access is guarded against SSR and unavailable storage
|
|
9
|
+
* (privacy modes), and `restore()` is meant to run in `onMounted` after the
|
|
10
|
+
* form's CEL `initial` seed has landed so the stored value overrides it.
|
|
11
|
+
*
|
|
12
|
+
* - `restore()` applies a stored snapshot onto `queryState` (no-op when
|
|
13
|
+
* disabled, when there is no `tableId`, or when nothing is stored).
|
|
14
|
+
* - `clear()` drops the stored snapshot (used by `reset-query`, so a reset is
|
|
15
|
+
* authoritative and the stale query does not reappear on the next load).
|
|
16
|
+
* - A deep watch persists live changes while enabled.
|
|
17
|
+
*/
|
|
18
|
+
export declare function usePersistedQuery(tableId: string | undefined, queryState: Ref<FormState>, enabled: () => boolean): {
|
|
19
|
+
restore: () => void;
|
|
20
|
+
clear: () => void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { watch } from "vue";
|
|
2
|
+
const STORAGE_PREFIX = "shwfed.table.query.";
|
|
3
|
+
export function usePersistedQuery(tableId, queryState, enabled) {
|
|
4
|
+
const active = () => Boolean(tableId) && enabled() && typeof window !== "undefined";
|
|
5
|
+
const key = () => `${STORAGE_PREFIX}${tableId}`;
|
|
6
|
+
function restore() {
|
|
7
|
+
if (!active()) return;
|
|
8
|
+
try {
|
|
9
|
+
const raw = window.sessionStorage.getItem(key());
|
|
10
|
+
if (!raw) return;
|
|
11
|
+
const parsed = JSON.parse(raw);
|
|
12
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
13
|
+
queryState.value = parsed;
|
|
14
|
+
}
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function clear() {
|
|
19
|
+
if (!tableId || typeof window === "undefined") return;
|
|
20
|
+
try {
|
|
21
|
+
window.sessionStorage.removeItem(key());
|
|
22
|
+
} catch {
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
watch(queryState, (next) => {
|
|
26
|
+
if (!active()) return;
|
|
27
|
+
try {
|
|
28
|
+
window.sessionStorage.setItem(key(), JSON.stringify(next));
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
}, { deep: true });
|
|
32
|
+
return { restore, clear };
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b2 as e}from"./index-DUOkekYu.js";import{b3 as f,b4 as r,b5 as s}from"./index-DUOkekYu.js";export{f as TableConfig,r as createTableConfig,e as default,s as getColumnTechnicalKey};
|