@solidexpert/csv-importer-angular 19.0.12 → 19.0.14

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.
@@ -0,0 +1,242 @@
1
+ @import '../styles/vars';
2
+ @import '../styles/colors';
3
+ @import '../styles/themes/common';
4
+ @import '../styles/themes/light';
5
+ @import '../styles/themes/dark';
6
+
7
+ .csvImporter {
8
+ position: fixed;
9
+ top: 0;
10
+ left: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ z-index: 9999;
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ }
18
+
19
+ dialog.csv-importer {
20
+ position: fixed;
21
+ top: 50%;
22
+ left: 50%;
23
+ transform: translate(-50%, -50%);
24
+ width: 90%;
25
+ max-width: 1100px;
26
+ max-height: 90vh;
27
+ border: none;
28
+ border-radius: var(--border-radius-3);
29
+ padding: 0;
30
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
31
+ overflow: hidden;
32
+
33
+ &::backdrop {
34
+ background: rgba(14, 17, 22, 0.85);
35
+ backdrop-filter: blur(4px);
36
+ }
37
+ }
38
+
39
+ div.csv-importer {
40
+ width: 100%;
41
+ max-width: 1100px;
42
+ border-radius: var(--border-radius-3);
43
+ overflow: hidden;
44
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
45
+ }
46
+
47
+ .csv-importer {
48
+ font-family: var(--font-family-1);
49
+ background-color: var(--color-background-modal);
50
+ color: var(--color-text);
51
+ font-size: var(--font-size);
52
+ font-weight: 500;
53
+ line-height: 1.5;
54
+
55
+ * {
56
+ box-sizing: border-box;
57
+ }
58
+
59
+ // Apply dark theme CSS variables
60
+ &.CSVImporter-dark {
61
+ color-scheme: dark;
62
+
63
+ --color-background: #0e1116;
64
+ --color-background-main: var(--color-background);
65
+ --color-background-modal: #171a20;
66
+ --color-background-modal-hover: #2e323c;
67
+ --color-background-modal-veil: #0e1116;
68
+ --color-background-modal-shadow: #0e1116;
69
+ --color-background-modal-shade: #1f2229;
70
+
71
+ --color-tertiary: #{$gray-900};
72
+ --color-tertiary-hover: #{$gray-800};
73
+ --color-tertiary-focus: #{$gray-800};
74
+ --color-tertiary-disabled: #{$gray-200};
75
+
76
+ --color-background-menu: #{$gray-900};
77
+ --color-background-menu-hover: #{$gray-800};
78
+
79
+ --color-text-strong: #{$gray-100};
80
+ --color-text: #{$gray-300};
81
+ --color-text-soft: #{$gray-500};
82
+
83
+ --color-text-on-tertiary: #{$base-white};
84
+ --color-text-on-tertiary-disabled: #{$gray-500};
85
+
86
+ --color-error: #{$error-800};
87
+ --color-text-error: #{$error-500};
88
+ --color-background-error: #{$error-500};
89
+ --color-background-error-hover: #{$error-600};
90
+ --color-background-error-soft: #{$error-200};
91
+
92
+ --color-input-background: #{$gray-900};
93
+ --color-input-background-soft: #{$gray-800};
94
+ --color-input-border: #{$gray-700};
95
+ --color-input-placeholder: #{$gray-700};
96
+ --color-input-text-disabled: #{$gray-700};
97
+ --color-input-disabled: #171a20;
98
+
99
+ --color-background-small-button-selected: #{$gray-700};
100
+ --color-background-small-button-hover: #{$gray-900};
101
+ --color-text-small-button: #{$base-white};
102
+
103
+ --color-button: #{$primary-50};
104
+ --color-button-hover: #{$primary-100};
105
+ --color-button-disabled: #{$primary-100};
106
+
107
+ --color-button-text: #171a20;
108
+ --color-button-text-disabled: #171a20;
109
+
110
+ --color-button-border: #{$gray-700};
111
+
112
+ --color-border: #{$gray-700};
113
+ --color-border-soft: #{$gray-800};
114
+
115
+ --color-icon: #{$gray-300};
116
+
117
+ --color-bisel: rgba(255, 255, 255, 0.05);
118
+
119
+ --color-csv-import-text: var(--color-text);
120
+
121
+ --color-stepper: #{$gray-cool-800};
122
+ --color-stepper-active: #{$success-300};
123
+ }
124
+
125
+ // Apply light theme CSS variables
126
+ &.CSVImporter-light {
127
+ color-scheme: light;
128
+
129
+ --color-background: #{$gray-50};
130
+ --color-background-main: var(--color-background);
131
+ --color-background-modal: #{$base-white};
132
+ --color-background-modal-hover: #{$gray-100};
133
+ --color-background-modal-veil: #{$gray-100};
134
+ --color-background-modal-shadow: #{$gray-200};
135
+ --color-background-modal-shade: #{$gray-50};
136
+
137
+ --color-tertiary: #{$gray-100};
138
+ --color-tertiary-hover: #{$gray-200};
139
+ --color-tertiary-focus: #{$gray-200};
140
+ --color-tertiary-disabled: #{$gray-50};
141
+
142
+ --color-background-menu: #{$base-white};
143
+ --color-background-menu-hover: #{$gray-100};
144
+
145
+ --color-text-strong: #{$gray-900};
146
+ --color-text: #{$gray-700};
147
+ --color-text-soft: #{$gray-500};
148
+
149
+ --color-text-on-tertiary: #{$gray-900};
150
+ --color-text-on-tertiary-disabled: #{$gray-400};
151
+
152
+ --color-error: #{$error-100};
153
+ --color-text-error: #{$error-600};
154
+ --color-background-error: #{$error-500};
155
+ --color-background-error-hover: #{$error-600};
156
+ --color-background-error-soft: #{$error-100};
157
+
158
+ --color-input-background: #{$base-white};
159
+ --color-input-background-soft: #{$gray-100};
160
+ --color-input-border: #{$gray-300};
161
+ --color-input-placeholder: #{$gray-400};
162
+ --color-input-text-disabled: #{$gray-400};
163
+ --color-input-disabled: #{$gray-100};
164
+
165
+ --color-background-small-button-selected: #{$gray-200};
166
+ --color-background-small-button-hover: #{$gray-100};
167
+ --color-text-small-button: #{$gray-900};
168
+
169
+ --color-button: #{$primary-600};
170
+ --color-button-hover: #{$primary-700};
171
+ --color-button-disabled: #{$primary-200};
172
+
173
+ --color-button-text: #{$base-white};
174
+ --color-button-text-disabled: #{$gray-500};
175
+
176
+ --color-button-border: #{$gray-300};
177
+
178
+ --color-border: #{$gray-200};
179
+ --color-border-soft: #{$gray-100};
180
+
181
+ --color-icon: #{$gray-500};
182
+
183
+ --color-bisel: rgba(0, 0, 0, 0.05);
184
+
185
+ --color-csv-import-text: var(--color-text);
186
+
187
+ --color-stepper: #{$gray-200};
188
+ --color-stepper-active: #{$success-500};
189
+ }
190
+ }
191
+
192
+ .wrapper {
193
+ position: relative;
194
+ display: flex;
195
+ flex-direction: column;
196
+ min-height: 500px;
197
+ max-height: 80vh;
198
+ }
199
+
200
+ .stepper-container {
201
+ border-bottom: 1px solid var(--color-border);
202
+ padding: var(--m-xs) 0;
203
+ }
204
+
205
+ .content {
206
+ flex: 1;
207
+ overflow-y: auto;
208
+ }
209
+
210
+ .status {
211
+ padding: var(--m-s) var(--m);
212
+ border-top: 1px solid var(--color-border);
213
+ }
214
+
215
+ .close-btn {
216
+ position: absolute;
217
+ top: var(--m-xs);
218
+ right: var(--m-xs);
219
+ display: flex;
220
+ align-items: center;
221
+ justify-content: center;
222
+ width: 32px;
223
+ height: 32px;
224
+ padding: 0;
225
+ background: transparent;
226
+ border: none;
227
+ border-radius: 50%;
228
+ color: var(--color-text-soft);
229
+ cursor: pointer;
230
+ transition: var(--transition-ui);
231
+ z-index: 10;
232
+
233
+ &:hover {
234
+ background: var(--color-background-modal-hover);
235
+ color: var(--color-text);
236
+ }
237
+
238
+ svg {
239
+ width: 20px;
240
+ height: 20px;
241
+ }
242
+ }
@@ -0,0 +1,78 @@
1
+ .content {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ padding: var(--m-xxl) var(--m);
7
+ text-align: center;
8
+ }
9
+
10
+ .icon {
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ width: 80px;
15
+ height: 80px;
16
+ border-radius: 50%;
17
+ margin-bottom: var(--m);
18
+
19
+ &.success {
20
+ background: rgba(18, 183, 106, 0.15);
21
+ color: var(--color-success);
22
+ }
23
+
24
+ svg {
25
+ width: 48px;
26
+ height: 48px;
27
+ }
28
+ }
29
+
30
+ .message {
31
+ font-size: var(--font-size-xl);
32
+ font-weight: 600;
33
+ color: var(--color-text);
34
+ margin-bottom: var(--m);
35
+ }
36
+
37
+ .actions {
38
+ display: flex;
39
+ gap: var(--m-s);
40
+ }
41
+
42
+ .btn {
43
+ display: inline-flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+ gap: var(--m-xxs);
47
+ padding: var(--m-xs) var(--m-s);
48
+ font-size: var(--font-size);
49
+ font-weight: 500;
50
+ border-radius: var(--border-radius-2);
51
+ border: 1px solid transparent;
52
+ cursor: pointer;
53
+ transition: var(--transition-ui);
54
+
55
+ &.primary {
56
+ background: var(--color-primary);
57
+ color: var(--color-text-on-primary);
58
+
59
+ &:hover {
60
+ background: var(--color-primary-hover);
61
+ }
62
+ }
63
+
64
+ &.secondary {
65
+ background: var(--color-secondary);
66
+ color: var(--color-text-on-secondary);
67
+
68
+ &:hover {
69
+ background: var(--color-secondary-hover);
70
+ }
71
+ }
72
+
73
+ svg {
74
+ width: 16px;
75
+ height: 16px;
76
+ }
77
+ }
78
+
@@ -0,0 +1,158 @@
1
+ .content {
2
+ padding: var(--m);
3
+ }
4
+
5
+ .table-wrapper {
6
+ max-height: 400px;
7
+ overflow-y: auto;
8
+ border: 1px solid var(--color-border);
9
+ border-radius: var(--border-radius-2);
10
+ }
11
+
12
+ .mapping-table {
13
+ width: 100%;
14
+ border-collapse: collapse;
15
+
16
+ th, td {
17
+ padding: var(--m-xs) var(--m-s);
18
+ text-align: left;
19
+ border-bottom: 1px solid var(--color-border-soft);
20
+ }
21
+
22
+ th {
23
+ position: sticky;
24
+ top: 0;
25
+ background: var(--color-input-background-soft);
26
+ color: var(--color-text-soft);
27
+ font-size: var(--font-size-xs);
28
+ text-transform: uppercase;
29
+ letter-spacing: 0.5px;
30
+ font-weight: 600;
31
+ z-index: 1;
32
+ }
33
+
34
+ tbody tr {
35
+ background: var(--color-input-background);
36
+
37
+ &:hover {
38
+ background: var(--color-background-modal-hover);
39
+ }
40
+ }
41
+
42
+ td {
43
+ vertical-align: middle;
44
+
45
+ span {
46
+ display: block;
47
+ overflow: hidden;
48
+ text-overflow: ellipsis;
49
+ white-space: nowrap;
50
+ max-width: 200px;
51
+ }
52
+
53
+ .empty {
54
+ color: var(--color-text-soft);
55
+ }
56
+ }
57
+ }
58
+
59
+ .samples {
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ gap: 4px;
63
+
64
+ small {
65
+ display: inline-block;
66
+ padding: 2px 6px;
67
+ background: var(--color-background-modal-shade);
68
+ border-radius: var(--border-radius-1);
69
+ font-size: var(--font-size-xs);
70
+ max-width: 100px;
71
+ overflow: hidden;
72
+ text-overflow: ellipsis;
73
+ white-space: nowrap;
74
+ }
75
+ }
76
+
77
+ .actions {
78
+ display: flex;
79
+ justify-content: flex-end;
80
+ align-items: center;
81
+ gap: var(--m-s);
82
+ margin-top: var(--m);
83
+ }
84
+
85
+ .error-container {
86
+ flex: 1;
87
+ display: flex;
88
+ justify-content: center;
89
+ }
90
+
91
+ .error-msg {
92
+ display: flex;
93
+ align-items: center;
94
+ gap: var(--m-xxs);
95
+ padding: var(--m-xxs) var(--m-xs);
96
+ background: var(--color-background-error-soft);
97
+ color: var(--color-text-error);
98
+ border-radius: var(--border-radius-1);
99
+ font-size: var(--font-size-s);
100
+
101
+ svg {
102
+ flex-shrink: 0;
103
+ }
104
+ }
105
+
106
+ .btn {
107
+ display: inline-flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+ gap: var(--m-xxs);
111
+ padding: var(--m-xs) var(--m-s);
112
+ font-size: var(--font-size);
113
+ font-weight: 500;
114
+ border-radius: var(--border-radius-2);
115
+ border: 1px solid transparent;
116
+ cursor: pointer;
117
+ transition: var(--transition-ui);
118
+ min-width: 100px;
119
+
120
+ &:disabled {
121
+ cursor: not-allowed;
122
+ opacity: 0.6;
123
+ }
124
+
125
+ &.primary {
126
+ background: var(--color-primary);
127
+ color: var(--color-text-on-primary);
128
+
129
+ &:hover:not(:disabled) {
130
+ background: var(--color-primary-hover);
131
+ }
132
+ }
133
+
134
+ &.secondary {
135
+ background: var(--color-secondary);
136
+ color: var(--color-text-on-secondary);
137
+
138
+ &:hover:not(:disabled) {
139
+ background: var(--color-secondary-hover);
140
+ }
141
+ }
142
+ }
143
+
144
+ .spinner {
145
+ width: 14px;
146
+ height: 14px;
147
+ border: 2px solid transparent;
148
+ border-top-color: currentColor;
149
+ border-radius: 50%;
150
+ animation: spin 0.6s linear infinite;
151
+ }
152
+
153
+ @keyframes spin {
154
+ to {
155
+ transform: rotate(360deg);
156
+ }
157
+ }
158
+
@@ -0,0 +1,170 @@
1
+ .content {
2
+ padding: var(--m);
3
+ }
4
+
5
+ .alert {
6
+ display: flex;
7
+ align-items: flex-start;
8
+ gap: var(--m-xs);
9
+ padding: var(--m-xs) var(--m-s);
10
+ margin-bottom: var(--m);
11
+ border-radius: var(--border-radius-2);
12
+ font-size: var(--font-size-s);
13
+
14
+ &.info {
15
+ background: rgba(122, 94, 248, 0.1);
16
+ color: var(--color-primary);
17
+ }
18
+
19
+ svg {
20
+ flex-shrink: 0;
21
+ margin-top: 2px;
22
+ }
23
+ }
24
+
25
+ .table-wrapper {
26
+ border: 1px solid var(--color-border);
27
+ border-radius: var(--border-radius-2);
28
+ overflow: hidden;
29
+ }
30
+
31
+ .heading-caption {
32
+ display: flex;
33
+ align-items: center;
34
+ gap: var(--m-xxs);
35
+ padding: var(--m-xs) var(--m-s);
36
+ background: var(--color-background-modal-shade);
37
+ font-weight: 600;
38
+ color: var(--color-text);
39
+ }
40
+
41
+ .tooltip-icon {
42
+ display: inline-flex;
43
+ color: var(--color-text-soft);
44
+ cursor: help;
45
+
46
+ &:hover {
47
+ color: var(--color-primary);
48
+ }
49
+ }
50
+
51
+ .table-scroll {
52
+ max-height: 350px;
53
+ overflow-y: auto;
54
+ }
55
+
56
+ .data-table {
57
+ width: 100%;
58
+ border-collapse: collapse;
59
+
60
+ tr {
61
+ cursor: pointer;
62
+ transition: var(--transition-ui);
63
+
64
+ &:nth-child(odd) {
65
+ background: var(--color-background-modal-shade);
66
+ }
67
+
68
+ &:nth-child(even) {
69
+ background: var(--color-background-modal);
70
+ }
71
+
72
+ &:hover {
73
+ background: var(--color-background-modal-hover) !important;
74
+ }
75
+
76
+ &.selected {
77
+ background: rgba(122, 94, 248, 0.15) !important;
78
+ }
79
+ }
80
+
81
+ td {
82
+ padding: var(--m-xxs) var(--m-s);
83
+ border-bottom: 1px solid var(--color-border-soft);
84
+ overflow: hidden;
85
+ text-overflow: ellipsis;
86
+ white-space: nowrap;
87
+ max-width: 200px;
88
+
89
+ span {
90
+ display: block;
91
+ overflow: hidden;
92
+ text-overflow: ellipsis;
93
+ white-space: nowrap;
94
+ }
95
+ }
96
+ }
97
+
98
+ .radio-cell {
99
+ display: flex;
100
+ align-items: center;
101
+ gap: var(--m-xs);
102
+
103
+ input[type="radio"] {
104
+ width: 16px;
105
+ height: 16px;
106
+ cursor: pointer;
107
+ accent-color: var(--color-primary);
108
+ }
109
+ }
110
+
111
+ .actions {
112
+ display: flex;
113
+ justify-content: flex-end;
114
+ gap: var(--m-s);
115
+ margin-top: var(--m);
116
+ }
117
+
118
+ .btn {
119
+ display: inline-flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ gap: var(--m-xxs);
123
+ padding: var(--m-xs) var(--m-s);
124
+ font-size: var(--font-size);
125
+ font-weight: 500;
126
+ border-radius: var(--border-radius-2);
127
+ border: 1px solid transparent;
128
+ cursor: pointer;
129
+ transition: var(--transition-ui);
130
+ min-width: 100px;
131
+
132
+ &:disabled {
133
+ cursor: not-allowed;
134
+ opacity: 0.6;
135
+ }
136
+
137
+ &.primary {
138
+ background: var(--color-primary);
139
+ color: var(--color-text-on-primary);
140
+
141
+ &:hover:not(:disabled) {
142
+ background: var(--color-primary-hover);
143
+ }
144
+ }
145
+
146
+ &.secondary {
147
+ background: var(--color-secondary);
148
+ color: var(--color-text-on-secondary);
149
+
150
+ &:hover:not(:disabled) {
151
+ background: var(--color-secondary-hover);
152
+ }
153
+ }
154
+ }
155
+
156
+ .spinner {
157
+ width: 14px;
158
+ height: 14px;
159
+ border: 2px solid transparent;
160
+ border-top-color: currentColor;
161
+ border-radius: 50%;
162
+ animation: spin 0.6s linear infinite;
163
+ }
164
+
165
+ @keyframes spin {
166
+ to {
167
+ transform: rotate(360deg);
168
+ }
169
+ }
170
+