@leanix/components 0.4.457 → 0.4.458
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/index.mjs +1 -2
- package/fesm2022/leanix-components.mjs +1 -42
- package/fesm2022/leanix-components.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/package.json +1 -1
- package/esm2022/lib/core-ui/components/content-panel/content-panel.component.mjs +0 -45
- package/lib/core-ui/components/content-panel/content-panel.component.d.ts +0 -29
package/index.d.ts
CHANGED
@@ -24,7 +24,6 @@ export * from './lib/core-ui/components/button-group/button-group.component';
|
|
24
24
|
export * from './lib/core-ui/components/button/button.component';
|
25
25
|
export * from './lib/core-ui/components/card/card.component';
|
26
26
|
export * from './lib/core-ui/components/collapsible/collapsible.component';
|
27
|
-
export * from './lib/core-ui/components/content-panel/content-panel.component';
|
28
27
|
export * from './lib/core-ui/components/counter/counter.component';
|
29
28
|
export * from './lib/core-ui/components/ellipsis/ellipsis.component';
|
30
29
|
export * from './lib/core-ui/components/empty-state/empty-state.component';
|
package/package.json
CHANGED
@@ -1,45 +0,0 @@
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
3
|
-
import { ButtonComponent } from '../button/button.component';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
/**
|
6
|
-
* A content panel component is used to show a panel with a title and content.
|
7
|
-
*
|
8
|
-
* ## Usage
|
9
|
-
*
|
10
|
-
* 1. Import the `ContentPanelComponent` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
|
11
|
-
*
|
12
|
-
* ```ts
|
13
|
-
* import { ContentPanelComponent } from '@leanix/components';
|
14
|
-
* ```
|
15
|
-
*/
|
16
|
-
export class ContentPanelComponent {
|
17
|
-
constructor() {
|
18
|
-
/** Event emitted when the close button is clicked */
|
19
|
-
this.contentPanelClose = new EventEmitter();
|
20
|
-
/** @internal */
|
21
|
-
this.baseClass = 'contentPanel';
|
22
|
-
}
|
23
|
-
/** @internal */
|
24
|
-
onClose() {
|
25
|
-
this.contentPanelClose.emit();
|
26
|
-
}
|
27
|
-
/** @internal */
|
28
|
-
scrollToTop() {
|
29
|
-
this.body.nativeElement.scrollTo({ top: 0, behavior: 'smooth' });
|
30
|
-
}
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ContentPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
32
|
-
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:var(--lxFontHeader3Size);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", "icon", "endIcon", "showSpinner"] }] }); }
|
33
|
-
}
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ContentPanelComponent, decorators: [{
|
35
|
-
type: Component,
|
36
|
-
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:var(--lxFontHeader3Size);line-height:24px}:host .contentPanelBody{flex:1;overflow-y:auto}\n"] }]
|
37
|
-
}], propDecorators: { title: [{
|
38
|
-
type: Input
|
39
|
-
}], contentPanelClose: [{
|
40
|
-
type: Output
|
41
|
-
}], body: [{
|
42
|
-
type: ViewChild,
|
43
|
-
args: ['body']
|
44
|
-
}] } });
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1wYW5lbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc3JjL2xpYi9jb3JlLXVpL2NvbXBvbmVudHMvY29udGVudC1wYW5lbC9jb250ZW50LXBhbmVsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9zcmMvbGliL2NvcmUtdWkvY29tcG9uZW50cy9jb250ZW50LXBhbmVsL2NvbnRlbnQtcGFuZWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFB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lxuICAgIDwvYnV0dG9uPlxuICA8L2Rpdj5cbiAgPGRpdiBjbGFzcz1cInt7IGJhc2VDbGFzcyB9fUJvZHlcIiAjYm9keT5cbiAgICA8bmctY29udGVudCAvPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
/**
|
4
|
-
* A content panel component is used to show a panel with a title and content.
|
5
|
-
*
|
6
|
-
* ## Usage
|
7
|
-
*
|
8
|
-
* 1. Import the `ContentPanelComponent` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
|
9
|
-
*
|
10
|
-
* ```ts
|
11
|
-
* import { ContentPanelComponent } from '@leanix/components';
|
12
|
-
* ```
|
13
|
-
*/
|
14
|
-
export declare class ContentPanelComponent {
|
15
|
-
/** The title text at the panel header */
|
16
|
-
title?: string;
|
17
|
-
/** Event emitted when the close button is clicked */
|
18
|
-
contentPanelClose: EventEmitter<void>;
|
19
|
-
/** @internal */
|
20
|
-
body: ElementRef;
|
21
|
-
/** @internal */
|
22
|
-
baseClass: string;
|
23
|
-
/** @internal */
|
24
|
-
onClose(): void;
|
25
|
-
/** @internal */
|
26
|
-
scrollToTop(): void;
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContentPanelComponent, never>;
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContentPanelComponent, "lx-content-panel", never, { "title": { "alias": "title"; "required": false; }; }, { "contentPanelClose": "contentPanelClose"; }, never, ["*"], true, never>;
|
29
|
-
}
|