ng-fusion-ui 0.7.2 → 0.7.3
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/README.md +6 -6
- package/fesm2022/ng-fusion-ui.mjs +5 -180
- package/fesm2022/ng-fusion-ui.mjs.map +1 -1
- package/lib/button/button.module.d.ts +3 -6
- package/lib/button/directives/button.directive.d.ts +2 -2
- package/lib/button/index.d.ts +0 -3
- package/lib/data-table/table/table.component.d.ts +1 -1
- package/lib/table/directives/button.directive.d.ts +3 -3
- package/lib/table/table/table.component.d.ts +2 -2
- package/package.json +2 -2
- package/styles/styles.scss +0 -1
- package/lib/button/directives/btn-filled.directive.d.ts +0 -21
- package/lib/button/directives/btn-outline.directive.d.ts +0 -21
- package/lib/button/directives/btn-text.directive.d.ts +0 -23
- package/styles/_blue-theme.scss +0 -23
- package/styles/_green-theme.scss +0 -35
- package/styles/_overrides.scss +0 -17
package/README.md
CHANGED
|
@@ -30,9 +30,9 @@ A flexible data table component with client/server pagination, sorting, column v
|
|
|
30
30
|
|
|
31
31
|
```html
|
|
32
32
|
<fu-table [dataSource]="users" [paginator]="true" (queryChanged)="load($event)">
|
|
33
|
-
<fu-column field="name" header="Name" sortable editable
|
|
34
|
-
<fu-column field="email" header="Email"
|
|
35
|
-
<fu-column field="age" header="Age" type="number"
|
|
33
|
+
<fu-column field="name" header="Name" sortable editable />
|
|
34
|
+
<fu-column field="email" header="Email" />
|
|
35
|
+
<fu-column field="age" header="Age" type="number" />
|
|
36
36
|
</fu-table>
|
|
37
37
|
```
|
|
38
38
|
|
|
@@ -95,8 +95,8 @@ You can provide templates inside `fu-column`:
|
|
|
95
95
|
[paginator]="true"
|
|
96
96
|
(queryChanged)="onQuery($event)">
|
|
97
97
|
|
|
98
|
-
<fu-column field="id" header="#" hideable="false"
|
|
99
|
-
<fu-column field="name" header="Name" sortable editable
|
|
100
|
-
<fu-column field="email" header="Email"
|
|
98
|
+
<fu-column field="id" header="#" hideable="false" />
|
|
99
|
+
<fu-column field="name" header="Name" sortable editable />
|
|
100
|
+
<fu-column field="email" header="Email" />
|
|
101
101
|
</fu-table>
|
|
102
102
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { input, booleanAttribute, inject, ElementRef, Renderer2, Directive, NgModule, Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, HostBinding, signal, computed, effect, Pipe, model, contentChild, TemplateRef, DestroyRef, Injector, output, EventEmitter, untracked, Output, HostListener, linkedSignal, viewChild, afterRenderEffect } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
4
|
import { CommonModule, NgTemplateOutlet, DatePipe } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/platform-browser';
|
|
@@ -10,163 +10,6 @@ import { CdkContextMenuTrigger, CdkMenu } from '@angular/cdk/menu';
|
|
|
10
10
|
import * as i2 from '@angular/forms';
|
|
11
11
|
import { FormsModule } from '@angular/forms';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated fu-btn-outline will be removed in next versions. Use `fuButton` instead.
|
|
15
|
-
*/
|
|
16
|
-
class OutlinedButtonDirective {
|
|
17
|
-
constructor(el, renderer) {
|
|
18
|
-
this.el = el;
|
|
19
|
-
this.renderer = renderer;
|
|
20
|
-
this.variant = 'regular';
|
|
21
|
-
this.iconButton = false;
|
|
22
|
-
this.rounded = false;
|
|
23
|
-
this.compact = false;
|
|
24
|
-
}
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
this.setInitialStyles();
|
|
27
|
-
}
|
|
28
|
-
setInitialStyles() {
|
|
29
|
-
this.renderer.addClass(this.el.nativeElement, 'fu-btn');
|
|
30
|
-
this.renderer.addClass(this.el.nativeElement, 'fu-btn-outline');
|
|
31
|
-
this.renderer.addClass(this.el.nativeElement, `fu-btn-${this.variant}`);
|
|
32
|
-
if (this.iconButton) {
|
|
33
|
-
this.renderer.setAttribute(this.el.nativeElement, 'icon', 'true');
|
|
34
|
-
}
|
|
35
|
-
if (this.rounded) {
|
|
36
|
-
this.renderer.setAttribute(this.el.nativeElement, 'rounded', 'true');
|
|
37
|
-
}
|
|
38
|
-
if (this.compact) {
|
|
39
|
-
this.renderer.setAttribute(this.el.nativeElement, 'compact', 'true');
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OutlinedButtonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
43
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.6", type: OutlinedButtonDirective, isStandalone: true, selector: "[fu-btn-outline]", inputs: { variant: "variant", iconButton: ["iconButton", "iconButton", booleanAttribute], rounded: ["rounded", "rounded", booleanAttribute], compact: ["compact", "compact", booleanAttribute] }, ngImport: i0 }); }
|
|
44
|
-
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OutlinedButtonDirective, decorators: [{
|
|
46
|
-
type: Directive,
|
|
47
|
-
args: [{
|
|
48
|
-
selector: '[fu-btn-outline]',
|
|
49
|
-
}]
|
|
50
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { variant: [{
|
|
51
|
-
type: Input
|
|
52
|
-
}], iconButton: [{
|
|
53
|
-
type: Input,
|
|
54
|
-
args: [{ transform: booleanAttribute }]
|
|
55
|
-
}], rounded: [{
|
|
56
|
-
type: Input,
|
|
57
|
-
args: [{ transform: booleanAttribute }]
|
|
58
|
-
}], compact: [{
|
|
59
|
-
type: Input,
|
|
60
|
-
args: [{ transform: booleanAttribute }]
|
|
61
|
-
}] } });
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated fu-btn-text will be removed in next versions. Use `fuButton` instead.
|
|
65
|
-
*/
|
|
66
|
-
class TextButtonDirective {
|
|
67
|
-
constructor(el, renderer) {
|
|
68
|
-
this.el = el;
|
|
69
|
-
this.renderer = renderer;
|
|
70
|
-
this.variant = 'regular';
|
|
71
|
-
this.iconButton = false;
|
|
72
|
-
this.rounded = false;
|
|
73
|
-
this.raised = false;
|
|
74
|
-
this.compact = false;
|
|
75
|
-
}
|
|
76
|
-
ngOnInit() {
|
|
77
|
-
this.setInitialStyles();
|
|
78
|
-
}
|
|
79
|
-
setInitialStyles() {
|
|
80
|
-
this.renderer.addClass(this.el.nativeElement, 'fu-btn');
|
|
81
|
-
this.renderer.addClass(this.el.nativeElement, 'fu-btn-text');
|
|
82
|
-
this.renderer.addClass(this.el.nativeElement, `fu-btn-${this.variant}`);
|
|
83
|
-
if (this.iconButton) {
|
|
84
|
-
this.renderer.setAttribute(this.el.nativeElement, 'icon', 'true');
|
|
85
|
-
}
|
|
86
|
-
if (this.rounded) {
|
|
87
|
-
this.renderer.setAttribute(this.el.nativeElement, 'rounded', 'true');
|
|
88
|
-
}
|
|
89
|
-
if (this.raised) {
|
|
90
|
-
this.renderer.setAttribute(this.el.nativeElement, 'raised', 'true');
|
|
91
|
-
}
|
|
92
|
-
if (this.compact) {
|
|
93
|
-
this.renderer.setAttribute(this.el.nativeElement, 'compact', 'true');
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TextButtonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
97
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.6", type: TextButtonDirective, isStandalone: true, selector: "[fu-btn-text]", inputs: { variant: "variant", iconButton: ["iconButton", "iconButton", booleanAttribute], rounded: ["rounded", "rounded", booleanAttribute], raised: ["raised", "raised", booleanAttribute], compact: ["compact", "compact", booleanAttribute] }, ngImport: i0 }); }
|
|
98
|
-
}
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TextButtonDirective, decorators: [{
|
|
100
|
-
type: Directive,
|
|
101
|
-
args: [{
|
|
102
|
-
selector: '[fu-btn-text]',
|
|
103
|
-
}]
|
|
104
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { variant: [{
|
|
105
|
-
type: Input
|
|
106
|
-
}], iconButton: [{
|
|
107
|
-
type: Input,
|
|
108
|
-
args: [{ transform: booleanAttribute }]
|
|
109
|
-
}], rounded: [{
|
|
110
|
-
type: Input,
|
|
111
|
-
args: [{ transform: booleanAttribute }]
|
|
112
|
-
}], raised: [{
|
|
113
|
-
type: Input,
|
|
114
|
-
args: [{ transform: booleanAttribute }]
|
|
115
|
-
}], compact: [{
|
|
116
|
-
type: Input,
|
|
117
|
-
args: [{ transform: booleanAttribute }]
|
|
118
|
-
}] } });
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @deprecated fu-btn-filled will be removed in next versions. Use `fuButton` instead.
|
|
122
|
-
*/
|
|
123
|
-
class FilledButtonDirective {
|
|
124
|
-
constructor(el, renderer) {
|
|
125
|
-
this.el = el;
|
|
126
|
-
this.renderer = renderer;
|
|
127
|
-
this.variant = 'regular';
|
|
128
|
-
this.iconButton = false;
|
|
129
|
-
this.rounded = false;
|
|
130
|
-
this.compact = false;
|
|
131
|
-
}
|
|
132
|
-
ngOnInit() {
|
|
133
|
-
this.setInitialStyles();
|
|
134
|
-
}
|
|
135
|
-
setInitialStyles() {
|
|
136
|
-
this.renderer.addClass(this.el.nativeElement, 'fu-btn');
|
|
137
|
-
this.renderer.addClass(this.el.nativeElement, 'fu-btn-filled');
|
|
138
|
-
this.renderer.addClass(this.el.nativeElement, `fu-btn-${this.variant}`);
|
|
139
|
-
if (this.iconButton) {
|
|
140
|
-
this.renderer.setAttribute(this.el.nativeElement, 'icon', 'true');
|
|
141
|
-
}
|
|
142
|
-
if (this.rounded) {
|
|
143
|
-
this.renderer.setAttribute(this.el.nativeElement, 'rounded', 'true');
|
|
144
|
-
}
|
|
145
|
-
if (this.compact) {
|
|
146
|
-
this.renderer.setAttribute(this.el.nativeElement, 'compact', 'true');
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: FilledButtonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
150
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.6", type: FilledButtonDirective, isStandalone: true, selector: "[fu-btn-filled]", inputs: { variant: "variant", iconButton: ["iconButton", "iconButton", booleanAttribute], rounded: ["rounded", "rounded", booleanAttribute], compact: ["compact", "compact", booleanAttribute] }, ngImport: i0 }); }
|
|
151
|
-
}
|
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: FilledButtonDirective, decorators: [{
|
|
153
|
-
type: Directive,
|
|
154
|
-
args: [{
|
|
155
|
-
selector: '[fu-btn-filled]',
|
|
156
|
-
}]
|
|
157
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { variant: [{
|
|
158
|
-
type: Input
|
|
159
|
-
}], iconButton: [{
|
|
160
|
-
type: Input,
|
|
161
|
-
args: [{ transform: booleanAttribute }]
|
|
162
|
-
}], rounded: [{
|
|
163
|
-
type: Input,
|
|
164
|
-
args: [{ transform: booleanAttribute }]
|
|
165
|
-
}], compact: [{
|
|
166
|
-
type: Input,
|
|
167
|
-
args: [{ transform: booleanAttribute }]
|
|
168
|
-
}] } });
|
|
169
|
-
|
|
170
13
|
class ButtonDirective {
|
|
171
14
|
constructor() {
|
|
172
15
|
this.variant = input('filled');
|
|
@@ -218,32 +61,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImpor
|
|
|
218
61
|
|
|
219
62
|
class ButtonModule {
|
|
220
63
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
221
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ButtonModule, imports: [
|
|
222
|
-
FilledButtonDirective,
|
|
223
|
-
TextButtonDirective,
|
|
224
|
-
ButtonDirective,
|
|
225
|
-
CommonModule], exports: [OutlinedButtonDirective,
|
|
226
|
-
FilledButtonDirective,
|
|
227
|
-
TextButtonDirective,
|
|
228
|
-
ButtonDirective] }); }
|
|
64
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ButtonModule, imports: [ButtonDirective, CommonModule], exports: [ButtonDirective] }); }
|
|
229
65
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ButtonModule, imports: [CommonModule] }); }
|
|
230
66
|
}
|
|
231
67
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ButtonModule, decorators: [{
|
|
232
68
|
type: NgModule,
|
|
233
69
|
args: [{
|
|
234
|
-
imports: [
|
|
235
|
-
|
|
236
|
-
FilledButtonDirective,
|
|
237
|
-
TextButtonDirective,
|
|
238
|
-
ButtonDirective,
|
|
239
|
-
CommonModule,
|
|
240
|
-
],
|
|
241
|
-
exports: [
|
|
242
|
-
OutlinedButtonDirective,
|
|
243
|
-
FilledButtonDirective,
|
|
244
|
-
TextButtonDirective,
|
|
245
|
-
ButtonDirective,
|
|
246
|
-
],
|
|
70
|
+
imports: [ButtonDirective, CommonModule],
|
|
71
|
+
exports: [ButtonDirective],
|
|
247
72
|
}]
|
|
248
73
|
}] });
|
|
249
74
|
|
|
@@ -3038,5 +2863,5 @@ function fieldPathOf() {
|
|
|
3038
2863
|
* Generated bundle index. Do not edit.
|
|
3039
2864
|
*/
|
|
3040
2865
|
|
|
3041
|
-
export { BodyTemplateDirective, ButtonDirective, ButtonModule, DataTableModule, ExpandTemplateDirective,
|
|
2866
|
+
export { BodyTemplateDirective, ButtonDirective, ButtonModule, DataTableModule, ExpandTemplateDirective, FuColumnActionsTemplateDirective, FuColumnCellTemplateDirective, FuColumnComponent, FuColumnHeaderAddonTemplateDirective, FuColumnHeaderTemplateDirective, FuHighlightPipe, FuRowContextMenuTemplateDirective, FuTButtonDirective, FuTableComponent, FuTableExpandRowTemplateDirective, FuTableIntlService, FuTableModule, FuTableNoDataTemplateDirective, FuTableSidebarTemplateDirective, HeaderTemplateDirective, HighlightDirective, IconComponent, IconModule, PopupTemplateDirective, TableComponent, TableFilterComponent, TableIntlService, TablePaginatorComponent, TbodyActionsComponent, TbodyCellComponent, TheadCellComponent, TreeComponent, TreeModule, fieldPathOf, rowClassByField, rowClassByPath };
|
|
3042
2867
|
//# sourceMappingURL=ng-fusion-ui.mjs.map
|