@bagelink/vue 0.0.413 → 0.0.419

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 (79) hide show
  1. package/dist/components/Accordion.vue.d.ts +1 -1
  2. package/dist/components/AccordionItem.vue.d.ts +2 -2
  3. package/dist/components/Alert.vue.d.ts +2 -2
  4. package/dist/components/Avatar.vue.d.ts +2 -2
  5. package/dist/components/Avatar.vue.d.ts.map +1 -1
  6. package/dist/components/Badge.vue.d.ts +3 -2
  7. package/dist/components/BglVideo.vue.d.ts +1 -1
  8. package/dist/components/Btn.vue.d.ts +4 -3
  9. package/dist/components/Card.vue.d.ts +2 -2
  10. package/dist/components/Carousel.vue.d.ts +3 -3
  11. package/dist/components/DataPreview.vue.d.ts +10 -9
  12. package/dist/components/ListItem.vue.d.ts +2 -2
  13. package/dist/components/ListView.vue.d.ts +1 -1
  14. package/dist/components/ListView.vue.d.ts.map +1 -1
  15. package/dist/components/MaterialIcon.vue.d.ts +4 -3
  16. package/dist/components/Modal.vue.d.ts +5 -5
  17. package/dist/components/ModalConfirm.vue.d.ts +3 -3
  18. package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
  19. package/dist/components/ModalForm.vue.d.ts +27 -26
  20. package/dist/components/NavBar.vue.d.ts +4 -3
  21. package/dist/components/NavBar.vue.d.ts.map +1 -1
  22. package/dist/components/PageTitle.vue.d.ts +2 -2
  23. package/dist/components/RouterWrapper.vue.d.ts +1 -1
  24. package/dist/components/TableSchema.vue.d.ts +383 -6
  25. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  26. package/dist/components/Title.vue.d.ts +2 -2
  27. package/dist/components/TopBar.vue.d.ts +1 -1
  28. package/dist/components/dashboard/Lineart.vue.d.ts +4 -3
  29. package/dist/components/form/BglField.vue.d.ts +5 -4
  30. package/dist/components/form/BglForm.vue.d.ts +6 -5
  31. package/dist/components/form/BglForm.vue.d.ts.map +1 -1
  32. package/dist/components/form/inputs/CheckInput.vue.d.ts +14 -14
  33. package/dist/components/form/inputs/Checkbox.vue.d.ts +4 -4
  34. package/dist/components/form/inputs/ColorPicker.vue.d.ts +3 -3
  35. package/dist/components/form/inputs/DateInput.vue.d.ts +5 -5
  36. package/dist/components/form/inputs/DatePicker.vue.d.ts +10 -3
  37. package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
  38. package/dist/components/form/inputs/FileUpload.vue.d.ts +16 -15
  39. package/dist/components/form/inputs/JSONInput.vue.d.ts +3 -3
  40. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +24 -4
  41. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
  42. package/dist/components/form/inputs/RichText.vue.d.ts +3 -3
  43. package/dist/components/form/inputs/SelectInput.vue.d.ts +4 -3
  44. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  45. package/dist/components/form/inputs/TableField.vue.d.ts +3 -3
  46. package/dist/components/form/inputs/TextInput.vue.d.ts +5 -4
  47. package/dist/components/form/inputs/ToggleInput.vue.d.ts +12 -12
  48. package/dist/components/layout/BottomMenu.vue.d.ts +4 -3
  49. package/dist/components/layout/Layout.vue.d.ts +2 -2
  50. package/dist/components/layout/SidebarMenu.vue.d.ts +5 -4
  51. package/dist/components/layout/TabbedLayout.vue.d.ts +5 -4
  52. package/dist/components/layout/Tabs.vue.d.ts +4 -3
  53. package/dist/components/layout/TabsBody.vue.d.ts +2 -2
  54. package/dist/components/layout/TabsNav.vue.d.ts +4 -3
  55. package/dist/components/layout/tabsManager.d.ts +1 -1
  56. package/dist/index.cjs +6527 -4442
  57. package/dist/index.d.ts +0 -1
  58. package/dist/index.mjs +6527 -4442
  59. package/dist/plugins/bagel.d.ts +2 -1
  60. package/dist/plugins/modal.d.ts +3 -3
  61. package/dist/style.css +267 -265
  62. package/dist/types/BagelForm.d.ts +1 -0
  63. package/dist/types/BtnOptions.d.ts +2 -1
  64. package/dist/types/NavLink.d.ts +1 -0
  65. package/dist/types/index.d.ts +1 -1
  66. package/dist/utils/BagelFormUtils.d.ts +2 -1
  67. package/dist/utils/clickOutside.d.ts +2 -1
  68. package/dist/utils/index.d.ts +2 -1
  69. package/dist/utils/index.d.ts.map +1 -1
  70. package/package.json +1 -1
  71. package/src/components/Avatar.vue +2 -1
  72. package/src/components/ListView.vue +24 -28
  73. package/src/components/NavBar.vue +235 -226
  74. package/src/components/TableSchema.vue +34 -4
  75. package/src/components/form/BglForm.vue +13 -3
  76. package/src/components/form/inputs/CheckInput.vue +1 -0
  77. package/src/components/form/inputs/DatePicker.vue +13 -2
  78. package/src/components/form/inputs/RadioPillsInput.vue +15 -8
  79. package/src/components/form/inputs/SelectInput.vue +13 -11
@@ -1,4 +1,5 @@
1
1
  import { SelectInput, TextInput } from '..';
2
+
2
3
  export type AttributeValue = string | number | boolean | null | undefined | Record<string, any>;
3
4
  export type AttributeFn<T = Record<string, any>> = (field: any, row: T) => AttributeValue;
4
5
  export interface Attributes<T = any> {
@@ -1,4 +1,5 @@
1
- import type { ThemeType, MaterialIcons } from '.';
1
+ import { ThemeType, MaterialIcons } from '.';
2
+
2
3
  export interface BtnOptions {
3
4
  onClick?: () => void;
4
5
  color?: ThemeType;
@@ -1,4 +1,5 @@
1
1
  import { MaterialIcons } from './materialIcons';
2
+
2
3
  export type NavLink = {
3
4
  label: string;
4
5
  to?: string;
@@ -1,5 +1,5 @@
1
+ import { MaterialIcons } from './materialIcons';
1
2
  export type { ModalFormComponentProps, ModalApi, ModalComponentProps, ModalFormOptions, ModalOptions, } from '../plugins/modal';
2
- import type { MaterialIcons } from './materialIcons';
3
3
  export type { MaterialIcons };
4
4
  export type { Tables, TableToTypeMapping } from '../../../sdk/src/index.ts';
5
5
  export type { StorageFile } from './file';
@@ -1,4 +1,5 @@
1
- import type { Field } from '..';
1
+ import { Field } from '..';
2
+
2
3
  export type Option = string | number | Record<string, any> | {
3
4
  label: string;
4
5
  value: string | number;
@@ -1,4 +1,5 @@
1
- import type { DirectiveBinding } from 'vue';
1
+ import { DirectiveBinding } from 'vue';
2
+
2
3
  declare const _default: {
3
4
  beforeMount(el: any, binding: DirectiveBinding): void;
4
5
  unmounted(el: any): void;
@@ -1,7 +1,8 @@
1
1
  import { Attributes } from '../types';
2
+
2
3
  export declare const debounce: (fn: () => void, delay?: number) => void;
3
4
  export declare const keyToLabel: (key?: string) => string | undefined;
4
- export declare const copyText: (text: string, cb?: ((msg: string) => void) | undefined) => Promise<void>;
5
+ export declare const copyText: (text: string, cb?: (msg: string) => void) => Promise<void>;
5
6
  export declare const initials: (...strArr: string[]) => string;
6
7
  export declare function useEscape(event: KeyboardEvent, closeModel: () => void): void;
7
8
  export declare function classify(fieldVal?: any, row?: any, ...classes: any[]): string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,QAAQ,OAAQ,MAAM,IAAI,yBAGtC,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAAM,GAAG,SAEjC,CAAC;AAEnB,eAAO,MAAM,QAAQ,SACd,MAAM,cAED,MAAM,KAAK,IAAI,+BAI1B,CAAC;AAEF,eAAO,MAAM,QAAQ,cAAe,MAAM,EAAE,WAG3C,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,IAAI,QAIrE;AAED,wBAAgB,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,UAKpE;AAED,wBAAgB,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,OAS7F;AAED,eAAO,MAAM,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kB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.413",
4
+ "version": "0.0.419",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="avatar" :style="{ width: `${size}px`, height: `${size}px` }">
2
+ <div class="avatar flex" :style="{ width: `${size}px`, height: `${size}px` }">
3
3
  <img v-if="src" :src="src" :alt="name">
4
4
  <p v-else :style="{ 'line-height': `${size}px`, 'font-size': `calc(1.5rem * ${size} / 50)` }">
5
5
  {{ fallback || initials(name || '') }}
@@ -26,6 +26,7 @@ withDefaults(defineProps<{
26
26
  overflow: hidden;
27
27
  text-align: center;
28
28
  padding: 0;
29
+ flex-shrink: 0;
29
30
  }
30
31
 
31
32
  .avatar p {
@@ -9,52 +9,48 @@
9
9
  </div>
10
10
  </template>
11
11
 
12
- <script lang="ts" setup>
13
- import Card from './Card.vue';
14
-
15
- </script>
12
+ <script lang="ts" setup></script>
16
13
 
17
14
  <style>
18
15
  .list-wrap {
19
- grid-template-rows: auto 1fr;
16
+ grid-template-rows: auto 1fr;
20
17
  }
21
18
 
22
19
  .list-item {
23
- padding: 0.5rem 1rem;
24
- min-height: -webkit-fit-content;
25
- min-height: -moz-fit-content;
26
- min-height: fit-content;
27
- margin: 0.25rem 0;
28
- cursor: pointer;
29
- transition: var(--bgl-transition);
30
- color: var(--bgl-black);
31
- text-decoration: none;
32
- position: relative;
20
+ padding: 0.5rem 1rem;
21
+ min-height: -webkit-fit-content;
22
+ min-height: -moz-fit-content;
23
+ min-height: fit-content;
24
+ margin: 0.25rem 0;
25
+ cursor: pointer;
26
+ transition: var(--bgl-transition);
27
+ color: var(--bgl-black);
28
+ text-decoration: none;
29
+ position: relative;
33
30
  }
34
31
 
35
32
  .list-item::after {
36
- content: "";
37
- position: absolute;
38
- left: 0;
39
- right: 0;
40
- bottom: -0.15rem;
41
- border-bottom: 1px solid var(--border-color);
33
+ content: '';
34
+ position: absolute;
35
+ left: 0;
36
+ right: 0;
37
+ bottom: -0.15rem;
38
+ border-bottom: 1px solid var(--border-color);
42
39
  }
43
40
 
44
41
  .list-item:hover,
45
42
  .list-item.router-link-active {
46
- background-color: var(--bgl-blue-light);
43
+ background-color: var(--bgl-blue-light);
47
44
  }
48
45
 
49
46
  .list-item:active {
50
- -webkit-filter: var(--bgl-hover-filter);
51
- filter: var(--bgl-hover-filter);
47
+ -webkit-filter: var(--bgl-hover-filter);
48
+ filter: var(--bgl-hover-filter);
52
49
  }
53
50
 
54
51
  @media screen and (max-width: 910px) {
55
-
56
- .list-item {
57
- padding: 0.5rem;
58
- }
52
+ .list-item {
53
+ padding: 0.5rem;
54
+ }
59
55
  }
60
56
  </style>