@wimi/ui 0.4.67 → 0.4.68
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/{en-oVN9mfXa.mjs → en-Blrn2CMo.mjs} +1 -1
- package/dist/{index-CSEJKM6r.mjs → index-DC9xeP6C.mjs} +21 -21
- package/dist/index.css +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/{ja-0k5X3toi.mjs → ja-2wBDwwBm.mjs} +1 -1
- package/dist/{ko-BU9T-amU.mjs → ko-DKb2lXYb.mjs} +1 -1
- package/dist/{ru-C7X-_HTs.mjs → ru-Bs1U2Qzg.mjs} +1 -1
- package/dist/typings/components/gantt/demo/auto-row-height.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/basic.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/capacity-usage.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/context-menu.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/link-create.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/row-drag.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/table-columns.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/task-interaction.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/timeline.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/virtual-timeline.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/vue-renderer.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/work-order-milestone.vue.d.ts +2 -0
- package/dist/typings/components/gantt/demo/work-order-status.vue.d.ts +2 -0
- package/dist/typings/components/gantt/index.d.ts +5 -0
- package/dist/typings/components/gantt/src/gantt.vue.d.ts +23 -0
- package/dist/typings/components/gantt/src/types.d.ts +68 -0
- package/dist/typings/components/gantt/src/vue-renderer.d.ts +20 -0
- package/dist/typings/components/index.d.ts +1 -0
- package/dist/{zh-cn-CYbjxCp1.mjs → zh-cn-DYla17T6.mjs} +1 -1
- package/dist/{zh-tw-DVKWNNf-.mjs → zh-tw-C9l86ls-.mjs} +1 -1
- package/package.json +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,g as t}from"./index-
|
|
1
|
+
import{r as e,g as t}from"./index-DC9xeP6C.mjs";function _(e,t){for(var _=0;_<t.length;_++){const r=t[_];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const _=Object.getOwnPropertyDescriptor(r,t);_&&Object.defineProperty(e,t,_.get?_:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),r={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e){return e+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(e){return e<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return _.default.locale(r,null,!0),r}(e()));const l=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */t(o)},[o]);export{l as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,g as t}from"./index-
|
|
1
|
+
import{r as e,g as t}from"./index-DC9xeP6C.mjs";function _(e,t){for(var _=0;_<t.length;_++){const r=t[_];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const _=Object.getOwnPropertyDescriptor(r,t);_&&Object.defineProperty(e,t,_.get?_:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),r={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),ordinal:function(e){return e+"일"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},meridiem:function(e){return e<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};return _.default.locale(r,null,!0),r}(e()));const l=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */t(o)},[o]);export{l as k};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as _,g as t}from"./index-
|
|
1
|
+
import{r as _,g as t}from"./index-DC9xeP6C.mjs";function e(_,t){for(var e=0;e<t.length;e++){const r=t[e];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in _)){const e=Object.getOwnPropertyDescriptor(r,t);e&&Object.defineProperty(_,t,e.get?e:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(_){function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var e=t(_),r="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),n="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),o="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),s="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),i=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function a(_,t,e){var r,n;return"m"===e?t?"минута":"минуту":_+" "+(r=+_,n={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[e].split("_"),r%10==1&&r%100!=11?n[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?n[1]:n[2])}var m=function(_,t){return i.test(t)?r[_.month()]:n[_.month()]};m.s=n,m.f=r;var u=function(_,t){return i.test(t)?o[_.month()]:s[_.month()]};u.s=s,u.f=o;var f={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:m,monthsShort:u,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:a,mm:a,h:"час",hh:a,d:"день",dd:a,M:"месяц",MM:a,y:"год",yy:a},ordinal:function(_){return _},meridiem:function(_){return _<4?"ночи":_<12?"утра":_<17?"дня":"вечера"}};return e.default.locale(f,null,!0),f}(_()));const s=/* @__PURE__ */e({__proto__:null,default:/* @__PURE__ */t(o)},[o]);export{s as r};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type * from '@wimi/gantt';
|
|
2
|
+
export { VanillaGantt } from '@wimi/gantt';
|
|
3
|
+
export { default as WmGantt } from './src/gantt.vue';
|
|
4
|
+
export type * from './src/types';
|
|
5
|
+
export { GanttVueRendererManager, createGanttVueRendererAdapter, normalizeGanttOptions } from './src/vue-renderer';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { VanillaGantt as VanillaGanttInstance } from '@wimi/gantt';
|
|
2
|
+
import type { WmGanttInputOptions, WmGanttProps } from './types';
|
|
3
|
+
import '@wimi/gantt/style.css';
|
|
4
|
+
declare function setOptions(options?: WmGanttInputOptions): void;
|
|
5
|
+
declare function renderGantt(): void;
|
|
6
|
+
declare function destroy(): void;
|
|
7
|
+
declare const _default: import("vue").DefineComponent<WmGanttProps, {
|
|
8
|
+
destroy: typeof destroy;
|
|
9
|
+
gantt: import("vue").ShallowRef<VanillaGanttInstance, VanillaGanttInstance>;
|
|
10
|
+
getInstance: () => VanillaGanttInstance;
|
|
11
|
+
render: typeof renderGantt;
|
|
12
|
+
setOptions: typeof setOptions;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
ready: (gantt: VanillaGanttInstance) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<WmGanttProps> & Readonly<{
|
|
16
|
+
onReady?: (gantt: VanillaGanttInstance) => any;
|
|
17
|
+
}>, {
|
|
18
|
+
options: WmGanttInputOptions;
|
|
19
|
+
height: number | string;
|
|
20
|
+
width: number | string;
|
|
21
|
+
watchOptions: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { GanttCellRenderContext, GanttDependencyOptions, GanttHeaderCellRenderContext, GanttLinkConnectorLayoutContext, GanttLinkConnectorOptions, GanttMilestoneCustomLayoutContext, GanttMilestoneTooltipOptions, GanttRenderer, GanttTableColumn, GanttTaskBarCustomLayoutContext, GanttTaskBarEventContext, GanttTaskBarOptions, GanttTaskBarTooltipOptions, GanttTaskListTableOptions, GanttTimelineHeaderOptions, GanttTimelineRenderContext, GanttTimelineScale, VanillaGantt, VanillaGanttOptions } from '@wimi/gantt';
|
|
2
|
+
import type { Component, VNode } from 'vue';
|
|
3
|
+
export type GanttNativeRendererResult = Node | string | {
|
|
4
|
+
rootContainer?: Node;
|
|
5
|
+
} | null | undefined;
|
|
6
|
+
export type WmGanttRendererProps<TContext = any> = Record<string, any> | ((context: TContext) => Record<string, any>);
|
|
7
|
+
export interface WmGanttVueRenderer<TContext = any> {
|
|
8
|
+
component: Component;
|
|
9
|
+
props?: WmGanttRendererProps<TContext>;
|
|
10
|
+
attrs?: WmGanttRendererProps<TContext>;
|
|
11
|
+
slots?: Record<string, any> | ((context: TContext) => Record<string, any>);
|
|
12
|
+
}
|
|
13
|
+
export type WmGanttRendererValue<TContext = any> = Component | GanttNativeRendererResult | VNode | WmGanttVueRenderer<TContext>;
|
|
14
|
+
export type WmGanttRenderer<TContext = any> = Component | GanttRenderer<TContext> | WmGanttVueRenderer<TContext> | ((context: TContext) => WmGanttRendererValue<TContext>);
|
|
15
|
+
export type WmGanttTableColumn = Omit<GanttTableColumn, 'renderCell' | 'renderHeader'> & {
|
|
16
|
+
renderCell?: WmGanttRenderer<GanttCellRenderContext>;
|
|
17
|
+
renderHeader?: WmGanttRenderer<GanttHeaderCellRenderContext>;
|
|
18
|
+
};
|
|
19
|
+
export type WmGanttTaskListTableOptions = Omit<GanttTaskListTableOptions, 'columns' | 'renderCell' | 'renderHeader'> & {
|
|
20
|
+
columns?: WmGanttTableColumn[];
|
|
21
|
+
renderCell?: WmGanttRenderer<GanttCellRenderContext>;
|
|
22
|
+
renderHeader?: WmGanttRenderer;
|
|
23
|
+
};
|
|
24
|
+
export type WmGanttTimelineScale = Omit<GanttTimelineScale, 'customLayout'> & {
|
|
25
|
+
customLayout?: WmGanttRenderer<GanttTimelineRenderContext>;
|
|
26
|
+
};
|
|
27
|
+
export type WmGanttTimelineHeaderOptions = Omit<GanttTimelineHeaderOptions, 'customLayout' | 'scales'> & {
|
|
28
|
+
customLayout?: WmGanttRenderer<GanttTimelineRenderContext>;
|
|
29
|
+
scales?: WmGanttTimelineScale[];
|
|
30
|
+
};
|
|
31
|
+
export type WmGanttTooltipOptions<TContext> = Omit<GanttTaskBarTooltipOptions, 'customLayout'> & {
|
|
32
|
+
customLayout?: WmGanttRenderer<TContext>;
|
|
33
|
+
};
|
|
34
|
+
export type WmGanttTaskBarOptions = Omit<GanttTaskBarOptions, 'customLayout' | 'milestoneCustomLayout' | 'milestoneTooltip' | 'tooltip'> & {
|
|
35
|
+
customLayout?: WmGanttRenderer<GanttTaskBarCustomLayoutContext>;
|
|
36
|
+
milestoneCustomLayout?: WmGanttRenderer<GanttMilestoneCustomLayoutContext>;
|
|
37
|
+
milestoneTooltip?: boolean | (Omit<GanttMilestoneTooltipOptions, 'customLayout'> & {
|
|
38
|
+
customLayout?: WmGanttRenderer<GanttMilestoneCustomLayoutContext>;
|
|
39
|
+
});
|
|
40
|
+
tooltip?: boolean | WmGanttTooltipOptions<GanttTaskBarEventContext>;
|
|
41
|
+
};
|
|
42
|
+
export type WmGanttLinkConnectorOptions = Omit<GanttLinkConnectorOptions, 'customLayout' | 'finishLayout' | 'startLayout'> & {
|
|
43
|
+
customLayout?: WmGanttRenderer<GanttLinkConnectorLayoutContext>;
|
|
44
|
+
finishLayout?: WmGanttRenderer<GanttLinkConnectorLayoutContext>;
|
|
45
|
+
startLayout?: WmGanttRenderer<GanttLinkConnectorLayoutContext>;
|
|
46
|
+
};
|
|
47
|
+
export type WmGanttDependencyOptions = Omit<GanttDependencyOptions, 'linkConnector'> & {
|
|
48
|
+
linkConnector?: WmGanttLinkConnectorOptions;
|
|
49
|
+
};
|
|
50
|
+
export type WmGanttOptions = Omit<VanillaGanttOptions, 'dependency' | 'taskBar' | 'taskListTable' | 'timelineHeader'> & {
|
|
51
|
+
dependency?: WmGanttDependencyOptions;
|
|
52
|
+
taskBar?: WmGanttTaskBarOptions;
|
|
53
|
+
taskListTable?: WmGanttTaskListTableOptions;
|
|
54
|
+
timelineHeader?: WmGanttTimelineHeaderOptions;
|
|
55
|
+
};
|
|
56
|
+
export type WmGanttInputOptions = Record<string, any> | WmGanttOptions;
|
|
57
|
+
export interface WmGanttProps {
|
|
58
|
+
height?: number | string;
|
|
59
|
+
options?: WmGanttInputOptions;
|
|
60
|
+
watchOptions?: boolean;
|
|
61
|
+
width?: number | string;
|
|
62
|
+
}
|
|
63
|
+
export interface WmGanttExpose {
|
|
64
|
+
destroy: () => void;
|
|
65
|
+
getInstance: () => null | VanillaGantt;
|
|
66
|
+
render: () => void;
|
|
67
|
+
setOptions: (options?: WmGanttInputOptions) => void;
|
|
68
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { VanillaGanttOptions } from '@wimi/gantt';
|
|
2
|
+
import type { AppContext, Component, VNode } from 'vue';
|
|
3
|
+
import type { WmGanttOptions, WmGanttVueRenderer } from './types';
|
|
4
|
+
export declare class GanttVueRendererManager {
|
|
5
|
+
private appContext;
|
|
6
|
+
private containers;
|
|
7
|
+
private observer;
|
|
8
|
+
constructor(appContext?: AppContext | null);
|
|
9
|
+
mount<TContext>(renderer: VNode | WmGanttVueRenderer<TContext> | Component, context: TContext): HTMLElement;
|
|
10
|
+
cleanup(): void;
|
|
11
|
+
private createRendererVNode;
|
|
12
|
+
private ensureObserver;
|
|
13
|
+
private cleanupDisconnectedContainers;
|
|
14
|
+
private disconnectObserver;
|
|
15
|
+
}
|
|
16
|
+
export declare function createGanttVueRendererAdapter(appContext?: AppContext | null): {
|
|
17
|
+
cleanup: () => void;
|
|
18
|
+
normalizeOptions: (options?: WmGanttOptions) => VanillaGanttOptions;
|
|
19
|
+
};
|
|
20
|
+
export declare function normalizeGanttOptions(options: WmGanttOptions, manager: GanttVueRendererManager): VanillaGanttOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,g as e}from"./index-
|
|
1
|
+
import{r as t,g as e}from"./index-DC9xeP6C.mjs";function r(t,e){for(var r=0;r<e.length;r++){const _=e[r];if("string"!=typeof _&&!Array.isArray(_))for(const e in _)if("default"!==e&&!(e in t)){const r=Object.getOwnPropertyDescriptor(_,e);r&&Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>_[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var _,n={exports:{}};var o=_?n.exports:(_=1,n.exports=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t),_={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return r.default.locale(_,null,!0),_}(t()));const l=/* @__PURE__ */r({__proto__:null,default:/* @__PURE__ */e(o)},[o]);export{l as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,g as e}from"./index-
|
|
1
|
+
import{r as t,g as e}from"./index-DC9xeP6C.mjs";function _(t,e){for(var _=0;_<e.length;_++){const r=e[_];if("string"!=typeof r&&!Array.isArray(r))for(const e in r)if("default"!==e&&!(e in t)){const _=Object.getOwnPropertyDescriptor(r,e);_&&Object.defineProperty(t,e,_.get?_:{enumerable:!0,get:()=>r[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var _=e(t),r={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"週":t+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var _=100*t+e;return _<600?"凌晨":_<900?"早上":_<1100?"上午":_<1300?"中午":_<1800?"下午":"晚上"}};return _.default.locale(r,null,!0),r}(t()));const l=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */e(o)},[o]);export{l as z};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wimi/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.68",
|
|
4
4
|
"description": "A vue library developed with dumi",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "vite build && vue-tsc --project ./tsconfig.build.json",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"registry": "https://registry.npmjs.org/"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"vue": "
|
|
49
|
-
"
|
|
48
|
+
"ant-design-vue": "^4.2.6",
|
|
49
|
+
"vue": ">=3.5.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@commitlint/cli": "^19.8.0",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"@types/react-dom": "^18.0.0",
|
|
63
63
|
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
|
64
64
|
"@typescript-eslint/parser": "^8.7.0",
|
|
65
|
-
"@wimi/dumi-theme-antd": "0.4.6",
|
|
66
65
|
"@umijs/lint": "^4.3.24",
|
|
67
66
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
68
67
|
"@vitejs/plugin-vue-jsx": "^5.1.3",
|
|
69
68
|
"@vitest/coverage-v8": "^2.1.1",
|
|
70
69
|
"@vue/test-utils": "^2.4.6",
|
|
70
|
+
"@wimi/dumi-theme-antd": "0.4.6",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
72
|
"cz-git": "^1.11.1",
|
|
73
73
|
"dumi": "^2.4.21",
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
"@vueuse/core": "^13.0.0",
|
|
116
116
|
"@wangeditor/editor": "^5.1.23",
|
|
117
117
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
118
|
+
"@wimi/gantt": "^0.1.2",
|
|
118
119
|
"class-variance-authority": "^0.7.1",
|
|
119
120
|
"colorjs.io": "^0.5.2",
|
|
120
121
|
"dayjs": "^1.11.13",
|