@softheon/armature 17.17.1 → 17.19.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.
Files changed (38) hide show
  1. package/README.md +6 -67
  2. package/ag-grid-components/package.json +3 -0
  3. package/assets/styles/{arm-theme.scss → _arm-theme.scss} +1 -0
  4. package/assets/styles/_responsive.scss +85 -0
  5. package/assets/styles/_typography.scss +180 -0
  6. package/assets/styles/_utility.scss +118 -29
  7. package/assets/styles/_variables.scss +2 -1
  8. package/assets/styles/deprecated/_button-deprecated.scss +1123 -0
  9. package/assets/styles/deprecated/_dialog-deprecated.scss +33 -0
  10. package/assets/styles/deprecated/_material-override-deprecated.scss +41 -0
  11. package/assets/styles/deprecated/_table-deprecated.scss +108 -0
  12. package/assets/styles/deprecated/_tooltip-deprecated.scss +93 -0
  13. package/assets/styles/material-override/_button-toggle-group.scss +122 -0
  14. package/assets/styles/material-override/_button.scss +266 -0
  15. package/assets/styles/material-override/_calendar.scss +85 -0
  16. package/assets/styles/material-override/_checkbox.scss +130 -0
  17. package/assets/styles/material-override/_chip.scss +254 -0
  18. package/assets/styles/material-override/_form-field.scss +137 -0
  19. package/assets/styles/material-override/_radio-button.scss +96 -0
  20. package/assets/styles/material-override/_slider.scss +102 -0
  21. package/assets/styles/material-override/_switch.scss +204 -0
  22. package/assets/styles/material-override/_tooltip.scss +2 -0
  23. package/assets/styles/sof-styles.scss +59 -3483
  24. package/esm2022/lib/armature.module.mjs +10 -10
  25. package/esm2022/lib/base-components/sof-image-checkbox/sof-image-checkbox.component.mjs +2 -2
  26. package/esm2022/lib/base-components/sof-modal/sof-modal.component.mjs +6 -3
  27. package/esm2022/lib/base-components/sof-radio-card/sof-radio-card.component.mjs +2 -2
  28. package/esm2022/lib/base-components/sof-utility-button/sof-utility-button.component.mjs +3 -3
  29. package/esm2022/lib/core/services/session.service.mjs +1 -3
  30. package/esm2022/lib/navigation/components/navigation/navigation.component.mjs +2 -2
  31. package/esm2022/lib/theming/theme.module.mjs +2 -2
  32. package/fesm2022/softheon-armature.mjs +23 -22
  33. package/fesm2022/softheon-armature.mjs.map +1 -1
  34. package/lib/armature.module.d.ts +4 -4
  35. package/lib/base-components/sof-modal/sof-modal.component.d.ts +3 -0
  36. package/lib/theming/theme.module.d.ts +1 -1
  37. package/package.json +3 -2
  38. package/assets/styles/material-overrides.scss +0 -361
package/README.md CHANGED
@@ -142,10 +142,9 @@ In your `app.module.ts` add the following to your array of providers `{ provide:
142
142
 
143
143
  ### 2.4 Styles
144
144
 
145
- In your `src/style.scss` file, import the following two scss files at the top
145
+ In your `src/style.scss` file, import the following scss file at the top
146
146
 
147
147
  ```scss
148
- @import "../node_modules/@softheon/armature/assets/styles/arm-theme.scss";
149
148
  @import "../node_modules/@softheon/armature/assets/styles/sof-styles.scss";
150
149
  ```
151
150
 
@@ -305,7 +304,9 @@ Its recommended to set the theme in an app initializer, though it can be done fr
305
304
  "nineHundred": "#130F52",
306
305
  "a100": "#908AFF",
307
306
  "a200": "#5F57FF",
308
- "a400": "#2F24FF",
307
+ "a300": "#5F57FF",
308
+ "a400": "#5F57FF",
309
+ "a500": "#2F24FF",
309
310
  "a700": "#160AFF"
310
311
  },
311
312
  "primaryContrast": {
@@ -321,71 +322,9 @@ Its recommended to set the theme in an app initializer, though it can be done fr
321
322
  "nineHundred": "#ffffff",
322
323
  "a100": "#000000",
323
324
  "a200": "#000000",
325
+ "a300": "#000000",
324
326
  "a400": "#000000",
325
- "a700": "#000000"
326
- },
327
- "accentColor": {
328
- "fifty": "#FFF7E6",
329
- "oneHundred": "#FEEAC0",
330
- "twoHundred": "#FEDD96",
331
- "threeHundred": "#FDCF6C",
332
- "fourHundred": "#FCC44D",
333
- "fiveHundred": "#FCBA2D",
334
- "sixHundred": "#FCB328",
335
- "sevenHundred": "#FBAB22",
336
- "eightHundred": "#FBA31C",
337
- "nineHundred": "#FA9411",
338
- "a100": "#FFFFFF",
339
- "a200": "#FFF9F3",
340
- "a400": "#FFE1C0",
341
- "a700": "#FFD5A7"
342
- },
343
- "accentContrast": {
344
- "fifty": "#000000",
345
- "oneHundred": "#000000",
346
- "twoHundred": "#000000",
347
- "threeHundred": "#000000",
348
- "fourHundred": "#ffffff",
349
- "fiveHundred": "#ffffff",
350
- "sixHundred": "#ffffff",
351
- "sevenHundred": "#ffffff",
352
- "eightHundred": "#ffffff",
353
- "nineHundred": "#ffffff",
354
- "a100": "#000000",
355
- "a200": "#000000",
356
- "a400": "#000000",
357
- "a700": "#000000"
358
- },
359
- "warningColor": {
360
- "fifty": "#FDE8E7",
361
- "oneHundred": "#FAC7C3",
362
- "twoHundred": "#F6A19B",
363
- "threeHundred": "#F27B73",
364
- "fourHundred": "#F05F55",
365
- "fiveHundred": "#ED4337",
366
- "sixHundred": "#EB3D31",
367
- "sevenHundred": "#E8342A",
368
- "eightHundred": "#E52C23",
369
- "nineHundred": "#E01E16",
370
- "a100": "#FFFFFF",
371
- "a200": "#FFDFDE",
372
- "a400": "#FFADAB",
373
- "a700": "#FF9491"
374
- },
375
- "warningContrast": {
376
- "fifty": "#000000",
377
- "oneHundred": "#000000",
378
- "twoHundred": "#000000",
379
- "threeHundred": "#000000",
380
- "fourHundred": "#ffffff",
381
- "fiveHundred": "#ffffff",
382
- "sixHundred": "#ffffff",
383
- "sevenHundred": "#ffffff",
384
- "eightHundred": "#ffffff",
385
- "nineHundred": "#ffffff",
386
- "a100": "#000000",
387
- "a200": "#000000",
388
- "a400": "#000000",
327
+ "a500": "#000000",
389
328
  "a700": "#000000"
390
329
  }
391
330
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/softheon-armature-ag-grid-components.mjs"
3
+ }
@@ -1,3 +1,4 @@
1
+
1
2
  :root {
2
3
  --primary-color-50-parts: #edf4ff;
3
4
  --primary-color-100-parts: #b9d4fc;
@@ -0,0 +1,85 @@
1
+ @use "./variables" as vars;
2
+
3
+ @media screen and (max-width: vars.$mat-lt-md) {
4
+ .hidden-small-screen {
5
+ display: none !important;
6
+ }
7
+ }
8
+
9
+ @media screen and (max-width: vars.$mat-lt-lg) {
10
+ .hidden-md-screen {
11
+ display: none !important;
12
+ }
13
+ }
14
+
15
+ @media screen and (min-width: vars.$mat-gt-sm) {
16
+ .visible-small-screen {
17
+ display: none !important;
18
+ }
19
+ }
20
+
21
+ @media screen and (min-width: vars.$mat-gt-md) {
22
+ .visible-md-screen {
23
+ display: none !important;
24
+ }
25
+ }
26
+
27
+ .sm-screen-op-7 {
28
+ @media only screen and (max-width: vars.$mat-lt-md) {
29
+ opacity: 0.7;
30
+ }
31
+ }
32
+
33
+ .sm-d-inline-flex {
34
+ @media only screen and (max-width: vars.$mat-lt-md) {
35
+ display: inline-flex !important;
36
+ }
37
+ }
38
+
39
+
40
+ .mobile-full-width {
41
+ @media only screen and (max-width: vars.$mat-lt-sm) {
42
+ width: 100%;
43
+ }
44
+ }
45
+
46
+ .sm-screen-full-width {
47
+ @media only screen and (max-width: vars.$mat-lt-md) {
48
+ width: 100%;
49
+ }
50
+ }
51
+
52
+ .mobile-no-card {
53
+ padding: 36px 30px !important;
54
+
55
+ @media only screen and (max-width: vars.$mat-lt-sm) {
56
+ background: transparent !important;
57
+ box-shadow: none !important;
58
+ padding: 0 !important;
59
+ }
60
+ }
61
+
62
+ .sm-screen-no-card {
63
+ padding: 36px 30px !important;
64
+
65
+ @media only screen and (max-width: vars.$mat-lt-md) {
66
+ background: transparent !important;
67
+ box-shadow: none !important;
68
+ padding: 0 !important;
69
+ }
70
+ }
71
+
72
+ .sm-screen-no-white-bg {
73
+ @media only screen and (max-width: vars.$mat-lt-md) {
74
+ background: transparent !important;
75
+ }
76
+ }
77
+
78
+ .sm-screen-card-shadow-z1 {
79
+ @media only screen and (max-width: vars.$mat-lt-md) {
80
+ box-shadow:
81
+ 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
82
+ 0px 1px 1px 0px rgba(0, 0, 0, 0.14),
83
+ 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
84
+ }
85
+ }
@@ -0,0 +1,180 @@
1
+ @use "@angular/material" as mat;
2
+ @use "./arm-theme" as theme;
3
+ @use "./variables" as vars;
4
+
5
+ body {
6
+ font-family: "Poppins", sans-serif !important;
7
+ letter-spacing: 0px;
8
+ font-size: 14px;
9
+ margin: 0 !important;
10
+ }
11
+
12
+ .merriweather {
13
+ font-family: "Merriweather", serif !important;
14
+ }
15
+
16
+ .poppins {
17
+ font-family: "Poppins", sans-serif !important;
18
+ }
19
+
20
+ .h1, [h1], h1,
21
+ .h2, [h2], h2,
22
+ .h3, [h3], h3,
23
+ .h4, [h4], h4 {
24
+ font-family: "Poppins", sans-serif;
25
+ font-style: normal;
26
+ font-weight: normal;
27
+ letter-spacing: normal;
28
+ margin: 0px;
29
+ padding: 0px;
30
+ }
31
+
32
+ .h1, [h1], h1 {
33
+ font-size: 34px;
34
+ line-height: 48px;
35
+
36
+ @media only screen and (max-width: vars.$screen-sm-end) {
37
+ font-size: 28px;
38
+ }
39
+ }
40
+
41
+ .h2, [h2], h2 {
42
+ font-size: 24px;
43
+ line-height: 33px;
44
+ }
45
+
46
+ .h3, [h3], h3 {
47
+ font-size: 20px;
48
+ line-height: 28px;
49
+ }
50
+
51
+ .h4, [h4], h4 {
52
+ font-size: 18px;
53
+ line-height: 27px;
54
+ }
55
+
56
+ .body1, .body2 {
57
+ font-family: "Poppins", sans-serif;
58
+ font-style: normal;
59
+ font-weight: normal;
60
+ letter-spacing: normal;
61
+ }
62
+
63
+ .body1 {
64
+ font-size: 16px;
65
+ line-height: 24px;
66
+ }
67
+
68
+ .body2 {
69
+ font-size: 14px;
70
+ line-height: 21px;
71
+
72
+ @media only screen and (max-width: vars.$screen-sm-end) {
73
+ font-size: 16px;
74
+ }
75
+ }
76
+
77
+ mat-form-field {
78
+ &.body1, &.body2 {
79
+ font-family: "Poppins", sans-serif;
80
+ font-style: normal;
81
+ font-weight: normal;
82
+ letter-spacing: normal;
83
+ }
84
+
85
+ &.body1 {
86
+ font-size: 16px;
87
+ line-height: 24px;
88
+ }
89
+
90
+ &.body2 {
91
+ font-size: 14px;
92
+ line-height: 21px;
93
+
94
+ @media only screen and (max-width: vars.$screen-sm-end) {
95
+ font-size: 16px;
96
+ }
97
+ }
98
+ }
99
+
100
+ .ls-half {
101
+ letter-spacing: 0.5px !important;
102
+ }
103
+
104
+ .ls-quarter {
105
+ letter-spacing: 0.25px !important;
106
+ }
107
+
108
+ .fw-500 {
109
+ font-weight: 500 !important;
110
+ }
111
+
112
+ .fw-600 {
113
+ font-weight: 600 !important;
114
+ }
115
+
116
+ .color-primary {
117
+ color: mat.get-color-from-palette(theme.$arm-primary, 500);
118
+ }
119
+
120
+ .color-accent {
121
+ color: mat.get-color-from-palette(theme.$arm-accent, 500);
122
+ }
123
+
124
+ .color-warn {
125
+ color: mat.get-color-from-palette(theme.$arm-warn, 500);
126
+ }
127
+
128
+ .color-info {
129
+ color: mat.get-color-from-palette(theme.$arm-info, 500);
130
+ }
131
+
132
+ .color-success {
133
+ color: mat.get-color-from-palette(theme.$arm-success, 500);
134
+ }
135
+
136
+ .color-error {
137
+ color: mat.get-color-from-palette(theme.$arm-error, 900);
138
+ }
139
+
140
+ .color-neutral {
141
+ color: mat.get-color-from-palette(theme.$arm-neutral, 500);
142
+ }
143
+
144
+ .left-align {
145
+ text-align: left;
146
+ }
147
+
148
+ .center-align {
149
+ text-align: center;
150
+ }
151
+
152
+ .text-left,
153
+ [text-left] {
154
+ text-align: left !important;
155
+ }
156
+
157
+ .text-center,
158
+ [text-center] {
159
+ text-align: center !important;
160
+ }
161
+
162
+ [text-high-emphasis],
163
+ .text-high-emphasis {
164
+ color: vars.$text-high-emphasis;
165
+ }
166
+
167
+ [text-medium-emphasis],
168
+ .text-medium-emphasis {
169
+ color: vars.$text-medium-emphasis;
170
+ }
171
+
172
+ [text-low-emphasis],
173
+ .text-low-emphasis {
174
+ color: vars.$text-low-emphasis;
175
+ }
176
+
177
+ [text-inverse],
178
+ .text-inverse {
179
+ color: vars.$text-inverse;
180
+ }
@@ -1,6 +1,10 @@
1
+ @use "./variables" as vars;
2
+
3
+ /** This file includes classes/attributes to control the margin & padding of elements */
4
+
1
5
  /** Margin Styling */
2
- /** M-Top */
3
6
 
7
+ /** M-Top */
4
8
  [m-t-auto],
5
9
  .m-t-auto {
6
10
  margin-top: auto !important;
@@ -61,6 +65,7 @@
61
65
  .m-t-60 {
62
66
  margin-top: 60px !important;
63
67
  }
68
+
64
69
  /** M-Right */
65
70
  .m-r-auto,
66
71
  [m-r-auto] {
@@ -90,6 +95,7 @@
90
95
  [m-r-60] {
91
96
  margin-right: 60px !important;
92
97
  }
98
+
93
99
  /** M-Bottom */
94
100
  [m-b-auto],
95
101
  .m-b-auto {
@@ -143,6 +149,7 @@
143
149
  .m-b-65 {
144
150
  margin-bottom: 65px !important;
145
151
  }
152
+
146
153
  /** M-Left */
147
154
  .m-l-auto,
148
155
  [m-l-auto] {
@@ -176,6 +183,7 @@
176
183
  [m-l-35] {
177
184
  margin-left: 35px !important;
178
185
  }
186
+
179
187
  /** M-Horizontal */
180
188
  .m-h-auto,
181
189
  [m-h-auto] {
@@ -232,6 +240,7 @@
232
240
  margin-left: 70px !important;
233
241
  margin-right: 70px !important;
234
242
  }
243
+
235
244
  /** M-Vertical */
236
245
  .m-v-auto,
237
246
  [m-v-auto] {
@@ -308,6 +317,7 @@
308
317
  margin-top: 60px !important;
309
318
  margin-bottom: 60px !important;
310
319
  }
320
+
311
321
  /** M-All */
312
322
  .m-a-auto,
313
323
  [m-a-auto] {
@@ -341,8 +351,9 @@
341
351
  [m-a-30] {
342
352
  margin: 30px !important;
343
353
  }
344
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
354
+
345
355
  /** Padding Styling */
356
+
346
357
  /** P-Top */
347
358
  [p-t-0],
348
359
  .p-t-0 {
@@ -436,6 +447,7 @@
436
447
  [p-t-60] {
437
448
  padding-top: 65px !important;
438
449
  }
450
+
439
451
  /** P-Right */
440
452
  [p-r-0],
441
453
  .p-r-0 {
@@ -469,6 +481,7 @@
469
481
  .p-r-30 {
470
482
  padding-right: 30px !important;
471
483
  }
484
+
472
485
  /** P-Bottom */
473
486
  [p-b-0],
474
487
  .p-b-0 {
@@ -530,6 +543,7 @@
530
543
  .p-b-100 {
531
544
  padding-bottom: 100px !important;
532
545
  }
546
+
533
547
  /** P-Left */
534
548
  .p-l-0,
535
549
  [p-l-0] {
@@ -567,6 +581,7 @@
567
581
  [p-l-30] {
568
582
  padding-left: 30px !important;
569
583
  }
584
+
570
585
  /** P-Horizontal */
571
586
  [p-h-0],
572
587
  .p-h-0 {
@@ -603,6 +618,7 @@
603
618
  padding-left: 20px !important;
604
619
  padding-right: 20px !important;
605
620
  }
621
+
606
622
  /** P-Vertical */
607
623
  [p-v-0],
608
624
  .p-v-0 {
@@ -679,6 +695,7 @@
679
695
  padding-top: 100px !important;
680
696
  padding-bottom: 100px !important;
681
697
  }
698
+
682
699
  /** P-All */
683
700
  [p-a-0],
684
701
  .p-a-0 {
@@ -708,37 +725,109 @@
708
725
  .p-a-40 {
709
726
  padding: 40px !important;
710
727
  }
711
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
712
- /** Input Width Styling */
713
- .input-w-300,
714
- [input-w-300] {
715
- width: 300px !important;
728
+
729
+ /** Mobile responsive */
730
+
731
+ .sm-m-b-16 {
732
+ @media only screen and (max-width: vars.$mat-lt-md) {
733
+ margin-bottom: 16px !important;
734
+ }
716
735
  }
717
- .input-w-200,
718
- [input-w-200] {
719
- width: 200px !important;
736
+
737
+ .sm-m-b-24 {
738
+ @media only screen and (max-width: vars.$mat-lt-md) {
739
+ margin-bottom: 24px !important;
740
+ }
720
741
  }
721
- .input-w-150,
722
- [input-w-150] {
723
- width: 150px !important;
742
+
743
+ .sm-m-v-24 {
744
+ @media only screen and (max-width: vars.$mat-lt-md) {
745
+ margin-top: 24px !important;
746
+ margin-bottom: 24px !important;
747
+ }
724
748
  }
725
- .input-w-120,
726
- [input-w-120] {
727
- width: 120px !important;
749
+
750
+ .sm-m-b-32 {
751
+ @media only screen and (max-width: vars.$mat-lt-md) {
752
+ margin-bottom: 32px !important;
753
+ }
728
754
  }
729
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
730
- /** Text Styling */
731
- .text-left,
732
- [text-left] {
733
- text-align: left;
755
+
756
+ .sm-m-b-64 {
757
+ @media only screen and (max-width: vars.$mat-lt-md) {
758
+ margin-bottom: 64px !important;
759
+ }
734
760
  }
735
- .text-center,
736
- [text-center] {
737
- text-align: center !important;
761
+
762
+ .sm-screen-m-a-0 {
763
+ @media screen and (max-width: vars.$mat-lt-md) {
764
+ margin: 0 !important;
765
+ }
738
766
  }
739
767
 
740
- [p-x-16],
741
- .p-x-16 {
742
- padding-left: 16px !important;
743
- padding-right: 16px !important;
744
- }
768
+ .sm-screen-m-l-0 {
769
+ @media screen and (max-width: vars.$mat-lt-md) {
770
+ margin-left: 0 !important;
771
+ }
772
+ }
773
+
774
+ .sm-screen-m-h-0 {
775
+ @media screen and (max-width: vars.$mat-lt-md) {
776
+ margin-left: 0 !important;
777
+ margin-right: 0 !important;
778
+ }
779
+ }
780
+
781
+ .sm-screen-p-a-0 {
782
+ @media screen and (max-width: vars.$mat-lt-md) {
783
+ padding: 0 !important;
784
+ }
785
+ }
786
+
787
+ .sm-screen-p-h-0 {
788
+ @media screen and (max-width: vars.$mat-lt-md) {
789
+ padding-left: 0 !important;
790
+ padding-right: 0 !important;
791
+ }
792
+ }
793
+
794
+ .md-screen-p-a-0 {
795
+ @media screen and (max-width: vars.$mat-lt-lg) {
796
+ padding: 0 !important;
797
+ }
798
+ }
799
+
800
+ .md-m-v-24 {
801
+ @media only screen and (max-width: vars.$mat-lt-lg) {
802
+ margin-top: 24px !important;
803
+ margin-bottom: 24px !important;
804
+ }
805
+ }
806
+
807
+ .mobile-no-h-margin {
808
+ @media only screen and (max-width: vars.$mat-lt-sm) {
809
+ margin-left: 0 !important;
810
+ margin-right: 0 !important;
811
+ }
812
+ }
813
+
814
+ .mobile-no-h-padding {
815
+ @media only screen and (max-width: vars.$mat-lt-sm) {
816
+ padding-left: 0 !important;
817
+ padding-right: 0 !important;
818
+ }
819
+ }
820
+
821
+ /** Generic utility classes */
822
+
823
+ body.inheritCursors * {
824
+ cursor: inherit !important;
825
+ }
826
+
827
+ .full-width {
828
+ width: 100% !important;
829
+ }
830
+
831
+ .relative {
832
+ position: relative;
833
+ }
@@ -9,6 +9,7 @@ $screen-lg-start: 1280px;
9
9
  $screen-lg-end: 1919px;
10
10
  $screen-xl-start: 1920px;
11
11
  $screen-xl-end: 5000px;
12
+
12
13
  $mat-lt-sm: 599px;
13
14
  $mat-lt-md: 959px;
14
15
  $mat-lt-lg: 1279px;
@@ -31,4 +32,4 @@ $surface-color-inverse-light: #333333;
31
32
  $surface-color-inverse-level-one-light: #424242;
32
33
  $surface-color-inverse-level-two-light: #515151;
33
34
 
34
- $sof-nav-panel-width: 328px;
35
+ $sof-nav-panel-width: 328px;