awing-library 2.1.2-dev.52 → 2.1.2-dev.54
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/esm/AWING/DropDownTreeSelect/components/TreeViewSearch.d.ts +10 -0
- package/dist/esm/AWING/DropDownTreeSelect/components/utils.d.ts +1 -0
- package/dist/esm/AWING/DropDownTreeSelect/index.d.ts +10 -0
- package/dist/esm/AWING/DropDownTreeSelect/type.d.ts +5 -0
- package/dist/esm/AWING/DropDownTreeSelect/utils.d.ts +16 -0
- package/dist/esm/index.js +4 -3
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DropDownTreeSelectValueProps } from '../type';
|
|
2
|
+
type TreeViewSearchProps = {
|
|
3
|
+
data: DropDownTreeSelectValueProps[];
|
|
4
|
+
setListId: (value: string[]) => void;
|
|
5
|
+
inputText?: string;
|
|
6
|
+
groupsList?: string[];
|
|
7
|
+
listId?: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const TreeViewSearch: ({ inputText, groupsList, data, setListId, listId }: TreeViewSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const onlyUnique: <T>(array: T[]) => T[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
import { DropDownTreeSelectValueProps } from './type';
|
|
3
|
+
type DropDownTreeSelectProps = {
|
|
4
|
+
data: DropDownTreeSelectValueProps[];
|
|
5
|
+
listId: string[];
|
|
6
|
+
setListId: (value: string[]) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const DropDownTreeSelect: ({ data, listId, setListId, disabled }: DropDownTreeSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default DropDownTreeSelect;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DropDownTreeSelectValueProps } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* Chuyển đổi dữ liệu phẳng thành cấu trúc cây phân cấp theo kiểu DropDownTreeSelectValueProps
|
|
4
|
+
* @param data Dữ liệu phẳng cần chuyển đổi
|
|
5
|
+
* @param parentIdField Tên trường dùng để xác định ID của node cha, mặc định là "parentObjectId"
|
|
6
|
+
* @param rootValue Giá trị gốc để xác định các node cấp cao nhất, mặc định là 0
|
|
7
|
+
* @returns Mảng các đối tượng DropDownTreeSelectValueProps đã được chuyển đổi
|
|
8
|
+
*/
|
|
9
|
+
export declare const convertDataToDropDownTreeSelect: (data: any[], parentIdField?: string, rootValue?: any) => DropDownTreeSelectValueProps[];
|
|
10
|
+
/**
|
|
11
|
+
* Phiên bản đơn giản hơn của hàm chuyển đổi, tạo cây trực tiếp dựa trên cấu trúc level
|
|
12
|
+
* @param data Dữ liệu phẳng cần chuyển đổi
|
|
13
|
+
* @param parentIdField Tên trường dùng để xác định ID của node cha, mặc định là "parentObjectId"
|
|
14
|
+
* @param rootValue Giá trị gốc để xác định các node cấp cao nhất, mặc định là 0
|
|
15
|
+
*/
|
|
16
|
+
export declare const convertDataToDropDownTreeSelectSimple: (data: any[], parentIdField?: string, rootValue?: any) => DropDownTreeSelectValueProps[];
|
package/dist/esm/index.js
CHANGED
|
@@ -177229,7 +177229,9 @@ function TableEditableBody(props) {
|
|
|
177229
177229
|
})
|
|
177230
177230
|
})]
|
|
177231
177231
|
}, rowIdx);
|
|
177232
|
-
}), spanningRows === null || spanningRows === void 0 ? void 0 : spanningRows.map(row =>
|
|
177232
|
+
}), spanningRows === null || spanningRows === void 0 ? void 0 : spanningRows.map((row, index) => jsxRuntimeExports.jsx(Fragment, {
|
|
177233
|
+
children: row
|
|
177234
|
+
}, index))]
|
|
177233
177235
|
});
|
|
177234
177236
|
}
|
|
177235
177237
|
|
|
@@ -177370,7 +177372,6 @@ function TableEditable(props) {
|
|
|
177370
177372
|
const handleChange = (indexes, fieldName, newValue, valid) => {
|
|
177371
177373
|
let newData = lodashExports.cloneDeep(items);
|
|
177372
177374
|
let newValidation = lodashExports.cloneDeep(dataValidation);
|
|
177373
|
-
console.log('indexes', indexes, fieldName, newValue);
|
|
177374
177375
|
indexes.map(indexOfArray => {
|
|
177375
177376
|
var _a;
|
|
177376
177377
|
newData[indexOfArray][fieldName] = newValue;
|
|
@@ -182630,7 +182631,7 @@ const CreateOrEdit$5 = () => {
|
|
|
182630
182631
|
// State nhận giá trị khi get API
|
|
182631
182632
|
const [notificationFilter, setNotificationFilter] = useState(defaultObjectFilter);
|
|
182632
182633
|
const [loadingNotificationFilter, setLoadingNotificationFilter] = useState(false);
|
|
182633
|
-
const [
|
|
182634
|
+
const [_fieldEditPermission, setFieldEditPermission] = useState({
|
|
182634
182635
|
configType: false,
|
|
182635
182636
|
name: false,
|
|
182636
182637
|
logicalExpression: false
|