@acorex/styles 16.20.14 → 16.22.2

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,11 +1,15 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "16.20.14",
3
+ "version": "16.22.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "author": "",
10
- "license": "ISC"
10
+ "license": "ISC",
11
+ "publishConfig": {
12
+ "registry": "https://registry.npmjs.org",
13
+ "access": "public"
14
+ }
11
15
  }
@@ -1,117 +1,201 @@
1
1
  // filter
2
2
  .ag-menu {
3
- border-color: var(--border-color);
4
- resize: none;
3
+ border-color: var(--ax-border-color);
4
+ resize: none;
5
5
  }
6
6
 
7
- // ax-data-grid .ax-toolbar {
8
- // background: transparent !important;
9
- // box-shadow: none !important;
10
- // border: 0 !important;
11
- // padding: 0rem !important;
12
- // }
13
-
14
7
  .ax-grid-filter-container {
15
- min-width: 140px;
16
- margin: var(--sp-sm-size);
17
- min-height: 100px;
18
- display: flex;
19
- flex-direction: column;
20
- justify-content: center;
8
+ min-width: 140px;
9
+ margin: var(--sp-sm-size);
10
+ min-height: 100px;
11
+ display: flex;
12
+ flex-direction: column;
13
+ justify-content: center;
14
+ align-items: center;
15
+
16
+ legend {
17
+ font-size: inherit !important;
18
+ }
19
+
20
+ .btn-group {
21
+ width: 100%;
22
+ margin: var(--sp-md-size) 0 0 0;
23
+ }
24
+
25
+ .ax-field-set {
26
+ min-width: 200px !important;
27
+ }
28
+ }
29
+
30
+ // grid
31
+ ax-data-grid {
32
+ display: block;
33
+ height: 100%;
34
+ min-height: 0;
35
+ }
36
+
37
+ ag-grid-angular,
38
+ .ax-data-grid {
39
+ width: 100%;
40
+ height: 100%;
41
+ min-height: 0;
42
+ }
43
+
44
+ .ax-data-grid {
45
+ // Keep pagination + refresh footer fixed; never scroll with rows.
46
+ .ag-paging-panel {
47
+ flex-shrink: 0;
48
+ overflow: hidden !important;
49
+ position: relative;
50
+ z-index: 2;
51
+ background: var(--ax-white-color, #fff);
52
+
53
+ .ag-wrapper,
54
+ .ag-picker-field-wrapper,
55
+ .ag-input-field-input,
56
+ input {
57
+ --ag-input-height: 28px;
58
+ }
59
+ }
60
+
61
+ .ag-paging-panel-content {
62
+ flex-wrap: nowrap;
63
+ }
64
+
65
+ .ax-grid-refresh-btn {
66
+ display: inline-flex;
21
67
  align-items: center;
22
- legend {
23
- font-size: inherit !important;
68
+ justify-content: center;
69
+ flex-shrink: 0;
70
+ width: 1.5rem;
71
+ height: 1.5rem;
72
+ margin-inline: 0.35rem;
73
+ cursor: pointer;
74
+ color: var(--ax-gray-fore-color, #334155);
75
+ font-size: 0.8rem;
76
+
77
+ &:hover {
78
+ color: var(--ax-primary-color);
24
79
  }
25
- .btn-group {
26
- width: 100%;
27
- margin: var(--sp-md-size) 0 0 0;
80
+ }
81
+
82
+ .ag-paging-page-size {
83
+ .ag-wrapper,
84
+ .ag-picker-field-wrapper {
85
+ min-height: 28px;
86
+ min-width: 4rem;
28
87
  }
29
- .ax-field-set {
30
- min-width: 200px !important;
88
+
89
+ .ag-input-field-input,
90
+ input {
91
+ font-size: 0.75rem;
92
+ min-height: 28px;
93
+ height: 28px;
31
94
  }
32
- }
95
+ }
33
96
 
34
- // grid
35
- ag-grid-angular {
36
- width: 100%;
37
- }
97
+ // Page-number jump input: grow with digits so values like 555 stay readable
98
+ .ag-number-field.ag-paging-number {
99
+ display: inline-flex;
100
+ align-items: center;
101
+ min-width: 2.75rem;
38
102
 
39
- .ag-theme-balham {
40
- .ax-field-set-button {
41
- margin: 4px 2px !important;
103
+ .ag-wrapper {
104
+ min-width: 100%;
105
+ min-height: 28px;
42
106
  }
43
- .ag-header {
44
- background-color: var(--ax-primary-trans-light-color) !important;
45
- border-color: var(--ax-border-color);
107
+
108
+ .ag-input-field-input,
109
+ input.ag-input-field-input {
110
+ box-sizing: content-box;
111
+ min-width: 3ch !important;
112
+ width: auto !important;
113
+ max-width: 10ch;
114
+ height: 28px;
115
+ min-height: 28px;
116
+ field-sizing: content;
117
+ padding-inline: 0.35rem !important;
118
+ font-size: 0.75rem;
119
+ text-align: center;
120
+ font-variant-numeric: tabular-nums;
46
121
  }
47
- .ag-root {
48
- border-color: var(--ax-border-color) !important;
122
+ }
123
+
124
+ .ax-field-set-button {
125
+ margin: 4px 2px !important;
126
+ }
127
+
128
+ .ag-cell {
129
+ ax-check-box {
130
+ display: flex;
131
+ justify-content: center;
132
+ align-items: center;
133
+
134
+ .checkmark {
135
+ height: 16px;
136
+ width: 16px;
137
+ }
49
138
  }
50
- .ag-cell {
51
- ax-check-box {
52
- display: flex;
53
- justify-content: center;
54
- align-items: center;
55
- .checkmark {
56
- height: 16px;
57
- width: 16px;
58
- }
59
- }
60
- ax-button {
61
- .ax-button {
62
- display: inline-flex;
63
- margin: 4px 0px 0 5px;
64
- }
65
- .btn {
66
- padding: 0 0.75rem;
67
- font-size: 0.875rem;
68
- line-height: 1.2;
69
- }
70
- }
139
+
140
+ ax-button {
141
+ .ax-button {
142
+ display: inline-flex;
143
+ margin: 4px 0px 0 5px;
144
+ }
145
+
146
+ .btn {
147
+ padding: 0 0.75rem;
148
+ font-size: 0.875rem;
149
+ line-height: 1.2;
150
+ }
71
151
  }
72
- }
152
+ }
73
153
 
74
- .ag-theme-balham .ag-filter input[type="text"],
75
- .ag-theme-balham .ag-filter input[type="date"] {
154
+ .ag-filter input[type='text'],
155
+ .ag-filter input[type='date'] {
76
156
  padding-left: 0.5em !important;
157
+ }
158
+
159
+ .ag-row {
160
+ font-size: 0.875rem !important;
161
+ }
77
162
  }
78
163
 
79
164
  .ax-grid-command-button {
80
- border: none;
81
- width: var(--el-md-size);
82
- height: var(--el-md-size);
83
- text-align: center;
84
- display: inline-flex;
85
- justify-content: center;
86
- font-size: 0.875rem;
87
- align-items: center;
165
+ border: none;
166
+ width: var(--el-md-size);
167
+ height: var(--el-md-size);
168
+ text-align: center;
169
+ display: inline-flex;
170
+ justify-content: center;
171
+ font-size: 0.875rem;
172
+ align-items: center;
88
173
  }
89
174
 
90
175
  ax-command-cell {
91
- display: flex;
92
- justify-content: flex-start;
93
- align-items: center;
94
- height: 100%;
176
+ display: flex;
177
+ justify-content: flex-start;
178
+ align-items: center;
179
+ height: 100%;
95
180
  }
96
181
 
97
182
  :host {
98
- ax-toolbar {
99
- width: 100%;
100
- .ax-toolbar {
101
- background: var(--ax-white-color);
102
- padding: 0.5rem;
103
- z-index: 2;
104
- width: 100%;
105
- border: 1px solid var(--ax-border-color);
106
- border-bottom: 0;
107
- button {
108
- i {
109
- vertical-align: middle;
110
- }
111
- }
183
+ ax-toolbar {
184
+ width: 100%;
185
+
186
+ .ax-toolbar {
187
+ background: var(--ax-white-color);
188
+ padding: 0.5rem;
189
+ z-index: 2;
190
+ width: 100%;
191
+ border: 1px solid var(--ax-border-color);
192
+ border-bottom: 0;
193
+
194
+ button {
195
+ i {
196
+ vertical-align: middle;
112
197
  }
198
+ }
113
199
  }
114
- }
115
- .ag-theme-alpine div.ag-row {
116
- font-size: 0.875rem !important;
200
+ }
117
201
  }
package/scss/drawer.scss CHANGED
@@ -1,138 +1,138 @@
1
1
  ax-drawer-container {
2
- display: flex;
3
- position: relative;
2
+ display: flex;
3
+ position: relative;
4
+ width: 100%;
5
+ height: 100%;
6
+ overflow: hidden;
7
+
8
+ &.ax-fixed {
9
+ display: none;
10
+ top: 0;
11
+ right: 0;
12
+ left: 0;
13
+ bottom: 0;
14
+ z-index: 1000;
15
+ &.ax-visible {
16
+ display: flex;
17
+ }
18
+ }
19
+
20
+ .ax-backdrop {
21
+ background-color: rgb(0, 0, 0, 0.3);
22
+ position: absolute;
4
23
  width: 100%;
5
24
  height: 100%;
6
- overflow: hidden;
7
-
8
- &.ax-fixed {
9
- display: none;
10
- top: 0;
11
- right: 0;
12
- left: 0;
13
- bottom: 0;
14
- z-index: 1000;
15
- &.ax-visible {
16
- display: flex;
17
- }
25
+ z-index: 1;
26
+ top: 0;
27
+ bottom: 0;
28
+ transition-property: all;
29
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
30
+ transition-duration: 150ms;
31
+ }
32
+
33
+ ax-drawer {
34
+ display: flex !important;
35
+ flex-direction: column;
36
+ max-width: 95%;
37
+ height: 100%;
38
+ animation-duration: 300ms;
39
+ transition-property: all;
40
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
41
+ transition-duration: 150ms;
42
+ .ax-header,
43
+ .ax-footer {
44
+ padding: 0.75rem;
45
+ border-color: var(--ax-gray-light-color);
18
46
  }
19
-
20
- .ax-backdrop {
21
- background-color: rgb(0, 0, 0, 0.3);
22
- position: absolute;
23
- width: 100%;
24
- height: 100%;
25
- z-index: 1;
26
- top: 0;
27
- bottom: 0;
28
- transition-property: all;
29
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
30
- transition-duration: 150ms;
47
+ .ax-footer {
48
+ border-top: 1px solid;
49
+ border-color: var(--ax-gray-light-color);
50
+ }
51
+ .ax-header {
52
+ border-bottom: 1px solid;
53
+ border-color: var(--ax-gray-light-color);
54
+ }
55
+ &.ax-preload {
56
+ animation-duration: 30ms;
57
+ transition-property: all;
58
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
59
+ transition-duration: 150ms;
60
+ }
61
+ .ax-visible {
62
+ visibility: visible;
63
+ }
64
+ & > .ax-content {
65
+ overflow: auto;
66
+ background: var(--ax-white-color);
67
+ flex: 1;
68
+ height: 100%;
69
+ text: var(--ax-gray-color);
31
70
  }
32
71
 
33
- ax-drawer {
34
- display: flex !important;
35
- flex-direction: column;
36
- max-width: 95%;
37
- height: 100%;
38
- animation-duration: 300ms;
39
- transition-property: all;
40
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
41
- transition-duration: 150ms;
42
- .ax-header,
43
- .ax-footer {
44
- padding: 0.75rem;
45
- border-color: var(--ax-gray-light-color);
46
- }
47
- .ax-footer {
48
- border-top: 1px solid;
49
- border-color: var(--ax-gray-light-color);
50
- }
51
- .ax-header {
52
- border-bottom: 1px solid;
53
- border-color: var(--ax-gray-light-color);
54
- }
55
- &.ax-preload {
56
- animation-duration: 30ms;
57
- transition-property: all;
58
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
59
- transition-duration: 150ms;
60
- }
61
- .ax-visible {
62
- visibility: visible;
63
- }
64
- & > .ax-content {
65
- overflow: auto;
66
- background: var(--ax-white-color);
67
- flex: 1;
68
- height: 100%;
69
- text: var(--ax-gray-color);
70
- }
71
-
72
- &.ax-drawer-overlay {
73
- position: absolute;
72
+ &.ax-drawer-overlay {
73
+ position: absolute;
74
74
 
75
- &.ax-expanded {
76
- z-index: 2;
77
- }
75
+ &.ax-expanded {
76
+ z-index: 9999;
77
+ }
78
78
 
79
- &.ax-collapsed {
80
- z-index: 0;
81
- }
79
+ &.ax-collapsed {
80
+ z-index: 0;
81
+ }
82
82
 
83
- &.ax-drawer-start {
84
- &.ax-expanded {
85
- inset-inline-start: 0px;
86
- }
83
+ &.ax-drawer-start {
84
+ &.ax-expanded {
85
+ inset-inline-start: 0px;
86
+ }
87
87
 
88
- &.ax-collapsed {
89
- inset-inline-start: calc(-1 * var(--ax-el-width));
90
- }
91
- }
88
+ &.ax-collapsed {
89
+ inset-inline-start: calc(-1 * var(--ax-el-width));
90
+ }
91
+ }
92
92
 
93
- &.ax-drawer-end {
94
- &.ax-expanded {
95
- inset-inline-end: 0px;
96
- }
93
+ &.ax-drawer-end {
94
+ &.ax-expanded {
95
+ inset-inline-end: 0px;
96
+ }
97
97
 
98
- &.ax-collapsed {
99
- inset-inline-end: calc(-1 * var(--ax-el-width));
100
- }
101
- }
98
+ &.ax-collapsed {
99
+ inset-inline-end: calc(-1 * var(--ax-el-width));
102
100
  }
101
+ }
102
+ }
103
103
 
104
- &.ax-drawer-push {
105
- flex: 0 1 auto;
104
+ &.ax-drawer-push {
105
+ flex: 0 1 auto;
106
106
 
107
- &.ax-drawer-start {
108
- order: -9999;
107
+ &.ax-drawer-start {
108
+ order: -9999;
109
109
 
110
- &.ax-expanded {
111
- margin-inline-start: 0%;
112
- }
110
+ &.ax-expanded {
111
+ margin-inline-start: 0%;
112
+ }
113
113
 
114
- &.ax-collapsed {
115
- margin-inline-start: calc(-1 * var(--ax-el-width));
116
- }
117
- }
114
+ &.ax-collapsed {
115
+ margin-inline-start: calc(-1 * var(--ax-el-width));
116
+ }
117
+ }
118
118
 
119
- &.ax-drawer-end {
120
- order: 9999;
119
+ &.ax-drawer-end {
120
+ order: 9999;
121
121
 
122
- &.ax-expanded {
123
- margin-inline-end: 0%;
124
- }
122
+ &.ax-expanded {
123
+ margin-inline-end: 0%;
124
+ }
125
125
 
126
- &.ax-collapsed {
127
- margin-inline-end: calc(-1 * var(--ax-el-width));
128
- }
129
- }
126
+ &.ax-collapsed {
127
+ margin-inline-end: calc(-1 * var(--ax-el-width));
130
128
  }
129
+ }
131
130
  }
131
+ }
132
132
 
133
- & > .ax-content {
134
- flex: 1;
135
- height: 100%;
136
- overflow: auto;
137
- }
133
+ & > .ax-content {
134
+ flex: 1;
135
+ height: 100%;
136
+ overflow: auto;
137
+ }
138
138
  }
package/scss/style.scss CHANGED
@@ -21,7 +21,7 @@
21
21
  @use './page';
22
22
 
23
23
  // Import CSS file for external libraries
24
- @import 'node_modules/animate.css/animate.min.css';
24
+ @import 'animate.css/animate.min.css';
25
25
 
26
26
  * {
27
27
  box-sizing: border-box;