commons-shared-web-ui 0.0.28 → 0.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commons-shared-web-ui",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "20.3.15",
6
6
  "@angular/cdk": "20.2.14",
@@ -0,0 +1,36 @@
1
+ @use 'sass:map';
2
+
3
+ $filter-table-selector-config: (
4
+ panel-bg: #ffffff,
5
+ filter-panel-width: 220px,
6
+ filter-panel-border: 1px solid #dee2e6,
7
+ header-bg: #ffffff,
8
+ header-border: 1px solid #dee2e6,
9
+ header-height: 56px,
10
+ header-padding: 0 24px,
11
+ header-title-color: #333333,
12
+ header-title-font-size: 18px,
13
+ header-title-font-weight: 600,
14
+ footer-bg: #ffffff,
15
+ footer-border: 1px solid #dee2e6,
16
+ footer-height: 64px,
17
+ footer-padding: 0 24px,
18
+ footer-gap: 12px,
19
+ body-bg: #f8f9fb,
20
+ filter-section-title-color: #666666,
21
+ filter-section-title-font-size: 12px,
22
+ filter-section-title-font-weight: 600,
23
+ selection-count-color: #666666,
24
+ selection-count-font-size: 14px,
25
+ toolbar-border: 1px solid #dee2e6,
26
+ );
27
+
28
+ @mixin filter-table-selector-theme($user-config: ()) {
29
+ $config: map.merge($filter-table-selector-config, $user-config);
30
+
31
+ :root {
32
+ @each $key, $value in $config {
33
+ --fts-#{$key}: #{$value};
34
+ }
35
+ }
36
+ }
@@ -1,66 +1,66 @@
1
- @use 'sass:map';
2
-
3
- // Default configuration for the pagination theme
4
- $default-pagination-config: (
5
- // Font & Text
6
- font-family: ('Roboto', sans-serif),
7
- text-color: #757575,
8
- font-size: 14px,
9
-
10
- // Select Dropdown
11
- select-bg: #f5f5f5,
12
- select-border: none,
13
- select-radius: 4px,
14
- select-padding: 6px 12px,
15
- select-text-color: #333,
16
- select-arrow-color: #f44336, // Red arrow
17
-
18
- // Buttons
19
- btn-size: 32px,
20
- btn-bg: #ffffff,
21
- btn-border: 1px solid #e0e0e0,
22
- btn-radius: 4px,
23
- btn-text-color: #333,
24
-
25
- // States
26
- btn-hover-bg: #f5f5f5,
27
- btn-active-bg: #fff,
28
- btn-active-border: 1px solid #ff4081, // Pinkish red
29
- btn-active-text: #ff4081,
30
-
31
- // Disabled
32
- disabled-opacity: 0.5,
33
- disabled-bg: #f9f9f9
34
- );
35
-
36
- // Mixin to generate CSS variables for the pagination component
37
- @mixin pagination-theme($user-config: ()) {
38
- // Merge user config with defaults
39
- $config: map.merge($default-pagination-config, $user-config);
40
-
41
- // Generate CSS Variables
42
- --cc-pagination-font-family: #{map.get($config, font-family)};
43
- --cc-pagination-text-color: #{map.get($config, text-color)};
44
- --cc-pagination-font-size: #{map.get($config, font-size)};
45
-
46
- --cc-pagination-select-bg: #{map.get($config, select-bg)};
47
- --cc-pagination-select-border: #{map.get($config, select-border)};
48
- --cc-pagination-select-radius: #{map.get($config, select-radius)};
49
- --cc-pagination-select-padding: #{map.get($config, select-padding)};
50
- --cc-pagination-select-text-color: #{map.get($config, select-text-color)};
51
- --cc-pagination-select-arrow-color: #{map.get($config, select-arrow-color)};
52
-
53
- --cc-pagination-btn-size: #{map.get($config, btn-size)};
54
- --cc-pagination-btn-bg: #{map.get($config, btn-bg)};
55
- --cc-pagination-btn-border: #{map.get($config, btn-border)};
56
- --cc-pagination-btn-radius: #{map.get($config, btn-radius)};
57
- --cc-pagination-btn-text-color: #{map.get($config, btn-text-color)};
58
-
59
- --cc-pagination-btn-hover-bg: #{map.get($config, btn-hover-bg)};
60
- --cc-pagination-btn-active-bg: #{map.get($config, btn-active-bg)};
61
- --cc-pagination-btn-active-border: #{map.get($config, btn-active-border)};
62
- --cc-pagination-btn-active-text: #{map.get($config, btn-active-text)};
63
-
64
- --cc-pagination-disabled-opacity: #{map.get($config, disabled-opacity)};
65
- --cc-pagination-disabled-bg: #{map.get($config, disabled-bg)};
66
- }
1
+ @use 'sass:map';
2
+
3
+ // Default configuration for the pagination theme
4
+ $default-pagination-config: (
5
+ // Font & Text
6
+ font-family: ('Roboto', sans-serif),
7
+ text-color: #757575,
8
+ font-size: 14px,
9
+
10
+ // Select Dropdown
11
+ select-bg: #f5f5f5,
12
+ select-border: none,
13
+ select-radius: 4px,
14
+ select-padding: 6px 12px,
15
+ select-text-color: #333,
16
+ select-arrow-color: #f44336, // Red arrow
17
+
18
+ // Buttons
19
+ btn-size: 32px,
20
+ btn-bg: #ffffff,
21
+ btn-border: 1px solid #e0e0e0,
22
+ btn-radius: 4px,
23
+ btn-text-color: #333,
24
+
25
+ // States
26
+ btn-hover-bg: #f5f5f5,
27
+ btn-active-bg: #fff,
28
+ btn-active-border: 1px solid #ff4081, // Pinkish red
29
+ btn-active-text: #ff4081,
30
+
31
+ // Disabled
32
+ disabled-opacity: 0.5,
33
+ disabled-bg: #f9f9f9
34
+ );
35
+
36
+ // Mixin to generate CSS variables for the pagination component
37
+ @mixin pagination-theme($user-config: ()) {
38
+ // Merge user config with defaults
39
+ $config: map.merge($default-pagination-config, $user-config);
40
+
41
+ // Generate CSS Variables
42
+ --cc-pagination-font-family: #{map.get($config, font-family)};
43
+ --cc-pagination-text-color: #{map.get($config, text-color)};
44
+ --cc-pagination-font-size: #{map.get($config, font-size)};
45
+
46
+ --cc-pagination-select-bg: #{map.get($config, select-bg)};
47
+ --cc-pagination-select-border: #{map.get($config, select-border)};
48
+ --cc-pagination-select-radius: #{map.get($config, select-radius)};
49
+ --cc-pagination-select-padding: #{map.get($config, select-padding)};
50
+ --cc-pagination-select-text-color: #{map.get($config, select-text-color)};
51
+ --cc-pagination-select-arrow-color: #{map.get($config, select-arrow-color)};
52
+
53
+ --cc-pagination-btn-size: #{map.get($config, btn-size)};
54
+ --cc-pagination-btn-bg: #{map.get($config, btn-bg)};
55
+ --cc-pagination-btn-border: #{map.get($config, btn-border)};
56
+ --cc-pagination-btn-radius: #{map.get($config, btn-radius)};
57
+ --cc-pagination-btn-text-color: #{map.get($config, btn-text-color)};
58
+
59
+ --cc-pagination-btn-hover-bg: #{map.get($config, btn-hover-bg)};
60
+ --cc-pagination-btn-active-bg: #{map.get($config, btn-active-bg)};
61
+ --cc-pagination-btn-active-border: #{map.get($config, btn-active-border)};
62
+ --cc-pagination-btn-active-text: #{map.get($config, btn-active-text)};
63
+
64
+ --cc-pagination-disabled-opacity: #{map.get($config, disabled-opacity)};
65
+ --cc-pagination-disabled-bg: #{map.get($config, disabled-bg)};
66
+ }