@alfresco/adf-core 8.4.0-20658400967 → 8.4.0-20709254987
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/fesm2022/adf-core.mjs +232 -200
- package/fesm2022/adf-core.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-breadcrumbs.mjs +6 -5
- package/fesm2022/alfresco-adf-core-breadcrumbs.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-feature-flags.mjs +9 -8
- package/fesm2022/alfresco-adf-core-feature-flags.mjs.map +1 -1
- package/lib/icon/icon.directive.d.ts +2 -2
- package/lib/icon/icon.module.d.ts +8 -0
- package/lib/icon/public-api.d.ts +2 -1
- package/package.json +3 -3
|
@@ -2,12 +2,13 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Directive, ViewChild, Component, EventEmitter, ContentChildren, ViewChildren, Output, Input, ChangeDetectionStrategy } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i4 from '@angular/material/button';
|
|
6
6
|
import { MatButtonModule } from '@angular/material/button';
|
|
7
|
-
import * as i2 from '@angular/material/icon';
|
|
8
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
9
7
|
import { startWith, map } from 'rxjs/operators';
|
|
10
8
|
import { TranslatePipe } from '@ngx-translate/core';
|
|
9
|
+
import * as i3 from '@alfresco/adf-core';
|
|
10
|
+
import { IconModule } from '@alfresco/adf-core';
|
|
11
|
+
import * as i2 from '@angular/material/icon';
|
|
11
12
|
|
|
12
13
|
/*!
|
|
13
14
|
* @license
|
|
@@ -144,11 +145,11 @@ class BreadcrumbComponent {
|
|
|
144
145
|
return breadcrumbItems.toArray().map((breadcrumbItem) => breadcrumbItem.templateRef);
|
|
145
146
|
}
|
|
146
147
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
147
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", 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\"
|
|
148
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", 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\" adf-icon=\"more_vert\" />\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: IconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.IconDirective, selector: "mat-icon[adf-icon]", inputs: ["adf-icon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: BreadcrumbFocusDirective, selector: "[adf-breadcrumb-focus]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
148
149
|
}
|
|
149
150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
150
151
|
type: Component,
|
|
151
|
-
args: [{ selector: 'adf-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule,
|
|
152
|
+
args: [{ selector: 'adf-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, IconModule, 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\" adf-icon=\"more_vert\" />\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"] }]
|
|
152
153
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { compact: [{
|
|
153
154
|
type: Input
|
|
154
155
|
}], 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 { TranslatePipe } from '@ngx-translate/core';\nimport { BreadcrumbFocusDirective } from '../../directives/breadcrumb-focus.directive';\nimport { BreadcrumbItemComponent } from '../breadcrumb-item/breadcrumb-item.component';\n\n@Component({\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;;IAE9B,4BAA4B,GAAA;AACxB,QAAA,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE;;AAG/D,IAAA,oBAAoB,CAAC,IAAiB,EAAA;QAC1C,MAAM,oBAAoB,GAAG,CAAA,mEAAA,CAAqE;AAClG,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;;+GAXI,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAxB,wBAAw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EAAA;sFAMhG,OAAO,EAAA,CAAA;sBADN;gBAID,aAAa,EAAA,CAAA;sBADZ;gBAID,oBAAoB,EAAA,CAAA;sBADnB,YAAY;uBAAC,wBAAwB;gBAItC,eAAe,EAAA,CAAA;sBADd,eAAe;uBAAC,uBAAuB;;;AE3D5C;;;;;;;;;;;;;;;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 { 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';\nimport { IconModule } from '@alfresco/adf-core';\n\n@Component({\n selector: 'adf-breadcrumb',\n templateUrl: './breadcrumb.component.html',\n styleUrls: ['./breadcrumb.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, IconModule, 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\" adf-icon=\"more_vert\" />\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 './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 import * as i4 from '@angular/material/slide-toggle';
|
|
|
10
10
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
11
11
|
import * as i5 from '@angular/material/toolbar';
|
|
12
12
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
13
|
-
import * as
|
|
14
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
-
import * as i7 from '@angular/material/button';
|
|
13
|
+
import * as i8 from '@angular/material/button';
|
|
16
14
|
import { MatButtonModule } from '@angular/material/button';
|
|
17
|
-
import * as
|
|
15
|
+
import * as i9 from '@angular/material/input';
|
|
18
16
|
import { MatInputModule } from '@angular/material/input';
|
|
19
17
|
import * as i2 from '@angular/forms';
|
|
20
18
|
import { FormsModule } from '@angular/forms';
|
|
21
19
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
22
|
-
import * as
|
|
20
|
+
import * as i10 from '@angular/material/dialog';
|
|
23
21
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
24
22
|
import { TranslatePipe } from '@ngx-translate/core';
|
|
23
|
+
import * as i7 from '@alfresco/adf-core';
|
|
24
|
+
import { IconModule } from '@alfresco/adf-core';
|
|
25
|
+
import * as i6 from '@angular/material/icon';
|
|
25
26
|
|
|
26
27
|
/*!
|
|
27
28
|
* @license
|
|
@@ -173,7 +174,7 @@ class FlagsComponent {
|
|
|
173
174
|
this.writableFeaturesService.removeFlag(flag);
|
|
174
175
|
}
|
|
175
176
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FlagsComponent, deps: [{ token: FeaturesServiceToken }, { token: WritableFeaturesServiceToken }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
176
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", 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
|
|
177
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", 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 class=\"adf-feature-flags-overrides-header-close\" mat-icon-button mat-dialog-close>\n <mat-icon adf-icon=\"close\" />\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\" adf-icon=\"search\" />\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 adf-icon=\"cancel\" />\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\" adf-icon=\"cloud\" />\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: IconModule }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.IconDirective, selector: "mat-icon[adf-icon]", inputs: ["adf-icon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], 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 }); }
|
|
177
178
|
}
|
|
178
179
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FlagsComponent, decorators: [{
|
|
179
180
|
type: Component,
|
|
@@ -184,12 +185,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
184
185
|
MatTableModule,
|
|
185
186
|
MatSlideToggleModule,
|
|
186
187
|
MatToolbarModule,
|
|
187
|
-
|
|
188
|
+
IconModule,
|
|
188
189
|
MatButtonModule,
|
|
189
190
|
MatInputModule,
|
|
190
191
|
MatDialogModule,
|
|
191
192
|
TranslatePipe
|
|
192
|
-
], 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
|
|
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 class=\"adf-feature-flags-overrides-header-close\" mat-icon-button mat-dialog-close>\n <mat-icon adf-icon=\"close\" />\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\" adf-icon=\"search\" />\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 adf-icon=\"cancel\" />\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\" adf-icon=\"cloud\" />\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"] }]
|
|
193
194
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
194
195
|
type: Inject,
|
|
195
196
|
args: [FeaturesServiceToken]
|