@mediusinc/mng-commons 0.14.2 → 0.15.1
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/autocomplete/autocomplete.component.mjs +21 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +3 -3
- 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/components/tableview/table/column-filter/column-filter.component.mjs +1 -1
- 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/field.descriptor.mjs +12 -2
- 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 +234 -334
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +229 -327
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +7 -2
- 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/field.descriptor.d.ts +5 -1
- 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/scss/mng-overrides/_theme_autocomplete.scss +16 -0
- package/scss/mng-overrides/_theme_styles.scss +1 -0
- 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
|
@@ -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.
|
|
1031
|
-
case
|
|
1024
|
+
switch (action.button.styleClass.size) {
|
|
1025
|
+
case StyleSizeEnum.ExtraSmall:
|
|
1032
1026
|
return StylesUtil.BUTTON_ROUNDED_WIDTH_XS;
|
|
1033
|
-
case
|
|
1027
|
+
case StyleSizeEnum.Small:
|
|
1034
1028
|
return StylesUtil.BUTTON_ROUNDED_WIDTH_SM;
|
|
1035
|
-
case
|
|
1036
|
-
case
|
|
1029
|
+
case StyleSizeEnum.Large:
|
|
1030
|
+
case StyleSizeEnum.ExtraLarge:
|
|
1037
1031
|
return StylesUtil.BUTTON_ROUNDED_WIDTH_LG;
|
|
1038
|
-
case
|
|
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 =
|
|
1055
|
-
this._size =
|
|
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
|
-
|
|
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
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
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
|
|
1156
|
-
case
|
|
1150
|
+
case StyleLevelEnum.Default:
|
|
1151
|
+
case StyleLevelEnum.Primary:
|
|
1157
1152
|
return 'p-button-primary';
|
|
1158
|
-
case
|
|
1153
|
+
case StyleLevelEnum.Secondary:
|
|
1159
1154
|
return 'p-button-secondary';
|
|
1160
|
-
case
|
|
1155
|
+
case StyleLevelEnum.Info:
|
|
1161
1156
|
return 'p-button-info';
|
|
1162
|
-
case
|
|
1157
|
+
case StyleLevelEnum.Help:
|
|
1163
1158
|
return 'p-button-help';
|
|
1164
|
-
case
|
|
1159
|
+
case StyleLevelEnum.Success:
|
|
1165
1160
|
return 'p-button-success';
|
|
1166
|
-
case
|
|
1161
|
+
case StyleLevelEnum.Warning:
|
|
1167
1162
|
return 'p-button-warning';
|
|
1168
|
-
case
|
|
1163
|
+
case StyleLevelEnum.Danger:
|
|
1169
1164
|
return 'p-button-danger';
|
|
1170
1165
|
}
|
|
1171
1166
|
}
|
|
1172
1167
|
convertSizeToStyleClass() {
|
|
1173
1168
|
switch (this._size) {
|
|
1174
|
-
case
|
|
1169
|
+
case StyleSizeEnum.ExtraSmall:
|
|
1175
1170
|
return 'p-button-sm mng-button-xs';
|
|
1176
|
-
case
|
|
1171
|
+
case StyleSizeEnum.Small:
|
|
1177
1172
|
return 'p-button-sm mng-button-sm';
|
|
1178
|
-
case
|
|
1179
|
-
return '';
|
|
1180
|
-
case ActionSizeEnum.Large:
|
|
1173
|
+
case StyleSizeEnum.Large:
|
|
1181
1174
|
return 'p-button-lg mng-button-lg';
|
|
1182
|
-
case
|
|
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
|
|
1211
|
+
class ActionButtonDescriptor {
|
|
1216
1212
|
constructor() {
|
|
1217
|
-
this.
|
|
1218
|
-
this.
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
this.
|
|
1222
|
-
this
|
|
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
|
-
|
|
1230
|
-
this.
|
|
1224
|
+
withIconPosition(iconPosition) {
|
|
1225
|
+
this._iconPosition = iconPosition;
|
|
1231
1226
|
return this;
|
|
1232
1227
|
}
|
|
1233
|
-
|
|
1234
|
-
this.
|
|
1228
|
+
withStyleClass(style) {
|
|
1229
|
+
this._styleClass = style;
|
|
1230
|
+
return this;
|
|
1231
|
+
}
|
|
1232
|
+
withBadge(badge) {
|
|
1233
|
+
this._badge = badge;
|
|
1235
1234
|
return this;
|
|
1236
1235
|
}
|
|
1237
|
-
|
|
1238
|
-
this.
|
|
1236
|
+
withTooltip(tooltip) {
|
|
1237
|
+
this._tooltip = tooltip;
|
|
1239
1238
|
return this;
|
|
1240
1239
|
}
|
|
1241
|
-
|
|
1242
|
-
this.
|
|
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;
|
|
1243
1280
|
return this;
|
|
1244
1281
|
}
|
|
1245
|
-
|
|
1246
|
-
this.
|
|
1282
|
+
withTitle(title) {
|
|
1283
|
+
this._title = title;
|
|
1247
1284
|
return this;
|
|
1248
1285
|
}
|
|
1249
|
-
|
|
1250
|
-
this.
|
|
1286
|
+
withMessage(message) {
|
|
1287
|
+
this._message = message;
|
|
1251
1288
|
return this;
|
|
1252
1289
|
}
|
|
1253
|
-
|
|
1254
|
-
this.
|
|
1290
|
+
withAcceptButton(actionButtonDescriptor) {
|
|
1291
|
+
this._acceptButton = actionButtonDescriptor;
|
|
1255
1292
|
return this;
|
|
1256
1293
|
}
|
|
1257
|
-
|
|
1258
|
-
this.
|
|
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 =
|
|
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.
|
|
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.
|
|
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
|
|
1447
|
-
return this.
|
|
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.
|
|
1487
|
-
this._runConfirmationDialogDescriptor.
|
|
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(
|
|
1530
|
-
this.
|
|
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 =
|
|
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 =
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
1711
|
-
this.
|
|
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.
|
|
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.
|
|
1790
|
+
this.button.styleClass.withActionLevel(StyleLevelEnum.Danger);
|
|
1762
1791
|
this.withRunConfirmation();
|
|
1763
1792
|
this.withPermissionsRouteType(Permissions.ActionTypes.DELETE);
|
|
1764
|
-
this.
|
|
1793
|
+
this.button.withLabel(null).withIcon('pi pi-trash');
|
|
1765
1794
|
}
|
|
1766
1795
|
withServiceType(serviceType) {
|
|
1767
1796
|
return this.withServiceDeleteFunction(serviceType);
|
|
@@ -3403,6 +3432,8 @@ class FieldLookupDescriptor extends AFieldDescriptor {
|
|
|
3403
3432
|
this._dropdownClassName = 'mng-filter-lookup-dropdown';
|
|
3404
3433
|
this._autocompleteOpenOnFocus = false;
|
|
3405
3434
|
this._autocompleteInlineSearch = false;
|
|
3435
|
+
this._autocompleteAutoClear = false;
|
|
3436
|
+
this._autocompleteSelectFirst = false;
|
|
3406
3437
|
this._modelType = modelType;
|
|
3407
3438
|
ModelUtil.trySetLookupItemsProperties(this);
|
|
3408
3439
|
}
|
|
@@ -3433,6 +3464,12 @@ class FieldLookupDescriptor extends AFieldDescriptor {
|
|
|
3433
3464
|
get autocompleteInlineSearch() {
|
|
3434
3465
|
return this._autocompleteInlineSearch;
|
|
3435
3466
|
}
|
|
3467
|
+
get autocompleteAutoClear() {
|
|
3468
|
+
return this._autocompleteAutoClear;
|
|
3469
|
+
}
|
|
3470
|
+
get autocompleteSelectFirst() {
|
|
3471
|
+
return this._autocompleteSelectFirst;
|
|
3472
|
+
}
|
|
3436
3473
|
get dropdownClassName() {
|
|
3437
3474
|
return this._dropdownClassName;
|
|
3438
3475
|
}
|
|
@@ -3480,8 +3517,10 @@ class FieldLookupDescriptor extends AFieldDescriptor {
|
|
|
3480
3517
|
withConfig(config) {
|
|
3481
3518
|
return super.withConfig(config);
|
|
3482
3519
|
}
|
|
3483
|
-
asAutocomplete(openOnFocus = false, inlineSearch = false) {
|
|
3520
|
+
asAutocomplete(openOnFocus = false, inlineSearch = false, selectFirst = false, autoClear = false) {
|
|
3484
3521
|
this._lookupType = FieldLookupTypeEnum.Autocomplete;
|
|
3522
|
+
this._autocompleteAutoClear = autoClear;
|
|
3523
|
+
this._autocompleteSelectFirst = selectFirst;
|
|
3485
3524
|
this._autocompleteOpenOnFocus = openOnFocus;
|
|
3486
3525
|
this._autocompleteInlineSearch = inlineSearch;
|
|
3487
3526
|
return this;
|
|
@@ -4598,116 +4637,6 @@ class TableviewDynamicDescriptor extends TableviewDescriptor {
|
|
|
4598
4637
|
}
|
|
4599
4638
|
}
|
|
4600
4639
|
|
|
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
4640
|
class EditorFormlyUtil {
|
|
4712
4641
|
static createFormlyConfigFromDescriptor(descriptor) {
|
|
4713
4642
|
const fields = [];
|
|
@@ -6933,11 +6862,11 @@ class MngActionExecutorService {
|
|
|
6933
6862
|
key: srcConfirmComponent.getConfirmationServiceInstanceKey(action),
|
|
6934
6863
|
icon: confirmationDescriptor.icon,
|
|
6935
6864
|
acceptVisible: true,
|
|
6936
|
-
acceptIcon: confirmationDescriptor.
|
|
6937
|
-
acceptButtonStyleClass: confirmationDescriptor.
|
|
6865
|
+
acceptIcon: confirmationDescriptor.acceptButton.icon ?? undefined,
|
|
6866
|
+
acceptButtonStyleClass: confirmationDescriptor.acceptButton.styleClass.build(),
|
|
6938
6867
|
rejectVisible: true,
|
|
6939
|
-
rejectIcon: confirmationDescriptor.
|
|
6940
|
-
rejectButtonStyleClass: confirmationDescriptor.
|
|
6868
|
+
rejectIcon: confirmationDescriptor.rejectButton?.icon ?? undefined,
|
|
6869
|
+
rejectButtonStyleClass: confirmationDescriptor.rejectButton?.styleClass.build(),
|
|
6941
6870
|
closeOnEscape: confirmationDescriptor.closeOnEscape
|
|
6942
6871
|
};
|
|
6943
6872
|
if (confirmationDescriptor.title !== null) {
|
|
@@ -6948,19 +6877,21 @@ class MngActionExecutorService {
|
|
|
6948
6877
|
I18nUtils.Action.get(this.translate, action, 'confirm.message', confirmationDescriptor.message, StringUtil.escapeHtmlAny(item), 'general.confirmation') ??
|
|
6949
6878
|
undefined;
|
|
6950
6879
|
}
|
|
6951
|
-
if (confirmationDescriptor.
|
|
6952
|
-
confirmParams.acceptLabel =
|
|
6880
|
+
if (confirmationDescriptor.acceptButton.label !== null) {
|
|
6881
|
+
confirmParams.acceptLabel =
|
|
6882
|
+
I18nUtils.Action.get(this.translate, action, 'confirm.accept', confirmationDescriptor.acceptButton.label, item, 'general.yes') ?? undefined;
|
|
6953
6883
|
}
|
|
6954
|
-
if (confirmationDescriptor.
|
|
6955
|
-
confirmParams.acceptIcon = confirmationDescriptor.
|
|
6884
|
+
if (confirmationDescriptor.acceptButton.icon !== null) {
|
|
6885
|
+
confirmParams.acceptIcon = confirmationDescriptor.acceptButton.icon;
|
|
6956
6886
|
}
|
|
6957
|
-
if (confirmationDescriptor.
|
|
6958
|
-
confirmParams.rejectIcon = confirmationDescriptor.
|
|
6887
|
+
if (confirmationDescriptor.rejectButton?.icon !== null) {
|
|
6888
|
+
confirmParams.rejectIcon = confirmationDescriptor.rejectButton?.icon;
|
|
6959
6889
|
}
|
|
6960
|
-
if (confirmationDescriptor.
|
|
6961
|
-
confirmParams.rejectLabel =
|
|
6890
|
+
if (confirmationDescriptor.rejectButton?.label !== null) {
|
|
6891
|
+
confirmParams.rejectLabel =
|
|
6892
|
+
I18nUtils.Action.get(this.translate, action, 'confirm.reject', confirmationDescriptor.rejectButton?.label, item, 'general.no') ?? undefined;
|
|
6962
6893
|
}
|
|
6963
|
-
if (confirmationDescriptor.
|
|
6894
|
+
if (confirmationDescriptor.rejectButton == null || (confirmationDescriptor.rejectButton.label === null && confirmationDescriptor.rejectButton.icon === null)) {
|
|
6964
6895
|
confirmParams.rejectVisible = false;
|
|
6965
6896
|
}
|
|
6966
6897
|
confirmParams.accept = () => {
|
|
@@ -7008,19 +6939,19 @@ class MngActionExecutorService {
|
|
|
7008
6939
|
dialogClassName = action.dialogClassName ?? 'mng-action-editor-dialog';
|
|
7009
6940
|
let dialogSizeClassName = '';
|
|
7010
6941
|
switch (action.dialogSize) {
|
|
7011
|
-
case
|
|
6942
|
+
case StyleSizeEnum.ExtraSmall:
|
|
7012
6943
|
dialogSizeClassName = 'mng-action-editor-dialog-xs';
|
|
7013
6944
|
break;
|
|
7014
|
-
case
|
|
6945
|
+
case StyleSizeEnum.Small:
|
|
7015
6946
|
dialogSizeClassName = 'mng-action-editor-dialog-sm';
|
|
7016
6947
|
break;
|
|
7017
|
-
case
|
|
6948
|
+
case StyleSizeEnum.Large:
|
|
7018
6949
|
dialogSizeClassName = 'mng-action-editor-dialog-lg';
|
|
7019
6950
|
break;
|
|
7020
|
-
case
|
|
6951
|
+
case StyleSizeEnum.ExtraLarge:
|
|
7021
6952
|
dialogSizeClassName = 'mng-action-editor-dialog-xl';
|
|
7022
6953
|
break;
|
|
7023
|
-
case
|
|
6954
|
+
case StyleSizeEnum.Normal:
|
|
7024
6955
|
default:
|
|
7025
6956
|
break;
|
|
7026
6957
|
}
|
|
@@ -7655,7 +7586,7 @@ class MngActionComponent {
|
|
|
7655
7586
|
}
|
|
7656
7587
|
ngOnInit() {
|
|
7657
7588
|
this.viewContainer = this.viewContainerInit ?? this.viewContainerService ?? undefined;
|
|
7658
|
-
this.hasNoTitle = this.action.
|
|
7589
|
+
this.hasNoTitle = this.action.button.label === null;
|
|
7659
7590
|
this.isEnabledSubject.next(true);
|
|
7660
7591
|
this.isVisibleSubject.next(true);
|
|
7661
7592
|
this.isPermittedSubject.next(true);
|
|
@@ -7678,7 +7609,7 @@ class MngActionComponent {
|
|
|
7678
7609
|
this.isHostHidden = !isVisible || !isPermitted;
|
|
7679
7610
|
});
|
|
7680
7611
|
this.subscriptions.push(hostVisibilitySubscription);
|
|
7681
|
-
this.buttonClass = this.action.
|
|
7612
|
+
this.buttonClass = this.action.button.styleClass.build(this.hasNoTitle);
|
|
7682
7613
|
}
|
|
7683
7614
|
ngOnChanges(changes) {
|
|
7684
7615
|
if (!(changes['item']?.firstChange ?? true) ||
|
|
@@ -7765,21 +7696,21 @@ class MngActionComponent {
|
|
|
7765
7696
|
}
|
|
7766
7697
|
if (!this.hasNoTitle) {
|
|
7767
7698
|
this.labelSubscription?.unsubscribe();
|
|
7768
|
-
this.labelSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'title', this.action.
|
|
7699
|
+
this.labelSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'title', this.action.button.label ?? undefined, this.item).subscribe({
|
|
7769
7700
|
next: i18n => this.labelSubject.next(i18n)
|
|
7770
7701
|
});
|
|
7771
7702
|
}
|
|
7772
7703
|
this.tooltipSubscription?.unsubscribe();
|
|
7773
|
-
this.tooltipSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'tooltip', this.action.
|
|
7704
|
+
this.tooltipSubscription = I18nUtils.Action.getAsync(this.translate, this.action, 'tooltip', this.action.button.tooltip, this.item).subscribe({
|
|
7774
7705
|
next: i18n => this.tooltipSubject.next(i18n)
|
|
7775
7706
|
});
|
|
7776
7707
|
}
|
|
7777
7708
|
}
|
|
7778
7709
|
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.
|
|
7710
|
+
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
7711
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngActionComponent, decorators: [{
|
|
7781
7712
|
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.
|
|
7713
|
+
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
7714
|
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1$2.TranslateService }, { type: MngAuthorizationService }, { type: MngActionExecutorService }, { type: i2.ConfirmationService }, { type: MngViewContainerComponentService, decorators: [{
|
|
7784
7715
|
type: Optional
|
|
7785
7716
|
}] }]; }, propDecorators: { hostClass: [{
|
|
@@ -8234,6 +8165,9 @@ class MngAutocompleteComponent {
|
|
|
8234
8165
|
this.multiselect = false;
|
|
8235
8166
|
this.className = null;
|
|
8236
8167
|
this.dropdownClassName = null;
|
|
8168
|
+
this.showClear = false;
|
|
8169
|
+
this.autoClear = false;
|
|
8170
|
+
this.selectFirst = false; //on every input field change return first given value (or null)
|
|
8237
8171
|
this.valueChangeEventEmitter = new EventEmitter();
|
|
8238
8172
|
this.isInited = false;
|
|
8239
8173
|
this.suggestionsSubject = new BehaviorSubject([]);
|
|
@@ -8248,9 +8182,13 @@ class MngAutocompleteComponent {
|
|
|
8248
8182
|
}
|
|
8249
8183
|
ngOnInit() {
|
|
8250
8184
|
this.setItemsAndDataProvider();
|
|
8185
|
+
if (this.selectFirst) {
|
|
8186
|
+
this.suggestionSubscription = this.suggestions$.subscribe(e => this.valueChangeEventEmitter.emit(e.length === 0 ? null : e[0]));
|
|
8187
|
+
}
|
|
8251
8188
|
}
|
|
8252
8189
|
ngOnDestroy() {
|
|
8253
8190
|
this.searchSubscription?.unsubscribe();
|
|
8191
|
+
this.suggestionSubscription?.unsubscribe();
|
|
8254
8192
|
}
|
|
8255
8193
|
onSearch(event) {
|
|
8256
8194
|
this.searchSubscription?.unsubscribe();
|
|
@@ -8287,6 +8225,11 @@ class MngAutocompleteComponent {
|
|
|
8287
8225
|
onBlur(event) {
|
|
8288
8226
|
this.formlyWrapper?.formControl?.markAsTouched();
|
|
8289
8227
|
}
|
|
8228
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8229
|
+
onClear(event) {
|
|
8230
|
+
this.onChangeFn();
|
|
8231
|
+
this.valueChangeEventEmitter.next(null);
|
|
8232
|
+
}
|
|
8290
8233
|
registerOnChange(fn) {
|
|
8291
8234
|
this.onChangeFn = fn;
|
|
8292
8235
|
}
|
|
@@ -8450,10 +8393,10 @@ class MngAutocompleteComponent {
|
|
|
8450
8393
|
}
|
|
8451
8394
|
}
|
|
8452
8395
|
MngAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngAutocompleteComponent, deps: [{ token: i0.Injector }, { token: i1$2.TranslateService }, { token: MngFormlyFieldWrapperComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
8453
|
-
MngAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: { dataProvider: "dataProvider", dataKeyProperty: "dataKeyProperty", itemsValuePropertyInit: ["itemsValueProperty", "itemsValuePropertyInit"], itemsLabelPropertyInit: ["itemsLabelProperty", "itemsLabelPropertyInit"], itemsLabelTranslate: "itemsLabelTranslate", inlineSearch: "inlineSearch", openOnFocus: "openOnFocus", multiselect: "multiselect", placeholder: "placeholder", className: "className", dropdownClassName: "dropdownClassName" }, outputs: { valueChangeEventEmitter: "valueChange" }, providers: [MNG_AUTOCOMPLETE_VALUE_ACCESSOR], viewQueries: [{ propertyName: "primeAutocomplete", first: true, predicate: AutoComplete, descendants: true }], ngImport: i0, template: "<p-autoComplete\n (onFocus)=\"onFocus($event)\"\n [formControl]=\"autocompleteFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dropdown]=\"true\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [field]=\"$any(itemsLabelProperty)\"\n [suggestions]=\"(suggestions$ | async) ?? []\"\n [multiple]=\"multiselect\"\n [showEmptyMessage]=\"true\"\n [emptyMessage]=\"'mngAutocomplete.noMatches' | translate\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n [minLength]=\"openOnFocus ? 0 : 1\"\n (completeMethod)=\"onSearch($event)\"\n (onSelect)=\"onSelect($event)\"\n (onBlur)=\"onBlur($event)\"\n appendTo=\"body\"\n dropdownMode=\"current\">\n</p-autoComplete>\n", dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4$2.AutoComplete, selector: "p-autoComplete", inputs: ["minLength", "delay", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "disabled", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "field", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "itemSize", "suggestions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8396
|
+
MngAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: { dataProvider: "dataProvider", dataKeyProperty: "dataKeyProperty", itemsValuePropertyInit: ["itemsValueProperty", "itemsValuePropertyInit"], itemsLabelPropertyInit: ["itemsLabelProperty", "itemsLabelPropertyInit"], itemsLabelTranslate: "itemsLabelTranslate", inlineSearch: "inlineSearch", openOnFocus: "openOnFocus", multiselect: "multiselect", placeholder: "placeholder", className: "className", dropdownClassName: "dropdownClassName", showClear: "showClear", autoClear: "autoClear", selectFirst: "selectFirst" }, outputs: { valueChangeEventEmitter: "valueChange" }, providers: [MNG_AUTOCOMPLETE_VALUE_ACCESSOR], viewQueries: [{ propertyName: "primeAutocomplete", first: true, predicate: AutoComplete, descendants: true }], ngImport: i0, template: "<p-autoComplete\n (onFocus)=\"onFocus($event)\"\n [formControl]=\"autocompleteFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dropdown]=\"true\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [field]=\"$any(itemsLabelProperty)\"\n [suggestions]=\"(suggestions$ | async) ?? []\"\n [multiple]=\"multiselect\"\n [showEmptyMessage]=\"true\"\n [emptyMessage]=\"'mngAutocomplete.noMatches' | translate\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n [minLength]=\"openOnFocus ? 0 : 1\"\n [showClear]=\"showClear\"\n [forceSelection]=\"autoClear\"\n (completeMethod)=\"onSearch($event)\"\n (onSelect)=\"onSelect($event)\"\n (onBlur)=\"onBlur($event)\"\n (onClear)=\"onClear($event)\"\n appendTo=\"body\"\n dropdownMode=\"current\">\n</p-autoComplete>\n", dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4$2.AutoComplete, selector: "p-autoComplete", inputs: ["minLength", "delay", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "disabled", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "field", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "itemSize", "suggestions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8454
8397
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngAutocompleteComponent, decorators: [{
|
|
8455
8398
|
type: Component,
|
|
8456
|
-
args: [{ selector: 'mng-autocomplete', providers: [MNG_AUTOCOMPLETE_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-autoComplete\n (onFocus)=\"onFocus($event)\"\n [formControl]=\"autocompleteFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dropdown]=\"true\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [field]=\"$any(itemsLabelProperty)\"\n [suggestions]=\"(suggestions$ | async) ?? []\"\n [multiple]=\"multiselect\"\n [showEmptyMessage]=\"true\"\n [emptyMessage]=\"'mngAutocomplete.noMatches' | translate\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n [minLength]=\"openOnFocus ? 0 : 1\"\n (completeMethod)=\"onSearch($event)\"\n (onSelect)=\"onSelect($event)\"\n (onBlur)=\"onBlur($event)\"\n appendTo=\"body\"\n dropdownMode=\"current\">\n</p-autoComplete>\n" }]
|
|
8399
|
+
args: [{ selector: 'mng-autocomplete', providers: [MNG_AUTOCOMPLETE_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-autoComplete\n (onFocus)=\"onFocus($event)\"\n [formControl]=\"autocompleteFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dropdown]=\"true\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [field]=\"$any(itemsLabelProperty)\"\n [suggestions]=\"(suggestions$ | async) ?? []\"\n [multiple]=\"multiselect\"\n [showEmptyMessage]=\"true\"\n [emptyMessage]=\"'mngAutocomplete.noMatches' | translate\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n [minLength]=\"openOnFocus ? 0 : 1\"\n [showClear]=\"showClear\"\n [forceSelection]=\"autoClear\"\n (completeMethod)=\"onSearch($event)\"\n (onSelect)=\"onSelect($event)\"\n (onBlur)=\"onBlur($event)\"\n (onClear)=\"onClear($event)\"\n appendTo=\"body\"\n dropdownMode=\"current\">\n</p-autoComplete>\n" }]
|
|
8457
8400
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$2.TranslateService }, { type: MngFormlyFieldWrapperComponent, decorators: [{
|
|
8458
8401
|
type: Optional
|
|
8459
8402
|
}] }]; }, propDecorators: { dataProvider: [{
|
|
@@ -8480,6 +8423,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
8480
8423
|
type: Input
|
|
8481
8424
|
}], dropdownClassName: [{
|
|
8482
8425
|
type: Input
|
|
8426
|
+
}], showClear: [{
|
|
8427
|
+
type: Input
|
|
8428
|
+
}], autoClear: [{
|
|
8429
|
+
type: Input
|
|
8430
|
+
}], selectFirst: [{
|
|
8431
|
+
type: Input
|
|
8483
8432
|
}], valueChangeEventEmitter: [{
|
|
8484
8433
|
type: Output,
|
|
8485
8434
|
args: ['valueChange']
|
|
@@ -8829,11 +8778,11 @@ class MngActionEditorComponent {
|
|
|
8829
8778
|
this.setTitle();
|
|
8830
8779
|
for (const action of this.action.editorActions) {
|
|
8831
8780
|
if (action instanceof ActionEditorSubmitDescriptor) {
|
|
8832
|
-
if (typeof action.
|
|
8833
|
-
action.
|
|
8781
|
+
if (typeof action.button.icon === 'undefined') {
|
|
8782
|
+
action.button.withIcon(action.submitType === ActionEditorSubmitTypeEnum.Submit ? 'pi pi-check' : 'pi pi-times');
|
|
8834
8783
|
}
|
|
8835
|
-
if (typeof action.
|
|
8836
|
-
action.
|
|
8784
|
+
if (typeof action.button.label === 'undefined') {
|
|
8785
|
+
action.button.withLabel(action.submitType === ActionEditorSubmitTypeEnum.Submit ? 'general.save' : this.isDialog ? 'general.close' : 'general.cancel');
|
|
8837
8786
|
}
|
|
8838
8787
|
// assign run operations
|
|
8839
8788
|
action.withRunNotificationSuccess(undefined, undefined, false);
|
|
@@ -9000,47 +8949,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
9000
8949
|
args: [MngFormEditorComponent]
|
|
9001
8950
|
}] } });
|
|
9002
8951
|
|
|
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
8952
|
class MngFormlyFieldAutocompleteComponent extends FieldType {
|
|
9045
8953
|
constructor() {
|
|
9046
8954
|
super(...arguments);
|
|
@@ -9075,10 +8983,10 @@ class MngFormlyFieldAutocompleteComponent extends FieldType {
|
|
|
9075
8983
|
}
|
|
9076
8984
|
}
|
|
9077
8985
|
MngFormlyFieldAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngFormlyFieldAutocompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
9078
|
-
MngFormlyFieldAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngFormlyFieldAutocompleteComponent, selector: "mng-formly-field-autocomplete", usesInheritance: true, ngImport: i0, template: "<mng-autocomplete\n [id]=\"$any(key)\"\n [formControl]=\"aFormControl\"\n [formlyAttributes]=\"field\"\n [dataProvider]=\"$any(descriptor.dataProvider)\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [className]=\"descriptor.inputClassName\">\n</mng-autocomplete>\n", dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: ["dataProvider", "dataKeyProperty", "itemsValueProperty", "itemsLabelProperty", "itemsLabelTranslate", "inlineSearch", "openOnFocus", "multiselect", "placeholder", "className", "dropdownClassName"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8986
|
+
MngFormlyFieldAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngFormlyFieldAutocompleteComponent, selector: "mng-formly-field-autocomplete", usesInheritance: true, ngImport: i0, template: "<mng-autocomplete\n [id]=\"$any(key)\"\n [formControl]=\"aFormControl\"\n [formlyAttributes]=\"field\"\n [dataProvider]=\"$any(descriptor.dataProvider)\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [className]=\"descriptor.inputClassName\"\n [showClear]=\"!to.required\"\n [selectFirst]=\"descriptor.autocompleteSelectFirst\"\n [autoClear]=\"descriptor.autocompleteAutoClear\">\n</mng-autocomplete>\n", dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: ["dataProvider", "dataKeyProperty", "itemsValueProperty", "itemsLabelProperty", "itemsLabelTranslate", "inlineSearch", "openOnFocus", "multiselect", "placeholder", "className", "dropdownClassName", "showClear", "autoClear", "selectFirst"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9079
8987
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngFormlyFieldAutocompleteComponent, decorators: [{
|
|
9080
8988
|
type: Component,
|
|
9081
|
-
args: [{ selector: 'mng-formly-field-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mng-autocomplete\n [id]=\"$any(key)\"\n [formControl]=\"aFormControl\"\n [formlyAttributes]=\"field\"\n [dataProvider]=\"$any(descriptor.dataProvider)\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [className]=\"descriptor.inputClassName\">\n</mng-autocomplete>\n" }]
|
|
8989
|
+
args: [{ selector: 'mng-formly-field-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mng-autocomplete\n [id]=\"$any(key)\"\n [formControl]=\"aFormControl\"\n [formlyAttributes]=\"field\"\n [dataProvider]=\"$any(descriptor.dataProvider)\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [className]=\"descriptor.inputClassName\"\n [showClear]=\"!to.required\"\n [selectFirst]=\"descriptor.autocompleteSelectFirst\"\n [autoClear]=\"descriptor.autocompleteAutoClear\">\n</mng-autocomplete>\n" }]
|
|
9082
8990
|
}] });
|
|
9083
8991
|
|
|
9084
8992
|
class MngFormlyFieldInputComponent extends FieldType {
|
|
@@ -9387,7 +9295,7 @@ class MngTableColumnFilterComponent {
|
|
|
9387
9295
|
}
|
|
9388
9296
|
}
|
|
9389
9297
|
MngTableColumnFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngTableColumnFilterComponent, deps: [{ token: i2.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
9390
|
-
MngTableColumnFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngTableColumnFilterComponent, selector: "mng-table-column-filter", inputs: { descriptor: "descriptor", display: "display" }, viewQueries: [{ propertyName: "primeColumnFilter", first: true, predicate: ColumnFilter, descendants: true }], ngImport: i0, template: "<p-columnFilter\n class=\"ml-auto\"\n [type]=\"primeType\"\n [field]=\"descriptor.property\"\n [display]=\"primeDisplay\"\n [matchMode]=\"$any(primeDefaultMatchMode)\"\n [matchModeOptions]=\"$any(primeMatchModes)\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"\n [showMatchModes]=\"true\"\n [showOperator]=\"false\"\n [showAddButton]=\"false\"\n [hideOnClear]=\"true\"\n [showMenu]=\"primeShowMatchMode\"\n [minFractionDigits]=\"$any(descriptor.numberMinFractionDigits)\"\n [maxFractionDigits]=\"$any(descriptor.numberMaxFractionDigits)\"\n [useGrouping]=\"descriptor.numberUseGrouping\">\n <ng-template *ngIf=\"primeType === 'date'\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container *ngIf=\"activeMatchMode === 'between'; else datePicker\">\n <mng-date-range\n [ngModel]=\"value\"\n (ngModelChange)=\"dateFilter($event, filterCallback)\"\n [showTime]=\"descriptor.datePickerShowTime\"\n [dateFormat]=\"descriptor.datePickerFormat\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"></mng-date-range>\n </ng-container>\n <ng-template #datePicker>\n <p-calendar\n appendTo=\"body\"\n [ngModel]=\"value\"\n (ngModelChange)=\"dateFilter($event, filterCallback)\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"\n [showIcon]=\"true\"\n [dateFormat]=\"descriptor.datePickerFormat ?? 'dd.mm.yy'\"\n [showTime]=\"descriptor.datePickerShowTime\">\n </p-calendar>\n </ng-template>\n </ng-template>\n <ng-template *ngIf=\"lookupDescriptor\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container [ngSwitch]=\"lookupDescriptor.lookupType\">\n <mng-autocomplete\n *ngSwitchCase=\"lookupTypeAutocomplete\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsLabelTranslate]=\"lookupDescriptor.itemsLabelTranslate\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [openOnFocus]=\"lookupDescriptor.autocompleteOpenOnFocus\"\n [inlineSearch]=\"lookupDescriptor.autocompleteInlineSearch\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.searchToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n (valueChange)=\"autocompleteFilter($event, filterCallback)\">\n </mng-autocomplete>\n <mng-dropdown\n *ngSwitchCase=\"lookupTypeDropdown\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsLabelTranslate]=\"lookupDescriptor.itemsLabelTranslate\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.selectToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n [showClear]=\"false\"\n [changeValueOnBlur]=\"lookupDescriptor.multiselect\"\n (valueChange)=\"dropdownFilter($event, filterCallback)\">\n </mng-dropdown>\n </ng-container>\n </ng-template>\n</p-columnFilter>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i4$3.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "view", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i6$4.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }, { kind: "component", type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: ["dataProvider", "dataKeyProperty", "itemsValueProperty", "itemsLabelProperty", "itemsLabelTranslate", "inlineSearch", "openOnFocus", "multiselect", "placeholder", "className", "dropdownClassName"], outputs: ["valueChange"] }, { kind: "component", type: MngDropdownComponent, selector: "mng-dropdown", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "itemsLabelTranslate", "itemsValueProperty", "itemsDisabledProperty", "multiselect", "placeholder", "showClear", "selectFirstItem", "className", "dropdownClassName", "changeValueOnBlur"], outputs: ["valueChange"] }, { kind: "component", type: MngDateRangeComponent, selector: "mng-date-range", inputs: ["placeholder", "showTime", "showSeconds", "dateFormat"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
|
|
9298
|
+
MngTableColumnFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngTableColumnFilterComponent, selector: "mng-table-column-filter", inputs: { descriptor: "descriptor", display: "display" }, viewQueries: [{ propertyName: "primeColumnFilter", first: true, predicate: ColumnFilter, descendants: true }], ngImport: i0, template: "<p-columnFilter\n class=\"ml-auto\"\n [type]=\"primeType\"\n [field]=\"descriptor.property\"\n [display]=\"primeDisplay\"\n [matchMode]=\"$any(primeDefaultMatchMode)\"\n [matchModeOptions]=\"$any(primeMatchModes)\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"\n [showMatchModes]=\"true\"\n [showOperator]=\"false\"\n [showAddButton]=\"false\"\n [hideOnClear]=\"true\"\n [showMenu]=\"primeShowMatchMode\"\n [minFractionDigits]=\"$any(descriptor.numberMinFractionDigits)\"\n [maxFractionDigits]=\"$any(descriptor.numberMaxFractionDigits)\"\n [useGrouping]=\"descriptor.numberUseGrouping\">\n <ng-template *ngIf=\"primeType === 'date'\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container *ngIf=\"activeMatchMode === 'between'; else datePicker\">\n <mng-date-range\n [ngModel]=\"value\"\n (ngModelChange)=\"dateFilter($event, filterCallback)\"\n [showTime]=\"descriptor.datePickerShowTime\"\n [dateFormat]=\"descriptor.datePickerFormat\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"></mng-date-range>\n </ng-container>\n <ng-template #datePicker>\n <p-calendar\n appendTo=\"body\"\n [ngModel]=\"value\"\n (ngModelChange)=\"dateFilter($event, filterCallback)\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"\n [showIcon]=\"true\"\n [dateFormat]=\"descriptor.datePickerFormat ?? 'dd.mm.yy'\"\n [showTime]=\"descriptor.datePickerShowTime\">\n </p-calendar>\n </ng-template>\n </ng-template>\n <ng-template *ngIf=\"lookupDescriptor\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container [ngSwitch]=\"lookupDescriptor.lookupType\">\n <mng-autocomplete\n *ngSwitchCase=\"lookupTypeAutocomplete\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsLabelTranslate]=\"lookupDescriptor.itemsLabelTranslate\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [openOnFocus]=\"lookupDescriptor.autocompleteOpenOnFocus\"\n [inlineSearch]=\"lookupDescriptor.autocompleteInlineSearch\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.searchToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n (valueChange)=\"autocompleteFilter($event, filterCallback)\">\n </mng-autocomplete>\n <mng-dropdown\n *ngSwitchCase=\"lookupTypeDropdown\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsLabelTranslate]=\"lookupDescriptor.itemsLabelTranslate\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.selectToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n [showClear]=\"false\"\n [changeValueOnBlur]=\"lookupDescriptor.multiselect\"\n (valueChange)=\"dropdownFilter($event, filterCallback)\">\n </mng-dropdown>\n </ng-container>\n </ng-template>\n</p-columnFilter>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i4$3.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "view", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i6$4.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }, { kind: "component", type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: ["dataProvider", "dataKeyProperty", "itemsValueProperty", "itemsLabelProperty", "itemsLabelTranslate", "inlineSearch", "openOnFocus", "multiselect", "placeholder", "className", "dropdownClassName", "showClear", "autoClear", "selectFirst"], outputs: ["valueChange"] }, { kind: "component", type: MngDropdownComponent, selector: "mng-dropdown", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "itemsLabelTranslate", "itemsValueProperty", "itemsDisabledProperty", "multiselect", "placeholder", "showClear", "selectFirstItem", "className", "dropdownClassName", "changeValueOnBlur"], outputs: ["valueChange"] }, { kind: "component", type: MngDateRangeComponent, selector: "mng-date-range", inputs: ["placeholder", "showTime", "showSeconds", "dateFormat"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
|
|
9391
9299
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngTableColumnFilterComponent, decorators: [{
|
|
9392
9300
|
type: Component,
|
|
9393
9301
|
args: [{ selector: 'mng-table-column-filter', template: "<p-columnFilter\n class=\"ml-auto\"\n [type]=\"primeType\"\n [field]=\"descriptor.property\"\n [display]=\"primeDisplay\"\n [matchMode]=\"$any(primeDefaultMatchMode)\"\n [matchModeOptions]=\"$any(primeMatchModes)\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"\n [showMatchModes]=\"true\"\n [showOperator]=\"false\"\n [showAddButton]=\"false\"\n [hideOnClear]=\"true\"\n [showMenu]=\"primeShowMatchMode\"\n [minFractionDigits]=\"$any(descriptor.numberMinFractionDigits)\"\n [maxFractionDigits]=\"$any(descriptor.numberMaxFractionDigits)\"\n [useGrouping]=\"descriptor.numberUseGrouping\">\n <ng-template *ngIf=\"primeType === 'date'\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container *ngIf=\"activeMatchMode === 'between'; else datePicker\">\n <mng-date-range\n [ngModel]=\"value\"\n (ngModelChange)=\"dateFilter($event, filterCallback)\"\n [showTime]=\"descriptor.datePickerShowTime\"\n [dateFormat]=\"descriptor.datePickerFormat\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"></mng-date-range>\n </ng-container>\n <ng-template #datePicker>\n <p-calendar\n appendTo=\"body\"\n [ngModel]=\"value\"\n (ngModelChange)=\"dateFilter($event, filterCallback)\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"\n [showIcon]=\"true\"\n [dateFormat]=\"descriptor.datePickerFormat ?? 'dd.mm.yy'\"\n [showTime]=\"descriptor.datePickerShowTime\">\n </p-calendar>\n </ng-template>\n </ng-template>\n <ng-template *ngIf=\"lookupDescriptor\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container [ngSwitch]=\"lookupDescriptor.lookupType\">\n <mng-autocomplete\n *ngSwitchCase=\"lookupTypeAutocomplete\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsLabelTranslate]=\"lookupDescriptor.itemsLabelTranslate\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [openOnFocus]=\"lookupDescriptor.autocompleteOpenOnFocus\"\n [inlineSearch]=\"lookupDescriptor.autocompleteInlineSearch\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.searchToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n (valueChange)=\"autocompleteFilter($event, filterCallback)\">\n </mng-autocomplete>\n <mng-dropdown\n *ngSwitchCase=\"lookupTypeDropdown\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsLabelTranslate]=\"lookupDescriptor.itemsLabelTranslate\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.selectToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n [showClear]=\"false\"\n [changeValueOnBlur]=\"lookupDescriptor.multiselect\"\n (valueChange)=\"dropdownFilter($event, filterCallback)\">\n </mng-dropdown>\n </ng-container>\n </ng-template>\n</p-columnFilter>\n" }]
|
|
@@ -10070,7 +9978,7 @@ class AMngTableviewRouteComponent {
|
|
|
10070
9978
|
}));
|
|
10071
9979
|
})
|
|
10072
9980
|
.withPosition(ActionPositionEnum.ToolbarRight);
|
|
10073
|
-
action.
|
|
9981
|
+
action.button.withIcon('pi pi-upload');
|
|
10074
9982
|
return action;
|
|
10075
9983
|
}
|
|
10076
9984
|
createActionDescriptorForRefresh(descriptor = this.descriptor.model) {
|
|
@@ -10082,7 +9990,7 @@ class AMngTableviewRouteComponent {
|
|
|
10082
9990
|
ctx.parameters.viewContainer.triggerTableReload({});
|
|
10083
9991
|
return of(null);
|
|
10084
9992
|
});
|
|
10085
|
-
action.
|
|
9993
|
+
action.button.withIcon('pi pi-refresh').styleClass.withActionLevel(StyleLevelEnum.Secondary);
|
|
10086
9994
|
return action;
|
|
10087
9995
|
}
|
|
10088
9996
|
}
|
|
@@ -10322,17 +10230,17 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
|
|
|
10322
10230
|
const viewAction = new ActionEditorDescriptor(this.descriptor.tableviewDescriptor.viewEditor, 'details', this.descriptor.editor.model.type, this.descriptor.property)
|
|
10323
10231
|
.withPosition(ActionPositionEnum.RowClick)
|
|
10324
10232
|
.withDialogClassName('mng-field-dialog mng-action-editor-dialog')
|
|
10325
|
-
.withDialogSize(
|
|
10233
|
+
.withDialogSize(StyleSizeEnum.Small);
|
|
10326
10234
|
viewAction.withEditorActions([new ActionEditorSubmitDescriptor(viewAction, ActionEditorSubmitTypeEnum.Cancel)]);
|
|
10327
|
-
viewAction.
|
|
10235
|
+
viewAction.button.withLabel(null);
|
|
10328
10236
|
this.actions.push(viewAction);
|
|
10329
10237
|
}
|
|
10330
10238
|
if (hasAddAction) {
|
|
10331
10239
|
const addAction = new ActionEditorDescriptor(this.descriptor.tableviewDescriptor.addEditor, 'add', this.descriptor.editor.model.type, this.descriptor.property)
|
|
10332
10240
|
.withPosition(ActionPositionEnum.ToolbarRight)
|
|
10333
10241
|
.withDialogClassName('mng-field-dialog mng-action-editor-dialog')
|
|
10334
|
-
.withDialogSize(
|
|
10335
|
-
.withButtonDescriptor(new
|
|
10242
|
+
.withDialogSize(StyleSizeEnum.Small)
|
|
10243
|
+
.withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withSize(StyleSizeEnum.ExtraSmall)))
|
|
10336
10244
|
.withSubmitFunction(ctx => {
|
|
10337
10245
|
if (!ctx.parameters.item) {
|
|
10338
10246
|
return throwError(() => new Error(`No item was provided in context, edit cannot be done.`));
|
|
@@ -10345,15 +10253,15 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
|
|
|
10345
10253
|
})
|
|
10346
10254
|
.withIsVisibleFunction(() => of(!this.options?.formState.disabled))
|
|
10347
10255
|
.withIsEnabledFunction(() => this.isEnabled$);
|
|
10348
|
-
addAction.
|
|
10256
|
+
addAction.button.withLabel(null).withIcon('pi pi-plus');
|
|
10349
10257
|
this.actions.push(addAction);
|
|
10350
10258
|
}
|
|
10351
10259
|
if (hasEditAction) {
|
|
10352
10260
|
const editAction = new ActionEditorDescriptor(this.descriptor.tableviewDescriptor.editEditor, 'edit', this.descriptor.editor.model.type, this.descriptor.property)
|
|
10353
10261
|
.withPosition(ActionPositionEnum.RowInline)
|
|
10354
10262
|
.withDialogClassName('mng-field-dialog mng-action-editor-dialog')
|
|
10355
|
-
.withDialogSize(
|
|
10356
|
-
.withButtonDescriptor(new
|
|
10263
|
+
.withDialogSize(StyleSizeEnum.Small)
|
|
10264
|
+
.withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder().withSize(StyleSizeEnum.ExtraSmall)))
|
|
10357
10265
|
.withSubmitFunction(ctx => {
|
|
10358
10266
|
if (!ctx.parameters.item) {
|
|
10359
10267
|
return throwError(() => new Error(`No item was provided in context, edit cannot be done.`));
|
|
@@ -10366,13 +10274,13 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
|
|
|
10366
10274
|
})
|
|
10367
10275
|
.withIsVisibleFunction(() => of(!this.formControl?.disabled))
|
|
10368
10276
|
.withIsEnabledFunction(() => this.isEnabled$);
|
|
10369
|
-
editAction.
|
|
10277
|
+
editAction.button.withLabel(null).withIcon('pi pi-pencil');
|
|
10370
10278
|
this.actions.push(editAction);
|
|
10371
10279
|
}
|
|
10372
10280
|
if (hasDeleteAction) {
|
|
10373
10281
|
const deleteAction = new ActionDescriptor(this.descriptor.tableviewDescriptor.model, 'delete', this.descriptor.editor.model.type, this.descriptor.property)
|
|
10374
10282
|
.withPosition(ActionPositionEnum.RowInline)
|
|
10375
|
-
.withButtonDescriptor(new
|
|
10283
|
+
.withButtonDescriptor(new ActionButtonDescriptor().withStyleClass(new ButtonStyleBuilder(StyleLevelEnum.Danger).withSize(StyleSizeEnum.ExtraSmall)))
|
|
10376
10284
|
.withRunFunction(ctx => {
|
|
10377
10285
|
if (!ctx.parameters.item) {
|
|
10378
10286
|
return throwError(() => new Error(`No item was provided in context, delete cannot be done.`));
|
|
@@ -10397,7 +10305,7 @@ class MngFormlyFieldTableDialogFormComponent extends FieldType {
|
|
|
10397
10305
|
})
|
|
10398
10306
|
.withIsVisibleFunction(() => of(!this.options?.formState.disabled))
|
|
10399
10307
|
.withIsEnabledFunction(() => this.isEnabled$);
|
|
10400
|
-
deleteAction.
|
|
10308
|
+
deleteAction.button.withLabel(null).withIcon('pi pi-trash');
|
|
10401
10309
|
this.actions.push(deleteAction);
|
|
10402
10310
|
}
|
|
10403
10311
|
this.actions.push(...this.descriptor.actions);
|
|
@@ -11599,9 +11507,7 @@ const declarations = [
|
|
|
11599
11507
|
MngFormEditorComponent,
|
|
11600
11508
|
MngActionComponent,
|
|
11601
11509
|
MngActionEditorComponent,
|
|
11602
|
-
MngActionRouteComponent
|
|
11603
|
-
//button
|
|
11604
|
-
MngButtonComponent
|
|
11510
|
+
MngActionRouteComponent
|
|
11605
11511
|
];
|
|
11606
11512
|
class MngCommonsModule {
|
|
11607
11513
|
static forRoot(config) {
|
|
@@ -11724,9 +11630,7 @@ MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
|
|
|
11724
11630
|
MngFormEditorComponent,
|
|
11725
11631
|
MngActionComponent,
|
|
11726
11632
|
MngActionEditorComponent,
|
|
11727
|
-
MngActionRouteComponent,
|
|
11728
|
-
//button
|
|
11729
|
-
MngButtonComponent], imports: [
|
|
11633
|
+
MngActionRouteComponent], imports: [
|
|
11730
11634
|
// angular modules
|
|
11731
11635
|
CommonModule,
|
|
11732
11636
|
RouterModule,
|
|
@@ -11845,9 +11749,7 @@ MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
|
|
|
11845
11749
|
MngFormEditorComponent,
|
|
11846
11750
|
MngActionComponent,
|
|
11847
11751
|
MngActionEditorComponent,
|
|
11848
|
-
MngActionRouteComponent
|
|
11849
|
-
//button
|
|
11850
|
-
MngButtonComponent] });
|
|
11752
|
+
MngActionRouteComponent] });
|
|
11851
11753
|
MngCommonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngCommonsModule, imports: [
|
|
11852
11754
|
// angular modules
|
|
11853
11755
|
CommonModule,
|
|
@@ -12687,5 +12589,5 @@ class TableviewRouteBuilder {
|
|
|
12687
12589
|
* Generated bundle index. Do not edit.
|
|
12688
12590
|
*/
|
|
12689
12591
|
|
|
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,
|
|
12592
|
+
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
12593
|
//# sourceMappingURL=mediusinc-mng-commons.mjs.map
|