@luizleon/sf.prefeiturasp.vuecomponents 0.0.19 → 0.0.21

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 (72) hide show
  1. package/package.json +14 -4
  2. package/src/common/appResult.ts +0 -22
  3. package/src/components/button/Button.d.ts +0 -42
  4. package/src/components/button/Button.vue +0 -61
  5. package/src/components/content/Content.d.ts +0 -35
  6. package/src/components/content/Content.vue +0 -41
  7. package/src/components/icon/Icon.d.ts +0 -38
  8. package/src/components/icon/Icon.vue +0 -43
  9. package/src/components/internal/HeaderAvatar.vue +0 -49
  10. package/src/components/internal/LoadingCircle.vue +0 -16
  11. package/src/components/internal/MenuIcon.vue +0 -13
  12. package/src/components/internal/ScrollToTop.vue +0 -26
  13. package/src/components/internal/ThemeToggle.ts +0 -41
  14. package/src/components/internal/ThemeToggle.vue +0 -23
  15. package/src/components/internal/cssClassBuilder.ts +0 -44
  16. package/src/components/layout/Layout.d.ts +0 -44
  17. package/src/components/layout/Layout.vue +0 -51
  18. package/src/components/navmenulink/NavMenuLink.d.ts +0 -35
  19. package/src/components/navmenulink/NavMenuLink.vue +0 -41
  20. package/src/components/tabnavigation/TabNavigation.d.ts +0 -42
  21. package/src/components/tabnavigation/TabNavigation.vue +0 -117
  22. package/src/enum/cor.ts +0 -9
  23. package/src/enum/index.ts +0 -2
  24. package/src/enum/tamanho.ts +0 -5
  25. package/src/index.ts +0 -62
  26. package/src/keycloak.d.ts +0 -671
  27. package/src/keycloak.js +0 -1731
  28. package/src/services/authService.ts +0 -68
  29. package/src/services/dialogService.ts +0 -63
  30. package/src/services/navMenuService.ts +0 -21
  31. package/src/style/componentes.scss +0 -15
  32. package/src/style/src/_animation.scss +0 -441
  33. package/src/style/src/_display.scss +0 -10
  34. package/src/style/src/_flexbox.scss +0 -85
  35. package/src/style/src/_functions.scss +0 -171
  36. package/src/style/src/_gap.scss +0 -8
  37. package/src/style/src/_grid.scss +0 -100
  38. package/src/style/src/_mixins.scss +0 -633
  39. package/src/style/src/_normalize.scss +0 -351
  40. package/src/style/src/_ripple.scss +0 -30
  41. package/src/style/src/_size.scss +0 -98
  42. package/src/style/src/_spacing.scss +0 -42
  43. package/src/style/src/_typography.scss +0 -43
  44. package/src/style/src/_variables.scss +0 -87
  45. package/src/style/src/components/_button.scss +0 -107
  46. package/src/style/src/components/_content.scss +0 -57
  47. package/src/style/src/components/_drawer.scss +0 -99
  48. package/src/style/src/components/_headerAvatar.scss +0 -22
  49. package/src/style/src/components/_icon.scss +0 -120
  50. package/src/style/src/components/_internal-icon-button.scss +0 -5
  51. package/src/style/src/components/_layout.scss +0 -183
  52. package/src/style/src/components/_loading-circle.scss +0 -24
  53. package/src/style/src/components/_navmenulink.scss +0 -31
  54. package/src/style/src/components/_scrollToTop.scss +0 -28
  55. package/src/style/src/components/_svg_icon.scss +0 -5
  56. package/src/style/src/components/_tab-navigation.scss +0 -93
  57. package/src/style/src/components/_themetoggle.scss +0 -25
  58. package/src/style/src/components/_tooltip.scss +0 -55
  59. package/src/style/src/sweetalert/_sweetalert.scss +0 -9
  60. package/src/style/src/sweetalert/scss/_animations.scss +0 -197
  61. package/src/style/src/sweetalert/scss/_body.scss +0 -45
  62. package/src/style/src/sweetalert/scss/_core.scss +0 -863
  63. package/src/style/src/sweetalert/scss/_mixins.scss +0 -16
  64. package/src/style/src/sweetalert/scss/_theming.scss +0 -8
  65. package/src/style/src/sweetalert/scss/_toasts-animations.scss +0 -83
  66. package/src/style/src/sweetalert/scss/_toasts-body.scss +0 -85
  67. package/src/style/src/sweetalert/scss/_toasts.scss +0 -203
  68. package/src/style/src/sweetalert/scss/_variables.scss +0 -265
  69. package/src/style/tema.scss +0 -169
  70. package/src/ts-helpers.d.ts +0 -57
  71. package/tsconfig.json +0 -19
  72. package/vite.config.js +0 -26
@@ -1,633 +0,0 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
- @use "sass:color";
4
- @use "sass:math";
5
- @import "./variables";
6
- @import "./functions";
7
-
8
- @mixin avatar-colors($dark: false) {
9
- $incr: 0;
10
-
11
- @each $key, $value in $colors {
12
- $bgColor: color.scale($value, $lightness: -40%);
13
- $color: color.scale($value, $lightness: 90%);
14
-
15
- @if ($dark) {
16
- $bgColor: color.scale($value, $lightness: 40%);
17
- $color: color.scale($value, $lightness: -90%);
18
- }
19
-
20
- &[data-cor="#{$incr}"] {
21
- color: $color;
22
- background-color: $bgColor;
23
-
24
- &[data-hover]:hover {
25
- box-shadow: 0 0 0 2px color.scale($bgColor, $alpha: -50%);
26
- cursor: pointer;
27
- }
28
- }
29
-
30
- $incr: $incr + 1;
31
- }
32
- }
33
-
34
- @mixin colors-hsl($colors) {
35
- @each $key, $value in $colors {
36
- $h: hue($value);
37
- $s: saturation($value);
38
- $l: lightness($value);
39
- #{$key}-color-h: $h;
40
- #{$key}-color-s: $s;
41
- #{$key}-color-l: $l;
42
- }
43
- }
44
-
45
- @mixin colors($colors, $buildShades: true) {
46
- @each $colorName, $colorValue in $colors {
47
- @if ($buildShades) {
48
- @each $shade, $color in makeColorPalette($colorValue) {
49
- $var: $colorName + "-color" + $shade;
50
- #{$var}: $color;
51
- }
52
- } @else {
53
- $var: $colorName + "-color";
54
- #{$var}: $colorValue;
55
- }
56
- }
57
- }
58
-
59
- @mixin button-colors($dark: false) {
60
- $cores: themeColors($dark);
61
- @each $colorKey, $colorValue in $cores {
62
- $colorName: str-replace($colorKey, "--");
63
- $color: #fff;
64
- @if ($dark) {
65
- $color: #000;
66
- }
67
- &[data-color="#{$colorName}"] {
68
- @media (pointer: fine) {
69
- &:focus-visible {
70
- outline: 2px solid color.scale($colorValue, $alpha: -50%);
71
- outline-offset: 1px;
72
- border-color: var(--bg-color);
73
- }
74
- }
75
- &:active {
76
- transition: 0s;
77
- background-color: color.scale($colorValue, $alpha: -70%);
78
- }
79
- &.sf-button-filled {
80
- color: $color;
81
- background-color: $colorValue;
82
- &:active {
83
- @if ($dark) {
84
- background-color: color.scale($colorValue, $alpha: -30%);
85
- } @else {
86
- background-color: color.scale(
87
- $colorValue,
88
- $lightness: -30%
89
- );
90
- }
91
- }
92
- }
93
- &.sf-button-outlined,
94
- &.sf-button-text {
95
- @if ($dark == false and $colorName == "warn") {
96
- color: color.scale($colorValue, $lightness: -40%);
97
- border-color: color.scale($colorValue, $lightness: -40%);
98
- } @else {
99
- color: $colorValue;
100
- border-color: $colorValue;
101
- }
102
- background-color: transparent;
103
- @media (pointer: fine) {
104
- &:hover,
105
- &:focus-visible {
106
- background-color: color.scale($colorValue, $alpha: -80%);
107
- }
108
- }
109
- }
110
- &.sf-button-text {
111
- border-color: transparent !important;
112
- }
113
- }
114
- }
115
- }
116
-
117
- @mixin dot-colors() {
118
- @each $colorKey, $colorValue in themeColors() {
119
- @if list.index($theme-colors-list, $colorKey) != null {
120
- $colorName: str-replace($colorKey, "--");
121
- &[data-color="#{$colorName}"] {
122
- background-color: var(#{$colorKey}-color);
123
- }
124
- }
125
- }
126
- }
127
-
128
- @mixin input-colors() {
129
- @each $colorKey, $colorValue in themeColors() {
130
- @if list.index($theme-colors-list, $colorKey) != null {
131
- $colorName: str-replace($colorKey, "--");
132
- &[data-color="#{$colorName}"] {
133
- color: var(#{$colorKey}-color);
134
- }
135
- }
136
- }
137
- }
138
-
139
- @mixin toast-colors() {
140
- @each $colorKey, $colorValue in themeColors() {
141
- @if list.index($theme-colors-list, $colorKey) != null {
142
- $colorName: str-replace($colorKey, "--");
143
- &.toast-#{$colorName} {
144
- --animate-bg-color: var(#{$colorKey}-color);
145
- }
146
- }
147
- }
148
- }
149
-
150
- @mixin theme-colors {
151
- @each $colorKey, $colorValue in themeColors() {
152
- $colorName: str-replace($colorKey, "--");
153
- $A: list.index($theme-colors-list, $colorKey) != null;
154
- $B: list.index($theme-colors-hover-list, $colorKey) != null;
155
- $C: str-replace($colorName, "surface") != $colorName;
156
- @if $A or $B {
157
- .sf-#{$colorName}-color {
158
- color: var(#{$colorKey}-color);
159
- }
160
- .sf-#{$colorName}-bgcolor {
161
- background-color: var(#{$colorKey}-color);
162
- }
163
- }
164
- @if $C {
165
- .sf-#{$colorName}-bgcolor {
166
- background-color: var(#{$colorKey}-color);
167
- }
168
- }
169
- }
170
- }
171
-
172
- @mixin sf-internal-icon-button {
173
- isolation: isolate;
174
- display: flex;
175
- align-items: center;
176
- background: none;
177
- border: none;
178
- padding: 8px;
179
- position: relative;
180
- border-radius: 50%;
181
- @media (pointer: fine) {
182
- &:hover {
183
- cursor: pointer;
184
- background-color: $icon-hover-color;
185
- }
186
- &:focus-visible {
187
- outline-offset: 0px;
188
- }
189
- }
190
-
191
- svg {
192
- height: 24px;
193
- width: 24px;
194
- fill: var(--text-color);
195
- }
196
- }
197
-
198
- /*
199
- Primeflex mixins
200
- */
201
- @mixin style-class($prop, $map, $responsive: false, $states: false) {
202
- @each $key, $val in $map {
203
- .#{$prefix}#{$key} {
204
- #{$prop}: #{$val} !important;
205
- }
206
- }
207
-
208
- @if ($states) {
209
- @each $key, $val in $map {
210
- .focus#{$separator} {
211
- &#{$prefix}#{$key}:focus {
212
- #{$prop}: #{$val} !important;
213
- }
214
- }
215
-
216
- .hover#{$separator} {
217
- &#{$prefix}#{$key}:hover {
218
- #{$prop}: #{$val} !important;
219
- }
220
- }
221
-
222
- .active#{$separator} {
223
- &#{$prefix}#{$key}:active {
224
- #{$prop}: #{$val} !important;
225
- }
226
- }
227
- }
228
- }
229
-
230
- @if ($responsive) {
231
- @each $key, $val in $breakpoints {
232
- @media screen and (min-width: #{$val}) {
233
- .#{$key + $separator} {
234
- @each $key, $val in $map {
235
- &#{$prefix}#{$key} {
236
- #{$prop}: #{$val} !important;
237
- }
238
- }
239
-
240
- @if ($states) {
241
- @each $key, $val in $map {
242
- &focus#{$separator} {
243
- &#{$prefix}#{$key}:focus {
244
- #{$prop}: #{$val} !important;
245
- }
246
- }
247
-
248
- &hover#{$separator} {
249
- &#{$prefix}#{$key}:hover {
250
- #{$prop}: #{$val} !important;
251
- }
252
- }
253
-
254
- &active#{$separator} {
255
- &#{$prefix}#{$key}:active {
256
- #{$prop}: #{$val} !important;
257
- }
258
- }
259
- }
260
- }
261
- }
262
- }
263
- }
264
- }
265
- }
266
-
267
- @mixin color-class($name, $prop, $colors, $shades) {
268
- @each $color in $colors {
269
- .#{$prefix}#{$name}#{$color} {
270
- @each $shade in $shades {
271
- &-#{$shade} {
272
- #{$prop}: var(--#{$color}-#{$shade}) !important;
273
- }
274
- }
275
- }
276
-
277
- .focus#{$separator} {
278
- &#{$prefix}#{$name}#{$color} {
279
- @each $shade in $shades {
280
- &-#{$shade}:focus {
281
- #{$prop}: var(--#{$color}-#{$shade}) !important;
282
- }
283
- }
284
- }
285
- }
286
-
287
- .hover#{$separator} {
288
- &#{$prefix}#{$name}#{$color} {
289
- @each $shade in $shades {
290
- &-#{$shade}:hover {
291
- #{$prop}: var(--#{$color}-#{$shade}) !important;
292
- }
293
- }
294
- }
295
- }
296
-
297
- .active#{$separator} {
298
- &#{$prefix}#{$name}#{$color} {
299
- @each $shade in $shades {
300
- &-#{$shade}:active {
301
- #{$prop}: var(--#{$color}-#{$shade}) !important;
302
- }
303
- }
304
- }
305
- }
306
- }
307
- }
308
-
309
- @mixin surface-class($name, $prop, $shades) {
310
- @each $shade in $shades {
311
- .#{$prefix}#{$name}-#{$shade} {
312
- #{$prop}: var(--surface-#{$shade}) !important;
313
- }
314
- }
315
-
316
- @each $shade in $shades {
317
- .focus#{$separator} {
318
- &#{$prefix}#{$name}-#{$shade}:focus {
319
- #{$prop}: var(--surface-#{$shade}) !important;
320
- }
321
- }
322
-
323
- .hover#{$separator} {
324
- &#{$prefix}#{$name}-#{$shade}:hover {
325
- #{$prop}: var(--surface-#{$shade}) !important;
326
- }
327
- }
328
-
329
- .active#{$separator} {
330
- &#{$prefix}#{$name}-#{$shade}:active {
331
- #{$prop}: var(--surface-#{$shade}) !important;
332
- }
333
- }
334
- }
335
- }
336
-
337
- @mixin border-class($name, $directions, $scales) {
338
- @each $dir, $prop in $directions {
339
- @for $i from 0 through length($scales) - 1 {
340
- $borderValue: if($i == 0, "none", $i);
341
- $className: #{$name}-#{$dir}-#{$borderValue};
342
- @if ($dir == "") {
343
- $className: #{$name}-#{$borderValue};
344
- }
345
-
346
- .#{$prefix}#{$className} {
347
- @each $propName in $prop {
348
- #{$propName}-width: nth($scales, $i + 1) !important;
349
- #{$propName}-style: if($i == 0, none, solid);
350
- }
351
- }
352
- }
353
- }
354
-
355
- @each $key, $val in $breakpoints {
356
- @media screen and (min-width: #{$val}) {
357
- .#{$key + $separator} {
358
- @each $dir, $prop in $directions {
359
- @for $i from 0 through length($scales) - 1 {
360
- $borderValue: if($i == 0, "none", $i);
361
- $className: #{$name}-#{$dir}-#{$borderValue};
362
- @if ($dir == "") {
363
- $className: #{$name}-#{$borderValue};
364
- }
365
-
366
- &#{$prefix}#{$className} {
367
- @each $propName in $prop {
368
- #{$propName}-width: nth($scales, $i + 1) !important;
369
- #{$propName}-style: if($i == 0, none, solid);
370
- }
371
- }
372
- }
373
- }
374
- }
375
- }
376
- }
377
- }
378
-
379
- @mixin border-radius-class($map, $directions) {
380
- @each $key, $val in $map {
381
- $prefixName: $key;
382
- $suffixName: "";
383
- $index: str-index($key, "border-round");
384
-
385
- @if $index != null {
386
- $prefixName: "border-round";
387
- $suffixName: str-slice(
388
- $key,
389
- str-length("border-round") + 1,
390
- str-length($key)
391
- );
392
- }
393
-
394
- @each $dir, $prop in $directions {
395
- .#{$prefix}#{$prefixName}-#{$dir}#{$suffixName} {
396
- @each $propName in $prop {
397
- #{$propName}: #{$val} !important;
398
- }
399
- }
400
- }
401
- }
402
-
403
- @each $key, $val in $breakpoints {
404
- @media screen and (min-width: #{$val}) {
405
- .#{$key + $separator} {
406
- @each $key, $val in $map {
407
- $prefixName: $key;
408
- $suffixName: "";
409
- $index: str-index($key, "border-round");
410
-
411
- @if $index != null {
412
- $prefixName: "border-round";
413
- $suffixName: str-slice(
414
- $key,
415
- str-length("border-round") + 1,
416
- str-length($key)
417
- );
418
- }
419
-
420
- @each $dir, $prop in $directions {
421
- &#{$prefix}#{$prefixName}-#{$dir}#{$suffixName} {
422
- @each $propName in $prop {
423
- #{$propName}: #{$val} !important;
424
- }
425
- }
426
- }
427
- }
428
- }
429
- }
430
- }
431
- }
432
-
433
- @mixin rgba-color-class($name, $prop, $colors, $shades) {
434
- @each $colorName, $colorValue in $colors {
435
- .#{$prefix}#{$name}#{$colorName}-alpha {
436
- @each $shade in $shades {
437
- &-#{$shade} {
438
- #{$prop}: #{"rgba(#{$colorValue},#{math.div($shade, 100)})"} !important;
439
- }
440
- }
441
- }
442
-
443
- .hover#{$separator} {
444
- &#{$prefix}#{$name}#{$colorName}-alpha {
445
- @each $shade in $shades {
446
- &-#{$shade}:hover {
447
- #{$prop}: #{"rgba(#{$colorValue},#{math.div($shade, 100)})"} !important;
448
- }
449
- }
450
- }
451
- }
452
-
453
- .focus#{$separator} {
454
- &#{$prefix}#{$name}#{$colorName}-alpha {
455
- @each $shade in $shades {
456
- &-#{$shade}:focus {
457
- #{$prop}: #{"rgba(#{$colorValue},#{math.div($shade, 100)})"} !important;
458
- }
459
- }
460
- }
461
- }
462
-
463
- .active#{$separator} {
464
- &#{$prefix}#{$name}#{$colorName}-alpha {
465
- @each $shade in $shades {
466
- &-#{$shade}:active {
467
- #{$prop}: #{"rgba(#{$colorValue},#{math.div($shade, 100)})"} !important;
468
- }
469
- }
470
- }
471
- }
472
- }
473
- }
474
-
475
- @mixin spacing-class(
476
- $inPrefix,
477
- $map,
478
- $scales,
479
- $responsive: true,
480
- $auto: false,
481
- $negative: false
482
- ) {
483
- $inPrefix: $prefix + $inPrefix;
484
-
485
- @each $name, $prop in $map {
486
- @for $i from 0 through length($scales) - 1 {
487
- .#{$inPrefix}#{$name}-#{$i} {
488
- @each $propName in $prop {
489
- #{$propName}: $spacer * nth($scales, $i + 1) !important;
490
- }
491
- }
492
- }
493
-
494
- @if ($negative) {
495
- @for $i from 1 through length($scales) - 1 {
496
- .-#{$inPrefix}#{$name}-#{$i} {
497
- @each $propName in $prop {
498
- #{$propName}: -1 *
499
- $spacer *
500
- nth($scales, $i + 1) !important;
501
- }
502
- }
503
- }
504
- }
505
-
506
- @if ($auto) {
507
- .#{$inPrefix}#{$name}-auto {
508
- @each $propName in $prop {
509
- #{$propName}: auto !important;
510
- }
511
- }
512
- }
513
- }
514
-
515
- @if ($responsive) {
516
- @each $key, $val in $breakpoints {
517
- @media screen and (min-width: #{$val}) {
518
- @each $name, $prop in $map {
519
- @for $i from 0 through length($scales) - 1 {
520
- .#{$key + $separator}#{$inPrefix}#{$name}-#{$i} {
521
- @each $propName in $prop {
522
- #{$propName}: $spacer *
523
- nth($scales, $i + 1) !important;
524
- }
525
- }
526
- }
527
-
528
- @if ($negative) {
529
- @for $i from 1 through length($scales) - 1 {
530
- .#{$key + $separator}-#{$inPrefix}#{$name}-#{$i} {
531
- @each $propName in $prop {
532
- #{$propName}: -1 *
533
- $spacer *
534
- nth($scales, $i + 1) !important;
535
- }
536
- }
537
- }
538
- }
539
-
540
- @if ($auto) {
541
- .#{$key + $separator}#{$inPrefix}#{$name}-auto {
542
- @each $propName in $prop {
543
- #{$propName}: auto !important;
544
- }
545
- }
546
- }
547
- }
548
- }
549
- }
550
- }
551
- }
552
-
553
- @mixin generate-class($map, $responsive: false, $states: false) {
554
- @each $name, $propMap in $map {
555
- .#{$prefix}#{$name} {
556
- @each $prop, $val in $propMap {
557
- #{$prop}: #{$val} !important;
558
- }
559
- }
560
- }
561
-
562
- @if ($states) {
563
- @each $name, $propMap in $map {
564
- .focus#{$separator} {
565
- &#{$prefix}#{$name}:focus {
566
- @each $prop, $val in $propMap {
567
- #{$prop}: #{$val} !important;
568
- }
569
- }
570
- }
571
-
572
- .hover#{$separator} {
573
- &#{$prefix}#{$name}:hover {
574
- @each $prop, $val in $propMap {
575
- #{$prop}: #{$val} !important;
576
- }
577
- }
578
- }
579
-
580
- .active#{$separator} {
581
- &#{$prefix}#{$name}:active {
582
- @each $prop, $val in $propMap {
583
- #{$prop}: #{$val} !important;
584
- }
585
- }
586
- }
587
- }
588
- }
589
-
590
- @if ($responsive) {
591
- @each $key, $val in $breakpoints {
592
- @media screen and (min-width: #{$val}) {
593
- .#{$key + $separator} {
594
- @each $name, $propMap in $map {
595
- &#{$prefix}#{$name} {
596
- @each $prop, $val in $propMap {
597
- #{$prop}: #{$val} !important;
598
- }
599
- }
600
- }
601
-
602
- @if ($states) {
603
- @each $name, $propMap in $map {
604
- &focus#{$separator} {
605
- &#{$prefix}#{$name}:focus {
606
- @each $prop, $val in $propMap {
607
- #{$prop}: #{$val} !important;
608
- }
609
- }
610
- }
611
-
612
- &hover#{$separator} {
613
- &#{$prefix}#{$name}:hover {
614
- @each $prop, $val in $propMap {
615
- #{$prop}: #{$val} !important;
616
- }
617
- }
618
- }
619
-
620
- &active#{$separator} {
621
- &#{$prefix}#{$name}:active {
622
- @each $prop, $val in $propMap {
623
- #{$prop}: #{$val} !important;
624
- }
625
- }
626
- }
627
- }
628
- }
629
- }
630
- }
631
- }
632
- }
633
- }