@stackline/angular-multiselect-dropdown 2.0.3

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,593 @@
1
+
2
+ $base-color: #0079FE;
3
+
4
+ .stackline-dropdown{
5
+ position: relative;
6
+ }
7
+ .c-btn{
8
+ display: inline-block;
9
+ background: #fff;
10
+ border: 1px solid #ccc;
11
+ border-radius: 3px;
12
+ font-size: 14px;
13
+ color: #333;
14
+ }
15
+ .c-btn.disabled{
16
+ background: #ccc;
17
+ }
18
+ .c-btn:focus{
19
+ outline: none;
20
+ }
21
+ .selected-list{
22
+ .c-list{
23
+ display: flex;
24
+ flex: 1 1 auto;
25
+ align-items: center;
26
+ flex-wrap: wrap;
27
+ min-width: 0;
28
+ float: none;
29
+ padding: 0px;
30
+ margin: 0px;
31
+ width: auto;
32
+ .c-token{
33
+ list-style: none;
34
+ padding: 0px 5px;
35
+ background: $base-color;
36
+ color: #fff;
37
+ border-radius: 2px;
38
+ margin-right: 4px;
39
+ margin-top: 2px;
40
+ float: left;
41
+ .c-label{
42
+ display: block;
43
+ float: left;
44
+ /*width: 50px;
45
+ white-space: nowrap;
46
+ text-overflow: ellipsis;
47
+ overflow: hidden;*/
48
+ }
49
+ .fa-remove{
50
+ margin-left: 1px;
51
+ font-size: 12px;
52
+ }
53
+ }
54
+ }
55
+ .fa-angle-down, .fa-angle-up{
56
+ font-size: 15pt;
57
+ position: absolute;
58
+ right: 10px;
59
+ top: 50%;
60
+ transform: translateY(-50%);
61
+ }
62
+ .countplaceholder {
63
+ display: inline-flex;
64
+ flex: 0 0 auto;
65
+ align-items: center;
66
+ justify-content: center;
67
+ align-self: center;
68
+ margin: 0 0 0 6px;
69
+ line-height: 1;
70
+ }
71
+ .c-btn{
72
+ box-sizing: border-box;
73
+ width: 100%;
74
+ box-shadow: 0px 1px 5px #959595;
75
+ padding: 10px 36px 10px 10px;
76
+ cursor: pointer;
77
+ display: flex;
78
+ align-items: center;
79
+ flex-wrap: nowrap;
80
+ position: relative;
81
+ }
82
+ }
83
+ .dropdown-list{
84
+ position: absolute;
85
+ padding-top: 14px;
86
+ width: 100%;
87
+ z-index: 9999;
88
+ ul{
89
+ padding: 0px;
90
+ list-style: none;
91
+ overflow: auto;
92
+ margin: 0px;
93
+ li{
94
+ padding: 10px 10px;
95
+ cursor: pointer;
96
+ text-align: left;
97
+ }
98
+ li:first-child{
99
+ padding-top: 10px;
100
+ }
101
+ li:last-child{
102
+ padding-bottom: 10px;
103
+ }
104
+ li:hover{
105
+ background: #f5f5f5;
106
+ }
107
+ }
108
+ ::-webkit-scrollbar{
109
+ width: 8px;
110
+ }
111
+ ::-webkit-scrollbar-thumb{
112
+ background: #cccccc;
113
+ border-radius: 5px;
114
+ }
115
+ ::-webkit-scrollbar-track{
116
+ background: #f2f2f2;
117
+ }
118
+ }
119
+ .arrow-up {
120
+ width: 0;
121
+ height: 0;
122
+ border-left: 13px solid transparent;
123
+ border-right: 13px solid transparent;
124
+ border-bottom: 15px solid #fff;
125
+ margin-left: 15px;
126
+ position: absolute;
127
+ top: 0;
128
+ }
129
+ .arrow-2{
130
+ border-bottom: 15px solid #ccc;
131
+ top: -1px;
132
+ }
133
+ .list-area{
134
+ border: 1px solid #ccc;
135
+ border-radius: 3px;
136
+ background: #fff;
137
+ margin: 0px;
138
+ box-shadow: 0px 1px 5px #959595;
139
+ }
140
+ .select-all{
141
+ padding: 10px;
142
+ border-bottom: 1px solid #ccc;
143
+ text-align: left;
144
+ }
145
+ .list-filter{
146
+ border-bottom: 1px solid #ccc;
147
+ position: relative;
148
+ input{
149
+ border: 0px;
150
+ width: 100%;
151
+ height: 35px;
152
+ padding: 0px 0px 0px 35px;
153
+ }
154
+ input:focus{
155
+ outline: none;
156
+ }
157
+ .fa{
158
+ position: absolute;
159
+ top: 10px;
160
+ left: 13px;
161
+ color: #888;
162
+ }
163
+ }
164
+ .pure-checkbox input[type="checkbox"] {
165
+ border: 0;
166
+ clip: rect(0 0 0 0);
167
+ height: 1px;
168
+ margin: -1px;
169
+ overflow: hidden;
170
+ padding: 0;
171
+ position: absolute;
172
+ width: 1px;
173
+ }
174
+ .pure-checkbox input[type="checkbox"]:focus + label:before,
175
+ .pure-checkbox input[type="checkbox"]:hover + label:before
176
+ {
177
+ border-color: $base-color;
178
+ background-color: #f2f2f2;
179
+ }
180
+ .pure-checkbox input[type="checkbox"]:active + label:before {
181
+ transition-duration: 0s;
182
+ }
183
+ .pure-checkbox input[type="checkbox"] + label{
184
+ position: relative;
185
+ padding-left: 2em;
186
+ vertical-align: middle;
187
+ user-select: none;
188
+ cursor: pointer;
189
+ margin: 0px;
190
+ color: #000;
191
+ font-weight: 300;
192
+ }
193
+ .pure-checkbox input[type="checkbox"] + label:before{
194
+ box-sizing: content-box;
195
+ content: '';
196
+ color: $base-color;
197
+ position: absolute;
198
+ top: 50%;
199
+ left: 0;
200
+ width: 14px;
201
+ height: 14px;
202
+ margin-top: -9px;
203
+ border: 2px solid $base-color;
204
+ text-align: center;
205
+ transition: all 0.4s ease;
206
+ }
207
+ .pure-checkbox input[type="checkbox"] + label:after{
208
+ box-sizing: content-box;
209
+ content: '';
210
+ background-color: $base-color;
211
+ position: absolute;
212
+ top: 50%;
213
+ left: 4px;
214
+ width: 10px;
215
+ height: 10px;
216
+ margin-top: -5px;
217
+ transform: scale(0);
218
+ transform-origin: 50%;
219
+ transition: transform 200ms ease-out;
220
+ }
221
+ .pure-checkbox input[type="checkbox"]:disabled + label:before{
222
+ border-color: #cccccc;
223
+ }
224
+ .pure-checkbox input[type="checkbox"]:disabled:focus + label:before
225
+ .pure-checkbox input[type="checkbox"]:disabled:hover + label:before{
226
+ background-color: inherit;
227
+ }
228
+ .pure-checkbox input[type="checkbox"]:disabled:checked + label:before{
229
+ background-color: #cccccc;
230
+ }
231
+ .pure-checkbox input[type="checkbox"] + label:after{
232
+ background-color: transparent;
233
+ top: 50%;
234
+ left: 4px;
235
+ width: 8px;
236
+ height: 3px;
237
+ margin-top: -4px;
238
+ border-style: solid;
239
+ border-color: #ffffff;
240
+ border-width: 0 0 3px 3px;
241
+ border-image: none;
242
+ transform: rotate(-45deg) scale(0);
243
+ }
244
+ .pure-checkbox input[type="checkbox"]:checked + label:after{
245
+ content: '';
246
+ transform: rotate(-45deg) scale(1);
247
+ transition: transform 200ms ease-out;
248
+ }
249
+ .pure-checkbox input[type="radio"]:checked + label:before{
250
+ background-color: white;
251
+ }
252
+ .pure-checkbox input[type="radio"]:checked + label:after{
253
+ transform: scale(1);
254
+ }
255
+ .pure-checkbox input[type="radio"] + label:before{
256
+ border-radius: 50%;
257
+ }
258
+ .pure-checkbox input[type="checkbox"]:checked + label:before{
259
+ background: $base-color;
260
+ }
261
+ .pure-checkbox input[type="checkbox"]:checked + label:after{
262
+ transform: rotate(-45deg) scale(1);
263
+ }
264
+ .list-message{
265
+ text-align: center;
266
+ }
267
+ .list-grp{
268
+ padding: 0 15px !important;
269
+ }
270
+ .list-grp h4 {
271
+ text-transform: capitalize;
272
+ margin: 15px 0px 0px 0px;
273
+ font-size: 14px;
274
+ font-weight: 700;
275
+ }
276
+ .list-grp > li {
277
+ padding-left: 15px !important;
278
+ }
279
+
280
+ .stackline-dropdown.theme-material {
281
+ --ms-primary: #3f51b5;
282
+ --ms-primary-soft: rgba(63, 81, 181, 0.12);
283
+ --ms-surface: #ffffff;
284
+ --ms-surface-soft: #f5f7fb;
285
+ --ms-surface-muted: #e8eaf6;
286
+ --ms-outline: #c5cae9;
287
+ --ms-outline-strong: #7986cb;
288
+ --ms-on-surface: #212121;
289
+ --ms-on-surface-muted: #5f6368;
290
+ --ms-chip-bg: #e8eaf6;
291
+ --ms-chip-text: #303f9f;
292
+ --ms-chip-remove: #303f9f;
293
+ --ms-shadow: 0 1px 2px rgba(33, 33, 33, 0.16), 0 12px 32px rgba(63, 81, 181, 0.12);
294
+ --ms-shadow-soft: 0 1px 2px rgba(33, 33, 33, 0.12), 0 4px 12px rgba(33, 33, 33, 0.08);
295
+ display: block;
296
+ width: 100%;
297
+ color: var(--ms-on-surface);
298
+ font: inherit;
299
+ }
300
+
301
+ .stackline-dropdown.theme-material .selected-list {
302
+ width: 100%;
303
+ }
304
+
305
+ .stackline-dropdown.theme-material .selected-list .c-btn {
306
+ position: relative;
307
+ display: flex;
308
+ align-items: center;
309
+ flex-wrap: nowrap;
310
+ gap: 8px;
311
+ width: 100%;
312
+ min-height: 56px;
313
+ padding: 11px 54px 11px 16px;
314
+ border-radius: 18px;
315
+ border: 1px solid var(--ms-outline);
316
+ background: var(--ms-surface);
317
+ box-shadow: var(--ms-shadow-soft);
318
+ color: var(--ms-on-surface);
319
+ cursor: pointer;
320
+ font-size: inherit;
321
+ line-height: 1.45;
322
+ transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease;
323
+ }
324
+
325
+ .stackline-dropdown.theme-material .selected-list .c-btn:hover {
326
+ border-color: var(--ms-outline-strong);
327
+ }
328
+
329
+ .stackline-dropdown.theme-material .selected-list .c-btn.disabled {
330
+ background: var(--ms-surface);
331
+ cursor: not-allowed;
332
+ opacity: .72;
333
+ }
334
+
335
+ .stackline-dropdown.theme-material .selected-list .c-list {
336
+ display: flex;
337
+ flex: 1 1 auto;
338
+ flex-wrap: wrap;
339
+ gap: 8px;
340
+ width: auto;
341
+ min-width: 0;
342
+ margin: 0;
343
+ padding: 0;
344
+ float: none;
345
+ }
346
+
347
+ .stackline-dropdown.theme-material .selected-list .c-list .c-token {
348
+ position: relative;
349
+ display: inline-block;
350
+ vertical-align: middle;
351
+ min-height: 32px;
352
+ max-width: 100%;
353
+ padding: 6px 30px 6px 12px;
354
+ background: var(--ms-chip-bg);
355
+ color: var(--ms-chip-text);
356
+ border-radius: 999px;
357
+ box-shadow: inset 0 0 0 1px rgba(103, 80, 164, 0.08);
358
+ line-height: 1.35;
359
+ white-space: normal;
360
+ overflow-wrap: anywhere;
361
+ margin: 0;
362
+ float: none;
363
+ }
364
+
365
+ .stackline-dropdown.theme-material .selected-list .c-list .c-token .c-label {
366
+ display: inline-flex;
367
+ align-items: center;
368
+ float: none;
369
+ min-width: 0;
370
+ max-width: 100%;
371
+ line-height: 1.3;
372
+ font-weight: 500;
373
+ white-space: normal;
374
+ overflow-wrap: anywhere;
375
+ }
376
+
377
+ .stackline-dropdown.theme-material .selected-list .c-list .c-token .fa-remove {
378
+ position: absolute;
379
+ right: 10px;
380
+ top: 50%;
381
+ display: inline-flex;
382
+ align-items: center;
383
+ justify-content: center;
384
+ width: 16px;
385
+ height: 16px;
386
+ margin-left: 0;
387
+ transform: translateY(-50%);
388
+ color: var(--ms-chip-remove);
389
+ cursor: pointer;
390
+ }
391
+
392
+ .stackline-dropdown.theme-material .selected-list .countplaceholder {
393
+ display: inline-flex;
394
+ flex: 0 0 auto;
395
+ align-items: center;
396
+ justify-content: center;
397
+ align-self: center;
398
+ margin: 0;
399
+ line-height: 1;
400
+ color: var(--ms-on-surface-muted);
401
+ font-size: .8rem;
402
+ font-weight: 600;
403
+ }
404
+
405
+ .stackline-dropdown.theme-material .selected-list .fa-angle-down,
406
+ .stackline-dropdown.theme-material .selected-list .fa-angle-up {
407
+ position: absolute;
408
+ top: 50%;
409
+ right: 16px;
410
+ display: inline-flex;
411
+ align-items: center;
412
+ justify-content: center;
413
+ width: 20px;
414
+ height: 20px;
415
+ transform: translateY(-50%);
416
+ color: var(--ms-on-surface-muted);
417
+ font-size: 15pt;
418
+ pointer-events: none;
419
+ }
420
+
421
+ .stackline-dropdown.theme-material .dropdown-list {
422
+ position: absolute;
423
+ width: 100%;
424
+ padding-top: 8px;
425
+ z-index: 99999;
426
+ }
427
+
428
+ .stackline-dropdown.theme-material .arrow-up,
429
+ .stackline-dropdown.theme-material .arrow-down,
430
+ .stackline-dropdown.theme-material .arrow-2 {
431
+ display: none;
432
+ }
433
+
434
+ .stackline-dropdown.theme-material .list-area {
435
+ overflow: hidden;
436
+ border-radius: 22px;
437
+ background: var(--ms-surface);
438
+ border: 1px solid var(--ms-outline);
439
+ box-shadow: var(--ms-shadow);
440
+ margin: 0;
441
+ }
442
+
443
+ .stackline-dropdown.theme-material .select-all {
444
+ padding: 10px 14px;
445
+ border-bottom: 1px solid rgba(125, 119, 134, 0.16);
446
+ background: rgba(247, 242, 250, 0.76);
447
+ text-align: left;
448
+ }
449
+
450
+ .stackline-dropdown.theme-material .list-filter {
451
+ position: relative;
452
+ display: flex;
453
+ align-items: center;
454
+ min-height: 52px;
455
+ padding-left: 48px;
456
+ padding-right: 44px;
457
+ border-bottom: 1px solid rgba(125, 119, 134, 0.16);
458
+ background: var(--ms-surface);
459
+ }
460
+
461
+ .stackline-dropdown.theme-material .list-filter input {
462
+ width: 100%;
463
+ height: 100%;
464
+ border: 0;
465
+ background: transparent;
466
+ color: var(--ms-on-surface);
467
+ font: inherit;
468
+ padding: 0;
469
+ }
470
+
471
+ .stackline-dropdown.theme-material .list-filter input::placeholder {
472
+ color: var(--ms-on-surface-muted);
473
+ }
474
+
475
+ .stackline-dropdown.theme-material .list-filter input:focus {
476
+ outline: none;
477
+ }
478
+
479
+ .stackline-dropdown.theme-material .list-filter .fa {
480
+ position: absolute;
481
+ top: 50%;
482
+ left: 16px;
483
+ display: inline-flex;
484
+ align-items: center;
485
+ justify-content: center;
486
+ width: 18px;
487
+ height: 18px;
488
+ transform: translateY(-50%);
489
+ color: var(--ms-on-surface-muted);
490
+ }
491
+
492
+ .stackline-dropdown.theme-material .dropdown-list ul {
493
+ list-style: none;
494
+ margin: 0;
495
+ padding: 8px;
496
+ overflow: auto;
497
+ }
498
+
499
+ .stackline-dropdown.theme-material .dropdown-list ul li {
500
+ align-items: center;
501
+ min-height: 0;
502
+ margin: 4px;
503
+ padding: 12px 14px;
504
+ border-radius: 14px;
505
+ cursor: pointer;
506
+ text-align: left;
507
+ line-height: 1.35;
508
+ transition: background-color .16s ease, color .16s ease;
509
+ }
510
+
511
+ .stackline-dropdown.theme-material .dropdown-list ul li:first-child {
512
+ padding-top: 12px;
513
+ }
514
+
515
+ .stackline-dropdown.theme-material .dropdown-list ul li:last-child {
516
+ padding-bottom: 12px;
517
+ }
518
+
519
+ .stackline-dropdown.theme-material .dropdown-list ul li:hover {
520
+ background: var(--ms-surface-soft);
521
+ }
522
+
523
+ .stackline-dropdown.theme-material .pure-checkbox {
524
+ position: relative;
525
+ }
526
+
527
+ .stackline-dropdown.theme-material .pure-checkbox input[type="checkbox"] + label {
528
+ position: relative;
529
+ display: block;
530
+ width: 100%;
531
+ margin: 0;
532
+ padding-left: 32px;
533
+ color: inherit;
534
+ cursor: pointer;
535
+ font-weight: 500;
536
+ user-select: none;
537
+ }
538
+
539
+ .stackline-dropdown.theme-material .pure-checkbox input[type="checkbox"] + label:before {
540
+ box-sizing: content-box;
541
+ content: '';
542
+ position: absolute;
543
+ top: 50%;
544
+ left: 0;
545
+ width: 16px;
546
+ height: 16px;
547
+ margin-top: -10px;
548
+ border: 2px solid var(--ms-outline-strong);
549
+ border-radius: 5px;
550
+ background: var(--ms-surface);
551
+ transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
552
+ }
553
+
554
+ .stackline-dropdown.theme-material .pure-checkbox input[type="checkbox"] + label:after {
555
+ box-sizing: content-box;
556
+ content: '';
557
+ position: absolute;
558
+ top: 50%;
559
+ left: 5px;
560
+ width: 8px;
561
+ height: 3px;
562
+ margin-top: -4px;
563
+ border-style: solid;
564
+ border-color: #ffffff;
565
+ border-width: 0 0 3px 3px;
566
+ border-image: none;
567
+ background: transparent;
568
+ transform: rotate(-45deg) scale(0);
569
+ transform-origin: 50%;
570
+ transition: transform .16s ease;
571
+ }
572
+
573
+ .stackline-dropdown.theme-material .pure-checkbox input[type="checkbox"]:focus + label:before,
574
+ .stackline-dropdown.theme-material .pure-checkbox input[type="checkbox"]:hover + label:before {
575
+ border-color: var(--ms-primary);
576
+ background: var(--ms-surface-soft);
577
+ }
578
+
579
+ .stackline-dropdown.theme-material .pure-checkbox input[type="checkbox"]:checked + label:before {
580
+ border-color: var(--ms-primary);
581
+ background: var(--ms-primary);
582
+ }
583
+
584
+ .stackline-dropdown.theme-material .pure-checkbox input[type="checkbox"]:checked + label:after {
585
+ transform: rotate(-45deg) scale(1);
586
+ }
587
+
588
+ .stackline-dropdown.theme-material .list-message {
589
+ margin: 0;
590
+ padding: 20px 14px;
591
+ color: var(--ms-on-surface-muted);
592
+ text-align: center;
593
+ }