@aplus-frontend/ui 6.37.0 → 6.38.0
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/index.mjs +224 -231
- package/es/src/ag-grid/components/row/index.vue.d.ts +6 -0
- package/es/src/ag-grid/components/row/index.vue.mjs +4 -0
- package/es/src/ag-grid/components/row/index.vue2.mjs +14 -0
- package/es/src/ag-grid/editable/form-item.vue.mjs +10 -9
- package/es/src/ag-grid/editable/index.vue.mjs +17 -16
- package/es/src/ag-grid/hooks/use-row-selection.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-row-selection.mjs +81 -68
- package/es/src/ag-grid/index.vue.d.ts +2 -1
- package/es/src/ag-grid/index.vue.mjs +256 -232
- package/es/src/ag-grid/interface.d.ts +40 -3
- package/es/src/ap-action/group/index.vue.mjs +24 -21
- package/es/src/ap-action/item/index.vue2.mjs +28 -20
- package/es/src/index.d.ts +0 -1
- package/es/src/index.mjs +280 -288
- package/es/src/path-map.mjs +0 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/components/row/index.vue.d.ts +6 -0
- package/lib/src/ag-grid/components/row/index.vue.js +1 -0
- package/lib/src/ag-grid/components/row/index.vue2.js +1 -0
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ag-grid/index.vue.d.ts +2 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +40 -3
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/index.d.ts +0 -1
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/theme/index.css +0 -3
- package/theme/index.less +0 -1
- package/es/src/work-order-modal/createWorkOrder.d.ts +0 -3
- package/es/src/work-order-modal/createWorkOrder.mjs +0 -32
- package/es/src/work-order-modal/help-message.vue.d.ts +0 -3
- package/es/src/work-order-modal/help-message.vue.mjs +0 -4
- package/es/src/work-order-modal/help-message.vue2.mjs +0 -36
- package/es/src/work-order-modal/index.d.ts +0 -4
- package/es/src/work-order-modal/index.mjs +0 -8
- package/es/src/work-order-modal/interfaces.d.ts +0 -31
- package/es/src/work-order-modal/interfaces.mjs +0 -9
- package/es/src/work-order-modal/style/css.d.ts +0 -0
- package/es/src/work-order-modal/style/css.js +0 -4
- package/es/src/work-order-modal/style/index.d.ts +0 -0
- package/es/src/work-order-modal/style/index.js +0 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +0 -846
- package/es/src/work-order-modal/work-order-modal.vue.mjs +0 -192
- package/es/src/work-order-modal/work-order-modal.vue2.mjs +0 -4
- package/lib/src/work-order-modal/createWorkOrder.d.ts +0 -3
- package/lib/src/work-order-modal/createWorkOrder.js +0 -1
- package/lib/src/work-order-modal/help-message.vue.d.ts +0 -3
- package/lib/src/work-order-modal/help-message.vue.js +0 -1
- package/lib/src/work-order-modal/help-message.vue2.js +0 -1
- package/lib/src/work-order-modal/index.d.ts +0 -4
- package/lib/src/work-order-modal/index.js +0 -1
- package/lib/src/work-order-modal/interfaces.d.ts +0 -31
- package/lib/src/work-order-modal/interfaces.js +0 -1
- package/lib/src/work-order-modal/style/css.cjs +0 -4
- package/lib/src/work-order-modal/style/css.d.ts +0 -0
- package/lib/src/work-order-modal/style/index.cjs +0 -4
- package/lib/src/work-order-modal/style/index.d.ts +0 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +0 -846
- package/lib/src/work-order-modal/work-order-modal.vue.js +0 -1
- package/lib/src/work-order-modal/work-order-modal.vue2.js +0 -1
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { defineComponent as T, ref as f, computed as B, createElementBlock as F, openBlock as M, createVNode as o, unref as e, mergeProps as L, withCtx as s, h as N } from "vue";
|
|
2
|
-
import { message as P, Modal as V, Input as q, Textarea as E } from "@aplus-frontend/antdv";
|
|
3
|
-
import { ApForm as n } from "../ap-form/index.mjs";
|
|
4
|
-
import "./help-message.vue.mjs";
|
|
5
|
-
import "../ap-upload/index.mjs";
|
|
6
|
-
import { langMap as I, DictCode as k } from "./interfaces.mjs";
|
|
7
|
-
import "../config-provider/index.mjs";
|
|
8
|
-
import "../hooks/index.mjs";
|
|
9
|
-
import { useLocale as y } from "../config-provider/hooks/use-locale.mjs";
|
|
10
|
-
import { useNamespace as A } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
-
import { useGlobalConfig as R } from "../config-provider/hooks/use-global-config.mjs";
|
|
12
|
-
import { useControllableValue as $ } from "../hooks/useControllableValue.mjs";
|
|
13
|
-
import z from "../ap-form/items/select/index.vue.mjs";
|
|
14
|
-
import D from "../ap-form/items/radio/index.vue.mjs";
|
|
15
|
-
import S from "../ap-upload/apUpload.vue.mjs";
|
|
16
|
-
import j from "./help-message.vue2.mjs";
|
|
17
|
-
const re = /* @__PURE__ */ T({
|
|
18
|
-
__name: "work-order-modal",
|
|
19
|
-
props: {
|
|
20
|
-
api: { type: Function },
|
|
21
|
-
getOssAccess: {},
|
|
22
|
-
initialValues: {},
|
|
23
|
-
disabledList: {},
|
|
24
|
-
successCallback: { type: Function },
|
|
25
|
-
prefixCls: {},
|
|
26
|
-
visible: { type: Boolean },
|
|
27
|
-
open: { type: Boolean },
|
|
28
|
-
confirmLoading: { type: Boolean },
|
|
29
|
-
title: {},
|
|
30
|
-
closable: { type: Boolean },
|
|
31
|
-
closeIcon: {},
|
|
32
|
-
onOk: { type: Function },
|
|
33
|
-
onCancel: { type: Function },
|
|
34
|
-
"onUpdate:visible": { type: Function },
|
|
35
|
-
"onUpdate:open": { type: Function },
|
|
36
|
-
onChange: { type: Function },
|
|
37
|
-
afterClose: { type: Function },
|
|
38
|
-
afterOpenChange: { type: Function },
|
|
39
|
-
centered: { type: Boolean },
|
|
40
|
-
width: {},
|
|
41
|
-
footer: {},
|
|
42
|
-
okText: {},
|
|
43
|
-
okType: {},
|
|
44
|
-
cancelText: {},
|
|
45
|
-
icon: {},
|
|
46
|
-
maskClosable: { type: Boolean },
|
|
47
|
-
forceRender: { type: Boolean },
|
|
48
|
-
okButtonProps: {},
|
|
49
|
-
cancelButtonProps: {},
|
|
50
|
-
destroyOnClose: { type: Boolean },
|
|
51
|
-
wrapClassName: {},
|
|
52
|
-
maskTransitionName: {},
|
|
53
|
-
transitionName: {},
|
|
54
|
-
getContainer: { type: [String, Boolean, Function] },
|
|
55
|
-
zIndex: {},
|
|
56
|
-
bodyStyle: {},
|
|
57
|
-
maskStyle: {},
|
|
58
|
-
mask: { type: Boolean },
|
|
59
|
-
keyboard: { type: Boolean },
|
|
60
|
-
wrapProps: {},
|
|
61
|
-
focusTriggerAfterClose: { type: Boolean },
|
|
62
|
-
modalRender: { type: Function },
|
|
63
|
-
mousePosition: {},
|
|
64
|
-
loading: { type: Boolean }
|
|
65
|
-
},
|
|
66
|
-
emits: ["update:open", "modalClose"],
|
|
67
|
-
setup(b, { emit: g }) {
|
|
68
|
-
const { t } = y(), { b: v } = A("work-order-modal"), i = g, c = f(), l = f(!1), a = b, w = R("api"), { lang: C } = y(), x = B(() => I[C.value] ?? "zh_CN"), { value: p, updateValue: h } = $(a, i, {
|
|
69
|
-
valuePropName: "open",
|
|
70
|
-
defaultValue: !0
|
|
71
|
-
}), d = async (r) => (await w.value?.select?.({
|
|
72
|
-
dictCode: r,
|
|
73
|
-
locale: x.value
|
|
74
|
-
}))?.map((u) => ({ label: u.itemText, value: u.itemValue })), O = async () => {
|
|
75
|
-
if (!l.value)
|
|
76
|
-
try {
|
|
77
|
-
l.value = !0;
|
|
78
|
-
const r = await c.value?.validateFields();
|
|
79
|
-
await a.api(r), l.value = !1, P.success("操作成功"), a.successCallback?.(), m();
|
|
80
|
-
} catch {
|
|
81
|
-
l.value = !1;
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
}, m = () => {
|
|
85
|
-
h(!1), p.value = !1, i("modalClose");
|
|
86
|
-
};
|
|
87
|
-
return (r, _) => (M(), F("div", null, [
|
|
88
|
-
o(e(V), L(a, {
|
|
89
|
-
width: 600,
|
|
90
|
-
centered: !0,
|
|
91
|
-
open: e(p),
|
|
92
|
-
title: e(t)("ap.workOrderModal.createTickets"),
|
|
93
|
-
"ok-text": e(t)("ap.workOrderModal.submit"),
|
|
94
|
-
"cancel-text": e(t)("ap.workOrderModal.cancel"),
|
|
95
|
-
mask: !0,
|
|
96
|
-
"mask-closable": !0,
|
|
97
|
-
"wrap-class-name": e(v)(),
|
|
98
|
-
closable: !0,
|
|
99
|
-
"confirm-loading": l.value,
|
|
100
|
-
onOk: O,
|
|
101
|
-
onCancel: m
|
|
102
|
-
}), {
|
|
103
|
-
default: s(() => [
|
|
104
|
-
o(e(n), {
|
|
105
|
-
ref_key: "formRef",
|
|
106
|
-
ref: c,
|
|
107
|
-
colon: "",
|
|
108
|
-
"initial-values": a.initialValues ?? {}
|
|
109
|
-
}, {
|
|
110
|
-
default: s(() => [
|
|
111
|
-
o(e(n).FormItem, {
|
|
112
|
-
label: e(t)("ap.workOrderModal.ticketsTitle"),
|
|
113
|
-
name: "ticketsTitle",
|
|
114
|
-
rules: [{ required: !0, message: e(t)("ap.workOrderModal.noEmpty") }]
|
|
115
|
-
}, {
|
|
116
|
-
default: s(() => [
|
|
117
|
-
o(e(q), {
|
|
118
|
-
placeholder: e(t)("ap.common.inputText"),
|
|
119
|
-
maxlength: 50,
|
|
120
|
-
"show-count": !0,
|
|
121
|
-
disabled: a.disabledList?.includes("ticketsTitle")
|
|
122
|
-
}, null, 8, ["placeholder", "disabled"])
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
}, 8, ["label", "rules"]),
|
|
126
|
-
o(e(z), {
|
|
127
|
-
label: e(t)("ap.workOrderModal.ticketsType"),
|
|
128
|
-
name: "ticketsType",
|
|
129
|
-
rules: [{ required: !0, message: e(t)("ap.workOrderModal.noEmpty") }],
|
|
130
|
-
field: {
|
|
131
|
-
placeholder: e(t)("ap.common.chooseText"),
|
|
132
|
-
request: () => d(e(k).TicketsType),
|
|
133
|
-
disabled: a.disabledList?.includes("ticketsType")
|
|
134
|
-
}
|
|
135
|
-
}, null, 8, ["label", "rules", "field"]),
|
|
136
|
-
o(e(n).FormItem, {
|
|
137
|
-
label: e(t)("ap.workOrderModal.ticketsDetail"),
|
|
138
|
-
name: "ticketsContent",
|
|
139
|
-
rules: [{ required: !0, message: e(t)("ap.workOrderModal.noEmpty") }]
|
|
140
|
-
}, {
|
|
141
|
-
default: s(() => [
|
|
142
|
-
o(e(E), {
|
|
143
|
-
placeholder: e(t)("ap.workOrderModal.pleaseEntry"),
|
|
144
|
-
maxlength: 300,
|
|
145
|
-
"show-count": !1,
|
|
146
|
-
disabled: a.disabledList?.includes("ticketsContent")
|
|
147
|
-
}, null, 8, ["placeholder", "disabled"])
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 8, ["label", "rules"]),
|
|
151
|
-
o(e(D), {
|
|
152
|
-
label: e(t)("ap.workOrderModal.ticketsLevel"),
|
|
153
|
-
name: "ticketsLevel",
|
|
154
|
-
rules: [{ required: !0, message: e(t)("ap.workOrderModal.noEmpty") }],
|
|
155
|
-
field: {
|
|
156
|
-
request: () => d(e(k).TicketsLevel),
|
|
157
|
-
disabled: a.disabledList?.includes("ticketsLevel")
|
|
158
|
-
}
|
|
159
|
-
}, null, 8, ["label", "rules", "field"]),
|
|
160
|
-
o(e(n).FormItem, {
|
|
161
|
-
name: "files",
|
|
162
|
-
label: e(t)("ap.workOrderModal.fileLabel")
|
|
163
|
-
}, {
|
|
164
|
-
default: s(() => [
|
|
165
|
-
o(e(S), {
|
|
166
|
-
"dir-name": "WorkOrder",
|
|
167
|
-
"get-oss-access": a.getOssAccess,
|
|
168
|
-
type: "multipleFile",
|
|
169
|
-
"need-name": {
|
|
170
|
-
pathKey: "filePath",
|
|
171
|
-
nameKey: "fileName"
|
|
172
|
-
},
|
|
173
|
-
accept: ".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",
|
|
174
|
-
"max-count": 10,
|
|
175
|
-
"max-size": 50,
|
|
176
|
-
"sub-title": N(j)
|
|
177
|
-
}, null, 8, ["get-oss-access", "sub-title"])
|
|
178
|
-
]),
|
|
179
|
-
_: 1
|
|
180
|
-
}, 8, ["label"])
|
|
181
|
-
]),
|
|
182
|
-
_: 1
|
|
183
|
-
}, 8, ["initial-values"])
|
|
184
|
-
]),
|
|
185
|
-
_: 1
|
|
186
|
-
}, 16, ["open", "title", "ok-text", "cancel-text", "wrap-class-name", "confirm-loading"])
|
|
187
|
-
]));
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
export {
|
|
191
|
-
re as default
|
|
192
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { GetOssAccess } from './interfaces';
|
|
2
|
-
import { Recordable } from '../type';
|
|
3
|
-
export declare function createWorkOrderModal(api: (args?: any) => Promise<any>, getOssAccess: GetOssAccess, initialValues?: Recordable, disabledList?: string[], successCallback?: () => void): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./work-order-modal.vue2.js");require("../config-provider/index.js");const o=require("../config-provider/config-provider.js"),s=require("./work-order-modal.vue.js");function m(t,n,d={},l=[],a=()=>{}){const i=document.getElementsByTagName("body")[0],r=document.createElement("div");i.appendChild(r);const u=e.defineComponent({render(){return e.createVNode(o.ConfigProvider,o.globalConfigCached.value,{default:()=>[e.createVNode(s.default,{api:t,getOssAccess:n,onModalClose:c,open:!0,initialValues:d,disabledList:l,successCallback:a},null)]})}});e.render(e.h(u),r);function c(){setTimeout(()=>{e.render(null,r),r.parentElement?.removeChild(r)},500)}}exports.createWorkOrderModal=m;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./help-message.vue2.js");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@ant-design/icons-vue"),r=require("@aplus-frontend/antdv");require("../config-provider/index.js");const n=require("../config-provider/hooks/use-locale.js"),i={class:"title"},s={class:"flex"},a={class:"flex"},d=e.defineComponent({__name:"help-message",setup(u){const{t:o}=n.useLocale();return(c,t)=>(e.openBlock(),e.createBlock(e.unref(r.Tooltip),{placement:"right"},{title:e.withCtx(()=>[e.createElementVNode("div",i,[e.createElementVNode("div",s,[t[0]||(t[0]=e.createElementVNode("div",null,"1.",-1)),e.createElementVNode("div",null,e.toDisplayString(e.unref(o)("ap.workOrderModal.fileSizeMax"))+":50MB",1)]),e.createElementVNode("div",a,[t[1]||(t[1]=e.createElementVNode("div",null,"2.",-1)),e.createElementVNode("div",null,e.toDisplayString(e.unref(o)("ap.workOrderModal.fileCountMax",{x:10})),1)])])]),default:e.withCtx(()=>[e.createVNode(e.unref(l.QuestionCircleOutlined),{style:{color:"#1890FF",fontSize:"16px",transform:"translateX(-6px)"}})]),_:1}))}});exports.default=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./work-order-modal.vue2.js");const e=require("./interfaces.js"),r=require("./createWorkOrder.js");exports.DictCode=e.DictCode;exports.langMap=e.langMap;exports.createWorkOrderModal=r.createWorkOrderModal;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { client } from '@aplus-frontend/oss';
|
|
2
|
-
import { ModalProps } from '@aplus-frontend/antdv';
|
|
3
|
-
import { Recordable } from '../type';
|
|
4
|
-
/**
|
|
5
|
-
* 表单项
|
|
6
|
-
*/
|
|
7
|
-
export interface WorkOrderInfo {
|
|
8
|
-
ticketsTitle: string;
|
|
9
|
-
ticketsType: string;
|
|
10
|
-
ticketsContent: string;
|
|
11
|
-
ticketsLevel: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 字典
|
|
15
|
-
*/
|
|
16
|
-
export declare enum DictCode {
|
|
17
|
-
TicketsStatus = "aplus_tickets_status",// 工单状态
|
|
18
|
-
TicketsType = "tickets_type",//工单类型
|
|
19
|
-
TicketsLevel = "tickets_level"
|
|
20
|
-
}
|
|
21
|
-
export type GetOssAccess = Parameters<typeof client.initOssClient>[0]['getOssAccess'];
|
|
22
|
-
export interface WorkOrderModalProps extends ModalProps {
|
|
23
|
-
api: (args?: any) => Promise<any>;
|
|
24
|
-
getOssAccess: GetOssAccess;
|
|
25
|
-
initialValues?: Recordable;
|
|
26
|
-
disabledList?: string[];
|
|
27
|
-
successCallback?: () => void;
|
|
28
|
-
}
|
|
29
|
-
type LocaleType = 'zh_CN' | 'en_US';
|
|
30
|
-
export declare const langMap: Record<string, LocaleType>;
|
|
31
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t=(e=>(e.TicketsStatus="aplus_tickets_status",e.TicketsType="tickets_type",e.TicketsLevel="tickets_level",e))(t||{});const s={"zh-cn":"zh_CN",en:"en_US"};exports.DictCode=t;exports.langMap=s;
|
|
File without changes
|
|
File without changes
|