awing-library 2.1.2-dev.65 → 2.1.2-dev.67

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.
@@ -94,6 +94,7 @@ export interface IPlaceQuery {
94
94
  total: number;
95
95
  }>;
96
96
  getPlacesByIds: (placeIds: string[]) => Promise<IPlace[]>;
97
+ isSelectedAll?: boolean;
97
98
  }
98
99
  export interface PlaceFilterProps extends IPlaceQuery {
99
100
  filterFields: IFilterField[];
package/dist/esm/index.js CHANGED
@@ -25030,8 +25030,8 @@ var WorkspaceSharing$4 = {
25030
25030
  Create: "Add",
25031
25031
  AddALL: "Add all"
25032
25032
  },
25033
- AliasDestination: "Alias Destination",
25034
- SourceDirectoryId: "Source Directory ID"
25033
+ SharingKey: "Sharing Key",
25034
+ SourceDirectory: "Source Directory"
25035
25035
  };
25036
25036
  var Language$4 = {
25037
25037
  TranslateBy: "(Translate By {{author})",
@@ -26596,8 +26596,8 @@ var WorkspaceSharing$3 = {
26596
26596
  Create: "Thêm",
26597
26597
  AddALL: "Thêm tất cả"
26598
26598
  },
26599
- AliasDestination: "Mã chia sẻ",
26600
- SourceDirectoryId: "Thư mục nguồn"
26599
+ SharingKey: "Mã chia sẻ",
26600
+ SourceDirectory: "Thư mục nguồn"
26601
26601
  };
26602
26602
  var Language$3 = {
26603
26603
  TranslateBy: "(Dịch bởi {{author}})",
@@ -28126,8 +28126,8 @@ var WorkspaceSharing$2 = {
28126
28126
  Create: "Tambah",
28127
28127
  AddALL: "Tambah Semua"
28128
28128
  },
28129
- AliasDestination: "Alias tujuan",
28130
- SourceDirectoryId: "ID Direktori Sumber"
28129
+ SharingKey: "Kunci Berbagi",
28130
+ SourceDirectory: "Direktori Sumber"
28131
28131
  };
28132
28132
  var Language$2 = {
28133
28133
  TranslateBy: "(Diterjemahkan oleh {{author})",
@@ -29648,8 +29648,8 @@ var WorkspaceSharing$1 = {
29648
29648
  Create: "เพิ่ม",
29649
29649
  AddALL: "เพิ่มทั้งหมด"
29650
29650
  },
29651
- AliasDestination: "ชื่อปลายทาง",
29652
- SourceDirectoryId: "ID ของไดเรกทอรีต้นทาง"
29651
+ SharingKey: "คีย์การแชร์",
29652
+ SourceDirectory: "ไดเรกทอรีต้นทาง"
29653
29653
  };
29654
29654
  var Language$1 = {
29655
29655
  TranslateBy: "(แปลโดย {{author})",
@@ -31170,8 +31170,8 @@ var WorkspaceSharing = {
31170
31170
  Create: "追加",
31171
31171
  AddALL: "すべて追加"
31172
31172
  },
31173
- AliasDestination: "エイリアス宛先",
31174
- SourceDirectoryId: "ソースディレクトリID"
31173
+ SharingKey: "共有キー",
31174
+ SourceDirectory: "ソースディレクトリ"
31175
31175
  };
31176
31176
  var Language = {
31177
31177
  TranslateBy: "(翻訳者 {{author})",
@@ -175229,7 +175229,8 @@ const DataTable = props => {
175229
175229
  const check = useRef(null);
175230
175230
  const {
175231
175231
  getPlacesByFilter,
175232
- getPlacesByIds
175232
+ getPlacesByIds,
175233
+ isSelectedAll = false
175233
175234
  } = props;
175234
175235
  const [places, setPlaces] = useState([]);
175235
175236
  const [total, setTotal] = useState(0);
@@ -175604,6 +175605,12 @@ const DataTable = props => {
175604
175605
  const handlePageSizeChange = pageSize => {
175605
175606
  setPageSize(pageSize);
175606
175607
  };
175608
+ useEffect(() => {
175609
+ if (isSelectedAll) {
175610
+ handleSelectAll(isSelectedAll);
175611
+ }
175612
+ // eslint-disable-next-line react-hooks/exhaustive-deps
175613
+ }, [isSelectedAll]);
175607
175614
  return isError ? jsxRuntimeExports.jsx("div", {
175608
175615
  style: {
175609
175616
  padding: 2 * 8,
@@ -176025,7 +176032,8 @@ const PlaceFilterContainer = props => {
176025
176032
  getPlacesByFilter,
176026
176033
  getPlacesByIds,
176027
176034
  callbackFunction,
176028
- tags
176035
+ tags,
176036
+ isSelectedAll = false
176029
176037
  } = props;
176030
176038
  const [isInit, setIsInit] = useState(true);
176031
176039
  const [tagsAll, setTagsAll] = useAtom(tagsAllState);
@@ -176063,7 +176071,8 @@ const PlaceFilterContainer = props => {
176063
176071
  children: [jsxRuntimeExports.jsx(FieldInput, {}), jsxRuntimeExports.jsx(Tag, {}), jsxRuntimeExports.jsx(DataTable, {
176064
176072
  isInit: isInit,
176065
176073
  getPlacesByFilter: getPlacesByFilter,
176066
- getPlacesByIds: getPlacesByIds
176074
+ getPlacesByIds: getPlacesByIds,
176075
+ isSelectedAll: isSelectedAll
176067
176076
  })]
176068
176077
  });
176069
176078
  };
@@ -189178,7 +189187,7 @@ function WorkspaceSharingInfomation(props) {
189178
189187
  disabled: formData.objectTypeCode === '' || formData.objectTypeCode === undefined
189179
189188
  }, {
189180
189189
  fieldName: 'key',
189181
- label: t('WorkspaceSharing.AliasDestination'),
189190
+ label: t('WorkspaceSharing.SharingKey'),
189182
189191
  type: FIELD_TYPE.AUTOCOMPLETE,
189183
189192
  multiple: false,
189184
189193
  required: true,
@@ -189224,7 +189233,7 @@ function WorkspaceSharingInfomation(props) {
189224
189233
  })
189225
189234
  }, {
189226
189235
  fieldName: 'folderSourceDirectoryId',
189227
- label: t('WorkspaceSharing.SourceDirectoryId'),
189236
+ label: t('WorkspaceSharing.SourceDirectory'),
189228
189237
  type: FIELD_TYPE.AUTOCOMPLETE,
189229
189238
  isDirectory: true,
189230
189239
  multiple: false,
@@ -1163,8 +1163,8 @@
1163
1163
  "Create": "Add",
1164
1164
  "AddALL": "Add all"
1165
1165
  },
1166
- "AliasDestination": "Alias Destination",
1167
- "SourceDirectoryId": "Source Directory ID"
1166
+ "SharingKey": "Sharing Key",
1167
+ "SourceDirectory": "Source Directory"
1168
1168
  },
1169
1169
  "Language": {
1170
1170
  "TranslateBy": "(Translate By {{author})",
@@ -1130,8 +1130,8 @@
1130
1130
  "Create": "Tambah",
1131
1131
  "AddALL": "Tambah Semua"
1132
1132
  },
1133
- "AliasDestination": "Alias tujuan",
1134
- "SourceDirectoryId": "ID Direktori Sumber"
1133
+ "SharingKey": "Kunci Berbagi",
1134
+ "SourceDirectory": "Direktori Sumber"
1135
1135
  },
1136
1136
  "Language": {
1137
1137
  "TranslateBy": "(Diterjemahkan oleh {{author})",
@@ -1130,8 +1130,8 @@
1130
1130
  "Create": "追加",
1131
1131
  "AddALL": "すべて追加"
1132
1132
  },
1133
- "AliasDestination": "エイリアス宛先",
1134
- "SourceDirectoryId": "ソースディレクトリID"
1133
+ "SharingKey": "共有キー",
1134
+ "SourceDirectory": "ソースディレクトリ"
1135
1135
  },
1136
1136
  "Language": {
1137
1137
  "TranslateBy": "(翻訳者 {{author})",
@@ -1130,8 +1130,8 @@
1130
1130
  "Create": "เพิ่ม",
1131
1131
  "AddALL": "เพิ่มทั้งหมด"
1132
1132
  },
1133
- "AliasDestination": "ชื่อปลายทาง",
1134
- "SourceDirectoryId": "ID ของไดเรกทอรีต้นทาง"
1133
+ "SharingKey": "คีย์การแชร์",
1134
+ "SourceDirectory": "ไดเรกทอรีต้นทาง"
1135
1135
  },
1136
1136
  "Language": {
1137
1137
  "TranslateBy": "(แปลโดย {{author})",
@@ -1166,8 +1166,8 @@
1166
1166
  "Create": "Thêm",
1167
1167
  "AddALL": "Thêm tất cả"
1168
1168
  },
1169
- "AliasDestination": "Mã chia sẻ",
1170
- "SourceDirectoryId": "Thư mục nguồn"
1169
+ "SharingKey": "Mã chia sẻ",
1170
+ "SourceDirectory": "Thư mục nguồn"
1171
1171
  },
1172
1172
  "Language": {
1173
1173
  "TranslateBy": "(Dịch bởi {{author}})",
package/dist/index.d.ts CHANGED
@@ -1642,6 +1642,7 @@ interface IPlaceQuery {
1642
1642
  total: number;
1643
1643
  }>;
1644
1644
  getPlacesByIds: (placeIds: string[]) => Promise<IPlace[]>;
1645
+ isSelectedAll?: boolean;
1645
1646
  }
1646
1647
  interface PlaceFilterProps extends IPlaceQuery {
1647
1648
  filterFields: IFilterField[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.65",
3
+ "version": "2.1.2-dev.67",
4
4
  "main": "dist/esm/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",