@masterteam/users-groups 0.0.46 → 0.0.47
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/assets/i18n/ar.json +571 -526
- package/assets/i18n/en.json +570 -525
- package/assets/users-groups.css +1 -1
- package/fesm2022/masterteam-users-groups.mjs +188 -28
- package/fesm2022/masterteam-users-groups.mjs.map +1 -1
- package/package.json +3 -3
- package/types/masterteam-users-groups.d.ts +32 -1
|
@@ -2050,7 +2050,7 @@ class ReplaceUserDialog {
|
|
|
2050
2050
|
this.blockingId.set(null);
|
|
2051
2051
|
}
|
|
2052
2052
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ReplaceUserDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2053
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: ReplaceUserDialog, isStandalone: true, selector: "mt-replace-user-dialog", inputs: { source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: true, transformFunction: null }, users: { classPropertyName: "users", publicName: "users", isSignal: true, isRequired: false, transformFunction: null }, successorUserId: { classPropertyName: "successorUserId", publicName: "successorUserId", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\n <div class=\"flex flex-col gap-5 p-4\" [class]=\"modal.contentClass\">\n <!-- Who is leaving -->\n <div class=\"flex flex-col gap-3\">\n <div class=\"flex min-w-0 items-center gap-3\">\n <mt-avatar\n [label]=\"sourceInitials()\"\n shape=\"circle\"\n size=\"large\"\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\n />\n <div class=\"min-w-0\">\n <div class=\"text-xs text-muted-color\">\n {{ t(\"dialog.replacing\") }}\n </div>\n <div class=\"truncate text-base font-semibold\">{{ sourceName() }}</div>\n </div>\n </div>\n <p class=\"text-sm text-muted-color\">\n {{ t(\"dialog.intro\", { name: sourceName() }) }}\n </p>\n </div>\n\n <mt-dynamic-form\n [formConfig]=\"successorConfig()\"\n [formControl]=\"successorForm\"\n />\n\n <mt-dynamic-form [formConfig]=\"reasonConfig()\" [formControl]=\"reasonForm\" />\n\n <!-- The backend's general explanation, the same for every person: this\n is what the admin confirms. Nothing is looked up for this person. -->\n <section\n class=\"flex flex-col gap-2 rounded-md border border-surface bg-surface-50 p-4 text-sm dark:bg-surface-900\"\n >\n <div class=\"flex items-center gap-2 font-semibold\">\n <mt-icon icon=\"general.info-circle\" class=\"text-muted-color\" />\n {{ t(\"dialog.what-happens\") }}\n </div>\n <ul class=\"flex flex-col gap-2\">\n <li class=\"flex items-start gap-2\">\n <mt-icon\n icon=\"user.user-right-01\"\n class=\"mt-0.5 shrink-0 text-primary\"\n />\n <span>{{ t(\"dialog.explain-moves\") }}</span>\n </li>\n <li class=\"flex items-start gap-2\">\n <mt-icon\n icon=\"time.clock-rewind\"\n class=\"mt-0.5 shrink-0 text-muted-color\"\n />\n <span>{{ t(\"dialog.explain-history\") }}</span>\n </li>\n <li class=\"flex items-start gap-2\">\n <mt-icon\n icon=\"alert.alert-triangle\"\n class=\"mt-0.5 shrink-0 text-muted-color\"\n />\n <span>{{ t(\"dialog.explain-manual\") }}</span>\n </li>\n <li class=\"flex items-start gap-2\">\n <mt-icon\n icon=\"user.user-check-01\"\n class=\"mt-0.5 shrink-0 text-muted-color\"\n />\n <span>{{ t(\"dialog.explain-account\") }}</span>\n </li>\n </ul>\n </section>\n\n @if (createError()) {\n <div\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n >\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\n <div class=\"flex flex-col items-start gap-2\">\n <span>{{ createError() }}</span>\n @if (blockingId()) {\n <mt-button\n [label]=\"t('dialog.open-blocking')\"\n icon=\"general.link-external-01\"\n variant=\"outlined\"\n severity=\"danger\"\n size=\"small\"\n (click)=\"openBlocking()\"\n />\n }\n </div>\n </div>\n }\n </div>\n\n <div [class]=\"modal.footerClass\">\n <mt-button\n [label]=\"t('cancel')\"\n variant=\"outlined\"\n [disabled]=\"creating()\"\n (click)=\"close()\"\n />\n <mt-button\n [label]=\"t('dialog.submit')\"\n icon=\"user.user-right-01\"\n [loading]=\"creating()\"\n [disabled]=\"!canSubmit()\"\n (click)=\"submit()\"\n />\n </div>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: DynamicForm, selector: "mt-dynamic-form", inputs: ["formConfig", "forcedHiddenFieldKeys", "forcedDisabledFieldKeys", "preserveForcedHiddenValues", "visibleSectionKeys", "externalValues", "serverFieldErrors"], outputs: ["runtimeMessagesChange"] }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }] });
|
|
2053
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: ReplaceUserDialog, isStandalone: true, selector: "mt-replace-user-dialog", inputs: { source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: true, transformFunction: null }, users: { classPropertyName: "users", publicName: "users", isSignal: true, isRequired: false, transformFunction: null }, successorUserId: { classPropertyName: "successorUserId", publicName: "successorUserId", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\r\n <div class=\"flex flex-col gap-5 p-4\" [class]=\"modal.contentClass\">\r\n <!-- Who is leaving -->\r\n <div class=\"flex flex-col gap-3\">\r\n <div class=\"flex min-w-0 items-center gap-3\">\r\n <mt-avatar\r\n [label]=\"sourceInitials()\"\r\n shape=\"circle\"\r\n size=\"large\"\r\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\r\n />\r\n <div class=\"min-w-0\">\r\n <div class=\"text-xs text-muted-color\">\r\n {{ t(\"dialog.replacing\") }}\r\n </div>\r\n <div class=\"truncate text-base font-semibold\">{{ sourceName() }}</div>\r\n </div>\r\n </div>\r\n <p class=\"text-sm text-muted-color\">\r\n {{ t(\"dialog.intro\", { name: sourceName() }) }}\r\n </p>\r\n </div>\r\n\r\n <mt-dynamic-form\r\n [formConfig]=\"successorConfig()\"\r\n [formControl]=\"successorForm\"\r\n />\r\n\r\n <mt-dynamic-form [formConfig]=\"reasonConfig()\" [formControl]=\"reasonForm\" />\r\n\r\n <!-- The backend's general explanation, the same for every person: this\r\n is what the admin confirms. Nothing is looked up for this person. -->\r\n <section\r\n class=\"flex flex-col gap-2 rounded-md border border-surface bg-surface-50 p-4 text-sm dark:bg-surface-900\"\r\n >\r\n <div class=\"flex items-center gap-2 font-semibold\">\r\n <mt-icon icon=\"general.info-circle\" class=\"text-muted-color\" />\r\n {{ t(\"dialog.what-happens\") }}\r\n </div>\r\n <ul class=\"flex flex-col gap-2\">\r\n <li class=\"flex items-start gap-2\">\r\n <mt-icon\r\n icon=\"user.user-right-01\"\r\n class=\"mt-0.5 shrink-0 text-primary\"\r\n />\r\n <span>{{ t(\"dialog.explain-moves\") }}</span>\r\n </li>\r\n <li class=\"flex items-start gap-2\">\r\n <mt-icon\r\n icon=\"time.clock-rewind\"\r\n class=\"mt-0.5 shrink-0 text-muted-color\"\r\n />\r\n <span>{{ t(\"dialog.explain-history\") }}</span>\r\n </li>\r\n <li class=\"flex items-start gap-2\">\r\n <mt-icon\r\n icon=\"alert.alert-triangle\"\r\n class=\"mt-0.5 shrink-0 text-muted-color\"\r\n />\r\n <span>{{ t(\"dialog.explain-manual\") }}</span>\r\n </li>\r\n <li class=\"flex items-start gap-2\">\r\n <mt-icon\r\n icon=\"user.user-check-01\"\r\n class=\"mt-0.5 shrink-0 text-muted-color\"\r\n />\r\n <span>{{ t(\"dialog.explain-account\") }}</span>\r\n </li>\r\n </ul>\r\n </section>\r\n\r\n @if (createError()) {\r\n <div\r\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n >\r\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\r\n <div class=\"flex flex-col items-start gap-2\">\r\n <span>{{ createError() }}</span>\r\n @if (blockingId()) {\r\n <mt-button\r\n [label]=\"t('dialog.open-blocking')\"\r\n icon=\"general.link-external-01\"\r\n variant=\"outlined\"\r\n severity=\"danger\"\r\n size=\"small\"\r\n (click)=\"openBlocking()\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n\r\n <div [class]=\"modal.footerClass\">\r\n <mt-button\r\n [label]=\"t('cancel')\"\r\n variant=\"outlined\"\r\n [disabled]=\"creating()\"\r\n (click)=\"close()\"\r\n />\r\n <mt-button\r\n [label]=\"t('dialog.submit')\"\r\n icon=\"user.user-right-01\"\r\n [loading]=\"creating()\"\r\n [disabled]=\"!canSubmit()\"\r\n (click)=\"submit()\"\r\n />\r\n </div>\r\n</ng-container>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: DynamicForm, selector: "mt-dynamic-form", inputs: ["formConfig", "forcedHiddenFieldKeys", "forcedDisabledFieldKeys", "preserveForcedHiddenValues", "visibleSectionKeys", "externalValues", "serverFieldErrors"], outputs: ["runtimeMessagesChange"] }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }] });
|
|
2054
2054
|
}
|
|
2055
2055
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ReplaceUserDialog, decorators: [{
|
|
2056
2056
|
type: Component,
|
|
@@ -2061,7 +2061,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
2061
2061
|
Button,
|
|
2062
2062
|
Icon,
|
|
2063
2063
|
TranslocoDirective,
|
|
2064
|
-
], template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\n <div class=\"flex flex-col gap-5 p-4\" [class]=\"modal.contentClass\">\n <!-- Who is leaving -->\n <div class=\"flex flex-col gap-3\">\n <div class=\"flex min-w-0 items-center gap-3\">\n <mt-avatar\n [label]=\"sourceInitials()\"\n shape=\"circle\"\n size=\"large\"\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\n />\n <div class=\"min-w-0\">\n <div class=\"text-xs text-muted-color\">\n {{ t(\"dialog.replacing\") }}\n </div>\n <div class=\"truncate text-base font-semibold\">{{ sourceName() }}</div>\n </div>\n </div>\n <p class=\"text-sm text-muted-color\">\n {{ t(\"dialog.intro\", { name: sourceName() }) }}\n </p>\n </div>\n\n <mt-dynamic-form\n [formConfig]=\"successorConfig()\"\n [formControl]=\"successorForm\"\n />\n\n <mt-dynamic-form [formConfig]=\"reasonConfig()\" [formControl]=\"reasonForm\" />\n\n <!-- The backend's general explanation, the same for every person: this\n is what the admin confirms. Nothing is looked up for this person. -->\n <section\n class=\"flex flex-col gap-2 rounded-md border border-surface bg-surface-50 p-4 text-sm dark:bg-surface-900\"\n >\n <div class=\"flex items-center gap-2 font-semibold\">\n <mt-icon icon=\"general.info-circle\" class=\"text-muted-color\" />\n {{ t(\"dialog.what-happens\") }}\n </div>\n <ul class=\"flex flex-col gap-2\">\n <li class=\"flex items-start gap-2\">\n <mt-icon\n icon=\"user.user-right-01\"\n class=\"mt-0.5 shrink-0 text-primary\"\n />\n <span>{{ t(\"dialog.explain-moves\") }}</span>\n </li>\n <li class=\"flex items-start gap-2\">\n <mt-icon\n icon=\"time.clock-rewind\"\n class=\"mt-0.5 shrink-0 text-muted-color\"\n />\n <span>{{ t(\"dialog.explain-history\") }}</span>\n </li>\n <li class=\"flex items-start gap-2\">\n <mt-icon\n icon=\"alert.alert-triangle\"\n class=\"mt-0.5 shrink-0 text-muted-color\"\n />\n <span>{{ t(\"dialog.explain-manual\") }}</span>\n </li>\n <li class=\"flex items-start gap-2\">\n <mt-icon\n icon=\"user.user-check-01\"\n class=\"mt-0.5 shrink-0 text-muted-color\"\n />\n <span>{{ t(\"dialog.explain-account\") }}</span>\n </li>\n </ul>\n </section>\n\n @if (createError()) {\n <div\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n >\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\n <div class=\"flex flex-col items-start gap-2\">\n <span>{{ createError() }}</span>\n @if (blockingId()) {\n <mt-button\n [label]=\"t('dialog.open-blocking')\"\n icon=\"general.link-external-01\"\n variant=\"outlined\"\n severity=\"danger\"\n size=\"small\"\n (click)=\"openBlocking()\"\n />\n }\n </div>\n </div>\n }\n </div>\n\n <div [class]=\"modal.footerClass\">\n <mt-button\n [label]=\"t('cancel')\"\n variant=\"outlined\"\n [disabled]=\"creating()\"\n (click)=\"close()\"\n />\n <mt-button\n [label]=\"t('dialog.submit')\"\n icon=\"user.user-right-01\"\n [loading]=\"creating()\"\n [disabled]=\"!canSubmit()\"\n (click)=\"submit()\"\n />\n </div>\n</ng-container>\n" }]
|
|
2064
|
+
], template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\r\n <div class=\"flex flex-col gap-5 p-4\" [class]=\"modal.contentClass\">\r\n <!-- Who is leaving -->\r\n <div class=\"flex flex-col gap-3\">\r\n <div class=\"flex min-w-0 items-center gap-3\">\r\n <mt-avatar\r\n [label]=\"sourceInitials()\"\r\n shape=\"circle\"\r\n size=\"large\"\r\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\r\n />\r\n <div class=\"min-w-0\">\r\n <div class=\"text-xs text-muted-color\">\r\n {{ t(\"dialog.replacing\") }}\r\n </div>\r\n <div class=\"truncate text-base font-semibold\">{{ sourceName() }}</div>\r\n </div>\r\n </div>\r\n <p class=\"text-sm text-muted-color\">\r\n {{ t(\"dialog.intro\", { name: sourceName() }) }}\r\n </p>\r\n </div>\r\n\r\n <mt-dynamic-form\r\n [formConfig]=\"successorConfig()\"\r\n [formControl]=\"successorForm\"\r\n />\r\n\r\n <mt-dynamic-form [formConfig]=\"reasonConfig()\" [formControl]=\"reasonForm\" />\r\n\r\n <!-- The backend's general explanation, the same for every person: this\r\n is what the admin confirms. Nothing is looked up for this person. -->\r\n <section\r\n class=\"flex flex-col gap-2 rounded-md border border-surface bg-surface-50 p-4 text-sm dark:bg-surface-900\"\r\n >\r\n <div class=\"flex items-center gap-2 font-semibold\">\r\n <mt-icon icon=\"general.info-circle\" class=\"text-muted-color\" />\r\n {{ t(\"dialog.what-happens\") }}\r\n </div>\r\n <ul class=\"flex flex-col gap-2\">\r\n <li class=\"flex items-start gap-2\">\r\n <mt-icon\r\n icon=\"user.user-right-01\"\r\n class=\"mt-0.5 shrink-0 text-primary\"\r\n />\r\n <span>{{ t(\"dialog.explain-moves\") }}</span>\r\n </li>\r\n <li class=\"flex items-start gap-2\">\r\n <mt-icon\r\n icon=\"time.clock-rewind\"\r\n class=\"mt-0.5 shrink-0 text-muted-color\"\r\n />\r\n <span>{{ t(\"dialog.explain-history\") }}</span>\r\n </li>\r\n <li class=\"flex items-start gap-2\">\r\n <mt-icon\r\n icon=\"alert.alert-triangle\"\r\n class=\"mt-0.5 shrink-0 text-muted-color\"\r\n />\r\n <span>{{ t(\"dialog.explain-manual\") }}</span>\r\n </li>\r\n <li class=\"flex items-start gap-2\">\r\n <mt-icon\r\n icon=\"user.user-check-01\"\r\n class=\"mt-0.5 shrink-0 text-muted-color\"\r\n />\r\n <span>{{ t(\"dialog.explain-account\") }}</span>\r\n </li>\r\n </ul>\r\n </section>\r\n\r\n @if (createError()) {\r\n <div\r\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n >\r\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\r\n <div class=\"flex flex-col items-start gap-2\">\r\n <span>{{ createError() }}</span>\r\n @if (blockingId()) {\r\n <mt-button\r\n [label]=\"t('dialog.open-blocking')\"\r\n icon=\"general.link-external-01\"\r\n variant=\"outlined\"\r\n severity=\"danger\"\r\n size=\"small\"\r\n (click)=\"openBlocking()\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n\r\n <div [class]=\"modal.footerClass\">\r\n <mt-button\r\n [label]=\"t('cancel')\"\r\n variant=\"outlined\"\r\n [disabled]=\"creating()\"\r\n (click)=\"close()\"\r\n />\r\n <mt-button\r\n [label]=\"t('dialog.submit')\"\r\n icon=\"user.user-right-01\"\r\n [loading]=\"creating()\"\r\n [disabled]=\"!canSubmit()\"\r\n (click)=\"submit()\"\r\n />\r\n </div>\r\n</ng-container>\r\n" }]
|
|
2065
2065
|
}], propDecorators: { source: [{ type: i0.Input, args: [{ isSignal: true, alias: "source", required: true }] }], users: [{ type: i0.Input, args: [{ isSignal: true, alias: "users", required: false }] }], successorUserId: [{ type: i0.Input, args: [{ isSignal: true, alias: "successorUserId", required: false }] }] } });
|
|
2066
2066
|
|
|
2067
2067
|
const COUNT_ICONS = {
|
|
@@ -2105,11 +2105,11 @@ class RemainingWorkDialog {
|
|
|
2105
2105
|
this.close({ action: 'open-replacement', operationId });
|
|
2106
2106
|
}
|
|
2107
2107
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: RemainingWorkDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2108
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: RemainingWorkDialog, isStandalone: true, selector: "mt-remaining-work-dialog", inputs: { user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null }, work: { classPropertyName: "work", publicName: "work", isSignal: true, isRequired: true, transformFunction: null }, canReplace: { classPropertyName: "canReplace", publicName: "canReplace", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\n <div class=\"flex flex-col gap-4 p-4\" [class]=\"modal.contentClass\">\n @if (work().handoverInProgress) {\n <div class=\"flex items-start gap-3\">\n <span\n class=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-amber-50 text-lg text-amber-700 dark:bg-amber-950 dark:text-amber-200\"\n >\n <mt-icon icon=\"time.hourglass-03\" />\n </span>\n <div class=\"flex min-w-0 flex-col gap-1\">\n <div class=\"font-semibold\">\n {{ t(\"remaining.in-progress-title\", { name: userName() }) }}\n </div>\n <div class=\"text-sm text-muted-color\">\n {{ t(\"remaining.in-progress\") }}\n </div>\n </div>\n </div>\n } @else {\n <div class=\"flex items-start gap-3\">\n <span\n class=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-amber-50 text-lg text-amber-700 dark:bg-amber-950 dark:text-amber-200\"\n >\n <mt-icon icon=\"alert.alert-triangle\" />\n </span>\n <div class=\"flex min-w-0 flex-col gap-1\">\n <div class=\"font-semibold\">\n {{ t(\"remaining.title\", { name: userName() }) }}\n </div>\n <div class=\"text-sm text-muted-color\">{{ t(\"remaining.body\") }}</div>\n </div>\n </div>\n\n <ul\n class=\"flex flex-col divide-y divide-surface-200 rounded-md border border-surface dark:divide-surface-700\"\n >\n @for (row of counts(); track row.key) {\n <li class=\"flex items-center gap-3 px-3 py-2.5 text-sm\">\n <mt-icon [icon]=\"row.icon\" class=\"text-muted-color\" />\n <span class=\"flex-1\">{{ t(\"remaining.\" + row.key) }}</span>\n <span class=\"font-semibold tabular-nums\">{{ row.count }}</span>\n </li>\n }\n </ul>\n <p class=\"text-xs text-muted-color\">\n {{ t(\"remaining.whole-application\") }}\n </p>\n }\n </div>\n\n <div [class]=\"modal.footerClass\">\n <mt-button [label]=\"t('cancel')\" variant=\"outlined\" (click)=\"close(null)\" />\n @if (work().handoverInProgress) {\n @if (work().operationId) {\n <mt-button\n [label]=\"t('remaining.open-replacement')\"\n icon=\"general.link-external-01\"\n (click)=\"openReplacement()\"\n />\n }\n } @else {\n <mt-button\n [label]=\"t('remaining.remove-anyway')\"\n severity=\"danger\"\n variant=\"outlined\"\n (click)=\"close({ action: 'remove' })\"\n />\n @if (canReplace()) {\n <mt-button\n [label]=\"t('replace-by')\"\n icon=\"user.user-right-01\"\n (click)=\"close({ action: 'replace' })\"\n />\n }\n }\n </div>\n</ng-container>\n", dependencies: [{ kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }] });
|
|
2108
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: RemainingWorkDialog, isStandalone: true, selector: "mt-remaining-work-dialog", inputs: { user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null }, work: { classPropertyName: "work", publicName: "work", isSignal: true, isRequired: true, transformFunction: null }, canReplace: { classPropertyName: "canReplace", publicName: "canReplace", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\r\n <div class=\"flex flex-col gap-4 p-4\" [class]=\"modal.contentClass\">\r\n @if (work().handoverInProgress) {\r\n <div class=\"flex items-start gap-3\">\r\n <span\r\n class=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-amber-50 text-lg text-amber-700 dark:bg-amber-950 dark:text-amber-200\"\r\n >\r\n <mt-icon icon=\"time.hourglass-03\" />\r\n </span>\r\n <div class=\"flex min-w-0 flex-col gap-1\">\r\n <div class=\"font-semibold\">\r\n {{ t(\"remaining.in-progress-title\", { name: userName() }) }}\r\n </div>\r\n <div class=\"text-sm text-muted-color\">\r\n {{ t(\"remaining.in-progress\") }}\r\n </div>\r\n </div>\r\n </div>\r\n } @else {\r\n <div class=\"flex items-start gap-3\">\r\n <span\r\n class=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-amber-50 text-lg text-amber-700 dark:bg-amber-950 dark:text-amber-200\"\r\n >\r\n <mt-icon icon=\"alert.alert-triangle\" />\r\n </span>\r\n <div class=\"flex min-w-0 flex-col gap-1\">\r\n <div class=\"font-semibold\">\r\n {{ t(\"remaining.title\", { name: userName() }) }}\r\n </div>\r\n <div class=\"text-sm text-muted-color\">{{ t(\"remaining.body\") }}</div>\r\n </div>\r\n </div>\r\n\r\n <ul\r\n class=\"flex flex-col divide-y divide-surface-200 rounded-md border border-surface dark:divide-surface-700\"\r\n >\r\n @for (row of counts(); track row.key) {\r\n <li class=\"flex items-center gap-3 px-3 py-2.5 text-sm\">\r\n <mt-icon [icon]=\"row.icon\" class=\"text-muted-color\" />\r\n <span class=\"flex-1\">{{ t(\"remaining.\" + row.key) }}</span>\r\n <span class=\"font-semibold tabular-nums\">{{ row.count }}</span>\r\n </li>\r\n }\r\n </ul>\r\n <p class=\"text-xs text-muted-color\">\r\n {{ t(\"remaining.whole-application\") }}\r\n </p>\r\n }\r\n </div>\r\n\r\n <div [class]=\"modal.footerClass\">\r\n <mt-button [label]=\"t('cancel')\" variant=\"outlined\" (click)=\"close(null)\" />\r\n @if (work().handoverInProgress) {\r\n @if (work().operationId) {\r\n <mt-button\r\n [label]=\"t('remaining.open-replacement')\"\r\n icon=\"general.link-external-01\"\r\n (click)=\"openReplacement()\"\r\n />\r\n }\r\n } @else {\r\n <mt-button\r\n [label]=\"t('remaining.remove-anyway')\"\r\n severity=\"danger\"\r\n variant=\"outlined\"\r\n (click)=\"close({ action: 'remove' })\"\r\n />\r\n @if (canReplace()) {\r\n <mt-button\r\n [label]=\"t('replace-by')\"\r\n icon=\"user.user-right-01\"\r\n (click)=\"close({ action: 'replace' })\"\r\n />\r\n }\r\n }\r\n </div>\r\n</ng-container>\r\n", dependencies: [{ kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }] });
|
|
2109
2109
|
}
|
|
2110
2110
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: RemainingWorkDialog, decorators: [{
|
|
2111
2111
|
type: Component,
|
|
2112
|
-
args: [{ selector: 'mt-remaining-work-dialog', host: { style: 'display: contents' }, imports: [Button, Icon, TranslocoDirective], template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\n <div class=\"flex flex-col gap-4 p-4\" [class]=\"modal.contentClass\">\n @if (work().handoverInProgress) {\n <div class=\"flex items-start gap-3\">\n <span\n class=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-amber-50 text-lg text-amber-700 dark:bg-amber-950 dark:text-amber-200\"\n >\n <mt-icon icon=\"time.hourglass-03\" />\n </span>\n <div class=\"flex min-w-0 flex-col gap-1\">\n <div class=\"font-semibold\">\n {{ t(\"remaining.in-progress-title\", { name: userName() }) }}\n </div>\n <div class=\"text-sm text-muted-color\">\n {{ t(\"remaining.in-progress\") }}\n </div>\n </div>\n </div>\n } @else {\n <div class=\"flex items-start gap-3\">\n <span\n class=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-amber-50 text-lg text-amber-700 dark:bg-amber-950 dark:text-amber-200\"\n >\n <mt-icon icon=\"alert.alert-triangle\" />\n </span>\n <div class=\"flex min-w-0 flex-col gap-1\">\n <div class=\"font-semibold\">\n {{ t(\"remaining.title\", { name: userName() }) }}\n </div>\n <div class=\"text-sm text-muted-color\">{{ t(\"remaining.body\") }}</div>\n </div>\n </div>\n\n <ul\n class=\"flex flex-col divide-y divide-surface-200 rounded-md border border-surface dark:divide-surface-700\"\n >\n @for (row of counts(); track row.key) {\n <li class=\"flex items-center gap-3 px-3 py-2.5 text-sm\">\n <mt-icon [icon]=\"row.icon\" class=\"text-muted-color\" />\n <span class=\"flex-1\">{{ t(\"remaining.\" + row.key) }}</span>\n <span class=\"font-semibold tabular-nums\">{{ row.count }}</span>\n </li>\n }\n </ul>\n <p class=\"text-xs text-muted-color\">\n {{ t(\"remaining.whole-application\") }}\n </p>\n }\n </div>\n\n <div [class]=\"modal.footerClass\">\n <mt-button [label]=\"t('cancel')\" variant=\"outlined\" (click)=\"close(null)\" />\n @if (work().handoverInProgress) {\n @if (work().operationId) {\n <mt-button\n [label]=\"t('remaining.open-replacement')\"\n icon=\"general.link-external-01\"\n (click)=\"openReplacement()\"\n />\n }\n } @else {\n <mt-button\n [label]=\"t('remaining.remove-anyway')\"\n severity=\"danger\"\n variant=\"outlined\"\n (click)=\"close({ action: 'remove' })\"\n />\n @if (canReplace()) {\n <mt-button\n [label]=\"t('replace-by')\"\n icon=\"user.user-right-01\"\n (click)=\"close({ action: 'replace' })\"\n />\n }\n }\n </div>\n</ng-container>\n" }]
|
|
2112
|
+
args: [{ selector: 'mt-remaining-work-dialog', host: { style: 'display: contents' }, imports: [Button, Icon, TranslocoDirective], template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\r\n <div class=\"flex flex-col gap-4 p-4\" [class]=\"modal.contentClass\">\r\n @if (work().handoverInProgress) {\r\n <div class=\"flex items-start gap-3\">\r\n <span\r\n class=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-amber-50 text-lg text-amber-700 dark:bg-amber-950 dark:text-amber-200\"\r\n >\r\n <mt-icon icon=\"time.hourglass-03\" />\r\n </span>\r\n <div class=\"flex min-w-0 flex-col gap-1\">\r\n <div class=\"font-semibold\">\r\n {{ t(\"remaining.in-progress-title\", { name: userName() }) }}\r\n </div>\r\n <div class=\"text-sm text-muted-color\">\r\n {{ t(\"remaining.in-progress\") }}\r\n </div>\r\n </div>\r\n </div>\r\n } @else {\r\n <div class=\"flex items-start gap-3\">\r\n <span\r\n class=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-amber-50 text-lg text-amber-700 dark:bg-amber-950 dark:text-amber-200\"\r\n >\r\n <mt-icon icon=\"alert.alert-triangle\" />\r\n </span>\r\n <div class=\"flex min-w-0 flex-col gap-1\">\r\n <div class=\"font-semibold\">\r\n {{ t(\"remaining.title\", { name: userName() }) }}\r\n </div>\r\n <div class=\"text-sm text-muted-color\">{{ t(\"remaining.body\") }}</div>\r\n </div>\r\n </div>\r\n\r\n <ul\r\n class=\"flex flex-col divide-y divide-surface-200 rounded-md border border-surface dark:divide-surface-700\"\r\n >\r\n @for (row of counts(); track row.key) {\r\n <li class=\"flex items-center gap-3 px-3 py-2.5 text-sm\">\r\n <mt-icon [icon]=\"row.icon\" class=\"text-muted-color\" />\r\n <span class=\"flex-1\">{{ t(\"remaining.\" + row.key) }}</span>\r\n <span class=\"font-semibold tabular-nums\">{{ row.count }}</span>\r\n </li>\r\n }\r\n </ul>\r\n <p class=\"text-xs text-muted-color\">\r\n {{ t(\"remaining.whole-application\") }}\r\n </p>\r\n }\r\n </div>\r\n\r\n <div [class]=\"modal.footerClass\">\r\n <mt-button [label]=\"t('cancel')\" variant=\"outlined\" (click)=\"close(null)\" />\r\n @if (work().handoverInProgress) {\r\n @if (work().operationId) {\r\n <mt-button\r\n [label]=\"t('remaining.open-replacement')\"\r\n icon=\"general.link-external-01\"\r\n (click)=\"openReplacement()\"\r\n />\r\n }\r\n } @else {\r\n <mt-button\r\n [label]=\"t('remaining.remove-anyway')\"\r\n severity=\"danger\"\r\n variant=\"outlined\"\r\n (click)=\"close({ action: 'remove' })\"\r\n />\r\n @if (canReplace()) {\r\n <mt-button\r\n [label]=\"t('replace-by')\"\r\n icon=\"user.user-right-01\"\r\n (click)=\"close({ action: 'replace' })\"\r\n />\r\n }\r\n }\r\n </div>\r\n</ng-container>\r\n" }]
|
|
2113
2113
|
}], propDecorators: { user: [{ type: i0.Input, args: [{ isSignal: true, alias: "user", required: true }] }], work: [{ type: i0.Input, args: [{ isSignal: true, alias: "work", required: true }] }], canReplace: [{ type: i0.Input, args: [{ isSignal: true, alias: "canReplace", required: false }] }] } });
|
|
2114
2114
|
|
|
2115
2115
|
class Users {
|
|
@@ -2608,7 +2608,7 @@ class Users {
|
|
|
2608
2608
|
});
|
|
2609
2609
|
}
|
|
2610
2610
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: Users, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2611
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: Users, isStandalone: true, selector: "mt-users", viewQueries: [{ propertyName: "typeCol", first: true, predicate: ["typeCol"], descendants: true, isSignal: true }, { propertyName: "applicationLinkCol", first: true, predicate: ["applicationLinkCol"], descendants: true, isSignal: true }, { propertyName: "emailCol", first: true, predicate: ["emailCol"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups'\">\r\n <!-- mt-table wraps row actions; a locked row has five, so keep them on one line. -->\r\n <div class=\"mt-5 [&_.mt-actions-column>div]:flex-nowrap\">\r\n <ng-template #typeCol let-row>\r\n @if (row.isExternal) {\r\n <span\r\n class=\"inline-flex items-center gap-1 rounded-md bg-slate-50 dark:bg-slate-900/30 p-2\"\r\n >\r\n <mt-icon\r\n icon=\"general.link-external-02\"\r\n class=\"text-slate-600 dark:text-slate-300 text-sm\"\r\n />\r\n <span class=\"text-slate-700 dark:text-slate-200 text-xs font-medium\">\r\n {{ t(\"external\") }}\r\n </span>\r\n </span>\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center gap-1 rounded-md bg-emerald-50 dark:bg-emerald-900/30 p-2\"\r\n >\r\n <mt-icon\r\n icon=\"user.users-01\"\r\n class=\"text-emerald-600 dark:text-emerald-300 text-sm\"\r\n />\r\n <span\r\n class=\"text-emerald-700 dark:text-emerald-200 text-xs font-medium\"\r\n >\r\n {{ t(\"internal\") }}\r\n </span>\r\n </span>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #applicationLinkCol let-row>\r\n @if (isLinkedToCurrentApplication(row)) {\r\n <span\r\n class=\"inline-flex items-center gap-1 rounded-md bg-emerald-50 dark:bg-emerald-900/30 p-2\"\r\n >\r\n <mt-icon\r\n icon=\"user.user-check-01\"\r\n class=\"text-emerald-600 dark:text-emerald-300 text-sm\"\r\n />\r\n <span\r\n class=\"text-emerald-700 dark:text-emerald-200 text-xs font-medium\"\r\n >\r\n {{ t(\"linked\") }}\r\n </span>\r\n </span>\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center gap-1 rounded-md bg-amber-50 dark:bg-amber-900/30 p-2\"\r\n >\r\n <mt-icon\r\n icon=\"general.link-broken-01\"\r\n class=\"text-amber-600 dark:text-amber-300 text-sm\"\r\n />\r\n <span class=\"text-amber-700 dark:text-amber-200 text-xs font-medium\">\r\n {{ t(\"not-linked\") }}\r\n </span>\r\n </span>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #emailCol let-row>\r\n <span\r\n class=\"block max-w-64 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ row.email }}</span\r\n >\r\n </ng-template>\r\n\r\n <mt-table\r\n [tabs]=\"tabs()\"\r\n [(activeTab)]=\"activeTab\"\r\n [data]=\"users()\"\r\n [columns]=\"tableColumns()\"\r\n [actions]=\"tableActions()\"\r\n [rowActions]=\"rowActions()\"\r\n [generalSearch]=\"true\"\r\n [showFilters]=\"false\"\r\n [loading]=\"loading()\"\r\n storageKey=\"users-groups-users-table\"\r\n >\r\n </mt-table>\r\n </div>\r\n</ng-container>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }] });
|
|
2611
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: Users, isStandalone: true, selector: "mt-users", viewQueries: [{ propertyName: "typeCol", first: true, predicate: ["typeCol"], descendants: true, isSignal: true }, { propertyName: "applicationLinkCol", first: true, predicate: ["applicationLinkCol"], descendants: true, isSignal: true }, { propertyName: "emailCol", first: true, predicate: ["emailCol"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups'\">\r\n <!-- mt-table wraps row actions; a locked row has five, so keep them on one line. -->\r\n <div class=\"mt-5 [&_.mt-actions-column>div]:flex-nowrap\">\r\n <ng-template #typeCol let-row>\r\n @if (row.isExternal) {\r\n <span\r\n class=\"inline-flex items-center gap-1 rounded-md bg-slate-50 dark:bg-slate-900/30 p-2\"\r\n >\r\n <mt-icon\r\n icon=\"general.link-external-02\"\r\n class=\"text-slate-600 dark:text-slate-300 text-sm\"\r\n />\r\n <span class=\"text-slate-700 dark:text-slate-200 text-xs font-medium\">\r\n {{ t(\"external\") }}\r\n </span>\r\n </span>\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center gap-1 rounded-md bg-emerald-50 dark:bg-emerald-900/30 p-2\"\r\n >\r\n <mt-icon\r\n icon=\"user.users-01\"\r\n class=\"text-emerald-600 dark:text-emerald-300 text-sm\"\r\n />\r\n <span\r\n class=\"text-emerald-700 dark:text-emerald-200 text-xs font-medium\"\r\n >\r\n {{ t(\"internal\") }}\r\n </span>\r\n </span>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #applicationLinkCol let-row>\r\n @if (isLinkedToCurrentApplication(row)) {\r\n <span\r\n class=\"inline-flex items-center gap-1 rounded-md bg-emerald-50 dark:bg-emerald-900/30 p-2\"\r\n >\r\n <mt-icon\r\n icon=\"user.user-check-01\"\r\n class=\"text-emerald-600 dark:text-emerald-300 text-sm\"\r\n />\r\n <span\r\n class=\"text-emerald-700 dark:text-emerald-200 text-xs font-medium\"\r\n >\r\n {{ t(\"linked\") }}\r\n </span>\r\n </span>\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center gap-1 rounded-md bg-amber-50 dark:bg-amber-900/30 p-2\"\r\n >\r\n <mt-icon\r\n icon=\"general.link-broken-01\"\r\n class=\"text-amber-600 dark:text-amber-300 text-sm\"\r\n />\r\n <span class=\"text-amber-700 dark:text-amber-200 text-xs font-medium\">\r\n {{ t(\"not-linked\") }}\r\n </span>\r\n </span>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #emailCol let-row>\r\n <span\r\n class=\"block max-w-64 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ row.email }}</span\r\n >\r\n </ng-template>\r\n\r\n <mt-table\r\n [tabs]=\"tabs()\"\r\n [(activeTab)]=\"activeTab\"\r\n [data]=\"users()\"\r\n [columns]=\"tableColumns()\"\r\n [actions]=\"tableActions()\"\r\n [rowActions]=\"rowActions()\"\r\n [generalSearch]=\"true\"\r\n [showFilters]=\"false\"\r\n [loading]=\"loading()\"\r\n storageKey=\"users-groups-users-table\"\r\n >\r\n </mt-table>\r\n </div>\r\n</ng-container>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "searchScope", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }] });
|
|
2612
2612
|
}
|
|
2613
2613
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: Users, decorators: [{
|
|
2614
2614
|
type: Component,
|
|
@@ -2833,7 +2833,7 @@ class GroupForm {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
2835
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: GroupForm, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2836
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: GroupForm, isStandalone: true, selector: "mt-group-form", inputs: { groupForEdit: { classPropertyName: "groupForEdit", publicName: "groupForEdit", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DialogService], viewQueries: [{ propertyName: "userCol", first: true, predicate: ["userCol"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups'\">\r\n <div [class]=\"'flex flex-col gap-1 p-4 ' + modal.contentClass\">\r\n @if (!getGroupFormLoading()) {\r\n <form class=\"col-span-1\">\r\n <mt-dynamic-form\r\n [formConfig]=\"groupFormConfig()\"\r\n [formControl]=\"groupFormControl\"\r\n />\r\n </form>\r\n\r\n @if (groupForEdit()) {\r\n <div class=\"flex gap-3 items-end mt-6 pt-4 border-t-1 border-surface\">\r\n <mt-dynamic-form\r\n class=\"flex-1\"\r\n [formConfig]=\"internalUserFormConfig()\"\r\n [formControl]=\"internalUserFormControl\"\r\n />\r\n <mt-button\r\n icon=\"general.plus\"\r\n class=\"mb-1\"\r\n variant=\"outlined\"\r\n (click)=\"onAddUser()\"\r\n [disabled]=\"\r\n addUserToGroupLoading() ||\r\n isUserExistInMembers() ||\r\n !internalUserFormControl.value?.userField\r\n \"\r\n />\r\n </div>\r\n\r\n <mt-table\r\n noCard\r\n [data]=\"selectedGroup()?.members || []\"\r\n [columns]=\"tableColumns()\"\r\n [rowActions]=\"rowActions()\"\r\n storageKey=\"users-groups-group-members-table\"\r\n [generalSearch]=\"false\"\r\n [showFilters]=\"false\"\r\n [loading]=\"addUserToGroupLoading()\"\r\n >\r\n </mt-table>\r\n <ng-template #userCol let-row>\r\n <div class=\"flex items-center gap-2\">\r\n <mt-avatar [icon]=\"'custom.user-pp'\"> </mt-avatar>\r\n {{ row?.displayName }}\r\n </div>\r\n </ng-template>\r\n }\r\n } @else {\r\n <p-skeleton class=\"my-4 mt-7\" height=\"3rem\" />\r\n <p-skeleton class=\"my-4\" height=\"3rem\" />\r\n <p-skeleton class=\"my-4\" height=\"3rem\" />\r\n }\r\n </div>\r\n\r\n <div [class]=\"modal.footerClass\">\r\n <mt-button\r\n [label]=\"t('cancel')\"\r\n variant=\"outlined\"\r\n [disabled]=\"createUpdateGroupLoading()\"\r\n (click)=\"ref.close(false)\"\r\n />\r\n <mt-button\r\n [label]=\"selectedGroup() ? t('save') : t('add')\"\r\n (click)=\"onSubmit()\"\r\n [loading]=\"createUpdateGroupLoading()\"\r\n [disabled]=\"!this.groupFormControl.valid || createUpdateGroupLoading()\"\r\n />\r\n </div>\r\n</ng-container>\r\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i1.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: DynamicForm, selector: "mt-dynamic-form", inputs: ["formConfig", "forcedHiddenFieldKeys", "forcedDisabledFieldKeys", "preserveForcedHiddenValues", "visibleSectionKeys", "externalValues", "serverFieldErrors"], outputs: ["runtimeMessagesChange"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }] });
|
|
2836
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: GroupForm, isStandalone: true, selector: "mt-group-form", inputs: { groupForEdit: { classPropertyName: "groupForEdit", publicName: "groupForEdit", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DialogService], viewQueries: [{ propertyName: "userCol", first: true, predicate: ["userCol"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups'\">\r\n <div [class]=\"'flex flex-col gap-1 p-4 ' + modal.contentClass\">\r\n @if (!getGroupFormLoading()) {\r\n <form class=\"col-span-1\">\r\n <mt-dynamic-form\r\n [formConfig]=\"groupFormConfig()\"\r\n [formControl]=\"groupFormControl\"\r\n />\r\n </form>\r\n\r\n @if (groupForEdit()) {\r\n <div class=\"flex gap-3 items-end mt-6 pt-4 border-t-1 border-surface\">\r\n <mt-dynamic-form\r\n class=\"flex-1\"\r\n [formConfig]=\"internalUserFormConfig()\"\r\n [formControl]=\"internalUserFormControl\"\r\n />\r\n <mt-button\r\n icon=\"general.plus\"\r\n class=\"mb-1\"\r\n variant=\"outlined\"\r\n (click)=\"onAddUser()\"\r\n [disabled]=\"\r\n addUserToGroupLoading() ||\r\n isUserExistInMembers() ||\r\n !internalUserFormControl.value?.userField\r\n \"\r\n />\r\n </div>\r\n\r\n <mt-table\r\n noCard\r\n [data]=\"selectedGroup()?.members || []\"\r\n [columns]=\"tableColumns()\"\r\n [rowActions]=\"rowActions()\"\r\n storageKey=\"users-groups-group-members-table\"\r\n [generalSearch]=\"false\"\r\n [showFilters]=\"false\"\r\n [loading]=\"addUserToGroupLoading()\"\r\n >\r\n </mt-table>\r\n <ng-template #userCol let-row>\r\n <div class=\"flex items-center gap-2\">\r\n <mt-avatar [icon]=\"'custom.user-pp'\"> </mt-avatar>\r\n {{ row?.displayName }}\r\n </div>\r\n </ng-template>\r\n }\r\n } @else {\r\n <p-skeleton class=\"my-4 mt-7\" height=\"3rem\" />\r\n <p-skeleton class=\"my-4\" height=\"3rem\" />\r\n <p-skeleton class=\"my-4\" height=\"3rem\" />\r\n }\r\n </div>\r\n\r\n <div [class]=\"modal.footerClass\">\r\n <mt-button\r\n [label]=\"t('cancel')\"\r\n variant=\"outlined\"\r\n [disabled]=\"createUpdateGroupLoading()\"\r\n (click)=\"ref.close(false)\"\r\n />\r\n <mt-button\r\n [label]=\"selectedGroup() ? t('save') : t('add')\"\r\n (click)=\"onSubmit()\"\r\n [loading]=\"createUpdateGroupLoading()\"\r\n [disabled]=\"!this.groupFormControl.valid || createUpdateGroupLoading()\"\r\n />\r\n </div>\r\n</ng-container>\r\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i1.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: DynamicForm, selector: "mt-dynamic-form", inputs: ["formConfig", "forcedHiddenFieldKeys", "forcedDisabledFieldKeys", "preserveForcedHiddenValues", "visibleSectionKeys", "externalValues", "serverFieldErrors"], outputs: ["runtimeMessagesChange"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "searchScope", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }] });
|
|
2837
2837
|
}
|
|
2838
2838
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: GroupForm, decorators: [{
|
|
2839
2839
|
type: Component,
|
|
@@ -3253,7 +3253,7 @@ class Groups {
|
|
|
3253
3253
|
});
|
|
3254
3254
|
}
|
|
3255
3255
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: Groups, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3256
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: Groups, isStandalone: true, selector: "mt-groups", ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups'\">\r\n <div class=\"mt-5\">\r\n <mt-table\r\n [(activeTab)]=\"activeTab\"\r\n [data]=\"allGroups()\"\r\n [columns]=\"tableColumns()\"\r\n [actions]=\"tableActions()\"\r\n [rowActions]=\"rowActions()\"\r\n [generalSearch]=\"true\"\r\n [showFilters]=\"false\"\r\n [loading]=\"loading()\"\r\n storageKey=\"users-groups-groups-table\"\r\n >\r\n </mt-table>\r\n </div>\r\n</ng-container>\r\n", styles: [".groups{padding:2rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }] });
|
|
3256
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: Groups, isStandalone: true, selector: "mt-groups", ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups'\">\r\n <div class=\"mt-5\">\r\n <mt-table\r\n [(activeTab)]=\"activeTab\"\r\n [data]=\"allGroups()\"\r\n [columns]=\"tableColumns()\"\r\n [actions]=\"tableActions()\"\r\n [rowActions]=\"rowActions()\"\r\n [generalSearch]=\"true\"\r\n [showFilters]=\"false\"\r\n [loading]=\"loading()\"\r\n storageKey=\"users-groups-groups-table\"\r\n >\r\n </mt-table>\r\n </div>\r\n</ng-container>\r\n", styles: [".groups{padding:2rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "searchScope", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }] });
|
|
3257
3257
|
}
|
|
3258
3258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: Groups, decorators: [{
|
|
3259
3259
|
type: Component,
|
|
@@ -3338,6 +3338,168 @@ const STATUS_TONE = {
|
|
|
3338
3338
|
AwaitingRestart: 'warning',
|
|
3339
3339
|
};
|
|
3340
3340
|
|
|
3341
|
+
/** Finished results: moved, already with the successor, or kept as history. */
|
|
3342
|
+
const DONE_RESULTS = [
|
|
3343
|
+
'Applied',
|
|
3344
|
+
'AlreadySatisfied',
|
|
3345
|
+
'Preserved',
|
|
3346
|
+
];
|
|
3347
|
+
const PLACE_ICON = {
|
|
3348
|
+
LevelRecord: 'education.briefcase-01',
|
|
3349
|
+
ModuleRecord: 'file.file-02',
|
|
3350
|
+
Request: 'dev.git-branch-01',
|
|
3351
|
+
Escalation: 'map.flag-01',
|
|
3352
|
+
};
|
|
3353
|
+
/**
|
|
3354
|
+
* The words for one result: its place (project, module record, request or
|
|
3355
|
+
* escalation, with names and an Open link), a headline naming the field, role,
|
|
3356
|
+
* step or task, and one sentence saying what happened with the people's
|
|
3357
|
+
* names. Without `display` (an older backend) it falls back to the store and
|
|
3358
|
+
* scope labels the screen showed before.
|
|
3359
|
+
*/
|
|
3360
|
+
function describeResult(item, text, names) {
|
|
3361
|
+
const technical = [
|
|
3362
|
+
text.store(item.store),
|
|
3363
|
+
item.recordId,
|
|
3364
|
+
item.field,
|
|
3365
|
+
item.resultCode,
|
|
3366
|
+
]
|
|
3367
|
+
.filter(Boolean)
|
|
3368
|
+
.join(' · ');
|
|
3369
|
+
return {
|
|
3370
|
+
place: placeOf(item, text),
|
|
3371
|
+
headline: headlineOf(item, text),
|
|
3372
|
+
detail: sentenceOf(item, text, names),
|
|
3373
|
+
technical,
|
|
3374
|
+
foldable: item.display?.subjectKind === 'TeamRole' &&
|
|
3375
|
+
DONE_RESULTS.includes(item.resultStatus ?? ''),
|
|
3376
|
+
};
|
|
3377
|
+
}
|
|
3378
|
+
function placeOf(item, text) {
|
|
3379
|
+
const display = item.display;
|
|
3380
|
+
if (!display) {
|
|
3381
|
+
const where = `${text.code('scopes', item.scope)} #${item.scopeId}`;
|
|
3382
|
+
return {
|
|
3383
|
+
key: `${item.scope}:${item.scopeId}`,
|
|
3384
|
+
icon: 'layout.list',
|
|
3385
|
+
title: where,
|
|
3386
|
+
context: '',
|
|
3387
|
+
openUrl: null,
|
|
3388
|
+
};
|
|
3389
|
+
}
|
|
3390
|
+
const kind = display.placeKind;
|
|
3391
|
+
const id = display.moduleDataId ??
|
|
3392
|
+
display.requestId ??
|
|
3393
|
+
display.escalationInstanceId ??
|
|
3394
|
+
display.levelDataId ??
|
|
3395
|
+
item.scopeId;
|
|
3396
|
+
const join = (...parts) => parts.filter((part) => !!part && part.trim()).join(' · ');
|
|
3397
|
+
const schema = join(display.moduleName, display.levelName, display.workspaceName);
|
|
3398
|
+
let title;
|
|
3399
|
+
let context;
|
|
3400
|
+
if (!display.placeVisible) {
|
|
3401
|
+
title = text.t('place.hidden');
|
|
3402
|
+
context = join(kind === 'Request' ? display.processName : null, text.code('place.kinds', kind, ''), schema);
|
|
3403
|
+
}
|
|
3404
|
+
else if (kind === 'Request') {
|
|
3405
|
+
title =
|
|
3406
|
+
display.recordName || display.processName || text.t('place.request');
|
|
3407
|
+
context = join(display.recordName ? display.processName : null, schema);
|
|
3408
|
+
}
|
|
3409
|
+
else if (kind === 'Escalation') {
|
|
3410
|
+
title = display.recordName || text.t('place.escalation');
|
|
3411
|
+
context = join(text.t('place.escalation'), schema);
|
|
3412
|
+
}
|
|
3413
|
+
else {
|
|
3414
|
+
title = display.recordName || text.code('place.kinds', kind, kind);
|
|
3415
|
+
context = schema;
|
|
3416
|
+
}
|
|
3417
|
+
const canOpen = display.placeVisible &&
|
|
3418
|
+
display.templateId != null &&
|
|
3419
|
+
display.levelId != null &&
|
|
3420
|
+
display.levelDataId != null;
|
|
3421
|
+
return {
|
|
3422
|
+
key: `${kind}:${id}:${display.placeVisible ? 1 : 0}`,
|
|
3423
|
+
icon: display.placeVisible
|
|
3424
|
+
? (PLACE_ICON[kind] ?? 'layout.list')
|
|
3425
|
+
: 'security.lock-01',
|
|
3426
|
+
title,
|
|
3427
|
+
context,
|
|
3428
|
+
// The client app's project route, opened by the browser (not the admin
|
|
3429
|
+
// router), like the dashboard builder's "open entity" action.
|
|
3430
|
+
openUrl: canOpen
|
|
3431
|
+
? `/${display.templateId}/explore/${display.levelId}/${display.levelDataId}/level-workspace`
|
|
3432
|
+
: null,
|
|
3433
|
+
};
|
|
3434
|
+
}
|
|
3435
|
+
function headlineOf(item, text) {
|
|
3436
|
+
const display = item.display;
|
|
3437
|
+
const subject = display?.subject?.trim() || null;
|
|
3438
|
+
switch (display?.subjectKind) {
|
|
3439
|
+
case 'Field':
|
|
3440
|
+
return subject ?? text.t('subjects.field');
|
|
3441
|
+
case 'TeamRole':
|
|
3442
|
+
return subject
|
|
3443
|
+
? text.t('subjects.team-role', { subject })
|
|
3444
|
+
: text.t('subjects.team-role-unnamed');
|
|
3445
|
+
case 'ApprovalStep':
|
|
3446
|
+
return subject
|
|
3447
|
+
? text.t('subjects.approval-step', { subject })
|
|
3448
|
+
: text.t('subjects.approval-step-unnamed');
|
|
3449
|
+
case 'RequestCustody':
|
|
3450
|
+
return text.t('subjects.request-custody');
|
|
3451
|
+
case 'EscalationStep':
|
|
3452
|
+
return subject
|
|
3453
|
+
? text.t('subjects.escalation-step', { subject })
|
|
3454
|
+
: text.t('subjects.escalation-step-unnamed');
|
|
3455
|
+
case 'Task':
|
|
3456
|
+
return subject
|
|
3457
|
+
? text.t('subjects.task', { subject })
|
|
3458
|
+
: text.t('subjects.task-unnamed');
|
|
3459
|
+
case 'EntityList':
|
|
3460
|
+
return subject
|
|
3461
|
+
? text.t('subjects.list', { subject })
|
|
3462
|
+
: text.t('subjects.list-unnamed');
|
|
3463
|
+
default:
|
|
3464
|
+
return text.store(item.store);
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
/**
|
|
3468
|
+
* What happened, with the people's names when a sentence exists for the
|
|
3469
|
+
* result code; otherwise the result code's own text, or for work left to an
|
|
3470
|
+
* admin with no code, the reason (as before).
|
|
3471
|
+
*/
|
|
3472
|
+
function sentenceOf(item, text, names) {
|
|
3473
|
+
if (item.resultCode) {
|
|
3474
|
+
const sentence = text.code('sentences', item.resultCode, '');
|
|
3475
|
+
if (sentence)
|
|
3476
|
+
return text.t(`sentences.${item.resultCode}`, {
|
|
3477
|
+
name: names.name,
|
|
3478
|
+
successor: names.successor,
|
|
3479
|
+
});
|
|
3480
|
+
return text.code('result-codes', item.resultCode);
|
|
3481
|
+
}
|
|
3482
|
+
return MANUAL_RESULTS.includes(item.resultStatus ?? '')
|
|
3483
|
+
? text.code('reasons', item.reason, '')
|
|
3484
|
+
: '';
|
|
3485
|
+
}
|
|
3486
|
+
function groupByPlace(rows) {
|
|
3487
|
+
const groups = new Map();
|
|
3488
|
+
for (const row of rows) {
|
|
3489
|
+
const key = row.words.place.key;
|
|
3490
|
+
let group = groups.get(key);
|
|
3491
|
+
if (!group) {
|
|
3492
|
+
group = { place: row.words.place, rows: [], foldedTeamRoles: 0 };
|
|
3493
|
+
groups.set(key, group);
|
|
3494
|
+
}
|
|
3495
|
+
if (row.words.foldable)
|
|
3496
|
+
group.foldedTeamRoles++;
|
|
3497
|
+
else
|
|
3498
|
+
group.rows.push(row);
|
|
3499
|
+
}
|
|
3500
|
+
return [...groups.values()];
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3341
3503
|
/** The server works in the background; the drawer only re-reads it. */
|
|
3342
3504
|
const POLL_INTERVAL_MS = 5000;
|
|
3343
3505
|
/** Stop watching (not the work) after this many failed reads in a row. */
|
|
@@ -3348,8 +3510,6 @@ const RESULTS_REFRESH_MS = 15000;
|
|
|
3348
3510
|
/** Rows drawn at once; "Show more" adds the next batch. */
|
|
3349
3511
|
const ROWS_STEP = 50;
|
|
3350
3512
|
const NOT_CHECKED = 'NotChecked';
|
|
3351
|
-
/** Finished items: moved, already with the successor, or kept as history. */
|
|
3352
|
-
const DONE_RESULTS = ['Applied', 'AlreadySatisfied', 'Preserved'];
|
|
3353
3513
|
const RESULT_TONE = {
|
|
3354
3514
|
Applied: 'success',
|
|
3355
3515
|
AlreadySatisfied: 'success',
|
|
@@ -3519,6 +3679,7 @@ class UserReplacementDetails {
|
|
|
3519
3679
|
rows = computed(() => {
|
|
3520
3680
|
this.language();
|
|
3521
3681
|
const active = this.isActive();
|
|
3682
|
+
const names = { name: this.sourceName(), successor: this.successorName() };
|
|
3522
3683
|
return this.items().map((item) => {
|
|
3523
3684
|
const notChecked = item.resultStatus === NOT_CHECKED ||
|
|
3524
3685
|
item.resultCode === 'PlaceCouldNotBeRead';
|
|
@@ -3531,27 +3692,24 @@ class UserReplacementDetails {
|
|
|
3531
3692
|
active ? this.text.t('waiting') : this.text.t('not-done'),
|
|
3532
3693
|
'neutral',
|
|
3533
3694
|
];
|
|
3534
|
-
// The
|
|
3535
|
-
|
|
3536
|
-
const statusDetail = item.resultCode
|
|
3537
|
-
? this.text.code('result-codes', item.resultCode)
|
|
3538
|
-
: MANUAL_RESULTS.includes(item.resultStatus ?? '')
|
|
3539
|
-
? this.text.code('reasons', item.reason, '')
|
|
3540
|
-
: '';
|
|
3541
|
-
const store = this.text.store(item.store);
|
|
3542
|
-
const where = `${this.text.code('scopes', item.scope)} #${item.scopeId}`;
|
|
3543
|
-
const technical = [item.recordId, item.field].filter(Boolean).join(' · ');
|
|
3695
|
+
// The place, what it is about and what happened, in the admin's words.
|
|
3696
|
+
const words = describeResult(item, this.text, names);
|
|
3544
3697
|
return {
|
|
3545
3698
|
itemId: item.itemId,
|
|
3546
|
-
|
|
3547
|
-
where,
|
|
3548
|
-
technical,
|
|
3699
|
+
words,
|
|
3549
3700
|
status,
|
|
3550
|
-
statusDetail,
|
|
3701
|
+
statusDetail: words.detail,
|
|
3551
3702
|
statusClass: TONE_PILL[tone],
|
|
3552
3703
|
resultKey: item.resultStatus,
|
|
3553
3704
|
notChecked,
|
|
3554
|
-
search: [
|
|
3705
|
+
search: [
|
|
3706
|
+
words.place.title,
|
|
3707
|
+
words.place.context,
|
|
3708
|
+
words.headline,
|
|
3709
|
+
words.detail,
|
|
3710
|
+
words.technical,
|
|
3711
|
+
status,
|
|
3712
|
+
]
|
|
3555
3713
|
.join(' ')
|
|
3556
3714
|
.toLowerCase(),
|
|
3557
3715
|
};
|
|
@@ -3616,6 +3774,8 @@ class UserReplacementDetails {
|
|
|
3616
3774
|
}, ...(ngDevMode ? [{ debugName: "filteredRows" }] : /* istanbul ignore next */ []));
|
|
3617
3775
|
visibleRows = computed(() => this.filteredRows().slice(0, this.rowLimit()), ...(ngDevMode ? [{ debugName: "visibleRows" }] : /* istanbul ignore next */ []));
|
|
3618
3776
|
hiddenRowCount = computed(() => this.filteredRows().length - this.visibleRows().length, ...(ngDevMode ? [{ debugName: "hiddenRowCount" }] : /* istanbul ignore next */ []));
|
|
3777
|
+
/** The drawn rows under their place (project, record, request, escalation). */
|
|
3778
|
+
visibleGroups = computed(() => groupByPlace(this.visibleRows()), ...(ngDevMode ? [{ debugName: "visibleGroups" }] : /* istanbul ignore next */ []));
|
|
3619
3779
|
ngOnInit() {
|
|
3620
3780
|
this.destroyRef.onDestroy(() => (this.destroyed = true));
|
|
3621
3781
|
if (!this.users().length)
|
|
@@ -3816,7 +3976,7 @@ class UserReplacementDetails {
|
|
|
3816
3976
|
return user?.displayName || user?.userName || userId;
|
|
3817
3977
|
}
|
|
3818
3978
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserReplacementDetails, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3819
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: UserReplacementDetails, isStandalone: true, selector: "mt-user-replacement-details", inputs: { operationId: { classPropertyName: "operationId", publicName: "operationId", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\n <div class=\"flex flex-col gap-4 p-4\" [class]=\"modal.contentClass\">\n @if (loading()) {\n <p-skeleton height=\"7rem\" borderRadius=\"0.375rem\" />\n <p-skeleton height=\"6rem\" borderRadius=\"0.375rem\" />\n <p-skeleton height=\"12rem\" borderRadius=\"0.375rem\" />\n } @else if (loadError()) {\n <div\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-4 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n role=\"alert\"\n >\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\n <span>{{ loadError() }}</span>\n </div>\n } @else if (contractOutdated()) {\n <div\n class=\"rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-700 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200\"\n >\n {{ t(\"contract-outdated\") }}\n </div>\n } @else if (summary(); as replacement) {\n <!-- Who \u2192 who, the status, and when -->\n <section\n class=\"flex flex-col gap-3 rounded-md border border-surface bg-content p-4\"\n >\n <div class=\"flex items-center gap-3\">\n <div class=\"flex min-w-0 flex-1 items-center gap-3\">\n <mt-avatar\n [label]=\"sourceInitials()\"\n shape=\"circle\"\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\n />\n <div class=\"min-w-0\">\n <div class=\"text-xs text-muted-color\">{{ t(\"from\") }}</div>\n <div class=\"truncate font-semibold\" [title]=\"sourceName()\">\n {{ sourceName() }}\n </div>\n </div>\n </div>\n <mt-icon\n icon=\"arrow.arrow-right\"\n class=\"shrink-0 text-lg text-muted-color rtl:rotate-180\"\n />\n <div class=\"flex min-w-0 flex-1 items-center gap-3\">\n <mt-avatar\n [label]=\"successorInitials()\"\n shape=\"circle\"\n styleClass=\"bg-primary-50! text-primary-700! dark:bg-primary-950! dark:text-primary-200!\"\n />\n <div class=\"min-w-0\">\n <div class=\"text-xs text-muted-color\">{{ t(\"to\") }}</div>\n <div class=\"truncate font-semibold\" [title]=\"successorName()\">\n {{ successorName() }}\n </div>\n </div>\n </div>\n </div>\n\n <div\n class=\"flex flex-wrap items-center gap-x-4 gap-y-2 border-t border-surface pt-3 text-xs text-muted-color\"\n >\n <span\n class=\"rounded-md border px-2 py-0.5 font-semibold\"\n [class]=\"statusClass()\"\n >{{ text.code(\"statuses\", replacement.status) }}</span\n >\n @if (createdAt(); as created) {\n <span class=\"flex items-center gap-1\">\n <mt-icon icon=\"time.calendar\" />\n {{ t(\"started\") }}\n <span class=\"tabular-nums text-color\">{{\n created | mtDateFormat: \"dateTime\"\n }}</span>\n </span>\n }\n @if (updatedAt(); as updated) {\n <span class=\"flex items-center gap-1\">\n <mt-icon icon=\"time.clock\" />\n {{ t(\"updated\") }}\n <span class=\"tabular-nums text-color\">{{\n updated | mtDateFormat: \"dateTime\"\n }}</span>\n </span>\n }\n </div>\n </section>\n\n <!-- Where it is, in one sentence -->\n @if (card(); as status) {\n <section\n class=\"flex flex-col gap-3 rounded-md border p-4\"\n [class]=\"cardBoxClass()\"\n role=\"status\"\n >\n <div class=\"flex items-start gap-3\">\n <mt-icon\n [icon]=\"status.icon\"\n class=\"mt-0.5 shrink-0 text-xl\"\n [class]=\"cardIconClass()\"\n />\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"font-semibold\">{{ status.title }}</div>\n @if (status.body) {\n <div class=\"text-sm\">{{ status.body }}</div>\n }\n @if (isFinished() && notCheckedCount() > 0) {\n <div class=\"text-sm opacity-80\">\n {{ t(\"not-checked-note\", { count: notCheckedCount() }) }}\n </div>\n }\n </div>\n </div>\n\n @if (status.progress) {\n <p-progressbar mode=\"indeterminate\" [style]=\"{ height: '4px' }\" />\n }\n\n @if (actionError()) {\n <div\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n role=\"alert\"\n >\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\n <span>{{ actionError() }}</span>\n </div>\n }\n </section>\n }\n\n <!-- The results: outcomes after Start, what needs an admin first -->\n @if (showResults()) {\n <section class=\"flex flex-col gap-3\">\n <h3 class=\"text-sm font-semibold\">{{ t(\"results-title\") }}</h3>\n\n @if (tabs().length > 1) {\n <mt-tabs\n [options]=\"tabs()\"\n [active]=\"activeTab()\"\n (activeChange)=\"selectTab($event)\"\n mode=\"underline\"\n size=\"small\"\n />\n }\n @if (rows().length > 8) {\n <mt-text-field\n [formControl]=\"search\"\n icon=\"general.search-lg\"\n [placeholder]=\"t('search-results')\"\n />\n }\n\n @if (itemsError()) {\n <div\n class=\"rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n role=\"alert\"\n >\n {{ itemsError() }}\n </div>\n } @else if (itemsLoading() && !items().length) {\n <div class=\"flex flex-col gap-2\">\n @for (row of [1, 2, 3]; track row) {\n <p-skeleton height=\"3.5rem\" borderRadius=\"0.375rem\" />\n }\n </div>\n } @else if (!filteredRows().length) {\n <div\n class=\"rounded-md border border-dashed border-surface p-4 text-center text-sm text-muted-color\"\n >\n {{ t(\"no-matching-results\") }}\n </div>\n } @else {\n <ul class=\"rounded-md border border-surface bg-content\">\n @for (row of visibleRows(); track row.itemId) {\n <li\n class=\"flex items-start gap-3 border-t border-surface p-3 first:border-t-0\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <span class=\"text-sm font-medium\">{{ row.store }}</span>\n <span class=\"text-xs text-muted-color\">{{\n row.where\n }}</span>\n @if (row.statusDetail) {\n <span class=\"text-xs\">{{ row.statusDetail }}</span>\n }\n @if (row.technical) {\n <span\n class=\"truncate font-mono text-[11px] text-muted-color\"\n [title]=\"row.technical\"\n >{{ row.technical }}</span\n >\n }\n </div>\n <span\n class=\"shrink-0 whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium\"\n [class]=\"row.statusClass\"\n >{{ row.status }}</span\n >\n </li>\n }\n </ul>\n @if (hiddenRowCount() > 0) {\n <mt-button\n class=\"self-center\"\n [label]=\"t('show-more', { count: hiddenRowCount() })\"\n icon=\"arrow.chevron-down\"\n variant=\"outlined\"\n size=\"small\"\n (click)=\"showMore()\"\n />\n }\n }\n </section>\n }\n\n <!-- One general limit, with every backend code behind a toggle -->\n <div class=\"flex flex-col gap-1 text-xs text-muted-color\">\n <div class=\"flex items-start gap-1.5\">\n <mt-icon icon=\"general.info-circle\" class=\"mt-px shrink-0\" />\n <span>{{ t(\"notices.supported-only\") }}</span>\n </div>\n @if (technicalDetails().length) {\n <button\n type=\"button\"\n class=\"ms-5 flex items-center gap-1 self-start text-primary hover:underline\"\n [attr.aria-expanded]=\"showDetails()\"\n (click)=\"showDetails.set(!showDetails())\"\n >\n <mt-icon\n [icon]=\"showDetails() ? 'arrow.chevron-up' : 'arrow.chevron-down'\"\n />\n {{ showDetails() ? t(\"hide-details\") : t(\"show-details\") }}\n </button>\n @if (showDetails()) {\n <ul class=\"ms-5 flex list-disc flex-col gap-0.5 ps-4\">\n @for (detail of technicalDetails(); track $index) {\n <li>{{ detail }}</li>\n }\n </ul>\n }\n }\n </div>\n }\n </div>\n\n <!-- Close, and Stop / Close replacement while the backend allows it -->\n <div [class]=\"modal.footerClass\">\n @if (canCancel()) {\n <mt-button\n [label]=\"cancelIsStop() ? t('stop') : t('close')\"\n icon=\"general.x-circle\"\n severity=\"danger\"\n variant=\"outlined\"\n [loading]=\"cancelling()\"\n (click)=\"cancel()\"\n />\n }\n <mt-button [label]=\"t('dismiss')\" (click)=\"close()\" />\n </div>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: Tabs, selector: "mt-tabs", inputs: ["options", "optionLabel", "optionValue", "active", "mode", "moreLabel", "defaultIcon", "size", "fluid", "disabled", "searchThreshold"], outputs: ["activeChange", "onChange"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "ngmodule", type: ProgressBarModule }, { kind: "component", type: i2.ProgressBar, selector: "p-progressBar, p-progressbar, p-progress-bar", inputs: ["value", "showValue", "styleClass", "valueStyleClass", "unit", "mode", "color"] }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i1.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "pipe", type: MTDateFormatPipe, name: "mtDateFormat" }] });
|
|
3979
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: UserReplacementDetails, isStandalone: true, selector: "mt-user-replacement-details", inputs: { operationId: { classPropertyName: "operationId", publicName: "operationId", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\r\n <div class=\"flex flex-col gap-4 p-4\" [class]=\"modal.contentClass\">\r\n @if (loading()) {\r\n <p-skeleton height=\"7rem\" borderRadius=\"0.375rem\" />\r\n <p-skeleton height=\"6rem\" borderRadius=\"0.375rem\" />\r\n <p-skeleton height=\"12rem\" borderRadius=\"0.375rem\" />\r\n } @else if (loadError()) {\r\n <div\r\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-4 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n role=\"alert\"\r\n >\r\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\r\n <span>{{ loadError() }}</span>\r\n </div>\r\n } @else if (contractOutdated()) {\r\n <div\r\n class=\"rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-700 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200\"\r\n >\r\n {{ t(\"contract-outdated\") }}\r\n </div>\r\n } @else if (summary(); as replacement) {\r\n <!-- Who \u2192 who, the status, and when -->\r\n <section\r\n class=\"flex flex-col gap-3 rounded-md border border-surface bg-content p-4\"\r\n >\r\n <div class=\"flex items-center gap-3\">\r\n <div class=\"flex min-w-0 flex-1 items-center gap-3\">\r\n <mt-avatar\r\n [label]=\"sourceInitials()\"\r\n shape=\"circle\"\r\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\r\n />\r\n <div class=\"min-w-0\">\r\n <div class=\"text-xs text-muted-color\">{{ t(\"from\") }}</div>\r\n <div class=\"truncate font-semibold\" [title]=\"sourceName()\">\r\n {{ sourceName() }}\r\n </div>\r\n </div>\r\n </div>\r\n <mt-icon\r\n icon=\"arrow.arrow-right\"\r\n class=\"shrink-0 text-lg text-muted-color rtl:rotate-180\"\r\n />\r\n <div class=\"flex min-w-0 flex-1 items-center gap-3\">\r\n <mt-avatar\r\n [label]=\"successorInitials()\"\r\n shape=\"circle\"\r\n styleClass=\"bg-primary-50! text-primary-700! dark:bg-primary-950! dark:text-primary-200!\"\r\n />\r\n <div class=\"min-w-0\">\r\n <div class=\"text-xs text-muted-color\">{{ t(\"to\") }}</div>\r\n <div class=\"truncate font-semibold\" [title]=\"successorName()\">\r\n {{ successorName() }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n class=\"flex flex-wrap items-center gap-x-4 gap-y-2 border-t border-surface pt-3 text-xs text-muted-color\"\r\n >\r\n <span\r\n class=\"rounded-md border px-2 py-0.5 font-semibold\"\r\n [class]=\"statusClass()\"\r\n >{{ text.code(\"statuses\", replacement.status) }}</span\r\n >\r\n @if (createdAt(); as created) {\r\n <span class=\"flex items-center gap-1\">\r\n <mt-icon icon=\"time.calendar\" />\r\n {{ t(\"started\") }}\r\n <span class=\"tabular-nums text-color\">{{\r\n created | mtDateFormat: \"dateTime\"\r\n }}</span>\r\n </span>\r\n }\r\n @if (updatedAt(); as updated) {\r\n <span class=\"flex items-center gap-1\">\r\n <mt-icon icon=\"time.clock\" />\r\n {{ t(\"updated\") }}\r\n <span class=\"tabular-nums text-color\">{{\r\n updated | mtDateFormat: \"dateTime\"\r\n }}</span>\r\n </span>\r\n }\r\n </div>\r\n </section>\r\n\r\n <!-- Where it is, in one sentence -->\r\n @if (card(); as status) {\r\n <section\r\n class=\"flex flex-col gap-3 rounded-md border p-4\"\r\n [class]=\"cardBoxClass()\"\r\n role=\"status\"\r\n >\r\n <div class=\"flex items-start gap-3\">\r\n <mt-icon\r\n [icon]=\"status.icon\"\r\n class=\"mt-0.5 shrink-0 text-xl\"\r\n [class]=\"cardIconClass()\"\r\n />\r\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\r\n <div class=\"font-semibold\">{{ status.title }}</div>\r\n @if (status.body) {\r\n <div class=\"text-sm\">{{ status.body }}</div>\r\n }\r\n @if (isFinished() && notCheckedCount() > 0) {\r\n <div class=\"text-sm opacity-80\">\r\n {{ t(\"not-checked-note\", { count: notCheckedCount() }) }}\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n\r\n @if (status.progress) {\r\n <p-progressbar mode=\"indeterminate\" [style]=\"{ height: '4px' }\" />\r\n }\r\n\r\n @if (actionError()) {\r\n <div\r\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n role=\"alert\"\r\n >\r\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\r\n <span>{{ actionError() }}</span>\r\n </div>\r\n }\r\n </section>\r\n }\r\n\r\n <!-- The results: outcomes after Start, what needs an admin first -->\r\n @if (showResults()) {\r\n <section class=\"flex flex-col gap-3\">\r\n <h3 class=\"text-sm font-semibold\">{{ t(\"results-title\") }}</h3>\r\n\r\n @if (tabs().length > 1) {\r\n <mt-tabs\r\n [options]=\"tabs()\"\r\n [active]=\"activeTab()\"\r\n (activeChange)=\"selectTab($event)\"\r\n mode=\"underline\"\r\n size=\"small\"\r\n />\r\n }\r\n @if (rows().length > 8) {\r\n <mt-text-field\r\n [formControl]=\"search\"\r\n icon=\"general.search-lg\"\r\n [placeholder]=\"t('search-results')\"\r\n />\r\n }\r\n\r\n @if (itemsError()) {\r\n <div\r\n class=\"rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n role=\"alert\"\r\n >\r\n {{ itemsError() }}\r\n </div>\r\n } @else if (itemsLoading() && !items().length) {\r\n <div class=\"flex flex-col gap-2\">\r\n @for (row of [1, 2, 3]; track row) {\r\n <p-skeleton height=\"3.5rem\" borderRadius=\"0.375rem\" />\r\n }\r\n </div>\r\n } @else if (!filteredRows().length) {\r\n <div\r\n class=\"rounded-md border border-dashed border-surface p-4 text-center text-sm text-muted-color\"\r\n >\r\n {{ t(\"no-matching-results\") }}\r\n </div>\r\n } @else {\r\n <ul class=\"rounded-md border border-surface bg-content\">\r\n @for (group of visibleGroups(); track group.place.key) {\r\n <li class=\"border-t border-surface first:border-t-0\">\r\n <!-- The place: project, record, request or escalation -->\r\n <div\r\n class=\"flex items-center gap-3 bg-surface-50 px-3 py-2 dark:bg-surface-900\"\r\n >\r\n <mt-icon\r\n [icon]=\"group.place.icon\"\r\n class=\"shrink-0 text-muted-color\"\r\n />\r\n <div class=\"min-w-0 flex-1\">\r\n <div\r\n class=\"truncate text-sm font-semibold\"\r\n [title]=\"group.place.title\"\r\n >\r\n {{ group.place.title }}\r\n </div>\r\n @if (group.place.context) {\r\n <div\r\n class=\"truncate text-xs text-muted-color\"\r\n [title]=\"group.place.context\"\r\n >\r\n {{ group.place.context }}\r\n </div>\r\n }\r\n </div>\r\n @if (group.place.openUrl) {\r\n <a\r\n class=\"flex shrink-0 items-center gap-1 text-xs text-primary hover:underline\"\r\n [href]=\"group.place.openUrl\"\r\n target=\"_blank\"\r\n rel=\"noopener\"\r\n >\r\n {{ t(\"open-project\") }}\r\n <mt-icon\r\n icon=\"general.link-external-01\"\r\n class=\"rtl:-scale-x-100\"\r\n />\r\n </a>\r\n }\r\n </div>\r\n <ul>\r\n @for (row of group.rows; track row.itemId) {\r\n <li\r\n class=\"flex items-start gap-3 border-t border-surface p-3\"\r\n >\r\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\r\n <span class=\"text-sm font-medium\">{{\r\n row.words.headline\r\n }}</span>\r\n @if (row.statusDetail) {\r\n <span class=\"text-xs text-muted-color\">{{\r\n row.statusDetail\r\n }}</span>\r\n }\r\n @if (showDetails() && row.words.technical) {\r\n <span\r\n class=\"truncate font-mono text-[11px] text-muted-color\"\r\n [title]=\"row.words.technical\"\r\n >{{ row.words.technical }}</span\r\n >\r\n }\r\n </div>\r\n <span\r\n class=\"shrink-0 whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium\"\r\n [class]=\"row.statusClass\"\r\n >{{ row.status }}</span\r\n >\r\n </li>\r\n }\r\n @if (group.foldedTeamRoles) {\r\n <li\r\n class=\"flex items-center gap-2 border-t border-surface px-3 py-2 text-xs text-muted-color\"\r\n >\r\n <mt-icon icon=\"general.check-circle\" class=\"shrink-0\" />\r\n {{ t(\"team-note\", { count: group.foldedTeamRoles }) }}\r\n </li>\r\n }\r\n </ul>\r\n </li>\r\n }\r\n </ul>\r\n @if (hiddenRowCount() > 0) {\r\n <mt-button\r\n class=\"self-center\"\r\n [label]=\"t('show-more', { count: hiddenRowCount() })\"\r\n icon=\"arrow.chevron-down\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"showMore()\"\r\n />\r\n }\r\n }\r\n </section>\r\n }\r\n\r\n <!-- One general limit, with every backend code behind a toggle -->\r\n <div class=\"flex flex-col gap-1 text-xs text-muted-color\">\r\n <div class=\"flex items-start gap-1.5\">\r\n <mt-icon icon=\"general.info-circle\" class=\"mt-px shrink-0\" />\r\n <span>{{ t(\"notices.supported-only\") }}</span>\r\n </div>\r\n @if (technicalDetails().length) {\r\n <button\r\n type=\"button\"\r\n class=\"ms-5 flex items-center gap-1 self-start text-primary hover:underline\"\r\n [attr.aria-expanded]=\"showDetails()\"\r\n (click)=\"showDetails.set(!showDetails())\"\r\n >\r\n <mt-icon\r\n [icon]=\"showDetails() ? 'arrow.chevron-up' : 'arrow.chevron-down'\"\r\n />\r\n {{ showDetails() ? t(\"hide-details\") : t(\"show-details\") }}\r\n </button>\r\n @if (showDetails()) {\r\n <ul class=\"ms-5 flex list-disc flex-col gap-0.5 ps-4\">\r\n @for (detail of technicalDetails(); track $index) {\r\n <li>{{ detail }}</li>\r\n }\r\n </ul>\r\n }\r\n }\r\n </div>\r\n }\r\n </div>\r\n\r\n <!-- Close, and Stop / Close replacement while the backend allows it -->\r\n <div [class]=\"modal.footerClass\">\r\n @if (canCancel()) {\r\n <mt-button\r\n [label]=\"cancelIsStop() ? t('stop') : t('close')\"\r\n icon=\"general.x-circle\"\r\n severity=\"danger\"\r\n variant=\"outlined\"\r\n [loading]=\"cancelling()\"\r\n (click)=\"cancel()\"\r\n />\r\n }\r\n <mt-button [label]=\"t('dismiss')\" (click)=\"close()\" />\r\n </div>\r\n</ng-container>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: Tabs, selector: "mt-tabs", inputs: ["options", "optionLabel", "optionValue", "active", "mode", "moreLabel", "defaultIcon", "size", "fluid", "disabled", "searchThreshold"], outputs: ["activeChange", "onChange"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "ngmodule", type: ProgressBarModule }, { kind: "component", type: i2.ProgressBar, selector: "p-progressBar, p-progressbar, p-progress-bar", inputs: ["value", "showValue", "styleClass", "valueStyleClass", "unit", "mode", "color"] }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i1.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "pipe", type: MTDateFormatPipe, name: "mtDateFormat" }] });
|
|
3820
3980
|
}
|
|
3821
3981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserReplacementDetails, decorators: [{
|
|
3822
3982
|
type: Component,
|
|
@@ -3831,7 +3991,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
3831
3991
|
ProgressBarModule,
|
|
3832
3992
|
SkeletonModule,
|
|
3833
3993
|
MTDateFormatPipe,
|
|
3834
|
-
], template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\n <div class=\"flex flex-col gap-4 p-4\" [class]=\"modal.contentClass\">\n @if (loading()) {\n <p-skeleton height=\"7rem\" borderRadius=\"0.375rem\" />\n <p-skeleton height=\"6rem\" borderRadius=\"0.375rem\" />\n <p-skeleton height=\"12rem\" borderRadius=\"0.375rem\" />\n } @else if (loadError()) {\n <div\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-4 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n role=\"alert\"\n >\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\n <span>{{ loadError() }}</span>\n </div>\n } @else if (contractOutdated()) {\n <div\n class=\"rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-700 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200\"\n >\n {{ t(\"contract-outdated\") }}\n </div>\n } @else if (summary(); as replacement) {\n <!-- Who \u2192 who, the status, and when -->\n <section\n class=\"flex flex-col gap-3 rounded-md border border-surface bg-content p-4\"\n >\n <div class=\"flex items-center gap-3\">\n <div class=\"flex min-w-0 flex-1 items-center gap-3\">\n <mt-avatar\n [label]=\"sourceInitials()\"\n shape=\"circle\"\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\n />\n <div class=\"min-w-0\">\n <div class=\"text-xs text-muted-color\">{{ t(\"from\") }}</div>\n <div class=\"truncate font-semibold\" [title]=\"sourceName()\">\n {{ sourceName() }}\n </div>\n </div>\n </div>\n <mt-icon\n icon=\"arrow.arrow-right\"\n class=\"shrink-0 text-lg text-muted-color rtl:rotate-180\"\n />\n <div class=\"flex min-w-0 flex-1 items-center gap-3\">\n <mt-avatar\n [label]=\"successorInitials()\"\n shape=\"circle\"\n styleClass=\"bg-primary-50! text-primary-700! dark:bg-primary-950! dark:text-primary-200!\"\n />\n <div class=\"min-w-0\">\n <div class=\"text-xs text-muted-color\">{{ t(\"to\") }}</div>\n <div class=\"truncate font-semibold\" [title]=\"successorName()\">\n {{ successorName() }}\n </div>\n </div>\n </div>\n </div>\n\n <div\n class=\"flex flex-wrap items-center gap-x-4 gap-y-2 border-t border-surface pt-3 text-xs text-muted-color\"\n >\n <span\n class=\"rounded-md border px-2 py-0.5 font-semibold\"\n [class]=\"statusClass()\"\n >{{ text.code(\"statuses\", replacement.status) }}</span\n >\n @if (createdAt(); as created) {\n <span class=\"flex items-center gap-1\">\n <mt-icon icon=\"time.calendar\" />\n {{ t(\"started\") }}\n <span class=\"tabular-nums text-color\">{{\n created | mtDateFormat: \"dateTime\"\n }}</span>\n </span>\n }\n @if (updatedAt(); as updated) {\n <span class=\"flex items-center gap-1\">\n <mt-icon icon=\"time.clock\" />\n {{ t(\"updated\") }}\n <span class=\"tabular-nums text-color\">{{\n updated | mtDateFormat: \"dateTime\"\n }}</span>\n </span>\n }\n </div>\n </section>\n\n <!-- Where it is, in one sentence -->\n @if (card(); as status) {\n <section\n class=\"flex flex-col gap-3 rounded-md border p-4\"\n [class]=\"cardBoxClass()\"\n role=\"status\"\n >\n <div class=\"flex items-start gap-3\">\n <mt-icon\n [icon]=\"status.icon\"\n class=\"mt-0.5 shrink-0 text-xl\"\n [class]=\"cardIconClass()\"\n />\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"font-semibold\">{{ status.title }}</div>\n @if (status.body) {\n <div class=\"text-sm\">{{ status.body }}</div>\n }\n @if (isFinished() && notCheckedCount() > 0) {\n <div class=\"text-sm opacity-80\">\n {{ t(\"not-checked-note\", { count: notCheckedCount() }) }}\n </div>\n }\n </div>\n </div>\n\n @if (status.progress) {\n <p-progressbar mode=\"indeterminate\" [style]=\"{ height: '4px' }\" />\n }\n\n @if (actionError()) {\n <div\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n role=\"alert\"\n >\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\n <span>{{ actionError() }}</span>\n </div>\n }\n </section>\n }\n\n <!-- The results: outcomes after Start, what needs an admin first -->\n @if (showResults()) {\n <section class=\"flex flex-col gap-3\">\n <h3 class=\"text-sm font-semibold\">{{ t(\"results-title\") }}</h3>\n\n @if (tabs().length > 1) {\n <mt-tabs\n [options]=\"tabs()\"\n [active]=\"activeTab()\"\n (activeChange)=\"selectTab($event)\"\n mode=\"underline\"\n size=\"small\"\n />\n }\n @if (rows().length > 8) {\n <mt-text-field\n [formControl]=\"search\"\n icon=\"general.search-lg\"\n [placeholder]=\"t('search-results')\"\n />\n }\n\n @if (itemsError()) {\n <div\n class=\"rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n role=\"alert\"\n >\n {{ itemsError() }}\n </div>\n } @else if (itemsLoading() && !items().length) {\n <div class=\"flex flex-col gap-2\">\n @for (row of [1, 2, 3]; track row) {\n <p-skeleton height=\"3.5rem\" borderRadius=\"0.375rem\" />\n }\n </div>\n } @else if (!filteredRows().length) {\n <div\n class=\"rounded-md border border-dashed border-surface p-4 text-center text-sm text-muted-color\"\n >\n {{ t(\"no-matching-results\") }}\n </div>\n } @else {\n <ul class=\"rounded-md border border-surface bg-content\">\n @for (row of visibleRows(); track row.itemId) {\n <li\n class=\"flex items-start gap-3 border-t border-surface p-3 first:border-t-0\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <span class=\"text-sm font-medium\">{{ row.store }}</span>\n <span class=\"text-xs text-muted-color\">{{\n row.where\n }}</span>\n @if (row.statusDetail) {\n <span class=\"text-xs\">{{ row.statusDetail }}</span>\n }\n @if (row.technical) {\n <span\n class=\"truncate font-mono text-[11px] text-muted-color\"\n [title]=\"row.technical\"\n >{{ row.technical }}</span\n >\n }\n </div>\n <span\n class=\"shrink-0 whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium\"\n [class]=\"row.statusClass\"\n >{{ row.status }}</span\n >\n </li>\n }\n </ul>\n @if (hiddenRowCount() > 0) {\n <mt-button\n class=\"self-center\"\n [label]=\"t('show-more', { count: hiddenRowCount() })\"\n icon=\"arrow.chevron-down\"\n variant=\"outlined\"\n size=\"small\"\n (click)=\"showMore()\"\n />\n }\n }\n </section>\n }\n\n <!-- One general limit, with every backend code behind a toggle -->\n <div class=\"flex flex-col gap-1 text-xs text-muted-color\">\n <div class=\"flex items-start gap-1.5\">\n <mt-icon icon=\"general.info-circle\" class=\"mt-px shrink-0\" />\n <span>{{ t(\"notices.supported-only\") }}</span>\n </div>\n @if (technicalDetails().length) {\n <button\n type=\"button\"\n class=\"ms-5 flex items-center gap-1 self-start text-primary hover:underline\"\n [attr.aria-expanded]=\"showDetails()\"\n (click)=\"showDetails.set(!showDetails())\"\n >\n <mt-icon\n [icon]=\"showDetails() ? 'arrow.chevron-up' : 'arrow.chevron-down'\"\n />\n {{ showDetails() ? t(\"hide-details\") : t(\"show-details\") }}\n </button>\n @if (showDetails()) {\n <ul class=\"ms-5 flex list-disc flex-col gap-0.5 ps-4\">\n @for (detail of technicalDetails(); track $index) {\n <li>{{ detail }}</li>\n }\n </ul>\n }\n }\n </div>\n }\n </div>\n\n <!-- Close, and Stop / Close replacement while the backend allows it -->\n <div [class]=\"modal.footerClass\">\n @if (canCancel()) {\n <mt-button\n [label]=\"cancelIsStop() ? t('stop') : t('close')\"\n icon=\"general.x-circle\"\n severity=\"danger\"\n variant=\"outlined\"\n [loading]=\"cancelling()\"\n (click)=\"cancel()\"\n />\n }\n <mt-button [label]=\"t('dismiss')\" (click)=\"close()\" />\n </div>\n</ng-container>\n" }]
|
|
3994
|
+
], template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\r\n <div class=\"flex flex-col gap-4 p-4\" [class]=\"modal.contentClass\">\r\n @if (loading()) {\r\n <p-skeleton height=\"7rem\" borderRadius=\"0.375rem\" />\r\n <p-skeleton height=\"6rem\" borderRadius=\"0.375rem\" />\r\n <p-skeleton height=\"12rem\" borderRadius=\"0.375rem\" />\r\n } @else if (loadError()) {\r\n <div\r\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-4 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n role=\"alert\"\r\n >\r\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\r\n <span>{{ loadError() }}</span>\r\n </div>\r\n } @else if (contractOutdated()) {\r\n <div\r\n class=\"rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-700 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200\"\r\n >\r\n {{ t(\"contract-outdated\") }}\r\n </div>\r\n } @else if (summary(); as replacement) {\r\n <!-- Who \u2192 who, the status, and when -->\r\n <section\r\n class=\"flex flex-col gap-3 rounded-md border border-surface bg-content p-4\"\r\n >\r\n <div class=\"flex items-center gap-3\">\r\n <div class=\"flex min-w-0 flex-1 items-center gap-3\">\r\n <mt-avatar\r\n [label]=\"sourceInitials()\"\r\n shape=\"circle\"\r\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\r\n />\r\n <div class=\"min-w-0\">\r\n <div class=\"text-xs text-muted-color\">{{ t(\"from\") }}</div>\r\n <div class=\"truncate font-semibold\" [title]=\"sourceName()\">\r\n {{ sourceName() }}\r\n </div>\r\n </div>\r\n </div>\r\n <mt-icon\r\n icon=\"arrow.arrow-right\"\r\n class=\"shrink-0 text-lg text-muted-color rtl:rotate-180\"\r\n />\r\n <div class=\"flex min-w-0 flex-1 items-center gap-3\">\r\n <mt-avatar\r\n [label]=\"successorInitials()\"\r\n shape=\"circle\"\r\n styleClass=\"bg-primary-50! text-primary-700! dark:bg-primary-950! dark:text-primary-200!\"\r\n />\r\n <div class=\"min-w-0\">\r\n <div class=\"text-xs text-muted-color\">{{ t(\"to\") }}</div>\r\n <div class=\"truncate font-semibold\" [title]=\"successorName()\">\r\n {{ successorName() }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n class=\"flex flex-wrap items-center gap-x-4 gap-y-2 border-t border-surface pt-3 text-xs text-muted-color\"\r\n >\r\n <span\r\n class=\"rounded-md border px-2 py-0.5 font-semibold\"\r\n [class]=\"statusClass()\"\r\n >{{ text.code(\"statuses\", replacement.status) }}</span\r\n >\r\n @if (createdAt(); as created) {\r\n <span class=\"flex items-center gap-1\">\r\n <mt-icon icon=\"time.calendar\" />\r\n {{ t(\"started\") }}\r\n <span class=\"tabular-nums text-color\">{{\r\n created | mtDateFormat: \"dateTime\"\r\n }}</span>\r\n </span>\r\n }\r\n @if (updatedAt(); as updated) {\r\n <span class=\"flex items-center gap-1\">\r\n <mt-icon icon=\"time.clock\" />\r\n {{ t(\"updated\") }}\r\n <span class=\"tabular-nums text-color\">{{\r\n updated | mtDateFormat: \"dateTime\"\r\n }}</span>\r\n </span>\r\n }\r\n </div>\r\n </section>\r\n\r\n <!-- Where it is, in one sentence -->\r\n @if (card(); as status) {\r\n <section\r\n class=\"flex flex-col gap-3 rounded-md border p-4\"\r\n [class]=\"cardBoxClass()\"\r\n role=\"status\"\r\n >\r\n <div class=\"flex items-start gap-3\">\r\n <mt-icon\r\n [icon]=\"status.icon\"\r\n class=\"mt-0.5 shrink-0 text-xl\"\r\n [class]=\"cardIconClass()\"\r\n />\r\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\r\n <div class=\"font-semibold\">{{ status.title }}</div>\r\n @if (status.body) {\r\n <div class=\"text-sm\">{{ status.body }}</div>\r\n }\r\n @if (isFinished() && notCheckedCount() > 0) {\r\n <div class=\"text-sm opacity-80\">\r\n {{ t(\"not-checked-note\", { count: notCheckedCount() }) }}\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n\r\n @if (status.progress) {\r\n <p-progressbar mode=\"indeterminate\" [style]=\"{ height: '4px' }\" />\r\n }\r\n\r\n @if (actionError()) {\r\n <div\r\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n role=\"alert\"\r\n >\r\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\r\n <span>{{ actionError() }}</span>\r\n </div>\r\n }\r\n </section>\r\n }\r\n\r\n <!-- The results: outcomes after Start, what needs an admin first -->\r\n @if (showResults()) {\r\n <section class=\"flex flex-col gap-3\">\r\n <h3 class=\"text-sm font-semibold\">{{ t(\"results-title\") }}</h3>\r\n\r\n @if (tabs().length > 1) {\r\n <mt-tabs\r\n [options]=\"tabs()\"\r\n [active]=\"activeTab()\"\r\n (activeChange)=\"selectTab($event)\"\r\n mode=\"underline\"\r\n size=\"small\"\r\n />\r\n }\r\n @if (rows().length > 8) {\r\n <mt-text-field\r\n [formControl]=\"search\"\r\n icon=\"general.search-lg\"\r\n [placeholder]=\"t('search-results')\"\r\n />\r\n }\r\n\r\n @if (itemsError()) {\r\n <div\r\n class=\"rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n role=\"alert\"\r\n >\r\n {{ itemsError() }}\r\n </div>\r\n } @else if (itemsLoading() && !items().length) {\r\n <div class=\"flex flex-col gap-2\">\r\n @for (row of [1, 2, 3]; track row) {\r\n <p-skeleton height=\"3.5rem\" borderRadius=\"0.375rem\" />\r\n }\r\n </div>\r\n } @else if (!filteredRows().length) {\r\n <div\r\n class=\"rounded-md border border-dashed border-surface p-4 text-center text-sm text-muted-color\"\r\n >\r\n {{ t(\"no-matching-results\") }}\r\n </div>\r\n } @else {\r\n <ul class=\"rounded-md border border-surface bg-content\">\r\n @for (group of visibleGroups(); track group.place.key) {\r\n <li class=\"border-t border-surface first:border-t-0\">\r\n <!-- The place: project, record, request or escalation -->\r\n <div\r\n class=\"flex items-center gap-3 bg-surface-50 px-3 py-2 dark:bg-surface-900\"\r\n >\r\n <mt-icon\r\n [icon]=\"group.place.icon\"\r\n class=\"shrink-0 text-muted-color\"\r\n />\r\n <div class=\"min-w-0 flex-1\">\r\n <div\r\n class=\"truncate text-sm font-semibold\"\r\n [title]=\"group.place.title\"\r\n >\r\n {{ group.place.title }}\r\n </div>\r\n @if (group.place.context) {\r\n <div\r\n class=\"truncate text-xs text-muted-color\"\r\n [title]=\"group.place.context\"\r\n >\r\n {{ group.place.context }}\r\n </div>\r\n }\r\n </div>\r\n @if (group.place.openUrl) {\r\n <a\r\n class=\"flex shrink-0 items-center gap-1 text-xs text-primary hover:underline\"\r\n [href]=\"group.place.openUrl\"\r\n target=\"_blank\"\r\n rel=\"noopener\"\r\n >\r\n {{ t(\"open-project\") }}\r\n <mt-icon\r\n icon=\"general.link-external-01\"\r\n class=\"rtl:-scale-x-100\"\r\n />\r\n </a>\r\n }\r\n </div>\r\n <ul>\r\n @for (row of group.rows; track row.itemId) {\r\n <li\r\n class=\"flex items-start gap-3 border-t border-surface p-3\"\r\n >\r\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\r\n <span class=\"text-sm font-medium\">{{\r\n row.words.headline\r\n }}</span>\r\n @if (row.statusDetail) {\r\n <span class=\"text-xs text-muted-color\">{{\r\n row.statusDetail\r\n }}</span>\r\n }\r\n @if (showDetails() && row.words.technical) {\r\n <span\r\n class=\"truncate font-mono text-[11px] text-muted-color\"\r\n [title]=\"row.words.technical\"\r\n >{{ row.words.technical }}</span\r\n >\r\n }\r\n </div>\r\n <span\r\n class=\"shrink-0 whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium\"\r\n [class]=\"row.statusClass\"\r\n >{{ row.status }}</span\r\n >\r\n </li>\r\n }\r\n @if (group.foldedTeamRoles) {\r\n <li\r\n class=\"flex items-center gap-2 border-t border-surface px-3 py-2 text-xs text-muted-color\"\r\n >\r\n <mt-icon icon=\"general.check-circle\" class=\"shrink-0\" />\r\n {{ t(\"team-note\", { count: group.foldedTeamRoles }) }}\r\n </li>\r\n }\r\n </ul>\r\n </li>\r\n }\r\n </ul>\r\n @if (hiddenRowCount() > 0) {\r\n <mt-button\r\n class=\"self-center\"\r\n [label]=\"t('show-more', { count: hiddenRowCount() })\"\r\n icon=\"arrow.chevron-down\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"showMore()\"\r\n />\r\n }\r\n }\r\n </section>\r\n }\r\n\r\n <!-- One general limit, with every backend code behind a toggle -->\r\n <div class=\"flex flex-col gap-1 text-xs text-muted-color\">\r\n <div class=\"flex items-start gap-1.5\">\r\n <mt-icon icon=\"general.info-circle\" class=\"mt-px shrink-0\" />\r\n <span>{{ t(\"notices.supported-only\") }}</span>\r\n </div>\r\n @if (technicalDetails().length) {\r\n <button\r\n type=\"button\"\r\n class=\"ms-5 flex items-center gap-1 self-start text-primary hover:underline\"\r\n [attr.aria-expanded]=\"showDetails()\"\r\n (click)=\"showDetails.set(!showDetails())\"\r\n >\r\n <mt-icon\r\n [icon]=\"showDetails() ? 'arrow.chevron-up' : 'arrow.chevron-down'\"\r\n />\r\n {{ showDetails() ? t(\"hide-details\") : t(\"show-details\") }}\r\n </button>\r\n @if (showDetails()) {\r\n <ul class=\"ms-5 flex list-disc flex-col gap-0.5 ps-4\">\r\n @for (detail of technicalDetails(); track $index) {\r\n <li>{{ detail }}</li>\r\n }\r\n </ul>\r\n }\r\n }\r\n </div>\r\n }\r\n </div>\r\n\r\n <!-- Close, and Stop / Close replacement while the backend allows it -->\r\n <div [class]=\"modal.footerClass\">\r\n @if (canCancel()) {\r\n <mt-button\r\n [label]=\"cancelIsStop() ? t('stop') : t('close')\"\r\n icon=\"general.x-circle\"\r\n severity=\"danger\"\r\n variant=\"outlined\"\r\n [loading]=\"cancelling()\"\r\n (click)=\"cancel()\"\r\n />\r\n }\r\n <mt-button [label]=\"t('dismiss')\" (click)=\"close()\" />\r\n </div>\r\n</ng-container>\r\n" }]
|
|
3835
3995
|
}], propDecorators: { operationId: [{ type: i0.Input, args: [{ isSignal: true, alias: "operationId", required: true }] }] } });
|
|
3836
3996
|
|
|
3837
3997
|
const PAGE_SIZE = 25;
|
|
@@ -4162,11 +4322,11 @@ class UserReplacements {
|
|
|
4162
4322
|
return user?.displayName || user?.userName || userId;
|
|
4163
4323
|
}
|
|
4164
4324
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserReplacements, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4165
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: UserReplacements, isStandalone: true, selector: "mt-user-replacements", viewQueries: [{ propertyName: "personCol", first: true, predicate: ["personCol"], descendants: true, isSignal: true }, { propertyName: "statusCol", first: true, predicate: ["statusCol"], descendants: true, isSignal: true }, { propertyName: "startedCol", first: true, predicate: ["startedCol"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\n <ng-template #personCol let-row>\n <div class=\"flex min-w-0 items-center gap-3\">\n <mt-avatar\n [label]=\"row.sourceInitials\"\n shape=\"circle\"\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\n />\n <div class=\"flex min-w-0 flex-col\">\n <span class=\"truncate font-medium\">{{ row.sourceName }}</span>\n <span class=\"flex min-w-0 items-center gap-1 text-xs text-muted-color\">\n <mt-icon icon=\"arrow.arrow-right\" class=\"shrink-0 rtl:rotate-180\" />\n <span class=\"truncate\">{{ row.successorName }}</span>\n </span>\n </div>\n </div>\n </ng-template>\n\n <ng-template #statusCol let-row>\n <div class=\"flex flex-col items-start gap-1\">\n <span\n class=\"whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium\"\n [class]=\"row.statusClass\"\n >{{ row.statusLabel }}</span\n >\n @if (row.detail) {\n <span class=\"text-xs tabular-nums text-muted-color\">{{\n row.detail\n }}</span>\n }\n </div>\n </ng-template>\n\n <ng-template #startedCol let-row>\n @if (row.createdAt) {\n <span class=\"whitespace-nowrap tabular-nums\">{{\n row.createdAt | mtDateFormat: \"dateTime\"\n }}</span>\n }\n </ng-template>\n\n <div class=\"mt-5 flex flex-col gap-4\">\n <div class=\"flex justify-end\">\n <mt-button\n [label]=\"t('refresh')\"\n icon=\"arrow.refresh-cw-02\"\n variant=\"outlined\"\n size=\"small\"\n [disabled]=\"loading()\"\n (click)=\"reload()\"\n />\n </div>\n\n @if (error()) {\n <div\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n >\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\n <span>{{ error() }}</span>\n </div>\n }\n\n <mt-table\n [tabs]=\"tabs()\"\n [activeTab]=\"filter()\"\n (activeTabChange)=\"setFilter($event)\"\n [data]=\"rows()\"\n [columns]=\"columns()\"\n [rowActions]=\"rowActions()\"\n [loading]=\"loading()\"\n [generalSearch]=\"true\"\n [clickableRows]=\"true\"\n (rowClick)=\"open($event.operationId)\"\n dataKey=\"operationId\"\n [emptyTitle]=\"emptyTitle()\"\n [emptyDescription]=\"emptyDescription()\"\n />\n\n @if (nextCursor() && !loading()) {\n <mt-button\n class=\"self-center\"\n [label]=\"t('list.load-more')\"\n icon=\"arrow.chevron-down\"\n variant=\"outlined\"\n size=\"small\"\n [loading]=\"loadingMore()\"\n (click)=\"loadMore()\"\n />\n }\n </div>\n</ng-container>\n", dependencies: [{ kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "pipe", type: MTDateFormatPipe, name: "mtDateFormat" }] });
|
|
4325
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: UserReplacements, isStandalone: true, selector: "mt-user-replacements", viewQueries: [{ propertyName: "personCol", first: true, predicate: ["personCol"], descendants: true, isSignal: true }, { propertyName: "statusCol", first: true, predicate: ["statusCol"], descendants: true, isSignal: true }, { propertyName: "startedCol", first: true, predicate: ["startedCol"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\r\n <ng-template #personCol let-row>\r\n <div class=\"flex min-w-0 items-center gap-3\">\r\n <mt-avatar\r\n [label]=\"row.sourceInitials\"\r\n shape=\"circle\"\r\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\r\n />\r\n <div class=\"flex min-w-0 flex-col\">\r\n <span class=\"truncate font-medium\">{{ row.sourceName }}</span>\r\n <span class=\"flex min-w-0 items-center gap-1 text-xs text-muted-color\">\r\n <mt-icon icon=\"arrow.arrow-right\" class=\"shrink-0 rtl:rotate-180\" />\r\n <span class=\"truncate\">{{ row.successorName }}</span>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #statusCol let-row>\r\n <div class=\"flex flex-col items-start gap-1\">\r\n <span\r\n class=\"whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium\"\r\n [class]=\"row.statusClass\"\r\n >{{ row.statusLabel }}</span\r\n >\r\n @if (row.detail) {\r\n <span class=\"text-xs tabular-nums text-muted-color\">{{\r\n row.detail\r\n }}</span>\r\n }\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #startedCol let-row>\r\n @if (row.createdAt) {\r\n <span class=\"whitespace-nowrap tabular-nums\">{{\r\n row.createdAt | mtDateFormat: \"dateTime\"\r\n }}</span>\r\n }\r\n </ng-template>\r\n\r\n <div class=\"mt-5 flex flex-col gap-4\">\r\n <div class=\"flex justify-end\">\r\n <mt-button\r\n [label]=\"t('refresh')\"\r\n icon=\"arrow.refresh-cw-02\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [disabled]=\"loading()\"\r\n (click)=\"reload()\"\r\n />\r\n </div>\r\n\r\n @if (error()) {\r\n <div\r\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n >\r\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\r\n <span>{{ error() }}</span>\r\n </div>\r\n }\r\n\r\n <mt-table\r\n [tabs]=\"tabs()\"\r\n [activeTab]=\"filter()\"\r\n (activeTabChange)=\"setFilter($event)\"\r\n [data]=\"rows()\"\r\n [columns]=\"columns()\"\r\n [rowActions]=\"rowActions()\"\r\n [loading]=\"loading()\"\r\n [generalSearch]=\"true\"\r\n [clickableRows]=\"true\"\r\n (rowClick)=\"open($event.operationId)\"\r\n dataKey=\"operationId\"\r\n [emptyTitle]=\"emptyTitle()\"\r\n [emptyDescription]=\"emptyDescription()\"\r\n />\r\n\r\n @if (nextCursor() && !loading()) {\r\n <mt-button\r\n class=\"self-center\"\r\n [label]=\"t('list.load-more')\"\r\n icon=\"arrow.chevron-down\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [loading]=\"loadingMore()\"\r\n (click)=\"loadMore()\"\r\n />\r\n }\r\n </div>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "searchScope", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "pipe", type: MTDateFormatPipe, name: "mtDateFormat" }] });
|
|
4166
4326
|
}
|
|
4167
4327
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserReplacements, decorators: [{
|
|
4168
4328
|
type: Component,
|
|
4169
|
-
args: [{ selector: 'mt-user-replacements', imports: [TranslocoDirective, Table, Avatar, Button, Icon, MTDateFormatPipe], template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\n <ng-template #personCol let-row>\n <div class=\"flex min-w-0 items-center gap-3\">\n <mt-avatar\n [label]=\"row.sourceInitials\"\n shape=\"circle\"\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\n />\n <div class=\"flex min-w-0 flex-col\">\n <span class=\"truncate font-medium\">{{ row.sourceName }}</span>\n <span class=\"flex min-w-0 items-center gap-1 text-xs text-muted-color\">\n <mt-icon icon=\"arrow.arrow-right\" class=\"shrink-0 rtl:rotate-180\" />\n <span class=\"truncate\">{{ row.successorName }}</span>\n </span>\n </div>\n </div>\n </ng-template>\n\n <ng-template #statusCol let-row>\n <div class=\"flex flex-col items-start gap-1\">\n <span\n class=\"whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium\"\n [class]=\"row.statusClass\"\n >{{ row.statusLabel }}</span\n >\n @if (row.detail) {\n <span class=\"text-xs tabular-nums text-muted-color\">{{\n row.detail\n }}</span>\n }\n </div>\n </ng-template>\n\n <ng-template #startedCol let-row>\n @if (row.createdAt) {\n <span class=\"whitespace-nowrap tabular-nums\">{{\n row.createdAt | mtDateFormat: \"dateTime\"\n }}</span>\n }\n </ng-template>\n\n <div class=\"mt-5 flex flex-col gap-4\">\n <div class=\"flex justify-end\">\n <mt-button\n [label]=\"t('refresh')\"\n icon=\"arrow.refresh-cw-02\"\n variant=\"outlined\"\n size=\"small\"\n [disabled]=\"loading()\"\n (click)=\"reload()\"\n />\n </div>\n\n @if (error()) {\n <div\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\n >\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\n <span>{{ error() }}</span>\n </div>\n }\n\n <mt-table\n [tabs]=\"tabs()\"\n [activeTab]=\"filter()\"\n (activeTabChange)=\"setFilter($event)\"\n [data]=\"rows()\"\n [columns]=\"columns()\"\n [rowActions]=\"rowActions()\"\n [loading]=\"loading()\"\n [generalSearch]=\"true\"\n [clickableRows]=\"true\"\n (rowClick)=\"open($event.operationId)\"\n dataKey=\"operationId\"\n [emptyTitle]=\"emptyTitle()\"\n [emptyDescription]=\"emptyDescription()\"\n />\n\n @if (nextCursor() && !loading()) {\n <mt-button\n class=\"self-center\"\n [label]=\"t('list.load-more')\"\n icon=\"arrow.chevron-down\"\n variant=\"outlined\"\n size=\"small\"\n [loading]=\"loadingMore()\"\n (click)=\"loadMore()\"\n />\n }\n </div>\n</ng-container>\n" }]
|
|
4329
|
+
args: [{ selector: 'mt-user-replacements', imports: [TranslocoDirective, Table, Avatar, Button, Icon, MTDateFormatPipe], template: "<ng-container *transloco=\"let t; prefix: 'users-groups.replacement'\">\r\n <ng-template #personCol let-row>\r\n <div class=\"flex min-w-0 items-center gap-3\">\r\n <mt-avatar\r\n [label]=\"row.sourceInitials\"\r\n shape=\"circle\"\r\n styleClass=\"bg-surface-100! text-color! dark:bg-surface-800!\"\r\n />\r\n <div class=\"flex min-w-0 flex-col\">\r\n <span class=\"truncate font-medium\">{{ row.sourceName }}</span>\r\n <span class=\"flex min-w-0 items-center gap-1 text-xs text-muted-color\">\r\n <mt-icon icon=\"arrow.arrow-right\" class=\"shrink-0 rtl:rotate-180\" />\r\n <span class=\"truncate\">{{ row.successorName }}</span>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #statusCol let-row>\r\n <div class=\"flex flex-col items-start gap-1\">\r\n <span\r\n class=\"whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium\"\r\n [class]=\"row.statusClass\"\r\n >{{ row.statusLabel }}</span\r\n >\r\n @if (row.detail) {\r\n <span class=\"text-xs tabular-nums text-muted-color\">{{\r\n row.detail\r\n }}</span>\r\n }\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #startedCol let-row>\r\n @if (row.createdAt) {\r\n <span class=\"whitespace-nowrap tabular-nums\">{{\r\n row.createdAt | mtDateFormat: \"dateTime\"\r\n }}</span>\r\n }\r\n </ng-template>\r\n\r\n <div class=\"mt-5 flex flex-col gap-4\">\r\n <div class=\"flex justify-end\">\r\n <mt-button\r\n [label]=\"t('refresh')\"\r\n icon=\"arrow.refresh-cw-02\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [disabled]=\"loading()\"\r\n (click)=\"reload()\"\r\n />\r\n </div>\r\n\r\n @if (error()) {\r\n <div\r\n class=\"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950 dark:text-red-200\"\r\n >\r\n <mt-icon icon=\"alert.alert-circle\" class=\"mt-0.5 shrink-0\" />\r\n <span>{{ error() }}</span>\r\n </div>\r\n }\r\n\r\n <mt-table\r\n [tabs]=\"tabs()\"\r\n [activeTab]=\"filter()\"\r\n (activeTabChange)=\"setFilter($event)\"\r\n [data]=\"rows()\"\r\n [columns]=\"columns()\"\r\n [rowActions]=\"rowActions()\"\r\n [loading]=\"loading()\"\r\n [generalSearch]=\"true\"\r\n [clickableRows]=\"true\"\r\n (rowClick)=\"open($event.operationId)\"\r\n dataKey=\"operationId\"\r\n [emptyTitle]=\"emptyTitle()\"\r\n [emptyDescription]=\"emptyDescription()\"\r\n />\r\n\r\n @if (nextCursor() && !loading()) {\r\n <mt-button\r\n class=\"self-center\"\r\n [label]=\"t('list.load-more')\"\r\n icon=\"arrow.chevron-down\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [loading]=\"loadingMore()\"\r\n (click)=\"loadMore()\"\r\n />\r\n }\r\n </div>\r\n</ng-container>\r\n" }]
|
|
4170
4330
|
}], propDecorators: { personCol: [{ type: i0.ViewChild, args: ['personCol', { isSignal: true }] }], statusCol: [{ type: i0.ViewChild, args: ['statusCol', { isSignal: true }] }], startedCol: [{ type: i0.ViewChild, args: ['startedCol', { isSignal: true }] }] } });
|
|
4171
4331
|
|
|
4172
4332
|
/**
|