ng-fusion-ui 0.6.26 → 0.6.30
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 +50 -23
- package/fesm2022/ng-fusion-ui.mjs +237 -1046
- package/fesm2022/ng-fusion-ui.mjs.map +1 -1
- package/lib/button/directives/button.directive.d.ts +1 -1
- package/lib/data-table/services/table-utility.service.d.ts +2 -0
- package/lib/data-table/tbody-actions/tbody-actions.component.d.ts +2 -1
- package/lib/data-table/tbody-cell/tbody-cell.component.d.ts +1 -0
- package/lib/data-table/thead-cell/thead-cell.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/lib/data-grid/components/body-row-cell/body-row-cell.component.d.ts +0 -28
- package/lib/data-grid/components/head-row-cell/head-row-cell.component.d.ts +0 -17
- package/lib/data-grid/components/row-actions/row-actions.component.d.ts +0 -25
- package/lib/data-grid/data-grid/data-grid.component.d.ts +0 -117
- package/lib/data-grid/data-grid.module.d.ts +0 -20
- package/lib/data-grid/directives/grid-body-template.directive.d.ts +0 -13
- package/lib/data-grid/directives/grid-columns.directive.d.ts +0 -15
- package/lib/data-grid/directives/grid-expand-template.directive.d.ts +0 -12
- package/lib/data-grid/directives/grid-header-template.directive.d.ts +0 -12
- package/lib/data-grid/directives/sort-column.directive.d.ts +0 -11
- package/lib/data-grid/index.d.ts +0 -9
- package/lib/data-grid/pipes/key-mapping.pipe.d.ts +0 -7
- package/lib/data-grid/services/data-grid-paginator.d.ts +0 -6
- package/lib/data-grid/services/data-sorting.service.d.ts +0 -25
- package/lib/data-grid/services/edit-row.service.d.ts +0 -16
- package/lib/data-grid/services/paginator.service.d.ts +0 -19
package/README.md
CHANGED
|
@@ -21,27 +21,54 @@ For full documentation, visit [Fusion Ui](https://fusion-ui.up.railway.app).
|
|
|
21
21
|
## Basic Usage/Examples
|
|
22
22
|
|
|
23
23
|
```javascript
|
|
24
|
-
<fu-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
24
|
+
<fu-table
|
|
25
|
+
[tableLayout]="'auto'"
|
|
26
|
+
[dataSource]="data"
|
|
27
|
+
[totalCount]="totalCount"
|
|
28
|
+
[expandable]="false"
|
|
29
|
+
[expanded]="true"
|
|
30
|
+
[isLoading]="loading"
|
|
31
|
+
localStorageKey="fake"
|
|
32
|
+
[firstPageOnInit]="false"
|
|
33
|
+
[serverPagination]="true"
|
|
34
|
+
[showFilter]="true"
|
|
35
|
+
[showPaginator]="true"
|
|
36
|
+
[quickPageJump]="true"
|
|
37
|
+
(tableActions)="tableActions($event)"
|
|
38
|
+
(selectRowAction)="selectRowAction($event)"
|
|
39
|
+
variant="outlined"
|
|
40
|
+
>
|
|
41
|
+
<ng-container *fuHeaderTemplate="data; let key">
|
|
42
|
+
<fu-thead-cell headerText="id" width="70px" />
|
|
43
|
+
<fu-thead-cell headerText="name" />
|
|
44
|
+
<fu-thead-cell headerText="image" />
|
|
45
|
+
<fu-thead-cell headerText="phone" />
|
|
46
|
+
<fu-thead-cell headerText="email" />
|
|
47
|
+
<fu-thead-cell width="100px" />
|
|
48
|
+
</ng-container>
|
|
49
|
+
|
|
50
|
+
<ng-container *fuBodyTemplate="data; let row; keys as key">
|
|
51
|
+
<fu-tbody-cell [cellValue]="row.id" />
|
|
52
|
+
<fu-tbody-cell [cellValue]="row.name" />
|
|
53
|
+
<fu-tbody-cell>
|
|
54
|
+
<img [src]="row.image" />
|
|
55
|
+
</fu-tbody-cell>
|
|
56
|
+
<fu-tbody-cell [cellValue]="row.phone" [editKey]="key.phone" />
|
|
57
|
+
<fu-tbody-cell [cellValue]="row.email" />
|
|
58
|
+
|
|
59
|
+
<fu-tbody-actions
|
|
60
|
+
[editRowData]="row"
|
|
61
|
+
(editSaveAction)="editSaveAction($event)"
|
|
62
|
+
/>
|
|
63
|
+
</ng-container>
|
|
64
|
+
|
|
65
|
+
<ng-container *fuPopupTemplate>
|
|
66
|
+
<button fuButton>Hello</button>
|
|
67
|
+
<button fuButton>Hello world</button>
|
|
68
|
+
</ng-container>
|
|
69
|
+
|
|
70
|
+
<ng-container *fuExpandTemplate="data; let row">
|
|
71
|
+
<div>expand content: {{ row.name }}</div>
|
|
72
|
+
</ng-container>
|
|
73
|
+
</fu-table>
|
|
47
74
|
```
|