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.
Files changed (129) hide show
  1. package/aril-0.0.7.tgz +0 -0
  2. package/esm2022/http/lib/enums.mjs +2 -1
  3. package/esm2022/http/lib/interfaces.mjs +1 -1
  4. package/esm2022/http/src/httpClient.mjs +1 -1
  5. package/esm2022/http/src/serviceBase.mjs +5 -5
  6. package/esm2022/http/src/serviceStateMethods.mjs +5 -2
  7. package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +41 -0
  8. package/esm2022/theme/layout/app/config/app.config.component.mjs +134 -0
  9. package/esm2022/theme/layout/app/layout/app.layout.component.mjs +131 -0
  10. package/esm2022/theme/layout/app/menu/app.menu.component.mjs +399 -0
  11. package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +25 -0
  12. package/esm2022/theme/layout/app/sidebar/app.sidebar.component.mjs +41 -0
  13. package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +29 -0
  14. package/esm2022/theme/layout/aril-theme-layout.mjs +5 -0
  15. package/esm2022/theme/layout/index.mjs +2 -0
  16. package/esm2022/theme/layout/service/app.layout.service.mjs +132 -0
  17. package/esm2022/theme/layout/service/app.menu.service.mjs +27 -0
  18. package/esm2022/theme/layout/service/menuchangeevent.mjs +2 -0
  19. package/esm2022/ui/badge/src/badge.component.mjs +1 -1
  20. package/esm2022/ui/button/src/button.component.mjs +1 -1
  21. package/esm2022/ui/button/src/split-button.component.mjs +1 -1
  22. package/esm2022/ui/calendar/src/calendar.component.mjs +1 -1
  23. package/esm2022/ui/checkbox/src/check-box.component.mjs +3 -3
  24. package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +3 -3
  25. package/esm2022/ui/field/src/field.component.mjs +1 -1
  26. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +1 -1
  27. package/esm2022/ui/form/index.mjs +20 -13
  28. package/esm2022/ui/form/src/form-submit-button.component.mjs +4 -3
  29. package/esm2022/ui/form/src/form.component.mjs +3 -3
  30. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +1 -1
  31. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +1 -1
  32. package/esm2022/ui/lib/src/input/baseInput.mjs +1 -1
  33. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +1 -1
  34. package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +1 -1
  35. package/esm2022/ui/mask/src/mask.component.mjs +3 -3
  36. package/esm2022/ui/number/src/number.component.mjs +2 -2
  37. package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +1 -1
  38. package/esm2022/ui/panel/src/panel.component.mjs +2 -2
  39. package/esm2022/ui/password/src/password.component.mjs +1 -1
  40. package/esm2022/ui/radioButton/src/radio-button.component.mjs +1 -1
  41. package/esm2022/ui/selectBox/src/select-box.component.mjs +1 -1
  42. package/esm2022/ui/switch/src/switch.component.mjs +1 -1
  43. package/esm2022/ui/table/index.mjs +26 -17
  44. package/esm2022/ui/table/src/table-column.component.mjs +6 -4
  45. package/esm2022/ui/table/src/table.component.mjs +24 -42
  46. package/esm2022/ui/tagBox/src/tag-box.component.mjs +1 -1
  47. package/esm2022/ui/text/src/text.component.mjs +1 -1
  48. package/esm2022/ui/textArea/src/text-area.component.mjs +1 -1
  49. package/esm2022/ui/tree/src/tree.component.mjs +29 -45
  50. package/esm2022/ui/treeTable/src/tree-table.component.mjs +39 -43
  51. package/esm2022/ui/value/src/value.component.mjs +3 -3
  52. package/fesm2022/aril-http.mjs +7 -4
  53. package/fesm2022/aril-http.mjs.map +1 -1
  54. package/fesm2022/aril-theme-layout.mjs +918 -0
  55. package/fesm2022/aril-theme-layout.mjs.map +1 -0
  56. package/fesm2022/aril-ui-badge.mjs.map +1 -1
  57. package/fesm2022/aril-ui-button.mjs.map +1 -1
  58. package/fesm2022/aril-ui-calendar.mjs.map +1 -1
  59. package/fesm2022/aril-ui-checkbox.mjs +4 -4
  60. package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
  61. package/fesm2022/aril-ui-field.mjs.map +1 -1
  62. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
  63. package/fesm2022/aril-ui-form.mjs +22 -19
  64. package/fesm2022/aril-ui-form.mjs.map +1 -1
  65. package/fesm2022/aril-ui-lib.mjs.map +1 -1
  66. package/fesm2022/aril-ui-mask.mjs +3 -3
  67. package/fesm2022/aril-ui-mask.mjs.map +1 -1
  68. package/fesm2022/aril-ui-number.mjs +2 -2
  69. package/fesm2022/aril-ui-number.mjs.map +1 -1
  70. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
  71. package/fesm2022/aril-ui-panel.mjs.map +1 -1
  72. package/fesm2022/aril-ui-password.mjs.map +1 -1
  73. package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
  74. package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
  75. package/fesm2022/aril-ui-switch.mjs.map +1 -1
  76. package/fesm2022/aril-ui-table.mjs +45 -57
  77. package/fesm2022/aril-ui-table.mjs.map +1 -1
  78. package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
  79. package/fesm2022/aril-ui-text.mjs.map +1 -1
  80. package/fesm2022/aril-ui-textArea.mjs.map +1 -1
  81. package/fesm2022/aril-ui-tree.mjs +28 -44
  82. package/fesm2022/aril-ui-tree.mjs.map +1 -1
  83. package/fesm2022/aril-ui-treeTable.mjs +38 -42
  84. package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
  85. package/fesm2022/aril-ui-value.mjs +2 -2
  86. package/fesm2022/aril-ui-value.mjs.map +1 -1
  87. package/http/lib/enums.d.ts +1 -0
  88. package/http/lib/interfaces.d.ts +2 -0
  89. package/http/src/serviceStateMethods.d.ts +2 -1
  90. package/package.json +7 -1
  91. package/theme/layout/app/breadcrumb/app.breadcrumb.component.d.ts +16 -0
  92. package/theme/layout/app/breadcrumb/app.breadcrumb.component.html +10 -0
  93. package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +52 -0
  94. package/theme/layout/app/config/app.config.component.d.ts +36 -0
  95. package/theme/layout/app/config/app.config.component.html +191 -0
  96. package/theme/layout/app/config/app.config.component.ts +152 -0
  97. package/theme/layout/app/layout/app.layout.component.d.ts +51 -0
  98. package/theme/layout/app/layout/app.layout.component.html +13 -0
  99. package/theme/layout/app/layout/app.layout.component.ts +183 -0
  100. package/theme/layout/app/menu/app.menu.component.d.ts +44 -0
  101. package/theme/layout/app/menu/app.menu.component.html +9 -0
  102. package/theme/layout/app/menu/app.menu.component.ts +317 -0
  103. package/theme/layout/app/profileSidebar/app.profilesidebar.component.d.ts +10 -0
  104. package/theme/layout/app/profileSidebar/app.profilesidebar.component.html +165 -0
  105. package/theme/layout/app/profileSidebar/app.profilesidebar.component.ts +25 -0
  106. package/theme/layout/app/sidebar/app.sidebar.component.d.ts +15 -0
  107. package/theme/layout/app/sidebar/app.sidebar.component.html +67 -0
  108. package/theme/layout/app/sidebar/app.sidebar.component.ts +40 -0
  109. package/theme/layout/app/topbar/app.topbar.component.d.ts +13 -0
  110. package/theme/layout/app/topbar/app.topbar.component.html +41 -0
  111. package/theme/layout/app/topbar/app.topbar.component.ts +29 -0
  112. package/theme/layout/index.d.ts +1 -0
  113. package/theme/layout/index.ts +1 -0
  114. package/theme/layout/ng-package.json +6 -0
  115. package/theme/layout/service/app.layout.service.d.ts +51 -0
  116. package/theme/layout/service/app.layout.service.ts +197 -0
  117. package/theme/layout/service/app.menu.service.d.ts +14 -0
  118. package/theme/layout/service/app.menu.service.ts +28 -0
  119. package/theme/layout/service/menuchangeevent.d.ts +4 -0
  120. package/theme/layout/service/menuchangeevent.ts +4 -0
  121. package/ui/calendar/src/calendar.component.d.ts +1 -1
  122. package/ui/form/index.d.ts +9 -0
  123. package/ui/form/src/form-submit-button.component.d.ts +1 -1
  124. package/ui/form/src/form.component.d.ts +1 -1
  125. package/ui/table/index.d.ts +14 -0
  126. package/ui/table/src/table-column.component.d.ts +5 -4
  127. package/ui/table/src/table.component.d.ts +7 -15
  128. package/ui/tree/src/tree.component.d.ts +13 -18
  129. 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,6 @@
1
+ {
2
+ "$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "lib": {
4
+ "entryFile": "./index.ts"
5
+ }
6
+ }
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ export interface MenuChangeEvent {
2
+ key: string;
3
+ routeEvent?: boolean;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface MenuChangeEvent {
2
+ key: string;
3
+ routeEvent?: boolean;
4
+ }
@@ -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";
@@ -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, true, 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, ["*"], true, [{ directive: typeof i1.FlexGridDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.FormErrorMessageDirective; inputs: { "formErrorMessage": "formGroup"; }; outputs: {}; }]>;
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
  }
@@ -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
- export type ValueTypes = 'text' | 'numeric' | 'date' | 'boolean' | 'custom';
3
+ type ValueTypes = 'text' | 'numeric' | 'date' | 'boolean' | 'custom';
4
4
  export interface TableColumns {
5
5
  _results: Array<TableColumn>;
6
6
  }
7
- export interface TableColumn {
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?: boolean;
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": false; }; "isOperation": { "alias": "isOperation"; "required": false; }; }, {}, ["template"], ["*"], true, 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": 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 { MenuItem, PrimeNGConfig } from 'primeng/api';
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
- rows: number;
13
- rowsPerPageOptions: number[];
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
- filteredRows: any;
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; }; "checkboxSelection": { "alias": "checkboxSelection"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "contextMenu": { "alias": "contextMenu"; "required": false; }; "proxy": { "alias": "proxy"; "required": false; }; }, { "selectionEvent": "selectionEvent"; }, ["columns"], ["[footer]"], true, never>;
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
- items: TreeNode[];
7
- selectionMode: SelectionModes;
8
- contextMenu: any;
9
- metaKeySelection: boolean;
10
- propagateSelectionUp: boolean;
11
- propagateSelectionDown: boolean;
12
- loading: boolean;
13
- loadingIcon: string;
14
- filter: boolean;
15
- filterMode: string;
16
- filterBy: string;
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, { "items": { "alias": "items"; "required": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "contextMenu": { "alias": "contextMenu"; "required": false; }; "metaKeySelection": { "alias": "metaKeySelection"; "required": false; }; "propagateSelectionUp": { "alias": "propagateSelectionUp"; "required": false; }; "propagateSelectionDown": { "alias": "propagateSelectionDown"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "filterMode": { "alias": "filterMode"; "required": false; }; "filterBy": { "alias": "filterBy"; "required": false; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; }; }, { "nodeSelect": "nodeSelect"; "nodeUnselect": "nodeUnselect"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; }, never, never, true, 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
- items: TreeNode[];
9
- columns: Array<object>;
10
- rows: number;
11
- rowsPerPageOptions: number[];
12
- scrollable: boolean;
13
- scrollHeight: string;
14
- loading: boolean;
15
- sortMode: SortMode;
16
- filterMode: FilterMode;
17
- selectionMode: SelectionModes;
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
- getFilterTargetValue(event: Event): string;
21
- emitSelectedRows(): void;
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, { "items": { "alias": "items"; "required": true; }; "columns": { "alias": "columns"; "required": true; }; "rows": { "alias": "rows"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "sortMode": { "alias": "sortMode"; "required": false; }; "filterMode": { "alias": "filterMode"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; }, { "selectEvent": "selectEvent"; }, never, ["[exportBtn]"], true, 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 {};