cnhis-design-vue 3.1.44-release.0 → 3.1.44-release.3
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/README.md +87 -87
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/classification/index.d.ts +4 -2
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +4 -2
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +4 -2
- package/es/components/classification/src/index.vue.d.ts +4 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/search-cascader/style/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +4 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +4 -2
- package/es/components/table-filter/src/components/render-widget/basicData.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/{DateRange.vue.d.ts → DateRangeInner.vue.d.ts} +1 -14
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +141 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -2
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +28 -7
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +152 -14
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +4 -2
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as i,renderList as v,normalizeClass as d,toDisplayString as o,createCommentVNode as n,createVNode as s,unref as c,withCtx as p,createTextVNode as m,createElementVNode as f}from"vue";import{NButton as y}from"naive-ui";import h from"../../../../../date-picker/index.js";import b from"moment";import{isString as g}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";import Y from"../../../../../../_virtual/plugin-vue_export-helper.js";const F={class:"render-widget-date-range"},_={key:0,class:"radio-date-group"},D=["onClick"],M={key:1,class:"date-detail-range"},x=f("span",{class:"divider"},null,-1);var S=Y(e({__name:"DateRange",props:{type:{type:String,default:"date"},filterExplicit:{type:Number,default:1},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const Y=e,S=a([]),w=a(!1),P=a(""),j=a(),C=a(),E=l((()=>{let e="";switch(Y.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),H=l((()=>{let e="";switch(Y.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function O(e,a){switch(a){case"start":j.value=e;break;case"end":C.value=e}const l=j.value?b(j.value).format(E.value):null,t=C.value?b(C.value).format(E.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function R(e){return!!C.value&&e>C.value}function T(e){return!!j.value&&e<j.value}return t((()=>Y.value),(e=>{if(e&&g(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=b(a.trim()).valueOf()),void(l.trim()&&(C.value=b(l.trim()).valueOf()))}j.value=C.value=null,P.value=""}),{immediate:!0}),function(){const e=k(E.value);S.value=e}(),(a,l)=>(u(),r("div",F,[0===e.filterExplicit?(u(),r(i,{key:0},[w.value?n("v-if",!0):(u(),r("div",_,[(u(!0),r(i,null,v(S.value,(e=>(u(),r("span",{key:e.value,class:d(["radio-date-item",P.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,P.value===l?P.value="":P.value=l,void(P.value&&f("update:value",P.value));var l}},o(e.label),11,D)))),128))])),s(c(y),{secondary:"",class:d(w.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>w.value=!w.value)},{default:p((()=>[m(o(c(H)),1)])),_:1},8,["class"])],64)):n("v-if",!0),w.value?(u(),r("div",M,[s(c(h),{type:e.type,"default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:j.value,"is-date-disabled":R,"onUpdate:value":l[1]||(l[1]=e=>O(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),x,s(c(h),{type:e.type,"default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:C.value,"is-date-disabled":T,"onUpdate:value":l[2]||(l[2]=e=>O(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):n("v-if",!0)]))}}),[["__file","DateRange.vue"]]);export{S as default};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
declare const draggableComponent: import('vue').DefineComponent<
|
|
2
|
-
{
|
|
3
|
-
list: {
|
|
4
|
-
type: ArrayConstructor;
|
|
5
|
-
required: boolean;
|
|
6
|
-
default: any;
|
|
7
|
-
};
|
|
8
|
-
modelValue: {
|
|
9
|
-
type: ArrayConstructor;
|
|
10
|
-
required: boolean;
|
|
11
|
-
default: any;
|
|
12
|
-
};
|
|
13
|
-
itemKey: {
|
|
14
|
-
type: (FunctionConstructor | StringConstructor)[];
|
|
15
|
-
required: boolean;
|
|
16
|
-
};
|
|
17
|
-
clone: {
|
|
18
|
-
type: FunctionConstructor;
|
|
19
|
-
default: (original: any) => any;
|
|
20
|
-
};
|
|
21
|
-
tag: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
move: {
|
|
26
|
-
type: FunctionConstructor;
|
|
27
|
-
default: any;
|
|
28
|
-
};
|
|
29
|
-
componentData: {
|
|
30
|
-
type: ObjectConstructor;
|
|
31
|
-
required: boolean;
|
|
32
|
-
default: any;
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
unknown,
|
|
36
|
-
{
|
|
37
|
-
error: boolean;
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
realList(): any;
|
|
41
|
-
getKey(): any;
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
getUnderlyingVm(domElement: any): any;
|
|
45
|
-
getUnderlyingPotencialDraggableComponent(htmElement: any): any;
|
|
46
|
-
emitChanges(evt: any): void;
|
|
47
|
-
alterList(onList: any): void;
|
|
48
|
-
spliceList(): void;
|
|
49
|
-
updatePosition(oldIndex: any, newIndex: any): void;
|
|
50
|
-
getRelatedContextFromMoveEvent({ to, related }: { to: any; related: any }): any;
|
|
51
|
-
getVmIndexFromDomIndex(domIndex: any): any;
|
|
52
|
-
onDragStart(evt: any): void;
|
|
53
|
-
onDragAdd(evt: any): void;
|
|
54
|
-
onDragRemove(evt: any): void;
|
|
55
|
-
onDragUpdate(evt: any): void;
|
|
56
|
-
computeFutureIndex(relatedContext: any, evt: any): any;
|
|
57
|
-
onDragMove(evt: any, originalEvent: any): any;
|
|
58
|
-
onDragEnd(): void;
|
|
59
|
-
},
|
|
60
|
-
import('vue').ComponentOptionsMixin,
|
|
61
|
-
import('vue').ComponentOptionsMixin,
|
|
62
|
-
any[],
|
|
63
|
-
any,
|
|
64
|
-
import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
|
|
65
|
-
Readonly<
|
|
66
|
-
{
|
|
67
|
-
move: Function;
|
|
68
|
-
tag: string;
|
|
69
|
-
clone: Function;
|
|
70
|
-
list: unknown[];
|
|
71
|
-
modelValue: unknown[];
|
|
72
|
-
componentData: Record<string, any>;
|
|
73
|
-
} & {
|
|
74
|
-
itemKey?: string | Function;
|
|
75
|
-
}
|
|
76
|
-
>,
|
|
77
|
-
{
|
|
78
|
-
move: Function;
|
|
79
|
-
tag: string;
|
|
80
|
-
clone: Function;
|
|
81
|
-
list: unknown[];
|
|
82
|
-
modelValue: unknown[];
|
|
83
|
-
componentData: Record<string, any>;
|
|
84
|
-
}
|
|
85
|
-
>;
|
|
86
|
-
export default draggableComponent;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
type FixedSizeArray<T extends number, U> = T extends 0
|
|
2
|
-
? void[]
|
|
3
|
-
: ReadonlyArray<U> & {
|
|
4
|
-
0: U;
|
|
5
|
-
length: T;
|
|
6
|
-
};
|
|
7
|
-
type Measure<T extends number> = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ? T : never;
|
|
8
|
-
type Append<T extends any[], U> = {
|
|
9
|
-
0: [U];
|
|
10
|
-
1: [T[0], U];
|
|
11
|
-
2: [T[0], T[1], U];
|
|
12
|
-
3: [T[0], T[1], T[2], U];
|
|
13
|
-
4: [T[0], T[1], T[2], T[3], U];
|
|
14
|
-
5: [T[0], T[1], T[2], T[3], T[4], U];
|
|
15
|
-
6: [T[0], T[1], T[2], T[3], T[4], T[5], U];
|
|
16
|
-
7: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], U];
|
|
17
|
-
8: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7], U];
|
|
18
|
-
}[Measure<T['length']>];
|
|
19
|
-
type AsArray<T> = T extends any[] ? T : [T];
|
|
20
|
-
|
|
21
|
-
declare class UnsetAdditionalOptions {
|
|
22
|
-
_UnsetAdditionalOptions: true;
|
|
23
|
-
}
|
|
24
|
-
type IfSet<X> = X extends UnsetAdditionalOptions ? {} : X;
|
|
25
|
-
|
|
26
|
-
type Callback<E, T> = (error: E | null, result?: T) => void;
|
|
27
|
-
type InnerCallback<E, T> = (error?: E | null | false, result?: T) => void;
|
|
28
|
-
|
|
29
|
-
type FullTap = Tap & {
|
|
30
|
-
type: 'sync' | 'async' | 'promise';
|
|
31
|
-
fn: Function;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type Tap = TapOptions & {
|
|
35
|
-
name: string;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
type TapOptions = {
|
|
39
|
-
before?: string;
|
|
40
|
-
stage?: number;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
interface HookInterceptor<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
|
44
|
-
name?: string;
|
|
45
|
-
tap?: (tap: FullTap & IfSet<AdditionalOptions>) => void;
|
|
46
|
-
call?: (...args: any[]) => void;
|
|
47
|
-
loop?: (...args: any[]) => void;
|
|
48
|
-
error?: (err: Error) => void;
|
|
49
|
-
result?: (result: R) => void;
|
|
50
|
-
done?: () => void;
|
|
51
|
-
register?: (tap: FullTap & IfSet<AdditionalOptions>) => FullTap & IfSet<AdditionalOptions>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
type ArgumentNames<T extends any[]> = FixedSizeArray<T['length'], string>;
|
|
55
|
-
|
|
56
|
-
declare class Hook<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
|
57
|
-
constructor(args?: ArgumentNames<AsArray<T>>, name?: string);
|
|
58
|
-
name: string | undefined;
|
|
59
|
-
taps: FullTap[];
|
|
60
|
-
intercept(interceptor: HookInterceptor<T, R, AdditionalOptions>): void;
|
|
61
|
-
isUsed(): boolean;
|
|
62
|
-
callAsync(...args: Append<AsArray<T>, Callback<Error, R>>): void;
|
|
63
|
-
promise(...args: AsArray<T>): Promise<R>;
|
|
64
|
-
tap(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => R): void;
|
|
65
|
-
withOptions(options: TapOptions & IfSet<AdditionalOptions>): Omit<this, 'call' | 'callAsync' | 'promise'>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export class SyncHook<T, R = void, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
|
69
|
-
call(...args: AsArray<T>): R;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export class SyncBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, R, AdditionalOptions> {}
|
|
73
|
-
export class SyncLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, void, AdditionalOptions> {}
|
|
74
|
-
export class SyncWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<
|
|
75
|
-
T,
|
|
76
|
-
AsArray<T>[0],
|
|
77
|
-
AdditionalOptions
|
|
78
|
-
> {}
|
|
79
|
-
|
|
80
|
-
declare class AsyncHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
|
81
|
-
tapAsync(
|
|
82
|
-
options: string | (Tap & IfSet<AdditionalOptions>),
|
|
83
|
-
fn: (...args: Append<AsArray<T>, InnerCallback<Error, R>>) => void
|
|
84
|
-
): void;
|
|
85
|
-
tapPromise(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => Promise<R>): void;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export class AsyncParallelHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
89
|
-
T,
|
|
90
|
-
void,
|
|
91
|
-
AdditionalOptions
|
|
92
|
-
> {}
|
|
93
|
-
export class AsyncParallelBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
94
|
-
T,
|
|
95
|
-
R,
|
|
96
|
-
AdditionalOptions
|
|
97
|
-
> {}
|
|
98
|
-
export class AsyncSeriesHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
99
|
-
T,
|
|
100
|
-
void,
|
|
101
|
-
AdditionalOptions
|
|
102
|
-
> {}
|
|
103
|
-
export class AsyncSeriesBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
104
|
-
T,
|
|
105
|
-
R,
|
|
106
|
-
AdditionalOptions
|
|
107
|
-
> {}
|
|
108
|
-
export class AsyncSeriesLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
109
|
-
T,
|
|
110
|
-
void,
|
|
111
|
-
AdditionalOptions
|
|
112
|
-
> {}
|
|
113
|
-
export class AsyncSeriesWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
114
|
-
T,
|
|
115
|
-
AsArray<T>[0],
|
|
116
|
-
AdditionalOptions
|
|
117
|
-
> {}
|
|
118
|
-
|
|
119
|
-
type HookFactory<H> = (key: any, hook?: H) => H;
|
|
120
|
-
|
|
121
|
-
interface HookMapInterceptor<H> {
|
|
122
|
-
factory?: HookFactory<H>;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export class HookMap<H> {
|
|
126
|
-
constructor(factory: HookFactory<H>, name?: string);
|
|
127
|
-
name: string | undefined;
|
|
128
|
-
get(key: any): H | undefined;
|
|
129
|
-
for(key: any): H;
|
|
130
|
-
intercept(interceptor: HookMapInterceptor<H>): void;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export class MultiHook<H> {
|
|
134
|
-
constructor(hooks: H[], name?: string);
|
|
135
|
-
name: string | undefined;
|
|
136
|
-
tap(options: string | Tap, fn?: Function): void;
|
|
137
|
-
tapAsync(options: string | Tap, fn?: Function): void;
|
|
138
|
-
tapPromise(options: string | Tap, fn?: Function): void;
|
|
139
|
-
}
|