@vc-shell/framework 1.0.216 → 1.0.218
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/CHANGELOG.md +13 -0
- package/dist/framework.js +2644 -2641
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts +4 -4
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +4 -4
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +3 -2
- package/ui/components/atoms/vc-switch/vc-switch.vue +7 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-blade-form.vue.d.ts","sourceRoot":"","sources":["../../../../../shared/modules/dynamic/pages/dynamic-blade-form.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAWL,WAAW,EAMZ,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,oBAAoB,EAAqC,MAAM,UAAU,CAAC;AAEnF,OAAO,EAGL,eAAe,EAIf,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAWxB,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;CACvE;
|
|
1
|
+
{"version":3,"file":"dynamic-blade-form.vue.d.ts","sourceRoot":"","sources":["../../../../../shared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CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
type: import("vue").PropType<string>;
|
|
11
11
|
};
|
|
12
12
|
modelValue: {
|
|
13
|
-
type: import("vue").PropType<boolean>;
|
|
13
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
16
|
tooltip: {
|
|
@@ -28,7 +28,7 @@ declare const _default: {
|
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
30
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
-
"update:modelValue": (value: boolean) => void;
|
|
31
|
+
"update:modelValue": (value: boolean | undefined) => void;
|
|
32
32
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
33
|
disabled: {
|
|
34
34
|
type: import("vue").PropType<boolean>;
|
|
@@ -37,7 +37,7 @@ declare const _default: {
|
|
|
37
37
|
type: import("vue").PropType<string>;
|
|
38
38
|
};
|
|
39
39
|
modelValue: {
|
|
40
|
-
type: import("vue").PropType<boolean>;
|
|
40
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
41
41
|
required: true;
|
|
42
42
|
};
|
|
43
43
|
tooltip: {
|
|
@@ -55,7 +55,7 @@ declare const _default: {
|
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
57
|
}>> & {
|
|
58
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
58
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
trueValue: boolean;
|
|
61
61
|
falseValue: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface Props {
|
|
2
|
-
modelValue: boolean;
|
|
2
|
+
modelValue: boolean | undefined;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
tooltip?: string;
|
|
5
5
|
required?: boolean;
|
|
@@ -8,18 +8,18 @@ export interface Props {
|
|
|
8
8
|
falseValue?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export interface Emits {
|
|
11
|
-
(event: "update:modelValue", value: boolean): void;
|
|
11
|
+
(event: "update:modelValue", value: boolean | undefined): void;
|
|
12
12
|
}
|
|
13
13
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
14
|
trueValue: boolean;
|
|
15
15
|
falseValue: boolean;
|
|
16
16
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
-
"update:modelValue": (value: boolean) => void;
|
|
17
|
+
"update:modelValue": (value: boolean | undefined) => void;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
19
|
trueValue: boolean;
|
|
20
20
|
falseValue: boolean;
|
|
21
21
|
}>>> & {
|
|
22
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
trueValue: boolean;
|
|
25
25
|
falseValue: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-switch.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-switch/vc-switch.vue.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"vc-switch.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-switch/vc-switch.vue.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC;CAChE;;;;;;;;;;;;;;;AAgKD,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.218",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/dompurify": "^3.0.5",
|
|
62
62
|
"@types/quill": "^2.0.14",
|
|
63
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
64
|
-
"@vc-shell/config-generator": "^1.0.
|
|
65
|
-
"@vc-shell/ts-config": "^1.0.
|
|
63
|
+
"@vc-shell/api-client-generator": "^1.0.218",
|
|
64
|
+
"@vc-shell/config-generator": "^1.0.218",
|
|
65
|
+
"@vc-shell/ts-config": "^1.0.218",
|
|
66
66
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
67
67
|
"sass": "^1.69.6",
|
|
68
68
|
"shx": "^0.3.4",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:width="settings?.width || '50%'"
|
|
8
8
|
:toolbar-items="toolbarComputed"
|
|
9
9
|
:title="title"
|
|
10
|
-
:modified="
|
|
10
|
+
:modified="isBladeEditable ? isFormModified : undefined"
|
|
11
11
|
@close="$emit('close:blade')"
|
|
12
12
|
@expand="$emit('expand:blade')"
|
|
13
13
|
@collapse="$emit('collapse:blade')"
|
|
@@ -156,6 +156,7 @@ const { onBeforeClose } = useBladeNavigation();
|
|
|
156
156
|
const title = ref();
|
|
157
157
|
const isReady = ref(false);
|
|
158
158
|
const activeWidgetExposed = ref<CoreBladeExposed>();
|
|
159
|
+
const isBladeEditable = computed(() => refDefault(toRef(toValue(scope ?? {}), "isBladeEditable"), true).value);
|
|
159
160
|
const settings = computed(() => props.model?.settings);
|
|
160
161
|
|
|
161
162
|
const { moduleNotifications, markAsRead } = useNotifications(settings.value?.pushNotificationType);
|
|
@@ -357,7 +358,7 @@ onBeforeClose(async () => {
|
|
|
357
358
|
});
|
|
358
359
|
|
|
359
360
|
provide("bladeContext", toReactive(bladeContext));
|
|
360
|
-
provide("isBladeEditable",
|
|
361
|
+
provide("isBladeEditable", isBladeEditable);
|
|
361
362
|
|
|
362
363
|
defineExpose({
|
|
363
364
|
title: bladeTitle ?? "",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<script lang="ts" setup>
|
|
33
33
|
import { VcLabel, VcHint } from "./../../";
|
|
34
34
|
export interface Props {
|
|
35
|
-
modelValue: boolean;
|
|
35
|
+
modelValue: boolean | undefined;
|
|
36
36
|
disabled?: boolean;
|
|
37
37
|
tooltip?: string;
|
|
38
38
|
required?: boolean;
|
|
@@ -42,7 +42,7 @@ export interface Props {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export interface Emits {
|
|
45
|
-
(event: "update:modelValue", value: boolean): void;
|
|
45
|
+
(event: "update:modelValue", value: boolean | undefined): void;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -52,7 +52,11 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
52
52
|
|
|
53
53
|
const emit = defineEmits<Emits>();
|
|
54
54
|
|
|
55
|
-
const invertValue = (value: boolean) =>
|
|
55
|
+
const invertValue = (value: boolean | undefined) => {
|
|
56
|
+
if (typeof value !== "undefined") {
|
|
57
|
+
return props.trueValue ? value : !value;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
56
60
|
|
|
57
61
|
function onInput(e: Event) {
|
|
58
62
|
const newValue = (e.target as HTMLInputElement).checked;
|