@jnrs/lingshu-smart 2.2.4 → 2.2.6
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 +4 -4
- package/dist/assets/data/editor_default.d.ts +9 -0
- package/dist/assets/data/editor_preset.d.ts +2 -0
- package/dist/components/editor/ControlBar/{CaseMangerButton.vue.d.ts → CaseManger.vue.d.ts} +3 -6
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +26 -26
- package/dist/components/editor/ControlBar/MainButton.vue.d.ts +3 -6
- package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +3 -2
- package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +2 -0
- package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +2 -0
- package/dist/components/editor/index.vue.d.ts +5 -5
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +9852 -8884
- package/dist/components/preview/index.vue.d.ts +37 -0
- package/dist/composables/useStepRecord.d.ts +17 -3
- package/dist/constants/options.d.ts +2 -2
- package/dist/{core/ViewContainer.d.ts → controller/AppController.d.ts} +10 -6
- package/dist/{core/EditorManager.d.ts → controller/EditorController.d.ts} +8 -7
- package/dist/index.d.ts +1 -1
- package/dist/json/cases.json +219 -0
- package/dist/playground/ViewPageDemo.vue.d.ts +28 -0
- package/dist/stores/index.d.ts +3 -1
- package/dist/stores/useAppStore.d.ts +20 -0
- package/dist/stores/useDataStore.d.ts +29 -0
- package/dist/stores/useEditorStore.d.ts +15 -14295
- package/dist/types/app.types.d.ts +57 -0
- package/dist/types/base.types.d.ts +38 -0
- package/dist/types/components/config.types.d.ts +68 -0
- package/dist/types/components/operating.types.d.ts +40 -0
- package/dist/types/enums.d.ts +34 -0
- package/dist/types/guards.d.ts +2 -0
- package/dist/types/index.d.ts +15 -84
- package/dist/types/models/config.types.d.ts +45 -0
- package/dist/types/models/operating.types.d.ts +34 -0
- package/dist/ui/abstract/ComponentAbs.d.ts +18 -0
- package/dist/ui/abstract/ModelAbs.d.ts +24 -0
- package/dist/ui/components/Entrance.d.ts +50 -0
- package/dist/ui/components/Light.d.ts +6 -21
- package/dist/ui/components/Progress.d.ts +6 -22
- package/dist/ui/components/Resource.d.ts +6 -24
- package/dist/ui/components/StationSlot.d.ts +25 -31
- package/dist/ui/components/StationSlotGroup.d.ts +23 -0
- package/dist/ui/factories/createGlass.d.ts +12 -0
- package/dist/ui/factories/createModel.d.ts +3 -0
- package/dist/ui/factories/createShadow.d.ts +9 -0
- package/dist/ui/factories/createText.d.ts +20 -0
- package/dist/ui/models/MachineTool.d.ts +13 -8
- package/dist/ui/utils/attr.d.ts +9 -0
- package/dist/utils/index.d.ts +14 -18
- package/package.json +3 -3
- package/dist/assets/json/menu.json.d.ts +0 -187
- package/dist/json/case.json +0 -70
- package/dist/types/components.d.ts +0 -8
- package/dist/types/model.d.ts +0 -9
- package/dist/ui/models/BaseModel.d.ts +0 -32
- package/dist/ui/models/ModelsFactory.d.ts +0 -5
- package/dist/ui/shapes/Glass.d.ts +0 -12
- /package/dist/{playground/ViewPage.vue.d.ts → components/editor/OptionCard/Equipment/DataSets.vue.d.ts} +0 -0
- /package/dist/playground/{EditPage.vue.d.ts → EditPageDemo.vue.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -26,10 +26,10 @@ Vue 组件
|
|
|
26
26
|
|
|
27
27
|
| 属性名 | 描述 | 类型 | 默认值 |
|
|
28
28
|
|--------|------|------|--------|
|
|
29
|
-
| actions | 事件处理 | `
|
|
29
|
+
| actions | 事件处理 | `EditorActions` | {} |
|
|
30
30
|
|
|
31
31
|
```
|
|
32
|
-
interface
|
|
32
|
+
interface EditorActions {
|
|
33
33
|
/**
|
|
34
34
|
* 加载案例列表
|
|
35
35
|
* @returns Promise<ICase[]>
|
|
@@ -44,11 +44,11 @@ interface CaseActions {
|
|
|
44
44
|
/**
|
|
45
45
|
* 跳转到预览页面
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
handlePreview?: (currentCase?: ICase) => void
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* 退出当前页面
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
handleExit?: () => void
|
|
53
53
|
}
|
|
54
54
|
```
|
|
@@ -2,19 +2,16 @@ import { ICase } from '../../../types';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/**
|
|
4
4
|
* 加载方案列表
|
|
5
|
-
* @param
|
|
5
|
+
* @param uuid
|
|
6
6
|
* @returns Promise<ICase[]>
|
|
7
7
|
*/
|
|
8
|
-
loadCases?: (
|
|
8
|
+
loadCases?: (uuid?: string) => Promise<ICase[]>;
|
|
9
9
|
/**
|
|
10
10
|
* 保存方案列表
|
|
11
11
|
*/
|
|
12
12
|
saveCases?: (cases?: ICase[]) => void;
|
|
13
13
|
};
|
|
14
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
-
loadCases: (id?: string) => Promise<ICase[]>;
|
|
16
|
-
saveCases: (cases?: ICase[]) => void;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
15
|
exportImportDialogRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
19
16
|
showVisible: () => void;
|
|
20
17
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -24,15 +24,15 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
24
24
|
readonly modelModifiers: import('element-plus').InputModelModifiers;
|
|
25
25
|
readonly wordLimitPosition: "inside" | "outside";
|
|
26
26
|
readonly rows: number;
|
|
27
|
-
readonly id?: string | undefined;
|
|
28
27
|
readonly name?: string | undefined;
|
|
29
28
|
readonly disabled?: boolean | undefined;
|
|
30
|
-
readonly
|
|
29
|
+
readonly id?: string | undefined;
|
|
31
30
|
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
32
31
|
readonly form?: string | undefined;
|
|
32
|
+
readonly placeholder?: string | undefined;
|
|
33
33
|
readonly readonly?: boolean | undefined;
|
|
34
34
|
readonly ariaLabel?: string | undefined;
|
|
35
|
-
readonly inputmode?: "
|
|
35
|
+
readonly inputmode?: "search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
|
36
36
|
readonly clearable?: boolean | undefined;
|
|
37
37
|
readonly clearIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
|
|
38
38
|
readonly suffixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
|
|
@@ -59,7 +59,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
59
59
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
60
60
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
61
61
|
onClear?: (() => any) | undefined | undefined;
|
|
62
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "
|
|
62
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "type" | "modelValue" | "validateEvent" | "autocomplete" | "clearIcon" | "tabindex" | "inputStyle" | "modelModifiers" | "wordLimitPosition" | "rows">;
|
|
63
63
|
$attrs: {
|
|
64
64
|
[x: string]: unknown;
|
|
65
65
|
};
|
|
@@ -72,16 +72,9 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
72
72
|
$root: import('vue').ComponentPublicInstance | null;
|
|
73
73
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
74
74
|
$host: Element | null;
|
|
75
|
-
$emit: ((event: "blur", evt: FocusEvent) => void) & ((event: "
|
|
75
|
+
$emit: ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
76
76
|
$el: any;
|
|
77
77
|
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
78
|
-
type: {
|
|
79
|
-
type: import('vue').PropType<import('element-plus').InputType>;
|
|
80
|
-
default: import('element-plus').InputType;
|
|
81
|
-
};
|
|
82
|
-
id: {
|
|
83
|
-
type: import('vue').PropType<string>;
|
|
84
|
-
};
|
|
85
78
|
name: {
|
|
86
79
|
type: import('vue').PropType<string>;
|
|
87
80
|
};
|
|
@@ -89,15 +82,22 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
89
82
|
type: import('vue').PropType<boolean>;
|
|
90
83
|
default: undefined;
|
|
91
84
|
};
|
|
92
|
-
|
|
85
|
+
type: {
|
|
86
|
+
type: import('vue').PropType<import('element-plus').InputType>;
|
|
87
|
+
default: import('element-plus').InputType;
|
|
88
|
+
};
|
|
89
|
+
id: {
|
|
93
90
|
type: import('vue').PropType<string>;
|
|
94
91
|
};
|
|
95
92
|
size: {
|
|
96
|
-
type: import('vue').PropType<"" | "
|
|
93
|
+
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
|
97
94
|
};
|
|
98
95
|
form: {
|
|
99
96
|
type: import('vue').PropType<string>;
|
|
100
97
|
};
|
|
98
|
+
placeholder: {
|
|
99
|
+
type: import('vue').PropType<string>;
|
|
100
|
+
};
|
|
101
101
|
modelValue: {
|
|
102
102
|
type: import('vue').PropType<string | number | null>;
|
|
103
103
|
default: "";
|
|
@@ -113,7 +113,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
113
113
|
type: import('vue').PropType<string>;
|
|
114
114
|
};
|
|
115
115
|
inputmode: {
|
|
116
|
-
type: import('vue').PropType<"
|
|
116
|
+
type: import('vue').PropType<"search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal">;
|
|
117
117
|
};
|
|
118
118
|
autocomplete: {
|
|
119
119
|
type: import('vue').PropType<string>;
|
|
@@ -265,13 +265,6 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
265
265
|
inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
266
266
|
rows: number;
|
|
267
267
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
268
|
-
type: {
|
|
269
|
-
type: import('vue').PropType<import('element-plus').InputType>;
|
|
270
|
-
default: import('element-plus').InputType;
|
|
271
|
-
};
|
|
272
|
-
id: {
|
|
273
|
-
type: import('vue').PropType<string>;
|
|
274
|
-
};
|
|
275
268
|
name: {
|
|
276
269
|
type: import('vue').PropType<string>;
|
|
277
270
|
};
|
|
@@ -279,15 +272,22 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
279
272
|
type: import('vue').PropType<boolean>;
|
|
280
273
|
default: undefined;
|
|
281
274
|
};
|
|
282
|
-
|
|
275
|
+
type: {
|
|
276
|
+
type: import('vue').PropType<import('element-plus').InputType>;
|
|
277
|
+
default: import('element-plus').InputType;
|
|
278
|
+
};
|
|
279
|
+
id: {
|
|
283
280
|
type: import('vue').PropType<string>;
|
|
284
281
|
};
|
|
285
282
|
size: {
|
|
286
|
-
type: import('vue').PropType<"" | "
|
|
283
|
+
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
|
287
284
|
};
|
|
288
285
|
form: {
|
|
289
286
|
type: import('vue').PropType<string>;
|
|
290
287
|
};
|
|
288
|
+
placeholder: {
|
|
289
|
+
type: import('vue').PropType<string>;
|
|
290
|
+
};
|
|
291
291
|
modelValue: {
|
|
292
292
|
type: import('vue').PropType<string | number | null>;
|
|
293
293
|
default: "";
|
|
@@ -303,7 +303,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
303
303
|
type: import('vue').PropType<string>;
|
|
304
304
|
};
|
|
305
305
|
inputmode: {
|
|
306
|
-
type: import('vue').PropType<"
|
|
306
|
+
type: import('vue').PropType<"search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal">;
|
|
307
307
|
};
|
|
308
308
|
autocomplete: {
|
|
309
309
|
type: import('vue').PropType<string>;
|
|
@@ -385,7 +385,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
385
385
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
386
386
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
387
387
|
onClear?: (() => any) | undefined;
|
|
388
|
-
}, "
|
|
388
|
+
}, "disabled" | "type" | "blur" | "clear" | "input" | "select" | "textarea" | "ref" | "modelValue" | "validateEvent" | "focus" | "autocomplete" | "clearIcon" | "tabindex" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
|
389
389
|
input: import('vue').ShallowRef<HTMLInputElement | undefined>;
|
|
390
390
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
|
|
391
391
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -4,14 +4,11 @@ type __VLS_Props = {
|
|
|
4
4
|
* 跳转到预览页面
|
|
5
5
|
* @param currentCase
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
handlePreview?: (currentCase?: ICase) => void;
|
|
8
8
|
/**
|
|
9
9
|
* 退出当前页面
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
handleExit?: () => void;
|
|
12
12
|
};
|
|
13
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
-
goPreview: (currentCase?: ICase) => void;
|
|
15
|
-
goExit: () => void;
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
14
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
|
|
1
|
+
export interface Props {
|
|
2
|
+
operationRecordLength: number;
|
|
3
3
|
operationMaxRecord: number;
|
|
4
4
|
currentIndex: number;
|
|
5
5
|
canUndo: boolean;
|
|
6
6
|
canRedo: boolean;
|
|
7
|
+
jumpToStep: (step: number) => void;
|
|
7
8
|
}
|
|
8
9
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
10
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ICase } from '../../types';
|
|
2
|
-
interface
|
|
2
|
+
interface EditorActions {
|
|
3
3
|
/**
|
|
4
4
|
* 加载案例列表
|
|
5
5
|
* @returns Promise<ICase[]>
|
|
@@ -12,17 +12,17 @@ interface CaseActions {
|
|
|
12
12
|
/**
|
|
13
13
|
* 跳转到预览页面
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
handlePreview?: (currentCase?: ICase) => void;
|
|
16
16
|
/**
|
|
17
17
|
* 退出当前页面
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
handleExit?: () => void;
|
|
20
20
|
}
|
|
21
21
|
type __VLS_Props = {
|
|
22
|
-
actions?:
|
|
22
|
+
actions?: EditorActions;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
|
-
actions:
|
|
25
|
+
actions: EditorActions;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
27
|
visualRef: HTMLDivElement;
|
|
28
28
|
drawingBoardRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLCanvasElement, import('vue').ComponentProvideOptions, {
|