@magic-xpa/angular 4.1200.0-ec.131.1 → 4.1200.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -682,7 +682,23 @@ class SubformMagicService {
682
682
  if (SubformMagicService.routerContainers.length > 0) {
683
683
  let routeContainer = SubformMagicService.routerContainers[0];
684
684
  SubformMagicService.routerContainers.shift();
685
- routeContainer.initializeComponent();
685
+ // If the route path is not same, it means that the original route is not available
686
+ // and the default route is invoked.
687
+ if (routeContainer.getRouterPath() === routeCommand.routeParams[0])
688
+ routeContainer.initializeComponent();
689
+ else {
690
+ // If the specified router outlet id referring to a different route path, then first clear
691
+ // the outlet (passing null route params, clears the outlet) and then navigate again.
692
+ currentSubformMagicService.router.navigate([{ outlets: { [routeCommand.routerOutletName]: null } }], { relativeTo: relativeRoute })
693
+ .then((result) => {
694
+ SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
695
+ currentSubformMagicService.currentRouteDefinition = {
696
+ formName: routeCommand.formName,
697
+ parameters: routeCommand.parameters
698
+ };
699
+ currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
700
+ });
701
+ }
686
702
  }
687
703
  else {
688
704
  currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
@@ -755,6 +771,7 @@ class RouterContainerMagicComponent {
755
771
  componentRef = null;
756
772
  parentMgSubformService = null;
757
773
  static lastRoute = "/";
774
+ routePath = null;
758
775
  static get LastRoute() {
759
776
  return RouterContainerMagicComponent.lastRoute;
760
777
  }
@@ -805,7 +822,7 @@ class RouterContainerMagicComponent {
805
822
  if (calcRouterPath.length > 0) {
806
823
  let routerPath = calcRouterPath;
807
824
  let tokens = StrUtil.tokenize(routerPath, "/:");
808
- guiEvent.RouterPath = tokens[0];
825
+ this.routePath = guiEvent.RouterPath = tokens[0];
809
826
  guiEvent.RouterParams = new List();
810
827
  for (let i = 1; i < tokens.length; i++) {
811
828
  guiEvent.RouterParams.push(currentActiveRoute.snapshot.params[tokens[i]]);
@@ -852,6 +869,9 @@ class RouterContainerMagicComponent {
852
869
  RouterContainerMagicComponent.lastRoute = this.router.url;
853
870
  }
854
871
  }
872
+ getRouterPath() {
873
+ return this.routePath;
874
+ }
855
875
  /** @nocollapse */ static ɵfac = function RouterContainerMagicComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RouterContainerMagicComponent)(i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(EngineMagicService), i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(ComponentListMagicService), i0.ɵɵdirectiveInject(CommandsCollectorMagicService), i0.ɵɵdirectiveInject(RouterCommandsMagicService)); };
856
876
  /** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: RouterContainerMagicComponent, selectors: [["magic-route-outlet"]], standalone: false, decls: 0, vars: 0, template: function RouterContainerMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
857
877
  }
@@ -1028,35 +1048,41 @@ const _c0$3 = ["modalheader"];
1028
1048
  const _c1$1 = ["modalForeground"];
1029
1049
  function MagicOverlayContainer_button_2_Template(rf, ctx) { if (rf & 1) {
1030
1050
  const _r2 = i0.ɵɵgetCurrentView();
1031
- i0.ɵɵelementStart(0, "button", 16);
1051
+ i0.ɵɵelementStart(0, "button", 14);
1032
1052
  i0.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnClose()); });
1033
1053
  i0.ɵɵtext(1, "X");
1034
1054
  i0.ɵɵelementEnd();
1035
1055
  } }
1036
1056
  function MagicOverlayContainer_span_5_Template(rf, ctx) { if (rf & 1) {
1037
1057
  const _r4 = i0.ɵɵgetCurrentView();
1038
- i0.ɵɵelementStart(0, "span", 17, 2);
1039
- i0.ɵɵlistener("mousedown", function MagicOverlayContainer_span_5_Template_span_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onResizeStart($event, "corner")); });
1058
+ i0.ɵɵelementStart(0, "span", 15);
1059
+ i0.ɵɵlistener("mousedown", function MagicOverlayContainer_span_5_Template_span_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onResizeStart($event, "right")); });
1040
1060
  i0.ɵɵelementEnd();
1041
1061
  } }
1042
1062
  function MagicOverlayContainer_span_6_Template(rf, ctx) { if (rf & 1) {
1043
1063
  const _r5 = i0.ɵɵgetCurrentView();
1044
- i0.ɵɵelementStart(0, "span", 18, 3);
1045
- i0.ɵɵlistener("mousedown", function MagicOverlayContainer_span_6_Template_span_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onResizeStart($event, "right")); });
1064
+ i0.ɵɵelementStart(0, "span", 16);
1065
+ i0.ɵɵlistener("mousedown", function MagicOverlayContainer_span_6_Template_span_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onResizeStart($event, "left")); });
1046
1066
  i0.ɵɵelementEnd();
1047
1067
  } }
1048
1068
  function MagicOverlayContainer_span_7_Template(rf, ctx) { if (rf & 1) {
1049
1069
  const _r6 = i0.ɵɵgetCurrentView();
1050
- i0.ɵɵelementStart(0, "span", 19, 4);
1051
- i0.ɵɵlistener("mousedown", function MagicOverlayContainer_span_7_Template_span_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onResizeStart($event, "bottom")); });
1070
+ i0.ɵɵelementStart(0, "span", 17);
1071
+ i0.ɵɵlistener("mousedown", function MagicOverlayContainer_span_7_Template_span_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onResizeStart($event, "corner")); });
1052
1072
  i0.ɵɵelementEnd();
1053
1073
  } }
1054
- function MagicOverlayContainer_div_8_Template(rf, ctx) { if (rf & 1) {
1074
+ function MagicOverlayContainer_span_8_Template(rf, ctx) { if (rf & 1) {
1055
1075
  const _r7 = i0.ɵɵgetCurrentView();
1056
- i0.ɵɵelementStart(0, "div", 20, 5);
1076
+ i0.ɵɵelementStart(0, "span", 18);
1077
+ i0.ɵɵlistener("mousedown", function MagicOverlayContainer_span_8_Template_span_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onResizeStart($event, "bottom")); });
1078
+ i0.ɵɵelementEnd();
1079
+ } }
1080
+ function MagicOverlayContainer_div_9_Template(rf, ctx) { if (rf & 1) {
1081
+ const _r8 = i0.ɵɵgetCurrentView();
1082
+ i0.ɵɵelementStart(0, "div", 19, 2);
1057
1083
  i0.ɵɵtext(2);
1058
- i0.ɵɵelementStart(3, "button", 21);
1059
- i0.ɵɵlistener("click", function MagicOverlayContainer_div_8_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnClose()); });
1084
+ i0.ɵɵelementStart(3, "button", 20);
1085
+ i0.ɵɵlistener("click", function MagicOverlayContainer_div_9_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnClose()); });
1060
1086
  i0.ɵɵtext(4, "X");
1061
1087
  i0.ɵɵelementEnd()();
1062
1088
  } if (rf & 2) {
@@ -1103,6 +1129,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1103
1129
  isCenteredToWindow = true;
1104
1130
  static minAllowedWidth = 30;
1105
1131
  static minAllowedHeight = 30;
1132
+ _isRtl = false; // Indicates whether the text direction is right-to-left (RTL)
1106
1133
  /**
1107
1134
  *
1108
1135
  */
@@ -1118,6 +1145,13 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1118
1145
  let comp = this.componentRef.instance;
1119
1146
  this.isCenteredToWindow = comp.IsCenteredToWindow();
1120
1147
  }
1148
+ ngAfterViewInit() {
1149
+ // Detect RTL mode
1150
+ if (this.foregroundElementRef?.nativeElement) {
1151
+ const dir = getComputedStyle(this.foregroundElementRef.nativeElement).direction;
1152
+ this._isRtl = dir === 'rtl';
1153
+ }
1154
+ }
1121
1155
  setViewContainerRef(vcRef) {
1122
1156
  this.modalbodyViewContainerRef = vcRef;
1123
1157
  }
@@ -1133,6 +1167,12 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1133
1167
  else
1134
1168
  return '';
1135
1169
  }
1170
+ /**
1171
+ * Returns boolean to indicate whether the text direction is right-to-left (RTL)
1172
+ */
1173
+ get isRtl() {
1174
+ return this._isRtl;
1175
+ }
1136
1176
  /**
1137
1177
  * Returns CSS styles for the window
1138
1178
  * @returns
@@ -1221,14 +1261,23 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1221
1261
  this.resizing = true;
1222
1262
  this.resizeDirection = direction;
1223
1263
  const element = this.foregroundElementRef.nativeElement;
1264
+ const parentElement = element.parentNode;
1224
1265
  this.originalWidth = element.offsetWidth;
1225
1266
  this.originalHeight = element.offsetHeight;
1226
1267
  this.originalMouseX = event.clientX;
1227
1268
  this.originalMouseY = event.clientY;
1228
- // Removes auto margin and set left and top style
1269
+ // Removes auto margin and set left, right and top style
1229
1270
  if (this.isCenteredToWindow) {
1230
- element.style.left = element.offsetLeft + 'px';
1231
- element.style.top = element.offsetTop + 'px';
1271
+ const left = element.offsetLeft;
1272
+ const top = element.offsetTop;
1273
+ if (this.isRtl) {
1274
+ const right = parentElement.offsetWidth - element.offsetLeft - element.offsetWidth;
1275
+ element.style.right = `${right}px`;
1276
+ }
1277
+ else {
1278
+ element.style.left = `${left}px`;
1279
+ }
1280
+ element.style.top = `${top}px`;
1232
1281
  element.style.margin = '';
1233
1282
  this.isCenteredToWindow = false;
1234
1283
  }
@@ -1249,7 +1298,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1249
1298
  const parentWidth = parentElement.offsetWidth;
1250
1299
  const parentHeight = parentElement.offsetHeight;
1251
1300
  const rect = element.getBoundingClientRect();
1252
- const left = rect.left;
1301
+ const left = this.isRtl ? (parentWidth - rect.right) : rect.left;
1253
1302
  const top = rect.top;
1254
1303
  // When the user extends the overlay window to its edge, it becomes hard to grab the border for resizing.
1255
1304
  // To improve this, 2px are subtracted from maxAllowedWidth and maxAllowedHeight, making it easier to grab the overlay's border for resizing.
@@ -1257,7 +1306,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1257
1306
  const maxAllowedHeight = parentHeight - top - 2;
1258
1307
  let dx = (event.clientX - this.originalMouseX);
1259
1308
  let dy = (event.clientY - this.originalMouseY);
1260
- if (this.resizeDirection === 'right' || this.resizeDirection === 'corner') {
1309
+ if (this.resizeDirection === 'right' || (this.resizeDirection === 'corner' && !this.isRtl)) {
1261
1310
  let newWidth = this.originalWidth + dx;
1262
1311
  if (newWidth > maxAllowedWidth)
1263
1312
  newWidth = maxAllowedWidth;
@@ -1265,6 +1314,17 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1265
1314
  newWidth = MagicOverlayContainer.minAllowedWidth;
1266
1315
  element.style.width = `${newWidth}px`;
1267
1316
  }
1317
+ if (this.resizeDirection === 'left' || (this.resizeDirection === 'corner' && this.isRtl)) {
1318
+ const parentLeft = parentElement.getBoundingClientRect().left;
1319
+ const currentRight = rect.right;
1320
+ const maxAllowedWidth = currentRight - parentLeft - 2;
1321
+ let newWidth = this.originalWidth - dx;
1322
+ if (newWidth > maxAllowedWidth)
1323
+ newWidth = maxAllowedWidth;
1324
+ else if (newWidth < MagicOverlayContainer.minAllowedWidth)
1325
+ newWidth = MagicOverlayContainer.minAllowedWidth;
1326
+ element.style.width = `${newWidth}px`;
1327
+ }
1268
1328
  if (this.resizeDirection === 'bottom' || this.resizeDirection === 'corner') {
1269
1329
  let newHeight = this.originalHeight + dy;
1270
1330
  if (newHeight > maxAllowedHeight)
@@ -1292,16 +1352,16 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1292
1352
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.foregroundElementRef = _t.first);
1293
1353
  } }, hostBindings: function MagicOverlayContainer_HostBindings(rf, ctx) { if (rf & 1) {
1294
1354
  i0.ɵɵlistener("mousemove", function MagicOverlayContainer_mousemove_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow)("mouseup", function MagicOverlayContainer_mouseup_HostBindingHandler() { return ctx.onResizeEnd(); }, false, i0.ɵɵresolveWindow);
1295
- } }, inputs: { ModalComp: "ModalComp", ModalCompParameters: "ModalCompParameters" }, outputs: { onClose: "onClose" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 8, consts: [["modalForeground", ""], ["modalbody", ""], ["dragHandleCorner", ""], ["dragHandleRight", ""], ["dragHandleBottom", ""], ["modalheader", ""], [1, "boundary-line"], [1, "modal-background", 3, "click"], ["tabindex", "-1", "style", "float:right; border: none; background-color: transparent; outline: none; color: white", 3, "click", 4, "ngIf"], ["cdkDragBoundary", ".boundary-line", "cdkDrag", "", 1, "modal-foreground", 3, "ngStyle", "cdkDragDisabled"], ["class", "dragHandle corner", 3, "mousedown", 4, "ngIf"], ["class", "dragHandle right", 3, "mousedown", 4, "ngIf"], ["class", "dragHandle bottom", 3, "mousedown", 4, "ngIf"], ["class", "modal-header", "cdkDragHandle", "", 3, "movable", 4, "ngIf"], [3, "ngStyle"], ["magicViewContainerRef", ""], ["tabindex", "-1", 2, "float", "right", "border", "none", "background-color", "transparent", "outline", "none", "color", "white", 3, "click"], [1, "dragHandle", "corner", 3, "mousedown"], [1, "dragHandle", "right", 3, "mousedown"], [1, "dragHandle", "bottom", 3, "mousedown"], ["cdkDragHandle", "", 1, "modal-header"], ["tabindex", "-1", 2, "float", "right", 3, "click"]], template: function MagicOverlayContainer_Template(rf, ctx) { if (rf & 1) {
1355
+ } }, inputs: { ModalComp: "ModalComp", ModalCompParameters: "ModalCompParameters" }, outputs: { onClose: "onClose" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 9, consts: [["modalForeground", ""], ["modalbody", ""], ["modalheader", ""], [1, "boundary-line"], [1, "modal-background", 3, "click"], ["tabindex", "-1", "style", "float:right; border: none; background-color: transparent; outline: none; color: white", 3, "click", 4, "ngIf"], ["cdkDragBoundary", ".boundary-line", "cdkDrag", "", 1, "modal-foreground", 3, "ngStyle", "cdkDragDisabled"], ["class", "dragHandle right", 3, "mousedown", 4, "ngIf"], ["class", "dragHandle left", 3, "mousedown", 4, "ngIf"], ["class", "dragHandle corner", 3, "mousedown", 4, "ngIf"], ["class", "dragHandle bottom", 3, "mousedown", 4, "ngIf"], ["class", "modal-header", "cdkDragHandle", "", 3, "movable", 4, "ngIf"], [3, "ngStyle"], ["magicViewContainerRef", ""], ["tabindex", "-1", 2, "float", "right", "border", "none", "background-color", "transparent", "outline", "none", "color", "white", 3, "click"], [1, "dragHandle", "right", 3, "mousedown"], [1, "dragHandle", "left", 3, "mousedown"], [1, "dragHandle", "corner", 3, "mousedown"], [1, "dragHandle", "bottom", 3, "mousedown"], ["cdkDragHandle", "", 1, "modal-header"], ["tabindex", "-1", 2, "float", "right", 3, "click"]], template: function MagicOverlayContainer_Template(rf, ctx) { if (rf & 1) {
1296
1356
  const _r1 = i0.ɵɵgetCurrentView();
1297
- i0.ɵɵelementStart(0, "div", 6)(1, "div", 7);
1357
+ i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
1298
1358
  i0.ɵɵlistener("click", function MagicOverlayContainer_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.OnBackgroundClick()); });
1299
- i0.ɵɵtemplate(2, MagicOverlayContainer_button_2_Template, 2, 0, "button", 8);
1359
+ i0.ɵɵtemplate(2, MagicOverlayContainer_button_2_Template, 2, 0, "button", 5);
1300
1360
  i0.ɵɵelementEnd();
1301
- i0.ɵɵelementStart(3, "div", 9, 0);
1302
- i0.ɵɵtemplate(5, MagicOverlayContainer_span_5_Template, 2, 0, "span", 10)(6, MagicOverlayContainer_span_6_Template, 2, 0, "span", 11)(7, MagicOverlayContainer_span_7_Template, 2, 0, "span", 12)(8, MagicOverlayContainer_div_8_Template, 5, 3, "div", 13);
1303
- i0.ɵɵelementStart(9, "div", 14);
1304
- i0.ɵɵelement(10, "div", 15, 1);
1361
+ i0.ɵɵelementStart(3, "div", 6, 0);
1362
+ i0.ɵɵtemplate(5, MagicOverlayContainer_span_5_Template, 1, 0, "span", 7)(6, MagicOverlayContainer_span_6_Template, 1, 0, "span", 8)(7, MagicOverlayContainer_span_7_Template, 1, 0, "span", 9)(8, MagicOverlayContainer_span_8_Template, 1, 0, "span", 10)(9, MagicOverlayContainer_div_9_Template, 5, 3, "div", 11);
1363
+ i0.ɵɵelementStart(10, "div", 12);
1364
+ i0.ɵɵelement(11, "div", 13, 1);
1305
1365
  i0.ɵɵelementEnd()()();
1306
1366
  } if (rf & 2) {
1307
1367
  i0.ɵɵadvance(2);
@@ -1309,7 +1369,9 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1309
1369
  i0.ɵɵadvance();
1310
1370
  i0.ɵɵproperty("ngStyle", ctx.getStyle())("cdkDragDisabled", !ctx.IsMovable());
1311
1371
  i0.ɵɵadvance(2);
1312
- i0.ɵɵproperty("ngIf", ctx.IsResizable());
1372
+ i0.ɵɵproperty("ngIf", ctx.IsResizable() && !ctx.isRtl);
1373
+ i0.ɵɵadvance();
1374
+ i0.ɵɵproperty("ngIf", ctx.IsResizable() && ctx.isRtl);
1313
1375
  i0.ɵɵadvance();
1314
1376
  i0.ɵɵproperty("ngIf", ctx.IsResizable());
1315
1377
  i0.ɵɵadvance();
@@ -1318,7 +1380,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1318
1380
  i0.ɵɵproperty("ngIf", ctx.getShowTitleBar());
1319
1381
  i0.ɵɵadvance();
1320
1382
  i0.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
1321
- } }, dependencies: [i1.NgIf, i1.NgStyle, i2$1.CdkDragHandle, i2$1.CdkDrag, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#fff}.modal-background[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}.modal-header.movable[_ngcontent-%COMP%]:active{cursor:move}.container[_ngcontent-%COMP%]{position:relative}.dragHandle[_ngcontent-%COMP%]{position:absolute}.dragHandle.corner[_ngcontent-%COMP%]{width:10px;right:0;bottom:0;height:10px;cursor:nwse-resize;background:linear-gradient(135deg,rgba(0,0,0,.4) 50%,transparent 50%)}.dragHandle.right[_ngcontent-%COMP%]{width:2px;right:-2px;height:100%;cursor:ew-resize}.dragHandle.bottom[_ngcontent-%COMP%]{height:2px;bottom:-2px;width:100%;cursor:ns-resize}.boundary-line[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%}"] });
1383
+ } }, dependencies: [i1.NgIf, i1.NgStyle, i2$1.CdkDragHandle, i2$1.CdkDrag, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#fff}.modal-background[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}.modal-header.movable[_ngcontent-%COMP%]:active{cursor:move}.container[_ngcontent-%COMP%]{position:relative}.dragHandle[_ngcontent-%COMP%]{position:absolute}.dragHandle.corner[_ngcontent-%COMP%]{width:10px;right:0;bottom:0;height:10px;cursor:nwse-resize;background:linear-gradient(135deg,rgba(0,0,0,.4) 50%,transparent 50%);position:absolute}[dir=\"rtl\"][_nghost-%COMP%] .dragHandle.corner[_ngcontent-%COMP%], [dir=\"rtl\"] [_nghost-%COMP%] .dragHandle.corner[_ngcontent-%COMP%]{right:auto!important;left:0;cursor:nesw-resize;background:linear-gradient(225deg,rgba(0,0,0,.4) 50%,transparent 50%)}.dragHandle.left[_ngcontent-%COMP%]{width:2px;left:-2px;height:100%;cursor:ew-resize}.dragHandle.right[_ngcontent-%COMP%]{width:2px;right:-2px;height:100%;cursor:ew-resize}.dragHandle.bottom[_ngcontent-%COMP%]{height:2px;bottom:-2px;width:100%;cursor:ns-resize}.boundary-line[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%}"] });
1322
1384
  }
1323
1385
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainer, [{
1324
1386
  type: Component,
@@ -1331,9 +1393,10 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1331
1393
 
1332
1394
  <div #modalForeground class="modal-foreground" [ngStyle]="getStyle()" cdkDragBoundary=".boundary-line" cdkDrag [cdkDragDisabled]="!IsMovable()">
1333
1395
 
1334
- <span #dragHandleCorner *ngIf="IsResizable()" class="dragHandle corner" (mousedown)="onResizeStart($event, 'corner')"></span>
1335
- <span #dragHandleRight *ngIf="IsResizable()" class="dragHandle right" (mousedown)="onResizeStart($event, 'right')"></span>
1336
- <span #dragHandleBottom *ngIf="IsResizable()" class="dragHandle bottom" (mousedown)="onResizeStart($event, 'bottom')"></span>
1396
+ <span *ngIf="IsResizable() && !isRtl" class="dragHandle right" (mousedown)="onResizeStart($event, 'right')"></span>
1397
+ <span *ngIf="IsResizable() && isRtl" class="dragHandle left" (mousedown)="onResizeStart($event, 'left')"></span>
1398
+ <span *ngIf="IsResizable()" class="dragHandle corner" (mousedown)="onResizeStart($event, 'corner')"></span>
1399
+ <span *ngIf="IsResizable()" class="dragHandle bottom" (mousedown)="onResizeStart($event, 'bottom')"></span>
1337
1400
 
1338
1401
  <div #modalheader class="modal-header" *ngIf="getShowTitleBar()" cdkDragHandle [class.movable]="IsMovable()">
1339
1402
  {{getText()}}
@@ -1346,7 +1409,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1346
1409
  </div>
1347
1410
  </div>
1348
1411
  </div>
1349
- `, standalone: false, styles: [".modal-foreground{position:fixed;inset:0;background-color:#fff}.modal-background{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header{background-color:beige;border-bottom:2px solid red}.modal-header.movable:active{cursor:move}.container{position:relative}.dragHandle{position:absolute}.dragHandle.corner{width:10px;right:0;bottom:0;height:10px;cursor:nwse-resize;background:linear-gradient(135deg,rgba(0,0,0,.4) 50%,transparent 50%)}.dragHandle.right{width:2px;right:-2px;height:100%;cursor:ew-resize}.dragHandle.bottom{height:2px;bottom:-2px;width:100%;cursor:ns-resize}.boundary-line{width:100%;height:100%;max-width:100%}\n"] }]
1412
+ `, standalone: false, styles: [".modal-foreground{position:fixed;inset:0;background-color:#fff}.modal-background{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header{background-color:beige;border-bottom:2px solid red}.modal-header.movable:active{cursor:move}.container{position:relative}.dragHandle{position:absolute}.dragHandle.corner{width:10px;right:0;bottom:0;height:10px;cursor:nwse-resize;background:linear-gradient(135deg,rgba(0,0,0,.4) 50%,transparent 50%);position:absolute}:host-context([dir=\"rtl\"]) .dragHandle.corner{right:auto!important;left:0;cursor:nesw-resize;background:linear-gradient(225deg,rgba(0,0,0,.4) 50%,transparent 50%)}.dragHandle.left{width:2px;left:-2px;height:100%;cursor:ew-resize}.dragHandle.right{width:2px;right:-2px;height:100%;cursor:ew-resize}.dragHandle.bottom{height:2px;bottom:-2px;width:100%;cursor:ns-resize}.boundary-line{width:100%;height:100%;max-width:100%}\n"] }]
1350
1413
  }], () => [], { headerElementRef: [{
1351
1414
  type: ViewChild,
1352
1415
  args: ['modalheader', { static: false }]
@@ -1366,7 +1429,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1366
1429
  type: HostListener,
1367
1430
  args: ['window:mouseup']
1368
1431
  }] }); })();
1369
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MagicOverlayContainer, { className: "MagicOverlayContainer", filePath: "src/ui/magic-modal/magic-overlay-container.ts", lineNumber: 50 }); })();
1432
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MagicOverlayContainer, { className: "MagicOverlayContainer", filePath: "src/ui/magic-modal/magic-overlay-container.ts", lineNumber: 52 }); })();
1370
1433
 
1371
1434
  /**
1372
1435
  * Service managing overlay windows
@@ -2778,7 +2841,7 @@ class TaskMagicService {
2778
2841
  * @param topGuiRowId : GuiRowId of first record in view.
2779
2842
  */
2780
2843
  resize(pageSize, topGuiRowId) {
2781
- let guiEvent = getGuiEventObj('resize', 'table', 0);
2844
+ let guiEvent = getGuiEventObj('resize', null, 0);
2782
2845
  guiEvent.PageSize = pageSize;
2783
2846
  //As 'getRows' event also gets executed, set the guiEvent.Line parameter.
2784
2847
  guiEvent.Line = topGuiRowId;