@yuuvis/material 2.3.16 → 2.3.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/fesm2022/yuuvis-material-layout.mjs +240 -0
- package/fesm2022/yuuvis-material-layout.mjs.map +1 -0
- package/fesm2022/yuuvis-material-panes.mjs +69 -40
- package/fesm2022/yuuvis-material-panes.mjs.map +1 -1
- package/fesm2022/yuuvis-material.mjs +154 -3
- package/fesm2022/yuuvis-material.mjs.map +1 -1
- package/layout/README.md +3 -0
- package/layout/index.d.ts +3 -0
- package/layout/lib/components/master-details-layout/master-details-layout.component.d.ts +38 -0
- package/layout/lib/directives/layout-pane.directive.d.ts +15 -0
- package/layout/lib/layout.interface.d.ts +25 -0
- package/layout/lib/layout.module.d.ts +8 -0
- package/layout/lib/services/layout.service.d.ts +19 -0
- package/lib/services/device.interface.d.ts +15 -0
- package/lib/services/device.service.d.ts +60 -0
- package/lib/services/index.d.ts +2 -0
- package/package.json +8 -2
- package/panes/index.d.ts +1 -1
- package/panes/lib/pane/pane-footer/pane-footer.component.d.ts +5 -0
- package/panes/lib/pane/pane-top-bar/pane-top-bar.component.d.ts +5 -6
- package/panes/lib/pane/pane.component.d.ts +29 -10
- package/panes/lib/panes.module.d.ts +3 -3
- package/scss/material-components/_dialog.scss +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuuvis/material",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.18",
|
|
4
4
|
"author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
"@angular/core": "^19.2.1",
|
|
9
9
|
"@angular/material": "^19.2.15",
|
|
10
10
|
"modern-normalize": "^3.0.1",
|
|
11
|
-
"@ngx-translate/core": "^15.0.0"
|
|
11
|
+
"@ngx-translate/core": "^15.0.0",
|
|
12
|
+
"angular-split": "^19.0.0",
|
|
13
|
+
"ngx-device-detector": "^9.0.0"
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false,
|
|
14
16
|
"exports": {
|
|
@@ -20,6 +22,10 @@
|
|
|
20
22
|
"./package.json": {
|
|
21
23
|
"default": "./package.json"
|
|
22
24
|
},
|
|
25
|
+
"./layout": {
|
|
26
|
+
"types": "./layout/index.d.ts",
|
|
27
|
+
"default": "./fesm2022/yuuvis-material-layout.mjs"
|
|
28
|
+
},
|
|
23
29
|
"./panes": {
|
|
24
30
|
"types": "./panes/index.d.ts",
|
|
25
31
|
"default": "./fesm2022/yuuvis-material-panes.mjs"
|
package/panes/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export * from './lib/pane/pane.component';
|
|
|
3
3
|
export * from './lib/pane/pane-header/pane-header.component';
|
|
4
4
|
export * from './lib/pane/pane-body/pane-body.component';
|
|
5
5
|
export * from './lib/pane/pane-aside/pane-aside.component';
|
|
6
|
-
export * from './lib/pane/pane-top-bar/pane-top-bar.component';
|
|
7
6
|
export * from './lib/pane/pane-body/pane-body.component';
|
|
7
|
+
export * from './lib/pane/pane-footer/pane-footer.component';
|
|
8
8
|
export * from './lib/pane/pane-aside/pane-aside.component';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class YmtPaneFooterComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YmtPaneFooterComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YmtPaneFooterComponent, "ymt-pane-footer", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -6,17 +6,16 @@ export declare class YmtPaneTopBarComponent {
|
|
|
6
6
|
* TemplateRef for actions area in the top bar.
|
|
7
7
|
*/
|
|
8
8
|
actions: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* Set to 'none' the pane toggle button in the top bar is hidden.
|
|
12
|
-
*/
|
|
13
|
-
paneToggle: import("@angular/core").InputSignal<"start" | "end" | "none">;
|
|
9
|
+
modeAlign: import("@angular/core").InputSignal<"start" | "end">;
|
|
10
|
+
mode: import("@angular/core").InputSignal<"navigation" | "toggle" | undefined>;
|
|
14
11
|
/**
|
|
15
12
|
* Event emitted when the pane toggle button is clicked.
|
|
16
13
|
*/
|
|
17
14
|
paneToggled: import("@angular/core").OutputEmitterRef<boolean>;
|
|
15
|
+
navigationClicked: import("@angular/core").OutputEmitterRef<boolean>;
|
|
18
16
|
paneCollapsed: import("@angular/core").WritableSignal<boolean>;
|
|
19
17
|
togglePane(): void;
|
|
18
|
+
navClick(): void;
|
|
20
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<YmtPaneTopBarComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<YmtPaneTopBarComponent, "ymt-pane-top-bar", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YmtPaneTopBarComponent, "ymt-pane-top-bar", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "modeAlign": { "alias": "modeAlign"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, { "paneToggled": "paneToggled"; "navigationClicked": "navigationClicked"; }, never, never, true, never>;
|
|
22
21
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { YmtPaneAsideComponent } from './pane-aside/pane-aside.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* Pane component.
|
|
@@ -12,6 +11,11 @@ import * as i0 from "@angular/core";
|
|
|
12
11
|
* </ymt-pane>
|
|
13
12
|
* ```
|
|
14
13
|
*
|
|
14
|
+
* There are other components to be used within a pane:
|
|
15
|
+
* - `ymt-pane-header`: Renders a pre-styled header area for the pane.
|
|
16
|
+
* - `ymt-pane-body`: The main content area of the pane.
|
|
17
|
+
* - `ymt-pane-footer`: A footer component to be used as footer area of the pane.
|
|
18
|
+
*
|
|
15
19
|
* You can change the appearance of the header area via CSS variables:
|
|
16
20
|
* ```css
|
|
17
21
|
* ymt-pane {
|
|
@@ -40,9 +44,10 @@ import * as i0 from "@angular/core";
|
|
|
40
44
|
*
|
|
41
45
|
*/
|
|
42
46
|
export declare class YmtPaneComponent {
|
|
43
|
-
paneAside: import("@angular/core").Signal<YmtPaneAsideComponent | undefined>;
|
|
44
47
|
/**
|
|
45
|
-
* TemplateRef for actions area in the top bar.
|
|
48
|
+
* TemplateRef for actions area in the top bar. These actions will be placed at the end of
|
|
49
|
+
* the top bar.
|
|
50
|
+
*
|
|
46
51
|
* ```html
|
|
47
52
|
* <ymt-pane title="My Pane" subTitle="Pane Subtitle" [topBarActions]="topBarActions"></ymt-pane>
|
|
48
53
|
* <ng-template #topBarActions>
|
|
@@ -53,20 +58,34 @@ export declare class YmtPaneComponent {
|
|
|
53
58
|
*/
|
|
54
59
|
topBarActions: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
55
60
|
/**
|
|
56
|
-
*
|
|
61
|
+
* Setting this to true will remove the default styles for the pane. So it will
|
|
62
|
+
* render without border-radius, border and background color, but keep the inner
|
|
63
|
+
* structure. This is useful when you want to use the pane inside another container
|
|
64
|
+
* and want to apply custom styles to the pane.
|
|
57
65
|
*/
|
|
58
|
-
|
|
66
|
+
plain: import("@angular/core").InputSignal<boolean>;
|
|
59
67
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
68
|
+
* A pane may have different modes to control the behavior of the top bar.
|
|
69
|
+
* - `navigation`: Shows a back button on the left side of the top bar to close the pane or navigate back.
|
|
70
|
+
* - `toggle`: Shows a toggle button on the left side of the top bar to collapse/expand the pane.
|
|
62
71
|
*/
|
|
63
|
-
|
|
72
|
+
mode: import("@angular/core").InputSignal<"navigation" | "toggle" | undefined>;
|
|
73
|
+
modeAlign: import("@angular/core").InputSignal<"start" | "end">;
|
|
64
74
|
/**
|
|
65
|
-
* Event emitted when the pane toggle button is clicked.
|
|
75
|
+
* Event emitted when the pane toggle button is clicked. This toggle button is shown
|
|
76
|
+
* when mode is set to 'toggle'.
|
|
66
77
|
*/
|
|
67
78
|
paneToggled: import("@angular/core").OutputEmitterRef<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* Event emitted when the navigation button is clicked. Navigation button is shown when
|
|
81
|
+
* mode is set to 'navigation'.
|
|
82
|
+
*/
|
|
83
|
+
navigationClicked: import("@angular/core").OutputEmitterRef<boolean>;
|
|
84
|
+
/**
|
|
85
|
+
* Collapsed state of the pane. Only relevant when mode is set to 'toggle'.
|
|
86
|
+
*/
|
|
68
87
|
collapsed: import("@angular/core").WritableSignal<boolean>;
|
|
69
88
|
togglePane(collapsed: boolean): void;
|
|
70
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<YmtPaneComponent, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<YmtPaneComponent, "ymt-pane", never, { "topBarActions": { "alias": "topBarActions"; "required": false; "isSignal": true; }; "
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YmtPaneComponent, "ymt-pane", never, { "topBarActions": { "alias": "topBarActions"; "required": false; "isSignal": true; }; "plain": { "alias": "plain"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "modeAlign": { "alias": "modeAlign"; "required": false; "isSignal": true; }; }, { "paneToggled": "paneToggled"; "navigationClicked": "navigationClicked"; }, never, ["*"], true, never>;
|
|
72
91
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./pane/pane.component";
|
|
3
3
|
import * as i2 from "./pane/pane-header/pane-header.component";
|
|
4
|
-
import * as i3 from "./pane/pane-
|
|
5
|
-
import * as i4 from "./pane/pane-
|
|
4
|
+
import * as i3 from "./pane/pane-body/pane-body.component";
|
|
5
|
+
import * as i4 from "./pane/pane-footer/pane-footer.component";
|
|
6
6
|
import * as i5 from "./pane/pane-aside/pane-aside.component";
|
|
7
7
|
export declare class YmtPanesModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<YmtPanesModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<YmtPanesModule, never, [typeof i1.YmtPaneComponent, typeof i2.YmtPaneHeaderComponent, typeof i3.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<YmtPanesModule, never, [typeof i1.YmtPaneComponent, typeof i2.YmtPaneHeaderComponent, typeof i3.YmtPaneBodyComponent, typeof i4.YmtPaneFooterComponent, typeof i5.YmtPaneAsideComponent], [typeof i1.YmtPaneComponent, typeof i2.YmtPaneHeaderComponent, typeof i3.YmtPaneBodyComponent, typeof i4.YmtPaneFooterComponent, typeof i5.YmtPaneAsideComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<YmtPanesModule>;
|
|
11
11
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
@use './../token/token.tools' as t;
|
|
2
2
|
|
|
3
|
-
.mdc-dialog--open .mat-mdc-dialog-surface{
|
|
3
|
+
.mdc-dialog--open .mat-mdc-dialog-surface {
|
|
4
4
|
border: 1px solid t.use-token(outline-variant);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
.cdk-overlay-pane.ymt-dialog-fullscreen {
|
|
8
|
+
.mat-mdc-dialog-surface {
|
|
9
|
+
border: 0;
|
|
10
|
+
border-radius: 0;
|
|
11
|
+
}
|
|
12
|
+
}
|