@magic-xpa/angular 4.1200.0-dev4120.205 → 4.1200.0-dev4120.212

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.
@@ -1048,35 +1048,41 @@ const _c0$3 = ["modalheader"];
1048
1048
  const _c1$1 = ["modalForeground"];
1049
1049
  function MagicOverlayContainer_button_2_Template(rf, ctx) { if (rf & 1) {
1050
1050
  const _r2 = i0.ɵɵgetCurrentView();
1051
- i0.ɵɵelementStart(0, "button", 16);
1051
+ i0.ɵɵelementStart(0, "button", 14);
1052
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()); });
1053
1053
  i0.ɵɵtext(1, "X");
1054
1054
  i0.ɵɵelementEnd();
1055
1055
  } }
1056
1056
  function MagicOverlayContainer_span_5_Template(rf, ctx) { if (rf & 1) {
1057
1057
  const _r4 = i0.ɵɵgetCurrentView();
1058
- i0.ɵɵelementStart(0, "span", 17, 2);
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, "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")); });
1060
1060
  i0.ɵɵelementEnd();
1061
1061
  } }
1062
1062
  function MagicOverlayContainer_span_6_Template(rf, ctx) { if (rf & 1) {
1063
1063
  const _r5 = i0.ɵɵgetCurrentView();
1064
- i0.ɵɵelementStart(0, "span", 18, 3);
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, "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")); });
1066
1066
  i0.ɵɵelementEnd();
1067
1067
  } }
1068
1068
  function MagicOverlayContainer_span_7_Template(rf, ctx) { if (rf & 1) {
1069
1069
  const _r6 = i0.ɵɵgetCurrentView();
1070
- i0.ɵɵelementStart(0, "span", 19, 4);
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, "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")); });
1072
1072
  i0.ɵɵelementEnd();
1073
1073
  } }
1074
- function MagicOverlayContainer_div_8_Template(rf, ctx) { if (rf & 1) {
1074
+ function MagicOverlayContainer_span_8_Template(rf, ctx) { if (rf & 1) {
1075
1075
  const _r7 = i0.ɵɵgetCurrentView();
1076
- 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);
1077
1083
  i0.ɵɵtext(2);
1078
- i0.ɵɵelementStart(3, "button", 21);
1079
- 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()); });
1080
1086
  i0.ɵɵtext(4, "X");
1081
1087
  i0.ɵɵelementEnd()();
1082
1088
  } if (rf & 2) {
@@ -1123,6 +1129,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1123
1129
  isCenteredToWindow = true;
1124
1130
  static minAllowedWidth = 30;
1125
1131
  static minAllowedHeight = 30;
1132
+ _isRtl = false; // Indicates whether the text direction is right-to-left (RTL)
1126
1133
  /**
1127
1134
  *
1128
1135
  */
@@ -1138,6 +1145,13 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1138
1145
  let comp = this.componentRef.instance;
1139
1146
  this.isCenteredToWindow = comp.IsCenteredToWindow();
1140
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
+ }
1141
1155
  setViewContainerRef(vcRef) {
1142
1156
  this.modalbodyViewContainerRef = vcRef;
1143
1157
  }
@@ -1153,6 +1167,12 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1153
1167
  else
1154
1168
  return '';
1155
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
+ }
1156
1176
  /**
1157
1177
  * Returns CSS styles for the window
1158
1178
  * @returns
@@ -1241,14 +1261,23 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1241
1261
  this.resizing = true;
1242
1262
  this.resizeDirection = direction;
1243
1263
  const element = this.foregroundElementRef.nativeElement;
1264
+ const parentElement = element.parentNode;
1244
1265
  this.originalWidth = element.offsetWidth;
1245
1266
  this.originalHeight = element.offsetHeight;
1246
1267
  this.originalMouseX = event.clientX;
1247
1268
  this.originalMouseY = event.clientY;
1248
- // Removes auto margin and set left and top style
1269
+ // Removes auto margin and set left, right and top style
1249
1270
  if (this.isCenteredToWindow) {
1250
- element.style.left = element.offsetLeft + 'px';
1251
- 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`;
1252
1281
  element.style.margin = '';
1253
1282
  this.isCenteredToWindow = false;
1254
1283
  }
@@ -1269,7 +1298,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1269
1298
  const parentWidth = parentElement.offsetWidth;
1270
1299
  const parentHeight = parentElement.offsetHeight;
1271
1300
  const rect = element.getBoundingClientRect();
1272
- const left = rect.left;
1301
+ const left = this.isRtl ? (parentWidth - rect.right) : rect.left;
1273
1302
  const top = rect.top;
1274
1303
  // When the user extends the overlay window to its edge, it becomes hard to grab the border for resizing.
1275
1304
  // To improve this, 2px are subtracted from maxAllowedWidth and maxAllowedHeight, making it easier to grab the overlay's border for resizing.
@@ -1277,7 +1306,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1277
1306
  const maxAllowedHeight = parentHeight - top - 2;
1278
1307
  let dx = (event.clientX - this.originalMouseX);
1279
1308
  let dy = (event.clientY - this.originalMouseY);
1280
- if (this.resizeDirection === 'right' || this.resizeDirection === 'corner') {
1309
+ if (this.resizeDirection === 'right' || (this.resizeDirection === 'corner' && !this.isRtl)) {
1281
1310
  let newWidth = this.originalWidth + dx;
1282
1311
  if (newWidth > maxAllowedWidth)
1283
1312
  newWidth = maxAllowedWidth;
@@ -1285,6 +1314,17 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1285
1314
  newWidth = MagicOverlayContainer.minAllowedWidth;
1286
1315
  element.style.width = `${newWidth}px`;
1287
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
+ }
1288
1328
  if (this.resizeDirection === 'bottom' || this.resizeDirection === 'corner') {
1289
1329
  let newHeight = this.originalHeight + dy;
1290
1330
  if (newHeight > maxAllowedHeight)
@@ -1312,16 +1352,16 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1312
1352
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.foregroundElementRef = _t.first);
1313
1353
  } }, hostBindings: function MagicOverlayContainer_HostBindings(rf, ctx) { if (rf & 1) {
1314
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);
1315
- } }, 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) {
1316
1356
  const _r1 = i0.ɵɵgetCurrentView();
1317
- i0.ɵɵelementStart(0, "div", 6)(1, "div", 7);
1357
+ i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
1318
1358
  i0.ɵɵlistener("click", function MagicOverlayContainer_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.OnBackgroundClick()); });
1319
- i0.ɵɵtemplate(2, MagicOverlayContainer_button_2_Template, 2, 0, "button", 8);
1359
+ i0.ɵɵtemplate(2, MagicOverlayContainer_button_2_Template, 2, 0, "button", 5);
1320
1360
  i0.ɵɵelementEnd();
1321
- i0.ɵɵelementStart(3, "div", 9, 0);
1322
- 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);
1323
- i0.ɵɵelementStart(9, "div", 14);
1324
- 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);
1325
1365
  i0.ɵɵelementEnd()()();
1326
1366
  } if (rf & 2) {
1327
1367
  i0.ɵɵadvance(2);
@@ -1329,7 +1369,9 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1329
1369
  i0.ɵɵadvance();
1330
1370
  i0.ɵɵproperty("ngStyle", ctx.getStyle())("cdkDragDisabled", !ctx.IsMovable());
1331
1371
  i0.ɵɵadvance(2);
1332
- i0.ɵɵproperty("ngIf", ctx.IsResizable());
1372
+ i0.ɵɵproperty("ngIf", ctx.IsResizable() && !ctx.isRtl);
1373
+ i0.ɵɵadvance();
1374
+ i0.ɵɵproperty("ngIf", ctx.IsResizable() && ctx.isRtl);
1333
1375
  i0.ɵɵadvance();
1334
1376
  i0.ɵɵproperty("ngIf", ctx.IsResizable());
1335
1377
  i0.ɵɵadvance();
@@ -1338,7 +1380,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1338
1380
  i0.ɵɵproperty("ngIf", ctx.getShowTitleBar());
1339
1381
  i0.ɵɵadvance();
1340
1382
  i0.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
1341
- } }, 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%}"] });
1342
1384
  }
1343
1385
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainer, [{
1344
1386
  type: Component,
@@ -1351,9 +1393,10 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1351
1393
 
1352
1394
  <div #modalForeground class="modal-foreground" [ngStyle]="getStyle()" cdkDragBoundary=".boundary-line" cdkDrag [cdkDragDisabled]="!IsMovable()">
1353
1395
 
1354
- <span #dragHandleCorner *ngIf="IsResizable()" class="dragHandle corner" (mousedown)="onResizeStart($event, 'corner')"></span>
1355
- <span #dragHandleRight *ngIf="IsResizable()" class="dragHandle right" (mousedown)="onResizeStart($event, 'right')"></span>
1356
- <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>
1357
1400
 
1358
1401
  <div #modalheader class="modal-header" *ngIf="getShowTitleBar()" cdkDragHandle [class.movable]="IsMovable()">
1359
1402
  {{getText()}}
@@ -1366,7 +1409,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1366
1409
  </div>
1367
1410
  </div>
1368
1411
  </div>
1369
- `, 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"] }]
1370
1413
  }], () => [], { headerElementRef: [{
1371
1414
  type: ViewChild,
1372
1415
  args: ['modalheader', { static: false }]
@@ -1386,7 +1429,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1386
1429
  type: HostListener,
1387
1430
  args: ['window:mouseup']
1388
1431
  }] }); })();
1389
- (() => { (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 }); })();
1390
1433
 
1391
1434
  /**
1392
1435
  * Service managing overlay windows