@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.
- package/esm2020/lib/components/action/action.component.mjs +7 -7
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +14 -13
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +5 -4
- package/esm2020/lib/descriptors/action/action-confirmation.descriptor.mjs +15 -44
- package/esm2020/lib/descriptors/action-button.descriptor.mjs +60 -0
- package/esm2020/lib/descriptors/action.descriptor.mjs +27 -22
- package/esm2020/lib/descriptors/column.descriptor.mjs +1 -1
- package/esm2020/lib/descriptors/index.mjs +2 -2
- package/esm2020/lib/descriptors/types/action.type.mjs +1 -28
- package/esm2020/lib/mng-commons.module.mjs +4 -11
- package/esm2020/lib/services/action-executor.service.mjs +23 -20
- package/esm2020/lib/styles/button-style.builder.mjs +30 -28
- package/esm2020/lib/styles/models/index.mjs +3 -0
- package/esm2020/lib/styles/models/style-level.enum.mjs +12 -0
- package/esm2020/lib/styles/models/style-size.enum.mjs +9 -0
- package/esm2020/lib/styles/styles.util.mjs +9 -8
- package/esm2020/public-api.mjs +2 -2
- package/fesm2015/mediusinc-mng-commons.mjs +199 -327
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +195 -321
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/descriptors/action/action-confirmation.descriptor.d.ts +7 -19
- package/lib/descriptors/action-button.descriptor.d.ts +22 -0
- package/lib/descriptors/action.descriptor.d.ts +12 -10
- package/lib/descriptors/index.d.ts +1 -1
- package/lib/descriptors/types/action.type.d.ts +0 -24
- package/lib/mng-commons.module.d.ts +41 -42
- package/lib/styles/button-style.builder.d.ts +8 -8
- package/lib/styles/models/index.d.ts +2 -0
- package/lib/styles/models/style-level.enum.d.ts +10 -0
- package/lib/styles/models/style-size.enum.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/version-info.json +5 -5
- package/esm2020/lib/components/button/button.component.mjs +0 -46
- package/esm2020/lib/components/button/index.mjs +0 -2
- package/esm2020/lib/descriptors/button.descriptor.mjs +0 -111
- package/lib/components/button/button.component.d.ts +0 -16
- package/lib/components/button/index.d.ts +0 -1
- package/lib/descriptors/button.descriptor.d.ts +0 -40
|
@@ -861,33 +861,6 @@ var ActionTypeEnum;
|
|
|
861
861
|
ActionTypeEnum[ActionTypeEnum["Direct"] = 0] = "Direct";
|
|
862
862
|
ActionTypeEnum[ActionTypeEnum["Editor"] = 1] = "Editor"; // editor providing middle step for activation
|
|
863
863
|
})(ActionTypeEnum || (ActionTypeEnum = {}));
|
|
864
|
-
var ActionLevelEnum;
|
|
865
|
-
(function (ActionLevelEnum) {
|
|
866
|
-
ActionLevelEnum[ActionLevelEnum["Default"] = 0] = "Default";
|
|
867
|
-
ActionLevelEnum[ActionLevelEnum["Primary"] = 1] = "Primary";
|
|
868
|
-
ActionLevelEnum[ActionLevelEnum["Secondary"] = 2] = "Secondary";
|
|
869
|
-
ActionLevelEnum[ActionLevelEnum["Info"] = 3] = "Info";
|
|
870
|
-
ActionLevelEnum[ActionLevelEnum["Help"] = 4] = "Help";
|
|
871
|
-
ActionLevelEnum[ActionLevelEnum["Success"] = 5] = "Success";
|
|
872
|
-
ActionLevelEnum[ActionLevelEnum["Warning"] = 6] = "Warning";
|
|
873
|
-
ActionLevelEnum[ActionLevelEnum["Danger"] = 7] = "Danger";
|
|
874
|
-
})(ActionLevelEnum || (ActionLevelEnum = {}));
|
|
875
|
-
var ActionSizeEnum;
|
|
876
|
-
(function (ActionSizeEnum) {
|
|
877
|
-
ActionSizeEnum[ActionSizeEnum["ExtraSmall"] = 0] = "ExtraSmall";
|
|
878
|
-
ActionSizeEnum[ActionSizeEnum["Small"] = 1] = "Small";
|
|
879
|
-
ActionSizeEnum[ActionSizeEnum["Normal"] = 2] = "Normal";
|
|
880
|
-
ActionSizeEnum[ActionSizeEnum["Large"] = 3] = "Large";
|
|
881
|
-
ActionSizeEnum[ActionSizeEnum["ExtraLarge"] = 4] = "ExtraLarge";
|
|
882
|
-
})(ActionSizeEnum || (ActionSizeEnum = {}));
|
|
883
|
-
var ActionEditorDialogSizeEnum;
|
|
884
|
-
(function (ActionEditorDialogSizeEnum) {
|
|
885
|
-
ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["ExtraSmall"] = 0] = "ExtraSmall";
|
|
886
|
-
ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["Small"] = 1] = "Small";
|
|
887
|
-
ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["Normal"] = 2] = "Normal";
|
|
888
|
-
ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["Large"] = 3] = "Large";
|
|
889
|
-
ActionEditorDialogSizeEnum[ActionEditorDialogSizeEnum["ExtraLarge"] = 4] = "ExtraLarge";
|
|
890
|
-
})(ActionEditorDialogSizeEnum || (ActionEditorDialogSizeEnum = {}));
|
|
891
864
|
var ActionEditorSubmitTypeEnum;
|
|
892
865
|
(function (ActionEditorSubmitTypeEnum) {
|
|
893
866
|
ActionEditorSubmitTypeEnum[ActionEditorSubmitTypeEnum["Submit"] = 0] = "Submit";
|
|
@@ -1023,6 +996,27 @@ var TableDynamicColumnsModeEnum;
|
|
|
1023
996
|
TableDynamicColumnsModeEnum[TableDynamicColumnsModeEnum["INCLUDE_ONLY"] = 1] = "INCLUDE_ONLY";
|
|
1024
997
|
})(TableDynamicColumnsModeEnum || (TableDynamicColumnsModeEnum = {}));
|
|
1025
998
|
|
|
999
|
+
var StyleLevelEnum;
|
|
1000
|
+
(function (StyleLevelEnum) {
|
|
1001
|
+
StyleLevelEnum[StyleLevelEnum["Default"] = 0] = "Default";
|
|
1002
|
+
StyleLevelEnum[StyleLevelEnum["Primary"] = 1] = "Primary";
|
|
1003
|
+
StyleLevelEnum[StyleLevelEnum["Secondary"] = 2] = "Secondary";
|
|
1004
|
+
StyleLevelEnum[StyleLevelEnum["Info"] = 3] = "Info";
|
|
1005
|
+
StyleLevelEnum[StyleLevelEnum["Help"] = 4] = "Help";
|
|
1006
|
+
StyleLevelEnum[StyleLevelEnum["Success"] = 5] = "Success";
|
|
1007
|
+
StyleLevelEnum[StyleLevelEnum["Warning"] = 6] = "Warning";
|
|
1008
|
+
StyleLevelEnum[StyleLevelEnum["Danger"] = 7] = "Danger";
|
|
1009
|
+
})(StyleLevelEnum || (StyleLevelEnum = {}));
|
|
1010
|
+
|
|
1011
|
+
var StyleSizeEnum;
|
|
1012
|
+
(function (StyleSizeEnum) {
|
|
1013
|
+
StyleSizeEnum[StyleSizeEnum["ExtraSmall"] = 0] = "ExtraSmall";
|
|
1014
|
+
StyleSizeEnum[StyleSizeEnum["Small"] = 1] = "Small";
|
|
1015
|
+
StyleSizeEnum[StyleSizeEnum["Normal"] = 2] = "Normal";
|
|
1016
|
+
StyleSizeEnum[StyleSizeEnum["Large"] = 3] = "Large";
|
|
1017
|
+
StyleSizeEnum[StyleSizeEnum["ExtraLarge"] = 4] = "ExtraLarge";
|
|
1018
|
+
})(StyleSizeEnum || (StyleSizeEnum = {}));
|
|
1019
|
+
|
|
1026
1020
|
class StylesUtil {
|
|
1027
1021
|
static calculateTableColumnActionWidth(table, actions) {
|
|
1028
1022
|
const buttonsWidth = actions.reduce((acc, action) => acc + StylesUtil.getActionButtonRoundedWidth(action) + 2 * StylesUtil.ACTION_BUTTON_MARGIN_X, 0);
|
|
@@ -1040,15 +1034,15 @@ class StylesUtil {
|
|
|
1040
1034
|
}
|
|
1041
1035
|
}
|
|
1042
1036
|
static getActionButtonRoundedWidth(action) {
|
|
1043
|
-
switch (action.
|
|
1044
|
-
case
|
|
1037
|
+
switch (action.button.styleClass.size) {
|
|
1038
|
+
case StyleSizeEnum.ExtraSmall:
|
|
1045
1039
|
return StylesUtil.BUTTON_ROUNDED_WIDTH_XS;
|
|
1046
|
-
case
|
|
1040
|
+
case StyleSizeEnum.Small:
|
|
1047
1041
|
return StylesUtil.BUTTON_ROUNDED_WIDTH_SM;
|
|
1048
|
-
case
|
|
1049
|
-
case
|
|
1042
|
+
case StyleSizeEnum.Large:
|
|
1043
|
+
case StyleSizeEnum.ExtraLarge:
|
|
1050
1044
|
return StylesUtil.BUTTON_ROUNDED_WIDTH_LG;
|
|
1051
|
-
case
|
|
1045
|
+
case StyleSizeEnum.Normal:
|
|
1052
1046
|
default:
|
|
1053
1047
|
return StylesUtil.BUTTON_ROUNDED_WIDTH;
|
|
1054
1048
|
}
|
|
@@ -1064,8 +1058,8 @@ StylesUtil.TABLE_CELL_PADDING_X_SM = 4;
|
|
|
1064
1058
|
StylesUtil.TABLE_CELL_PADDING_X_LG = 12;
|
|
1065
1059
|
|
|
1066
1060
|
class ButtonStyleBuilder {
|
|
1067
|
-
constructor(level =
|
|
1068
|
-
this._size =
|
|
1061
|
+
constructor(level = StyleLevelEnum.Default, customClass) {
|
|
1062
|
+
this._size = StyleSizeEnum.Normal;
|
|
1069
1063
|
this._textButton = false;
|
|
1070
1064
|
this._outlineButton = false;
|
|
1071
1065
|
this._raisedButton = false;
|
|
@@ -1073,7 +1067,7 @@ class ButtonStyleBuilder {
|
|
|
1073
1067
|
this._actionLevel = level;
|
|
1074
1068
|
this._customClass = customClass;
|
|
1075
1069
|
}
|
|
1076
|
-
|
|
1070
|
+
build(hasNoTitle = false) {
|
|
1077
1071
|
const styles = [this.convertActionLevelToStyleClass(), this.convertSizeToStyleClass(), this._customClass];
|
|
1078
1072
|
if (hasNoTitle && this._roundedStyle === ButtonStyleRoundedEnum.DEFAULT) {
|
|
1079
1073
|
styles.push(`p-button-rounded mng-action-button-icon`);
|
|
@@ -1101,15 +1095,16 @@ class ButtonStyleBuilder {
|
|
|
1101
1095
|
* @param raisedButton if true, raised button will be applied
|
|
1102
1096
|
* @param customClass additional custom classes (will be added at generating)
|
|
1103
1097
|
*/
|
|
1104
|
-
create(actionLevel, size, textButton, outlineButton, raisedButton, roundedButton, customClass) {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1098
|
+
static create(actionLevel, size, textButton, outlineButton, raisedButton, roundedButton, customClass) {
|
|
1099
|
+
const descriptor = new ButtonStyleBuilder(actionLevel, customClass);
|
|
1100
|
+
descriptor._actionLevel = actionLevel !== null && actionLevel !== void 0 ? actionLevel : descriptor._actionLevel;
|
|
1101
|
+
descriptor._size = size !== null && size !== void 0 ? size : descriptor._size;
|
|
1102
|
+
descriptor._textButton = textButton !== null && textButton !== void 0 ? textButton : descriptor._textButton;
|
|
1103
|
+
descriptor._outlineButton = outlineButton !== null && outlineButton !== void 0 ? outlineButton : descriptor._outlineButton;
|
|
1104
|
+
descriptor._raisedButton = raisedButton !== null && raisedButton !== void 0 ? raisedButton : descriptor._raisedButton;
|
|
1105
|
+
descriptor._roundedStyle = roundedButton !== null && roundedButton !== void 0 ? roundedButton : descriptor._roundedStyle;
|
|
1106
|
+
descriptor._customClass = customClass;
|
|
1107
|
+
return descriptor;
|
|
1113
1108
|
}
|
|
1114
1109
|
/**
|
|
1115
1110
|
* sets custom action level and returns this object
|
|
@@ -1165,35 +1160,36 @@ class ButtonStyleBuilder {
|
|
|
1165
1160
|
}
|
|
1166
1161
|
convertActionLevelToStyleClass() {
|
|
1167
1162
|
switch (this._actionLevel) {
|
|
1168
|
-
case
|
|
1169
|
-
case
|
|
1163
|
+
case StyleLevelEnum.Default:
|
|
1164
|
+
case StyleLevelEnum.Primary:
|
|
1170
1165
|
return 'p-button-primary';
|
|
1171
|
-
case
|
|
1166
|
+
case StyleLevelEnum.Secondary:
|
|
1172
1167
|
return 'p-button-secondary';
|
|
1173
|
-
case
|
|
1168
|
+
case StyleLevelEnum.Info:
|
|
1174
1169
|
return 'p-button-info';
|
|
1175
|
-
case
|
|
1170
|
+
case StyleLevelEnum.Help:
|
|
1176
1171
|
return 'p-button-help';
|
|
1177
|
-
case
|
|
1172
|
+
case StyleLevelEnum.Success:
|
|
1178
1173
|
return 'p-button-success';
|
|
1179
|
-
case
|
|
1174
|
+
case StyleLevelEnum.Warning:
|
|
1180
1175
|
return 'p-button-warning';
|
|
1181
|
-
case
|
|
1176
|
+
case StyleLevelEnum.Danger:
|
|
1182
1177
|
return 'p-button-danger';
|
|
1183
1178
|
}
|
|
1184
1179
|
}
|
|
1185
1180
|
convertSizeToStyleClass() {
|
|
1186
1181
|
switch (this._size) {
|
|
1187
|
-
case
|
|
1182
|
+
case StyleSizeEnum.ExtraSmall:
|
|
1188
1183
|
return 'p-button-sm mng-button-xs';
|
|
1189
|
-
case
|
|
1184
|
+
case StyleSizeEnum.Small:
|
|
1190
1185
|
return 'p-button-sm mng-button-sm';
|
|
1191
|
-
case
|
|
1192
|
-
return '';
|
|
1193
|
-
case ActionSizeEnum.Large:
|
|
1186
|
+
case StyleSizeEnum.Large:
|
|
1194
1187
|
return 'p-button-lg mng-button-lg';
|
|
1195
|
-
case
|
|
1188
|
+
case StyleSizeEnum.ExtraLarge:
|
|
1196
1189
|
return 'p-button-lg mng-button-xl';
|
|
1190
|
+
case StyleSizeEnum.Normal:
|
|
1191
|
+
default:
|
|
1192
|
+
return '';
|
|
1197
1193
|
}
|
|
1198
1194
|
}
|
|
1199
1195
|
get actionLevel() {
|
|
@@ -1225,50 +1221,91 @@ var ButtonStyleRoundedEnum;
|
|
|
1225
1221
|
ButtonStyleRoundedEnum[ButtonStyleRoundedEnum["SQUARE"] = 2] = "SQUARE";
|
|
1226
1222
|
})(ButtonStyleRoundedEnum || (ButtonStyleRoundedEnum = {}));
|
|
1227
1223
|
|
|
1228
|
-
class
|
|
1224
|
+
class ActionButtonDescriptor {
|
|
1229
1225
|
constructor() {
|
|
1230
|
-
this.
|
|
1231
|
-
this.
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
this.
|
|
1235
|
-
this
|
|
1236
|
-
this._rejectIcon = 'pi pi-times';
|
|
1226
|
+
this._iconPosition = 'left';
|
|
1227
|
+
this._styleClass = new ButtonStyleBuilder();
|
|
1228
|
+
}
|
|
1229
|
+
withLabel(label) {
|
|
1230
|
+
this._label = label;
|
|
1231
|
+
return this;
|
|
1237
1232
|
}
|
|
1238
1233
|
withIcon(icon) {
|
|
1239
1234
|
this._icon = icon;
|
|
1240
1235
|
return this;
|
|
1241
1236
|
}
|
|
1242
|
-
|
|
1243
|
-
this.
|
|
1237
|
+
withIconPosition(iconPosition) {
|
|
1238
|
+
this._iconPosition = iconPosition;
|
|
1244
1239
|
return this;
|
|
1245
1240
|
}
|
|
1246
|
-
|
|
1247
|
-
this.
|
|
1241
|
+
withStyleClass(style) {
|
|
1242
|
+
this._styleClass = style;
|
|
1243
|
+
return this;
|
|
1244
|
+
}
|
|
1245
|
+
withBadge(badge) {
|
|
1246
|
+
this._badge = badge;
|
|
1248
1247
|
return this;
|
|
1249
1248
|
}
|
|
1250
|
-
|
|
1251
|
-
this.
|
|
1249
|
+
withTooltip(tooltip) {
|
|
1250
|
+
this._tooltip = tooltip;
|
|
1252
1251
|
return this;
|
|
1253
1252
|
}
|
|
1254
|
-
|
|
1255
|
-
this.
|
|
1253
|
+
get label() {
|
|
1254
|
+
return this._label;
|
|
1255
|
+
}
|
|
1256
|
+
get icon() {
|
|
1257
|
+
return this._icon;
|
|
1258
|
+
}
|
|
1259
|
+
get iconPosition() {
|
|
1260
|
+
return this._iconPosition;
|
|
1261
|
+
}
|
|
1262
|
+
get styleClass() {
|
|
1263
|
+
return this._styleClass;
|
|
1264
|
+
}
|
|
1265
|
+
get badge() {
|
|
1266
|
+
return this._badge;
|
|
1267
|
+
}
|
|
1268
|
+
get tooltip() {
|
|
1269
|
+
return this._tooltip;
|
|
1270
|
+
}
|
|
1271
|
+
copy() {
|
|
1272
|
+
const descriptor = new ActionButtonDescriptor();
|
|
1273
|
+
descriptor._label = this._label;
|
|
1274
|
+
descriptor._icon = this._icon;
|
|
1275
|
+
descriptor._iconPosition = this._iconPosition;
|
|
1276
|
+
descriptor._styleClass = this._styleClass;
|
|
1277
|
+
descriptor._badge = this._badge;
|
|
1278
|
+
descriptor._tooltip = this._tooltip;
|
|
1279
|
+
return descriptor;
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
class ActionConfirmationDialogDescriptor {
|
|
1284
|
+
constructor() {
|
|
1285
|
+
this._closeOnEscape = true; // Defines if dialog closes when esc key is pressed.
|
|
1286
|
+
this._closable = true; // Defines if dialog is closable.
|
|
1287
|
+
this._acceptButton = new ActionButtonDescriptor().withIcon('pi pi-check').withStyleClass(new ButtonStyleBuilder(StyleLevelEnum.Default));
|
|
1288
|
+
this._rejectButton = new ActionButtonDescriptor().withIcon('pi pi-times').withStyleClass(new ButtonStyleBuilder(StyleLevelEnum.Default).withTextButton());
|
|
1289
|
+
this._icon = 'pi pi-exclamation-triangle';
|
|
1290
|
+
}
|
|
1291
|
+
withIcon(icon) {
|
|
1292
|
+
this._icon = icon;
|
|
1256
1293
|
return this;
|
|
1257
1294
|
}
|
|
1258
|
-
|
|
1259
|
-
this.
|
|
1295
|
+
withTitle(title) {
|
|
1296
|
+
this._title = title;
|
|
1260
1297
|
return this;
|
|
1261
1298
|
}
|
|
1262
|
-
|
|
1263
|
-
this.
|
|
1299
|
+
withMessage(message) {
|
|
1300
|
+
this._message = message;
|
|
1264
1301
|
return this;
|
|
1265
1302
|
}
|
|
1266
|
-
|
|
1267
|
-
this.
|
|
1303
|
+
withAcceptButton(actionButtonDescriptor) {
|
|
1304
|
+
this._acceptButton = actionButtonDescriptor;
|
|
1268
1305
|
return this;
|
|
1269
1306
|
}
|
|
1270
|
-
|
|
1271
|
-
this.
|
|
1307
|
+
withRejectButton(actionButtonDescriptor) {
|
|
1308
|
+
this._rejectButton = actionButtonDescriptor;
|
|
1272
1309
|
return this;
|
|
1273
1310
|
}
|
|
1274
1311
|
/**
|
|
@@ -1300,24 +1337,6 @@ class ActionConfirmationDialogDescriptor {
|
|
|
1300
1337
|
get message() {
|
|
1301
1338
|
return this._message;
|
|
1302
1339
|
}
|
|
1303
|
-
get acceptLabel() {
|
|
1304
|
-
return this._acceptLabel;
|
|
1305
|
-
}
|
|
1306
|
-
get acceptIcon() {
|
|
1307
|
-
return this._acceptIcon;
|
|
1308
|
-
}
|
|
1309
|
-
get acceptButtonStyle() {
|
|
1310
|
-
return this._acceptButtonStyle;
|
|
1311
|
-
}
|
|
1312
|
-
get rejectLabel() {
|
|
1313
|
-
return this._rejectLabel;
|
|
1314
|
-
}
|
|
1315
|
-
get rejectIcon() {
|
|
1316
|
-
return this._rejectIcon;
|
|
1317
|
-
}
|
|
1318
|
-
get rejectButtonStyle() {
|
|
1319
|
-
return this._rejectButtonStyle;
|
|
1320
|
-
}
|
|
1321
1340
|
get closeOnEscape() {
|
|
1322
1341
|
return this._closeOnEscape;
|
|
1323
1342
|
}
|
|
@@ -1327,6 +1346,12 @@ class ActionConfirmationDialogDescriptor {
|
|
|
1327
1346
|
get runConfirmationConfigMapFn() {
|
|
1328
1347
|
return this._runConfirmationConfigMapFn;
|
|
1329
1348
|
}
|
|
1349
|
+
get acceptButton() {
|
|
1350
|
+
return this._acceptButton;
|
|
1351
|
+
}
|
|
1352
|
+
get rejectButton() {
|
|
1353
|
+
return this._rejectButton;
|
|
1354
|
+
}
|
|
1330
1355
|
}
|
|
1331
1356
|
|
|
1332
1357
|
class ActionDescriptor {
|
|
@@ -1334,12 +1359,12 @@ class ActionDescriptor {
|
|
|
1334
1359
|
this._type = ActionTypeEnum.Direct;
|
|
1335
1360
|
this._activationTrigger = ActionActivationTriggerEnum.OnClick;
|
|
1336
1361
|
this._position = ActionPositionEnum.ToolbarRight;
|
|
1337
|
-
this._level =
|
|
1362
|
+
this._level = StyleLevelEnum.Default;
|
|
1338
1363
|
this._routeUrl = null;
|
|
1339
1364
|
this._hasRunNotificationSuccess = true;
|
|
1340
1365
|
this._hasRunNotificationError = true;
|
|
1341
1366
|
//button
|
|
1342
|
-
this.
|
|
1367
|
+
this._button = new ActionButtonDescriptor();
|
|
1343
1368
|
// multiple row selection
|
|
1344
1369
|
this._hasItemsSelection = false;
|
|
1345
1370
|
this._model = model;
|
|
@@ -1415,7 +1440,7 @@ class ActionDescriptor {
|
|
|
1415
1440
|
return this._actionNameLong;
|
|
1416
1441
|
}
|
|
1417
1442
|
get className() {
|
|
1418
|
-
return this.
|
|
1443
|
+
return this.button.styleClass.customClass;
|
|
1419
1444
|
}
|
|
1420
1445
|
get runConfirmationDialogDescriptor() {
|
|
1421
1446
|
return this._runConfirmationDialogDescriptor;
|
|
@@ -1456,8 +1481,8 @@ class ActionDescriptor {
|
|
|
1456
1481
|
get hasItemsSelection() {
|
|
1457
1482
|
return this._hasItemsSelection;
|
|
1458
1483
|
}
|
|
1459
|
-
get
|
|
1460
|
-
return this.
|
|
1484
|
+
get button() {
|
|
1485
|
+
return this._button;
|
|
1461
1486
|
}
|
|
1462
1487
|
withDataProvider(dataProvider) {
|
|
1463
1488
|
this._dataProvider = dataProvider;
|
|
@@ -1495,9 +1520,10 @@ class ActionDescriptor {
|
|
|
1495
1520
|
* creates confirmation action with default style based on action descriptor
|
|
1496
1521
|
*/
|
|
1497
1522
|
withRunConfirmation() {
|
|
1523
|
+
var _a;
|
|
1498
1524
|
this._runConfirmationDialogDescriptor = new ActionConfirmationDialogDescriptor();
|
|
1499
|
-
this._runConfirmationDialogDescriptor.
|
|
1500
|
-
this._runConfirmationDialogDescriptor.
|
|
1525
|
+
this._runConfirmationDialogDescriptor.acceptButton.styleClass.withActionLevel(this._level);
|
|
1526
|
+
(_a = this._runConfirmationDialogDescriptor.rejectButton) === null || _a === void 0 ? void 0 : _a.styleClass.withActionLevel(this._level);
|
|
1501
1527
|
return this._runConfirmationDialogDescriptor;
|
|
1502
1528
|
}
|
|
1503
1529
|
/**
|
|
@@ -1539,8 +1565,12 @@ class ActionDescriptor {
|
|
|
1539
1565
|
this._permissionsRouteType = permissionsRouteType;
|
|
1540
1566
|
return this;
|
|
1541
1567
|
}
|
|
1542
|
-
withButtonDescriptor(
|
|
1543
|
-
this.
|
|
1568
|
+
withButtonDescriptor(button) {
|
|
1569
|
+
this._button = button;
|
|
1570
|
+
return this;
|
|
1571
|
+
}
|
|
1572
|
+
withButton(label, icon = null, styleLevel = StyleLevelEnum.Default, styleText = false) {
|
|
1573
|
+
this._button = new ActionButtonDescriptor().withLabel(label).withIcon(icon).withStyleClass(new ButtonStyleBuilder(styleLevel).withTextButton(styleText));
|
|
1544
1574
|
return this;
|
|
1545
1575
|
}
|
|
1546
1576
|
withItemsSelection(hasSelection = true) {
|
|
@@ -1562,7 +1592,7 @@ class ActionEditorDescriptor extends ActionDescriptor {
|
|
|
1562
1592
|
this._editorActions = [];
|
|
1563
1593
|
this._editorTitle = undefined;
|
|
1564
1594
|
this._hasFetchNotificationSuccess = false;
|
|
1565
|
-
this._dialogSize =
|
|
1595
|
+
this._dialogSize = StyleSizeEnum.Normal;
|
|
1566
1596
|
this._type = ActionTypeEnum.Editor;
|
|
1567
1597
|
this._editorDescriptor = editorDescriptor;
|
|
1568
1598
|
this._editorActions.push(ActionEditorSubmitDescriptor.forPrimary(this), ActionEditorSubmitDescriptor.forSecondary(this));
|
|
@@ -1628,7 +1658,7 @@ class ActionEditorDescriptor extends ActionDescriptor {
|
|
|
1628
1658
|
this._dataProvider = new EditorDataProvider(this._model.type, serviceType);
|
|
1629
1659
|
return this;
|
|
1630
1660
|
}
|
|
1631
|
-
withDialogSize(size =
|
|
1661
|
+
withDialogSize(size = StyleSizeEnum.Normal) {
|
|
1632
1662
|
this._dialogSize = size;
|
|
1633
1663
|
return this;
|
|
1634
1664
|
}
|
|
@@ -1672,7 +1702,7 @@ class ActionEditorSubmitDescriptor extends ActionDescriptor {
|
|
|
1672
1702
|
this._editorAction = editorAction;
|
|
1673
1703
|
this._submitType = submitType;
|
|
1674
1704
|
this._position = ActionPositionEnum.FooterRight;
|
|
1675
|
-
this.
|
|
1705
|
+
this.button.styleClass.withActionLevel(editorAction.level).withTextButton();
|
|
1676
1706
|
}
|
|
1677
1707
|
/**
|
|
1678
1708
|
* creates primary action with primary button style
|
|
@@ -1680,7 +1710,7 @@ class ActionEditorSubmitDescriptor extends ActionDescriptor {
|
|
|
1680
1710
|
* @param submitType
|
|
1681
1711
|
*/
|
|
1682
1712
|
static forPrimary(editorAction, submitType = ActionEditorSubmitTypeEnum.Submit) {
|
|
1683
|
-
return new ActionEditorSubmitDescriptor(editorAction, submitType).withButtonDescriptor(new
|
|
1713
|
+
return new ActionEditorSubmitDescriptor(editorAction, submitType).withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder()));
|
|
1684
1714
|
}
|
|
1685
1715
|
/**
|
|
1686
1716
|
* creates secondary button with text button style
|
|
@@ -1688,7 +1718,7 @@ class ActionEditorSubmitDescriptor extends ActionDescriptor {
|
|
|
1688
1718
|
* @param submitType
|
|
1689
1719
|
*/
|
|
1690
1720
|
static forSecondary(editorAction, submitType = ActionEditorSubmitTypeEnum.Cancel) {
|
|
1691
|
-
return new ActionEditorSubmitDescriptor(editorAction, submitType).withButtonDescriptor(new
|
|
1721
|
+
return new ActionEditorSubmitDescriptor(editorAction, submitType).withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withTextButton()));
|
|
1692
1722
|
}
|
|
1693
1723
|
get submitType() {
|
|
1694
1724
|
return this._submitType;
|
|
@@ -1722,8 +1752,8 @@ class ActionEditorAddDescriptor extends ActionEditorDescriptor {
|
|
|
1722
1752
|
this.withPosition(ActionPositionEnum.ToolbarLeft);
|
|
1723
1753
|
this.withRouteTrigger('add');
|
|
1724
1754
|
this.withSubmitFunction(ActionDataProviderUtil.runCreateOrFail);
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1755
|
+
this.button.styleClass.withActionLevel(StyleLevelEnum.Success);
|
|
1756
|
+
this.button.withIcon('pi pi-plus');
|
|
1727
1757
|
this.withPermissionsRouteType(Permissions.ActionTypes.ADD);
|
|
1728
1758
|
}
|
|
1729
1759
|
withServiceType(serviceType) {
|
|
@@ -1750,7 +1780,7 @@ class ActionEditorEditDescriptor extends ActionEditorDescriptor {
|
|
|
1750
1780
|
this.withFetchFunction(ActionDataProviderUtil.runFetchOrFail);
|
|
1751
1781
|
this.withSubmitFunction(ActionDataProviderUtil.runUpdateOrFail);
|
|
1752
1782
|
this.withPermissionsRouteType(Permissions.ActionTypes.EDIT);
|
|
1753
|
-
this.
|
|
1783
|
+
this.button.withLabel(null).withIcon('pi pi-pencil');
|
|
1754
1784
|
}
|
|
1755
1785
|
withServiceType(serviceType) {
|
|
1756
1786
|
return this.withServiceSubmitFunction(serviceType);
|
|
@@ -1773,10 +1803,10 @@ class ActionDeleteDescriptor extends ActionDescriptor {
|
|
|
1773
1803
|
super(model, ActionDeleteDescriptor.ACTION_NAME);
|
|
1774
1804
|
this.withPosition(ActionPositionEnum.RowInline);
|
|
1775
1805
|
this.withRunFunction(ActionDataProviderUtil.runDeleteOrFail);
|
|
1776
|
-
this.
|
|
1806
|
+
this.button.styleClass.withActionLevel(StyleLevelEnum.Danger);
|
|
1777
1807
|
this.withRunConfirmation();
|
|
1778
1808
|
this.withPermissionsRouteType(Permissions.ActionTypes.DELETE);
|
|
1779
|
-
this.
|
|
1809
|
+
this.button.withLabel(null).withIcon('pi pi-trash');
|
|
1780
1810
|
}
|
|
1781
1811
|
withServiceType(serviceType) {
|
|
1782
1812
|
return this.withServiceDeleteFunction(serviceType);
|
|
@@ -4629,116 +4659,6 @@ class TableviewDynamicDescriptor extends TableviewDescriptor {
|
|
|
4629
4659
|
}
|
|
4630
4660
|
}
|
|
4631
4661
|
|
|
4632
|
-
class ButtonDescriptor {
|
|
4633
|
-
constructor() {
|
|
4634
|
-
this._disabled = false;
|
|
4635
|
-
this._iconPosition = 'left';
|
|
4636
|
-
this._styleClass = new ButtonStyleBuilder();
|
|
4637
|
-
this._loading = false;
|
|
4638
|
-
this._loadingIcon = 'pi pi-spinner pi-spin';
|
|
4639
|
-
}
|
|
4640
|
-
withLabel(label) {
|
|
4641
|
-
this._label = label;
|
|
4642
|
-
return this;
|
|
4643
|
-
}
|
|
4644
|
-
withDisabled(disabled = true) {
|
|
4645
|
-
this._disabled = disabled;
|
|
4646
|
-
return this;
|
|
4647
|
-
}
|
|
4648
|
-
withIcon(icon) {
|
|
4649
|
-
this._icon = icon;
|
|
4650
|
-
return this;
|
|
4651
|
-
}
|
|
4652
|
-
withIconPosition(iconPosition) {
|
|
4653
|
-
this._iconPosition = iconPosition;
|
|
4654
|
-
return this;
|
|
4655
|
-
}
|
|
4656
|
-
withStyleClass(style) {
|
|
4657
|
-
this._styleClass = style;
|
|
4658
|
-
return this;
|
|
4659
|
-
}
|
|
4660
|
-
withOnClick(onClick) {
|
|
4661
|
-
this._onClick = onClick;
|
|
4662
|
-
return this;
|
|
4663
|
-
}
|
|
4664
|
-
withOnFocus(onFocus) {
|
|
4665
|
-
this._onFocus = onFocus;
|
|
4666
|
-
return this;
|
|
4667
|
-
}
|
|
4668
|
-
withOnBlur(onBlur) {
|
|
4669
|
-
this._onBlur = onBlur;
|
|
4670
|
-
return this;
|
|
4671
|
-
}
|
|
4672
|
-
withLoading(loading = true) {
|
|
4673
|
-
this._loading = loading;
|
|
4674
|
-
return this;
|
|
4675
|
-
}
|
|
4676
|
-
withLoadingIcon(loadingIcon) {
|
|
4677
|
-
this._loadingIcon = loadingIcon;
|
|
4678
|
-
return this;
|
|
4679
|
-
}
|
|
4680
|
-
withBadge(badge) {
|
|
4681
|
-
this._badge = badge;
|
|
4682
|
-
return this;
|
|
4683
|
-
}
|
|
4684
|
-
withTooltip(tooltip) {
|
|
4685
|
-
this._tooltip = tooltip;
|
|
4686
|
-
return this;
|
|
4687
|
-
}
|
|
4688
|
-
get label() {
|
|
4689
|
-
return this._label;
|
|
4690
|
-
}
|
|
4691
|
-
get disabled() {
|
|
4692
|
-
return this._disabled;
|
|
4693
|
-
}
|
|
4694
|
-
get icon() {
|
|
4695
|
-
return this._icon;
|
|
4696
|
-
}
|
|
4697
|
-
get iconPosition() {
|
|
4698
|
-
return this._iconPosition;
|
|
4699
|
-
}
|
|
4700
|
-
get styleClass() {
|
|
4701
|
-
return this._styleClass;
|
|
4702
|
-
}
|
|
4703
|
-
get onClick() {
|
|
4704
|
-
return this._onClick;
|
|
4705
|
-
}
|
|
4706
|
-
get onFocus() {
|
|
4707
|
-
return this._onFocus;
|
|
4708
|
-
}
|
|
4709
|
-
get onBlur() {
|
|
4710
|
-
return this._onBlur;
|
|
4711
|
-
}
|
|
4712
|
-
get loading() {
|
|
4713
|
-
return this._loading;
|
|
4714
|
-
}
|
|
4715
|
-
get loadingIcon() {
|
|
4716
|
-
return this._loadingIcon;
|
|
4717
|
-
}
|
|
4718
|
-
get badge() {
|
|
4719
|
-
return this._badge;
|
|
4720
|
-
}
|
|
4721
|
-
get tooltip() {
|
|
4722
|
-
return this._tooltip;
|
|
4723
|
-
}
|
|
4724
|
-
copy() {
|
|
4725
|
-
const descriptor = new ButtonDescriptor();
|
|
4726
|
-
descriptor._label = this._label;
|
|
4727
|
-
descriptor._disabled = this._disabled;
|
|
4728
|
-
descriptor._icon = this._icon;
|
|
4729
|
-
descriptor._iconPosition = this._iconPosition;
|
|
4730
|
-
descriptor._styleClass = this._styleClass;
|
|
4731
|
-
descriptor._onClick = this._onClick;
|
|
4732
|
-
descriptor._onFocus = this._onFocus;
|
|
4733
|
-
descriptor._onBlur = this._onBlur;
|
|
4734
|
-
descriptor._loading = this._loading;
|
|
4735
|
-
descriptor._loadingIcon = this._loadingIcon;
|
|
4736
|
-
descriptor._badge = this._badge;
|
|
4737
|
-
descriptor._tooltip = this._tooltip;
|
|
4738
|
-
return descriptor;
|
|
4739
|
-
}
|
|
4740
|
-
}
|
|
4741
|
-
|
|
4742
4662
|
class EditorFormlyUtil {
|
|
4743
4663
|
static createFormlyConfigFromDescriptor(descriptor) {
|
|
4744
4664
|
const fields = [];
|
|
@@ -6959,7 +6879,7 @@ class MngActionExecutorService {
|
|
|
6959
6879
|
* @return Action context for run function.
|
|
6960
6880
|
*/
|
|
6961
6881
|
runAction(action, parameters, dataProvider, instance, previousActionInstance) {
|
|
6962
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6882
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
6963
6883
|
if (!instance) {
|
|
6964
6884
|
// create new instance if non provided
|
|
6965
6885
|
instance = new ActionInstance(action, ActionInstanceStateEnum.ActivationEnd, this.debug);
|
|
@@ -6977,33 +6897,35 @@ class MngActionExecutorService {
|
|
|
6977
6897
|
key: srcConfirmComponent.getConfirmationServiceInstanceKey(action),
|
|
6978
6898
|
icon: confirmationDescriptor.icon,
|
|
6979
6899
|
acceptVisible: true,
|
|
6980
|
-
acceptIcon: (_a = confirmationDescriptor.
|
|
6981
|
-
acceptButtonStyleClass: confirmationDescriptor.
|
|
6900
|
+
acceptIcon: (_a = confirmationDescriptor.acceptButton.icon) !== null && _a !== void 0 ? _a : undefined,
|
|
6901
|
+
acceptButtonStyleClass: confirmationDescriptor.acceptButton.styleClass.build(),
|
|
6982
6902
|
rejectVisible: true,
|
|
6983
|
-
rejectIcon: (_b = confirmationDescriptor.
|
|
6984
|
-
rejectButtonStyleClass: confirmationDescriptor.
|
|
6903
|
+
rejectIcon: (_c = (_b = confirmationDescriptor.rejectButton) === null || _b === void 0 ? void 0 : _b.icon) !== null && _c !== void 0 ? _c : undefined,
|
|
6904
|
+
rejectButtonStyleClass: (_d = confirmationDescriptor.rejectButton) === null || _d === void 0 ? void 0 : _d.styleClass.build(),
|
|
6985
6905
|
closeOnEscape: confirmationDescriptor.closeOnEscape
|
|
6986
6906
|
};
|
|
6987
6907
|
if (confirmationDescriptor.title !== null) {
|
|
6988
|
-
confirmParams.header = (
|
|
6908
|
+
confirmParams.header = (_e = I18nUtils.Action.get(this.translate, action, 'confirm.title', confirmationDescriptor.title, item, 'general.confirmation')) !== null && _e !== void 0 ? _e : undefined;
|
|
6989
6909
|
}
|
|
6990
6910
|
if (confirmationDescriptor.message !== null) {
|
|
6991
6911
|
confirmParams.message =
|
|
6992
|
-
(
|
|
6912
|
+
(_f = I18nUtils.Action.get(this.translate, action, 'confirm.message', confirmationDescriptor.message, StringUtil.escapeHtmlAny(item), 'general.confirmation')) !== null && _f !== void 0 ? _f : undefined;
|
|
6993
6913
|
}
|
|
6994
|
-
if (confirmationDescriptor.
|
|
6995
|
-
confirmParams.acceptLabel =
|
|
6914
|
+
if (confirmationDescriptor.acceptButton.label !== null) {
|
|
6915
|
+
confirmParams.acceptLabel =
|
|
6916
|
+
(_g = I18nUtils.Action.get(this.translate, action, 'confirm.accept', confirmationDescriptor.acceptButton.label, item, 'general.yes')) !== null && _g !== void 0 ? _g : undefined;
|
|
6996
6917
|
}
|
|
6997
|
-
if (confirmationDescriptor.
|
|
6998
|
-
confirmParams.acceptIcon = confirmationDescriptor.
|
|
6918
|
+
if (confirmationDescriptor.acceptButton.icon !== null) {
|
|
6919
|
+
confirmParams.acceptIcon = confirmationDescriptor.acceptButton.icon;
|
|
6999
6920
|
}
|
|
7000
|
-
if (confirmationDescriptor.
|
|
7001
|
-
confirmParams.rejectIcon = confirmationDescriptor.
|
|
6921
|
+
if (((_h = confirmationDescriptor.rejectButton) === null || _h === void 0 ? void 0 : _h.icon) !== null) {
|
|
6922
|
+
confirmParams.rejectIcon = (_j = confirmationDescriptor.rejectButton) === null || _j === void 0 ? void 0 : _j.icon;
|
|
7002
6923
|
}
|
|
7003
|
-
if (confirmationDescriptor.
|
|
7004
|
-
confirmParams.rejectLabel =
|
|
6924
|
+
if (((_k = confirmationDescriptor.rejectButton) === null || _k === void 0 ? void 0 : _k.label) !== null) {
|
|
6925
|
+
confirmParams.rejectLabel =
|
|
6926
|
+
(_m = I18nUtils.Action.get(this.translate, action, 'confirm.reject', (_l = confirmationDescriptor.rejectButton) === null || _l === void 0 ? void 0 : _l.label, item, 'general.no')) !== null && _m !== void 0 ? _m : undefined;
|
|
7005
6927
|
}
|
|
7006
|
-
if (confirmationDescriptor.
|
|
6928
|
+
if (confirmationDescriptor.rejectButton == null || (confirmationDescriptor.rejectButton.label === null && confirmationDescriptor.rejectButton.icon === null)) {
|
|
7007
6929
|
confirmParams.rejectVisible = false;
|
|
7008
6930
|
}
|
|
7009
6931
|
confirmParams.accept = () => {
|
|
@@ -7052,19 +6974,19 @@ class MngActionExecutorService {
|
|
|
7052
6974
|
dialogClassName = (_a = action.dialogClassName) !== null && _a !== void 0 ? _a : 'mng-action-editor-dialog';
|
|
7053
6975
|
let dialogSizeClassName = '';
|
|
7054
6976
|
switch (action.dialogSize) {
|
|
7055
|
-
case
|
|
6977
|
+
case StyleSizeEnum.ExtraSmall:
|
|
7056
6978
|
dialogSizeClassName = 'mng-action-editor-dialog-xs';
|
|
7057
6979
|
break;
|
|
7058
|
-
case
|
|
6980
|
+
case StyleSizeEnum.Small:
|
|
7059
6981
|
dialogSizeClassName = 'mng-action-editor-dialog-sm';
|
|
7060
6982
|
break;
|
|
7061
|
-
case
|
|
6983
|
+
case StyleSizeEnum.Large:
|
|
7062
6984
|
dialogSizeClassName = 'mng-action-editor-dialog-lg';
|
|
7063
6985
|
break;
|
|
7064
|
-
case
|
|
6986
|
+
case StyleSizeEnum.ExtraLarge:
|
|
7065
6987
|
dialogSizeClassName = 'mng-action-editor-dialog-xl';
|
|
7066
6988
|
break;
|
|
7067
|
-
case
|
|
6989
|
+
case StyleSizeEnum.Normal:
|
|
7068
6990
|
default:
|
|
7069
6991
|
break;
|
|
7070
6992
|
}
|
|
@@ -7718,7 +7640,7 @@ class MngActionComponent {
|
|
|
7718
7640
|
ngOnInit() {
|
|
7719
7641
|
var _a, _b;
|
|
7720
7642
|
this.viewContainer = (_b = (_a = this.viewContainerInit) !== null && _a !== void 0 ? _a : this.viewContainerService) !== null && _b !== void 0 ? _b : undefined;
|
|
7721
|
-
this.hasNoTitle = this.action.
|
|
7643
|
+
this.hasNoTitle = this.action.button.label === null;
|
|
7722
7644
|
this.isEnabledSubject.next(true);
|
|
7723
7645
|
this.isVisibleSubject.next(true);
|
|
7724
7646
|
this.isPermittedSubject.next(true);
|
|
@@ -7741,7 +7663,7 @@ class MngActionComponent {
|
|
|
7741
7663
|
this.isHostHidden = !isVisible || !isPermitted;
|
|
7742
7664
|
});
|
|
7743
7665
|
this.subscriptions.push(hostVisibilitySubscription);
|
|
7744
|
-
this.buttonClass = this.action.
|
|
7666
|
+
this.buttonClass = this.action.button.styleClass.build(this.action.button.label == null || this.action.button.label.length == 0);
|
|
7745
7667
|
}
|
|
7746
7668
|
ngOnChanges(changes) {
|
|
7747
7669
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -7832,21 +7754,21 @@ class MngActionComponent {
|
|
|
7832
7754
|
}
|
|
7833
7755
|
if (!this.hasNoTitle) {
|
|
7834
7756
|
(_f = this.labelSubscription) === null || _f === void 0 ? void 0 : _f.unsubscribe();
|
|
7835
|
-
this.labelSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'title', (_g = this.action.
|
|
7757
|
+
this.labelSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'title', (_g = this.action.button.label) !== null && _g !== void 0 ? _g : undefined, this.item).subscribe({
|
|
7836
7758
|
next: i18n => this.labelSubject.next(i18n)
|
|
7837
7759
|
});
|
|
7838
7760
|
}
|
|
7839
7761
|
(_h = this.tooltipSubscription) === null || _h === void 0 ? void 0 : _h.unsubscribe();
|
|
7840
|
-
this.tooltipSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'tooltip', this.action.
|
|
7762
|
+
this.tooltipSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'tooltip', this.action.button.tooltip, this.item).subscribe({
|
|
7841
7763
|
next: i18n => this.tooltipSubject.next(i18n)
|
|
7842
7764
|
});
|
|
7843
7765
|
}
|
|
7844
7766
|
}
|
|
7845
7767
|
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 });
|
|
7846
|
-
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.
|
|
7768
|
+
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 });
|
|
7847
7769
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngActionComponent, decorators: [{
|
|
7848
7770
|
type: Component,
|
|
7849
|
-
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.
|
|
7771
|
+
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"] }]
|
|
7850
7772
|
}], ctorParameters: function () {
|
|
7851
7773
|
return [{ type: i1.ActivatedRoute }, { type: i1$2.TranslateService }, { type: MngAuthorizationService }, { type: MngActionExecutorService }, { type: i2.ConfirmationService }, { type: MngViewContainerComponentService, decorators: [{
|
|
7852
7774
|
type: Optional
|
|
@@ -8920,11 +8842,11 @@ class MngActionEditorComponent {
|
|
|
8920
8842
|
this.setTitle();
|
|
8921
8843
|
for (const action of this.action.editorActions) {
|
|
8922
8844
|
if (action instanceof ActionEditorSubmitDescriptor) {
|
|
8923
|
-
if (typeof action.
|
|
8924
|
-
action.
|
|
8845
|
+
if (typeof action.button.icon === 'undefined') {
|
|
8846
|
+
action.button.withIcon(action.submitType === ActionEditorSubmitTypeEnum.Submit ? 'pi pi-check' : 'pi pi-times');
|
|
8925
8847
|
}
|
|
8926
|
-
if (typeof action.
|
|
8927
|
-
action.
|
|
8848
|
+
if (typeof action.button.label === 'undefined') {
|
|
8849
|
+
action.button.withLabel(action.submitType === ActionEditorSubmitTypeEnum.Submit ? 'general.save' : this.isDialog ? 'general.close' : 'general.cancel');
|
|
8928
8850
|
}
|
|
8929
8851
|
// assign run operations
|
|
8930
8852
|
action.withRunNotificationSuccess(undefined, undefined, false);
|
|
@@ -9094,50 +9016,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
9094
9016
|
args: [MngFormEditorComponent]
|
|
9095
9017
|
}] } });
|
|
9096
9018
|
|
|
9097
|
-
class MngButtonComponent {
|
|
9098
|
-
constructor() {
|
|
9099
|
-
this.clickEmitter = new EventEmitter();
|
|
9100
|
-
this.focusEmitter = new EventEmitter();
|
|
9101
|
-
this.blurEmitter = new EventEmitter();
|
|
9102
|
-
this.buttonClass = 'p-button';
|
|
9103
|
-
}
|
|
9104
|
-
ngOnInit() {
|
|
9105
|
-
this.buttonClass = `${this.descriptor.styleClass.getButtonClass(this.descriptor.label == null)}`;
|
|
9106
|
-
}
|
|
9107
|
-
onClick(event) {
|
|
9108
|
-
var _a, _b;
|
|
9109
|
-
this.clickEmitter.next(event);
|
|
9110
|
-
(_b = (_a = this.descriptor).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
9111
|
-
}
|
|
9112
|
-
onFocus(event) {
|
|
9113
|
-
var _a, _b;
|
|
9114
|
-
this.focusEmitter.next(event);
|
|
9115
|
-
(_b = (_a = this.descriptor).onFocus) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
9116
|
-
}
|
|
9117
|
-
onBlur(event) {
|
|
9118
|
-
var _a, _b;
|
|
9119
|
-
this.blurEmitter.next(event);
|
|
9120
|
-
(_b = (_a = this.descriptor).onBlur) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
9121
|
-
}
|
|
9122
|
-
}
|
|
9123
|
-
MngButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9124
|
-
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 });
|
|
9125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngButtonComponent, decorators: [{
|
|
9126
|
-
type: Component,
|
|
9127
|
-
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" }]
|
|
9128
|
-
}], propDecorators: { descriptor: [{
|
|
9129
|
-
type: Input
|
|
9130
|
-
}], clickEmitter: [{
|
|
9131
|
-
type: Output,
|
|
9132
|
-
args: ['buttonClick']
|
|
9133
|
-
}], focusEmitter: [{
|
|
9134
|
-
type: Output,
|
|
9135
|
-
args: ['buttonFocus']
|
|
9136
|
-
}], blurEmitter: [{
|
|
9137
|
-
type: Output,
|
|
9138
|
-
args: ['buttonBlur']
|
|
9139
|
-
}] } });
|
|
9140
|
-
|
|
9141
9019
|
class MngFormlyFieldAutocompleteComponent extends FieldType {
|
|
9142
9020
|
constructor() {
|
|
9143
9021
|
super(...arguments);
|
|
@@ -10193,7 +10071,7 @@ class AMngTableviewRouteComponent {
|
|
|
10193
10071
|
}));
|
|
10194
10072
|
})
|
|
10195
10073
|
.withPosition(ActionPositionEnum.ToolbarRight);
|
|
10196
|
-
action.
|
|
10074
|
+
action.button.withIcon('pi pi-upload');
|
|
10197
10075
|
return action;
|
|
10198
10076
|
}
|
|
10199
10077
|
createActionDescriptorForRefresh(descriptor = this.descriptor.model) {
|
|
@@ -10205,7 +10083,7 @@ class AMngTableviewRouteComponent {
|
|
|
10205
10083
|
ctx.parameters.viewContainer.triggerTableReload({});
|
|
10206
10084
|
return of(null);
|
|
10207
10085
|
});
|
|
10208
|
-
action.
|
|
10086
|
+
action.button.withIcon('pi pi-refresh').styleClass.withActionLevel(StyleLevelEnum.Secondary);
|
|
10209
10087
|
return action;
|
|
10210
10088
|
}
|
|
10211
10089
|
}
|
|
@@ -10454,17 +10332,17 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
|
|
|
10454
10332
|
const viewAction = new ActionEditorDescriptor(this.descriptor.tableviewDescriptor.viewEditor, 'details', this.descriptor.editor.model.type, this.descriptor.property)
|
|
10455
10333
|
.withPosition(ActionPositionEnum.RowClick)
|
|
10456
10334
|
.withDialogClassName('mng-field-dialog mng-action-editor-dialog')
|
|
10457
|
-
.withDialogSize(
|
|
10335
|
+
.withDialogSize(StyleSizeEnum.Small);
|
|
10458
10336
|
viewAction.withEditorActions([new ActionEditorSubmitDescriptor(viewAction, ActionEditorSubmitTypeEnum.Cancel)]);
|
|
10459
|
-
viewAction.
|
|
10337
|
+
viewAction.button.withLabel(null);
|
|
10460
10338
|
this.actions.push(viewAction);
|
|
10461
10339
|
}
|
|
10462
10340
|
if (hasAddAction) {
|
|
10463
10341
|
const addAction = new ActionEditorDescriptor(this.descriptor.tableviewDescriptor.addEditor, 'add', this.descriptor.editor.model.type, this.descriptor.property)
|
|
10464
10342
|
.withPosition(ActionPositionEnum.ToolbarRight)
|
|
10465
10343
|
.withDialogClassName('mng-field-dialog mng-action-editor-dialog')
|
|
10466
|
-
.withDialogSize(
|
|
10467
|
-
.withButtonDescriptor(new
|
|
10344
|
+
.withDialogSize(StyleSizeEnum.Small)
|
|
10345
|
+
.withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withSize(StyleSizeEnum.ExtraSmall)))
|
|
10468
10346
|
.withSubmitFunction(ctx => {
|
|
10469
10347
|
if (!ctx.parameters.item) {
|
|
10470
10348
|
return throwError(() => new Error(`No item was provided in context, edit cannot be done.`));
|
|
@@ -10477,15 +10355,15 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
|
|
|
10477
10355
|
})
|
|
10478
10356
|
.withIsVisibleFunction(() => { var _a; return of(!((_a = this.options) === null || _a === void 0 ? void 0 : _a.formState.disabled)); })
|
|
10479
10357
|
.withIsEnabledFunction(() => this.isEnabled$);
|
|
10480
|
-
addAction.
|
|
10358
|
+
addAction.button.withLabel(null).withIcon('pi pi-plus');
|
|
10481
10359
|
this.actions.push(addAction);
|
|
10482
10360
|
}
|
|
10483
10361
|
if (hasEditAction) {
|
|
10484
10362
|
const editAction = new ActionEditorDescriptor(this.descriptor.tableviewDescriptor.editEditor, 'edit', this.descriptor.editor.model.type, this.descriptor.property)
|
|
10485
10363
|
.withPosition(ActionPositionEnum.RowInline)
|
|
10486
10364
|
.withDialogClassName('mng-field-dialog mng-action-editor-dialog')
|
|
10487
|
-
.withDialogSize(
|
|
10488
|
-
.withButtonDescriptor(new
|
|
10365
|
+
.withDialogSize(StyleSizeEnum.Small)
|
|
10366
|
+
.withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withSize(StyleSizeEnum.ExtraSmall)))
|
|
10489
10367
|
.withSubmitFunction(ctx => {
|
|
10490
10368
|
var _a;
|
|
10491
10369
|
if (!ctx.parameters.item) {
|
|
@@ -10499,13 +10377,13 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
|
|
|
10499
10377
|
})
|
|
10500
10378
|
.withIsVisibleFunction(() => { var _a; return of(!((_a = this.formControl) === null || _a === void 0 ? void 0 : _a.disabled)); })
|
|
10501
10379
|
.withIsEnabledFunction(() => this.isEnabled$);
|
|
10502
|
-
editAction.
|
|
10380
|
+
editAction.button.withLabel(null).withIcon('pi pi-pencil');
|
|
10503
10381
|
this.actions.push(editAction);
|
|
10504
10382
|
}
|
|
10505
10383
|
if (hasDeleteAction) {
|
|
10506
10384
|
const deleteAction = new ActionDescriptor(this.descriptor.tableviewDescriptor.model, 'delete', this.descriptor.editor.model.type, this.descriptor.property)
|
|
10507
10385
|
.withPosition(ActionPositionEnum.RowInline)
|
|
10508
|
-
.withButtonDescriptor(new
|
|
10386
|
+
.withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder(StyleLevelEnum.Danger).withSize(StyleSizeEnum.ExtraSmall)))
|
|
10509
10387
|
.withRunFunction(ctx => {
|
|
10510
10388
|
var _a;
|
|
10511
10389
|
if (!ctx.parameters.item) {
|
|
@@ -10531,7 +10409,7 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
|
|
|
10531
10409
|
})
|
|
10532
10410
|
.withIsVisibleFunction(() => { var _a; return of(!((_a = this.options) === null || _a === void 0 ? void 0 : _a.formState.disabled)); })
|
|
10533
10411
|
.withIsEnabledFunction(() => this.isEnabled$);
|
|
10534
|
-
deleteAction.
|
|
10412
|
+
deleteAction.button.withLabel(null).withIcon('pi pi-trash');
|
|
10535
10413
|
this.actions.push(deleteAction);
|
|
10536
10414
|
}
|
|
10537
10415
|
this.actions.push(...this.descriptor.actions);
|
|
@@ -11750,9 +11628,7 @@ const declarations = [
|
|
|
11750
11628
|
MngFormEditorComponent,
|
|
11751
11629
|
MngActionComponent,
|
|
11752
11630
|
MngActionEditorComponent,
|
|
11753
|
-
MngActionRouteComponent
|
|
11754
|
-
//button
|
|
11755
|
-
MngButtonComponent
|
|
11631
|
+
MngActionRouteComponent
|
|
11756
11632
|
];
|
|
11757
11633
|
class MngCommonsModule {
|
|
11758
11634
|
static forRoot(config) {
|
|
@@ -11875,9 +11751,7 @@ MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
|
|
|
11875
11751
|
MngFormEditorComponent,
|
|
11876
11752
|
MngActionComponent,
|
|
11877
11753
|
MngActionEditorComponent,
|
|
11878
|
-
MngActionRouteComponent
|
|
11879
|
-
//button
|
|
11880
|
-
MngButtonComponent
|
|
11754
|
+
MngActionRouteComponent
|
|
11881
11755
|
], imports: [
|
|
11882
11756
|
// angular modules
|
|
11883
11757
|
CommonModule,
|
|
@@ -11998,9 +11872,7 @@ MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
|
|
|
11998
11872
|
MngFormEditorComponent,
|
|
11999
11873
|
MngActionComponent,
|
|
12000
11874
|
MngActionEditorComponent,
|
|
12001
|
-
MngActionRouteComponent
|
|
12002
|
-
//button
|
|
12003
|
-
MngButtonComponent] });
|
|
11875
|
+
MngActionRouteComponent] });
|
|
12004
11876
|
MngCommonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngCommonsModule, imports: [
|
|
12005
11877
|
// angular modules
|
|
12006
11878
|
CommonModule,
|
|
@@ -12841,5 +12713,5 @@ class TableviewRouteBuilder {
|
|
|
12841
12713
|
* Generated bundle index. Do not edit.
|
|
12842
12714
|
*/
|
|
12843
12715
|
|
|
12844
|
-
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,
|
|
12716
|
+
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 };
|
|
12845
12717
|
//# sourceMappingURL=mediusinc-mng-commons.mjs.map
|