@vc-shell/framework 1.0.164 → 1.0.165
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 +14 -0
- package/core/composables/index.ts +1 -0
- package/core/composables/useAsync/index.ts +4 -3
- package/core/composables/useBreadcrumbs/index.ts +75 -0
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts +18 -0
- package/dist/core/composables/useBreadcrumbs/index.d.ts.map +1 -0
- package/dist/framework.js +2605 -2560
- package/dist/index.css +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +5 -5
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +3 -3
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +9 -3
- 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 +9 -9
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +10 -4
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +20 -52
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +3 -21
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +3 -14
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +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-table/vc-table.vue.d.ts +3 -6
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +6 -0
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/shared/modules/dynamic/components/fields/GalleryField.ts +2 -2
- package/shared/modules/dynamic/components/fields/ImageField.ts +2 -2
- package/shared/modules/dynamic/components/fields/VideoField.ts +2 -2
- package/shared/modules/dynamic/factories/base/useListFactory.ts +6 -6
- package/shared/modules/dynamic/factories/types/index.ts +12 -4
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +8 -6
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +39 -12
- package/shared/modules/dynamic/types/index.ts +0 -2
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +11 -27
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +3 -3
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +4 -9
- package/ui/components/molecules/vc-field/vc-field.vue +0 -1
- package/ui/components/molecules/vc-rating/vc-rating.vue +1 -1
- package/ui/components/organisms/vc-table/vc-table.vue +0 -2
- package/ui/types/index.ts +6 -1
package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue
CHANGED
|
@@ -19,36 +19,20 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script lang="ts" setup>
|
|
22
|
+
import { Breadcrumbs } from "../../../../../types";
|
|
22
23
|
import { VcIcon } from "./../../../../";
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
current:
|
|
26
|
-
|
|
27
|
-
default: false,
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
icon: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: undefined,
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
title: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: undefined,
|
|
38
|
-
},
|
|
25
|
+
export interface Props extends Breadcrumbs {
|
|
26
|
+
current: boolean;
|
|
27
|
+
}
|
|
39
28
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
},
|
|
29
|
+
export interface Emits {
|
|
30
|
+
(event: "click"): void;
|
|
31
|
+
}
|
|
44
32
|
|
|
45
|
-
|
|
46
|
-
type: String,
|
|
47
|
-
default: undefined,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
33
|
+
const props = defineProps<Props>();
|
|
50
34
|
|
|
51
|
-
const emit = defineEmits(
|
|
35
|
+
const emit = defineEmits<Emits>();
|
|
52
36
|
|
|
53
37
|
function onClick(): void {
|
|
54
38
|
if (!props.current) {
|
|
@@ -74,12 +58,12 @@ function onClick(): void {
|
|
|
74
58
|
|
|
75
59
|
.vc-breadcrumbs-item {
|
|
76
60
|
@apply tw-h-[var(--breadcrumbs-item-height)]
|
|
77
|
-
tw-box-border tw-rounded-[
|
|
61
|
+
tw-box-border tw-rounded-[3px]
|
|
78
62
|
tw-border tw-border-solid
|
|
79
63
|
tw-border-[color:var(--breadcrumbs-item-border-color)]
|
|
80
64
|
tw-text-[color:var(--breadcrumbs-item-color)]
|
|
81
65
|
tw-whitespace-nowrap
|
|
82
|
-
tw-px-3
|
|
66
|
+
tw-px-3
|
|
83
67
|
tw-text-sm tw-cursor-pointer tw-inline-flex tw-items-center
|
|
84
68
|
hover:tw-border
|
|
85
69
|
hover:tw-border-solid
|
|
@@ -23,17 +23,17 @@ export const Primary: Story = {
|
|
|
23
23
|
id: "0",
|
|
24
24
|
title: "Back",
|
|
25
25
|
icon: "fas fa-arrow-left",
|
|
26
|
-
current: false,
|
|
26
|
+
// current: false,
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
id: "1",
|
|
30
30
|
title: "Electronics",
|
|
31
|
-
current: false,
|
|
31
|
+
// current: false,
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
id: "2",
|
|
35
35
|
title: "Desktop",
|
|
36
|
-
current: true,
|
|
36
|
+
// current: true,
|
|
37
37
|
},
|
|
38
38
|
],
|
|
39
39
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
v-if="items"
|
|
4
|
-
class="tw-flex tw-items-center tw-flex-
|
|
3
|
+
v-if="items && items.length"
|
|
4
|
+
class="tw-flex tw-items-center tw-flex-wrap tw-gap-[10px]"
|
|
5
5
|
>
|
|
6
6
|
<VcBreadcrumbsItem
|
|
7
7
|
v-for="(item, i) in items"
|
|
@@ -13,16 +13,11 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
|
+
import { Breadcrumbs } from "../../../types";
|
|
16
17
|
import VcBreadcrumbsItem from "./_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue";
|
|
17
18
|
|
|
18
19
|
export interface Props {
|
|
19
|
-
items?:
|
|
20
|
-
current: boolean;
|
|
21
|
-
icon?: string;
|
|
22
|
-
title: string;
|
|
23
|
-
clickHandler?: () => void;
|
|
24
|
-
id: string;
|
|
25
|
-
}[];
|
|
20
|
+
items?: Breadcrumbs[];
|
|
26
21
|
}
|
|
27
22
|
|
|
28
23
|
withDefaults(defineProps<Props>(), {
|
|
@@ -507,7 +507,6 @@ const props = withDefaults(
|
|
|
507
507
|
pages: 0,
|
|
508
508
|
expanded: true,
|
|
509
509
|
currentPage: 0,
|
|
510
|
-
selectedItemId: undefined,
|
|
511
510
|
header: true,
|
|
512
511
|
footer: true,
|
|
513
512
|
activeFilterCount: 0,
|
|
@@ -526,7 +525,6 @@ const emit = defineEmits<{
|
|
|
526
525
|
selectionChanged: [values: T[]];
|
|
527
526
|
"search:change": [value: string | number | Date | null | undefined];
|
|
528
527
|
headerClick: [item: ITableColumns];
|
|
529
|
-
value: [Record<string, unknown>];
|
|
530
528
|
itemClick: [item: T];
|
|
531
529
|
"scroll:ptr": [];
|
|
532
530
|
"row:reorder": [args: { dragIndex: number; dropIndex: number; value: T[] }];
|
package/ui/types/index.ts
CHANGED
|
@@ -10,4 +10,9 @@ declare module "vue" {
|
|
|
10
10
|
export interface GlobalComponents extends TGlobalComponents<typeof components> {}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export {
|
|
13
|
+
export interface Breadcrumbs {
|
|
14
|
+
icon?: string;
|
|
15
|
+
title: string;
|
|
16
|
+
clickHandler?: (id: string) => void | Promise<void>;
|
|
17
|
+
id: string;
|
|
18
|
+
}
|