@webilix/ngx-helper-m3 0.0.31 → 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,379 +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 TOAST */
392
- .ngx-helper-m3-toast {
393
- position: fixed;
394
-
395
- display: block;
396
- direction: rtl;
397
- width: calc(100vw - 4rem);
398
- max-width: 350px;
399
- transition: top 0.35s ease-out;
400
- z-index: 5000;
401
- border-radius: 8px;
402
- cursor: pointer;
403
- box-sizing: border-box;
404
- overflow: hidden;
405
- border: 1px solid transparent;
406
-
407
- .content {
525
+ height: 0;
408
526
  display: flex;
409
- align-items: flex-start;
410
- column-gap: 0.5rem;
411
-
412
- .toast {
413
- flex: 1;
414
-
415
- display: flex;
416
- align-items: center;
417
- column-gap: 1rem;
418
-
419
- padding-right: 1rem;
420
-
421
- ul {
422
- flex: 1;
423
- list-style: none;
424
- margin: 0;
425
- padding: 1rem 0 1rem 1rem;
426
-
427
- li {
428
- margin: 0;
429
- padding: 0;
430
- font-weight: 500;
431
- line-height: 1.45;
432
- padding-top: 0.25rem;
433
- }
434
-
435
- li:first-of-type {
436
- padding-top: 0;
437
- }
438
- }
439
-
440
- mat-icon.icon {
441
- font-size: 26px;
442
- }
443
- }
444
-
445
- mat-icon.close {
446
- padding: 1rem 0 0 1rem;
447
- }
448
- }
527
+ align-items: center;
528
+ justify-content: center;
449
529
 
450
- .progress-container {
451
- width: 100%;
452
- height: 4px;
453
530
  position: relative;
454
531
 
455
- .progress-value {
456
- position: absolute;
457
- top: 0;
458
- bottom: 0;
459
- left: 0;
460
-
461
- transition: all 0.35s ease-out;
532
+ img {
533
+ max-width: calc(100vw - 4rem);
534
+ max-height: calc(100% - 4rem);
462
535
  }
463
536
  }
464
- }
465
- .ngx-helper-m3-toast.center {
466
- left: 50%;
467
- transform: translate(-50%, 0);
468
- }
469
-
470
- .ngx-helper-m3-toast.left {
471
- left: 1rem;
472
- }
473
537
 
474
- .ngx-helper-m3-toast.right {
475
- right: 1rem;
476
- }
477
-
478
- /* NGX HELPER VALUE LIST */
479
- .ngx-helper-m3-box {
480
- display: block;
481
- direction: rtl;
482
-
483
- position: relative;
484
- overflow: hidden;
485
- border-radius: 4px;
486
- border: 1px solid var(--outline-variant);
487
- background-color: var(--surface-container-low);
488
- }
489
- .ngx-helper-m3-box:not(.hide-shadow)::after {
490
- display: block;
491
- content: ' ';
492
-
493
- position: absolute;
494
- top: 0;
495
- right: 0;
496
- bottom: 0;
497
- left: 0;
498
-
499
- pointer-events: none;
500
- box-shadow: inset 0 0 5px 0 var(--outline-variant);
501
- }
502
-
503
- /* NGX HELPER CARD */
504
- .ngx-helper-m3-card {
505
- display: block;
506
- direction: rtl;
507
-
508
- overflow: hidden;
509
- position: relative;
510
- border-radius: 8px;
511
- border: 1px solid var(--outline-variant);
512
-
513
- .card-header {
538
+ .description {
514
539
  display: flex;
515
540
  align-items: center;
516
- column-gap: 0.5rem;
517
-
518
- height: 55px;
519
- padding-right: 1rem;
520
- border-radius: 8px 8px 0 0;
521
- border-bottom: 1px solid var(--outline-variant);
522
- background-color: var(--surface-container-high);
523
-
524
- mat-icon {
525
- margin: 0;
526
- margin-left: 0.5rem;
527
- }
528
-
529
- .content {
530
- flex: 1;
531
- width: 0;
532
-
533
- display: flex;
534
- flex-direction: column;
535
- padding: 0.75rem 0;
536
-
537
- .title {
538
- font-size: 110%;
539
-
540
- white-space: nowrap;
541
- overflow: hidden;
542
- text-overflow: ellipsis;
543
- }
544
- }
545
-
546
- .buttons {
547
- display: flex;
548
- align-items: center;
549
- column-gap: 0.5rem;
550
-
551
- button {
552
- display: flex;
553
- justify-content: center;
554
- column-gap: 0.25rem;
555
-
556
- border-radius: 0;
557
- padding: 0 0.75rem;
558
- min-width: auto;
559
- height: 55px;
560
-
561
- .title {
562
- font-size: 90%;
563
- }
564
-
565
- mat-icon {
566
- padding: 0;
567
- margin: 0;
568
- font-size: 120%;
569
- line-height: 1;
570
- }
571
- }
572
- }
573
-
574
- .buttons.mobile-view {
575
- column-gap: 0;
576
- padding-left: 0;
577
-
578
- button {
579
- padding: 0 0.5rem;
580
- }
581
- }
582
-
583
- .option {
584
- margin-right: 0.5rem;
541
+ justify-content: center;
585
542
 
586
- button {
587
- display: flex;
588
- justify-content: center;
589
- column-gap: 0.25rem;
590
-
591
- border-radius: 0;
592
- padding: 0 0.75rem;
593
- min-width: auto;
594
- height: 55px;
595
-
596
- .title {
597
- font-size: 90%;
598
- }
599
-
600
- mat-icon {
601
- padding: 0 0 0 0.5rem;
602
- margin: 0;
603
- font-size: 120%;
604
- line-height: 1;
605
- }
606
-
607
- mat-icon.mobile-view {
608
- padding: 0;
609
- }
610
- }
611
- }
612
- }
613
-
614
- .card-header.has-sub-title {
615
- height: 65px;
543
+ position: relative;
544
+ background-color: var(--outline-variant);
616
545
 
617
546
  .content {
618
- .sub-title {
619
- font-size: 85%;
620
-
621
- white-space: nowrap;
622
- overflow: hidden;
623
- text-overflow: ellipsis;
624
- }
625
- }
547
+ min-height: 50px;
548
+ max-height: calc(100vh / 3);
549
+ overflow: auto;
626
550
 
627
- .buttons {
628
- button {
629
- height: 65px;
630
- }
551
+ padding: 1rem 0;
552
+ direction: rtl;
553
+ width: 1200px;
554
+ max-width: calc(100vw - 4rem);
555
+ text-align: justify;
556
+ font-size: 90%;
631
557
  }
632
558
  }
633
-
634
- .card-content {
635
- display: block;
636
- overflow: hidden;
637
- border-radius: 0 0 8px 8px;
638
- background-color: var(--surface-container-low);
639
- }
640
- }
641
- .ngx-helper-m3-card.has-shadow::after {
642
- display: block;
643
- content: ' ';
644
-
645
- position: absolute;
646
- top: 0;
647
- right: 0;
648
- bottom: 0;
649
- left: 0;
650
-
651
- pointer-events: none;
652
- box-shadow: inset 0 0 5px 0 var(--outline-variant);
653
559
  }
654
560
 
655
561
  /* NGX HELPER PAGE GROUP */
@@ -828,6 +734,220 @@
828
734
  }
829
735
  }
830
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
+
831
951
  /* NGX HELPER VALUE BOX */
832
952
  .ngx-helper-m3-value-box {
833
953
  display: grid;
@@ -896,6 +1016,7 @@
896
1016
  background-color: var(--surface-container-low);
897
1017
  }
898
1018
  }
1019
+
899
1020
  .ngx-helper-m3-value-box:not(.hide-shadow) {
900
1021
  .value-box:not(.clear)::after {
901
1022
  display: block;