@vc-shell/framework 1.0.214 → 1.0.216

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 (112) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/core/composables/useSettings/index.ts +1 -1
  3. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  4. package/dist/framework.js +32321 -24260
  5. package/dist/index.css +1 -1
  6. package/dist/locales/en.json +8 -0
  7. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
  8. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +1 -1
  9. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  10. package/dist/shared/components/blade-navigation/types/index.d.ts +2 -0
  11. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  12. package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts.map +1 -1
  13. package/dist/shared/modules/dynamic/components/factories.d.ts +2 -1
  14. package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -1
  15. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
  16. package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts +121 -0
  17. package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts.map +1 -0
  18. package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts +362 -0
  19. package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts.map +1 -0
  20. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
  21. package/dist/shared/modules/dynamic/factories/types/index.d.ts +1 -1
  22. package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
  23. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
  24. package/dist/shared/modules/dynamic/types/index.d.ts +67 -3
  25. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  26. package/dist/shared/modules/dynamic/types/models.d.ts +4 -1
  27. package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -1
  28. package/dist/tsconfig.tsbuildinfo +1 -1
  29. package/dist/ui/components/atoms/index.d.ts +0 -1
  30. package/dist/ui/components/atoms/index.d.ts.map +1 -1
  31. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +40 -28
  32. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -1
  33. package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts +6 -6
  34. package/dist/ui/components/molecules/index.d.ts +2 -0
  35. package/dist/ui/components/molecules/index.d.ts.map +1 -1
  36. package/dist/ui/components/{atoms → molecules}/vc-checkbox/index.d.ts +16 -16
  37. package/dist/ui/components/{atoms → molecules}/vc-checkbox/index.d.ts.map +1 -1
  38. package/dist/ui/components/{atoms → molecules}/vc-checkbox/vc-checkbox.stories.d.ts +160 -160
  39. package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -0
  40. package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -0
  41. package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +40 -28
  42. package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts.map +1 -1
  43. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +10 -0
  44. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  45. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts +28 -28
  46. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +63 -63
  47. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +9 -9
  48. package/dist/ui/components/molecules/vc-radio-button/index.d.ts +2 -0
  49. package/dist/ui/components/molecules/vc-radio-button/index.d.ts.map +1 -0
  50. package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.stories.d.ts +687 -0
  51. package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.stories.d.ts.map +1 -0
  52. package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +81 -0
  53. package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -0
  54. package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +90 -90
  55. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +9 -9
  56. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  57. package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +168 -168
  58. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +1 -0
  59. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
  60. package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts +4 -4
  61. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  62. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  63. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  64. package/dist/ui/components/organisms/vc-gallery/vc-gallery.stories.d.ts +6 -6
  65. package/dist/ui/components/organisms/vc-login-form/index.d.ts +1 -72
  66. package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
  67. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +4 -2
  68. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
  69. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +3 -0
  70. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
  71. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  72. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  73. package/package.json +5 -4
  74. package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +71 -42
  75. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +9 -3
  76. package/shared/components/blade-navigation/types/index.ts +2 -0
  77. package/shared/modules/dynamic/components/FIELD_MAP.ts +2 -0
  78. package/shared/modules/dynamic/components/factories.ts +10 -0
  79. package/shared/modules/dynamic/components/fields/InputCurrency.ts +4 -1
  80. package/shared/modules/dynamic/components/fields/RadioButtonGroup.ts +82 -0
  81. package/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.ts +1 -1
  82. package/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.ts +224 -0
  83. package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +202 -33
  84. package/shared/modules/dynamic/factories/types/index.ts +1 -1
  85. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +3 -3
  86. package/shared/modules/dynamic/pages/dynamic-blade-list.vue +1 -1
  87. package/shared/modules/dynamic/types/index.ts +72 -3
  88. package/shared/modules/dynamic/types/models.ts +5 -0
  89. package/ui/components/atoms/index.ts +0 -1
  90. package/ui/components/atoms/vc-label/vc-label.vue +1 -1
  91. package/ui/components/molecules/index.ts +2 -0
  92. package/ui/components/{atoms → molecules}/vc-checkbox/vc-checkbox.stories.ts +3 -3
  93. package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +204 -0
  94. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +1 -1
  95. package/ui/components/molecules/vc-input/vc-input.vue +122 -33
  96. package/ui/components/molecules/vc-radio-button/index.ts +1 -0
  97. package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +97 -0
  98. package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +197 -0
  99. package/ui/components/molecules/vc-select/vc-select.vue +1 -1
  100. package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +42 -0
  101. package/ui/components/organisms/vc-blade/vc-blade.vue +4 -2
  102. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +4 -4
  103. package/ui/components/organisms/vc-login-form/index.ts +1 -10
  104. package/ui/components/organisms/vc-login-form/vc-login-form.vue +20 -0
  105. package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +8 -0
  106. package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +16 -22
  107. package/ui/components/organisms/vc-table/vc-table.vue +23 -3
  108. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +0 -1
  109. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +0 -1
  110. package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +0 -146
  111. /package/dist/ui/components/{atoms → molecules}/vc-checkbox/vc-checkbox.vue.d.ts +0 -0
  112. /package/ui/components/{atoms → molecules}/vc-checkbox/index.ts +0 -0
@@ -1,146 +0,0 @@
1
- <template>
2
- <div
3
- class="vc-checkbox"
4
- :class="{ 'vc-checkbox_disabled': disabled }"
5
- >
6
- <!-- Input label -->
7
- <VcLabel
8
- v-if="label"
9
- class="tw-mb-2"
10
- :required="required"
11
- >
12
- <span>{{ label }}</span>
13
- <template
14
- v-if="tooltip"
15
- #tooltip
16
- >{{ tooltip }}</template
17
- >
18
- </VcLabel>
19
- <label class="vc-checkbox__label">
20
- <input
21
- v-model="value"
22
- type="checkbox"
23
- class="vc-checkbox__input"
24
- :disabled="disabled"
25
- :true-value="trueValue"
26
- :false-value="falseValue"
27
- />
28
- <span class="vc-checkbox__checkmark"></span>
29
- <span
30
- v-if="$slots['default']"
31
- class="tw-ml-2"
32
- >
33
- <slot></slot>
34
- </span>
35
- <span
36
- v-if="!label && required"
37
- class="tw-text-[color:var(--checkbox-required-color)] tw-ml-1"
38
- >*</span
39
- >
40
- </label>
41
-
42
- <slot
43
- v-if="errorMessage"
44
- name="error"
45
- >
46
- <VcHint class="vc-checkbox__error tw-mt-1">
47
- {{ errorMessage }}
48
- </VcHint>
49
- </slot>
50
- </div>
51
- </template>
52
- <!-- eslint-disable @typescript-eslint/no-explicit-any -->
53
- <script lang="ts" setup>
54
- import { MaybeRef, computed, unref } from "vue";
55
- import { VcHint } from "./../vc-hint";
56
- import { VcLabel } from "../vc-label";
57
- export interface Props {
58
- modelValue: MaybeRef<boolean>;
59
- disabled?: boolean;
60
- required?: boolean;
61
- name?: string;
62
- errorMessage?: string;
63
- trueValue?: boolean;
64
- falseValue?: boolean;
65
- label?: string;
66
- tooltip?: string;
67
- }
68
-
69
- export interface Emits {
70
- (event: "update:modelValue", value: boolean): void;
71
- }
72
-
73
- const props = withDefaults(defineProps<Props>(), { name: "Field", trueValue: true, falseValue: false });
74
- const emit = defineEmits<Emits>();
75
-
76
- defineSlots<{
77
- default: (props: any) => any;
78
- error: (props: any) => any;
79
- }>();
80
-
81
- const value = computed({
82
- get() {
83
- return unref(props.modelValue);
84
- },
85
- set(newValue) {
86
- emit("update:modelValue", newValue);
87
- },
88
- });
89
- </script>
90
-
91
- <style lang="scss">
92
- :root {
93
- --checkbox-size: 14px;
94
- --checkbox-border-radius: 2px;
95
- --checkbox-background-color: #ffffff;
96
- --checkbox-image: url("data:image/svg+xml;utf8,<svg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='0.8' y='0.8' width='12.4' height='12.4' rx='1.7' stroke='%23ABC0D3' stroke-width='1.6'/></svg>");
97
- --checkbox-image-checked: url("data:image/svg+xml;utf8,<svg width='15' height='14' viewBox='0 0 15 14' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M11.91 2.49661C12.4736 1.9331 13.3872 1.9331 13.9507 2.49661C14.5142 3.06011 14.5142 3.97374 13.9507 4.53725L7.7195 10.7684C7.52877 10.9592 7.29793 11.0853 7.05413 11.147C6.56096 11.2966 6.00345 11.1765 5.61355 10.7866L3.27419 8.44723C2.71069 7.88372 2.71069 6.97009 3.27419 6.40659C3.8377 5.84308 4.75133 5.84308 5.31484 6.40658L6.65745 7.7492L11.91 2.49661Z' fill='%23ABC0D3'/><path fill-rule='evenodd' clip-rule='evenodd' d='M2.85185 0C1.27682 0 0 1.27682 0 2.85185V11.1481C0 12.7232 1.27682 14 2.85185 14H11.1481C12.7232 14 14 12.7232 14 11.1481V7.25926H12.4444V11.1481C12.4444 11.8641 11.8641 12.4444 11.1481 12.4444H2.85185C2.13593 12.4444 1.55556 11.8641 1.55556 11.1481V2.85185C1.55556 2.13593 2.13593 1.55556 2.85185 1.55556H11.1481C11.474 1.55556 11.7718 1.6758 11.9996 1.87434L13.3636 1.05592C12.8407 0.411698 12.0425 0 11.1481 0H2.85185Z' fill='%23ABC0D3'/></svg>");
98
- --checkbox-color-error: #f14e4e;
99
- --checkbox-required-color: #f14e4e;
100
- }
101
-
102
- .vc-checkbox {
103
- &__label {
104
- @apply tw-inline-flex tw-select-none tw-cursor-pointer tw-text-base tw-items-center;
105
- }
106
-
107
- &__input {
108
- @apply tw-absolute tw-opacity-0 tw-z-[-1] tw-m-0;
109
- }
110
-
111
- &__error {
112
- --hint-color: var(--checkbox-color-error);
113
- }
114
-
115
- &__checkmark {
116
- @apply tw-h-[var(--checkbox-size)];
117
-
118
- &:before {
119
- @apply tw-inline-block tw-box-border
120
- tw-w-[var(--checkbox-size)]
121
- tw-h-[var(--checkbox-size)]
122
- tw-shrink-0
123
- tw-grow-0
124
- tw-rounded-[var(--checkbox-border-radius)]
125
- tw-bg-no-repeat
126
- tw-bg-left-top
127
- tw-bg-[length:auto_var(--checkbox-size)]
128
- tw-bg-[color:var(--checkbox-background-color)]
129
- tw-bg-[image:var(--checkbox-image)]
130
- tw-content-[""];
131
- }
132
- }
133
-
134
- &__input:checked ~ &__checkmark:before {
135
- @apply tw-bg-[image:var(--checkbox-image-checked)];
136
- }
137
-
138
- &_disabled &__checkmark:before {
139
- @apply tw-bg-[#fafafa];
140
- }
141
-
142
- &_disabled &__label {
143
- @apply tw-cursor-auto;
144
- }
145
- }
146
- </style>