@bagelink/vue 0.0.524 → 0.0.528

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.
@@ -4,14 +4,18 @@ declare const _default: import('vue').DefineComponent<{
4
4
  type: import('vue').PropType<string>;
5
5
  required: true;
6
6
  };
7
- id: {
8
- type: import('vue').PropType<string>;
7
+ small: {
8
+ type: import('vue').PropType<boolean>;
9
9
  };
10
10
  title: {
11
11
  type: import('vue').PropType<string>;
12
12
  };
13
- small: {
13
+ id: {
14
+ type: import('vue').PropType<string>;
15
+ };
16
+ defaultValue: {
14
17
  type: import('vue').PropType<boolean>;
18
+ default: boolean;
15
19
  };
16
20
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
21
  modelValue: import('vue').PropType<boolean>;
@@ -19,15 +23,21 @@ declare const _default: import('vue').DefineComponent<{
19
23
  type: import('vue').PropType<string>;
20
24
  required: true;
21
25
  };
22
- id: {
23
- type: import('vue').PropType<string>;
26
+ small: {
27
+ type: import('vue').PropType<boolean>;
24
28
  };
25
29
  title: {
26
30
  type: import('vue').PropType<string>;
27
31
  };
28
- small: {
32
+ id: {
33
+ type: import('vue').PropType<string>;
34
+ };
35
+ defaultValue: {
29
36
  type: import('vue').PropType<boolean>;
37
+ default: boolean;
30
38
  };
31
- }>>, {}, {}>;
39
+ }>>, {
40
+ defaultValue: boolean;
41
+ }, {}>;
32
42
  export default _default;
33
43
  //# sourceMappingURL=ToggleInput.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/ToggleInput.vue"],"names":[],"mappings":";gBAac,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;;;kBAsIwJ,IAAI;;;;;;;;;;;;gBAtI3L,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;;;kBAsIwJ,IAAI;;;;;;;;;;;;AAhBzM,wBAcG"}
1
+ {"version":3,"file":"ToggleInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/ToggleInput.vue"],"names":[],"mappings":";gBAqBc,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;;;kBAwIwJ,IAAI;;;;;;;;;;;;;;;;gBAxI3L,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;;;kBAwIwJ,IAAI;;;;;;;;;;;;;;;;kBANzL,OAAO;;AAXvB,wBAeG"}
package/dist/index.cjs CHANGED
@@ -28584,7 +28584,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
28584
28584
  }
28585
28585
  });
28586
28586
  const $el = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-82316bcb"]]);
28587
- const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-c7810f72"), n2 = n2(), vue.popScopeId(), n2);
28587
+ const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-a2891e6f"), n2 = n2(), vue.popScopeId(), n2);
28588
28588
  const _hoisted_1$g = ["title"];
28589
28589
  const _hoisted_2$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
28590
28590
  const _hoisted_3$9 = [
@@ -28597,14 +28597,19 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
28597
28597
  label: {},
28598
28598
  id: {},
28599
28599
  title: {},
28600
- small: { type: Boolean }
28600
+ small: { type: Boolean },
28601
+ defaultValue: { type: Boolean, default: false }
28601
28602
  }, {
28602
28603
  "modelValue": { type: Boolean, ...{ default: false } },
28603
28604
  "modelModifiers": {}
28604
28605
  }),
28605
28606
  emits: ["update:modelValue"],
28606
28607
  setup(__props) {
28608
+ const props2 = __props;
28607
28609
  const checked = vue.useModel(__props, "modelValue");
28610
+ vue.onMounted(() => {
28611
+ if (props2.defaultValue) checked.value = props2.defaultValue;
28612
+ });
28608
28613
  return (_ctx, _cache) => {
28609
28614
  return vue.openBlock(), vue.createElementBlock("div", {
28610
28615
  class: vue.normalizeClass(["bagel-input bgl-checkbox justify-content-center gap-1", { small: _ctx.small }]),
@@ -28627,7 +28632,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
28627
28632
  };
28628
28633
  }
28629
28634
  });
28630
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c7810f72"]]);
28635
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-a2891e6f"]]);
28631
28636
  function OrderedMap(content) {
28632
28637
  this.content = content;
28633
28638
  }
package/dist/index.mjs CHANGED
@@ -28582,7 +28582,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
28582
28582
  }
28583
28583
  });
28584
28584
  const $el = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-82316bcb"]]);
28585
- const _withScopeId$1 = (n2) => (pushScopeId("data-v-c7810f72"), n2 = n2(), popScopeId(), n2);
28585
+ const _withScopeId$1 = (n2) => (pushScopeId("data-v-a2891e6f"), n2 = n2(), popScopeId(), n2);
28586
28586
  const _hoisted_1$g = ["title"];
28587
28587
  const _hoisted_2$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
28588
28588
  const _hoisted_3$9 = [
@@ -28595,14 +28595,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
28595
28595
  label: {},
28596
28596
  id: {},
28597
28597
  title: {},
28598
- small: { type: Boolean }
28598
+ small: { type: Boolean },
28599
+ defaultValue: { type: Boolean, default: false }
28599
28600
  }, {
28600
28601
  "modelValue": { type: Boolean, ...{ default: false } },
28601
28602
  "modelModifiers": {}
28602
28603
  }),
28603
28604
  emits: ["update:modelValue"],
28604
28605
  setup(__props) {
28606
+ const props2 = __props;
28605
28607
  const checked = useModel(__props, "modelValue");
28608
+ onMounted(() => {
28609
+ if (props2.defaultValue) checked.value = props2.defaultValue;
28610
+ });
28606
28611
  return (_ctx, _cache) => {
28607
28612
  return openBlock(), createElementBlock("div", {
28608
28613
  class: normalizeClass(["bagel-input bgl-checkbox justify-content-center gap-1", { small: _ctx.small }]),
@@ -28625,7 +28630,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
28625
28630
  };
28626
28631
  }
28627
28632
  });
28628
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c7810f72"]]);
28633
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-a2891e6f"]]);
28629
28634
  function OrderedMap(content) {
28630
28635
  this.content = content;
28631
28636
  }
package/dist/style.css CHANGED
@@ -1791,6 +1791,9 @@ svg.leaflet-image-layer.leaflet-interactive path {
1791
1791
  .dp__calendar_row>div:last-child {
1792
1792
  pointer-events: auto !important;
1793
1793
  }
1794
+ .dp__time_input {
1795
+ direction: ltr;
1796
+ }
1794
1797
 
1795
1798
  .bagel-input textarea[data-v-1cbaeab2] {
1796
1799
  font-family: monospace;
@@ -2340,27 +2343,27 @@ img.preview.single[data-v-82316bcb]{
2340
2343
  color: var(--bgl-green);
2341
2344
  }
2342
2345
 
2343
- .bgl-checkbox[data-v-c7810f72] {
2346
+ .bgl-checkbox[data-v-a2891e6f] {
2344
2347
  position: relative;
2345
2348
  transition: var(--bgl-transition);
2346
2349
  }
2347
- .bgl-checkbox input[type=checkbox][data-v-c7810f72] {
2350
+ .bgl-checkbox input[type=checkbox][data-v-a2891e6f] {
2348
2351
  display: none;
2349
2352
  }
2350
- .bgl-checkbox label[data-v-c7810f72] {
2353
+ .bgl-checkbox label[data-v-a2891e6f] {
2351
2354
  padding-inline-start: calc(var(--input-height) + 0.25rem);
2352
2355
  transition: var(--bgl-transition);
2353
2356
  cursor: pointer;
2354
2357
  user-select: none;
2355
2358
  line-height: var(--input-height);
2356
2359
  }
2357
- .bgl-checkbox[data-v-c7810f72]:hover {
2360
+ .bgl-checkbox[data-v-a2891e6f]:hover {
2358
2361
  filter: brightness(90%);
2359
2362
  }
2360
- .bgl-checkbox[data-v-c7810f72]:active {
2363
+ .bgl-checkbox[data-v-a2891e6f]:active {
2361
2364
  filter: var(--bgl-active-filter);
2362
2365
  }
2363
- .switch[data-v-c7810f72] {
2366
+ .switch[data-v-a2891e6f] {
2364
2367
  position: absolute;
2365
2368
  display: inline-block;
2366
2369
  height: calc(var(--input-height) / 2);
@@ -2371,12 +2374,12 @@ img.preview.single[data-v-82316bcb]{
2371
2374
  margin-top: 0.15rem;
2372
2375
  pointer-events: none;
2373
2376
  }
2374
- .switch input[data-v-c7810f72] {
2377
+ .switch input[data-v-a2891e6f] {
2375
2378
  opacity: 0;
2376
2379
  width: 0;
2377
2380
  height: 0;
2378
2381
  }
2379
- .slider[data-v-c7810f72] {
2382
+ .slider[data-v-a2891e6f] {
2380
2383
  position: absolute;
2381
2384
  cursor: pointer;
2382
2385
  top: 0;
@@ -2390,7 +2393,7 @@ img.preview.single[data-v-82316bcb]{
2390
2393
  box-shadow: inset 0 0 10px #00000020;
2391
2394
  background: var(--input-bg);
2392
2395
  }
2393
- .slider[data-v-c7810f72]:before {
2396
+ .slider[data-v-a2891e6f]:before {
2394
2397
  position: absolute;
2395
2398
  content: "";
2396
2399
  height: calc(var(--input-height) / 2 - 2px);
@@ -2403,10 +2406,10 @@ img.preview.single[data-v-82316bcb]{
2403
2406
  transition: 0.2s;
2404
2407
  box-shadow:0 1px 5px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
2405
2408
  }
2406
- .checked .slider[data-v-c7810f72] {
2409
+ .checked .slider[data-v-a2891e6f] {
2407
2410
  background: var(--bgl-primary);
2408
2411
  }
2409
- .checked .slider[data-v-c7810f72]:before {
2412
+ .checked .slider[data-v-a2891e6f]:before {
2410
2413
  margin-inline-start:calc(var(--input-height) / 2 - 2px) ;
2411
2414
  }
2412
2415
 
@@ -2952,7 +2955,8 @@ p {
2952
2955
  min-height: 100%;
2953
2956
  }
2954
2957
  .w-100,
2955
- .width-100 {
2958
+ .w-100p,
2959
+ .w100p .width-100 {
2956
2960
  width: 100%;
2957
2961
  }
2958
2962
  .w300,
@@ -3125,6 +3129,36 @@ p {
3125
3129
  .w1600 {
3126
3130
  max-width: 1600px;
3127
3131
  }
3132
+ .vw10 {
3133
+ width: 10vw;
3134
+ }
3135
+ .vw20 {
3136
+ width: 20vw;
3137
+ }
3138
+ .vw30 {
3139
+ width: 30vw;
3140
+ }
3141
+ .vw40 {
3142
+ width: 40vw;
3143
+ }
3144
+ .vw50 {
3145
+ width: 50vw;
3146
+ }
3147
+ .vw60 {
3148
+ width: 60vw;
3149
+ }
3150
+ .vw70 {
3151
+ width: 70vw;
3152
+ }
3153
+ .vw80 {
3154
+ width: 80vw;
3155
+ }
3156
+ .vw90 {
3157
+ width: 90vw;
3158
+ }
3159
+ .vw100 {
3160
+ width: 100vw;
3161
+ }
3128
3162
  .w-all,
3129
3163
  .wall {
3130
3164
  width: -webkit-fill-available;
@@ -4434,10 +4468,12 @@ p {
4434
4468
  }
4435
4469
 
4436
4470
  .m_w-100,
4437
- .m_width-100 {
4471
+ .m_w100p,
4472
+ .m_w100p .m_width-100 {
4438
4473
  width: 100% !important;
4439
4474
  }
4440
4475
 
4476
+
4441
4477
  .m_w300,
4442
4478
  .m_w350,
4443
4479
  .m_w400,
@@ -4565,6 +4601,47 @@ p {
4565
4601
  max-width: 850px;
4566
4602
  }
4567
4603
 
4604
+ .m_vw10 {
4605
+ width: 10vw;
4606
+ }
4607
+
4608
+ .m_vw20 {
4609
+ width: 20vw;
4610
+ }
4611
+
4612
+ .m_vw30 {
4613
+ width: 30vw;
4614
+ }
4615
+
4616
+ .m_vw40 {
4617
+ width: 40vw;
4618
+ }
4619
+
4620
+ .m_vw50 {
4621
+ width: 50vw;
4622
+ }
4623
+
4624
+ .m_vw60 {
4625
+ width: 60vw;
4626
+ }
4627
+
4628
+ .m_vw70 {
4629
+ width: 70vw;
4630
+ }
4631
+
4632
+ .m_vw80 {
4633
+ width: 80vw;
4634
+ }
4635
+
4636
+ .m_vw90 {
4637
+ width: 90vw;
4638
+ }
4639
+
4640
+ .m_vw100 {
4641
+ width: 100vw;
4642
+ }
4643
+
4644
+
4568
4645
  .m_w-all,
4569
4646
  .m_wall {
4570
4647
  width: -webkit-fill-available;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.524",
4
+ "version": "0.0.528",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -81,4 +81,8 @@ onMounted(() => {
81
81
  .dp__calendar_row>div:last-child {
82
82
  pointer-events: auto !important;
83
83
  }
84
+
85
+ .dp__time_input {
86
+ direction: ltr;
87
+ }
84
88
  </style>
@@ -1,12 +1,19 @@
1
1
  <script setup lang="ts">
2
- defineProps<{
2
+ import { onMounted } from 'vue'
3
+
4
+ const props = withDefaults(defineProps<{
3
5
  label: string
4
6
  id?: string
5
7
  title?: string
6
8
  small?: boolean
7
- }>()
9
+ defaultValue?: boolean
10
+ }>(), { defaultValue: false })
8
11
 
9
12
  const checked = defineModel<boolean>('modelValue', { default: false })
13
+
14
+ onMounted(() => {
15
+ if (props.defaultValue) checked.value = props.defaultValue
16
+ })
10
17
  </script>
11
18
 
12
19
  <template>
@@ -167,7 +167,8 @@
167
167
  }
168
168
 
169
169
  .w-100,
170
- .width-100 {
170
+ .w-100p,
171
+ .w100p .width-100 {
171
172
  width: 100%;
172
173
  }
173
174
 
@@ -387,6 +388,47 @@
387
388
  max-width: 1600px;
388
389
  }
389
390
 
391
+ .vw10 {
392
+ width: 10vw;
393
+ }
394
+
395
+ .vw20 {
396
+ width: 20vw;
397
+ }
398
+
399
+ .vw30 {
400
+ width: 30vw;
401
+ }
402
+
403
+ .vw40 {
404
+ width: 40vw;
405
+ }
406
+
407
+ .vw50 {
408
+ width: 50vw;
409
+ }
410
+
411
+ .vw60 {
412
+ width: 60vw;
413
+ }
414
+
415
+ .vw70 {
416
+ width: 70vw;
417
+ }
418
+
419
+ .vw80 {
420
+ width: 80vw;
421
+ }
422
+
423
+ .vw90 {
424
+ width: 90vw;
425
+ }
426
+
427
+ .vw100 {
428
+ width: 100vw;
429
+ }
430
+
431
+
390
432
  .w-all,
391
433
  .wall {
392
434
  width: -webkit-fill-available;
@@ -186,10 +186,12 @@
186
186
  }
187
187
 
188
188
  .m_w-100,
189
- .m_width-100 {
189
+ .m_w100p,
190
+ .m_w100p .m_width-100 {
190
191
  width: 100% !important;
191
192
  }
192
193
 
194
+
193
195
  .m_w300,
194
196
  .m_w350,
195
197
  .m_w400,
@@ -317,6 +319,47 @@
317
319
  max-width: 850px;
318
320
  }
319
321
 
322
+ .m_vw10 {
323
+ width: 10vw;
324
+ }
325
+
326
+ .m_vw20 {
327
+ width: 20vw;
328
+ }
329
+
330
+ .m_vw30 {
331
+ width: 30vw;
332
+ }
333
+
334
+ .m_vw40 {
335
+ width: 40vw;
336
+ }
337
+
338
+ .m_vw50 {
339
+ width: 50vw;
340
+ }
341
+
342
+ .m_vw60 {
343
+ width: 60vw;
344
+ }
345
+
346
+ .m_vw70 {
347
+ width: 70vw;
348
+ }
349
+
350
+ .m_vw80 {
351
+ width: 80vw;
352
+ }
353
+
354
+ .m_vw90 {
355
+ width: 90vw;
356
+ }
357
+
358
+ .m_vw100 {
359
+ width: 100vw;
360
+ }
361
+
362
+
320
363
  .m_w-all,
321
364
  .m_wall {
322
365
  width: -webkit-fill-available;