@shwfed/config 2.5.3 → 2.7.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 +1220 -1045
- package/dist/module.json +1 -1
- package/dist/module.mjs +7 -1
- package/dist/preview/assets/config-B5FFtD0s.js +1 -0
- package/dist/preview/assets/config-BpWP2vu_.js +1 -0
- package/dist/preview/assets/{config-ekMG8PO0.js → config-C2OqUTNd.js} +1 -1
- package/dist/preview/assets/{config-BVjCjkAL.js → config-D7cjMBeK.js} +1 -1
- package/dist/preview/assets/config-DhORWTZC.js +1 -0
- package/dist/preview/assets/config-DuuYvFG_.js +1 -0
- package/dist/preview/assets/config-dpwN2-UY.js +1 -0
- package/dist/preview/assets/{config-DN6k6pjm.js → config-eP0EblYK.js} +1 -1
- package/dist/preview/assets/{config-CtGduGcR.js → config-hs_pZ5MM.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js → definition.vue_vue_type_script_setup_true_lang-B8-Uydoy.js} +1 -1
- package/dist/preview/assets/index-BGFrUxgg.js +680 -0
- package/dist/preview/assets/index-BoGW90Pq.css +1 -0
- package/dist/preview/assets/index-Bw16PZhL.js +1 -0
- package/dist/preview/assets/index-CG261V86.js +1 -0
- package/dist/preview/assets/item-aVe51Gy6.js +1 -0
- package/dist/preview/assets/runtime-3rNI0KDH.js +1 -0
- package/dist/preview/assets/runtime-BOn8EwHL.js +1 -0
- package/dist/preview/assets/runtime-Bwr-rb58.js +1 -0
- package/dist/preview/assets/runtime-CXQuhSAX.js +1 -0
- package/dist/preview/assets/runtime-CYGmRjmI.js +1 -0
- package/dist/preview/assets/runtime-Ca79Fs6I.js +1 -0
- package/dist/preview/assets/runtime-CfVt6IWe.js +1 -0
- package/dist/preview/assets/runtime-DYj-R8SZ.js +1 -0
- package/dist/preview/assets/runtime-Dd1GqYeP.js +1 -0
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/config.d.vue.ts +59 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/config.vue +452 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/config.vue.d.ts +59 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/item.d.vue.ts +7 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/item.vue +112 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/item.vue.d.ts +7 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/runtime.d.vue.ts +59 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/runtime.vue +47 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/runtime.vue.d.ts +59 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.d.ts +92 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.js +117 -0
- 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-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/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.js +1 -1
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.js +1 -1
- 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 +17 -1
- package/dist/runtime/components/table/index.vue +1 -0
- package/dist/runtime/components/table/row-provider.d.vue.ts +1 -0
- package/dist/runtime/components/table/row-provider.vue +9 -2
- package/dist/runtime/components/table/row-provider.vue.d.ts +1 -0
- 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/expression-editor/CodeMirrorInput.d.vue.ts +22 -0
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue +134 -0
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue.d.ts +22 -0
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +2 -2
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +71 -50
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +2 -2
- package/dist/runtime/components/ui/expression-editor/cel-language.d.ts +16 -0
- package/dist/runtime/components/ui/expression-editor/cel-language.js +114 -0
- package/dist/runtime/components/ui/expression-editor/chip-extension.d.ts +5 -0
- package/dist/runtime/components/ui/expression-editor/chip-extension.js +123 -0
- package/dist/runtime/components/ui/expression-editor/picker-entries.d.ts +17 -0
- package/dist/runtime/components/ui/expression-editor/picker-entries.js +34 -0
- package/dist/runtime/components/ui/expression-editor/scope-refs.d.ts +20 -0
- package/dist/runtime/components/ui/expression-editor/scope-refs.js +39 -0
- package/dist/runtime/share/expression.js +9 -0
- package/dist/runtime/utils/cel-context.d.ts +36 -0
- package/dist/runtime/utils/cel-context.js +39 -0
- package/package.json +7 -1
- package/dist/preview/assets/config-C5TWIUX-.js +0 -1
- package/dist/preview/assets/config-CH28q4_H.js +0 -1
- package/dist/preview/assets/config-D9tBv8LD.js +0 -1
- package/dist/preview/assets/config-DxB8qwAu.js +0 -1
- package/dist/preview/assets/config-U359oLg8.js +0 -1
- package/dist/preview/assets/index-CZ-XSjS_.js +0 -668
- package/dist/preview/assets/index-HfGseg4M.js +0 -1
- package/dist/preview/assets/index-nvAUAYGM.css +0 -1
- package/dist/preview/assets/runtime-27bDIkKv.js +0 -1
- package/dist/preview/assets/runtime-BAQ6ezPo.js +0 -1
- package/dist/preview/assets/runtime-BKQvzSax.js +0 -1
- package/dist/preview/assets/runtime-BafXFP0s.js +0 -1
- package/dist/preview/assets/runtime-CAzVJ-if.js +0 -1
- package/dist/preview/assets/runtime-CQly-3c3.js +0 -1
- package/dist/preview/assets/runtime-DJgDXKfE.js +0 -1
- package/dist/preview/assets/runtime-Dhd51Wyr.js +0 -1
- package/dist/preview/assets/runtime-x8IdC454.js +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Value } from './schema.js';
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
'block': Value;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:block": (value: {
|
|
7
|
+
readonly type: "com.shwfed.block.animated.number";
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly locale?: readonly [{
|
|
10
|
+
readonly locale: "zh";
|
|
11
|
+
readonly message: string;
|
|
12
|
+
}, ...{
|
|
13
|
+
readonly locale: "en" | "ja" | "ko";
|
|
14
|
+
readonly message: string;
|
|
15
|
+
}[]] | undefined;
|
|
16
|
+
readonly displayName?: string | undefined;
|
|
17
|
+
readonly compatibilityDate: "2026-06-01";
|
|
18
|
+
readonly items: readonly {
|
|
19
|
+
readonly name?: string | undefined;
|
|
20
|
+
readonly style?: string | undefined;
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly prefix?: string | undefined;
|
|
23
|
+
readonly dataSource: {
|
|
24
|
+
readonly value: string;
|
|
25
|
+
readonly request?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
readonly pollingInterval?: number | undefined;
|
|
28
|
+
readonly suffix?: string | undefined;
|
|
29
|
+
}[];
|
|
30
|
+
}) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
32
|
+
"onUpdate:block"?: ((value: {
|
|
33
|
+
readonly type: "com.shwfed.block.animated.number";
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly locale?: readonly [{
|
|
36
|
+
readonly locale: "zh";
|
|
37
|
+
readonly message: string;
|
|
38
|
+
}, ...{
|
|
39
|
+
readonly locale: "en" | "ja" | "ko";
|
|
40
|
+
readonly message: string;
|
|
41
|
+
}[]] | undefined;
|
|
42
|
+
readonly displayName?: string | undefined;
|
|
43
|
+
readonly compatibilityDate: "2026-06-01";
|
|
44
|
+
readonly items: readonly {
|
|
45
|
+
readonly name?: string | undefined;
|
|
46
|
+
readonly style?: string | undefined;
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly prefix?: string | undefined;
|
|
49
|
+
readonly dataSource: {
|
|
50
|
+
readonly value: string;
|
|
51
|
+
readonly request?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
readonly pollingInterval?: number | undefined;
|
|
54
|
+
readonly suffix?: string | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
}) => any) | undefined;
|
|
57
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, defineAsyncComponent, onMounted, ref } from "vue";
|
|
3
|
+
import { useI18n } from "vue-i18n";
|
|
4
|
+
import { getLocalizedText } from "../../../../../share/locale";
|
|
5
|
+
import { cel } from "../../../../../utils/cel";
|
|
6
|
+
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
7
|
+
import { interpolateMarkdown } from "../../../../table/utils/runtime";
|
|
8
|
+
import { Markdown } from "../../../../ui/markdown";
|
|
9
|
+
defineOptions({ name: "ShwfedBlockAnimatedNumberRuntime" });
|
|
10
|
+
const NumberFlowGroup = defineAsyncComponent(
|
|
11
|
+
() => import("@number-flow/vue").then((m) => m.NumberFlowGroup)
|
|
12
|
+
);
|
|
13
|
+
const Item = defineAsyncComponent(() => import("./item.vue"));
|
|
14
|
+
const block = defineModel("block", { type: null, ...{ required: true } });
|
|
15
|
+
const { locale } = useI18n();
|
|
16
|
+
const inheritedContext = injectCELContext();
|
|
17
|
+
const mounted = ref(false);
|
|
18
|
+
onMounted(() => {
|
|
19
|
+
mounted.value = true;
|
|
20
|
+
});
|
|
21
|
+
const caption = computed(() => {
|
|
22
|
+
const template = getLocalizedText(block.value.locale, locale.value) || "";
|
|
23
|
+
if (!template) return "";
|
|
24
|
+
return interpolateMarkdown(template, cel, celBindings(inheritedContext));
|
|
25
|
+
});
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<div class="flex h-full w-full flex-col items-center justify-center gap-2 text-center">
|
|
30
|
+
<!-- NumberFlowGroup synchronizes the digit animations across all items. -->
|
|
31
|
+
<NumberFlowGroup v-if="mounted">
|
|
32
|
+
<div class="flex flex-wrap items-center justify-center gap-4 font-semibold text-zinc-900">
|
|
33
|
+
<Item
|
|
34
|
+
v-for="it in block.items"
|
|
35
|
+
:key="it.id"
|
|
36
|
+
:item="it"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
</NumberFlowGroup>
|
|
40
|
+
|
|
41
|
+
<Markdown
|
|
42
|
+
v-if="caption"
|
|
43
|
+
:source="caption"
|
|
44
|
+
class="prose prose-sm prose-zinc max-w-none text-xs text-zinc-500"
|
|
45
|
+
/>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Value } from './schema.js';
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
'block': Value;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:block": (value: {
|
|
7
|
+
readonly type: "com.shwfed.block.animated.number";
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly locale?: readonly [{
|
|
10
|
+
readonly locale: "zh";
|
|
11
|
+
readonly message: string;
|
|
12
|
+
}, ...{
|
|
13
|
+
readonly locale: "en" | "ja" | "ko";
|
|
14
|
+
readonly message: string;
|
|
15
|
+
}[]] | undefined;
|
|
16
|
+
readonly displayName?: string | undefined;
|
|
17
|
+
readonly compatibilityDate: "2026-06-01";
|
|
18
|
+
readonly items: readonly {
|
|
19
|
+
readonly name?: string | undefined;
|
|
20
|
+
readonly style?: string | undefined;
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly prefix?: string | undefined;
|
|
23
|
+
readonly dataSource: {
|
|
24
|
+
readonly value: string;
|
|
25
|
+
readonly request?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
readonly pollingInterval?: number | undefined;
|
|
28
|
+
readonly suffix?: string | undefined;
|
|
29
|
+
}[];
|
|
30
|
+
}) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
32
|
+
"onUpdate:block"?: ((value: {
|
|
33
|
+
readonly type: "com.shwfed.block.animated.number";
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly locale?: readonly [{
|
|
36
|
+
readonly locale: "zh";
|
|
37
|
+
readonly message: string;
|
|
38
|
+
}, ...{
|
|
39
|
+
readonly locale: "en" | "ja" | "ko";
|
|
40
|
+
readonly message: string;
|
|
41
|
+
}[]] | undefined;
|
|
42
|
+
readonly displayName?: string | undefined;
|
|
43
|
+
readonly compatibilityDate: "2026-06-01";
|
|
44
|
+
readonly items: readonly {
|
|
45
|
+
readonly name?: string | undefined;
|
|
46
|
+
readonly style?: string | undefined;
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly prefix?: string | undefined;
|
|
49
|
+
readonly dataSource: {
|
|
50
|
+
readonly value: string;
|
|
51
|
+
readonly request?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
readonly pollingInterval?: number | undefined;
|
|
54
|
+
readonly suffix?: string | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
}) => any) | undefined;
|
|
57
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
|
|
3
|
+
export { getStructFieldDescription, getStructFieldTitle } from '../../../../table/utils/schema-meta.js';
|
|
4
|
+
type AnySchema = Schema.Schema<any, any, never>;
|
|
5
|
+
type Configure = (env: Environment) => void;
|
|
6
|
+
export declare const type: "com.shwfed.block.animated.number";
|
|
7
|
+
export declare const compatibilityDate: "2026-06-01";
|
|
8
|
+
export declare const metadata: {
|
|
9
|
+
readonly name: "动画数字";
|
|
10
|
+
readonly icon: "fluent:number-symbol-20-regular";
|
|
11
|
+
readonly w: {
|
|
12
|
+
readonly initial: 8;
|
|
13
|
+
readonly min: 2;
|
|
14
|
+
readonly max: number;
|
|
15
|
+
};
|
|
16
|
+
readonly h: {
|
|
17
|
+
readonly initial: 3;
|
|
18
|
+
readonly min: 2;
|
|
19
|
+
readonly max: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* One item's datasource: an optional HTTP request plus the expression that
|
|
24
|
+
* derives its number. Mirrors `table`'s `DataSource` (minus `total`), but the
|
|
25
|
+
* `value` expression returns a number rather than a list.
|
|
26
|
+
*/
|
|
27
|
+
export declare function dataSourceSchema(configure: Configure): Schema.Struct<{
|
|
28
|
+
request: Schema.optional<Schema.Schema<string, string, never>>;
|
|
29
|
+
value: Schema.Schema<string, string, never>;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* One animated-number item — a single `NumberFlow`. Exported so the config
|
|
33
|
+
* editor can read its field `title` / `description` annotations.
|
|
34
|
+
*/
|
|
35
|
+
export declare function itemSchema(configure: Configure): Schema.Struct<{
|
|
36
|
+
id: Schema.refine<string, typeof Schema.String>;
|
|
37
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
38
|
+
dataSource: Schema.Struct<{
|
|
39
|
+
request: Schema.optional<Schema.Schema<string, string, never>>;
|
|
40
|
+
value: Schema.Schema<string, string, never>;
|
|
41
|
+
}>;
|
|
42
|
+
pollingInterval: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
43
|
+
prefix: Schema.optional<Schema.Schema<string, string, never>>;
|
|
44
|
+
suffix: Schema.optional<Schema.Schema<string, string, never>>;
|
|
45
|
+
style: Schema.optional<Schema.Schema<string, string, never>>;
|
|
46
|
+
}>;
|
|
47
|
+
export declare function schema(configure: Configure, _blockRef?: AnySchema): Schema.Struct<{
|
|
48
|
+
id: Schema.refine<string, typeof Schema.String>;
|
|
49
|
+
type: Schema.tag<"com.shwfed.block.animated.number">;
|
|
50
|
+
compatibilityDate: Schema.tag<"2026-06-01">;
|
|
51
|
+
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
52
|
+
locale: Schema.optional<Schema.refine<readonly [{
|
|
53
|
+
readonly locale: "zh";
|
|
54
|
+
readonly message: string;
|
|
55
|
+
}, ...{
|
|
56
|
+
readonly locale: "en" | "ja" | "ko";
|
|
57
|
+
readonly message: string;
|
|
58
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
59
|
+
locale: Schema.Literal<["zh"]>;
|
|
60
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
61
|
+
}>], [Schema.Struct<{
|
|
62
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
63
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
64
|
+
}>]>>>;
|
|
65
|
+
items: Schema.refine<readonly {
|
|
66
|
+
readonly name?: string | undefined;
|
|
67
|
+
readonly style?: string | undefined;
|
|
68
|
+
readonly id: string;
|
|
69
|
+
readonly prefix?: string | undefined;
|
|
70
|
+
readonly dataSource: {
|
|
71
|
+
readonly value: string;
|
|
72
|
+
readonly request?: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
readonly pollingInterval?: number | undefined;
|
|
75
|
+
readonly suffix?: string | undefined;
|
|
76
|
+
}[], Schema.Array$<Schema.Struct<{
|
|
77
|
+
id: Schema.refine<string, typeof Schema.String>;
|
|
78
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
79
|
+
dataSource: Schema.Struct<{
|
|
80
|
+
request: Schema.optional<Schema.Schema<string, string, never>>;
|
|
81
|
+
value: Schema.Schema<string, string, never>;
|
|
82
|
+
}>;
|
|
83
|
+
pollingInterval: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
84
|
+
prefix: Schema.optional<Schema.Schema<string, string, never>>;
|
|
85
|
+
suffix: Schema.optional<Schema.Schema<string, string, never>>;
|
|
86
|
+
style: Schema.optional<Schema.Schema<string, string, never>>;
|
|
87
|
+
}>>>;
|
|
88
|
+
}>;
|
|
89
|
+
export declare function defaultBody(): Record<string, unknown>;
|
|
90
|
+
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
|
|
91
|
+
export type ItemValue = Value['items'][number];
|
|
92
|
+
export type DataSourceValue = ItemValue['dataSource'];
|
package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { Expression, LocaleMarkdown } from "../../../../../share/expression.js";
|
|
3
|
+
export { getStructFieldDescription, getStructFieldTitle } from "../../../../table/utils/schema-meta.js";
|
|
4
|
+
export const type = "com.shwfed.block.animated.number";
|
|
5
|
+
export const compatibilityDate = "2026-06-01";
|
|
6
|
+
export const metadata = {
|
|
7
|
+
name: "\u52A8\u753B\u6570\u5B57",
|
|
8
|
+
icon: "fluent:number-symbol-20-regular",
|
|
9
|
+
w: { initial: 8, min: 2, max: Infinity },
|
|
10
|
+
h: { initial: 3, min: 2, max: Infinity }
|
|
11
|
+
};
|
|
12
|
+
function registerJson(env) {
|
|
13
|
+
env.registerVariable("json", "optional<dyn>", {
|
|
14
|
+
label: "HTTP \u54CD\u5E94\u4F53",
|
|
15
|
+
description: "HTTP \u54CD\u5E94\u4F53\uFF08\u914D\u7F6E\u4E86\u8BF7\u6C42\u65F6\u4E3A\u5DF2\u89E3\u6790 JSON\uFF0C\u5426\u5219\u4E3A none\uFF09"
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export function dataSourceSchema(configure) {
|
|
19
|
+
const CelRequest = Expression({
|
|
20
|
+
configure,
|
|
21
|
+
resultType: "HttpRequest"
|
|
22
|
+
});
|
|
23
|
+
const CelNumber = Expression({
|
|
24
|
+
configure: (env) => {
|
|
25
|
+
configure(env);
|
|
26
|
+
registerJson(env);
|
|
27
|
+
},
|
|
28
|
+
// Tolerate `dyn` / `optional` like `tableDataSource`'s total — most
|
|
29
|
+
// response-derived expressions check as `dyn`, narrowing only at runtime.
|
|
30
|
+
resultType: (t) => t === "number" || t === "dyn" || t.startsWith("optional")
|
|
31
|
+
});
|
|
32
|
+
return Schema.Struct({
|
|
33
|
+
request: Schema.optional(CelRequest).annotations({
|
|
34
|
+
title: "\u8BF7\u6C42",
|
|
35
|
+
description: "\u53EF\u9009\u7684 HTTP \u8BF7\u6C42\u8868\u8FBE\u5F0F\uFF1B\u672A\u914D\u7F6E\u65F6\u6570\u503C\u76F4\u63A5\u4ECE `\u6570\u503C` \u8868\u8FBE\u5F0F\u8BFB\u53D6\uFF08\u901A\u5E38\u5F15\u7528\u4E0A\u4E0B\u6587\u53D8\u91CF\uFF09"
|
|
36
|
+
}),
|
|
37
|
+
value: CelNumber.annotations({
|
|
38
|
+
title: "\u6570\u503C",
|
|
39
|
+
description: "\u8FD4\u56DE\u8981\u5C55\u793A\u7684\u6570\u5B57\uFF08`number`\uFF09\u7684 CEL \u8868\u8FBE\u5F0F\uFF1B\u914D\u7F6E\u4E86 `\u8BF7\u6C42` \u65F6\u53EF\u901A\u8FC7 `json` \u5F15\u7528\u54CD\u5E94\u4F53"
|
|
40
|
+
})
|
|
41
|
+
}).annotations({
|
|
42
|
+
title: "\u6570\u636E\u6E90",
|
|
43
|
+
description: "\u4E00\u4E2A HTTP \u8BF7\u6C42\u52A0\u4E00\u4E2A\u8FD4\u56DE\u6570\u5B57\u7684\u8868\u8FBE\u5F0F"
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
export function itemSchema(configure) {
|
|
47
|
+
const CelString = Expression({
|
|
48
|
+
configure: (env) => {
|
|
49
|
+
configure(env);
|
|
50
|
+
registerJson(env);
|
|
51
|
+
},
|
|
52
|
+
// Tolerate `dyn` / `optional` so a `json`-derived string (which checks as
|
|
53
|
+
// `dyn`) passes validation, mirroring the `value` field's tolerance.
|
|
54
|
+
resultType: (t) => t === "string" || t === "dyn" || t.startsWith("optional")
|
|
55
|
+
});
|
|
56
|
+
const CelStyle = Expression({
|
|
57
|
+
configure: (env) => {
|
|
58
|
+
configure(env);
|
|
59
|
+
registerJson(env);
|
|
60
|
+
},
|
|
61
|
+
resultType: (t) => t === "string" || t === "dyn" || t.startsWith("map") || t.startsWith("optional")
|
|
62
|
+
});
|
|
63
|
+
return Schema.Struct({
|
|
64
|
+
id: Schema.UUID.annotations({ description: "\u6570\u5B57\u9879\u552F\u4E00\u6807\u8BC6" }),
|
|
65
|
+
name: Schema.optional(Schema.String.annotations({
|
|
66
|
+
title: "\u5185\u90E8\u540D\u79F0",
|
|
67
|
+
description: "\u4EC5\u5728\u7F16\u8F91\u5668\u5185\u53EF\u89C1\u7684\u6570\u5B57\u9879\u540D\uFF0C\u7528\u4F5C\u4FA7\u8FB9\u680F\u6807\u7B7E\uFF1B\u8FD0\u884C\u65F6\u4E0D\u5C55\u793A"
|
|
68
|
+
})),
|
|
69
|
+
dataSource: dataSourceSchema(configure),
|
|
70
|
+
pollingInterval: Schema.optional(
|
|
71
|
+
Schema.Number.pipe(Schema.int(), Schema.positive()).annotations({
|
|
72
|
+
title: "\u8F6E\u8BE2\u95F4\u9694",
|
|
73
|
+
description: "\u8F6E\u8BE2\u5237\u65B0\u95F4\u9694\uFF08\u79D2\uFF09\uFF0C\u6B63\u6574\u6570\uFF1B\u7559\u7A7A\u5219\u4E0D\u8F6E\u8BE2\u3002\u7A97\u53E3\u5931\u7126\u65F6\u6682\u505C\uFF0C\u91CD\u65B0\u805A\u7126\u65F6\u7ACB\u5373\u5237\u65B0\u5E76\u6062\u590D\u8F6E\u8BE2"
|
|
74
|
+
})
|
|
75
|
+
),
|
|
76
|
+
prefix: Schema.optional(CelString.annotations({
|
|
77
|
+
title: "\u524D\u7F00",
|
|
78
|
+
description: "\u8FD4\u56DE\u6570\u5B57\u524D\u5C55\u793A\u6587\u672C\uFF08`string`\uFF09\u7684 CEL \u8868\u8FBE\u5F0F\uFF1B\u53EF\u5F15\u7528 `json`\u3002\u7559\u7A7A\u5219\u4E0D\u5C55\u793A"
|
|
79
|
+
})),
|
|
80
|
+
suffix: Schema.optional(CelString.annotations({
|
|
81
|
+
title: "\u540E\u7F00",
|
|
82
|
+
description: "\u8FD4\u56DE\u6570\u5B57\u540E\u5C55\u793A\u6587\u672C\uFF08`string`\uFF09\u7684 CEL \u8868\u8FBE\u5F0F\uFF1B\u53EF\u5F15\u7528 `json`\u3002\u7559\u7A7A\u5219\u4E0D\u5C55\u793A"
|
|
83
|
+
})),
|
|
84
|
+
style: Schema.optional(CelStyle.annotations({
|
|
85
|
+
title: "\u6837\u5F0F",
|
|
86
|
+
description: "\u8FD4\u56DE\u5E94\u7528\u5728\u8BE5\u6570\u5B57\u4E0A\u7684\u6837\u5F0F\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u53EF\u8FD4\u56DE CSS \u5B57\u7B26\u4E32\uFF08\u5982 `'font-size: 3rem'`\uFF09\u6216\u6837\u5F0F\u5BF9\u8C61\uFF08\u5982 `{'fontSize': '3rem'}`\uFF09\uFF1B\u53EF\u5F15\u7528 `json`\u3002\u7559\u7A7A\u5219\u4E0D\u8BBE\u6837\u5F0F"
|
|
87
|
+
}))
|
|
88
|
+
}).annotations({
|
|
89
|
+
title: "\u6570\u5B57\u9879",
|
|
90
|
+
description: "\u4E00\u4E2A\u72EC\u7ACB\u53D6\u6570\u3001\u53EF\u8F6E\u8BE2\u7684\u52A8\u753B\u6570\u5B57"
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
export function schema(configure, _blockRef) {
|
|
94
|
+
return Schema.Struct({
|
|
95
|
+
id: Schema.UUID.annotations({ description: "\u5757\u552F\u4E00\u6807\u8BC6" }),
|
|
96
|
+
type: Schema.tag(type),
|
|
97
|
+
compatibilityDate: Schema.tag(compatibilityDate),
|
|
98
|
+
displayName: Schema.optional(Schema.String.annotations({
|
|
99
|
+
title: "\u5185\u90E8\u540D\u79F0",
|
|
100
|
+
description: "\u4EC5\u5728\u7F16\u8F91\u5668\u5185\u53EF\u89C1\u7684\u5757\u540D\uFF0C\u7528\u4E8E\u5728\u4FA7\u8FB9\u680F\u548C\u5E03\u5C40\u7F16\u8F91\u5668\u4E2D\u8BC6\u522B\u5757\uFF1B\u8FD0\u884C\u65F6\u4E0D\u5C55\u793A"
|
|
101
|
+
})),
|
|
102
|
+
locale: Schema.optional(LocaleMarkdown({ configure }).annotations({
|
|
103
|
+
title: "\u8BF4\u660E\u6587\u5B57",
|
|
104
|
+
description: "\u663E\u793A\u5728\u6570\u5B57\u4E0B\u65B9\u7684\u672C\u5730\u5316\u8BF4\u660E\u6587\u5B57\uFF0C\u6309\u5185\u8054 Markdown \u6E32\u67D3\uFF0C\u652F\u6301 `{{ \u8868\u8FBE\u5F0F }}` CEL \u63D2\u503C\uFF1B\u7559\u7A7A\u5219\u4E0D\u663E\u793A"
|
|
105
|
+
})),
|
|
106
|
+
items: Schema.Array(itemSchema(configure)).pipe(Schema.minItems(1)).annotations({
|
|
107
|
+
title: "\u6570\u5B57\u9879",
|
|
108
|
+
description: "\u4E00\u4E2A\u6216\u591A\u4E2A\u52A8\u753B\u6570\u5B57\uFF0C\u5E76\u6392\u5C55\u793A\u5E76\u5171\u4EAB\u52A8\u753B\u5206\u7EC4\uFF1B\u81F3\u5C11\u914D\u7F6E\u4E00\u4E2A"
|
|
109
|
+
})
|
|
110
|
+
}).annotations({
|
|
111
|
+
title: "\u52A8\u753B\u6570\u5B57\u5757",
|
|
112
|
+
description: "\u628A\u4E00\u4E2A\u6216\u591A\u4E2A\u6570\u636E\u6E90\u5404\u53D6\u4E00\u4E2A\u6570\u5B57\uFF0C\u4EE5\u52A8\u753B\u8FC7\u6E21\u5E76\u6392\u6E32\u67D3\uFF0C\u53EF\u9009\u9010\u9879\u8F6E\u8BE2"
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
export function defaultBody() {
|
|
116
|
+
return { items: [{ id: crypto.randomUUID(), dataSource: { value: "0" } }] };
|
|
117
|
+
}
|
|
@@ -33,8 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly numberOfMonths?: number | undefined;
|
|
36
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
37
36
|
readonly format?: string | undefined;
|
|
37
|
+
readonly valueFormat?: string | undefined;
|
|
38
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
38
39
|
readonly startPlaceholder?: readonly [{
|
|
39
40
|
readonly locale: "zh";
|
|
40
41
|
readonly message: string;
|
|
@@ -49,7 +50,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
49
50
|
readonly locale: "en" | "ja" | "ko";
|
|
50
51
|
readonly message: string;
|
|
51
52
|
}[]] | undefined;
|
|
52
|
-
readonly valueFormat?: string | undefined;
|
|
53
53
|
readonly validations?: readonly {
|
|
54
54
|
readonly message: readonly [{
|
|
55
55
|
readonly locale: "zh";
|
|
@@ -105,8 +105,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
105
105
|
readonly expression: string;
|
|
106
106
|
} | undefined;
|
|
107
107
|
readonly numberOfMonths?: number | undefined;
|
|
108
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
109
108
|
readonly format?: string | undefined;
|
|
109
|
+
readonly valueFormat?: string | undefined;
|
|
110
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
110
111
|
readonly startPlaceholder?: readonly [{
|
|
111
112
|
readonly locale: "zh";
|
|
112
113
|
readonly message: string;
|
|
@@ -121,7 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
121
122
|
readonly locale: "en" | "ja" | "ko";
|
|
122
123
|
readonly message: string;
|
|
123
124
|
}[]] | undefined;
|
|
124
|
-
readonly valueFormat?: string | undefined;
|
|
125
125
|
readonly validations?: readonly {
|
|
126
126
|
readonly message: readonly [{
|
|
127
127
|
readonly locale: "zh";
|
|
@@ -33,8 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly numberOfMonths?: number | undefined;
|
|
36
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
37
36
|
readonly format?: string | undefined;
|
|
37
|
+
readonly valueFormat?: string | undefined;
|
|
38
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
38
39
|
readonly startPlaceholder?: readonly [{
|
|
39
40
|
readonly locale: "zh";
|
|
40
41
|
readonly message: string;
|
|
@@ -49,7 +50,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
49
50
|
readonly locale: "en" | "ja" | "ko";
|
|
50
51
|
readonly message: string;
|
|
51
52
|
}[]] | undefined;
|
|
52
|
-
readonly valueFormat?: string | undefined;
|
|
53
53
|
readonly validations?: readonly {
|
|
54
54
|
readonly message: readonly [{
|
|
55
55
|
readonly locale: "zh";
|
|
@@ -105,8 +105,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
105
105
|
readonly expression: string;
|
|
106
106
|
} | undefined;
|
|
107
107
|
readonly numberOfMonths?: number | undefined;
|
|
108
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
109
108
|
readonly format?: string | undefined;
|
|
109
|
+
readonly valueFormat?: string | undefined;
|
|
110
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
110
111
|
readonly startPlaceholder?: readonly [{
|
|
111
112
|
readonly locale: "zh";
|
|
112
113
|
readonly message: string;
|
|
@@ -121,7 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
121
122
|
readonly locale: "en" | "ja" | "ko";
|
|
122
123
|
readonly message: string;
|
|
123
124
|
}[]] | undefined;
|
|
124
|
-
readonly valueFormat?: string | undefined;
|
|
125
125
|
readonly validations?: readonly {
|
|
126
126
|
readonly message: readonly [{
|
|
127
127
|
readonly locale: "zh";
|
|
@@ -34,8 +34,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly numberOfMonths?: number | undefined;
|
|
36
36
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
37
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
38
37
|
readonly format?: string | undefined;
|
|
38
|
+
readonly valueFormat?: string | undefined;
|
|
39
|
+
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
40
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
39
41
|
readonly startPlaceholder?: readonly [{
|
|
40
42
|
readonly locale: "zh";
|
|
41
43
|
readonly message: string;
|
|
@@ -50,8 +52,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
52
|
readonly locale: "en" | "ja" | "ko";
|
|
51
53
|
readonly message: string;
|
|
52
54
|
}[]] | undefined;
|
|
53
|
-
readonly valueFormat?: string | undefined;
|
|
54
|
-
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
55
55
|
readonly validations?: readonly {
|
|
56
56
|
readonly message: readonly [{
|
|
57
57
|
readonly locale: "zh";
|
|
@@ -108,8 +108,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
} | undefined;
|
|
109
109
|
readonly numberOfMonths?: number | undefined;
|
|
110
110
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
111
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
112
111
|
readonly format?: string | undefined;
|
|
112
|
+
readonly valueFormat?: string | undefined;
|
|
113
|
+
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
114
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
113
115
|
readonly startPlaceholder?: readonly [{
|
|
114
116
|
readonly locale: "zh";
|
|
115
117
|
readonly message: string;
|
|
@@ -124,8 +126,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
124
126
|
readonly locale: "en" | "ja" | "ko";
|
|
125
127
|
readonly message: string;
|
|
126
128
|
}[]] | undefined;
|
|
127
|
-
readonly valueFormat?: string | undefined;
|
|
128
|
-
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
129
129
|
readonly validations?: readonly {
|
|
130
130
|
readonly message: readonly [{
|
|
131
131
|
readonly locale: "zh";
|
|
@@ -34,8 +34,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly numberOfMonths?: number | undefined;
|
|
36
36
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
37
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
38
37
|
readonly format?: string | undefined;
|
|
38
|
+
readonly valueFormat?: string | undefined;
|
|
39
|
+
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
40
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
39
41
|
readonly startPlaceholder?: readonly [{
|
|
40
42
|
readonly locale: "zh";
|
|
41
43
|
readonly message: string;
|
|
@@ -50,8 +52,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
52
|
readonly locale: "en" | "ja" | "ko";
|
|
51
53
|
readonly message: string;
|
|
52
54
|
}[]] | undefined;
|
|
53
|
-
readonly valueFormat?: string | undefined;
|
|
54
|
-
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
55
55
|
readonly validations?: readonly {
|
|
56
56
|
readonly message: readonly [{
|
|
57
57
|
readonly locale: "zh";
|
|
@@ -108,8 +108,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
} | undefined;
|
|
109
109
|
readonly numberOfMonths?: number | undefined;
|
|
110
110
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
111
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
112
111
|
readonly format?: string | undefined;
|
|
112
|
+
readonly valueFormat?: string | undefined;
|
|
113
|
+
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
114
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
113
115
|
readonly startPlaceholder?: readonly [{
|
|
114
116
|
readonly locale: "zh";
|
|
115
117
|
readonly message: string;
|
|
@@ -124,8 +126,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
124
126
|
readonly locale: "en" | "ja" | "ko";
|
|
125
127
|
readonly message: string;
|
|
126
128
|
}[]] | undefined;
|
|
127
|
-
readonly valueFormat?: string | undefined;
|
|
128
|
-
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
129
129
|
readonly validations?: readonly {
|
|
130
130
|
readonly message: readonly [{
|
|
131
131
|
readonly locale: "zh";
|
|
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
36
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
37
36
|
readonly valueFormat?: string | undefined;
|
|
38
37
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
38
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
39
39
|
readonly validations?: readonly {
|
|
40
40
|
readonly message: readonly [{
|
|
41
41
|
readonly locale: "zh";
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
readonly expression: string;
|
|
80
80
|
} | undefined;
|
|
81
81
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
82
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
83
82
|
readonly valueFormat?: string | undefined;
|
|
84
83
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
84
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
85
85
|
readonly validations?: readonly {
|
|
86
86
|
readonly message: readonly [{
|
|
87
87
|
readonly locale: "zh";
|
|
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
36
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
37
36
|
readonly valueFormat?: string | undefined;
|
|
38
37
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
38
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
39
39
|
readonly validations?: readonly {
|
|
40
40
|
readonly message: readonly [{
|
|
41
41
|
readonly locale: "zh";
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
readonly expression: string;
|
|
80
80
|
} | undefined;
|
|
81
81
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
82
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
83
82
|
readonly valueFormat?: string | undefined;
|
|
84
83
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
84
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
85
85
|
readonly validations?: readonly {
|
|
86
86
|
readonly message: readonly [{
|
|
87
87
|
readonly locale: "zh";
|
|
@@ -32,8 +32,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
32
32
|
readonly mode: "formula" | "prefill";
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
36
35
|
readonly format?: string | undefined;
|
|
36
|
+
readonly valueFormat?: string | undefined;
|
|
37
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
37
38
|
readonly startPlaceholder?: readonly [{
|
|
38
39
|
readonly locale: "zh";
|
|
39
40
|
readonly message: string;
|
|
@@ -48,7 +49,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
48
49
|
readonly locale: "en" | "ja" | "ko";
|
|
49
50
|
readonly message: string;
|
|
50
51
|
}[]] | undefined;
|
|
51
|
-
readonly valueFormat?: string | undefined;
|
|
52
52
|
readonly validations?: readonly {
|
|
53
53
|
readonly message: readonly [{
|
|
54
54
|
readonly locale: "zh";
|
|
@@ -103,8 +103,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
103
103
|
readonly mode: "formula" | "prefill";
|
|
104
104
|
readonly expression: string;
|
|
105
105
|
} | undefined;
|
|
106
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
107
106
|
readonly format?: string | undefined;
|
|
107
|
+
readonly valueFormat?: string | undefined;
|
|
108
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
108
109
|
readonly startPlaceholder?: readonly [{
|
|
109
110
|
readonly locale: "zh";
|
|
110
111
|
readonly message: string;
|
|
@@ -119,7 +120,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
119
120
|
readonly locale: "en" | "ja" | "ko";
|
|
120
121
|
readonly message: string;
|
|
121
122
|
}[]] | undefined;
|
|
122
|
-
readonly valueFormat?: string | undefined;
|
|
123
123
|
readonly validations?: readonly {
|
|
124
124
|
readonly message: readonly [{
|
|
125
125
|
readonly locale: "zh";
|
|
@@ -32,8 +32,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
32
32
|
readonly mode: "formula" | "prefill";
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
36
35
|
readonly format?: string | undefined;
|
|
36
|
+
readonly valueFormat?: string | undefined;
|
|
37
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
37
38
|
readonly startPlaceholder?: readonly [{
|
|
38
39
|
readonly locale: "zh";
|
|
39
40
|
readonly message: string;
|
|
@@ -48,7 +49,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
48
49
|
readonly locale: "en" | "ja" | "ko";
|
|
49
50
|
readonly message: string;
|
|
50
51
|
}[]] | undefined;
|
|
51
|
-
readonly valueFormat?: string | undefined;
|
|
52
52
|
readonly validations?: readonly {
|
|
53
53
|
readonly message: readonly [{
|
|
54
54
|
readonly locale: "zh";
|
|
@@ -103,8 +103,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
103
103
|
readonly mode: "formula" | "prefill";
|
|
104
104
|
readonly expression: string;
|
|
105
105
|
} | undefined;
|
|
106
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
107
106
|
readonly format?: string | undefined;
|
|
107
|
+
readonly valueFormat?: string | undefined;
|
|
108
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
108
109
|
readonly startPlaceholder?: readonly [{
|
|
109
110
|
readonly locale: "zh";
|
|
110
111
|
readonly message: string;
|
|
@@ -119,7 +120,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
119
120
|
readonly locale: "en" | "ja" | "ko";
|
|
120
121
|
readonly message: string;
|
|
121
122
|
}[]] | undefined;
|
|
122
|
-
readonly valueFormat?: string | undefined;
|
|
123
123
|
readonly validations?: readonly {
|
|
124
124
|
readonly message: readonly [{
|
|
125
125
|
readonly locale: "zh";
|