@yuuvis/app-drive 2.0.4 → 2.0.5
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.
|
@@ -18,13 +18,13 @@ import { tap, Subject, filter, switchMap, of, forkJoin, map, catchError, finaliz
|
|
|
18
18
|
import { MAT_DIALOG_DATA, MatDialogRef, MatDialog, MatDialogContent, MatDialogActions, MatDialogTitle, MatDialogClose, MatDialogConfig } from '@angular/material/dialog';
|
|
19
19
|
import { signalState, patchState } from '@ngrx/signals';
|
|
20
20
|
import { marker } from '@colsen1991/ngx-translate-extract-marker';
|
|
21
|
-
import * as i2$1 from '@angular/material/form-field';
|
|
22
|
-
import { MatFormFieldModule, MatError } from '@angular/material/form-field';
|
|
23
21
|
import * as i3$1 from '@yuuvis/client-framework/common';
|
|
24
22
|
import { DialogComponent, YuvCommonModule, ClickDoubleDirective, DragScrollDirective, BusyOverlayDirective, FileDropZoneDirective, ContainerSizeDirective } from '@yuuvis/client-framework/common';
|
|
23
|
+
import { YmtButtonDirective, YmtIconButtonDirective } from '@yuuvis/material';
|
|
24
|
+
import * as i2$1 from '@angular/material/form-field';
|
|
25
|
+
import { MatFormFieldModule, MatError } from '@angular/material/form-field';
|
|
25
26
|
import { StringComponent, RangeSelectDateComponent, RangeSelectFilesizeComponent } from '@yuuvis/client-framework/forms';
|
|
26
27
|
import { MatProgressBar } from '@angular/material/progress-bar';
|
|
27
|
-
import { YmtButtonDirective, YmtIconButtonDirective } from '@yuuvis/material';
|
|
28
28
|
import { TranslateService as TranslateService$1, TranslateModule as TranslateModule$1 } from '@ngx-translate/core';
|
|
29
29
|
import { ShellService } from '@yuuvis/client-shell-core';
|
|
30
30
|
import { Overlay } from '@angular/cdk/overlay';
|
|
@@ -316,11 +316,11 @@ class ResolveNameConflictsComponent {
|
|
|
316
316
|
this.#setupContent();
|
|
317
317
|
}
|
|
318
318
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ResolveNameConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
319
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: ResolveNameConflictsComponent, isStandalone: true, selector: "ymd-resolve-name-conflicts", ngImport: i0, template: "<
|
|
319
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: ResolveNameConflictsComponent, isStandalone: true, selector: "ymd-resolve-name-conflicts", ngImport: i0, template: "<yuv-dialog [headertitel]=\"content.headline\">\n <main>\n <p>{{ content.message }}</p>\n\n <ul>\n @for (ef of existingFileNames; track $index) {\n <li>{{ ef }}</li>\n }\n </ul>\n\n @if (validItems.length) {\n <p>{{ content.messageValid }}</p>\n <ul>\n @for (f of validItems; track $index) {\n <li>{{ f.name }}</li>\n }\n </ul>\n }\n </main>\n <footer>\n @if (validItems.length) {\n <button ymtButton=\"primary\" (click)=\"proceed()\">{{ content.proceed }}</button>\n }\n <button ymtButton=\"secondary\" (click)=\"cancel()\">{{ 'yuv.app.drive.name.conflict.cancel' | translate }}</button>\n </footer>\n</yuv-dialog>\n", styles: ["@charset \"UTF-8\";:host main{padding:var(--ymt-spacing-m)}:host ul{font-weight:700;list-style:none;padding:0 1em}:host ul li{padding:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ul li:before{content:\"\\2022\";margin-inline-end:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "component", type: DialogComponent, selector: "yuv-dialog", inputs: ["headertitel"] }, { kind: "directive", type: YmtButtonDirective, selector: "button[ymtButton], a[ymtButton]", inputs: ["ymtButton", "disabled", "aria-disabled", "disableRipple", "disabledInteractive", "button-size"] }] }); }
|
|
320
320
|
}
|
|
321
321
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ResolveNameConflictsComponent, decorators: [{
|
|
322
322
|
type: Component,
|
|
323
|
-
args: [{ selector: 'ymd-resolve-name-conflicts', standalone: true, imports: [CommonModule, TranslateModule], template: "<
|
|
323
|
+
args: [{ selector: 'ymd-resolve-name-conflicts', standalone: true, imports: [CommonModule, TranslateModule, DialogComponent, YmtButtonDirective], template: "<yuv-dialog [headertitel]=\"content.headline\">\n <main>\n <p>{{ content.message }}</p>\n\n <ul>\n @for (ef of existingFileNames; track $index) {\n <li>{{ ef }}</li>\n }\n </ul>\n\n @if (validItems.length) {\n <p>{{ content.messageValid }}</p>\n <ul>\n @for (f of validItems; track $index) {\n <li>{{ f.name }}</li>\n }\n </ul>\n }\n </main>\n <footer>\n @if (validItems.length) {\n <button ymtButton=\"primary\" (click)=\"proceed()\">{{ content.proceed }}</button>\n }\n <button ymtButton=\"secondary\" (click)=\"cancel()\">{{ 'yuv.app.drive.name.conflict.cancel' | translate }}</button>\n </footer>\n</yuv-dialog>\n", styles: ["@charset \"UTF-8\";:host main{padding:var(--ymt-spacing-m)}:host ul{font-weight:700;list-style:none;padding:0 1em}:host ul li{padding:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ul li:before{content:\"\\2022\";margin-inline-end:.5rem}\n"] }]
|
|
324
324
|
}] });
|
|
325
325
|
|
|
326
326
|
const getResolvedObjectConfigItem = (propertyName, instanceData) => {
|
|
@@ -1222,9 +1222,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
|
|
|
1222
1222
|
}] } });
|
|
1223
1223
|
|
|
1224
1224
|
class SortComponent {
|
|
1225
|
+
#drive;
|
|
1226
|
+
#systemService;
|
|
1225
1227
|
constructor() {
|
|
1226
1228
|
this.#drive = inject(DriveService);
|
|
1227
1229
|
this.#systemService = inject(SystemService);
|
|
1230
|
+
this.translate = inject(TranslateService);
|
|
1228
1231
|
this.sortOptions = signal(this.#initSortOptions());
|
|
1229
1232
|
this.orderOptions = signal([
|
|
1230
1233
|
{ label: 'Ascending', value: 'asc', type: 'order' },
|
|
@@ -1236,9 +1239,11 @@ class SortComponent {
|
|
|
1236
1239
|
order: new FormControl('asc', { nonNullable: true })
|
|
1237
1240
|
});
|
|
1238
1241
|
this.sortChanged = output();
|
|
1242
|
+
// listen for language changes to update labels
|
|
1243
|
+
this.translate.onLangChange.pipe(takeUntilDestroyed()).subscribe(() => {
|
|
1244
|
+
this.sortOptions.set(this.#initSortOptions());
|
|
1245
|
+
});
|
|
1239
1246
|
}
|
|
1240
|
-
#drive;
|
|
1241
|
-
#systemService;
|
|
1242
1247
|
selectSortByIndex(idx) {
|
|
1243
1248
|
this.selectSort(this.sortFields()[idx].type, this.sortFields()[idx].value);
|
|
1244
1249
|
}
|
|
@@ -1306,7 +1311,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
|
|
|
1306
1311
|
}
|
|
1307
1312
|
</mat-menu>
|
|
1308
1313
|
`, changeDetection: ChangeDetectionStrategy.OnPush }]
|
|
1309
|
-
}] });
|
|
1314
|
+
}], ctorParameters: () => [] });
|
|
1310
1315
|
|
|
1311
1316
|
class BreadcrumbComponent {
|
|
1312
1317
|
constructor() {
|