@bagelink/vue 0.0.736 → 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.
Files changed (66) hide show
  1. package/dist/components/AddressSaerch.vue.d.ts +7 -0
  2. package/dist/components/AddressSaerch.vue.d.ts.map +1 -0
  3. package/dist/components/AddressSearch.vue.d.ts +7 -0
  4. package/dist/components/AddressSearch.vue.d.ts.map +1 -0
  5. package/dist/components/Btn.vue.d.ts.map +1 -1
  6. package/dist/components/MapEmbed.vue.d.ts +55 -1
  7. package/dist/components/MapEmbed.vue.d.ts.map +1 -1
  8. package/dist/components/Modal.vue.d.ts.map +1 -1
  9. package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
  10. package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
  11. package/dist/components/form/inputs/PasswordInput.vue.d.ts +18 -43
  12. package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
  13. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
  14. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  15. package/dist/components/form/inputs/index.d.ts +1 -0
  16. package/dist/components/form/inputs/index.d.ts.map +1 -1
  17. package/dist/components/index.d.ts +1 -0
  18. package/dist/components/index.d.ts.map +1 -1
  19. package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
  20. package/dist/index.cjs +563 -338
  21. package/dist/index.mjs +563 -338
  22. package/dist/style.css +1157 -424
  23. package/dist/utils/index.d.ts +2 -0
  24. package/dist/utils/index.d.ts.map +1 -1
  25. package/package.json +4 -3
  26. package/src/components/AddressSearch.vue +41 -0
  27. package/src/components/Badge.vue +1 -1
  28. package/src/components/Btn.vue +9 -7
  29. package/src/components/Card.vue +2 -2
  30. package/src/components/ListItem.vue +1 -1
  31. package/src/components/MapEmbed.vue +143 -104
  32. package/src/components/Modal.vue +5 -2
  33. package/src/components/ModalConfirm.vue +1 -1
  34. package/src/components/NavBar.vue +9 -9
  35. package/src/components/TableSchema.vue +3 -3
  36. package/src/components/form/inputs/Checkbox.vue +1 -1
  37. package/src/components/form/inputs/DatePicker.vue +5 -5
  38. package/src/components/form/inputs/FileUpload.vue +3 -3
  39. package/src/components/form/inputs/PasswordInput.vue +25 -0
  40. package/src/components/form/inputs/RadioGroup.vue +1 -1
  41. package/src/components/form/inputs/RadioPillsInput.vue +2 -2
  42. package/src/components/form/inputs/RichText.vue +3 -3
  43. package/src/components/form/inputs/RichText2/index.vue +8 -2
  44. package/src/components/form/inputs/SelectInput.vue +11 -4
  45. package/src/components/form/inputs/TableField.vue +3 -3
  46. package/src/components/form/inputs/TextInput.vue +3 -3
  47. package/src/components/form/inputs/ToggleInput.vue +1 -1
  48. package/src/components/form/inputs/index.ts +1 -0
  49. package/src/components/formkit/FileUploader.vue +1 -1
  50. package/src/components/formkit/MiscFields.vue +1 -1
  51. package/src/components/formkit/Toggle.vue +4 -4
  52. package/src/components/index.ts +1 -0
  53. package/src/components/layout/BottomMenu.vue +2 -2
  54. package/src/components/layout/SidebarMenu.vue +1 -1
  55. package/src/components/layout/TabsNav.vue +1 -1
  56. package/src/components/leaflet/leaflet.css +661 -0
  57. package/src/components/lightbox/Lightbox.vue +24 -18
  58. package/src/styles/appearance.css +16 -0
  59. package/src/styles/bagel.css +2 -1
  60. package/src/styles/inputs.css +3 -3
  61. package/src/styles/loginCard.css +1 -1
  62. package/src/styles/modal.css +2 -2
  63. package/src/styles/scrollbar.css +1 -1
  64. package/src/styles/text.css +8 -0
  65. package/src/styles/theme.css +68 -41
  66. package/src/utils/index.ts +16 -0
@@ -257,7 +257,7 @@ function drop(e: DragEvent) {
257
257
  </div>
258
258
  </div>
259
259
 
260
- <div v-if="!multiple" class="bgl-single-preview">
260
+ <div v-if="!multiple && (storageFiles.length > 0 || fileQueue.length > 0)" class="bgl-single-preview">
261
261
  <div
262
262
  v-for="file in storageFiles"
263
263
  :key="file.id"
@@ -297,7 +297,7 @@ function drop(e: DragEvent) {
297
297
  :fileQueue
298
298
  :browse
299
299
  >
300
- <p class="p-1 flex column hover fileUploadPlaceHolder">
300
+ <p class="p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05">
301
301
  <Icon icon="upload_2" />
302
302
  Drop files here or click to upload
303
303
  </p>
@@ -341,7 +341,7 @@ function drop(e: DragEvent) {
341
341
  border: 1px solid var(--border-color) !important;
342
342
  border-radius: var(--input-border-radius);
343
343
  margin: 0.5rem !important;
344
- background: var(--bgl-white);
344
+ background: var(--bgl-popup-bg);
345
345
  padding: 0;
346
346
  padding-inline-end: 0.75rem;
347
347
  text-align: start;
@@ -0,0 +1,25 @@
1
+ <script setup lang="ts">
2
+ import { Btn, TextInput } from '@bagelink/vue'
3
+
4
+ export type TextInputT = InstanceType<typeof TextInput>
5
+
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 }>()
12
+
13
+ const password = defineModel< string>('modelValue')
14
+ const showPwd = defineModel<boolean>('showPwd', { default: false })
15
+
16
+ const toggleShowPwdIcon = $computed(() => showPwd.value ? 'visibility_off' : 'visibility')
17
+ const inputType = $computed(() => showPwd.value ? 'text' : 'password')
18
+ </script>
19
+
20
+ <template>
21
+ <div class="relative">
22
+ <TextInput v-model="password" class="mb-0" :type="inputType" v-bind="txtInputProps" />
23
+ <Btn flat thin class="m-05 position-bottom-end" :icon="toggleShowPwdIcon" @click="showPwd = !showPwd" />
24
+ </div>
25
+ </template>
@@ -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-white shadow-light py-025 rounded m_w40"
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-white);
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-white);
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-white);
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-black)
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-black) !important;
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 bg-white shadow-light w-100 grid">
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 bg-black color-white w-100 rounded p-1">{{ contentHtml }}</code>
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
  }
@@ -243,7 +243,7 @@ onMounted(() => {
243
243
  <div
244
244
  v-for="(option, i) in filteredOptions"
245
245
  :key="`${option}${i}`"
246
- class="selectinput-option hover gap-1"
246
+ class="selectinput-option hover gap-1 align-items-center"
247
247
  :class="{ selected: isSelected(option) }"
248
248
  role="option"
249
249
  tabindex="0"
@@ -252,14 +252,18 @@ onMounted(() => {
252
252
  @keydown.enter="select(option)"
253
253
  >
254
254
  <template v-if="multiselect">
255
- <Icon v-if="isSelected(option)" icon="select_check_box" />
255
+ <Icon
256
+ v-if="isSelected(option)" :size="1.1
257
+ " icon="select_check_box"
258
+ />
256
259
  <Icon
257
260
  v-if="!isSelected(option)"
258
261
  class="opacity-3"
259
262
  icon="check_box_outline_blank"
263
+ :size="1.1"
260
264
  />
261
265
  </template>
262
- <span>
266
+ <span class="block">
263
267
  {{ getLabel(option) }}
264
268
  </span>
265
269
  </div>
@@ -287,6 +291,9 @@ onMounted(() => {
287
291
  font-size: var(--input-font-size);
288
292
  margin-block: 0.15rem;
289
293
  }
294
+ .selectinput-option .bgl_icon-font{
295
+ line-height: normal;
296
+ }
290
297
  .selectinput-options.multiselect .selectinput-option {
291
298
  grid-template-columns: 10px 1fr;
292
299
 
@@ -304,7 +311,7 @@ onMounted(() => {
304
311
  opacity: 0.3;
305
312
  }
306
313
  .selected{
307
- background: var(--input-bg);
314
+ background: var(--bgl-primary-tint);
308
315
  }
309
316
  </style>
310
317
 
@@ -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-white);
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-black);
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-white);
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-black) !important;
162
- color: var(--bgl-white) !important;
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-white) !important;
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-white);
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);
@@ -15,5 +15,6 @@ export { default as TelInput } from './TelInput.vue'
15
15
  export { default as SignaturePad } from './SignaturePad.vue'
16
16
  export { default as RichText2 } from './RichText2/index.vue'
17
17
  export { default as RadioGroup } from './RadioGroup.vue'
18
+ export { default as PasswordInput } from './PasswordInput.vue'
18
19
 
19
20
  export { Dropdown } from 'floating-vue'
@@ -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-white);
308
+ background: var(--bgl-box-bg);
309
309
  border-radius: var(--btn-border-radius);
310
310
  width: 100%;
311
311
  color: var(--input-color);
@@ -69,6 +69,6 @@ function addToField(field: any) {
69
69
 
70
70
  .add-btn:hover::before {
71
71
  background: var(--bgl-primary);
72
- color: var(--bgl-white);
72
+ color: var(--bgl-light-text);
73
73
  }
74
74
  </style>
@@ -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-black);
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-white);
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-white);
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-white);
137
+ background: var(--bgl-popup-bg);
138
138
  -webkit-transition: 0.4s;
139
139
  transition: 0.4s;
140
140
  }
@@ -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-white);
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-white);
65
+ background: var(--bgl-popup-bg);
66
66
  color: var(--bgl-primary) !important;
67
67
  }
68
68
  </style>
@@ -75,7 +75,7 @@ function toggleMenu() {
75
75
  }
76
76
 
77
77
  .nav-button.router-link-active {
78
- background: var(--bgl-white) !important;
78
+ background: var(--bgl-popup-bg) !important;
79
79
  color: var(--bgl-primary);
80
80
  }
81
81
  </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-white);
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;