@bagelink/vue 0.0.160 → 0.0.164

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 (82) hide show
  1. package/dist/components/Btn.vue.d.ts +2 -2
  2. package/dist/components/Btn.vue.d.ts.map +1 -1
  3. package/dist/components/Comments.vue.d.ts.map +1 -1
  4. package/dist/components/DropDown.vue.d.ts.map +1 -1
  5. package/dist/components/FileUploader.vue.d.ts.map +1 -1
  6. package/dist/components/LangText.vue.d.ts.map +1 -1
  7. package/dist/components/NavBar.vue.d.ts.map +1 -1
  8. package/dist/components/PersonPreview.vue.d.ts +1 -1
  9. package/dist/components/PersonPreview.vue.d.ts.map +1 -1
  10. package/dist/components/PersonPreviewFormkit.vue.d.ts +1 -1
  11. package/dist/components/PersonPreviewFormkit.vue.d.ts.map +1 -1
  12. package/dist/components/RTXEditor.vue.d.ts.map +1 -1
  13. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  14. package/dist/components/charts/BarChart.vue.d.ts.map +1 -1
  15. package/dist/components/dashboard/Lineart.vue.d.ts +1 -1
  16. package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
  17. package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
  18. package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
  19. package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
  20. package/dist/components/formkit/AddressArray.vue.d.ts.map +1 -1
  21. package/dist/components/formkit/BankDetailsArray.vue.d.ts.map +1 -1
  22. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts.map +1 -1
  23. package/dist/components/formkit/FileUploader.vue.d.ts.map +1 -1
  24. package/dist/components/formkit/MiscFields.vue.d.ts.map +1 -1
  25. package/dist/index.cjs +60 -49
  26. package/dist/index.mjs +60 -49
  27. package/dist/style.css +1468 -1402
  28. package/package.json +2 -2
  29. package/src/components/Btn.vue +127 -132
  30. package/src/components/Comments.vue +155 -169
  31. package/src/components/DropDown.vue +73 -77
  32. package/src/components/FileUploader.vue +133 -141
  33. package/src/components/FormKitTable.vue +191 -205
  34. package/src/components/LangText.vue +14 -14
  35. package/src/components/NavBar.vue +264 -261
  36. package/src/components/PersonPreview.vue +123 -148
  37. package/src/components/PersonPreviewFormkit.vue +124 -148
  38. package/src/components/RTXEditor.vue +91 -91
  39. package/src/components/TableSchema.vue +150 -156
  40. package/src/components/charts/BarChart.vue +212 -227
  41. package/src/components/dashboard/Lineart.vue +117 -130
  42. package/src/components/form/inputs/CheckInput.vue +90 -90
  43. package/src/components/form/inputs/Checkbox.vue +38 -41
  44. package/src/components/form/inputs/PasswordInput.vue +56 -63
  45. package/src/components/formkit/AddressArray.vue +150 -173
  46. package/src/components/formkit/BankDetailsArray.vue +175 -198
  47. package/src/components/formkit/ContactArrayFormKit.vue +124 -142
  48. package/src/components/formkit/FileUploader.vue +256 -260
  49. package/src/components/formkit/MiscFields.vue +42 -42
  50. package/src/components/formkit/Toggle.vue +97 -97
  51. package/src/styles/bagel.css +1 -0
  52. package/src/styles/buttons.css +5 -0
  53. package/src/styles/dark.css +46 -0
  54. package/src/styles/fonts/Ploni.css +8 -8
  55. package/src/styles/inputs.css +57 -13
  56. package/src/styles/layout.css +43 -0
  57. package/src/styles/text.css +83 -10
  58. package/src/styles/theme.css +25 -155
  59. package/src/styles/fonts/Ploni/ploni-black.eot +0 -0
  60. package/src/styles/fonts/Ploni/ploni-black.woff +0 -0
  61. package/src/styles/fonts/Ploni/ploni-black.woff2 +0 -0
  62. package/src/styles/fonts/Ploni/ploni-bold.eot +0 -0
  63. package/src/styles/fonts/Ploni/ploni-bold.woff +0 -0
  64. package/src/styles/fonts/Ploni/ploni-bold.woff2 +0 -0
  65. package/src/styles/fonts/Ploni/ploni-demibold.eot +0 -0
  66. package/src/styles/fonts/Ploni/ploni-demibold.woff +0 -0
  67. package/src/styles/fonts/Ploni/ploni-demibold.woff2 +0 -0
  68. package/src/styles/fonts/Ploni/ploni-light.eot +0 -0
  69. package/src/styles/fonts/Ploni/ploni-light.woff +0 -0
  70. package/src/styles/fonts/Ploni/ploni-light.woff2 +0 -0
  71. package/src/styles/fonts/Ploni/ploni-medium.eot +0 -0
  72. package/src/styles/fonts/Ploni/ploni-medium.woff +0 -0
  73. package/src/styles/fonts/Ploni/ploni-medium.woff2 +0 -0
  74. package/src/styles/fonts/Ploni/ploni-regular.eot +0 -0
  75. package/src/styles/fonts/Ploni/ploni-regular.woff +0 -0
  76. package/src/styles/fonts/Ploni/ploni-regular.woff2 +0 -0
  77. package/src/styles/fonts/Ploni/ploni-ultrabold.eot +0 -0
  78. package/src/styles/fonts/Ploni/ploni-ultrabold.woff +0 -0
  79. package/src/styles/fonts/Ploni/ploni-ultrabold.woff2 +0 -0
  80. package/src/styles/fonts/Ploni/ploni-ultralight.eot +0 -0
  81. package/src/styles/fonts/Ploni/ploni-ultralight.woff +0 -0
  82. package/src/styles/fonts/Ploni/ploni-ultralight.woff2 +0 -0
@@ -1,90 +1,93 @@
1
1
  <template>
2
- <div :class="{ open: isOpen, closed: !isOpen }">
3
- <slot name="top" />
4
- <div
5
- class="nav-expend"
6
- @click="isOpen = !isOpen"
7
- @keypress.enter="isOpen = !isOpen"
8
- role="button"
9
- aria-label="Toggle Navigation"
10
- tabindex="0"
11
- >
12
- <div class="icon-font top-arrow">
13
- chevron_right
14
- </div>
15
- </div>
16
-
17
- <div class="full-nav">
18
- <div class="nav-scroll">
19
- <div class="nav-links-wrapper">
20
- <RouterLink
21
- v-for="link in links?.()"
22
- class="nav-button"
23
- :to="link.to"
24
- :key="link.label"
25
- >
26
- <div class="icon-font">
27
- {{ link.materialIcon }}
28
- </div>
29
- <div class="tooltip">
30
- {{ link.localized ? link.localized : link.label }}
31
- </div>
32
- </RouterLink>
33
- </div>
34
- </div>
35
-
36
- <div class="bot-buttons-wrapper">
37
- <slot name="floor" />
38
- </div>
39
- </div>
40
- </div>
2
+ <div :class="{ open: isOpen, closed: !isOpen }">
3
+ <slot name="top" />
4
+ <div
5
+ class="nav-expend"
6
+ @click="isOpen = !isOpen"
7
+ @keypress.enter="isOpen = !isOpen"
8
+ role="button"
9
+ aria-label="Toggle Navigation"
10
+ tabindex="0"
11
+ >
12
+ <div class="icon-font top-arrow">chevron_right</div>
13
+ </div>
14
+
15
+ <div class="full-nav">
16
+ <div class="nav-scroll">
17
+ <div class="nav-links-wrapper">
18
+ <RouterLink
19
+ v-for="link in links?.()"
20
+ class="nav-button"
21
+ :to="link.to"
22
+ :key="link.label"
23
+ >
24
+ <div class="icon-font">
25
+ {{ link.materialIcon }}
26
+ </div>
27
+ <div class="tooltip">
28
+ {{ link.localized ? link.localized : link.label }}
29
+ </div>
30
+ </RouterLink>
31
+ </div>
32
+ </div>
33
+
34
+ <div class="bot-buttons-wrapper">
35
+ <slot name="floor" />
36
+ </div>
37
+ </div>
38
+ </div>
41
39
  </template>
42
40
 
43
41
  <script lang="ts" setup>
44
42
  // import LangText from "../translation/LangText.vue"s
45
- import type { MaterialIcons } from '@bagelink/vue';
43
+ import type { MaterialIcons } from "@bagelink/vue";
46
44
 
47
45
  const isOpen = $ref(true);
48
46
 
49
47
  withDefaults(
50
- defineProps<{
51
- links?: () => { label: string; to: string; materialIcon: MaterialIcons, localized?: string }[];
52
- homeIcon?: MaterialIcons;
53
- homeLabel?: string;
54
- homeTo?: string;
55
- }>(),
56
- {
57
- homeIcon: 'home',
58
- homeLabel: 'Home',
59
- homeTo: '/',
60
- },
48
+ defineProps<{
49
+ links?: () => {
50
+ label: string;
51
+ to: string;
52
+ materialIcon: MaterialIcons;
53
+ localized?: string;
54
+ }[];
55
+ homeIcon?: MaterialIcons;
56
+ homeLabel?: string;
57
+ homeTo?: string;
58
+ }>(),
59
+ {
60
+ homeIcon: "home",
61
+ homeLabel: "Home",
62
+ homeTo: "/",
63
+ }
61
64
  );
62
65
  </script>
63
66
 
64
67
  <style>
65
- [dir='rtl'] .top-arrow {
66
- transform: rotate(180deg);
68
+ [dir="rtl"] .top-arrow {
69
+ transform: rotate(180deg);
67
70
  }
68
71
 
69
72
  .nav-expend {
70
- text-align: center;
71
- cursor: pointer;
72
- background: var(--bgl-white);
73
- color: var(--bgl-blue);
74
- display: flex;
75
- border-radius: 100%;
76
- font-size: 13px;
77
- box-shadow: 0 0 50px 0 var(--bgl-shadow);
78
- height: 22px;
79
- width: 22px;
80
- align-items: center;
81
- justify-content: center;
82
- position: absolute;
83
- top: 82px;
84
- box-sizing: border-box;
85
- padding-inline-start: 2px;
86
- margin-inline-start: 55px;
87
- transition: all 0.4s cubic-bezier(0.36, 0.02, 0.23, 1);
73
+ text-align: center;
74
+ cursor: pointer;
75
+ background: var(--bgl-white);
76
+ color: var(--bgl-primary);
77
+ display: flex;
78
+ border-radius: 100%;
79
+ font-size: 13px;
80
+ box-shadow: 0 0 50px 0 var(--bgl-shadow);
81
+ height: 22px;
82
+ width: 22px;
83
+ align-items: center;
84
+ justify-content: center;
85
+ position: absolute;
86
+ top: 82px;
87
+ box-sizing: border-box;
88
+ padding-inline-start: 2px;
89
+ margin-inline-start: 55px;
90
+ transition: all 0.4s cubic-bezier(0.36, 0.02, 0.23, 1);
88
91
  }
89
92
 
90
93
  /*
@@ -94,260 +97,260 @@ withDefaults(
94
97
  */
95
98
 
96
99
  .nav-expend {
97
- background: white;
100
+ background: var(--bgl-white);
98
101
  }
99
102
 
100
103
  .nav-expend:hover {
101
- filter: brightness(95%);
102
- box-shadow: 0 0 20px 0 var(--bgl-blue-tint);
104
+ filter: brightness(95%);
105
+ box-shadow: 0 0 20px 0 var(--bgl-primary-tint);
103
106
  }
104
107
 
105
108
  .nav-expend:active {
106
- filter: var(--bgl-active-filter);
109
+ filter: var(--bgl-active-filter);
107
110
  }
108
111
 
109
112
  .nav {
110
- color: var(--bgl-white);
111
- background: var(--bgl-blue);
112
- z-index: 100;
113
- width: 70px;
114
- transition: all 0.4s cubic-bezier(0.36, 0.02, 0.23, 1);
115
- display: flex;
116
- flex-direction: column;
113
+ color: var(--bgl-white);
114
+ background: var(--bgl-primary);
115
+ z-index: 100;
116
+ width: 70px;
117
+ transition: all 0.4s cubic-bezier(0.36, 0.02, 0.23, 1);
118
+ display: flex;
119
+ flex-direction: column;
117
120
  }
118
121
 
119
122
  .nav * {
120
- user-select: none;
123
+ user-select: none;
121
124
  }
122
125
 
123
126
  .nav-button {
124
- text-decoration: none;
125
- cursor: pointer;
126
- display: flex;
127
- text-align: start;
128
- align-items: center;
129
- position: relative;
130
- color: var(--bgl-white);
131
- transition: all 0.2s ease;
132
- pointer-events: none;
127
+ text-decoration: none;
128
+ cursor: pointer;
129
+ display: flex;
130
+ text-align: start;
131
+ align-items: center;
132
+ position: relative;
133
+ color: var(--bgl-white);
134
+ transition: all 0.2s ease;
135
+ pointer-events: none;
133
136
  }
134
137
 
135
138
  .nav-button:hover {
136
- width: fit-content;
137
- pointer-events: all;
139
+ width: fit-content;
140
+ pointer-events: all;
138
141
  }
139
142
 
140
143
  .nav-button .icon-font {
141
- font-size: 22px;
142
- margin: 0.25rem 10px;
143
- padding: 10px;
144
- width: 50px;
145
- text-align: center;
146
- height: 45px;
147
- flex-grow: 0;
148
- flex-shrink: 0;
149
- border-radius: 10px;
150
- transition: all 0.2s ease;
151
- pointer-events: all;
144
+ font-size: 22px;
145
+ margin: 0.25rem 10px;
146
+ padding: 10px;
147
+ width: 50px;
148
+ text-align: center;
149
+ height: 45px;
150
+ flex-grow: 0;
151
+ flex-shrink: 0;
152
+ border-radius: 10px;
153
+ transition: all 0.2s ease;
154
+ pointer-events: all;
152
155
  }
153
156
 
154
157
  .nav-button:hover .icon-font,
155
158
  .nav-button.router-link-active .icon-font {
156
- background: var(--bgl-white);
157
- color: var(--bgl-blue);
159
+ background: var(--bgl-white);
160
+ color: var(--bgl-primary);
158
161
  }
159
162
 
160
163
  .nav-button:hover .tooltip {
161
- opacity: 1;
162
- pointer-events: all;
164
+ opacity: 1;
165
+ pointer-events: all;
163
166
  }
164
167
 
165
168
  .tooltip {
166
- background-color: var(--bgl-white);
167
- color: var(--bgl-blue);
168
- line-height: 1;
169
- padding: 0.5rem;
170
- border-radius: 10px;
171
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
172
- transition: all 0.2s ease;
173
- border: 5px solid transparent;
174
- white-space: nowrap;
175
- pointer-events: none;
176
- opacity: 0;
177
- margin-inline-start: 1rem;
169
+ background-color: var(--bgl-white);
170
+ color: var(--bgl-primary);
171
+ line-height: 1;
172
+ padding: 0.5rem;
173
+ border-radius: 10px;
174
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
175
+ transition: all 0.2s ease;
176
+ border: 5px solid transparent;
177
+ white-space: nowrap;
178
+ pointer-events: none;
179
+ opacity: 0;
180
+ margin-inline-start: 1rem;
178
181
  }
179
182
 
180
183
  .tooltip:hover {
181
- filter: brightness(95%);
184
+ filter: brightness(95%);
182
185
  }
183
186
 
184
187
  .tooltip:active {
185
- filter: brightness(90%);
188
+ filter: brightness(90%);
186
189
  }
187
190
 
188
191
  .bot-buttons-wrapper {
189
- margin-top: auto;
190
- width: 100%;
192
+ margin-top: auto;
193
+ width: 100%;
191
194
  }
192
195
 
193
196
  .nav-links-wrapper {
194
- direction: ltr;
197
+ direction: ltr;
195
198
  }
196
199
 
197
- [dir='rtl'] .nav-links-wrapper {
198
- direction: rtl;
200
+ [dir="rtl"] .nav-links-wrapper {
201
+ direction: rtl;
199
202
  }
200
203
 
201
204
  .nav-scroll {
202
- overflow-y: scroll;
203
- width: 50vw;
204
- direction: rtl;
205
- text-align: end;
206
- margin-inline-end: -7px;
207
- pointer-events: none;
208
- display: flex;
209
- flex-direction: column;
205
+ overflow-y: scroll;
206
+ width: 50vw;
207
+ direction: rtl;
208
+ text-align: end;
209
+ margin-inline-end: -7px;
210
+ pointer-events: none;
211
+ display: flex;
212
+ flex-direction: column;
210
213
  }
211
214
 
212
215
  .nav::-webkit-scrollbar-thumb {
213
- background-color: transparent;
216
+ background-color: transparent;
214
217
  }
215
218
 
216
219
  .nav:hover::-webkit-scrollbar-thumb {
217
- background-color: var(--bgl-gray);
220
+ background-color: var(--bgl-gray);
218
221
  }
219
222
 
220
- [dir='rtl'] .nav-scroll {
221
- direction: ltr;
223
+ [dir="rtl"] .nav-scroll {
224
+ direction: ltr;
222
225
  }
223
226
 
224
227
  .full-nav {
225
- height: 100%;
226
- display: flex;
227
- flex-direction: column;
228
+ height: 100%;
229
+ display: flex;
230
+ flex-direction: column;
228
231
  }
229
232
 
230
233
  @media screen and (min-width: 910px) {
231
- .nav.open .nav-expend {
232
- margin-inline-start: 189px;
233
- transform: rotate(180deg);
234
- }
235
-
236
- .nav.open {
237
- width: 200px;
238
- text-align: start;
239
- }
240
-
241
- .nav.open .tooltip {
242
- background-color: transparent;
243
- color: var(--bgl-white);
244
- padding: 0;
245
- box-shadow: none;
246
- pointer-events: all;
247
- opacity: 1;
248
- margin-inline-start: 0rem;
249
- }
250
-
251
- .nav.open .nav-button .icon-font {
252
- margin: 0;
253
- background: transparent;
254
- }
255
-
256
- .nav.open .nav-button {
257
- width: 180px;
258
- border-radius: 10px;
259
- margin-inline-start: 10px;
260
- margin-top: 10px;
261
- margin-bottom: 10px;
262
- }
263
-
264
- .nav.open .nav-button:hover,
265
- .nav.open .nav-button.router-link-active {
266
- background: var(--bgl-white);
267
- color: var(--bgl-blue);
268
- }
269
-
270
- .nav.open .nav-button:hover,
271
- .nav.open .nav-button:hover .tooltip,
272
- .nav.open .nav-button.router-link-active .tooltip {
273
- color: var(--bgl-blue);
274
- }
234
+ .nav.open .nav-expend {
235
+ margin-inline-start: 189px;
236
+ transform: rotate(180deg);
237
+ }
238
+
239
+ .nav.open {
240
+ width: 200px;
241
+ text-align: start;
242
+ }
243
+
244
+ .nav.open .tooltip {
245
+ background-color: transparent;
246
+ color: var(--bgl-white);
247
+ padding: 0;
248
+ box-shadow: none;
249
+ pointer-events: all;
250
+ opacity: 1;
251
+ margin-inline-start: 0rem;
252
+ }
253
+
254
+ .nav.open .nav-button .icon-font {
255
+ margin: 0;
256
+ background: transparent;
257
+ }
258
+
259
+ .nav.open .nav-button {
260
+ width: 180px;
261
+ border-radius: 10px;
262
+ margin-inline-start: 10px;
263
+ margin-top: 10px;
264
+ margin-bottom: 10px;
265
+ }
266
+
267
+ .nav.open .nav-button:hover,
268
+ .nav.open .nav-button.router-link-active {
269
+ background: var(--bgl-white);
270
+ color: var(--bgl-primary);
271
+ }
272
+
273
+ .nav.open .nav-button:hover,
274
+ .nav.open .nav-button:hover .tooltip,
275
+ .nav.open .nav-button.router-link-active .tooltip {
276
+ color: var(--bgl-primary);
277
+ }
275
278
  }
276
279
 
277
280
  @media screen and (max-width: 910px) {
278
- .full-nav {
279
- height: auto;
280
- display: flex;
281
- flex-direction: row;
282
- width: calc(100vw - 70px);
283
- position: absolute;
284
- inset-inline-end: 0;
285
- overflow-x: auto;
286
- }
287
-
288
- .nav.open {
289
- width: initial;
290
- }
291
-
292
- .nav {
293
- width: auto;
294
- display: flex;
295
- flex-direction: row;
296
- margin: 0;
297
- overflow-x: auto;
298
- justify-content: flex-start;
299
- }
300
-
301
- .tooltip {
302
- opacity: 1;
303
- background: transparent;
304
- color: var(--bgl-white);
305
- box-shadow: none;
306
- font-size: 10px;
307
- padding: 0;
308
- margin: 0;
309
- }
310
-
311
- .nav-button {
312
- flex-direction: column;
313
- margin: 12px 0.25rem;
314
- }
315
-
316
- .nav-button .icon-font {
317
- padding: 2px 0 0 0;
318
- margin: 0;
319
- height: 30px;
320
- width: 30px;
321
- }
322
-
323
- .nav-links-wrapper {
324
- display: flex;
325
- }
326
-
327
- .bot-buttons-wrapper {
328
- margin-top: 0;
329
- width: auto;
330
- display: flex;
331
- }
332
-
333
- .nav-scroll {
334
- overflow-y: visible;
335
- width: auto;
336
- direction: auto;
337
- text-align: start;
338
- margin-inline-end: 0px;
339
- pointer-events: all;
340
- display: flex;
341
- flex-direction: row;
342
- margin-inline-end: auto;
343
- }
344
-
345
- .nav::-webkit-scrollbar {
346
- display: none;
347
- }
348
-
349
- .nav-expend {
350
- display: none;
351
- }
281
+ .full-nav {
282
+ height: auto;
283
+ display: flex;
284
+ flex-direction: row;
285
+ width: calc(100vw - 70px);
286
+ position: absolute;
287
+ inset-inline-end: 0;
288
+ overflow-x: auto;
289
+ }
290
+
291
+ .nav.open {
292
+ width: initial;
293
+ }
294
+
295
+ .nav {
296
+ width: auto;
297
+ display: flex;
298
+ flex-direction: row;
299
+ margin: 0;
300
+ overflow-x: auto;
301
+ justify-content: flex-start;
302
+ }
303
+
304
+ .tooltip {
305
+ opacity: 1;
306
+ background: transparent;
307
+ color: var(--bgl-white);
308
+ box-shadow: none;
309
+ font-size: 10px;
310
+ padding: 0;
311
+ margin: 0;
312
+ }
313
+
314
+ .nav-button {
315
+ flex-direction: column;
316
+ margin: 12px 0.25rem;
317
+ }
318
+
319
+ .nav-button .icon-font {
320
+ padding: 2px 0 0 0;
321
+ margin: 0;
322
+ height: 30px;
323
+ width: 30px;
324
+ }
325
+
326
+ .nav-links-wrapper {
327
+ display: flex;
328
+ }
329
+
330
+ .bot-buttons-wrapper {
331
+ margin-top: 0;
332
+ width: auto;
333
+ display: flex;
334
+ }
335
+
336
+ .nav-scroll {
337
+ overflow-y: visible;
338
+ width: auto;
339
+ direction: auto;
340
+ text-align: start;
341
+ margin-inline-end: 0px;
342
+ pointer-events: all;
343
+ display: flex;
344
+ flex-direction: row;
345
+ margin-inline-end: auto;
346
+ }
347
+
348
+ .nav::-webkit-scrollbar {
349
+ display: none;
350
+ }
351
+
352
+ .nav-expend {
353
+ display: none;
354
+ }
352
355
  }
353
356
  </style>