@bagelink/vue 0.0.354 → 0.0.358

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/index.mjs CHANGED
@@ -4,7 +4,7 @@ var __publicField2 = (obj, key, value) => {
4
4
  __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, inject, unref, renderList, resolveDynamicComponent, useCssVars, useSlots, computed, withModifiers, createTextVNode, watch, onMounted, onUnmounted, mergeModels, useModel, createSlots, Transition, reactive, provide, withDirectives, vModelCheckbox, toRef, isRef, Teleport, render as render$f, onBeforeUpdate, vShow, getCurrentScope, onScopeDispose, vModelText, TransitionGroup, vModelDynamic, vModelRadio, onBeforeUnmount, markRaw, getCurrentInstance, watchEffect, customRef, resolveDirective } from "vue";
7
+ import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, inject, unref, renderList, resolveDynamicComponent, useCssVars, useSlots, computed, withModifiers, createTextVNode, watch, onMounted, onUnmounted, mergeModels, useModel, createSlots, Transition, reactive, provide, withDirectives, vModelCheckbox, toRef, isRef, Teleport, render as render$f, onBeforeUpdate, vShow, getCurrentScope, onScopeDispose, TransitionGroup, vModelDynamic, vModelText, vModelRadio, onBeforeUnmount, markRaw, getCurrentInstance, watchEffect, customRef, resolveDirective } from "vue";
8
8
  const sides = ["top", "right", "bottom", "left"];
9
9
  const alignments = ["start", "end"];
10
10
  const placements$1 = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -4913,7 +4913,7 @@ function txtField(id, label, options) {
4913
4913
  id,
4914
4914
  label,
4915
4915
  placeholder: options == null ? void 0 : options.placeholder,
4916
- attrs: { type: options == null ? void 0 : options.type }
4916
+ attrs: { type: options == null ? void 0 : options.type, pattern: options == null ? void 0 : options.pattern }
4917
4917
  };
4918
4918
  }
4919
4919
  function slctField(id, label, options, config) {
@@ -4926,7 +4926,7 @@ function slctField(id, label, options, config) {
4926
4926
  required: config == null ? void 0 : config.required,
4927
4927
  label,
4928
4928
  defaultValue: config == null ? void 0 : config.defaultValue,
4929
- attrs: { disabled: config == null ? void 0 : config.disabled }
4929
+ attrs: { disabled: config == null ? void 0 : config.disabled, searchable: config == null ? void 0 : config.searchable }
4930
4930
  };
4931
4931
  }
4932
4932
  function numField(id, label, options) {
@@ -5024,7 +5024,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
5024
5024
  });
5025
5025
  const _hoisted_1$E = { class: "full-nav" };
5026
5026
  const _hoisted_2$v = { class: "nav-scroll" };
5027
- const _hoisted_3$l = { class: "nav-links-wrapper" };
5027
+ const _hoisted_3$m = { class: "nav-links-wrapper" };
5028
5028
  const _hoisted_4$e = { class: "tooltip" };
5029
5029
  const _hoisted_5$b = { class: "bot-buttons-wrapper" };
5030
5030
  const _hoisted_6$7 = { class: "tooltip" };
@@ -5059,7 +5059,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5059
5059
  ], 32),
5060
5060
  createElementVNode("div", _hoisted_1$E, [
5061
5061
  createElementVNode("div", _hoisted_2$v, [
5062
- createElementVNode("div", _hoisted_3$l, [
5062
+ createElementVNode("div", _hoisted_3$m, [
5063
5063
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
5064
5064
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
5065
5065
  class: "nav-button",
@@ -5425,7 +5425,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
5425
5425
  const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-7e6899c7"]]);
5426
5426
  const _hoisted_1$B = { class: "accordion-item" };
5427
5427
  const _hoisted_2$s = ["aria-expanded", "aria-controls"];
5428
- const _hoisted_3$k = { class: "accordion-label" };
5428
+ const _hoisted_3$l = { class: "accordion-label" };
5429
5429
  const _hoisted_4$d = ["id", "aria-hidden"];
5430
5430
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
5431
5431
  __name: "AccordionItem",
@@ -5458,7 +5458,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
5458
5458
  class: "accordion-head",
5459
5459
  "aria-controls": `accordion-body-${unref(id)}`
5460
5460
  }, [
5461
- createElementVNode("span", _hoisted_3$k, toDisplayString(_ctx.label), 1),
5461
+ createElementVNode("span", _hoisted_3$l, toDisplayString(_ctx.label), 1),
5462
5462
  createElementVNode("div", {
5463
5463
  class: normalizeClass(["accordion-icon", { open: unref(open) }])
5464
5464
  }, [
@@ -5485,7 +5485,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
5485
5485
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-bf74738b"]]);
5486
5486
  const _hoisted_1$A = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
5487
5487
  const _hoisted_2$r = { class: "p-1" };
5488
- const _hoisted_3$j = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
5488
+ const _hoisted_3$k = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
5489
5489
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
5490
5490
  __name: "ListView",
5491
5491
  setup(__props) {
@@ -5494,7 +5494,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
5494
5494
  createElementVNode("div", _hoisted_2$r, [
5495
5495
  renderSlot(_ctx.$slots, "header")
5496
5496
  ]),
5497
- createElementVNode("div", _hoisted_3$j, [
5497
+ createElementVNode("div", _hoisted_3$k, [
5498
5498
  renderSlot(_ctx.$slots, "default")
5499
5499
  ])
5500
5500
  ]);
@@ -5565,7 +5565,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
5565
5565
  });
5566
5566
  const _hoisted_1$x = { class: "table-list-wrap h-100" };
5567
5567
  const _hoisted_2$o = { class: "infinite-wrapper" };
5568
- const _hoisted_3$i = { class: "row first-row" };
5568
+ const _hoisted_3$j = { class: "row first-row" };
5569
5569
  const _hoisted_4$c = ["onClick"];
5570
5570
  const _hoisted_5$a = { class: "flex" };
5571
5571
  const _hoisted_6$6 = ["onClick"];
@@ -5606,7 +5606,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5606
5606
  return (_ctx, _cache) => {
5607
5607
  return openBlock(), createElementBlock("div", _hoisted_1$x, [
5608
5608
  createElementVNode("table", _hoisted_2$o, [
5609
- createElementVNode("thead", _hoisted_3$i, [
5609
+ createElementVNode("thead", _hoisted_3$j, [
5610
5610
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
5611
5611
  return openBlock(), createElementBlock("th", {
5612
5612
  class: "col",
@@ -5705,7 +5705,7 @@ const _hoisted_2$n = {
5705
5705
  key: 0,
5706
5706
  class: "data-row"
5707
5707
  };
5708
- const _hoisted_3$h = { class: "key" };
5708
+ const _hoisted_3$i = { class: "key" };
5709
5709
  const _hoisted_4$b = { key: 1 };
5710
5710
  const _hoisted_5$9 = { class: "key" };
5711
5711
  const _hoisted_6$5 = { class: "vlue" };
@@ -5733,7 +5733,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
5733
5733
  key: field.id
5734
5734
  }, [
5735
5735
  unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
5736
- createElementVNode("div", _hoisted_3$h, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
5736
+ createElementVNode("div", _hoisted_3$i, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
5737
5737
  createVNode(unref(_sfc_main$l), {
5738
5738
  field,
5739
5739
  modelValue: itemData.value,
@@ -5929,7 +5929,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5929
5929
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-10743b06"]]);
5930
5930
  const _hoisted_1$r = { class: "bgl_vid" };
5931
5931
  const _hoisted_2$m = ["src"];
5932
- const _hoisted_3$g = ["src", "autoplay", "muted", "loop", "controls"];
5932
+ const _hoisted_3$h = ["src", "autoplay", "muted", "loop", "controls"];
5933
5933
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
5934
5934
  __name: "BglVideo",
5935
5935
  props: {
@@ -5986,7 +5986,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5986
5986
  style: normalizeStyle({ aspectRatio: aspectRatio.value }),
5987
5987
  controls: _ctx.controls,
5988
5988
  playsinline: ""
5989
- }, null, 12, _hoisted_3$g))
5989
+ }, null, 12, _hoisted_3$h))
5990
5990
  ]);
5991
5991
  };
5992
5992
  }
@@ -6379,7 +6379,7 @@ const _hoisted_2$k = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
6379
6379
  }, [
6380
6380
  /* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
6381
6381
  ], -1));
6382
- const _hoisted_3$f = [
6382
+ const _hoisted_3$g = [
6383
6383
  _hoisted_2$k
6384
6384
  ];
6385
6385
  const _hoisted_4$a = ["required", "id"];
@@ -6406,7 +6406,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6406
6406
  createElementVNode("div", {
6407
6407
  class: normalizeClass(["check-square", { checked: checked.value }]),
6408
6408
  onClick: _cache[0] || (_cache[0] = ($event) => checked.value = !checked.value)
6409
- }, _hoisted_3$f, 2),
6409
+ }, _hoisted_3$g, 2),
6410
6410
  createElementVNode("label", null, [
6411
6411
  withDirectives(createElementVNode("input", {
6412
6412
  required: _ctx.required,
@@ -15087,7 +15087,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
15087
15087
  });
15088
15088
  const _hoisted_1$n = ["title"];
15089
15089
  const _hoisted_2$i = { key: 0 };
15090
- const _hoisted_3$e = ["value", "placeholder"];
15090
+ const _hoisted_3$f = ["value", "placeholder"];
15091
15091
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
15092
15092
  __name: "JSONInput",
15093
15093
  props: {
@@ -15119,14 +15119,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
15119
15119
  onInput: handleInput,
15120
15120
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
15121
15121
  placeholder: _ctx.placeholder
15122
- }, null, 42, _hoisted_3$e)
15122
+ }, null, 42, _hoisted_3$f)
15123
15123
  ], 10, _hoisted_1$n);
15124
15124
  };
15125
15125
  }
15126
15126
  });
15127
15127
  const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1fc4f739"]]);
15128
15128
  const _hoisted_1$m = ["disabled"];
15129
- const _hoisted_2$h = ["onClick"];
15129
+ const _hoisted_2$h = ["value"];
15130
+ const _hoisted_3$e = ["onClick"];
15130
15131
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
15131
15132
  __name: "SelectInput",
15132
15133
  props: {
@@ -15187,13 +15188,17 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15187
15188
  return option2.value;
15188
15189
  };
15189
15190
  const isSelected = (option2) => !!selectedItems.value.find((item) => getValue(option2) === getValue(item));
15190
- const filteredOptions = computed(() => props2.options.filter((option2) => {
15191
- const searchTerm = new RegExp(search.value, "gi");
15192
- return Boolean(option2) && (getLabel(option2).match(searchTerm) || getValue(option2).match(searchTerm));
15193
- }));
15191
+ const filteredOptions = computed(
15192
+ () => props2.options.filter((option2) => {
15193
+ const searchTerm = new RegExp(search.value, "gi");
15194
+ return Boolean(option2) && (getLabel(option2).match(searchTerm) || getValue(option2).match(searchTerm));
15195
+ })
15196
+ );
15194
15197
  const select2 = (option2) => {
15195
15198
  var _a2;
15196
- const existingIndex = selectedItems.value.findIndex((item) => getValue(item) === getValue(option2));
15199
+ const existingIndex = selectedItems.value.findIndex(
15200
+ (item) => getValue(item) === getValue(option2)
15201
+ );
15197
15202
  if (existingIndex > -1)
15198
15203
  selectedItems.value.splice(existingIndex, 1);
15199
15204
  else if (props2.multiselect) {
@@ -15215,7 +15220,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15215
15220
  }
15216
15221
  }
15217
15222
  function compareArrays(arr1, arr2) {
15218
- const isSame = arr1.every((item) => arr2.map((a2) => getValue(a2)).includes(getValue(item)));
15223
+ const isSame = arr1.every(
15224
+ (item) => arr2.map((a2) => getValue(a2)).includes(getValue(item))
15225
+ );
15219
15226
  return isSame;
15220
15227
  }
15221
15228
  watch(
@@ -15234,19 +15241,24 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15234
15241
  },
15235
15242
  { immediate: true }
15236
15243
  );
15237
- watch(() => props2.options, () => {
15238
- const original = JSON.stringify(selectedItems.value);
15239
- [...selectedItems.value].forEach((option2, i2) => {
15240
- const exists = props2.options.find((o2) => getValue(o2) === getValue(option2));
15241
- if (!exists)
15242
- selectedItems.value.splice(i2, 1);
15243
- else
15244
- selectedItems.value.splice(i2, 1, exists);
15245
- });
15246
- const newSelection = JSON.stringify(selectedItems.value);
15247
- if (original !== newSelection)
15248
- emitUpdate();
15249
- });
15244
+ watch(
15245
+ () => props2.options,
15246
+ () => {
15247
+ const original = JSON.stringify(selectedItems.value);
15248
+ [...selectedItems.value].forEach((option2, i2) => {
15249
+ const exists = props2.options.find(
15250
+ (o2) => getValue(o2) === getValue(option2)
15251
+ );
15252
+ if (!exists)
15253
+ selectedItems.value.splice(i2, 1);
15254
+ else
15255
+ selectedItems.value.splice(i2, 1, exists);
15256
+ });
15257
+ const newSelection = JSON.stringify(selectedItems.value);
15258
+ if (original !== newSelection)
15259
+ emitUpdate();
15260
+ }
15261
+ );
15250
15262
  return (_ctx, _cache) => {
15251
15263
  return openBlock(), createBlock(unref(kt$1), {
15252
15264
  onHide: _cache[3] || (_cache[3] = ($event) => updateOpen(false)),
@@ -15287,7 +15299,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15287
15299
  icon: "fiber_manual_record"
15288
15300
  })) : createCommentVNode("", true),
15289
15301
  createElementVNode("span", null, toDisplayString(getLabel(option2)), 1)
15290
- ], 10, _hoisted_2$h);
15302
+ ], 10, _hoisted_3$e);
15291
15303
  }), 128)),
15292
15304
  renderSlot(_ctx.$slots, "last", {}, void 0, true)
15293
15305
  ]),
@@ -15306,14 +15318,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15306
15318
  createElementVNode("p", null, toDisplayString(selectedLabel.value), 1),
15307
15319
  createVNode(unref(_sfc_main$H), normalizeProps(guardReactiveProps({ icon: unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
15308
15320
  ], 10, _hoisted_1$m),
15309
- _ctx.required ? withDirectives((openBlock(), createElementBlock("input", {
15321
+ _ctx.required ? (openBlock(), createElementBlock("input", {
15310
15322
  key: 0,
15311
15323
  style: { "width": "0", "height": "0", "position": "absolute", "opacity": "0", "z-index": "-1" },
15312
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedItems.value = $event),
15324
+ onInput: _cache[1] || (_cache[1] = ($event) => updateOpen(true)),
15325
+ value: selectedItems.value,
15313
15326
  required: ""
15314
- }, null, 512)), [
15315
- [vModelText, selectedItems.value]
15316
- ]) : createCommentVNode("", true)
15327
+ }, null, 40, _hoisted_2$h)) : createCommentVNode("", true)
15317
15328
  ])
15318
15329
  ]),
15319
15330
  _: 3
@@ -15321,7 +15332,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15321
15332
  };
15322
15333
  }
15323
15334
  });
15324
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-8235eff6"]]);
15335
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-70fd5ae7"]]);
15325
15336
  /*!
15326
15337
  * vue-draggable-next v2.2.0
15327
15338
  * (c) 2023 Anish George
@@ -45756,8 +45767,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
45756
45767
  modelValue: {}
45757
45768
  },
45758
45769
  setup(__props) {
45770
+ const props2 = __props;
45771
+ const slots = useSlots();
45759
45772
  const group = Math.random().toString(36).substring(7);
45760
45773
  const { currentTab } = useTabs(group);
45774
+ const tabValue = (tab) => typeof tab === "string" ? tab : tab.id;
45775
+ const tabComponent = defineComponent({
45776
+ render() {
45777
+ var _a2, _b, _c;
45778
+ const currentTabIndex = props2.tabs.findIndex(
45779
+ (tab) => tabValue(tab) === currentTab.value
45780
+ );
45781
+ const slotChildren = (_c = (_b = (_a2 = slots == null ? void 0 : slots.default) == null ? void 0 : _a2.call(slots)) == null ? void 0 : _b[1]) == null ? void 0 : _c.children;
45782
+ return h$2("div", slotChildren == null ? void 0 : slotChildren[currentTabIndex]);
45783
+ }
45784
+ });
45761
45785
  return (_ctx, _cache) => {
45762
45786
  return openBlock(), createElementBlock(Fragment$1, null, [
45763
45787
  createVNode(unref(TabsNav), {
@@ -45766,7 +45790,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
45766
45790
  class: "mb-05"
45767
45791
  }, null, 8, ["tabs", "group"]),
45768
45792
  unref(currentTab) ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
45769
- renderSlot(_ctx.$slots, unref(currentTab))
45793
+ unref(slots)[unref(currentTab)] ? renderSlot(_ctx.$slots, unref(currentTab), { key: 0 }) : unref(currentTab) ? (openBlock(), createBlock(resolveDynamicComponent(unref(tabComponent)), { key: 1 })) : createCommentVNode("", true)
45770
45794
  ])) : createCommentVNode("", true)
45771
45795
  ], 64);
45772
45796
  };
package/dist/style.css CHANGED
@@ -1033,10 +1033,10 @@ display: block;
1033
1033
  }
1034
1034
  .resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}
1035
1035
 
1036
- .selectinput[data-v-8235eff6] {
1036
+ .selectinput[data-v-70fd5ae7] {
1037
1037
  width: 100%;
1038
1038
  }
1039
- .selectinput-option[data-v-8235eff6] {
1039
+ .selectinput-option[data-v-70fd5ae7] {
1040
1040
  padding: 6px 12px;
1041
1041
  cursor: pointer;
1042
1042
  border-radius: 5px;
@@ -1047,14 +1047,14 @@ display: block;
1047
1047
  width: 100%;
1048
1048
  font-size: var(--input-font-size);
1049
1049
  }
1050
- .selectinput-options[data-v-8235eff6] {
1050
+ .selectinput-options[data-v-70fd5ae7] {
1051
1051
  max-height: 300px;
1052
1052
  overflow-y: auto;
1053
1053
  }
1054
- .selectinput-option[data-v-8235eff6]:hover {
1054
+ .selectinput-option[data-v-70fd5ae7]:hover {
1055
1055
  background: var(--bgl-gray-20);
1056
1056
  }
1057
- .isEmpty p[data-v-8235eff6]{
1057
+ .isEmpty p[data-v-70fd5ae7] {
1058
1058
  opacity: 0.3;
1059
1059
  }
1060
1060
 
@@ -1622,12 +1622,12 @@ img.preview[data-v-1be8d7b1] {
1622
1622
  }
1623
1623
 
1624
1624
  /* Basic editor styles */
1625
- .tiptap>*+* {
1626
- margin-top: 0.75em;
1625
+ .tiptap > * + * {
1626
+ margin-top: 0.75em;
1627
1627
  }
1628
1628
  .tiptap ul,
1629
1629
  .tiptap ol {
1630
- padding: 0 1rem;
1630
+ padding: 0 1rem;
1631
1631
  }
1632
1632
  .tiptap h1,
1633
1633
  .tiptap h2,
@@ -1635,37 +1635,41 @@ img.preview[data-v-1be8d7b1] {
1635
1635
  .tiptap h4,
1636
1636
  .tiptap h5,
1637
1637
  .tiptap h6 {
1638
- line-height: 1.1;
1638
+ line-height: 1.1;
1639
1639
  }
1640
1640
  .tiptap code {
1641
- background-color: rgba(97, 97, 97, 0.1);
1642
- color: #616161;
1641
+ background-color: rgba(97, 97, 97, 0.1);
1642
+ color: #616161;
1643
1643
  }
1644
1644
  .tiptap pre {
1645
- background: #0d0d0d;
1646
- color: #fff;
1647
- font-family: 'JetBrainsMono', monospace;
1648
- padding: 0.75rem 1rem;
1649
- border-radius: 0.5rem;
1645
+ background: #0d0d0d;
1646
+ color: #fff;
1647
+ font-family: 'JetBrainsMono', monospace;
1648
+ padding: 0.75rem 1rem;
1649
+ border-radius: 0.5rem;
1650
1650
  }
1651
1651
  .tiptap pre code {
1652
- color: inherit;
1653
- padding: 0;
1654
- background: none;
1655
- font-size: 0.8rem;
1652
+ color: inherit;
1653
+ padding: 0;
1654
+ background: none;
1655
+ font-size: 0.8rem;
1656
1656
  }
1657
1657
  .tiptap img {
1658
- max-width: 100%;
1659
- height: auto;
1658
+ max-width: 100%;
1659
+ height: auto;
1660
1660
  }
1661
1661
  .tiptap blockquote {
1662
- padding-left: 1rem;
1663
- border-left: 2px solid rgba(13, 13, 13, 0.1);
1662
+ padding-left: 1rem;
1663
+ border-left: 2px solid rgba(13, 13, 13, 0.1);
1664
1664
  }
1665
1665
  .tiptap hr {
1666
- border: none;
1667
- border-top: 2px solid rgba(13, 13, 13, 0.1);
1668
- margin: 2rem 0;
1666
+ border: none;
1667
+ border-top: 2px solid rgba(13, 13, 13, 0.1);
1668
+ margin: 2rem 0;
1669
+ }
1670
+ .tiptap {
1671
+ min-height: 500px;
1672
+ background: var(--input-bg);
1669
1673
  }
1670
1674
 
1671
1675
  .chart-line {
@@ -11,5 +11,5 @@ export type Tab = {
11
11
  id: string;
12
12
  icon?: MaterialIcons;
13
13
  } | string;
14
- export type ThemeType = 'light' | 'red' | 'gray' | 'gray-light' | 'black' | 'green' | 'primary' | 'blue';
14
+ export type ThemeType = 'light' | 'white' | 'red' | 'gray' | 'gray-light' | 'black' | 'green' | 'primary' | 'blue';
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,uBAAuB,EAAE,QAAQ,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,YAAY,GACtF,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KA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,OAAO,GACP,KAAK,GACL,MAAM,GACN,YAAY,GACZ,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,CAAA"}
@@ -3,17 +3,28 @@ export type Option = string | number | Record<string, any> | {
3
3
  label: string;
4
4
  value: string | number;
5
5
  };
6
- type TextInputOptions = {
6
+ interface InputOptions {
7
7
  required?: boolean;
8
- type?: 'text' | 'tel' | 'email';
9
8
  placeholder?: string;
10
9
  class?: string;
11
10
  defaultValue?: string;
12
11
  disabled?: boolean;
13
- };
12
+ }
13
+ interface TextInputOptions extends InputOptions {
14
+ type?: 'text' | 'tel' | 'email';
15
+ pattern?: string;
16
+ }
17
+ interface SlctInputOptions extends InputOptions {
18
+ searchable?: boolean;
19
+ }
20
+ interface NumFieldOptions extends InputOptions {
21
+ max?: number;
22
+ min?: number;
23
+ step?: number;
24
+ }
14
25
  export declare function txtField(id: string, label?: string, options?: TextInputOptions): Field;
15
- export declare function slctField(id: string, label?: string, options?: Option[] | (() => Option[]), config?: TextInputOptions): Field;
16
- export declare function numField(id: string, label?: string, options?: TextInputOptions): Field;
26
+ export declare function slctField(id: string, label?: string, options?: Option[] | (() => Option[]), config?: SlctInputOptions): Field;
27
+ export declare function numField(id: string, label?: string, options?: NumFieldOptions): Field;
17
28
  export declare function frmRow(...children: Field[]): {
18
29
  $el: string;
19
30
  class: string;
@@ -1 +1 @@
1
- {"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEvG,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;I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,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,eAAgB,SAAQ,YAAY;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAUtF;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAY7H;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,KAAK,CAUrF;AAED,wBAAgB,MAAM,CAAC,GAAG,QAAQ,EAAE,KAAK,EAAE;;;;EAM1C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.354",
4
+ "version": "0.0.358",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",