@shwfed/config 2.11.4 → 2.11.6
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/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.vue +1 -0
- package/dist/runtime/components/actions/config.vue +2 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue +3 -4
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.vue +3 -3
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue +5 -6
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue +5 -6
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.vue +7 -3
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.vue +7 -3
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +81 -2
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +38 -4
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +132 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +28 -2
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.vue +4 -4
- package/dist/runtime/components/table/config.vue +1 -0
- package/dist/runtime/components/table/row-provider.vue +2 -2
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +1 -1
- package/dist/runtime/components/ui/date-picker/DatePicker.d.vue.ts +11 -1
- package/dist/runtime/components/ui/date-picker/DatePicker.vue +8 -1
- package/dist/runtime/components/ui/date-picker/DatePicker.vue.d.ts +11 -1
- package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +11 -1
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +4 -0
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +11 -1
- package/dist/runtime/utils/cel-context.d.ts +1 -0
- package/dist/runtime/utils/cel-context.js +28 -0
- package/dist/runtime/vendor/cel-js/CLAUDE.md +1 -1
- package/dist/runtime/vendor/cel-js/PROMPT.md +7 -0
- package/dist/runtime/vendor/cel-js/lib/functions.js +25 -1
- package/package.json +3 -8
- package/dist/mcp.mjs +0 -102267
- package/dist/preview/assets/FieldGroup.vue_vue_type_script_setup_true_lang-BE68tZWF.js +0 -1
- package/dist/preview/assets/badge-CGMjdhLX.js +0 -1
- package/dist/preview/assets/config-B7TZ-128.js +0 -1
- package/dist/preview/assets/config-BSym_jQg.js +0 -1
- package/dist/preview/assets/config-ByCFJbd-.js +0 -1
- package/dist/preview/assets/config-C4cv2S64.js +0 -1
- package/dist/preview/assets/config-ChrJHusi.js +0 -1
- package/dist/preview/assets/config-CxbYENZ0.js +0 -1
- package/dist/preview/assets/config-DFS2XL3-.js +0 -1
- package/dist/preview/assets/config-DWj1CTai.js +0 -1
- package/dist/preview/assets/config-DZI21_UB.js +0 -1
- package/dist/preview/assets/config-D_O4ACtH.js +0 -1
- package/dist/preview/assets/config-DjA8bfLm.js +0 -1
- package/dist/preview/assets/config-DwPGLI3R.js +0 -1
- package/dist/preview/assets/config-dkVvsr4h.js +0 -1
- package/dist/preview/assets/config-hsH0bSZh.js +0 -1
- package/dist/preview/assets/config-xrfje67L.js +0 -1
- package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-BGk00yfB.js +0 -1
- package/dist/preview/assets/index-B4oT9ZrQ.js +0 -1
- package/dist/preview/assets/index-BSQlKkJR.js +0 -775
- package/dist/preview/assets/index-CzQKNngS.js +0 -1
- package/dist/preview/assets/index-DPFQgj9g.css +0 -1
- package/dist/preview/assets/item-D4gmvDO-.js +0 -1
- package/dist/preview/assets/runtime--e0UxK6b.js +0 -1
- package/dist/preview/assets/runtime-BWH8ForT.js +0 -1
- package/dist/preview/assets/runtime-BgO2briD.js +0 -1
- package/dist/preview/assets/runtime-BmEP7xID.js +0 -1
- package/dist/preview/assets/runtime-C66GF-2d.js +0 -1
- package/dist/preview/assets/runtime-CJCOS6D_.js +0 -1
- package/dist/preview/assets/runtime-CREolKJd.js +0 -1
- package/dist/preview/assets/runtime-CjU46djh.js +0 -1
- package/dist/preview/assets/runtime-e59FkBkL.js +0 -1
- package/dist/preview/assets/runtime-pYLX1Bb-.js +0 -1
- package/dist/preview/assets/runtime-wvP7jhBK.js +0 -1
- package/dist/preview/assets/schema-meta-C4Ttq3eE.js +0 -1
- package/dist/preview/index.html +0 -19
package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue
CHANGED
|
@@ -6,7 +6,7 @@ import { toast } from "vue-sonner";
|
|
|
6
6
|
import { cel as $cel } from "../../../../../utils/cel";
|
|
7
7
|
import { Switch } from "../../../../ui/switch";
|
|
8
8
|
import { JUSTIFY_CLASS } from "../../../utils/runtime";
|
|
9
|
-
import {
|
|
9
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
10
10
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
11
11
|
defineOptions({ name: "ShwfedTableSwitchRendererRuntime" });
|
|
12
12
|
const props = defineProps({
|
|
@@ -15,7 +15,7 @@ const props = defineProps({
|
|
|
15
15
|
});
|
|
16
16
|
const celContext = injectCELContext();
|
|
17
17
|
const eventChannel = useEventChannel();
|
|
18
|
-
const triggerCel = (expression, context) => $cel(expression,
|
|
18
|
+
const triggerCel = (expression, context) => $cel(expression, celScope(celContext, context));
|
|
19
19
|
const rawValue = computed(() => props.ctx.cell.getValue());
|
|
20
20
|
const isMissing = computed(() => rawValue.value === void 0 || rawValue.value === null);
|
|
21
21
|
const checked = computed(() => rawValue.value === true);
|
|
@@ -26,7 +26,7 @@ const pending = ref(false);
|
|
|
26
26
|
const isDisabledByConfig = computed(() => {
|
|
27
27
|
if (!props.column.disabled) return false;
|
|
28
28
|
try {
|
|
29
|
-
return Effect.runSync($cel(props.column.disabled,
|
|
29
|
+
return Effect.runSync($cel(props.column.disabled, celScope(celContext))) === true;
|
|
30
30
|
} catch (e) {
|
|
31
31
|
console.error("[shwfed-table] switch disabled failed", e);
|
|
32
32
|
return false;
|
|
@@ -39,10 +39,9 @@ async function onUpdate(next) {
|
|
|
39
39
|
if (!onChange) return;
|
|
40
40
|
pending.value = true;
|
|
41
41
|
const program = Effect.gen(function* () {
|
|
42
|
-
const builder = yield* $cel(onChange, {
|
|
43
|
-
...celBindings(celContext),
|
|
42
|
+
const builder = yield* $cel(onChange, celScope(celContext, {
|
|
44
43
|
value: next
|
|
45
|
-
});
|
|
44
|
+
}));
|
|
46
45
|
return yield* builder.json();
|
|
47
46
|
});
|
|
48
47
|
try {
|
|
@@ -6,7 +6,7 @@ import { toast } from "vue-sonner";
|
|
|
6
6
|
import { cel as $cel } from "../../../../../utils/cel";
|
|
7
7
|
import { Switch } from "../../../../ui/switch";
|
|
8
8
|
import { JUSTIFY_CLASS } from "../../../utils/runtime";
|
|
9
|
-
import {
|
|
9
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
10
10
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
11
11
|
defineOptions({ name: "ShwfedTableSwitchRendererRuntime" });
|
|
12
12
|
const props = defineProps({
|
|
@@ -15,7 +15,7 @@ const props = defineProps({
|
|
|
15
15
|
});
|
|
16
16
|
const celContext = injectCELContext();
|
|
17
17
|
const eventChannel = useEventChannel();
|
|
18
|
-
const triggerCel = (expression, context) => $cel(expression,
|
|
18
|
+
const triggerCel = (expression, context) => $cel(expression, celScope(celContext, context));
|
|
19
19
|
const rawValue = computed(() => props.ctx.cell.getValue());
|
|
20
20
|
const isMissing = computed(() => rawValue.value === void 0 || rawValue.value === null);
|
|
21
21
|
const checked = computed(() => rawValue.value === true);
|
|
@@ -26,7 +26,7 @@ const pending = ref(false);
|
|
|
26
26
|
const isDisabledByConfig = computed(() => {
|
|
27
27
|
if (!props.column.disabled) return false;
|
|
28
28
|
try {
|
|
29
|
-
return Effect.runSync($cel(props.column.disabled,
|
|
29
|
+
return Effect.runSync($cel(props.column.disabled, celScope(celContext))) === true;
|
|
30
30
|
} catch (e) {
|
|
31
31
|
console.error("[shwfed-table] switch disabled failed", e);
|
|
32
32
|
return false;
|
|
@@ -39,10 +39,9 @@ async function onUpdate(next) {
|
|
|
39
39
|
if (!onChange) return;
|
|
40
40
|
pending.value = true;
|
|
41
41
|
const program = Effect.gen(function* () {
|
|
42
|
-
const builder = yield* $cel(onChange, {
|
|
43
|
-
...celBindings(celContext),
|
|
42
|
+
const builder = yield* $cel(onChange, celScope(celContext, {
|
|
44
43
|
value: next
|
|
45
|
-
});
|
|
44
|
+
}));
|
|
46
45
|
return yield* builder.json();
|
|
47
46
|
});
|
|
48
47
|
try {
|
|
@@ -4,7 +4,7 @@ import { Effect } from "effect";
|
|
|
4
4
|
import { computed, nextTick, ref, watch } from "vue";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
|
-
import {
|
|
7
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
8
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
9
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
10
10
|
import {
|
|
@@ -47,7 +47,7 @@ const { locale, t } = useI18n({
|
|
|
47
47
|
});
|
|
48
48
|
const formState = useFormState();
|
|
49
49
|
const inherited = injectCELContext();
|
|
50
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
50
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
51
51
|
const placeholderText = computed(
|
|
52
52
|
() => props.column.placeholder ? getLocalizedText(props.column.placeholder, locale.value) : t("combobox-single-placeholder")
|
|
53
53
|
);
|
|
@@ -4,7 +4,7 @@ import { Effect } from "effect";
|
|
|
4
4
|
import { computed, nextTick } from "vue";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
|
-
import {
|
|
7
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
8
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
9
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
10
10
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupNumberField } from "../../../../ui/input-group";
|
|
@@ -18,7 +18,7 @@ const props = defineProps({
|
|
|
18
18
|
});
|
|
19
19
|
const { locale } = useI18n();
|
|
20
20
|
const inherited = injectCELContext();
|
|
21
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
21
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
22
22
|
const placeholderText = computed(
|
|
23
23
|
() => props.column.placeholder ? getLocalizedText(props.column.placeholder, locale.value) : void 0
|
|
24
24
|
);
|
package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/runtime.vue
CHANGED
|
@@ -3,7 +3,7 @@ import { Effect } from "effect";
|
|
|
3
3
|
import { computed } from "vue";
|
|
4
4
|
import { useI18n } from "vue-i18n";
|
|
5
5
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
6
|
-
import {
|
|
6
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
7
7
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
8
8
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
9
|
import { Switch } from "../../../../ui/switch";
|
|
@@ -15,7 +15,7 @@ const props = defineProps({
|
|
|
15
15
|
});
|
|
16
16
|
const { locale } = useI18n();
|
|
17
17
|
const inherited = injectCELContext();
|
|
18
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
18
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
19
19
|
function evalBool(expression, label) {
|
|
20
20
|
if (!expression) return false;
|
|
21
21
|
try {
|
|
@@ -3,7 +3,7 @@ import { Effect } from "effect";
|
|
|
3
3
|
import { computed } from "vue";
|
|
4
4
|
import { useI18n } from "vue-i18n";
|
|
5
5
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
6
|
-
import {
|
|
6
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
7
7
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
8
8
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
9
|
import { Switch } from "../../../../ui/switch";
|
|
@@ -16,7 +16,7 @@ const props = defineProps({
|
|
|
16
16
|
});
|
|
17
17
|
const { locale } = useI18n();
|
|
18
18
|
const inherited = injectCELContext();
|
|
19
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
19
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
20
20
|
function evalBool(expression, label) {
|
|
21
21
|
if (!expression) return false;
|
|
22
22
|
try {
|
|
@@ -4,7 +4,7 @@ import { computed, ref, watch } from "vue";
|
|
|
4
4
|
import { useI18n } from "vue-i18n";
|
|
5
5
|
import { Icon } from "@iconify/vue";
|
|
6
6
|
import { cel as $cel } from "../../../../../utils/cel";
|
|
7
|
-
import {
|
|
7
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
8
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
9
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
10
10
|
import {
|
|
@@ -30,7 +30,7 @@ const placeholderText = computed(
|
|
|
30
30
|
function evalBool(expression, label) {
|
|
31
31
|
if (!expression) return false;
|
|
32
32
|
try {
|
|
33
|
-
return Effect.runSync($cel(expression,
|
|
33
|
+
return Effect.runSync($cel(expression, celScope(celContext))) === true;
|
|
34
34
|
} catch (e) {
|
|
35
35
|
console.error(`[shwfed-table] text-input ${label} failed`, e);
|
|
36
36
|
return false;
|
|
@@ -45,6 +45,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly request: string;
|
|
46
46
|
readonly enableSorting?: boolean | undefined;
|
|
47
47
|
readonly options: string;
|
|
48
|
+
readonly successMessage?: string | undefined;
|
|
49
|
+
readonly accessor?: string | undefined;
|
|
50
|
+
readonly sortKey?: string | undefined;
|
|
48
51
|
readonly optionValue: string;
|
|
49
52
|
readonly optionLabel: readonly [{
|
|
50
53
|
readonly locale: "zh";
|
|
@@ -53,9 +56,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
56
|
readonly locale: "en" | "ja" | "ko";
|
|
54
57
|
readonly message: string;
|
|
55
58
|
}[]];
|
|
56
|
-
readonly successMessage?: string | undefined;
|
|
57
|
-
readonly accessor?: string | undefined;
|
|
58
|
-
readonly sortKey?: string | undefined;
|
|
59
59
|
}) => any;
|
|
60
60
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
61
61
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -100,6 +100,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
100
100
|
readonly request: string;
|
|
101
101
|
readonly enableSorting?: boolean | undefined;
|
|
102
102
|
readonly options: string;
|
|
103
|
+
readonly successMessage?: string | undefined;
|
|
104
|
+
readonly accessor?: string | undefined;
|
|
105
|
+
readonly sortKey?: string | undefined;
|
|
103
106
|
readonly optionValue: string;
|
|
104
107
|
readonly optionLabel: readonly [{
|
|
105
108
|
readonly locale: "zh";
|
|
@@ -108,9 +111,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
111
|
readonly locale: "en" | "ja" | "ko";
|
|
109
112
|
readonly message: string;
|
|
110
113
|
}[]];
|
|
111
|
-
readonly successMessage?: string | undefined;
|
|
112
|
-
readonly accessor?: string | undefined;
|
|
113
|
-
readonly sortKey?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
115
115
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
116
116
|
declare const _default: typeof __VLS_export;
|
|
@@ -45,6 +45,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly request: string;
|
|
46
46
|
readonly enableSorting?: boolean | undefined;
|
|
47
47
|
readonly options: string;
|
|
48
|
+
readonly successMessage?: string | undefined;
|
|
49
|
+
readonly accessor?: string | undefined;
|
|
50
|
+
readonly sortKey?: string | undefined;
|
|
48
51
|
readonly optionValue: string;
|
|
49
52
|
readonly optionLabel: readonly [{
|
|
50
53
|
readonly locale: "zh";
|
|
@@ -53,9 +56,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
56
|
readonly locale: "en" | "ja" | "ko";
|
|
54
57
|
readonly message: string;
|
|
55
58
|
}[]];
|
|
56
|
-
readonly successMessage?: string | undefined;
|
|
57
|
-
readonly accessor?: string | undefined;
|
|
58
|
-
readonly sortKey?: string | undefined;
|
|
59
59
|
}) => any;
|
|
60
60
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
61
61
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -100,6 +100,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
100
100
|
readonly request: string;
|
|
101
101
|
readonly enableSorting?: boolean | undefined;
|
|
102
102
|
readonly options: string;
|
|
103
|
+
readonly successMessage?: string | undefined;
|
|
104
|
+
readonly accessor?: string | undefined;
|
|
105
|
+
readonly sortKey?: string | undefined;
|
|
103
106
|
readonly optionValue: string;
|
|
104
107
|
readonly optionLabel: readonly [{
|
|
105
108
|
readonly locale: "zh";
|
|
@@ -108,9 +111,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
111
|
readonly locale: "en" | "ja" | "ko";
|
|
109
112
|
readonly message: string;
|
|
110
113
|
}[]];
|
|
111
|
-
readonly successMessage?: string | undefined;
|
|
112
|
-
readonly accessor?: string | undefined;
|
|
113
|
-
readonly sortKey?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
115
115
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
116
116
|
declare const _default: typeof __VLS_export;
|
|
@@ -8,7 +8,7 @@ import { computed, nextTick, ref, watch } from "vue";
|
|
|
8
8
|
import { useI18n } from "vue-i18n";
|
|
9
9
|
import { asRequest, fetchJsonOption } from "../../../../../share/request";
|
|
10
10
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
11
|
-
import {
|
|
11
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
12
12
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
13
13
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
14
14
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
@@ -54,7 +54,7 @@ const { locale, t } = useI18n({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const inherited = injectCELContext();
|
|
57
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
57
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
58
58
|
const eventChannel = useEventChannel();
|
|
59
59
|
const sharedFetchLayer = useSharedFetchLayer();
|
|
60
60
|
const row = computed(() => props.ctx.row.original);
|
|
@@ -6,7 +6,7 @@ import { toast } from "vue-sonner";
|
|
|
6
6
|
import { computed, nextTick, ref, watch } from "vue";
|
|
7
7
|
import { useI18n } from "vue-i18n";
|
|
8
8
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
9
|
-
import {
|
|
9
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
10
10
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
11
11
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
12
12
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
@@ -48,7 +48,7 @@ const { locale, t } = useI18n({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const inherited = injectCELContext();
|
|
51
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
51
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
52
52
|
const eventChannel = useEventChannel();
|
|
53
53
|
const placeholderText = computed(
|
|
54
54
|
() => props.column.placeholder ? getLocalizedText(props.column.placeholder, locale.value) : t("combobox-single-placeholder")
|
|
@@ -4,7 +4,7 @@ import { Effect } from "effect";
|
|
|
4
4
|
import { computed, ref, watch } from "vue";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
|
-
import {
|
|
7
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
8
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
9
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
10
10
|
import {
|
|
@@ -47,7 +47,7 @@ const { locale, t } = useI18n({
|
|
|
47
47
|
});
|
|
48
48
|
const formState = useFormState();
|
|
49
49
|
const inherited = injectCELContext();
|
|
50
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
50
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
51
51
|
const placeholderText = computed(
|
|
52
52
|
() => props.column.placeholder ? getLocalizedText(props.column.placeholder, locale.value) : t("combobox-multi-placeholder")
|
|
53
53
|
);
|
|
@@ -45,6 +45,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly request: string;
|
|
46
46
|
readonly enableSorting?: boolean | undefined;
|
|
47
47
|
readonly options: string;
|
|
48
|
+
readonly successMessage?: string | undefined;
|
|
49
|
+
readonly accessor?: string | undefined;
|
|
50
|
+
readonly sortKey?: string | undefined;
|
|
48
51
|
readonly optionValue: string;
|
|
49
52
|
readonly optionLabel: readonly [{
|
|
50
53
|
readonly locale: "zh";
|
|
@@ -53,9 +56,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
56
|
readonly locale: "en" | "ja" | "ko";
|
|
54
57
|
readonly message: string;
|
|
55
58
|
}[]];
|
|
56
|
-
readonly successMessage?: string | undefined;
|
|
57
|
-
readonly accessor?: string | undefined;
|
|
58
|
-
readonly sortKey?: string | undefined;
|
|
59
59
|
}) => any;
|
|
60
60
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
61
61
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -100,6 +100,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
100
100
|
readonly request: string;
|
|
101
101
|
readonly enableSorting?: boolean | undefined;
|
|
102
102
|
readonly options: string;
|
|
103
|
+
readonly successMessage?: string | undefined;
|
|
104
|
+
readonly accessor?: string | undefined;
|
|
105
|
+
readonly sortKey?: string | undefined;
|
|
103
106
|
readonly optionValue: string;
|
|
104
107
|
readonly optionLabel: readonly [{
|
|
105
108
|
readonly locale: "zh";
|
|
@@ -108,9 +111,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
111
|
readonly locale: "en" | "ja" | "ko";
|
|
109
112
|
readonly message: string;
|
|
110
113
|
}[]];
|
|
111
|
-
readonly successMessage?: string | undefined;
|
|
112
|
-
readonly accessor?: string | undefined;
|
|
113
|
-
readonly sortKey?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
115
115
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
116
116
|
declare const _default: typeof __VLS_export;
|
|
@@ -45,6 +45,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly request: string;
|
|
46
46
|
readonly enableSorting?: boolean | undefined;
|
|
47
47
|
readonly options: string;
|
|
48
|
+
readonly successMessage?: string | undefined;
|
|
49
|
+
readonly accessor?: string | undefined;
|
|
50
|
+
readonly sortKey?: string | undefined;
|
|
48
51
|
readonly optionValue: string;
|
|
49
52
|
readonly optionLabel: readonly [{
|
|
50
53
|
readonly locale: "zh";
|
|
@@ -53,9 +56,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
56
|
readonly locale: "en" | "ja" | "ko";
|
|
54
57
|
readonly message: string;
|
|
55
58
|
}[]];
|
|
56
|
-
readonly successMessage?: string | undefined;
|
|
57
|
-
readonly accessor?: string | undefined;
|
|
58
|
-
readonly sortKey?: string | undefined;
|
|
59
59
|
}) => any;
|
|
60
60
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
61
61
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -100,6 +100,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
100
100
|
readonly request: string;
|
|
101
101
|
readonly enableSorting?: boolean | undefined;
|
|
102
102
|
readonly options: string;
|
|
103
|
+
readonly successMessage?: string | undefined;
|
|
104
|
+
readonly accessor?: string | undefined;
|
|
105
|
+
readonly sortKey?: string | undefined;
|
|
103
106
|
readonly optionValue: string;
|
|
104
107
|
readonly optionLabel: readonly [{
|
|
105
108
|
readonly locale: "zh";
|
|
@@ -108,9 +111,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
111
|
readonly locale: "en" | "ja" | "ko";
|
|
109
112
|
readonly message: string;
|
|
110
113
|
}[]];
|
|
111
|
-
readonly successMessage?: string | undefined;
|
|
112
|
-
readonly accessor?: string | undefined;
|
|
113
|
-
readonly sortKey?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
115
115
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
116
116
|
declare const _default: typeof __VLS_export;
|
|
@@ -8,7 +8,7 @@ import { computed, ref, watch } from "vue";
|
|
|
8
8
|
import { useI18n } from "vue-i18n";
|
|
9
9
|
import { asRequest, fetchJsonOption } from "../../../../../share/request";
|
|
10
10
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
11
|
-
import {
|
|
11
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
12
12
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
13
13
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
14
14
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
@@ -54,7 +54,7 @@ const { locale, t } = useI18n({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const inherited = injectCELContext();
|
|
57
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
57
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
58
58
|
const eventChannel = useEventChannel();
|
|
59
59
|
const sharedFetchLayer = useSharedFetchLayer();
|
|
60
60
|
const row = computed(() => props.ctx.row.original);
|
|
@@ -6,7 +6,7 @@ import { toast } from "vue-sonner";
|
|
|
6
6
|
import { computed, ref, watch } from "vue";
|
|
7
7
|
import { useI18n } from "vue-i18n";
|
|
8
8
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
9
|
-
import {
|
|
9
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
10
10
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
11
11
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
12
12
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
@@ -48,7 +48,7 @@ const { locale, t } = useI18n({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const inherited = injectCELContext();
|
|
51
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
51
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
52
52
|
const eventChannel = useEventChannel();
|
|
53
53
|
const placeholderText = computed(
|
|
54
54
|
() => props.column.placeholder ? getLocalizedText(props.column.placeholder, locale.value) : t("combobox-multi-placeholder")
|
|
@@ -6,7 +6,7 @@ import { computed, ref, watch } from "vue";
|
|
|
6
6
|
import { useI18n } from "vue-i18n";
|
|
7
7
|
import { asRequest, fetchJsonOption } from "../../../../../share/request";
|
|
8
8
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
9
|
-
import {
|
|
9
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
10
10
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
11
11
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
12
12
|
import {
|
|
@@ -53,7 +53,7 @@ const { locale, t } = useI18n({
|
|
|
53
53
|
});
|
|
54
54
|
const formState = useFormState();
|
|
55
55
|
const inherited = injectCELContext();
|
|
56
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
56
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
57
57
|
const sharedFetchLayer = useSharedFetchLayer();
|
|
58
58
|
const row = computed(() => props.ctx.row.original);
|
|
59
59
|
const rowIndex = computed(() => props.ctx.row.index);
|
|
@@ -8,7 +8,7 @@ import { computed, ref } from "vue";
|
|
|
8
8
|
import { useI18n } from "vue-i18n";
|
|
9
9
|
import { asRequest, fetchJsonOption } from "../../../../../share/request";
|
|
10
10
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
11
|
-
import {
|
|
11
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
12
12
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
13
13
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
14
14
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
@@ -54,7 +54,7 @@ const { locale, t } = useI18n({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const inherited = injectCELContext();
|
|
57
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
57
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
58
58
|
const eventChannel = useEventChannel();
|
|
59
59
|
const sharedFetchLayer = useSharedFetchLayer();
|
|
60
60
|
const row = computed(() => props.ctx.row.original);
|
|
@@ -5,7 +5,7 @@ import { watchDebounced } from "@vueuse/core";
|
|
|
5
5
|
import { computed, nextTick, ref, watch } from "vue";
|
|
6
6
|
import { useI18n } from "vue-i18n";
|
|
7
7
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
8
|
-
import {
|
|
8
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
9
9
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
10
10
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
11
11
|
import { asRequest, fetchJsonOption } from "../../../../../share/request";
|
|
@@ -53,7 +53,7 @@ const { locale, t } = useI18n({
|
|
|
53
53
|
});
|
|
54
54
|
const formState = useFormState();
|
|
55
55
|
const inherited = injectCELContext();
|
|
56
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
56
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
57
57
|
const sharedFetchLayer = useSharedFetchLayer();
|
|
58
58
|
const row = computed(() => props.ctx.row.original);
|
|
59
59
|
const rowIndex = computed(() => props.ctx.row.index);
|
|
@@ -8,7 +8,7 @@ import { computed, nextTick, ref, watch } from "vue";
|
|
|
8
8
|
import { useI18n } from "vue-i18n";
|
|
9
9
|
import { asRequest, fetchJsonOption } from "../../../../../share/request";
|
|
10
10
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
11
|
-
import {
|
|
11
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
12
12
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
13
13
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
14
14
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
@@ -54,7 +54,7 @@ const { locale, t } = useI18n({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const inherited = injectCELContext();
|
|
57
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
57
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
58
58
|
const eventChannel = useEventChannel();
|
|
59
59
|
const sharedFetchLayer = useSharedFetchLayer();
|
|
60
60
|
const row = computed(() => props.ctx.row.original);
|
|
@@ -34,15 +34,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly message: string;
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly readonly?: string | undefined;
|
|
37
|
+
readonly dataSource: {
|
|
38
|
+
readonly data: string;
|
|
39
|
+
readonly request?: string | undefined;
|
|
40
|
+
};
|
|
37
41
|
readonly binding: string;
|
|
38
42
|
readonly derived?: {
|
|
39
43
|
readonly mode: "formula" | "prefill";
|
|
40
44
|
readonly expression: string;
|
|
41
45
|
} | undefined;
|
|
42
|
-
readonly dataSource: {
|
|
43
|
-
readonly data: string;
|
|
44
|
-
readonly request?: string | undefined;
|
|
45
|
-
};
|
|
46
46
|
readonly enableSorting?: boolean | undefined;
|
|
47
47
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
48
48
|
readonly nodeKey: string;
|
|
@@ -97,15 +97,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
97
97
|
readonly message: string;
|
|
98
98
|
}[]] | undefined;
|
|
99
99
|
readonly readonly?: string | undefined;
|
|
100
|
+
readonly dataSource: {
|
|
101
|
+
readonly data: string;
|
|
102
|
+
readonly request?: string | undefined;
|
|
103
|
+
};
|
|
100
104
|
readonly binding: string;
|
|
101
105
|
readonly derived?: {
|
|
102
106
|
readonly mode: "formula" | "prefill";
|
|
103
107
|
readonly expression: string;
|
|
104
108
|
} | undefined;
|
|
105
|
-
readonly dataSource: {
|
|
106
|
-
readonly data: string;
|
|
107
|
-
readonly request?: string | undefined;
|
|
108
|
-
};
|
|
109
109
|
readonly enableSorting?: boolean | undefined;
|
|
110
110
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
111
111
|
readonly nodeKey: string;
|
|
@@ -34,15 +34,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly message: string;
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly readonly?: string | undefined;
|
|
37
|
+
readonly dataSource: {
|
|
38
|
+
readonly data: string;
|
|
39
|
+
readonly request?: string | undefined;
|
|
40
|
+
};
|
|
37
41
|
readonly binding: string;
|
|
38
42
|
readonly derived?: {
|
|
39
43
|
readonly mode: "formula" | "prefill";
|
|
40
44
|
readonly expression: string;
|
|
41
45
|
} | undefined;
|
|
42
|
-
readonly dataSource: {
|
|
43
|
-
readonly data: string;
|
|
44
|
-
readonly request?: string | undefined;
|
|
45
|
-
};
|
|
46
46
|
readonly enableSorting?: boolean | undefined;
|
|
47
47
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
48
48
|
readonly nodeKey: string;
|
|
@@ -97,15 +97,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
97
97
|
readonly message: string;
|
|
98
98
|
}[]] | undefined;
|
|
99
99
|
readonly readonly?: string | undefined;
|
|
100
|
+
readonly dataSource: {
|
|
101
|
+
readonly data: string;
|
|
102
|
+
readonly request?: string | undefined;
|
|
103
|
+
};
|
|
100
104
|
readonly binding: string;
|
|
101
105
|
readonly derived?: {
|
|
102
106
|
readonly mode: "formula" | "prefill";
|
|
103
107
|
readonly expression: string;
|
|
104
108
|
} | undefined;
|
|
105
|
-
readonly dataSource: {
|
|
106
|
-
readonly data: string;
|
|
107
|
-
readonly request?: string | undefined;
|
|
108
|
-
};
|
|
109
109
|
readonly enableSorting?: boolean | undefined;
|
|
110
110
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
111
111
|
readonly nodeKey: string;
|
|
@@ -4,7 +4,7 @@ import { Effect, Fiber, Option } from "effect";
|
|
|
4
4
|
import { computed, ref, shallowRef, watch } from "vue";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
|
-
import {
|
|
7
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
8
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
9
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
10
10
|
import { fetchJsonOption } from "../../../../../share/request";
|
|
@@ -54,7 +54,7 @@ const { locale, t } = useI18n({
|
|
|
54
54
|
});
|
|
55
55
|
const formState = useFormState();
|
|
56
56
|
const inherited = injectCELContext();
|
|
57
|
-
const $cel = (expression, context) => _rawCel(expression,
|
|
57
|
+
const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
|
|
58
58
|
const sharedFetchLayer = useSharedFetchLayer();
|
|
59
59
|
const row = computed(() => props.ctx.row.original);
|
|
60
60
|
const rowIndex = computed(() => props.ctx.row.index);
|