@vc-shell/framework 1.0.133 → 1.0.135
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 +22 -0
- package/core/interceptors/index.ts +13 -9
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/framework.js +8244 -8422
- package/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts +1 -1
- package/dist/shared/components/change-password/index.d.ts +1 -1
- package/dist/shared/components/error-interceptor/interceptor.d.ts +1 -1
- package/dist/shared/components/language-selector/index.d.ts +1 -1
- package/dist/shared/components/language-selector/index.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts +1 -1
- package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts +1 -1
- package/dist/shared/components/notification-dropdown/index.d.ts +1 -1
- package/dist/shared/components/notification-dropdown/index.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts +1 -1
- package/dist/shared/components/notification-template/notification-template.vue.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts +1 -1
- package/dist/shared/components/user-dropdown-button/index.d.ts +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +0 -10
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts +1 -1
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +1 -1
- package/dist/shared/pages/LoginPage/components/login/index.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-image/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +1 -83
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-video/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +1 -3
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +1 -330
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +20 -4
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +3 -14
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +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/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +1 -136
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +3 -3
- package/package.json +19 -20
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +1 -0
- package/shared/modules/dynamic/components/fields/MultivalueField.ts +0 -2
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +1 -1
- package/shared/modules/dynamic/types/index.ts +0 -10
- package/ui/components/atoms/vc-checkbox/vc-checkbox.stories.ts +4 -2
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +1 -0
- package/ui/components/atoms/vc-label/index.ts +1 -3
- package/ui/components/atoms/vc-label/vc-label.vue +33 -28
- package/ui/components/molecules/vc-editor/vc-editor.vue +0 -3
- package/ui/components/molecules/vc-field/vc-field.vue +0 -2
- package/ui/components/molecules/vc-input-currency/index.ts +1 -18
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +13 -0
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +10 -17
- package/ui/components/molecules/vc-notification/vc-notification.vue +34 -8
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +0 -1
- package/ui/components/organisms/vc-gallery/index.ts +1 -3
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import _InputCurrency from "./vc-input-currency.vue";
|
|
3
|
-
|
|
4
|
-
export const VcInputCurrency = _InputCurrency as typeof _InputCurrency & {
|
|
5
|
-
new (): {
|
|
6
|
-
$slots: {
|
|
7
|
-
/**
|
|
8
|
-
* Slot for custom dropdown open handler
|
|
9
|
-
*/
|
|
10
|
-
button?: (scope: {
|
|
11
|
-
/**
|
|
12
|
-
* Dropdown open/close handler
|
|
13
|
-
*/
|
|
14
|
-
toggleHandler: () => void;
|
|
15
|
-
}) => VNode[];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
1
|
+
export { default as VcInputCurrency } from "./vc-input-currency.vue";
|
|
@@ -166,6 +166,19 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
166
166
|
debounce: 0,
|
|
167
167
|
});
|
|
168
168
|
|
|
169
|
+
defineSlots<{
|
|
170
|
+
/**
|
|
171
|
+
* Slot for custom dropdown open handler
|
|
172
|
+
*/
|
|
173
|
+
button: (scope: {
|
|
174
|
+
/**
|
|
175
|
+
* Dropdown open/close handler
|
|
176
|
+
*/
|
|
177
|
+
toggleHandler: () => void;
|
|
178
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
179
|
+
}) => any;
|
|
180
|
+
}>();
|
|
181
|
+
|
|
169
182
|
const emit = defineEmits<Emits>();
|
|
170
183
|
|
|
171
184
|
const { inputRef, setOptions, numberValue } = useCurrencyInput(
|
|
@@ -41,7 +41,9 @@
|
|
|
41
41
|
class="vc-multivalue__field-value"
|
|
42
42
|
>
|
|
43
43
|
<span class="tw-truncate">{{
|
|
44
|
-
type === "number"
|
|
44
|
+
type === "number"
|
|
45
|
+
? Number(item[props.optionLabel as keyof T]).toFixed(3)
|
|
46
|
+
: item[props.optionLabel as keyof T]
|
|
45
47
|
}}</span>
|
|
46
48
|
<VcIcon
|
|
47
49
|
v-if="!disabled"
|
|
@@ -118,11 +120,12 @@
|
|
|
118
120
|
</div>
|
|
119
121
|
</template>
|
|
120
122
|
<!-- eslint-disable @typescript-eslint/no-explicit-any -->
|
|
121
|
-
<script lang="ts" setup generic="T extends { id?: string
|
|
123
|
+
<script lang="ts" setup generic="T extends { id?: string }">
|
|
122
124
|
import { unref, nextTick, ref, computed } from "vue";
|
|
123
125
|
import { vOnClickOutside } from "@vueuse/components";
|
|
124
126
|
import { useFloating, UseFloatingReturn, offset, flip, shift, autoUpdate, MiddlewareState } from "@floating-ui/vue";
|
|
125
127
|
import { generateId } from "../../../../core/utilities";
|
|
128
|
+
import * as _ from "lodash-es";
|
|
126
129
|
|
|
127
130
|
export interface Props<T> {
|
|
128
131
|
placeholder?: string;
|
|
@@ -136,8 +139,6 @@ export interface Props<T> {
|
|
|
136
139
|
options?: T[];
|
|
137
140
|
optionValue?: string;
|
|
138
141
|
optionLabel?: string;
|
|
139
|
-
emitValue?: string;
|
|
140
|
-
emitLabel?: string;
|
|
141
142
|
multivalue?: boolean;
|
|
142
143
|
error?: boolean;
|
|
143
144
|
errorMessage?: string;
|
|
@@ -169,8 +170,6 @@ const props = withDefaults(defineProps<Props<T>>(), {
|
|
|
169
170
|
options: () => [],
|
|
170
171
|
optionValue: "id",
|
|
171
172
|
optionLabel: "title",
|
|
172
|
-
emitValue: "valueId",
|
|
173
|
-
emitLabel: "value",
|
|
174
173
|
});
|
|
175
174
|
|
|
176
175
|
const emit = defineEmits<Emits<T>>();
|
|
@@ -207,30 +206,24 @@ const dropdownStyle = computed(() => {
|
|
|
207
206
|
|
|
208
207
|
const slicedDictionary = computed(() => {
|
|
209
208
|
return props.options?.filter((x) => {
|
|
210
|
-
return !props.modelValue?.find((item) =>
|
|
209
|
+
return !props.modelValue?.find((item) => {
|
|
210
|
+
return item[props.optionValue as keyof T] === x[props.optionValue as keyof T];
|
|
211
|
+
});
|
|
211
212
|
});
|
|
212
213
|
});
|
|
213
214
|
|
|
214
|
-
// Handle input event to propertly validate value and emit changes
|
|
215
215
|
function onInput(e: KeyboardEvent) {
|
|
216
216
|
const newValue = (e.target as HTMLInputElement).value;
|
|
217
|
-
emit("update:model-value", [
|
|
218
|
-
...props.modelValue,
|
|
219
|
-
{ [props.emitLabel]: newValue, languageCode: props.currentLanguage } as T,
|
|
220
|
-
]);
|
|
217
|
+
emit("update:model-value", [...props.modelValue, { [props.optionLabel]: newValue } as T]);
|
|
221
218
|
value.value = undefined;
|
|
222
219
|
}
|
|
223
220
|
|
|
224
221
|
function onItemSelect(item: T) {
|
|
225
|
-
emit("update:model-value", [
|
|
226
|
-
...props.modelValue,
|
|
227
|
-
{ [props.emitValue]: item[props.optionValue as keyof T], [props.emitLabel]: item[props.optionLabel as keyof T] },
|
|
228
|
-
] as T[]);
|
|
222
|
+
emit("update:model-value", [...props.modelValue, item]);
|
|
229
223
|
emit("close");
|
|
230
224
|
closeDropdown();
|
|
231
225
|
}
|
|
232
226
|
|
|
233
|
-
// Handle event to propertly remove particular value and emit changes
|
|
234
227
|
function onDelete(i: number) {
|
|
235
228
|
const result = unref(props.modelValue);
|
|
236
229
|
result.splice(i, 1);
|
|
@@ -6,14 +6,18 @@
|
|
|
6
6
|
@mouseenter="onMouseEnter"
|
|
7
7
|
@mouseleave="onMouseLeave"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
<div class="tw-flex tw-flex-row tw-items-center">
|
|
10
|
+
<VcIcon
|
|
11
|
+
:icon="types[type ?? 'default']?.icon"
|
|
12
|
+
:style="{ color: types[type ?? 'default']?.color }"
|
|
13
|
+
size="l"
|
|
14
|
+
class="tw-mr-2"
|
|
15
|
+
></VcIcon>
|
|
16
|
+
<div
|
|
17
|
+
class="vc-notification__content tw-text-[color:var(--notification-content-color)] tw-whitespace-pre-line tw-overflow-auto tw-max-h-[100px]"
|
|
18
|
+
>
|
|
19
|
+
{{ content }}
|
|
20
|
+
</div>
|
|
17
21
|
</div>
|
|
18
22
|
<VcIcon
|
|
19
23
|
icon="fas fa-times"
|
|
@@ -125,6 +129,11 @@ function onMouseLeave() {
|
|
|
125
129
|
--notification-error: #ef796f;
|
|
126
130
|
--notification-success: #87b563;
|
|
127
131
|
--notification-info: #bdd1df;
|
|
132
|
+
|
|
133
|
+
--notification-scroll-color: #e1eff9;
|
|
134
|
+
--notification-scroll-color-hover: #cce4f5;
|
|
135
|
+
--notification-scroll-width: 8px;
|
|
136
|
+
--notification-scroll-shadow: 0 3px 2px rgba(0, 0, 0, 0.1) inset, 0 -3px 2px rgba(0, 0, 0, 0.1) inset;
|
|
128
137
|
}
|
|
129
138
|
|
|
130
139
|
.vc-notification {
|
|
@@ -133,5 +142,22 @@ function onMouseLeave() {
|
|
|
133
142
|
.vc-app_mobile {
|
|
134
143
|
@apply tw-max-w-[80%];
|
|
135
144
|
}
|
|
145
|
+
|
|
146
|
+
&__content {
|
|
147
|
+
&::-webkit-scrollbar {
|
|
148
|
+
@apply tw-w-[var(--notification-scroll-width)] tw-bg-transparent;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&::-webkit-scrollbar-track {
|
|
152
|
+
@apply tw-bg-transparent;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&::-webkit-scrollbar-thumb {
|
|
156
|
+
@apply tw-bg-[color:var(--notification-scroll-color)]
|
|
157
|
+
tw-rounded-[calc(var(--notification-scroll-width)/2)]
|
|
158
|
+
tw-overflow-x-hidden
|
|
159
|
+
hover:tw-bg-[color:var(--notification-scroll-color-hover)];
|
|
160
|
+
}
|
|
161
|
+
}
|
|
136
162
|
}
|
|
137
163
|
</style>
|