@shwfed/config 2.3.3 → 2.3.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/module.json +1 -1
- package/dist/runtime/components/actions/components/group.d.vue.ts +12 -10
- package/dist/runtime/components/actions/components/group.vue +47 -13
- package/dist/runtime/components/actions/components/group.vue.d.ts +12 -10
- package/dist/runtime/components/actions/config.d.vue.ts +13 -11
- package/dist/runtime/components/actions/config.vue +252 -35
- package/dist/runtime/components/actions/config.vue.d.ts +13 -11
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/config.d.vue.ts +37 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/config.vue +61 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/config.vue.d.ts +37 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/runtime.d.vue.ts +7 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/runtime.vue +22 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/runtime.vue.d.ts +7 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +23 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.js +29 -0
- package/dist/runtime/components/actions/schema.d.ts +400 -193
- package/dist/runtime/components/actions/schema.js +22 -4
- package/dist/runtime/components/actions/utils/resolve.d.ts +15 -0
- package/dist/runtime/components/actions/utils/resolve.js +45 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.d.vue.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue.d.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.d.vue.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue.d.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +115 -57
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +120 -61
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts +10 -8
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts +10 -8
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +115 -57
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +115 -57
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue +4 -4
- package/dist/runtime/components/table/schema.d.ts +125 -65
- package/dist/runtime/components/table/utils/row-reorder.js +16 -5
- package/dist/runtime/vendor/cel-js/CLAUDE.md +5 -1
- package/dist/runtime/vendor/cel-js/PROMPT.md +19 -0
- package/dist/runtime/vendor/cel-js/lib/evaluator.js +2 -0
- package/dist/runtime/vendor/cel-js/lib/form-builtins.d.ts +2 -0
- package/dist/runtime/vendor/cel-js/lib/form-builtins.js +58 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useI18n } from "vue-i18n";
|
|
4
|
+
import { getLocalizedText } from "../../../../../share/locale";
|
|
5
|
+
import { Markdown } from "../../../../ui/markdown";
|
|
6
|
+
defineOptions({ name: "ShwfedMarkdownItemRuntime" });
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
config: { type: null, required: true }
|
|
9
|
+
});
|
|
10
|
+
const { locale } = useI18n();
|
|
11
|
+
const source = computed(
|
|
12
|
+
() => getLocalizedText(props.config.content, locale.value) ?? ""
|
|
13
|
+
);
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<Markdown
|
|
18
|
+
data-slot="buttons-markdown"
|
|
19
|
+
:source="source"
|
|
20
|
+
class="prose prose-sm prose-zinc px-1"
|
|
21
|
+
/>
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Value } from './schema.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
config: Value;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
|
|
3
|
+
export declare const type: "com.shwfed.actions.item.markdown";
|
|
4
|
+
export declare const compatibilityDate: "2026-05-21";
|
|
5
|
+
export declare const metadata: {
|
|
6
|
+
readonly name: "内联 Markdown";
|
|
7
|
+
readonly icon: "fluent:markdown-20-regular";
|
|
8
|
+
};
|
|
9
|
+
export declare function schema(_configure: (env: Environment) => void): Schema.Struct<{
|
|
10
|
+
id: Schema.refine<string, typeof Schema.String>;
|
|
11
|
+
groupId: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
12
|
+
type: Schema.Literal<["com.shwfed.actions.item.markdown"]>;
|
|
13
|
+
compatibilityDate: Schema.Literal<["2026-05-21"]>;
|
|
14
|
+
name: Schema.SchemaClass<string, string, never>;
|
|
15
|
+
content: Schema.TupleType<readonly [Schema.Struct<{
|
|
16
|
+
locale: Schema.Literal<["zh"]>;
|
|
17
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
18
|
+
}>], [Schema.Struct<{
|
|
19
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
20
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
21
|
+
}>]>;
|
|
22
|
+
}>;
|
|
23
|
+
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
|
package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { Locale } from "../../../../../share/locale.js";
|
|
3
|
+
export const type = "com.shwfed.actions.item.markdown";
|
|
4
|
+
export const compatibilityDate = "2026-05-21";
|
|
5
|
+
export const metadata = {
|
|
6
|
+
name: "\u5185\u8054 Markdown",
|
|
7
|
+
icon: "fluent:markdown-20-regular"
|
|
8
|
+
};
|
|
9
|
+
export function schema(_configure) {
|
|
10
|
+
return Schema.Struct({
|
|
11
|
+
id: Schema.UUID.annotations({ description: "Markdown \u9879\u552F\u4E00\u6807\u8BC6" }),
|
|
12
|
+
// Present when the item sits at group level; absent when it lives as a
|
|
13
|
+
// dropdown sub-item (the parent is the dropdown itself).
|
|
14
|
+
groupId: Schema.optional(Schema.UUID.annotations({ description: "\u6240\u5C5E\u6309\u94AE\u7EC4\u6807\u8BC6" })),
|
|
15
|
+
type: Schema.Literal(type),
|
|
16
|
+
compatibilityDate: Schema.Literal(compatibilityDate),
|
|
17
|
+
name: Schema.String.annotations({
|
|
18
|
+
title: "\u5185\u90E8\u540D\u79F0",
|
|
19
|
+
description: "\u4EC5\u7528\u4E8E\u7F16\u8F91\u5668\u5185\u8BC6\u522B\u8BE5 Markdown \u9879\uFF0C\u4E0D\u4F1A\u5C55\u793A\u7ED9\u6700\u7EC8\u7528\u6237"
|
|
20
|
+
}),
|
|
21
|
+
content: Locale.annotations({
|
|
22
|
+
title: "\u5185\u5BB9",
|
|
23
|
+
description: "\u5185\u8054 Markdown \u5185\u5BB9\uFF0C\u4E0E\u6309\u94AE\u5E76\u6392\u5C55\u793A\uFF0C\u652F\u6301\u672C\u5730\u5316"
|
|
24
|
+
})
|
|
25
|
+
}).annotations({
|
|
26
|
+
title: "MarkdownItem",
|
|
27
|
+
description: "\u6309\u94AE\u7EC4\u5185\u7684\u5185\u8054 Markdown \u8282\u70B9"
|
|
28
|
+
});
|
|
29
|
+
}
|