@policystudio/policy-studio-ui-vue 1.2.0-access.2 → 1.2.0-access.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.
- package/dist/css/psui_styles_output.css +585 -325
- package/doc/src/stories/Button.stories.ts +95 -73
- package/doc/src/stories/DropdownList.stories.ts +2 -2
- package/doc/src/stories/Typography.mdx +14 -14
- package/package.json +1 -1
- package/src/assets/scss/components/PsAccordion.scss +19 -28
- package/src/assets/scss/components/PsButton.scss +128 -91
- package/src/assets/scss/components/PsCardInfos.scss +1 -1
- package/src/assets/scss/components/PsChartLegend.scss +2 -2
- package/src/assets/scss/components/PsCheckbox.scss +2 -2
- package/src/assets/scss/components/PsChips.scss +1 -1
- package/src/assets/scss/components/PsCollapse.scss +1 -1
- package/src/assets/scss/components/PsDataTable.scss +1 -1
- package/src/assets/scss/components/PsDateCardInfo.scss +7 -4
- package/src/assets/scss/components/PsDialog.scss +2 -2
- package/src/assets/scss/components/PsDraggable.scss +1 -1
- package/src/assets/scss/components/PsDropdownList.scss +2 -2
- package/src/assets/scss/components/PsInlineSelector.scss +3 -3
- package/src/assets/scss/components/PsInput.scss +2 -2
- package/src/assets/scss/components/PsInputSelect.scss +2 -2
- package/src/assets/scss/components/PsInputTextArea.scss +3 -3
- package/src/assets/scss/components/PsMiniTag.scss +25 -30
- package/src/assets/scss/components/PsRadioButton.scss +2 -2
- package/src/assets/scss/components/PsSlider.scss +1 -1
- package/src/assets/scss/components/PsTabHeader.scss +134 -134
- package/src/assets/scss/components/PsTableResults.scss +12 -12
- package/src/assets/scss/components/PsTestimonialCard.scss +3 -3
- package/src/assets/scss/components/PsToast.scss +1 -1
- package/src/assets/scss/components/PsToggle.scss +1 -1
- package/src/assets/scss/components/_PsTableResults.scss +3 -3
- package/src/components/badges-and-tags/PsDateCardInfo.vue +16 -5
- package/src/components/badges-and-tags/PsMiniTag.vue +5 -5
- package/src/components/buttons/PsButton.vue +111 -20
- package/src/components/navigations/PsBreadcrumb.vue +1 -1
- package/src/components/table-results/PsTableResults.vue +2 -2
- package/src/components/ui/PsIcon.vue +10 -5
- package/tailwind.config.js +70 -87
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
@layer components{
|
|
2
|
-
|
|
1
|
+
@layer components {
|
|
3
2
|
.psui-el-tab-header {
|
|
4
|
-
@apply psui-flex;
|
|
3
|
+
@apply psui-flex psui-space-x-1;
|
|
5
4
|
|
|
6
5
|
button {
|
|
7
|
-
@apply transition-default psui-text-
|
|
8
|
-
|
|
6
|
+
@apply transition-default psui-text-14;
|
|
7
|
+
|
|
9
8
|
&.status-disabled {
|
|
10
9
|
@apply psui-cursor-not-allowed;
|
|
11
10
|
}
|
|
@@ -15,184 +14,185 @@
|
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
&:focus-visible {
|
|
18
|
-
outline: 2px solid #
|
|
19
|
-
outline-offset: 2px;
|
|
20
|
-
border-radius: 6px;
|
|
17
|
+
outline: 2px solid #2563eb;
|
|
18
|
+
outline-offset: 2px;
|
|
19
|
+
border-radius: 6px;
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
&.status-disabled {
|
|
25
24
|
.psui-el-input-wrapper {
|
|
26
|
-
@apply psui-bg-gray-20 psui-border-gray-20
|
|
25
|
+
@apply psui-bg-gray-20 psui-border-gray-20;
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
/* Layout Policy Design */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@apply psui-text-gray-60;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.status-active {
|
|
54
|
-
@apply psui-border-blue-60;
|
|
55
|
-
|
|
56
|
-
&:after {
|
|
57
|
-
@apply psui-opacity-100;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
> div {
|
|
61
|
-
@apply psui-text-blue-60;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
> span {
|
|
65
|
-
@apply psui-font-bold psui-text-gray-70;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
> div {
|
|
70
|
-
@apply psui-text-gray-50 psui-mr-1;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
> span {
|
|
74
|
-
line-height: 120%;
|
|
75
|
-
font-size: 14px;
|
|
76
|
-
@apply psui-text-gray-60 psui-font-bold;
|
|
77
|
-
}
|
|
30
|
+
&.layout-policy-design {
|
|
31
|
+
button {
|
|
32
|
+
padding: 8px 2px 7px 0px;
|
|
33
|
+
margin-right: 8px;
|
|
34
|
+
@apply psui-flex psui-items-center psui-relative;
|
|
35
|
+
|
|
36
|
+
&:not(:first-child) {
|
|
37
|
+
margin-left: 8px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:after {
|
|
41
|
+
content: '';
|
|
42
|
+
@apply psui-transition-all psui-h-[3px] psui-block psui-w-full psui-absolute psui-bottom-0 psui-left-0 psui-opacity-0 psui-bg-blue-60;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:hover {
|
|
46
|
+
> div {
|
|
47
|
+
@apply psui-text-gray-60;
|
|
78
48
|
}
|
|
79
49
|
}
|
|
80
|
-
|
|
81
50
|
|
|
51
|
+
&.status-active {
|
|
52
|
+
@apply psui-border-blue-60;
|
|
53
|
+
|
|
54
|
+
&:after {
|
|
55
|
+
@apply psui-opacity-100;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
> div {
|
|
59
|
+
@apply psui-text-blue-60;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
> span {
|
|
63
|
+
@apply psui-font-bold psui-text-gray-70;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
> div {
|
|
68
|
+
@apply psui-text-gray-50 psui-mr-1;
|
|
69
|
+
}
|
|
82
70
|
|
|
71
|
+
> span {
|
|
72
|
+
line-height: 120%;
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
@apply psui-text-gray-60 psui-font-bold;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
83
78
|
/* ----------------------------------------- */
|
|
84
79
|
|
|
85
80
|
/* Layout Standard */
|
|
86
81
|
/* ----------------------------------------- */
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
&.layout-standard {
|
|
83
|
+
@apply psui-rounded-md;
|
|
89
84
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
85
|
+
.psui-el-tooltip {
|
|
86
|
+
&:not(:last-child) {
|
|
87
|
+
margin-right: 20px;
|
|
94
88
|
}
|
|
95
|
-
|
|
96
|
-
button {
|
|
97
|
-
@apply psui-bg-gray-10 psui-text-gray-60;
|
|
98
|
-
padding: 6px 12px;
|
|
99
|
-
box-shadow: inset 0px 0px 8px rgba(40, 50, 59, 0.05);
|
|
89
|
+
}
|
|
100
90
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
91
|
+
button {
|
|
92
|
+
@apply psui-bg-gray-10 psui-text-gray-60;
|
|
93
|
+
padding: 6px 12px;
|
|
94
|
+
box-shadow: inset 0px 0px 8px rgba(40, 50, 59, 0.05);
|
|
104
95
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
96
|
+
&:not(:last-child) {
|
|
97
|
+
margin-right: 1px;
|
|
98
|
+
}
|
|
108
99
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
100
|
+
&:first-child {
|
|
101
|
+
@apply psui-rounded-l;
|
|
102
|
+
}
|
|
112
103
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
104
|
+
&:last-child {
|
|
105
|
+
@apply psui-rounded-r;
|
|
106
|
+
}
|
|
117
107
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
108
|
+
&:hover {
|
|
109
|
+
@apply psui-text-blue-60;
|
|
110
|
+
box-shadow: inset 0px 0px 8px rgba(40, 50, 59, 0.05);
|
|
111
|
+
}
|
|
121
112
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
113
|
+
&.status-active {
|
|
114
|
+
@apply psui-text-white psui-bg-blue-60 psui-font-bold;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.status-disabled:hover {
|
|
118
|
+
@apply psui-text-gray-60;
|
|
125
119
|
}
|
|
126
120
|
}
|
|
121
|
+
}
|
|
127
122
|
/* ----------------------------------------- Layout Standard */
|
|
128
|
-
|
|
123
|
+
|
|
129
124
|
/* Layout Underline */
|
|
130
125
|
/* ----------------------------------------- */
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
126
|
+
&.layout-underline {
|
|
127
|
+
.psui-el-tooltip {
|
|
128
|
+
&:not(:last-child) {
|
|
129
|
+
margin-right: 20px;
|
|
136
130
|
}
|
|
131
|
+
}
|
|
137
132
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
padding: 11.5px 0;
|
|
133
|
+
button {
|
|
134
|
+
@apply psui-text-gray-80 psui-font-semibold psui-relative;
|
|
135
|
+
padding: 8px 0;
|
|
142
136
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
137
|
+
&:hover {
|
|
138
|
+
@apply psui-text-blue-60;
|
|
139
|
+
}
|
|
146
140
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
141
|
+
&:not(:last-child) {
|
|
142
|
+
margin-right: 8px;
|
|
143
|
+
}
|
|
150
144
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
&.status-enable:hover {
|
|
146
|
+
@apply psui-text-blue-60;
|
|
147
|
+
}
|
|
154
148
|
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
&.status-active {
|
|
150
|
+
&::after {
|
|
151
|
+
@apply psui-content-['']
|
|
152
|
+
psui-absolute
|
|
153
|
+
psui-bottom-0
|
|
154
|
+
psui-left-0
|
|
155
|
+
psui-w-full
|
|
156
|
+
psui-h-[3px]
|
|
157
|
+
psui-rounded-tl-[20px]
|
|
158
|
+
psui-rounded-tr-[20px]
|
|
159
|
+
psui-bg-blue-60;
|
|
157
160
|
}
|
|
158
161
|
}
|
|
159
162
|
}
|
|
163
|
+
}
|
|
160
164
|
/* ----------------------------------------- Layout Underline */
|
|
161
|
-
|
|
162
|
-
|
|
165
|
+
|
|
163
166
|
/* Layout Folder */
|
|
164
167
|
/* ----------------------------------------- */
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
margin-right: 20px;
|
|
170
|
-
}
|
|
168
|
+
&.layout-folder {
|
|
169
|
+
.psui-el-tooltip {
|
|
170
|
+
&:not(:last-child) {
|
|
171
|
+
margin-right: 20px;
|
|
171
172
|
}
|
|
173
|
+
}
|
|
172
174
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
175
|
+
button {
|
|
176
|
+
@apply psui-bg-gray-10 psui-text-gray-50 psui-rounded-t;
|
|
177
|
+
padding: 9px 12px;
|
|
176
178
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
&:hover {
|
|
180
|
+
@apply psui-text-blue-60;
|
|
181
|
+
}
|
|
180
182
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
&:not(:last-child) {
|
|
184
|
+
margin-right: 4px;
|
|
185
|
+
}
|
|
184
186
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
&.status-enable:hover {
|
|
188
|
+
@apply psui-text-gray-60;
|
|
189
|
+
}
|
|
188
190
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
191
|
+
&.status-active {
|
|
192
|
+
@apply psui-text-blue-60 psui-font-bold psui-bg-white;
|
|
192
193
|
}
|
|
193
194
|
}
|
|
195
|
+
}
|
|
194
196
|
/* ----------------------------------------- Layout Folder */
|
|
195
|
-
|
|
196
197
|
}
|
|
197
|
-
|
|
198
|
-
}
|
|
198
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.psui-el-table-results {
|
|
11
|
-
@apply psui-relative psui-align-top psui-w-full psui-max-w-full psui-text-
|
|
11
|
+
@apply psui-relative psui-align-top psui-w-full psui-max-w-full psui-text-16;
|
|
12
12
|
|
|
13
13
|
.is-warning-column {
|
|
14
14
|
padding-right: 12px;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
tr {
|
|
47
47
|
.title {
|
|
48
|
-
@apply psui-text-
|
|
48
|
+
@apply psui-text-14 psui-font-bold psui-leading-4 psui-text-gray-80;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
th {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
p {
|
|
86
|
-
@apply psui-text-
|
|
86
|
+
@apply psui-text-16;
|
|
87
87
|
line-height: 18px;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
td {
|
|
109
|
-
@apply psui-pl-8 psui-text-gray-80 psui-h-10 psui-text-right psui-text-
|
|
109
|
+
@apply psui-pl-8 psui-text-gray-80 psui-h-10 psui-text-right psui-text-14;
|
|
110
110
|
padding-top: 0.688rem;
|
|
111
111
|
padding-bottom: 0.688rem;
|
|
112
112
|
min-height: 41.5px;
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
|
|
178
178
|
tr {
|
|
179
179
|
.title {
|
|
180
|
-
@apply psui-text-
|
|
180
|
+
@apply psui-text-14 psui-font-bold psui-leading-4 psui-text-gray-80;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
th {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
|
|
211
211
|
&:first-of-type {
|
|
212
212
|
th {
|
|
213
|
-
@apply psui-text-left psui-text-gray-50 psui-text-
|
|
213
|
+
@apply psui-text-left psui-text-gray-50 psui-text-16 psui-px-6;
|
|
214
214
|
padding-top: 7px;
|
|
215
215
|
padding-bottom: 7px;
|
|
216
216
|
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
p {
|
|
245
|
-
@apply psui-text-
|
|
245
|
+
@apply psui-text-14;
|
|
246
246
|
line-height: 18px;
|
|
247
247
|
|
|
248
248
|
&.title {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
.title {
|
|
270
|
-
@apply psui-text-
|
|
270
|
+
@apply psui-text-14 psui-text-gray-80 psui-font-bold psui-truncate psui-leading-none psui-ml-1;
|
|
271
271
|
width: 144px;
|
|
272
272
|
}
|
|
273
273
|
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
|
|
374
374
|
tr {
|
|
375
375
|
.title {
|
|
376
|
-
@apply psui-text-
|
|
376
|
+
@apply psui-text-14 psui-leading-4;
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
th {
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
p {
|
|
434
|
-
@apply psui-text-
|
|
434
|
+
@apply psui-text-16;
|
|
435
435
|
line-height: 18px;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
|
|
517
517
|
|
|
518
518
|
td {
|
|
519
|
-
@apply psui-text-gray-70 psui-h-[32px] psui-text-right psui-text-
|
|
519
|
+
@apply psui-text-gray-70 psui-h-[32px] psui-text-right psui-text-14;
|
|
520
520
|
|
|
521
521
|
&.hover-color {
|
|
522
522
|
background-color: #ECF7FB !important;
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
padding-bottom: 9px;
|
|
737
737
|
|
|
738
738
|
.title {
|
|
739
|
-
@apply psui-text-
|
|
739
|
+
@apply psui-text-14 psui-text-gray-50;
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&-description {
|
|
13
|
-
@apply psui-text-
|
|
13
|
+
@apply psui-text-16 psui-text-blue-80 psui-italic psui-leading-6;
|
|
14
14
|
margin-bottom: 33px;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
@apply psui-flex psui-flex-col psui-mt-auto;
|
|
19
19
|
|
|
20
20
|
&-user {
|
|
21
|
-
@apply psui-mb-1 psui-text-blue-80 psui-text-
|
|
21
|
+
@apply psui-mb-1 psui-text-blue-80 psui-text-14 psui-font-bold;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&-position,
|
|
25
25
|
&-jurisdiction {
|
|
26
|
-
@apply psui-text-gray-
|
|
26
|
+
@apply psui-text-gray-60 psui-text-14 psui-leading-[130%];
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.psui-el-toast {
|
|
3
|
-
@apply psui-flex psui-items-center psui-text-
|
|
3
|
+
@apply psui-flex psui-items-center psui-text-16 psui-text-white psui-py-3 psui-px-4 psui-rounded-md psui-font-bold psui-shadow-elevation-20;
|
|
4
4
|
|
|
5
5
|
&:focus {
|
|
6
6
|
outline: none;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
border-radius: 4px;
|
|
8
8
|
|
|
9
9
|
button {
|
|
10
|
-
@apply transition-default psui-inline-flex psui-text-
|
|
10
|
+
@apply transition-default psui-inline-flex psui-text-14 psui-bg-gray-10 psui-text-blue-60 psui-outline-none psui-align-middle;
|
|
11
11
|
border-radius: 4px;
|
|
12
12
|
padding:1px 8px;
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer components{
|
|
2
2
|
|
|
3
3
|
.psui-el-table-results {
|
|
4
|
-
@apply .psui-w-full psui-overflow-auto
|
|
4
|
+
@apply .psui-w-full psui-overflow-auto psui-text-14;
|
|
5
5
|
|
|
6
6
|
&-header,
|
|
7
7
|
&-row {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
.title {
|
|
16
|
-
@apply
|
|
16
|
+
@apply psui-text-16 .psui-font-bold .psui-text-gray-80 .psui-border-b .psui-border-gray-30;
|
|
17
17
|
padding-top: 0.688rem;
|
|
18
18
|
padding-bottom: 0.688rem;
|
|
19
19
|
}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
h6 {
|
|
32
|
-
@apply
|
|
32
|
+
@apply psui-text-14 .psui-font-bold .psui-text-gray-80 .psui-leading-4;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
p {
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="psui-el-date-card">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<div class="psui-el-date-card-month-day">
|
|
4
|
+
<span>
|
|
5
|
+
{{ getMonth }}
|
|
6
|
+
</span>
|
|
7
|
+
<span>
|
|
8
|
+
{{ getDay }}
|
|
9
|
+
</span>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
6
12
|
<span class="psui-el-date-card-year">
|
|
7
13
|
{{ getYearFromDate }}
|
|
8
14
|
</span>
|
|
@@ -19,11 +25,16 @@ const props = defineProps({
|
|
|
19
25
|
},
|
|
20
26
|
})
|
|
21
27
|
|
|
22
|
-
const
|
|
23
|
-
const options = { month: 'short'
|
|
28
|
+
const getMonth= computed(() => {
|
|
29
|
+
const options = { month: 'short'}
|
|
24
30
|
return new Date(props.date)?.toLocaleString('default', options).replace('.', '')
|
|
25
31
|
})
|
|
26
32
|
|
|
33
|
+
const getDay = computed(() => {
|
|
34
|
+
const options = { day: '2-digit' }
|
|
35
|
+
return new Date(props.date)?.toLocaleString('default', options)
|
|
36
|
+
})
|
|
37
|
+
|
|
27
38
|
const getYearFromDate = computed(() => {
|
|
28
39
|
return new Date(props.date)?.toLocaleString('default', { year: 'numeric' })
|
|
29
40
|
})
|
|
@@ -23,11 +23,11 @@ const props = defineProps({
|
|
|
23
23
|
'warning',
|
|
24
24
|
'error',
|
|
25
25
|
'default',
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
26
|
+
'dark-info',
|
|
27
|
+
'dark-success',
|
|
28
|
+
'dark-warning',
|
|
29
|
+
'dark-error',
|
|
30
|
+
'dark-default'
|
|
31
31
|
].indexOf(value) !== -1,
|
|
32
32
|
},
|
|
33
33
|
/**
|