@opendesign-plus-test/components 0.0.1-rc.33 → 0.0.1-rc.35
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/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +339 -150
- package/dist/components/activity/composables/useActivityConfig.d.ts +17 -0
- package/dist/components/activity/config.d.ts +0 -14
- package/dist/components/meeting/composables/useMeetingConfig.d.ts +14 -0
- package/dist/components/meeting/config.d.ts +1 -16
- package/dist/components/meeting/types.d.ts +1 -0
- package/dist/components/meeting/utils.d.ts +1 -15
- package/dist/components.cjs.js +40 -40
- package/dist/components.css +1 -1
- package/dist/components.es.js +11386 -11389
- package/package.json +3 -3
- package/src/components/activity/OActivityApproval.vue +47 -38
- package/src/components/activity/OActivityForm.vue +51 -50
- package/src/components/activity/OMyActivityCalendar.vue +46 -36
- package/src/components/activity/composables/useActivityConfig.ts +141 -0
- package/src/components/activity/config.ts +1 -130
- package/src/components/meeting/OMeetingCalendar.vue +7 -9
- package/src/components/meeting/OMeetingForm.vue +11 -18
- package/src/components/meeting/OMyMeetingCalendar.vue +4 -8
- package/src/components/meeting/OSigMeetingCalendar.vue +3 -5
- package/src/components/meeting/components/OMeetingCalendarList.vue +7 -6
- package/src/components/meeting/components/OMeetingDetail.vue +33 -28
- package/src/components/meeting/components/OSigMeetingAside.vue +3 -1
- package/src/components/meeting/composables/useMeetingConfig.ts +111 -0
- package/src/components/meeting/config.ts +58 -120
- package/src/components/meeting/types.ts +1 -0
- package/src/components/meeting/utils.ts +69 -122
- package/src/i18n/en.ts +97 -0
- package/src/i18n/zh.ts +92 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const useActivityConfig: () => {
|
|
2
|
+
t: (key: string, ...args: any[]) => string;
|
|
3
|
+
activityTypeMap: import('../../../../vue/dist/vue.esm-bundler.js').ComputedRef<Map<number, {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}>>;
|
|
7
|
+
statusMap: import('../../../../vue/dist/vue.esm-bundler.js').ComputedRef<Map<number, {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
text: string;
|
|
11
|
+
value: number;
|
|
12
|
+
}>>;
|
|
13
|
+
approvalStatusMap: import('../../../../vue/dist/vue.esm-bundler.js').ComputedRef<Map<string, {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}>>;
|
|
17
|
+
};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
export declare const acticityTypeMap: Map<number, {
|
|
2
|
-
label: string;
|
|
3
|
-
value: number;
|
|
4
|
-
}>;
|
|
5
1
|
export declare const WEBSITE_REGEXP: RegExp;
|
|
6
|
-
export declare const statusMap: Map<number, {
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
text: string;
|
|
10
|
-
value: number;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const approvalStatusMap: Map<string, {
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CalendarDataType, meetingTabT, OptionItemT } from '../types';
|
|
2
|
+
export declare const useMeetingConfig: () => {
|
|
3
|
+
t: (key: string, ...args: any[]) => string;
|
|
4
|
+
locale: import('../../../../vue/dist/vue.esm-bundler.js').ComputedRef<"zh" | "en">;
|
|
5
|
+
meetingTabs: import('../../../../vue/dist/vue.esm-bundler.js').ComputedRef<meetingTabT[]>;
|
|
6
|
+
cycleTypeOptions0: import('../../../../vue/dist/vue.esm-bundler.js').ComputedRef<OptionItemT[]>;
|
|
7
|
+
cycleTypeOptions: import('../../../../vue/dist/vue.esm-bundler.js').ComputedRef<OptionItemT[]>;
|
|
8
|
+
weekDay: import('../../../../vue/dist/vue.esm-bundler.js').ComputedRef<string[]>;
|
|
9
|
+
intervalWeekOptions: import('../../../../vue/dist/vue.esm-bundler.js').ComputedRef<OptionItemT[]>;
|
|
10
|
+
getPointStr: (cycleType: number, points: number[]) => string;
|
|
11
|
+
getConfig: (val: CalendarDataType, key: keyof meetingTabT) => string;
|
|
12
|
+
getPlatformLabel: (platform: string) => string;
|
|
13
|
+
getWeekFromDate: (date: string | Date) => string;
|
|
14
|
+
};
|
|
@@ -4,24 +4,9 @@ export declare const TYPE_COLOR_MAP: {
|
|
|
4
4
|
events: string;
|
|
5
5
|
meeting: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const MEETING_TABS: meetingTabT[];
|
|
8
7
|
export declare const INTERVAL_DAY = 0;
|
|
9
8
|
export declare const INTERVAL_WEEK = 1;
|
|
10
9
|
export declare const INTERVAL_MONTH = 2;
|
|
11
|
-
export declare const CYCLE_TYPE_OPTIONS0: {
|
|
12
|
-
label: string;
|
|
13
|
-
value: number;
|
|
14
|
-
max: number;
|
|
15
|
-
}[];
|
|
16
|
-
export declare const CYCLE_TYPE_OPTIONS: {
|
|
17
|
-
label: string;
|
|
18
|
-
value: number;
|
|
19
|
-
max: number;
|
|
20
|
-
}[];
|
|
21
|
-
export declare const WEEKDAY: string[];
|
|
22
|
-
export declare const INTERVAL_WEEK_OPTIONS: {
|
|
23
|
-
value: number;
|
|
24
|
-
label: string;
|
|
25
|
-
}[];
|
|
26
10
|
export declare const EMAIL_REGEX: RegExp;
|
|
27
11
|
export declare const PROGRESS_COLORS: string[];
|
|
12
|
+
export declare const getMeetingTabs: (t: (key: string) => string) => meetingTabT[];
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
* 格式化时间
|
|
4
|
-
* @param {string} date 时间
|
|
5
|
-
* @param {string} format 时间格式
|
|
6
|
-
* @returns {string} 返回
|
|
7
|
-
*/
|
|
1
|
+
import { OptionItemT } from './types';
|
|
8
2
|
export declare const formatDate: (date?: string | Date, format?: string) => string;
|
|
9
3
|
export declare const findLabelFromOptions: (value: string | number, options: OptionItemT[], labelKey?: keyof OptionItemT, valueKey?: keyof OptionItemT) => string | number;
|
|
10
|
-
export declare const getPointStr: (cycleType: number, points: number[]) => string;
|
|
11
4
|
export declare const speakerNum: (val: string) => number;
|
|
12
|
-
/**
|
|
13
|
-
* 将时间转换为秒数
|
|
14
|
-
* @param {string} date 时间 hh:mm:ss
|
|
15
|
-
* @returns {number}
|
|
16
|
-
*/
|
|
17
5
|
export declare const getDateNumber: (date: string) => number;
|
|
18
6
|
export declare const formatDateNumber: (num: number) => string;
|
|
19
7
|
export declare const transformTime: (time: string) => number;
|
|
20
8
|
export declare const transformSeconds: (seconds: number) => string;
|
|
21
|
-
export declare const getConfig: (val: CalendarDataType, key: keyof meetingTabT) => string;
|
|
22
|
-
export declare const getPlatformLabel: (platform: string) => string;
|