@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.
Files changed (60) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/framework.js +22362 -37402
  3. package/dist/index.css +1 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/locales/en.json +301 -0
  6. package/dist/locales/index.d.ts +3 -0
  7. package/dist/locales/index.d.ts.map +1 -0
  8. package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
  9. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  10. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
  11. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
  12. package/dist/shared/modules/dynamic/types/index.d.ts +5 -0
  13. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/ui/components/atoms/vc-badge/index.d.ts +4 -2
  16. package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
  17. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +10 -2
  18. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  19. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +3 -0
  20. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
  21. package/dist/ui/components/molecules/index.d.ts +0 -1
  22. package/dist/ui/components/molecules/index.d.ts.map +1 -1
  23. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +1 -1
  24. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +20 -20
  25. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -1
  26. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  27. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +19 -9
  28. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  29. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +18 -18
  30. package/dist/ui/components/molecules/vc-slider/index.d.ts +12 -12
  31. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +3 -3
  32. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  33. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
  34. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
  35. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  36. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +18 -18
  37. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  38. package/package.json +8 -7
  39. package/shared/modules/dynamic/components/fields/SelectField.ts +1 -0
  40. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +4 -1
  41. package/shared/modules/dynamic/types/index.ts +5 -0
  42. package/ui/components/atoms/vc-badge/vc-badge.vue +7 -0
  43. package/ui/components/atoms/vc-button/vc-button.vue +5 -1
  44. package/ui/components/atoms/vc-card/vc-card.vue +3 -0
  45. package/ui/components/atoms/vc-image/vc-image.vue +1 -1
  46. package/ui/components/molecules/index.ts +0 -1
  47. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -1
  48. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +3 -1
  49. package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +43 -9
  50. package/ui/components/organisms/vc-gallery/vc-gallery.vue +2 -2
  51. package/ui/components/organisms/vc-popup/vc-popup.vue +1 -1
  52. package/dist/ui/components/molecules/vc-code-editor/index.d.ts +0 -123
  53. package/dist/ui/components/molecules/vc-code-editor/index.d.ts.map +0 -1
  54. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.stories.d.ts +0 -7
  55. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.stories.d.ts.map +0 -1
  56. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +0 -38
  57. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +0 -1
  58. package/ui/components/molecules/vc-code-editor/index.ts +0 -10
  59. package/ui/components/molecules/vc-code-editor/vc-code-editor.stories.ts +0 -23
  60. 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>