osl-base-extended 3.6.0 → 3.7.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.
|
@@ -7306,11 +7306,11 @@ class UnsavedChangesDialog {
|
|
|
7306
7306
|
leave() { this.dialogRef.close('leave'); }
|
|
7307
7307
|
cancel() { this.dialogRef.close(null); }
|
|
7308
7308
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: UnsavedChangesDialog, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
7309
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: UnsavedChangesDialog, isStandalone: true, selector: "unsaved-changes-dialog", ngImport: i0, template: "<div class=\"ucd-wrap\">\n\n <!-- Amber gradient header zone + icon -->\n <div class=\"ucd-header\">\n <button mat-icon-button class=\"ucd-close\" (click)=\"cancel()\" aria-label=\"Close\">\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" width=\"18\" height=\"18\">\n <path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"/>\n </svg>\n </button>\n <div class=\"ucd-icon-ring\">\n <svg class=\"ucd-icon-svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"/>\n </svg>\n </div>\n </div>\n\n <!-- Content -->\n <mat-dialog-content class=\"ucd-body\">\n <h2 class=\"ucd-title\">Unsaved Changes</h2>\n <p class=\"ucd-subtitle\">You have unsaved changes that will be lost if you leave this page.</p>\n </mat-dialog-content>\n\n <!-- Actions \u2014 all buttons on one line -->\n <mat-dialog-actions class=\"ucd-actions\">\n <button mat-stroked-button class=\"ucd-btn ucd-stay\" (click)=\"cancel()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\"/>\n </svg>\n <span>Stay on Page</span>\n </button>\n <button mat-stroked-button class=\"ucd-btn ucd-leave\" (click)=\"leave()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z\"/>\n </svg>\n <span>Discard</span>\n </button>\n @if (data.hasSaveCallback) {\n <button mat-flat-button class=\"ucd-btn ucd-save\" (click)=\"save()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z\"/>\n </svg>\n <span>Save & Leave</span>\n </button>\n }\n </mat-dialog-actions>\n\n</div>\n", styles: ["@keyframes ucd-
|
|
7309
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: UnsavedChangesDialog, isStandalone: true, selector: "unsaved-changes-dialog", ngImport: i0, template: "<div class=\"ucd-wrap\">\n\n <!-- Amber gradient header zone + icon -->\n <div class=\"ucd-header\">\n <button mat-icon-button class=\"ucd-close\" (click)=\"cancel()\" aria-label=\"Close\">\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" width=\"18\" height=\"18\">\n <path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"/>\n </svg>\n </button>\n <div class=\"ucd-icon-ring\">\n <svg class=\"ucd-icon-svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"/>\n </svg>\n </div>\n </div>\n\n <!-- Content -->\n <mat-dialog-content class=\"ucd-body\">\n <h2 class=\"ucd-title\">Unsaved Changes</h2>\n <p class=\"ucd-subtitle\">You have unsaved changes that will be lost if you leave this page.</p>\n </mat-dialog-content>\n\n <!-- Actions \u2014 all buttons on one line -->\n <mat-dialog-actions class=\"ucd-actions\">\n <button mat-stroked-button class=\"ucd-btn ucd-stay\" (click)=\"cancel()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\"/>\n </svg>\n <span>Stay on Page</span>\n </button>\n <button mat-stroked-button class=\"ucd-btn ucd-leave\" (click)=\"leave()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z\"/>\n </svg>\n <span>Discard</span>\n </button>\n @if (data.hasSaveCallback) {\n <button mat-flat-button class=\"ucd-btn ucd-save\" (click)=\"save()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z\"/>\n </svg>\n <span>Save & Leave</span>\n </button>\n }\n </mat-dialog-actions>\n\n</div>\n", styles: ["@keyframes ucd-icon-bounce{0%{transform:scale(.55) rotate(-10deg);opacity:0}60%{transform:scale(1.12) rotate(4deg);opacity:1}80%{transform:scale(.93) rotate(-2deg)}to{transform:scale(1) rotate(0)}}@keyframes ucd-glow{0%,to{box-shadow:0 0 #f59e0b73,0 6px 20px #f59e0b1f}55%{box-shadow:0 0 0 14px #f59e0b00,0 6px 20px #f59e0b38}}.ucd-header{position:relative;background:linear-gradient(160deg,#fffbeb,#fef3c7 55%,#fde68a);padding:40px 20px 32px;display:flex;justify-content:center;align-items:center}.ucd-header:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(245,158,11,.4),transparent)}.ucd-close{position:absolute;top:10px;right:10px;width:30px!important;height:30px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#92400e;opacity:.5;transition:opacity .15s ease,transform .2s ease}.ucd-close ::ng-deep .mat-mdc-button-touch-target,.ucd-close ::ng-deep .mat-mdc-focus-indicator{display:none}.ucd-close svg{display:block;flex-shrink:0}.ucd-close:hover{opacity:1;transform:rotate(90deg)}.ucd-icon-ring{width:82px;height:82px;border-radius:50%;background:linear-gradient(145deg,#fef9e7,#fde68a);border:2px solid rgba(245,158,11,.55);display:flex;align-items:center;justify-content:center;animation:ucd-glow 2.6s ease-in-out infinite}.ucd-icon-svg{width:40px;height:40px;color:#d97706;display:block;animation:ucd-icon-bounce .55s cubic-bezier(.34,1.56,.64,1) .12s both}.ucd-body{text-align:center;padding:26px 36px 12px!important;max-height:unset!important;overflow:visible!important}.ucd-title{font-size:20px;font-weight:700;color:#111827;margin:0 0 8px;letter-spacing:-.25px;line-height:1.25}.ucd-subtitle{font-size:14px;color:#6b7280;margin:0;line-height:1.65}.ucd-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center!important;gap:10px;padding:18px 28px 28px!important;min-height:unset!important}.ucd-btn{height:40px!important;border-radius:10px!important;font-size:13.5px!important;font-weight:500!important;letter-spacing:.1px;padding:0 20px!important;white-space:nowrap;transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease!important}.ucd-btn ::ng-deep .mdc-button__label{display:flex;align-items:center;gap:7px;line-height:1}.ucd-btn:hover{transform:translateY(-2px)}.ucd-btn:active{transform:translateY(0) scale(.97)}.ucd-btn-icon{width:15px;height:15px;flex-shrink:0;display:block}.ucd-stay{border-color:#d1d5db!important;color:#374151!important}.ucd-stay:hover{border-color:#9ca3af!important;background:#f9fafb!important;box-shadow:0 3px 10px #00000012!important}.ucd-leave{border-color:#dc262666!important;color:#dc2626!important;background:#fef2f280!important}.ucd-leave:hover{border-color:#dc2626!important;background:#fef2f2!important;box-shadow:0 3px 12px #dc26262e!important}.ucd-save{background:linear-gradient(135deg,#2563eb,#4f46e5)!important;color:#fff!important;border:none!important;box-shadow:0 2px 10px #4f46e54d!important}.ucd-save .ucd-btn-icon{color:#fff}.ucd-save:hover{background:linear-gradient(135deg,#1d4ed8,#4338ca)!important;box-shadow:0 6px 20px #4f46e56b!important}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }] });
|
|
7310
7310
|
}
|
|
7311
7311
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: UnsavedChangesDialog, decorators: [{
|
|
7312
7312
|
type: Component,
|
|
7313
|
-
args: [{ selector: 'unsaved-changes-dialog', standalone: true, imports: [MatDialogModule, MatButtonModule], template: "<div class=\"ucd-wrap\">\n\n <!-- Amber gradient header zone + icon -->\n <div class=\"ucd-header\">\n <button mat-icon-button class=\"ucd-close\" (click)=\"cancel()\" aria-label=\"Close\">\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" width=\"18\" height=\"18\">\n <path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"/>\n </svg>\n </button>\n <div class=\"ucd-icon-ring\">\n <svg class=\"ucd-icon-svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"/>\n </svg>\n </div>\n </div>\n\n <!-- Content -->\n <mat-dialog-content class=\"ucd-body\">\n <h2 class=\"ucd-title\">Unsaved Changes</h2>\n <p class=\"ucd-subtitle\">You have unsaved changes that will be lost if you leave this page.</p>\n </mat-dialog-content>\n\n <!-- Actions \u2014 all buttons on one line -->\n <mat-dialog-actions class=\"ucd-actions\">\n <button mat-stroked-button class=\"ucd-btn ucd-stay\" (click)=\"cancel()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\"/>\n </svg>\n <span>Stay on Page</span>\n </button>\n <button mat-stroked-button class=\"ucd-btn ucd-leave\" (click)=\"leave()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z\"/>\n </svg>\n <span>Discard</span>\n </button>\n @if (data.hasSaveCallback) {\n <button mat-flat-button class=\"ucd-btn ucd-save\" (click)=\"save()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z\"/>\n </svg>\n <span>Save & Leave</span>\n </button>\n }\n </mat-dialog-actions>\n\n</div>\n", styles: ["@keyframes ucd-
|
|
7313
|
+
args: [{ selector: 'unsaved-changes-dialog', standalone: true, imports: [MatDialogModule, MatButtonModule], template: "<div class=\"ucd-wrap\">\n\n <!-- Amber gradient header zone + icon -->\n <div class=\"ucd-header\">\n <button mat-icon-button class=\"ucd-close\" (click)=\"cancel()\" aria-label=\"Close\">\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" width=\"18\" height=\"18\">\n <path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"/>\n </svg>\n </button>\n <div class=\"ucd-icon-ring\">\n <svg class=\"ucd-icon-svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"/>\n </svg>\n </div>\n </div>\n\n <!-- Content -->\n <mat-dialog-content class=\"ucd-body\">\n <h2 class=\"ucd-title\">Unsaved Changes</h2>\n <p class=\"ucd-subtitle\">You have unsaved changes that will be lost if you leave this page.</p>\n </mat-dialog-content>\n\n <!-- Actions \u2014 all buttons on one line -->\n <mat-dialog-actions class=\"ucd-actions\">\n <button mat-stroked-button class=\"ucd-btn ucd-stay\" (click)=\"cancel()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\"/>\n </svg>\n <span>Stay on Page</span>\n </button>\n <button mat-stroked-button class=\"ucd-btn ucd-leave\" (click)=\"leave()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z\"/>\n </svg>\n <span>Discard</span>\n </button>\n @if (data.hasSaveCallback) {\n <button mat-flat-button class=\"ucd-btn ucd-save\" (click)=\"save()\">\n <svg class=\"ucd-btn-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z\"/>\n </svg>\n <span>Save & Leave</span>\n </button>\n }\n </mat-dialog-actions>\n\n</div>\n", styles: ["@keyframes ucd-icon-bounce{0%{transform:scale(.55) rotate(-10deg);opacity:0}60%{transform:scale(1.12) rotate(4deg);opacity:1}80%{transform:scale(.93) rotate(-2deg)}to{transform:scale(1) rotate(0)}}@keyframes ucd-glow{0%,to{box-shadow:0 0 #f59e0b73,0 6px 20px #f59e0b1f}55%{box-shadow:0 0 0 14px #f59e0b00,0 6px 20px #f59e0b38}}.ucd-header{position:relative;background:linear-gradient(160deg,#fffbeb,#fef3c7 55%,#fde68a);padding:40px 20px 32px;display:flex;justify-content:center;align-items:center}.ucd-header:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(245,158,11,.4),transparent)}.ucd-close{position:absolute;top:10px;right:10px;width:30px!important;height:30px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#92400e;opacity:.5;transition:opacity .15s ease,transform .2s ease}.ucd-close ::ng-deep .mat-mdc-button-touch-target,.ucd-close ::ng-deep .mat-mdc-focus-indicator{display:none}.ucd-close svg{display:block;flex-shrink:0}.ucd-close:hover{opacity:1;transform:rotate(90deg)}.ucd-icon-ring{width:82px;height:82px;border-radius:50%;background:linear-gradient(145deg,#fef9e7,#fde68a);border:2px solid rgba(245,158,11,.55);display:flex;align-items:center;justify-content:center;animation:ucd-glow 2.6s ease-in-out infinite}.ucd-icon-svg{width:40px;height:40px;color:#d97706;display:block;animation:ucd-icon-bounce .55s cubic-bezier(.34,1.56,.64,1) .12s both}.ucd-body{text-align:center;padding:26px 36px 12px!important;max-height:unset!important;overflow:visible!important}.ucd-title{font-size:20px;font-weight:700;color:#111827;margin:0 0 8px;letter-spacing:-.25px;line-height:1.25}.ucd-subtitle{font-size:14px;color:#6b7280;margin:0;line-height:1.65}.ucd-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center!important;gap:10px;padding:18px 28px 28px!important;min-height:unset!important}.ucd-btn{height:40px!important;border-radius:10px!important;font-size:13.5px!important;font-weight:500!important;letter-spacing:.1px;padding:0 20px!important;white-space:nowrap;transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease!important}.ucd-btn ::ng-deep .mdc-button__label{display:flex;align-items:center;gap:7px;line-height:1}.ucd-btn:hover{transform:translateY(-2px)}.ucd-btn:active{transform:translateY(0) scale(.97)}.ucd-btn-icon{width:15px;height:15px;flex-shrink:0;display:block}.ucd-stay{border-color:#d1d5db!important;color:#374151!important}.ucd-stay:hover{border-color:#9ca3af!important;background:#f9fafb!important;box-shadow:0 3px 10px #00000012!important}.ucd-leave{border-color:#dc262666!important;color:#dc2626!important;background:#fef2f280!important}.ucd-leave:hover{border-color:#dc2626!important;background:#fef2f2!important;box-shadow:0 3px 12px #dc26262e!important}.ucd-save{background:linear-gradient(135deg,#2563eb,#4f46e5)!important;color:#fff!important;border:none!important;box-shadow:0 2px 10px #4f46e54d!important}.ucd-save .ucd-btn-icon{color:#fff}.ucd-save:hover{background:linear-gradient(135deg,#1d4ed8,#4338ca)!important;box-shadow:0 6px 20px #4f46e56b!important}\n"] }]
|
|
7314
7314
|
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
7315
7315
|
type: Inject,
|
|
7316
7316
|
args: [MAT_DIALOG_DATA]
|
|
@@ -7322,7 +7322,7 @@ const unsavedChangesGuard = () => {
|
|
|
7322
7322
|
if (!dirty.isDirty)
|
|
7323
7323
|
return true;
|
|
7324
7324
|
return dialog.open(UnsavedChangesDialog, {
|
|
7325
|
-
width: '400px',
|
|
7325
|
+
// width: '400px',
|
|
7326
7326
|
maxWidth: '90vw',
|
|
7327
7327
|
disableClose: true,
|
|
7328
7328
|
data: { hasSaveCallback: dirty.hasSaveCallback },
|