@acontplus/ng-components 3.1.0 → 3.2.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": "@acontplus/ng-components",
3
- "version": "3.1.0",
3
+ "version": "3.2.1",
4
4
  "description": "Comprehensive Angular Material UI component library featuring dynamic Tabulator tables, theme toggle with dark mode, dialog wrappers, autocomplete components, cards, buttons, icons, input chips, spinners, directives, pipes, and SCSS styling utilities.",
5
5
  "peerDependencies": {
6
6
  "@acontplus/ui-kit": "^1.0.2",
@@ -164,6 +164,14 @@
164
164
  @include mat.icon-overrides(());
165
165
  }
166
166
 
167
+ [matIconButton].acp-light {
168
+ @include mat.icon-overrides(
169
+ (
170
+ color: #ffffff,
171
+ )
172
+ );
173
+ }
174
+
167
175
  [matFab].acp-primary {
168
176
  @include mat.fab-overrides(
169
177
  (
@@ -9,11 +9,6 @@
9
9
 
10
10
  @use '@angular/material' as mat;
11
11
 
12
- // Disable Backdrop css
13
- ::ng-deep.cdk-overlay-dark-backdrop {
14
- background: none;
15
- }
16
-
17
12
  mat-list-item.mat-mdc-list-item {
18
13
  height: 40px;
19
14
  }
@@ -36,7 +31,7 @@ mat-list-item.mdc-list-item--activated {
36
31
  overflow-y: auto;
37
32
  overflow-x: hidden;
38
33
  max-width: 700px;
39
- margin-top: -22px;
34
+ margin-top: -0px;
40
35
  border: 1px solid var(--mat-sys-surface-container);
41
36
  }
42
37
 
@@ -0,0 +1,140 @@
1
+ // Structural styles for the dialog shell. All themeable values are exposed
2
+ // as `--acp-dialog-*` custom properties; override them via a global class.
3
+
4
+ // The container is a flex column so the content area grows and pushes any
5
+ // footer / actions to the bottom when the dialog has a fixed height (e.g. full-screen).
6
+
7
+ .acp-dialog-header {
8
+ cursor: move;
9
+ border-bottom: 1px solid
10
+ var(--acp-dialog-header-border-color, var(--mat-sys-outline-variant, #dee2e6));
11
+ color: var(--acp-dialog-header-text-color, var(--mat-sys-on-surface, #212529));
12
+ position: relative;
13
+
14
+ // Predefined color variants. Override these with CSS custom properties or `colorClass`.
15
+ &.acp-dialog-header--primary {
16
+ background-color: var(
17
+ --acp-dialog-primary-header-background-color,
18
+ var(--mat-sys-primary, #1976d2)
19
+ );
20
+ color: var(--acp-dialog-primary-header-text-color, var(--mat-sys-on-primary, #fff));
21
+ }
22
+ &.acp-dialog-header--secondary {
23
+ background-color: var(
24
+ --acp-dialog-secondary-header-background-color,
25
+ var(--mat-sys-secondary, #9c27b0)
26
+ );
27
+ color: var(--acp-dialog-secondary-header-text-color, var(--mat-sys-on-secondary, #fff));
28
+ }
29
+ &.acp-dialog-header--accent {
30
+ background-color: var(
31
+ --acp-dialog-accent-header-background-color,
32
+ var(--mat-sys-tertiary, #7c4dff)
33
+ );
34
+ color: var(--acp-dialog-accent-header-text-color, var(--mat-sys-on-tertiary, #fff));
35
+ }
36
+ &.acp-dialog-header--error,
37
+ &.acp-dialog-header--danger {
38
+ background-color: var(
39
+ --acp-dialog-error-header-background-color,
40
+ var(--mat-sys-error, #b3261e)
41
+ );
42
+ color: var(--acp-dialog-error-header-text-color, var(--mat-sys-on-error, #fff));
43
+ }
44
+ &.acp-dialog-header--success {
45
+ background-color: var(--acp-dialog-success-header-background-color, #22c55e);
46
+ color: var(--acp-dialog-success-header-text-color, #fff);
47
+ }
48
+ &.acp-dialog-header--warning {
49
+ background-color: var(--acp-dialog-warning-header-background-color, #f59e0b);
50
+ color: var(--acp-dialog-warning-header-text-color, #212529);
51
+ }
52
+ &.acp-dialog-header--info {
53
+ background-color: var(--acp-dialog-info-header-background-color, #0ea5e9);
54
+ color: var(--acp-dialog-info-header-text-color, #fff);
55
+ }
56
+ &.acp-dialog-header--dark {
57
+ background-color: var(--acp-dialog-dark-header-background-color, #212529);
58
+ color: var(--acp-dialog-dark-header-text-color, #fff);
59
+ }
60
+
61
+ &[class*='acp-dialog-header--'] {
62
+ .acp-dialog-subtitle {
63
+ color: inherit;
64
+ opacity: 0.85;
65
+ }
66
+ }
67
+ }
68
+
69
+ h6[mat-dialog-title].acp-dialog-title {
70
+ display: flex;
71
+ align-items: center;
72
+ font-size: var(--acp-dialog-title-font-size, 1.2rem);
73
+ font-weight: var(--acp-dialog-title-font-weight, 500);
74
+ margin: 0;
75
+ width: 100%;
76
+ padding-right: 48px;
77
+ color: currentColor;
78
+ }
79
+
80
+ .acp-dialog-title-icon {
81
+ margin-right: var(--acp-dialog-title-icon-gap, 12px);
82
+ vertical-align: middle;
83
+ }
84
+
85
+ h6[mat-dialog-title].acp-dialog-title span {
86
+ flex-grow: 1;
87
+ }
88
+
89
+ .acp-dialog-close-btn {
90
+ position: absolute;
91
+ top: 8px;
92
+ right: 16px;
93
+ }
94
+
95
+ .acp-dialog-subtitle {
96
+ margin: 0;
97
+ padding: 0 var(--acp-dialog-subtitle-padding, 24px) var(--acp-dialog-subtitle-padding, 16px);
98
+ font-size: var(--acp-dialog-subtitle-font-size, 0.875rem);
99
+ color: var(--acp-dialog-subtitle-color, var(--mat-sys-on-surface-variant, #6c757d));
100
+ }
101
+
102
+ .acp-dialog-message {
103
+ padding: var(--acp-dialog-message-padding, 24px);
104
+ color: var(--acp-dialog-message-text-color, var(--mat-sys-on-surface, #212529));
105
+ }
106
+
107
+ .acp-dialog-message-actions {
108
+ display: flex;
109
+ justify-content: flex-end;
110
+ gap: 8px;
111
+ padding: 0 var(--acp-dialog-message-padding, 24px) var(--acp-dialog-message-padding, 24px);
112
+ }
113
+
114
+ .acp-dialog-actions {
115
+ display: flex;
116
+ align-items: center;
117
+ gap: var(--acp-dialog-actions-gap, 8px);
118
+ padding: var(--acp-dialog-actions-padding, 16px 24px);
119
+ border-top: 1px solid
120
+ var(--acp-dialog-actions-border-color, var(--mat-sys-outline-variant, #dee2e6));
121
+ }
122
+
123
+ // Full-screen dialog: pin the action footer to the bottom of the viewport.
124
+ .acp-dialog-full-screen .mat-mdc-dialog-surface {
125
+ height: 100vh;
126
+ }
127
+
128
+ .acp-dialog-full-screen acp-dialog-container {
129
+ min-height: 100vh;
130
+ }
131
+
132
+ .acp-dialog-full-screen .acp-dialog-content.mat-mdc-dialog-content {
133
+ max-height: 100%;
134
+ height: 100%;
135
+ }
136
+
137
+ .acp-dialog-full-screen .acp-dialog-actions,
138
+ .acp-dialog-full-screen .mat-mdc-dialog-actions {
139
+ margin-top: auto;
140
+ }
@@ -24,10 +24,6 @@ h6[mat-dialog-title].acp-dialog-title span {
24
24
  flex-grow: 1;
25
25
  }
26
26
 
27
- mat-dialog-content {
28
- padding: 24px;
29
- }
30
-
31
27
  .acp-dialog-close-btn {
32
28
  position: absolute;
33
29
  top: 8px;