@vc-shell/framework 1.0.177 → 1.0.179
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 +18 -0
- package/dist/framework.js +22362 -37402
- package/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/locales/en.json +301 -0
- package/dist/locales/index.d.ts +3 -0
- package/dist/locales/index.d.ts.map +1 -0
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +5 -0
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts +4 -2
- package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +10 -2
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +3 -0
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +0 -1
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +20 -20
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +19 -9
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +18 -18
- package/dist/ui/components/molecules/vc-slider/index.d.ts +12 -12
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +18 -18
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +8 -7
- package/shared/modules/dynamic/components/fields/SelectField.ts +1 -0
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +4 -1
- package/shared/modules/dynamic/types/index.ts +5 -0
- package/ui/components/atoms/vc-badge/vc-badge.vue +7 -0
- package/ui/components/atoms/vc-button/vc-button.vue +5 -1
- package/ui/components/atoms/vc-card/vc-card.vue +3 -0
- package/ui/components/atoms/vc-image/vc-image.vue +1 -1
- package/ui/components/molecules/index.ts +0 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +3 -1
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +43 -9
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +2 -2
- package/ui/components/organisms/vc-popup/vc-popup.vue +1 -1
- package/dist/ui/components/molecules/vc-code-editor/index.d.ts +0 -123
- package/dist/ui/components/molecules/vc-code-editor/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.stories.d.ts +0 -7
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +0 -38
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +0 -1
- package/ui/components/molecules/vc-code-editor/index.ts +0 -10
- package/ui/components/molecules/vc-code-editor/vc-code-editor.stories.ts +0 -23
- package/ui/components/molecules/vc-code-editor/vc-code-editor.vue +0 -96
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="vc-editor"
|
|
4
|
-
:class="[
|
|
5
|
-
{
|
|
6
|
-
'vc-code-editor_error': errorMessage,
|
|
7
|
-
'vc-code-editor_disabled': disabled,
|
|
8
|
-
},
|
|
9
|
-
]"
|
|
10
|
-
>
|
|
11
|
-
<!-- Editor label -->
|
|
12
|
-
<VcLabel
|
|
13
|
-
v-if="label"
|
|
14
|
-
class="tw-mb-2"
|
|
15
|
-
:required="required"
|
|
16
|
-
>
|
|
17
|
-
<span>{{ label }}</span>
|
|
18
|
-
<template
|
|
19
|
-
v-if="tooltip"
|
|
20
|
-
#tooltip
|
|
21
|
-
>{{ tooltip }}</template
|
|
22
|
-
>
|
|
23
|
-
</VcLabel>
|
|
24
|
-
|
|
25
|
-
<!-- Editor field -->
|
|
26
|
-
<v-ace-editor
|
|
27
|
-
v-model:value="content"
|
|
28
|
-
class="tw-border tw-border-solid tw-border-[color:var(--code-editor-border-color)] tw-rounded-[var(--code-editor-border-radius)] tw-h-[200px]"
|
|
29
|
-
lang="html"
|
|
30
|
-
theme="chrome"
|
|
31
|
-
@input="onInput"
|
|
32
|
-
/>
|
|
33
|
-
<slot
|
|
34
|
-
v-if="errorMessage"
|
|
35
|
-
name="error"
|
|
36
|
-
>
|
|
37
|
-
<VcHint class="vc-code-editor__error">
|
|
38
|
-
{{ errorMessage }}
|
|
39
|
-
</VcHint>
|
|
40
|
-
</slot>
|
|
41
|
-
</div>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<script lang="ts" setup>
|
|
45
|
-
import { VAceEditor } from "vue3-ace-editor";
|
|
46
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
47
|
-
import "ace-builds/src-noconflict/theme-chrome";
|
|
48
|
-
import { ref, onMounted } from "vue";
|
|
49
|
-
import { VcLabel, VcHint } from "./../../";
|
|
50
|
-
|
|
51
|
-
export interface Props {
|
|
52
|
-
placeholder?: string;
|
|
53
|
-
modelValue?: string | number | Date;
|
|
54
|
-
required?: boolean;
|
|
55
|
-
disabled?: boolean;
|
|
56
|
-
label?: string;
|
|
57
|
-
tooltip?: string;
|
|
58
|
-
errorMessage?: string;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface Emits {
|
|
62
|
-
(event: "update:modelValue", value: string | number | Date | null | undefined): void;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const props = defineProps<Props>();
|
|
66
|
-
|
|
67
|
-
const emit = defineEmits<Emits>();
|
|
68
|
-
const content = ref();
|
|
69
|
-
|
|
70
|
-
onMounted(() => {
|
|
71
|
-
content.value = props.modelValue;
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
function onInput() {
|
|
75
|
-
emit("update:modelValue", content.value);
|
|
76
|
-
}
|
|
77
|
-
</script>
|
|
78
|
-
|
|
79
|
-
<style lang="scss">
|
|
80
|
-
:root {
|
|
81
|
-
--code-editor-border-radius: 3px;
|
|
82
|
-
--code-editor-border-color: #d3dbe9;
|
|
83
|
-
--code-editor-border-color-error: #f14e4e;
|
|
84
|
-
--code-editor-placeholder-color: #a5a5a5;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.vc-code-editor {
|
|
88
|
-
&__error {
|
|
89
|
-
@apply tw-text-[color:var(--editor-border-color-error)] tw-mt-1;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&_error .ace_editor {
|
|
93
|
-
@apply tw-border tw-border-solid tw-border-[color:var(--editor-border-color-error)];
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
</style>
|