aril 0.0.6 → 0.0.7
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/aril-0.0.7.tgz +0 -0
- package/esm2022/http/lib/enums.mjs +2 -1
- package/esm2022/http/lib/interfaces.mjs +1 -1
- package/esm2022/http/src/httpClient.mjs +1 -1
- package/esm2022/http/src/serviceBase.mjs +5 -5
- package/esm2022/http/src/serviceStateMethods.mjs +5 -2
- package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +41 -0
- package/esm2022/theme/layout/app/config/app.config.component.mjs +134 -0
- package/esm2022/theme/layout/app/layout/app.layout.component.mjs +131 -0
- package/esm2022/theme/layout/app/menu/app.menu.component.mjs +399 -0
- package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +25 -0
- package/esm2022/theme/layout/app/sidebar/app.sidebar.component.mjs +41 -0
- package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +29 -0
- package/esm2022/theme/layout/aril-theme-layout.mjs +5 -0
- package/esm2022/theme/layout/index.mjs +2 -0
- package/esm2022/theme/layout/service/app.layout.service.mjs +132 -0
- package/esm2022/theme/layout/service/app.menu.service.mjs +27 -0
- package/esm2022/theme/layout/service/menuchangeevent.mjs +2 -0
- package/esm2022/ui/badge/src/badge.component.mjs +1 -1
- package/esm2022/ui/button/src/button.component.mjs +1 -1
- package/esm2022/ui/button/src/split-button.component.mjs +1 -1
- package/esm2022/ui/calendar/src/calendar.component.mjs +1 -1
- package/esm2022/ui/checkbox/src/check-box.component.mjs +3 -3
- package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +3 -3
- package/esm2022/ui/field/src/field.component.mjs +1 -1
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +1 -1
- package/esm2022/ui/form/index.mjs +20 -13
- package/esm2022/ui/form/src/form-submit-button.component.mjs +4 -3
- package/esm2022/ui/form/src/form.component.mjs +3 -3
- package/esm2022/ui/lib/src/form/form-error-message.component.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +1 -1
- package/esm2022/ui/lib/src/input/baseInput.mjs +1 -1
- package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +1 -1
- package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +1 -1
- package/esm2022/ui/mask/src/mask.component.mjs +3 -3
- package/esm2022/ui/number/src/number.component.mjs +2 -2
- package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +1 -1
- package/esm2022/ui/panel/src/panel.component.mjs +2 -2
- package/esm2022/ui/password/src/password.component.mjs +1 -1
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +1 -1
- package/esm2022/ui/selectBox/src/select-box.component.mjs +1 -1
- package/esm2022/ui/switch/src/switch.component.mjs +1 -1
- package/esm2022/ui/table/index.mjs +26 -17
- package/esm2022/ui/table/src/table-column.component.mjs +6 -4
- package/esm2022/ui/table/src/table.component.mjs +24 -42
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +1 -1
- package/esm2022/ui/text/src/text.component.mjs +1 -1
- package/esm2022/ui/textArea/src/text-area.component.mjs +1 -1
- package/esm2022/ui/tree/src/tree.component.mjs +29 -45
- package/esm2022/ui/treeTable/src/tree-table.component.mjs +39 -43
- package/esm2022/ui/value/src/value.component.mjs +3 -3
- package/fesm2022/aril-http.mjs +7 -4
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-theme-layout.mjs +918 -0
- package/fesm2022/aril-theme-layout.mjs.map +1 -0
- package/fesm2022/aril-ui-badge.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-calendar.mjs.map +1 -1
- package/fesm2022/aril-ui-checkbox.mjs +4 -4
- package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
- package/fesm2022/aril-ui-field.mjs.map +1 -1
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +22 -19
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-lib.mjs.map +1 -1
- package/fesm2022/aril-ui-mask.mjs +3 -3
- package/fesm2022/aril-ui-mask.mjs.map +1 -1
- package/fesm2022/aril-ui-number.mjs +2 -2
- package/fesm2022/aril-ui-number.mjs.map +1 -1
- package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
- package/fesm2022/aril-ui-panel.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
- package/fesm2022/aril-ui-switch.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +45 -57
- package/fesm2022/aril-ui-table.mjs.map +1 -1
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
- package/fesm2022/aril-ui-text.mjs.map +1 -1
- package/fesm2022/aril-ui-textArea.mjs.map +1 -1
- package/fesm2022/aril-ui-tree.mjs +28 -44
- package/fesm2022/aril-ui-tree.mjs.map +1 -1
- package/fesm2022/aril-ui-treeTable.mjs +38 -42
- package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
- package/fesm2022/aril-ui-value.mjs +2 -2
- package/fesm2022/aril-ui-value.mjs.map +1 -1
- package/http/lib/enums.d.ts +1 -0
- package/http/lib/interfaces.d.ts +2 -0
- package/http/src/serviceStateMethods.d.ts +2 -1
- package/package.json +7 -1
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.d.ts +16 -0
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.html +10 -0
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +52 -0
- package/theme/layout/app/config/app.config.component.d.ts +36 -0
- package/theme/layout/app/config/app.config.component.html +191 -0
- package/theme/layout/app/config/app.config.component.ts +152 -0
- package/theme/layout/app/layout/app.layout.component.d.ts +51 -0
- package/theme/layout/app/layout/app.layout.component.html +13 -0
- package/theme/layout/app/layout/app.layout.component.ts +183 -0
- package/theme/layout/app/menu/app.menu.component.d.ts +44 -0
- package/theme/layout/app/menu/app.menu.component.html +9 -0
- package/theme/layout/app/menu/app.menu.component.ts +317 -0
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.d.ts +10 -0
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.html +165 -0
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.ts +25 -0
- package/theme/layout/app/sidebar/app.sidebar.component.d.ts +15 -0
- package/theme/layout/app/sidebar/app.sidebar.component.html +67 -0
- package/theme/layout/app/sidebar/app.sidebar.component.ts +40 -0
- package/theme/layout/app/topbar/app.topbar.component.d.ts +13 -0
- package/theme/layout/app/topbar/app.topbar.component.html +41 -0
- package/theme/layout/app/topbar/app.topbar.component.ts +29 -0
- package/theme/layout/index.d.ts +1 -0
- package/theme/layout/index.ts +1 -0
- package/theme/layout/ng-package.json +6 -0
- package/theme/layout/service/app.layout.service.d.ts +51 -0
- package/theme/layout/service/app.layout.service.ts +197 -0
- package/theme/layout/service/app.menu.service.d.ts +14 -0
- package/theme/layout/service/app.menu.service.ts +28 -0
- package/theme/layout/service/menuchangeevent.d.ts +4 -0
- package/theme/layout/service/menuchangeevent.ts +4 -0
- package/ui/calendar/src/calendar.component.d.ts +1 -1
- package/ui/form/index.d.ts +9 -0
- package/ui/form/src/form-submit-button.component.d.ts +1 -1
- package/ui/form/src/form.component.d.ts +1 -1
- package/ui/table/index.d.ts +14 -0
- package/ui/table/src/table-column.component.d.ts +5 -4
- package/ui/table/src/table.component.d.ts +7 -15
- package/ui/tree/src/tree.component.d.ts +13 -18
- package/ui/treeTable/src/tree-table.component.d.ts +14 -18
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<div class="layout-topbar">
|
|
2
|
+
<div class="topbar-start">
|
|
3
|
+
<button
|
|
4
|
+
#menubutton
|
|
5
|
+
type="button"
|
|
6
|
+
class="topbar-menubutton p-link p-trigger"
|
|
7
|
+
(click)="onMenuButtonClick()">
|
|
8
|
+
<i class="pi pi-bars"></i>
|
|
9
|
+
</button>
|
|
10
|
+
|
|
11
|
+
<!-- <app-breadcrumb class="topbar-breadcrumb"></app-breadcrumb> -->
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="topbar-end">
|
|
15
|
+
<ul class="topbar-menu">
|
|
16
|
+
<li class="topbar-search">
|
|
17
|
+
<span class="p-input-icon-left">
|
|
18
|
+
<i class="pi pi-search"></i>
|
|
19
|
+
<input
|
|
20
|
+
type="text"
|
|
21
|
+
pInputText
|
|
22
|
+
placeholder="Search"
|
|
23
|
+
class="p-inputtext p-component p-element w-12rem sm:w-full" />
|
|
24
|
+
</span>
|
|
25
|
+
</li>
|
|
26
|
+
<!-- <li class="ml-3">
|
|
27
|
+
<button
|
|
28
|
+
pButton
|
|
29
|
+
type="button"
|
|
30
|
+
icon="pi pi-cog"
|
|
31
|
+
class="p-button-text p-button-secondary p-button-rounded flex-shrink-0"
|
|
32
|
+
(click)="onConfigButtonClick()"></button>
|
|
33
|
+
</li> -->
|
|
34
|
+
<li class="topbar-profile">
|
|
35
|
+
<button type="button" class="p-link" (click)="onProfileButtonClick()">
|
|
36
|
+
<img src="assets/images/avatar.png" alt="Profile" />
|
|
37
|
+
</button>
|
|
38
|
+
</li>
|
|
39
|
+
</ul>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Component, ElementRef, ViewChild } from '@angular/core';
|
|
2
|
+
import { ButtonModule } from "primeng/button";
|
|
3
|
+
import { LayoutService } from '../../service/app.layout.service';
|
|
4
|
+
import { AppBreadcrumbComponent } from '../breadcrumb/app.breadcrumb.component';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
standalone: true,
|
|
8
|
+
selector: 'app-topbar',
|
|
9
|
+
imports: [ButtonModule, AppBreadcrumbComponent],
|
|
10
|
+
templateUrl: './app.topbar.component.html'
|
|
11
|
+
})
|
|
12
|
+
export class AppTopbarComponent {
|
|
13
|
+
|
|
14
|
+
@ViewChild('menubutton') menuButton!: ElementRef;
|
|
15
|
+
|
|
16
|
+
constructor(public layoutService: LayoutService) { }
|
|
17
|
+
|
|
18
|
+
onMenuButtonClick() {
|
|
19
|
+
this.layoutService.onMenuToggle();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
onProfileButtonClick() {
|
|
23
|
+
this.layoutService.showProfileSidebar();
|
|
24
|
+
}
|
|
25
|
+
onConfigButtonClick() {
|
|
26
|
+
this.layoutService.showConfigSidebar();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './app/layout/app.layout.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './app/layout/app.layout.component';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type MenuMode = 'static' | 'overlay' | 'horizontal' | 'slim' | 'slim-plus' | 'reveal' | 'drawer';
|
|
3
|
+
export type ColorScheme = 'light' | 'dark' | 'dim';
|
|
4
|
+
export type MenuColorScheme = 'colorScheme' | 'primaryColor' | 'transparent';
|
|
5
|
+
export interface AppConfig {
|
|
6
|
+
inputStyle: string;
|
|
7
|
+
colorScheme: ColorScheme;
|
|
8
|
+
theme: string;
|
|
9
|
+
ripple: boolean;
|
|
10
|
+
menuMode: MenuMode;
|
|
11
|
+
scale: number;
|
|
12
|
+
menuTheme: MenuColorScheme;
|
|
13
|
+
}
|
|
14
|
+
interface LayoutState {
|
|
15
|
+
staticMenuDesktopInactive: boolean;
|
|
16
|
+
overlayMenuActive: boolean;
|
|
17
|
+
profileSidebarVisible: boolean;
|
|
18
|
+
configSidebarVisible: boolean;
|
|
19
|
+
staticMenuMobileActive: boolean;
|
|
20
|
+
menuHoverActive: boolean;
|
|
21
|
+
sidebarActive: boolean;
|
|
22
|
+
anchored: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare class LayoutService {
|
|
25
|
+
_config: AppConfig;
|
|
26
|
+
config: import("@angular/core").WritableSignal<AppConfig>;
|
|
27
|
+
state: LayoutState;
|
|
28
|
+
private configUpdate;
|
|
29
|
+
private overlayOpen;
|
|
30
|
+
configUpdate$: import("rxjs").Observable<AppConfig>;
|
|
31
|
+
overlayOpen$: import("rxjs").Observable<any>;
|
|
32
|
+
constructor();
|
|
33
|
+
updateStyle(config: AppConfig): boolean;
|
|
34
|
+
onMenuToggle(): void;
|
|
35
|
+
onOverlaySubmenuOpen(): void;
|
|
36
|
+
showProfileSidebar(): void;
|
|
37
|
+
showConfigSidebar(): void;
|
|
38
|
+
isOverlay(): boolean;
|
|
39
|
+
isDesktop(): boolean;
|
|
40
|
+
isSlim(): boolean;
|
|
41
|
+
isSlimPlus(): boolean;
|
|
42
|
+
isHorizontal(): boolean;
|
|
43
|
+
isMobile(): boolean;
|
|
44
|
+
onConfigUpdate(): void;
|
|
45
|
+
changeTheme(): void;
|
|
46
|
+
replaceThemeLink(href: string): void;
|
|
47
|
+
changeScale(value: number): void;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { Injectable, effect, signal } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
export type MenuMode =
|
|
6
|
+
| 'static'
|
|
7
|
+
| 'overlay'
|
|
8
|
+
| 'horizontal'
|
|
9
|
+
| 'slim'
|
|
10
|
+
| 'slim-plus'
|
|
11
|
+
| 'reveal'
|
|
12
|
+
| 'drawer';
|
|
13
|
+
|
|
14
|
+
export type ColorScheme = 'light' | 'dark' | 'dim';
|
|
15
|
+
|
|
16
|
+
export type MenuColorScheme = 'colorScheme' | 'primaryColor' | 'transparent';
|
|
17
|
+
|
|
18
|
+
export interface AppConfig {
|
|
19
|
+
inputStyle: string;
|
|
20
|
+
colorScheme: ColorScheme;
|
|
21
|
+
theme: string;
|
|
22
|
+
ripple: boolean;
|
|
23
|
+
menuMode: MenuMode;
|
|
24
|
+
scale: number;
|
|
25
|
+
menuTheme: MenuColorScheme;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface LayoutState {
|
|
29
|
+
staticMenuDesktopInactive: boolean;
|
|
30
|
+
overlayMenuActive: boolean;
|
|
31
|
+
profileSidebarVisible: boolean;
|
|
32
|
+
configSidebarVisible: boolean;
|
|
33
|
+
staticMenuMobileActive: boolean;
|
|
34
|
+
menuHoverActive: boolean;
|
|
35
|
+
sidebarActive: boolean;
|
|
36
|
+
anchored: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@Injectable({
|
|
40
|
+
providedIn: 'root',
|
|
41
|
+
})
|
|
42
|
+
export class LayoutService {
|
|
43
|
+
_config: AppConfig = {
|
|
44
|
+
ripple: false,
|
|
45
|
+
inputStyle: 'filled',
|
|
46
|
+
menuMode: 'horizontal',
|
|
47
|
+
colorScheme: 'light',
|
|
48
|
+
theme: 'indigo',
|
|
49
|
+
scale: 12,
|
|
50
|
+
menuTheme: 'colorScheme',
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// TODO: Set User Config
|
|
54
|
+
config = signal<AppConfig>(this._config);
|
|
55
|
+
|
|
56
|
+
state: LayoutState = {
|
|
57
|
+
staticMenuDesktopInactive: false,
|
|
58
|
+
overlayMenuActive: false,
|
|
59
|
+
profileSidebarVisible: false,
|
|
60
|
+
configSidebarVisible: false,
|
|
61
|
+
staticMenuMobileActive: false,
|
|
62
|
+
menuHoverActive: false,
|
|
63
|
+
sidebarActive: false,
|
|
64
|
+
anchored: false,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
private configUpdate = new Subject<AppConfig>();
|
|
68
|
+
|
|
69
|
+
private overlayOpen = new Subject<any>();
|
|
70
|
+
|
|
71
|
+
configUpdate$ = this.configUpdate.asObservable();
|
|
72
|
+
|
|
73
|
+
overlayOpen$ = this.overlayOpen.asObservable();
|
|
74
|
+
|
|
75
|
+
constructor() {
|
|
76
|
+
effect(() => {
|
|
77
|
+
const config = this.config();
|
|
78
|
+
if (this.updateStyle(config)) {
|
|
79
|
+
this.changeTheme();
|
|
80
|
+
}
|
|
81
|
+
this.changeScale(config.scale);
|
|
82
|
+
this.onConfigUpdate();
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
updateStyle(config: AppConfig) {
|
|
87
|
+
return (
|
|
88
|
+
config.theme !== this._config.theme ||
|
|
89
|
+
config.colorScheme !== this._config.colorScheme
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
onMenuToggle() {
|
|
94
|
+
if (this.isOverlay()) {
|
|
95
|
+
this.state.overlayMenuActive = !this.state.overlayMenuActive;
|
|
96
|
+
|
|
97
|
+
if (this.state.overlayMenuActive) {
|
|
98
|
+
this.overlayOpen.next(null);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (this.isDesktop()) {
|
|
103
|
+
this.state.staticMenuDesktopInactive =
|
|
104
|
+
!this.state.staticMenuDesktopInactive;
|
|
105
|
+
} else {
|
|
106
|
+
this.state.staticMenuMobileActive =
|
|
107
|
+
!this.state.staticMenuMobileActive;
|
|
108
|
+
|
|
109
|
+
if (this.state.staticMenuMobileActive) {
|
|
110
|
+
this.overlayOpen.next(null);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
onOverlaySubmenuOpen() {
|
|
116
|
+
this.overlayOpen.next(null);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
showProfileSidebar() {
|
|
120
|
+
this.state.profileSidebarVisible = true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
showConfigSidebar() {
|
|
124
|
+
this.state.configSidebarVisible = true;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
isOverlay() {
|
|
128
|
+
return this.config().menuMode === 'overlay';
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
isDesktop() {
|
|
132
|
+
return window.innerWidth > 991;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
isSlim() {
|
|
136
|
+
return this.config().menuMode === 'slim';
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
isSlimPlus() {
|
|
140
|
+
return this.config().menuMode === 'slim-plus';
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
isHorizontal() {
|
|
144
|
+
return this.config().menuMode === 'horizontal';
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
isMobile() {
|
|
148
|
+
return !this.isDesktop();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
onConfigUpdate() {
|
|
152
|
+
this._config = { ...this.config() };
|
|
153
|
+
this.configUpdate.next(this.config());
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
changeTheme() {
|
|
157
|
+
const config = this.config();
|
|
158
|
+
const themeLink = <HTMLLinkElement>(
|
|
159
|
+
document.getElementById('theme-link')
|
|
160
|
+
);
|
|
161
|
+
const themeLinkHref = themeLink.getAttribute('href')!;
|
|
162
|
+
const newHref = themeLinkHref
|
|
163
|
+
.split('/')
|
|
164
|
+
.map((el) =>
|
|
165
|
+
el == this._config.theme
|
|
166
|
+
? (el = config.theme)
|
|
167
|
+
: el == `theme-${this._config.colorScheme}`
|
|
168
|
+
? (el = `theme-${config.colorScheme}`)
|
|
169
|
+
: el
|
|
170
|
+
)
|
|
171
|
+
.join('/');
|
|
172
|
+
|
|
173
|
+
this.replaceThemeLink(newHref);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
replaceThemeLink(href: string) {
|
|
177
|
+
const id = 'theme-link';
|
|
178
|
+
let themeLink = <HTMLLinkElement>document.getElementById(id);
|
|
179
|
+
const cloneLinkElement = <HTMLLinkElement>themeLink.cloneNode(true);
|
|
180
|
+
|
|
181
|
+
cloneLinkElement.setAttribute('href', href);
|
|
182
|
+
cloneLinkElement.setAttribute('id', id + '-clone');
|
|
183
|
+
|
|
184
|
+
themeLink.parentNode!.insertBefore(
|
|
185
|
+
cloneLinkElement,
|
|
186
|
+
themeLink.nextSibling
|
|
187
|
+
);
|
|
188
|
+
cloneLinkElement.addEventListener('load', () => {
|
|
189
|
+
themeLink.remove();
|
|
190
|
+
cloneLinkElement.setAttribute('id', id);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
changeScale(value: number) {
|
|
195
|
+
document.documentElement.style.fontSize = `${value}px`;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MenuItem } from 'primeng/api';
|
|
2
|
+
import { MenuChangeEvent } from './menuchangeevent';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MenuService {
|
|
5
|
+
private menuSource;
|
|
6
|
+
private resetSource;
|
|
7
|
+
menuItems: import("@angular/core").WritableSignal<MenuItem[]>;
|
|
8
|
+
menuSource$: import("rxjs").Observable<MenuChangeEvent>;
|
|
9
|
+
resetSource$: import("rxjs").Observable<unknown>;
|
|
10
|
+
onMenuStateChange(event: MenuChangeEvent): void;
|
|
11
|
+
reset(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Injectable, signal } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { MenuItem } from 'primeng/api';
|
|
5
|
+
|
|
6
|
+
import { MenuChangeEvent } from './menuchangeevent';
|
|
7
|
+
|
|
8
|
+
@Injectable({
|
|
9
|
+
providedIn: 'root'
|
|
10
|
+
})
|
|
11
|
+
export class MenuService {
|
|
12
|
+
|
|
13
|
+
private menuSource = new Subject<MenuChangeEvent>();
|
|
14
|
+
private resetSource = new Subject();
|
|
15
|
+
|
|
16
|
+
public menuItems = signal<MenuItem[]>([]);
|
|
17
|
+
|
|
18
|
+
menuSource$ = this.menuSource.asObservable();
|
|
19
|
+
resetSource$ = this.resetSource.asObservable();
|
|
20
|
+
|
|
21
|
+
onMenuStateChange(event: MenuChangeEvent) {
|
|
22
|
+
this.menuSource.next(event);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
reset() {
|
|
26
|
+
this.resetSource.next(true);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
2
|
import { PrimeNGConfig } from 'primeng/api';
|
|
3
|
-
import { BaseInputComponent } from 'aril/ui/lib';
|
|
4
3
|
import { Types } from 'aril/util/lib';
|
|
4
|
+
import { BaseInputComponent } from 'aril/ui/lib';
|
|
5
5
|
import "aril/util/primitive-extensions";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "aril/ui/lib";
|
package/ui/form/index.d.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./src/form.component";
|
|
3
|
+
import * as i2 from "./src/form-submit-button.component";
|
|
4
|
+
import * as i3 from "aril/ui/button";
|
|
1
5
|
export * from './src/form.component';
|
|
2
6
|
export * from './src/form-submit-button.component';
|
|
7
|
+
export declare class FormModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, [typeof i1.FormComponent, typeof i2.FormSubmitButtonComponent], [typeof i3.ButtonComponent], [typeof i1.FormComponent, typeof i2.FormSubmitButtonComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormModule>;
|
|
11
|
+
}
|
|
@@ -10,5 +10,5 @@ export declare class FormSubmitButtonComponent extends ButtonComponent {
|
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitButtonComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormSubmitButtonComponent, "aril-form-submit", never, { "formGroup": { "alias": "formGroup"; "required": true; }; }, { "inValidEvent": "inValidEvent"; }, never, never,
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSubmitButtonComponent, "aril-form-submit", never, { "formGroup": { "alias": "formGroup"; "required": true; }; }, { "inValidEvent": "inValidEvent"; }, never, never, false, never>;
|
|
14
14
|
}
|
|
@@ -4,5 +4,5 @@ import * as i1 from "aril/ui/lib";
|
|
|
4
4
|
export declare class FormComponent {
|
|
5
5
|
formGroup: FormGroup;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "aril-form", never, { "formGroup": { "alias": "formGroup"; "required": true; }; }, {}, never, ["*"],
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "aril-form", never, { "formGroup": { "alias": "formGroup"; "required": true; }; }, {}, never, ["*"], false, [{ directive: typeof i1.FlexGridDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.FormErrorMessageDirective; inputs: { "formErrorMessage": "formGroup"; }; outputs: {}; }]>;
|
|
8
8
|
}
|
package/ui/table/index.d.ts
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./src/table.component";
|
|
3
|
+
import * as i2 from "./src/table-column.component";
|
|
4
|
+
import * as i3 from "primeng/table";
|
|
5
|
+
import * as i4 from "aril/ui/button";
|
|
6
|
+
import * as i5 from "aril/ui/text";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
/** for tree-table.component */
|
|
1
10
|
export * from './src/table.component';
|
|
2
11
|
export * from './src/table-column.component';
|
|
12
|
+
export declare class ARiLTableModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ARiLTableModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ARiLTableModule, [typeof i1.TableComponent, typeof i2.TableColumnComponent], [typeof i3.TableModule, typeof i4.ButtonComponent, typeof i5.TextComponent, typeof i6.FormsModule, typeof i7.NgForOf, typeof i7.NgForOf, typeof i7.NgTemplateOutlet], [typeof i1.TableComponent, typeof i2.TableColumnComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ARiLTableModule>;
|
|
16
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
3
|
+
type ValueTypes = 'text' | 'numeric' | 'date' | 'boolean' | 'custom';
|
|
4
4
|
export interface TableColumns {
|
|
5
5
|
_results: Array<TableColumn>;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
interface TableColumn {
|
|
8
8
|
field: string;
|
|
9
9
|
header: string;
|
|
10
10
|
type: ValueTypes;
|
|
@@ -15,8 +15,9 @@ export declare class TableColumnComponent {
|
|
|
15
15
|
field: string;
|
|
16
16
|
header: string;
|
|
17
17
|
type: ValueTypes;
|
|
18
|
-
isOperation
|
|
18
|
+
isOperation: boolean;
|
|
19
19
|
template: any;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnComponent, "aril-table-column", never, { "field": { "alias": "field"; "required": true; }; "header": { "alias": "header"; "required": true; }; "type": { "alias": "type"; "required":
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnComponent, "aril-table-column", never, { "field": { "alias": "field"; "required": true; }; "header": { "alias": "header"; "required": true; }; "type": { "alias": "type"; "required": true; }; "isOperation": { "alias": "isOperation"; "required": false; }; }, {}, ["template"], ["*"], false, never>;
|
|
22
22
|
}
|
|
23
|
+
export {};
|
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { PrimeNGConfig } from 'primeng/api';
|
|
3
3
|
import { ProxyTypes } from 'aril/http';
|
|
4
4
|
import { TableColumns } from './table-column.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
type SelectionModes = "single" | "multiple";
|
|
7
6
|
export declare class TableComponent {
|
|
8
7
|
private primengConfig;
|
|
9
8
|
constructor(primengConfig: PrimeNGConfig);
|
|
10
|
-
data: any[]
|
|
11
|
-
checkboxSelection: boolean
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
paginator: boolean;
|
|
15
|
-
loading: boolean;
|
|
16
|
-
selectionMode: SelectionModes;
|
|
17
|
-
contextMenu: MenuItem[];
|
|
18
|
-
proxy: ProxyTypes;
|
|
9
|
+
data: import("@angular/core").InputSignal<any[], any[]>;
|
|
10
|
+
checkboxSelection: import("@angular/core").InputSignal<boolean | undefined, boolean | undefined>;
|
|
11
|
+
pageSize: import("@angular/core").InputSignal<number, number>;
|
|
12
|
+
proxy: import("@angular/core").InputSignal<ProxyTypes, ProxyTypes>;
|
|
19
13
|
selectionEvent: EventEmitter<any>;
|
|
20
14
|
columns: TableColumns;
|
|
21
15
|
filterText: string;
|
|
22
16
|
selectedRows: any;
|
|
23
|
-
|
|
24
|
-
setFilteredRows(rows: any): void;
|
|
17
|
+
pageOptions: number[];
|
|
25
18
|
excelExport(): void;
|
|
26
19
|
saveAsExcelFile(buffer: any, fileName: string): void;
|
|
27
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "aril-table", never, { "data": { "alias": "data"; "required": true;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "aril-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "checkboxSelection": { "alias": "checkboxSelection"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "proxy": { "alias": "proxy"; "required": false; "isSignal": true; }; }, { "selectionEvent": "selectionEvent"; }, ["columns"], ["[footer]"], false, never>;
|
|
29
22
|
}
|
|
30
|
-
export {};
|
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { TreeNode } from 'primeng/api';
|
|
2
|
+
import { MenuItem, TreeNode } from 'primeng/api';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
type SelectionModes = "multiple" | "checkbox" | "single";
|
|
5
5
|
export declare class TreeComponent {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
filterPlaceholder: string;
|
|
18
|
-
nodeSelect: EventEmitter<unknown>;
|
|
19
|
-
nodeUnselect: EventEmitter<unknown>;
|
|
20
|
-
nodeExpand: EventEmitter<unknown>;
|
|
21
|
-
nodeCollapse: EventEmitter<unknown>;
|
|
6
|
+
data: import("@angular/core").InputSignal<TreeNode<any>[], TreeNode<any>[]>;
|
|
7
|
+
contextMenu: import("@angular/core").InputSignal<MenuItem[] | undefined, MenuItem[] | undefined>;
|
|
8
|
+
filterPlaceholder: import("@angular/core").InputSignal<string, string>;
|
|
9
|
+
filter: import("@angular/core").InputSignal<boolean, boolean>;
|
|
10
|
+
selectionMode: import("@angular/core").InputSignal<SelectionModes | undefined, SelectionModes | undefined>;
|
|
11
|
+
expandEvent: EventEmitter<unknown>;
|
|
12
|
+
selectionEvent: EventEmitter<any>;
|
|
13
|
+
isExpended: boolean;
|
|
14
|
+
selectedNodes: TreeNode | TreeNode[] | null;
|
|
15
|
+
toggleTree(): void;
|
|
16
|
+
expandRecursive(node: TreeNode[]): void;
|
|
22
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeComponent, "aril-tree", never, { "
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeComponent, "aril-tree", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "contextMenu": { "alias": "contextMenu"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; }, { "expandEvent": "expandEvent"; "selectionEvent": "selectionEvent"; }, never, never, true, never>;
|
|
24
19
|
}
|
|
25
20
|
export {};
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { TreeNode, TreeTableNode } from 'primeng/api';
|
|
3
|
+
import { TableColumns } from 'aril/ui/table';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
type SortMode = 'single' | 'multiple';
|
|
5
|
-
type FilterMode = 'lenient' | 'strict';
|
|
6
|
-
type SelectionModes = 'single' | 'multiple' | 'checkbox';
|
|
7
5
|
export declare class TreeTableComponent {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
selectEvent: EventEmitter<any>;
|
|
6
|
+
data: import("@angular/core").InputSignal<TreeNode<any>[], TreeNode<any>[]>;
|
|
7
|
+
checkboxSelection: import("@angular/core").InputSignal<boolean | undefined, boolean | undefined>;
|
|
8
|
+
pageSize: import("@angular/core").InputSignal<number, number>;
|
|
9
|
+
scrollable: import("@angular/core").InputSignal<boolean, boolean>;
|
|
10
|
+
scrollHeight: import("@angular/core").InputSignal<string | undefined, string | undefined>;
|
|
11
|
+
expandEvent: EventEmitter<unknown>;
|
|
12
|
+
selectionEvent: EventEmitter<any>;
|
|
13
|
+
columns: TableColumns;
|
|
14
|
+
filterText: string;
|
|
15
|
+
pageOptions: number[];
|
|
19
16
|
selectedNodes: TreeTableNode<any> | TreeTableNode<any>[] | null;
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
excelExport(): void;
|
|
18
|
+
saveAsExcelFile(buffer: any, fileName: string): void;
|
|
22
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeTableComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeTableComponent, "aril-tree-table", never, { "
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeTableComponent, "aril-tree-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "checkboxSelection": { "alias": "checkboxSelection"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; }, { "expandEvent": "expandEvent"; "selectionEvent": "selectionEvent"; }, ["columns"], ["[footer]"], true, never>;
|
|
24
21
|
}
|
|
25
|
-
export {};
|