@bagelink/vue 0.0.158 → 0.0.162

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 (88) 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 +60 -0
  6. package/dist/components/FileUploader.vue.d.ts.map +1 -0
  7. package/dist/components/LangText.vue.d.ts.map +1 -1
  8. package/dist/components/NavBar.vue.d.ts.map +1 -1
  9. package/dist/components/PersonPreview.vue.d.ts +1 -1
  10. package/dist/components/PersonPreview.vue.d.ts.map +1 -1
  11. package/dist/components/PersonPreviewFormkit.vue.d.ts +1 -1
  12. package/dist/components/PersonPreviewFormkit.vue.d.ts.map +1 -1
  13. package/dist/components/RTXEditor.vue.d.ts.map +1 -1
  14. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  15. package/dist/components/charts/BarChart.vue.d.ts.map +1 -1
  16. package/dist/components/dashboard/Lineart.vue.d.ts +1 -1
  17. package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
  18. package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
  19. package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
  20. package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
  21. package/dist/components/formkit/AddressArray.vue.d.ts.map +1 -1
  22. package/dist/components/formkit/BankDetailsArray.vue.d.ts.map +1 -1
  23. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts.map +1 -1
  24. package/dist/components/formkit/FileUploader.vue.d.ts.map +1 -1
  25. package/dist/components/formkit/MiscFields.vue.d.ts.map +1 -1
  26. package/dist/components/formkit/index.d.ts.map +1 -1
  27. package/dist/components/index.d.ts +2 -1
  28. package/dist/components/index.d.ts.map +1 -1
  29. package/dist/index.cjs +442 -269
  30. package/dist/index.mjs +442 -269
  31. package/dist/style.css +1600 -1404
  32. package/package.json +1 -1
  33. package/src/components/Btn.vue +127 -132
  34. package/src/components/Comments.vue +155 -169
  35. package/src/components/DropDown.vue +73 -77
  36. package/src/components/FileUploader.vue +133 -141
  37. package/src/components/FormKitTable.vue +191 -205
  38. package/src/components/LangText.vue +14 -14
  39. package/src/components/NavBar.vue +264 -261
  40. package/src/components/PersonPreview.vue +123 -148
  41. package/src/components/PersonPreviewFormkit.vue +124 -148
  42. package/src/components/RTXEditor.vue +91 -91
  43. package/src/components/TableSchema.vue +150 -156
  44. package/src/components/charts/BarChart.vue +212 -227
  45. package/src/components/dashboard/Lineart.vue +117 -130
  46. package/src/components/form/inputs/CheckInput.vue +90 -90
  47. package/src/components/form/inputs/Checkbox.vue +38 -41
  48. package/src/components/form/inputs/PasswordInput.vue +56 -63
  49. package/src/components/formkit/AddressArray.vue +150 -173
  50. package/src/components/formkit/BankDetailsArray.vue +175 -198
  51. package/src/components/formkit/ContactArrayFormKit.vue +124 -142
  52. package/src/components/formkit/FileUploader.vue +256 -260
  53. package/src/components/formkit/MiscFields.vue +42 -42
  54. package/src/components/formkit/Toggle.vue +97 -97
  55. package/src/components/formkit/index.ts +3 -3
  56. package/src/components/index.ts +2 -1
  57. package/src/styles/bagel.css +1 -0
  58. package/src/styles/buttons.css +5 -0
  59. package/src/styles/dark.css +46 -0
  60. package/src/styles/fonts/Ploni.css +8 -8
  61. package/src/styles/inputs.css +57 -13
  62. package/src/styles/layout.css +43 -0
  63. package/src/styles/text.css +83 -10
  64. package/src/styles/theme.css +25 -155
  65. package/src/styles/fonts/Ploni/ploni-black.eot +0 -0
  66. package/src/styles/fonts/Ploni/ploni-black.woff +0 -0
  67. package/src/styles/fonts/Ploni/ploni-black.woff2 +0 -0
  68. package/src/styles/fonts/Ploni/ploni-bold.eot +0 -0
  69. package/src/styles/fonts/Ploni/ploni-bold.woff +0 -0
  70. package/src/styles/fonts/Ploni/ploni-bold.woff2 +0 -0
  71. package/src/styles/fonts/Ploni/ploni-demibold.eot +0 -0
  72. package/src/styles/fonts/Ploni/ploni-demibold.woff +0 -0
  73. package/src/styles/fonts/Ploni/ploni-demibold.woff2 +0 -0
  74. package/src/styles/fonts/Ploni/ploni-light.eot +0 -0
  75. package/src/styles/fonts/Ploni/ploni-light.woff +0 -0
  76. package/src/styles/fonts/Ploni/ploni-light.woff2 +0 -0
  77. package/src/styles/fonts/Ploni/ploni-medium.eot +0 -0
  78. package/src/styles/fonts/Ploni/ploni-medium.woff +0 -0
  79. package/src/styles/fonts/Ploni/ploni-medium.woff2 +0 -0
  80. package/src/styles/fonts/Ploni/ploni-regular.eot +0 -0
  81. package/src/styles/fonts/Ploni/ploni-regular.woff +0 -0
  82. package/src/styles/fonts/Ploni/ploni-regular.woff2 +0 -0
  83. package/src/styles/fonts/Ploni/ploni-ultrabold.eot +0 -0
  84. package/src/styles/fonts/Ploni/ploni-ultrabold.woff +0 -0
  85. package/src/styles/fonts/Ploni/ploni-ultrabold.woff2 +0 -0
  86. package/src/styles/fonts/Ploni/ploni-ultralight.eot +0 -0
  87. package/src/styles/fonts/Ploni/ploni-ultralight.woff +0 -0
  88. package/src/styles/fonts/Ploni/ploni-ultralight.woff2 +0 -0
@@ -1,131 +1,116 @@
1
1
  <template>
2
- <div class="bar-chart">
3
- <div
4
- class="graph-wrap"
5
- v-for="(item, i) in dataArray"
6
- :key="i"
7
- >
8
- <div
9
- class="group-wrap"
10
- v-if="item.group"
11
- >
12
- <p class="group-title">
13
- {{ item.group }}
14
- </p>
15
- <div
16
- v-for="(nested, i) in item?.data || []"
17
- :key="i"
18
- class="bar-wrap"
19
- >
20
- <div
21
- class="bar"
22
- :style="{ height: loaded ? `${percent(nested.value)}%` : '0' }"
23
- />
24
- <div
25
- class="bar compare"
26
- v-if="nested.compareValue"
27
- :style="{
28
- height: loaded ? `${percent(nested.compareValue)}%` : '0',
29
- }"
30
- />
31
- <!-- <p class="bar-txt">{{ nested.title }}</p> -->
32
- </div>
33
- </div>
34
- <div
35
- v-else
36
- class="bar-wrap"
37
- >
38
- <div
39
- class="bar"
40
- :style="{ height: loaded ? `${percent(item.value)}%` : '0' }"
41
- />
42
- <div
43
- class="bar compare"
44
- v-if="item?.compareValue"
45
- :style="{ height: loaded ? `${percent(item.compareValue)}%` : '0' }"
46
- />
47
- <p class="bar-txt">
48
- {{ item.title }}
49
- </p>
50
- </div>
51
- </div>
52
- <p class="factor">
53
- {{ title }}
54
- </p>
55
- <div class="red-bar" />
56
- <div class="bar-lines">
57
- <p
58
- v-for="mark in marks"
59
- :key="mark"
60
- >
61
- {{ mark.toLocaleString() }}
62
- </p>
63
- </div>
64
- </div>
2
+ <div class="bar-chart">
3
+ <div class="graph-wrap" v-for="(item, i) in dataArray" :key="i">
4
+ <div class="group-wrap" v-if="item.group">
5
+ <p class="group-title">
6
+ {{ item.group }}
7
+ </p>
8
+ <div v-for="(nested, i) in item?.data || []" :key="i" class="bar-wrap">
9
+ <div
10
+ class="bar"
11
+ :style="{ height: loaded ? `${percent(nested.value)}%` : '0' }"
12
+ />
13
+ <div
14
+ class="bar compare"
15
+ v-if="nested.compareValue"
16
+ :style="{
17
+ height: loaded ? `${percent(nested.compareValue)}%` : '0',
18
+ }"
19
+ />
20
+ <!-- <p class="bar-txt">{{ nested.title }}</p> -->
21
+ </div>
22
+ </div>
23
+ <div v-else class="bar-wrap">
24
+ <div
25
+ class="bar"
26
+ :style="{ height: loaded ? `${percent(item.value)}%` : '0' }"
27
+ />
28
+ <div
29
+ class="bar compare"
30
+ v-if="item?.compareValue"
31
+ :style="{ height: loaded ? `${percent(item.compareValue)}%` : '0' }"
32
+ />
33
+ <p class="bar-txt">
34
+ {{ item.title }}
35
+ </p>
36
+ </div>
37
+ </div>
38
+ <p class="factor">
39
+ {{ title }}
40
+ </p>
41
+ <div class="red-bar" />
42
+ <div class="bar-lines">
43
+ <p v-for="mark in marks" :key="mark">
44
+ {{ mark.toLocaleString() }}
45
+ </p>
46
+ </div>
47
+ </div>
65
48
  </template>
66
49
 
67
50
  <script setup lang="ts">
68
- import { ref, onMounted, computed } from 'vue';
51
+ import { ref, onMounted, computed } from "vue";
69
52
 
70
53
  const props = defineProps<{
71
- title?: string;
72
- showMarks?: boolean;
73
- flood?: number;
74
- modelValue: {
75
- value: number;
76
- title?: string;
77
- compareValue?: number;
78
- group?: string;
79
- data?: Record<string, any>[];
80
- }[];
81
- // | {
82
- // group: string;
83
- // data: {
84
- // value: number;
85
- // title: string;
86
- // compareValue?: number | undefined;
87
- // group?: string | undefined;
88
- // data?: Record<string, any>[] | undefined;
89
- // }[]
90
- // }[]
54
+ title?: string;
55
+ showMarks?: boolean;
56
+ flood?: number;
57
+ modelValue: {
58
+ value: number;
59
+ title?: string;
60
+ compareValue?: number;
61
+ group?: string;
62
+ data?: Record<string, any>[];
63
+ }[];
64
+ // | {
65
+ // group: string;
66
+ // data: {
67
+ // value: number;
68
+ // title: string;
69
+ // compareValue?: number | undefined;
70
+ // group?: string | undefined;
71
+ // data?: Record<string, any>[] | undefined;
72
+ // }[]
73
+ // }[]
91
74
  }>();
92
75
  const loaded = ref(false);
93
76
 
94
77
  onMounted(() => {
95
- setTimeout(() => {
96
- loaded.value = true;
97
- }, 400);
78
+ setTimeout(() => {
79
+ loaded.value = true;
80
+ }, 400);
98
81
  });
99
82
 
100
83
  const dataArray = computed(
101
- () => props.modelValue,
102
- // const allData = []
103
- // for (const item of props.modelValue) {
104
- // if (item.group) {
105
- // let groupIndex = allData.findIndex(d => d.group === item.group)
106
- // if (groupIndex > -1) allData[groupIndex].data?.push(item);
107
- // else allData.push({ group: item.group, data: [item] })
108
- // } else {
109
- // allData.push(item)
110
- // }
111
- // }
112
- // return allData;
84
+ () => props.modelValue
85
+ // const allData = []
86
+ // for (const item of props.modelValue) {
87
+ // if (item.group) {
88
+ // let groupIndex = allData.findIndex(d => d.group === item.group)
89
+ // if (groupIndex > -1) allData[groupIndex].data?.push(item);
90
+ // else allData.push({ group: item.group, data: [item] })
91
+ // } else {
92
+ // allData.push(item)
93
+ // }
94
+ // }
95
+ // return allData;
113
96
  );
114
97
 
115
- const maxValue = computed(() => Math.ceil(
116
- Math.max(
117
- ...dataArray.value.map((d) => d.value),
118
- ...dataArray.value.map((d) => d?.compareValue || 0),
119
- ),
120
- ));
98
+ const maxValue = computed(() =>
99
+ Math.ceil(
100
+ Math.max(
101
+ ...dataArray.value.map((d) => d.value),
102
+ ...dataArray.value.map((d) => d?.compareValue || 0)
103
+ )
104
+ )
105
+ );
121
106
 
122
107
  const marks = computed(() => {
123
- const marksArray: number[] = [];
124
- for (let i = 0; i <= 5; i += 1) {
125
- const step = (i * maxValue.value) / 5;
126
- marksArray.push(Math.round(step / 10) * 10);
127
- }
128
- return marksArray;
108
+ const marksArray: number[] = [];
109
+ for (let i = 0; i <= 5; i += 1) {
110
+ const step = (i * maxValue.value) / 5;
111
+ marksArray.push(Math.round(step / 10) * 10);
112
+ }
113
+ return marksArray;
129
114
  });
130
115
 
131
116
  const percent = (val: number) => (val / maxValue.value) * 100;
@@ -138,179 +123,179 @@ const floodPercent = computed(() => `${props.flood}%`);
138
123
  } */
139
124
 
140
125
  .group-wrap {
141
- height: 100%;
142
- display: flex;
143
- align-items: center;
144
- justify-content: center;
145
- flex-wrap: wrap;
146
- gap: 2px;
126
+ height: 100%;
127
+ display: flex;
128
+ align-items: center;
129
+ justify-content: center;
130
+ flex-wrap: wrap;
131
+ gap: 2px;
147
132
  }
148
133
 
149
134
  .group-wrap .bar-wrap {
150
- gap: 2px;
135
+ gap: 2px;
151
136
  }
152
137
 
153
138
  .group-title {
154
- font-size: 0.6em;
155
- width: 100%;
139
+ font-size: 0.6em;
140
+ width: 100%;
156
141
  }
157
142
 
158
143
  .bar-txt {
159
- font-size: 11px;
160
- font-weight: 200;
161
- /* max-width: 95%; */
162
- width: max-content;
163
- height: 20px;
164
- line-height: 1.2;
165
- margin: 5px auto 0;
166
- position: absolute;
167
- transform: rotate(300deg);
168
- transform-origin: 40px 40px;
144
+ font-size: 11px;
145
+ font-weight: 200;
146
+ /* max-width: 95%; */
147
+ width: max-content;
148
+ height: 20px;
149
+ line-height: 1.2;
150
+ margin: 5px auto 0;
151
+ position: absolute;
152
+ transform: rotate(300deg);
153
+ transform-origin: 40px 40px;
169
154
  }
170
155
 
171
156
  .graph-wrap {
172
- display: flex;
173
- flex-direction: row;
174
- align-items: flex-end;
175
- padding: 0 10px;
157
+ display: flex;
158
+ flex-direction: row;
159
+ align-items: flex-end;
160
+ padding: 0 10px;
176
161
  }
177
162
 
178
163
  .bar-wrap {
179
- text-align: center;
180
- height: 100%;
181
- /* flex: 0 1 16.6%; */
182
- display: flex;
183
- flex-direction: row;
184
- align-items: flex-end;
185
- position: relative;
164
+ text-align: center;
165
+ height: 100%;
166
+ /* flex: 0 1 16.6%; */
167
+ display: flex;
168
+ flex-direction: row;
169
+ align-items: flex-end;
170
+ position: relative;
186
171
  }
187
172
 
188
173
  .bar {
189
- background: var(--bgl-blue);
190
- position: relative;
191
- min-width: 10px;
192
- min-height: 5px;
193
- width: 4px;
194
- margin: 0 auto;
195
- transition: all ease-out 0.8s;
174
+ background: var(--bgl-primary);
175
+ position: relative;
176
+ min-width: 10px;
177
+ min-height: 5px;
178
+ width: 4px;
179
+ margin: 0 auto;
180
+ transition: all ease-out 0.8s;
196
181
  }
197
182
 
198
183
  .bar.compare {
199
- background-color: #cf2135;
184
+ background-color: #cf2135;
200
185
  }
201
186
 
202
187
  .bar-chart {
203
- height: calc(100vh - 500px);
204
- width: 90%;
205
- margin: 30px auto;
206
- display: flex;
207
- justify-content: space-between;
208
- position: relative;
188
+ height: calc(100vh - 500px);
189
+ width: 90%;
190
+ margin: 30px auto;
191
+ display: flex;
192
+ justify-content: space-between;
193
+ position: relative;
209
194
  }
210
195
 
211
196
  .graps .bar-chart {
212
- aspect-ratio: 9/5;
213
- height: auto;
214
- max-height: calc(100vh - 500px);
197
+ aspect-ratio: 9/5;
198
+ height: auto;
199
+ max-height: calc(100vh - 500px);
215
200
  }
216
201
 
217
202
  .bar-lines {
218
- position: absolute;
219
- /* font-size: 20px; */
220
- display: flex;
221
- flex-direction: column-reverse;
222
- top: -15px;
223
- bottom: -12px;
224
- left: -30px;
225
- justify-content: space-between;
226
- width: calc(100% + 20px);
227
- text-align: start;
203
+ position: absolute;
204
+ /* font-size: 20px; */
205
+ display: flex;
206
+ flex-direction: column-reverse;
207
+ top: -15px;
208
+ bottom: -12px;
209
+ left: -30px;
210
+ justify-content: space-between;
211
+ width: calc(100% + 20px);
212
+ text-align: start;
228
213
  }
229
214
 
230
215
  .bar-lines p {
231
- margin: 0;
232
- position: relative;
216
+ margin: 0;
217
+ position: relative;
233
218
  }
234
219
 
235
220
  .bar-lines p::after {
236
- content: "";
237
- background: var(--bgl-blue-tint);
238
- height: 1px;
239
- position: absolute;
240
- width: calc(100% - 20px);
241
- margin: 14px 0 0 10px;
242
- opacity: 0.5;
221
+ content: "";
222
+ background: var(--bgl-primary-tint);
223
+ height: 1px;
224
+ position: absolute;
225
+ width: calc(100% - 20px);
226
+ margin: 14px 0 0 10px;
227
+ opacity: 0.5;
243
228
  }
244
229
 
245
230
  .bar-lines p:first-child:after {
246
- content: "";
247
- background: var(--bgl-blue-tint);
248
- height: 1px;
249
- position: absolute;
250
- width: calc(100% - 10px);
251
- margin: 8px 0 0 10px;
252
- opacity: 0.5;
231
+ content: "";
232
+ background: var(--bgl-primary-tint);
233
+ height: 1px;
234
+ position: absolute;
235
+ width: calc(100% - 10px);
236
+ margin: 8px 0 0 10px;
237
+ opacity: 0.5;
253
238
  }
254
239
 
255
240
  .red-bar {
256
- background: #cf2135;
257
- height: v-bind(floodPercent);
258
- width: 100%;
259
- position: absolute;
260
- left: 0px;
261
- bottom: 0;
262
- opacity: 0.6;
263
- transition: all 200ms ease;
241
+ background: #cf2135;
242
+ height: v-bind(floodPercent);
243
+ width: 100%;
244
+ position: absolute;
245
+ left: 0px;
246
+ bottom: 0;
247
+ opacity: 0.6;
248
+ transition: all 200ms ease;
264
249
  }
265
250
 
266
251
  .red-bar.open-redbar {
267
- height: 7%;
252
+ height: 7%;
268
253
  }
269
254
 
270
255
  .factor {
271
- position: absolute;
272
- transform: rotate(270deg);
273
- height: 0px;
274
- width: 0;
275
- left: -60px;
276
- font-size: 22px;
277
- text-align: center;
278
- white-space: nowrap;
279
- top: 60%;
256
+ position: absolute;
257
+ transform: rotate(270deg);
258
+ height: 0px;
259
+ width: 0;
260
+ left: -60px;
261
+ font-size: 22px;
262
+ text-align: center;
263
+ white-space: nowrap;
264
+ top: 60%;
280
265
  }
281
266
 
282
267
  .dash-hor {
283
- /* border-bottom: 1px dashed white; */
284
- position: absolute;
285
- background-image: linear-gradient(to right, #cf2134 53%, transparent 0%);
286
- height: 10px;
287
- bottom: 41.5%;
288
- width: 100%;
289
- animation: 1s linear 0s infinite dash;
290
- background-position: left;
291
- background-repeat: repeat-x;
292
- background-size: 15px 4px;
268
+ /* border-bottom: 1px dashed white; */
269
+ position: absolute;
270
+ background-image: linear-gradient(to right, #cf2134 53%, transparent 0%);
271
+ height: 10px;
272
+ bottom: 41.5%;
273
+ width: 100%;
274
+ animation: 1s linear 0s infinite dash;
275
+ background-position: left;
276
+ background-repeat: repeat-x;
277
+ background-size: 15px 4px;
293
278
  }
294
279
 
295
280
  .dash-hor::after {
296
- content: "Average Speedup = 25x";
297
- position: absolute;
298
- left: 0;
299
- bottom: 10px;
300
- font-size: 22px;
301
- background: #cf2134;
302
- z-index: 2;
303
- padding: 1px 4px;
304
- border-radius: 3px;
281
+ content: "Average Speedup = 25x";
282
+ position: absolute;
283
+ left: 0;
284
+ bottom: 10px;
285
+ font-size: 22px;
286
+ background: #cf2134;
287
+ z-index: 2;
288
+ padding: 1px 4px;
289
+ border-radius: 3px;
305
290
  }
306
291
 
307
292
  @keyframes dash {
308
- 0% {
309
- background-position: 0;
310
- }
293
+ 0% {
294
+ background-position: 0;
295
+ }
311
296
 
312
- 100% {
313
- background-position: 15px;
314
- }
297
+ 100% {
298
+ background-position: 15px;
299
+ }
315
300
  }
316
301
  </style>