ns-base-module 1.1.58 → 1.1.61
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/LICENSE +21 -21
- package/README.md +20 -20
- package/dist/Button/AntdIconButton.d.ts +11 -0
- package/dist/Button/AntdIconButton.d.ts.map +1 -0
- package/dist/Button/AntdIconButton.js +2 -2
- package/dist/Button/ConfigButton.d.ts +18 -0
- package/dist/Button/ConfigButton.d.ts.map +1 -0
- package/dist/Button/ConfigButton.js +12 -12
- package/dist/Button/index.d.ts +8 -0
- package/dist/Button/index.d.ts.map +1 -0
- package/dist/ChooseModal/index.d.ts +21 -0
- package/dist/ChooseModal/index.d.ts.map +1 -0
- package/dist/ChooseModal/index.js +6 -6
- package/dist/ClassFilter/index.d.ts +11 -0
- package/dist/ClassFilter/index.d.ts.map +1 -0
- package/dist/ClassFilter/indexVertical.d.ts +11 -0
- package/dist/ClassFilter/indexVertical.d.ts.map +1 -0
- package/dist/ClassFilter/util.d.ts +17 -0
- package/dist/ClassFilter/util.d.ts.map +1 -0
- package/dist/CopyCol/index.d.ts +4 -0
- package/dist/CopyCol/index.d.ts.map +1 -0
- package/dist/Entry/EntryCriteria.d.ts +17 -0
- package/dist/Entry/EntryCriteria.d.ts.map +1 -0
- package/dist/Entry/EntryItem.d.ts +34 -0
- package/dist/Entry/EntryItem.d.ts.map +1 -0
- package/dist/Entry/components/Checkbox.d.ts +12 -0
- package/dist/Entry/components/Checkbox.d.ts.map +1 -0
- package/dist/Entry/components/ChooseModalTable.d.ts +15 -0
- package/dist/Entry/components/ChooseModalTable.d.ts.map +1 -0
- package/dist/Entry/components/ChooseModalTable.js +6 -6
- package/dist/Entry/components/Condition.d.ts +9 -0
- package/dist/Entry/components/Condition.d.ts.map +1 -0
- package/dist/Entry/components/DatePicker.d.ts +12 -0
- package/dist/Entry/components/DatePicker.d.ts.map +1 -0
- package/dist/Entry/components/Etable2Modal.d.ts +4 -0
- package/dist/Entry/components/Etable2Modal.d.ts.map +1 -0
- package/dist/Entry/components/Express.d.ts +8 -0
- package/dist/Entry/components/Express.d.ts.map +1 -0
- package/dist/Entry/components/GroupInput.d.ts +13 -0
- package/dist/Entry/components/GroupInput.d.ts.map +1 -0
- package/dist/Entry/components/ImageText.d.ts +13 -0
- package/dist/Entry/components/ImageText.d.ts.map +1 -0
- package/dist/Entry/components/ImageText.js +5 -5
- package/dist/Entry/components/Input.d.ts +27 -0
- package/dist/Entry/components/Input.d.ts.map +1 -0
- package/dist/Entry/components/InputNumber.d.ts +18 -0
- package/dist/Entry/components/InputNumber.d.ts.map +1 -0
- package/dist/Entry/components/InputNumber.js +10 -10
- package/dist/Entry/components/InputNumberRange.d.ts +10 -0
- package/dist/Entry/components/InputNumberRange.d.ts.map +1 -0
- package/dist/Entry/components/ListSelect.d.ts +15 -0
- package/dist/Entry/components/ListSelect.d.ts.map +1 -0
- package/dist/Entry/components/ListSelect.js +6 -6
- package/dist/Entry/components/ObjectSelect.d.ts +14 -0
- package/dist/Entry/components/ObjectSelect.d.ts.map +1 -0
- package/dist/Entry/components/ObjectSelect.js +5 -5
- package/dist/Entry/components/Progress.d.ts +11 -0
- package/dist/Entry/components/Progress.d.ts.map +1 -0
- package/dist/Entry/components/Radio.d.ts +15 -0
- package/dist/Entry/components/Radio.d.ts.map +1 -0
- package/dist/Entry/components/Select.d.ts +29 -0
- package/dist/Entry/components/Select.d.ts.map +1 -0
- package/dist/Entry/components/Select.js +5 -5
- package/dist/Entry/components/Switch.d.ts +6 -0
- package/dist/Entry/components/Switch.d.ts.map +1 -0
- package/dist/Entry/components/TagsDatePicker.d.ts +7 -0
- package/dist/Entry/components/TagsDatePicker.d.ts.map +1 -0
- package/dist/Entry/components/TagsDatePicker.js +6 -6
- package/dist/Entry/components/TimePicker.d.ts +6 -0
- package/dist/Entry/components/TimePicker.d.ts.map +1 -0
- package/dist/Entry/components/TreeSelect.d.ts +5 -0
- package/dist/Entry/components/TreeSelect.d.ts.map +1 -0
- package/dist/Entry/components/TreeSelect.js +5 -5
- package/dist/Entry/components/index.scss +97 -97
- package/dist/Entry/components/utils.d.ts +1 -0
- package/dist/Entry/components/utils.d.ts.map +1 -0
- package/dist/Entry/components/utils.js +5 -5
- package/dist/Entry/data.d.ts +133 -133
- package/dist/Entry/index.d.ts +54 -0
- package/dist/Entry/index.d.ts.map +1 -0
- package/dist/Entry/index.js +6 -6
- package/dist/FilterPopover/Filter.d.ts +30 -0
- package/dist/FilterPopover/Filter.d.ts.map +1 -0
- package/dist/FilterPopover/FilterClearIcon.d.ts +8 -0
- package/dist/FilterPopover/FilterClearIcon.d.ts.map +1 -0
- package/dist/FilterPopover/FilterClearIcon.js +6 -6
- package/dist/FilterPopover/index.d.ts +21 -0
- package/dist/FilterPopover/index.d.ts.map +1 -0
- package/dist/FilterPopover/index.js +6 -6
- package/dist/FilterPopover/vTableFilter.d.ts +25 -0
- package/dist/FilterPopover/vTableFilter.d.ts.map +1 -0
- package/dist/Icon/IconCreate.d.ts +11 -0
- package/dist/Icon/IconCreate.d.ts.map +1 -0
- package/dist/Icon/index.d.ts +6 -0
- package/dist/Icon/index.d.ts.map +1 -0
- package/dist/Icon/index.js +5 -5
- package/dist/IconTools/index.d.ts +13 -0
- package/dist/IconTools/index.d.ts.map +1 -0
- package/dist/IconTools/utils.d.ts +15 -0
- package/dist/IconTools/utils.d.ts.map +1 -0
- package/dist/IconTools/utils.js +5 -5
- package/dist/SubtotalsModal/Increment.d.ts +18 -0
- package/dist/SubtotalsModal/Increment.d.ts.map +1 -0
- package/dist/SubtotalsModal/addSubtotals.d.ts +22 -0
- package/dist/SubtotalsModal/addSubtotals.d.ts.map +1 -0
- package/dist/SubtotalsModal/dndQuota.d.ts +27 -0
- package/dist/SubtotalsModal/dndQuota.d.ts.map +1 -0
- package/dist/SubtotalsModal/index.d.ts +22 -0
- package/dist/SubtotalsModal/index.d.ts.map +1 -0
- package/dist/SubtotalsModal/index.js +7 -7
- package/dist/SubtotalsModal/subtotalTemplate.d.ts +22 -0
- package/dist/SubtotalsModal/subtotalTemplate.d.ts.map +1 -0
- package/dist/SubtotalsModal/subtotalTemplate.js +46 -19
- package/dist/SubtotalsModal/util.d.ts +3 -0
- package/dist/SubtotalsModal/util.d.ts.map +1 -0
- package/dist/SubtotalsModal/viewSubtotals.d.ts +12 -0
- package/dist/SubtotalsModal/viewSubtotals.d.ts.map +1 -0
- package/dist/TableHeaderConfigPopover/Dustbin.d.ts +5 -0
- package/dist/TableHeaderConfigPopover/Dustbin.d.ts.map +1 -0
- package/dist/TableHeaderConfigPopover/index.d.ts +22 -0
- package/dist/TableHeaderConfigPopover/index.d.ts.map +1 -0
- package/dist/TableHeaderConfigPopover/index.js +11 -8
- package/dist/TableHeaderConfigPopover/updateColumns.d.ts +10 -0
- package/dist/TableHeaderConfigPopover/updateColumns.d.ts.map +1 -0
- package/dist/TableHeaderConfigPopover/updateColumns.js +5 -5
- package/dist/TableHeaderConfigPopover/utils.d.ts +16 -0
- package/dist/TableHeaderConfigPopover/utils.d.ts.map +1 -0
- package/dist/TableHeaderConfigPopover/utils.js +5 -5
- package/dist/WidgetConfig/index.d.ts +40 -0
- package/dist/WidgetConfig/index.d.ts.map +1 -0
- package/dist/WidgetConfig/index.js +8 -8
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/test/index.d.ts +4 -0
- package/dist/test/index.d.ts.map +1 -0
- package/dist/umd/ns-base-module.min.css +1 -1
- package/dist/umd/ns-base-module.min.js +1 -1
- package/dist/utils/cache.d.ts +17 -0
- package/dist/utils/cache.d.ts.map +1 -0
- package/dist/utils/cache.js +10 -10
- package/dist/utils/enum.d.ts +22 -0
- package/dist/utils/enum.d.ts.map +1 -0
- package/dist/utils/errorMsg.d.ts +3 -0
- package/dist/utils/errorMsg.d.ts.map +1 -0
- package/dist/utils/language.d.ts +283 -0
- package/dist/utils/language.d.ts.map +1 -0
- package/dist/utils/request.d.ts +1 -0
- package/dist/utils/request.d.ts.map +1 -0
- package/dist/utils/services/global.d.ts +130 -0
- package/dist/utils/services/global.d.ts.map +1 -0
- package/dist/utils/services/global.js +49 -49
- package/dist/utils/utils.d.ts +111 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +50 -50
- package/package.json +100 -100
- package/style/basics.scss +671 -671
- package/style/components/ClassFilter.scss +74 -74
- package/style/components/FilterPopover.scss +40 -40
- package/style/components/SubtotalsModal.scss +388 -388
- package/style/components/TableHeaderConfigPopover.scss +105 -105
- package/style/components/index.scss +4 -4
- package/style/default.scss +1219 -1219
- package/style/index.scss +1 -1
- package/style/mixins/index.scss +28 -28
- package/style/mixins/libs/tint.scss +23 -23
- package/style/variables.scss +684 -684
- package/types/Action.d.ts +43 -43
- package/types/types.d.ts +1 -1
package/dist/Entry/data.d.ts
CHANGED
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
// export type EntryType =
|
|
2
|
-
// | 'Input'
|
|
3
|
-
// | 'InputNumber'
|
|
4
|
-
// | 'TableInput'
|
|
5
|
-
// | 'Select'
|
|
6
|
-
// | 'MultSelect'
|
|
7
|
-
// | 'DatePicker'
|
|
8
|
-
// | 'DateTimePicker'
|
|
9
|
-
// | 'RangePicker'
|
|
10
|
-
// | 'RangeTimePicker'
|
|
11
|
-
// | 'Switch'
|
|
12
|
-
// | 'Textarea'
|
|
13
|
-
// | 'TableTextarea'
|
|
14
|
-
// | 'Image'
|
|
15
|
-
// | 'Checkbox'
|
|
16
|
-
// | 'CheckboxGroup'
|
|
17
|
-
// | 'Radio'
|
|
18
|
-
// | 'ImageUpload'
|
|
19
|
-
// | 'FileUpload'
|
|
20
|
-
// | 'TreeSelect';
|
|
21
|
-
import { initLang } from '@/utils/language';
|
|
22
|
-
import { TagConditionEnum } from '@/utils/enum';
|
|
23
|
-
|
|
24
|
-
export enum EntryType {
|
|
25
|
-
Input = 'Input',
|
|
26
|
-
InputNumber = 'InputNumber',
|
|
27
|
-
InputNumberRange = 'InputNumberRange',
|
|
28
|
-
Password = 'Password',
|
|
29
|
-
Search = 'Search',
|
|
30
|
-
AllSearch = 'AllSearch',
|
|
31
|
-
TableInput = 'TableInput',
|
|
32
|
-
TableInputNumber = 'TableInputNumber',
|
|
33
|
-
Select = 'Select',
|
|
34
|
-
ObjectSelect = 'ObjectSelect',
|
|
35
|
-
MultSelect = 'MultSelect',
|
|
36
|
-
DatePicker = 'DatePicker',
|
|
37
|
-
DateTimePicker = 'DateTimePicker',
|
|
38
|
-
RangePicker = 'RangePicker',
|
|
39
|
-
RangeTimePicker = 'RangeTimePicker',
|
|
40
|
-
TimePicker = 'TimePicker',
|
|
41
|
-
SwitchRead = 'SwitchRead',
|
|
42
|
-
Switch = 'Switch',
|
|
43
|
-
Textarea = 'Textarea',
|
|
44
|
-
TableTextarea = 'TableTextarea',
|
|
45
|
-
Image = 'Image',
|
|
46
|
-
Checkbox = 'Checkbox',
|
|
47
|
-
CheckboxGroup = 'CheckboxGroup',
|
|
48
|
-
Radio = 'Radio',
|
|
49
|
-
RadioGroup = 'RadioGroup',
|
|
50
|
-
ImageUpload = 'ImageUpload',
|
|
51
|
-
FileUpload = 'FileUpload',
|
|
52
|
-
TreeSelect = 'TreeSelect',
|
|
53
|
-
Cron = 'Cron', // cron 表达式
|
|
54
|
-
Editor = 'Editor', // 富文本编辑器
|
|
55
|
-
EditorPreview = 'EditorPreview', // 富文本编辑器的预览
|
|
56
|
-
EditorModal = 'EditorModal', // 富文本编辑器弹框
|
|
57
|
-
JsonRead = 'JsonRead', // json预览
|
|
58
|
-
Link = 'Link', // 超链接
|
|
59
|
-
OpenBrowser = 'OpenBrowser', // 打开新浏览器
|
|
60
|
-
Tag = 'Tag', // 标签
|
|
61
|
-
Tags = 'Tags', // 标签组
|
|
62
|
-
FormTable = 'FormTable', // 可操作表格
|
|
63
|
-
Condition = 'Condition', // 条件组件
|
|
64
|
-
ColorPicker = 'ColorPicker', // 颜色选择器
|
|
65
|
-
TagSelect = 'TagSelect', // 可输入的下拉框
|
|
66
|
-
Styles = 'styles', // 配置样式
|
|
67
|
-
TimelineModal = 'TimelineModal', // 时间轴弹窗
|
|
68
|
-
ChooseModal = 'ChooseModal', // 选择弹窗
|
|
69
|
-
ObjectSelect = 'ObjectSelect', // 下拉选择带出整个对象
|
|
70
|
-
TableEditableModal = 'TableEditableModal', //可编辑的表格弹窗
|
|
71
|
-
AceEditor = 'AceEditor', // 代码编辑器
|
|
72
|
-
AceTable = 'AceTable', // 代码表格
|
|
73
|
-
Tree = 'Tree', // 树组件
|
|
74
|
-
Express = 'Express', // 表达式
|
|
75
|
-
Steps = 'Steps', // 步骤条
|
|
76
|
-
QRCode = 'QRCode',
|
|
77
|
-
Barcode = 'Barcode',
|
|
78
|
-
GroupInput = 'GroupInput',
|
|
79
|
-
EditorPreview = 'EditorPreview',
|
|
80
|
-
TagsDatePicker = 'TagsDatePicker',
|
|
81
|
-
ColorPicker = 'ColorPicker',
|
|
82
|
-
ChooseModalTable = 'ChooseModalTable', // 选择弹框,选择结果为表格
|
|
83
|
-
Progress = 'Progress', // 进度条
|
|
84
|
-
ImageText = 'ImageText', //图文组件
|
|
85
|
-
Etable2Modal = 'Etable2Modal', // 单据页的弹框选择,ModalWithConfig封装成的弹框选择
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export enum TableReadEntryType {
|
|
89
|
-
Image = 'Image',
|
|
90
|
-
SwtichRead = 'SwtichRead',
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export const tableReadEntryEnum = {
|
|
94
|
-
[TableReadEntryType.Image]: '图片',
|
|
95
|
-
[TableReadEntryType.SwtichRead]: '开关',
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export enum TableActionEntryType {
|
|
99
|
-
Image = 'Image',
|
|
100
|
-
Swtich = 'Swtich',
|
|
101
|
-
SwtichRead = 'SwtichRead',
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export const tableActionEntryEnum = {
|
|
105
|
-
[TableActionEntryType.Image]: '图片',
|
|
106
|
-
[TableActionEntryType.Swtich]: '开关',
|
|
107
|
-
[TableActionEntryType.SwtichRead]: '只读开关',
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const tagStringEnum = {
|
|
111
|
-
[TagConditionEnum.Equals]: initLang({ id: 'condition.equals' }),
|
|
112
|
-
[TagConditionEnum.NotEqual]: initLang({ id: 'condition.NotEqual' }),
|
|
113
|
-
// [TagConditionEnum.In]: '在……范围内',
|
|
114
|
-
[TagConditionEnum.Contains]: initLang({ id: 'condition.contains' }),
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export const tagNumberEnum = {
|
|
118
|
-
[TagConditionEnum.Equals]: initLang({ id: 'condition.equals' }),
|
|
119
|
-
[TagConditionEnum.NotEqual]: initLang({ id: 'condition.NotEqual' }),
|
|
120
|
-
[TagConditionEnum.LessThan]: initLang({ id: 'condition.lessThan' }),
|
|
121
|
-
[TagConditionEnum.LessOrEqual]: initLang({ id: 'condition.lessOrEqual' }),
|
|
122
|
-
[TagConditionEnum.GreaterThan]: initLang({ id: 'condition.greaterThan' }),
|
|
123
|
-
[TagConditionEnum.GreaterOrEqual]: initLang({ id: 'condition.greaterOrEqual' }),
|
|
124
|
-
// [TagConditionEnum.In]: '在……范围内',
|
|
125
|
-
// [TagConditionEnum.Between]: '在……之间',
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export interface ValueEnumType {
|
|
129
|
-
label: string;
|
|
130
|
-
value: any;
|
|
131
|
-
disabled?: boolean;
|
|
132
|
-
// style?: { bgColor?: string; color?: string; fontWeight?: boolean };
|
|
133
|
-
}
|
|
1
|
+
// export type EntryType =
|
|
2
|
+
// | 'Input'
|
|
3
|
+
// | 'InputNumber'
|
|
4
|
+
// | 'TableInput'
|
|
5
|
+
// | 'Select'
|
|
6
|
+
// | 'MultSelect'
|
|
7
|
+
// | 'DatePicker'
|
|
8
|
+
// | 'DateTimePicker'
|
|
9
|
+
// | 'RangePicker'
|
|
10
|
+
// | 'RangeTimePicker'
|
|
11
|
+
// | 'Switch'
|
|
12
|
+
// | 'Textarea'
|
|
13
|
+
// | 'TableTextarea'
|
|
14
|
+
// | 'Image'
|
|
15
|
+
// | 'Checkbox'
|
|
16
|
+
// | 'CheckboxGroup'
|
|
17
|
+
// | 'Radio'
|
|
18
|
+
// | 'ImageUpload'
|
|
19
|
+
// | 'FileUpload'
|
|
20
|
+
// | 'TreeSelect';
|
|
21
|
+
import { initLang } from '@/utils/language';
|
|
22
|
+
import { TagConditionEnum } from '@/utils/enum';
|
|
23
|
+
|
|
24
|
+
export enum EntryType {
|
|
25
|
+
Input = 'Input',
|
|
26
|
+
InputNumber = 'InputNumber',
|
|
27
|
+
InputNumberRange = 'InputNumberRange',
|
|
28
|
+
Password = 'Password',
|
|
29
|
+
Search = 'Search',
|
|
30
|
+
AllSearch = 'AllSearch',
|
|
31
|
+
TableInput = 'TableInput',
|
|
32
|
+
TableInputNumber = 'TableInputNumber',
|
|
33
|
+
Select = 'Select',
|
|
34
|
+
ObjectSelect = 'ObjectSelect',
|
|
35
|
+
MultSelect = 'MultSelect',
|
|
36
|
+
DatePicker = 'DatePicker',
|
|
37
|
+
DateTimePicker = 'DateTimePicker',
|
|
38
|
+
RangePicker = 'RangePicker',
|
|
39
|
+
RangeTimePicker = 'RangeTimePicker',
|
|
40
|
+
TimePicker = 'TimePicker',
|
|
41
|
+
SwitchRead = 'SwitchRead',
|
|
42
|
+
Switch = 'Switch',
|
|
43
|
+
Textarea = 'Textarea',
|
|
44
|
+
TableTextarea = 'TableTextarea',
|
|
45
|
+
Image = 'Image',
|
|
46
|
+
Checkbox = 'Checkbox',
|
|
47
|
+
CheckboxGroup = 'CheckboxGroup',
|
|
48
|
+
Radio = 'Radio',
|
|
49
|
+
RadioGroup = 'RadioGroup',
|
|
50
|
+
ImageUpload = 'ImageUpload',
|
|
51
|
+
FileUpload = 'FileUpload',
|
|
52
|
+
TreeSelect = 'TreeSelect',
|
|
53
|
+
Cron = 'Cron', // cron 表达式
|
|
54
|
+
Editor = 'Editor', // 富文本编辑器
|
|
55
|
+
EditorPreview = 'EditorPreview', // 富文本编辑器的预览
|
|
56
|
+
EditorModal = 'EditorModal', // 富文本编辑器弹框
|
|
57
|
+
JsonRead = 'JsonRead', // json预览
|
|
58
|
+
Link = 'Link', // 超链接
|
|
59
|
+
OpenBrowser = 'OpenBrowser', // 打开新浏览器
|
|
60
|
+
Tag = 'Tag', // 标签
|
|
61
|
+
Tags = 'Tags', // 标签组
|
|
62
|
+
FormTable = 'FormTable', // 可操作表格
|
|
63
|
+
Condition = 'Condition', // 条件组件
|
|
64
|
+
ColorPicker = 'ColorPicker', // 颜色选择器
|
|
65
|
+
TagSelect = 'TagSelect', // 可输入的下拉框
|
|
66
|
+
Styles = 'styles', // 配置样式
|
|
67
|
+
TimelineModal = 'TimelineModal', // 时间轴弹窗
|
|
68
|
+
ChooseModal = 'ChooseModal', // 选择弹窗
|
|
69
|
+
ObjectSelect = 'ObjectSelect', // 下拉选择带出整个对象
|
|
70
|
+
TableEditableModal = 'TableEditableModal', //可编辑的表格弹窗
|
|
71
|
+
AceEditor = 'AceEditor', // 代码编辑器
|
|
72
|
+
AceTable = 'AceTable', // 代码表格
|
|
73
|
+
Tree = 'Tree', // 树组件
|
|
74
|
+
Express = 'Express', // 表达式
|
|
75
|
+
Steps = 'Steps', // 步骤条
|
|
76
|
+
QRCode = 'QRCode',
|
|
77
|
+
Barcode = 'Barcode',
|
|
78
|
+
GroupInput = 'GroupInput',
|
|
79
|
+
EditorPreview = 'EditorPreview',
|
|
80
|
+
TagsDatePicker = 'TagsDatePicker',
|
|
81
|
+
ColorPicker = 'ColorPicker',
|
|
82
|
+
ChooseModalTable = 'ChooseModalTable', // 选择弹框,选择结果为表格
|
|
83
|
+
Progress = 'Progress', // 进度条
|
|
84
|
+
ImageText = 'ImageText', //图文组件
|
|
85
|
+
Etable2Modal = 'Etable2Modal', // 单据页的弹框选择,ModalWithConfig封装成的弹框选择
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export enum TableReadEntryType {
|
|
89
|
+
Image = 'Image',
|
|
90
|
+
SwtichRead = 'SwtichRead',
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const tableReadEntryEnum = {
|
|
94
|
+
[TableReadEntryType.Image]: '图片',
|
|
95
|
+
[TableReadEntryType.SwtichRead]: '开关',
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export enum TableActionEntryType {
|
|
99
|
+
Image = 'Image',
|
|
100
|
+
Swtich = 'Swtich',
|
|
101
|
+
SwtichRead = 'SwtichRead',
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const tableActionEntryEnum = {
|
|
105
|
+
[TableActionEntryType.Image]: '图片',
|
|
106
|
+
[TableActionEntryType.Swtich]: '开关',
|
|
107
|
+
[TableActionEntryType.SwtichRead]: '只读开关',
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export const tagStringEnum = {
|
|
111
|
+
[TagConditionEnum.Equals]: initLang({ id: 'condition.equals' }),
|
|
112
|
+
[TagConditionEnum.NotEqual]: initLang({ id: 'condition.NotEqual' }),
|
|
113
|
+
// [TagConditionEnum.In]: '在……范围内',
|
|
114
|
+
[TagConditionEnum.Contains]: initLang({ id: 'condition.contains' }),
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export const tagNumberEnum = {
|
|
118
|
+
[TagConditionEnum.Equals]: initLang({ id: 'condition.equals' }),
|
|
119
|
+
[TagConditionEnum.NotEqual]: initLang({ id: 'condition.NotEqual' }),
|
|
120
|
+
[TagConditionEnum.LessThan]: initLang({ id: 'condition.lessThan' }),
|
|
121
|
+
[TagConditionEnum.LessOrEqual]: initLang({ id: 'condition.lessOrEqual' }),
|
|
122
|
+
[TagConditionEnum.GreaterThan]: initLang({ id: 'condition.greaterThan' }),
|
|
123
|
+
[TagConditionEnum.GreaterOrEqual]: initLang({ id: 'condition.greaterOrEqual' }),
|
|
124
|
+
// [TagConditionEnum.In]: '在……范围内',
|
|
125
|
+
// [TagConditionEnum.Between]: '在……之间',
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export interface ValueEnumType {
|
|
129
|
+
label: string;
|
|
130
|
+
value: any;
|
|
131
|
+
disabled?: boolean;
|
|
132
|
+
// style?: { bgColor?: string; color?: string; fontWeight?: boolean };
|
|
133
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import EntryItem from './EntryItem';
|
|
3
|
+
import type ComponentType from './EntryItem';
|
|
4
|
+
import EntryCriteria, { initialValueEunm, entryCriteriaHidden } from './EntryCriteria';
|
|
5
|
+
import Input from './components/Input';
|
|
6
|
+
import InputNumber from './components/InputNumber';
|
|
7
|
+
import Radio from './components/Radio';
|
|
8
|
+
import Select from './components/Select';
|
|
9
|
+
import Switch from './components/Switch';
|
|
10
|
+
import DatePicker from './components/DatePicker';
|
|
11
|
+
import Checkbox from './components/Checkbox';
|
|
12
|
+
import ImageText from './components/ImageText';
|
|
13
|
+
import { EntryType } from './data.d';
|
|
14
|
+
declare const entryTypeMap: {
|
|
15
|
+
Input: string;
|
|
16
|
+
InputNumber: string;
|
|
17
|
+
Select: string;
|
|
18
|
+
MultSelect: string;
|
|
19
|
+
DatePicker: string;
|
|
20
|
+
DateTimePicker: string;
|
|
21
|
+
RangePicker: string;
|
|
22
|
+
RangeTimePicker: string;
|
|
23
|
+
Switch: string;
|
|
24
|
+
Textarea: string;
|
|
25
|
+
Image: string;
|
|
26
|
+
ImageUpload: string;
|
|
27
|
+
FileUpload: string;
|
|
28
|
+
};
|
|
29
|
+
declare const entryTypeEnum: {
|
|
30
|
+
Input: string;
|
|
31
|
+
InputNumber: string;
|
|
32
|
+
Textarea: string;
|
|
33
|
+
TableInput: string;
|
|
34
|
+
TableTextarea: string;
|
|
35
|
+
Select: string;
|
|
36
|
+
MultSelect: string;
|
|
37
|
+
TreeSelect: string;
|
|
38
|
+
DatePicker: string;
|
|
39
|
+
DateTimePicker: string;
|
|
40
|
+
RangePicker: string;
|
|
41
|
+
RangeTimePicker: string;
|
|
42
|
+
SwitchRead: string;
|
|
43
|
+
Switch: string;
|
|
44
|
+
Checkbox: string;
|
|
45
|
+
CheckboxGroup: string;
|
|
46
|
+
Radio: string;
|
|
47
|
+
Image: string;
|
|
48
|
+
ImageUpload: string;
|
|
49
|
+
FileUpload: string;
|
|
50
|
+
};
|
|
51
|
+
export { EntryItem, EntryCriteria, Input, InputNumber, Radio, Select, Switch, DatePicker, Checkbox, initialValueEunm, entryCriteriaHidden, entryTypeMap, entryTypeEnum, EntryType, ComponentType, ImageText, };
|
|
52
|
+
declare const index: () => React.JSX.Element;
|
|
53
|
+
export default index;
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,aAAa,MAAM,aAAa,CAAC;AAC7C,OAAO,aAAa,EAAE,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACvF,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;CAcjB,CAAC;AAEF,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;CAqBlB,CAAC;AAEF,OAAO,EACL,SAAS,EACT,aAAa,EACb,KAAK,EACL,WAAW,EACX,KAAK,EACL,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,SAAS,EACT,aAAa,EACb,SAAS,GACV,CAAC;AAEF,QAAA,MAAM,KAAK,yBAEV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/dist/Entry/index.js
CHANGED
|
@@ -3,12 +3,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
3
3
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
5
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
-
/*
|
|
7
|
-
* @Date: 2023-04-28 13:59:54
|
|
8
|
-
* @description:
|
|
9
|
-
* @author chenchangfu
|
|
10
|
-
* Copyright (c) 2019, AUTHOR. All rights reserved.
|
|
11
|
-
* AUTHOR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
6
|
+
/*
|
|
7
|
+
* @Date: 2023-04-28 13:59:54
|
|
8
|
+
* @description:
|
|
9
|
+
* @author chenchangfu
|
|
10
|
+
* Copyright (c) 2019, AUTHOR. All rights reserved.
|
|
11
|
+
* AUTHOR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import EntryItem from "./EntryItem";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EntryType } from "../Entry";
|
|
3
|
+
import type { CheckboxValueType } from "antd/lib/checkbox/Group";
|
|
4
|
+
import "../../style/components/FilterPopover.scss";
|
|
5
|
+
export interface FilterType {
|
|
6
|
+
sort?: boolean;
|
|
7
|
+
list: CheckboxValueType[];
|
|
8
|
+
dictItems?: any[];
|
|
9
|
+
onSort?: (key: string) => void;
|
|
10
|
+
onFilter: (checkedValue: CheckboxValueType[]) => void;
|
|
11
|
+
onFilterSearch?: (dataIndex: string | undefined, value: string | undefined, criteriaType: string) => void;
|
|
12
|
+
onFilterSearchValue?: (value: string | undefined) => void;
|
|
13
|
+
orderType?: string;
|
|
14
|
+
orderKey?: string;
|
|
15
|
+
dataIndex?: string;
|
|
16
|
+
entryType?: EntryType;
|
|
17
|
+
entryAttr?: Record<string, any>;
|
|
18
|
+
dataSource?: any;
|
|
19
|
+
formTemplateCode?: string;
|
|
20
|
+
menuCode?: string;
|
|
21
|
+
argument?: Record<string, any>;
|
|
22
|
+
request?: any;
|
|
23
|
+
open?: boolean;
|
|
24
|
+
variablePara?: Record<string, any>;
|
|
25
|
+
exportAllParam?: Record<string, any>;
|
|
26
|
+
filterSearch?: any;
|
|
27
|
+
}
|
|
28
|
+
declare const Filter: React.FC<FilterType>;
|
|
29
|
+
export default Filter;
|
|
30
|
+
//# sourceMappingURL=Filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["Filter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAMN,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAOrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,2CAA2C,CAAC;AAOnD,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,iBAAiB,EAAE,CAAC;IAE1B,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,YAAY,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,CACf,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,YAAY,EAAE,MAAM,KACjB,IAAI,CAAC;IACV,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAE1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAErC,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAWD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+fhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface IFilterPopoverProps {
|
|
3
|
+
filterSearch?: Record<string, any>[];
|
|
4
|
+
clearFilter: (flag?: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const Index: React.FC<IFilterPopoverProps>;
|
|
7
|
+
export default Index;
|
|
8
|
+
//# sourceMappingURL=FilterClearIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterClearIcon.d.ts","sourceRoot":"","sources":["FilterClearIcon.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IACrC,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwBxC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -4,12 +4,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
/*
|
|
8
|
-
* @Date: 2023-05-08 13:49:30
|
|
9
|
-
* @description:
|
|
10
|
-
* @author chenchangfu
|
|
11
|
-
* Copyright (c) 2019, AUTHOR. All rights reserved.
|
|
12
|
-
* AUTHOR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
7
|
+
/*
|
|
8
|
+
* @Date: 2023-05-08 13:49:30
|
|
9
|
+
* @description:
|
|
10
|
+
* @author chenchangfu
|
|
11
|
+
* Copyright (c) 2019, AUTHOR. All rights reserved.
|
|
12
|
+
* AUTHOR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
13
13
|
*/
|
|
14
14
|
import { Tooltip } from "antd";
|
|
15
15
|
import React from "react";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EntryType } from "../Entry";
|
|
3
|
+
import type { FilterType } from "./Filter";
|
|
4
|
+
export interface FilterPopoverProps extends Pick<FilterType, "sort" | "onSort" | "onFilter" | "onFilterSearchValue"> {
|
|
5
|
+
list: any[];
|
|
6
|
+
dictItems?: any[];
|
|
7
|
+
filterValue?: Record<string, any>;
|
|
8
|
+
dataIndex?: string;
|
|
9
|
+
orderType?: string;
|
|
10
|
+
orderKey?: string;
|
|
11
|
+
entryType?: EntryType;
|
|
12
|
+
entryAttr?: Record<string, any>;
|
|
13
|
+
dataSource?: any;
|
|
14
|
+
formTemplateCode?: string;
|
|
15
|
+
menuCode?: string;
|
|
16
|
+
filterSearch?: Record<string, any>;
|
|
17
|
+
exportAllParam?: Record<string, any>;
|
|
18
|
+
}
|
|
19
|
+
declare const Index: React.FC<FilterPopoverProps>;
|
|
20
|
+
export default Index;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,MAAM,WAAW,kBACf,SAAQ,IAAI,CACV,UAAU,EACV,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,qBAAqB,CACvD;IACD,IAAI,EAAE,GAAG,EAAE,CAAC;IAEZ,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEhC,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEnC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;AAkCD,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwEvC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -15,12 +15,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
16
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
17
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
18
|
-
/*
|
|
19
|
-
* @Date: 2023-05-08 13:49:30
|
|
20
|
-
* @description:
|
|
21
|
-
* @author chenchangfu
|
|
22
|
-
* Copyright (c) 2019, AUTHOR. All rights reserved.
|
|
23
|
-
* AUTHOR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
18
|
+
/*
|
|
19
|
+
* @Date: 2023-05-08 13:49:30
|
|
20
|
+
* @description:
|
|
21
|
+
* @author chenchangfu
|
|
22
|
+
* Copyright (c) 2019, AUTHOR. All rights reserved.
|
|
23
|
+
* AUTHOR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
24
24
|
*/
|
|
25
25
|
import { Popover } from "antd";
|
|
26
26
|
import React, { useMemo, useState } from "react";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EntryType } from "../Entry";
|
|
3
|
+
import type { FilterType } from "./Filter";
|
|
4
|
+
export interface FilterPopoverProps extends Pick<FilterType, "sort" | "onSort" | "onFilter" | "onFilterSearchValue"> {
|
|
5
|
+
list: any[];
|
|
6
|
+
dictItems?: any[];
|
|
7
|
+
filterValue?: Record<string, any>;
|
|
8
|
+
dataIndex?: string;
|
|
9
|
+
orderType?: string;
|
|
10
|
+
orderKey?: string;
|
|
11
|
+
entryType?: EntryType;
|
|
12
|
+
entryAttr?: Record<string, any>;
|
|
13
|
+
dataSource?: any;
|
|
14
|
+
formTemplateCode?: string;
|
|
15
|
+
menuCode?: string;
|
|
16
|
+
filterSearch?: Record<string, any>;
|
|
17
|
+
exportAllParam?: Record<string, any>;
|
|
18
|
+
left?: number;
|
|
19
|
+
top?: number;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
onCancel?: () => void;
|
|
22
|
+
}
|
|
23
|
+
declare const Index: React.FC<FilterPopoverProps>;
|
|
24
|
+
export default Index;
|
|
25
|
+
//# sourceMappingURL=vTableFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vTableFilter.d.ts","sourceRoot":"","sources":["vTableFilter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,MAAM,WAAW,kBACf,SAAQ,IAAI,CACV,UAAU,EACV,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,qBAAqB,CACvD;IACD,IAAI,EAAE,GAAG,EAAE,CAAC;IAEZ,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEhC,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEnC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0DvC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type indexProps = {
|
|
3
|
+
iconType: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
type?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const index: React.FC<indexProps>;
|
|
10
|
+
export default index;
|
|
11
|
+
//# sourceMappingURL=IconCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconCreate.d.ts","sourceRoot":"","sources":["IconCreate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,aAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAa/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import IconCreate from "./IconCreate";
|
|
3
|
+
declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont").IconFontProps<string>>;
|
|
4
|
+
export default IconFont;
|
|
5
|
+
export { IconCreate };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAQA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,QAAQ,+FASZ,CAAC;AAEH,eAAe,QAAQ,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/Icon/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @description:
|
|
3
|
-
* @author chenchangfu
|
|
4
|
-
* Copyright (c) 2019, AUTHOR. All rights reserved.
|
|
5
|
-
* AUTHOR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
1
|
+
/*
|
|
2
|
+
* @description:
|
|
3
|
+
* @author chenchangfu
|
|
4
|
+
* Copyright (c) 2019, AUTHOR. All rights reserved.
|
|
5
|
+
* AUTHOR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { createFromIconfontCN } from "@ant-design/icons";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IFilterPopoverProps } from "../FilterPopover/FilterClearIcon";
|
|
3
|
+
import { SubtotalsModalProps } from "../SubtotalsModal/index";
|
|
4
|
+
declare type IconToolsType = {
|
|
5
|
+
onReload?: () => void;
|
|
6
|
+
changeSize?: (size: string) => void;
|
|
7
|
+
showSwitchBtn?: boolean;
|
|
8
|
+
handleChangeTableHeader?: () => void;
|
|
9
|
+
updateColumns: (tree: Record<string, any>[]) => void;
|
|
10
|
+
} & IFilterPopoverProps & SubtotalsModalProps;
|
|
11
|
+
declare const Index: (props: IconToolsType) => React.JSX.Element;
|
|
12
|
+
export default Index;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAwB,EACtB,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAK9D,aAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;IAErC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC;CACtD,GAAG,mBAAmB,GACrB,mBAAmB,CAAC;AAEtB,QAAA,MAAM,KAAK,UAAW,aAAa,sBAuHlC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const initColumns: (arr: any, parent: any) => any;
|
|
2
|
+
/**
|
|
3
|
+
* customColumns 模板数据
|
|
4
|
+
* columns 新接口数据
|
|
5
|
+
*
|
|
6
|
+
* 匹配旧数据 是否有字段增删,返回新表头
|
|
7
|
+
* */
|
|
8
|
+
export declare function adapterColumns(customColumns: Record<string, any>[] | undefined, columns: Record<string, any>[] | undefined | any): {
|
|
9
|
+
JsonPares: any;
|
|
10
|
+
item: Record<string, any>;
|
|
11
|
+
} | {
|
|
12
|
+
JsonPares: null;
|
|
13
|
+
item: null;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QAAS,GAAG,UAAU,GAAG,QAuBhD,CAAC;AA2BF;;;;;KAKK;AACL,wBAAgB,cAAc,CAC5B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,SAAS,EAChD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,SAAS,GAAG,GAAG;;;;;;EA+HjD"}
|
package/dist/IconTools/utils.js
CHANGED
|
@@ -47,11 +47,11 @@ var flatColumns = function flatColumns(_columns) {
|
|
|
47
47
|
return initArr;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* customColumns 模板数据
|
|
52
|
-
* columns 新接口数据
|
|
53
|
-
*
|
|
54
|
-
* 匹配旧数据 是否有字段增删,返回新表头
|
|
50
|
+
/**
|
|
51
|
+
* customColumns 模板数据
|
|
52
|
+
* columns 新接口数据
|
|
53
|
+
*
|
|
54
|
+
* 匹配旧数据 是否有字段增删,返回新表头
|
|
55
55
|
* */
|
|
56
56
|
export function adapterColumns(customColumns, columns) {
|
|
57
57
|
if (customColumns && customColumns.length && columns && columns.length) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IDataSource {
|
|
3
|
+
code: string;
|
|
4
|
+
sumType: string;
|
|
5
|
+
expression: string;
|
|
6
|
+
key: string;
|
|
7
|
+
}
|
|
8
|
+
interface IIncrement {
|
|
9
|
+
options: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
value: IDataSource[];
|
|
14
|
+
onChange: (e: IDataSource[]) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const Increment: React.FC<IIncrement>;
|
|
17
|
+
export default Increment;
|
|
18
|
+
//# sourceMappingURL=Increment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Increment.d.ts","sourceRoot":"","sources":["Increment.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,UAAU;IAClB,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAE5C,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CACtC;AAGD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAoInC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "../../style/components/SubtotalsModal.scss";
|
|
3
|
+
import { listType } from "./dndQuota";
|
|
4
|
+
interface Iprops {
|
|
5
|
+
columns: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
onCancel?: () => void;
|
|
10
|
+
menuCode: string;
|
|
11
|
+
formTemplateCode: string | undefined;
|
|
12
|
+
initConfig?: Record<string, any>;
|
|
13
|
+
editItem?: Record<string, any> | null;
|
|
14
|
+
handleView?: (str: string) => void;
|
|
15
|
+
onReset?: () => void;
|
|
16
|
+
commonRequest?: any;
|
|
17
|
+
permsType?: "public" | "private";
|
|
18
|
+
changeRaadio?: (code: listType) => void;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: React.ForwardRefExoticComponent<Iprops & React.RefAttributes<unknown>>;
|
|
21
|
+
export default _default;
|
|
22
|
+
//# sourceMappingURL=addSubtotals.d.ts.map
|