@smartbit4all/ng-client 3.3.95 → 3.3.97
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/esm2020/lib/smart-table/tables/table.mjs +6 -4
- package/fesm2015/smartbit4all-ng-client.mjs +11 -9
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +5 -3
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.97.tgz +0 -0
- package/smartbit4all-ng-client-3.3.95.tgz +0 -0
|
@@ -6076,7 +6076,6 @@ class Table {
|
|
|
6076
6076
|
return length > 0;
|
|
6077
6077
|
}
|
|
6078
6078
|
catch (error) {
|
|
6079
|
-
console.error(`The type of property ${button.menuItemButtonsPropertyName} is not a list.`);
|
|
6080
6079
|
return false;
|
|
6081
6080
|
}
|
|
6082
6081
|
}
|
|
@@ -6148,7 +6147,10 @@ class Table {
|
|
|
6148
6147
|
return resource.style ? resource.style : {};
|
|
6149
6148
|
}
|
|
6150
6149
|
openDefaultActionsMenu(row) {
|
|
6151
|
-
let actionCodesFromRow = row?.actions
|
|
6150
|
+
let actionCodesFromRow = row?.actions?.map((action) => action.code);
|
|
6151
|
+
if (!actionCodesFromRow) {
|
|
6152
|
+
return;
|
|
6153
|
+
}
|
|
6152
6154
|
let filteredActions = this.smartTable.defaultActions?.filter((action) => actionCodesFromRow.includes(action.code));
|
|
6153
6155
|
if (filteredActions && filteredActions.length > 0) {
|
|
6154
6156
|
if (filteredActions.length === 1) {
|
|
@@ -6164,7 +6166,7 @@ class Table {
|
|
|
6164
6166
|
}
|
|
6165
6167
|
}
|
|
6166
6168
|
getDefaultActionsForRow(element) {
|
|
6167
|
-
let actionCodesFromRow = element?.actions
|
|
6169
|
+
let actionCodesFromRow = element?.actions?.map((action) => action.code);
|
|
6168
6170
|
if (actionCodesFromRow) {
|
|
6169
6171
|
return this.smartTable.defaultActions?.filter((action) => actionCodesFromRow.includes(action.code));
|
|
6170
6172
|
}
|