@webilix/ngx-helper-m3 0.0.32 → 0.0.34

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;
@@ -196,7 +375,7 @@
196
375
  }
197
376
  }
198
377
 
199
- /* NGX HELPER HTTP (UPLOAD / DOWNLOAD) */
378
+ /* NGX HELPER HTTP (UPLOAD / DOWNLOAD / PDF) */
200
379
  .ngx-helper-m3-http {
201
380
  position: fixed;
202
381
  left: 1rem;
@@ -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-m3-pdf {
449
+ display: flex;
450
+ align-items: center;
451
+ justify-content: center;
273
452
 
274
453
  position: fixed;
275
454
  top: 0;
@@ -277,384 +456,158 @@
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: 1000;
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;
292
467
 
293
- direction: ltr;
294
468
  background-color: var(--background);
295
- box-shadow: 0 0 5px 0px var(--primary);
469
+ opacity: 0.9;
470
+ }
296
471
 
472
+ .close {
473
+ position: fixed;
474
+ top: 1rem;
475
+ left: 1rem;
476
+
477
+ background-color: var(--outline-variant);
297
478
  display: flex;
298
- flex-direction: column;
479
+ align-items: center;
480
+ justify-content: center;
481
+ z-index: 2;
482
+ border-radius: 0;
299
483
 
300
- .header {
484
+ mat-icon {
301
485
  display: flex;
302
486
  align-items: center;
303
- column-gap: 1rem;
487
+ justify-content: center;
488
+ font-size: 125%;
489
+ }
490
+ }
304
491
 
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;
492
+ pdf-viewer {
493
+ position: relative;
494
+ display: block;
495
+ width: calc(100% - 2rem);
496
+ height: calc(100% - 2rem);
497
+ }
498
+ }
309
499
 
310
- .title {
311
- flex: 1;
312
- font-size: 90%;
313
- font-weight: 500;
314
- font-family: Roboto, 'Helvetica Neue', sans-serif;
315
- }
500
+ /* NGX HELPER IMAGE */
501
+ .ngx-helper-m3-image {
502
+ display: flex;
503
+ flex-direction: column;
316
504
 
317
- mat-icon {
318
- cursor: pointer;
319
- font-size: 110%;
320
- color: var(--on-primary);
321
- }
322
- }
505
+ position: fixed;
506
+ top: 0;
507
+ right: 0;
508
+ bottom: 0;
509
+ left: 0;
323
510
 
324
- .coordinates {
325
- flex: 1;
511
+ z-index: 10000;
326
512
 
327
- overflow: auto;
328
- max-height: calc(100vh - 1rem - 40px - 48px);
329
- }
513
+ .background {
514
+ position: fixed;
515
+ top: 0;
516
+ right: 0;
517
+ bottom: 0;
518
+ left: 0;
519
+ }
330
520
 
331
- .footer {
521
+ .close {
522
+ position: fixed;
523
+ top: 1rem;
524
+ left: 1rem;
525
+
526
+ background-color: var(--outline-variant);
527
+ display: flex;
528
+ align-items: center;
529
+ justify-content: center;
530
+ z-index: 2;
531
+
532
+ mat-icon {
332
533
  display: flex;
333
534
  align-items: center;
535
+ justify-content: center;
536
+ font-size: 125%;
537
+ }
538
+ }
334
539
 
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
- }
346
-
347
- mat-icon {
348
- cursor: pointer;
349
- font-size: 130%;
350
- }
351
-
352
- mat-icon.disabled {
353
- opacity: 0.4;
354
- }
355
- }
356
- }
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
-
382
- .value {
383
- flex: 1;
384
- font-size: 90%;
385
- cursor: pointer;
386
- overflow: hidden;
387
- font-family: Roboto, 'Helvetica Neue', sans-serif;
388
- }
389
- }
540
+ .arrows {
541
+ position: fixed;
542
+ top: 1rem;
543
+ right: 1rem;
390
544
 
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;
545
+ direction: rtl;
546
+ border-radius: 0.5rem;
547
+ background-color: var(--outline-variant);
410
548
 
411
- .content {
412
549
  display: flex;
413
- align-items: flex-start;
414
- column-gap: 0.5rem;
415
-
416
- .toast {
417
- flex: 1;
550
+ column-gap: 1rem;
551
+ z-index: 2;
418
552
 
553
+ .count {
419
554
  display: flex;
420
555
  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
556
 
439
- li:first-of-type {
440
- padding-top: 0;
441
- }
442
- }
443
-
444
- mat-icon.icon {
445
- font-size: 26px;
446
- }
557
+ font-size: 110%;
558
+ font-weight: 600;
447
559
  }
448
560
 
449
- mat-icon.close {
450
- padding: 1rem 0 0 1rem;
451
- }
452
- }
453
-
454
- .progress-container {
455
- width: 100%;
456
- height: 4px;
457
- position: relative;
458
-
459
- .progress-value {
460
- position: absolute;
461
- top: 0;
462
- bottom: 0;
463
- left: 0;
464
-
465
- transition: all 0.35s ease-out;
466
- }
467
- }
468
- }
469
-
470
- .ngx-helper-m3-toast.center {
471
- left: 50%;
472
- transform: translate(-50%, 0);
473
- }
474
-
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 {
519
- display: flex;
520
- 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 {
561
+ button {
552
562
  display: flex;
553
563
  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
- }
564
+ justify-content: center;
587
565
 
588
- .option {
589
- margin-right: 0.5rem;
590
-
591
- button {
566
+ mat-icon {
592
567
  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;
621
-
622
- .content {
623
- .sub-title {
624
- font-size: 85%;
625
-
626
- white-space: nowrap;
627
- overflow: hidden;
628
- text-overflow: ellipsis;
568
+ align-items: center;
569
+ justify-content: center;
570
+ font-size: 125%;
629
571
  }
630
572
  }
573
+ }
631
574
 
632
- .buttons {
633
- button {
634
- height: 65px;
635
- }
575
+ .image {
576
+ flex: 1;
577
+ height: 0;
578
+ display: flex;
579
+ align-items: center;
580
+ justify-content: center;
581
+
582
+ position: relative;
583
+
584
+ img {
585
+ max-width: calc(100vw - 4rem);
586
+ max-height: calc(100% - 4rem);
636
587
  }
637
588
  }
638
589
 
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: ' ';
590
+ .description {
591
+ display: flex;
592
+ align-items: center;
593
+ justify-content: center;
649
594
 
650
- position: absolute;
651
- top: 0;
652
- right: 0;
653
- bottom: 0;
654
- left: 0;
595
+ position: relative;
596
+ background-color: var(--outline-variant);
655
597
 
656
- pointer-events: none;
657
- box-shadow: inset 0 0 5px 0 var(--outline-variant);
598
+ .content {
599
+ min-height: 50px;
600
+ max-height: calc(100vh / 3);
601
+ overflow: auto;
602
+
603
+ padding: 1rem 0;
604
+ direction: rtl;
605
+ width: 1200px;
606
+ max-width: calc(100vw - 4rem);
607
+ text-align: justify;
608
+ font-size: 90%;
609
+ }
610
+ }
658
611
  }
659
612
 
660
613
  /* NGX HELPER PAGE GROUP */
@@ -833,6 +786,220 @@
833
786
  }
834
787
  }
835
788
 
789
+ /* NGX HELPER ROUTE */
790
+ .ngx-helper-m3-route {
791
+ display: block;
792
+ z-index: 1000;
793
+
794
+ position: fixed;
795
+ top: 0;
796
+ right: 0;
797
+ bottom: 0;
798
+ left: 0;
799
+
800
+ .map {
801
+ width: 100vw;
802
+ height: 100vh;
803
+ background-color: rgb(255, 255, 255);
804
+ }
805
+
806
+ .route {
807
+ position: absolute;
808
+ top: 0;
809
+ bottom: 0;
810
+ left: 0;
811
+ width: 250px;
812
+
813
+ direction: ltr;
814
+ background-color: var(--background);
815
+ box-shadow: 0 0 5px 0px var(--primary);
816
+
817
+ display: flex;
818
+ flex-direction: column;
819
+
820
+ .header {
821
+ display: flex;
822
+ align-items: center;
823
+ column-gap: 1rem;
824
+
825
+ padding: 0.5rem 1rem;
826
+ color: var(--on-primary);
827
+ background-color: var(--primary);
828
+ margin: 0.5rem 0.5rem 0.75rem 0.5rem;
829
+
830
+ .title {
831
+ flex: 1;
832
+ font-size: 90%;
833
+ font-weight: 500;
834
+ font-family: Roboto, 'Helvetica Neue', sans-serif;
835
+ }
836
+
837
+ mat-icon {
838
+ cursor: pointer;
839
+ font-size: 110%;
840
+ color: var(--on-primary);
841
+ }
842
+ }
843
+
844
+ .coordinates {
845
+ flex: 1;
846
+
847
+ overflow: auto;
848
+ max-height: calc(100vh - 1rem - 40px - 48px);
849
+ }
850
+
851
+ .footer {
852
+ display: flex;
853
+ align-items: center;
854
+
855
+ position: relative;
856
+ color: var(--primary);
857
+ background-color: var(--surface-container);
858
+ padding: 0.75rem 1rem;
859
+
860
+ .distance {
861
+ flex: 1;
862
+ font-size: 90%;
863
+ font-weight: 500;
864
+ font-family: Roboto, 'Helvetica Neue', sans-serif;
865
+ }
866
+
867
+ mat-icon {
868
+ cursor: pointer;
869
+ font-size: 130%;
870
+ }
871
+
872
+ mat-icon.disabled {
873
+ opacity: 0.4;
874
+ }
875
+ }
876
+ }
877
+ }
878
+
879
+ .ngx-helper-m3-route-coordinate {
880
+ display: flex;
881
+ align-items: center;
882
+
883
+ padding: 0.5rem;
884
+ border-top: 1px solid var(--outline-variant);
885
+ background-color: var(--background);
886
+
887
+ mat-icon {
888
+ cursor: pointer;
889
+ font-size: 130%;
890
+ }
891
+
892
+ mat-icon.delete {
893
+ color: var(--error);
894
+ }
895
+
896
+ .index {
897
+ width: 30px;
898
+ font-size: 80%;
899
+ font-family: Roboto, 'Helvetica Neue', sans-serif;
900
+ }
901
+
902
+ .value {
903
+ flex: 1;
904
+ font-size: 90%;
905
+ cursor: pointer;
906
+ overflow: hidden;
907
+ font-family: Roboto, 'Helvetica Neue', sans-serif;
908
+ }
909
+ }
910
+
911
+ .ngx-helper-m3-route-coordinate.selected {
912
+ background-color: var(--surface-container-high);
913
+ }
914
+
915
+ /* NGX HELPER TOAST */
916
+ .ngx-helper-m3-toast {
917
+ position: fixed;
918
+
919
+ display: block;
920
+ direction: rtl;
921
+ width: calc(100vw - 4rem);
922
+ max-width: 350px;
923
+ transition: top 0.35s ease-out;
924
+ z-index: 5000;
925
+ border-radius: 8px;
926
+ cursor: pointer;
927
+ box-sizing: border-box;
928
+ overflow: hidden;
929
+ border: 1px solid transparent;
930
+
931
+ .content {
932
+ display: flex;
933
+ align-items: flex-start;
934
+ column-gap: 0.5rem;
935
+
936
+ .toast {
937
+ flex: 1;
938
+
939
+ display: flex;
940
+ align-items: center;
941
+ column-gap: 1rem;
942
+
943
+ padding-right: 1rem;
944
+
945
+ ul {
946
+ flex: 1;
947
+ list-style: none;
948
+ margin: 0;
949
+ padding: 1rem 0 1rem 1rem;
950
+
951
+ li {
952
+ margin: 0;
953
+ padding: 0;
954
+ font-weight: 500;
955
+ line-height: 1.45;
956
+ padding-top: 0.25rem;
957
+ }
958
+
959
+ li:first-of-type {
960
+ padding-top: 0;
961
+ }
962
+ }
963
+
964
+ mat-icon.icon {
965
+ font-size: 26px;
966
+ }
967
+ }
968
+
969
+ mat-icon.close {
970
+ padding: 1rem 0 0 1rem;
971
+ }
972
+ }
973
+
974
+ .progress-container {
975
+ width: 100%;
976
+ height: 4px;
977
+ position: relative;
978
+
979
+ .progress-value {
980
+ position: absolute;
981
+ top: 0;
982
+ bottom: 0;
983
+ left: 0;
984
+
985
+ transition: all 0.35s ease-out;
986
+ }
987
+ }
988
+ }
989
+
990
+ .ngx-helper-m3-toast.center {
991
+ left: 50%;
992
+ transform: translate(-50%, 0);
993
+ }
994
+
995
+ .ngx-helper-m3-toast.left {
996
+ left: 1rem;
997
+ }
998
+
999
+ .ngx-helper-m3-toast.right {
1000
+ right: 1rem;
1001
+ }
1002
+
836
1003
  /* NGX HELPER VALUE BOX */
837
1004
  .ngx-helper-m3-value-box {
838
1005
  display: grid;
@@ -901,6 +1068,7 @@
901
1068
  background-color: var(--surface-container-low);
902
1069
  }
903
1070
  }
1071
+
904
1072
  .ngx-helper-m3-value-box:not(.hide-shadow) {
905
1073
  .value-box:not(.clear)::after {
906
1074
  display: block;