@bagelink/vue 0.0.542 → 0.0.546
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/Popover.vue.d.ts +10 -0
- package/dist/components/Popover.vue.d.ts.map +1 -0
- package/dist/components/form/ItemRef.vue.d.ts +0 -1
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts +22 -0
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/formatting.d.ts +5 -0
- package/dist/components/form/inputs/RichText2/formatting.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/index.vue.d.ts +24 -0
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/richtext-types.d.ts +3 -0
- package/dist/components/form/inputs/RichText2/richtext-types.d.ts.map +1 -0
- package/dist/components/form/inputs/SelectField.vue.d.ts +4 -1
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +1 -0
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/index.cjs +4088 -3680
- package/dist/index.mjs +4088 -3680
- package/dist/style.css +318 -70
- package/dist/types/materialIcon.d.ts +2 -0
- package/dist/types/materialIcon.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/Btn.vue +1 -1
- package/src/components/form/inputs/RichText2/Toolbar.vue +106 -0
- package/src/components/form/inputs/RichText2/formatting.ts +194 -0
- package/src/components/form/inputs/RichText2/index.vue +204 -0
- package/src/components/form/inputs/RichText2/richtext-types.ts +25 -0
- package/src/components/form/inputs/TelInput.vue +1 -1
- package/src/components/form/inputs/index.ts +1 -0
- package/src/styles/layout.css +91 -6
- package/src/styles/mobilLayout.css +97 -8
- package/src/styles/text.css +28 -4
- package/src/styles/theme.css +1 -0
- package/dist/components/Drop.vue.d.ts +0 -34
- package/dist/components/Drop.vue.d.ts.map +0 -1
- package/dist/components/FileUploader.vue.d.ts +0 -60
- package/dist/components/FileUploader.vue.d.ts.map +0 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { onMounted, watch } from 'vue'
|
|
3
|
+
import Toolbar from './Toolbar.vue'
|
|
4
|
+
import type { ToolbarConfig } from './richtext-types'
|
|
5
|
+
import { applyFormatting } from './formatting'
|
|
6
|
+
|
|
7
|
+
const props = defineProps<{ modelValue: string, toolbarConfig?: ToolbarConfig }>()
|
|
8
|
+
const emit = defineEmits(['update:modelValue'])
|
|
9
|
+
|
|
10
|
+
const editableContent = $ref<HTMLElement | null>(null)
|
|
11
|
+
const defaultConfig: ToolbarConfig = [
|
|
12
|
+
'bold',
|
|
13
|
+
'italic',
|
|
14
|
+
'underline',
|
|
15
|
+
'fontSize',
|
|
16
|
+
'fontFamily',
|
|
17
|
+
'textColor',
|
|
18
|
+
'backgroundColor',
|
|
19
|
+
'alignLeft',
|
|
20
|
+
'alignCenter',
|
|
21
|
+
'alignRight',
|
|
22
|
+
'alignJustify',
|
|
23
|
+
'orderedList',
|
|
24
|
+
'unorderedList',
|
|
25
|
+
'indent',
|
|
26
|
+
'outdent',
|
|
27
|
+
'link',
|
|
28
|
+
'image',
|
|
29
|
+
'table',
|
|
30
|
+
'blockquote',
|
|
31
|
+
'codeBlock',
|
|
32
|
+
'splitView',
|
|
33
|
+
'codeView'
|
|
34
|
+
]
|
|
35
|
+
const config = $ref<ToolbarConfig>(props.toolbarConfig || defaultConfig)
|
|
36
|
+
let contentHtml = $ref(props.modelValue)
|
|
37
|
+
let isCodeView = $ref(false)
|
|
38
|
+
let isSplitView = $ref(false)
|
|
39
|
+
|
|
40
|
+
function updateContent() {
|
|
41
|
+
if (!isCodeView) {
|
|
42
|
+
contentHtml = editableContent?.innerHTML ?? ''
|
|
43
|
+
}
|
|
44
|
+
emit('update:modelValue', contentHtml)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function handleToolbarAction(action: string, value?: string) {
|
|
48
|
+
if (!editableContent) return
|
|
49
|
+
if (['alignLeft', 'alignCenter', 'alignRight', 'alignJustify'].includes(action))
|
|
50
|
+
value = action.replace('align', '').toLowerCase()
|
|
51
|
+
switch (action) {
|
|
52
|
+
case 'orderedList':
|
|
53
|
+
applyFormatting('insertOrderedList')
|
|
54
|
+
break
|
|
55
|
+
case 'unorderedList':
|
|
56
|
+
applyFormatting('insertUnorderedList')
|
|
57
|
+
break
|
|
58
|
+
case 'blockquote':
|
|
59
|
+
applyFormatting('formatBlock', '<blockquote>')
|
|
60
|
+
break
|
|
61
|
+
case 'codeBlock':
|
|
62
|
+
applyFormatting('formatBlock', '<pre>')
|
|
63
|
+
break
|
|
64
|
+
case 'splitView':
|
|
65
|
+
isSplitView = !isSplitView
|
|
66
|
+
break
|
|
67
|
+
case 'codeView':
|
|
68
|
+
isCodeView = !isCodeView
|
|
69
|
+
break
|
|
70
|
+
default:
|
|
71
|
+
applyFormatting(action, value)
|
|
72
|
+
break
|
|
73
|
+
}
|
|
74
|
+
updateContent()
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
watch(() => props.modelValue, (newValue) => {
|
|
78
|
+
if (newValue !== contentHtml) {
|
|
79
|
+
contentHtml = newValue
|
|
80
|
+
if (editableContent) {
|
|
81
|
+
editableContent.innerHTML = newValue
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
onMounted(() => {
|
|
87
|
+
if (editableContent) {
|
|
88
|
+
editableContent.innerHTML = contentHtml
|
|
89
|
+
}
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
// Keyboard shortcuts
|
|
93
|
+
function handleKeyDown(event: KeyboardEvent) {
|
|
94
|
+
if (event.ctrlKey || event.metaKey) {
|
|
95
|
+
switch (event.key.toLowerCase()) {
|
|
96
|
+
case 'b':
|
|
97
|
+
event.preventDefault()
|
|
98
|
+
handleToolbarAction('bold')
|
|
99
|
+
break
|
|
100
|
+
case 'i':
|
|
101
|
+
event.preventDefault()
|
|
102
|
+
handleToolbarAction('italic')
|
|
103
|
+
break
|
|
104
|
+
case 'u':
|
|
105
|
+
event.preventDefault()
|
|
106
|
+
handleToolbarAction('underline')
|
|
107
|
+
break
|
|
108
|
+
case 'k':
|
|
109
|
+
event.preventDefault()
|
|
110
|
+
handleToolbarAction('link')
|
|
111
|
+
break
|
|
112
|
+
case 'l':
|
|
113
|
+
event.preventDefault()
|
|
114
|
+
handleToolbarAction('orderedList')
|
|
115
|
+
break
|
|
116
|
+
default:
|
|
117
|
+
break
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
</script>
|
|
122
|
+
|
|
123
|
+
<template>
|
|
124
|
+
<div class="rich-text-editor">
|
|
125
|
+
<Toolbar :config @action="handleToolbarAction" />
|
|
126
|
+
<div class="editor-container" :class="{ 'split-view': isSplitView }">
|
|
127
|
+
<div class="content-area" :class="{ 'code-view': isCodeView }">
|
|
128
|
+
<textarea v-if="isCodeView" v-model="contentHtml" @input="updateContent" />
|
|
129
|
+
<div
|
|
130
|
+
v-else
|
|
131
|
+
ref="editableContent"
|
|
132
|
+
contenteditable="true"
|
|
133
|
+
role="textbox"
|
|
134
|
+
aria-multiline="true"
|
|
135
|
+
tabindex="0"
|
|
136
|
+
@input="updateContent"
|
|
137
|
+
@keydown="handleKeyDown"
|
|
138
|
+
/>
|
|
139
|
+
</div>
|
|
140
|
+
<div v-if="isSplitView" class="preview-area" v-html="contentHtml" />
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</template>
|
|
144
|
+
|
|
145
|
+
<style scoped>
|
|
146
|
+
.rich-text-editor {
|
|
147
|
+
font-family: Arial, sans-serif;
|
|
148
|
+
max-width: 800px;
|
|
149
|
+
margin: 0 auto;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[contenteditable='true'] {
|
|
153
|
+
white-space: pre-wrap;
|
|
154
|
+
word-wrap: break-word;
|
|
155
|
+
outline: none;
|
|
156
|
+
border: none;
|
|
157
|
+
height: 100%;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.editor-container {
|
|
161
|
+
display: flex;
|
|
162
|
+
border: 1px solid #ccc;
|
|
163
|
+
border-radius: 4px;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.content-area,
|
|
168
|
+
.preview-area {
|
|
169
|
+
flex: 1;
|
|
170
|
+
min-height: 300px;
|
|
171
|
+
padding: 10px;
|
|
172
|
+
overflow-y: auto;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.content-area:focus {
|
|
176
|
+
outline: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.split-view .content-area,
|
|
180
|
+
.split-view .preview-area {
|
|
181
|
+
width: 50%;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.preview-area {
|
|
185
|
+
background-color: #f9f9f9;
|
|
186
|
+
border-left: 1px solid #ccc;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media (max-width: 768px) {
|
|
190
|
+
.split-view {
|
|
191
|
+
flex-direction: column;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.split-view .content-area,
|
|
195
|
+
.split-view .preview-area {
|
|
196
|
+
width: 100%;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.preview-area {
|
|
200
|
+
border-left: none;
|
|
201
|
+
border-top: 1px solid #ccc;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type ToolbarConfigOption = 'bold'
|
|
2
|
+
| 'italic'
|
|
3
|
+
| 'underline'
|
|
4
|
+
| 'strikethrough'
|
|
5
|
+
| 'fontSize'
|
|
6
|
+
| 'fontFamily'
|
|
7
|
+
| 'textColor'
|
|
8
|
+
| 'backgroundColor'
|
|
9
|
+
| 'alignLeft'
|
|
10
|
+
| 'alignCenter'
|
|
11
|
+
| 'alignRight'
|
|
12
|
+
| 'alignJustify'
|
|
13
|
+
| 'orderedList'
|
|
14
|
+
| 'unorderedList'
|
|
15
|
+
| 'indent'
|
|
16
|
+
| 'outdent'
|
|
17
|
+
| 'link'
|
|
18
|
+
| 'image'
|
|
19
|
+
| 'table'
|
|
20
|
+
| 'blockquote'
|
|
21
|
+
| 'codeBlock'
|
|
22
|
+
| 'splitView'
|
|
23
|
+
| 'codeView'
|
|
24
|
+
|
|
25
|
+
export type ToolbarConfig = ToolbarConfigOption[]
|
|
@@ -13,5 +13,6 @@ export { default as ToggleInput } from './ToggleInput.vue'
|
|
|
13
13
|
export { default as RichText } from './RichText.vue'
|
|
14
14
|
export { default as TelInput } from './TelInput.vue'
|
|
15
15
|
export { default as SignaturePad } from './SignaturePad.vue'
|
|
16
|
+
export { default as RichText2 } from './RichText2/index.vue'
|
|
16
17
|
|
|
17
18
|
export { Dropdown } from 'floating-vue'
|
package/src/styles/layout.css
CHANGED
|
@@ -18,6 +18,13 @@
|
|
|
18
18
|
.rounded {
|
|
19
19
|
border-radius: calc(var(--btn-border-radius) / 2);
|
|
20
20
|
}
|
|
21
|
+
.round-extra {
|
|
22
|
+
border-radius: calc(var(--btn-border-radius) * 2);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.round-none {
|
|
26
|
+
border-radius: 0 ;
|
|
27
|
+
}
|
|
21
28
|
|
|
22
29
|
.flex-center {
|
|
23
30
|
justify-content: center;
|
|
@@ -149,6 +156,55 @@
|
|
|
149
156
|
inset-inline-end: 0;
|
|
150
157
|
}
|
|
151
158
|
|
|
159
|
+
.inset-inline-start, .start{
|
|
160
|
+
inset-inline-start: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.inset-inline-end, .end{
|
|
164
|
+
inset-inline-end: 0;
|
|
165
|
+
}
|
|
166
|
+
.top, .top-0{
|
|
167
|
+
top: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.top-1{
|
|
171
|
+
top: 1rem;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.top-2{
|
|
175
|
+
top: 2rem;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.top-3{
|
|
179
|
+
top: 3rem;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.top-4{
|
|
183
|
+
top: 4rem;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.bottom, .bottom-0{
|
|
187
|
+
bottom: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.bottom-1{
|
|
191
|
+
bottom: 1rem;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.bottom-2{
|
|
195
|
+
bottom: 2rem;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.bottom-3{
|
|
199
|
+
bottom: 3rem;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.bottom-4{
|
|
203
|
+
bottom: 4rem;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
152
208
|
.auto-flow-rows {
|
|
153
209
|
grid-auto-flow: row;
|
|
154
210
|
}
|
|
@@ -1368,11 +1424,40 @@
|
|
|
1368
1424
|
}
|
|
1369
1425
|
|
|
1370
1426
|
.sticky,
|
|
1371
|
-
.position-sticky
|
|
1427
|
+
.position-sticky,
|
|
1428
|
+
.sticky-0,
|
|
1429
|
+
.position-sticky-0 {
|
|
1372
1430
|
position: sticky !important;
|
|
1373
1431
|
top: 0;
|
|
1374
1432
|
align-self: start;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
.sticky-1,
|
|
1436
|
+
.position-sticky-1 {
|
|
1437
|
+
position: sticky !important;
|
|
1438
|
+
top: 1rem;
|
|
1439
|
+
align-self: start;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
.sticky-2,
|
|
1443
|
+
.position-sticky-2 {
|
|
1444
|
+
position: sticky !important;
|
|
1445
|
+
top: 2rem;
|
|
1446
|
+
align-self: start;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
.sticky-3,
|
|
1450
|
+
.position-sticky-3 {
|
|
1451
|
+
position: sticky !important;
|
|
1452
|
+
top: 3rem;
|
|
1453
|
+
align-self: start;
|
|
1454
|
+
}
|
|
1375
1455
|
|
|
1456
|
+
.sticky-4,
|
|
1457
|
+
.position-sticky-4 {
|
|
1458
|
+
position: sticky !important;
|
|
1459
|
+
top: 4rem;
|
|
1460
|
+
align-self: start;
|
|
1376
1461
|
}
|
|
1377
1462
|
|
|
1378
1463
|
.flex {
|
|
@@ -1388,24 +1473,24 @@
|
|
|
1388
1473
|
.hide,
|
|
1389
1474
|
.none,
|
|
1390
1475
|
.display-none {
|
|
1391
|
-
display: none;
|
|
1476
|
+
display: none !important;
|
|
1392
1477
|
}
|
|
1393
1478
|
|
|
1394
1479
|
.display-block {
|
|
1395
|
-
display: block;
|
|
1480
|
+
display: block !important;
|
|
1396
1481
|
}
|
|
1397
1482
|
|
|
1398
1483
|
.block {
|
|
1399
1484
|
display: block;
|
|
1400
|
-
width: 100
|
|
1485
|
+
width: 100% !important;
|
|
1401
1486
|
}
|
|
1402
1487
|
|
|
1403
1488
|
.inline {
|
|
1404
|
-
display: inline;
|
|
1489
|
+
display: inline !important;
|
|
1405
1490
|
}
|
|
1406
1491
|
|
|
1407
1492
|
.inline-block {
|
|
1408
|
-
display: inline-block;
|
|
1493
|
+
display: inline-block !important;
|
|
1409
1494
|
}
|
|
1410
1495
|
|
|
1411
1496
|
.flex-end {
|
|
@@ -38,6 +38,18 @@
|
|
|
38
38
|
border-radius: var(--btn-border-radius);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
.m_rounded {
|
|
42
|
+
border-radius: calc(var(--btn-border-radius) / 2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.m_round-extra {
|
|
46
|
+
border-radius: calc(var(--btn-border-radius) * 2);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.m_round-none {
|
|
50
|
+
border-radius: 0 !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
41
53
|
.m_flex-center {
|
|
42
54
|
justify-items: center;
|
|
43
55
|
align-items: center;
|
|
@@ -160,13 +172,6 @@
|
|
|
160
172
|
inset-inline-end: 0px;
|
|
161
173
|
}
|
|
162
174
|
|
|
163
|
-
.m_positioned-full {
|
|
164
|
-
top: 0;
|
|
165
|
-
bottom: 0;
|
|
166
|
-
inset-inline-start: 0;
|
|
167
|
-
inset-inline-end: 0;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
175
|
|
|
171
176
|
.m_auto-flow-rows {
|
|
172
177
|
grid-auto-flow: row;
|
|
@@ -1300,10 +1305,42 @@
|
|
|
1300
1305
|
position: static !important;
|
|
1301
1306
|
}
|
|
1302
1307
|
|
|
1308
|
+
|
|
1303
1309
|
.m_sticky,
|
|
1304
|
-
.m_position-sticky
|
|
1310
|
+
.m_position-sticky,
|
|
1311
|
+
.m_sticky-0,
|
|
1312
|
+
.m_position-sticky-0 {
|
|
1305
1313
|
position: sticky !important;
|
|
1306
1314
|
top: 0;
|
|
1315
|
+
align-self: start;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
.m_sticky-1,
|
|
1319
|
+
.m_position-sticky-1 {
|
|
1320
|
+
position: sticky !important;
|
|
1321
|
+
top: 1rem;
|
|
1322
|
+
align-self: start;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
.m_sticky-2,
|
|
1326
|
+
.m_position-sticky-2 {
|
|
1327
|
+
position: sticky !important;
|
|
1328
|
+
top: 2rem;
|
|
1329
|
+
align-self: start;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
.m_sticky-3,
|
|
1333
|
+
.m_position-sticky-3 {
|
|
1334
|
+
position: sticky !important;
|
|
1335
|
+
top: 3rem;
|
|
1336
|
+
align-self: start;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
.m_sticky-4,
|
|
1340
|
+
.m_position-sticky-4 {
|
|
1341
|
+
position: sticky !important;
|
|
1342
|
+
top: 4rem;
|
|
1343
|
+
align-self: start;
|
|
1307
1344
|
}
|
|
1308
1345
|
|
|
1309
1346
|
.m_flex-stretch {
|
|
@@ -1750,4 +1787,56 @@
|
|
|
1750
1787
|
inset-inline-start: 0;
|
|
1751
1788
|
inset-inline-end: 0;
|
|
1752
1789
|
}
|
|
1790
|
+
|
|
1791
|
+
.m_inset-inline-start,
|
|
1792
|
+
.m_start {
|
|
1793
|
+
inset-inline-start: 0;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
.m_inset-inline-end,
|
|
1797
|
+
.m_end {
|
|
1798
|
+
inset-inline-end: 0;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
.m_top,
|
|
1802
|
+
.m_top-0 {
|
|
1803
|
+
top: 0;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
.m_top-1 {
|
|
1807
|
+
top: 1rem;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
.m_top-2 {
|
|
1811
|
+
top: 2rem;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
.m_top-3 {
|
|
1815
|
+
top: 3rem;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
.m_top-4 {
|
|
1819
|
+
top: 4rem;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
.m_bottom,
|
|
1823
|
+
.m_bottom-0 {
|
|
1824
|
+
bottom: 0;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
.m_bottom-1 {
|
|
1828
|
+
bottom: 1rem;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
.m_bottom-2 {
|
|
1832
|
+
bottom: 2rem;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
.m_bottom-3 {
|
|
1836
|
+
bottom: 3rem;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
.m_bottom-4 {
|
|
1840
|
+
bottom: 4rem;
|
|
1841
|
+
}
|
|
1753
1842
|
}
|
package/src/styles/text.css
CHANGED
|
@@ -159,8 +159,8 @@
|
|
|
159
159
|
color: var(--bgl-white);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
.font-
|
|
163
|
-
.txt-
|
|
162
|
+
.font-thin,
|
|
163
|
+
.txt-thin {
|
|
164
164
|
font-weight: 100;
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -186,6 +186,19 @@
|
|
|
186
186
|
font-weight: 600;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
.light,
|
|
190
|
+
.txt-light,
|
|
191
|
+
.font-light {
|
|
192
|
+
font-weight: 300;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.medium,
|
|
196
|
+
.txt-medium,
|
|
197
|
+
.font-medium {
|
|
198
|
+
font-weight: 500;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
|
|
189
202
|
.line-height-1 {
|
|
190
203
|
line-height: 1;
|
|
191
204
|
}
|
|
@@ -503,8 +516,8 @@
|
|
|
503
516
|
color: var(--bgl-white);
|
|
504
517
|
}
|
|
505
518
|
|
|
506
|
-
.m_font-
|
|
507
|
-
.m_txt-
|
|
519
|
+
.m_font-thin,
|
|
520
|
+
.m_txt-thin {
|
|
508
521
|
font-weight: 100;
|
|
509
522
|
}
|
|
510
523
|
|
|
@@ -530,6 +543,17 @@
|
|
|
530
543
|
font-weight: 600;
|
|
531
544
|
}
|
|
532
545
|
|
|
546
|
+
.light,
|
|
547
|
+
.txt-light,
|
|
548
|
+
.font-light {
|
|
549
|
+
font-weight: 300;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.medium,
|
|
553
|
+
.txt-medium,
|
|
554
|
+
.font-medium {
|
|
555
|
+
font-weight: 500;
|
|
556
|
+
}
|
|
533
557
|
|
|
534
558
|
|
|
535
559
|
.m_line-height-1 {
|
package/src/styles/theme.css
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
type Option = {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string;
|
|
4
|
-
} | string | number;
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
-
modelValue: string | number;
|
|
7
|
-
options: Option[];
|
|
8
|
-
placeholder?: string | undefined;
|
|
9
|
-
label?: string | undefined;
|
|
10
|
-
id: string;
|
|
11
|
-
required: boolean;
|
|
12
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
"update:modelValue": (...args: any[]) => void;
|
|
14
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
-
modelValue: string | number;
|
|
16
|
-
options: Option[];
|
|
17
|
-
placeholder?: string | undefined;
|
|
18
|
-
label?: string | undefined;
|
|
19
|
-
id: string;
|
|
20
|
-
required: boolean;
|
|
21
|
-
}>>> & {
|
|
22
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
}, {}, {}>;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
-
} : {
|
|
30
|
-
type: import('vue').PropType<T[K]>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=Drop.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drop.vue.d.ts","sourceRoot":"","sources":["../../src/components/Drop.vue"],"names":[],"mappings":"AAcA;AAMA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,MAAM,GAAG,MAAM,CAAC;;gBA8KN,MAAM,GAAG,MAAM;aAClB,MAAM,EAAE;;;QAGb,MAAM;cACA,OAAO;;;;gBALL,MAAM,GAAG,MAAM;aAClB,MAAM,EAAE;;;QAGb,MAAM;cACA,OAAO;;;;AAXnB,wBAcG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
id?: string | undefined;
|
|
3
|
-
private?: 0 | 1 | undefined;
|
|
4
|
-
singleFile?: boolean | undefined;
|
|
5
|
-
beforeUpload?: (() => Promise<any>) | undefined;
|
|
6
|
-
dragDropLabel?: string | undefined;
|
|
7
|
-
browseLabel?: string | undefined;
|
|
8
|
-
}>, {
|
|
9
|
-
private: number;
|
|
10
|
-
entity: string;
|
|
11
|
-
id: string;
|
|
12
|
-
beforeUpload: () => Promise<void>;
|
|
13
|
-
dragDropLabel: string;
|
|
14
|
-
browseLabel: string;
|
|
15
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
done: (...args: any[]) => void;
|
|
17
|
-
complete: (...args: any[]) => void;
|
|
18
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
19
|
-
id?: string | undefined;
|
|
20
|
-
private?: 0 | 1 | undefined;
|
|
21
|
-
singleFile?: boolean | undefined;
|
|
22
|
-
beforeUpload?: (() => Promise<any>) | undefined;
|
|
23
|
-
dragDropLabel?: string | undefined;
|
|
24
|
-
browseLabel?: string | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
private: number;
|
|
27
|
-
entity: string;
|
|
28
|
-
id: string;
|
|
29
|
-
beforeUpload: () => Promise<void>;
|
|
30
|
-
dragDropLabel: string;
|
|
31
|
-
browseLabel: string;
|
|
32
|
-
}>>> & {
|
|
33
|
-
onDone?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
onComplete?: ((...args: any[]) => any) | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
id: string;
|
|
37
|
-
private: 1 | 0;
|
|
38
|
-
beforeUpload: () => Promise<any>;
|
|
39
|
-
dragDropLabel: string;
|
|
40
|
-
browseLabel: string;
|
|
41
|
-
}, {}>;
|
|
42
|
-
export default _default;
|
|
43
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
45
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
-
} : {
|
|
48
|
-
type: import('vue').PropType<T[K]>;
|
|
49
|
-
required: true;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
type __VLS_WithDefaults<P, D> = {
|
|
53
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
-
default: D[K];
|
|
55
|
-
}> : P[K];
|
|
56
|
-
};
|
|
57
|
-
type __VLS_Prettify<T> = {
|
|
58
|
-
[K in keyof T]: T[K];
|
|
59
|
-
} & {};
|
|
60
|
-
//# sourceMappingURL=FileUploader.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploader.vue.d.ts","sourceRoot":"","sources":["../../src/components/FileUploader.vue"],"names":[],"mappings":"AAiDA;;;;;0BA6YuB,QAAQ,GAAG,CAAC;;;;;;;;;;;;;;;;;0BAAZ,QAAQ,GAAG,CAAC;;;;;;;;;;;;;;QAJ5B,MAAM;aAED,CAAC,GAAG,CAAC;kBAEA,MAAM,QAAQ,GAAG,CAAC;mBACjB,MAAM;iBACR,MAAM;;AARtB,wBAeG;AAGH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|