@bagelink/vue 0.0.1303 → 1.0.1

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,6 +1,6 @@
1
1
  import { TableSchemaProps } from '../types/TableSchema';
2
2
  declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & (Omit<TableSchemaProps<T>, "modelValue"> & {
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & (Omit<TableSchemaProps<T>, "data"> & {
4
4
  modelValue: T;
5
5
  includeUnset?: boolean;
6
6
  }) & Partial<{}>> & import('vue').PublicProps;
@@ -1 +1 @@
1
- {"version":3,"file":"DataPreview.vue.d.ts","sourceRoot":"","sources":["../../src/components/DataPreview.vue"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;yBAK3C,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAqF1D,mBAAmB,CAAC;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,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/dist/index.cjs CHANGED
@@ -10766,7 +10766,6 @@ const _hoisted_1$N = { class: "data-preview" };
10766
10766
  const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
10767
10767
  __name: "DataPreview",
10768
10768
  props: {
10769
- data: {},
10770
10769
  schema: { type: Function },
10771
10770
  showFields: {},
10772
10771
  useServerSort: { type: Boolean },
@@ -10805,7 +10804,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
10805
10804
  };
10806
10805
  }
10807
10806
  });
10808
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-32cd138c"]]);
10807
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-74c7df87"]]);
10809
10808
  function useTableSelection(options) {
10810
10809
  const allSelectorEl = vue.ref();
10811
10810
  const computedSelectedItems = vue.computed(() => options.selectedItems.value);
package/dist/index.mjs CHANGED
@@ -10764,7 +10764,6 @@ const _hoisted_1$N = { class: "data-preview" };
10764
10764
  const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10765
10765
  __name: "DataPreview",
10766
10766
  props: {
10767
- data: {},
10768
10767
  schema: { type: Function },
10769
10768
  showFields: {},
10770
10769
  useServerSort: { type: Boolean },
@@ -10803,7 +10802,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10803
10802
  };
10804
10803
  }
10805
10804
  });
10806
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-32cd138c"]]);
10805
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-74c7df87"]]);
10807
10806
  function useTableSelection(options) {
10808
10807
  const allSelectorEl = ref();
10809
10808
  const computedSelectedItems = computed(() => options.selectedItems.value);
package/dist/style.css CHANGED
@@ -995,23 +995,23 @@ display: block;
995
995
  }
996
996
  }
997
997
 
998
- .data-preview[data-v-32cd138c] {
998
+ .data-preview[data-v-74c7df87] {
999
999
  display: flex;
1000
1000
  flex-direction: column;
1001
1001
  gap: 0.5rem;
1002
1002
  }
1003
- .preview-field[data-v-32cd138c] {
1003
+ .preview-field[data-v-74c7df87] {
1004
1004
  display: flex;
1005
1005
  flex-direction: row;
1006
1006
  align-items: center;
1007
1007
  gap: 0.5rem;
1008
1008
  }
1009
- .field-label[data-v-32cd138c] {
1009
+ .field-label[data-v-74c7df87] {
1010
1010
  font-size: 0.8rem;
1011
1011
  color: var(--bgl-black-tint);
1012
1012
  font-weight: 500;
1013
1013
  }
1014
- .field-value[data-v-32cd138c] {
1014
+ .field-value[data-v-74c7df87] {
1015
1015
  font-size: 0.95rem;
1016
1016
  }
1017
1017
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.1303",
4
+ "version": "1.0.1",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -6,7 +6,7 @@ import { computed, useSlots } from 'vue'
6
6
  import { useSchemaField } from '../composables/useSchemaField'
7
7
  import { useTableData } from './DataTable/useTableData'
8
8
 
9
- const props = defineProps<Omit<TableSchemaProps<T>, 'modelValue'> & { modelValue: T, includeUnset?: boolean }>()
9
+ const props = defineProps<Omit<TableSchemaProps<T>, 'data'> & { modelValue: T, includeUnset?: boolean }>()
10
10
  const slots = useSlots() as Slots & Record<string, (props: { row: T, field: BaseBagelField<T> }) => any>
11
11
 
12
12
  const data = computed(() => Array.isArray(props.modelValue) ? props.modelValue : [props.modelValue])