@vc-shell/framework 1.1.0-alpha.3 → 1.1.0-alpha.4
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/core/composables/index.ts +18 -17
- package/core/composables/useDashboard/index.ts +19 -0
- package/core/composables/{useGlobalSearch.ts → useGlobalSearch/index.ts} +3 -5
- package/core/composables/useWidgets/index.ts +19 -18
- package/core/plugins/modularity/loader.ts +2 -1
- package/core/services/dashboard-service.ts +121 -0
- package/core/services/widget-service.ts +1 -4
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useDashboard/index.d.ts +5 -0
- package/dist/core/composables/useDashboard/index.d.ts.map +1 -0
- package/dist/core/composables/{useGlobalSearch.d.ts → useGlobalSearch/index.d.ts} +1 -1
- package/dist/core/composables/useGlobalSearch/index.d.ts.map +1 -0
- package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
- package/dist/core/services/dashboard-service.d.ts +33 -0
- package/dist/core/services/dashboard-service.d.ts.map +1 -0
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/framework.js +235 -225
- package/dist/{index-Bu12RZTu.js → index-8LELHzw9.js} +1 -1
- package/dist/{index-Bwl2ND2Q.js → index-9lJxZE5w.js} +1 -1
- package/dist/{index-CJi-BbTb.js → index-B1YR_MYV.js} +1 -1
- package/dist/{index-BhdwVgUw.js → index-BA98L1jI.js} +1 -1
- package/dist/{index-NdrUF1u3.js → index-BAeTsi-X.js} +1 -1
- package/dist/{index-CbRqPQTw.js → index-BBYyHeYA.js} +1 -1
- package/dist/{index-CsaYfhir.js → index-BrUitdDo.js} +1 -1
- package/dist/{index-CZ_pj3nW.js → index-BuO5ByG9.js} +1 -1
- package/dist/{index-DFPb-jDP.js → index-CJ5I7vTn.js} +1 -1
- package/dist/{index-BdoAu2fz.js → index-CWKrD2Cd.js} +1 -1
- package/dist/{index-DVaMW7gL.js → index-Cf9Tz1ql.js} +1 -1
- package/dist/{index-B89uIUkS.js → index-CrxFDC2b.js} +1 -1
- package/dist/{index-BcQiBkO6.js → index-D1JchciU.js} +1 -1
- package/dist/{index-CEvuTGIu.js → index-DLtsQ_PJ.js} +31254 -31134
- package/dist/{index-COjjAS6v.js → index-DVljTjbf.js} +1 -1
- package/dist/{index-DjQ6Ffv8.js → index-RwX3kiZh.js} +28 -28
- package/dist/{index-S9Ht7s3i.js → index-xLYzNPa7.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/injection-keys.d.ts +28 -0
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts +25 -0
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-widget-card/index.d.ts +2 -0
- package/dist/shared/components/dashboard-widget-card/index.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts +6 -0
- package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/_internal/DashboardWidget.vue.d.ts +20 -0
- package/dist/shared/components/draggable-dashboard/_internal/DashboardWidget.vue.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +354 -0
- package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useDashboardGrid.d.ts +12 -0
- package/dist/shared/components/draggable-dashboard/composables/useDashboardGrid.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/index.d.ts +2 -0
- package/dist/shared/components/draggable-dashboard/index.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/types.d.ts +80 -0
- package/dist/shared/components/draggable-dashboard/types.d.ts.map +1 -0
- package/dist/shared/components/index.d.ts +2 -0
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-info.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/composables/useMenuExpanded.d.ts +2 -0
- package/dist/shared/composables/useMenuExpanded.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts +0 -41
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -25
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/tailwind.config.d.ts +1 -81
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts +169 -734
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +18 -2
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +12 -0
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +2 -0
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-icon/icons/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/composables/useAppMenuState.d.ts +2 -0
- package/dist/ui/components/organisms/vc-app/_internal/composables/useAppMenuState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +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 +2 -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.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts +13 -67
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +5 -65
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/{vc-table-header/vc-table-header.vue.d.ts → vc-table-columns-header/vc-table-columns-header.vue.d.ts} +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts +33 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts.map +1 -1
- package/package.json +10 -5
- package/shared/components/dashboard-widget-card/dashboard-widget-card.vue +67 -0
- package/shared/components/dashboard-widget-card/index.ts +1 -0
- package/shared/components/draggable-dashboard/DraggableDashboard.vue +369 -0
- package/shared/components/draggable-dashboard/_internal/DashboardWidget.vue +133 -0
- package/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.ts +547 -0
- package/shared/components/draggable-dashboard/composables/useDashboardGrid.ts +250 -0
- package/shared/components/draggable-dashboard/index.ts +1 -0
- package/shared/components/draggable-dashboard/types.ts +91 -0
- package/shared/components/index.ts +2 -0
- package/shared/components/user-dropdown-button/_internal/user-info.vue +25 -12
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +3 -3
- package/shared/composables/useMenuExpanded.ts +24 -0
- package/shared/modules/assets/components/assets-details/assets-details.vue +1 -1
- package/shared/modules/dynamic/components/fields/storybook/Button.stories.ts +186 -247
- package/shared/modules/dynamic/components/fields/storybook/Card.stories.ts +175 -176
- package/shared/modules/dynamic/components/fields/storybook/common/templates.ts +8 -8
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +153 -187
- package/tailwind.config.ts +127 -126
- package/ui/components/atoms/vc-button/vc-button.stories.ts +1 -16
- package/ui/components/atoms/vc-button/vc-button.vue +74 -63
- package/ui/components/atoms/vc-card/vc-card.stories.ts +102 -102
- package/ui/components/atoms/vc-card/vc-card.vue +164 -159
- package/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue +22 -0
- package/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue +16 -0
- package/ui/components/atoms/vc-icon/icons/index.ts +2 -0
- package/ui/components/molecules/vc-field/vc-field.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/composables/useAppMenuState.ts +12 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue +1 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarOverlay.vue +0 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +274 -112
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +81 -37
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +7 -5
- package/ui/components/organisms/vc-app/vc-app.vue +26 -15
- package/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue +5 -7
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/{vc-table-header/vc-table-header.vue → vc-table-columns-header/vc-table-columns-header.vue} +23 -21
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue +1 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue +12 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue +45 -2
- package/ui/components/organisms/vc-table/composables/useTableColumnReorder.ts +5 -5
- package/ui/components/organisms/vc-table/composables/useTableColumnResize.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableRowReorder.ts +1 -0
- package/core/services/toolbarbus-service.ts +0 -34
- package/dist/core/composables/useGlobalSearch.d.ts.map +0 -1
- package/dist/core/services/toolbarbus-service.d.ts +0 -10
- package/dist/core/services/toolbarbus-service.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/composables/useToolbarSlots.d.ts +0 -5
- package/dist/ui/components/organisms/vc-app/composables/useToolbarSlots.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-header/vc-table-header.vue.d.ts.map +0 -1
- package/ui/components/organisms/vc-app/composables/useToolbarSlots.ts +0 -37
package/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue
CHANGED
|
@@ -32,7 +32,42 @@
|
|
|
32
32
|
>
|
|
33
33
|
<div
|
|
34
34
|
v-if="column.type === 'status-icon' || column.type === 'status'"
|
|
35
|
-
:class="[
|
|
35
|
+
:class="[
|
|
36
|
+
'vc-table-mobile-view__cell',
|
|
37
|
+
{
|
|
38
|
+
'vc-table-mobile-view__cell--status': column.type === 'status',
|
|
39
|
+
'vc-table-mobile-view__cell--status-icon': column.type === 'status-icon',
|
|
40
|
+
},
|
|
41
|
+
column.class,
|
|
42
|
+
]"
|
|
43
|
+
>
|
|
44
|
+
<slot
|
|
45
|
+
:name="`item_${column.id}`"
|
|
46
|
+
:item="item"
|
|
47
|
+
:cell="column"
|
|
48
|
+
:index="i"
|
|
49
|
+
>
|
|
50
|
+
<VcTableCell
|
|
51
|
+
v-if="typeof item === 'object'"
|
|
52
|
+
:key="`mobile-view-cell-${i}-${column.id}`"
|
|
53
|
+
:cell="column"
|
|
54
|
+
:item="item"
|
|
55
|
+
:index="i"
|
|
56
|
+
@update="$emit('onEditComplete', { event: $event, index: i })"
|
|
57
|
+
@blur="$emit('onCellBlur', $event)"
|
|
58
|
+
/>
|
|
59
|
+
</slot>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<!-- Image column -->
|
|
64
|
+
<template
|
|
65
|
+
v-for="column in firstRowColumns"
|
|
66
|
+
:key="column.id"
|
|
67
|
+
>
|
|
68
|
+
<div
|
|
69
|
+
v-if="column.type === 'image'"
|
|
70
|
+
:class="['vc-table-mobile-view__cell', 'vc-table-mobile-view__cell--image', column.class]"
|
|
36
71
|
>
|
|
37
72
|
<slot
|
|
38
73
|
:name="`item_${column.id}`"
|
|
@@ -62,7 +97,7 @@
|
|
|
62
97
|
:key="column.id"
|
|
63
98
|
>
|
|
64
99
|
<div
|
|
65
|
-
v-if="column.type !== 'status-icon' && column.type !== 'status'"
|
|
100
|
+
v-if="column.type !== 'status-icon' && column.type !== 'status' && column.type !== 'image'"
|
|
66
101
|
:class="[
|
|
67
102
|
'vc-table-mobile-view__cell',
|
|
68
103
|
`vc-table-mobile-view__cell--${column.type || 'default'}`,
|
|
@@ -303,12 +338,20 @@ provideTableSwipe();
|
|
|
303
338
|
&__cell {
|
|
304
339
|
@apply tw-flex tw-items-center tw-min-w-0 tw-max-w-[50%] tw-truncate;
|
|
305
340
|
|
|
341
|
+
&--image {
|
|
342
|
+
@apply tw-min-w-14 tw-min-h-14 tw-overflow-hidden tw-mr-4;
|
|
343
|
+
}
|
|
344
|
+
|
|
306
345
|
// Status and icon cells
|
|
307
346
|
&--status,
|
|
308
347
|
&--status-icon {
|
|
309
348
|
@apply tw-absolute tw-left-0 tw-w-6 tw-h-6 tw-flex-shrink-0 tw-flex tw-items-center tw-justify-center;
|
|
310
349
|
}
|
|
311
350
|
|
|
351
|
+
&--status-icon {
|
|
352
|
+
@apply tw-top-10;
|
|
353
|
+
}
|
|
354
|
+
|
|
312
355
|
&--title,
|
|
313
356
|
&--code {
|
|
314
357
|
@apply tw-flex-grow tw-truncate tw-mr-4;
|
|
@@ -14,12 +14,12 @@ export function useTableColumnReorder<T extends TableItem | string>(
|
|
|
14
14
|
const dragOffset = ref({ x: 0, y: 0 });
|
|
15
15
|
|
|
16
16
|
function findParentHeader(element: HTMLElement) {
|
|
17
|
-
if (element.classList.contains("vc-table-header__cell")) {
|
|
17
|
+
if (element.classList.contains("vc-table-columns-header__cell")) {
|
|
18
18
|
return element;
|
|
19
19
|
} else {
|
|
20
20
|
let parent = element.parentElement;
|
|
21
21
|
|
|
22
|
-
while (parent && !parent.classList.contains("vc-table-header__cell")) {
|
|
22
|
+
while (parent && !parent.classList.contains("vc-table-columns-header__cell")) {
|
|
23
23
|
parent = parent.parentElement;
|
|
24
24
|
if (!parent) break;
|
|
25
25
|
}
|
|
@@ -60,7 +60,7 @@ export function useTableColumnReorder<T extends TableItem | string>(
|
|
|
60
60
|
ghost.style.opacity = "0.8";
|
|
61
61
|
ghost.style.background = "var(--table-header-bg)";
|
|
62
62
|
ghost.style.display = "none";
|
|
63
|
-
ghost.classList.add("vc-table-header__ghost-header");
|
|
63
|
+
ghost.classList.add("vc-table-columns-header__ghost-header");
|
|
64
64
|
|
|
65
65
|
document.body.appendChild(ghost);
|
|
66
66
|
ghostRef.value = ghost;
|
|
@@ -91,7 +91,7 @@ export function useTableColumnReorder<T extends TableItem | string>(
|
|
|
91
91
|
|
|
92
92
|
function onColumnHeaderDragOver(event: DragEvent) {
|
|
93
93
|
const dropHeader = findParentHeader(event.target as HTMLElement);
|
|
94
|
-
const headerRow = (event.target as HTMLElement).closest(".vc-table-header__row");
|
|
94
|
+
const headerRow = (event.target as HTMLElement).closest(".vc-table-columns-header__row");
|
|
95
95
|
|
|
96
96
|
if (headerRow) {
|
|
97
97
|
const headerRowRect = headerRow.getBoundingClientRect();
|
|
@@ -179,7 +179,7 @@ export function useTableColumnReorder<T extends TableItem | string>(
|
|
|
179
179
|
function onColumnHeaderDrop(event: DragEvent, item: TableColPartial) {
|
|
180
180
|
event.preventDefault();
|
|
181
181
|
|
|
182
|
-
const headerRow = (event.target as HTMLElement).closest(".vc-table-header__row");
|
|
182
|
+
const headerRow = (event.target as HTMLElement).closest(".vc-table-columns-header__row");
|
|
183
183
|
if (headerRow) {
|
|
184
184
|
const headerRowRect = headerRow.getBoundingClientRect();
|
|
185
185
|
const isWithinBounds =
|
|
@@ -122,7 +122,7 @@ export function useTableColumnResize(
|
|
|
122
122
|
|
|
123
123
|
const colIndex = internalColumns.value.findIndex((col) => col.id === resizeColumnElement.value?.id);
|
|
124
124
|
const widths: number[] = [];
|
|
125
|
-
const tableHeaders = headerRef.value.querySelectorAll(".vc-table-header__cell") as NodeListOf<HTMLElement>;
|
|
125
|
+
const tableHeaders = headerRef.value.querySelectorAll(".vc-table-columns-header__cell") as NodeListOf<HTMLElement>;
|
|
126
126
|
|
|
127
127
|
tableHeaders.forEach((header) => widths.push(header.offsetWidth));
|
|
128
128
|
|
|
@@ -54,6 +54,7 @@ export function useTableRowReorder<T extends TableItem | string>(
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
function onRowDragStart(event: DragEvent, item: T) {
|
|
57
|
+
console.log("onRowDragStart", event, item);
|
|
57
58
|
rowDragged.value = true;
|
|
58
59
|
const index = internalItems.value.indexOf(item);
|
|
59
60
|
draggedRow.value = index;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { shallowRef, Component, ref, markRaw, ShallowRef, Ref } from "vue";
|
|
2
|
-
|
|
3
|
-
export interface ToolbarBus {
|
|
4
|
-
content: ShallowRef<Component | null>;
|
|
5
|
-
metadata: Ref<Record<string, unknown>>;
|
|
6
|
-
setContent: (content: Component | null, meta?: Record<string, unknown>) => void;
|
|
7
|
-
clearContent: () => void;
|
|
8
|
-
hasContent: () => boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function createToolbarBus(): ToolbarBus {
|
|
12
|
-
const content = shallowRef<Component | null>(null);
|
|
13
|
-
const metadata = ref<Record<string, unknown>>({});
|
|
14
|
-
|
|
15
|
-
const setContent = (newContent: Component | null, meta: Record<string, unknown> = {}) => {
|
|
16
|
-
content.value = newContent ? markRaw(newContent) : null;
|
|
17
|
-
metadata.value = meta;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const clearContent = () => {
|
|
21
|
-
content.value = null;
|
|
22
|
-
metadata.value = {};
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const hasContent = () => content.value !== null;
|
|
26
|
-
|
|
27
|
-
return {
|
|
28
|
-
content,
|
|
29
|
-
metadata,
|
|
30
|
-
setContent,
|
|
31
|
-
clearContent,
|
|
32
|
-
hasContent,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useGlobalSearch.d.ts","sourceRoot":"","sources":["../../../core/composables/useGlobalSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,GAAG,EAAE,MAAM,KAAK,CAAC;AAIhD,MAAM,WAAW,iBAAiB;IAChC,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC9C,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1D;AAED,wBAAgB,kBAAkB,sBAsBjC;AAED,wBAAgB,eAAe,sBAQ9B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component, ShallowRef, Ref } from "vue";
|
|
2
|
-
export interface ToolbarBus {
|
|
3
|
-
content: ShallowRef<Component | null>;
|
|
4
|
-
metadata: Ref<Record<string, unknown>>;
|
|
5
|
-
setContent: (content: Component | null, meta?: Record<string, unknown>) => void;
|
|
6
|
-
clearContent: () => void;
|
|
7
|
-
hasContent: () => boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function createToolbarBus(): ToolbarBus;
|
|
10
|
-
//# sourceMappingURL=toolbarbus-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbarbus-service.d.ts","sourceRoot":"","sources":["../../../core/services/toolbarbus-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAgB,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE3E,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACtC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACvC,UAAU,EAAE,CAAC,OAAO,EAAE,SAAS,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAChF,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,OAAO,CAAC;CAC3B;AAED,wBAAgB,gBAAgB,IAAI,UAAU,CAuB7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useToolbarSlots.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-app/composables/useToolbarSlots.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,wBAAgB,eAAe;+BAGG,SAAS,EAAE;EA6B5C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table-header.vue.d.ts","sourceRoot":"","sources":["../../../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-header/vc-table-header.vue.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;cAkcvE,MAAM;;;;;;;;kBAXF,eAAe,EAAE;oBAEf,OAAO;mBACR,OAAO;;;2BAOC,eAAe,EAAE;qBAEvB,eAAe,EAAE;;WAQ7B,GAAG;yDAtD4E,GAAG;;YAxXnF,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,gBAAgB,SAAS,OAAO,GAAG,IAAI;YACvC,aAAa,QAAQ,eAAe,GAAG,IAAI;YAC3C,uBAAuB,SAAS,OAAO,GAAG,IAAI;YAC9C,eAAe,GAAG,IAAI;YACtB,cAAc,GAAG,IAAI;YACrB,cAAc,QAAQ,aAAa,GAAG,IAAI;;yCAuahC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;;;;kBAR7C,MAAM;;;;;;;;sBAXF,eAAe,EAAE;wBAEf,OAAO;uBACR,OAAO;;;+BAOC,eAAe,EAAE;yBAEvB,eAAe,EAAE;;oBAOpB,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;yDAtD4E,GAAG;;YAxXnF,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,gBAAgB,SAAS,OAAO,GAAG,IAAI;YACvC,aAAa,QAAQ,eAAe,GAAG,IAAI;YAC3C,uBAAuB,SAAS,OAAO,GAAG,IAAI;YAC9C,eAAe,GAAG,IAAI;YACtB,cAAc,GAAG,IAAI;YACrB,cAAc,QAAQ,aAAa,GAAG,IAAI;;;;;;;;;;;;;sBA+ZpC,MAAM;;;;;;;;0BAXF,eAAe,EAAE;4BAEf,OAAO;2BACR,OAAO;;;mCAOC,eAAe,EAAE;6BAEvB,eAAe,EAAE;;wBAOpB,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;6DAtD4E,GAAG;;gBAxXnF,iBAAiB,SAAS,OAAO,GAAG,IAAI;gBACxC,gBAAgB,SAAS,OAAO,GAAG,IAAI;gBACvC,aAAa,QAAQ,eAAe,GAAG,IAAI;gBAC3C,uBAAuB,SAAS,OAAO,GAAG,IAAI;gBAC9C,eAAe,GAAG,IAAI;gBACtB,cAAc,GAAG,IAAI;gBACrB,cAAc,QAAQ,aAAa,GAAG,IAAI;;;;AA9BhD,wBA2c2E"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { useSlots, type Slot, h } from "vue";
|
|
2
|
-
import type { IMenuItem } from "../../../../../core/types";
|
|
3
|
-
import { ThemeSelector, LanguageSelector } from "../../../../../shared/components";
|
|
4
|
-
|
|
5
|
-
export function useToolbarSlots() {
|
|
6
|
-
const slots = useSlots();
|
|
7
|
-
|
|
8
|
-
const getToolbarMenuItems = (): IMenuItem[] => {
|
|
9
|
-
const menuItems: IMenuItem[] = [];
|
|
10
|
-
|
|
11
|
-
const slotConfig = {
|
|
12
|
-
"toolbar:theme-selector": ThemeSelector,
|
|
13
|
-
"toolbar:language-selector": LanguageSelector,
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
// Check each slot
|
|
17
|
-
Object.entries(slotConfig).forEach(([slotName, defaultComponent]) => {
|
|
18
|
-
const slot = slots[slotName];
|
|
19
|
-
if (slot) {
|
|
20
|
-
// If the slot exists, use its contents
|
|
21
|
-
menuItems.push({
|
|
22
|
-
component: slot,
|
|
23
|
-
});
|
|
24
|
-
} else {
|
|
25
|
-
menuItems.push({
|
|
26
|
-
component: () => h(defaultComponent),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
return menuItems;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
return {
|
|
35
|
-
getToolbarMenuItems,
|
|
36
|
-
};
|
|
37
|
-
}
|