@alfresco/adf-core 8.1.0-15902121227 → 8.1.0-15928551305
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/esm2022/breadcrumbs/components/breadcrumb/breadcrumb.component.mjs +5 -6
- package/esm2022/feature-flags/lib/components/flags/flags.component.mjs +4 -5
- package/esm2022/lib/about/about-extension-list/about-extension-list.component.mjs +4 -5
- package/esm2022/lib/about/about-license-list/about-license-list.component.mjs +5 -6
- package/esm2022/lib/about/about-module-list/module-list.component.mjs +5 -6
- package/esm2022/lib/about/about-package/package-list.component.mjs +5 -6
- package/esm2022/lib/about/about-repository-info/about-repository-info.component.mjs +4 -5
- package/esm2022/lib/about/about-server-settings/about-server-settings.component.mjs +5 -6
- package/esm2022/lib/about/about-status-list/about-status-list.component.mjs +5 -6
- package/esm2022/lib/card-view/components/card-view-arrayitem/card-view-arrayitem.component.mjs +8 -9
- package/esm2022/lib/card-view/components/card-view-boolitem/card-view-boolitem.component.mjs +4 -5
- package/esm2022/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.mjs +9 -10
- package/esm2022/lib/card-view/components/card-view-keyvaluepairsitem/card-view-keyvaluepairsitem.component.mjs +9 -10
- package/esm2022/lib/card-view/components/card-view-mapitem/card-view-mapitem.component.mjs +4 -5
- package/esm2022/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.mjs +10 -11
- package/esm2022/lib/card-view/components/card-view-selectitem/select-filter-input/select-filter-input.component.mjs +6 -7
- package/esm2022/lib/card-view/components/card-view-textitem/card-view-textitem.component.mjs +10 -11
- package/esm2022/lib/clipboard/clipboard.directive.mjs +4 -5
- package/esm2022/lib/clipboard/clipboard.module.mjs +2 -2
- package/esm2022/lib/comments/comment-list/comment-list.component.mjs +4 -5
- package/esm2022/lib/comments/comments.component.mjs +8 -9
- package/esm2022/lib/context-menu/context-menu-list.component.mjs +6 -7
- package/esm2022/lib/core.module.mjs +3 -3
- package/esm2022/lib/datatable/components/columns-selector/columns-selector.component.mjs +9 -10
- package/esm2022/lib/datatable/components/datatable/datatable.component.mjs +7 -8
- package/esm2022/lib/dialogs/dialog/dialog.component.mjs +6 -7
- package/esm2022/lib/dialogs/edit-json/edit-json.dialog.mjs +9 -8
- package/esm2022/lib/dialogs/edit-json/edit-json.dialog.module.mjs +6 -10
- package/esm2022/lib/dialogs/unsaved-changes-dialog/unsaved-changes-dialog.component.mjs +8 -9
- package/esm2022/lib/dynamic-chip-list/dynamic-chip-list.component.mjs +6 -7
- package/esm2022/lib/form/components/form-renderer.component.mjs +4 -5
- package/esm2022/lib/form/components/widgets/amount/amount.widget.mjs +4 -5
- package/esm2022/lib/form/components/widgets/base-viewer/base-viewer.widget.mjs +4 -5
- package/esm2022/lib/form/components/widgets/checkbox/checkbox.widget.mjs +4 -5
- package/esm2022/lib/form/components/widgets/date/date.widget.mjs +7 -8
- package/esm2022/lib/form/components/widgets/date-time/date-time.widget.mjs +8 -9
- package/esm2022/lib/form/components/widgets/decimal/decimal.component.mjs +7 -8
- package/esm2022/lib/form/components/widgets/display-text/display-text.widget.mjs +4 -5
- package/esm2022/lib/form/components/widgets/error/error.component.mjs +4 -5
- package/esm2022/lib/form/components/widgets/header/header.widget.mjs +5 -6
- package/esm2022/lib/form/components/widgets/hyperlink/hyperlink.widget.mjs +4 -6
- package/esm2022/lib/form/components/widgets/json/json.widget.mjs +5 -6
- package/esm2022/lib/form/components/widgets/multiline-text/multiline-text.widget.mjs +7 -8
- package/esm2022/lib/form/components/widgets/number/number.widget.mjs +7 -8
- package/esm2022/lib/form/components/widgets/text/text.widget.mjs +7 -8
- package/esm2022/lib/form/form-base.module.mjs +2 -2
- package/esm2022/lib/identity-user-info/identity-user-info.component.mjs +4 -5
- package/esm2022/lib/info-drawer/info-drawer.component.mjs +6 -7
- package/esm2022/lib/language-menu/language-picker.component.mjs +5 -6
- package/esm2022/lib/layout/components/header/header.component.mjs +4 -5
- package/esm2022/lib/login/components/login/login.component.mjs +10 -11
- package/esm2022/lib/login/components/login-dialog/login-dialog.component.mjs +5 -6
- package/esm2022/lib/notifications/components/notification-history.component.mjs +7 -8
- package/esm2022/lib/notifications/services/notification.service.mjs +1 -1
- package/esm2022/lib/pagination/infinite-pagination.component.mjs +4 -5
- package/esm2022/lib/pagination/pagination.component.mjs +4 -4
- package/esm2022/lib/search-text/search-text-input.component.mjs +7 -18
- package/esm2022/lib/snackbar-content/snackbar-content.component.mjs +9 -8
- package/esm2022/lib/snackbar-content/snackbar-content.module.mjs +5 -10
- package/esm2022/lib/sorting-picker/sorting-picker.component.mjs +9 -10
- package/esm2022/lib/templates/empty-content/empty-content.component.mjs +4 -5
- package/esm2022/lib/templates/error-content/error-content.component.mjs +4 -5
- package/esm2022/lib/toolbar/toolbar.component.mjs +4 -5
- package/esm2022/lib/viewer/components/download-prompt-dialog/download-prompt-dialog.component.mjs +5 -6
- package/esm2022/lib/viewer/components/img-viewer/img-viewer.component.mjs +6 -7
- package/esm2022/lib/viewer/components/pdf-viewer/pdf-viewer.component.mjs +5 -6
- package/esm2022/lib/viewer/components/pdf-viewer-password-dialog/pdf-viewer-password-dialog.mjs +5 -6
- package/esm2022/lib/viewer/components/pdf-viewer-thumb/pdf-viewer-thumb.component.mjs +4 -5
- package/esm2022/lib/viewer/components/unknown-format/unknown-format.component.mjs +4 -5
- package/esm2022/lib/viewer/components/viewer-render/viewer-render.component.mjs +5 -6
- package/esm2022/lib/viewer/components/viewer.component.mjs +6 -7
- package/esm2022/lib/viewer/viewer.module.mjs +1 -3
- package/fesm2022/adf-core.mjs +272 -283
- package/fesm2022/adf-core.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-breadcrumbs.mjs +4 -5
- package/fesm2022/alfresco-adf-core-breadcrumbs.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-feature-flags.mjs +3 -4
- package/fesm2022/alfresco-adf-core-feature-flags.mjs.map +1 -1
- package/lib/dialogs/edit-json/edit-json.dialog.d.ts +1 -1
- package/lib/dialogs/edit-json/edit-json.dialog.module.d.ts +1 -6
- package/lib/form/components/widgets/hyperlink/hyperlink.widget.d.ts +16 -0
- package/lib/notifications/services/notification.service.d.ts +1 -1
- package/lib/snackbar-content/snackbar-content.component.d.ts +1 -1
- package/lib/snackbar-content/snackbar-content.module.d.ts +2 -6
- package/package.json +4 -4
|
@@ -2,13 +2,12 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Directive, Component, ViewChild, EventEmitter, ChangeDetectionStrategy, Input, Output, ViewChildren, ContentChildren } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i3 from '@angular/material/button';
|
|
6
6
|
import { MatButtonModule } from '@angular/material/button';
|
|
7
7
|
import * as i2 from '@angular/material/icon';
|
|
8
8
|
import { MatIconModule } from '@angular/material/icon';
|
|
9
9
|
import { startWith, map } from 'rxjs/operators';
|
|
10
|
-
import
|
|
11
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
10
|
+
import { TranslatePipe } from '@ngx-translate/core';
|
|
12
11
|
|
|
13
12
|
/*!
|
|
14
13
|
* @license
|
|
@@ -145,11 +144,11 @@ class BreadcrumbComponent {
|
|
|
145
144
|
return breadcrumbItems.toArray().map((breadcrumbItem) => breadcrumbItem.templateRef);
|
|
146
145
|
}
|
|
147
146
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
148
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: BreadcrumbComponent, isStandalone: true, selector: "adf-breadcrumb", inputs: { compact: "compact" }, outputs: { compactChange: "compactChange" }, queries: [{ propertyName: "breadcrumbItems", predicate: BreadcrumbItemComponent }], viewQueries: [{ propertyName: "breadcrumbFocusItems", predicate: BreadcrumbFocusDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <nav class=\"adf-breadcrumb\" [class.adf-breadcrumb--compact]=\"compact\" [attr.aria-label]=\"'CORE.BREADCRUMBS.TITLE' | translate\" >\n <ol>\n <ng-container *ngFor=\"let breadcrumbTemplate of selectedBreadcrumbs; last as last\">\n <li adf-breadcrumb-focus class=\"adf-breadcrumb__item-wrapper\">\n <ng-container *ngTemplateOutlet=\"breadcrumbTemplate\" />\n <div *ngIf=\"!last\" class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-before--compact]=\"compact\" ></div>\n </li>\n\n <li *ngIf=\"!last && compact === true\" class=\"adf-breadcrumb__show-all-button-wrapper\">\n <button\n mat-icon-button\n (click)=\"toggleCompact()\"\n color=\"primary\"\n [title]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n [attr.aria-label]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n >\n <mat-icon class=\"adf-breadcrumb__show-all-button-icon--rotate\">more_vert</mat-icon >\n </button>\n <div class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-after--compact]=\"compact\" ></div>\n </li>\n </ng-container>\n </ol>\n </nav>\n</ng-container>\n", styles: ["ol{margin:0;padding:0;display:flex;flex-wrap:wrap;min-height:40px}.adf-breadcrumb__item-wrapper{display:flex;align-items:center}.adf-breadcrumb__chevron{background-image:url('data:image/svg+xml,<svg width=\"5\" height=\"8\" viewBox=\"0 0 5 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0.229292 0.234315C-0.0751287 0.546734 -0.0751287 1.05327 0.229292 1.36569L2.79616 4L0.229293 6.63432C-0.0751284 6.94673 -0.0751284 7.45327 0.229293 7.76569C0.533714 8.0781 1.02728 8.0781 1.3317 7.76569L4.44943 4.56604L5.00098 4L1.3317 0.234315C1.02728 -0.0781049 0.533713 -0.0781049 0.229292 0.234315Z\" fill=\"%236B7280\"/>%0A</svg>%0A');background-repeat:no-repeat;background-position:center;width:5px;height:8px;margin:0 8px}:host-context([dir=rtl]) .adf-breadcrumb__chevron{transform:scaleX(-1)}.adf-breadcrumb__chevron-before--compact{margin:0 4px 0 8px}:host-context([dir=rtl]) .adf-breadcrumb__chevron-before--compact{margin:0 8px 0 4px}.adf-breadcrumb__chevron-after--compact{margin:0 8px 0 4px}:host-context([dir=rtl]) .adf-breadcrumb__chevron-after--compact{margin:0 4px 0 8px}.adf-breadcrumb__show-all-button-wrapper{display:flex;align-items:center}.adf-breadcrumb__show-all-button-icon--rotate{transform:rotate(90deg)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "
|
|
147
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: BreadcrumbComponent, isStandalone: true, selector: "adf-breadcrumb", inputs: { compact: "compact" }, outputs: { compactChange: "compactChange" }, queries: [{ propertyName: "breadcrumbItems", predicate: BreadcrumbItemComponent }], viewQueries: [{ propertyName: "breadcrumbFocusItems", predicate: BreadcrumbFocusDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <nav class=\"adf-breadcrumb\" [class.adf-breadcrumb--compact]=\"compact\" [attr.aria-label]=\"'CORE.BREADCRUMBS.TITLE' | translate\" >\n <ol>\n <ng-container *ngFor=\"let breadcrumbTemplate of selectedBreadcrumbs; last as last\">\n <li adf-breadcrumb-focus class=\"adf-breadcrumb__item-wrapper\">\n <ng-container *ngTemplateOutlet=\"breadcrumbTemplate\" />\n <div *ngIf=\"!last\" class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-before--compact]=\"compact\" ></div>\n </li>\n\n <li *ngIf=\"!last && compact === true\" class=\"adf-breadcrumb__show-all-button-wrapper\">\n <button\n mat-icon-button\n (click)=\"toggleCompact()\"\n color=\"primary\"\n [title]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n [attr.aria-label]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n >\n <mat-icon class=\"adf-breadcrumb__show-all-button-icon--rotate\">more_vert</mat-icon >\n </button>\n <div class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-after--compact]=\"compact\" ></div>\n </li>\n </ng-container>\n </ol>\n </nav>\n</ng-container>\n", styles: ["ol{margin:0;padding:0;display:flex;flex-wrap:wrap;min-height:40px}.adf-breadcrumb__item-wrapper{display:flex;align-items:center}.adf-breadcrumb__chevron{background-image:url('data:image/svg+xml,<svg width=\"5\" height=\"8\" viewBox=\"0 0 5 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0.229292 0.234315C-0.0751287 0.546734 -0.0751287 1.05327 0.229292 1.36569L2.79616 4L0.229293 6.63432C-0.0751284 6.94673 -0.0751284 7.45327 0.229293 7.76569C0.533714 8.0781 1.02728 8.0781 1.3317 7.76569L4.44943 4.56604L5.00098 4L1.3317 0.234315C1.02728 -0.0781049 0.533713 -0.0781049 0.229292 0.234315Z\" fill=\"%236B7280\"/>%0A</svg>%0A');background-repeat:no-repeat;background-position:center;width:5px;height:8px;margin:0 8px}:host-context([dir=rtl]) .adf-breadcrumb__chevron{transform:scaleX(-1)}.adf-breadcrumb__chevron-before--compact{margin:0 4px 0 8px}:host-context([dir=rtl]) .adf-breadcrumb__chevron-before--compact{margin:0 8px 0 4px}.adf-breadcrumb__chevron-after--compact{margin:0 8px 0 4px}:host-context([dir=rtl]) .adf-breadcrumb__chevron-after--compact{margin:0 4px 0 8px}.adf-breadcrumb__show-all-button-wrapper{display:flex;align-items:center}.adf-breadcrumb__show-all-button-icon--rotate{transform:rotate(90deg)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: BreadcrumbFocusDirective, selector: "[adf-breadcrumb-focus]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
149
148
|
}
|
|
150
149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
151
150
|
type: Component,
|
|
152
|
-
args: [{ standalone: true, selector: 'adf-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, MatIconModule,
|
|
151
|
+
args: [{ standalone: true, selector: 'adf-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, MatIconModule, TranslatePipe, MatButtonModule, BreadcrumbFocusDirective], template: "<ng-container>\n <nav class=\"adf-breadcrumb\" [class.adf-breadcrumb--compact]=\"compact\" [attr.aria-label]=\"'CORE.BREADCRUMBS.TITLE' | translate\" >\n <ol>\n <ng-container *ngFor=\"let breadcrumbTemplate of selectedBreadcrumbs; last as last\">\n <li adf-breadcrumb-focus class=\"adf-breadcrumb__item-wrapper\">\n <ng-container *ngTemplateOutlet=\"breadcrumbTemplate\" />\n <div *ngIf=\"!last\" class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-before--compact]=\"compact\" ></div>\n </li>\n\n <li *ngIf=\"!last && compact === true\" class=\"adf-breadcrumb__show-all-button-wrapper\">\n <button\n mat-icon-button\n (click)=\"toggleCompact()\"\n color=\"primary\"\n [title]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n [attr.aria-label]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n >\n <mat-icon class=\"adf-breadcrumb__show-all-button-icon--rotate\">more_vert</mat-icon >\n </button>\n <div class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-after--compact]=\"compact\" ></div>\n </li>\n </ng-container>\n </ol>\n </nav>\n</ng-container>\n", styles: ["ol{margin:0;padding:0;display:flex;flex-wrap:wrap;min-height:40px}.adf-breadcrumb__item-wrapper{display:flex;align-items:center}.adf-breadcrumb__chevron{background-image:url('data:image/svg+xml,<svg width=\"5\" height=\"8\" viewBox=\"0 0 5 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0.229292 0.234315C-0.0751287 0.546734 -0.0751287 1.05327 0.229292 1.36569L2.79616 4L0.229293 6.63432C-0.0751284 6.94673 -0.0751284 7.45327 0.229293 7.76569C0.533714 8.0781 1.02728 8.0781 1.3317 7.76569L4.44943 4.56604L5.00098 4L1.3317 0.234315C1.02728 -0.0781049 0.533713 -0.0781049 0.229292 0.234315Z\" fill=\"%236B7280\"/>%0A</svg>%0A');background-repeat:no-repeat;background-position:center;width:5px;height:8px;margin:0 8px}:host-context([dir=rtl]) .adf-breadcrumb__chevron{transform:scaleX(-1)}.adf-breadcrumb__chevron-before--compact{margin:0 4px 0 8px}:host-context([dir=rtl]) .adf-breadcrumb__chevron-before--compact{margin:0 8px 0 4px}.adf-breadcrumb__chevron-after--compact{margin:0 8px 0 4px}:host-context([dir=rtl]) .adf-breadcrumb__chevron-after--compact{margin:0 4px 0 8px}.adf-breadcrumb__show-all-button-wrapper{display:flex;align-items:center}.adf-breadcrumb__show-all-button-icon--rotate{transform:rotate(90deg)}\n"] }]
|
|
153
152
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { compact: [{
|
|
154
153
|
type: Input
|
|
155
154
|
}], compactChange: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alfresco-adf-core-breadcrumbs.mjs","sources":["../../../../lib/core/breadcrumbs/src/directives/breadcrumb-focus.directive.ts","../../../../lib/core/breadcrumbs/src/components/breadcrumb-item/breadcrumb-item.component.ts","../../../../lib/core/breadcrumbs/src/components/breadcrumb/breadcrumb.component.ts","../../../../lib/core/breadcrumbs/src/components/breadcrumb/breadcrumb.component.html","../../../../lib/core/breadcrumbs/src/index.ts","../../../../lib/core/breadcrumbs/src/alfresco-adf-core-breadcrumbs.ts"],"sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Directive, ElementRef } from '@angular/core';\n\n/** @internal */\n@Directive({\n standalone: true,\n selector: '[adf-breadcrumb-focus]',\n host: {\n class: 'adf-breadcrumb-focus'\n }\n})\nexport class BreadcrumbFocusDirective {\n constructor(private elementRef: ElementRef) {}\n\n focusOnFirstFocusableElement() {\n this.getFocusableElements(this.elementRef.nativeElement)[0].focus();\n }\n\n private getFocusableElements(root: HTMLElement): HTMLElement[] {\n const allFocusableElements = `button, a, input, select, textarea, [tabindex]:not([tabindex=\"-1\"])`;\n return Array.from(root.querySelectorAll(allFocusableElements) as NodeListOf<HTMLElement>).filter(\n (element) => !element.hasAttribute('disabled') && element.tabIndex >= 0\n );\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n standalone: true,\n selector: 'adf-breadcrumb-item',\n template: `\n <ng-template #breadcrumbItemTemplate>\n <ng-content />\n </ng-template>\n `\n})\nexport class BreadcrumbItemComponent {\n @ViewChild('breadcrumbItemTemplate', { static: true })\n templateRef!: TemplateRef<any>;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n QueryList,\n SimpleChanges,\n TemplateRef,\n ViewChildren\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { map, startWith } from 'rxjs/operators';\nimport { TranslateModule } from '@ngx-translate/core';\n\nimport { BreadcrumbFocusDirective } from '../../directives/breadcrumb-focus.directive';\nimport { BreadcrumbItemComponent } from '../breadcrumb-item/breadcrumb-item.component';\n\n@Component({\n standalone: true,\n selector: 'adf-breadcrumb',\n templateUrl: './breadcrumb.component.html',\n styleUrls: ['./breadcrumb.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule, BreadcrumbFocusDirective]\n})\nexport class BreadcrumbComponent implements AfterContentInit, OnChanges {\n private _breadcrumbTemplateRefs: Array<TemplateRef<unknown>> = [];\n\n @Input()\n compact = false;\n\n @Output()\n compactChange: EventEmitter<boolean> = new EventEmitter();\n\n @ViewChildren(BreadcrumbFocusDirective)\n breadcrumbFocusItems!: QueryList<BreadcrumbFocusDirective>;\n\n @ContentChildren(BreadcrumbItemComponent)\n breadcrumbItems!: QueryList<BreadcrumbItemComponent>;\n\n selectedBreadcrumbs: Array<TemplateRef<unknown>> = [];\n\n constructor(private cdr: ChangeDetectorRef) {}\n\n ngAfterContentInit() {\n this.breadcrumbItems.changes\n .pipe(\n startWith(this.breadcrumbItems),\n map((breadcrumbItems: QueryList<BreadcrumbItemComponent>) => this.mapToTemplateRefs(breadcrumbItems))\n )\n .subscribe((templateRefs) => {\n this._breadcrumbTemplateRefs = templateRefs;\n this.setBreadcrumbs(templateRefs);\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.compact) {\n this.setBreadcrumbs(this._breadcrumbTemplateRefs);\n }\n }\n\n toggleCompact(compact = false) {\n this.compact = compact;\n this.setBreadcrumbs(this._breadcrumbTemplateRefs);\n this.compactChange.emit(this.compact);\n if (!compact) {\n this.breadcrumbFocusItems.get(1)?.focusOnFirstFocusableElement();\n }\n }\n\n private setBreadcrumbs(breadcrumbs: Array<TemplateRef<unknown>>) {\n this.selectedBreadcrumbs = this.compact && breadcrumbs.length > 2 ? [breadcrumbs[0], breadcrumbs[breadcrumbs.length - 1]] : [...breadcrumbs];\n this.cdr.detectChanges();\n }\n\n private mapToTemplateRefs(breadcrumbItems: QueryList<BreadcrumbItemComponent>) {\n return breadcrumbItems.toArray().map((breadcrumbItem) => breadcrumbItem.templateRef);\n }\n}\n","<ng-container>\n <nav class=\"adf-breadcrumb\" [class.adf-breadcrumb--compact]=\"compact\" [attr.aria-label]=\"'CORE.BREADCRUMBS.TITLE' | translate\" >\n <ol>\n <ng-container *ngFor=\"let breadcrumbTemplate of selectedBreadcrumbs; last as last\">\n <li adf-breadcrumb-focus class=\"adf-breadcrumb__item-wrapper\">\n <ng-container *ngTemplateOutlet=\"breadcrumbTemplate\" />\n <div *ngIf=\"!last\" class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-before--compact]=\"compact\" ></div>\n </li>\n\n <li *ngIf=\"!last && compact === true\" class=\"adf-breadcrumb__show-all-button-wrapper\">\n <button\n mat-icon-button\n (click)=\"toggleCompact()\"\n color=\"primary\"\n [title]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n [attr.aria-label]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n >\n <mat-icon class=\"adf-breadcrumb__show-all-button-icon--rotate\">more_vert</mat-icon >\n </button>\n <div class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-after--compact]=\"compact\" ></div>\n </li>\n </ng-container>\n </ol>\n </nav>\n</ng-container>\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { BreadcrumbComponent } from './components/breadcrumb/breadcrumb.component';\nexport { BreadcrumbItemComponent } from './components/breadcrumb-item/breadcrumb-item.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;AAIH;MAQa,wBAAwB,CAAA;AACjC,IAAA,WAAA,CAAoB,UAAsB,EAAA;QAAtB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAY;KAAI;IAE9C,4BAA4B,GAAA;AACxB,QAAA,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;KACvE;AAEO,IAAA,oBAAoB,CAAC,IAAiB,EAAA;QAC1C,MAAM,oBAAoB,GAAG,CAAA,mEAAA,CAAqE,CAAC;AACnG,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAA4B,CAAC,CAAC,MAAM,CAC5F,CAAC,OAAO,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,CAC1E,CAAC;KACL;+GAZQ,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,sBAAA,EAAA,EAAA,QAAA,EAA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I,YACN,gBAAgB,EAAA,eAAA,EAGT,uBAAuB,CAAC,MAAM,EACtC,OAAA,EAAA,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,wBAAwB,CAAC,EAAA,QAAA,EAAA,stCAAA,EAAA,MAAA,EAAA,CAAA,uwCAAA,CAAA,EAAA,CAAA;sFAMlG,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,aAAa,EAAA,CAAA;sBADZ,MAAM;gBAIP,oBAAoB,EAAA,CAAA;sBADnB,YAAY;uBAAC,wBAAwB,CAAA;gBAItC,eAAe,EAAA,CAAA;sBADd,eAAe;uBAAC,uBAAuB,CAAA;;;AE7D5C;;;;;;;;;;;;;;;AAeG;;ACfH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"alfresco-adf-core-breadcrumbs.mjs","sources":["../../../../lib/core/breadcrumbs/src/directives/breadcrumb-focus.directive.ts","../../../../lib/core/breadcrumbs/src/components/breadcrumb-item/breadcrumb-item.component.ts","../../../../lib/core/breadcrumbs/src/components/breadcrumb/breadcrumb.component.ts","../../../../lib/core/breadcrumbs/src/components/breadcrumb/breadcrumb.component.html","../../../../lib/core/breadcrumbs/src/index.ts","../../../../lib/core/breadcrumbs/src/alfresco-adf-core-breadcrumbs.ts"],"sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Directive, ElementRef } from '@angular/core';\n\n/** @internal */\n@Directive({\n standalone: true,\n selector: '[adf-breadcrumb-focus]',\n host: {\n class: 'adf-breadcrumb-focus'\n }\n})\nexport class BreadcrumbFocusDirective {\n constructor(private elementRef: ElementRef) {}\n\n focusOnFirstFocusableElement() {\n this.getFocusableElements(this.elementRef.nativeElement)[0].focus();\n }\n\n private getFocusableElements(root: HTMLElement): HTMLElement[] {\n const allFocusableElements = `button, a, input, select, textarea, [tabindex]:not([tabindex=\"-1\"])`;\n return Array.from(root.querySelectorAll(allFocusableElements) as NodeListOf<HTMLElement>).filter(\n (element) => !element.hasAttribute('disabled') && element.tabIndex >= 0\n );\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n standalone: true,\n selector: 'adf-breadcrumb-item',\n template: `\n <ng-template #breadcrumbItemTemplate>\n <ng-content />\n </ng-template>\n `\n})\nexport class BreadcrumbItemComponent {\n @ViewChild('breadcrumbItemTemplate', { static: true })\n templateRef!: TemplateRef<any>;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n QueryList,\n SimpleChanges,\n TemplateRef,\n ViewChildren\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { map, startWith } from 'rxjs/operators';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { BreadcrumbFocusDirective } from '../../directives/breadcrumb-focus.directive';\nimport { BreadcrumbItemComponent } from '../breadcrumb-item/breadcrumb-item.component';\n\n@Component({\n standalone: true,\n selector: 'adf-breadcrumb',\n templateUrl: './breadcrumb.component.html',\n styleUrls: ['./breadcrumb.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, MatIconModule, TranslatePipe, MatButtonModule, BreadcrumbFocusDirective]\n})\nexport class BreadcrumbComponent implements AfterContentInit, OnChanges {\n private _breadcrumbTemplateRefs: Array<TemplateRef<unknown>> = [];\n\n @Input()\n compact = false;\n\n @Output()\n compactChange: EventEmitter<boolean> = new EventEmitter();\n\n @ViewChildren(BreadcrumbFocusDirective)\n breadcrumbFocusItems!: QueryList<BreadcrumbFocusDirective>;\n\n @ContentChildren(BreadcrumbItemComponent)\n breadcrumbItems!: QueryList<BreadcrumbItemComponent>;\n\n selectedBreadcrumbs: Array<TemplateRef<unknown>> = [];\n\n constructor(private cdr: ChangeDetectorRef) {}\n\n ngAfterContentInit() {\n this.breadcrumbItems.changes\n .pipe(\n startWith(this.breadcrumbItems),\n map((breadcrumbItems: QueryList<BreadcrumbItemComponent>) => this.mapToTemplateRefs(breadcrumbItems))\n )\n .subscribe((templateRefs) => {\n this._breadcrumbTemplateRefs = templateRefs;\n this.setBreadcrumbs(templateRefs);\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.compact) {\n this.setBreadcrumbs(this._breadcrumbTemplateRefs);\n }\n }\n\n toggleCompact(compact = false) {\n this.compact = compact;\n this.setBreadcrumbs(this._breadcrumbTemplateRefs);\n this.compactChange.emit(this.compact);\n if (!compact) {\n this.breadcrumbFocusItems.get(1)?.focusOnFirstFocusableElement();\n }\n }\n\n private setBreadcrumbs(breadcrumbs: Array<TemplateRef<unknown>>) {\n this.selectedBreadcrumbs = this.compact && breadcrumbs.length > 2 ? [breadcrumbs[0], breadcrumbs[breadcrumbs.length - 1]] : [...breadcrumbs];\n this.cdr.detectChanges();\n }\n\n private mapToTemplateRefs(breadcrumbItems: QueryList<BreadcrumbItemComponent>) {\n return breadcrumbItems.toArray().map((breadcrumbItem) => breadcrumbItem.templateRef);\n }\n}\n","<ng-container>\n <nav class=\"adf-breadcrumb\" [class.adf-breadcrumb--compact]=\"compact\" [attr.aria-label]=\"'CORE.BREADCRUMBS.TITLE' | translate\" >\n <ol>\n <ng-container *ngFor=\"let breadcrumbTemplate of selectedBreadcrumbs; last as last\">\n <li adf-breadcrumb-focus class=\"adf-breadcrumb__item-wrapper\">\n <ng-container *ngTemplateOutlet=\"breadcrumbTemplate\" />\n <div *ngIf=\"!last\" class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-before--compact]=\"compact\" ></div>\n </li>\n\n <li *ngIf=\"!last && compact === true\" class=\"adf-breadcrumb__show-all-button-wrapper\">\n <button\n mat-icon-button\n (click)=\"toggleCompact()\"\n color=\"primary\"\n [title]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n [attr.aria-label]=\"'CORE.BREADCRUMBS.SHOWALL' | translate\"\n >\n <mat-icon class=\"adf-breadcrumb__show-all-button-icon--rotate\">more_vert</mat-icon >\n </button>\n <div class=\"adf-breadcrumb__chevron\" [class.adf-breadcrumb__chevron-after--compact]=\"compact\" ></div>\n </li>\n </ng-container>\n </ol>\n </nav>\n</ng-container>\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { BreadcrumbComponent } from './components/breadcrumb/breadcrumb.component';\nexport { BreadcrumbItemComponent } from './components/breadcrumb-item/breadcrumb-item.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;AAIH;MAQa,wBAAwB,CAAA;AACjC,IAAA,WAAA,CAAoB,UAAsB,EAAA;QAAtB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAY;KAAI;IAE9C,4BAA4B,GAAA;AACxB,QAAA,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;KACvE;AAEO,IAAA,oBAAoB,CAAC,IAAiB,EAAA;QAC1C,MAAM,oBAAoB,GAAG,CAAA,mEAAA,CAAqE,CAAC;AACnG,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAA4B,CAAC,CAAC,MAAM,CAC5F,CAAC,OAAO,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,CAC1E,CAAC;KACL;+GAZQ,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,sBAAA,EAAA,EAAA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AAA,EAAA,CAAC,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,wBAAwB,CAAC,EAAA,QAAA,EAAA,stCAAA,EAAA,MAAA,EAAA,CAAA,uwCAAA,CAAA,EAAA,CAAA;sFAMhG,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,aAAa,EAAA,CAAA;sBADZ,MAAM;gBAIP,oBAAoB,EAAA,CAAA;sBADnB,YAAY;uBAAC,wBAAwB,CAAA;gBAItC,eAAe,EAAA,CAAA;sBADd,eAAe;uBAAC,uBAAuB,CAAA;;;AE5D5C;;;;;;;;;;;;;;;AAeG;;ACfH;;AAEG;;;;"}
|
|
@@ -21,8 +21,7 @@ import { FormsModule } from '@angular/forms';
|
|
|
21
21
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
22
22
|
import * as i10 from '@angular/material/dialog';
|
|
23
23
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
24
|
-
import
|
|
25
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
24
|
+
import { TranslatePipe } from '@ngx-translate/core';
|
|
26
25
|
import * as i9 from '@angular/material/form-field';
|
|
27
26
|
|
|
28
27
|
/*!
|
|
@@ -175,7 +174,7 @@ class FlagsComponent {
|
|
|
175
174
|
this.writableFeaturesService.removeFlag(flag);
|
|
176
175
|
}
|
|
177
176
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FlagsComponent, deps: [{ token: FeaturesServiceToken }, { token: WritableFeaturesServiceToken }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
178
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FlagsComponent, isStandalone: true, selector: "adf-feature-flags-overrides", ngImport: i0, template: "<mat-toolbar class=\"adf-feature-flags-overrides-header\">\n <div class=\"adf-feature-flags-overrides-header-text\" tabindex=\"0\">\n <adf-feature-flags-override-indicator\n class=\"adf-activity-indicator\"\n size='large' />\n <span>{{ \"CORE.FEATURE-FLAGS.OVERRIDES\" | translate }}</span>\n </div>\n <mat-slide-toggle\n [checked]=\"isEnabled\"\n (change)=\"onEnable($event.checked)\" />\n <button\n class=\"adf-feature-flags-overrides-header-close\"\n mat-icon-button\n mat-dialog-close>\n <mat-icon>close</mat-icon>\n </button>\n</mat-toolbar>\n\n<ng-container *ngIf=\"flags$ | async as flags\">\n <table mat-table [dataSource]=\"flags\" class=\"adf-feature-flags-overrides-table mat-elevation-z0\">\n <ng-container matColumnDef=\"icon\">\n <th mat-header-cell class=\"adf-icon-col adf-header-cell\" *matHeaderCellDef>\n <mat-icon class=\"material-icons-outlined adf-search-icon\">search</mat-icon>\n </th>\n <td mat-cell class=\"adf-icon-col\" *matCellDef=\"let element\">\n <button mat-icon-button *ngIf=\"element.fictive; else flagFromApi\" class=\"adf-fictive-flag-button\" (click)=\"onDelete(element.flag)\">\n <mat-icon class=\"material-icons-outlined adf-custom-flag-icon\" fontIcon=\"memory\" />\n <mat-icon class=\"material-icons-outlined adf-trash-icon\" fontIcon=\"delete\" />\n </button>\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"flag\">\n <th mat-header-cell class=\"flag-col header-cell\" *matHeaderCellDef>\n <mat-form-field class=\"adf-flag-form-field\" appearance=\"fill\" floatLabel=\"auto\">\n <input class=\"flag-input\" [placeholder]=\"(isEnabled ? 'CORE.FEATURE-FLAGS.FILTER_OR_ADD_NEW' : 'CORE.FEATURE-FLAGS.FILTER') | translate\" matInput type=\"text\" [(ngModel)]=\"inputValue\" (keyup)=\"onInputChange(inputValue)\" (keypress)=\"onAdd($event)\">\n </mat-form-field>\n </th>\n <td mat-cell class=\"flag-col\" *matCellDef=\"let element\">{{ element.flag }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"value\">\n <th mat-header-cell class=\"adf-val-col header-cell\" *matHeaderCellDef>\n <div class=\"adf-input-field-buttons-container\">\n <button *ngIf=\"showPlusButton$ | async\" mat-icon-button title=\"{{'CORE.FEATURE-FLAGS.ADD_NEW' | translate}}\" color=\"accent\" (click)=\"onAddButtonClick()\">\n <mat-icon class=\"material-icons-outlined\" fontIcon=\"add_circle\" />\n </button>\n <button *ngIf=\"inputValue\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"onClearInput()\" class=\"adf-clear-button\">\n <mat-icon>cancel</mat-icon>\n </button>\n </div>\n </th>\n <td mat-cell class=\"adf-val-col\" *matCellDef=\"let element\">\n <mat-slide-toggle\n [checked]=\"element.value\"\n (change)=\"onChange(element.flag, $event.checked)\"\n [disabled]=\"!isEnabled\" />\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n</ng-container>\n\n<ng-template #flagFromApi>\n <mat-icon class=\"material-icons-outlined\">cloud</mat-icon>\n</ng-template>\n\n", styles: [".adf-feature-flags-overrides-header{position:sticky;top:0;height:64px;z-index:101;display:flex}.adf-feature-flags-overrides-header .adf-activity-indicator{margin-right:12px;position:relative;top:-2px}.adf-feature-flags-overrides-header-text{flex:1}.adf-feature-flags-overrides-header-close{margin-left:12px}.adf-feature-flags-overrides-table{width:100%}.adf-feature-flags-overrides-table .adf-search-icon{position:relative;top:4px}.adf-feature-flags-overrides-table .adf-flag-form-field{width:100%;display:flex}.adf-feature-flags-overrides-table .adf-flag-form-field .mat-mdc-form-field-subscript-wrapper,.adf-feature-flags-overrides-table .adf-flag-form-field .mdc-line-ripple{display:none}.adf-feature-flags-overrides-table .adf-input-field-buttons-container{display:flex;justify-content:flex-end}.adf-feature-flags-overrides-table .adf-clear-button{margin-left:-14px}.adf-feature-flags-overrides-table .adf-fictive-flag-button{margin-left:-12px}.adf-feature-flags-overrides-table .adf-fictive-flag-button .adf-custom-flag-icon{display:block}.adf-feature-flags-overrides-table .adf-fictive-flag-button .adf-trash-icon,.adf-feature-flags-overrides-table .adf-fictive-flag-button:hover .adf-custom-flag-icon{display:none}.adf-feature-flags-overrides-table .adf-fictive-flag-button:hover .adf-trash-icon{display:block}.adf-feature-flags-overrides-table .adf-icon-col{width:56px;padding-left:24px}.adf-feature-flags-overrides-table .adf-val-col{width:85px}\n"], dependencies: [{ kind: "component", type: FlagsOverrideComponent, selector: "adf-feature-flags-override-indicator", inputs: ["size"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i4.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i7.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i9.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i9.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i10.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "
|
|
177
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FlagsComponent, isStandalone: true, selector: "adf-feature-flags-overrides", ngImport: i0, template: "<mat-toolbar class=\"adf-feature-flags-overrides-header\">\n <div class=\"adf-feature-flags-overrides-header-text\" tabindex=\"0\">\n <adf-feature-flags-override-indicator\n class=\"adf-activity-indicator\"\n size='large' />\n <span>{{ \"CORE.FEATURE-FLAGS.OVERRIDES\" | translate }}</span>\n </div>\n <mat-slide-toggle\n [checked]=\"isEnabled\"\n (change)=\"onEnable($event.checked)\" />\n <button\n class=\"adf-feature-flags-overrides-header-close\"\n mat-icon-button\n mat-dialog-close>\n <mat-icon>close</mat-icon>\n </button>\n</mat-toolbar>\n\n<ng-container *ngIf=\"flags$ | async as flags\">\n <table mat-table [dataSource]=\"flags\" class=\"adf-feature-flags-overrides-table mat-elevation-z0\">\n <ng-container matColumnDef=\"icon\">\n <th mat-header-cell class=\"adf-icon-col adf-header-cell\" *matHeaderCellDef>\n <mat-icon class=\"material-icons-outlined adf-search-icon\">search</mat-icon>\n </th>\n <td mat-cell class=\"adf-icon-col\" *matCellDef=\"let element\">\n <button mat-icon-button *ngIf=\"element.fictive; else flagFromApi\" class=\"adf-fictive-flag-button\" (click)=\"onDelete(element.flag)\">\n <mat-icon class=\"material-icons-outlined adf-custom-flag-icon\" fontIcon=\"memory\" />\n <mat-icon class=\"material-icons-outlined adf-trash-icon\" fontIcon=\"delete\" />\n </button>\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"flag\">\n <th mat-header-cell class=\"flag-col header-cell\" *matHeaderCellDef>\n <mat-form-field class=\"adf-flag-form-field\" appearance=\"fill\" floatLabel=\"auto\">\n <input class=\"flag-input\" [placeholder]=\"(isEnabled ? 'CORE.FEATURE-FLAGS.FILTER_OR_ADD_NEW' : 'CORE.FEATURE-FLAGS.FILTER') | translate\" matInput type=\"text\" [(ngModel)]=\"inputValue\" (keyup)=\"onInputChange(inputValue)\" (keypress)=\"onAdd($event)\">\n </mat-form-field>\n </th>\n <td mat-cell class=\"flag-col\" *matCellDef=\"let element\">{{ element.flag }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"value\">\n <th mat-header-cell class=\"adf-val-col header-cell\" *matHeaderCellDef>\n <div class=\"adf-input-field-buttons-container\">\n <button *ngIf=\"showPlusButton$ | async\" mat-icon-button title=\"{{'CORE.FEATURE-FLAGS.ADD_NEW' | translate}}\" color=\"accent\" (click)=\"onAddButtonClick()\">\n <mat-icon class=\"material-icons-outlined\" fontIcon=\"add_circle\" />\n </button>\n <button *ngIf=\"inputValue\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"onClearInput()\" class=\"adf-clear-button\">\n <mat-icon>cancel</mat-icon>\n </button>\n </div>\n </th>\n <td mat-cell class=\"adf-val-col\" *matCellDef=\"let element\">\n <mat-slide-toggle\n [checked]=\"element.value\"\n (change)=\"onChange(element.flag, $event.checked)\"\n [disabled]=\"!isEnabled\" />\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n</ng-container>\n\n<ng-template #flagFromApi>\n <mat-icon class=\"material-icons-outlined\">cloud</mat-icon>\n</ng-template>\n\n", styles: [".adf-feature-flags-overrides-header{position:sticky;top:0;height:64px;z-index:101;display:flex}.adf-feature-flags-overrides-header .adf-activity-indicator{margin-right:12px;position:relative;top:-2px}.adf-feature-flags-overrides-header-text{flex:1}.adf-feature-flags-overrides-header-close{margin-left:12px}.adf-feature-flags-overrides-table{width:100%}.adf-feature-flags-overrides-table .adf-search-icon{position:relative;top:4px}.adf-feature-flags-overrides-table .adf-flag-form-field{width:100%;display:flex}.adf-feature-flags-overrides-table .adf-flag-form-field .mat-mdc-form-field-subscript-wrapper,.adf-feature-flags-overrides-table .adf-flag-form-field .mdc-line-ripple{display:none}.adf-feature-flags-overrides-table .adf-input-field-buttons-container{display:flex;justify-content:flex-end}.adf-feature-flags-overrides-table .adf-clear-button{margin-left:-14px}.adf-feature-flags-overrides-table .adf-fictive-flag-button{margin-left:-12px}.adf-feature-flags-overrides-table .adf-fictive-flag-button .adf-custom-flag-icon{display:block}.adf-feature-flags-overrides-table .adf-fictive-flag-button .adf-trash-icon,.adf-feature-flags-overrides-table .adf-fictive-flag-button:hover .adf-custom-flag-icon{display:none}.adf-feature-flags-overrides-table .adf-fictive-flag-button:hover .adf-trash-icon{display:block}.adf-feature-flags-overrides-table .adf-icon-col{width:56px;padding-left:24px}.adf-feature-flags-overrides-table .adf-val-col{width:85px}\n"], dependencies: [{ kind: "component", type: FlagsOverrideComponent, selector: "adf-feature-flags-override-indicator", inputs: ["size"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i4.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i7.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i9.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i9.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i10.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
179
178
|
}
|
|
180
179
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FlagsComponent, decorators: [{
|
|
181
180
|
type: Component,
|
|
@@ -190,7 +189,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
190
189
|
MatButtonModule,
|
|
191
190
|
MatInputModule,
|
|
192
191
|
MatDialogModule,
|
|
193
|
-
|
|
192
|
+
TranslatePipe
|
|
194
193
|
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-toolbar class=\"adf-feature-flags-overrides-header\">\n <div class=\"adf-feature-flags-overrides-header-text\" tabindex=\"0\">\n <adf-feature-flags-override-indicator\n class=\"adf-activity-indicator\"\n size='large' />\n <span>{{ \"CORE.FEATURE-FLAGS.OVERRIDES\" | translate }}</span>\n </div>\n <mat-slide-toggle\n [checked]=\"isEnabled\"\n (change)=\"onEnable($event.checked)\" />\n <button\n class=\"adf-feature-flags-overrides-header-close\"\n mat-icon-button\n mat-dialog-close>\n <mat-icon>close</mat-icon>\n </button>\n</mat-toolbar>\n\n<ng-container *ngIf=\"flags$ | async as flags\">\n <table mat-table [dataSource]=\"flags\" class=\"adf-feature-flags-overrides-table mat-elevation-z0\">\n <ng-container matColumnDef=\"icon\">\n <th mat-header-cell class=\"adf-icon-col adf-header-cell\" *matHeaderCellDef>\n <mat-icon class=\"material-icons-outlined adf-search-icon\">search</mat-icon>\n </th>\n <td mat-cell class=\"adf-icon-col\" *matCellDef=\"let element\">\n <button mat-icon-button *ngIf=\"element.fictive; else flagFromApi\" class=\"adf-fictive-flag-button\" (click)=\"onDelete(element.flag)\">\n <mat-icon class=\"material-icons-outlined adf-custom-flag-icon\" fontIcon=\"memory\" />\n <mat-icon class=\"material-icons-outlined adf-trash-icon\" fontIcon=\"delete\" />\n </button>\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"flag\">\n <th mat-header-cell class=\"flag-col header-cell\" *matHeaderCellDef>\n <mat-form-field class=\"adf-flag-form-field\" appearance=\"fill\" floatLabel=\"auto\">\n <input class=\"flag-input\" [placeholder]=\"(isEnabled ? 'CORE.FEATURE-FLAGS.FILTER_OR_ADD_NEW' : 'CORE.FEATURE-FLAGS.FILTER') | translate\" matInput type=\"text\" [(ngModel)]=\"inputValue\" (keyup)=\"onInputChange(inputValue)\" (keypress)=\"onAdd($event)\">\n </mat-form-field>\n </th>\n <td mat-cell class=\"flag-col\" *matCellDef=\"let element\">{{ element.flag }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"value\">\n <th mat-header-cell class=\"adf-val-col header-cell\" *matHeaderCellDef>\n <div class=\"adf-input-field-buttons-container\">\n <button *ngIf=\"showPlusButton$ | async\" mat-icon-button title=\"{{'CORE.FEATURE-FLAGS.ADD_NEW' | translate}}\" color=\"accent\" (click)=\"onAddButtonClick()\">\n <mat-icon class=\"material-icons-outlined\" fontIcon=\"add_circle\" />\n </button>\n <button *ngIf=\"inputValue\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"onClearInput()\" class=\"adf-clear-button\">\n <mat-icon>cancel</mat-icon>\n </button>\n </div>\n </th>\n <td mat-cell class=\"adf-val-col\" *matCellDef=\"let element\">\n <mat-slide-toggle\n [checked]=\"element.value\"\n (change)=\"onChange(element.flag, $event.checked)\"\n [disabled]=\"!isEnabled\" />\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n</ng-container>\n\n<ng-template #flagFromApi>\n <mat-icon class=\"material-icons-outlined\">cloud</mat-icon>\n</ng-template>\n\n", styles: [".adf-feature-flags-overrides-header{position:sticky;top:0;height:64px;z-index:101;display:flex}.adf-feature-flags-overrides-header .adf-activity-indicator{margin-right:12px;position:relative;top:-2px}.adf-feature-flags-overrides-header-text{flex:1}.adf-feature-flags-overrides-header-close{margin-left:12px}.adf-feature-flags-overrides-table{width:100%}.adf-feature-flags-overrides-table .adf-search-icon{position:relative;top:4px}.adf-feature-flags-overrides-table .adf-flag-form-field{width:100%;display:flex}.adf-feature-flags-overrides-table .adf-flag-form-field .mat-mdc-form-field-subscript-wrapper,.adf-feature-flags-overrides-table .adf-flag-form-field .mdc-line-ripple{display:none}.adf-feature-flags-overrides-table .adf-input-field-buttons-container{display:flex;justify-content:flex-end}.adf-feature-flags-overrides-table .adf-clear-button{margin-left:-14px}.adf-feature-flags-overrides-table .adf-fictive-flag-button{margin-left:-12px}.adf-feature-flags-overrides-table .adf-fictive-flag-button .adf-custom-flag-icon{display:block}.adf-feature-flags-overrides-table .adf-fictive-flag-button .adf-trash-icon,.adf-feature-flags-overrides-table .adf-fictive-flag-button:hover .adf-custom-flag-icon{display:none}.adf-feature-flags-overrides-table .adf-fictive-flag-button:hover .adf-trash-icon{display:block}.adf-feature-flags-overrides-table .adf-icon-col{width:56px;padding-left:24px}.adf-feature-flags-overrides-table .adf-val-col{width:85px}\n"] }]
|
|
195
194
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
196
195
|
type: Inject,
|