ng-tablekit 1.0.0 → 1.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-tablekit",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Cross-platform CLI for adding Angular 19 and NG-ZORRO report and master table pages.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -50,12 +50,29 @@
50
50
  height: 32px;
51
51
  }
52
52
 
53
- .text-danger {
53
+ .action-icon-btn {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ width: 28px;
58
+ height: 28px;
54
59
  padding: 0;
55
- border: 0;
56
- background: transparent;
57
- color: #cf1322;
60
+ border: 1px solid transparent;
61
+ border-radius: 50%;
62
+ background: #e6f7ff;
63
+ color: #1890ff;
58
64
  cursor: pointer;
65
+ transition: all 0.3s;
66
+ }
67
+
68
+ .action-icon-btn.danger {
69
+ background: #fff1f0;
70
+ color: #f5222d;
71
+ }
72
+
73
+ .action-icon-btn.danger:hover {
74
+ background: #f5222d;
75
+ color: #fff;
59
76
  }
60
77
 
61
78
  .drawer-wrapper ::ng-deep .search-field .ant-input {
@@ -35,7 +35,18 @@
35
35
  @for(role of mapTable.data; track role.id) {
36
36
  <tr>
37
37
  <td nzAlign="center">
38
- <button class="text-danger" type="button" nz-popconfirm nzPopconfirmTitle="Delete this role?" (nzOnConfirm)="deleteRole(role.id)">Delete</button>
38
+ <button
39
+ class="action-icon-btn danger"
40
+ type="button"
41
+ title="Delete"
42
+ aria-label="Delete role"
43
+ nz-popconfirm
44
+ nzPopconfirmTitle="Delete this role?"
45
+ nzPopconfirmPlacement="left"
46
+ (nzOnConfirm)="deleteRole(role.id)"
47
+ >
48
+ <span nz-icon nzType="delete"></span>
49
+ </button>
39
50
  </td>
40
51
  <td nzAlign="center">{{ role.name }}</td>
41
52
  <td nzAlign="center">
@@ -1,6 +1,6 @@
1
1
  import { Component, EventEmitter, Input, Output } from '@angular/core';
2
2
  import { FormsModule } from '@angular/forms';
3
- import { PlusOutline, SearchOutline } from '@ant-design/icons-angular/icons';
3
+ import { DeleteOutline, PlusOutline, SearchOutline } from '@ant-design/icons-angular/icons';
4
4
  import { NzButtonModule } from 'ng-zorro-antd/button';
5
5
  import { NzDrawerModule } from 'ng-zorro-antd/drawer';
6
6
  import { NzIconModule, provideNzIconsPatch } from 'ng-zorro-antd/icon';
@@ -23,7 +23,7 @@ interface MappedRole {
23
23
  FormsModule, NzButtonModule, NzDrawerModule, NzIconModule,
24
24
  NzInputModule, NzPopconfirmModule, NzSwitchModule, NzTableModule
25
25
  ],
26
- providers: [...provideNzIconsPatch([PlusOutline, SearchOutline])],
26
+ providers: [...provideNzIconsPatch([DeleteOutline, PlusOutline, SearchOutline])],
27
27
  templateUrl: './master-map-drawer.component.html',
28
28
  styleUrl: './master-map-drawer.component.css'
29
29
  })
@@ -46,11 +46,11 @@
46
46
  /* Page Heading */
47
47
  .page-heading {
48
48
  margin: 0;
49
- font-family: Poppins, Arial, sans-serif;
50
- font-size: 18px;
51
- font-weight: 600;
52
- line-height: 24px;
53
- color: #1f1f1f;
49
+ font-family: "Poppins", sans-serif !important;
50
+ font-size: 16px;
51
+ font-weight: 700;
52
+ color: rgba(0, 0, 0, 0.85);
53
+ line-height: 1.4;
54
54
  }
55
55
 
56
56
  /* Back Button */
@@ -46,11 +46,11 @@
46
46
  /* Page Heading */
47
47
  .page-heading {
48
48
  margin: 0;
49
- font-family: Poppins, Arial, sans-serif;
50
- font-size: 18px;
51
- font-weight: 600;
52
- line-height: 24px;
53
- color: #1f1f1f;
49
+ font-family: "Poppins", sans-serif !important;
50
+ font-size: 16px;
51
+ font-weight: 700;
52
+ color: rgba(0, 0, 0, 0.85);
53
+ line-height: 1.4;
54
54
  }
55
55
 
56
56
  /* Back Button */