@mediusinc/mng-commons 0.14.2 → 0.15.0

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.
Files changed (41) hide show
  1. package/esm2020/lib/components/action/action.component.mjs +7 -7
  2. package/esm2020/lib/components/action/editor/action-editor.component.mjs +5 -5
  3. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +14 -13
  4. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +5 -4
  5. package/esm2020/lib/descriptors/action/action-confirmation.descriptor.mjs +15 -44
  6. package/esm2020/lib/descriptors/action-button.descriptor.mjs +60 -0
  7. package/esm2020/lib/descriptors/action.descriptor.mjs +27 -22
  8. package/esm2020/lib/descriptors/column.descriptor.mjs +1 -1
  9. package/esm2020/lib/descriptors/index.mjs +2 -2
  10. package/esm2020/lib/descriptors/types/action.type.mjs +1 -28
  11. package/esm2020/lib/mng-commons.module.mjs +4 -11
  12. package/esm2020/lib/services/action-executor.service.mjs +23 -20
  13. package/esm2020/lib/styles/button-style.builder.mjs +30 -28
  14. package/esm2020/lib/styles/models/index.mjs +3 -0
  15. package/esm2020/lib/styles/models/style-level.enum.mjs +12 -0
  16. package/esm2020/lib/styles/models/style-size.enum.mjs +9 -0
  17. package/esm2020/lib/styles/styles.util.mjs +9 -8
  18. package/esm2020/public-api.mjs +2 -2
  19. package/fesm2015/mediusinc-mng-commons.mjs +199 -327
  20. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  21. package/fesm2020/mediusinc-mng-commons.mjs +195 -321
  22. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  23. package/lib/descriptors/action/action-confirmation.descriptor.d.ts +7 -19
  24. package/lib/descriptors/action-button.descriptor.d.ts +22 -0
  25. package/lib/descriptors/action.descriptor.d.ts +12 -10
  26. package/lib/descriptors/index.d.ts +1 -1
  27. package/lib/descriptors/types/action.type.d.ts +0 -24
  28. package/lib/mng-commons.module.d.ts +41 -42
  29. package/lib/styles/button-style.builder.d.ts +8 -8
  30. package/lib/styles/models/index.d.ts +2 -0
  31. package/lib/styles/models/style-level.enum.d.ts +10 -0
  32. package/lib/styles/models/style-size.enum.d.ts +7 -0
  33. package/package.json +1 -1
  34. package/public-api.d.ts +1 -1
  35. package/version-info.json +5 -5
  36. package/esm2020/lib/components/button/button.component.mjs +0 -46
  37. package/esm2020/lib/components/button/index.mjs +0 -2
  38. package/esm2020/lib/descriptors/button.descriptor.mjs +0 -111
  39. package/lib/components/button/button.component.d.ts +0 -16
  40. package/lib/components/button/index.d.ts +0 -1
  41. package/lib/descriptors/button.descriptor.d.ts +0 -40
@@ -848,33 +848,6 @@ var ActionTypeEnum;
848
848
  ActionTypeEnum[ActionTypeEnum["Direct"] = 0] = "Direct";
849
849
  ActionTypeEnum[ActionTypeEnum["Editor"] = 1] = "Editor"; // editor providing middle step for activation
850
850
  })(ActionTypeEnum || (ActionTypeEnum = {}));
851
- var ActionLevelEnum;
852
- (function (ActionLevelEnum) {
853
- ActionLevelEnum[ActionLevelEnum["Default"] = 0] = "Default";
854
- ActionLevelEnum[ActionLevelEnum["Primary"] = 1] = "Primary";
855
- ActionLevelEnum[ActionLevelEnum["Secondary"] = 2] = "Secondary";
856
- ActionLevelEnum[ActionLevelEnum["Info"] = 3] = "Info";
857
- ActionLevelEnum[ActionLevelEnum["Help"] = 4] = "Help";
858
- ActionLevelEnum[ActionLevelEnum["Success"] = 5] = "Success";
859
- ActionLevelEnum[ActionLevelEnum["Warning"] = 6] = "Warning";
860
- ActionLevelEnum[ActionLevelEnum["Danger"] = 7] = "Danger";
861
- })(ActionLevelEnum || (ActionLevelEnum = {}));
862
- var ActionSizeEnum;
863
- (function (ActionSizeEnum) {
864
- ActionSizeEnum[ActionSizeEnum["ExtraSmall"] = 0] = "ExtraSmall";
865
- ActionSizeEnum[ActionSizeEnum["Small"] = 1] = "Small";
866
- ActionSizeEnum[ActionSizeEnum["Normal"] = 2] = "Normal";
867
- ActionSizeEnum[ActionSizeEnum["Large"] = 3] = "Large";
868
- ActionSizeEnum[ActionSizeEnum["ExtraLarge"] = 4] = "ExtraLarge";
869
- })(ActionSizeEnum || (ActionSizeEnum = {}));
870
- var ActionEditorDialogSizeEnum;
871
- (function (ActionEditorDialogSizeEnum) {
872
- ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["ExtraSmall"] = 0] = "ExtraSmall";
873
- ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["Small"] = 1] = "Small";
874
- ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["Normal"] = 2] = "Normal";
875
- ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["Large"] = 3] = "Large";
876
- ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["ExtraLarge"] = 4] = "ExtraLarge";
877
- })(ActionEditorDialogSizeEnum || (ActionEditorDialogSizeEnum = {}));
878
851
  var ActionEditorSubmitTypeEnum;
879
852
  (function (ActionEditorSubmitTypeEnum) {
880
853
  ActionEditorSubmitTypeEnum[ActionEditorSubmitTypeEnum["Submit"] = 0] = "Submit";
@@ -1010,6 +983,27 @@ var TableDynamicColumnsModeEnum;
1010
983
  TableDynamicColumnsModeEnum[TableDynamicColumnsModeEnum["INCLUDE_ONLY"] = 1] = "INCLUDE_ONLY";
1011
984
  })(TableDynamicColumnsModeEnum || (TableDynamicColumnsModeEnum = {}));
1012
985
 
986
+ var StyleLevelEnum;
987
+ (function (StyleLevelEnum) {
988
+ StyleLevelEnum[StyleLevelEnum["Default"] = 0] = "Default";
989
+ StyleLevelEnum[StyleLevelEnum["Primary"] = 1] = "Primary";
990
+ StyleLevelEnum[StyleLevelEnum["Secondary"] = 2] = "Secondary";
991
+ StyleLevelEnum[StyleLevelEnum["Info"] = 3] = "Info";
992
+ StyleLevelEnum[StyleLevelEnum["Help"] = 4] = "Help";
993
+ StyleLevelEnum[StyleLevelEnum["Success"] = 5] = "Success";
994
+ StyleLevelEnum[StyleLevelEnum["Warning"] = 6] = "Warning";
995
+ StyleLevelEnum[StyleLevelEnum["Danger"] = 7] = "Danger";
996
+ })(StyleLevelEnum || (StyleLevelEnum = {}));
997
+
998
+ var StyleSizeEnum;
999
+ (function (StyleSizeEnum) {
1000
+ StyleSizeEnum[StyleSizeEnum["ExtraSmall"] = 0] = "ExtraSmall";
1001
+ StyleSizeEnum[StyleSizeEnum["Small"] = 1] = "Small";
1002
+ StyleSizeEnum[StyleSizeEnum["Normal"] = 2] = "Normal";
1003
+ StyleSizeEnum[StyleSizeEnum["Large"] = 3] = "Large";
1004
+ StyleSizeEnum[StyleSizeEnum["ExtraLarge"] = 4] = "ExtraLarge";
1005
+ })(StyleSizeEnum || (StyleSizeEnum = {}));
1006
+
1013
1007
  class StylesUtil {
1014
1008
  static calculateTableColumnActionWidth(table, actions) {
1015
1009
  const buttonsWidth = actions.reduce((acc, action) => acc + StylesUtil.getActionButtonRoundedWidth(action) + 2 * StylesUtil.ACTION_BUTTON_MARGIN_X, 0);
@@ -1027,15 +1021,15 @@ class StylesUtil {
1027
1021
  }
1028
1022
  }
1029
1023
  static getActionButtonRoundedWidth(action) {
1030
- switch (action.buttonDescriptor.styleClass.size) {
1031
- case ActionSizeEnum.ExtraSmall:
1024
+ switch (action.button.styleClass.size) {
1025
+ case StyleSizeEnum.ExtraSmall:
1032
1026
  return StylesUtil.BUTTON_ROUNDED_WIDTH_XS;
1033
- case ActionSizeEnum.Small:
1027
+ case StyleSizeEnum.Small:
1034
1028
  return StylesUtil.BUTTON_ROUNDED_WIDTH_SM;
1035
- case ActionSizeEnum.Large:
1036
- case ActionSizeEnum.ExtraLarge:
1029
+ case StyleSizeEnum.Large:
1030
+ case StyleSizeEnum.ExtraLarge:
1037
1031
  return StylesUtil.BUTTON_ROUNDED_WIDTH_LG;
1038
- case ActionSizeEnum.Normal:
1032
+ case StyleSizeEnum.Normal:
1039
1033
  default:
1040
1034
  return StylesUtil.BUTTON_ROUNDED_WIDTH;
1041
1035
  }
@@ -1051,8 +1045,8 @@ StylesUtil.TABLE_CELL_PADDING_X_SM = 4;
1051
1045
  StylesUtil.TABLE_CELL_PADDING_X_LG = 12;
1052
1046
 
1053
1047
  class ButtonStyleBuilder {
1054
- constructor(level = ActionLevelEnum.Default, customClass) {
1055
- this._size = ActionSizeEnum.Normal;
1048
+ constructor(level = StyleLevelEnum.Default, customClass) {
1049
+ this._size = StyleSizeEnum.Normal;
1056
1050
  this._textButton = false;
1057
1051
  this._outlineButton = false;
1058
1052
  this._raisedButton = false;
@@ -1060,7 +1054,7 @@ class ButtonStyleBuilder {
1060
1054
  this._actionLevel = level;
1061
1055
  this._customClass = customClass;
1062
1056
  }
1063
- getButtonClass(hasNoTitle = false) {
1057
+ build(hasNoTitle = false) {
1064
1058
  const styles = [this.convertActionLevelToStyleClass(), this.convertSizeToStyleClass(), this._customClass];
1065
1059
  if (hasNoTitle && this._roundedStyle === ButtonStyleRoundedEnum.DEFAULT) {
1066
1060
  styles.push(`p-button-rounded mng-action-button-icon`);
@@ -1088,15 +1082,16 @@ class ButtonStyleBuilder {
1088
1082
  * @param raisedButton if true, raised button will be applied
1089
1083
  * @param customClass additional custom classes (will be added at generating)
1090
1084
  */
1091
- create(actionLevel, size, textButton, outlineButton, raisedButton, roundedButton, customClass) {
1092
- this._actionLevel = actionLevel ?? this._actionLevel;
1093
- this._size = size ?? this._size;
1094
- this._textButton = textButton ?? this._textButton;
1095
- this._outlineButton = outlineButton ?? this._outlineButton;
1096
- this._raisedButton = raisedButton ?? this._raisedButton;
1097
- this._roundedStyle = roundedButton ?? this._roundedStyle;
1098
- this._customClass = customClass;
1099
- return this;
1085
+ static create(actionLevel, size, textButton, outlineButton, raisedButton, roundedButton, customClass) {
1086
+ const descriptor = new ButtonStyleBuilder(actionLevel, customClass);
1087
+ descriptor._actionLevel = actionLevel ?? descriptor._actionLevel;
1088
+ descriptor._size = size ?? descriptor._size;
1089
+ descriptor._textButton = textButton ?? descriptor._textButton;
1090
+ descriptor._outlineButton = outlineButton ?? descriptor._outlineButton;
1091
+ descriptor._raisedButton = raisedButton ?? descriptor._raisedButton;
1092
+ descriptor._roundedStyle = roundedButton ?? descriptor._roundedStyle;
1093
+ descriptor._customClass = customClass;
1094
+ return descriptor;
1100
1095
  }
1101
1096
  /**
1102
1097
  * sets custom action level and returns this object
@@ -1152,35 +1147,36 @@ class ButtonStyleBuilder {
1152
1147
  }
1153
1148
  convertActionLevelToStyleClass() {
1154
1149
  switch (this._actionLevel) {
1155
- case ActionLevelEnum.Default:
1156
- case ActionLevelEnum.Primary:
1150
+ case StyleLevelEnum.Default:
1151
+ case StyleLevelEnum.Primary:
1157
1152
  return 'p-button-primary';
1158
- case ActionLevelEnum.Secondary:
1153
+ case StyleLevelEnum.Secondary:
1159
1154
  return 'p-button-secondary';
1160
- case ActionLevelEnum.Info:
1155
+ case StyleLevelEnum.Info:
1161
1156
  return 'p-button-info';
1162
- case ActionLevelEnum.Help:
1157
+ case StyleLevelEnum.Help:
1163
1158
  return 'p-button-help';
1164
- case ActionLevelEnum.Success:
1159
+ case StyleLevelEnum.Success:
1165
1160
  return 'p-button-success';
1166
- case ActionLevelEnum.Warning:
1161
+ case StyleLevelEnum.Warning:
1167
1162
  return 'p-button-warning';
1168
- case ActionLevelEnum.Danger:
1163
+ case StyleLevelEnum.Danger:
1169
1164
  return 'p-button-danger';
1170
1165
  }
1171
1166
  }
1172
1167
  convertSizeToStyleClass() {
1173
1168
  switch (this._size) {
1174
- case ActionSizeEnum.ExtraSmall:
1169
+ case StyleSizeEnum.ExtraSmall:
1175
1170
  return 'p-button-sm mng-button-xs';
1176
- case ActionSizeEnum.Small:
1171
+ case StyleSizeEnum.Small:
1177
1172
  return 'p-button-sm mng-button-sm';
1178
- case ActionSizeEnum.Normal:
1179
- return '';
1180
- case ActionSizeEnum.Large:
1173
+ case StyleSizeEnum.Large:
1181
1174
  return 'p-button-lg mng-button-lg';
1182
- case ActionSizeEnum.ExtraLarge:
1175
+ case StyleSizeEnum.ExtraLarge:
1183
1176
  return 'p-button-lg mng-button-xl';
1177
+ case StyleSizeEnum.Normal:
1178
+ default:
1179
+ return '';
1184
1180
  }
1185
1181
  }
1186
1182
  get actionLevel() {
@@ -1212,50 +1208,91 @@ var ButtonStyleRoundedEnum;
1212
1208
  ButtonStyleRoundedEnum[ButtonStyleRoundedEnum["SQUARE"] = 2] = "SQUARE";
1213
1209
  })(ButtonStyleRoundedEnum || (ButtonStyleRoundedEnum = {}));
1214
1210
 
1215
- class ActionConfirmationDialogDescriptor {
1211
+ class ActionButtonDescriptor {
1216
1212
  constructor() {
1217
- this._closeOnEscape = true; // Defines if dialog closes when esc key is pressed.
1218
- this._closable = true; // Defines if dialog is closable.
1219
- this._acceptButtonStyle = new ButtonStyleBuilder(ActionLevelEnum.Default);
1220
- this._rejectButtonStyle = new ButtonStyleBuilder(ActionLevelEnum.Default).withTextButton();
1221
- this._icon = 'pi pi-exclamation-triangle';
1222
- this._acceptIcon = 'pi pi-check';
1223
- this._rejectIcon = 'pi pi-times';
1213
+ this._iconPosition = 'left';
1214
+ this._styleClass = new ButtonStyleBuilder();
1215
+ }
1216
+ withLabel(label) {
1217
+ this._label = label;
1218
+ return this;
1224
1219
  }
1225
1220
  withIcon(icon) {
1226
1221
  this._icon = icon;
1227
1222
  return this;
1228
1223
  }
1229
- withTitle(title) {
1230
- this._title = title;
1224
+ withIconPosition(iconPosition) {
1225
+ this._iconPosition = iconPosition;
1231
1226
  return this;
1232
1227
  }
1233
- withMessage(message) {
1234
- this._message = message;
1228
+ withStyleClass(style) {
1229
+ this._styleClass = style;
1235
1230
  return this;
1236
1231
  }
1237
- withAcceptLabel(acceptLabel) {
1238
- this._acceptLabel = acceptLabel;
1232
+ withBadge(badge) {
1233
+ this._badge = badge;
1239
1234
  return this;
1240
1235
  }
1241
- withAcceptIcon(acceptIcon) {
1242
- this._acceptIcon = acceptIcon;
1236
+ withTooltip(tooltip) {
1237
+ this._tooltip = tooltip;
1243
1238
  return this;
1244
1239
  }
1245
- withAcceptButtonStyle(buttonStyle) {
1246
- this._acceptButtonStyle = buttonStyle;
1240
+ get label() {
1241
+ return this._label;
1242
+ }
1243
+ get icon() {
1244
+ return this._icon;
1245
+ }
1246
+ get iconPosition() {
1247
+ return this._iconPosition;
1248
+ }
1249
+ get styleClass() {
1250
+ return this._styleClass;
1251
+ }
1252
+ get badge() {
1253
+ return this._badge;
1254
+ }
1255
+ get tooltip() {
1256
+ return this._tooltip;
1257
+ }
1258
+ copy() {
1259
+ const descriptor = new ActionButtonDescriptor();
1260
+ descriptor._label = this._label;
1261
+ descriptor._icon = this._icon;
1262
+ descriptor._iconPosition = this._iconPosition;
1263
+ descriptor._styleClass = this._styleClass;
1264
+ descriptor._badge = this._badge;
1265
+ descriptor._tooltip = this._tooltip;
1266
+ return descriptor;
1267
+ }
1268
+ }
1269
+
1270
+ class ActionConfirmationDialogDescriptor {
1271
+ constructor() {
1272
+ this._closeOnEscape = true; // Defines if dialog closes when esc key is pressed.
1273
+ this._closable = true; // Defines if dialog is closable.
1274
+ this._acceptButton = new ActionButtonDescriptor().withIcon('pi pi-check').withStyleClass(new ButtonStyleBuilder(StyleLevelEnum.Default));
1275
+ this._rejectButton = new ActionButtonDescriptor().withIcon('pi pi-times').withStyleClass(new ButtonStyleBuilder(StyleLevelEnum.Default).withTextButton());
1276
+ this._icon = 'pi pi-exclamation-triangle';
1277
+ }
1278
+ withIcon(icon) {
1279
+ this._icon = icon;
1247
1280
  return this;
1248
1281
  }
1249
- withRejectLabel(rejectLabel) {
1250
- this._rejectLabel = rejectLabel;
1282
+ withTitle(title) {
1283
+ this._title = title;
1251
1284
  return this;
1252
1285
  }
1253
- withRejectIcon(rejectIcon) {
1254
- this._rejectIcon = rejectIcon;
1286
+ withMessage(message) {
1287
+ this._message = message;
1288
+ return this;
1289
+ }
1290
+ withAcceptButton(actionButtonDescriptor) {
1291
+ this._acceptButton = actionButtonDescriptor;
1255
1292
  return this;
1256
1293
  }
1257
- withRejectButtonStyle(buttonStyle) {
1258
- this._rejectButtonStyle = buttonStyle;
1294
+ withRejectButton(actionButtonDescriptor) {
1295
+ this._rejectButton = actionButtonDescriptor;
1259
1296
  return this;
1260
1297
  }
1261
1298
  /**
@@ -1287,24 +1324,6 @@ class ActionConfirmationDialogDescriptor {
1287
1324
  get message() {
1288
1325
  return this._message;
1289
1326
  }
1290
- get acceptLabel() {
1291
- return this._acceptLabel;
1292
- }
1293
- get acceptIcon() {
1294
- return this._acceptIcon;
1295
- }
1296
- get acceptButtonStyle() {
1297
- return this._acceptButtonStyle;
1298
- }
1299
- get rejectLabel() {
1300
- return this._rejectLabel;
1301
- }
1302
- get rejectIcon() {
1303
- return this._rejectIcon;
1304
- }
1305
- get rejectButtonStyle() {
1306
- return this._rejectButtonStyle;
1307
- }
1308
1327
  get closeOnEscape() {
1309
1328
  return this._closeOnEscape;
1310
1329
  }
@@ -1314,6 +1333,12 @@ class ActionConfirmationDialogDescriptor {
1314
1333
  get runConfirmationConfigMapFn() {
1315
1334
  return this._runConfirmationConfigMapFn;
1316
1335
  }
1336
+ get acceptButton() {
1337
+ return this._acceptButton;
1338
+ }
1339
+ get rejectButton() {
1340
+ return this._rejectButton;
1341
+ }
1317
1342
  }
1318
1343
 
1319
1344
  class ActionDescriptor {
@@ -1321,12 +1346,12 @@ class ActionDescriptor {
1321
1346
  this._type = ActionTypeEnum.Direct;
1322
1347
  this._activationTrigger = ActionActivationTriggerEnum.OnClick;
1323
1348
  this._position = ActionPositionEnum.ToolbarRight;
1324
- this._level = ActionLevelEnum.Default;
1349
+ this._level = StyleLevelEnum.Default;
1325
1350
  this._routeUrl = null;
1326
1351
  this._hasRunNotificationSuccess = true;
1327
1352
  this._hasRunNotificationError = true;
1328
1353
  //button
1329
- this._buttonDescriptor = new ButtonDescriptor();
1354
+ this._button = new ActionButtonDescriptor();
1330
1355
  // multiple row selection
1331
1356
  this._hasItemsSelection = false;
1332
1357
  this._model = model;
@@ -1402,7 +1427,7 @@ class ActionDescriptor {
1402
1427
  return this._actionNameLong;
1403
1428
  }
1404
1429
  get className() {
1405
- return this.buttonDescriptor.styleClass.customClass;
1430
+ return this.button.styleClass.customClass;
1406
1431
  }
1407
1432
  get runConfirmationDialogDescriptor() {
1408
1433
  return this._runConfirmationDialogDescriptor;
@@ -1443,8 +1468,8 @@ class ActionDescriptor {
1443
1468
  get hasItemsSelection() {
1444
1469
  return this._hasItemsSelection;
1445
1470
  }
1446
- get buttonDescriptor() {
1447
- return this._buttonDescriptor;
1471
+ get button() {
1472
+ return this._button;
1448
1473
  }
1449
1474
  withDataProvider(dataProvider) {
1450
1475
  this._dataProvider = dataProvider;
@@ -1483,8 +1508,8 @@ class ActionDescriptor {
1483
1508
  */
1484
1509
  withRunConfirmation() {
1485
1510
  this._runConfirmationDialogDescriptor = new ActionConfirmationDialogDescriptor();
1486
- this._runConfirmationDialogDescriptor.acceptButtonStyle.withActionLevel(this._level);
1487
- this._runConfirmationDialogDescriptor.rejectButtonStyle.withActionLevel(this._level);
1511
+ this._runConfirmationDialogDescriptor.acceptButton.styleClass.withActionLevel(this._level);
1512
+ this._runConfirmationDialogDescriptor.rejectButton?.styleClass.withActionLevel(this._level);
1488
1513
  return this._runConfirmationDialogDescriptor;
1489
1514
  }
1490
1515
  /**
@@ -1526,8 +1551,12 @@ class ActionDescriptor {
1526
1551
  this._permissionsRouteType = permissionsRouteType;
1527
1552
  return this;
1528
1553
  }
1529
- withButtonDescriptor(buttonDescriptor) {
1530
- this._buttonDescriptor = buttonDescriptor;
1554
+ withButtonDescriptor(button) {
1555
+ this._button = button;
1556
+ return this;
1557
+ }
1558
+ withButton(label, icon = null, styleLevel = StyleLevelEnum.Default, styleText = false) {
1559
+ this._button = new ActionButtonDescriptor().withLabel(label).withIcon(icon).withStyleClass(new ButtonStyleBuilder(styleLevel).withTextButton(styleText));
1531
1560
  return this;
1532
1561
  }
1533
1562
  withItemsSelection(hasSelection = true) {
@@ -1548,7 +1577,7 @@ class ActionEditorDescriptor extends ActionDescriptor {
1548
1577
  this._editorActions = [];
1549
1578
  this._editorTitle = undefined;
1550
1579
  this._hasFetchNotificationSuccess = false;
1551
- this._dialogSize = ActionEditorDialogSizeEnum.Normal;
1580
+ this._dialogSize = StyleSizeEnum.Normal;
1552
1581
  this._type = ActionTypeEnum.Editor;
1553
1582
  this._editorDescriptor = editorDescriptor;
1554
1583
  this._editorActions.push(ActionEditorSubmitDescriptor.forPrimary(this), ActionEditorSubmitDescriptor.forSecondary(this));
@@ -1613,7 +1642,7 @@ class ActionEditorDescriptor extends ActionDescriptor {
1613
1642
  this._dataProvider = new EditorDataProvider(this._model.type, serviceType);
1614
1643
  return this;
1615
1644
  }
1616
- withDialogSize(size = ActionEditorDialogSizeEnum.Normal) {
1645
+ withDialogSize(size = StyleSizeEnum.Normal) {
1617
1646
  this._dialogSize = size;
1618
1647
  return this;
1619
1648
  }
@@ -1657,7 +1686,7 @@ class ActionEditorSubmitDescriptor extends ActionDescriptor {
1657
1686
  this._editorAction = editorAction;
1658
1687
  this._submitType = submitType;
1659
1688
  this._position = ActionPositionEnum.FooterRight;
1660
- this.buttonDescriptor.styleClass.withActionLevel(editorAction.level).withTextButton();
1689
+ this.button.styleClass.withActionLevel(editorAction.level).withTextButton();
1661
1690
  }
1662
1691
  /**
1663
1692
  * creates primary action with primary button style
@@ -1665,7 +1694,7 @@ class ActionEditorSubmitDescriptor extends ActionDescriptor {
1665
1694
  * @param submitType
1666
1695
  */
1667
1696
  static forPrimary(editorAction, submitType = ActionEditorSubmitTypeEnum.Submit) {
1668
- return new ActionEditorSubmitDescriptor(editorAction, submitType).withButtonDescriptor(new ButtonDescriptor().withStyleClass(new ButtonStyleBuilder()));
1697
+ return new ActionEditorSubmitDescriptor(editorAction, submitType).withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder()));
1669
1698
  }
1670
1699
  /**
1671
1700
  * creates secondary button with text button style
@@ -1673,7 +1702,7 @@ class ActionEditorSubmitDescriptor extends ActionDescriptor {
1673
1702
  * @param submitType
1674
1703
  */
1675
1704
  static forSecondary(editorAction, submitType = ActionEditorSubmitTypeEnum.Cancel) {
1676
- return new ActionEditorSubmitDescriptor(editorAction, submitType).withButtonDescriptor(new ButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withTextButton()));
1705
+ return new ActionEditorSubmitDescriptor(editorAction, submitType).withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withTextButton()));
1677
1706
  }
1678
1707
  get submitType() {
1679
1708
  return this._submitType;
@@ -1707,8 +1736,8 @@ class ActionEditorAddDescriptor extends ActionEditorDescriptor {
1707
1736
  this.withPosition(ActionPositionEnum.ToolbarLeft);
1708
1737
  this.withRouteTrigger('add');
1709
1738
  this.withSubmitFunction(ActionDataProviderUtil.runCreateOrFail);
1710
- this.buttonDescriptor.styleClass.withActionLevel(ActionLevelEnum.Success);
1711
- this.buttonDescriptor.withIcon('pi pi-plus');
1739
+ this.button.styleClass.withActionLevel(StyleLevelEnum.Success);
1740
+ this.button.withIcon('pi pi-plus');
1712
1741
  this.withPermissionsRouteType(Permissions.ActionTypes.ADD);
1713
1742
  }
1714
1743
  withServiceType(serviceType) {
@@ -1735,7 +1764,7 @@ class ActionEditorEditDescriptor extends ActionEditorDescriptor {
1735
1764
  this.withFetchFunction(ActionDataProviderUtil.runFetchOrFail);
1736
1765
  this.withSubmitFunction(ActionDataProviderUtil.runUpdateOrFail);
1737
1766
  this.withPermissionsRouteType(Permissions.ActionTypes.EDIT);
1738
- this.buttonDescriptor.withLabel(null).withIcon('pi pi-pencil');
1767
+ this.button.withLabel(null).withIcon('pi pi-pencil');
1739
1768
  }
1740
1769
  withServiceType(serviceType) {
1741
1770
  return this.withServiceSubmitFunction(serviceType);
@@ -1758,10 +1787,10 @@ class ActionDeleteDescriptor extends ActionDescriptor {
1758
1787
  super(model, ActionDeleteDescriptor.ACTION_NAME);
1759
1788
  this.withPosition(ActionPositionEnum.RowInline);
1760
1789
  this.withRunFunction(ActionDataProviderUtil.runDeleteOrFail);
1761
- this.buttonDescriptor.styleClass.withActionLevel(ActionLevelEnum.Danger);
1790
+ this.button.styleClass.withActionLevel(StyleLevelEnum.Danger);
1762
1791
  this.withRunConfirmation();
1763
1792
  this.withPermissionsRouteType(Permissions.ActionTypes.DELETE);
1764
- this.buttonDescriptor.withLabel(null).withIcon('pi pi-trash');
1793
+ this.button.withLabel(null).withIcon('pi pi-trash');
1765
1794
  }
1766
1795
  withServiceType(serviceType) {
1767
1796
  return this.withServiceDeleteFunction(serviceType);
@@ -4598,116 +4627,6 @@ class TableviewDynamicDescriptor extends TableviewDescriptor {
4598
4627
  }
4599
4628
  }
4600
4629
 
4601
- class ButtonDescriptor {
4602
- constructor() {
4603
- this._disabled = false;
4604
- this._iconPosition = 'left';
4605
- this._styleClass = new ButtonStyleBuilder();
4606
- this._loading = false;
4607
- this._loadingIcon = 'pi pi-spinner pi-spin';
4608
- }
4609
- withLabel(label) {
4610
- this._label = label;
4611
- return this;
4612
- }
4613
- withDisabled(disabled = true) {
4614
- this._disabled = disabled;
4615
- return this;
4616
- }
4617
- withIcon(icon) {
4618
- this._icon = icon;
4619
- return this;
4620
- }
4621
- withIconPosition(iconPosition) {
4622
- this._iconPosition = iconPosition;
4623
- return this;
4624
- }
4625
- withStyleClass(style) {
4626
- this._styleClass = style;
4627
- return this;
4628
- }
4629
- withOnClick(onClick) {
4630
- this._onClick = onClick;
4631
- return this;
4632
- }
4633
- withOnFocus(onFocus) {
4634
- this._onFocus = onFocus;
4635
- return this;
4636
- }
4637
- withOnBlur(onBlur) {
4638
- this._onBlur = onBlur;
4639
- return this;
4640
- }
4641
- withLoading(loading = true) {
4642
- this._loading = loading;
4643
- return this;
4644
- }
4645
- withLoadingIcon(loadingIcon) {
4646
- this._loadingIcon = loadingIcon;
4647
- return this;
4648
- }
4649
- withBadge(badge) {
4650
- this._badge = badge;
4651
- return this;
4652
- }
4653
- withTooltip(tooltip) {
4654
- this._tooltip = tooltip;
4655
- return this;
4656
- }
4657
- get label() {
4658
- return this._label;
4659
- }
4660
- get disabled() {
4661
- return this._disabled;
4662
- }
4663
- get icon() {
4664
- return this._icon;
4665
- }
4666
- get iconPosition() {
4667
- return this._iconPosition;
4668
- }
4669
- get styleClass() {
4670
- return this._styleClass;
4671
- }
4672
- get onClick() {
4673
- return this._onClick;
4674
- }
4675
- get onFocus() {
4676
- return this._onFocus;
4677
- }
4678
- get onBlur() {
4679
- return this._onBlur;
4680
- }
4681
- get loading() {
4682
- return this._loading;
4683
- }
4684
- get loadingIcon() {
4685
- return this._loadingIcon;
4686
- }
4687
- get badge() {
4688
- return this._badge;
4689
- }
4690
- get tooltip() {
4691
- return this._tooltip;
4692
- }
4693
- copy() {
4694
- const descriptor = new ButtonDescriptor();
4695
- descriptor._label = this._label;
4696
- descriptor._disabled = this._disabled;
4697
- descriptor._icon = this._icon;
4698
- descriptor._iconPosition = this._iconPosition;
4699
- descriptor._styleClass = this._styleClass;
4700
- descriptor._onClick = this._onClick;
4701
- descriptor._onFocus = this._onFocus;
4702
- descriptor._onBlur = this._onBlur;
4703
- descriptor._loading = this._loading;
4704
- descriptor._loadingIcon = this._loadingIcon;
4705
- descriptor._badge = this._badge;
4706
- descriptor._tooltip = this._tooltip;
4707
- return descriptor;
4708
- }
4709
- }
4710
-
4711
4630
  class EditorFormlyUtil {
4712
4631
  static createFormlyConfigFromDescriptor(descriptor) {
4713
4632
  const fields = [];
@@ -6933,11 +6852,11 @@ class MngActionExecutorService {
6933
6852
  key: srcConfirmComponent.getConfirmationServiceInstanceKey(action),
6934
6853
  icon: confirmationDescriptor.icon,
6935
6854
  acceptVisible: true,
6936
- acceptIcon: confirmationDescriptor.acceptIcon ?? undefined,
6937
- acceptButtonStyleClass: confirmationDescriptor.acceptButtonStyle.getButtonClass(),
6855
+ acceptIcon: confirmationDescriptor.acceptButton.icon ?? undefined,
6856
+ acceptButtonStyleClass: confirmationDescriptor.acceptButton.styleClass.build(),
6938
6857
  rejectVisible: true,
6939
- rejectIcon: confirmationDescriptor.rejectIcon ?? undefined,
6940
- rejectButtonStyleClass: confirmationDescriptor.rejectButtonStyle.getButtonClass(),
6858
+ rejectIcon: confirmationDescriptor.rejectButton?.icon ?? undefined,
6859
+ rejectButtonStyleClass: confirmationDescriptor.rejectButton?.styleClass.build(),
6941
6860
  closeOnEscape: confirmationDescriptor.closeOnEscape
6942
6861
  };
6943
6862
  if (confirmationDescriptor.title !== null) {
@@ -6948,19 +6867,21 @@ class MngActionExecutorService {
6948
6867
  I18nUtils.Action.get(this.translate, action, 'confirm.message', confirmationDescriptor.message, StringUtil.escapeHtmlAny(item), 'general.confirmation') ??
6949
6868
  undefined;
6950
6869
  }
6951
- if (confirmationDescriptor.acceptLabel !== null) {
6952
- confirmParams.acceptLabel = I18nUtils.Action.get(this.translate, action, 'confirm.accept', confirmationDescriptor.acceptLabel, item, 'general.yes') ?? undefined;
6870
+ if (confirmationDescriptor.acceptButton.label !== null) {
6871
+ confirmParams.acceptLabel =
6872
+ I18nUtils.Action.get(this.translate, action, 'confirm.accept', confirmationDescriptor.acceptButton.label, item, 'general.yes') ?? undefined;
6953
6873
  }
6954
- if (confirmationDescriptor.acceptIcon !== null) {
6955
- confirmParams.acceptIcon = confirmationDescriptor.acceptIcon;
6874
+ if (confirmationDescriptor.acceptButton.icon !== null) {
6875
+ confirmParams.acceptIcon = confirmationDescriptor.acceptButton.icon;
6956
6876
  }
6957
- if (confirmationDescriptor.rejectIcon !== null) {
6958
- confirmParams.rejectIcon = confirmationDescriptor.rejectIcon;
6877
+ if (confirmationDescriptor.rejectButton?.icon !== null) {
6878
+ confirmParams.rejectIcon = confirmationDescriptor.rejectButton?.icon;
6959
6879
  }
6960
- if (confirmationDescriptor.rejectLabel !== null) {
6961
- confirmParams.rejectLabel = I18nUtils.Action.get(this.translate, action, 'confirm.reject', confirmationDescriptor.rejectLabel, item, 'general.no') ?? undefined;
6880
+ if (confirmationDescriptor.rejectButton?.label !== null) {
6881
+ confirmParams.rejectLabel =
6882
+ I18nUtils.Action.get(this.translate, action, 'confirm.reject', confirmationDescriptor.rejectButton?.label, item, 'general.no') ?? undefined;
6962
6883
  }
6963
- if (confirmationDescriptor.rejectLabel === null && confirmationDescriptor.rejectIcon === null) {
6884
+ if (confirmationDescriptor.rejectButton == null || (confirmationDescriptor.rejectButton.label === null && confirmationDescriptor.rejectButton.icon === null)) {
6964
6885
  confirmParams.rejectVisible = false;
6965
6886
  }
6966
6887
  confirmParams.accept = () => {
@@ -7008,19 +6929,19 @@ class MngActionExecutorService {
7008
6929
  dialogClassName = action.dialogClassName ?? 'mng-action-editor-dialog';
7009
6930
  let dialogSizeClassName = '';
7010
6931
  switch (action.dialogSize) {
7011
- case ActionEditorDialogSizeEnum.ExtraSmall:
6932
+ case StyleSizeEnum.ExtraSmall:
7012
6933
  dialogSizeClassName = 'mng-action-editor-dialog-xs';
7013
6934
  break;
7014
- case ActionEditorDialogSizeEnum.Small:
6935
+ case StyleSizeEnum.Small:
7015
6936
  dialogSizeClassName = 'mng-action-editor-dialog-sm';
7016
6937
  break;
7017
- case ActionEditorDialogSizeEnum.Large:
6938
+ case StyleSizeEnum.Large:
7018
6939
  dialogSizeClassName = 'mng-action-editor-dialog-lg';
7019
6940
  break;
7020
- case ActionEditorDialogSizeEnum.ExtraLarge:
6941
+ case StyleSizeEnum.ExtraLarge:
7021
6942
  dialogSizeClassName = 'mng-action-editor-dialog-xl';
7022
6943
  break;
7023
- case ActionEditorDialogSizeEnum.Normal:
6944
+ case StyleSizeEnum.Normal:
7024
6945
  default:
7025
6946
  break;
7026
6947
  }
@@ -7655,7 +7576,7 @@ class MngActionComponent {
7655
7576
  }
7656
7577
  ngOnInit() {
7657
7578
  this.viewContainer = this.viewContainerInit ?? this.viewContainerService ?? undefined;
7658
- this.hasNoTitle = this.action.buttonDescriptor.label === null;
7579
+ this.hasNoTitle = this.action.button.label === null;
7659
7580
  this.isEnabledSubject.next(true);
7660
7581
  this.isVisibleSubject.next(true);
7661
7582
  this.isPermittedSubject.next(true);
@@ -7678,7 +7599,7 @@ class MngActionComponent {
7678
7599
  this.isHostHidden = !isVisible || !isPermitted;
7679
7600
  });
7680
7601
  this.subscriptions.push(hostVisibilitySubscription);
7681
- this.buttonClass = this.action.buttonDescriptor.styleClass.getButtonClass(this.hasNoTitle);
7602
+ this.buttonClass = this.action.button.styleClass.build(this.action.button.label == null || this.action.button.label.length == 0);
7682
7603
  }
7683
7604
  ngOnChanges(changes) {
7684
7605
  if (!(changes['item']?.firstChange ?? true) ||
@@ -7765,21 +7686,21 @@ class MngActionComponent {
7765
7686
  }
7766
7687
  if (!this.hasNoTitle) {
7767
7688
  this.labelSubscription?.unsubscribe();
7768
- this.labelSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'title', this.action.buttonDescriptor.label ?? undefined, this.item).subscribe({
7689
+ this.labelSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'title', this.action.button.label ?? undefined, this.item).subscribe({
7769
7690
  next: i18n => this.labelSubject.next(i18n)
7770
7691
  });
7771
7692
  }
7772
7693
  this.tooltipSubscription?.unsubscribe();
7773
- this.tooltipSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'tooltip', this.action.buttonDescriptor.tooltip, this.item).subscribe({
7694
+ this.tooltipSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'tooltip', this.action.button.tooltip, this.item).subscribe({
7774
7695
  next: i18n => this.tooltipSubject.next(i18n)
7775
7696
  });
7776
7697
  }
7777
7698
  }
7778
7699
  MngActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngActionComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1$2.TranslateService }, { token: MngAuthorizationService }, { token: MngActionExecutorService }, { token: i2.ConfirmationService }, { token: MngViewContainerComponentService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
7779
- MngActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngActionComponent, selector: "mng-action", inputs: { action: "action", item: "item", itemId: "itemId", actionData: "actionData", queryParam: "queryParam", dataProvider: "dataProvider", inputDisabled: ["disabled", "inputDisabled"], inputLoading: ["loading", "inputLoading"], viewContainerInit: ["viewContainer", "viewContainerInit"], selectedItems: "selectedItems" }, outputs: { finishEventEmitter: "finish" }, host: { properties: { "class": "this.hostClass", "class.m-0": "this.isHostHidden" } }, providers: [ConfirmationService], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"($isVisible | async) && ($isPermitted | async)\">\n <a\n *ngIf=\"actionLink && actionLink.url !== ''; else routerLink\"\n pButton\n pRipple\n [icon]=\"$any(action.buttonDescriptor.icon)\"\n [href]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false) ? null : (actionLink.url | parametrize: itemId:item:actionData)\"\n [target]=\"actionLink.target\"\n [class.disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n [class]=\"buttonClass\"\n >{{ ($label | async) ?? '' }}</a\n >\n <ng-template #routerLink>\n <a\n *ngIf=\"actionLink; else button\"\n pButton\n pRipple\n [icon]=\"$any(action.buttonDescriptor.icon)\"\n [target]=\"actionLink.target\"\n [replaceUrl]=\"actionLink.replaceUrl\"\n [routerLink]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false) ? null : (actionLink.pathSegments | parametrize: itemId:item:actionData)\"\n [queryParams]=\"actionLink.queryParams | parametrize: itemId:item:actionData\"\n [queryParamsHandling]=\"actionLink.queryParamsHandling\"\n [class.disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n [class]=\"buttonClass\"\n >{{ ($label | async) ?? '' }}</a\n >\n </ng-template>\n <ng-template #button>\n <button\n type=\"button\"\n pButton\n pRipple\n [icon]=\"$any(action.buttonDescriptor.icon)\"\n [label]=\"($label | async) ?? ''\"\n [pTooltip]=\"$any($tooltip | async)\"\n [loading]=\"(($loading | async) ?? false) || ((inputLoading | async) ?? false)\"\n [disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n (click)=\"triggerAction($event)\"\n [class]=\"buttonClass\"></button>\n </ng-template>\n <p-confirmDialog\n *ngIf=\"action.runConfirmationDialogDescriptor\"\n [key]=\"action.actionName + '_' + cmpId\"\n [baseZIndex]=\"50\"\n appendTo=\"body\"\n [closable]=\"action.runConfirmationDialogDescriptor.closable\"></p-confirmDialog>\n</ng-container>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "directive", type: i7.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i4$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "component", type: i9.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }, { kind: "directive", type: i6.Ripple, selector: "[pRipple]" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: MngParametrizePipe, name: "parametrize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7700
+ MngActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngActionComponent, selector: "mng-action", inputs: { action: "action", item: "item", itemId: "itemId", actionData: "actionData", queryParam: "queryParam", dataProvider: "dataProvider", inputDisabled: ["disabled", "inputDisabled"], inputLoading: ["loading", "inputLoading"], viewContainerInit: ["viewContainer", "viewContainerInit"], selectedItems: "selectedItems" }, outputs: { finishEventEmitter: "finish" }, host: { properties: { "class": "this.hostClass", "class.m-0": "this.isHostHidden" } }, providers: [ConfirmationService], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"($isVisible | async) && ($isPermitted | async)\">\n <a\n *ngIf=\"actionLink && actionLink.url !== ''; else routerLink\"\n pButton\n pRipple\n [icon]=\"$any(action.button.icon)\"\n [href]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false) ? null : (actionLink.url | parametrize: itemId:item:actionData)\"\n [target]=\"actionLink.target\"\n [class.disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n [class]=\"buttonClass\"\n >{{ ($label | async) ?? '' }}</a\n >\n <ng-template #routerLink>\n <a\n *ngIf=\"actionLink; else button\"\n pButton\n pRipple\n [icon]=\"$any(action.button.icon)\"\n [target]=\"actionLink.target\"\n [replaceUrl]=\"actionLink.replaceUrl\"\n [routerLink]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false) ? null : (actionLink.pathSegments | parametrize: itemId:item:actionData)\"\n [queryParams]=\"actionLink.queryParams | parametrize: itemId:item:actionData\"\n [queryParamsHandling]=\"actionLink.queryParamsHandling\"\n [class.disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n [class]=\"buttonClass\"\n >{{ ($label | async) ?? '' }}</a\n >\n </ng-template>\n <ng-template #button>\n <button\n type=\"button\"\n pButton\n pRipple\n [icon]=\"$any(action.button.icon)\"\n [label]=\"($label | async) ?? ''\"\n [pTooltip]=\"$any($tooltip | async)\"\n [loading]=\"(($loading | async) ?? false) || ((inputLoading | async) ?? false)\"\n [disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n (click)=\"triggerAction($event)\"\n [class]=\"buttonClass\"></button>\n </ng-template>\n <p-confirmDialog\n *ngIf=\"action.runConfirmationDialogDescriptor\"\n [key]=\"action.actionName + '_' + cmpId\"\n [baseZIndex]=\"50\"\n appendTo=\"body\"\n [closable]=\"action.runConfirmationDialogDescriptor.closable\"></p-confirmDialog>\n</ng-container>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "directive", type: i7.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i4$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "component", type: i9.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }, { kind: "directive", type: i6.Ripple, selector: "[pRipple]" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: MngParametrizePipe, name: "parametrize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7780
7701
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngActionComponent, decorators: [{
7781
7702
  type: Component,
7782
- args: [{ selector: 'mng-action', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ConfirmationService], template: "<ng-container *ngIf=\"($isVisible | async) && ($isPermitted | async)\">\n <a\n *ngIf=\"actionLink && actionLink.url !== ''; else routerLink\"\n pButton\n pRipple\n [icon]=\"$any(action.buttonDescriptor.icon)\"\n [href]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false) ? null : (actionLink.url | parametrize: itemId:item:actionData)\"\n [target]=\"actionLink.target\"\n [class.disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n [class]=\"buttonClass\"\n >{{ ($label | async) ?? '' }}</a\n >\n <ng-template #routerLink>\n <a\n *ngIf=\"actionLink; else button\"\n pButton\n pRipple\n [icon]=\"$any(action.buttonDescriptor.icon)\"\n [target]=\"actionLink.target\"\n [replaceUrl]=\"actionLink.replaceUrl\"\n [routerLink]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false) ? null : (actionLink.pathSegments | parametrize: itemId:item:actionData)\"\n [queryParams]=\"actionLink.queryParams | parametrize: itemId:item:actionData\"\n [queryParamsHandling]=\"actionLink.queryParamsHandling\"\n [class.disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n [class]=\"buttonClass\"\n >{{ ($label | async) ?? '' }}</a\n >\n </ng-template>\n <ng-template #button>\n <button\n type=\"button\"\n pButton\n pRipple\n [icon]=\"$any(action.buttonDescriptor.icon)\"\n [label]=\"($label | async) ?? ''\"\n [pTooltip]=\"$any($tooltip | async)\"\n [loading]=\"(($loading | async) ?? false) || ((inputLoading | async) ?? false)\"\n [disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n (click)=\"triggerAction($event)\"\n [class]=\"buttonClass\"></button>\n </ng-template>\n <p-confirmDialog\n *ngIf=\"action.runConfirmationDialogDescriptor\"\n [key]=\"action.actionName + '_' + cmpId\"\n [baseZIndex]=\"50\"\n appendTo=\"body\"\n [closable]=\"action.runConfirmationDialogDescriptor.closable\"></p-confirmDialog>\n</ng-container>\n", styles: [":host{display:inline-block}\n"] }]
7703
+ args: [{ selector: 'mng-action', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ConfirmationService], template: "<ng-container *ngIf=\"($isVisible | async) && ($isPermitted | async)\">\n <a\n *ngIf=\"actionLink && actionLink.url !== ''; else routerLink\"\n pButton\n pRipple\n [icon]=\"$any(action.button.icon)\"\n [href]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false) ? null : (actionLink.url | parametrize: itemId:item:actionData)\"\n [target]=\"actionLink.target\"\n [class.disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n [class]=\"buttonClass\"\n >{{ ($label | async) ?? '' }}</a\n >\n <ng-template #routerLink>\n <a\n *ngIf=\"actionLink; else button\"\n pButton\n pRipple\n [icon]=\"$any(action.button.icon)\"\n [target]=\"actionLink.target\"\n [replaceUrl]=\"actionLink.replaceUrl\"\n [routerLink]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false) ? null : (actionLink.pathSegments | parametrize: itemId:item:actionData)\"\n [queryParams]=\"actionLink.queryParams | parametrize: itemId:item:actionData\"\n [queryParamsHandling]=\"actionLink.queryParamsHandling\"\n [class.disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n [class]=\"buttonClass\"\n >{{ ($label | async) ?? '' }}</a\n >\n </ng-template>\n <ng-template #button>\n <button\n type=\"button\"\n pButton\n pRipple\n [icon]=\"$any(action.button.icon)\"\n [label]=\"($label | async) ?? ''\"\n [pTooltip]=\"$any($tooltip | async)\"\n [loading]=\"(($loading | async) ?? false) || ((inputLoading | async) ?? false)\"\n [disabled]=\"($isEnabled | async) === false || ((inputDisabled | async) ?? false)\"\n (click)=\"triggerAction($event)\"\n [class]=\"buttonClass\"></button>\n </ng-template>\n <p-confirmDialog\n *ngIf=\"action.runConfirmationDialogDescriptor\"\n [key]=\"action.actionName + '_' + cmpId\"\n [baseZIndex]=\"50\"\n appendTo=\"body\"\n [closable]=\"action.runConfirmationDialogDescriptor.closable\"></p-confirmDialog>\n</ng-container>\n", styles: [":host{display:inline-block}\n"] }]
7783
7704
  }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1$2.TranslateService }, { type: MngAuthorizationService }, { type: MngActionExecutorService }, { type: i2.ConfirmationService }, { type: MngViewContainerComponentService, decorators: [{
7784
7705
  type: Optional
7785
7706
  }] }]; }, propDecorators: { hostClass: [{
@@ -8829,11 +8750,11 @@ class MngActionEditorComponent {
8829
8750
  this.setTitle();
8830
8751
  for (const action of this.action.editorActions) {
8831
8752
  if (action instanceof ActionEditorSubmitDescriptor) {
8832
- if (typeof action.buttonDescriptor.icon === 'undefined') {
8833
- action.buttonDescriptor.withIcon(action.submitType === ActionEditorSubmitTypeEnum.Submit ? 'pi pi-check' : 'pi pi-times');
8753
+ if (typeof action.button.icon === 'undefined') {
8754
+ action.button.withIcon(action.submitType === ActionEditorSubmitTypeEnum.Submit ? 'pi pi-check' : 'pi pi-times');
8834
8755
  }
8835
- if (typeof action.buttonDescriptor.label === 'undefined') {
8836
- action.buttonDescriptor.withLabel(action.submitType === ActionEditorSubmitTypeEnum.Submit ? 'general.save' : this.isDialog ? 'general.close' : 'general.cancel');
8756
+ if (typeof action.button.label === 'undefined') {
8757
+ action.button.withLabel(action.submitType === ActionEditorSubmitTypeEnum.Submit ? 'general.save' : this.isDialog ? 'general.close' : 'general.cancel');
8837
8758
  }
8838
8759
  // assign run operations
8839
8760
  action.withRunNotificationSuccess(undefined, undefined, false);
@@ -9000,47 +8921,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
9000
8921
  args: [MngFormEditorComponent]
9001
8922
  }] } });
9002
8923
 
9003
- class MngButtonComponent {
9004
- constructor() {
9005
- this.clickEmitter = new EventEmitter();
9006
- this.focusEmitter = new EventEmitter();
9007
- this.blurEmitter = new EventEmitter();
9008
- this.buttonClass = 'p-button';
9009
- }
9010
- ngOnInit() {
9011
- this.buttonClass = `${this.descriptor.styleClass.getButtonClass(this.descriptor.label == null)}`;
9012
- }
9013
- onClick(event) {
9014
- this.clickEmitter.next(event);
9015
- this.descriptor.onClick?.(event);
9016
- }
9017
- onFocus(event) {
9018
- this.focusEmitter.next(event);
9019
- this.descriptor.onFocus?.(event);
9020
- }
9021
- onBlur(event) {
9022
- this.blurEmitter.next(event);
9023
- this.descriptor.onBlur?.(event);
9024
- }
9025
- }
9026
- MngButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9027
- MngButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngButtonComponent, selector: "mng-button", inputs: { descriptor: "descriptor" }, outputs: { clickEmitter: "buttonClick", focusEmitter: "buttonFocus", blurEmitter: "buttonBlur" }, ngImport: i0, template: "<p-button\n #button\n type=\"button\"\n [label]=\"$any(descriptor.label) | translate\"\n [icon]=\"$any(descriptor.icon)\"\n [iconPos]=\"$any(descriptor.iconPosition)\"\n [loading]=\"$any(descriptor.loading)\"\n [loadingIcon]=\"$any(descriptor.loadingIcon)\"\n [disabled]=\"$any(descriptor.disabled)\"\n [styleClass]=\"buttonClass\"\n [pTooltip]=\"$any(descriptor.tooltip) | translate\"\n [badge]=\"$any(descriptor.badge)\"\n (onClick)=\"onClick($event)\"\n (onBlur)=\"onBlur($event)\"\n (onFocus)=\"onFocus($event)\"></p-button>\n", dependencies: [{ kind: "directive", type: i7.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i4$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9028
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngButtonComponent, decorators: [{
9029
- type: Component,
9030
- args: [{ selector: 'mng-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-button\n #button\n type=\"button\"\n [label]=\"$any(descriptor.label) | translate\"\n [icon]=\"$any(descriptor.icon)\"\n [iconPos]=\"$any(descriptor.iconPosition)\"\n [loading]=\"$any(descriptor.loading)\"\n [loadingIcon]=\"$any(descriptor.loadingIcon)\"\n [disabled]=\"$any(descriptor.disabled)\"\n [styleClass]=\"buttonClass\"\n [pTooltip]=\"$any(descriptor.tooltip) | translate\"\n [badge]=\"$any(descriptor.badge)\"\n (onClick)=\"onClick($event)\"\n (onBlur)=\"onBlur($event)\"\n (onFocus)=\"onFocus($event)\"></p-button>\n" }]
9031
- }], propDecorators: { descriptor: [{
9032
- type: Input
9033
- }], clickEmitter: [{
9034
- type: Output,
9035
- args: ['buttonClick']
9036
- }], focusEmitter: [{
9037
- type: Output,
9038
- args: ['buttonFocus']
9039
- }], blurEmitter: [{
9040
- type: Output,
9041
- args: ['buttonBlur']
9042
- }] } });
9043
-
9044
8924
  class MngFormlyFieldAutocompleteComponent extends FieldType {
9045
8925
  constructor() {
9046
8926
  super(...arguments);
@@ -10070,7 +9950,7 @@ class AMngTableviewRouteComponent {
10070
9950
  }));
10071
9951
  })
10072
9952
  .withPosition(ActionPositionEnum.ToolbarRight);
10073
- action.buttonDescriptor.withIcon('pi pi-upload');
9953
+ action.button.withIcon('pi pi-upload');
10074
9954
  return action;
10075
9955
  }
10076
9956
  createActionDescriptorForRefresh(descriptor = this.descriptor.model) {
@@ -10082,7 +9962,7 @@ class AMngTableviewRouteComponent {
10082
9962
  ctx.parameters.viewContainer.triggerTableReload({});
10083
9963
  return of(null);
10084
9964
  });
10085
- action.buttonDescriptor.withIcon('pi pi-refresh').styleClass.withActionLevel(ActionLevelEnum.Secondary);
9965
+ action.button.withIcon('pi pi-refresh').styleClass.withActionLevel(StyleLevelEnum.Secondary);
10086
9966
  return action;
10087
9967
  }
10088
9968
  }
@@ -10322,17 +10202,17 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
10322
10202
  const viewAction = new ActionEditorDescriptor(this.descriptor.tableviewDescriptor.viewEditor, 'details', this.descriptor.editor.model.type, this.descriptor.property)
10323
10203
  .withPosition(ActionPositionEnum.RowClick)
10324
10204
  .withDialogClassName('mng-field-dialog mng-action-editor-dialog')
10325
- .withDialogSize(ActionEditorDialogSizeEnum.Small);
10205
+ .withDialogSize(StyleSizeEnum.Small);
10326
10206
  viewAction.withEditorActions([new ActionEditorSubmitDescriptor(viewAction, ActionEditorSubmitTypeEnum.Cancel)]);
10327
- viewAction.buttonDescriptor.withLabel(null);
10207
+ viewAction.button.withLabel(null);
10328
10208
  this.actions.push(viewAction);
10329
10209
  }
10330
10210
  if (hasAddAction) {
10331
10211
  const addAction = new ActionEditorDescriptor(this.descriptor.tableviewDescriptor.addEditor, 'add', this.descriptor.editor.model.type, this.descriptor.property)
10332
10212
  .withPosition(ActionPositionEnum.ToolbarRight)
10333
10213
  .withDialogClassName('mng-field-dialog mng-action-editor-dialog')
10334
- .withDialogSize(ActionEditorDialogSizeEnum.Small)
10335
- .withButtonDescriptor(new ButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withSize(ActionSizeEnum.ExtraSmall)))
10214
+ .withDialogSize(StyleSizeEnum.Small)
10215
+ .withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withSize(StyleSizeEnum.ExtraSmall)))
10336
10216
  .withSubmitFunction(ctx => {
10337
10217
  if (!ctx.parameters.item) {
10338
10218
  return throwError(() => new Error(`No item was provided in context, edit cannot be done.`));
@@ -10345,15 +10225,15 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
10345
10225
  })
10346
10226
  .withIsVisibleFunction(() => of(!this.options?.formState.disabled))
10347
10227
  .withIsEnabledFunction(() => this.isEnabled$);
10348
- addAction.buttonDescriptor.withLabel(null).withIcon('pi pi-plus');
10228
+ addAction.button.withLabel(null).withIcon('pi pi-plus');
10349
10229
  this.actions.push(addAction);
10350
10230
  }
10351
10231
  if (hasEditAction) {
10352
10232
  const editAction = new ActionEditorDescriptor(this.descriptor.tableviewDescriptor.editEditor, 'edit', this.descriptor.editor.model.type, this.descriptor.property)
10353
10233
  .withPosition(ActionPositionEnum.RowInline)
10354
10234
  .withDialogClassName('mng-field-dialog mng-action-editor-dialog')
10355
- .withDialogSize(ActionEditorDialogSizeEnum.Small)
10356
- .withButtonDescriptor(new ButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withSize(ActionSizeEnum.ExtraSmall)))
10235
+ .withDialogSize(StyleSizeEnum.Small)
10236
+ .withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withSize(StyleSizeEnum.ExtraSmall)))
10357
10237
  .withSubmitFunction(ctx => {
10358
10238
  if (!ctx.parameters.item) {
10359
10239
  return throwError(() => new Error(`No item was provided in context, edit cannot be done.`));
@@ -10366,13 +10246,13 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
10366
10246
  })
10367
10247
  .withIsVisibleFunction(() => of(!this.formControl?.disabled))
10368
10248
  .withIsEnabledFunction(() => this.isEnabled$);
10369
- editAction.buttonDescriptor.withLabel(null).withIcon('pi pi-pencil');
10249
+ editAction.button.withLabel(null).withIcon('pi pi-pencil');
10370
10250
  this.actions.push(editAction);
10371
10251
  }
10372
10252
  if (hasDeleteAction) {
10373
10253
  const deleteAction = new ActionDescriptor(this.descriptor.tableviewDescriptor.model, 'delete', this.descriptor.editor.model.type, this.descriptor.property)
10374
10254
  .withPosition(ActionPositionEnum.RowInline)
10375
- .withButtonDescriptor(new ButtonDescriptor().withStyleClass(new ButtonStyleBuilder(ActionLevelEnum.Danger).withSize(ActionSizeEnum.ExtraSmall)))
10255
+ .withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder(StyleLevelEnum.Danger).withSize(StyleSizeEnum.ExtraSmall)))
10376
10256
  .withRunFunction(ctx => {
10377
10257
  if (!ctx.parameters.item) {
10378
10258
  return throwError(() => new Error(`No item was provided in context, delete cannot be done.`));
@@ -10397,7 +10277,7 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
10397
10277
  })
10398
10278
  .withIsVisibleFunction(() => of(!this.options?.formState.disabled))
10399
10279
  .withIsEnabledFunction(() => this.isEnabled$);
10400
- deleteAction.buttonDescriptor.withLabel(null).withIcon('pi pi-trash');
10280
+ deleteAction.button.withLabel(null).withIcon('pi pi-trash');
10401
10281
  this.actions.push(deleteAction);
10402
10282
  }
10403
10283
  this.actions.push(...this.descriptor.actions);
@@ -11599,9 +11479,7 @@ const declarations = [
11599
11479
  MngFormEditorComponent,
11600
11480
  MngActionComponent,
11601
11481
  MngActionEditorComponent,
11602
- MngActionRouteComponent,
11603
- //button
11604
- MngButtonComponent
11482
+ MngActionRouteComponent
11605
11483
  ];
11606
11484
  class MngCommonsModule {
11607
11485
  static forRoot(config) {
@@ -11724,9 +11602,7 @@ MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
11724
11602
  MngFormEditorComponent,
11725
11603
  MngActionComponent,
11726
11604
  MngActionEditorComponent,
11727
- MngActionRouteComponent,
11728
- //button
11729
- MngButtonComponent], imports: [
11605
+ MngActionRouteComponent], imports: [
11730
11606
  // angular modules
11731
11607
  CommonModule,
11732
11608
  RouterModule,
@@ -11845,9 +11721,7 @@ MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
11845
11721
  MngFormEditorComponent,
11846
11722
  MngActionComponent,
11847
11723
  MngActionEditorComponent,
11848
- MngActionRouteComponent,
11849
- //button
11850
- MngButtonComponent] });
11724
+ MngActionRouteComponent] });
11851
11725
  MngCommonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngCommonsModule, imports: [
11852
11726
  // angular modules
11853
11727
  CommonModule,
@@ -12687,5 +12561,5 @@ class TableviewRouteBuilder {
12687
12561
  * Generated bundle index. Do not edit.
12688
12562
  */
12689
12563
 
12690
- export { ACTION_EDITOR_DIALOG_COMPONENT_SETTING, AFieldDescriptor, AFieldGroupDescriptor, AGenericFieldDescriptor, AMngApiService, AMngBaseApiService, AMngCrudApiService, AMngGetAllApiService, AMngTableviewRouteComponent, APermissions, ActionActivationTriggerEnum, ActionConfirmationDialogDescriptor, ActionContext, ActionContextValidation, ActionDataProviderUtil, ActionDeleteDescriptor, ActionDescriptor, ActionEditorAddDescriptor, ActionEditorDescriptor, ActionEditorDetailsDescriptor, ActionEditorDialogSizeEnum, ActionEditorEditDescriptor, ActionEditorSubmitDescriptor, ActionEditorSubmitTypeEnum, ActionError, ActionInstance, ActionInstanceStateEnum, ActionLevelEnum, ActionLinkDescriptor, ActionParameters, ActionPositionEnum, ActionSimpleDescriptor, ActionSizeEnum, ActionTypeEnum, AuthorizationTypeEnum, AuthorizationUtil, ButtonDescriptor, ButtonStyleBuilder, ButtonStyleRoundedEnum, ColumnDescriptor, ColumnDynamicDescriptor, ColumnTypeEnum, DataProvider, DateUtil, DefaultMngErrorMapperService, DynamicTableviewDataProvider, EditorDataProvider, EditorDescriptor, EditorFormlyUtil, EnumName, EnumUtil, FieldGroupDescriptor, FieldGroupTypeEnum, FieldInputDescriptor, FieldInputTypeEnum, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldLookupTypeEnum, FieldManyEditorActionEnum, FieldManyEditorDescriptor, FieldManyEditorTypeEnum, FieldManyToManyEditorActionEnum, FieldManyToManyEditorDescriptor, FieldManyToManyEditorTypeEnum, FieldSizeEnum, FieldTabGroupDescriptor, FieldValidationDescriptor, FilterDescriptor, FilterLookupDescriptor, FilterLookupEnumDescriptor, FilterLookupTypeEnum, FilterMatchModeEnum, FilterTypeEnum, I18nUtils, JsonPathPipe, LookupDataProvider, MNG_AUTOCOMPLETE_VALUE_ACCESSOR, MNG_BROWSER_STORAGE_IT, MNG_COMMONS_INITIALIZER_IT, MNG_DATE_RANGE_VALUE_ACCESSOR, MNG_DROPDOWN_VALUE_ACCESSOR, MNG_MODULE_CONFIG_IT, MediusFilterMatchType, MediusFilterParam, MediusQueryMode, MediusQueryParam, MediusQueryParamBuilder, MediusQueryResult, MediusRestUtil, MngActionComponent, MngActionEditorComponent, MngActionExecutorService, MngActionRouteComponent, MngAuthorizationGuard, MngAuthorizationService, MngAutocompleteComponent, MngBooleanPipe, MngBreadcrumbComponent, MngButtonComponent, MngClassMapPipe, MngCommonsModule, MngCommonsService, MngComponentDirective, MngConfigurationService, MngDateRangeComponent, MngDropdownComponent, MngEnumPipe, MngErrorMapperService, MngFooterComponent, MngFormEditorComponent, MngFormEditorSubmitEvent, MngFormFieldEvent, MngFormFieldEventComponentSubtype, MngFormFieldEventDialogSubtype, MngFormFieldEventTypeEnum, MngFormlyFieldAutocompleteComponent, MngFormlyFieldDropdownComponent, MngFormlyFieldFieldsetComponent, MngFormlyFieldInputComponent, MngFormlyFieldLabelComponent, MngFormlyFieldLookupDialogComponent, MngFormlyFieldTableDialogFormComponent, MngFormlyFieldTableDialogMultiselectComponent, MngFormlyFieldTabsComponent, MngFormlyFieldWrapperComponent, MngFormlyTableWrapperComponent, MngGetterPipe, MngI18nPropertyPipe, MngMainLayoutComponent, MngMainLayoutComponentService, MngMenuComponent, MngMenuItemComponent, MngNavigationService, MngParametrizePipe, MngTableCellClickEvent, MngTableColumnFilterComponent, MngTableColumnValueComponent, MngTableComponent, MngTableLoadEvent, MngTableReloadEvent, MngTableviewComponent, MngTableviewRouteComponent, MngTemplateDirective, MngTemplatePipe, MngTopbarComponent, MngVersionComponent, MngViewContainerComponentService, ModelDescriptor, ModelUtil, NotificationUtil, ObjectSerializer, Permissions, RouteBuilder, RoutesBuilder, StringUtil, StylesUtil, TableDataProvider, TableDescriptor, TableDynamicColumnsModeEnum, TableDynamicDescriptor, TableFilterDisplayEnum, TablePaginationModeEnum, TableSizeEnum, TableviewActionDefaultCategories, TableviewCrudDataProvider, TableviewDataProvider, TableviewDescriptor, TableviewDynamicDescriptor, TableviewRouteBuilder, TableviewTypeEnum, TypeName, TypeUtil, enumNameDecoratorPropertyName, enumsMapBase, formlyTypesConfig, formlyWrappersConfig, getEmailValidationMessage, getFormlyValidationMessages, getMaxLengthValidationMessage, getMinLengthValidationMessage, getRequiredValidationMessage, getTextPatternValidationMessage, mngConfigJsonAppInitializerProvider, mngConfigurationServiceProvider, mngFormlyConfigProvider, primeNgModules, typeMapBase, typeNameDecoratorPropertyName };
12564
+ export { ACTION_EDITOR_DIALOG_COMPONENT_SETTING, AFieldDescriptor, AFieldGroupDescriptor, AGenericFieldDescriptor, AMngApiService, AMngBaseApiService, AMngCrudApiService, AMngGetAllApiService, AMngTableviewRouteComponent, APermissions, ActionActivationTriggerEnum, ActionButtonDescriptor, ActionConfirmationDialogDescriptor, ActionContext, ActionContextValidation, ActionDataProviderUtil, ActionDeleteDescriptor, ActionDescriptor, ActionEditorAddDescriptor, ActionEditorDescriptor, ActionEditorDetailsDescriptor, ActionEditorEditDescriptor, ActionEditorSubmitDescriptor, ActionEditorSubmitTypeEnum, ActionError, ActionInstance, ActionInstanceStateEnum, ActionLinkDescriptor, ActionParameters, ActionPositionEnum, ActionSimpleDescriptor, ActionTypeEnum, AuthorizationTypeEnum, AuthorizationUtil, ButtonStyleBuilder, ButtonStyleRoundedEnum, ColumnDescriptor, ColumnDynamicDescriptor, ColumnTypeEnum, DataProvider, DateUtil, DefaultMngErrorMapperService, DynamicTableviewDataProvider, EditorDataProvider, EditorDescriptor, EditorFormlyUtil, EnumName, EnumUtil, FieldGroupDescriptor, FieldGroupTypeEnum, FieldInputDescriptor, FieldInputTypeEnum, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldLookupTypeEnum, FieldManyEditorActionEnum, FieldManyEditorDescriptor, FieldManyEditorTypeEnum, FieldManyToManyEditorActionEnum, FieldManyToManyEditorDescriptor, FieldManyToManyEditorTypeEnum, FieldSizeEnum, FieldTabGroupDescriptor, FieldValidationDescriptor, FilterDescriptor, FilterLookupDescriptor, FilterLookupEnumDescriptor, FilterLookupTypeEnum, FilterMatchModeEnum, FilterTypeEnum, I18nUtils, JsonPathPipe, LookupDataProvider, MNG_AUTOCOMPLETE_VALUE_ACCESSOR, MNG_BROWSER_STORAGE_IT, MNG_COMMONS_INITIALIZER_IT, MNG_DATE_RANGE_VALUE_ACCESSOR, MNG_DROPDOWN_VALUE_ACCESSOR, MNG_MODULE_CONFIG_IT, MediusFilterMatchType, MediusFilterParam, MediusQueryMode, MediusQueryParam, MediusQueryParamBuilder, MediusQueryResult, MediusRestUtil, MngActionComponent, MngActionEditorComponent, MngActionExecutorService, MngActionRouteComponent, MngAuthorizationGuard, MngAuthorizationService, MngAutocompleteComponent, MngBooleanPipe, MngBreadcrumbComponent, MngClassMapPipe, MngCommonsModule, MngCommonsService, MngComponentDirective, MngConfigurationService, MngDateRangeComponent, MngDropdownComponent, MngEnumPipe, MngErrorMapperService, MngFooterComponent, MngFormEditorComponent, MngFormEditorSubmitEvent, MngFormFieldEvent, MngFormFieldEventComponentSubtype, MngFormFieldEventDialogSubtype, MngFormFieldEventTypeEnum, MngFormlyFieldAutocompleteComponent, MngFormlyFieldDropdownComponent, MngFormlyFieldFieldsetComponent, MngFormlyFieldInputComponent, MngFormlyFieldLabelComponent, MngFormlyFieldLookupDialogComponent, MngFormlyFieldTableDialogFormComponent, MngFormlyFieldTableDialogMultiselectComponent, MngFormlyFieldTabsComponent, MngFormlyFieldWrapperComponent, MngFormlyTableWrapperComponent, MngGetterPipe, MngI18nPropertyPipe, MngMainLayoutComponent, MngMainLayoutComponentService, MngMenuComponent, MngMenuItemComponent, MngNavigationService, MngParametrizePipe, MngTableCellClickEvent, MngTableColumnFilterComponent, MngTableColumnValueComponent, MngTableComponent, MngTableLoadEvent, MngTableReloadEvent, MngTableviewComponent, MngTableviewRouteComponent, MngTemplateDirective, MngTemplatePipe, MngTopbarComponent, MngVersionComponent, MngViewContainerComponentService, ModelDescriptor, ModelUtil, NotificationUtil, ObjectSerializer, Permissions, RouteBuilder, RoutesBuilder, StringUtil, StyleLevelEnum, StyleSizeEnum, StylesUtil, TableDataProvider, TableDescriptor, TableDynamicColumnsModeEnum, TableDynamicDescriptor, TableFilterDisplayEnum, TablePaginationModeEnum, TableSizeEnum, TableviewActionDefaultCategories, TableviewCrudDataProvider, TableviewDataProvider, TableviewDescriptor, TableviewDynamicDescriptor, TableviewRouteBuilder, TableviewTypeEnum, TypeName, TypeUtil, enumNameDecoratorPropertyName, enumsMapBase, formlyTypesConfig, formlyWrappersConfig, getEmailValidationMessage, getFormlyValidationMessages, getMaxLengthValidationMessage, getMinLengthValidationMessage, getRequiredValidationMessage, getTextPatternValidationMessage, mngConfigJsonAppInitializerProvider, mngConfigurationServiceProvider, mngFormlyConfigProvider, primeNgModules, typeMapBase, typeNameDecoratorPropertyName };
12691
12565
  //# sourceMappingURL=mediusinc-mng-commons.mjs.map