@bagelink/vue 0.0.1066 → 0.0.1070

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/style.css CHANGED
@@ -1074,27 +1074,30 @@ pre code.hljs{
1074
1074
  direction: ltr;
1075
1075
  }
1076
1076
 
1077
- .txtInputIconStart .iconStart[data-v-abb5baff] {
1077
+ .txtInputIconStart .iconStart[data-v-09ec7e39] {
1078
1078
  color: var(--input-color);
1079
1079
  position: absolute;
1080
1080
  inset-inline-start:calc(var(--input-height) / 3 - 0.25rem);
1081
1081
  margin-top: calc(var(--input-height) / 2 );
1082
1082
  line-height: 0;
1083
1083
  }
1084
- .textInputSpinnerWrap .spinner[data-v-abb5baff] {
1084
+ .textInputSpinnerWrap .spinner[data-v-09ec7e39] {
1085
1085
  color: var(--input-color);
1086
1086
  position: absolute;
1087
1087
  inset-inline-end: 0;
1088
1088
  margin-top: calc(var(--input-height) / -1);
1089
1089
  line-height: 0;
1090
1090
  }
1091
- .bgl-ctrl-num-btn[data-v-abb5baff]{
1092
- height: calc(var(--input-height) / 2) !important;
1091
+ .top-bgl-ctrl-num-btn[data-v-09ec7e39]{
1092
+ margin-top: calc(var(--input-height) / 10) !important;
1093
1093
  }
1094
- .bgl-big-ctrl-num-btn[data-v-abb5baff]{
1094
+ .bgl-ctrl-num-btn[data-v-09ec7e39]{
1095
+ height: calc(var(--input-height) / 2.5) !important;
1096
+ }
1097
+ .bgl-big-ctrl-num-btn[data-v-09ec7e39]{
1095
1098
  width: 100% !important;
1096
1099
  }
1097
- .bgl-number-input[data-v-abb5baff]{
1100
+ .bgl-number-input[data-v-09ec7e39]{
1098
1101
  padding-inline-end: 1.75rem !important;
1099
1102
  }
1100
1103
 
@@ -1136,12 +1139,7 @@ pre code.hljs{
1136
1139
  }
1137
1140
 
1138
1141
  .m-password {
1139
- position: absolute;
1140
- inset-block: 0;
1141
- margin-top: calc(var(--input-height) / 2 - 0.75rem);
1142
- }
1143
- .relative.has-label .m-password {
1144
- margin-top: calc(var(--input-height) / 2 + 0.25rem);
1142
+ height: var(--input-height) !important;
1145
1143
  }
1146
1144
 
1147
1145
  .radio-input-list[data-v-3c77be46]{
@@ -1180,28 +1178,28 @@ pre code.hljs{
1180
1178
  color: var(--bgl-light-text);
1181
1179
  }
1182
1180
 
1183
- .range-slider-position-txt[data-v-5c90c7f5]{
1181
+ .range-slider-position-txt[data-v-2e7787ea]{
1184
1182
  margin-inline-start: calc((var(--progress) * 1%) - (var(--bgl-range-thumb-size) * var(--progress) / 100));
1185
1183
  top: calc(var(--bgl-range-thumb-size) / 2 ) ;
1186
1184
  transition: transform 0.1s, opacity 0.5s, top 0.5s;
1187
1185
  transform: scale(0.5);
1188
1186
  width: var(--bgl-range-thumb-size);
1189
1187
  }
1190
- .range-slider:hover .range-slider-position-txt[data-v-5c90c7f5]{
1188
+ .range-slider:hover .range-slider-position-txt[data-v-2e7787ea]{
1191
1189
  opacity: 1;
1192
1190
  transform: scale(1);
1193
- top: calc(var(--bgl-range-thumb-size) / 1) ;
1191
+ top: calc(var(--bgl-range-thumb-size) / 1.8) ;
1194
1192
  }
1195
- .range-slider[data-v-5c90c7f5] {
1193
+ .range-slider[data-v-2e7787ea] {
1196
1194
  height: var(--bgl-range-track-size);
1197
1195
  display: flex;
1198
1196
  align-items: center;
1199
1197
  margin-top: calc(var(--bgl-range-thumb-size) / 2 + 0.5rem) ;
1200
1198
  }
1201
- .range-slider-txt[data-v-5c90c7f5]{
1199
+ .range-slider-txt[data-v-2e7787ea]{
1202
1200
  margin-top: calc(var(--bgl-range-thumb-size) / 2) !important;
1203
1201
  }
1204
- input[type="range"][data-v-5c90c7f5] {
1202
+ input[type="range"][data-v-2e7787ea] {
1205
1203
  position: absolute;
1206
1204
  width: 100%;
1207
1205
  height: 100%;
@@ -1211,7 +1209,7 @@ input[type="range"][data-v-5c90c7f5] {
1211
1209
  appearance: none;
1212
1210
  margin: 0;
1213
1211
  }
1214
- input[type="range"][data-v-5c90c7f5]::-webkit-slider-thumb {
1212
+ input[type="range"][data-v-2e7787ea]::-webkit-slider-thumb {
1215
1213
  pointer-events: all;
1216
1214
  appearance: none;
1217
1215
  width: var(--bgl-range-thumb-size);
@@ -1224,23 +1222,30 @@ input[type="range"][data-v-5c90c7f5]::-webkit-slider-thumb {
1224
1222
  cursor: grab;
1225
1223
  transition: var(--bgl-transition);
1226
1224
  }
1227
- input[type="range"][data-v-5c90c7f5]::-webkit-slider-thumb:hover {
1225
+ input[type="range"][data-v-2e7787ea]::-webkit-slider-thumb:hover {
1228
1226
  box-shadow: 0 0 0 calc(var(--bgl-range-thumb-size) / 2) var(--bgl-primary-tint);
1229
1227
  filter: brightness(90%);
1230
1228
  }
1231
- input[type="range"][data-v-5c90c7f5]:focus::-webkit-slider-thumb {
1229
+ input[type="range"][data-v-2e7787ea]:focus::-webkit-slider-thumb {
1232
1230
  outline: none;
1233
1231
  box-shadow: 0 0 0 calc(var(--bgl-range-thumb-size) / 2.2) var(--bgl-primary-tint);
1234
1232
  }
1235
- input[type="range"][data-v-5c90c7f5]:active::-webkit-slider-thumb {
1233
+ input[type="range"][data-v-2e7787ea]:active::-webkit-slider-thumb {
1236
1234
  cursor: grabbing;
1237
1235
  }
1238
- .track[data-v-5c90c7f5] {
1236
+ .track[data-v-2e7787ea] {
1239
1237
  height: var(--bgl-range-track-height);
1240
1238
  background: var(--bgl-bg);
1241
1239
  margin-inline-start: calc(var(--bgl-range-thumb-size) / 2);
1242
1240
  width: calc(100% - var(--bgl-range-thumb-size));
1243
1241
  }
1242
+ @media screen and (max-width: 768px) {
1243
+ .range-slider-position-txt[data-v-2e7787ea]{
1244
+ opacity: 1;
1245
+ transform: scale(1);
1246
+ top: calc(var(--bgl-range-thumb-size) / 1.8) ;
1247
+ }
1248
+ }
1244
1249
 
1245
1250
  .tableBoxSelect[data-v-4548b70f]::after {
1246
1251
  content: '';
@@ -1266,26 +1271,26 @@ input[type="range"][data-v-5c90c7f5]:active::-webkit-slider-thumb {
1266
1271
  line-height: 1.65;
1267
1272
  }
1268
1273
 
1269
- .rich-text-editor[data-v-70080819] {
1274
+ .rich-text-editor[data-v-2e74943d] {
1270
1275
  background: var(--input-bg);
1271
1276
  border: 1px solid var(--border-color);
1272
1277
  transition: all 0.3s ease;
1273
1278
  }
1274
- .editor-container[data-v-70080819] {
1279
+ .editor-container[data-v-2e74943d] {
1275
1280
  display: flex;
1276
1281
  gap: 1rem;
1277
1282
  }
1278
- .content-area[data-v-70080819],
1279
- .preview-area[data-v-70080819] {
1283
+ .content-area[data-v-2e74943d],
1284
+ .preview-area[data-v-2e74943d] {
1280
1285
  flex: 1;
1281
1286
  min-height: 200px;
1282
1287
  background: var(--bgl-richtext-color);
1283
1288
  }
1284
- .split-view[data-v-70080819] {
1289
+ .split-view[data-v-2e74943d] {
1285
1290
  display: grid;
1286
1291
  grid-template-columns: 1fr 1fr;
1287
1292
  }
1288
- .editableContent[data-v-70080819] {
1293
+ .editableContent[data-v-2e74943d] {
1289
1294
  width: 100%;
1290
1295
  min-height: 240px;
1291
1296
  height: 100%;
@@ -1293,7 +1298,7 @@ line-height: 1.65;
1293
1298
  outline: none;
1294
1299
  background: transparent;
1295
1300
  }
1296
- .html-editor[data-v-70080819] {
1301
+ .html-editor[data-v-2e74943d] {
1297
1302
  width: 100%;
1298
1303
  height: 100%;
1299
1304
  min-height: 200px;
@@ -1304,12 +1309,12 @@ line-height: 1.65;
1304
1309
  color: white;
1305
1310
  background-color: var(--bgl-black);
1306
1311
  }
1307
- .preview-area[data-v-70080819] {
1312
+ .preview-area[data-v-2e74943d] {
1308
1313
  font-family: monospace;
1309
1314
  white-space: pre-wrap;
1310
1315
  overflow-x: auto;
1311
1316
  }
1312
- .fullscreen-mode[data-v-70080819] {
1317
+ .fullscreen-mode[data-v-2e74943d] {
1313
1318
  position: fixed;
1314
1319
  top: 0;
1315
1320
  left: 0;
@@ -1318,18 +1323,18 @@ line-height: 1.65;
1318
1323
  z-index: 9999;
1319
1324
  padding: 2rem;
1320
1325
  }
1321
- .fullscreen-mode .editor-container[data-v-70080819] {
1326
+ .fullscreen-mode .editor-container[data-v-2e74943d] {
1322
1327
  height: calc(100vh - 4rem);
1323
1328
  }
1324
- .fullscreen-mode .content-area[data-v-70080819],
1325
- .fullscreen-mode .preview-area[data-v-70080819] {
1329
+ .fullscreen-mode .content-area[data-v-2e74943d],
1330
+ .fullscreen-mode .preview-area[data-v-2e74943d] {
1326
1331
  height: 100%;
1327
1332
  overflow-y: auto;
1328
1333
  }
1329
- .fullscreen-mode .code-editor[data-v-70080819]{
1334
+ .fullscreen-mode .code-editor[data-v-2e74943d]{
1330
1335
  height: 100% !important;
1331
1336
  }
1332
- .debug-controls[data-v-70080819] {
1337
+ .debug-controls[data-v-2e74943d] {
1333
1338
  display: flex;
1334
1339
  gap: 0.5rem;
1335
1340
  justify-content: flex-end;
@@ -8104,7 +8109,7 @@ to {
8104
8109
  display: block !important;
8105
8110
  }
8106
8111
  .block {
8107
- display: block;
8112
+ display: block !important;
8108
8113
  width: 100% !important;
8109
8114
  }
8110
8115
  .inline {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.1066",
4
+ "version": "0.0.1070",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -16,7 +16,7 @@ import {
16
16
  type BagelFormState,
17
17
  BglForm
18
18
  } from '@bagelink/vue'
19
- import { inject, ref } from 'vue'
19
+ import { inject } from 'vue'
20
20
  import TabsNav from '../layout/TabsNav.vue'
21
21
  import { FORM_STATE_KEY, provideBagelFormState } from './useBagelFormState'
22
22
 
@@ -84,9 +84,9 @@ const vIf = $computed(() => {
84
84
  return true
85
85
  })
86
86
 
87
- const computedFieldData = $computed(
88
- () => props.field.transform?.(fieldData, formState.data.value as T) ?? fieldData
89
- )
87
+ // const computedFieldData = $computed(
88
+ // () => props.field.transform?.(fieldData, formState.data.value as T) ?? fieldData
89
+ // )
90
90
 
91
91
  const computedOptions = $computed(
92
92
  () => bindAttrs({ options: props.field.options }, fieldData, formState.data.value).options
@@ -133,7 +133,7 @@ watch(() => modelValue, (newVal) => {
133
133
  <Btn v-if="layout && btnLayouts.includes(layout)" flat icon="remove" class="radius" :class="[{ 'bgl-big-ctrl-num-btn': layout === 'vertical' }]" @click="decrement" />
134
134
 
135
135
  <div v-if="spinner && (!layout || !btnLayouts.includes(layout))" class="flex column spinner">
136
- <Btn icon="add" flat thin class="bgl-ctrl-num-btn ctrl-add color-gray" @click="increment" />
136
+ <Btn icon="add" flat thin class="bgl-ctrl-num-btn ctrl-add color-gray top-bgl-ctrl-num-btn" @click="increment" />
137
137
  <Btn icon="remove" flat thin class="bgl-ctrl-num-btn ctrl-remove color-gray" @click="decrement" />
138
138
  </div>
139
139
  </div>
@@ -157,9 +157,13 @@ watch(() => modelValue, (newVal) => {
157
157
  margin-top: calc(var(--input-height) / -1);
158
158
  line-height: 0;
159
159
  }
160
+ .top-bgl-ctrl-num-btn{
161
+ margin-top: calc(var(--input-height) / 10) !important;
162
+ }
160
163
  .bgl-ctrl-num-btn{
161
- height: calc(var(--input-height) / 2) !important;
164
+ height: calc(var(--input-height) / 2.5) !important;
162
165
  }
166
+
163
167
  .bgl-big-ctrl-num-btn{
164
168
  width: 100% !important;
165
169
  }
@@ -32,7 +32,6 @@ const props = withDefaults(
32
32
  label: ''
33
33
  }
34
34
  )
35
- const hasLabel = $computed(() => props.label && props.label.trim() !== '')
36
35
 
37
36
  const password = defineModel<string>('modelValue')
38
37
  const showPwd = defineModel<boolean>('showPwd', { default: false })
@@ -43,32 +42,27 @@ const inputType = $computed(() => (showPwd.value ? 'text' : 'password'))
43
42
  </script>
44
43
 
45
44
  <template>
46
- <div class="relative" :class="{ 'has-label': hasLabel }">
45
+ <div class="relative">
47
46
  <TextInput
48
47
  v-model="password"
49
48
  v-bind="props"
50
49
  :type="inputType"
51
50
  class="mb-0"
52
51
  />
53
- <Btn
54
- flat
55
- thin
56
- class="mx-05 m-password position-bottom-end"
57
- :icon="toggleShowPwdIcon"
58
- @click="showPwd = !showPwd"
59
- />
52
+ <div class="m-password position-bottom-end flex column justify-content-center">
53
+ <Btn
54
+ flat
55
+ thin
56
+ class="mx-05"
57
+ :icon="toggleShowPwdIcon"
58
+ @click="showPwd = !showPwd"
59
+ />
60
+ </div>
60
61
  </div>
61
62
  </template>
62
63
 
63
64
  <style>
64
65
  .m-password {
65
- position: absolute;
66
- inset-block: 0;
67
- margin-top: calc(var(--input-height) / 2 - 0.75rem);
68
-
69
- }
70
-
71
- .relative.has-label .m-password {
72
- margin-top: calc(var(--input-height) / 2 + 0.25rem);
66
+ height: var(--input-height) !important;
73
67
  }
74
68
  </style>
@@ -154,7 +154,7 @@ const displayTo = $computed(() => formatValue(validTo))
154
154
  .range-slider:hover .range-slider-position-txt{
155
155
  opacity: 1;
156
156
  transform: scale(1);
157
- top: calc(var(--bgl-range-thumb-size) / 1) ;
157
+ top: calc(var(--bgl-range-thumb-size) / 1.8) ;
158
158
  }
159
159
 
160
160
  .range-slider {
@@ -212,4 +212,11 @@ input[type="range"]:active::-webkit-slider-thumb {
212
212
  margin-inline-start: calc(var(--bgl-range-thumb-size) / 2);
213
213
  width: calc(100% - var(--bgl-range-thumb-size));
214
214
  }
215
+ @media screen and (max-width: 768px) {
216
+ .range-slider-position-txt{
217
+ opacity: 1;
218
+ transform: scale(1);
219
+ top: calc(var(--bgl-range-thumb-size) / 1.8) ;
220
+ }
221
+ }
215
222
  </style>
@@ -51,7 +51,7 @@ async function initEditor() {
51
51
  const walker = doc.createTreeWalker(doc.body, NodeFilter.SHOW_TEXT)
52
52
  const textNodes: Text[] = []
53
53
  let node: Node | null
54
- while (node = walker.nextNode()) {
54
+ while ((node = walker.nextNode())) {
55
55
  if (node.parentElement === doc.body) {
56
56
  textNodes.push(node as Text)
57
57
  }
@@ -5352,7 +5352,7 @@
5352
5352
  }
5353
5353
 
5354
5354
  .block {
5355
- display: block;
5355
+ display: block !important;
5356
5356
  width: 100% !important;
5357
5357
  }
5358
5358