@webilix/ngx-helper-m3 0.0.32 → 0.0.33

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/ngx-helper-m3.css CHANGED
@@ -3,6 +3,185 @@
3
3
  --ngx-helper-m3-page-group-toolbar-height: 40px;
4
4
  }
5
5
 
6
+ /* NGX HELPER VALUE LIST */
7
+ .ngx-helper-m3-box {
8
+ display: block;
9
+ direction: rtl;
10
+
11
+ position: relative;
12
+ overflow: hidden;
13
+ border-radius: 4px;
14
+ border: 1px solid var(--outline-variant);
15
+ background-color: var(--surface-container-low);
16
+ }
17
+
18
+ .ngx-helper-m3-box:not(.hide-shadow)::after {
19
+ display: block;
20
+ content: ' ';
21
+
22
+ position: absolute;
23
+ top: 0;
24
+ right: 0;
25
+ bottom: 0;
26
+ left: 0;
27
+
28
+ pointer-events: none;
29
+ box-shadow: inset 0 0 5px 0 var(--outline-variant);
30
+ }
31
+
32
+ /* NGX HELPER CARD */
33
+ .ngx-helper-m3-card {
34
+ display: block;
35
+ direction: rtl;
36
+
37
+ overflow: hidden;
38
+ position: relative;
39
+ border-radius: 8px;
40
+ border: 1px solid var(--outline-variant);
41
+
42
+ .card-header {
43
+ display: flex;
44
+ align-items: center;
45
+ column-gap: 0.5rem;
46
+
47
+ height: 55px;
48
+ padding-right: 1rem;
49
+ border-radius: 8px 8px 0 0;
50
+ border-bottom: 1px solid var(--outline-variant);
51
+ background-color: var(--surface-container-high);
52
+
53
+ mat-icon {
54
+ margin: 0;
55
+ margin-left: 0.5rem;
56
+ }
57
+
58
+ .content {
59
+ flex: 1;
60
+ width: 0;
61
+
62
+ display: flex;
63
+ flex-direction: column;
64
+ padding: 0.75rem 0;
65
+
66
+ .title {
67
+ font-size: 110%;
68
+
69
+ white-space: nowrap;
70
+ overflow: hidden;
71
+ text-overflow: ellipsis;
72
+ }
73
+ }
74
+
75
+ .buttons {
76
+ display: flex;
77
+ align-items: center;
78
+ column-gap: 0.5rem;
79
+
80
+ button {
81
+ display: flex;
82
+ justify-content: center;
83
+ column-gap: 0.25rem;
84
+
85
+ border-radius: 0;
86
+ padding: 0 0.75rem;
87
+ min-width: auto;
88
+ height: 55px;
89
+
90
+ .title {
91
+ font-size: 90%;
92
+ }
93
+
94
+ mat-icon {
95
+ padding: 0;
96
+ margin: 0;
97
+ font-size: 120%;
98
+ line-height: 1;
99
+ }
100
+ }
101
+ }
102
+
103
+ .buttons.mobile-view {
104
+ column-gap: 0;
105
+ padding-left: 0;
106
+
107
+ button {
108
+ padding: 0 0.5rem;
109
+ }
110
+ }
111
+
112
+ .option {
113
+ margin-right: 0.5rem;
114
+
115
+ button {
116
+ display: flex;
117
+ justify-content: center;
118
+ column-gap: 0.25rem;
119
+
120
+ border-radius: 0;
121
+ padding: 0 0.75rem;
122
+ min-width: auto;
123
+ height: 55px;
124
+
125
+ .title {
126
+ font-size: 90%;
127
+ }
128
+
129
+ mat-icon {
130
+ padding: 0 0 0 0.5rem;
131
+ margin: 0;
132
+ font-size: 120%;
133
+ line-height: 1;
134
+ }
135
+
136
+ mat-icon.mobile-view {
137
+ padding: 0;
138
+ }
139
+ }
140
+ }
141
+ }
142
+
143
+ .card-header.has-sub-title {
144
+ height: 65px;
145
+
146
+ .content {
147
+ .sub-title {
148
+ font-size: 85%;
149
+
150
+ white-space: nowrap;
151
+ overflow: hidden;
152
+ text-overflow: ellipsis;
153
+ }
154
+ }
155
+
156
+ .buttons {
157
+ button {
158
+ height: 65px;
159
+ }
160
+ }
161
+ }
162
+
163
+ .card-content {
164
+ display: block;
165
+ overflow: hidden;
166
+ border-radius: 0 0 8px 8px;
167
+ background-color: var(--surface-container-low);
168
+ }
169
+ }
170
+
171
+ .ngx-helper-m3-card.has-shadow::after {
172
+ display: block;
173
+ content: ' ';
174
+
175
+ position: absolute;
176
+ top: 0;
177
+ right: 0;
178
+ bottom: 0;
179
+ left: 0;
180
+
181
+ pointer-events: none;
182
+ box-shadow: inset 0 0 5px 0 var(--outline-variant);
183
+ }
184
+
6
185
  /* NGX HELPER CONFIRM */
7
186
  .ngx-helper-m3-confirm {
8
187
  display: block;
@@ -266,10 +445,10 @@
266
445
  }
267
446
  }
268
447
 
269
- /* NGX HELPER ROUTE */
270
- .ngx-helper-m3-route {
271
- display: block;
272
- z-index: 1000;
448
+ /* NGX HELPER IMAGE */
449
+ .ngx-helper-m3-image {
450
+ display: flex;
451
+ flex-direction: column;
273
452
 
274
453
  position: fixed;
275
454
  top: 0;
@@ -277,384 +456,106 @@
277
456
  bottom: 0;
278
457
  left: 0;
279
458
 
280
- .map {
281
- width: 100vw;
282
- height: 100vh;
283
- background-color: rgb(255, 255, 255);
284
- }
459
+ z-index: 10000;
285
460
 
286
- .route {
287
- position: absolute;
461
+ .background {
462
+ position: fixed;
288
463
  top: 0;
464
+ right: 0;
289
465
  bottom: 0;
290
466
  left: 0;
291
- width: 250px;
467
+ }
292
468
 
293
- direction: ltr;
294
- background-color: var(--background);
295
- box-shadow: 0 0 5px 0px var(--primary);
469
+ .close {
470
+ position: fixed;
471
+ top: 1rem;
472
+ left: 1rem;
296
473
 
474
+ background-color: var(--outline-variant);
297
475
  display: flex;
298
- flex-direction: column;
476
+ align-items: center;
477
+ justify-content: center;
478
+ z-index: 2;
299
479
 
300
- .header {
480
+ mat-icon {
301
481
  display: flex;
302
482
  align-items: center;
303
- column-gap: 1rem;
483
+ justify-content: center;
484
+ font-size: 125%;
485
+ }
486
+ }
304
487
 
305
- padding: 0.5rem 1rem;
306
- color: var(--on-primary);
307
- background-color: var(--primary);
308
- margin: 0.5rem 0.5rem 0.75rem 0.5rem;
488
+ .arrows {
489
+ position: fixed;
490
+ top: 1rem;
491
+ right: 1rem;
309
492
 
310
- .title {
311
- flex: 1;
312
- font-size: 90%;
313
- font-weight: 500;
314
- font-family: Roboto, 'Helvetica Neue', sans-serif;
315
- }
493
+ direction: rtl;
494
+ border-radius: 0.5rem;
495
+ background-color: var(--outline-variant);
316
496
 
317
- mat-icon {
318
- cursor: pointer;
319
- font-size: 110%;
320
- color: var(--on-primary);
321
- }
322
- }
497
+ display: flex;
498
+ column-gap: 1rem;
499
+ z-index: 2;
323
500
 
324
- .coordinates {
325
- flex: 1;
501
+ .count {
502
+ display: flex;
503
+ align-items: center;
326
504
 
327
- overflow: auto;
328
- max-height: calc(100vh - 1rem - 40px - 48px);
505
+ font-size: 110%;
506
+ font-weight: 600;
329
507
  }
330
508
 
331
- .footer {
509
+ button {
332
510
  display: flex;
333
511
  align-items: center;
334
-
335
- position: relative;
336
- color: var(--primary);
337
- background-color: var(--surface-container);
338
- padding: 0.75rem 1rem;
339
-
340
- .distance {
341
- flex: 1;
342
- font-size: 90%;
343
- font-weight: 500;
344
- font-family: Roboto, 'Helvetica Neue', sans-serif;
345
- }
512
+ justify-content: center;
346
513
 
347
514
  mat-icon {
348
- cursor: pointer;
349
- font-size: 130%;
350
- }
351
-
352
- mat-icon.disabled {
353
- opacity: 0.4;
515
+ display: flex;
516
+ align-items: center;
517
+ justify-content: center;
518
+ font-size: 125%;
354
519
  }
355
520
  }
356
521
  }
357
- }
358
-
359
- .ngx-helper-m3-route-coordinate {
360
- display: flex;
361
- align-items: center;
362
-
363
- padding: 0.5rem;
364
- border-top: 1px solid var(--outline-variant);
365
- background-color: var(--background);
366
-
367
- mat-icon {
368
- cursor: pointer;
369
- font-size: 130%;
370
- }
371
-
372
- mat-icon.delete {
373
- color: var(--error);
374
- }
375
-
376
- .index {
377
- width: 30px;
378
- font-size: 80%;
379
- font-family: Roboto, 'Helvetica Neue', sans-serif;
380
- }
381
522
 
382
- .value {
523
+ .image {
383
524
  flex: 1;
384
- font-size: 90%;
385
- cursor: pointer;
386
- overflow: hidden;
387
- font-family: Roboto, 'Helvetica Neue', sans-serif;
388
- }
389
- }
390
-
391
- .ngx-helper-m3-route-coordinate.selected {
392
- background-color: var(--surface-container-high);
393
- }
394
-
395
- /* NGX HELPER TOAST */
396
- .ngx-helper-m3-toast {
397
- position: fixed;
398
-
399
- display: block;
400
- direction: rtl;
401
- width: calc(100vw - 4rem);
402
- max-width: 350px;
403
- transition: top 0.35s ease-out;
404
- z-index: 5000;
405
- border-radius: 8px;
406
- cursor: pointer;
407
- box-sizing: border-box;
408
- overflow: hidden;
409
- border: 1px solid transparent;
410
-
411
- .content {
525
+ height: 0;
412
526
  display: flex;
413
- align-items: flex-start;
414
- column-gap: 0.5rem;
415
-
416
- .toast {
417
- flex: 1;
418
-
419
- display: flex;
420
- align-items: center;
421
- column-gap: 1rem;
422
-
423
- padding-right: 1rem;
424
-
425
- ul {
426
- flex: 1;
427
- list-style: none;
428
- margin: 0;
429
- padding: 1rem 0 1rem 1rem;
430
-
431
- li {
432
- margin: 0;
433
- padding: 0;
434
- font-weight: 500;
435
- line-height: 1.45;
436
- padding-top: 0.25rem;
437
- }
438
-
439
- li:first-of-type {
440
- padding-top: 0;
441
- }
442
- }
443
-
444
- mat-icon.icon {
445
- font-size: 26px;
446
- }
447
- }
448
-
449
- mat-icon.close {
450
- padding: 1rem 0 0 1rem;
451
- }
452
- }
527
+ align-items: center;
528
+ justify-content: center;
453
529
 
454
- .progress-container {
455
- width: 100%;
456
- height: 4px;
457
530
  position: relative;
458
531
 
459
- .progress-value {
460
- position: absolute;
461
- top: 0;
462
- bottom: 0;
463
- left: 0;
464
-
465
- transition: all 0.35s ease-out;
532
+ img {
533
+ max-width: calc(100vw - 4rem);
534
+ max-height: calc(100% - 4rem);
466
535
  }
467
536
  }
468
- }
469
-
470
- .ngx-helper-m3-toast.center {
471
- left: 50%;
472
- transform: translate(-50%, 0);
473
- }
474
537
 
475
- .ngx-helper-m3-toast.left {
476
- left: 1rem;
477
- }
478
-
479
- .ngx-helper-m3-toast.right {
480
- right: 1rem;
481
- }
482
-
483
- /* NGX HELPER VALUE LIST */
484
- .ngx-helper-m3-box {
485
- display: block;
486
- direction: rtl;
487
-
488
- position: relative;
489
- overflow: hidden;
490
- border-radius: 4px;
491
- border: 1px solid var(--outline-variant);
492
- background-color: var(--surface-container-low);
493
- }
494
- .ngx-helper-m3-box:not(.hide-shadow)::after {
495
- display: block;
496
- content: ' ';
497
-
498
- position: absolute;
499
- top: 0;
500
- right: 0;
501
- bottom: 0;
502
- left: 0;
503
-
504
- pointer-events: none;
505
- box-shadow: inset 0 0 5px 0 var(--outline-variant);
506
- }
507
-
508
- /* NGX HELPER CARD */
509
- .ngx-helper-m3-card {
510
- display: block;
511
- direction: rtl;
512
-
513
- overflow: hidden;
514
- position: relative;
515
- border-radius: 8px;
516
- border: 1px solid var(--outline-variant);
517
-
518
- .card-header {
538
+ .description {
519
539
  display: flex;
520
540
  align-items: center;
521
- column-gap: 0.5rem;
522
-
523
- height: 55px;
524
- padding-right: 1rem;
525
- border-radius: 8px 8px 0 0;
526
- border-bottom: 1px solid var(--outline-variant);
527
- background-color: var(--surface-container-high);
528
-
529
- mat-icon {
530
- margin: 0;
531
- margin-left: 0.5rem;
532
- }
533
-
534
- .content {
535
- flex: 1;
536
- width: 0;
537
-
538
- display: flex;
539
- flex-direction: column;
540
- padding: 0.75rem 0;
541
-
542
- .title {
543
- font-size: 110%;
544
-
545
- white-space: nowrap;
546
- overflow: hidden;
547
- text-overflow: ellipsis;
548
- }
549
- }
550
-
551
- .buttons {
552
- display: flex;
553
- align-items: center;
554
- column-gap: 0.5rem;
555
-
556
- button {
557
- display: flex;
558
- justify-content: center;
559
- column-gap: 0.25rem;
560
-
561
- border-radius: 0;
562
- padding: 0 0.75rem;
563
- min-width: auto;
564
- height: 55px;
565
-
566
- .title {
567
- font-size: 90%;
568
- }
569
-
570
- mat-icon {
571
- padding: 0;
572
- margin: 0;
573
- font-size: 120%;
574
- line-height: 1;
575
- }
576
- }
577
- }
578
-
579
- .buttons.mobile-view {
580
- column-gap: 0;
581
- padding-left: 0;
582
-
583
- button {
584
- padding: 0 0.5rem;
585
- }
586
- }
541
+ justify-content: center;
587
542
 
588
- .option {
589
- margin-right: 0.5rem;
590
-
591
- button {
592
- display: flex;
593
- justify-content: center;
594
- column-gap: 0.25rem;
595
-
596
- border-radius: 0;
597
- padding: 0 0.75rem;
598
- min-width: auto;
599
- height: 55px;
600
-
601
- .title {
602
- font-size: 90%;
603
- }
604
-
605
- mat-icon {
606
- padding: 0 0 0 0.5rem;
607
- margin: 0;
608
- font-size: 120%;
609
- line-height: 1;
610
- }
611
-
612
- mat-icon.mobile-view {
613
- padding: 0;
614
- }
615
- }
616
- }
617
- }
618
-
619
- .card-header.has-sub-title {
620
- height: 65px;
543
+ position: relative;
544
+ background-color: var(--outline-variant);
621
545
 
622
546
  .content {
623
- .sub-title {
624
- font-size: 85%;
625
-
626
- white-space: nowrap;
627
- overflow: hidden;
628
- text-overflow: ellipsis;
629
- }
630
- }
547
+ min-height: 50px;
548
+ max-height: calc(100vh / 3);
549
+ overflow: auto;
631
550
 
632
- .buttons {
633
- button {
634
- height: 65px;
635
- }
551
+ padding: 1rem 0;
552
+ direction: rtl;
553
+ width: 1200px;
554
+ max-width: calc(100vw - 4rem);
555
+ text-align: justify;
556
+ font-size: 90%;
636
557
  }
637
558
  }
638
-
639
- .card-content {
640
- display: block;
641
- overflow: hidden;
642
- border-radius: 0 0 8px 8px;
643
- background-color: var(--surface-container-low);
644
- }
645
- }
646
- .ngx-helper-m3-card.has-shadow::after {
647
- display: block;
648
- content: ' ';
649
-
650
- position: absolute;
651
- top: 0;
652
- right: 0;
653
- bottom: 0;
654
- left: 0;
655
-
656
- pointer-events: none;
657
- box-shadow: inset 0 0 5px 0 var(--outline-variant);
658
559
  }
659
560
 
660
561
  /* NGX HELPER PAGE GROUP */
@@ -833,6 +734,220 @@
833
734
  }
834
735
  }
835
736
 
737
+ /* NGX HELPER ROUTE */
738
+ .ngx-helper-m3-route {
739
+ display: block;
740
+ z-index: 1000;
741
+
742
+ position: fixed;
743
+ top: 0;
744
+ right: 0;
745
+ bottom: 0;
746
+ left: 0;
747
+
748
+ .map {
749
+ width: 100vw;
750
+ height: 100vh;
751
+ background-color: rgb(255, 255, 255);
752
+ }
753
+
754
+ .route {
755
+ position: absolute;
756
+ top: 0;
757
+ bottom: 0;
758
+ left: 0;
759
+ width: 250px;
760
+
761
+ direction: ltr;
762
+ background-color: var(--background);
763
+ box-shadow: 0 0 5px 0px var(--primary);
764
+
765
+ display: flex;
766
+ flex-direction: column;
767
+
768
+ .header {
769
+ display: flex;
770
+ align-items: center;
771
+ column-gap: 1rem;
772
+
773
+ padding: 0.5rem 1rem;
774
+ color: var(--on-primary);
775
+ background-color: var(--primary);
776
+ margin: 0.5rem 0.5rem 0.75rem 0.5rem;
777
+
778
+ .title {
779
+ flex: 1;
780
+ font-size: 90%;
781
+ font-weight: 500;
782
+ font-family: Roboto, 'Helvetica Neue', sans-serif;
783
+ }
784
+
785
+ mat-icon {
786
+ cursor: pointer;
787
+ font-size: 110%;
788
+ color: var(--on-primary);
789
+ }
790
+ }
791
+
792
+ .coordinates {
793
+ flex: 1;
794
+
795
+ overflow: auto;
796
+ max-height: calc(100vh - 1rem - 40px - 48px);
797
+ }
798
+
799
+ .footer {
800
+ display: flex;
801
+ align-items: center;
802
+
803
+ position: relative;
804
+ color: var(--primary);
805
+ background-color: var(--surface-container);
806
+ padding: 0.75rem 1rem;
807
+
808
+ .distance {
809
+ flex: 1;
810
+ font-size: 90%;
811
+ font-weight: 500;
812
+ font-family: Roboto, 'Helvetica Neue', sans-serif;
813
+ }
814
+
815
+ mat-icon {
816
+ cursor: pointer;
817
+ font-size: 130%;
818
+ }
819
+
820
+ mat-icon.disabled {
821
+ opacity: 0.4;
822
+ }
823
+ }
824
+ }
825
+ }
826
+
827
+ .ngx-helper-m3-route-coordinate {
828
+ display: flex;
829
+ align-items: center;
830
+
831
+ padding: 0.5rem;
832
+ border-top: 1px solid var(--outline-variant);
833
+ background-color: var(--background);
834
+
835
+ mat-icon {
836
+ cursor: pointer;
837
+ font-size: 130%;
838
+ }
839
+
840
+ mat-icon.delete {
841
+ color: var(--error);
842
+ }
843
+
844
+ .index {
845
+ width: 30px;
846
+ font-size: 80%;
847
+ font-family: Roboto, 'Helvetica Neue', sans-serif;
848
+ }
849
+
850
+ .value {
851
+ flex: 1;
852
+ font-size: 90%;
853
+ cursor: pointer;
854
+ overflow: hidden;
855
+ font-family: Roboto, 'Helvetica Neue', sans-serif;
856
+ }
857
+ }
858
+
859
+ .ngx-helper-m3-route-coordinate.selected {
860
+ background-color: var(--surface-container-high);
861
+ }
862
+
863
+ /* NGX HELPER TOAST */
864
+ .ngx-helper-m3-toast {
865
+ position: fixed;
866
+
867
+ display: block;
868
+ direction: rtl;
869
+ width: calc(100vw - 4rem);
870
+ max-width: 350px;
871
+ transition: top 0.35s ease-out;
872
+ z-index: 5000;
873
+ border-radius: 8px;
874
+ cursor: pointer;
875
+ box-sizing: border-box;
876
+ overflow: hidden;
877
+ border: 1px solid transparent;
878
+
879
+ .content {
880
+ display: flex;
881
+ align-items: flex-start;
882
+ column-gap: 0.5rem;
883
+
884
+ .toast {
885
+ flex: 1;
886
+
887
+ display: flex;
888
+ align-items: center;
889
+ column-gap: 1rem;
890
+
891
+ padding-right: 1rem;
892
+
893
+ ul {
894
+ flex: 1;
895
+ list-style: none;
896
+ margin: 0;
897
+ padding: 1rem 0 1rem 1rem;
898
+
899
+ li {
900
+ margin: 0;
901
+ padding: 0;
902
+ font-weight: 500;
903
+ line-height: 1.45;
904
+ padding-top: 0.25rem;
905
+ }
906
+
907
+ li:first-of-type {
908
+ padding-top: 0;
909
+ }
910
+ }
911
+
912
+ mat-icon.icon {
913
+ font-size: 26px;
914
+ }
915
+ }
916
+
917
+ mat-icon.close {
918
+ padding: 1rem 0 0 1rem;
919
+ }
920
+ }
921
+
922
+ .progress-container {
923
+ width: 100%;
924
+ height: 4px;
925
+ position: relative;
926
+
927
+ .progress-value {
928
+ position: absolute;
929
+ top: 0;
930
+ bottom: 0;
931
+ left: 0;
932
+
933
+ transition: all 0.35s ease-out;
934
+ }
935
+ }
936
+ }
937
+
938
+ .ngx-helper-m3-toast.center {
939
+ left: 50%;
940
+ transform: translate(-50%, 0);
941
+ }
942
+
943
+ .ngx-helper-m3-toast.left {
944
+ left: 1rem;
945
+ }
946
+
947
+ .ngx-helper-m3-toast.right {
948
+ right: 1rem;
949
+ }
950
+
836
951
  /* NGX HELPER VALUE BOX */
837
952
  .ngx-helper-m3-value-box {
838
953
  display: grid;
@@ -901,6 +1016,7 @@
901
1016
  background-color: var(--surface-container-low);
902
1017
  }
903
1018
  }
1019
+
904
1020
  .ngx-helper-m3-value-box:not(.hide-shadow) {
905
1021
  .value-box:not(.clear)::after {
906
1022
  display: block;