@bagelink/vue 0.0.1157 → 0.0.1161

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ListView.vue.d.ts","sourceRoot":"","sources":["../../src/components/ListView.vue"],"names":[],"mappings":"AA8BA,iBAAS,cAAc;WAqCT,OAAO,IAA6B;;wBAXtB,GAAG;yBACF,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ListView.vue.d.ts","sourceRoot":"","sources":["../../src/components/ListView.vue"],"names":[],"mappings":"AAwBA,iBAAS,cAAc;WAmCT,OAAO,IAA6B;;wBAXtB,GAAG;yBACF,GAAG;;;;EAe/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
package/dist/index.cjs CHANGED
@@ -203,7 +203,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
203
203
  }, null, 8, ["modelValue"])
204
204
  ]),
205
205
  default: vue.withCtx(() => [
206
- vue.createVNode(vue.unref(_sfc_main$e), { class: "-mt-2 hm-300px" }, {
206
+ vue.createVNode(vue.unref(ListView), { class: "-mt-2 hm-300px" }, {
207
207
  default: vue.withCtx(() => [
208
208
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(searchResults), (result2, index2) => {
209
209
  return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$f), {
@@ -37827,28 +37827,21 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
37827
37827
  };
37828
37828
  }
37829
37829
  });
37830
- const _hoisted_1$b = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
37831
- const _hoisted_2$6 = {
37832
- key: 0,
37833
- class: "p-1"
37834
- };
37830
+ const _sfc_main$e = {};
37831
+ const _hoisted_1$b = { class: "list-wrap bgl_card thin grid overflow-hidden pt-0 pb-05 px-0 m_pb-0" };
37832
+ const _hoisted_2$6 = { class: "p-0" };
37835
37833
  const _hoisted_3$4 = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
37836
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
37837
- __name: "ListView",
37838
- setup(__props) {
37839
- const slots = vue.useSlots();
37840
- return (_ctx, _cache) => {
37841
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
37842
- vue.unref(slots).header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
37843
- vue.renderSlot(_ctx.$slots, "header")
37844
- ])) : vue.createCommentVNode("", true),
37845
- vue.createElementVNode("div", _hoisted_3$4, [
37846
- vue.renderSlot(_ctx.$slots, "default")
37847
- ])
37848
- ]);
37849
- };
37850
- }
37851
- });
37834
+ function _sfc_render$3(_ctx, _cache) {
37835
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
37836
+ vue.createElementVNode("div", _hoisted_2$6, [
37837
+ vue.renderSlot(_ctx.$slots, "header")
37838
+ ]),
37839
+ vue.createElementVNode("div", _hoisted_3$4, [
37840
+ vue.renderSlot(_ctx.$slots, "default")
37841
+ ])
37842
+ ]);
37843
+ }
37844
+ const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$3]]);
37852
37845
  const _hoisted_1$a = { class: "flex-center" };
37853
37846
  const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
37854
37847
  __name: "Loading",
@@ -40810,7 +40803,7 @@ exports.JSONInput = JSONInput;
40810
40803
  exports.Layout = Layout;
40811
40804
  exports.Lineart = _sfc_main$Y;
40812
40805
  exports.ListItem = _sfc_main$f;
40813
- exports.ListView = _sfc_main$e;
40806
+ exports.ListView = ListView;
40814
40807
  exports.Loading = Loading;
40815
40808
  exports.MapEmbed = _sfc_main$c;
40816
40809
  exports.Modal = _sfc_main$b;
package/dist/index.mjs CHANGED
@@ -201,7 +201,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
201
201
  }, null, 8, ["modelValue"])
202
202
  ]),
203
203
  default: withCtx(() => [
204
- createVNode(unref(_sfc_main$e), { class: "-mt-2 hm-300px" }, {
204
+ createVNode(unref(ListView), { class: "-mt-2 hm-300px" }, {
205
205
  default: withCtx(() => [
206
206
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(searchResults), (result2, index2) => {
207
207
  return openBlock(), createBlock(unref(_sfc_main$f), {
@@ -37825,28 +37825,21 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
37825
37825
  };
37826
37826
  }
37827
37827
  });
37828
- const _hoisted_1$b = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
37829
- const _hoisted_2$6 = {
37830
- key: 0,
37831
- class: "p-1"
37832
- };
37828
+ const _sfc_main$e = {};
37829
+ const _hoisted_1$b = { class: "list-wrap bgl_card thin grid overflow-hidden pt-0 pb-05 px-0 m_pb-0" };
37830
+ const _hoisted_2$6 = { class: "p-0" };
37833
37831
  const _hoisted_3$4 = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
37834
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
37835
- __name: "ListView",
37836
- setup(__props) {
37837
- const slots = useSlots();
37838
- return (_ctx, _cache) => {
37839
- return openBlock(), createElementBlock("div", _hoisted_1$b, [
37840
- unref(slots).header ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
37841
- renderSlot(_ctx.$slots, "header")
37842
- ])) : createCommentVNode("", true),
37843
- createElementVNode("div", _hoisted_3$4, [
37844
- renderSlot(_ctx.$slots, "default")
37845
- ])
37846
- ]);
37847
- };
37848
- }
37849
- });
37832
+ function _sfc_render$3(_ctx, _cache) {
37833
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
37834
+ createElementVNode("div", _hoisted_2$6, [
37835
+ renderSlot(_ctx.$slots, "header")
37836
+ ]),
37837
+ createElementVNode("div", _hoisted_3$4, [
37838
+ renderSlot(_ctx.$slots, "default")
37839
+ ])
37840
+ ]);
37841
+ }
37842
+ const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$3]]);
37850
37843
  const _hoisted_1$a = { class: "flex-center" };
37851
37844
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
37852
37845
  __name: "Loading",
@@ -40809,7 +40802,7 @@ export {
40809
40802
  Layout,
40810
40803
  _sfc_main$Y as Lineart,
40811
40804
  _sfc_main$f as ListItem,
40812
- _sfc_main$e as ListView,
40805
+ ListView,
40813
40806
  Loading,
40814
40807
  _sfc_main$c as MapEmbed,
40815
40808
  _sfc_main$b as Modal,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.1157",
4
+ "version": "0.0.1161",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -139,14 +139,14 @@ export function useDraggable(options: DraggableOptions = {}) {
139
139
  return 2
140
140
  }
141
141
 
142
- function resetDragStyles(dragEl: DraggableElement) {
143
- if (defaultOptions.mode === 'ghost') {
144
- dragEl.style.opacity = ''
145
- dragEl.style.transform = ''
146
- } else {
147
- dragEl.style.opacity = ''
148
- }
149
- }
142
+ // function resetDragStyles(dragEl: DraggableElement) {
143
+ // if (defaultOptions.mode === 'ghost') {
144
+ // dragEl.style.opacity = ''
145
+ // dragEl.style.transform = ''
146
+ // } else {
147
+ // dragEl.style.opacity = ''
148
+ // }
149
+ // }
150
150
 
151
151
  function cacheElementPositions(draggedList: DraggableElement[]) {
152
152
  POSITION_CACHE.clear()
@@ -1,12 +1,9 @@
1
1
  <script lang="ts" setup>
2
- import { useSlots } from 'vue'
3
-
4
- const slots = useSlots()
5
2
  </script>
6
3
 
7
4
  <template>
8
- <div class="list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0">
9
- <div v-if="slots.header" class="p-1">
5
+ <div class="list-wrap bgl_card thin grid overflow-hidden pt-0 pb-05 px-0 m_pb-0">
6
+ <div class="p-0">
10
7
  <slot name="header" />
11
8
  </div>
12
9
  <div class="list-content auto-flow-rows align-items-start overflow-y h-100">