@vc-shell/framework 2.0.0-alpha.30 → 2.0.0-alpha.32
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 +30 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CL6FKSZv.js +4255 -0
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-CLNfbXjd.js +21113 -0
- package/dist/chunks/{index-BZeKYd8J.js → index-D2HGw9DC.js} +5 -7
- package/dist/chunks/{vendor-lodash-es-BwHYzZ39.js → vendor-lodash-es-BB-IQCna.js} +4 -4
- package/dist/chunks/vendor-sortablejs-Bsvu-FKn.js +1276 -0
- package/dist/chunks/{vendor-swiper-1bp0oJwt.js → vendor-swiper-D1fVhFeH.js} +1150 -810
- package/dist/chunks/{vendor-vueuse-components-C3DWJalC.js → vendor-vueuse-components-DRdTsx6e.js} +1 -1
- package/dist/chunks/vendor-vueuse-core-D4-2M4AW.js +586 -0
- package/dist/chunks/{vendor-vueuse-shared-Byno6iDO.js → vendor-vueuse-shared-PQ04AyOW.js} +3 -3
- package/dist/core/blade-navigation/singletons.d.ts +21 -0
- package/dist/core/blade-navigation/singletons.d.ts.map +1 -0
- package/dist/core/blade-navigation/types/index.d.ts +27 -64
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/{useBladeContext.d.ts → bladeContext/index.d.ts} +1 -1
- package/dist/core/composables/bladeContext/index.d.ts.map +1 -0
- package/dist/core/composables/index.d.ts +1 -1
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeForm/index.d.ts +17 -0
- package/dist/core/composables/useBladeForm/index.d.ts.map +1 -0
- package/dist/core/composables/useBladeForm/types.d.ts +39 -0
- package/dist/core/composables/useBladeForm/types.d.ts.map +1 -0
- package/dist/core/composables/{useBladeWidgets.d.ts → useBladeWidgets/index.d.ts} +3 -3
- package/dist/core/composables/useBladeWidgets/index.d.ts.map +1 -0
- package/dist/core/composables/useBreadcrumbs/index.d.ts +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts +3 -69
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/strategies/boolean.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/boolean.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/color.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/color.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/dictionary.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/dictionary.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/index.d.ts +4 -0
- package/dist/core/composables/useDynamicProperties/strategies/index.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/measure.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/measure.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/regular.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/regular.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/types.d.ts +16 -0
- package/dist/core/composables/useDynamicProperties/strategies/types.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/types.d.ts +70 -0
- package/dist/core/composables/useDynamicProperties/types.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/utils.d.ts +10 -0
- package/dist/core/composables/useDynamicProperties/utils.d.ts.map +1 -0
- package/dist/core/composables/useExternalProvider/index.d.ts +12 -0
- package/dist/core/composables/useExternalProvider/index.d.ts.map +1 -0
- package/dist/core/composables/{useMenuExpanded.d.ts → useMenuExpanded/index.d.ts} +1 -1
- package/dist/core/composables/useMenuExpanded/index.d.ts.map +1 -0
- package/dist/core/composables/usePopup/index.d.ts +3 -5
- package/dist/core/composables/usePopup/index.d.ts.map +1 -1
- package/dist/core/composables/usePopup/keys.d.ts +4 -0
- package/dist/core/composables/usePopup/keys.d.ts.map +1 -0
- package/dist/core/composables/usePopup/preset-registry.d.ts +7 -0
- package/dist/core/composables/usePopup/preset-registry.d.ts.map +1 -0
- package/dist/core/composables/usePopup/singleton.d.ts +6 -0
- package/dist/core/composables/usePopup/singleton.d.ts.map +1 -0
- package/dist/core/composables/usePopup/types.d.ts +22 -0
- package/dist/core/composables/usePopup/types.d.ts.map +1 -0
- package/dist/core/composables/useTheme/index.d.ts.map +1 -1
- package/dist/core/notifications/notification.d.ts +19 -0
- package/dist/core/notifications/notification.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue.d.ts.map +1 -1
- package/dist/core/types/breadcrumbs.d.ts +8 -0
- package/dist/core/types/breadcrumbs.d.ts.map +1 -0
- package/dist/core/types/index.d.ts +2 -14
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/utilities/assets.d.ts +3 -2
- package/dist/core/utilities/assets.d.ts.map +1 -1
- package/dist/core/utilities/index.d.ts +1 -0
- package/dist/core/utilities/index.d.ts.map +1 -1
- package/dist/core/utilities/thumbnail/index.d.ts +42 -0
- package/dist/core/utilities/thumbnail/index.d.ts.map +1 -0
- package/dist/framework.js +3618 -2531
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +2 -6
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/locales/de.js +8 -2
- package/dist/locales/en.js +8 -2
- package/dist/locales/en.json +8 -2
- package/dist/locales/types.d.ts +6 -0
- package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts +1 -12
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts.map +1 -1
- package/dist/shell/_internal/notifications/components/notification-container/index.d.ts +4 -4
- package/dist/shell/_internal/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shell/_internal/notifications/register-backend.d.ts +6 -0
- package/dist/shell/_internal/notifications/register-backend.d.ts.map +1 -0
- package/dist/shell/_internal/popup/keys.d.ts +1 -3
- package/dist/shell/_internal/popup/keys.d.ts.map +1 -1
- package/dist/shell/_internal/popup/plugin.d.ts +1 -2
- package/dist/shell/_internal/popup/plugin.d.ts.map +1 -1
- package/dist/shell/_internal/popup/register-presets.d.ts +6 -0
- package/dist/shell/_internal/popup/register-presets.d.ts.map +1 -0
- package/dist/shell/_internal/popup/types/index.d.ts +1 -21
- package/dist/shell/_internal/popup/types/index.d.ts.map +1 -1
- package/dist/shell/auth/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -0
- package/dist/shell/auth/ChangePasswordPage/components/change-password/index.d.ts +3 -0
- package/dist/shell/auth/ChangePasswordPage/components/change-password/index.d.ts.map +1 -0
- package/dist/shell/auth/ChangePasswordPage/components/index.d.ts +2 -0
- package/dist/shell/auth/ChangePasswordPage/components/index.d.ts.map +1 -0
- package/dist/shell/auth/ChangePasswordPage/index.d.ts +2 -0
- package/dist/shell/auth/ChangePasswordPage/index.d.ts.map +1 -0
- package/dist/shell/auth/index.d.ts +1 -0
- package/dist/shell/auth/index.d.ts.map +1 -1
- package/dist/shell/auth/sign-in/useExternalProvider.d.ts +2 -11
- package/dist/shell/auth/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +3 -0
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +2 -21
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts +3 -0
- package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/DataTableCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableCheckbox.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/TableColumnSwitcher.vue.d.ts +2 -0
- package/dist/ui/components/organisms/vc-data-table/components/TableColumnSwitcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/_internal/TableSkeletonRows.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellDefault.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellDefault.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellImage.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellMoney.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellMoney.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellNumber.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellNumber.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/DynamicCellRenderer.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/DynamicCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileActionSheet.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileCellRenderer.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts +1 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts +1 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +12 -2
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +39 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/index.d.ts +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryFilmstrip.d.ts +16 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryFilmstrip.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts +4 -9
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +20 -5
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/index.js +136 -138
- package/dist/ui/types/index.d.ts +1 -7
- package/dist/ui/types/index.d.ts.map +1 -1
- package/dist/ui/utilities/index.d.ts +1 -1
- package/dist/ui/utilities/index.d.ts.map +1 -1
- package/package.json +6 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D3sixNg-.js +0 -6553
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-CR4ei-0r.js +0 -19264
- package/dist/chunks/index-BzpX90RF.js +0 -181
- package/dist/chunks/vc-toast.vue_vue_type_style_index_0_lang-DsKZR5xz.js +0 -175
- package/dist/chunks/vendor-vueuse-core-CPOkeLul.js +0 -530
- package/dist/core/composables/useBladeContext.d.ts.map +0 -1
- package/dist/core/composables/useBladeWidgets.d.ts.map +0 -1
- package/dist/core/composables/useGlobalSearch/index.d.ts +0 -5
- package/dist/core/composables/useGlobalSearch/index.d.ts.map +0 -1
- package/dist/core/composables/useMenuExpanded.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/components/change-password/index.d.ts +0 -3
- package/dist/shell/pages/ChangePasswordPage/components/change-password/index.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/components/index.d.ts +0 -2
- package/dist/shell/pages/ChangePasswordPage/components/index.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/index.d.ts +0 -2
- package/dist/shell/pages/ChangePasswordPage/index.d.ts.map +0 -1
- package/dist/shell/pages/index.d.ts +0 -2
- package/dist/shell/pages/index.d.ts.map +0 -1
- package/dist/ui/utilities/vueUtils.d.ts +0 -34
- package/dist/ui/utilities/vueUtils.d.ts.map +0 -1
- /package/dist/shell/{pages → auth}/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts +0 -0
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { _ } from "./vc-toast.vue_vue_type_style_index_0_lang-DsKZR5xz.js";
|
|
2
|
-
import { N as E, d as F } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-D3sixNg-.js";
|
|
3
|
-
import { defineComponent as L, inject as G, computed as T, ref as w, reactive as K, h as a, toRaw as V } from "vue";
|
|
4
|
-
const f = 14, H = 3, Q = L({
|
|
5
|
-
name: "NotificationContainer",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
props: {
|
|
8
|
-
pauseOnHover: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
required: !1,
|
|
11
|
-
default: !0
|
|
12
|
-
},
|
|
13
|
-
timeout: {
|
|
14
|
-
type: [Number, Boolean],
|
|
15
|
-
required: !1,
|
|
16
|
-
default: 3e3
|
|
17
|
-
},
|
|
18
|
-
content: {
|
|
19
|
-
type: [String, Object],
|
|
20
|
-
required: !1,
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
notificationId: {
|
|
24
|
-
type: [String, Number],
|
|
25
|
-
required: !1,
|
|
26
|
-
default: ""
|
|
27
|
-
},
|
|
28
|
-
updateId: {
|
|
29
|
-
type: [String, Number],
|
|
30
|
-
required: !1,
|
|
31
|
-
default: ""
|
|
32
|
-
},
|
|
33
|
-
type: {
|
|
34
|
-
type: String,
|
|
35
|
-
required: !1,
|
|
36
|
-
default: "default"
|
|
37
|
-
},
|
|
38
|
-
onOpen: {
|
|
39
|
-
type: Function,
|
|
40
|
-
required: !1,
|
|
41
|
-
default: void 0
|
|
42
|
-
},
|
|
43
|
-
onClose: {
|
|
44
|
-
type: Function,
|
|
45
|
-
required: !1,
|
|
46
|
-
default: void 0
|
|
47
|
-
},
|
|
48
|
-
payload: {
|
|
49
|
-
type: [String, Object],
|
|
50
|
-
required: !1,
|
|
51
|
-
default: () => ({})
|
|
52
|
-
},
|
|
53
|
-
position: {
|
|
54
|
-
type: String,
|
|
55
|
-
required: !1,
|
|
56
|
-
default: "top-center"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
setup(p) {
|
|
60
|
-
const { notificationContainers: N, actions: y } = G(E), A = T(() => N[p.position].value || []), h = w(!1), g = w(!1);
|
|
61
|
-
let l = null;
|
|
62
|
-
function M() {
|
|
63
|
-
l && (clearTimeout(l), l = null), h.value = !0;
|
|
64
|
-
}
|
|
65
|
-
function O() {
|
|
66
|
-
g.value || (l = setTimeout(() => {
|
|
67
|
-
h.value = !1, l = null;
|
|
68
|
-
}, 200));
|
|
69
|
-
}
|
|
70
|
-
const o = K(/* @__PURE__ */ new Map());
|
|
71
|
-
function $(t, e) {
|
|
72
|
-
const i = Math.round(e);
|
|
73
|
-
o.get(t) !== i && o.set(t, i);
|
|
74
|
-
}
|
|
75
|
-
function j(t) {
|
|
76
|
-
return typeof t == "object" && (!!t?.render || !!t?.setup);
|
|
77
|
-
}
|
|
78
|
-
function k(t) {
|
|
79
|
-
t && (o.delete(t), y.remove(t));
|
|
80
|
-
}
|
|
81
|
-
function B() {
|
|
82
|
-
y.clear(), o.clear();
|
|
83
|
-
}
|
|
84
|
-
const x = T(() => (p.position || "top-center").startsWith("top"));
|
|
85
|
-
return () => {
|
|
86
|
-
const t = A.value, e = t.length, i = h.value || e <= 1, P = e > 1, S = e > 0 ? t[e - 1].notificationId : void 0, C = S !== void 0 && o.get(S) || 0, R = t.map((n, r) => {
|
|
87
|
-
const s = e - 1 - r;
|
|
88
|
-
let d = 0;
|
|
89
|
-
for (let m = r + 1; m < e; m++) {
|
|
90
|
-
const q = t[m].notificationId;
|
|
91
|
-
q !== void 0 && (d += o.get(q) || 0);
|
|
92
|
-
}
|
|
93
|
-
const c = s * f + d, u = n.notificationId !== void 0 && o.get(n.notificationId) || 0, z = {
|
|
94
|
-
"--toasts-before": s,
|
|
95
|
-
"--z-index": e - s,
|
|
96
|
-
"--offset": `${c}px`,
|
|
97
|
-
"--initial-height": u ? `${u}px` : "auto"
|
|
98
|
-
}, b = {
|
|
99
|
-
...n,
|
|
100
|
-
key: n.notificationId,
|
|
101
|
-
onClose: k,
|
|
102
|
-
onReportHeight: $,
|
|
103
|
-
toastIndex: s,
|
|
104
|
-
toastsCount: e,
|
|
105
|
-
expanded: i,
|
|
106
|
-
visibleToasts: H,
|
|
107
|
-
style: z
|
|
108
|
-
};
|
|
109
|
-
return n.content && j(n.content) ? a(_, {
|
|
110
|
-
...b,
|
|
111
|
-
content: a(V(n.content))
|
|
112
|
-
}) : a(_, b);
|
|
113
|
-
});
|
|
114
|
-
let I = null;
|
|
115
|
-
P && (I = a(
|
|
116
|
-
"div",
|
|
117
|
-
{
|
|
118
|
-
class: "notification__clear-all",
|
|
119
|
-
style: {
|
|
120
|
-
position: "absolute",
|
|
121
|
-
[x.value ? "top" : "bottom"]: "0",
|
|
122
|
-
left: "var(--width, 356px)",
|
|
123
|
-
"margin-left": "8px",
|
|
124
|
-
opacity: i ? "1" : "0",
|
|
125
|
-
"pointer-events": i ? "auto" : "none",
|
|
126
|
-
transition: "opacity 200ms ease"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
[
|
|
130
|
-
a(
|
|
131
|
-
"button",
|
|
132
|
-
{
|
|
133
|
-
type: "button",
|
|
134
|
-
onClick: B
|
|
135
|
-
},
|
|
136
|
-
[a(F, { icon: "lucide-x", size: "xs", "aria-hidden": "true" }), "Clear all"]
|
|
137
|
-
)
|
|
138
|
-
]
|
|
139
|
-
));
|
|
140
|
-
let v;
|
|
141
|
-
if (i && e > 1) {
|
|
142
|
-
const n = e - 1;
|
|
143
|
-
let r = 0;
|
|
144
|
-
for (let c = 1; c < e; c++) {
|
|
145
|
-
const u = t[c].notificationId;
|
|
146
|
-
r += u !== void 0 && o.get(u) || 0;
|
|
147
|
-
}
|
|
148
|
-
const s = n * f + r, d = t[0].notificationId !== void 0 && o.get(t[0].notificationId) || 0;
|
|
149
|
-
v = s + d;
|
|
150
|
-
} else
|
|
151
|
-
v = C + Math.min(e - 1, H - 1) * f;
|
|
152
|
-
return a(
|
|
153
|
-
"ol",
|
|
154
|
-
{
|
|
155
|
-
class: "notification__toast-group",
|
|
156
|
-
"data-expanded": String(i),
|
|
157
|
-
"data-position": p.position || "top-center",
|
|
158
|
-
"data-y-position": x.value ? "top" : "bottom",
|
|
159
|
-
style: {
|
|
160
|
-
"--front-toast-height": `${C}px`,
|
|
161
|
-
"--gap": `${f}px`,
|
|
162
|
-
width: "var(--width, 356px)",
|
|
163
|
-
height: `${v}px`
|
|
164
|
-
},
|
|
165
|
-
onMouseenter: M,
|
|
166
|
-
onMouseleave: O,
|
|
167
|
-
onPointerdown: () => {
|
|
168
|
-
g.value = !0;
|
|
169
|
-
},
|
|
170
|
-
onPointerup: () => {
|
|
171
|
-
g.value = !1;
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
[...R, I]
|
|
175
|
-
);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
export {
|
|
180
|
-
Q as default
|
|
181
|
-
};
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, toRefs as K, ref as s, computed as g, watch as B, onMounted as L, onBeforeUnmount as j, openBlock as y, createElementBlock as b, normalizeClass as G, createElementVNode as C, createVNode as O, unref as S, normalizeStyle as J, toDisplayString as Q, createBlock as Z, resolveDynamicComponent as ee, withKeys as te, withModifiers as oe } from "vue";
|
|
2
|
-
import { d as k } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-D3sixNg-.js";
|
|
3
|
-
const ne = ["id", "data-mounted", "data-removed", "data-y-position", "data-front", "data-expanded", "data-visible", "data-swiping", "data-swiped-out", "role"], ie = { class: "vc-notification__content-wrapper" }, ae = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "vc-notification__content"
|
|
6
|
-
}, se = { key: 1 }, D = 200, le = 45, ce = /* @__PURE__ */ q({
|
|
7
|
-
__name: "vc-toast",
|
|
8
|
-
props: {
|
|
9
|
-
content: { type: [String, Object, Function] },
|
|
10
|
-
notificationId: {},
|
|
11
|
-
updateId: {},
|
|
12
|
-
type: {},
|
|
13
|
-
timeout: { type: [Number, Boolean] },
|
|
14
|
-
pauseOnHover: { type: Boolean },
|
|
15
|
-
limit: {},
|
|
16
|
-
position: {},
|
|
17
|
-
dismissing: { type: Boolean },
|
|
18
|
-
toastIndex: {},
|
|
19
|
-
toastsCount: {},
|
|
20
|
-
expanded: { type: Boolean },
|
|
21
|
-
visibleToasts: {},
|
|
22
|
-
onReportHeight: { type: Function }
|
|
23
|
-
},
|
|
24
|
-
emits: ["close"],
|
|
25
|
-
setup(a, { emit: H }) {
|
|
26
|
-
const x = H, t = a, I = {
|
|
27
|
-
default: { icon: "lucide-info", color: "var(--notification-info)" },
|
|
28
|
-
success: { icon: "lucide-check-circle", color: "var(--notification-success)" },
|
|
29
|
-
error: { icon: "lucide-alert-circle", color: "var(--notification-error)" },
|
|
30
|
-
warning: { icon: "lucide-alert-triangle", color: "var(--notification-warning)" }
|
|
31
|
-
}, { timeout: R } = K(t), i = s(null), P = s(!1), u = s(!1), E = g(() => (t.position || "top-center").startsWith("top") ? "top" : "bottom"), F = g(() => (t.toastIndex ?? 0) === 0), z = g(() => (t.toastIndex ?? 0) < (t.visibleToasts ?? 3)), l = s(null);
|
|
32
|
-
function f() {
|
|
33
|
-
u.value || (u.value = !0, l.value?.clear(), setTimeout(() => {
|
|
34
|
-
x("close", t.notificationId);
|
|
35
|
-
}, D));
|
|
36
|
-
}
|
|
37
|
-
B(
|
|
38
|
-
() => t.dismissing,
|
|
39
|
-
(e) => {
|
|
40
|
-
e && f();
|
|
41
|
-
}
|
|
42
|
-
), B(
|
|
43
|
-
R,
|
|
44
|
-
(e) => {
|
|
45
|
-
e && (l.value = N(() => f(), t.timeout), l.value.start());
|
|
46
|
-
},
|
|
47
|
-
{ immediate: !0 }
|
|
48
|
-
);
|
|
49
|
-
const w = s(null);
|
|
50
|
-
function M() {
|
|
51
|
-
if (i.value && t.notificationId !== void 0 && !u.value) {
|
|
52
|
-
const e = i.value, o = e.style.height;
|
|
53
|
-
e.style.height = "auto";
|
|
54
|
-
const n = e.getBoundingClientRect().height;
|
|
55
|
-
e.style.height = o, t.onReportHeight?.(t.notificationId, n);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
L(() => {
|
|
59
|
-
requestAnimationFrame(() => {
|
|
60
|
-
requestAnimationFrame(() => {
|
|
61
|
-
P.value = !0, M();
|
|
62
|
-
});
|
|
63
|
-
}), i.value && (w.value = new ResizeObserver(() => M()), w.value.observe(i.value));
|
|
64
|
-
});
|
|
65
|
-
function N(e, o) {
|
|
66
|
-
let n, m, v = o;
|
|
67
|
-
function h() {
|
|
68
|
-
window.clearTimeout(n), v -= Date.now() - m;
|
|
69
|
-
}
|
|
70
|
-
function _() {
|
|
71
|
-
m = Date.now(), window.clearTimeout(n), n = window.setTimeout(e, v);
|
|
72
|
-
}
|
|
73
|
-
function A() {
|
|
74
|
-
v = o, _();
|
|
75
|
-
}
|
|
76
|
-
function W() {
|
|
77
|
-
window.clearTimeout(n);
|
|
78
|
-
}
|
|
79
|
-
return { pause: h, resume: _, start: A, clear: W };
|
|
80
|
-
}
|
|
81
|
-
j(() => {
|
|
82
|
-
l.value?.clear(), w.value?.disconnect();
|
|
83
|
-
});
|
|
84
|
-
function X() {
|
|
85
|
-
t.timeout && t.pauseOnHover !== !1 && l.value?.pause();
|
|
86
|
-
}
|
|
87
|
-
function U() {
|
|
88
|
-
t.timeout && t.pauseOnHover !== !1 && l.value?.resume();
|
|
89
|
-
}
|
|
90
|
-
const r = s(0), c = s(0), d = s(!1), p = s(!1), T = s(0);
|
|
91
|
-
function V(e) {
|
|
92
|
-
if (u.value || p.value || e.target?.closest(".vc-notification__dismiss-button")) return;
|
|
93
|
-
r.value = e.clientX, c.value = e.clientY, T.value = Date.now(), d.value = !1;
|
|
94
|
-
const o = i.value;
|
|
95
|
-
o && o.setPointerCapture(e.pointerId);
|
|
96
|
-
}
|
|
97
|
-
function Y(e) {
|
|
98
|
-
if (u.value || p.value || r.value === 0 && c.value === 0) return;
|
|
99
|
-
const o = e.clientX - r.value, n = e.clientY - c.value;
|
|
100
|
-
if (!d.value)
|
|
101
|
-
if (Math.abs(o) > 1 && Math.abs(o) > Math.abs(n))
|
|
102
|
-
d.value = !0, l.value?.pause();
|
|
103
|
-
else if (Math.abs(n) > 1) {
|
|
104
|
-
r.value = 0, c.value = 0;
|
|
105
|
-
return;
|
|
106
|
-
} else
|
|
107
|
-
return;
|
|
108
|
-
i.value?.style.setProperty("--swipe-amount-x", `${o}px`);
|
|
109
|
-
}
|
|
110
|
-
function $(e) {
|
|
111
|
-
const o = i.value;
|
|
112
|
-
if (o && o.hasPointerCapture(e.pointerId) && o.releasePointerCapture(e.pointerId), !d.value) {
|
|
113
|
-
i.value?.style.setProperty("--swipe-amount-x", "0px"), r.value = 0, c.value = 0;
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
const n = parseFloat(i.value?.style.getPropertyValue("--swipe-amount-x")?.replace("px", "") || "0"), m = Date.now() - T.value, v = Math.abs(n) / m;
|
|
117
|
-
if (Math.abs(n) >= le || v > 0.11) {
|
|
118
|
-
u.value = !0, l.value?.clear(), p.value = !0;
|
|
119
|
-
const h = n > 0 ? 1 : -1;
|
|
120
|
-
i.value?.style.setProperty("--swipe-amount-x", `${h * window.innerWidth}px`), setTimeout(() => x("close", t.notificationId), D);
|
|
121
|
-
} else
|
|
122
|
-
i.value?.style.setProperty("--swipe-amount-x", "0px"), l.value?.resume();
|
|
123
|
-
d.value = !1, r.value = 0, c.value = 0;
|
|
124
|
-
}
|
|
125
|
-
return (e, o) => (y(), b("div", {
|
|
126
|
-
id: String(a.notificationId),
|
|
127
|
-
ref_key: "toastRef",
|
|
128
|
-
ref: i,
|
|
129
|
-
class: G(["vc-notification", [`vc-notification--${a.type || "default"}`]]),
|
|
130
|
-
"data-mounted": P.value,
|
|
131
|
-
"data-removed": u.value,
|
|
132
|
-
"data-y-position": E.value,
|
|
133
|
-
"data-front": F.value,
|
|
134
|
-
"data-expanded": a.expanded ?? !0,
|
|
135
|
-
"data-visible": z.value,
|
|
136
|
-
"data-swiping": d.value,
|
|
137
|
-
"data-swiped-out": p.value,
|
|
138
|
-
role: a.type === "error" ? "alert" : "status",
|
|
139
|
-
onMouseenter: X,
|
|
140
|
-
onMouseleave: U,
|
|
141
|
-
onPointerdown: V,
|
|
142
|
-
onPointermove: Y,
|
|
143
|
-
onPointerup: $
|
|
144
|
-
}, [
|
|
145
|
-
C("div", ie, [
|
|
146
|
-
O(S(k), {
|
|
147
|
-
icon: I[a.type ?? "default"]?.icon,
|
|
148
|
-
style: J({ color: I[a.type ?? "default"]?.color }),
|
|
149
|
-
size: "l",
|
|
150
|
-
class: "vc-notification__icon",
|
|
151
|
-
"aria-hidden": "true"
|
|
152
|
-
}, null, 8, ["icon", "style"]),
|
|
153
|
-
typeof a.content == "string" ? (y(), b("div", ae, Q(a.content), 1)) : (y(), b("div", se, [
|
|
154
|
-
(y(), Z(ee(a.content)))
|
|
155
|
-
]))
|
|
156
|
-
]),
|
|
157
|
-
C("button", {
|
|
158
|
-
type: "button",
|
|
159
|
-
class: "vc-notification__dismiss-button",
|
|
160
|
-
"aria-label": "Dismiss notification",
|
|
161
|
-
onClick: oe(f, ["stop"]),
|
|
162
|
-
onKeydown: te(f, ["escape"])
|
|
163
|
-
}, [
|
|
164
|
-
O(S(k), {
|
|
165
|
-
icon: "lucide-x",
|
|
166
|
-
size: "s",
|
|
167
|
-
"aria-hidden": "true"
|
|
168
|
-
})
|
|
169
|
-
], 32)
|
|
170
|
-
], 42, ne));
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
export {
|
|
174
|
-
ce as _
|
|
175
|
-
};
|