@aplus-frontend/ui 0.0.3 → 0.0.4

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.
Files changed (33) hide show
  1. package/es/src/ap-table/ap-table.vue.mjs +77 -81
  2. package/es/src/ap-table/components/interface.d.ts +12 -0
  3. package/es/src/ap-table/components/status/index.vue.d.ts +14 -0
  4. package/es/src/ap-table/components/status/index.vue.mjs +4 -0
  5. package/es/src/ap-table/components/status/index.vue2.mjs +17 -0
  6. package/es/src/ap-table/constants.d.ts +20 -25
  7. package/es/src/ap-table/constants.mjs +19 -16
  8. package/es/src/ap-table/interface.d.ts +16 -3
  9. package/es/src/ap-table/utils.d.ts +174 -1
  10. package/es/src/ap-table/utils.mjs +75 -48
  11. package/es/src/theme/antd-global-overwrite/admin/index.css +69 -29
  12. package/es/src/theme/antd-global-overwrite/admin/pagination.css +30 -14
  13. package/es/src/theme/antd-global-overwrite/admin/steps.css +39 -15
  14. package/es/src/theme/antd-global-overwrite/aplus/index.css +75 -33
  15. package/es/src/theme/antd-global-overwrite/aplus/pagination.css +38 -18
  16. package/es/src/theme/antd-global-overwrite/aplus/steps.css +37 -15
  17. package/lib/src/ap-table/ap-table.vue.js +1 -1
  18. package/lib/src/ap-table/components/interface.d.ts +12 -0
  19. package/lib/src/ap-table/components/status/index.vue.d.ts +14 -0
  20. package/lib/src/ap-table/components/status/index.vue.js +1 -0
  21. package/lib/src/ap-table/components/status/index.vue2.js +1 -0
  22. package/lib/src/ap-table/constants.d.ts +20 -25
  23. package/lib/src/ap-table/constants.js +1 -1
  24. package/lib/src/ap-table/interface.d.ts +16 -3
  25. package/lib/src/ap-table/utils.d.ts +174 -1
  26. package/lib/src/ap-table/utils.js +1 -1
  27. package/lib/src/theme/antd-global-overwrite/admin/index.css +69 -29
  28. package/lib/src/theme/antd-global-overwrite/admin/pagination.css +30 -14
  29. package/lib/src/theme/antd-global-overwrite/admin/steps.css +39 -15
  30. package/lib/src/theme/antd-global-overwrite/aplus/index.css +75 -33
  31. package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +38 -18
  32. package/lib/src/theme/antd-global-overwrite/aplus/steps.css +37 -15
  33. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ApTableValueFields } from './interface';
1
+ import { ApTableValueFields, ValueEnum } from './interface';
2
2
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, DefineComponent, PublicProps, VNode, RendererNode, RendererElement, CSSProperties, ComputedRef } from 'vue';
3
3
  import { ColSize } from 'ant-design-vue/es/grid';
4
4
  import { ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextProps, ApFieldTextAreaProps, ApFieldCheckboxProps, FieldMode } from '../ap-field';
@@ -2482,9 +2482,6 @@ export declare const apTableFormItemMap: {
2482
2482
  addonAfter?: any;
2483
2483
  prefix?: any;
2484
2484
  default?: any;
2485
- /**
2486
- * 表格到查询表单的映射
2487
- */
2488
2485
  upIcon?: any;
2489
2486
  downIcon?: any;
2490
2487
  }> & {
@@ -2492,9 +2489,6 @@ export declare const apTableFormItemMap: {
2492
2489
  addonAfter?: any;
2493
2490
  prefix?: any;
2494
2491
  default?: any;
2495
- /**
2496
- * 表格到查询表单的映射
2497
- */
2498
2492
  upIcon?: any;
2499
2493
  downIcon?: any;
2500
2494
  };
@@ -5305,17 +5299,13 @@ export declare const apTableFormItemMap: {
5305
5299
  validateFirst: boolean;
5306
5300
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
5307
5301
  $slots: Readonly<{
5308
- addonAfter: any; /**
5309
- * 表格到查询表单的映射
5310
- */
5302
+ addonAfter: any;
5311
5303
  addonBefore: any;
5312
5304
  prefix: any;
5313
5305
  suffix: any;
5314
5306
  clearIcon: any;
5315
5307
  }> & {
5316
- addonAfter: any; /**
5317
- * 表格到查询表单的映射
5318
- */
5308
+ addonAfter: any;
5319
5309
  addonBefore: any;
5320
5310
  prefix: any;
5321
5311
  suffix: any;
@@ -9820,9 +9810,6 @@ export declare const apTableRenderItemMap: {
9820
9810
  default: any;
9821
9811
  type: PropType<any>;
9822
9812
  };
9823
- /**
9824
- * 表格自定义渲染
9825
- */
9826
9813
  icon: {
9827
9814
  default: any;
9828
9815
  type: PropType<any>;
@@ -10193,9 +10180,6 @@ export declare const apTableRenderItemMap: {
10193
10180
  default: any;
10194
10181
  type: PropType<any>;
10195
10182
  };
10196
- /**
10197
- * 表格自定义渲染
10198
- */
10199
10183
  icon: {
10200
10184
  default: any;
10201
10185
  type: PropType<any>;
@@ -10577,9 +10561,6 @@ export declare const apTableRenderItemMap: {
10577
10561
  default: any;
10578
10562
  type: PropType<any>;
10579
10563
  };
10580
- /**
10581
- * 表格自定义渲染
10582
- */
10583
10564
  icon: {
10584
10565
  default: any;
10585
10566
  type: PropType<any>;
@@ -10958,9 +10939,6 @@ export declare const apTableRenderItemMap: {
10958
10939
  default: any;
10959
10940
  type: PropType<any>;
10960
10941
  };
10961
- /**
10962
- * 表格自定义渲染
10963
- */
10964
10942
  icon: {
10965
10943
  default: any;
10966
10944
  type: PropType<any>;
@@ -12333,6 +12311,23 @@ export declare const apTableRenderItemMap: {
12333
12311
  }>>, {
12334
12312
  bordered: boolean;
12335
12313
  }, {}>;
12314
+ status: DefineComponent<{
12315
+ valueEnum: {
12316
+ type: PropType<ValueEnum>;
12317
+ required: true;
12318
+ };
12319
+ value: {
12320
+ type: PropType<any>;
12321
+ };
12322
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
12323
+ valueEnum: {
12324
+ type: PropType<ValueEnum>;
12325
+ required: true;
12326
+ };
12327
+ value: {
12328
+ type: PropType<any>;
12329
+ };
12330
+ }>>, {}, {}>;
12336
12331
  };
12337
12332
  /**
12338
12333
  * 不需要渲染到Form表单的valueType字段
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../ap-action/index.js");require("../ap-field/index.js");require("../ap-form/index.js");require("./components/index/index.vue.js");const e=require("../ap-form/items/date/index.vue.js"),t=require("../ap-form/items/date-range/index.vue.js"),_=require("../ap-form/items/number/index.vue.js"),u=require("../ap-form/items/radio/index.vue.js"),r=require("../ap-form/items/select/index.vue.js"),n=require("../ap-form/items/switch/index.vue.js"),i=require("../ap-form/items/text/index.vue.js"),s=require("../ap-form/items/text-area/index.vue.js"),a=require("../ap-form/items/checkbox/index.vue.js"),p=require("../ap-field/date/index.vue.js"),c=require("../ap-field/date-range/index.vue.js"),d=require("../ap-field/number/index.vue.js"),l=require("../ap-field/radio/index.vue.js"),v=require("../ap-field/select/index.vue.js"),o=require("../ap-field/switch/index.vue.js"),x=require("../ap-field/text/index.vue.js"),g=require("../ap-field/text-area/index.vue.js"),q=require("../ap-field/checkbox/index.vue.js"),f=require("../ap-action/group/index.vue.js"),y=require("./components/index/index.vue2.js"),$={date:e.default,dateRange:t.default,number:_.default,radio:u.default,select:r.default,switch:n.default,text:i.default,textArea:s.default,checkbox:a.default},m={date:p.default,dateRange:c.default,number:d.default,radio:l.default,select:v.default,switch:o.default,text:x.default,textArea:g.default,checkbox:q.default,action:f.default,index:y.default},b=["action","index"];exports.apTableFormItemMap=$;exports.apTableRenderItemMap=m;exports.noRenderAsFormItemValueList=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../ap-action/index.js");require("../ap-field/index.js");require("../ap-form/index.js");require("./components/index/index.vue.js");require("./components/status/index.vue.js");const e=require("../ap-form/items/date/index.vue.js"),t=require("../ap-form/items/date-range/index.vue.js"),_=require("../ap-form/items/number/index.vue.js"),u=require("../ap-form/items/radio/index.vue.js"),r=require("../ap-form/items/select/index.vue.js"),i=require("../ap-form/items/switch/index.vue.js"),n=require("../ap-form/items/text/index.vue.js"),s=require("../ap-form/items/text-area/index.vue.js"),a=require("../ap-form/items/checkbox/index.vue.js"),p=require("../ap-field/date/index.vue.js"),c=require("../ap-field/date-range/index.vue.js"),d=require("../ap-field/number/index.vue.js"),l=require("../ap-field/radio/index.vue.js"),v=require("../ap-field/select/index.vue.js"),o=require("../ap-field/switch/index.vue.js"),x=require("../ap-field/text/index.vue.js"),g=require("../ap-field/text-area/index.vue.js"),q=require("../ap-field/checkbox/index.vue.js"),f=require("../ap-action/group/index.vue.js"),y=require("./components/index/index.vue2.js"),$=require("./components/status/index.vue2.js"),m={date:e.default,dateRange:t.default,number:_.default,radio:u.default,select:r.default,switch:i.default,text:n.default,textArea:s.default,checkbox:a.default},b={date:p.default,dateRange:c.default,number:d.default,radio:l.default,select:v.default,switch:o.default,text:x.default,textArea:g.default,checkbox:q.default,action:f.default,index:y.default,status:$.default},I=["action","index"];exports.apTableFormItemMap=m;exports.apTableRenderItemMap=b;exports.noRenderAsFormItemValueList=I;
@@ -1,7 +1,7 @@
1
1
  import { ColumnType, TableProps } from 'ant-design-vue/es/table';
2
2
  import { CompareFn, SortOrder } from 'ant-design-vue/es/table/interface';
3
3
  import { ApFormSearchFormProps } from '../ap-form';
4
- import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextProps } from 'src/ap-form/items/interface';
4
+ import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextProps } from '../ap-form/items/interface';
5
5
  import { Recordable } from '../type';
6
6
  import { CSSProperties } from 'vue';
7
7
  import { ApActionGroupProps } from '../ap-action';
@@ -9,7 +9,13 @@ import { ApTableIndexProps } from './components/interface';
9
9
 
10
10
  export type ValueEnumType = {
11
11
  text: string;
12
- status?: string;
12
+ /**
13
+ * 当前枚举值与定义的状态,等同于Badge的status
14
+ */
15
+ status?: 'success' | 'error' | 'processing' | 'warning' | 'default';
16
+ /**
17
+ * 如果status预定义的颜色无法满足需求,你可以自定义徽标的颜色,注意`color`比`status`的优先级更高
18
+ */
13
19
  color?: string;
14
20
  disabled?: boolean;
15
21
  };
@@ -45,7 +51,7 @@ export type ApTableValueFields = {
45
51
  index: ApTableIndexProps;
46
52
  };
47
53
  export type ValueEnum = Record<string, ValueEnumType>;
48
- export type ExtraProColumnType<T> = Omit<ColumnType<T>, 'children'> & {
54
+ export type ExtraProColumnType<T> = Omit<ColumnType<T>, 'children' | 'filters'> & {
49
55
  sorter?: string | boolean | CompareFn<T> | {
50
56
  compare?: CompareFn<T>;
51
57
  /** Config multiple sorter order priority */
@@ -102,6 +108,10 @@ export type ApColumnType<ValueType extends keyof ApTableValueFields = 'text', Re
102
108
  * @description 值越大,越排在前面,请设置正整数,设置为0或负数将会无效
103
109
  */
104
110
  order?: number;
111
+ /**
112
+ * 表头的菜单筛选项,设置为true后会尝试使用valueEnum生成filters
113
+ */
114
+ filters?: ColumnType<RecordType>['filters'] | true;
105
115
  };
106
116
  export type RequestData<T> = {
107
117
  data: T[] | undefined;
@@ -190,3 +200,6 @@ export type ApTableExpose = {
190
200
  submit: () => void;
191
201
  reset: () => void;
192
202
  };
203
+ export type FixedApColumnType<ValueType extends keyof ApTableValueFields = 'text', RecordType = any> = Omit<ApColumnType<ValueType, RecordType>, 'filters'> & {
204
+ filters?: ColumnType<RecordType>['filters'];
205
+ };
@@ -1,5 +1,16 @@
1
1
  import { ApColumnType, ApTableValueFields, ValueEnum, ValueEnumType } from './interface';
2
2
  import { Translator } from '../config-provider';
3
+ import { AlignType, FixedType, Key, CellEllipsisType, DataIndex, ColumnType, GetComponentProps, ColumnGroupType } from 'ant-design-vue/es/vc-table/interface';
4
+ import { ColumnTitle, CompareFn, SortOrder, FilterDropdownProps, FilterValue, FilterSearchType, ColumnFilterItem } from 'ant-design-vue/es/table/interface';
5
+ import { Breakpoint } from 'ant-design-vue/es/_util/responsiveObserve';
6
+ import { ExtractPropTypes, PropType, CSSProperties } from 'vue';
7
+ import { VueTypeValidableDef } from '../../node_modules/vue-types';
8
+ import { TriggerType } from 'ant-design-vue/es/tooltip/abstractTooltipProps';
9
+ import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
10
+ import { LiteralUnion, VueNode } from 'ant-design-vue/es/_util/type';
11
+ import { PresetColorType } from 'ant-design-vue/es/_util/colors';
12
+ import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
13
+ import { TableColumnType } from 'ant-design-vue';
3
14
 
4
15
  export type FieldValueType = 'multiple' | 'multipleNumber' | 'dayjs' | 'dayjsRange' | 'dayjsDayRange' | 'number' | 'boolean' | 'object';
5
16
  export declare const formatParamsValueType: (type: FieldValueType | Record<string, FieldValueType>, value: any, cb: (t: FieldValueType, value: any) => any) => any;
@@ -29,7 +40,7 @@ export declare const objectToMap: (value: ValueEnum | undefined) => ValueEnumMap
29
40
  * @param valueEnumParams
30
41
  * @returns
31
42
  */
32
- export declare const valueEnumToArray: (valueEnumParams: ValueEnum) => OptionType;
43
+ export declare const valueEnumToArray: (valueEnumParams: ValueEnum) => Partial<OptionType>[];
33
44
  /**
34
45
  * 获取列在查询表单中的排序
35
46
  * @param order
@@ -58,4 +69,166 @@ export declare function getFieldProps<RecordType = any>(fieldProps: ApColumnType
58
69
  renderIndex: number;
59
70
  column: ApColumnType<any, RecordType>;
60
71
  }): any;
72
+ /**
73
+ * 获取表格的渲染类型
74
+ * @param item
75
+ * @returns
76
+ */
77
+ export declare function getTableRenderType(item: ApColumnType<any, any>): "number" | "text" | "select" | "switch" | "index" | "status" | "checkbox" | "radio" | "date" | "action" | "dateRange" | "textArea";
78
+ /**
79
+ * 处理表格render组件的props
80
+ * @param item
81
+ * @param renderOption
82
+ * @returns
83
+ */
84
+ export declare function getTableRenderProps(item: ApColumnType<any, any>, renderOption: any): any;
85
+ /**
86
+ * 将apColumn转化为column
87
+ * @param column
88
+ * @returns
89
+ */
90
+ export declare function apColumnToColumn(column: ApColumnType<any>): {
91
+ align?: AlignType | undefined;
92
+ class?: string | undefined;
93
+ title?: ColumnTitle<any>;
94
+ width?: string | number | undefined;
95
+ slots?: {
96
+ filterIcon?: string | undefined;
97
+ filterDropdown?: string | undefined;
98
+ customRender?: string | undefined;
99
+ title?: string | undefined;
100
+ } | undefined;
101
+ fixed?: FixedType | undefined;
102
+ key?: Key | undefined;
103
+ responsive?: Breakpoint[] | undefined;
104
+ maxWidth?: number | undefined;
105
+ minWidth?: number | undefined;
106
+ ellipsis?: CellEllipsisType | undefined;
107
+ colSpan?: number | undefined;
108
+ dataIndex?: DataIndex | undefined;
109
+ customRender?: ((opt: {
110
+ value: any;
111
+ text: any;
112
+ record: any;
113
+ index: number;
114
+ renderIndex: number;
115
+ column: ColumnType<any>;
116
+ }) => any) | undefined;
117
+ rowSpan?: number | undefined;
118
+ resizable?: boolean | undefined;
119
+ customCell?: GetComponentProps<any> | undefined;
120
+ onCellClick?: ((record: any, e: MouseEvent) => void) | undefined;
121
+ className?: string | undefined;
122
+ customHeaderCell?: GetComponentProps< ColumnType<any> | ColumnGroupType<any>> | undefined;
123
+ customFilterDropdown?: boolean | undefined;
124
+ __originColumn__?: any;
125
+ sorter?: ((boolean | CompareFn<any> | {
126
+ compare?: CompareFn<any> | undefined;
127
+ multiple?: number | undefined;
128
+ }) & (string | boolean | CompareFn<any> | {
129
+ compare?: CompareFn<any> | undefined;
130
+ multiple?: number | undefined;
131
+ })) | undefined;
132
+ sortOrder?: SortOrder | undefined;
133
+ defaultSortOrder?: SortOrder | undefined;
134
+ sortDirections?: SortOrder[] | undefined;
135
+ showSorterTooltip?: boolean | Partial< ExtractPropTypes<{
136
+ title: VueTypeValidableDef<any>;
137
+ trigger: PropType< TriggerType | TriggerType[]>;
138
+ open: {
139
+ type: BooleanConstructor;
140
+ default: any;
141
+ };
142
+ visible: {
143
+ type: BooleanConstructor;
144
+ default: any;
145
+ };
146
+ placement: PropType<TooltipPlacement>;
147
+ color: PropType<LiteralUnion<PresetColorType>>;
148
+ transitionName: StringConstructor;
149
+ overlayStyle: {
150
+ type: PropType<CSSProperties>;
151
+ default: CSSProperties;
152
+ };
153
+ overlayInnerStyle: {
154
+ type: PropType<CSSProperties>;
155
+ default: CSSProperties;
156
+ };
157
+ overlayClassName: StringConstructor;
158
+ openClassName: StringConstructor;
159
+ prefixCls: StringConstructor;
160
+ mouseEnterDelay: NumberConstructor;
161
+ mouseLeaveDelay: NumberConstructor;
162
+ getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
163
+ arrowPointAtCenter: {
164
+ type: BooleanConstructor;
165
+ default: any;
166
+ };
167
+ arrow: {
168
+ type: PropType<boolean | {
169
+ pointAtCenter?: boolean | undefined;
170
+ }>;
171
+ default: boolean | {
172
+ pointAtCenter?: boolean | undefined;
173
+ };
174
+ };
175
+ autoAdjustOverflow: {
176
+ type: PropType<boolean | AdjustOverflow>;
177
+ default: boolean | AdjustOverflow;
178
+ };
179
+ destroyTooltipOnHide: {
180
+ type: BooleanConstructor;
181
+ default: any;
182
+ };
183
+ align: {
184
+ type: PropType<AlignType>;
185
+ default: AlignType;
186
+ };
187
+ builtinPlacements: {
188
+ type: PropType<BuildInPlacements>;
189
+ default: BuildInPlacements;
190
+ };
191
+ children: ArrayConstructor;
192
+ onVisibleChange: PropType<(vis: boolean) => void>;
193
+ 'onUpdate:visible': PropType<(vis: boolean) => void>;
194
+ onOpenChange: PropType<(vis: boolean) => void>;
195
+ 'onUpdate:open': PropType<(vis: boolean) => void>;
196
+ }>> | undefined;
197
+ filtered?: boolean | undefined;
198
+ filterDropdown?: VueNode | ((props: FilterDropdownProps<any>) => VueNode);
199
+ filterMultiple?: boolean | undefined;
200
+ filteredValue?: FilterValue | null | undefined;
201
+ defaultFilteredValue?: FilterValue | null | undefined;
202
+ filterIcon?: VueNode | ((opt: {
203
+ filtered: boolean;
204
+ column: TableColumnType<any>;
205
+ }) => VueNode);
206
+ filterMode?: "menu" | "tree" | undefined;
207
+ filterSearch?: FilterSearchType<ColumnFilterItem> | undefined;
208
+ onFilter?: ((value: string | number | boolean, record: any) => boolean) | undefined;
209
+ filterDropdownOpen?: boolean | undefined;
210
+ onFilterDropdownOpenChange?: ((visible: boolean) => void) | undefined;
211
+ filterResetToDefaultFilteredValue?: boolean | undefined;
212
+ filterDropdownVisible?: boolean | undefined;
213
+ onFilterDropdownVisibleChange?: ((visible: boolean) => void) | undefined;
214
+ children?: ApColumnType<any, any>[] | undefined;
215
+ span?: number | undefined;
216
+ tooltip?: string | undefined;
217
+ copyable?: boolean | undefined;
218
+ hideInSearch?: boolean | undefined;
219
+ hideInTable?: boolean | undefined;
220
+ valueEnum?: ValueEnum | undefined;
221
+ customRenderFormItem?: ((config: ApColumnType<"text", any>) => any) | undefined;
222
+ valueType?: keyof ApTableValueFields | undefined;
223
+ fieldProps?: any;
224
+ order?: number | undefined;
225
+ filters?: true | ColumnFilterItem[] | undefined;
226
+ };
227
+ /**
228
+ * 更新查询表单的的props
229
+ * @param item
230
+ * @param fieldProps
231
+ * @returns
232
+ */
233
+ export declare function updateFormProps(item: ApColumnType<any, any>, fieldProps: any): any;
61
234
  export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("lodash-unified"),a=(e,t,r)=>{let s={};return c.isObject(e)?Object.keys(e).forEach(o=>{c.isObject(e[o])?s[o]=a(e[o],t[o],r):s[o]=r(e[o],t)}):s=r(e,t),s},i=(e,t)=>{switch(e){case"dayjs":return t.valueOf();case"dayjsRange":return t.map(r=>r.valueOf());case"dayjsDayRange":{const[r,s]=t;return[r.startOf("day").valueOf(),s.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return c.isArray(t)?t:[t];case"boolean":return t;case"object":return t;default:return t}};function f(e){return c.isArray(e)?e.join("."):e}function l(e){const t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&typeof e=="object"?"object":e===null?"null":e===void 0?"undefined":t}const u=e=>l(e)==="map"?e:new Map(Object.entries(e||{})),d=e=>{const t=[],r=u(e);return r.forEach((s,o)=>{const n=r.get(o)||r.get(`${o}`);if(n){if(typeof n=="object"&&(n!=null&&n.text)){t.push({text:n==null?void 0:n.text,value:o,label:n==null?void 0:n.text,disabled:n.disabled});return}t.push({text:n,label:n,value:o})}}),t},m=e=>c.isUndefined(e)||e<0?0:e,p=(e,t,r)=>{if(r)return r;const s=["select","date"],o=["text","textArea","number"];if(t==="dateRange")return[e("ap.common.chooseText"),e("ap.common.chooseText")];if(s.includes(t))return e("ap.common.chooseText");if(o.includes(t))return e("ap.common.inputText")};function b(e,t){return!e||!c.isFunction(e)?e:e(t)}exports.dataIndexToStr=f;exports.formatParamsValueType=a;exports.getColumnOrder=m;exports.getFieldProps=b;exports.getPlaceholder=p;exports.objectToMap=u;exports.parseFieldValue=i;exports.valueEnumToArray=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lodash-unified"),c=(e,t,n)=>{let o={};return s.isObject(e)?Object.keys(e).forEach(u=>{s.isObject(e[u])?o[u]=c(e[u],t[u],n):o[u]=n(e[u],t)}):o=n(e,t),o},d=(e,t)=>{switch(e){case"dayjs":return t.valueOf();case"dayjsRange":return t.map(n=>n.valueOf());case"dayjsDayRange":{const[n,o]=t;return[n.startOf("day").valueOf(),o.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return s.isArray(t)?t:[t];case"boolean":return t;case"object":return t;default:return t}};function p(e){return s.isArray(e)?e.join("."):e}function m(e){const t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&typeof e=="object"?"object":e===null?"null":e===void 0?"undefined":t}const i=e=>m(e)==="map"?e:new Map(Object.entries(e||{})),a=e=>{const t=[],n=i(e);return n.forEach((o,u)=>{const r=n.get(u)||n.get(`${u}`);if(r){if(typeof r=="object"&&(r!=null&&r.text)){t.push({text:r==null?void 0:r.text,value:u,label:r==null?void 0:r.text,disabled:r.disabled});return}t.push({text:r,label:r,value:u})}}),t},T=e=>s.isUndefined(e)||e<0?0:e,b=(e,t,n)=>{if(n)return n;const o=["select","date"],u=["text","textArea","number"];if(t==="dateRange")return[e("ap.common.chooseText"),e("ap.common.chooseText")];if(o.includes(t))return e("ap.common.chooseText");if(u.includes(t))return e("ap.common.inputText")};function l(e,t){return!e||!s.isFunction(e)?e:e(t)}function g(e){let t=e.valueType||"text";return e.valueEnum&&(t="status"),t}function y(e,t){const n=l(e.fieldProps,t),o=(n==null?void 0:n.field)||n||{},u=e.valueType==="switch",r=e.valueType==="index",f=u?{checked:t.value}:{value:r?t.index+1:t.value};return e.valueEnum&&(o.valueEnum=e.valueEnum),{...s.omit(o,["request"]),...f}}function x(e){const t={...e};return s.isBoolean(e.filters)&&e.filters&&e.valueEnum&&(t.filters=a(e.valueEnum)),t}function h(e,t){var o;const n=t||{};return e.valueEnum&&!((o=n.field)!=null&&o.options)&&(n.field={...n.field,options:a(e.valueEnum)}),n}exports.apColumnToColumn=x;exports.dataIndexToStr=p;exports.formatParamsValueType=c;exports.getColumnOrder=T;exports.getFieldProps=l;exports.getPlaceholder=b;exports.getTableRenderProps=y;exports.getTableRenderType=g;exports.objectToMap=i;exports.parseFieldValue=d;exports.updateFormProps=h;exports.valueEnumToArray=a;
@@ -271,19 +271,23 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
271
271
  .ant-modal-confirm-error .ant-modal-confirm-body > .anticon {
272
272
  color: #ff4d4f;
273
273
  }
274
- .ant-table-wrapper .ant-spin-container .ant-pagination.ant-table-pagination.ant-table-pagination-right {
274
+ [class$='-basic-table'] .ant-table-wrapper .ant-spin-container .ant-pagination.ant-table-pagination.ant-table-pagination-right,
275
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-spin-container .ant-pagination.ant-table-pagination.ant-table-pagination-right {
275
276
  margin: 16px 0 0;
276
277
  }
277
- .ant-table-wrapper .ant-pagination {
278
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination,
279
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination {
278
280
  position: relative;
279
281
  }
280
- .ant-table-wrapper .ant-pagination .ant-pagination-total-text {
282
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-total-text,
283
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-total-text {
281
284
  position: absolute;
282
285
  left: 0;
283
286
  height: 30px;
284
287
  line-height: 30px;
285
288
  }
286
- .ant-table-wrapper .ant-pagination .ant-pagination-item {
289
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-item,
290
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-item {
287
291
  box-sizing: border-box;
288
292
  min-width: 30px;
289
293
  height: 30px;
@@ -294,45 +298,57 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
294
298
  text-align: center;
295
299
  border-radius: 4px;
296
300
  }
297
- .ant-table-wrapper .ant-pagination .ant-pagination-item:not(.ant-table-wrapper .ant-pagination .ant-pagination-item-active) {
301
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-item:not([class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-item-active),
302
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-item:not([class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-item-active),
303
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-item:not([class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-item-active),
304
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-item:not([class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-item-active) {
298
305
  border: 1px solid #d9d9d9;
299
306
  }
300
- .ant-table-wrapper .ant-pagination .ant-pagination-prev {
307
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-prev,
308
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-prev {
301
309
  width: 30px;
302
310
  height: 30px;
303
311
  margin: 0 4px;
304
312
  line-height: 28px;
305
313
  border: 1px solid #d9d9d9;
306
314
  }
307
- .ant-table-wrapper .ant-pagination .ant-pagination-next {
315
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-next,
316
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-next {
308
317
  width: 30px;
309
318
  height: 30px;
310
319
  margin: 0 4px;
311
320
  line-height: 28px;
312
321
  border: 1px solid #d9d9d9;
313
322
  }
314
- .ant-table-wrapper .ant-pagination .ant-pagination-next .ant-pagination-disabled {
323
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-next .ant-pagination-disabled,
324
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-next .ant-pagination-disabled {
315
325
  border: 1px solid #d9d9d9;
316
326
  }
317
- .ant-table-wrapper .ant-pagination .ant-pagination-options {
327
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-options,
328
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-options {
318
329
  margin-left: 4px;
319
330
  }
320
- .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-select-selector {
331
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-select-selector,
332
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-select-selector {
321
333
  min-width: 90px;
322
334
  height: 30px;
323
335
  }
324
- .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-select-selection-item {
336
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-select-selection-item,
337
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-select-selection-item {
325
338
  line-height: 28px;
326
339
  }
327
- .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-select .ant-select-arrow {
340
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-select .ant-select-arrow,
341
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-select .ant-select-arrow {
328
342
  color: #333333;
329
343
  }
330
- .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-pagination-options-quick-jumper {
344
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-pagination-options-quick-jumper,
345
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-pagination-options-quick-jumper {
331
346
  margin-left: 20px;
332
347
  color: #333333;
333
348
  font-size: 14px;
334
349
  }
335
- .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-pagination-options-quick-jumper input {
350
+ [class$='-basic-table'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-pagination-options-quick-jumper input,
351
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-pagination .ant-pagination-options .ant-pagination-options-quick-jumper input {
336
352
  min-width: 60px;
337
353
  height: 30px;
338
354
  margin: 0 8px;
@@ -346,35 +362,43 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
346
362
  display: flex;
347
363
  }
348
364
  .ant-steps .ant-steps-item-icon {
365
+ line-height: 27px;
349
366
  width: 28px;
350
367
  height: 28px;
351
368
  margin-top: 3px;
352
- display: flex;
353
- justify-content: center;
354
- align-items: center;
355
369
  flex-shrink: 0;
356
370
  }
371
+ .ant-steps .ant-steps-item.ant-steps-item-process .ant-steps-item-icon .ant-steps-icon {
372
+ font-weight: 500;
373
+ font-size: 16px;
374
+ }
375
+ .ant-steps .ant-steps-item.ant-steps-item-process .ant-steps-item-container .ant-steps-item-description {
376
+ min-height: 16px;
377
+ margin-top: 5px;
378
+ color: #999999;
379
+ font-weight: 400;
380
+ font-size: 12px;
381
+ line-height: 1.2rem;
382
+ }
357
383
  .ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-icon {
358
384
  background-color: #ffffff;
359
385
  border-color: #34b77c;
360
- border-radius: 0;
361
386
  }
362
387
  .ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-finish-icon {
363
388
  width: 12px;
364
389
  height: 12px;
365
390
  }
366
391
  .ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-finish-icon svg {
367
- display: none;
368
392
  width: 12px;
369
393
  height: 12px;
370
394
  }
371
395
  .ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-content .ant-steps-item-description {
372
396
  min-height: 16px;
373
- margin-top: 6px;
397
+ margin-top: 5px;
374
398
  color: #999999;
375
399
  font-weight: 400;
376
400
  font-size: 12px;
377
- line-height: 1rem;
401
+ line-height: 1.2rem;
378
402
  }
379
403
  .ant-steps .ant-steps-item-title {
380
404
  height: 24px;
@@ -398,11 +422,11 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
398
422
  }
399
423
  .ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-content .ant-steps-item-description {
400
424
  min-height: 16px;
401
- margin-top: 6px;
425
+ margin-top: 5px;
402
426
  color: #999999;
403
427
  font-weight: 400;
404
428
  font-size: 12px;
405
- line-height: 1rem;
429
+ line-height: 1.2rem;
406
430
  }
407
431
  .ant-steps .ant-steps-item-wait .ant-steps-item-container .ant-steps-item-icon {
408
432
  background-color: #ffffff;
@@ -415,11 +439,15 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
415
439
  }
416
440
  .ant-steps .ant-steps-item-wait .ant-steps-item-container .ant-steps-item-description {
417
441
  min-height: 16px;
418
- margin-top: 6px;
442
+ margin-top: 5px;
419
443
  color: #999999;
420
444
  font-weight: 400;
421
445
  font-size: 12px;
422
- line-height: 1rem;
446
+ line-height: 1.2rem;
447
+ }
448
+ .ant-steps-item.ant-steps-item-finish.ant-steps-item-active .ant-steps-item-container .ant-steps-item-tail {
449
+ inset-inline-start: 13px;
450
+ margin: 4px 0;
423
451
  }
424
452
  .ant-steps-item.ant-steps-item-finish.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
425
453
  background-color: #ffffff;
@@ -434,13 +462,25 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
434
462
  width: 28px;
435
463
  height: 28px;
436
464
  margin-top: 3px;
437
- display: flex;
438
- justify-content: center;
439
- align-items: center;
465
+ }
466
+ .ant-steps.ant-steps-vertical.ant-steps-small .ant-steps-item-icon {
467
+ line-height: 25px;
468
+ width: 24px;
469
+ height: 24px;
470
+ margin-top: 3px;
471
+ }
472
+ .ant-steps.ant-steps-vertical.ant-steps-small .ant-steps-item .ant-steps-item-content {
473
+ margin-top: 2px;
440
474
  }
441
475
  .ant-steps.ant-steps-vertical.ant-steps-small .ant-steps-item .ant-steps-item-tail {
442
476
  inset-inline-start: 13px;
443
- margin: 6px 0;
477
+ margin: 3px -1px;
478
+ }
479
+ .ant-steps.ant-steps-horizontal.ant-steps-small .ant-steps-item-icon {
480
+ line-height: 25px;
481
+ width: 24px;
482
+ height: 24px;
483
+ flex-shrink: 0;
444
484
  }
445
485
  [class$='-basic-table'],
446
486
  [class$='-basic-table-form-container'] {