@luizleon/sf.prefeiturasp.vuecomponents 0.0.1
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/dist/components/content/Content.d.ts +21 -0
- package/dist/components/icon/Icon.d.ts +39 -0
- package/dist/components/internal/LoadingCircle.d.ts +2 -0
- package/dist/components/internal/LogoutIcon.d.ts +2 -0
- package/dist/components/internal/MenuIcon.d.ts +2 -0
- package/dist/components/internal/ScrollToTop.d.ts +2 -0
- package/dist/components/internal/ThemeToggle.d.ts +2 -0
- package/dist/components/internal/cssClassBuilder.d.ts +29 -0
- package/dist/components/layout/Layout.d.ts +12 -0
- package/dist/components/navmenulink/NavMenuLink.d.ts +12 -0
- package/dist/enum/cor.d.ts +9 -0
- package/dist/enum/index.d.ts +2 -0
- package/dist/enum/tamanho.d.ts +5 -0
- package/dist/index.d.ts +9 -0
- package/dist/lib.es.js +2724 -0
- package/dist/lib.umd.js +79 -0
- package/dist/services/authService.d.ts +20 -0
- package/dist/services/dialogService.d.ts +12 -0
- package/dist/services/navMenuService.d.ts +9 -0
- package/dist/style.css +1 -0
- package/package.json +31 -0
- package/src/components/content/Content.d.ts +35 -0
- package/src/components/content/Content.vue +41 -0
- package/src/components/icon/Icon.d.ts +38 -0
- package/src/components/icon/Icon.vue +43 -0
- package/src/components/internal/LoadingCircle.vue +16 -0
- package/src/components/internal/LogoutIcon.vue +14 -0
- package/src/components/internal/MenuIcon.vue +13 -0
- package/src/components/internal/ScrollToTop.vue +26 -0
- package/src/components/internal/ThemeToggle.ts +41 -0
- package/src/components/internal/ThemeToggle.vue +23 -0
- package/src/components/internal/cssClassBuilder.ts +44 -0
- package/src/components/layout/Layout.d.ts +44 -0
- package/src/components/layout/Layout.vue +63 -0
- package/src/components/navmenulink/NavMenuLink.d.ts +34 -0
- package/src/components/navmenulink/NavMenuLink.vue +41 -0
- package/src/enum/cor.ts +9 -0
- package/src/enum/index.ts +2 -0
- package/src/enum/tamanho.ts +5 -0
- package/src/index.ts +56 -0
- package/src/services/authService.ts +69 -0
- package/src/services/dialogService.ts +35 -0
- package/src/services/navMenuService.ts +21 -0
- package/src/sf-oidc-state.html +15 -0
- package/src/style/componentes.scss +22 -0
- package/src/style/src/_animation.scss +441 -0
- package/src/style/src/_display.scss +10 -0
- package/src/style/src/_flexbox.scss +85 -0
- package/src/style/src/_functions.scss +171 -0
- package/src/style/src/_gap.scss +8 -0
- package/src/style/src/_grid.scss +100 -0
- package/src/style/src/_mixins.scss +633 -0
- package/src/style/src/_normalize.scss +351 -0
- package/src/style/src/_ripple.scss +30 -0
- package/src/style/src/_size.scss +98 -0
- package/src/style/src/_spacing.scss +42 -0
- package/src/style/src/_typography.scss +43 -0
- package/src/style/src/_variables.scss +87 -0
- package/src/style/src/components/_button.scss +110 -0
- package/src/style/src/components/_checkbox.scss +53 -0
- package/src/style/src/components/_content.scss +57 -0
- package/src/style/src/components/_datefield.scss +405 -0
- package/src/style/src/components/_drawer.scss +99 -0
- package/src/style/src/components/_icon.scss +120 -0
- package/src/style/src/components/_internal_icon_button.scss +5 -0
- package/src/style/src/components/_layout.scss +183 -0
- package/src/style/src/components/_loading-circle.scss +24 -0
- package/src/style/src/components/_mark.scss +9 -0
- package/src/style/src/components/_mask.scss +33 -0
- package/src/style/src/components/_navmenulink.scss +31 -0
- package/src/style/src/components/_numpad.scss +58 -0
- package/src/style/src/components/_progress-circular.scss +52 -0
- package/src/style/src/components/_scrollToTop.scss +28 -0
- package/src/style/src/components/_select.scss +60 -0
- package/src/style/src/components/_svg_icon.scss +5 -0
- package/src/style/src/components/_textfield.scss +186 -0
- package/src/style/src/components/_themetoggle.scss +25 -0
- package/src/style/src/components/_toast.scss +66 -0
- package/src/style/src/components/_tooltip.scss +55 -0
- package/src/style/src/sweetalert/_sweetalert.scss +9 -0
- package/src/style/src/sweetalert/scss/_animations.scss +197 -0
- package/src/style/src/sweetalert/scss/_body.scss +45 -0
- package/src/style/src/sweetalert/scss/_core.scss +863 -0
- package/src/style/src/sweetalert/scss/_mixins.scss +16 -0
- package/src/style/src/sweetalert/scss/_theming.scss +8 -0
- package/src/style/src/sweetalert/scss/_toasts-animations.scss +83 -0
- package/src/style/src/sweetalert/scss/_toasts-body.scss +85 -0
- package/src/style/src/sweetalert/scss/_toasts.scss +203 -0
- package/src/style/src/sweetalert/scss/_variables.scss +265 -0
- package/src/style/tema.scss +169 -0
- package/src/ts-helpers.d.ts +57 -0
- package/tsconfig.json +19 -0
- package/vite.config.js +25 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
|
|
3
|
+
@function alpha($color, $opacity) {
|
|
4
|
+
$color-h: unquote("var(#{$color + -color-h})");
|
|
5
|
+
$color-s: unquote("var(#{$color + -color-s})");
|
|
6
|
+
$color-l: unquote("var(#{$color + -color-l})");
|
|
7
|
+
@return hsla($color-h, $color-s, $color-l, $opacity);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@function str-replace($string, $search, $replace: "") {
|
|
11
|
+
$index: str-index($string, $search);
|
|
12
|
+
|
|
13
|
+
@if $index {
|
|
14
|
+
@return str-slice($string, 1, $index - 1) + $replace +
|
|
15
|
+
str-replace(
|
|
16
|
+
str-slice($string, $index + str-length($search)),
|
|
17
|
+
$search,
|
|
18
|
+
$replace
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@return $string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@function tetradColor($color) {
|
|
26
|
+
$hue: hue($color);
|
|
27
|
+
$saturation: saturation($color);
|
|
28
|
+
$lightness: lightness($color);
|
|
29
|
+
$tetrad: (
|
|
30
|
+
hsl($hue, $saturation, $lightness),
|
|
31
|
+
hsl($hue + 90 % 360, $saturation, $lightness),
|
|
32
|
+
hsl($hue + 180 % 360, $saturation, $lightness),
|
|
33
|
+
hsl($hue + 270 % 360, $saturation, $lightness)
|
|
34
|
+
);
|
|
35
|
+
@return $tetrad;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@function multiplyColor($fore, $back) {
|
|
39
|
+
$red: calc(red($back) * red($fore) / 255);
|
|
40
|
+
$green: calc(green($back) * green($fore) / 255);
|
|
41
|
+
$blue: calc(blue($back) * blue($fore) / 255);
|
|
42
|
+
@return rgb($red, $green, $blue);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@function makeColorPalette($color) {
|
|
46
|
+
$light: #fff;
|
|
47
|
+
$dark: multiplyColor($color, $color);
|
|
48
|
+
$tetrad: tetradColor($color);
|
|
49
|
+
$palette: (
|
|
50
|
+
"": mix($light, $color, 0%),
|
|
51
|
+
"-50": mix($light, $color, 88%),
|
|
52
|
+
"-100": mix($light, $color, 70%),
|
|
53
|
+
"-200": mix($light, $color, 50%),
|
|
54
|
+
"-300": mix($light, $color, 30%),
|
|
55
|
+
"-400": mix($light, $color, 15%),
|
|
56
|
+
"-500": mix($light, $color, 0%),
|
|
57
|
+
"-600": mix($dark, $color, 13%),
|
|
58
|
+
"-700": mix($dark, $color, 30%),
|
|
59
|
+
"-800": mix($dark, $color, 46%),
|
|
60
|
+
"-900": mix($dark, $color, 75%),
|
|
61
|
+
);
|
|
62
|
+
@return $palette;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@function themeColors($dark: false) {
|
|
66
|
+
$bg: #fff;
|
|
67
|
+
$text: #334d5c;
|
|
68
|
+
$primary: #3f51b5;
|
|
69
|
+
$info: #2196f3;
|
|
70
|
+
$success: #4caf50;
|
|
71
|
+
$warn: #cbb701;
|
|
72
|
+
$help: #673ab7;
|
|
73
|
+
$error: #f44336;
|
|
74
|
+
$secondary: #607d8b;
|
|
75
|
+
$disabled: #c4c4c4;
|
|
76
|
+
$primary-hover: rgba(color.scale($primary, $lightness: 70%), 0.5);
|
|
77
|
+
$info-hover: rgba(color.scale($info, $lightness: 70%), 0.5);
|
|
78
|
+
$success-hover: rgba(color.scale($success, $lightness: 70%), 0.5);
|
|
79
|
+
$warn-hover: rgba(color.scale($warn, $lightness: 70%), 0.5);
|
|
80
|
+
$help-hover: rgba(color.scale($help, $lightness: 70%), 0.5);
|
|
81
|
+
$error-hover: rgba(color.scale($error, $lightness: 70%), 0.5);
|
|
82
|
+
$secondary-hover: rgba(color.scale($secondary, $lightness: 70%), 0.5);
|
|
83
|
+
$surface: #fafafd;
|
|
84
|
+
$surface-100: color.scale($surface, $lightness: -1%);
|
|
85
|
+
$surface-200: color.scale($surface, $lightness: -3%);
|
|
86
|
+
$surface-300: color.scale($surface, $lightness: -5%);
|
|
87
|
+
$surface-400: color.scale($surface, $lightness: -7%);
|
|
88
|
+
$surface-500: color.scale($surface, $lightness: -9%);
|
|
89
|
+
$surface-600: color.scale($surface, $lightness: -11%);
|
|
90
|
+
$surface-700: color.scale($surface, $lightness: -13%);
|
|
91
|
+
$surface-800: color.scale($surface, $lightness: -15%);
|
|
92
|
+
$surface-900: color.scale($surface, $lightness: -17%);
|
|
93
|
+
$surface-1000: color.scale($surface, $lightness: -19%);
|
|
94
|
+
$surface-1100: color.scale($surface, $lightness: -22%);
|
|
95
|
+
$surface-1200: color.scale($surface, $lightness: -24%);
|
|
96
|
+
$surface-1300: color.scale($surface, $lightness: -26%);
|
|
97
|
+
$surface-border: $surface-800;
|
|
98
|
+
$maskbg: color.adjust($text, $alpha: -0.2);
|
|
99
|
+
|
|
100
|
+
@if ($dark) {
|
|
101
|
+
$bg: hsl(215, 69%, 9%);
|
|
102
|
+
$text: #cfd8dc;
|
|
103
|
+
$primary: color.scale($primary, $lightness: 35%);
|
|
104
|
+
$info: color.scale($info, $lightness: 22.5%);
|
|
105
|
+
$success: color.scale($success, $lightness: 22.5%);
|
|
106
|
+
$warn: color.scale($warn, $lightness: 22.5%);
|
|
107
|
+
$help: color.scale($help, $lightness: 35%);
|
|
108
|
+
$error: color.scale($error, $lightness: 22.5%);
|
|
109
|
+
$secondary: color.scale($secondary, $lightness: 22.5%);
|
|
110
|
+
$disabled: #576374;
|
|
111
|
+
$primary-hover: rgba(color.scale($primary, $lightness: -70%), 0.5);
|
|
112
|
+
$info-hover: rgba(color.scale($info, $lightness: -70%), 0.5);
|
|
113
|
+
$success-hover: rgba(color.scale($success, $lightness: -70%), 0.5);
|
|
114
|
+
$warn-hover: rgba(color.scale($warn, $lightness: -70%), 0.5);
|
|
115
|
+
$help-hover: rgba(color.scale($help, $lightness: -70%), 0.5);
|
|
116
|
+
$error-hover: rgba(color.scale($error, $lightness: -70%), 0.5);
|
|
117
|
+
$secondary-hover: rgba(color.scale($secondary, $lightness: -70%), 0.5);
|
|
118
|
+
$surface-100: color.scale($bg, $lightness: 2%);
|
|
119
|
+
$surface-200: color.scale($bg, $lightness: 4%);
|
|
120
|
+
$surface-300: color.scale($bg, $lightness: 6%);
|
|
121
|
+
$surface-400: color.scale($bg, $lightness: 8%);
|
|
122
|
+
$surface-500: color.scale($bg, $lightness: 10%);
|
|
123
|
+
$surface-600: color.scale($bg, $lightness: 12%);
|
|
124
|
+
$surface-700: color.scale($bg, $lightness: 14%);
|
|
125
|
+
$surface-800: color.scale($bg, $lightness: 16%);
|
|
126
|
+
$surface-900: color.scale($bg, $lightness: 18%);
|
|
127
|
+
$surface-1000: color.scale($bg, $lightness: 20%);
|
|
128
|
+
$surface-1100: color.scale($bg, $lightness: 22%);
|
|
129
|
+
$surface-1200: color.scale($bg, $lightness: 24%);
|
|
130
|
+
$surface-1300: color.scale($bg, $lightness: 26%);
|
|
131
|
+
$surface-border: $surface-800;
|
|
132
|
+
$maskbg: color.adjust($surface-600, $alpha: -0.4);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
$v: (
|
|
136
|
+
"--bg": $bg,
|
|
137
|
+
"--text": $text,
|
|
138
|
+
"--primary": $primary,
|
|
139
|
+
"--info": $info,
|
|
140
|
+
"--success": $success,
|
|
141
|
+
"--warn": $warn,
|
|
142
|
+
"--help": $help,
|
|
143
|
+
"--error": $error,
|
|
144
|
+
"--secondary": $secondary,
|
|
145
|
+
"--disabled": $disabled,
|
|
146
|
+
"--primary-hover": $primary-hover,
|
|
147
|
+
"--info-hover": $info-hover,
|
|
148
|
+
"--success-hover": $success-hover,
|
|
149
|
+
"--warn-hover": $warn-hover,
|
|
150
|
+
"--help-hover": $help-hover,
|
|
151
|
+
"--error-hover": $error-hover,
|
|
152
|
+
"--secondary-hover": $secondary-hover,
|
|
153
|
+
"--surface-100": $surface-100,
|
|
154
|
+
"--surface-200": $surface-200,
|
|
155
|
+
"--surface-300": $surface-300,
|
|
156
|
+
"--surface-400": $surface-400,
|
|
157
|
+
"--surface-500": $surface-500,
|
|
158
|
+
"--surface-600": $surface-600,
|
|
159
|
+
"--surface-700": $surface-700,
|
|
160
|
+
"--surface-800": $surface-800,
|
|
161
|
+
"--surface-900": $surface-900,
|
|
162
|
+
"--surface-1000": $surface-1000,
|
|
163
|
+
"--surface-1100": $surface-1100,
|
|
164
|
+
"--surface-1200": $surface-1200,
|
|
165
|
+
"--surface-1300": $surface-1300,
|
|
166
|
+
"--surface-border": $surface-border,
|
|
167
|
+
"--maskbg": $maskbg,
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
@return $v;
|
|
171
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
.#{$prefix}grid {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
margin-right: -1 * $gutter;
|
|
5
|
+
margin-left: -1 * $gutter;
|
|
6
|
+
margin-top: -1 * $gutter;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.#{$prefix}grid > #{$prefix}.col,
|
|
10
|
+
.#{$prefix}grid > [class*="#{$prefix}col"] {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.#{$prefix}grid-nogutter {
|
|
15
|
+
margin-right: 0;
|
|
16
|
+
margin-left: 0;
|
|
17
|
+
margin-top: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.#{$prefix}grid-nogutter > .#{$prefix}col,
|
|
21
|
+
.#{$prefix}grid-nogutter > [class*="#{$prefix}col-"] {
|
|
22
|
+
padding: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.#{$prefix}col {
|
|
26
|
+
flex-grow: 1;
|
|
27
|
+
flex-basis: 0;
|
|
28
|
+
padding: $gutter;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.#{$prefix}col-fixed {
|
|
32
|
+
flex: 0 0 auto;
|
|
33
|
+
padding: $gutter;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
$grid-columns: (
|
|
37
|
+
"col-1": 8.3333%,
|
|
38
|
+
"col-2": 16.6667%,
|
|
39
|
+
"col-3": 25%,
|
|
40
|
+
"col-4": 33.3333%,
|
|
41
|
+
"col-5": 41.6667%,
|
|
42
|
+
"col-6": 50%,
|
|
43
|
+
"col-7": 58.3333%,
|
|
44
|
+
"col-8": 66.6667%,
|
|
45
|
+
"col-9": 75%,
|
|
46
|
+
"col-10": 83.3333%,
|
|
47
|
+
"col-11": 91.6667%,
|
|
48
|
+
"col-12": 100%,
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
$grid-column-offsets: (
|
|
52
|
+
"col-offset-0": 0,
|
|
53
|
+
"col-offset-1": 8.3333%,
|
|
54
|
+
"col-offset-2": 16.6667%,
|
|
55
|
+
"col-offset-3": 25%,
|
|
56
|
+
"col-offset-4": 33.3333%,
|
|
57
|
+
"col-offset-5": 41.6667%,
|
|
58
|
+
"col-offset-6": 50%,
|
|
59
|
+
"col-offset-7": 58.3333%,
|
|
60
|
+
"col-offset-8": 66.6667%,
|
|
61
|
+
"col-offset-9": 75%,
|
|
62
|
+
"col-offset-10": 83.3333%,
|
|
63
|
+
"col-offset-11": 91.6667%,
|
|
64
|
+
"col-offset-12": 100%,
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
@each $col, $width in $grid-columns {
|
|
68
|
+
.#{$prefix}#{$col} {
|
|
69
|
+
flex: 0 0 auto;
|
|
70
|
+
padding: $gutter;
|
|
71
|
+
width: #{$width};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@each $key, $val in $breakpoints {
|
|
76
|
+
@media screen and (min-width: #{$val}) {
|
|
77
|
+
.#{$key + $separator} {
|
|
78
|
+
&#{$prefix}col {
|
|
79
|
+
flex-grow: 1;
|
|
80
|
+
flex-basis: 0;
|
|
81
|
+
padding: $gutter;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&#{$prefix}col-fixed {
|
|
85
|
+
flex: 0 0 auto;
|
|
86
|
+
padding: $gutter;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@each $col, $width in $grid-columns {
|
|
90
|
+
&#{$prefix}#{$col} {
|
|
91
|
+
flex: 0 0 auto;
|
|
92
|
+
padding: $gutter;
|
|
93
|
+
width: #{$width};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@include style-class("margin-left", $grid-column-offsets, true);
|