ngx-smz-ui 14.0.17 → 14.0.18
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/esm2020/lib/builders/smz-cards/source-builder.mjs +19 -8
- package/esm2020/lib/modules/smz-cards/features/smz-cards/smz-cards.component.mjs +3 -3
- package/esm2020/lib/modules/smz-cards/models/smz-cards-state.mjs +1 -1
- package/fesm2015/ngx-smz-ui.mjs +20 -9
- package/fesm2015/ngx-smz-ui.mjs.map +1 -1
- package/fesm2020/ngx-smz-ui.mjs +20 -9
- package/fesm2020/ngx-smz-ui.mjs.map +1 -1
- package/lib/builders/smz-cards/source-builder.d.ts +4 -1
- package/lib/modules/smz-cards/models/smz-cards-state.d.ts +0 -1
- package/package.json +1 -1
|
@@ -19,11 +19,12 @@ export class SmzCardsSourceBuilder {
|
|
|
19
19
|
constructor(_cardsBuilder, _sourcesBuilder, items$, label) {
|
|
20
20
|
this._cardsBuilder = _cardsBuilder;
|
|
21
21
|
this._sourcesBuilder = _sourcesBuilder;
|
|
22
|
+
this.allowed = [];
|
|
23
|
+
this.restricted = [];
|
|
22
24
|
this.sourceData = {
|
|
23
25
|
items$,
|
|
24
26
|
isDefault: this._cardsBuilder._state.sources.length === 0,
|
|
25
27
|
label: label,
|
|
26
|
-
claims: []
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
setAsDefault() {
|
|
@@ -31,29 +32,39 @@ export class SmzCardsSourceBuilder {
|
|
|
31
32
|
this.sourceData.isDefault = true;
|
|
32
33
|
return this;
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
-
this.
|
|
35
|
+
allowTo(allowedClaim) {
|
|
36
|
+
this.allowed.push(allowedClaim);
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
restrictTo(restrictedClaim) {
|
|
40
|
+
this.restricted.push(restrictedClaim);
|
|
36
41
|
return this;
|
|
37
42
|
}
|
|
38
43
|
get source() {
|
|
39
|
-
if (this.
|
|
44
|
+
if (this.allowed.length === 0 && this.restricted.length === 0) {
|
|
40
45
|
this._cardsBuilder._state.sources.push(this.sourceData);
|
|
41
46
|
}
|
|
42
47
|
else {
|
|
43
48
|
const store = GlobalInjector.instance.get(Store);
|
|
44
|
-
|
|
49
|
+
const isAllow = store.selectSnapshot(AuthenticationSelectors.hasGroupOfClaimAccess(this.allowed));
|
|
50
|
+
const isBlocked = store.selectSnapshot(AuthenticationSelectors.hasGroupOfClaimAccess(this.restricted));
|
|
51
|
+
if (!isBlocked && isAllow) {
|
|
45
52
|
if (this._cardsBuilder._state.isDebug) {
|
|
46
|
-
console.log('
|
|
53
|
+
console.log('User has access');
|
|
54
|
+
console.log('allowed: ', this.allowed);
|
|
55
|
+
console.log('restricted', this.restricted);
|
|
47
56
|
}
|
|
48
57
|
this._cardsBuilder._state.sources.push(this.sourceData);
|
|
49
58
|
}
|
|
50
59
|
else {
|
|
51
60
|
if (this._cardsBuilder._state.isDebug) {
|
|
52
|
-
console.log('
|
|
61
|
+
console.log('User doesn\'t have access');
|
|
62
|
+
console.log('allowed: ', this.allowed);
|
|
63
|
+
console.log('restricted', this.restricted);
|
|
53
64
|
}
|
|
54
65
|
}
|
|
55
66
|
}
|
|
56
67
|
return this._sourcesBuilder;
|
|
57
68
|
}
|
|
58
69
|
}
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
70
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlLWJ1aWxkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc216LXVpL3NyYy9saWIvYnVpbGRlcnMvc216LWNhcmRzL3NvdXJjZS1idWlsZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDcEMsT0FBTyxFQ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29uc29sZS5sb2coJ3Jlc3RyaWN0ZWQnLCB0aGlzLnJlc3RyaWN0ZWQpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5fY2FyZHNCdWlsZGVyLl9zdGF0ZS5zb3VyY2VzLnB1c2godGhpcy5zb3VyY2VEYXRhKTtcbiAgICAgIH1cbiAgICAgIGVsc2Uge1xuXG4gICAgICAgIGlmICh0aGlzLl9jYXJkc0J1aWxkZXIuX3N0YXRlLmlzRGVidWcpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZygnVXNlciBkb2VzblxcJ3QgaGF2ZSBhY2Nlc3MnKTtcbiAgICAgICAgICBjb25zb2xlLmxvZygnYWxsb3dlZDogJywgdGhpcy5hbGxvd2VkKTtcbiAgICAgICAgICBjb25zb2xlLmxvZygncmVzdHJpY3RlZCcsIHRoaXMucmVzdHJpY3RlZCk7XG4gICAgICAgIH1cblxuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiB0aGlzLl9zb3VyY2VzQnVpbGRlcjtcbiAgfVxuXG59XG4iXX0=
|
|
@@ -45,14 +45,14 @@ export class SmzCardsComponent {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
SmzCardsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzCardsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
-
SmzCardsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzCardsComponent, selector: "smz-ui-cards", inputs: { state: "state" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"state != null\">\n<ng-container *ngIf=\"state.items$ | async as items\">\n\n <p-dataView #dv [value]=\"items\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\">\n <ng-template pTemplate=\"header\">\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\n <div *ngIf=\"state.title.isVisible\" class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\n <ng-container *ngIf=\"headerTemplate != null\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\n </ng-container>\n\n <span *ngIf=\"state.view.showGlobalFilter\" class=\"p-input-icon-left mb-2 md:mb-0\">\n <i class=\"pi pi-search\"></i>\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"dv.filter($any($event.target).value)\">\n </span>\n\n <p-dataViewLayoutOptions></p-dataViewLayoutOptions>\n\n <ng-container *ngIf=\"state.sources.length > 0\">\n <p-dropdown [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-dropdown>\n </ng-container>\n </div>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"listItem\">\n <smz-list-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\n </ng-template>\n\n <ng-template let-item pTemplate=\"gridItem\">\n <smz-grid-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\n </ng-template>\n\n</p-dataView>\n\n</ng-container>\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i3.DataView, selector: "p-dataView", inputs: ["paginator", "rows", "totalRecords", "pageLinks", "rowsPerPageOptions", "paginatorPosition", "alwaysShowPaginator", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "lazy", "emptyMessage", "style", "styleClass", "trackBy", "filterBy", "filterLocale", "loading", "loadingIcon", "first", "sortField", "sortOrder", "value", "layout"], outputs: ["onLazyLoad", "onPage", "onSort", "onChangeLayout"] }, { kind: "component", type: i3.DataViewLayoutOptions, selector: "p-dataViewLayoutOptions", inputs: ["style", "styleClass"] }, { kind: "directive", type: i4.InputText, selector: "[pInputText]" }, { kind: "component", type: i5.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "itemSize", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7.SmzListItemComponent, selector: "smz-list-item", inputs: ["state", "data"] }, { kind: "component", type: i8.SmzGridItemComponent, selector: "smz-grid-item", inputs: ["state", "data"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i9.SafeHtmlPipe, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
48
|
+
SmzCardsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzCardsComponent, selector: "smz-ui-cards", inputs: { state: "state" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"state != null\">\n<ng-container *ngIf=\"state.items$ | async as items\">\n\n <p-dataView #dv [value]=\"items\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\" [emptyMessage]=\"state.locale.emptyMessage\">\n <ng-template pTemplate=\"header\">\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\n <div *ngIf=\"state.title.isVisible\" class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\n <ng-container *ngIf=\"headerTemplate != null\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\n </ng-container>\n\n <span *ngIf=\"state.view.showGlobalFilter\" class=\"p-input-icon-left mb-2 md:mb-0\">\n <i class=\"pi pi-search\"></i>\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"dv.filter($any($event.target).value)\">\n </span>\n\n <p-dataViewLayoutOptions></p-dataViewLayoutOptions>\n\n <ng-container *ngIf=\"state.sources.length > 0\">\n <p-dropdown [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-dropdown>\n </ng-container>\n </div>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"listItem\">\n <smz-list-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\n </ng-template>\n\n <ng-template let-item pTemplate=\"gridItem\">\n <smz-grid-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\n </ng-template>\n\n</p-dataView>\n\n</ng-container>\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i3.DataView, selector: "p-dataView", inputs: ["paginator", "rows", "totalRecords", "pageLinks", "rowsPerPageOptions", "paginatorPosition", "alwaysShowPaginator", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "lazy", "emptyMessage", "style", "styleClass", "trackBy", "filterBy", "filterLocale", "loading", "loadingIcon", "first", "sortField", "sortOrder", "value", "layout"], outputs: ["onLazyLoad", "onPage", "onSort", "onChangeLayout"] }, { kind: "component", type: i3.DataViewLayoutOptions, selector: "p-dataViewLayoutOptions", inputs: ["style", "styleClass"] }, { kind: "directive", type: i4.InputText, selector: "[pInputText]" }, { kind: "component", type: i5.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "itemSize", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7.SmzListItemComponent, selector: "smz-list-item", inputs: ["state", "data"] }, { kind: "component", type: i8.SmzGridItemComponent, selector: "smz-grid-item", inputs: ["state", "data"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i9.SafeHtmlPipe, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
49
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzCardsComponent, decorators: [{
|
|
50
50
|
type: Component,
|
|
51
|
-
args: [{ selector: 'smz-ui-cards', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"state != null\">\n<ng-container *ngIf=\"state.items$ | async as items\">\n\n <p-dataView #dv [value]=\"items\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\">\n <ng-template pTemplate=\"header\">\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\n <div *ngIf=\"state.title.isVisible\" class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\n <ng-container *ngIf=\"headerTemplate != null\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\n </ng-container>\n\n <span *ngIf=\"state.view.showGlobalFilter\" class=\"p-input-icon-left mb-2 md:mb-0\">\n <i class=\"pi pi-search\"></i>\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"dv.filter($any($event.target).value)\">\n </span>\n\n <p-dataViewLayoutOptions></p-dataViewLayoutOptions>\n\n <ng-container *ngIf=\"state.sources.length > 0\">\n <p-dropdown [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-dropdown>\n </ng-container>\n </div>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"listItem\">\n <smz-list-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\n </ng-template>\n\n <ng-template let-item pTemplate=\"gridItem\">\n <smz-grid-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\n </ng-template>\n\n</p-dataView>\n\n</ng-container>\n</ng-container>" }]
|
|
51
|
+
args: [{ selector: 'smz-ui-cards', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"state != null\">\n<ng-container *ngIf=\"state.items$ | async as items\">\n\n <p-dataView #dv [value]=\"items\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\" [emptyMessage]=\"state.locale.emptyMessage\">\n <ng-template pTemplate=\"header\">\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\n <div *ngIf=\"state.title.isVisible\" class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\n <ng-container *ngIf=\"headerTemplate != null\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\n </ng-container>\n\n <span *ngIf=\"state.view.showGlobalFilter\" class=\"p-input-icon-left mb-2 md:mb-0\">\n <i class=\"pi pi-search\"></i>\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"dv.filter($any($event.target).value)\">\n </span>\n\n <p-dataViewLayoutOptions></p-dataViewLayoutOptions>\n\n <ng-container *ngIf=\"state.sources.length > 0\">\n <p-dropdown [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-dropdown>\n </ng-container>\n </div>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"listItem\">\n <smz-list-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\n </ng-template>\n\n <ng-template let-item pTemplate=\"gridItem\">\n <smz-grid-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\n </ng-template>\n\n</p-dataView>\n\n</ng-container>\n</ng-container>" }]
|
|
52
52
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { templates: [{
|
|
53
53
|
type: ContentChildren,
|
|
54
54
|
args: [PrimeTemplate]
|
|
55
55
|
}], state: [{
|
|
56
56
|
type: Input
|
|
57
57
|
}] } });
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic216LWNhcmRzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zbXotdWkvc3JjL2xpYi9tb2R1bGVzL3Ntei1jYXJkcy9mZWF0dXJlcy9zbXotY2FyZHMvc216LWNhcmRzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zbXotdWkvc3JjL2xpYi9tb2R1bGVzL3Ntei1jYXJkcy9mZWF0dXJlcy9zbXotY2FyZHMvc216LWNhcmRzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBb0IsdUJBQXVCLEVBQXFCLFNBQVMsRUFBRSxlQUFlLEVBQUUsS0FBSyxFQUFrQyxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuTCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sYUFBYSxDQUFDOzs7Ozs7Ozs7OztBQVc1QyxNQUFNLE9BQU8saUJBQWlCO0lBSzVCLFlBQW9CLEdBQXNCO1FBQXRCLFFBQUcsR0FBSCxHQUFHLENBQW1CO1FBRG5DLHFCQUFnQixHQUFtRCxFQUFFLENBQUM7SUFDL0IsQ0FBQztJQUMvQyxRQUFRO1FBQ04sSUFBSSxJQUFJLENBQUMsS0FBSyxFQUFFLE9BQU8sRUFBRTtZQUN2QixPQUFPLENBQ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 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic216LWNhcmRzLXN0YXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNtei11aS9zcmMvbGliL21vZHVsZXMvc216LWNhcmRzL21vZGVscy9zbXotY2FyZHMtc3RhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tICdyeGpzJztcbmltcG9ydCB7IFNtek1lbnVJdGVtIH0gZnJvbSAnLi4vLi4vc216LW1lbnUvbW9kZWxzL3Ntei1tZW51LWl0ZW0nO1xuaW1wb3J0IHsgU216Q2FyZHNUZW1wbGF0ZXMgfSBmcm9tICcuL3Ntei1jYXJkcy10ZW1wbGF0ZXMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFNtekNhcmRzU3RhdGU8VD4ge1xuICBpdGVtcyQ6IE9ic2VydmFibGU8VFtdPjtcbiAgc291cmNlczogU216Q2FyZHNTb3VyY2U8VD5bXVxuICBzZWxlY3RlZFNvdXJjZTogU216Q2FyZHNTb3VyY2U8VD47XG4gIGlzRGVidWc6IGJvb2xlYW47XG4gIHRpdGxlOiB7XG4gICAgaXNWaXNpYmxlOiBib29sZWFuO1xuICAgIGdldFRleHQ6ICgpID0+IHN0cmluZztcbiAgfTtcbiAgbG9jYWxlOiBTbXpDYXJkc0xvY2FsZTtcbiAgdGVtcGxhdGU6IFNtekNhcmRzVGVtcGxhdGVzO1xuICBncmlkOiBTbXpDYXJkVmlldztcbiAgbGlzdDogU216Q2FyZFZpZXc7XG4gIGJ1dHRvbnM6IFNtekNhcmRBY3Rpb25zPFQ+O1xuICBtZW51OiBTbXpDYXJkQWN0aW9uczxUPjtcbiAgdmlldzoge1xuICAgIHJvd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aW5hdG9yOiB7XG4gICAgbmV4dDogc3RyaW5nO1xuICAgIHByZXZpb3VzOiBzdHJpbmc7XG4gICAgc2hvd2luZzogc3RyaW5nO1xuICAgIHRvOiBzdHJpbmc7XG4gICAgb2Y6IHN0cmluZztcbiAgICByZXN1bHRzOiBzdHJpbmc7XG4gIH07XG4gIGVtcHR5TWVzc2FnZTogc3RyaW5nO1xufSJdfQ==
|
package/fesm2015/ngx-smz-ui.mjs
CHANGED
|
@@ -28914,10 +28914,10 @@ class SmzCardsComponent {
|
|
|
28914
28914
|
}
|
|
28915
28915
|
}
|
|
28916
28916
|
SmzCardsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzCardsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
28917
|
-
SmzCardsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzCardsComponent, selector: "smz-ui-cards", inputs: { state: "state" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"state != null\">\n<ng-container *ngIf=\"state.items$ | async as items\">\n\n <p-dataView #dv [value]=\"items\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\">\n <ng-template pTemplate=\"header\">\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\n <div *ngIf=\"state.title.isVisible\" class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\n <ng-container *ngIf=\"headerTemplate != null\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\n </ng-container>\n\n <span *ngIf=\"state.view.showGlobalFilter\" class=\"p-input-icon-left mb-2 md:mb-0\">\n <i class=\"pi pi-search\"></i>\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"dv.filter($any($event.target).value)\">\n </span>\n\n <p-dataViewLayoutOptions></p-dataViewLayoutOptions>\n\n <ng-container *ngIf=\"state.sources.length > 0\">\n <p-dropdown [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-dropdown>\n </ng-container>\n </div>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"listItem\">\n <smz-list-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\n </ng-template>\n\n <ng-template let-item pTemplate=\"gridItem\">\n <smz-grid-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\n </ng-template>\n\n</p-dataView>\n\n</ng-container>\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i3$a.DataView, selector: "p-dataView", inputs: ["paginator", "rows", "totalRecords", "pageLinks", "rowsPerPageOptions", "paginatorPosition", "alwaysShowPaginator", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "lazy", "emptyMessage", "style", "styleClass", "trackBy", "filterBy", "filterLocale", "loading", "loadingIcon", "first", "sortField", "sortOrder", "value", "layout"], outputs: ["onLazyLoad", "onPage", "onSort", "onChangeLayout"] }, { kind: "component", type: i3$a.DataViewLayoutOptions, selector: "p-dataViewLayoutOptions", inputs: ["style", "styleClass"] }, { kind: "directive", type: i7.InputText, selector: "[pInputText]" }, { kind: "component", type: i5.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "itemSize", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SmzListItemComponent, selector: "smz-list-item", inputs: ["state", "data"] }, { kind: "component", type: SmzGridItemComponent, selector: "smz-grid-item", inputs: ["state", "data"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: SafeHtmlPipe$1, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
28917
|
+
SmzCardsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.4", type: SmzCardsComponent, selector: "smz-ui-cards", inputs: { state: "state" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"state != null\">\n<ng-container *ngIf=\"state.items$ | async as items\">\n\n <p-dataView #dv [value]=\"items\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\" [emptyMessage]=\"state.locale.emptyMessage\">\n <ng-template pTemplate=\"header\">\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\n <div *ngIf=\"state.title.isVisible\" class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\n <ng-container *ngIf=\"headerTemplate != null\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\n </ng-container>\n\n <span *ngIf=\"state.view.showGlobalFilter\" class=\"p-input-icon-left mb-2 md:mb-0\">\n <i class=\"pi pi-search\"></i>\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"dv.filter($any($event.target).value)\">\n </span>\n\n <p-dataViewLayoutOptions></p-dataViewLayoutOptions>\n\n <ng-container *ngIf=\"state.sources.length > 0\">\n <p-dropdown [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-dropdown>\n </ng-container>\n </div>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"listItem\">\n <smz-list-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\n </ng-template>\n\n <ng-template let-item pTemplate=\"gridItem\">\n <smz-grid-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\n </ng-template>\n\n</p-dataView>\n\n</ng-container>\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i3$a.DataView, selector: "p-dataView", inputs: ["paginator", "rows", "totalRecords", "pageLinks", "rowsPerPageOptions", "paginatorPosition", "alwaysShowPaginator", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "lazy", "emptyMessage", "style", "styleClass", "trackBy", "filterBy", "filterLocale", "loading", "loadingIcon", "first", "sortField", "sortOrder", "value", "layout"], outputs: ["onLazyLoad", "onPage", "onSort", "onChangeLayout"] }, { kind: "component", type: i3$a.DataViewLayoutOptions, selector: "p-dataViewLayoutOptions", inputs: ["style", "styleClass"] }, { kind: "directive", type: i7.InputText, selector: "[pInputText]" }, { kind: "component", type: i5.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "itemSize", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SmzListItemComponent, selector: "smz-list-item", inputs: ["state", "data"] }, { kind: "component", type: SmzGridItemComponent, selector: "smz-grid-item", inputs: ["state", "data"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: SafeHtmlPipe$1, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
28918
28918
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.4", ngImport: i0, type: SmzCardsComponent, decorators: [{
|
|
28919
28919
|
type: Component,
|
|
28920
|
-
args: [{ selector: 'smz-ui-cards', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"state != null\">\n<ng-container *ngIf=\"state.items$ | async as items\">\n\n <p-dataView #dv [value]=\"items\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\">\n <ng-template pTemplate=\"header\">\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\n <div *ngIf=\"state.title.isVisible\" class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\n <ng-container *ngIf=\"headerTemplate != null\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\n </ng-container>\n\n <span *ngIf=\"state.view.showGlobalFilter\" class=\"p-input-icon-left mb-2 md:mb-0\">\n <i class=\"pi pi-search\"></i>\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"dv.filter($any($event.target).value)\">\n </span>\n\n <p-dataViewLayoutOptions></p-dataViewLayoutOptions>\n\n <ng-container *ngIf=\"state.sources.length > 0\">\n <p-dropdown [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-dropdown>\n </ng-container>\n </div>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"listItem\">\n <smz-list-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\n </ng-template>\n\n <ng-template let-item pTemplate=\"gridItem\">\n <smz-grid-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\n </ng-template>\n\n</p-dataView>\n\n</ng-container>\n</ng-container>" }]
|
|
28920
|
+
args: [{ selector: 'smz-ui-cards', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"state != null\">\n<ng-container *ngIf=\"state.items$ | async as items\">\n\n <p-dataView #dv [value]=\"items\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\" [emptyMessage]=\"state.locale.emptyMessage\">\n <ng-template pTemplate=\"header\">\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\n <div *ngIf=\"state.title.isVisible\" class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\n <ng-container *ngIf=\"headerTemplate != null\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\n </ng-container>\n\n <span *ngIf=\"state.view.showGlobalFilter\" class=\"p-input-icon-left mb-2 md:mb-0\">\n <i class=\"pi pi-search\"></i>\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"dv.filter($any($event.target).value)\">\n </span>\n\n <p-dataViewLayoutOptions></p-dataViewLayoutOptions>\n\n <ng-container *ngIf=\"state.sources.length > 0\">\n <p-dropdown [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-dropdown>\n </ng-container>\n </div>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"listItem\">\n <smz-list-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\n </ng-template>\n\n <ng-template let-item pTemplate=\"gridItem\">\n <smz-grid-item *ngIf=\"state.template != null\" [state]=\"state\" [data]=\"item\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\n </ng-template>\n\n</p-dataView>\n\n</ng-container>\n</ng-container>" }]
|
|
28921
28921
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { templates: [{
|
|
28922
28922
|
type: ContentChildren,
|
|
28923
28923
|
args: [PrimeTemplate]
|
|
@@ -35528,11 +35528,12 @@ class SmzCardsSourceBuilder {
|
|
|
35528
35528
|
constructor(_cardsBuilder, _sourcesBuilder, items$, label) {
|
|
35529
35529
|
this._cardsBuilder = _cardsBuilder;
|
|
35530
35530
|
this._sourcesBuilder = _sourcesBuilder;
|
|
35531
|
+
this.allowed = [];
|
|
35532
|
+
this.restricted = [];
|
|
35531
35533
|
this.sourceData = {
|
|
35532
35534
|
items$,
|
|
35533
35535
|
isDefault: this._cardsBuilder._state.sources.length === 0,
|
|
35534
35536
|
label: label,
|
|
35535
|
-
claims: []
|
|
35536
35537
|
};
|
|
35537
35538
|
}
|
|
35538
35539
|
setAsDefault() {
|
|
@@ -35540,25 +35541,35 @@ class SmzCardsSourceBuilder {
|
|
|
35540
35541
|
this.sourceData.isDefault = true;
|
|
35541
35542
|
return this;
|
|
35542
35543
|
}
|
|
35543
|
-
|
|
35544
|
-
this.
|
|
35544
|
+
allowTo(allowedClaim) {
|
|
35545
|
+
this.allowed.push(allowedClaim);
|
|
35546
|
+
return this;
|
|
35547
|
+
}
|
|
35548
|
+
restrictTo(restrictedClaim) {
|
|
35549
|
+
this.restricted.push(restrictedClaim);
|
|
35545
35550
|
return this;
|
|
35546
35551
|
}
|
|
35547
35552
|
get source() {
|
|
35548
|
-
if (this.
|
|
35553
|
+
if (this.allowed.length === 0 && this.restricted.length === 0) {
|
|
35549
35554
|
this._cardsBuilder._state.sources.push(this.sourceData);
|
|
35550
35555
|
}
|
|
35551
35556
|
else {
|
|
35552
35557
|
const store = GlobalInjector.instance.get(Store);
|
|
35553
|
-
|
|
35558
|
+
const isAllow = store.selectSnapshot(AuthenticationSelectors.hasGroupOfClaimAccess(this.allowed));
|
|
35559
|
+
const isBlocked = store.selectSnapshot(AuthenticationSelectors.hasGroupOfClaimAccess(this.restricted));
|
|
35560
|
+
if (!isBlocked && isAllow) {
|
|
35554
35561
|
if (this._cardsBuilder._state.isDebug) {
|
|
35555
|
-
console.log('
|
|
35562
|
+
console.log('User has access');
|
|
35563
|
+
console.log('allowed: ', this.allowed);
|
|
35564
|
+
console.log('restricted', this.restricted);
|
|
35556
35565
|
}
|
|
35557
35566
|
this._cardsBuilder._state.sources.push(this.sourceData);
|
|
35558
35567
|
}
|
|
35559
35568
|
else {
|
|
35560
35569
|
if (this._cardsBuilder._state.isDebug) {
|
|
35561
|
-
console.log('
|
|
35570
|
+
console.log('User doesn\'t have access');
|
|
35571
|
+
console.log('allowed: ', this.allowed);
|
|
35572
|
+
console.log('restricted', this.restricted);
|
|
35562
35573
|
}
|
|
35563
35574
|
}
|
|
35564
35575
|
}
|