@bagelink/vue 1.0.60 → 1.0.64

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.
Files changed (45) hide show
  1. package/dist/components/AddressSearch.vue.d.ts +9 -9
  2. package/dist/components/Alert.vue.d.ts +1 -1
  3. package/dist/components/Badge.vue.d.ts +1 -1
  4. package/dist/components/Btn.vue.d.ts +1 -1
  5. package/dist/components/Dropdown.vue.d.ts +1 -1
  6. package/dist/components/Icon/Icon.vue.d.ts +1 -1
  7. package/dist/components/ListItem.vue.d.ts +1 -1
  8. package/dist/components/Modal.vue.d.ts +1 -1
  9. package/dist/components/ModalConfirm.vue.d.ts +1 -1
  10. package/dist/components/NavBar.vue.d.ts +1 -1
  11. package/dist/components/Pill.vue.d.ts +1 -1
  12. package/dist/components/Spreadsheet/Index.vue.d.ts +4 -4
  13. package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
  14. package/dist/components/dataTable/tableTypes.d.ts +1 -1
  15. package/dist/components/form/BagelForm.vue.d.ts +1 -1
  16. package/dist/components/form/FieldArray.vue.d.ts +1 -1
  17. package/dist/components/form/inputs/FileUpload.vue.d.ts +1 -1
  18. package/dist/components/form/inputs/NumberInput.vue.d.ts +1 -1
  19. package/dist/components/form/inputs/PasswordInput.vue.d.ts +1 -1
  20. package/dist/components/form/inputs/PhoneInput.vue.d.ts +4 -4
  21. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +1 -1
  22. package/dist/components/form/inputs/RichText/utils/media.d.ts +1 -1
  23. package/dist/components/form/inputs/SelectInput.vue.d.ts +7 -7
  24. package/dist/components/form/inputs/TextInput.vue.d.ts +1 -1
  25. package/dist/components/layout/BottomMenu.vue.d.ts +1 -1
  26. package/dist/components/layout/SidebarMenu.vue.d.ts +1 -1
  27. package/dist/components/layout/Tabs.vue.d.ts +1 -1
  28. package/dist/components/layout/TabsNav.vue.d.ts +1 -1
  29. package/dist/composables/index.d.ts +1 -1
  30. package/dist/composables/useFormField.d.ts +1 -1
  31. package/dist/index.cjs +12 -7
  32. package/dist/index.mjs +13 -8
  33. package/dist/plugins/modalTypes.d.ts +1 -1
  34. package/dist/style.css +47 -47
  35. package/dist/types/BagelForm.d.ts +1 -1
  36. package/dist/types/NavLink.d.ts +1 -1
  37. package/dist/types/TableSchema.d.ts +1 -1
  38. package/dist/utils/BagelFormUtils.d.ts +3 -3
  39. package/dist/utils/BagelFormUtils.d.ts.map +1 -1
  40. package/dist/utils/index.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/src/components/dataTable/DataTable.vue +6 -4
  43. package/src/utils/BagelFormUtils.ts +1 -0
  44. package/tsconfig.json +5 -0
  45. package/vite.config.ts +3 -5
@@ -12,10 +12,10 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
12
12
  readonly thin?: boolean | undefined;
13
13
  readonly flat?: boolean | undefined;
14
14
  readonly disabled?: boolean | undefined;
15
- readonly icon?: import('../index.ts').IconType | undefined;
16
- readonly color?: import('../index.ts').ThemeType | undefined;
15
+ readonly icon?: import('..').IconType | undefined;
16
+ readonly color?: import('..').ThemeType | undefined;
17
17
  readonly triggerClass?: string | undefined;
18
- readonly iconEnd?: import('../index.ts').IconType | undefined;
18
+ readonly iconEnd?: import('..').IconType | undefined;
19
19
  readonly border?: boolean | undefined;
20
20
  readonly outline?: boolean | undefined;
21
21
  readonly round?: boolean | undefined;
@@ -539,10 +539,10 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
539
539
  thin?: boolean;
540
540
  flat?: boolean;
541
541
  disabled?: boolean;
542
- icon?: import('../index.ts').IconType;
543
- color?: import('../index.ts').ThemeType;
542
+ icon?: import('..').IconType;
543
+ color?: import('..').ThemeType;
544
544
  triggerClass?: string;
545
- iconEnd?: import('../index.ts').IconType;
545
+ iconEnd?: import('..').IconType;
546
546
  border?: boolean;
547
547
  outline?: boolean;
548
548
  round?: boolean;
@@ -589,10 +589,10 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
589
589
  thin?: boolean;
590
590
  flat?: boolean;
591
591
  disabled?: boolean;
592
- icon?: import('../index.ts').IconType;
593
- color?: import('../index.ts').ThemeType;
592
+ icon?: import('..').IconType;
593
+ color?: import('..').ThemeType;
594
594
  triggerClass?: string;
595
- iconEnd?: import('../index.ts').IconType;
595
+ iconEnd?: import('..').IconType;
596
596
  border?: boolean;
597
597
  outline?: boolean;
598
598
  round?: boolean;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../index.ts';
1
+ import { IconType } from '..';
2
2
  interface Props {
3
3
  message: string;
4
4
  dismissable?: boolean;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../index.ts';
1
+ import { IconType } from '..';
2
2
  interface Props {
3
3
  color?: 'green' | 'red' | 'blue' | 'light' | 'gray' | 'yellow';
4
4
  size?: string;
@@ -1,4 +1,4 @@
1
- import { IconType, ThemeType } from '../index.ts';
1
+ import { IconType, ThemeType } from '..';
2
2
  type __VLS_Props = {
3
3
  disabled?: boolean;
4
4
  icon?: IconType;
@@ -1,4 +1,4 @@
1
- import { IconType, ThemeType } from '../index.ts';
1
+ import { IconType, ThemeType } from '..';
2
2
  import { TriggerEvent } from 'floating-vue';
3
3
  export type Side = 'top' | 'right' | 'bottom' | 'left' | 'auto';
4
4
  export type Alignment = 'start' | 'end';
@@ -1,4 +1,4 @@
1
- import { IconType } from '../../index.ts';
1
+ import { IconType } from '../..';
2
2
  type __VLS_Props = {
3
3
  icon?: IconType;
4
4
  name?: IconType;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../index.ts';
1
+ import { IconType } from '..';
2
2
  type __VLS_Props = {
3
3
  src?: string;
4
4
  showAvatar?: boolean;
@@ -1,4 +1,4 @@
1
- import { BtnOptions } from '../index.ts';
1
+ import { BtnOptions } from '..';
2
2
  type __VLS_Props = {
3
3
  thin?: boolean;
4
4
  side?: boolean;
@@ -1,4 +1,4 @@
1
- import { ThemeType } from '../index.ts';
1
+ import { ThemeType } from '..';
2
2
  type __VLS_Props = {
3
3
  title?: string;
4
4
  message?: string;
@@ -1,4 +1,4 @@
1
- import { IconType, NavLink } from '../index.ts';
1
+ import { IconType, NavLink } from '..';
2
2
  type __VLS_Props = {
3
3
  footerLinks?: NavLink[];
4
4
  links?: NavLink[];
@@ -1,4 +1,4 @@
1
- import { IconType, ThemeType } from '../index.ts';
1
+ import { IconType, ThemeType } from '..';
2
2
  interface BtnProp {
3
3
  icon?: IconType;
4
4
  onClick: () => void;
@@ -40,8 +40,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
40
40
  nativeInputAttrs?: {
41
41
  [key: string]: any;
42
42
  };
43
- icon?: import('../../index.ts').IconType;
44
- iconStart?: import('../../index.ts').IconType;
43
+ icon?: import('../..').IconType;
44
+ iconStart?: import('../..').IconType;
45
45
  multiline?: boolean;
46
46
  autoheight?: boolean;
47
47
  code?: boolean;
@@ -90,8 +90,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
90
90
  nativeInputAttrs?: {
91
91
  [key: string]: any;
92
92
  };
93
- icon?: import('../../index.ts').IconType;
94
- iconStart?: import('../../index.ts').IconType;
93
+ icon?: import('../..').IconType;
94
+ iconStart?: import('../..').IconType;
95
95
  multiline?: boolean;
96
96
  autoheight?: boolean;
97
97
  code?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dataTable/DataTable.vue"],"names":[],"mappings":"AA+dA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAY/D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAEtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,O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,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA6UO,mBAAmB,CAAC;;;;;;;;;;wBAxNV,MAAM,EAAE;0CAwNoE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;UApD0E,GAAG;UAsDjF,2TAAoC;EAEvC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAxVzE,wBAwV4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { BglFormSchemaT } from '../../index.ts';
1
+ import { BglFormSchemaT } from '../..';
2
2
  export type SortDirectionsT = 'ASC' | 'DESC';
3
3
  export type EmitOrderT = `${string} ${SortDirectionsT}`;
4
4
  export interface TableSchemaProps<T extends Record<string, any> = Record<string, any>> {
@@ -1,4 +1,4 @@
1
- import { BglFormSchemaFnT, BglFormSchemaT } from '../../index.ts';
1
+ import { BglFormSchemaFnT, BglFormSchemaT } from '../..';
2
2
  declare const _default: <T extends {
3
3
  [key: string]: any;
4
4
  }>(__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<{
@@ -1,4 +1,4 @@
1
- import { AttributeFn, AttributeValue, Attributes, BagelFieldOptions, BglFormSchemaFnT, Field } from '../../index.ts';
1
+ import { AttributeFn, AttributeValue, Attributes, BagelFieldOptions, BglFormSchemaFnT, Field } from '../..';
2
2
  declare const _default: <T>(__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
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { StorageFile } from '../../../index.ts';
1
+ import { StorageFile } from '../../..';
2
2
  type StrKey = keyof StorageFile;
3
3
  type __VLS_Props = {
4
4
  label?: string;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../../../index.ts';
1
+ import { IconType } from '../../..';
2
2
  type NumberLayout = 'default' | 'vertical' | 'horizontal';
3
3
  interface NumberInputProps {
4
4
  modelValue?: number | string;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../../../index.ts';
1
+ import { IconType } from '../../..';
2
2
  export interface TextInputProps {
3
3
  id?: string;
4
4
  title?: string;
@@ -42,8 +42,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
42
42
  nativeInputAttrs?: {
43
43
  [key: string]: any;
44
44
  };
45
- icon?: import('../../../index.ts').IconType;
46
- iconStart?: import('../../../index.ts').IconType;
45
+ icon?: import('../../..').IconType;
46
+ iconStart?: import('../../..').IconType;
47
47
  multiline?: boolean;
48
48
  autoheight?: boolean;
49
49
  code?: boolean;
@@ -92,8 +92,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
92
92
  nativeInputAttrs?: {
93
93
  [key: string]: any;
94
94
  };
95
- icon?: import('../../../index.ts').IconType;
96
- iconStart?: import('../../../index.ts').IconType;
95
+ icon?: import('../../..').IconType;
96
+ iconStart?: import('../../..').IconType;
97
97
  multiline?: boolean;
98
98
  autoheight?: boolean;
99
99
  code?: boolean;
@@ -1,4 +1,4 @@
1
- import { Option } from '../../../index.ts';
1
+ import { Option } from '../../..';
2
2
  type __VLS_Props = {
3
3
  options?: Option[];
4
4
  modelValue?: any;
@@ -1,4 +1,4 @@
1
- import { Modal } from '../../../../../index.ts';
1
+ import { Modal } from '../../../../..';
2
2
  import { EditorState } from '../richTextTypes';
3
3
  export declare function insertImage(modal: typeof Modal, state: EditorState): void;
4
4
  export declare function insertLink(modal: typeof Modal, state: EditorState): void;
@@ -1,4 +1,4 @@
1
- import { IconType, Option } from '../../../index.ts';
1
+ import { IconType, Option } from '../../..';
2
2
  import { AlignedPlacement } from '../../Dropdown.vue';
3
3
  interface PropTypes {
4
4
  options: Option[];
@@ -34,7 +34,7 @@ declare function __VLS_template(): {
34
34
  readonly flat?: boolean | undefined;
35
35
  readonly disabled?: boolean | undefined;
36
36
  readonly icon?: IconType | undefined;
37
- readonly color?: import('../../../index.ts').ThemeType | undefined;
37
+ readonly color?: import('../../..').ThemeType | undefined;
38
38
  readonly triggerClass?: string | undefined;
39
39
  readonly iconEnd?: IconType | undefined;
40
40
  readonly border?: boolean | undefined;
@@ -561,7 +561,7 @@ declare function __VLS_template(): {
561
561
  flat?: boolean;
562
562
  disabled?: boolean;
563
563
  icon?: IconType;
564
- color?: import('../../../index.ts').ThemeType;
564
+ color?: import('../../..').ThemeType;
565
565
  triggerClass?: string;
566
566
  iconEnd?: IconType;
567
567
  border?: boolean;
@@ -611,7 +611,7 @@ declare function __VLS_template(): {
611
611
  flat?: boolean;
612
612
  disabled?: boolean;
613
613
  icon?: IconType;
614
- color?: import('../../../index.ts').ThemeType;
614
+ color?: import('../../..').ThemeType;
615
615
  triggerClass?: string;
616
616
  iconEnd?: IconType;
617
617
  border?: boolean;
@@ -750,7 +750,7 @@ declare const __VLS_component: import('vue').DefineComponent<PropTypes, {}, {},
750
750
  readonly flat?: boolean | undefined;
751
751
  readonly disabled?: boolean | undefined;
752
752
  readonly icon?: IconType | undefined;
753
- readonly color?: import('../../../index.ts').ThemeType | undefined;
753
+ readonly color?: import('../../..').ThemeType | undefined;
754
754
  readonly triggerClass?: string | undefined;
755
755
  readonly iconEnd?: IconType | undefined;
756
756
  readonly border?: boolean | undefined;
@@ -1277,7 +1277,7 @@ declare const __VLS_component: import('vue').DefineComponent<PropTypes, {}, {},
1277
1277
  flat?: boolean;
1278
1278
  disabled?: boolean;
1279
1279
  icon?: IconType;
1280
- color?: import('../../../index.ts').ThemeType;
1280
+ color?: import('../../..').ThemeType;
1281
1281
  triggerClass?: string;
1282
1282
  iconEnd?: IconType;
1283
1283
  border?: boolean;
@@ -1327,7 +1327,7 @@ declare const __VLS_component: import('vue').DefineComponent<PropTypes, {}, {},
1327
1327
  flat?: boolean;
1328
1328
  disabled?: boolean;
1329
1329
  icon?: IconType;
1330
- color?: import('../../../index.ts').ThemeType;
1330
+ color?: import('../../..').ThemeType;
1331
1331
  triggerClass?: string;
1332
1332
  iconEnd?: IconType;
1333
1333
  border?: boolean;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../../../index.ts';
1
+ import { IconType } from '../../..';
2
2
  type __VLS_Props = {
3
3
  id?: string;
4
4
  title?: string;
@@ -1,4 +1,4 @@
1
- import { NavLink } from '../../index.ts';
1
+ import { NavLink } from '../..';
2
2
  type __VLS_Props = {
3
3
  navLinks: NavLink[];
4
4
  };
@@ -1,4 +1,4 @@
1
- import { NavLink } from '../../index.ts';
1
+ import { NavLink } from '../..';
2
2
  type __VLS_Props = {
3
3
  navLinks?: NavLink[];
4
4
  expandable?: boolean;
@@ -1,4 +1,4 @@
1
- import { Tab } from '../../index.ts';
1
+ import { Tab } from '../..';
2
2
  type __VLS_Props = {
3
3
  tabs: Tab[];
4
4
  modelValue?: string;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../../index.ts';
1
+ import { IconType } from '../..';
2
2
  interface TabType {
3
3
  id?: string;
4
4
  label?: string;
@@ -1,4 +1,4 @@
1
- import { BglFormSchemaFnT, BglFormSchemaT, IfAny } from '../index.ts';
1
+ import { BglFormSchemaFnT, BglFormSchemaT, IfAny } from '..';
2
2
  import { Ref, UnwrapRef } from 'vue';
3
3
  interface UseBglSchemaParamsT<T> {
4
4
  schema?: BglFormSchemaFnT<T>;
@@ -1,4 +1,4 @@
1
- import { Field } from '../index.ts';
1
+ import { Field } from '..';
2
2
  import { BagelFormState } from '../components/form/useBagelFormState';
3
3
  export declare function useFormField<T = any>(props: {
4
4
  field: Field<T>;
package/dist/index.cjs CHANGED
@@ -11575,7 +11575,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
11575
11575
  emits: /* @__PURE__ */ vue.mergeModels(["orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
11576
11576
  setup(__props, { emit: __emit }) {
11577
11577
  vue.useCssVars((_ctx) => ({
11578
- "2365e570": vue.unref(computedItemHeight)
11578
+ "45188dd8": vue.unref(computedItemHeight)
11579
11579
  }));
11580
11580
  const props2 = __props;
11581
11581
  const emit2 = __emit;
@@ -11663,13 +11663,17 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
11663
11663
  scrollTo(0);
11664
11664
  }
11665
11665
  );
11666
+ const showLoading = vue.computed(() => loading.value || schemaState.value === "loading");
11666
11667
  return (_ctx, _cache) => {
11667
11668
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "table-list-wrap h-100" }, vue.unref(containerProps), {
11668
- class: { "loading-table": loading.value || vue.unref(schemaState) === "loading" }
11669
+ class: { "loading-table": showLoading.value }
11669
11670
  }), [
11670
- loading.value || vue.unref(schemaState) === "loading" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, _cache[4] || (_cache[4] = [
11671
- vue.createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1)
11672
- ]))) : vue.unref(schemaState) === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$A, " Error loading table schema ")) : (vue.openBlock(), vue.createElementBlock("div", vue.normalizeProps(vue.mergeProps({ key: 2 }, vue.unref(wrapperProps))), [
11671
+ showLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, _cache[4] || (_cache[4] = [
11672
+ vue.createElementVNode("div", { class: "loading-table-animation fixed oval top-7" }, null, -1)
11673
+ ]))) : vue.unref(schemaState) === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$A, " Error loading table schema ")) : vue.createCommentVNode("", true),
11674
+ vue.createElementVNode("div", vue.mergeProps(vue.unref(wrapperProps), {
11675
+ class: { "pointer-events-none": showLoading.value }
11676
+ }), [
11673
11677
  vue.createElementVNode("table", _hoisted_3$u, [
11674
11678
  vue.createElementVNode("thead", _hoisted_4$k, [
11675
11679
  vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_5$j, [
@@ -11748,12 +11752,12 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
11748
11752
  }, null, 512)) : vue.createCommentVNode("", true)
11749
11753
  ])
11750
11754
  ])
11751
- ], 16))
11755
+ ], 16)
11752
11756
  ], 16);
11753
11757
  };
11754
11758
  }
11755
11759
  });
11756
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-4a68fdec"]]);
11760
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-996e0727"]]);
11757
11761
  function useDraggable(options = {}) {
11758
11762
  const isDragging = vue.ref(false);
11759
11763
  const dragElement = vue.ref(null);
@@ -15184,6 +15188,7 @@ function arrField(id, label, schemaOrType, options) {
15184
15188
  return {
15185
15189
  label,
15186
15190
  id,
15191
+ class: options == null ? void 0 : options.class,
15187
15192
  $el: "array",
15188
15193
  vIf: options == null ? void 0 : options.vIf,
15189
15194
  attrs
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { defineComponent, reactive, provide, createElementBlock, openBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, createVNode, unref, createCommentVNode, toDisplayString, Transition, withCtx, Fragment, renderList, createBlock, isRef, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withKeys, withModifiers, createTextVNode, normalizeStyle, useCssVars, onMounted, Comment, Text, nextTick, onBeforeUnmount, onUnmounted, resolveComponent, isVNode, h as h$2, toValue, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, mergeModels, useModel, normalizeProps, vModelCheckbox, createApp, pushScopeId, popScopeId, withScopeId, guardReactiveProps, toRef, vModelText, vModelRadio, TransitionGroup, vModelDynamic, createSlots } from "vue";
4
+ import { defineComponent, reactive, provide, createElementBlock, openBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, createVNode, unref, createCommentVNode, toDisplayString, Transition, withCtx, Fragment, renderList, createBlock, isRef, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withKeys, withModifiers, createTextVNode, normalizeStyle, useCssVars, onMounted, Comment, Text, nextTick, onBeforeUnmount, onUnmounted, resolveComponent, isVNode, h as h$2, toValue, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, mergeModels, useModel, vModelCheckbox, createApp, pushScopeId, popScopeId, withScopeId, normalizeProps, guardReactiveProps, toRef, vModelText, vModelRadio, TransitionGroup, vModelDynamic, createSlots } from "vue";
5
5
  import { RouterLink } from "vue-router";
6
6
  const _sfc_main$1n = /* @__PURE__ */ defineComponent({
7
7
  __name: "Accordion",
@@ -11573,7 +11573,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11573
11573
  emits: /* @__PURE__ */ mergeModels(["orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
11574
11574
  setup(__props, { emit: __emit }) {
11575
11575
  useCssVars((_ctx) => ({
11576
- "2365e570": unref(computedItemHeight)
11576
+ "45188dd8": unref(computedItemHeight)
11577
11577
  }));
11578
11578
  const props2 = __props;
11579
11579
  const emit2 = __emit;
@@ -11661,13 +11661,17 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11661
11661
  scrollTo(0);
11662
11662
  }
11663
11663
  );
11664
+ const showLoading = computed(() => loading.value || schemaState.value === "loading");
11664
11665
  return (_ctx, _cache) => {
11665
11666
  return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
11666
- class: { "loading-table": loading.value || unref(schemaState) === "loading" }
11667
+ class: { "loading-table": showLoading.value }
11667
11668
  }), [
11668
- loading.value || unref(schemaState) === "loading" ? (openBlock(), createElementBlock("div", _hoisted_1$O, _cache[4] || (_cache[4] = [
11669
- createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1)
11670
- ]))) : unref(schemaState) === "error" ? (openBlock(), createElementBlock("div", _hoisted_2$A, " Error loading table schema ")) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 2 }, unref(wrapperProps))), [
11669
+ showLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1$O, _cache[4] || (_cache[4] = [
11670
+ createElementVNode("div", { class: "loading-table-animation fixed oval top-7" }, null, -1)
11671
+ ]))) : unref(schemaState) === "error" ? (openBlock(), createElementBlock("div", _hoisted_2$A, " Error loading table schema ")) : createCommentVNode("", true),
11672
+ createElementVNode("div", mergeProps(unref(wrapperProps), {
11673
+ class: { "pointer-events-none": showLoading.value }
11674
+ }), [
11671
11675
  createElementVNode("table", _hoisted_3$u, [
11672
11676
  createElementVNode("thead", _hoisted_4$k, [
11673
11677
  unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_5$j, [
@@ -11746,12 +11750,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11746
11750
  }, null, 512)) : createCommentVNode("", true)
11747
11751
  ])
11748
11752
  ])
11749
- ], 16))
11753
+ ], 16)
11750
11754
  ], 16);
11751
11755
  };
11752
11756
  }
11753
11757
  });
11754
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-4a68fdec"]]);
11758
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-996e0727"]]);
11755
11759
  function useDraggable(options = {}) {
11756
11760
  const isDragging = ref(false);
11757
11761
  const dragElement = ref(null);
@@ -15182,6 +15186,7 @@ function arrField(id, label, schemaOrType, options) {
15182
15186
  return {
15183
15187
  label,
15184
15188
  id,
15189
+ class: options == null ? void 0 : options.class,
15185
15190
  $el: "array",
15186
15191
  vIf: options == null ? void 0 : options.vIf,
15187
15192
  attrs
@@ -1,4 +1,4 @@
1
- import { BglFormSchemaFnT, BtnOptions, ThemeType } from '../index.ts';
1
+ import { BglFormSchemaFnT, BtnOptions, ThemeType } from '..';
2
2
  export interface ModalOptions {
3
3
  title?: string;
4
4
  dismissable?: boolean;
package/dist/style.css CHANGED
@@ -1021,22 +1021,22 @@ display: block;
1021
1021
  text-align: center;
1022
1022
  }
1023
1023
 
1024
- .table-list-wrap[data-v-4a68fdec] {
1024
+ .table-list-wrap[data-v-996e0727] {
1025
1025
  min-height: 150px;
1026
1026
  }
1027
- .selected[data-v-4a68fdec] {
1027
+ .selected[data-v-996e0727] {
1028
1028
  background: var(--bgl-primary-tint);
1029
1029
  }
1030
- tbody tr.selected[data-v-4a68fdec]:hover {
1030
+ tbody tr.selected[data-v-996e0727]:hover {
1031
1031
  background: var(--bgl-primary-light);
1032
1032
  }
1033
- .loading-table[data-v-4a68fdec] {
1033
+ .loading-table[data-v-996e0727] {
1034
1034
  position: relative;
1035
1035
  }
1036
- .inset[data-v-4a68fdec] {
1036
+ .inset[data-v-996e0727] {
1037
1037
  inset: 0;
1038
1038
  }
1039
- .loading-table-animation[data-v-4a68fdec] {
1039
+ .loading-table-animation[data-v-996e0727] {
1040
1040
  --size: 60px;
1041
1041
  top: 30vh;
1042
1042
  inset-inline-start: calc(50% - var(--size));
@@ -1044,9 +1044,9 @@ tbody tr.selected[data-v-4a68fdec]:hover {
1044
1044
  border-top: 4px solid var(--bgl-primary);
1045
1045
  width: var(--size);
1046
1046
  height: var(--size);
1047
- animation: loading-table-4a68fdec 1s linear infinite;
1047
+ animation: loading-table-996e0727 1s linear infinite;
1048
1048
  }
1049
- @keyframes loading-table-4a68fdec {
1049
+ @keyframes loading-table-996e0727 {
1050
1050
  0% {
1051
1051
  transform: translate(-50%, -50%) rotate(0deg);
1052
1052
  }
@@ -1054,55 +1054,55 @@ tbody tr.selected[data-v-4a68fdec]:hover {
1054
1054
  transform: translate(-50%, -50%) rotate(360deg);
1055
1055
  }
1056
1056
  }
1057
- .list-arrows[data-v-4a68fdec] {
1057
+ .list-arrows[data-v-996e0727] {
1058
1058
  opacity: 0;
1059
1059
  }
1060
- .list-arrows .bgl_icon-font[data-v-4a68fdec] {
1060
+ .list-arrows .bgl_icon-font[data-v-996e0727] {
1061
1061
  transition: all ease-in-out 0.2s;
1062
1062
  }
1063
- .list-arrows.sorted[data-v-4a68fdec] {
1063
+ .list-arrows.sorted[data-v-996e0727] {
1064
1064
  opacity: 1;
1065
1065
  }
1066
- .col img[data-v-4a68fdec] {
1066
+ .col img[data-v-996e0727] {
1067
1067
  height: 35px;
1068
1068
  margin-top: -14px;
1069
1069
  margin-bottom: -14px;
1070
1070
  border-radius: 5px;
1071
1071
  object-fit: cover;
1072
1072
  }
1073
- .col[data-v-4a68fdec]:has(img) {
1073
+ .col[data-v-996e0727]:has(img) {
1074
1074
  padding-inline-end: 0.5rem;
1075
1075
  }
1076
- .list-arrows.sorted .desc[data-v-4a68fdec] {
1076
+ .list-arrows.sorted .desc[data-v-996e0727] {
1077
1077
  transform: rotate(180deg);
1078
1078
  display: inline-block;
1079
1079
  }
1080
- table[data-v-4a68fdec] {
1080
+ table[data-v-996e0727] {
1081
1081
  border-spacing: 0 15px;
1082
1082
  border-collapse: collapse;
1083
1083
  width: 100%;
1084
1084
  }
1085
- th[data-v-4a68fdec] {
1085
+ th[data-v-996e0727] {
1086
1086
  font-size: 0.8rem;
1087
1087
  color: var(--bgl-black-tint);
1088
1088
  position: sticky;
1089
1089
  top: 0;
1090
1090
  z-index: 2;
1091
1091
  background: var(--bgl-box-bg);
1092
- height: var(--2365e570);
1092
+ height: var(--45188dd8);
1093
1093
  vertical-align: bottom;
1094
1094
  font-weight: 400;
1095
1095
  text-align: start;
1096
1096
  }
1097
- .embedded-field[data-v-4a68fdec] {
1097
+ .embedded-field[data-v-996e0727] {
1098
1098
  margin-bottom: -0.2rem;
1099
1099
  margin-top: -0.2rem;
1100
1100
  }
1101
- .row[data-v-4a68fdec] {
1101
+ .row[data-v-996e0727] {
1102
1102
  border-bottom: 1px solid var(--border-color);
1103
1103
  cursor: pointer;
1104
1104
  }
1105
- .row.first-row[data-v-4a68fdec] {
1105
+ .row.first-row[data-v-996e0727] {
1106
1106
  font-size: 0.8rem;
1107
1107
  color: var(--bgl-black-tint);
1108
1108
  position: sticky;
@@ -1111,7 +1111,7 @@ th[data-v-4a68fdec] {
1111
1111
  background: var(--bgl-box-bg);
1112
1112
  vertical-align: bottom;
1113
1113
  }
1114
- .row.first-row[data-v-4a68fdec]::after {
1114
+ .row.first-row[data-v-996e0727]::after {
1115
1115
  content: '';
1116
1116
  border-bottom: 1px solid var(--border-color);
1117
1117
  position: absolute;
@@ -1119,11 +1119,11 @@ th[data-v-4a68fdec] {
1119
1119
  right: 0;
1120
1120
  bottom: -1px;
1121
1121
  }
1122
- .first-row .col[data-v-4a68fdec] {
1122
+ .first-row .col[data-v-996e0727] {
1123
1123
  cursor: pointer;
1124
1124
  background: var(--bgl-box-bg);
1125
1125
  }
1126
- .col[data-v-4a68fdec] {
1126
+ .col[data-v-996e0727] {
1127
1127
  white-space: nowrap;
1128
1128
  padding: 0.75rem 1rem;
1129
1129
  transition: var(--bgl-transition);
@@ -1133,19 +1133,19 @@ th[data-v-4a68fdec] {
1133
1133
  overflow: hidden;
1134
1134
  max-width: 30vw;
1135
1135
  }
1136
- .col[data-v-4a68fdec]:has(.bagel-input) {
1136
+ .col[data-v-996e0727]:has(.bagel-input) {
1137
1137
  padding: 0rem 0.25rem;
1138
1138
  }
1139
- .col > div[data-v-4a68fdec] {
1139
+ .col > div[data-v-996e0727] {
1140
1140
  display: flex;
1141
1141
  gap: 0.5rem;
1142
1142
  }
1143
- .max-col-width[data-v-4a68fdec] {
1143
+ .max-col-width[data-v-996e0727] {
1144
1144
  max-width: 30vw;
1145
1145
  overflow: hidden;
1146
1146
  text-overflow: ellipsis;
1147
1147
  }
1148
- .col.check .bgl_icon-font[data-v-4a68fdec] {
1148
+ .col.check .bgl_icon-font[data-v-996e0727] {
1149
1149
  border-radius: 100%;
1150
1150
  background: var(--bgl-blue-20);
1151
1151
  color: var(--bgl-primary);
@@ -1156,35 +1156,35 @@ th[data-v-4a68fdec] {
1156
1156
  justify-content: center;
1157
1157
  margin-top: -2px;
1158
1158
  }
1159
- .rows[data-v-4a68fdec] {
1159
+ .rows[data-v-996e0727] {
1160
1160
  font-size: 0.88em;
1161
1161
  }
1162
- .table-list[data-v-4a68fdec] {
1162
+ .table-list[data-v-996e0727] {
1163
1163
  height: 100%;
1164
1164
  position: relative;
1165
1165
  padding-left: 0 !important;
1166
1166
  padding-right: 0 !important;
1167
1167
  overflow: auto;
1168
1168
  }
1169
- .BagelTable .table-list[data-v-4a68fdec] {
1169
+ .BagelTable .table-list[data-v-996e0727] {
1170
1170
  overflow: unset;
1171
1171
  }
1172
- .row-item[data-v-4a68fdec] {
1173
- height: var(--2365e570);
1172
+ .row-item[data-v-996e0727] {
1173
+ height: var(--45188dd8);
1174
1174
  transition: all 200ms ease;
1175
1175
  }
1176
- .row-item[data-v-4a68fdec]:hover {
1176
+ .row-item[data-v-996e0727]:hover {
1177
1177
  background: var(--bgl-gray-light);
1178
1178
  }
1179
- .row-item input[type='checkbox'][data-v-4a68fdec] {
1179
+ .row-item input[type='checkbox'][data-v-996e0727] {
1180
1180
  margin-top: 0.45rem !important;
1181
1181
  accent-color: var(--bgl-accent-color);
1182
1182
  }
1183
- .infinite-wrapper[data-v-4a68fdec] {
1183
+ .infinite-wrapper[data-v-996e0727] {
1184
1184
  overflow-y: auto;
1185
1185
  width: 100%;
1186
1186
  }
1187
- input[type='checkbox'][data-v-4a68fdec] {
1187
+ input[type='checkbox'][data-v-996e0727] {
1188
1188
  margin-top: 0.3rem !important;
1189
1189
  accent-color: var(--bgl-accent-color);
1190
1190
  transform: scale(1.2);
@@ -1196,7 +1196,7 @@ input[type='checkbox'][data-v-4a68fdec] {
1196
1196
  height: 0.85rem;
1197
1197
  width: 0.85rem;
1198
1198
  }
1199
- input[type='checkbox'][data-v-4a68fdec]::before {
1199
+ input[type='checkbox'][data-v-996e0727]::before {
1200
1200
  content: '';
1201
1201
  height: 0.85rem;
1202
1202
  width: 0.85rem;
@@ -1209,18 +1209,18 @@ input[type='checkbox'][data-v-4a68fdec]::before {
1209
1209
  transform: scale(1);
1210
1210
  position: absolute;
1211
1211
  }
1212
- input[type='checkbox'][data-v-4a68fdec]:hover::before {
1212
+ input[type='checkbox'][data-v-996e0727]:hover::before {
1213
1213
  opacity: 0.2;
1214
1214
  transform: scale(2);
1215
1215
  }
1216
- [lang='he'] [dir='ltr'][data-v-4a68fdec] {
1216
+ [lang='he'] [dir='ltr'][data-v-996e0727] {
1217
1217
  text-align: right;
1218
1218
  }
1219
- th input[type='checkbox'][data-v-4a68fdec] {
1219
+ th input[type='checkbox'][data-v-996e0727] {
1220
1220
  transform: translateY(0.2rem) scale(1.2);
1221
1221
  accent-color: var(--bgl-accent-color);
1222
1222
  }
1223
- th[data-v-4a68fdec]::after {
1223
+ th[data-v-996e0727]::after {
1224
1224
  content: '';
1225
1225
  border-bottom: 1px solid var(--border-color);
1226
1226
  position: absolute;
@@ -1228,24 +1228,24 @@ th[data-v-4a68fdec]::after {
1228
1228
  right: 0;
1229
1229
  bottom: -1px;
1230
1230
  }
1231
- tr[data-v-4a68fdec] {
1231
+ tr[data-v-996e0727] {
1232
1232
  border-bottom: 1px solid var(--border-color);
1233
1233
  cursor: pointer;
1234
1234
  align-items: center;
1235
1235
  }
1236
- td[data-v-4a68fdec],
1237
- th[data-v-4a68fdec] {
1236
+ td[data-v-996e0727],
1237
+ th[data-v-996e0727] {
1238
1238
  white-space: nowrap;
1239
1239
  padding: 0.75rem 0.65rem;
1240
1240
  transition: var(--bgl-transition);
1241
1241
  line-height: 1;
1242
1242
  }
1243
- tbody tr[data-v-4a68fdec] {
1243
+ tbody tr[data-v-996e0727] {
1244
1244
  font-size: 0.88em;
1245
- height: var(--2365e570);
1245
+ height: var(--45188dd8);
1246
1246
  transition: all 200ms ease;
1247
1247
  }
1248
- tbody tr[data-v-4a68fdec]:hover {
1248
+ tbody tr[data-v-996e0727]:hover {
1249
1249
  background: var(--bgl-gray-light);
1250
1250
  }
1251
1251
 
@@ -1,4 +1,4 @@
1
- import { SelectInput, TextInput } from '../index.ts';
1
+ import { SelectInput, TextInput } from '..';
2
2
  import { VNode } from 'vue';
3
3
  export type AttributeValue = string | number | boolean | undefined | undefined | {
4
4
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../index.ts';
1
+ import { IconType } from '..';
2
2
  export interface NavLink {
3
3
  label: string;
4
4
  to?: string;
@@ -1,4 +1,4 @@
1
- import { BglFormSchemaT } from '../index.ts';
1
+ import { BglFormSchemaT } from '..';
2
2
  import { Ref, ComputedRef } from 'vue';
3
3
  export type SortDirectionsT = 'ASC' | 'DESC';
4
4
  export type EmitOrderT = `${string} ${SortDirectionsT}`;
@@ -1,4 +1,4 @@
1
- import { BglFormSchemaT, Field, Option, DotNotation } from '../index.ts';
1
+ import { BglFormSchemaT, Field, Option, DotNotation } from '..';
2
2
  import { UploadInputProps } from '../components/form/inputs/Upload/upload.types';
3
3
  interface InputOptions {
4
4
  required?: boolean;
@@ -110,14 +110,14 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
110
110
  $el: string;
111
111
  id: string;
112
112
  attrs: {
113
- schema: (string | import('../index.ts').BaseBagelField<{
113
+ schema: (string | import('..').BaseBagelField<{
114
114
  [key: string]: any;
115
115
  }>)[];
116
116
  };
117
117
  } | {
118
118
  $el: string;
119
119
  attrs: {
120
- schema: (import('../index.ts').BaseBagelField<{
120
+ schema: (import('..').BaseBagelField<{
121
121
  [key: string]: any;
122
122
  }> | undefined)[];
123
123
  };
@@ -1 +1 @@
1
- {"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAA;AAErF,UAAU,YAAY;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,CAAA;CAClD;AAED,UAAU,WAAY,SAAQ,YAAY;IACzC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAA;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,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M,EACd,OAAO,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAC9B,KAAK,CAAC,CAAC,CAAC,CASV;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,KAAK,GAAG,SAAS,CAUvF;AAED,UAAU,iBAAkB,SAAQ,YAAY;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,GAAG,CAAC,EAAE,OAAO,CAAA;CACb;AAED,KAAK,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAA;AAElC,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EACxD,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,EAC3B,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,cAAc,GAAG,SAAS,EACxC,OAAO,CAAC,EAAE,iBAAiB,GACzB,KAAK,CAAC,CAAC,CAAC,CAYV"}
@@ -1,4 +1,4 @@
1
- import { Attributes, BglFormSchemaT } from '../index.ts';
1
+ import { Attributes, BglFormSchemaT } from '..';
2
2
  export declare function debounce(fn: () => void, wait?: number): void;
3
3
  export declare function slugify(str: string): string;
4
4
  export declare function keyToLabel(key?: string): string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.0.60",
4
+ "version": "1.0.64",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -113,24 +113,26 @@ watch(
113
113
  scrollTo(0)
114
114
  }
115
115
  )
116
+
117
+ const showLoading = computed(() => loading.value || schemaState.value === 'loading')
116
118
  </script>
117
119
 
118
120
  <template>
119
121
  <div
120
122
  class="table-list-wrap h-100"
121
123
  v-bind="containerProps"
122
- :class="{ 'loading-table': loading || schemaState === 'loading' }"
124
+ :class="{ 'loading-table': showLoading }"
123
125
  >
124
126
  <div
125
- v-if="loading || schemaState === 'loading'"
127
+ v-if="showLoading"
126
128
  class="loading-table-wrapper z-99 h-100 w-100 absolute inset"
127
129
  >
128
- <div class="loading-table-animation absolute oval" />
130
+ <div class="loading-table-animation fixed oval top-7" />
129
131
  </div>
130
132
  <div v-else-if="schemaState === 'error'" class="flex-center h-300px txt-red">
131
133
  Error loading table schema
132
134
  </div>
133
- <div v-else v-bind="wrapperProps">
135
+ <div v-bind="wrapperProps" :class="{ 'pointer-events-none': showLoading }">
134
136
  <table class="infinite-wrapper">
135
137
  <thead class="row first-row">
136
138
  <th v-if="isSelectable">
@@ -325,6 +325,7 @@ export function arrField<T extends { [key: string]: any }>(
325
325
  return {
326
326
  label,
327
327
  id,
328
+ class: options?.class,
328
329
  $el: 'array',
329
330
  vIf: options?.vIf,
330
331
  attrs,
package/tsconfig.json CHANGED
@@ -50,5 +50,10 @@
50
50
  "**/**/*.d.ts",
51
51
  "./vite.config.ts",
52
52
  "src/directives/pattern",
53
+ ],
54
+ "exclude": [
55
+ "./tests",
56
+ "./vite.config.ts",
57
+ "./vitest.config.ts"
53
58
  ]
54
59
  }
package/vite.config.ts CHANGED
@@ -10,7 +10,7 @@ const indexDir = resolve(import.meta.dirname, 'src')
10
10
 
11
11
  export default defineConfig(() => ({
12
12
  plugins: [
13
- tsconfigPaths(),
13
+ tsconfigPaths({ root: indexDir, }),
14
14
  ReactivityTransform(),
15
15
  vue(),
16
16
  dts({
@@ -19,8 +19,7 @@ export default defineConfig(() => ({
19
19
  ],
20
20
  resolve: {
21
21
  alias: {
22
- '@bagelink/vue': resolve(indexDir, 'index.ts'),
23
- '@bagelink/vue/*': `${indexDir}/*`,
22
+ '@bagelink/vue': indexDir,
24
23
  },
25
24
  },
26
25
  build: {
@@ -28,8 +27,7 @@ export default defineConfig(() => ({
28
27
  lib: {
29
28
  entry: resolve(indexDir, 'index.ts'),
30
29
  formats: ['es', 'cjs'],
31
- fileName: (module, entry) =>
32
- `${entry}.${module === 'es' ? 'mjs' : module}`,
30
+ fileName: (module, entry) => `${entry}.${module === 'es' ? 'mjs' : module}`,
33
31
  cssFileName: 'style',
34
32
  },
35
33
  rollupOptions: {