@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.
Files changed (93) hide show
  1. package/dist/components/content/Content.d.ts +21 -0
  2. package/dist/components/icon/Icon.d.ts +39 -0
  3. package/dist/components/internal/LoadingCircle.d.ts +2 -0
  4. package/dist/components/internal/LogoutIcon.d.ts +2 -0
  5. package/dist/components/internal/MenuIcon.d.ts +2 -0
  6. package/dist/components/internal/ScrollToTop.d.ts +2 -0
  7. package/dist/components/internal/ThemeToggle.d.ts +2 -0
  8. package/dist/components/internal/cssClassBuilder.d.ts +29 -0
  9. package/dist/components/layout/Layout.d.ts +12 -0
  10. package/dist/components/navmenulink/NavMenuLink.d.ts +12 -0
  11. package/dist/enum/cor.d.ts +9 -0
  12. package/dist/enum/index.d.ts +2 -0
  13. package/dist/enum/tamanho.d.ts +5 -0
  14. package/dist/index.d.ts +9 -0
  15. package/dist/lib.es.js +2724 -0
  16. package/dist/lib.umd.js +79 -0
  17. package/dist/services/authService.d.ts +20 -0
  18. package/dist/services/dialogService.d.ts +12 -0
  19. package/dist/services/navMenuService.d.ts +9 -0
  20. package/dist/style.css +1 -0
  21. package/package.json +31 -0
  22. package/src/components/content/Content.d.ts +35 -0
  23. package/src/components/content/Content.vue +41 -0
  24. package/src/components/icon/Icon.d.ts +38 -0
  25. package/src/components/icon/Icon.vue +43 -0
  26. package/src/components/internal/LoadingCircle.vue +16 -0
  27. package/src/components/internal/LogoutIcon.vue +14 -0
  28. package/src/components/internal/MenuIcon.vue +13 -0
  29. package/src/components/internal/ScrollToTop.vue +26 -0
  30. package/src/components/internal/ThemeToggle.ts +41 -0
  31. package/src/components/internal/ThemeToggle.vue +23 -0
  32. package/src/components/internal/cssClassBuilder.ts +44 -0
  33. package/src/components/layout/Layout.d.ts +44 -0
  34. package/src/components/layout/Layout.vue +63 -0
  35. package/src/components/navmenulink/NavMenuLink.d.ts +34 -0
  36. package/src/components/navmenulink/NavMenuLink.vue +41 -0
  37. package/src/enum/cor.ts +9 -0
  38. package/src/enum/index.ts +2 -0
  39. package/src/enum/tamanho.ts +5 -0
  40. package/src/index.ts +56 -0
  41. package/src/services/authService.ts +69 -0
  42. package/src/services/dialogService.ts +35 -0
  43. package/src/services/navMenuService.ts +21 -0
  44. package/src/sf-oidc-state.html +15 -0
  45. package/src/style/componentes.scss +22 -0
  46. package/src/style/src/_animation.scss +441 -0
  47. package/src/style/src/_display.scss +10 -0
  48. package/src/style/src/_flexbox.scss +85 -0
  49. package/src/style/src/_functions.scss +171 -0
  50. package/src/style/src/_gap.scss +8 -0
  51. package/src/style/src/_grid.scss +100 -0
  52. package/src/style/src/_mixins.scss +633 -0
  53. package/src/style/src/_normalize.scss +351 -0
  54. package/src/style/src/_ripple.scss +30 -0
  55. package/src/style/src/_size.scss +98 -0
  56. package/src/style/src/_spacing.scss +42 -0
  57. package/src/style/src/_typography.scss +43 -0
  58. package/src/style/src/_variables.scss +87 -0
  59. package/src/style/src/components/_button.scss +110 -0
  60. package/src/style/src/components/_checkbox.scss +53 -0
  61. package/src/style/src/components/_content.scss +57 -0
  62. package/src/style/src/components/_datefield.scss +405 -0
  63. package/src/style/src/components/_drawer.scss +99 -0
  64. package/src/style/src/components/_icon.scss +120 -0
  65. package/src/style/src/components/_internal_icon_button.scss +5 -0
  66. package/src/style/src/components/_layout.scss +183 -0
  67. package/src/style/src/components/_loading-circle.scss +24 -0
  68. package/src/style/src/components/_mark.scss +9 -0
  69. package/src/style/src/components/_mask.scss +33 -0
  70. package/src/style/src/components/_navmenulink.scss +31 -0
  71. package/src/style/src/components/_numpad.scss +58 -0
  72. package/src/style/src/components/_progress-circular.scss +52 -0
  73. package/src/style/src/components/_scrollToTop.scss +28 -0
  74. package/src/style/src/components/_select.scss +60 -0
  75. package/src/style/src/components/_svg_icon.scss +5 -0
  76. package/src/style/src/components/_textfield.scss +186 -0
  77. package/src/style/src/components/_themetoggle.scss +25 -0
  78. package/src/style/src/components/_toast.scss +66 -0
  79. package/src/style/src/components/_tooltip.scss +55 -0
  80. package/src/style/src/sweetalert/_sweetalert.scss +9 -0
  81. package/src/style/src/sweetalert/scss/_animations.scss +197 -0
  82. package/src/style/src/sweetalert/scss/_body.scss +45 -0
  83. package/src/style/src/sweetalert/scss/_core.scss +863 -0
  84. package/src/style/src/sweetalert/scss/_mixins.scss +16 -0
  85. package/src/style/src/sweetalert/scss/_theming.scss +8 -0
  86. package/src/style/src/sweetalert/scss/_toasts-animations.scss +83 -0
  87. package/src/style/src/sweetalert/scss/_toasts-body.scss +85 -0
  88. package/src/style/src/sweetalert/scss/_toasts.scss +203 -0
  89. package/src/style/src/sweetalert/scss/_variables.scss +265 -0
  90. package/src/style/tema.scss +169 -0
  91. package/src/ts-helpers.d.ts +57 -0
  92. package/tsconfig.json +19 -0
  93. package/vite.config.js +25 -0
@@ -0,0 +1,120 @@
1
+ @import "../variables";
2
+ @import "../mixins";
3
+
4
+ div.sf-icon {
5
+ position: relative;
6
+ display: inline-flex;
7
+ align-items: center;
8
+
9
+ > button {
10
+ color: var(--text-color);
11
+ pointer-events: none;
12
+ background: none;
13
+ border: none;
14
+ padding: 0;
15
+ + span {
16
+ position: absolute;
17
+ border-radius: 50%;
18
+ width: 6px;
19
+ height: 6px;
20
+ top: 4px;
21
+ right: 4px;
22
+ @include dot-colors;
23
+ }
24
+ &:focus-visible {
25
+ outline: none;
26
+ }
27
+ }
28
+
29
+ &:has(button:focus-visible) {
30
+ outline: 2px solid var(--surface-1300-color);
31
+ outline-offset: 0px;
32
+ }
33
+
34
+ .sf-loading-circle {
35
+ svg {
36
+ stroke: currentColor;
37
+ }
38
+ }
39
+
40
+ &.sf-icon-filled {
41
+ button {
42
+ font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0,
43
+ "opsz" 48;
44
+ }
45
+ }
46
+
47
+ &.sf-icon-small {
48
+ min-width: 28px;
49
+ > button {
50
+ font-size: 20px;
51
+ }
52
+ .sf-loading-circle {
53
+ width: 20px;
54
+ height: 20px;
55
+ }
56
+ }
57
+
58
+ &.sf-icon-medium {
59
+ min-width: 37px;
60
+ > button {
61
+ font-size: 24px;
62
+ + span {
63
+ width: 8px;
64
+ height: 8px;
65
+ top: 6px;
66
+ right: 6px;
67
+ }
68
+ }
69
+ .sf-loading-circle {
70
+ width: 24px;
71
+ height: 24px;
72
+ }
73
+ }
74
+
75
+ &.sf-icon-large {
76
+ min-width: 48px;
77
+ > button {
78
+ font-size: 36px;
79
+ + span {
80
+ width: 12px;
81
+ height: 12px;
82
+ top: 6px;
83
+ right: 6px;
84
+ }
85
+ }
86
+ .sf-loading-circle {
87
+ width: 28px;
88
+ height: 28px;
89
+ }
90
+ }
91
+
92
+ &.sf-icon-button {
93
+ border-radius: 50%;
94
+ transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1)
95
+ 0ms;
96
+ &.sf-icon-small {
97
+ padding: 4px;
98
+ }
99
+ &.sf-icon-medium {
100
+ padding: 6px;
101
+ }
102
+ &.sf-icon-large {
103
+ padding: 8px;
104
+ }
105
+ @media (pointer: fine) {
106
+ &:hover,
107
+ &:focus-visible {
108
+ cursor: pointer;
109
+ background-color: $icon-hover-color;
110
+ }
111
+ }
112
+ }
113
+
114
+ &.sf-component-loading,
115
+ &.sf-component-disabled {
116
+ > button + span {
117
+ display: none;
118
+ }
119
+ }
120
+ }
@@ -0,0 +1,5 @@
1
+ @import "../mixins";
2
+
3
+ .sf-internal-icon-button {
4
+ @include sf-internal-icon-button;
5
+ }
@@ -0,0 +1,183 @@
1
+ @import "../variables";
2
+ @import "../functions";
3
+ @import "../mixins";
4
+
5
+ #sf-layout {
6
+ height: var(--window-height);
7
+ overflow: hidden;
8
+ position: relative;
9
+
10
+ header {
11
+ background-color: #001e49;
12
+ color: #fff !important;
13
+ height: var(--header-height);
14
+ border-bottom: 1px solid var(--surface-border-color);
15
+ display: flex;
16
+ align-items: center;
17
+ padding: 0 16px;
18
+ transition: padding 0.3s linear;
19
+
20
+ .sf-icon {
21
+ color: #fff !important;
22
+ }
23
+
24
+ #sf-theme-toggle svg,
25
+ .sf-internal-icon-button svg,
26
+ .sf-svg-icon {
27
+ fill: #fff !important;
28
+ }
29
+
30
+ .sf-layout-menu-toggler {
31
+ cursor: pointer;
32
+ display: flex;
33
+ align-items: center;
34
+
35
+ svg {
36
+ transition: transform 0.2s linear;
37
+ }
38
+
39
+ &.invert {
40
+ svg {
41
+ transform: rotate(180deg);
42
+ }
43
+ }
44
+
45
+ .sf-layout-menu-toggler-logo {
46
+ height: 40px;
47
+ width: 36px;
48
+ background-image: url("https://sfpocstorageacc.z13.web.core.windows.net/logo-header.png");
49
+ background-position: center;
50
+ background-size: contain;
51
+ background-repeat: no-repeat;
52
+ }
53
+ }
54
+
55
+ @media screen and (max-width: 579px) {
56
+ padding: 0 8px;
57
+ }
58
+
59
+ > .title {
60
+ padding: 0 16px;
61
+ font-size: 1.25rem;
62
+ font-weight: bold;
63
+ flex-grow: 1;
64
+ white-space: nowrap;
65
+ overflow: hidden;
66
+ text-overflow: ellipsis;
67
+ > .name {
68
+ display: none;
69
+ @media screen and (min-width: $sm) {
70
+ display: unset;
71
+ }
72
+ }
73
+ > .shortname {
74
+ display: none;
75
+ @media screen and (max-width: $sm) {
76
+ display: unset;
77
+ }
78
+ }
79
+ }
80
+ }
81
+
82
+ main,
83
+ nav {
84
+ transition-duration: 0.2s;
85
+ transition-timing-function: ease;
86
+ }
87
+
88
+ main {
89
+ position: relative;
90
+ height: var(--main-height);
91
+ width: 100vw;
92
+ padding-left: 0;
93
+ transition-property: padding;
94
+
95
+ > section#sf-layout-page-title {
96
+ background-color: var(--surface-300-color);
97
+ border-bottom: 1px solid var(--surface-border-color);
98
+ color: var(--secondary-color);
99
+ font-size: 0.875rem;
100
+ text-align: center;
101
+ display: flex;
102
+ align-items: center;
103
+ justify-content: center;
104
+ height: 28px;
105
+ > span {
106
+ white-space: nowrap;
107
+ overflow: hidden;
108
+ text-overflow: ellipsis;
109
+ padding: 0 0.75rem;
110
+ }
111
+ + #sf-layout-content {
112
+ height: calc(100% - 28px);
113
+ }
114
+ &:empty {
115
+ height: 0;
116
+ display: none;
117
+ + #sf-layout-content {
118
+ height: 100%;
119
+ }
120
+ }
121
+ }
122
+
123
+ > section#sf-layout-content {
124
+ overflow: hidden;
125
+ height: 100%;
126
+ }
127
+
128
+ &.menu-visible {
129
+ padding-left: 290px;
130
+
131
+ @media screen and (max-width: $sm) {
132
+ padding-left: 0;
133
+ }
134
+ }
135
+ }
136
+
137
+ nav {
138
+ z-index: 5;
139
+ position: absolute;
140
+ top: 0;
141
+ height: var(--window-height);
142
+ background-color: var(--surface-100-color);
143
+ width: 100vw;
144
+ border-right: 1px solid var(--surface-border-color);
145
+ transform: translateX(-100vw);
146
+ transition-property: transform;
147
+ display: flex;
148
+ flex-direction: column;
149
+
150
+ &.visible {
151
+ transition-duration: 0.2s;
152
+ transform: translateX(0);
153
+ }
154
+
155
+ > .sf-layout-nav-header {
156
+ height: var(--header-height);
157
+ border-bottom: 1px solid var(--surface-border-color);
158
+ background-color: var(--surface-100-color);
159
+ display: flex;
160
+ align-items: center;
161
+ padding: 0 16px;
162
+ > span {
163
+ flex-grow: 1;
164
+ }
165
+ }
166
+
167
+ > .sf-layout-nav-content {
168
+ height: 100%;
169
+ overflow: auto;
170
+ border-bottom: 1px solid var(--surface-border-color);
171
+ }
172
+
173
+ @media screen and (min-width: #{$sm + 1}) {
174
+ top: unset;
175
+ height: calc(100vh - var(--header-height));
176
+ width: 290px;
177
+ transform: translateX(-290px);
178
+ > .sf-layout-nav-header {
179
+ display: none;
180
+ }
181
+ }
182
+ }
183
+ }
@@ -0,0 +1,24 @@
1
+ @import "../mixins";
2
+
3
+ div.sf-loading-circle {
4
+ display: inline-block;
5
+ width: 100%;
6
+ height: 100%;
7
+ > div {
8
+ position: relative;
9
+ > svg {
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ stroke: var(--text-color);
14
+ animation: spin 2s linear infinite;
15
+ > circle {
16
+ stroke-dasharray: 1, 200;
17
+ stroke-dashoffset: 0;
18
+ animation: sf-loading-circle-circle-dash 1.5s ease-in-out
19
+ infinite;
20
+ stroke-linecap: square;
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,9 @@
1
+ .sf-mark {
2
+ padding: 0;
3
+ margin: 0;
4
+ display: inline;
5
+ mark {
6
+ background-color: var(--amber-color);
7
+ color: #000;
8
+ }
9
+ }
@@ -0,0 +1,33 @@
1
+ .sf-mask {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ display: flex;
8
+ pointer-events: none;
9
+ }
10
+
11
+ .sf-mask-overlay-enter {
12
+ pointer-events: auto;
13
+ animation: sf-mask-overlay-enter-animation 250ms forwards;
14
+ }
15
+ .sf-mask-overlay-leave {
16
+ animation: sf-mask-overlay-leave-animation 250ms forwards;
17
+ }
18
+ @keyframes sf-mask-overlay-enter-animation {
19
+ from {
20
+ background-color: transparent;
21
+ }
22
+ to {
23
+ background-color: var(--maskbg-color);
24
+ }
25
+ }
26
+ @keyframes sf-mask-overlay-leave-animation {
27
+ from {
28
+ background-color: var(--maskbg-color);
29
+ }
30
+ to {
31
+ background-color: transparent;
32
+ }
33
+ }
@@ -0,0 +1,31 @@
1
+ .sf-navmenulink {
2
+ height: 40px;
3
+ text-decoration: none !important;
4
+ position: relative;
5
+ display: flex;
6
+ align-items: center;
7
+ padding: 0 0.75rem;
8
+ border-radius: 4px;
9
+ margin: 0.5rem;
10
+ color: var(--text-color);
11
+ > span.sf-navmenulink-text {
12
+ white-space: nowrap;
13
+ overflow: hidden;
14
+ text-overflow: ellipsis;
15
+ line-height: 1.5;
16
+ }
17
+ &[data-active="true"] {
18
+ background-color: var(--surface-400-color);
19
+ pointer-events: none;
20
+ color: var(--primary-color);
21
+ > .sf-icon > button:first-child {
22
+ color: var(--primary-color);
23
+ }
24
+ }
25
+ &:hover {
26
+ background-color: var(--surface-300-color);
27
+ }
28
+ &:active {
29
+ background-color: var(--surface-400-color);
30
+ }
31
+ }
@@ -0,0 +1,58 @@
1
+ .numpad-wrapper {
2
+ max-width: 280px;
3
+ max-height: 100%;
4
+ height: 100%;
5
+ display: flex;
6
+ flex-direction: column;
7
+ justify-content: start;
8
+ margin: 0 auto;
9
+ padding: 16px;
10
+ > div.sf-numpad-valor {
11
+ padding: 0.75rem 0.5rem;
12
+ margin-bottom: 0.5rem;
13
+ text-align: right;
14
+ background-color: var(--surface-300-color);
15
+ border-radius: 4px;
16
+ border: 1px solid var(--surface-border-color);
17
+ &:empty::before {
18
+ content: " ";
19
+ display: inline-block;
20
+ }
21
+ }
22
+ > div.teclas {
23
+ border: 1px solid var(--surface-900-color);
24
+ display: flex;
25
+ flex-direction: column;
26
+ flex-grow: 1;
27
+ max-height: 360px;
28
+ > div.row {
29
+ flex-grow: 1;
30
+ display: flex;
31
+ border-bottom: 1px solid var(--surface-900-color);
32
+ &:last-child {
33
+ border-bottom: none;
34
+ }
35
+ > div.tecla {
36
+ display: flex;
37
+ flex-grow: 1;
38
+ justify-content: center;
39
+ align-items: center;
40
+ font-size: 1.5em;
41
+ border-left: 1px solid var(--surface-900-color);
42
+ cursor: pointer;
43
+ &:first-child {
44
+ border-left: none;
45
+ }
46
+ &:active,
47
+ &.active {
48
+ background-color: var(--secondary-hover-color);
49
+ }
50
+ > * {
51
+ min-width: 48px;
52
+ text-align: center;
53
+ justify-content: center;
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,52 @@
1
+ .sf-progress-circular {
2
+ display: inline-block;
3
+
4
+ &.sf-progress-indeterminate {
5
+ animation: sf-progress-circular-keyframes-circular-rotate 1.4s
6
+ linear infinite;
7
+ }
8
+
9
+ &.sf-progress-static {
10
+ transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
11
+ }
12
+
13
+ &.sf-progress-sm {
14
+ height: 24px;
15
+ width: 24px;
16
+ }
17
+
18
+ &.sf-progress-md {
19
+ height: 40px;
20
+ width: 40px;
21
+ }
22
+
23
+ &.sf-progress-lg {
24
+ height: 56px;
25
+ width: 56px;
26
+ }
27
+ }
28
+
29
+ .sf-progress-circular-svg {
30
+ display: block;
31
+ transform: rotate(-90deg);
32
+ }
33
+
34
+ .sf-progress-circular-circle {
35
+ stroke: currentColor;
36
+
37
+ &.sf-progress-indeterminate {
38
+ animation: sf-progress-circular-keyframes-circular-dash 1.4s
39
+ ease-in-out infinite;
40
+ stroke-dasharray: 80px, 200px;
41
+ stroke-dashoffset: 0px;
42
+ }
43
+
44
+ &.sf-progress-static {
45
+ transition: stroke-dashoffset 300ms cubic-bezier(0.4, 0, 0.2, 1)
46
+ 0ms;
47
+ }
48
+ }
49
+
50
+ .sf-progress-circular-disable-shrink {
51
+ animation: none;
52
+ }
@@ -0,0 +1,28 @@
1
+ button.sf-scrollToTop {
2
+ position: fixed;
3
+ z-index: 100;
4
+ bottom: 10px;
5
+ right: 26px;
6
+ opacity: 0;
7
+ transform: translateY(100px);
8
+ transition: all 0.5s ease;
9
+ border-radius: 50%;
10
+ width: 48px;
11
+ height: 48px;
12
+ background-color: var(--text-color);
13
+ cursor: pointer;
14
+ outline: none;
15
+ border: none;
16
+ &.sf-scrollToTop-visible {
17
+ opacity: 1;
18
+ transform: translateY(0);
19
+ }
20
+ &::before {
21
+ content: "";
22
+ position: absolute;
23
+ inset: 30%;
24
+ transform: translateY(20%) rotate(-45deg);
25
+ border-top: 5px solid var(--bg-color);
26
+ border-right: 5px solid var(--bg-color);
27
+ }
28
+ }
@@ -0,0 +1,60 @@
1
+ .sf-select-panel {
2
+ padding: 0.5rem 0;
3
+ .sf-select-option {
4
+ display: flex;
5
+ align-items: center;
6
+ padding: 0.5rem 1rem;
7
+ .sf-select-option-label {
8
+ padding-left: 1rem;
9
+ }
10
+ .sf-select-option-icon::before {
11
+ content: "\e836";
12
+ }
13
+ &.sf-select-option-selected {
14
+ pointer-events: none;
15
+ color: var(--primary-color);
16
+ background-color: var(--primary-hover-color);
17
+ .sf-select-option-icon::before {
18
+ content: "\e837";
19
+ }
20
+ }
21
+ &:hover {
22
+ cursor: pointer;
23
+ &:not(.sf-select-option-selected) {
24
+ background-color: var(--secondary-hover-color);
25
+ }
26
+ }
27
+ }
28
+ &.sf-select-multiple {
29
+ .sf-select-option {
30
+ .sf-select-option-icon::before {
31
+ content: "\e835";
32
+ }
33
+ &.sf-select-option-selected {
34
+ pointer-events: auto;
35
+ .sf-select-option-icon::before {
36
+ content: "\e834";
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ .sf-select-search {
43
+ padding: 0.5rem 1rem;
44
+ position: sticky;
45
+ top: 0;
46
+ background-color: var(--bg-color);
47
+ border-bottom: 1px solid var(--surface-border-color);
48
+ display: flex;
49
+ align-items: center;
50
+ .sf-select-toggle-all {
51
+ margin-right: 1rem;
52
+ height: 22px;
53
+ }
54
+ .sf-select-search-input {
55
+ flex-grow: 1;
56
+ }
57
+ &:empty {
58
+ display: none;
59
+ }
60
+ }
@@ -0,0 +1,5 @@
1
+ svg.sf-svg-icon {
2
+ height: 24px;
3
+ width: 24px;
4
+ fill: var(--text-color);
5
+ }