cnhis-design-vue 3.1.42-beta.0 → 3.1.42-beta.10
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/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/src/type.d.ts +3 -0
- package/es/components/base-search/index.d.ts +0 -22
- package/es/components/base-search/src/index.vue.d.ts +0 -22
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/big-table/index.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/classification/src/index.vue.js +1 -1
- package/es/components/date-picker/index.d.ts +5 -13
- package/es/components/date-picker/src/DatePicker.vue.d.ts +5 -13
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- 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/field-set/index.d.ts +84 -15
- package/es/components/field-set/src/FieldSet.vue.d.ts +80 -29
- package/es/components/field-set/src/types/index.d.ts +18 -0
- package/es/components/field-set/src/types/index.js +1 -0
- package/es/components/form-config/index.d.ts +24 -24
- package/es/components/form-config/src/FormConfig.vue.d.ts +24 -24
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +12 -12
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -12
- package/es/components/form-render/index.d.ts +12 -12
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +12 -12
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +1 -1
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/iho-table/index.d.ts +1523 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +1523 -0
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +2 -1
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +5 -13
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +4 -10
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
- package/es/components/iho-table/src/utils/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +28 -28
- package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +12 -12
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +12 -12
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/table-filter/index.d.ts +0 -1
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -10
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +0 -74
- package/es/components/time-picker/index.d.ts +4 -10
- package/es/components/time-picker/src/TimePicker.vue.d.ts +4 -10
- package/es/components/time-picker/src/TimePicker.vue.js +1 -1
- package/es/shared/hooks/index.d.ts +3 -0
- package/es/shared/hooks/index.js +1 -0
- package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
- package/es/shared/hooks/useAsyncQueue.js +1 -0
- package/es/shared/hooks/useDateTime.d.ts +6 -0
- package/es/shared/hooks/useDateTime.js +1 -0
- package/package.json +2 -2
- package/es/components/base-search/src/directive/resize.d.ts +0 -4
- package/es/components/base-search/src/directive/resize.js +0 -1
- package/es/components/base-search/src/tool/resizeSensor.d.ts +0 -16
- package/es/components/base-search/src/tool/resizeSensor.js +0 -1
- package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
- package/es/components/table-filter/src/hooks/export.d.ts +0 -1
- package/es/components/table-filter/src/hooks/export.js +0 -1
- package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
- package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
- package/es/shared/mixins/index.d.ts +0 -1
- package/es/shared/mixins/index.js +0 -1
- package/es/shared/utils/colorLog.d.ts +0 -31
- package/es/shared/utils/colorLog.js +0 -1
- /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
- /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
|
@@ -113,19 +113,6 @@ export declare type ISaveType = {
|
|
|
113
113
|
setting: any;
|
|
114
114
|
conditionList: string;
|
|
115
115
|
};
|
|
116
|
-
export declare type ILabelItemListType = {
|
|
117
|
-
allowCreateByPersonal: number;
|
|
118
|
-
color: string;
|
|
119
|
-
isPublic: string;
|
|
120
|
-
isSelect: boolean;
|
|
121
|
-
labelId: string;
|
|
122
|
-
labelName: string;
|
|
123
|
-
parentColor: string;
|
|
124
|
-
parentId: string;
|
|
125
|
-
parentType: string;
|
|
126
|
-
typeId: string;
|
|
127
|
-
typeName: string;
|
|
128
|
-
};
|
|
129
116
|
export declare type IClassifyListType = {
|
|
130
117
|
displayCategory: string;
|
|
131
118
|
isDefault: boolean;
|
|
@@ -174,70 +161,9 @@ export declare type IConditionMapType = {
|
|
|
174
161
|
countTabCondition?: string;
|
|
175
162
|
settingId?: string;
|
|
176
163
|
};
|
|
177
|
-
export declare type IbtnType = {
|
|
178
|
-
buttonType: string;
|
|
179
|
-
color: string;
|
|
180
|
-
icon: string;
|
|
181
|
-
id: string;
|
|
182
|
-
isShow: number;
|
|
183
|
-
name: string;
|
|
184
|
-
setting: string;
|
|
185
|
-
settingList: string;
|
|
186
|
-
settingObj: IsettingObjType[];
|
|
187
|
-
showStyle: string;
|
|
188
|
-
sid: string;
|
|
189
|
-
tableId: string;
|
|
190
|
-
toggle: string;
|
|
191
|
-
type: string;
|
|
192
|
-
alias?: string;
|
|
193
|
-
buttonRemark?: string;
|
|
194
|
-
buttonGroup?: any;
|
|
195
|
-
canHandleUniline?: boolean;
|
|
196
|
-
chooseTwoData?: string;
|
|
197
|
-
createdTime?: string;
|
|
198
|
-
dataSource?: string;
|
|
199
|
-
isButtonGroup?: boolean;
|
|
200
|
-
isHide?: boolean;
|
|
201
|
-
isImportGuage?: boolean;
|
|
202
|
-
iconSetting?: string;
|
|
203
|
-
isShowFoldGroupBtn?: boolean;
|
|
204
|
-
isVisible?: boolean;
|
|
205
|
-
printType?: any;
|
|
206
|
-
quoteSetting?: string;
|
|
207
|
-
showStyleSetting?: string;
|
|
208
|
-
strategy?: string;
|
|
209
|
-
updatedTime?: string;
|
|
210
|
-
__printConfig?: any;
|
|
211
|
-
};
|
|
212
|
-
export declare type IsettingObjType = {
|
|
213
|
-
obj_id: string;
|
|
214
|
-
trigger_type: string;
|
|
215
|
-
isTips: string;
|
|
216
|
-
trigger_id?: string;
|
|
217
|
-
trigger_name?: string;
|
|
218
|
-
params?: IparamsType[];
|
|
219
|
-
editAllRow?: number;
|
|
220
|
-
tipsMsg?: any;
|
|
221
|
-
newTitle?: string;
|
|
222
|
-
display?: string;
|
|
223
|
-
importComponentId?: string;
|
|
224
|
-
importComponentName?: string;
|
|
225
|
-
prevStepSetting?: any;
|
|
226
|
-
linkShowType?: string;
|
|
227
|
-
conditionExpression?: string;
|
|
228
|
-
conditionParams?: any;
|
|
229
|
-
};
|
|
230
|
-
export declare type IparamsType = Record<'p_name' | 'p_value', string>;
|
|
231
164
|
export declare type IsettingsType = {
|
|
232
165
|
hideQuickSearch: number;
|
|
233
166
|
};
|
|
234
|
-
export declare type IeditTableWrapperItem = {
|
|
235
|
-
options?: IeditTableWrapperDetail;
|
|
236
|
-
};
|
|
237
|
-
export declare type IeditTableWrapperDetail = {
|
|
238
|
-
isButtonFolding?: boolean;
|
|
239
|
-
extendParams?: any;
|
|
240
|
-
};
|
|
241
167
|
export declare type ICheckboxType = Record<'label' | 'value', string>;
|
|
242
168
|
export declare type IApiServerType = {
|
|
243
169
|
name: string;
|
|
@@ -3,16 +3,10 @@ declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
3
3
|
attrs: {
|
|
4
4
|
[x: string]: unknown;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
timePickerRef: import("vue").Ref<null>;
|
|
8
|
-
__formattedValue: import("vue").Ref<any>;
|
|
9
|
-
keyupValue: import("vue").Ref<string>;
|
|
6
|
+
timePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
|
|
10
7
|
formatRef: import("vue").ComputedRef<string>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onKeyUp: (event: import("../../../es/shared/types").AnyObject) => any;
|
|
8
|
+
focus: () => any;
|
|
9
|
+
blur: () => any;
|
|
14
10
|
NTimePicker: any;
|
|
15
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
16
|
-
"onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
|
|
17
|
-
}, {}>>;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
18
12
|
export default TimePicker;
|
|
@@ -3,16 +3,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3
3
|
attrs: {
|
|
4
4
|
[x: string]: unknown;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
timePickerRef: import("vue").Ref<null>;
|
|
8
|
-
__formattedValue: import("vue").Ref<any>;
|
|
9
|
-
keyupValue: import("vue").Ref<string>;
|
|
6
|
+
timePickerRef: import("vue").Ref<AnyObject | null>;
|
|
10
7
|
formatRef: import("vue").ComputedRef<string>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onKeyUp: (event: AnyObject) => any;
|
|
8
|
+
focus: () => any;
|
|
9
|
+
blur: () => any;
|
|
14
10
|
NTimePicker: any;
|
|
15
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
16
|
-
"onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
|
|
17
|
-
}, {}>;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
18
12
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as
|
|
1
|
+
import{defineComponent as e,useAttrs as r,ref as o,computed as s,openBlock as t,createBlock as i,unref as m,mergeProps as u,createSlots as a,renderList as f,withCtx as l,renderSlot as p}from"vue";import{NTimePicker as n}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as _}from"../../../shared/hooks/useDateTime.js";import c from"../../../_virtual/plugin-vue_export-helper.js";var k=c(e({__name:"TimePicker",setup(e,{expose:c}){const k=r(),v=o(null),d=s((()=>k.format?k.format:"HH:mm:ss")),{focus:h,blur:x}=_(v,d);return c({$timePicker:v,focus:h,blur:x}),(e,r)=>(t(),i(m(n),u({ref_key:"timePickerRef",ref:v},e.$attrs),a({_:2},[f(e.$slots,((r,o)=>({name:o,fn:l((()=>[p(e.$slots,o)]))})))]),1040))}}),[["__file","TimePicker.vue"]]);export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{useTheme}from"./useTheme.js";export{useDateTime}from"./useDateTime.js";export{AsyncQueue}from"./useAsyncQueue.js";
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { AnyObject, UndefinedAble } from '../../../../../es/shared/types';
|
|
2
|
-
import { ComputedRef } from 'vue';
|
|
3
|
-
import { FormAsyncQueueItem } from '../types';
|
|
4
|
-
import { RequestInstance } from '../../../../../es/components/form-render';
|
|
5
|
-
declare type ProcessorOption = Partial<{
|
|
6
|
-
afterRequest(key: string, payload?: unknown): AnyObject[];
|
|
7
|
-
beforeRequest(key: string, params?: unknown): UndefinedAble<AnyObject> | void;
|
|
8
|
-
}>;
|
|
9
1
|
interface EntryCallback {
|
|
10
2
|
(err?: any, result?: any): void;
|
|
11
3
|
}
|
|
@@ -38,10 +30,4 @@ export declare class AsyncQueue<T = any, K = any, R = any> {
|
|
|
38
30
|
private _startProcess;
|
|
39
31
|
private _handlerResult;
|
|
40
32
|
}
|
|
41
|
-
export declare function useAsyncQueue(requestInstance: ComputedRef<UndefinedAble<RequestInstance>>): {
|
|
42
|
-
create: (parallelism?: number, option?: ProcessorOption) => AsyncQueue<FormAsyncQueueItem, any, {
|
|
43
|
-
label: string;
|
|
44
|
-
value: unknown;
|
|
45
|
-
}[]>;
|
|
46
|
-
};
|
|
47
33
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cloneDeep as s}from"lodash-es";class e{constructor(s,e,t){this.item=s,this.key=e,this.state=0,this.callback=t}}class t{constructor(s){this._list=s?Array.from(s):[]}enqueue(s){this._list.push(s)}dequeue(){return this._list.shift()}}class i{constructor({name:s,processor:e,getKey:i,parallelism:r}){this._queued=new t,this._entries=new Map,this._activeTasks=0,this._processingLock=!1,this._stopped=!1,this.name=s,this.processor=e,this.getKey=i,this.parallelism=r||100}add(t,i){if(this._stopped)return i(new Error("Queue was stopped"));const r=this.getKey(t);if(this._entries.has(r)){const e=this._entries.get(r);return void(1===e.state?setTimeout((()=>{i&&i(s(e.error),s(e.result))})):e.callbacks?e.callbacks.push(i):e.callbacks=[i])}const c=new e(t,r,i);this._entries.set(r,c),this._queued.enqueue(c),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}addAsync(s){return new Promise(((e,t)=>{this.add(s,((s,i)=>{s&&t(s),e(i)}))}))}_ensureProcessing(){for(;this._activeTasks<this.parallelism;){const s=this._queued.dequeue();if(!s)break;this._activeTasks++,s.state=0,this._startProcess(s)}this._processingLock=!1}_startProcess(s){this.processor(s.item,((e,t)=>{e?this._handlerResult(s,e):this._handlerResult(s,e,t)}),(()=>this._entries.delete(s.key)))}_handlerResult(e,t,i){const r=e.callback;e.state=1,e.callback=void 0,e.result=s(i),e.error=s(t),this._activeTasks--,r&&r(t,i),e.callbacks&&e.callbacks.forEach((s=>s(t,i))),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}}export{i as AsyncQueue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{computed as e,onMounted as t,onUnmounted as n}from"vue";import{useDebounceFn as l}from"@vueuse/core";function o(o,c){const u=l((e=>{!function(e){const t=e.target;if(["INPUT"].includes(t.tagName)){const{selectionStart:e=0,selectionEnd:n=0}=t;e===n&&t.select()}}(e)}),200),s=e((()=>{var e;return null==(e=o.value)?void 0:e.$el}));function r(e){const t=e.target;t.value&&Reflect.get(t,"_f_")&&(Reflect.set(t,"_f_",0),a(t,!0)&&(e.preventDefault(),e.stopPropagation()))}function i(e){const{key:t,target:n}=e;/\d/.test(t)&&n?Reflect.set(n,"_f_",1):"Enter"===t&&a(e.target,!1,!0)}function a(e,t,n){const l=e.value;if(!l)return;const o=e.selectionEnd||0,u=l.length;let s=0,r=0,i=0,a="",v=0;for(;s<u;){const e=l[s++];if(/\d/.test(e)&&(a+=e),s===o){i=a.length;const e=l.slice(s).match(/^\d+/);v=e?e[0].length:0}}const d=c.value;let f="",g=0,h=0;for(s=0;s<d.length&&(n||!(r>=a.length));){const e=d[s++];if(/[yMdHms]/.test(e)?f+=a[r++]||"0":f+=e,t&&r===i){i=-1,g=f.length,h=g;let e=d.slice(s).match(/^[yMdHms]+/);e?(v=Math.min(v,e[0].length),v&&(f+=a.slice(r,r+v),r+=v),s+=e[0].length):(e=d.slice(s).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(g+=e[1].length,h=g+e[2].length))}}const m=f!==l;if(m){e.value=f;const t=new InputEvent("input");e.dispatchEvent(t)}return t&&(g=g||f.length+1,h=h||f.length+1,e.setSelectionRange(g,h)),m}return t((()=>{s.value&&(s.value.addEventListener("input",r,!0),s.value.addEventListener("keydown",i,!0),s.value.addEventListener("click",u,!0))})),n((()=>{s.value&&(s.value.removeEventListener("input",r,!0),s.value.removeEventListener("keydown",i,!0),s.value.removeEventListener("click",u,!0))})),{focus:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.blur)?void 0:t.call(e)}}}export{o as useDateTime};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.42-beta.
|
|
3
|
+
"version": "3.1.42-beta.10",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "01f897687a1f9ee175e4ea36f02546e49ed40d5b"
|
|
65
65
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import o from"../tool/resizeSensor.js";import{useDebounceFn as e}from"@vueuse/core";const r={mounted(r,t){const s=t.value,m=e(s,10);new o(r,m)}};export{r as default};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Class for dimension change detection.
|
|
3
|
-
*
|
|
4
|
-
* @param {Element|Element[]} element
|
|
5
|
-
* @param {Function} callback
|
|
6
|
-
*
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
declare class ResizeSensor {
|
|
10
|
-
_isCollectionTyped: boolean;
|
|
11
|
-
_element: any;
|
|
12
|
-
constructor(element: any, callback: any);
|
|
13
|
-
static detach(element: any): void;
|
|
14
|
-
detach(): void;
|
|
15
|
-
}
|
|
16
|
-
export default ResizeSensor;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=window.requestAnimationFrame||function(e){return window.setTimeout(e,20)};class t{constructor(e){let t;this.q=[],this.add=function(e){this.q.push(e)},this.call=function(){for(t=0;t<this.q.length;t++)this.q[t].call(this,e)}}}function s(s,i){if(s.resizedAttached){if(s.resizedAttached)return void s.resizedAttached.add(i)}else s.resizedAttached=new t(s),s.resizedAttached.add(i);s.resizeSensor=document.createElement("div"),s.resizeSensor.className="resize-sensor";const o="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden; opacity: 0;direction: ltr;",n="position: absolute; left: 0; top: 0; transition: 0s;";s.resizeSensor.style.cssText=o,s.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+o+'"><div style="'+n+'"></div></div><div class="resize-sensor-shrink" style="'+o+'"><div style="'+n+' width: 200%; height: 200%"></div></div>',s.appendChild(s.resizeSensor),"static"==function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}(s,"position")&&(s.style.position="relative");const l=s.resizeSensor.childNodes[0],r=l.childNodes[0],d=s.resizeSensor.childNodes[1],c=function(){r.style.width="100000px",r.style.height="100000px",l.scrollLeft=1e5,l.scrollTop=1e5,d.scrollLeft=1e5,d.scrollTop=1e5};c();let h=!1;const a=function(){s.resizedAttached&&(h&&(s.resizedAttached.call(),h=!1),e(a))};let u,f,p,z;e(a);const y=function(){(p=s.offsetWidth)==u&&(z=s.offsetHeight)==f||(h=!0,u=p,f=z),c()},v=function(e,t,s){e.attachEvent?e.attachEvent("on"+t,s):e.addEventListener(t,s)};v(l,"scroll",y),v(d,"scroll",y)}class i{constructor(e,t){const i=Object.prototype.toString.call(e);if(this._isCollectionTyped="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i,this._element=e,this._isCollectionTyped)for(let i=0;i<e.length;i++)s(e[i],t);else s(e,t)}static detach(e){e.resizeSensor&&(e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached)}detach(){const e=this._isCollectionTyped,t=this._element;if(e)for(let e=0;e<t.length;e++)i.detach(t[e]);else i.detach(t)}}export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{uuidGenerator as s}from"../../../../shared/utils/index.js";import{cloneDeep as e,isFunction as t}from"lodash-es";import{unref as r}from"vue";import"../../index.js";import{useCommonLog as i}from"./useCommonLog.js";import{useFormRequest as o}from"./useFormRequest.js";class a{constructor(s,e,t){this.item=s,this.key=e,this.state=0,this.callback=t}}class c{constructor(s){this._list=s?Array.from(s):[]}enqueue(s){this._list.push(s)}dequeue(){return this._list.shift()}}class n{constructor({name:s,processor:e,getKey:t,parallelism:r}){this._queued=new c,this._entries=new Map,this._activeTasks=0,this._processingLock=!1,this._stopped=!1,this.name=s,this.processor=e,this.getKey=t,this.parallelism=r||100}add(s,t){if(this._stopped)return t(new Error("Queue was stopped"));const r=this.getKey(s);if(this._entries.has(r)){const s=this._entries.get(r);return void(1===s.state?setTimeout((()=>{t&&t(e(s.error),e(s.result))})):s.callbacks?s.callbacks.push(t):s.callbacks=[t])}const i=new a(s,r,t);this._entries.set(r,i),this._queued.enqueue(i),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}addAsync(s){return new Promise(((e,t)=>{this.add(s,((s,r)=>{s&&t(s),e(r)}))}))}_ensureProcessing(){for(;this._activeTasks<this.parallelism;){const s=this._queued.dequeue();if(!s)break;this._activeTasks++,s.state=0,this._startProcess(s)}this._processingLock=!1}_startProcess(s){this.processor(s.item,((e,t)=>{e?this._handlerResult(s,e):this._handlerResult(s,e,t)}),(()=>this._entries.delete(s.key)))}_handlerResult(s,t,r){const i=s.callback;s.state=1,s.callback=void 0,s.result=e(r),s.error=e(t),this._activeTasks--,i&&i(t,r),s.callbacks&&s.callbacks.forEach((s=>s(t,r))),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}}function h(e){const{getHttpInstance:a}=o();return{create:function(o=3,c){return new n({name:"FormRenderAsyncQueue",parallelism:o,async processor({key:s,method:o="post",cache:n,params:h,url:l},u,p){var m,d;const _=null!=(m=r(e))?m:a();if(!_)return i().invalidHttpInstanceLog(),u(),void p();try{c&&t(c.beforeRequest)&&(h=null!=(d=c.beforeRequest(s,h))?d:{});let e=await _[o](l,h);c&&t(c.afterRequest)&&(e=c.afterRequest(s,e)),u(void 0,Array.isArray(e)?e:[]),!n&&p()}catch(s){u(new Error(`Request error => ${s}`)),p()}},getKey:({url:e,method:t="post",cache:r,params:i})=>r?e+t+JSON.stringify(i||{}):s()})}}}export{n as AsyncQueue,h as useAsyncQueue};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useAdvanced';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./useAdvanced.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getWidgetTypeInSql: (fieldType: string, mappingConfig?: any) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{WidgetTypeEnums as e,FieldTypeEnums as t}from"../types/enums.js";const r=(r,E={mappingMethod:null,mapping:[]})=>{switch(r){case t.NUMBER:return E.mappingMethod?e.SELECT:e.INPUT_NUMBER;case t.TEXT:return E.mappingMethod?e.SELECT:e.INPUT;case t.DATE_TIME:return e.DATE_TIME;case t.DATE:return e.DATE;default:return e.INPUT}};export{r as getWidgetTypeInSql};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useTheme';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{useTheme}from"./useTheme.js";
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare enum LogsType {
|
|
2
|
-
DEFAULT = "default",
|
|
3
|
-
PRIMARY = "primary",
|
|
4
|
-
SUCCESS = "success",
|
|
5
|
-
WARNING = "warning",
|
|
6
|
-
DANGER = "danger"
|
|
7
|
-
}
|
|
8
|
-
declare class Log {
|
|
9
|
-
/**
|
|
10
|
-
* @description 打印一个 [ title | text ] 样式的信息
|
|
11
|
-
* @param {String} title title text
|
|
12
|
-
* @param {String} info info text
|
|
13
|
-
* @param {String} type style
|
|
14
|
-
* @param {any[]} appendInfo
|
|
15
|
-
*/
|
|
16
|
-
capsule(title: string, info: any, type?: LogsType, ...appendInfo: any[]): void;
|
|
17
|
-
/**
|
|
18
|
-
* @description 打印彩色文字
|
|
19
|
-
*/
|
|
20
|
-
colorful(textArr: {
|
|
21
|
-
text: any;
|
|
22
|
-
type: LogsType;
|
|
23
|
-
}[]): void;
|
|
24
|
-
text(text: any): void;
|
|
25
|
-
primary(text: any): void;
|
|
26
|
-
success(text: any): void;
|
|
27
|
-
warning(text: any): void;
|
|
28
|
-
danger(text: any): void;
|
|
29
|
-
}
|
|
30
|
-
declare const log: Log;
|
|
31
|
-
export default log;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=(r=>(r.DEFAULT="default",r.PRIMARY="primary",r.SUCCESS="success",r.WARNING="warning",r.DANGER="danger",r))(r||{});function t(r="primary"){return{default:"#f5f5f5",primary:"#409EFF",success:"#67C23A",warning:"#E6A23C",danger:"#F56C6C"}[r]}const e=new class{capsule(r,e,a="primary",...o){console.log(`%c ${r} %c ${e} %c`,"background:#35495E; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;",`background:${t(a)}; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;`,"background:transparent",...o)}colorful(r){console.log(`%c${r.map((r=>r.text||"")).join("%c")}`,...r.map((r=>`color: ${t(r.type)};`)))}text(r){this.colorful([{text:r,type:"default"}])}primary(r){this.colorful([{text:r,type:"primary"}])}success(r){this.colorful([{text:r,type:"success"}])}warning(r){this.colorful([{text:r,type:"warning"}])}danger(r){this.colorful([{text:r,type:"danger"}])}};export{r as LogsType,e as default};
|
|
File without changes
|
|
File without changes
|