@shwfed/config 2.9.3 → 2.9.5
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 +566 -102
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -0
- package/dist/preview/assets/FieldGroup.vue_vue_type_script_setup_true_lang-BZCeJsQD.js +1 -0
- package/dist/preview/assets/badge-muf_N5bh.js +1 -0
- package/dist/preview/assets/config-BDWlpbYr.js +1 -0
- package/dist/preview/assets/config-BbrX8RJn.js +1 -0
- package/dist/preview/assets/config-BeW9pIO6.js +1 -0
- package/dist/preview/assets/config-BmmWdZ8T.js +1 -0
- package/dist/preview/assets/config-CX1fFOhS.js +1 -0
- package/dist/preview/assets/config-CZHJLTaX.js +1 -0
- package/dist/preview/assets/config-CoEYHQXh.js +1 -0
- package/dist/preview/assets/config-DkiDpKM2.js +1 -0
- package/dist/preview/assets/config-DygE8cbP.js +1 -0
- package/dist/preview/assets/config-qlTY-CeE.js +1 -0
- package/dist/preview/assets/config-r9XM4u1X.js +1 -0
- package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-BFjgX5YL.js +1 -0
- package/dist/preview/assets/{index-CNgUJDgV.js → index-CHKIlDe0.js} +1 -1
- package/dist/preview/assets/{index-DZS4TKGX.js → index-CJHF5AcW.js} +217 -186
- package/dist/preview/assets/index-OJPhCe6w.js +1 -0
- package/dist/preview/assets/index-vPcvbp7e.css +1 -0
- package/dist/preview/assets/item-9Thi-zcK.js +1 -0
- package/dist/preview/assets/runtime-B2Q3DRbZ.js +1 -0
- package/dist/preview/assets/{runtime-Caf4c7Qr.js → runtime-BnExhm-v.js} +1 -1
- package/dist/preview/assets/runtime-BrCQ7TVd.js +1 -0
- package/dist/preview/assets/runtime-BstyXj1z.js +1 -0
- package/dist/preview/assets/runtime-ByhubOtA.js +1 -0
- package/dist/preview/assets/runtime-CE6eAbTE.js +1 -0
- package/dist/preview/assets/runtime-CdDJ6rEl.js +1 -0
- package/dist/preview/assets/runtime-DEHzrByN.js +1 -0
- package/dist/preview/assets/runtime-DM9caqw1.js +1 -0
- package/dist/preview/assets/{runtime-DNRZcUw_.js → runtime-DkLPBvxW.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.d.vue.ts +20 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue.d.ts +20 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.d.ts +22 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.js +33 -1
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.d.vue.ts +20 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue.d.ts +20 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +10 -0
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/config.d.vue.ts +4 -0
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/config.vue.d.ts +4 -0
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.d.ts +2 -0
- package/dist/runtime/components/actions/buttons/2026-05-21/com.shwfed.actions.button.http.download/config.d.vue.ts +16 -0
- package/dist/runtime/components/actions/buttons/2026-05-21/com.shwfed.actions.button.http.download/config.vue.d.ts +16 -0
- package/dist/runtime/components/actions/buttons/2026-05-21/com.shwfed.actions.button.http.download/schema.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-05-24/com.shwfed.actions.button.state.write/config.d.vue.ts +4 -0
- package/dist/runtime/components/actions/buttons/2026-05-24/com.shwfed.actions.button.state.write/config.vue.d.ts +4 -0
- package/dist/runtime/components/actions/buttons/2026-05-24/com.shwfed.actions.button.state.write/schema.d.ts +2 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/config.d.vue.ts +51 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/config.vue +201 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/config.vue.d.ts +51 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/runtime.vue +37 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +30 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.js +87 -0
- package/dist/runtime/components/actions/components/triggers-field.d.vue.ts +4 -0
- package/dist/runtime/components/actions/components/triggers-field.vue +65 -7
- package/dist/runtime/components/actions/components/triggers-field.vue.d.ts +4 -0
- package/dist/runtime/components/actions/config.vue +68 -1
- package/dist/runtime/components/actions/utils/resolve.d.ts +85 -2
- package/dist/runtime/components/actions/utils/resolve.js +122 -21
- package/dist/runtime/components/app.vue +59 -4
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +1 -1
- package/dist/runtime/components/config/index.vue +9 -2
- package/dist/runtime/components/config/schema.d.ts +6 -10
- package/dist/runtime/components/config/schema.js +12 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +1 -1
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +4 -4
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +4 -4
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/config.d.vue.ts +31 -0
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/config.vue +89 -0
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/config.vue.d.ts +31 -0
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/runtime.d.ts +2 -0
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/runtime.js +14 -0
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts +21 -0
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.js +36 -0
- package/dist/runtime/components/operations/utils/resolve.d.ts +48 -0
- package/dist/runtime/components/operations/utils/resolve.js +73 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +4 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +4 -0
- package/dist/runtime/components/table/schema.d.ts +2 -2
- package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
- package/dist/runtime/components/ui/progress/Progress.d.vue.ts +11 -0
- package/dist/runtime/components/ui/progress/Progress.vue +32 -0
- package/dist/runtime/components/ui/progress/Progress.vue.d.ts +11 -0
- package/dist/runtime/components/ui/progress/index.d.ts +1 -0
- package/dist/runtime/components/ui/progress/index.js +1 -0
- package/dist/runtime/composables/useOverlay.d.ts +35 -0
- package/dist/runtime/composables/useOverlay.js +52 -0
- package/dist/runtime/share/event-bus.d.ts +24 -2
- package/dist/runtime/share/event-bus.js +21 -3
- package/dist/runtime/share/interpolate.d.ts +12 -0
- package/dist/runtime/share/interpolate.js +18 -0
- package/dist/runtime/share/page-target.d.ts +16 -0
- package/dist/runtime/share/page-target.js +1 -0
- package/dist/runtime/share/schema-meta.d.ts +5 -0
- package/dist/runtime/share/schema-meta.js +48 -0
- package/dist/runtime/style.css +1 -1
- package/dist/runtime/vendor/cel-js/CLAUDE.md +2 -0
- package/dist/runtime/vendor/cel-js/PROMPT.md +9 -0
- package/dist/runtime/vendor/cel-js/lib/functions.js +8 -0
- package/package.json +1 -1
- package/dist/preview/assets/badge-CY7N4tzE.js +0 -1
- package/dist/preview/assets/config-B6xtqPys.js +0 -1
- package/dist/preview/assets/config-BI9O-CMH.js +0 -1
- package/dist/preview/assets/config-C9LThFFM.js +0 -1
- package/dist/preview/assets/config-CdTo0RnO.js +0 -1
- package/dist/preview/assets/config-Ch-uzD4K.js +0 -1
- package/dist/preview/assets/config-Cou30eMf.js +0 -1
- package/dist/preview/assets/config-CqhZtEzh.js +0 -1
- package/dist/preview/assets/config-D0e-dO3Y.js +0 -1
- package/dist/preview/assets/config-D2iQ1cHu.js +0 -1
- package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js +0 -1
- package/dist/preview/assets/index-BTleLwMz.js +0 -1
- package/dist/preview/assets/index-COSjWreD.css +0 -1
- package/dist/preview/assets/item-Cjwnz068.js +0 -1
- package/dist/preview/assets/runtime-BHXxRkau.js +0 -1
- package/dist/preview/assets/runtime-BhLcYJQW.js +0 -1
- package/dist/preview/assets/runtime-Bi-TAMSI.js +0 -1
- package/dist/preview/assets/runtime-Bxhg8fck.js +0 -1
- package/dist/preview/assets/runtime-CiHPMpFW.js +0 -1
- package/dist/preview/assets/runtime-DLY_TObR.js +0 -1
- package/dist/preview/assets/runtime-ncpmo94E.js +0 -1
package/dist/mcp.mjs
CHANGED
|
@@ -11957,10 +11957,10 @@ class Protocol {
|
|
|
11957
11957
|
}
|
|
11958
11958
|
let taskId;
|
|
11959
11959
|
try {
|
|
11960
|
-
const
|
|
11961
|
-
if (
|
|
11962
|
-
taskId =
|
|
11963
|
-
yield { type: "taskCreated", task:
|
|
11960
|
+
const createResult2 = await this.request(request, CreateTaskResultSchema, options);
|
|
11961
|
+
if (createResult2.task) {
|
|
11962
|
+
taskId = createResult2.task.taskId;
|
|
11963
|
+
yield { type: "taskCreated", task: createResult2.task };
|
|
11964
11964
|
} else {
|
|
11965
11965
|
throw new McpError(ErrorCode.InternalError, "Task creation did not return a task");
|
|
11966
11966
|
}
|
|
@@ -15509,14 +15509,14 @@ function requireCompile() {
|
|
|
15509
15509
|
}
|
|
15510
15510
|
const $id$1 = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#";
|
|
15511
15511
|
const description = "Meta-schema for $data reference (JSON AnySchema extension proposal)";
|
|
15512
|
-
const type$
|
|
15512
|
+
const type$1l = "object";
|
|
15513
15513
|
const required$1 = ["$data"];
|
|
15514
15514
|
const properties$2 = { "$data": { "type": "string", "anyOf": [{ "format": "relative-json-pointer" }, { "format": "json-pointer" }] } };
|
|
15515
15515
|
const additionalProperties$1 = false;
|
|
15516
15516
|
const require$$9 = {
|
|
15517
15517
|
$id: $id$1,
|
|
15518
15518
|
description,
|
|
15519
|
-
type: type$
|
|
15519
|
+
type: type$1l,
|
|
15520
15520
|
required: required$1,
|
|
15521
15521
|
properties: properties$2,
|
|
15522
15522
|
additionalProperties: additionalProperties$1
|
|
@@ -18516,14 +18516,14 @@ function requireFormat() {
|
|
|
18516
18516
|
format$7.default = format2;
|
|
18517
18517
|
return format$7;
|
|
18518
18518
|
}
|
|
18519
|
-
var metadata$
|
|
18519
|
+
var metadata$1j = {};
|
|
18520
18520
|
var hasRequiredMetadata;
|
|
18521
18521
|
function requireMetadata() {
|
|
18522
|
-
if (hasRequiredMetadata) return metadata$
|
|
18522
|
+
if (hasRequiredMetadata) return metadata$1j;
|
|
18523
18523
|
hasRequiredMetadata = 1;
|
|
18524
|
-
Object.defineProperty(metadata$
|
|
18525
|
-
metadata$
|
|
18526
|
-
metadata$
|
|
18524
|
+
Object.defineProperty(metadata$1j, "__esModule", { value: true });
|
|
18525
|
+
metadata$1j.contentVocabulary = metadata$1j.metadataVocabulary = void 0;
|
|
18526
|
+
metadata$1j.metadataVocabulary = [
|
|
18527
18527
|
"title",
|
|
18528
18528
|
"description",
|
|
18529
18529
|
"default",
|
|
@@ -18532,12 +18532,12 @@ function requireMetadata() {
|
|
|
18532
18532
|
"writeOnly",
|
|
18533
18533
|
"examples"
|
|
18534
18534
|
];
|
|
18535
|
-
metadata$
|
|
18535
|
+
metadata$1j.contentVocabulary = [
|
|
18536
18536
|
"contentMediaType",
|
|
18537
18537
|
"contentEncoding",
|
|
18538
18538
|
"contentSchema"
|
|
18539
18539
|
];
|
|
18540
|
-
return metadata$
|
|
18540
|
+
return metadata$1j;
|
|
18541
18541
|
}
|
|
18542
18542
|
var hasRequiredDraft7;
|
|
18543
18543
|
function requireDraft7() {
|
|
@@ -18683,14 +18683,14 @@ const $schema = "http://json-schema.org/draft-07/schema#";
|
|
|
18683
18683
|
const $id = "http://json-schema.org/draft-07/schema#";
|
|
18684
18684
|
const title = "Core schema meta-schema";
|
|
18685
18685
|
const definitions = { "schemaArray": { "type": "array", "minItems": 1, "items": { "$ref": "#" } }, "nonNegativeInteger": { "type": "integer", "minimum": 0 }, "nonNegativeIntegerDefault0": { "allOf": [{ "$ref": "#/definitions/nonNegativeInteger" }, { "default": 0 }] }, "simpleTypes": { "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] }, "stringArray": { "type": "array", "items": { "type": "string" }, "uniqueItems": true, "default": [] } };
|
|
18686
|
-
const type$
|
|
18686
|
+
const type$1k = ["object", "boolean"];
|
|
18687
18687
|
const properties = { "$id": { "type": "string", "format": "uri-reference" }, "$schema": { "type": "string", "format": "uri" }, "$ref": { "type": "string", "format": "uri-reference" }, "$comment": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "default": true, "readOnly": { "type": "boolean", "default": false }, "examples": { "type": "array", "items": true }, "multipleOf": { "type": "number", "exclusiveMinimum": 0 }, "maximum": { "type": "number" }, "exclusiveMaximum": { "type": "number" }, "minimum": { "type": "number" }, "exclusiveMinimum": { "type": "number" }, "maxLength": { "$ref": "#/definitions/nonNegativeInteger" }, "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" }, "pattern": { "type": "string", "format": "regex" }, "additionalItems": { "$ref": "#" }, "items": { "anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/schemaArray" }], "default": true }, "maxItems": { "$ref": "#/definitions/nonNegativeInteger" }, "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" }, "uniqueItems": { "type": "boolean", "default": false }, "contains": { "$ref": "#" }, "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" }, "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" }, "required": { "$ref": "#/definitions/stringArray" }, "additionalProperties": { "$ref": "#" }, "definitions": { "type": "object", "additionalProperties": { "$ref": "#" }, "default": {} }, "properties": { "type": "object", "additionalProperties": { "$ref": "#" }, "default": {} }, "patternProperties": { "type": "object", "additionalProperties": { "$ref": "#" }, "propertyNames": { "format": "regex" }, "default": {} }, "dependencies": { "type": "object", "additionalProperties": { "anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/stringArray" }] } }, "propertyNames": { "$ref": "#" }, "const": true, "enum": { "type": "array", "items": true, "minItems": 1, "uniqueItems": true }, "type": { "anyOf": [{ "$ref": "#/definitions/simpleTypes" }, { "type": "array", "items": { "$ref": "#/definitions/simpleTypes" }, "minItems": 1, "uniqueItems": true }] }, "format": { "type": "string" }, "contentMediaType": { "type": "string" }, "contentEncoding": { "type": "string" }, "if": { "$ref": "#" }, "then": { "$ref": "#" }, "else": { "$ref": "#" }, "allOf": { "$ref": "#/definitions/schemaArray" }, "anyOf": { "$ref": "#/definitions/schemaArray" }, "oneOf": { "$ref": "#/definitions/schemaArray" }, "not": { "$ref": "#" } };
|
|
18688
18688
|
const require$$3 = {
|
|
18689
18689
|
$schema,
|
|
18690
18690
|
$id,
|
|
18691
18691
|
title,
|
|
18692
18692
|
definitions,
|
|
18693
|
-
type: type$
|
|
18693
|
+
type: type$1k,
|
|
18694
18694
|
properties,
|
|
18695
18695
|
"default": true
|
|
18696
18696
|
};
|
|
@@ -40981,6 +40981,14 @@ function registerFunctions(registry2) {
|
|
|
40981
40981
|
"list.enumerate(): list<map<string, dyn>>",
|
|
40982
40982
|
(v) => v.map((value, i) => ({ index: Decimal.from(i), value }))
|
|
40983
40983
|
);
|
|
40984
|
+
functionOverload(
|
|
40985
|
+
"list.slice(number): list<dyn>",
|
|
40986
|
+
(v, start2) => v.slice(toNum(start2))
|
|
40987
|
+
);
|
|
40988
|
+
functionOverload(
|
|
40989
|
+
"list.slice(number, number): list<dyn>",
|
|
40990
|
+
(v, start2, end2) => v.slice(toNum(start2), toNum(end2))
|
|
40991
|
+
);
|
|
40984
40992
|
functionOverload("bytes(string): bytes", (v) => ByteOpts.fromString(v));
|
|
40985
40993
|
functionOverload("bytes(bytes): bytes", identity2);
|
|
40986
40994
|
functionOverload("number(number): number", (v) => Decimal.from(v));
|
|
@@ -81600,7 +81608,21 @@ const Trigger = Struct({
|
|
|
81600
81608
|
}),
|
|
81601
81609
|
operation: String$.annotations({
|
|
81602
81610
|
description: "目标组件能力清单中的操作 ID"
|
|
81603
|
-
})
|
|
81611
|
+
}),
|
|
81612
|
+
// Parameterized operations carry their version + configured params on the
|
|
81613
|
+
// row. Both are optional and absent for param-less ops (close / validate /
|
|
81614
|
+
// refetch), so every pre-existing `{ target, operation }` trigger stays
|
|
81615
|
+
// valid — this additive shape is what keeps stored configs loading. `params`
|
|
81616
|
+
// is opaque here: it is validated against the *target operation's* own
|
|
81617
|
+
// schema (a cross-reference `target → type → operation`) in the trigger
|
|
81618
|
+
// editor, not by this row schema, since the schema lives on the host's
|
|
81619
|
+
// manifest rather than on the row.
|
|
81620
|
+
compatibilityDate: optional(String$.annotations({
|
|
81621
|
+
description: "参数化操作的兼容性日期;无参操作省略"
|
|
81622
|
+
})),
|
|
81623
|
+
params: optional(Unknown.annotations({
|
|
81624
|
+
description: "操作参数,按目标操作的 schema 校验"
|
|
81625
|
+
}))
|
|
81604
81626
|
}).annotations({
|
|
81605
81627
|
title: "Trigger",
|
|
81606
81628
|
description: "一条向上冒泡的操作请求"
|
|
@@ -81615,13 +81637,13 @@ function md(...args2) {
|
|
|
81615
81637
|
const indent = (original.startsWith("\n") ? original.slice(1) : original).split("\n", 1)[0]?.match(/^(\s*)/)?.[1]?.length ?? 0;
|
|
81616
81638
|
return original.trim().replaceAll("\\`", "`").split("\n").map((line) => line.replace(new RegExp(`^${String.raw`\s`.repeat(indent)}`), "")).join("\n");
|
|
81617
81639
|
}
|
|
81618
|
-
const type$
|
|
81619
|
-
const compatibilityDate$
|
|
81620
|
-
const metadata$
|
|
81640
|
+
const type$1j = "com.shwfed.actions.button.http.request.json.confirm";
|
|
81641
|
+
const compatibilityDate$1j = "2026-04-18";
|
|
81642
|
+
const metadata$1i = {
|
|
81621
81643
|
name: "网络请求(JSON + 确认)",
|
|
81622
81644
|
icon: "fluent:shield-checkmark-20-regular"
|
|
81623
81645
|
};
|
|
81624
|
-
function schema$
|
|
81646
|
+
function schema$1i(configure) {
|
|
81625
81647
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
81626
81648
|
const CelMessage = Expression({
|
|
81627
81649
|
configure: (env) => {
|
|
@@ -81633,8 +81655,8 @@ function schema$1h(configure) {
|
|
|
81633
81655
|
resultType: "string"
|
|
81634
81656
|
});
|
|
81635
81657
|
return Struct({
|
|
81636
|
-
type: Literal2(type$
|
|
81637
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81658
|
+
type: Literal2(type$1j),
|
|
81659
|
+
compatibilityDate: Literal2(compatibilityDate$1j),
|
|
81638
81660
|
expression: CelHttpRequest.annotations({
|
|
81639
81661
|
title: "请求",
|
|
81640
81662
|
description: md`
|
|
@@ -81700,18 +81722,21 @@ function schema$1h(configure) {
|
|
|
81700
81722
|
}
|
|
81701
81723
|
const __vite_glob_0_0$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81702
81724
|
__proto__: null,
|
|
81703
|
-
compatibilityDate: compatibilityDate$
|
|
81704
|
-
metadata: metadata$
|
|
81705
|
-
schema: schema$
|
|
81706
|
-
type: type$
|
|
81725
|
+
compatibilityDate: compatibilityDate$1j,
|
|
81726
|
+
metadata: metadata$1i,
|
|
81727
|
+
schema: schema$1i,
|
|
81728
|
+
type: type$1j
|
|
81707
81729
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81708
|
-
const
|
|
81709
|
-
const
|
|
81710
|
-
const
|
|
81730
|
+
const PAGE_TARGET_ID = "00000000-0000-0000-0000-000000000000";
|
|
81731
|
+
const type$1i = "com.shwfed.operation.alert";
|
|
81732
|
+
const compatibilityDate$1i = "2026-06-09";
|
|
81733
|
+
const type$1h = "com.shwfed.actions.button.http.request.json";
|
|
81734
|
+
const compatibilityDate$1h = "2026-04-18";
|
|
81735
|
+
const metadata$1h = {
|
|
81711
81736
|
name: "网络请求(JSON)",
|
|
81712
81737
|
icon: "fluent:cloud-arrow-up-20-regular"
|
|
81713
81738
|
};
|
|
81714
|
-
function schema$
|
|
81739
|
+
function schema$1h(configure) {
|
|
81715
81740
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
81716
81741
|
const CelMessage = Expression({
|
|
81717
81742
|
configure: (env) => {
|
|
@@ -81723,8 +81748,8 @@ function schema$1g(configure) {
|
|
|
81723
81748
|
resultType: "string"
|
|
81724
81749
|
});
|
|
81725
81750
|
return Struct({
|
|
81726
|
-
type: Literal2(type$
|
|
81727
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81751
|
+
type: Literal2(type$1h),
|
|
81752
|
+
compatibilityDate: Literal2(compatibilityDate$1h),
|
|
81728
81753
|
expression: CelHttpRequest.annotations({
|
|
81729
81754
|
title: "请求",
|
|
81730
81755
|
description: md`
|
|
@@ -81776,23 +81801,55 @@ function schema$1g(configure) {
|
|
|
81776
81801
|
description: "点击后直接发起 HTTP 请求"
|
|
81777
81802
|
});
|
|
81778
81803
|
}
|
|
81804
|
+
const migrateFrom$f = [
|
|
81805
|
+
{ type: "com.shwfed.actions.button.http.request.json.confirm", compatibilityDate: compatibilityDate$1h }
|
|
81806
|
+
];
|
|
81807
|
+
const migrate$g = (prev) => try_({
|
|
81808
|
+
try: () => {
|
|
81809
|
+
if (!prev || typeof prev !== "object") {
|
|
81810
|
+
throw new Error("网络请求(JSON)迁移失败:原值不是对象");
|
|
81811
|
+
}
|
|
81812
|
+
const { type: _t, compatibilityDate: _c, markdown, icon, color, before, ...rest } = prev;
|
|
81813
|
+
const params = {
|
|
81814
|
+
message: markdown ?? [{ locale: "zh", message: "" }]
|
|
81815
|
+
};
|
|
81816
|
+
if (icon !== void 0) params.icon = icon;
|
|
81817
|
+
if (color !== void 0) params.color = color;
|
|
81818
|
+
const alertTrigger = {
|
|
81819
|
+
target: PAGE_TARGET_ID,
|
|
81820
|
+
operation: type$1i,
|
|
81821
|
+
compatibilityDate: compatibilityDate$1i,
|
|
81822
|
+
params
|
|
81823
|
+
};
|
|
81824
|
+
const prevBefore = Array.isArray(before) ? before : [];
|
|
81825
|
+
return {
|
|
81826
|
+
...rest,
|
|
81827
|
+
type: type$1h,
|
|
81828
|
+
compatibilityDate: compatibilityDate$1h,
|
|
81829
|
+
before: [...prevBefore, alertTrigger]
|
|
81830
|
+
};
|
|
81831
|
+
},
|
|
81832
|
+
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
81833
|
+
});
|
|
81779
81834
|
const __vite_glob_0_1$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81780
81835
|
__proto__: null,
|
|
81781
|
-
compatibilityDate: compatibilityDate$
|
|
81782
|
-
metadata: metadata$
|
|
81783
|
-
|
|
81784
|
-
|
|
81836
|
+
compatibilityDate: compatibilityDate$1h,
|
|
81837
|
+
metadata: metadata$1h,
|
|
81838
|
+
migrate: migrate$g,
|
|
81839
|
+
migrateFrom: migrateFrom$f,
|
|
81840
|
+
schema: schema$1h,
|
|
81841
|
+
type: type$1h
|
|
81785
81842
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81786
|
-
const type$
|
|
81787
|
-
const compatibilityDate$
|
|
81788
|
-
const metadata$
|
|
81843
|
+
const type$1g = "com.shwfed.actions.button.prototype";
|
|
81844
|
+
const compatibilityDate$1g = "2026-04-18";
|
|
81845
|
+
const metadata$1g = {
|
|
81789
81846
|
name: "原型",
|
|
81790
81847
|
icon: "fluent:predictions-20-regular"
|
|
81791
81848
|
};
|
|
81792
|
-
function schema$
|
|
81849
|
+
function schema$1g(_configure) {
|
|
81793
81850
|
return Struct({
|
|
81794
|
-
type: Literal2(type$
|
|
81795
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81851
|
+
type: Literal2(type$1g),
|
|
81852
|
+
compatibilityDate: Literal2(compatibilityDate$1g)
|
|
81796
81853
|
}).annotations({
|
|
81797
81854
|
title: "PrototypeAction",
|
|
81798
81855
|
description: "点击无副作用的原型按钮,可被一次性转换为其它类型"
|
|
@@ -81800,23 +81857,23 @@ function schema$1f(_configure) {
|
|
|
81800
81857
|
}
|
|
81801
81858
|
const __vite_glob_0_2$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81802
81859
|
__proto__: null,
|
|
81803
|
-
compatibilityDate: compatibilityDate$
|
|
81804
|
-
metadata: metadata$
|
|
81805
|
-
schema: schema$
|
|
81806
|
-
type: type$
|
|
81860
|
+
compatibilityDate: compatibilityDate$1g,
|
|
81861
|
+
metadata: metadata$1g,
|
|
81862
|
+
schema: schema$1g,
|
|
81863
|
+
type: type$1g
|
|
81807
81864
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81808
|
-
const type$
|
|
81809
|
-
const compatibilityDate$
|
|
81810
|
-
const metadata$
|
|
81865
|
+
const type$1f = "com.shwfed.actions.button.navigation";
|
|
81866
|
+
const compatibilityDate$1f = "2026-04-21";
|
|
81867
|
+
const metadata$1f = {
|
|
81811
81868
|
name: "导航",
|
|
81812
81869
|
icon: "fluent:link-20-regular"
|
|
81813
81870
|
};
|
|
81814
81871
|
const Mode = Literal2("_self", "_blank");
|
|
81815
|
-
function schema$
|
|
81872
|
+
function schema$1f(configure) {
|
|
81816
81873
|
const CelUrl = Expression({ configure, resultType: "string" });
|
|
81817
81874
|
return Struct({
|
|
81818
|
-
type: Literal2(type$
|
|
81819
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81875
|
+
type: Literal2(type$1f),
|
|
81876
|
+
compatibilityDate: Literal2(compatibilityDate$1f),
|
|
81820
81877
|
url: CelUrl.annotations({
|
|
81821
81878
|
title: "链接",
|
|
81822
81879
|
description: "点击后将打开的链接,返回 `string`"
|
|
@@ -81832,10 +81889,10 @@ function schema$1e(configure) {
|
|
|
81832
81889
|
}
|
|
81833
81890
|
const __vite_glob_0_3$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81834
81891
|
__proto__: null,
|
|
81835
|
-
compatibilityDate: compatibilityDate$
|
|
81836
|
-
metadata: metadata$
|
|
81837
|
-
schema: schema$
|
|
81838
|
-
type: type$
|
|
81892
|
+
compatibilityDate: compatibilityDate$1f,
|
|
81893
|
+
metadata: metadata$1f,
|
|
81894
|
+
schema: schema$1f,
|
|
81895
|
+
type: type$1f
|
|
81839
81896
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81840
81897
|
const TrackCount = Number$.pipe(int(), positive());
|
|
81841
81898
|
const GridCoord = Number$.pipe(int(), positive());
|
|
@@ -81971,9 +82028,9 @@ function registerBlockRef(configure, ref2) {
|
|
|
81971
82028
|
function lookupBlockRef(configure) {
|
|
81972
82029
|
return blockRefCache.get(configure);
|
|
81973
82030
|
}
|
|
81974
|
-
const type$
|
|
81975
|
-
const compatibilityDate$
|
|
81976
|
-
const metadata$
|
|
82031
|
+
const type$1e = "com.shwfed.actions.button.modal.layout";
|
|
82032
|
+
const compatibilityDate$1e = "2026-05-11";
|
|
82033
|
+
const metadata$1e = {
|
|
81977
82034
|
name: "模态窗口",
|
|
81978
82035
|
icon: "fluent:window-edit-20-regular",
|
|
81979
82036
|
drillable: true,
|
|
@@ -81984,12 +82041,12 @@ const metadata$1d = {
|
|
|
81984
82041
|
const CssLength = String$.pipe(
|
|
81985
82042
|
filter((s) => s.trim().length > 0 || "不能为空字符串")
|
|
81986
82043
|
);
|
|
81987
|
-
function schema$
|
|
82044
|
+
function schema$1e(configure) {
|
|
81988
82045
|
const blockUnion = lookupBlockRef(configure) ?? Unknown;
|
|
81989
82046
|
const ModalSlot = Slot(blockUnion, configure);
|
|
81990
82047
|
return Struct({
|
|
81991
|
-
type: Literal2(type$
|
|
81992
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82048
|
+
type: Literal2(type$1e),
|
|
82049
|
+
compatibilityDate: Literal2(compatibilityDate$1e),
|
|
81993
82050
|
modalTitle: optional(Locale.annotations({
|
|
81994
82051
|
title: "弹窗标题",
|
|
81995
82052
|
description: "弹窗顶部展示的本地化标题,支持行内 Markdown;不填则回退使用按钮自身的名称"
|
|
@@ -82018,22 +82075,22 @@ function defaultBody$9() {
|
|
|
82018
82075
|
}
|
|
82019
82076
|
const __vite_glob_0_4$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82020
82077
|
__proto__: null,
|
|
82021
|
-
compatibilityDate: compatibilityDate$
|
|
82078
|
+
compatibilityDate: compatibilityDate$1e,
|
|
82022
82079
|
defaultBody: defaultBody$9,
|
|
82023
|
-
metadata: metadata$
|
|
82024
|
-
schema: schema$
|
|
82025
|
-
type: type$
|
|
82080
|
+
metadata: metadata$1e,
|
|
82081
|
+
schema: schema$1e,
|
|
82082
|
+
type: type$1e
|
|
82026
82083
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82027
|
-
const type$
|
|
82028
|
-
const compatibilityDate$
|
|
82029
|
-
const metadata$
|
|
82084
|
+
const type$1d = "com.shwfed.actions.button.event.dispatch";
|
|
82085
|
+
const compatibilityDate$1d = "2026-05-15";
|
|
82086
|
+
const metadata$1d = {
|
|
82030
82087
|
name: "触发事件",
|
|
82031
82088
|
icon: "fluent:flash-20-regular"
|
|
82032
82089
|
};
|
|
82033
|
-
function schema$
|
|
82090
|
+
function schema$1d(_configure) {
|
|
82034
82091
|
return Struct({
|
|
82035
|
-
type: Literal2(type$
|
|
82036
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82092
|
+
type: Literal2(type$1d),
|
|
82093
|
+
compatibilityDate: Literal2(compatibilityDate$1d),
|
|
82037
82094
|
// This button's entire behaviour: the op-requests it bubbles up the
|
|
82038
82095
|
// component tree on click. Stored on the button itself — there is no
|
|
82039
82096
|
// host-level trigger field any more.
|
|
@@ -82044,14 +82101,14 @@ function schema$1c(_configure) {
|
|
|
82044
82101
|
}
|
|
82045
82102
|
const __vite_glob_0_5$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82046
82103
|
__proto__: null,
|
|
82047
|
-
compatibilityDate: compatibilityDate$
|
|
82048
|
-
metadata: metadata$
|
|
82049
|
-
schema: schema$
|
|
82050
|
-
type: type$
|
|
82104
|
+
compatibilityDate: compatibilityDate$1d,
|
|
82105
|
+
metadata: metadata$1d,
|
|
82106
|
+
schema: schema$1d,
|
|
82107
|
+
type: type$1d
|
|
82051
82108
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82052
|
-
const type$
|
|
82053
|
-
const compatibilityDate$
|
|
82054
|
-
const metadata$
|
|
82109
|
+
const type$1c = "com.shwfed.actions.button.http.download";
|
|
82110
|
+
const compatibilityDate$1c = "2026-05-21";
|
|
82111
|
+
const metadata$1c = {
|
|
82055
82112
|
name: "下载文件",
|
|
82056
82113
|
icon: "fluent:arrow-download-20-regular"
|
|
82057
82114
|
};
|
|
@@ -82066,13 +82123,13 @@ function configureWithJson$4(configure) {
|
|
|
82066
82123
|
env.registerVariable("json", JSON_VAR$5.type, { description: JSON_VAR$5.description });
|
|
82067
82124
|
};
|
|
82068
82125
|
}
|
|
82069
|
-
function schema$
|
|
82126
|
+
function schema$1c(configure) {
|
|
82070
82127
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
82071
82128
|
const CelDownloadRequest = Expression({ configure: configureWithJson$4(configure), resultType: "HttpRequest" });
|
|
82072
82129
|
const CelMessage = Expression({ configure: configureWithJson$4(configure), resultType: "string" });
|
|
82073
82130
|
return Struct({
|
|
82074
|
-
type: Literal2(type$
|
|
82075
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82131
|
+
type: Literal2(type$1c),
|
|
82132
|
+
compatibilityDate: Literal2(compatibilityDate$1c),
|
|
82076
82133
|
template: Struct({
|
|
82077
82134
|
request: CelHttpRequest.annotations({
|
|
82078
82135
|
title: "请求",
|
|
@@ -82135,25 +82192,25 @@ function schema$1b(configure) {
|
|
|
82135
82192
|
const __vite_glob_0_6$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82136
82193
|
__proto__: null,
|
|
82137
82194
|
JSON_VAR: JSON_VAR$5,
|
|
82138
|
-
compatibilityDate: compatibilityDate$
|
|
82139
|
-
metadata: metadata$
|
|
82140
|
-
schema: schema$
|
|
82141
|
-
type: type$
|
|
82195
|
+
compatibilityDate: compatibilityDate$1c,
|
|
82196
|
+
metadata: metadata$1c,
|
|
82197
|
+
schema: schema$1c,
|
|
82198
|
+
type: type$1c
|
|
82142
82199
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82143
|
-
const type$
|
|
82144
|
-
const compatibilityDate$
|
|
82145
|
-
const metadata$
|
|
82200
|
+
const type$1b = "com.shwfed.actions.button.state.write";
|
|
82201
|
+
const compatibilityDate$1b = "2026-05-24";
|
|
82202
|
+
const metadata$1b = {
|
|
82146
82203
|
name: "写入表单状态",
|
|
82147
82204
|
icon: "fluent:document-edit-20-regular"
|
|
82148
82205
|
};
|
|
82149
|
-
function schema$
|
|
82206
|
+
function schema$1b(configure) {
|
|
82150
82207
|
const CelRecord = Expression({
|
|
82151
82208
|
configure,
|
|
82152
82209
|
resultType: (t) => t === "dyn" || t.startsWith("map")
|
|
82153
82210
|
});
|
|
82154
82211
|
return Struct({
|
|
82155
|
-
type: Literal2(type$
|
|
82156
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82212
|
+
type: Literal2(type$1b),
|
|
82213
|
+
compatibilityDate: Literal2(compatibilityDate$1b),
|
|
82157
82214
|
expression: CelRecord.annotations({
|
|
82158
82215
|
title: "写入值",
|
|
82159
82216
|
description: md`
|
|
@@ -82172,6 +82229,95 @@ function schema$1a(configure) {
|
|
|
82172
82229
|
});
|
|
82173
82230
|
}
|
|
82174
82231
|
const __vite_glob_0_7$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82232
|
+
__proto__: null,
|
|
82233
|
+
compatibilityDate: compatibilityDate$1b,
|
|
82234
|
+
metadata: metadata$1b,
|
|
82235
|
+
schema: schema$1b,
|
|
82236
|
+
type: type$1b
|
|
82237
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
82238
|
+
const type$1a = "com.shwfed.actions.button.http.request.json.batch";
|
|
82239
|
+
const compatibilityDate$1a = "2026-06-08";
|
|
82240
|
+
const metadata$1a = {
|
|
82241
|
+
name: "批量网络请求(JSON)",
|
|
82242
|
+
icon: "fluent:cloud-arrow-up-20-regular"
|
|
82243
|
+
};
|
|
82244
|
+
const isHttpRequestList = (t) => t === "dyn" || t === "list" || t === "list<dyn>" || t === "list<HttpRequest>";
|
|
82245
|
+
function schema$1a(configure) {
|
|
82246
|
+
const CelHttpRequestList = Expression({ configure, resultType: isHttpRequestList });
|
|
82247
|
+
const CelMessage = Expression({
|
|
82248
|
+
configure: (env) => {
|
|
82249
|
+
configure(env);
|
|
82250
|
+
env.registerVariable("jsons", "list<dyn>", {
|
|
82251
|
+
description: "HTTP 响应体列表(已解析 JSON,仅成功项,按发送顺序)"
|
|
82252
|
+
});
|
|
82253
|
+
},
|
|
82254
|
+
resultType: "string"
|
|
82255
|
+
});
|
|
82256
|
+
const CelResult = Expression({
|
|
82257
|
+
configure: (env) => {
|
|
82258
|
+
configure(env);
|
|
82259
|
+
env.registerVariable("json", "dyn", {
|
|
82260
|
+
description: "HTTP 响应体(已解析 JSON),当前这一条响应"
|
|
82261
|
+
});
|
|
82262
|
+
},
|
|
82263
|
+
resultType: "bool"
|
|
82264
|
+
});
|
|
82265
|
+
return Struct({
|
|
82266
|
+
type: Literal2(type$1a),
|
|
82267
|
+
compatibilityDate: Literal2(compatibilityDate$1a),
|
|
82268
|
+
expression: CelHttpRequestList.annotations({
|
|
82269
|
+
title: "请求列表",
|
|
82270
|
+
description: md`
|
|
82271
|
+
点击后将立即被求值,返回一个 \`HttpRequest\` 列表。调度器将按列表顺序逐个发起请求,
|
|
82272
|
+
并在弹窗中显示进度。
|
|
82273
|
+
`
|
|
82274
|
+
}),
|
|
82275
|
+
before: optional(Triggers.annotations({
|
|
82276
|
+
title: "请求前",
|
|
82277
|
+
description: md`
|
|
82278
|
+
整批请求发起前按列表顺序执行的操作。任一操作中止(例如表单校验未通过)将取消本次批量请求。
|
|
82279
|
+
|
|
82280
|
+
放在表单里的提交按钮应在此处首先触发所在表单的「校验」操作,使校验成为显式的提交前步骤。
|
|
82281
|
+
`
|
|
82282
|
+
})),
|
|
82283
|
+
markdown: optional(Locale.annotations({
|
|
82284
|
+
title: "进度信息",
|
|
82285
|
+
description: md`
|
|
82286
|
+
进度弹窗内显示的信息,支持 \`{{ expression }}\` 插值。可用变量:
|
|
82287
|
+
\`total\`(请求总数)、\`succeeded\`(成功数)、\`failure\`(失败数)。
|
|
82288
|
+
|
|
82289
|
+
例:\`已处理 {{ succeeded + failure }} / {{ total }}\`。不配置则弹窗只显示进度条。
|
|
82290
|
+
`
|
|
82291
|
+
})),
|
|
82292
|
+
continueOnError: optional(Boolean$.annotations({
|
|
82293
|
+
title: "失败时继续",
|
|
82294
|
+
description: md`
|
|
82295
|
+
开启后,单个请求失败不会中断整批 —— 失败项被跳过,继续发起后续请求。
|
|
82296
|
+
缺省(关闭)时,遇到第一个失败即终止整批。
|
|
82297
|
+
`
|
|
82298
|
+
})),
|
|
82299
|
+
messageExpression: optional(CelMessage.annotations({
|
|
82300
|
+
title: "消息",
|
|
82301
|
+
description: md`
|
|
82302
|
+
整批完成后对成功响应体列表 \`jsons\` 求值,返回 \`string\`,作为 toast 显示。
|
|
82303
|
+
无失败时为成功样式,否则为错误样式。不配置则不显示。
|
|
82304
|
+
`
|
|
82305
|
+
})),
|
|
82306
|
+
resultExpression: optional(CelResult.annotations({
|
|
82307
|
+
title: "执行结果",
|
|
82308
|
+
description: md`
|
|
82309
|
+
对**每一条**响应体 \`json\` 求值,返回 \`bool\` —— \`true\` 视为该条成功、\`false\` 视为失败。
|
|
82310
|
+
不配置时,任何未报错的响应都视为成功。
|
|
82311
|
+
|
|
82312
|
+
失败会计入进度信息的 \`failure\`,并在未开启「失败时继续」时终止整批。
|
|
82313
|
+
`
|
|
82314
|
+
}))
|
|
82315
|
+
}).annotations({
|
|
82316
|
+
title: "HttpRequestBatchAction",
|
|
82317
|
+
description: "点击后逐个发起一批 HTTP 请求,并显示进度弹窗"
|
|
82318
|
+
});
|
|
82319
|
+
}
|
|
82320
|
+
const __vite_glob_0_8$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82175
82321
|
__proto__: null,
|
|
82176
82322
|
compatibilityDate: compatibilityDate$1a,
|
|
82177
82323
|
metadata: metadata$1a,
|
|
@@ -82212,6 +82358,285 @@ const __vite_glob_3_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
82212
82358
|
schema: schema$19,
|
|
82213
82359
|
type: type$19
|
|
82214
82360
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82361
|
+
function createResult(...args2) {
|
|
82362
|
+
if (args2.length === 0) {
|
|
82363
|
+
return none$4();
|
|
82364
|
+
}
|
|
82365
|
+
return some(args2[0]);
|
|
82366
|
+
}
|
|
82367
|
+
function createOverlayRuntime() {
|
|
82368
|
+
const definitions2 = vueExports.reactive({});
|
|
82369
|
+
const sessions = vueExports.ref([]);
|
|
82370
|
+
const alerts = vueExports.ref([]);
|
|
82371
|
+
const progress = vueExports.ref([]);
|
|
82372
|
+
function openProgress(input) {
|
|
82373
|
+
return sync$1(() => {
|
|
82374
|
+
const progressId = crypto.randomUUID();
|
|
82375
|
+
progress.value.push({
|
|
82376
|
+
progressId,
|
|
82377
|
+
open: true,
|
|
82378
|
+
total: input.total,
|
|
82379
|
+
done: 0,
|
|
82380
|
+
content: input.content,
|
|
82381
|
+
cancellable: input.cancellable,
|
|
82382
|
+
cancelled: false,
|
|
82383
|
+
finished: false,
|
|
82384
|
+
failed: false
|
|
82385
|
+
});
|
|
82386
|
+
const live = progress.value[progress.value.length - 1];
|
|
82387
|
+
return {
|
|
82388
|
+
progressId,
|
|
82389
|
+
advance: sync$1(() => {
|
|
82390
|
+
live.done += 1;
|
|
82391
|
+
}),
|
|
82392
|
+
setContent: (content) => sync$1(() => {
|
|
82393
|
+
live.content = content;
|
|
82394
|
+
}),
|
|
82395
|
+
isCancelled: sync$1(() => live.cancelled),
|
|
82396
|
+
markFailed: sync$1(() => {
|
|
82397
|
+
live.failed = true;
|
|
82398
|
+
}),
|
|
82399
|
+
finish: sync$1(() => {
|
|
82400
|
+
live.finished = true;
|
|
82401
|
+
})
|
|
82402
|
+
};
|
|
82403
|
+
});
|
|
82404
|
+
}
|
|
82405
|
+
function cancelProgress(progressId) {
|
|
82406
|
+
const session = progress.value.find((p) => p.progressId === progressId);
|
|
82407
|
+
if (session) {
|
|
82408
|
+
session.cancelled = true;
|
|
82409
|
+
}
|
|
82410
|
+
}
|
|
82411
|
+
function closeProgress(progressId) {
|
|
82412
|
+
const index = progress.value.findIndex((p) => p.progressId === progressId);
|
|
82413
|
+
if (index >= 0) {
|
|
82414
|
+
progress.value.splice(index, 1);
|
|
82415
|
+
}
|
|
82416
|
+
}
|
|
82417
|
+
function openAlert(input) {
|
|
82418
|
+
return gen(function* () {
|
|
82419
|
+
const deferred = yield* make$m();
|
|
82420
|
+
alerts.value.push({
|
|
82421
|
+
alertId: crypto.randomUUID(),
|
|
82422
|
+
open: true,
|
|
82423
|
+
content: input.content,
|
|
82424
|
+
icon: input.icon,
|
|
82425
|
+
color: input.color,
|
|
82426
|
+
deferred
|
|
82427
|
+
});
|
|
82428
|
+
return yield* _await$2(deferred);
|
|
82429
|
+
});
|
|
82430
|
+
}
|
|
82431
|
+
function finalizeCloseAlert(alertId) {
|
|
82432
|
+
const index = alerts.value.findIndex((alert2) => alert2.alertId === alertId);
|
|
82433
|
+
if (index < 0) {
|
|
82434
|
+
return;
|
|
82435
|
+
}
|
|
82436
|
+
const [alert] = alerts.value.splice(index, 1);
|
|
82437
|
+
if (!alert) {
|
|
82438
|
+
return;
|
|
82439
|
+
}
|
|
82440
|
+
runSync(succeed$7(alert.deferred, alert.pendingResult ?? false));
|
|
82441
|
+
}
|
|
82442
|
+
function closeAlert(alertId, result, explicit = true) {
|
|
82443
|
+
return sync$1(() => {
|
|
82444
|
+
const alert = alerts.value.find((a) => a.alertId === alertId);
|
|
82445
|
+
if (!alert) {
|
|
82446
|
+
return;
|
|
82447
|
+
}
|
|
82448
|
+
if (explicit || alert.pendingResult === void 0) {
|
|
82449
|
+
alert.pendingResult = result;
|
|
82450
|
+
}
|
|
82451
|
+
if (alert.open) {
|
|
82452
|
+
alert.open = false;
|
|
82453
|
+
}
|
|
82454
|
+
if (!alert.finalizeScheduled) {
|
|
82455
|
+
alert.finalizeScheduled = true;
|
|
82456
|
+
queueMicrotask(() => finalizeCloseAlert(alertId));
|
|
82457
|
+
}
|
|
82458
|
+
});
|
|
82459
|
+
}
|
|
82460
|
+
function getDefinition(definitionId) {
|
|
82461
|
+
return Reflect.get(definitions2, definitionId);
|
|
82462
|
+
}
|
|
82463
|
+
function getSession(sessionId) {
|
|
82464
|
+
return sessions.value.find((session) => session.sessionId === sessionId);
|
|
82465
|
+
}
|
|
82466
|
+
function removeSession(sessionId) {
|
|
82467
|
+
const index = sessions.value.findIndex((session2) => session2.sessionId === sessionId);
|
|
82468
|
+
if (index < 0) {
|
|
82469
|
+
return void 0;
|
|
82470
|
+
}
|
|
82471
|
+
const [session] = sessions.value.splice(index, 1);
|
|
82472
|
+
return session;
|
|
82473
|
+
}
|
|
82474
|
+
function finalizeClose(sessionId, result) {
|
|
82475
|
+
const session = removeSession(sessionId);
|
|
82476
|
+
if (!session) {
|
|
82477
|
+
return;
|
|
82478
|
+
}
|
|
82479
|
+
runSync(succeed$7(session.deferred, session.pendingResult ?? result ?? none$4()));
|
|
82480
|
+
}
|
|
82481
|
+
function requestClose(sessionId, result) {
|
|
82482
|
+
const session = getSession(sessionId);
|
|
82483
|
+
if (!session || !session.open) {
|
|
82484
|
+
return;
|
|
82485
|
+
}
|
|
82486
|
+
session.open = false;
|
|
82487
|
+
session.pendingResult = result;
|
|
82488
|
+
}
|
|
82489
|
+
function closeDefinitionSessions(definitionId) {
|
|
82490
|
+
const targetSessions = sessions.value.filter((session) => session.definitionId === definitionId).map((session) => session.sessionId);
|
|
82491
|
+
for (const sessionId of targetSessions) {
|
|
82492
|
+
finalizeClose(sessionId, none$4());
|
|
82493
|
+
}
|
|
82494
|
+
}
|
|
82495
|
+
function registerDefinition(definition) {
|
|
82496
|
+
Reflect.set(definitions2, definition.definitionId, definition);
|
|
82497
|
+
}
|
|
82498
|
+
function unregisterDefinition(definitionId, ownerId) {
|
|
82499
|
+
const definition = getDefinition(definitionId);
|
|
82500
|
+
if (!definition) {
|
|
82501
|
+
return;
|
|
82502
|
+
}
|
|
82503
|
+
if (ownerId !== void 0 && definition.ownerId !== ownerId) {
|
|
82504
|
+
return;
|
|
82505
|
+
}
|
|
82506
|
+
Reflect.deleteProperty(definitions2, definitionId);
|
|
82507
|
+
closeDefinitionSessions(definitionId);
|
|
82508
|
+
}
|
|
82509
|
+
function syncDefinitions(ownerId, nextDefinitions) {
|
|
82510
|
+
const nextIds = nextDefinitions.map((definition) => definition.definitionId);
|
|
82511
|
+
const currentIds = Object.values(definitions2).filter((definition) => definition.ownerId === ownerId).map((definition) => definition.definitionId);
|
|
82512
|
+
for (const definitionId of currentIds) {
|
|
82513
|
+
if (!nextIds.includes(definitionId)) {
|
|
82514
|
+
unregisterDefinition(definitionId, ownerId);
|
|
82515
|
+
}
|
|
82516
|
+
}
|
|
82517
|
+
for (const definition of nextDefinitions) {
|
|
82518
|
+
registerDefinition(definition);
|
|
82519
|
+
}
|
|
82520
|
+
}
|
|
82521
|
+
function patchSession(sessionId, patch2) {
|
|
82522
|
+
const session = getSession(sessionId);
|
|
82523
|
+
if (!session) {
|
|
82524
|
+
return;
|
|
82525
|
+
}
|
|
82526
|
+
if (patch2.shell) {
|
|
82527
|
+
session.shell = {
|
|
82528
|
+
...session.shell,
|
|
82529
|
+
...patch2.shell,
|
|
82530
|
+
descriptionSrOnly: Reflect.has(patch2.shell, "description") ? false : session.shell.descriptionSrOnly
|
|
82531
|
+
};
|
|
82532
|
+
}
|
|
82533
|
+
if (patch2.props) {
|
|
82534
|
+
session.props = {
|
|
82535
|
+
...session.props,
|
|
82536
|
+
...patch2.props
|
|
82537
|
+
};
|
|
82538
|
+
}
|
|
82539
|
+
}
|
|
82540
|
+
function createHandle(session) {
|
|
82541
|
+
return {
|
|
82542
|
+
patch: (patch2) => sync$1(() => {
|
|
82543
|
+
patchSession(session.sessionId, patch2);
|
|
82544
|
+
}),
|
|
82545
|
+
close: (...args2) => sync$1(() => {
|
|
82546
|
+
requestClose(session.sessionId, createResult(...args2));
|
|
82547
|
+
}),
|
|
82548
|
+
result: _await$2(session.deferred)
|
|
82549
|
+
};
|
|
82550
|
+
}
|
|
82551
|
+
function open(definitionId, options) {
|
|
82552
|
+
return map$3(acquireRelease(
|
|
82553
|
+
gen(function* () {
|
|
82554
|
+
const definition = getDefinition(definitionId);
|
|
82555
|
+
if (!definition) {
|
|
82556
|
+
return yield* fail$2({
|
|
82557
|
+
_tag: "OverlayDefinitionNotFoundError",
|
|
82558
|
+
definitionId
|
|
82559
|
+
});
|
|
82560
|
+
}
|
|
82561
|
+
const definitionShell = definition.shell;
|
|
82562
|
+
const descriptionSrOnly = options?.shell?.description === void 0 && definitionShell?.description === void 0;
|
|
82563
|
+
const deferred = yield* make$m();
|
|
82564
|
+
const session = {
|
|
82565
|
+
sessionId: crypto.randomUUID(),
|
|
82566
|
+
definitionId,
|
|
82567
|
+
open: true,
|
|
82568
|
+
shell: {
|
|
82569
|
+
title: options?.shell?.title ?? definitionShell?.title,
|
|
82570
|
+
description: options?.shell?.description ?? definitionShell?.description,
|
|
82571
|
+
descriptionSrOnly,
|
|
82572
|
+
breakpoint: options?.shell?.breakpoint ?? definitionShell?.breakpoint,
|
|
82573
|
+
trap: options?.shell?.trap ?? definitionShell?.trap,
|
|
82574
|
+
width: options?.shell?.width ?? definitionShell?.width
|
|
82575
|
+
},
|
|
82576
|
+
props: {
|
|
82577
|
+
...options?.props
|
|
82578
|
+
},
|
|
82579
|
+
deferred
|
|
82580
|
+
};
|
|
82581
|
+
sessions.value.push(session);
|
|
82582
|
+
return { handle: createHandle(session), sessionId: session.sessionId };
|
|
82583
|
+
}),
|
|
82584
|
+
({ sessionId }) => sync$1(() => {
|
|
82585
|
+
finalizeClose(sessionId, none$4());
|
|
82586
|
+
})
|
|
82587
|
+
), ({ handle }) => handle);
|
|
82588
|
+
}
|
|
82589
|
+
const runtime2 = {
|
|
82590
|
+
get definitions() {
|
|
82591
|
+
return definitions2;
|
|
82592
|
+
},
|
|
82593
|
+
get sessions() {
|
|
82594
|
+
return sessions.value;
|
|
82595
|
+
},
|
|
82596
|
+
get alerts() {
|
|
82597
|
+
return alerts.value;
|
|
82598
|
+
},
|
|
82599
|
+
get progress() {
|
|
82600
|
+
return progress.value;
|
|
82601
|
+
},
|
|
82602
|
+
get topSession() {
|
|
82603
|
+
return sessions.value.at(-1);
|
|
82604
|
+
},
|
|
82605
|
+
registerDefinition,
|
|
82606
|
+
unregisterDefinition,
|
|
82607
|
+
syncDefinitions,
|
|
82608
|
+
isOpen: (sessionId) => getSession(sessionId)?.open === true,
|
|
82609
|
+
open,
|
|
82610
|
+
patch: (sessionId, patch2) => sync$1(() => {
|
|
82611
|
+
patchSession(sessionId, patch2);
|
|
82612
|
+
}),
|
|
82613
|
+
close: (sessionId, ...args2) => sync$1(() => {
|
|
82614
|
+
requestClose(sessionId, createResult(...args2));
|
|
82615
|
+
}),
|
|
82616
|
+
closeTop: () => sync$1(() => {
|
|
82617
|
+
const topSession = sessions.value.at(-1);
|
|
82618
|
+
if (topSession) {
|
|
82619
|
+
requestClose(topSession.sessionId, none$4());
|
|
82620
|
+
}
|
|
82621
|
+
}),
|
|
82622
|
+
closeAll: () => sync$1(() => {
|
|
82623
|
+
const sessionIds = sessions.value.map((session) => session.sessionId);
|
|
82624
|
+
for (const sessionId of sessionIds) {
|
|
82625
|
+
requestClose(sessionId, none$4());
|
|
82626
|
+
}
|
|
82627
|
+
}),
|
|
82628
|
+
openAlert,
|
|
82629
|
+
closeAlert,
|
|
82630
|
+
openProgress,
|
|
82631
|
+
cancelProgress,
|
|
82632
|
+
closeProgress,
|
|
82633
|
+
finalizeClose
|
|
82634
|
+
};
|
|
82635
|
+
return runtime2;
|
|
82636
|
+
}
|
|
82637
|
+
createOverlayRuntime();
|
|
82638
|
+
class ActionContext extends Tag("shwfed/ActionContext")() {
|
|
82639
|
+
}
|
|
82215
82640
|
function defineRegistry(options) {
|
|
82216
82641
|
const {
|
|
82217
82642
|
hostName,
|
|
@@ -82275,6 +82700,7 @@ function defineRegistry(options) {
|
|
|
82275
82700
|
find: find2
|
|
82276
82701
|
};
|
|
82277
82702
|
}
|
|
82703
|
+
const sourceKey$2 = (type2, compatibilityDate2) => `${type2}@${compatibilityDate2}`;
|
|
82278
82704
|
const schemaModules$3 = /* @__PURE__ */ Object.assign({
|
|
82279
82705
|
"../buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.ts": __vite_glob_0_0$3,
|
|
82280
82706
|
"../buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.ts": __vite_glob_0_1$3,
|
|
@@ -82283,7 +82709,8 @@ const schemaModules$3 = /* @__PURE__ */ Object.assign({
|
|
|
82283
82709
|
"../buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.ts": __vite_glob_0_4$3,
|
|
82284
82710
|
"../buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.ts": __vite_glob_0_5$3,
|
|
82285
82711
|
"../buttons/2026-05-21/com.shwfed.actions.button.http.download/schema.ts": __vite_glob_0_6$3,
|
|
82286
|
-
"../buttons/2026-05-24/com.shwfed.actions.button.state.write/schema.ts": __vite_glob_0_7$3
|
|
82712
|
+
"../buttons/2026-05-24/com.shwfed.actions.button.state.write/schema.ts": __vite_glob_0_7$3,
|
|
82713
|
+
"../buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.ts": __vite_glob_0_8$3
|
|
82287
82714
|
});
|
|
82288
82715
|
const configModuleLoaders = /* @__PURE__ */ Object.assign({
|
|
82289
82716
|
"../buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue": () => Promise.resolve().then(() => _stubVue),
|
|
@@ -82293,7 +82720,8 @@ const configModuleLoaders = /* @__PURE__ */ Object.assign({
|
|
|
82293
82720
|
"../buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.vue": () => Promise.resolve().then(() => _stubVue),
|
|
82294
82721
|
"../buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/config.vue": () => Promise.resolve().then(() => _stubVue),
|
|
82295
82722
|
"../buttons/2026-05-21/com.shwfed.actions.button.http.download/config.vue": () => Promise.resolve().then(() => _stubVue),
|
|
82296
|
-
"../buttons/2026-05-24/com.shwfed.actions.button.state.write/config.vue": () => Promise.resolve().then(() => _stubVue)
|
|
82723
|
+
"../buttons/2026-05-24/com.shwfed.actions.button.state.write/config.vue": () => Promise.resolve().then(() => _stubVue),
|
|
82724
|
+
"../buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/config.vue": () => Promise.resolve().then(() => _stubVue)
|
|
82297
82725
|
});
|
|
82298
82726
|
const runtimeModuleLoaders = /* @__PURE__ */ Object.assign({
|
|
82299
82727
|
"../buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.vue": () => Promise.resolve().then(() => _stubVue),
|
|
@@ -82303,7 +82731,8 @@ const runtimeModuleLoaders = /* @__PURE__ */ Object.assign({
|
|
|
82303
82731
|
"../buttons/2026-05-11/com.shwfed.actions.button.modal.layout/runtime.vue": () => Promise.resolve().then(() => _stubVue),
|
|
82304
82732
|
"../buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/runtime.vue": () => Promise.resolve().then(() => _stubVue),
|
|
82305
82733
|
"../buttons/2026-05-21/com.shwfed.actions.button.http.download/runtime.vue": () => Promise.resolve().then(() => _stubVue),
|
|
82306
|
-
"../buttons/2026-05-24/com.shwfed.actions.button.state.write/runtime.vue": () => Promise.resolve().then(() => _stubVue)
|
|
82734
|
+
"../buttons/2026-05-24/com.shwfed.actions.button.state.write/runtime.vue": () => Promise.resolve().then(() => _stubVue),
|
|
82735
|
+
"../buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/runtime.vue": () => Promise.resolve().then(() => _stubVue)
|
|
82307
82736
|
});
|
|
82308
82737
|
const configModules$3 = Object.fromEntries(
|
|
82309
82738
|
Object.entries(configModuleLoaders).map(([path, loader]) => [
|
|
@@ -82323,23 +82752,55 @@ const registry$3 = defineRegistry({
|
|
|
82323
82752
|
schemaModules: schemaModules$3,
|
|
82324
82753
|
configModules: configModules$3,
|
|
82325
82754
|
runtimeModules: runtimeModules$3,
|
|
82326
|
-
// A button is deprecated
|
|
82327
|
-
//
|
|
82328
|
-
//
|
|
82329
|
-
//
|
|
82755
|
+
// A button is deprecated by one of three rules, in precedence order:
|
|
82756
|
+
// (1) another entry declares this one in its `migrateFrom` — explicit
|
|
82757
|
+
// cross-type supersession with a structured `supersededBy` target the
|
|
82758
|
+
// inspector can offer a one-click 「迁移」 against;
|
|
82759
|
+
// (2) its schema declares a free-text `metadata.deprecated` note — the
|
|
82760
|
+
// escape hatch for a replacement with no structured migrate target;
|
|
82761
|
+
// (3) a newer `compatibilityDate` of the same `type` exists — the
|
|
82762
|
+
// date-versioned rule shared with form / table.
|
|
82763
|
+
// `migrateFrom` wins over the date rule: a kept-around stub of an old type
|
|
82764
|
+
// points at exactly which target it migrates to, so trust it over the
|
|
82765
|
+
// implicit "any older same-type date is the same component upgraded" guess.
|
|
82330
82766
|
deriveEntryExtras: (drafts) => {
|
|
82331
82767
|
const latestByType = /* @__PURE__ */ new Map();
|
|
82332
82768
|
for (const d of drafts) {
|
|
82333
82769
|
const prev = latestByType.get(d.type);
|
|
82334
82770
|
if (!prev || d.compatibilityDate > prev) latestByType.set(d.type, d.compatibilityDate);
|
|
82335
82771
|
}
|
|
82772
|
+
const migrationTargets = /* @__PURE__ */ new Map();
|
|
82773
|
+
for (const d of drafts) {
|
|
82774
|
+
const sources = d.module.migrateFrom;
|
|
82775
|
+
if (!sources || sources.length === 0) continue;
|
|
82776
|
+
for (const src of sources) {
|
|
82777
|
+
const key = sourceKey$2(src.type, src.compatibilityDate);
|
|
82778
|
+
const existing = migrationTargets.get(key);
|
|
82779
|
+
if (existing) {
|
|
82780
|
+
throw new Error(
|
|
82781
|
+
`[shwfed-actions] migrateFrom collision: source "${key}" is claimed by both "${sourceKey$2(existing.type, existing.compatibilityDate)}" and "${sourceKey$2(d.type, d.compatibilityDate)}"`
|
|
82782
|
+
);
|
|
82783
|
+
}
|
|
82784
|
+
migrationTargets.set(key, { type: d.type, compatibilityDate: d.compatibilityDate });
|
|
82785
|
+
}
|
|
82786
|
+
}
|
|
82336
82787
|
return (draft) => {
|
|
82788
|
+
const declared = migrationTargets.get(sourceKey$2(draft.type, draft.compatibilityDate));
|
|
82789
|
+
if (declared) {
|
|
82790
|
+
return {
|
|
82791
|
+
deprecated: true,
|
|
82792
|
+
supersededBy: declared,
|
|
82793
|
+
deprecationNote: declared.type === draft.type ? `已被更新版本 ${declared.compatibilityDate} 取代。` : `已被 ${declared.type}@${declared.compatibilityDate} 取代。`
|
|
82794
|
+
};
|
|
82795
|
+
}
|
|
82337
82796
|
const note = draft.module.metadata.deprecated;
|
|
82338
82797
|
if (note) return { deprecated: true, deprecationNote: note };
|
|
82339
|
-
|
|
82798
|
+
const latest = latestByType.get(draft.type);
|
|
82799
|
+
if (draft.compatibilityDate < latest) {
|
|
82340
82800
|
return {
|
|
82341
82801
|
deprecated: true,
|
|
82342
|
-
|
|
82802
|
+
supersededBy: { type: draft.type, compatibilityDate: latest },
|
|
82803
|
+
deprecationNote: `已被更新版本 ${latest} 取代。`
|
|
82343
82804
|
};
|
|
82344
82805
|
}
|
|
82345
82806
|
return { deprecated: false };
|
|
@@ -82354,7 +82815,10 @@ const BUTTONS = registry$3.ENTRIES.map((e) => ({
|
|
|
82354
82815
|
config: e.config,
|
|
82355
82816
|
runtime: e.runtime,
|
|
82356
82817
|
deprecated: e.deprecated,
|
|
82357
|
-
...e.deprecationNote !== void 0 ? { deprecationNote: e.deprecationNote } : {}
|
|
82818
|
+
...e.deprecationNote !== void 0 ? { deprecationNote: e.deprecationNote } : {},
|
|
82819
|
+
...e.supersededBy !== void 0 ? { supersededBy: e.supersededBy } : {},
|
|
82820
|
+
migrate: e.module.migrate,
|
|
82821
|
+
...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {}
|
|
82358
82822
|
}));
|
|
82359
82823
|
function allButtonSchemas(configure) {
|
|
82360
82824
|
return BUTTONS.map((entry) => entry.schema(configure).annotations({
|