@bagelink/vue 0.0.738 → 0.0.740
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/AddressSaerch.vue.d.ts +7 -0
- package/dist/components/AddressSaerch.vue.d.ts.map +1 -0
- package/dist/components/AddressSearch.vue.d.ts +7 -0
- package/dist/components/AddressSearch.vue.d.ts.map +1 -0
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed.vue.d.ts +55 -1
- package/dist/components/MapEmbed.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +6 -6
- package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +399 -217
- package/dist/index.mjs +399 -217
- package/dist/style.css +1137 -417
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/components/AddressSearch.vue +41 -0
- package/src/components/Badge.vue +1 -1
- package/src/components/Btn.vue +9 -7
- package/src/components/Card.vue +2 -2
- package/src/components/ListItem.vue +1 -1
- package/src/components/MapEmbed.vue +143 -104
- package/src/components/Modal.vue +5 -2
- package/src/components/ModalConfirm.vue +1 -1
- package/src/components/NavBar.vue +9 -9
- package/src/components/TableSchema.vue +3 -3
- package/src/components/form/inputs/Checkbox.vue +1 -1
- package/src/components/form/inputs/DatePicker.vue +5 -5
- package/src/components/form/inputs/FileUpload.vue +1 -1
- package/src/components/form/inputs/PasswordInput.vue +9 -10
- package/src/components/form/inputs/RadioGroup.vue +1 -1
- package/src/components/form/inputs/RadioPillsInput.vue +2 -2
- package/src/components/form/inputs/RichText.vue +3 -3
- package/src/components/form/inputs/RichText2/index.vue +8 -2
- package/src/components/form/inputs/TableField.vue +3 -3
- package/src/components/form/inputs/TextInput.vue +3 -3
- package/src/components/form/inputs/ToggleInput.vue +1 -1
- package/src/components/formkit/FileUploader.vue +1 -1
- package/src/components/formkit/MiscFields.vue +1 -1
- package/src/components/formkit/Toggle.vue +4 -4
- package/src/components/index.ts +1 -0
- package/src/components/layout/BottomMenu.vue +2 -2
- package/src/components/layout/SidebarMenu.vue +1 -1
- package/src/components/layout/TabsNav.vue +1 -1
- package/src/components/leaflet/leaflet.css +661 -0
- package/src/components/lightbox/Lightbox.vue +2 -2
- package/src/styles/appearance.css +16 -0
- package/src/styles/bagel.css +2 -1
- package/src/styles/inputs.css +3 -3
- package/src/styles/loginCard.css +1 -1
- package/src/styles/modal.css +2 -2
- package/src/styles/scrollbar.css +1 -1
- package/src/styles/theme.css +68 -41
- package/src/utils/index.ts +16 -0
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { Btn, TextInput } from '@bagelink/vue'
|
|
3
3
|
|
|
4
|
-
type TextInputT = InstanceType<typeof TextInput>
|
|
4
|
+
export type TextInputT = InstanceType<typeof TextInput>
|
|
5
5
|
|
|
6
|
-
type
|
|
6
|
+
export type TextInputProps = Omit<
|
|
7
|
+
TextInputT['$props'],
|
|
8
|
+
(`${string}modelValue` | `ref${string}` | `onVnode${string}` | 'key' | 'type')
|
|
9
|
+
>
|
|
10
|
+
// const props =
|
|
11
|
+
defineProps<{ txtInputProps: TextInputProps }>()
|
|
7
12
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const password = defineModel<string>('modelValue')
|
|
11
|
-
const showPwd = defineModel<string>('showPwd', { default: false })
|
|
13
|
+
const password = defineModel< string>('modelValue')
|
|
14
|
+
const showPwd = defineModel<boolean>('showPwd', { default: false })
|
|
12
15
|
|
|
13
16
|
const toggleShowPwdIcon = $computed(() => showPwd.value ? 'visibility_off' : 'visibility')
|
|
14
17
|
const inputType = $computed(() => showPwd.value ? 'text' : 'password')
|
|
@@ -20,7 +23,3 @@ const inputType = $computed(() => showPwd.value ? 'text' : 'password')
|
|
|
20
23
|
<Btn flat thin class="m-05 position-bottom-end" :icon="toggleShowPwdIcon" @click="showPwd = !showPwd" />
|
|
21
24
|
</div>
|
|
22
25
|
</template>
|
|
23
|
-
|
|
24
|
-
<style scoped>
|
|
25
|
-
|
|
26
|
-
</style>
|
|
@@ -40,7 +40,7 @@ const selectedOption = defineModel('modelValue')
|
|
|
40
40
|
<div class="flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025">
|
|
41
41
|
<img
|
|
42
42
|
v-if="opt.imgSrc"
|
|
43
|
-
class="bg-
|
|
43
|
+
class="bg-popup shadow-light py-025 rounded m_w40"
|
|
44
44
|
width="60"
|
|
45
45
|
:src="opt.imgSrc"
|
|
46
46
|
:alt="opt.imgAlt"
|
|
@@ -84,7 +84,7 @@ onMounted(() => {
|
|
|
84
84
|
padding-bottom: calc(var(--btn-padding) / 6);
|
|
85
85
|
cursor: pointer;
|
|
86
86
|
transition: var(--bgl-transition);
|
|
87
|
-
background: var(--bgl-
|
|
87
|
+
background: var(--bgl-light-text);
|
|
88
88
|
user-select: none;
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -98,6 +98,6 @@ onMounted(() => {
|
|
|
98
98
|
|
|
99
99
|
.radio-pill input:checked ~ label {
|
|
100
100
|
background: var(--bgl-primary);
|
|
101
|
-
color: var(--bgl-
|
|
101
|
+
color: var(--bgl-light-text);
|
|
102
102
|
}
|
|
103
103
|
</style>
|
|
@@ -276,7 +276,7 @@ onBeforeUnmount(() => editor?.destroy())
|
|
|
276
276
|
|
|
277
277
|
.tiptap pre {
|
|
278
278
|
background: #0d0d0d;
|
|
279
|
-
color: var(--bgl-
|
|
279
|
+
color: var(--bgl-light-text);
|
|
280
280
|
font-family: 'JetBrainsMono', monospace;
|
|
281
281
|
padding: 0.75rem 1rem;
|
|
282
282
|
border-radius: 0.5rem;
|
|
@@ -372,7 +372,7 @@ onBeforeUnmount(() => editor?.destroy())
|
|
|
372
372
|
pointer-events: none;
|
|
373
373
|
}
|
|
374
374
|
.selectedCell p::selection{
|
|
375
|
-
color: var(--bgl-
|
|
375
|
+
color: var(--bgl-popup-text)
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
.column-resize-handle {
|
|
@@ -401,7 +401,7 @@ onBeforeUnmount(() => editor?.destroy())
|
|
|
401
401
|
cursor: col-resize;
|
|
402
402
|
}
|
|
403
403
|
.RichText-tools [disabled]{
|
|
404
|
-
color: var(--bgl-
|
|
404
|
+
color: var(--bgl-popup-text) !important;
|
|
405
405
|
opacity: 0.3;
|
|
406
406
|
}
|
|
407
407
|
.RichText iframe{
|
|
@@ -137,7 +137,7 @@ function handleKeyDown(event: KeyboardEvent) {
|
|
|
137
137
|
<div class="rich-text-editor round pt-05 px-1 pb-1">
|
|
138
138
|
<Toolbar :config @action="handleToolbarAction" />
|
|
139
139
|
<div class="editor-container flex flex-stretch gap-1 m_column">
|
|
140
|
-
<div class="content-area rounded p-1
|
|
140
|
+
<div class="content-area rounded p-1 shadow-light w-100 grid">
|
|
141
141
|
<textarea v-if="isCodeView" v-model="contentHtml" @input="updateContent" />
|
|
142
142
|
<div
|
|
143
143
|
v-else
|
|
@@ -151,7 +151,7 @@ function handleKeyDown(event: KeyboardEvent) {
|
|
|
151
151
|
@keydown="handleKeyDown"
|
|
152
152
|
/>
|
|
153
153
|
</div>
|
|
154
|
-
<code v-if="isSplitView" class="preview-area
|
|
154
|
+
<code v-if="isSplitView" class="preview-area w-100 rounded p-1">{{ contentHtml }}</code>
|
|
155
155
|
</div>
|
|
156
156
|
</div>
|
|
157
157
|
</template>
|
|
@@ -183,6 +183,9 @@ function handleKeyDown(event: KeyboardEvent) {
|
|
|
183
183
|
.preview-area{
|
|
184
184
|
font-family: "FontWithASyntaxHighlighter", monospace;
|
|
185
185
|
font-palette: --myCustomPalette;
|
|
186
|
+
background: var(--bgl-code-bg);
|
|
187
|
+
color: var(--bgl-code-color)
|
|
188
|
+
|
|
186
189
|
}
|
|
187
190
|
.rich-text-editor {
|
|
188
191
|
background: var(--input-bg);
|
|
@@ -194,6 +197,9 @@ function handleKeyDown(event: KeyboardEvent) {
|
|
|
194
197
|
white-space: pre-wrap;
|
|
195
198
|
outline: none;
|
|
196
199
|
}
|
|
200
|
+
.content-area{
|
|
201
|
+
background: var(--bgl-richtext-color);
|
|
202
|
+
}
|
|
197
203
|
.content-area, .preview-area{
|
|
198
204
|
min-height: 200px;
|
|
199
205
|
}
|
|
@@ -260,7 +260,7 @@ onMounted(() => {
|
|
|
260
260
|
|
|
261
261
|
.table-action:hover>.bgl_icon-font {
|
|
262
262
|
background: var(--bgl-red);
|
|
263
|
-
color: var(--bgl-
|
|
263
|
+
color: var(--bgl-box-bg);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
.table-action:active>.bgl_icon-font {
|
|
@@ -278,7 +278,7 @@ onMounted(() => {
|
|
|
278
278
|
.table-row .bagel-input .input {
|
|
279
279
|
border-radius: 0;
|
|
280
280
|
background: transparent;
|
|
281
|
-
color: var(--bgl-
|
|
281
|
+
color: var(--bgl-text-color);
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
.table-row .bagel-input textarea {
|
|
@@ -307,7 +307,7 @@ onMounted(() => {
|
|
|
307
307
|
.sortable-chosen {
|
|
308
308
|
cursor: grabbing !important;
|
|
309
309
|
border-color: transparent;
|
|
310
|
-
background: var(--bgl-
|
|
310
|
+
background: var(--bgl-box-bg);
|
|
311
311
|
border-radius: 10px;
|
|
312
312
|
box-shadow: 0 0 10px 0 rgb(0 0 0 /20%);
|
|
313
313
|
}
|
|
@@ -158,11 +158,11 @@ onMounted(() => {
|
|
|
158
158
|
|
|
159
159
|
.code textarea {
|
|
160
160
|
font-family: 'Inconsolata', monospace;
|
|
161
|
-
background: var(--bgl-
|
|
162
|
-
color: var(--bgl-
|
|
161
|
+
background: var(--bgl-code-bg) !important;
|
|
162
|
+
color: var(--bgl-light-text) !important;
|
|
163
163
|
}
|
|
164
164
|
.code textarea::placeholder {
|
|
165
|
-
color: var(--bgl-
|
|
165
|
+
color: var(--bgl-light-text) !important;
|
|
166
166
|
opacity: 0.3;
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -77,7 +77,7 @@ onMounted(() => {
|
|
|
77
77
|
inset-inline-start: 1px;
|
|
78
78
|
bottom: 1px;
|
|
79
79
|
border-radius: 50%;
|
|
80
|
-
background: var(--bgl-
|
|
80
|
+
background: var(--bgl-box-bg);
|
|
81
81
|
-webkit-transition: 0.2s;
|
|
82
82
|
transition: 0.2s;
|
|
83
83
|
box-shadow:0 1px 5px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
|
|
@@ -305,7 +305,7 @@ function onDrop(e: DragEvent) {
|
|
|
305
305
|
display: flex;
|
|
306
306
|
align-items: center;
|
|
307
307
|
justify-content: space-between;
|
|
308
|
-
background: var(--bgl-
|
|
308
|
+
background: var(--bgl-box-bg);
|
|
309
309
|
border-radius: var(--btn-border-radius);
|
|
310
310
|
width: 100%;
|
|
311
311
|
color: var(--input-color);
|
|
@@ -48,7 +48,7 @@ const inputVal = defineModel('modelValue', {
|
|
|
48
48
|
border-radius: var(--input-border-radius);
|
|
49
49
|
font-size: var(--input-font-size);
|
|
50
50
|
background: var(--input-bg);
|
|
51
|
-
color: var(--bgl-
|
|
51
|
+
color: var(--bgl-text-color);
|
|
52
52
|
text-align: center;
|
|
53
53
|
margin: 8px 5px;
|
|
54
54
|
cursor: pointer;
|
|
@@ -65,7 +65,7 @@ const inputVal = defineModel('modelValue', {
|
|
|
65
65
|
|
|
66
66
|
.radio-wrap input:checked:checked+label {
|
|
67
67
|
background: var(--bgl-primary);
|
|
68
|
-
color: var(--bgl-
|
|
68
|
+
color: var( --bgl-light-text);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.checkbox {
|
|
@@ -100,7 +100,7 @@ const inputVal = defineModel('modelValue', {
|
|
|
100
100
|
position: absolute;
|
|
101
101
|
font-family: "Material Symbols Outlined", serif;
|
|
102
102
|
content: "";
|
|
103
|
-
color: var(--bgl-
|
|
103
|
+
color: var( --bgl-light-text);
|
|
104
104
|
background: transparent;
|
|
105
105
|
display: flex;
|
|
106
106
|
align-items: center;
|
|
@@ -134,7 +134,7 @@ const inputVal = defineModel('modelValue', {
|
|
|
134
134
|
left: 2px;
|
|
135
135
|
bottom: 2px;
|
|
136
136
|
border-radius: 50%;
|
|
137
|
-
background: var(--bgl-
|
|
137
|
+
background: var(--bgl-popup-bg);
|
|
138
138
|
-webkit-transition: 0.4s;
|
|
139
139
|
transition: 0.4s;
|
|
140
140
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { default as Carousel } from './Carousel.vue'
|
|
|
23
23
|
export { default as ModalConfirm } from './ModalConfirm.vue'
|
|
24
24
|
export { default as MapEmbed } from './MapEmbed.vue'
|
|
25
25
|
export { default as Flag } from './Flag.vue'
|
|
26
|
+
export { default as AddressSearch } from './AddressSearch.vue'
|
|
26
27
|
|
|
27
28
|
export * from './form'
|
|
28
29
|
export * from './dashboard'
|
|
@@ -40,7 +40,7 @@ defineProps<{
|
|
|
40
40
|
<style scoped>
|
|
41
41
|
.bgl_bottombar {
|
|
42
42
|
background-color: var(--bgl-primary);
|
|
43
|
-
color: var(--bgl-
|
|
43
|
+
color: var(--bgl-light-text);
|
|
44
44
|
grid-template-columns: repeat(auto-fill, var(--bgl_bottombar-btn-width));
|
|
45
45
|
grid-auto-flow: column;
|
|
46
46
|
border-radius: 0;
|
|
@@ -62,7 +62,7 @@ defineProps<{
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.bgl_bottombar .router-link-active {
|
|
65
|
-
background: var(--bgl-
|
|
65
|
+
background: var(--bgl-popup-bg);
|
|
66
66
|
color: var(--bgl-primary) !important;
|
|
67
67
|
}
|
|
68
68
|
</style>
|
|
@@ -127,7 +127,7 @@ onBeforeUnmount(() => {
|
|
|
127
127
|
bottom: calc(var(--btn-padding) / 8);
|
|
128
128
|
left: var(--indicator-left, 0);
|
|
129
129
|
width: var(--indicator-width, 0);
|
|
130
|
-
background: var(--bgl-
|
|
130
|
+
background: var(--bgl-popup-bg);
|
|
131
131
|
border-radius: var(--input-border-radius);
|
|
132
132
|
transition: var(--bgl-transition);
|
|
133
133
|
z-index: 0;
|