@oneclick.dev/cms-core-modules 0.0.49 → 0.0.51
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/dist/cms-core-modules.css +1 -1
- package/dist/index.cjs.js +88 -86
- package/dist/index.mjs +21456 -19103
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +5 -0
- package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +8 -3
- package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +5 -0
- package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +15 -0
- package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +13 -0
- package/dist/src/appointments/pages/edit/resources.vue.d.ts +28 -0
- package/dist/src/appointments/types.d.ts +10 -0
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DateValue } from '@internationalized/date';
|
|
2
|
+
import { Resource } from '../../types';
|
|
2
3
|
interface AgendaEvent {
|
|
3
4
|
id: string;
|
|
4
5
|
title: string;
|
|
@@ -7,14 +8,18 @@ interface AgendaEvent {
|
|
|
7
8
|
theme?: string;
|
|
8
9
|
bookings?: number;
|
|
9
10
|
maxBookings?: number;
|
|
11
|
+
resource?: Resource | null;
|
|
12
|
+
resourceId?: string;
|
|
10
13
|
}
|
|
11
14
|
type __VLS_Props = {
|
|
12
15
|
date: DateValue;
|
|
13
16
|
events?: AgendaEvent[];
|
|
14
17
|
firstDay?: boolean;
|
|
18
|
+
resources?: Resource[];
|
|
15
19
|
};
|
|
16
20
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
21
|
firstDay: boolean;
|
|
22
|
+
resources: Resource[];
|
|
18
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
24
|
eventDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
20
25
|
openDialog: (timelineEvent: any) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Resource } from '../../types';
|
|
1
2
|
interface Timeslot {
|
|
2
3
|
id?: number;
|
|
3
4
|
startTime: string;
|
|
@@ -9,16 +10,20 @@ interface Exception {
|
|
|
9
10
|
endDate: string;
|
|
10
11
|
isClosed: boolean;
|
|
11
12
|
timeslots: Timeslot[];
|
|
13
|
+
resourceIds?: string[] | null;
|
|
12
14
|
}
|
|
13
|
-
|
|
15
|
+
type __VLS_Props = {
|
|
16
|
+
resources?: Resource[];
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
14
19
|
openDialog: (exception?: Exception) => void;
|
|
15
20
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
21
|
"add-exception": (exceptionData: Exception) => any;
|
|
17
22
|
"update-exception": (exceptionData: Exception) => any;
|
|
18
23
|
"remove-exception": (exceptionId: string) => any;
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
25
|
"onAdd-exception"?: ((exceptionData: Exception) => any) | undefined;
|
|
21
26
|
"onUpdate-exception"?: ((exceptionData: Exception) => any) | undefined;
|
|
22
27
|
"onRemove-exception"?: ((exceptionId: string) => any) | undefined;
|
|
23
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
28
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
29
|
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
addOn: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
7
|
+
addOn: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
|
+
openAddons: Ref<string[], string[]>;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
addonList: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
3
|
+
openAddons: globalThis.Ref<string[], string[]>;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
5
|
+
P: {};
|
|
6
|
+
B: {};
|
|
7
|
+
D: {};
|
|
8
|
+
C: {};
|
|
9
|
+
M: {};
|
|
10
|
+
Defaults: {};
|
|
11
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
12
|
+
openAddons: globalThis.Ref<string[], string[]>;
|
|
13
|
+
}, {}, {}, {}, {}> | null;
|
|
14
|
+
}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Resource } from '../../types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
|
+
openDialog: (resource?: Resource) => void;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
"add-resource": (resourceData: Resource) => any;
|
|
6
|
+
"update-resource": (resourceData: Resource) => any;
|
|
7
|
+
"remove-resource": (resourceId: string) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
9
|
+
"onAdd-resource"?: ((resourceData: Resource) => any) | undefined;
|
|
10
|
+
"onUpdate-resource"?: ((resourceData: Resource) => any) | undefined;
|
|
11
|
+
"onRemove-resource"?: ((resourceId: string) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Resource } from '../../types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
3
|
+
resourceDialogRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
4
|
+
"onAdd-resource"?: ((resourceData: Resource) => any) | undefined;
|
|
5
|
+
"onUpdate-resource"?: ((resourceData: Resource) => any) | undefined;
|
|
6
|
+
"onRemove-resource"?: ((resourceId: string) => any) | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
openDialog: (resource?: Resource) => void;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
"add-resource": (resourceData: Resource) => any;
|
|
11
|
+
"update-resource": (resourceData: Resource) => any;
|
|
12
|
+
"remove-resource": (resourceId: string) => any;
|
|
13
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
14
|
+
P: {};
|
|
15
|
+
B: {};
|
|
16
|
+
D: {};
|
|
17
|
+
C: {};
|
|
18
|
+
M: {};
|
|
19
|
+
Defaults: {};
|
|
20
|
+
}, Readonly<{}> & Readonly<{
|
|
21
|
+
"onAdd-resource"?: ((resourceData: Resource) => any) | undefined;
|
|
22
|
+
"onUpdate-resource"?: ((resourceData: Resource) => any) | undefined;
|
|
23
|
+
"onRemove-resource"?: ((resourceId: string) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
openDialog: (resource?: Resource) => void;
|
|
26
|
+
}, {}, {}, {}, {}> | null;
|
|
27
|
+
}, HTMLDivElement>;
|
|
28
|
+
export default _default;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { DateValue } from '@internationalized/date';
|
|
2
|
+
export interface Resource {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
publicLabel?: string;
|
|
6
|
+
avatarLabel?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
capacity: number;
|
|
9
|
+
color?: string;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
}
|
|
2
12
|
export interface PromoCode {
|
|
3
13
|
id?: string;
|
|
4
14
|
code: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneclick.dev/cms-core-modules",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
24
24
|
"@internationalized/date": "^3.8.0",
|
|
25
|
-
"@oneclick.dev/cms-kit": "^0.0.
|
|
25
|
+
"@oneclick.dev/cms-kit": "^0.0.65",
|
|
26
26
|
"@tanstack/vue-table": "^8.21.3",
|
|
27
27
|
"@vee-validate/zod": "^4.15.0",
|
|
28
28
|
"@vue-flow/core": "^1.47.0",
|