@luizleon/sf.prefeiturasp.vuecomponents 0.0.43 → 0.0.45
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/button/Button.d.ts +77 -42
- package/dist/components/content/Content.d.ts +28 -36
- package/dist/components/drawer/Drawer.d.ts +54 -55
- package/dist/components/icon/Icon.d.ts +59 -38
- package/dist/components/internal/HeaderAvatar.d.ts +6 -0
- package/dist/components/internal/ScrollToTop.d.ts +2 -7
- package/dist/components/internal/ThemeToggle.d.ts +2 -11
- package/dist/components/layout/Layout.d.ts +20 -45
- package/dist/components/message/Message.d.ts +42 -37
- package/dist/components/navmenulink/NavMenuLink.d.ts +18 -35
- package/dist/components/tabnavigation/TabNavigation.d.ts +29 -42
- package/dist/components/tooltip/Tooltip.d.ts +21 -0
- package/dist/index.d.ts +4 -3
- package/dist/keycloak.d.ts +1 -1
- package/dist/services/dialogService.d.ts +16 -5
- package/dist/{lib.es.js → sf.prefeiturasp.vuecomponents.es.js} +2009 -1909
- package/dist/sf.prefeiturasp.vuecomponents.es.js.map +1 -0
- package/dist/sf.prefeiturasp.vuecomponents.umd.js +82 -0
- package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +9 -10
- package/src/components/button/Button.d.ts +2 -18
- package/src/components/button/Button.vue +45 -2
- package/src/components/content/Content.d.ts +0 -8
- package/src/components/content/Content.vue +9 -1
- package/src/components/drawer/Drawer.d.ts +1 -6
- package/src/components/drawer/Drawer.vue +11 -3
- package/src/components/icon/Icon.d.ts +1 -16
- package/src/components/icon/Icon.vue +65 -22
- package/src/components/internal/HeaderAvatar.vue +4 -5
- package/src/components/layout/Layout.d.ts +1 -2
- package/src/components/layout/Layout.vue +6 -1
- package/src/components/message/Message.d.ts +1 -10
- package/src/components/message/Message.vue +28 -12
- package/src/components/navmenulink/NavMenuLink.d.ts +1 -7
- package/src/components/navmenulink/NavMenuLink.vue +10 -2
- package/src/components/tabnavigation/TabNavigation.d.ts +1 -9
- package/src/components/tabnavigation/TabNavigation.vue +9 -1
- package/src/components/tooltip/Tooltip.d.ts +23 -0
- package/src/components/tooltip/Tooltip.vue +91 -0
- package/src/index.ts +8 -6
- package/src/services/dialogService.ts +71 -25
- package/src/style/src/_mixins.scss +5 -0
- package/src/style/src/components/_icon.scss +7 -7
- package/src/style/src/components/_message.scss +1 -1
- package/src/style/src/components/_tooltip.scss +11 -12
- package/src/style/src/sweetalert/scss/_animations.scss +197 -197
- package/src/style/src/sweetalert/scss/_body.scss +45 -45
- package/src/style/src/sweetalert/scss/_core.scss +862 -862
- package/src/style/src/sweetalert/scss/_mixins.scss +16 -16
- package/src/style/src/sweetalert/scss/_theming.scss +8 -8
- package/src/style/src/sweetalert/scss/_toasts-animations.scss +83 -83
- package/src/style/src/sweetalert/scss/_toasts-body.scss +85 -85
- package/src/style/src/sweetalert/scss/_toasts.scss +203 -203
- package/src/ts-helpers.d.ts +9 -9
- package/tsconfig.json +2 -2
- package/vite.config.js +5 -5
- package/dist/enum/cor.d.ts +0 -9
- package/dist/enum/index.d.ts +0 -2
- package/dist/enum/tamanho.d.ts +0 -5
- package/dist/lib.es.js.map +0 -1
- package/dist/lib.umd.js +0 -84
- package/dist/lib.umd.js.map +0 -1
- package/dist/ts-helpers.d.ts +0 -57
- package/src/enum/cor.ts +0 -9
- package/src/enum/index.ts +0 -2
- package/src/enum/tamanho.ts +0 -5
|
@@ -1,203 +1,203 @@
|
|
|
1
|
-
.swal2-popup {
|
|
2
|
-
&.swal2-toast {
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
grid-column: 1/4 !important;
|
|
5
|
-
grid-row: 1/4 !important;
|
|
6
|
-
grid-template-columns: 1fr 99fr 1fr;
|
|
7
|
-
padding: $swal2-toast-padding;
|
|
8
|
-
overflow-y: hidden;
|
|
9
|
-
background: $swal2-toast-background;
|
|
10
|
-
box-shadow: $swal2-toast-box-shadow;
|
|
11
|
-
pointer-events: all;
|
|
12
|
-
|
|
13
|
-
> * {
|
|
14
|
-
grid-column: 2;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.swal2-title {
|
|
18
|
-
margin: $swal2-toast-title-margin;
|
|
19
|
-
padding: $swal2-toast-title-padding;
|
|
20
|
-
font-size: $swal2-toast-title-font-size;
|
|
21
|
-
text-align: initial;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.swal2-loading {
|
|
25
|
-
justify-content: center;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.swal2-input {
|
|
29
|
-
height: $swal2-toast-input-height;
|
|
30
|
-
margin: $swal2-toast-input-margin;
|
|
31
|
-
font-size: $swal2-toast-input-font-size;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.swal2-validation-message {
|
|
35
|
-
font-size: $swal2-toast-validation-font-size;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.swal2-footer {
|
|
39
|
-
margin: $swal2-toast-footer-margin;
|
|
40
|
-
padding: $swal2-toast-footer-margin;
|
|
41
|
-
font-size: $swal2-toast-footer-font-size;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.swal2-close {
|
|
45
|
-
grid-column: 3/3;
|
|
46
|
-
grid-row: 1/99;
|
|
47
|
-
align-self: center;
|
|
48
|
-
width: $swal2-toast-close-button-width;
|
|
49
|
-
height: $swal2-toast-close-button-height;
|
|
50
|
-
margin: $swal2-toast-close-button-margin;
|
|
51
|
-
font-size: $swal2-toast-close-button-font-size;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.swal2-html-container {
|
|
55
|
-
margin: $swal2-toast-html-container-margin;
|
|
56
|
-
padding: $swal2-toast-html-container-padding;
|
|
57
|
-
font-size: $swal2-toast-html-container-font-size;
|
|
58
|
-
text-align: initial;
|
|
59
|
-
|
|
60
|
-
&:empty {
|
|
61
|
-
padding: 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.swal2-loader {
|
|
66
|
-
grid-column: 1;
|
|
67
|
-
grid-row: 1/99;
|
|
68
|
-
align-self: center;
|
|
69
|
-
width: 2em;
|
|
70
|
-
height: 2em;
|
|
71
|
-
margin: 0.25em;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.swal2-icon {
|
|
75
|
-
grid-column: 1;
|
|
76
|
-
grid-row: 1/99;
|
|
77
|
-
align-self: center;
|
|
78
|
-
width: 2em;
|
|
79
|
-
min-width: 2em;
|
|
80
|
-
height: 2em;
|
|
81
|
-
margin: 0 0.5em 0 0;
|
|
82
|
-
|
|
83
|
-
.swal2-icon-content {
|
|
84
|
-
display: flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
font-size: $swal2-toast-icon-font-size;
|
|
87
|
-
font-weight: bold;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&.swal2-success {
|
|
91
|
-
.swal2-success-ring {
|
|
92
|
-
width: 2em;
|
|
93
|
-
height: 2em;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.swal2-error {
|
|
98
|
-
[class^='swal2-x-mark-line'] {
|
|
99
|
-
top: 0.875em;
|
|
100
|
-
width: 1.375em;
|
|
101
|
-
|
|
102
|
-
&[class$='left'] {
|
|
103
|
-
left: 0.3125em;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&[class$='right'] {
|
|
107
|
-
right: 0.3125em;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.swal2-actions {
|
|
114
|
-
justify-content: flex-start;
|
|
115
|
-
height: auto;
|
|
116
|
-
margin: 0;
|
|
117
|
-
margin-top: 0.5em;
|
|
118
|
-
padding: 0 0.5em;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.swal2-styled {
|
|
122
|
-
margin: 0.25em 0.5em;
|
|
123
|
-
padding: 0.4em 0.6em;
|
|
124
|
-
font-size: $swal2-toast-buttons-font-size;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.swal2-success {
|
|
128
|
-
border-color: $swal2-success;
|
|
129
|
-
|
|
130
|
-
[class^='swal2-success-circular-line'] {
|
|
131
|
-
// Emulate moving circular line
|
|
132
|
-
position: absolute;
|
|
133
|
-
width: 1.6em;
|
|
134
|
-
height: 3em;
|
|
135
|
-
transform: rotate(45deg);
|
|
136
|
-
border-radius: 50%;
|
|
137
|
-
|
|
138
|
-
&[class$='left'] {
|
|
139
|
-
top: -0.8em;
|
|
140
|
-
left: -0.5em;
|
|
141
|
-
transform: rotate(-45deg);
|
|
142
|
-
transform-origin: 2em 2em;
|
|
143
|
-
border-radius: 4em 0 0 4em;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&[class$='right'] {
|
|
147
|
-
top: -0.25em;
|
|
148
|
-
left: 0.9375em;
|
|
149
|
-
transform-origin: 0 1.5em;
|
|
150
|
-
border-radius: 0 4em 4em 0;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.swal2-success-ring {
|
|
155
|
-
width: 2em;
|
|
156
|
-
height: 2em;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.swal2-success-fix {
|
|
160
|
-
top: 0;
|
|
161
|
-
left: 0.4375em;
|
|
162
|
-
width: 0.4375em;
|
|
163
|
-
height: 2.6875em;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
[class^='swal2-success-line'] {
|
|
167
|
-
height: 0.3125em;
|
|
168
|
-
|
|
169
|
-
&[class$='tip'] {
|
|
170
|
-
top: 1.125em;
|
|
171
|
-
left: 0.1875em;
|
|
172
|
-
width: 0.75em;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&[class$='long'] {
|
|
176
|
-
top: 0.9375em;
|
|
177
|
-
right: 0.1875em;
|
|
178
|
-
width: 1.375em;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&.swal2-icon-show {
|
|
183
|
-
@if $swal2-icon-animations {
|
|
184
|
-
.swal2-success-line-tip {
|
|
185
|
-
animation: swal2-toast-animate-success-line-tip 0.75s;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.swal2-success-line-long {
|
|
189
|
-
animation: swal2-toast-animate-success-line-long 0.75s;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&.swal2-show {
|
|
196
|
-
animation: $swal2-toast-show-animation;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&.swal2-hide {
|
|
200
|
-
animation: $swal2-toast-hide-animation;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
1
|
+
.swal2-popup {
|
|
2
|
+
&.swal2-toast {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
grid-column: 1/4 !important;
|
|
5
|
+
grid-row: 1/4 !important;
|
|
6
|
+
grid-template-columns: 1fr 99fr 1fr;
|
|
7
|
+
padding: $swal2-toast-padding;
|
|
8
|
+
overflow-y: hidden;
|
|
9
|
+
background: $swal2-toast-background;
|
|
10
|
+
box-shadow: $swal2-toast-box-shadow;
|
|
11
|
+
pointer-events: all;
|
|
12
|
+
|
|
13
|
+
> * {
|
|
14
|
+
grid-column: 2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.swal2-title {
|
|
18
|
+
margin: $swal2-toast-title-margin;
|
|
19
|
+
padding: $swal2-toast-title-padding;
|
|
20
|
+
font-size: $swal2-toast-title-font-size;
|
|
21
|
+
text-align: initial;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.swal2-loading {
|
|
25
|
+
justify-content: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.swal2-input {
|
|
29
|
+
height: $swal2-toast-input-height;
|
|
30
|
+
margin: $swal2-toast-input-margin;
|
|
31
|
+
font-size: $swal2-toast-input-font-size;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.swal2-validation-message {
|
|
35
|
+
font-size: $swal2-toast-validation-font-size;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.swal2-footer {
|
|
39
|
+
margin: $swal2-toast-footer-margin;
|
|
40
|
+
padding: $swal2-toast-footer-margin;
|
|
41
|
+
font-size: $swal2-toast-footer-font-size;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.swal2-close {
|
|
45
|
+
grid-column: 3/3;
|
|
46
|
+
grid-row: 1/99;
|
|
47
|
+
align-self: center;
|
|
48
|
+
width: $swal2-toast-close-button-width;
|
|
49
|
+
height: $swal2-toast-close-button-height;
|
|
50
|
+
margin: $swal2-toast-close-button-margin;
|
|
51
|
+
font-size: $swal2-toast-close-button-font-size;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.swal2-html-container {
|
|
55
|
+
margin: $swal2-toast-html-container-margin;
|
|
56
|
+
padding: $swal2-toast-html-container-padding;
|
|
57
|
+
font-size: $swal2-toast-html-container-font-size;
|
|
58
|
+
text-align: initial;
|
|
59
|
+
|
|
60
|
+
&:empty {
|
|
61
|
+
padding: 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.swal2-loader {
|
|
66
|
+
grid-column: 1;
|
|
67
|
+
grid-row: 1/99;
|
|
68
|
+
align-self: center;
|
|
69
|
+
width: 2em;
|
|
70
|
+
height: 2em;
|
|
71
|
+
margin: 0.25em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.swal2-icon {
|
|
75
|
+
grid-column: 1;
|
|
76
|
+
grid-row: 1/99;
|
|
77
|
+
align-self: center;
|
|
78
|
+
width: 2em;
|
|
79
|
+
min-width: 2em;
|
|
80
|
+
height: 2em;
|
|
81
|
+
margin: 0 0.5em 0 0;
|
|
82
|
+
|
|
83
|
+
.swal2-icon-content {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
font-size: $swal2-toast-icon-font-size;
|
|
87
|
+
font-weight: bold;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.swal2-success {
|
|
91
|
+
.swal2-success-ring {
|
|
92
|
+
width: 2em;
|
|
93
|
+
height: 2em;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.swal2-error {
|
|
98
|
+
[class^='swal2-x-mark-line'] {
|
|
99
|
+
top: 0.875em;
|
|
100
|
+
width: 1.375em;
|
|
101
|
+
|
|
102
|
+
&[class$='left'] {
|
|
103
|
+
left: 0.3125em;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&[class$='right'] {
|
|
107
|
+
right: 0.3125em;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.swal2-actions {
|
|
114
|
+
justify-content: flex-start;
|
|
115
|
+
height: auto;
|
|
116
|
+
margin: 0;
|
|
117
|
+
margin-top: 0.5em;
|
|
118
|
+
padding: 0 0.5em;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.swal2-styled {
|
|
122
|
+
margin: 0.25em 0.5em;
|
|
123
|
+
padding: 0.4em 0.6em;
|
|
124
|
+
font-size: $swal2-toast-buttons-font-size;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.swal2-success {
|
|
128
|
+
border-color: $swal2-success;
|
|
129
|
+
|
|
130
|
+
[class^='swal2-success-circular-line'] {
|
|
131
|
+
// Emulate moving circular line
|
|
132
|
+
position: absolute;
|
|
133
|
+
width: 1.6em;
|
|
134
|
+
height: 3em;
|
|
135
|
+
transform: rotate(45deg);
|
|
136
|
+
border-radius: 50%;
|
|
137
|
+
|
|
138
|
+
&[class$='left'] {
|
|
139
|
+
top: -0.8em;
|
|
140
|
+
left: -0.5em;
|
|
141
|
+
transform: rotate(-45deg);
|
|
142
|
+
transform-origin: 2em 2em;
|
|
143
|
+
border-radius: 4em 0 0 4em;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&[class$='right'] {
|
|
147
|
+
top: -0.25em;
|
|
148
|
+
left: 0.9375em;
|
|
149
|
+
transform-origin: 0 1.5em;
|
|
150
|
+
border-radius: 0 4em 4em 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.swal2-success-ring {
|
|
155
|
+
width: 2em;
|
|
156
|
+
height: 2em;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.swal2-success-fix {
|
|
160
|
+
top: 0;
|
|
161
|
+
left: 0.4375em;
|
|
162
|
+
width: 0.4375em;
|
|
163
|
+
height: 2.6875em;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[class^='swal2-success-line'] {
|
|
167
|
+
height: 0.3125em;
|
|
168
|
+
|
|
169
|
+
&[class$='tip'] {
|
|
170
|
+
top: 1.125em;
|
|
171
|
+
left: 0.1875em;
|
|
172
|
+
width: 0.75em;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&[class$='long'] {
|
|
176
|
+
top: 0.9375em;
|
|
177
|
+
right: 0.1875em;
|
|
178
|
+
width: 1.375em;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&.swal2-icon-show {
|
|
183
|
+
@if $swal2-icon-animations {
|
|
184
|
+
.swal2-success-line-tip {
|
|
185
|
+
animation: swal2-toast-animate-success-line-tip 0.75s;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.swal2-success-line-long {
|
|
189
|
+
animation: swal2-toast-animate-success-line-long 0.75s;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.swal2-show {
|
|
196
|
+
animation: $swal2-toast-show-animation;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&.swal2-hide {
|
|
200
|
+
animation: $swal2-toast-hide-animation;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
package/src/ts-helpers.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ComponentCustomProps,
|
|
3
|
-
VNodeProps,
|
|
4
|
-
EmitsOptions,
|
|
5
2
|
AllowedComponentProps,
|
|
3
|
+
ComponentCustomProps,
|
|
6
4
|
ObjectEmitsOptions,
|
|
5
|
+
VNode,
|
|
6
|
+
VNodeProps,
|
|
7
7
|
} from "vue";
|
|
8
8
|
|
|
9
9
|
declare type PublicProps = VNodeProps &
|
|
@@ -33,11 +33,7 @@ declare type EmitFn<
|
|
|
33
33
|
}[Event]
|
|
34
34
|
>;
|
|
35
35
|
|
|
36
|
-
export class ClassComponent<
|
|
37
|
-
Props,
|
|
38
|
-
Slots,
|
|
39
|
-
Emits extends EmitsOptions = {}
|
|
40
|
-
> {
|
|
36
|
+
export class ClassComponent<Props, Slots, Emits> {
|
|
41
37
|
$props: Props & PublicProps;
|
|
42
38
|
$slots: Slots;
|
|
43
39
|
$emit: EmitFn<Emits>;
|
|
@@ -54,4 +50,8 @@ export declare type Booleanish = boolean | "true" | "false";
|
|
|
54
50
|
|
|
55
51
|
export declare type Numberish = number | string;
|
|
56
52
|
|
|
57
|
-
export declare type Nullable<T = void> = T | null;
|
|
53
|
+
export declare type Nullable<T = void> = T | null | undefined;
|
|
54
|
+
|
|
55
|
+
export declare type HintedString<T extends string> =
|
|
56
|
+
| (string & {})
|
|
57
|
+
| T;
|
package/tsconfig.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"module": "ESNext",
|
|
5
5
|
"target": "ESNext",
|
|
6
6
|
"moduleResolution": "node",
|
|
7
|
-
"outDir": "
|
|
7
|
+
"outDir": "dist",
|
|
8
8
|
"declaration": true,
|
|
9
9
|
"strict": true,
|
|
10
10
|
"esModuleInterop": true,
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"jsx": "preserve"
|
|
17
17
|
},
|
|
18
18
|
"include": ["src"],
|
|
19
|
-
"exclude": ["src/App.vue"]
|
|
19
|
+
"exclude": ["node_modules", "dist", "src/App.vue"]
|
|
20
20
|
}
|
package/vite.config.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineConfig } from "vite";
|
|
2
2
|
import vue from "@vitejs/plugin-vue";
|
|
3
|
-
import vueTypeImports from "vite-plugin-vue-type-imports";
|
|
4
3
|
import dts from "vite-plugin-dts";
|
|
5
4
|
import path from "path";
|
|
6
|
-
import sourcemaps from
|
|
5
|
+
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
7
6
|
|
|
8
7
|
// https://vitejs.dev/config/
|
|
9
8
|
export default defineConfig({
|
|
10
9
|
build: {
|
|
11
10
|
lib: {
|
|
12
11
|
entry: path.resolve(__dirname, "src/index.ts"),
|
|
13
|
-
name: "
|
|
14
|
-
fileName: (format) =>
|
|
12
|
+
name: "sf.prefeiturasp.vuecomponents",
|
|
13
|
+
fileName: (format) =>
|
|
14
|
+
`sf.prefeiturasp.vuecomponents.${format}.js`,
|
|
15
15
|
},
|
|
16
16
|
rollupOptions: {
|
|
17
17
|
plugins: [sourcemaps()],
|
|
@@ -24,5 +24,5 @@ export default defineConfig({
|
|
|
24
24
|
},
|
|
25
25
|
sourcemap: true,
|
|
26
26
|
},
|
|
27
|
-
plugins: [vue(),
|
|
27
|
+
plugins: [vue(), dts({ cleanVueFileName: true })],
|
|
28
28
|
});
|
package/dist/enum/cor.d.ts
DELETED
package/dist/enum/index.d.ts
DELETED