@leanix/components 0.4.343 → 0.4.344
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.
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
2
|
+
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
3
3
|
import { ButtonComponent } from '../../../core-ui/components/button/button.component';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export class ContentPanelComponent {
|
@@ -10,15 +10,21 @@ export class ContentPanelComponent {
|
|
10
10
|
onClose() {
|
11
11
|
this.contentPanelClose.emit();
|
12
12
|
}
|
13
|
+
scrollToTop() {
|
14
|
+
this.body.nativeElement.scrollTo({ top: 0, behavior: 'smooth' });
|
15
|
+
}
|
13
16
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ContentPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ContentPanelComponent, isStandalone: true, selector: "lx-content-panel", inputs: { title: "title" }, outputs: { contentPanelClose: "contentPanelClose" }, ngImport: i0, template: "<div [class]=\"baseClass\">\n <div class=\"{{ baseClass }}Header\">\n @if (title) {\n <div class=\"{{ baseClass }}Title\">{{ title }}</div>\n }\n <button lx-button [square]=\"true\" class=\"{{ baseClass }}CloseButton\" color=\"light\" mode=\"solid\" (click)=\"onClose()\">\n <i class=\"far fa-times\"></i>\n </button>\n </div>\n <div class=\"{{ baseClass }}Body\">\n <ng-content />\n </div>\n</div>\n", styles: [":host .contentPanel{background-color:#fff;padding:16px;display:flex;flex-direction:column;max-height:100%}:host .contentPanelHeader{margin-bottom:16px;display:flex;justify-content:space-between}:host .contentPanelTitle{font-weight:700;font-size:20px;line-height:24px}:host .contentPanelBody{flex:1;overflow-y:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "button[lx-button]", inputs: ["size", "color", "mode", "pressed", "selected", "square", "circle", "disabled", "showSpinner"] }] }); }
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ContentPanelComponent, isStandalone: true, selector: "lx-content-panel", inputs: { title: "title" }, outputs: { contentPanelClose: "contentPanelClose" }, viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true }], ngImport: i0, template: "<div [class]=\"baseClass\">\n <div class=\"{{ baseClass }}Header\" #header>\n @if (title) {\n <div class=\"{{ baseClass }}Title\">{{ title }}</div>\n }\n <button lx-button [square]=\"true\" class=\"{{ baseClass }}CloseButton\" color=\"light\" mode=\"solid\" (click)=\"onClose()\">\n <i class=\"far fa-times\"></i>\n </button>\n </div>\n <div class=\"{{ baseClass }}Body\" #body>\n <ng-content />\n </div>\n</div>\n", styles: [":host .contentPanel{background-color:#fff;padding:16px;display:flex;flex-direction:column;max-height:100%}:host .contentPanelHeader{margin-bottom:16px;display:flex;justify-content:space-between}:host .contentPanelTitle{font-weight:700;font-size:20px;line-height:24px}:host .contentPanelBody{flex:1;overflow-y:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "button[lx-button]", inputs: ["size", "color", "mode", "pressed", "selected", "square", "circle", "disabled", "showSpinner"] }] }); }
|
15
18
|
}
|
16
19
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ContentPanelComponent, decorators: [{
|
17
20
|
type: Component,
|
18
|
-
args: [{ selector: 'lx-content-panel', standalone: true, imports: [CommonModule, ButtonComponent], template: "<div [class]=\"baseClass\">\n <div class=\"{{ baseClass }}Header\">\n @if (title) {\n <div class=\"{{ baseClass }}Title\">{{ title }}</div>\n }\n <button lx-button [square]=\"true\" class=\"{{ baseClass }}CloseButton\" color=\"light\" mode=\"solid\" (click)=\"onClose()\">\n <i class=\"far fa-times\"></i>\n </button>\n </div>\n <div class=\"{{ baseClass }}Body\">\n <ng-content />\n </div>\n</div>\n", styles: [":host .contentPanel{background-color:#fff;padding:16px;display:flex;flex-direction:column;max-height:100%}:host .contentPanelHeader{margin-bottom:16px;display:flex;justify-content:space-between}:host .contentPanelTitle{font-weight:700;font-size:20px;line-height:24px}:host .contentPanelBody{flex:1;overflow-y:auto}\n"] }]
|
21
|
+
args: [{ selector: 'lx-content-panel', standalone: true, imports: [CommonModule, ButtonComponent], template: "<div [class]=\"baseClass\">\n <div class=\"{{ baseClass }}Header\" #header>\n @if (title) {\n <div class=\"{{ baseClass }}Title\">{{ title }}</div>\n }\n <button lx-button [square]=\"true\" class=\"{{ baseClass }}CloseButton\" color=\"light\" mode=\"solid\" (click)=\"onClose()\">\n <i class=\"far fa-times\"></i>\n </button>\n </div>\n <div class=\"{{ baseClass }}Body\" #body>\n <ng-content />\n </div>\n</div>\n", styles: [":host .contentPanel{background-color:#fff;padding:16px;display:flex;flex-direction:column;max-height:100%}:host .contentPanelHeader{margin-bottom:16px;display:flex;justify-content:space-between}:host .contentPanelTitle{font-weight:700;font-size:20px;line-height:24px}:host .contentPanelBody{flex:1;overflow-y:auto}\n"] }]
|
19
22
|
}], propDecorators: { title: [{
|
20
23
|
type: Input
|
21
24
|
}], contentPanelClose: [{
|
22
25
|
type: Output
|
26
|
+
}], body: [{
|
27
|
+
type: ViewChild,
|
28
|
+
args: ['body']
|
23
29
|
}] } });
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1wYW5lbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc3JjL2xpYi9jb3JlLXVpL2NvbX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G9Ub3AoKTogdm9pZCB7XG4gICAgdGhpcy5ib2R5Lm5hdGl2ZUVsZW1lbnQuc2Nyb2xsVG8oeyB0b3A6IDAsIGJlaGF2aW9yOiAnc21vb3RoJyB9KTtcbiAgfVxufVxuIiwiPGRpdiBbY2xhc3NdPVwiYmFzZUNsYXNzXCI+XG4gIDxkaXYgY2xhc3M9XCJ7eyBiYXNlQ2xhc3MgfX1IZWFkZXJcIiAjaGVhZGVyPlxuICAgIEBpZiAodGl0bGUpIHtcbiAgICAgIDxkaXYgY2xhc3M9XCJ7eyBiYXNlQ2xhc3MgfX1UaXRsZVwiPnt7IHRpdGxlIH19PC9kaXY+XG4gICAgfVxuICAgIDxidXR0b24gbHgtYnV0dG9uIFtzcXVhcmVdPVwidHJ1ZVwiIGNsYXNzPVwie3sgYmFzZUNsYXNzIH19Q2xvc2VCdXR0b25cIiBjb2xvcj1cImxpZ2h0XCIgbW9kZT1cInNvbGlkXCIgKGNsaWNrKT1cIm9uQ2xvc2UoKVwiPlxuICAgICAgPGkgY2xhc3M9XCJmYXIgZmEtdGltZXNcIj48L2k+XG4gICAgPC9idXR0b24+XG4gIDwvZGl2PlxuICA8ZGl2IGNsYXNzPVwie3sgYmFzZUNsYXNzIH19Qm9keVwiICNib2R5PlxuICAgIDxuZy1jb250ZW50IC8+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
@@ -2204,16 +2204,22 @@ class ContentPanelComponent {
|
|
2204
2204
|
onClose() {
|
2205
2205
|
this.contentPanelClose.emit();
|
2206
2206
|
}
|
2207
|
+
scrollToTop() {
|
2208
|
+
this.body.nativeElement.scrollTo({ top: 0, behavior: 'smooth' });
|
2209
|
+
}
|
2207
2210
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ContentPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
2208
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ContentPanelComponent, isStandalone: true, selector: "lx-content-panel", inputs: { title: "title" }, outputs: { contentPanelClose: "contentPanelClose" }, ngImport: i0, template: "<div [class]=\"baseClass\">\n <div class=\"{{ baseClass }}Header\">\n @if (title) {\n <div class=\"{{ baseClass }}Title\">{{ title }}</div>\n }\n <button lx-button [square]=\"true\" class=\"{{ baseClass }}CloseButton\" color=\"light\" mode=\"solid\" (click)=\"onClose()\">\n <i class=\"far fa-times\"></i>\n </button>\n </div>\n <div class=\"{{ baseClass }}Body\">\n <ng-content />\n </div>\n</div>\n", styles: [":host .contentPanel{background-color:#fff;padding:16px;display:flex;flex-direction:column;max-height:100%}:host .contentPanelHeader{margin-bottom:16px;display:flex;justify-content:space-between}:host .contentPanelTitle{font-weight:700;font-size:20px;line-height:24px}:host .contentPanelBody{flex:1;overflow-y:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "button[lx-button]", inputs: ["size", "color", "mode", "pressed", "selected", "square", "circle", "disabled", "showSpinner"] }] }); }
|
2211
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ContentPanelComponent, isStandalone: true, selector: "lx-content-panel", inputs: { title: "title" }, outputs: { contentPanelClose: "contentPanelClose" }, viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true }], ngImport: i0, template: "<div [class]=\"baseClass\">\n <div class=\"{{ baseClass }}Header\" #header>\n @if (title) {\n <div class=\"{{ baseClass }}Title\">{{ title }}</div>\n }\n <button lx-button [square]=\"true\" class=\"{{ baseClass }}CloseButton\" color=\"light\" mode=\"solid\" (click)=\"onClose()\">\n <i class=\"far fa-times\"></i>\n </button>\n </div>\n <div class=\"{{ baseClass }}Body\" #body>\n <ng-content />\n </div>\n</div>\n", styles: [":host .contentPanel{background-color:#fff;padding:16px;display:flex;flex-direction:column;max-height:100%}:host .contentPanelHeader{margin-bottom:16px;display:flex;justify-content:space-between}:host .contentPanelTitle{font-weight:700;font-size:20px;line-height:24px}:host .contentPanelBody{flex:1;overflow-y:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "button[lx-button]", inputs: ["size", "color", "mode", "pressed", "selected", "square", "circle", "disabled", "showSpinner"] }] }); }
|
2209
2212
|
}
|
2210
2213
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ContentPanelComponent, decorators: [{
|
2211
2214
|
type: Component,
|
2212
|
-
args: [{ selector: 'lx-content-panel', standalone: true, imports: [CommonModule, ButtonComponent], template: "<div [class]=\"baseClass\">\n <div class=\"{{ baseClass }}Header\">\n @if (title) {\n <div class=\"{{ baseClass }}Title\">{{ title }}</div>\n }\n <button lx-button [square]=\"true\" class=\"{{ baseClass }}CloseButton\" color=\"light\" mode=\"solid\" (click)=\"onClose()\">\n <i class=\"far fa-times\"></i>\n </button>\n </div>\n <div class=\"{{ baseClass }}Body\">\n <ng-content />\n </div>\n</div>\n", styles: [":host .contentPanel{background-color:#fff;padding:16px;display:flex;flex-direction:column;max-height:100%}:host .contentPanelHeader{margin-bottom:16px;display:flex;justify-content:space-between}:host .contentPanelTitle{font-weight:700;font-size:20px;line-height:24px}:host .contentPanelBody{flex:1;overflow-y:auto}\n"] }]
|
2215
|
+
args: [{ selector: 'lx-content-panel', standalone: true, imports: [CommonModule, ButtonComponent], template: "<div [class]=\"baseClass\">\n <div class=\"{{ baseClass }}Header\" #header>\n @if (title) {\n <div class=\"{{ baseClass }}Title\">{{ title }}</div>\n }\n <button lx-button [square]=\"true\" class=\"{{ baseClass }}CloseButton\" color=\"light\" mode=\"solid\" (click)=\"onClose()\">\n <i class=\"far fa-times\"></i>\n </button>\n </div>\n <div class=\"{{ baseClass }}Body\" #body>\n <ng-content />\n </div>\n</div>\n", styles: [":host .contentPanel{background-color:#fff;padding:16px;display:flex;flex-direction:column;max-height:100%}:host .contentPanelHeader{margin-bottom:16px;display:flex;justify-content:space-between}:host .contentPanelTitle{font-weight:700;font-size:20px;line-height:24px}:host .contentPanelBody{flex:1;overflow-y:auto}\n"] }]
|
2213
2216
|
}], propDecorators: { title: [{
|
2214
2217
|
type: Input
|
2215
2218
|
}], contentPanelClose: [{
|
2216
2219
|
type: Output
|
2220
|
+
}], body: [{
|
2221
|
+
type: ViewChild,
|
2222
|
+
args: ['body']
|
2217
2223
|
}] } });
|
2218
2224
|
|
2219
2225
|
class SkeletonComponent {
|