@vc-shell/framework 1.0.178 → 1.0.180

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 (59) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/framework.js +22113 -37461
  3. package/dist/index.css +1 -1
  4. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -1
  5. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  6. package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
  7. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  8. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
  9. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
  10. package/dist/shared/modules/dynamic/types/index.d.ts +5 -0
  11. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  12. package/dist/tsconfig.tsbuildinfo +1 -1
  13. package/dist/ui/components/atoms/vc-badge/index.d.ts +4 -2
  14. package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
  15. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +10 -2
  16. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  17. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +3 -0
  18. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
  19. package/dist/ui/components/molecules/index.d.ts +0 -1
  20. package/dist/ui/components/molecules/index.d.ts.map +1 -1
  21. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +1 -1
  22. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +20 -20
  23. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -1
  24. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  25. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +19 -9
  26. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  27. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +18 -18
  28. package/dist/ui/components/molecules/vc-slider/index.d.ts +12 -12
  29. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +3 -3
  30. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  31. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
  32. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  33. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +18 -18
  34. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  35. package/package.json +4 -6
  36. package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +4 -3
  37. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +27 -15
  38. package/shared/modules/dynamic/components/fields/SelectField.ts +1 -0
  39. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +8 -7
  40. package/shared/modules/dynamic/types/index.ts +5 -0
  41. package/ui/components/atoms/vc-badge/vc-badge.vue +7 -0
  42. package/ui/components/atoms/vc-button/vc-button.vue +5 -1
  43. package/ui/components/atoms/vc-card/vc-card.vue +3 -0
  44. package/ui/components/atoms/vc-image/vc-image.vue +1 -1
  45. package/ui/components/molecules/index.ts +0 -1
  46. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -1
  47. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +3 -1
  48. package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +43 -9
  49. package/ui/components/organisms/vc-gallery/vc-gallery.vue +2 -2
  50. package/ui/components/organisms/vc-popup/vc-popup.vue +1 -1
  51. package/dist/ui/components/molecules/vc-code-editor/index.d.ts +0 -123
  52. package/dist/ui/components/molecules/vc-code-editor/index.d.ts.map +0 -1
  53. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.stories.d.ts +0 -7
  54. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.stories.d.ts.map +0 -1
  55. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +0 -38
  56. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +0 -1
  57. package/ui/components/molecules/vc-code-editor/index.ts +0 -10
  58. package/ui/components/molecules/vc-code-editor/vc-code-editor.stories.ts +0 -23
  59. package/ui/components/molecules/vc-code-editor/vc-code-editor.vue +0 -96
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
2
- import { VcCodeEditor } from "./";
3
- declare const meta: Meta<typeof VcCodeEditor>;
4
- export default meta;
5
- type Story = StoryObj<typeof VcCodeEditor>;
6
- export declare const Primary: Story;
7
- //# sourceMappingURL=vc-code-editor.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vc-code-editor.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-code-editor/vc-code-editor.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAGnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC"}
@@ -1,38 +0,0 @@
1
- /// <reference types="ace-builds/ace-modules" />
2
- import "ace-builds/src-noconflict/mode-html";
3
- import "ace-builds/src-noconflict/theme-chrome";
4
- export interface Props {
5
- placeholder?: string;
6
- modelValue?: string | number | Date;
7
- required?: boolean;
8
- disabled?: boolean;
9
- label?: string;
10
- tooltip?: string;
11
- errorMessage?: string;
12
- }
13
- export interface Emits {
14
- (event: "update:modelValue", value: string | number | Date | null | undefined): void;
15
- }
16
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- "update:modelValue": (value: string | number | Date | null | undefined) => void;
18
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
19
- "onUpdate:modelValue"?: ((value: string | number | Date | null | undefined) => any) | undefined;
20
- }, {}, {}>, {
21
- error?(_: {}): any;
22
- }>;
23
- export default _default;
24
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- type __VLS_TypePropsToRuntimeProps<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
33
- type __VLS_WithTemplateSlots<T, S> = T & {
34
- new (): {
35
- $slots: S;
36
- };
37
- };
38
- //# sourceMappingURL=vc-code-editor.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vc-code-editor.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-code-editor/vc-code-editor.vue.ts"],"names":[],"mappings":";AAGA,OAAO,qCAAqC,CAAC;AAC7C,OAAO,wCAAwC,CAAC;AAIhD,MAAM,WAAW,KAAK;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;CACtF;;;;;;;;AAqKD,wBAAwG;AACxG,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,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,10 +0,0 @@
1
- import { VNode } from "vue";
2
- import _CodeEditor from "./vc-code-editor.vue";
3
-
4
- export const VcCodeEditor = _CodeEditor as typeof _CodeEditor & {
5
- new (): {
6
- $slots: {
7
- error: () => VNode[];
8
- };
9
- };
10
- };
@@ -1,23 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
2
- import { VcCodeEditor } from "./";
3
-
4
- const meta: Meta<typeof VcCodeEditor> = {
5
- title: "molecules/VcCodeEditor",
6
- component: VcCodeEditor,
7
- };
8
-
9
- export default meta;
10
- type Story = StoryObj<typeof VcCodeEditor>;
11
-
12
- export const Primary: Story = {
13
- render: (args) => ({
14
- components: { VcCodeEditor },
15
- setup() {
16
- return { args };
17
- },
18
- template: '<vc-code-editor v-bind="args" v-on="$props"></vc-code-editor>',
19
- }),
20
- args: {
21
- modelValue: "<div>HTML markup editor</div>",
22
- },
23
- };
@@ -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>