@acontplus/ng-components 2.1.32 → 2.4.0

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/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Acontplus S.A.S.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,667 +0,0 @@
1
- .acp-autocomplete-wrapper {
2
- display: block;
3
- }
4
-
5
- .acp-autocomplete-wrapper {
6
- position: relative;
7
- width: 100%;
8
- max-width: 100%;
9
-
10
- &.acp-autocomplete-wrapper-active .acp-autocomplete-wrapper-input-wrapper {
11
- border-color: #1976d2;
12
- box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
13
- }
14
- }
15
-
16
- // Input Section Styles
17
- .acp-autocomplete-wrapper-input-container {
18
- position: relative;
19
- width: 100%;
20
- }
21
-
22
- .acp-autocomplete-wrapper-input-wrapper {
23
- position: relative;
24
- display: flex;
25
- align-items: center;
26
- background: var(--mat-sys-surface, white);
27
- border: 1px solid var(--mat-sys-outline-variant, #e0e0e0);
28
- border-radius: 8px;
29
- padding: 0 12px;
30
- transition: all 0.3s ease;
31
-
32
- &:focus-within {
33
- border-color: #1976d2;
34
- box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
35
- }
36
- }
37
-
38
- .acp-autocomplete-wrapper-search-icon {
39
- color: var(--mat-sys-on-surface-variant, #666);
40
- margin-right: 8px;
41
- font-size: 20px;
42
- }
43
-
44
- .acp-autocomplete-wrapper-input-field {
45
- flex: 1;
46
- border: none;
47
- outline: none;
48
- font-size: 16px;
49
- padding: 7px 0;
50
- background: transparent;
51
- color: var(--mat-sys-on-surface, #333);
52
-
53
- &::placeholder {
54
- color: var(--mat-sys-on-surface-variant, #999);
55
- }
56
-
57
- &:disabled {
58
- opacity: 0.6;
59
- cursor: not-allowed;
60
- }
61
- }
62
-
63
- .acp-autocomplete-wrapper-clear-button {
64
- margin-left: 8px;
65
- color: var(--mat-sys-on-surface-variant, #666);
66
- background: none;
67
- border: none;
68
- cursor: pointer;
69
- padding: 4px;
70
- border-radius: 4px;
71
- transition: all 0.2s ease;
72
-
73
- &:hover {
74
- background-color: rgba(0, 0, 0, 0.04);
75
- color: var(--mat-sys-on-surface, #333);
76
- }
77
- }
78
-
79
- .acp-autocomplete-wrapper-loading-spinner {
80
- position: absolute;
81
- right: 12px;
82
- top: 50%;
83
- transform: translateY(-50%);
84
- }
85
-
86
- // Overlay Section Styles
87
- .acp-autocomplete-wrapper-dropdown {
88
- background: var(--mat-sys-surface-container, white);
89
- border-radius: 8px;
90
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
91
- border: 1px solid var(--mat-sys-outline-variant, #e0e0e0);
92
- overflow: hidden;
93
- max-height: 500px;
94
- min-width: 300px;
95
- display: flex;
96
- flex-direction: column;
97
-
98
- &.acp-autocomplete-wrapper-active {
99
- animation: reusableAutocompleteSlideIn 0.2s ease-out;
100
- }
101
- }
102
-
103
- @keyframes reusableAutocompleteSlideIn {
104
- from {
105
- opacity: 0;
106
- transform: translateY(-8px);
107
- }
108
- to {
109
- opacity: 1;
110
- transform: translateY(0);
111
- }
112
- }
113
-
114
- .acp-autocomplete-wrapper-dropdown-content {
115
- display: flex;
116
- flex-direction: column;
117
- height: 100%;
118
- max-height: 500px;
119
- }
120
-
121
- // Section Styles
122
- .acp-autocomplete-wrapper-section {
123
- display: flex;
124
- flex-direction: column;
125
- height: 100%;
126
- min-height: 0;
127
- }
128
-
129
- .acp-autocomplete-wrapper-section-header {
130
- display: flex;
131
- justify-content: space-between;
132
- align-items: center;
133
- padding: 12px 16px 8px;
134
- border-bottom: 1px solid var(--mat-sys-outline-variant, #f0f0f0);
135
- background: var(--mat-sys-surface-variant, #fafafa);
136
- flex-shrink: 0;
137
- min-height: 56px;
138
- flex-wrap: wrap;
139
- gap: 12px;
140
- }
141
-
142
- .acp-autocomplete-wrapper-section-title {
143
- font-size: 13px;
144
- font-weight: 500;
145
- color: var(--mat-sys-on-surface-variant, #666);
146
- text-transform: uppercase;
147
- letter-spacing: 0.5px;
148
- white-space: nowrap;
149
- }
150
-
151
- .acp-autocomplete-wrapper-clear-history-button {
152
- color: var(--mat-sys-on-surface-variant, #666);
153
- background: none;
154
- border: none;
155
- cursor: pointer;
156
- padding: 4px;
157
- border-radius: 4px;
158
- transition: all 0.2s ease;
159
-
160
- &:hover {
161
- background-color: rgba(0, 0, 0, 0.04);
162
- color: var(--mat-sys-on-surface, #333);
163
- }
164
- }
165
-
166
- // Filter Section Styles
167
- .acp-autocomplete-wrapper-filter-controls {
168
- display: flex;
169
- align-items: center;
170
- gap: 16px;
171
- flex: 1;
172
- justify-content: center;
173
- }
174
-
175
- .acp-autocomplete-wrapper-filter-group {
176
- display: flex;
177
- align-items: center;
178
- gap: 6px;
179
- }
180
-
181
- .acp-autocomplete-wrapper-filter-label {
182
- font-size: 12px;
183
- color: var(--mat-sys-on-surface-variant, #666);
184
- font-weight: 500;
185
- white-space: nowrap;
186
- }
187
-
188
- .acp-autocomplete-wrapper-filter-select {
189
- padding: 4px 8px;
190
- border: 1px solid var(--mat-sys-outline, #ddd);
191
- border-radius: 4px;
192
- font-size: 12px;
193
- background: var(--mat-sys-surface, white);
194
- color: var(--mat-sys-on-surface, #333);
195
- cursor: pointer;
196
- min-width: 120px;
197
-
198
- &:focus {
199
- outline: none;
200
- border-color: #1976d2;
201
- box-shadow: 0 0 0 1px rgba(25, 118, 210, 0.2);
202
- }
203
-
204
- &:hover {
205
- border-color: #bbb;
206
- }
207
- }
208
-
209
- // Pagination Header Styles
210
- .acp-autocomplete-wrapper-pagination-header {
211
- display: flex;
212
- align-items: center;
213
- gap: 12px;
214
- margin-left: auto;
215
- }
216
-
217
- .acp-autocomplete-wrapper-pagination-info {
218
- font-size: 12px;
219
- color: var(--mat-sys-on-surface-variant, #666);
220
- white-space: nowrap;
221
- }
222
-
223
- .acp-autocomplete-wrapper-pagination-controls {
224
- display: flex;
225
- align-items: center;
226
- gap: 4px;
227
- }
228
-
229
- .acp-autocomplete-wrapper-pagination-button {
230
- min-width: 32px;
231
- height: 32px;
232
- line-height: 32px;
233
- padding: 0;
234
- color: var(--mat-sys-on-surface-variant, #666);
235
- background: none;
236
- border: 1px solid var(--mat-sys-outline, #ddd);
237
- border-radius: 4px;
238
- cursor: pointer;
239
- transition: all 0.2s ease;
240
- display: flex;
241
- align-items: center;
242
- justify-content: center;
243
-
244
- &:hover:not(:disabled) {
245
- background-color: rgba(0, 0, 0, 0.04);
246
- color: var(--mat-sys-on-surface, #333);
247
- }
248
-
249
- &:disabled {
250
- opacity: 0.5;
251
- cursor: not-allowed;
252
- }
253
-
254
- mat-icon {
255
- font-size: 18px;
256
- width: 18px;
257
- height: 18px;
258
- }
259
- }
260
-
261
- .acp-autocomplete-wrapper-page-input {
262
- width: 50px;
263
- height: 32px;
264
- border: 1px solid var(--mat-sys-outline, #ddd);
265
- border-radius: 4px;
266
- text-align: center;
267
- font-size: 12px;
268
- padding: 4px;
269
- margin: 0 4px;
270
-
271
- &:focus {
272
- outline: none;
273
- border-color: #1976d2;
274
- }
275
- }
276
-
277
- // List Styles
278
- .acp-autocomplete-wrapper-items-list {
279
- list-style: none;
280
- margin: 0;
281
- padding: 0;
282
- flex: 1;
283
- min-height: 0;
284
-
285
- &.acp-autocomplete-wrapper-scrollable-list {
286
- overflow-y: auto;
287
- }
288
- }
289
-
290
- .acp-autocomplete-wrapper-list-item {
291
- display: flex;
292
- align-items: center;
293
- border-bottom: 1px solid var(--mat-sys-outline-variant, #f5f5f5);
294
- transition: background-color 0.2s ease;
295
-
296
- &:last-child {
297
- border-bottom: none;
298
- }
299
-
300
- &:hover {
301
- background-color: var(--mat-sys-surface-variant, #f8f9fa);
302
- }
303
- }
304
-
305
- .acp-autocomplete-wrapper-item-content {
306
- flex: 1;
307
- display: flex;
308
- align-items: center;
309
- padding: 12px 16px;
310
- cursor: pointer;
311
- min-height: 48px;
312
- transition: all 0.2s ease;
313
-
314
- &.acp-autocomplete-wrapper-selected {
315
- background-color: var(--mat-sys-primary-container, #e3f2fd);
316
- color: var(--mat-sys-on-primary-container, #1976d2);
317
- }
318
- }
319
-
320
- // History Item Styles
321
- .acp-autocomplete-wrapper-history-item .acp-autocomplete-wrapper-item-content {
322
- padding-left: 12px;
323
- }
324
-
325
- .acp-autocomplete-wrapper-history-icon {
326
- color: var(--mat-sys-on-surface-variant, #999);
327
- margin-right: 12px;
328
- font-size: 18px;
329
- }
330
-
331
- .acp-autocomplete-wrapper-item-details {
332
- flex: 1;
333
- display: flex;
334
- align-items: center;
335
- }
336
-
337
- .acp-autocomplete-wrapper-remove-button {
338
- margin-right: 8px;
339
- }
340
-
341
- // Result Item Styles
342
- .acp-autocomplete-wrapper-result-item {
343
- position: relative;
344
- }
345
-
346
- .acp-autocomplete-wrapper-item-info {
347
- flex: 1;
348
- display: flex;
349
- align-items: center;
350
- }
351
-
352
- // Default Templates
353
- .acp-autocomplete-wrapper-default-item {
354
- flex: 1;
355
-
356
- .acp-autocomplete-wrapper-item-name {
357
- font-weight: 500;
358
- font-size: 14px;
359
- margin-bottom: 2px;
360
- color: var(--mat-sys-on-surface, #333);
361
- }
362
-
363
- .acp-autocomplete-wrapper-item-description {
364
- font-size: 12px;
365
- color: var(--mat-sys-on-surface-variant, #666);
366
- overflow: hidden;
367
- text-overflow: ellipsis;
368
- white-space: nowrap;
369
- }
370
- }
371
-
372
- // No Results Section
373
- .acp-autocomplete-wrapper-no-results {
374
- display: flex;
375
- flex-direction: column;
376
- align-items: center;
377
- padding: 32px 16px;
378
- text-align: center;
379
- color: var(--mat-sys-on-surface-variant, #666);
380
- }
381
-
382
- .acp-autocomplete-wrapper-no-results-icon {
383
- font-size: 48px;
384
- color: var(--mat-sys-outline, #ccc);
385
- margin-bottom: 16px;
386
- width: 45px;
387
- height: 45px;
388
- }
389
-
390
- .acp-autocomplete-wrapper-no-results-content {
391
- font-size: 14px;
392
- line-height: 1.5;
393
- }
394
-
395
- .acp-autocomplete-wrapper-default-no-results {
396
- text-align: center;
397
-
398
- p:first-child {
399
- font-weight: 500;
400
- margin-bottom: 8px;
401
- }
402
- }
403
-
404
- // Footer Section Styles
405
- .acp-autocomplete-wrapper-footer {
406
- border-top: 1px solid var(--mat-sys-outline-variant, #f0f0f0);
407
- background: var(--mat-sys-surface-variant, #fafafa);
408
- flex-shrink: 0;
409
- padding: 12px 16px;
410
- display: flex;
411
- flex-direction: column;
412
- gap: 12px;
413
- }
414
-
415
- .acp-autocomplete-wrapper-pagination-footer {
416
- display: flex;
417
- align-items: center;
418
- justify-content: space-between;
419
- width: 100%;
420
- gap: 16px;
421
- }
422
-
423
- .acp-autocomplete-wrapper-pagination-summary {
424
- font-size: 12px;
425
- color: var(--mat-sys-on-surface-variant, #666);
426
- white-space: nowrap;
427
- }
428
-
429
- .acp-autocomplete-wrapper-pagination-controls-footer {
430
- display: flex;
431
- align-items: center;
432
- gap: 8px;
433
- }
434
-
435
- .acp-autocomplete-wrapper-page-indicator {
436
- font-size: 12px;
437
- color: var(--mat-sys-on-surface-variant, #666);
438
- min-width: 40px;
439
- text-align: center;
440
- }
441
-
442
- .acp-autocomplete-wrapper-footer-actions {
443
- display: flex;
444
- gap: 8px;
445
- flex-wrap: wrap;
446
- }
447
-
448
- .acp-autocomplete-wrapper-footer-button {
449
- flex: 1;
450
- display: flex;
451
- align-items: center;
452
- justify-content: center;
453
- gap: 8px;
454
- min-height: 40px;
455
- font-size: 13px;
456
- text-transform: none;
457
- white-space: nowrap;
458
- background: none;
459
- border: 1px solid var(--mat-sys-outline, #ddd);
460
- border-radius: 4px;
461
- cursor: pointer;
462
- padding: 8px 12px;
463
- transition: all 0.2s ease;
464
-
465
- &.acp-autocomplete-wrapper-create-button {
466
- background-color: rgba(76, 175, 80, 0.04);
467
- border-color: #4caf50;
468
- color: #4caf50;
469
-
470
- &:hover {
471
- background-color: rgba(76, 175, 80, 0.08);
472
- }
473
- }
474
-
475
- &.acp-autocomplete-wrapper-search-button {
476
- background-color: rgba(255, 152, 0, 0.04);
477
- border-color: #ff9800;
478
- color: #ff9800;
479
-
480
- &:hover {
481
- background-color: rgba(255, 152, 0, 0.08);
482
- }
483
- }
484
-
485
- &.acp-autocomplete-wrapper-results-button {
486
- background-color: rgba(63, 81, 181, 0.04);
487
- border-color: #3f51b5;
488
- color: #3f51b5;
489
-
490
- &:hover {
491
- background-color: rgba(63, 81, 181, 0.08);
492
- }
493
- }
494
- }
495
-
496
- .acp-autocomplete-wrapper-button-text {
497
- display: inline;
498
- }
499
-
500
- // Scrollbar Styles
501
- .acp-autocomplete-wrapper-items-list::-webkit-scrollbar {
502
- width: 6px;
503
- }
504
-
505
- .acp-autocomplete-wrapper-items-list::-webkit-scrollbar-track {
506
- background: var(--mat-sys-surface-variant, #f1f1f1);
507
- border-radius: 3px;
508
- }
509
-
510
- .acp-autocomplete-wrapper-items-list::-webkit-scrollbar-thumb {
511
- background: var(--mat-sys-outline, #c1c1c1);
512
- border-radius: 3px;
513
- }
514
-
515
- .acp-autocomplete-wrapper-items-list::-webkit-scrollbar-thumb:hover {
516
- background: var(--mat-sys-on-surface-variant, #a8a8a8);
517
- }
518
-
519
- // Responsive Design
520
- @media (max-width: 768px) {
521
- .acp-autocomplete-wrapper-dropdown {
522
- min-width: 280px;
523
- max-height: 60vh;
524
- }
525
-
526
- .acp-autocomplete-wrapper-dropdown-content {
527
- max-height: 60vh;
528
- }
529
-
530
- .acp-autocomplete-wrapper-input-field {
531
- font-size: 16px; // Prevent zoom on iOS
532
- }
533
-
534
- .acp-autocomplete-wrapper-footer {
535
- padding: 8px 12px;
536
- }
537
-
538
- .acp-autocomplete-wrapper-footer-actions {
539
- flex-direction: column;
540
- gap: 6px;
541
- }
542
-
543
- .acp-autocomplete-wrapper-footer-button {
544
- width: 100%;
545
- min-height: 44px;
546
- }
547
-
548
- .acp-autocomplete-wrapper-pagination-footer {
549
- flex-direction: column;
550
- gap: 8px;
551
- }
552
-
553
- .acp-autocomplete-wrapper-section-header {
554
- flex-direction: column;
555
- align-items: flex-start;
556
- min-height: 80px;
557
- gap: 8px;
558
- }
559
-
560
- .acp-autocomplete-wrapper-filter-controls {
561
- width: 100%;
562
- justify-content: flex-start;
563
- flex-wrap: wrap;
564
- gap: 12px;
565
- }
566
-
567
- .acp-autocomplete-wrapper-filter-select {
568
- min-width: 100px;
569
- font-size: 11px;
570
- }
571
-
572
- .acp-autocomplete-wrapper-filter-label {
573
- font-size: 11px;
574
- }
575
-
576
- .acp-autocomplete-wrapper-pagination-header {
577
- width: 100%;
578
- justify-content: space-between;
579
- }
580
-
581
- .acp-autocomplete-wrapper-pagination-header .acp-autocomplete-wrapper-pagination-info {
582
- display: none;
583
- }
584
-
585
- .acp-autocomplete-wrapper-pagination-controls {
586
- gap: 2px;
587
- }
588
-
589
- .acp-autocomplete-wrapper-page-input {
590
- width: 40px;
591
- }
592
-
593
- .acp-autocomplete-wrapper-item-content {
594
- padding: 16px 12px;
595
- min-height: 52px;
596
- }
597
-
598
- .acp-autocomplete-wrapper-button-text {
599
- font-size: 12px;
600
- }
601
-
602
- .acp-autocomplete-wrapper-items-list.acp-autocomplete-wrapper-scrollable-list {
603
- max-height: 250px;
604
- }
605
- }
606
-
607
- @media (max-width: 480px) {
608
- .acp-autocomplete-wrapper-dropdown {
609
- min-width: 260px;
610
- max-height: 50vh;
611
- }
612
-
613
- .acp-autocomplete-wrapper-section-header {
614
- padding: 8px 12px 6px;
615
- min-height: 70px;
616
- gap: 6px;
617
- }
618
-
619
- .acp-autocomplete-wrapper-filter-controls {
620
- gap: 8px;
621
- }
622
-
623
- .acp-autocomplete-wrapper-filter-group {
624
- gap: 4px;
625
- }
626
-
627
- .acp-autocomplete-wrapper-filter-select {
628
- min-width: 90px;
629
- padding: 3px 6px;
630
- }
631
-
632
- .acp-autocomplete-wrapper-item-content {
633
- padding: 14px 12px;
634
- }
635
-
636
- .acp-autocomplete-wrapper-pagination-header {
637
- gap: 8px;
638
- }
639
-
640
- .acp-autocomplete-wrapper-pagination-button {
641
- min-width: 28px;
642
- height: 28px;
643
- }
644
-
645
- .acp-autocomplete-wrapper-page-input {
646
- width: 35px;
647
- height: 28px;
648
- }
649
-
650
- .acp-autocomplete-wrapper-items-list.acp-autocomplete-wrapper-scrollable-list {
651
- max-height: 200px;
652
- }
653
-
654
- .acp-autocomplete-wrapper-footer-actions {
655
- gap: 4px;
656
- }
657
-
658
- .acp-autocomplete-wrapper-footer-button {
659
- font-size: 12px;
660
- padding: 8px 12px;
661
- min-height: 40px;
662
- }
663
-
664
- .acp-autocomplete-wrapper-button-text {
665
- display: none;
666
- }
667
- }
File without changes
File without changes