@esvndev/es-react-table-interface 1.9.58 → 1.9.60
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/dist/component/ExternalInterface/View/ViewBuilderUI/components/action-builder.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/aggregate-builder.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/audience-permission-builder.d.ts +8 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/available-field-list.d.ts +9 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/common/badge.d.ts +1 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/common/button.d.ts +1 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/common/choice-cards.d.ts +1 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/common/empty-state.d.ts +1 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/common/index.d.ts +1 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/common/section-card.d.ts +8 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/common/segment.d.ts +10 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/common/tooltip-icon-button.d.ts +12 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/conditional-format-builder.d.ts +7 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/filter-builder.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/filter-value-editor.d.ts +7 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/checkbox-input.d.ts +12 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/color-picker-input.d.ts +10 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/creatable-select-box.d.ts +16 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/date-picker-input.d.ts +17 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/datetime-picker-input.d.ts +1 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/form-field.d.ts +12 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/index.d.ts +10 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/multi-select-box.d.ts +18 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/number-input.d.ts +21 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/radio-input.d.ts +1 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/select-box.d.ts +26 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/switch-input.d.ts +12 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/form/text-input.d.ts +27 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/group-builder.d.ts +8 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/quick-filter-builder.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/renderer-options-editor.d.ts +8 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/selected-column-editor.d.ts +9 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/selected-column-list.d.ts +14 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/sort-builder.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/validation-summary.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/view-live-preview.d.ts +13 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/components/view-stepper.d.ts +8 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/index.d.ts +9 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/steps/view-actions-display-step.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/steps/view-columns-step-2.d.ts +10 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/steps/view-filter-sort-step.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/steps/view-format-step.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/steps/view-group-aggregate-step.d.ts +8 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/steps/view-information-step.d.ts +9 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/steps/view-permission-step.d.ts +7 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/steps/view-summary-step.d.ts +12 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/view-builder-context.d.ts +29 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/view-builder-defaults.d.ts +16 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/view-builder-metadata.d.ts +2 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/view-builder-options.d.ts +15 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/view-builder-preview-adapter.d.ts +19 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/view-builder-types.d.ts +317 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/view-builder-validator.d.ts +6 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/view-builder-wizard.d.ts +16 -0
- package/dist/component/ExternalInterface/View/ViewBuilderUI/view-permission-data.d.ts +41 -0
- package/dist/component/ExternalInterface/View/index.d.ts +24 -0
- package/dist/component/ExternalInterface/columns.d.ts +7 -2
- package/dist/component/ExternalInterface/index.d.ts +1 -1
- package/dist/component/ExternalInterface/modalSetView.d.ts +32 -0
- package/dist/component/ExternalInterface/modalView.d.ts +21 -0
- package/dist/component/ToolbarTemplate/ToolbarTemplate.d.ts +10 -0
- package/dist/component/export/component/icon/index.d.ts +3 -0
- package/dist/component/export/component/input/index.d.ts +3 -0
- package/dist/component/export/component/input/input-checkbox/index.d.ts +4 -0
- package/dist/component/export/component/input/input-number/index.d.ts +4 -0
- package/dist/component/export/component/input/input-style/fonts.d.ts +4 -0
- package/dist/component/export/component/input/input-style/index.d.ts +4 -0
- package/dist/component/export/component/input/input-style/input-box.d.ts +4 -0
- package/dist/component/export/component/input/input-text/index.d.ts +4 -0
- package/dist/component/export/component/modal-export-excel/default-data.d.ts +3 -0
- package/dist/component/export/component/modal-export-excel/index.d.ts +4 -0
- package/dist/component/export/component/modal-header/index.d.ts +4 -0
- package/dist/component/export/component/modal-import-excel/index.d.ts +4 -0
- package/dist/component/export/component/modal-import-excel/tab-handle-error.d.ts +12 -0
- package/dist/component/export/component/modal-import-excel/tab-merge.d.ts +4 -0
- package/dist/component/export/component/modal-import-excel/tab-select-file.d.ts +4 -0
- package/dist/component/export/component/modal-import-excel/tab-validate.d.ts +4 -0
- package/dist/component/export/component/modal-import-excel/utils.d.ts +7 -0
- package/dist/component/export/component/notifications.d.ts +9 -0
- package/dist/component/export/component/request/index.d.ts +4 -0
- package/dist/component/export/component/select-table/index.d.ts +4 -0
- package/dist/component/export/component/sidebar/index.d.ts +4 -0
- package/dist/component/export/component/type/index.d.ts +351 -0
- package/dist/component/export/component/utils.d.ts +19 -0
- package/dist/component/export/component/wizard/index.d.ts +4 -0
- package/dist/component/export/index.d.ts +6 -0
- package/dist/component/option_configs/index.d.ts +12 -2
- package/dist/component/table_configs/index.d.ts +13 -1
- package/dist/component/table_configs/table.d.ts +1 -1
- package/dist/component/table_configs/tableConfig.d.ts +2 -13
- package/dist/func.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +26 -9
- package/dist/index.js.map +1 -1
- package/dist/interface.d.ts +12 -1
- package/dist/libs/breadcrumbs-not-link/index.d.ts +1 -8
- package/dist/libs/initAbility/index.d.ts +4 -0
- package/dist/libs/input-no-control/input-text/index.d.ts +1 -0
- package/dist/libs/select/select.d.ts +2 -1
- package/dist/libs/template/index.d.ts +5 -4
- package/dist/ultility/Export/InterfaceExport.d.ts +1 -1
- package/dist/ultility/api/menu/index.d.ts +1 -2
- package/dist/ultility/api/requester.d.ts +7 -6
- package/dist/ultility/request/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
export type ViewScope = 'personal' | 'group' | 'system';
|
|
2
|
+
export type ViewBuilderMode = 'add' | 'edit';
|
|
3
|
+
export type ViewBuilderAction = 'add' | 'edit' | 'delete';
|
|
4
|
+
export type FieldDataType = 'text' | 'number' | 'percent' | 'date' | 'boolean' | 'status' | 'choice' | 'user' | 'lookup' | 'organization' | 'email' | 'phone' | 'url' | 'image' | 'file' | 'multiLookup' | 'duration' | 'address' | 'dimension' | 'composite';
|
|
5
|
+
export type PreviewDevice = 'desktop' | 'tablet' | 'mobile';
|
|
6
|
+
export type PreviewState = 'data' | 'grouped' | 'empty' | 'loading' | 'error' | 'permission';
|
|
7
|
+
export type LoadingMode = 'serverPaging' | 'virtualScroll' | 'infiniteScroll' | 'loadMore';
|
|
8
|
+
export type OptionItem<T extends string = string> = {
|
|
9
|
+
value: T;
|
|
10
|
+
label: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
};
|
|
13
|
+
export type FieldMetadata = {
|
|
14
|
+
field: string;
|
|
15
|
+
label: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
dataType: FieldDataType;
|
|
18
|
+
sortable: boolean;
|
|
19
|
+
filterable: boolean;
|
|
20
|
+
groupable: boolean;
|
|
21
|
+
aggregatable: boolean;
|
|
22
|
+
defaultWidth: number;
|
|
23
|
+
defaultRenderer: string;
|
|
24
|
+
defaultFormat: string;
|
|
25
|
+
sensitive?: boolean;
|
|
26
|
+
hidden?: boolean;
|
|
27
|
+
secondaryField?: string;
|
|
28
|
+
startField?: string;
|
|
29
|
+
endField?: string;
|
|
30
|
+
sourceFields?: string[];
|
|
31
|
+
};
|
|
32
|
+
export type ColumnRendererOptions = Record<string, unknown>;
|
|
33
|
+
export declare const VIEW_COLUMN_FIELDS: readonly ["title", "description", "sortOrder", "width", "textAlign", "freeze", "wrapText", "allowSorting", "allowFiltering", "orderBySort", "orderBy", "allowGroup", "groupSort", "isSumary", "isSearchKeyword", "isHidden", "isActiveExcel"];
|
|
34
|
+
export type ViewColumnConfig = {
|
|
35
|
+
id: string;
|
|
36
|
+
field: string;
|
|
37
|
+
title: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
colVirtual: string;
|
|
40
|
+
colTemplate: string;
|
|
41
|
+
visible: boolean;
|
|
42
|
+
isActive: boolean;
|
|
43
|
+
isChoose?: boolean;
|
|
44
|
+
order: number;
|
|
45
|
+
widthMode: 'fixed' | 'auto' | 'fill';
|
|
46
|
+
width: number;
|
|
47
|
+
minWidth: number;
|
|
48
|
+
maxWidth: number;
|
|
49
|
+
textAlign: 'left' | 'center' | 'right';
|
|
50
|
+
freeze: undefined | 'left' | 'right';
|
|
51
|
+
wrapText?: boolean;
|
|
52
|
+
overflow: 'ellipsis' | 'wrap' | 'singleLine';
|
|
53
|
+
tooltip: boolean;
|
|
54
|
+
rendererOptions: ColumnRendererOptions;
|
|
55
|
+
format: string;
|
|
56
|
+
renderer?: string;
|
|
57
|
+
prefix?: string;
|
|
58
|
+
suffix?: string;
|
|
59
|
+
emptyText?: string;
|
|
60
|
+
maxLength?: number;
|
|
61
|
+
sortable: boolean;
|
|
62
|
+
filterable: boolean;
|
|
63
|
+
allowSorting?: boolean;
|
|
64
|
+
allowFiltering?: boolean;
|
|
65
|
+
orderBy?: string;
|
|
66
|
+
orderBySort?: number;
|
|
67
|
+
allowGroup?: boolean;
|
|
68
|
+
groupSort?: number;
|
|
69
|
+
groupable: boolean;
|
|
70
|
+
resizable: boolean;
|
|
71
|
+
sensitive: boolean;
|
|
72
|
+
sourceFields?: string[];
|
|
73
|
+
calculated?: boolean;
|
|
74
|
+
dataType?: FieldDataType;
|
|
75
|
+
type?: string;
|
|
76
|
+
typeDecimal?: any;
|
|
77
|
+
optionTemplate?: any;
|
|
78
|
+
typeDefaultValue?: 'text' | 'multiText' | 'number' | 'multiNumber' | 'bit';
|
|
79
|
+
operator?: any;
|
|
80
|
+
value: any;
|
|
81
|
+
label: any;
|
|
82
|
+
isSearchKeyword?: boolean;
|
|
83
|
+
isHidden?: boolean;
|
|
84
|
+
isActiveExcel?: boolean;
|
|
85
|
+
isSumary?: boolean;
|
|
86
|
+
};
|
|
87
|
+
export type RendererOptionInputType = 'text' | 'number' | 'checkbox' | 'select' | 'field' | 'multiField' | 'color' | 'iconMap' | 'colorMap';
|
|
88
|
+
export type RendererOptionDefinition = {
|
|
89
|
+
key: string;
|
|
90
|
+
label: string;
|
|
91
|
+
inputType: RendererOptionInputType;
|
|
92
|
+
required?: boolean;
|
|
93
|
+
options?: OptionItem[];
|
|
94
|
+
min?: number;
|
|
95
|
+
max?: number;
|
|
96
|
+
step?: number;
|
|
97
|
+
defaultValue?: unknown;
|
|
98
|
+
visibleWhen?: Record<string, unknown>;
|
|
99
|
+
description?: string;
|
|
100
|
+
};
|
|
101
|
+
export type FilterCondition = {
|
|
102
|
+
id: string;
|
|
103
|
+
colVirtual: string;
|
|
104
|
+
optionTemplate?: string;
|
|
105
|
+
typeDefaultValue?: 'text' | 'multiText' | 'number' | 'multiNumber' | 'bit';
|
|
106
|
+
defaultValue: any;
|
|
107
|
+
operator: string;
|
|
108
|
+
value?: unknown;
|
|
109
|
+
valueTo?: unknown;
|
|
110
|
+
locked?: boolean;
|
|
111
|
+
};
|
|
112
|
+
export type FilterGroup = {
|
|
113
|
+
id: string;
|
|
114
|
+
logic: 'AND' | 'OR';
|
|
115
|
+
conditions: FilterCondition[];
|
|
116
|
+
};
|
|
117
|
+
export type SortRule = {
|
|
118
|
+
id: string;
|
|
119
|
+
field: string;
|
|
120
|
+
orderBy: 'asc' | 'desc';
|
|
121
|
+
nullOrder: 'first' | 'last';
|
|
122
|
+
caseSensitive: boolean;
|
|
123
|
+
order: number;
|
|
124
|
+
};
|
|
125
|
+
export type QuickFilterConfig = {
|
|
126
|
+
id: string;
|
|
127
|
+
field: string;
|
|
128
|
+
control: string;
|
|
129
|
+
label?: string;
|
|
130
|
+
placeholder?: string;
|
|
131
|
+
defaultValue?: unknown;
|
|
132
|
+
required?: boolean;
|
|
133
|
+
clearable?: boolean;
|
|
134
|
+
order: number;
|
|
135
|
+
};
|
|
136
|
+
export type GroupRule = {
|
|
137
|
+
id: string;
|
|
138
|
+
field: string;
|
|
139
|
+
direction: 'asc' | 'desc';
|
|
140
|
+
subtotal: boolean;
|
|
141
|
+
emptyLabel: string;
|
|
142
|
+
order: number;
|
|
143
|
+
};
|
|
144
|
+
export type AggregateRule = {
|
|
145
|
+
id: string;
|
|
146
|
+
field: string;
|
|
147
|
+
fn: string;
|
|
148
|
+
label?: string;
|
|
149
|
+
format?: string;
|
|
150
|
+
position: 'groupFooter' | 'tableFooter' | 'both';
|
|
151
|
+
order: number;
|
|
152
|
+
};
|
|
153
|
+
export type ConditionalFormatRule = {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
enabled: boolean;
|
|
157
|
+
field: string;
|
|
158
|
+
operator: string;
|
|
159
|
+
value?: unknown;
|
|
160
|
+
valueTo?: unknown;
|
|
161
|
+
textColor?: string;
|
|
162
|
+
backgroundColor?: string;
|
|
163
|
+
icon?: string;
|
|
164
|
+
fontWeight?: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
165
|
+
applyTo: 'cell' | 'row';
|
|
166
|
+
priority: number;
|
|
167
|
+
stopIfTrue: boolean;
|
|
168
|
+
};
|
|
169
|
+
export type ViewActionConfig = {
|
|
170
|
+
id: string;
|
|
171
|
+
label: string;
|
|
172
|
+
enabled: any;
|
|
173
|
+
placement: 'toolbar' | 'row' | 'contextMenu';
|
|
174
|
+
selection: 'none' | 'single' | 'multiple';
|
|
175
|
+
order: number;
|
|
176
|
+
permissionAction?: string;
|
|
177
|
+
permissionSubject?: string;
|
|
178
|
+
requireConfirmation?: boolean;
|
|
179
|
+
};
|
|
180
|
+
export type ViewPermissionTargetType = 'user' | 'role' | 'department' | 'position' | 'job';
|
|
181
|
+
export type ViewPermissionTarget = {
|
|
182
|
+
id: string;
|
|
183
|
+
name: string;
|
|
184
|
+
code?: string;
|
|
185
|
+
userId?: string;
|
|
186
|
+
roleId?: string;
|
|
187
|
+
employeeId?: string;
|
|
188
|
+
email?: string;
|
|
189
|
+
};
|
|
190
|
+
export type ViewPrivilegeCode = 'OPEN' | 'EDIT' | 'DELETE';
|
|
191
|
+
export type AudiencePermission = {
|
|
192
|
+
id: string;
|
|
193
|
+
targetType: ViewPermissionTargetType;
|
|
194
|
+
targetIds: string[];
|
|
195
|
+
targets: ViewPermissionTarget[];
|
|
196
|
+
privilegeCodes: ViewPrivilegeCode[];
|
|
197
|
+
};
|
|
198
|
+
export type PermissionManagedSnapshot = {
|
|
199
|
+
users: Record<string, ViewPrivilegeCode[]>;
|
|
200
|
+
roles: Record<string, ViewPrivilegeCode[]>;
|
|
201
|
+
};
|
|
202
|
+
export type ResolvedPermissionUser = {
|
|
203
|
+
employeeId: string;
|
|
204
|
+
employeeCode?: string;
|
|
205
|
+
employeeName: string;
|
|
206
|
+
userId: string;
|
|
207
|
+
accountName?: string;
|
|
208
|
+
email?: string;
|
|
209
|
+
departmentName?: string;
|
|
210
|
+
positionName?: string;
|
|
211
|
+
jobName?: string;
|
|
212
|
+
sourceNames: string[];
|
|
213
|
+
privilegeCodes: ViewPrivilegeCode[];
|
|
214
|
+
};
|
|
215
|
+
export type ResolvedPermissionRole = {
|
|
216
|
+
roleId: string;
|
|
217
|
+
roleName: string;
|
|
218
|
+
privilegeCodes: ViewPrivilegeCode[];
|
|
219
|
+
};
|
|
220
|
+
export type ViewDisplayConfig = {
|
|
221
|
+
density: 'compact' | 'standard' | 'comfortable';
|
|
222
|
+
rowHeight: number;
|
|
223
|
+
striped: boolean;
|
|
224
|
+
showGridLines: boolean;
|
|
225
|
+
stickyHeader: boolean;
|
|
226
|
+
showRowNumber: boolean;
|
|
227
|
+
showCheckbox: boolean;
|
|
228
|
+
showColumnChoose: boolean;
|
|
229
|
+
allowResize: boolean;
|
|
230
|
+
allowReorder: boolean;
|
|
231
|
+
showTooltip: boolean;
|
|
232
|
+
emptyMessage: string;
|
|
233
|
+
loadingMode: LoadingMode;
|
|
234
|
+
pageSize: number;
|
|
235
|
+
customPageSize?: number;
|
|
236
|
+
pagerPosition: 'top' | 'bottom' | 'both' | 'stickyBottom';
|
|
237
|
+
showTotalCount: boolean;
|
|
238
|
+
autoRefreshSeconds: number;
|
|
239
|
+
pauseRefreshWhenInactive?: boolean;
|
|
240
|
+
skipRefreshWhileEditing?: boolean;
|
|
241
|
+
defaultNumberFormat: string;
|
|
242
|
+
defaultPercentFormat: string;
|
|
243
|
+
defaultDateFormat: string;
|
|
244
|
+
defaultCurrency: string;
|
|
245
|
+
locale: string;
|
|
246
|
+
timezone: string;
|
|
247
|
+
emptyValue: string;
|
|
248
|
+
};
|
|
249
|
+
export type ViewDefinition = {
|
|
250
|
+
id: string;
|
|
251
|
+
code: string;
|
|
252
|
+
name: string;
|
|
253
|
+
description: string;
|
|
254
|
+
resourceCode: string;
|
|
255
|
+
moduleCode: string;
|
|
256
|
+
folder?: string;
|
|
257
|
+
tags: string[];
|
|
258
|
+
scope: ViewScope;
|
|
259
|
+
isDefault: boolean;
|
|
260
|
+
columns: ViewColumnConfig[];
|
|
261
|
+
filterEnabled: boolean;
|
|
262
|
+
filterGroups: FilterGroup[];
|
|
263
|
+
sorts: SortRule[];
|
|
264
|
+
quickFilters: QuickFilterConfig[];
|
|
265
|
+
groups: GroupRule[];
|
|
266
|
+
aggregates: AggregateRule[];
|
|
267
|
+
conditionalFormats: ConditionalFormatRule[];
|
|
268
|
+
actions: ViewActionConfig[];
|
|
269
|
+
audiences: AudiencePermission[];
|
|
270
|
+
permissionManagedSnapshot?: PermissionManagedSnapshot;
|
|
271
|
+
display: ViewDisplayConfig;
|
|
272
|
+
createdBy?: string;
|
|
273
|
+
organizationId?: string;
|
|
274
|
+
parentId?: string;
|
|
275
|
+
oldViewId?: string;
|
|
276
|
+
viewId?: string;
|
|
277
|
+
viewName?: string;
|
|
278
|
+
subSystem?: string;
|
|
279
|
+
storeProcedure?: string;
|
|
280
|
+
dbName?: string;
|
|
281
|
+
parentView?: string;
|
|
282
|
+
continue?: boolean;
|
|
283
|
+
detail: any[];
|
|
284
|
+
table: any[];
|
|
285
|
+
optionTable: any[];
|
|
286
|
+
optionTemplate: any[];
|
|
287
|
+
tableGroup: any[];
|
|
288
|
+
tableSort: any[];
|
|
289
|
+
isTree: boolean;
|
|
290
|
+
parentIdDefaultIsNull?: boolean;
|
|
291
|
+
parentIdDefault?: string;
|
|
292
|
+
tree_isGetParent?: boolean;
|
|
293
|
+
isGroup: boolean;
|
|
294
|
+
isGroupClient?: boolean;
|
|
295
|
+
hiddenColumnGroup?: boolean;
|
|
296
|
+
showGroupIcon?: boolean;
|
|
297
|
+
disablePrint?: boolean;
|
|
298
|
+
disableExcelList?: boolean;
|
|
299
|
+
displayChildSidebar?: boolean;
|
|
300
|
+
showSum?: boolean;
|
|
301
|
+
showSumTotal?: boolean;
|
|
302
|
+
striped?: boolean;
|
|
303
|
+
showView?: boolean;
|
|
304
|
+
groupData: string;
|
|
305
|
+
more: string;
|
|
306
|
+
product?: string;
|
|
307
|
+
breakText?: string;
|
|
308
|
+
whereKeyOrKey?: string;
|
|
309
|
+
isFieldParent?: string;
|
|
310
|
+
isFieldChild?: string;
|
|
311
|
+
};
|
|
312
|
+
export type ViewBuilderResult = {
|
|
313
|
+
action: ViewBuilderAction;
|
|
314
|
+
data: ViewDefinition;
|
|
315
|
+
};
|
|
316
|
+
export declare const normalizeWidth: (value: unknown, fallback?: number) => number;
|
|
317
|
+
export declare const normalizePageSize: (value: unknown, fallback?: number) => number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FieldMetadata, ViewBuilderMode, ViewBuilderResult, ViewColumnConfig, ViewDefinition } from './view-builder-types';
|
|
3
|
+
export type ViewBuilderWizardProps = {
|
|
4
|
+
mode: ViewBuilderMode;
|
|
5
|
+
initialData: ViewDefinition;
|
|
6
|
+
metadata?: FieldMetadata[];
|
|
7
|
+
defaultColumns?: ViewColumnConfig[];
|
|
8
|
+
rows?: Record<string, unknown>[];
|
|
9
|
+
canAssignPermission?: boolean;
|
|
10
|
+
canDelete?: boolean;
|
|
11
|
+
onPreview?: (data: ViewDefinition) => void;
|
|
12
|
+
onSubmit: (result: ViewBuilderResult) => void;
|
|
13
|
+
onCancel: () => void;
|
|
14
|
+
onClear?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const ViewBuilderWizard: ({ mode, initialData, metadata: metadataProp, rows: rowsProp, canAssignPermission, canDelete, onPreview, onSubmit, onCancel, onClear }: ViewBuilderWizardProps) => React.JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { AudiencePermission, PermissionManagedSnapshot, ResolvedPermissionRole, ResolvedPermissionUser, ViewPermissionTarget, ViewPermissionTargetType, ViewPrivilegeCode } from './view-builder-types';
|
|
2
|
+
export type PermissionCatalogOption = ViewPermissionTarget & {
|
|
3
|
+
loginId?: string;
|
|
4
|
+
key?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
employee?: any;
|
|
9
|
+
countEmployee?: number;
|
|
10
|
+
children?: PermissionCatalogOption[];
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type PermissionCatalog = Record<ViewPermissionTargetType, PermissionCatalogOption[]>;
|
|
15
|
+
export type PermissionResolveResult = {
|
|
16
|
+
users: ResolvedPermissionUser[];
|
|
17
|
+
roles: ResolvedPermissionRole[];
|
|
18
|
+
countByRule: Record<string, number>;
|
|
19
|
+
};
|
|
20
|
+
export type SyncGenericViewPermissionsArgs = {
|
|
21
|
+
desiredRules: AudiencePermission[];
|
|
22
|
+
previousManagedSnapshot: PermissionManagedSnapshot;
|
|
23
|
+
viewCode: string;
|
|
24
|
+
productCode: string;
|
|
25
|
+
organizationId: string;
|
|
26
|
+
};
|
|
27
|
+
export type SyncGenericViewPermissionResult = {
|
|
28
|
+
nextManagedSnapshot: PermissionManagedSnapshot;
|
|
29
|
+
};
|
|
30
|
+
export declare const createEmptyPermissionManagedSnapshot: () => PermissionManagedSnapshot;
|
|
31
|
+
export declare const createPermissionManagedSnapshot: (resolved: PermissionResolveResult) => PermissionManagedSnapshot;
|
|
32
|
+
export declare const collectManagedPermissionDeleteIds: (previous: Record<string, ViewPrivilegeCode[]>, desired: Map<string, Set<ViewPrivilegeCode>>, current: Map<string, Map<string, string>>) => string[];
|
|
33
|
+
export declare const createNextManagedPermissionRecord: (previous: Record<string, ViewPrivilegeCode[]>, desired: Map<string, Set<ViewPrivilegeCode>>, actuallyAdded: Record<string, ViewPrivilegeCode[]>) => Record<string, ViewPrivilegeCode[]>;
|
|
34
|
+
export declare const normalizePermissionRules: (rules: AudiencePermission[]) => AudiencePermission[];
|
|
35
|
+
export declare const loadPermissionCatalog: (organizationId: string) => Promise<PermissionCatalog>;
|
|
36
|
+
export declare const resolvePermissionUsers: (rules: AudiencePermission[], organizationId: string, options?: {
|
|
37
|
+
includeRoleMembers?: boolean;
|
|
38
|
+
enrichUserProfiles?: boolean;
|
|
39
|
+
}) => Promise<PermissionResolveResult>;
|
|
40
|
+
export declare const hydratePermissionRulesFromGeneric: (rules: AudiencePermission[], viewCode: string, productCode: string, organizationId: string) => Promise<AudiencePermission[]>;
|
|
41
|
+
export declare const syncGenericViewPermissions: ({ desiredRules, previousManagedSnapshot, viewCode, productCode, organizationId }: SyncGenericViewPermissionsArgs) => Promise<SyncGenericViewPermissionResult>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ModalViewProps = {
|
|
3
|
+
openModal: boolean;
|
|
4
|
+
handleModal: () => void;
|
|
5
|
+
viewId?: string;
|
|
6
|
+
thisView?: string;
|
|
7
|
+
typeModal?: 'Edit' | 'Del' | 'Add';
|
|
8
|
+
setLoadView?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
+
processEnv?: any;
|
|
10
|
+
windowSize: {
|
|
11
|
+
innerHeight: number;
|
|
12
|
+
innerWidth: number;
|
|
13
|
+
};
|
|
14
|
+
t?: any;
|
|
15
|
+
canDelView?: boolean;
|
|
16
|
+
canEditView?: boolean;
|
|
17
|
+
onEditView?: any;
|
|
18
|
+
canAddView?: boolean;
|
|
19
|
+
onAddView?: any;
|
|
20
|
+
viewRows: any[];
|
|
21
|
+
onImportView?: (jsonData: any) => void;
|
|
22
|
+
};
|
|
23
|
+
declare const ModalView: ({ openModal, handleModal, processEnv, setLoadView, viewId, windowSize, canEditView, canDelView, onEditView, canAddView, onAddView, viewRows: providedViewRows, onImportView, t }: ModalViewProps) => React.JSX.Element;
|
|
24
|
+
export default ModalView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnTable } from "es-grid-template";
|
|
2
|
-
export declare const renderColumns: ({ optionFreeze, optionType, watch, optionTree, optionTypeTemplate, optionDataType, typeModal, t, optionColumn, allScreen, optionTextAlign, isParent, externalT }: {
|
|
2
|
+
export declare const renderColumns: ({ optionFreeze, optionType, watch, optionTree, optionTypeTemplate, optionDataType, typeModal, t, optionColumn, allScreen, optionTextAlign, isParent, externalT, optionWrap }: {
|
|
3
3
|
allScreen: any[];
|
|
4
4
|
optionColumn: any;
|
|
5
5
|
optionFreeze: any[];
|
|
@@ -8,12 +8,13 @@ export declare const renderColumns: ({ optionFreeze, optionType, watch, optionTr
|
|
|
8
8
|
optionTree: any[];
|
|
9
9
|
optionTextAlign: any[];
|
|
10
10
|
optionDataType: any[];
|
|
11
|
+
optionWrap: any[];
|
|
11
12
|
optionTypeTemplate: any[];
|
|
12
13
|
typeModal: string;
|
|
13
14
|
t: any;
|
|
14
15
|
externalT: any;
|
|
15
16
|
isParent: boolean;
|
|
16
|
-
}) =>
|
|
17
|
+
}) => any[];
|
|
17
18
|
export declare const renderColumnsSort: ({ watch, t }: {
|
|
18
19
|
watch: any;
|
|
19
20
|
optionColumn: any;
|
|
@@ -68,4 +69,8 @@ export interface RowI {
|
|
|
68
69
|
widthPicture?: string;
|
|
69
70
|
heightPicture?: string;
|
|
70
71
|
isActiveExcel?: any;
|
|
72
|
+
allowSorting?: any;
|
|
73
|
+
allowFiltering?: any;
|
|
74
|
+
allowGroup?: any;
|
|
75
|
+
groupSort?: any;
|
|
71
76
|
}
|
|
@@ -6,7 +6,7 @@ export { default as ModalComponentSetView } from './modalSetView';
|
|
|
6
6
|
export { default as ModalSetView } from './modalSetView';
|
|
7
7
|
export { default as ModalSetViewPage } from './modalSetView';
|
|
8
8
|
export { HeaderExternalInterface } from '../Header/Header';
|
|
9
|
-
export { ToolbarTemplate, listFilterDate } from '../ToolbarTemplate/ToolbarTemplate';
|
|
9
|
+
export { ToolbarTemplate, listFilterDate, renderListDateTemplate } from '../ToolbarTemplate/ToolbarTemplate';
|
|
10
10
|
export { default as TableConfigPage } from '../table_configs';
|
|
11
11
|
export { SelectComp } from '../../libs/select/select';
|
|
12
12
|
export { createEsExternalTranslator, esExternalLocales, translateEsExternal, useEsExternalTranslator } from '../../i18n';
|
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { IDataView } from "../table_configs/modalSetting";
|
|
3
|
+
export interface IData extends IDataView {
|
|
4
|
+
id?: string;
|
|
5
|
+
viewId?: string;
|
|
6
|
+
viewName?: string;
|
|
7
|
+
subSystem?: string;
|
|
8
|
+
storeProcedure?: string;
|
|
9
|
+
dbName?: string;
|
|
10
|
+
typeSubmit?: string;
|
|
11
|
+
detail: any[];
|
|
12
|
+
listActive: any[];
|
|
13
|
+
listInactive: any[];
|
|
14
|
+
table: any[];
|
|
15
|
+
optionTable: any[];
|
|
16
|
+
optionTemplate: any[];
|
|
17
|
+
parent: any;
|
|
18
|
+
displayType?: 'list' | 'compact' | 'table' | 'card' | 'calendar';
|
|
19
|
+
scope?: 'private' | 'shared' | 'public';
|
|
20
|
+
active?: boolean;
|
|
21
|
+
defaults?: {
|
|
22
|
+
myDefault?: boolean;
|
|
23
|
+
departmentDefault?: boolean;
|
|
24
|
+
departmentId?: string;
|
|
25
|
+
organizationDefault?: boolean;
|
|
26
|
+
organizationId?: string;
|
|
27
|
+
systemDefault?: boolean;
|
|
28
|
+
allowUserEdit?: boolean;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
2
31
|
declare const ModalComponentSetView: (props: {
|
|
3
32
|
typeModal: "Edit" | "Del" | "Add";
|
|
4
33
|
setTypeModal: any;
|
|
@@ -14,5 +43,8 @@ declare const ModalComponentSetView: (props: {
|
|
|
14
43
|
setView: any;
|
|
15
44
|
permissionSubject: any;
|
|
16
45
|
outside: boolean;
|
|
46
|
+
gridColumns?: any[];
|
|
47
|
+
previewRows?: Record<string, unknown>[];
|
|
48
|
+
builderEnabled?: boolean;
|
|
17
49
|
}) => React.JSX.Element;
|
|
18
50
|
export default ModalComponentSetView;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IExternalInterface } from "../../interface";
|
|
3
|
+
declare const ModalView: (props: {
|
|
4
|
+
typeModal: "Edit" | "Del" | "Add";
|
|
5
|
+
openModalOrder: boolean;
|
|
6
|
+
handleModalOrder: any;
|
|
7
|
+
viewId: string;
|
|
8
|
+
thisView: string;
|
|
9
|
+
setLoadView: any;
|
|
10
|
+
processEnv?: any;
|
|
11
|
+
t: any;
|
|
12
|
+
setView?: any;
|
|
13
|
+
gridColumns?: any[];
|
|
14
|
+
previewRows?: Record<string, unknown>[];
|
|
15
|
+
paramToolbar?: any[];
|
|
16
|
+
canAssignPermission?: boolean;
|
|
17
|
+
canDeleteView?: boolean;
|
|
18
|
+
externalInterfaceProps?: IExternalInterface;
|
|
19
|
+
importedJsonData?: any;
|
|
20
|
+
}) => React.JSX.Element;
|
|
21
|
+
export default ModalView;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IToolbarTemplate } from "../../ultility/Export";
|
|
3
3
|
import "../../ultility/css/css.scss";
|
|
4
|
+
/**
|
|
5
|
+
* Dùng để xây dựng thanh toolbar phía trên bảng
|
|
6
|
+
*/
|
|
7
|
+
type TDateFilterItem = {
|
|
8
|
+
value: number | null;
|
|
9
|
+
label: string;
|
|
10
|
+
type: Date[];
|
|
11
|
+
};
|
|
12
|
+
export declare const renderListDateTemplate: (item: any, index: number, lang: string, dateFilterOptions: TDateFilterItem[], disabled?: boolean) => React.JSX.Element;
|
|
4
13
|
export declare const listFilterDate: (t?: any) => ({
|
|
5
14
|
value: null;
|
|
6
15
|
label: any;
|
|
@@ -19,3 +28,4 @@ export declare const ToolbarTemplate: (props: IToolbarTemplate[]) => ({
|
|
|
19
28
|
position: "left" | "Top" | "Bottom";
|
|
20
29
|
align: "left" | "right" | "center";
|
|
21
30
|
})[];
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IFDataProps_ExportExcel } from '../type';
|
|
3
|
+
declare const ExportExcelComponent: ({ openModal, typeModal, handleModal, windowSize, dataItem, columns, columnGroups, stateid, url, dataOption, t }: IFDataProps_ExportExcel) => React.JSX.Element;
|
|
4
|
+
export { ExportExcelComponent };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IFNumberFormat } from '../type';
|
|
3
|
+
export interface IFPropsDetail {
|
|
4
|
+
dataError: any[];
|
|
5
|
+
windowSize: any;
|
|
6
|
+
formatNumber?: IFNumberFormat;
|
|
7
|
+
pageOptions: number[];
|
|
8
|
+
pageSizeDefault: number;
|
|
9
|
+
headerHandleErrorExcelColumns: any[];
|
|
10
|
+
}
|
|
11
|
+
declare const TabHandleErrorImportExcel: (props: IFPropsDetail) => React.JSX.Element;
|
|
12
|
+
export default TabHandleErrorImportExcel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { UseFormSetValue } from 'react-hook-form';
|
|
3
|
+
import { IFDataMapExcel } from '../type';
|
|
4
|
+
export declare const getSheetsExcel: (file: any, setValue?: UseFormSetValue<any>, setOptionSheetName?: Dispatch<SetStateAction<any[]>>) => void;
|
|
5
|
+
export declare const getColumnsSheetExcel: (file: any, headerRow: number, sheetName: string, handleSetColumns: any) => void;
|
|
6
|
+
export declare const mapDataImportExcel: (dataSheet: any[], headerRow: number, dataMap: IFDataMapExcel[], handleValidate: any) => Promise<any[]>;
|
|
7
|
+
export declare const connectString: (t: any, props: string[]) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TEsExternalTranslator } from '../../../i18n';
|
|
2
|
+
export declare const messageHtmlBoxConfirm: (t: TEsExternalTranslator, message: any[], handle: any, data: any, title?: string, btnOk?: string, btnCancel?: string) => void;
|
|
3
|
+
export declare const messageHtmlBoxError: (t: TEsExternalTranslator, message: any[], title?: string, btnCancel?: string) => void;
|
|
4
|
+
export declare const messageBoxConfirmDelete: (t: TEsExternalTranslator, handle: any, data: any) => void;
|
|
5
|
+
export declare const messageBoxConfirm: (t: TEsExternalTranslator, handle: any, data: any, message: string, title?: string, btnOk?: string, btnCancel?: string) => void;
|
|
6
|
+
export declare const messageBoxError: (t: TEsExternalTranslator, message: string, title?: string, btnCancel?: string) => void;
|
|
7
|
+
export declare const notificationError: (param: string) => string;
|
|
8
|
+
export declare const notificationSuccess: (param: string) => string;
|
|
9
|
+
export declare const messageBoxConfirm2: (t: TEsExternalTranslator, data: any, data2: any, message: string) => Promise<boolean>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const downloadTemplateApiCall: (data?: any, config?: any, timeout?: number) => Promise<Blob | null | undefined>;
|
|
2
|
+
export declare const exportApiCall: (data?: any, config?: any, timeout?: number) => Promise<Blob | null | undefined>;
|
|
3
|
+
export declare const importApiCallCheckInvalidData: (data?: any, config?: any, timeout?: number) => Promise<any>;
|
|
4
|
+
export declare const importApiCall: (data?: any, config?: any, timeout?: number) => Promise<any>;
|