@alfresco/aca-content 7.2.0-18335920194 → 7.2.0-18368609798
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.
|
@@ -47,7 +47,8 @@ import * as i10 from '@angular/material/progress-bar';
|
|
|
47
47
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
48
48
|
import * as i12 from '@angular/material/divider';
|
|
49
49
|
import { MatDividerModule } from '@angular/material/divider';
|
|
50
|
-
import
|
|
50
|
+
import { MatAccordion, MatExpansionPanel, MatExpansionPanelHeader, MatExpansionPanelTitle } from '@angular/material/expansion';
|
|
51
|
+
import * as i2$7 from '@angular/material/tooltip';
|
|
51
52
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
52
53
|
|
|
53
54
|
/*!
|
|
@@ -2290,7 +2291,6 @@ class RuleListUiComponent {
|
|
|
2290
2291
|
ruleSetEditLinkClicked = new EventEmitter();
|
|
2291
2292
|
ruleSetUnlinkClicked = new EventEmitter();
|
|
2292
2293
|
mainRuleSet = null;
|
|
2293
|
-
inheritedRuleSetsExpanded = true;
|
|
2294
2294
|
mainRuleSetExpanded = true;
|
|
2295
2295
|
mainRuleSetGroupingItems = [];
|
|
2296
2296
|
inheritedRuleSetGroupingItems = [];
|
|
@@ -2356,7 +2356,7 @@ class RuleListUiComponent {
|
|
|
2356
2356
|
this.ruleSetUnlinkClicked.emit(this.mainRuleSet);
|
|
2357
2357
|
}
|
|
2358
2358
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RuleListUiComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2359
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2359
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: RuleListUiComponent, isStandalone: true, selector: "aca-rule-list", inputs: { mainRuleSet$: "mainRuleSet$", folderId: "folderId", inheritedRuleSets: "inheritedRuleSets", hasMoreRuleSets: "hasMoreRuleSets", ruleSetsLoading: "ruleSetsLoading", selectedRule: "selectedRule" }, outputs: { loadMoreRuleSets: "loadMoreRuleSets", loadMoreRules: "loadMoreRules", selectRule: "selectRule", ruleEnabledChanged: "ruleEnabledChanged", ruleSetEditLinkClicked: "ruleSetEditLinkClicked", ruleSetUnlinkClicked: "ruleSetUnlinkClicked" }, host: { classAttribute: "aca-rule-list" }, ngImport: i0, template: "<mat-accordion multi>\n @if (inheritedRuleSetGroupingItems.length > 0) {\n <mat-expansion-panel [expanded]=\"true\" class=\"aca-rule-list__item\">\n <mat-expansion-panel-header class=\"aca-rule-list__item__header\">\n <mat-panel-title>\n <span class=\"aca-rule-list__item__header__title\">\n {{ 'ACA_FOLDER_RULES.RULE_LIST.INHERITED_RULES' | translate }}\n <mat-icon\n class=\"aca-rule-list__item__header__title__icon\"\n [matTooltip]=\"'ACA_FOLDER_RULES.RULE_LIST.INHERITED_RULES_WILL_BE_RUN_FIRST' | translate\">\n info\n </mat-icon>\n </span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <aca-rule-list-grouping\n [items]=\"inheritedRuleSetGroupingItems\"\n [selectedRule]=\"selectedRule\"\n (selectRule)=\"onSelectRule($event)\"\n (ruleEnabledChanged)=\"onRuleEnabledChanged($event)\"\n (loadMoreRules)=\"onLoadMoreRules($event)\"\n (loadMoreRuleSets)=\"onLoadMoreRuleSets()\" />\n </mat-expansion-panel>\n }\n @if (mainRuleSetGroupingItems.length > 0 || isMainRuleSetLinked) {\n <mat-expansion-panel [expanded]=\"true\" class=\"aca-rule-list__item\">\n <mat-expansion-panel-header class=\"aca-rule-list__item__header\">\n <mat-panel-title>\n <span class=\"aca-rule-list__item__header__title\" data-automation-id=\"main-rule-set-title\">\n @if (isMainRuleSetOwned) {\n {{ 'ACA_FOLDER_RULES.RULE_LIST.OWNED_RULES' | translate }}\n } @else {\n {{ 'ACA_FOLDER_RULES.RULE_LIST.LINKED_RULES' | translate }}\n }\n </span>\n\n @if (!isMainRuleSetOwned) {\n <mat-icon\n class=\"aca-rule-list__item__header__icon\"\n tabindex=\"0\"\n aria-hidden=\"false\"\n [attr.aria-label]=\"'ACA_FOLDER_RULES.RULE_LIST.EDIT_LINK_LABEL' | translate\"\n [attr.title]=\"'ACA_FOLDER_RULES.RULE_LIST.EDIT_LINK_LABEL' | translate\"\n (keydown.enter)=\"onRuleSetEditLinkClicked($event)\"\n (keydown.enter)=\"onRuleSetEditLinkClicked($event)\"\n (click)=\"onRuleSetEditLinkClicked($event)\">\n edit\n </mat-icon>\n <mat-icon\n class=\"aca-rule-list__item__header__icon\"\n tabindex=\"0\"\n aria-hidden=\"false\"\n [attr.aria-label]=\"'ACA_FOLDER_RULES.CONFIRMATION_DIALOG.DELETE_RULE_SET_LINK.TITLE' | translate\"\n [attr.title]=\"'ACA_FOLDER_RULES.CONFIRMATION_DIALOG.DELETE_RULE_SET_LINK.TITLE' | translate\"\n (keydown.enter)=\"onRuleSetUnlinkClicked($event)\"\n (click)=\"onRuleSetUnlinkClicked($event)\">\n link_off\n </mat-icon>\n }\n </mat-panel-title>\n\n </mat-expansion-panel-header>\n @if (mainRuleSetGroupingItems.length > 0) {\n <aca-rule-list-grouping\n [items]=\"mainRuleSetGroupingItems\"\n [selectedRule]=\"selectedRule\"\n [showEnabledToggles]=\"isMainRuleSetOwned\"\n (selectRule)=\"onSelectRule($event)\"\n (ruleEnabledChanged)=\"onRuleEnabledChanged($event)\"\n (loadMoreRules)=\"onLoadMoreRules($event)\" />\n } @else {\n <div class=\"aca-rule-list__item__all-linked-rules-are-disabled\">\n {{ 'ACA_FOLDER_RULES.RULE_LIST.ALL_LINKED_RULES_ARE_DISABLED' | translate }}\n @if (mainRuleSet?.owningFolder?.id) {\n <button mat-stroked-button [routerLink]=\"['/nodes', mainRuleSet.owningFolder.id, 'rules']\">\n {{ 'ACA_FOLDER_RULES.MANAGE_RULES.TOOLBAR.ACTIONS.SEE_IN_FOLDER' | translate }}\n </button>\n }\n </div>\n }\n </mat-expansion-panel>\n }\n</mat-accordion>\n", styles: [".aca-rule-list{--mat-expansion-container-background-color: var(--theme-background-color)}.aca-rule-list{--mat-expansion-header-text-color: var(--theme-text-color)}.aca-rule-list{--mat-expansion-container-shape: 12px}.aca-rule-list__item{border:1px solid var(--theme-border-color);border-radius:12px;box-shadow:none!important}.aca-rule-list__item .mat-expansion-panel-body{padding:0}.aca-rule-list__item__header{font-size:.9em;padding:0 16px}.aca-rule-list__item__header.mat-expanded{border-bottom:1px solid var(--theme-border-color);border-radius:0}.aca-rule-list__item__header>*{display:flex;flex-direction:row;align-items:center}.aca-rule-list__item__header__title{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex:1}.aca-rule-list__item__header__title__icon{transform:scale(.8)}.aca-rule-list__item__all-linked-rules-are-disabled{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:var(--theme-disabled-text-color);font-style:italic;text-align:center;padding:.5em 0;font-size:.9em}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatRippleModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i2$7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: RuleListGroupingUiComponent, selector: "aca-rule-list-grouping", inputs: ["items", "selectedRule", "showEnabledToggles"], outputs: ["selectRule", "ruleEnabledChanged", "loadMoreRules", "loadMoreRuleSets"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: MatExpansionPanelTitle, selector: "mat-panel-title" }], encapsulation: i0.ViewEncapsulation.None });
|
|
2360
2360
|
}
|
|
2361
2361
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RuleListUiComponent, decorators: [{
|
|
2362
2362
|
type: Component,
|
|
@@ -2368,8 +2368,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2368
2368
|
MatTooltipModule,
|
|
2369
2369
|
RuleListGroupingUiComponent,
|
|
2370
2370
|
RouterModule,
|
|
2371
|
-
MatButtonModule
|
|
2372
|
-
|
|
2371
|
+
MatButtonModule,
|
|
2372
|
+
MatAccordion,
|
|
2373
|
+
MatExpansionPanel,
|
|
2374
|
+
MatExpansionPanelHeader,
|
|
2375
|
+
MatExpansionPanelTitle
|
|
2376
|
+
], selector: 'aca-rule-list', encapsulation: ViewEncapsulation.None, host: { class: 'aca-rule-list' }, template: "<mat-accordion multi>\n @if (inheritedRuleSetGroupingItems.length > 0) {\n <mat-expansion-panel [expanded]=\"true\" class=\"aca-rule-list__item\">\n <mat-expansion-panel-header class=\"aca-rule-list__item__header\">\n <mat-panel-title>\n <span class=\"aca-rule-list__item__header__title\">\n {{ 'ACA_FOLDER_RULES.RULE_LIST.INHERITED_RULES' | translate }}\n <mat-icon\n class=\"aca-rule-list__item__header__title__icon\"\n [matTooltip]=\"'ACA_FOLDER_RULES.RULE_LIST.INHERITED_RULES_WILL_BE_RUN_FIRST' | translate\">\n info\n </mat-icon>\n </span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <aca-rule-list-grouping\n [items]=\"inheritedRuleSetGroupingItems\"\n [selectedRule]=\"selectedRule\"\n (selectRule)=\"onSelectRule($event)\"\n (ruleEnabledChanged)=\"onRuleEnabledChanged($event)\"\n (loadMoreRules)=\"onLoadMoreRules($event)\"\n (loadMoreRuleSets)=\"onLoadMoreRuleSets()\" />\n </mat-expansion-panel>\n }\n @if (mainRuleSetGroupingItems.length > 0 || isMainRuleSetLinked) {\n <mat-expansion-panel [expanded]=\"true\" class=\"aca-rule-list__item\">\n <mat-expansion-panel-header class=\"aca-rule-list__item__header\">\n <mat-panel-title>\n <span class=\"aca-rule-list__item__header__title\" data-automation-id=\"main-rule-set-title\">\n @if (isMainRuleSetOwned) {\n {{ 'ACA_FOLDER_RULES.RULE_LIST.OWNED_RULES' | translate }}\n } @else {\n {{ 'ACA_FOLDER_RULES.RULE_LIST.LINKED_RULES' | translate }}\n }\n </span>\n\n @if (!isMainRuleSetOwned) {\n <mat-icon\n class=\"aca-rule-list__item__header__icon\"\n tabindex=\"0\"\n aria-hidden=\"false\"\n [attr.aria-label]=\"'ACA_FOLDER_RULES.RULE_LIST.EDIT_LINK_LABEL' | translate\"\n [attr.title]=\"'ACA_FOLDER_RULES.RULE_LIST.EDIT_LINK_LABEL' | translate\"\n (keydown.enter)=\"onRuleSetEditLinkClicked($event)\"\n (keydown.enter)=\"onRuleSetEditLinkClicked($event)\"\n (click)=\"onRuleSetEditLinkClicked($event)\">\n edit\n </mat-icon>\n <mat-icon\n class=\"aca-rule-list__item__header__icon\"\n tabindex=\"0\"\n aria-hidden=\"false\"\n [attr.aria-label]=\"'ACA_FOLDER_RULES.CONFIRMATION_DIALOG.DELETE_RULE_SET_LINK.TITLE' | translate\"\n [attr.title]=\"'ACA_FOLDER_RULES.CONFIRMATION_DIALOG.DELETE_RULE_SET_LINK.TITLE' | translate\"\n (keydown.enter)=\"onRuleSetUnlinkClicked($event)\"\n (click)=\"onRuleSetUnlinkClicked($event)\">\n link_off\n </mat-icon>\n }\n </mat-panel-title>\n\n </mat-expansion-panel-header>\n @if (mainRuleSetGroupingItems.length > 0) {\n <aca-rule-list-grouping\n [items]=\"mainRuleSetGroupingItems\"\n [selectedRule]=\"selectedRule\"\n [showEnabledToggles]=\"isMainRuleSetOwned\"\n (selectRule)=\"onSelectRule($event)\"\n (ruleEnabledChanged)=\"onRuleEnabledChanged($event)\"\n (loadMoreRules)=\"onLoadMoreRules($event)\" />\n } @else {\n <div class=\"aca-rule-list__item__all-linked-rules-are-disabled\">\n {{ 'ACA_FOLDER_RULES.RULE_LIST.ALL_LINKED_RULES_ARE_DISABLED' | translate }}\n @if (mainRuleSet?.owningFolder?.id) {\n <button mat-stroked-button [routerLink]=\"['/nodes', mainRuleSet.owningFolder.id, 'rules']\">\n {{ 'ACA_FOLDER_RULES.MANAGE_RULES.TOOLBAR.ACTIONS.SEE_IN_FOLDER' | translate }}\n </button>\n }\n </div>\n }\n </mat-expansion-panel>\n }\n</mat-accordion>\n", styles: [".aca-rule-list{--mat-expansion-container-background-color: var(--theme-background-color)}.aca-rule-list{--mat-expansion-header-text-color: var(--theme-text-color)}.aca-rule-list{--mat-expansion-container-shape: 12px}.aca-rule-list__item{border:1px solid var(--theme-border-color);border-radius:12px;box-shadow:none!important}.aca-rule-list__item .mat-expansion-panel-body{padding:0}.aca-rule-list__item__header{font-size:.9em;padding:0 16px}.aca-rule-list__item__header.mat-expanded{border-bottom:1px solid var(--theme-border-color);border-radius:0}.aca-rule-list__item__header>*{display:flex;flex-direction:row;align-items:center}.aca-rule-list__item__header__title{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex:1}.aca-rule-list__item__header__title__icon{transform:scale(.8)}.aca-rule-list__item__all-linked-rules-are-disabled{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:var(--theme-disabled-text-color);font-style:italic;text-align:center;padding:.5em 0;font-size:.9em}\n"] }]
|
|
2373
2377
|
}], propDecorators: { mainRuleSet$: [{
|
|
2374
2378
|
type: Input,
|
|
2375
2379
|
args: [{ required: true }]
|