@vc-shell/framework 1.0.215 → 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.
- package/CHANGELOG.md +23 -0
- package/core/composables/useSettings/index.ts +1 -1
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/framework.js +32268 -24226
- package/dist/index.css +1 -1
- package/dist/locales/en.json +8 -0
- package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/factories.d.ts +2 -1
- package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts +121 -0
- package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts +362 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.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 +67 -3
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/models.d.ts +4 -1
- package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/index.d.ts +0 -1
- package/dist/ui/components/atoms/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +40 -28
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts +6 -6
- package/dist/ui/components/molecules/index.d.ts +2 -0
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/{atoms → molecules}/vc-checkbox/index.d.ts +16 -16
- package/dist/ui/components/{atoms → molecules}/vc-checkbox/index.d.ts.map +1 -1
- package/dist/ui/components/{atoms → molecules}/vc-checkbox/vc-checkbox.stories.d.ts +160 -160
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +40 -28
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +10 -0
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts +28 -28
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +63 -63
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +9 -9
- package/dist/ui/components/molecules/vc-radio-button/index.d.ts +2 -0
- package/dist/ui/components/molecules/vc-radio-button/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.stories.d.ts +687 -0
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.stories.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +81 -0
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +90 -90
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +9 -9
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +168 -168
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts +4 -4
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.stories.d.ts +6 -6
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +1 -72
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +4 -2
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +3 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +5 -4
- package/shared/modules/dynamic/components/FIELD_MAP.ts +2 -0
- package/shared/modules/dynamic/components/factories.ts +10 -0
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +4 -1
- package/shared/modules/dynamic/components/fields/RadioButtonGroup.ts +82 -0
- package/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.ts +1 -1
- package/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.ts +224 -0
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +202 -33
- package/shared/modules/dynamic/factories/types/index.ts +1 -1
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +3 -3
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +1 -1
- package/shared/modules/dynamic/types/index.ts +72 -3
- package/shared/modules/dynamic/types/models.ts +5 -0
- package/ui/components/atoms/index.ts +0 -1
- package/ui/components/atoms/vc-label/vc-label.vue +1 -1
- package/ui/components/molecules/index.ts +2 -0
- package/ui/components/{atoms → molecules}/vc-checkbox/vc-checkbox.stories.ts +3 -3
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +204 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +1 -1
- package/ui/components/molecules/vc-input/vc-input.vue +122 -33
- package/ui/components/molecules/vc-radio-button/index.ts +1 -0
- package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +97 -0
- package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +197 -0
- package/ui/components/molecules/vc-select/vc-select.vue +1 -1
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +42 -0
- package/ui/components/organisms/vc-blade/vc-blade.vue +4 -2
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +4 -4
- package/ui/components/organisms/vc-login-form/index.ts +1 -10
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +20 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +8 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +16 -22
- package/ui/components/organisms/vc-table/vc-table.vue +23 -3
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +0 -1
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +0 -146
- /package/dist/ui/components/{atoms → molecules}/vc-checkbox/vc-checkbox.vue.d.ts +0 -0
- /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>
|
|
File without changes
|
|
File without changes
|