@bagelink/vue 1.2.126 → 1.2.132

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 (57) hide show
  1. package/dist/components/AddressSearch.vue.d.ts.map +1 -1
  2. package/dist/components/Carousel2.vue.d.ts +89 -0
  3. package/dist/components/Carousel2.vue.d.ts.map +1 -0
  4. package/dist/components/DragOver.vue.d.ts +1 -0
  5. package/dist/components/DragOver.vue.d.ts.map +1 -1
  6. package/dist/components/Dropdown.vue.d.ts.map +1 -1
  7. package/dist/components/ImportData.vue.d.ts.map +1 -1
  8. package/dist/components/Loading.vue.d.ts +1 -0
  9. package/dist/components/Loading.vue.d.ts.map +1 -1
  10. package/dist/components/Modal.vue.d.ts +10 -5
  11. package/dist/components/Modal.vue.d.ts.map +1 -1
  12. package/dist/components/Pill.vue.d.ts +2 -0
  13. package/dist/components/Pill.vue.d.ts.map +1 -1
  14. package/dist/components/calendar/views/CalendarPopover.vue.d.ts +2 -2
  15. package/dist/components/calendar/views/CalendarPopover.vue.d.ts.map +1 -1
  16. package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
  17. package/dist/components/dataTable/useTableData.d.ts +10 -10
  18. package/dist/components/dataTable/useTableData.d.ts.map +1 -1
  19. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  20. package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts +5 -1
  21. package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts.map +1 -1
  22. package/dist/components/form/inputs/Upload/upload.types.d.ts +2 -0
  23. package/dist/components/form/inputs/Upload/upload.types.d.ts.map +1 -1
  24. package/dist/components/form/inputs/Upload/useFileUpload.d.ts +8 -1
  25. package/dist/components/form/inputs/Upload/useFileUpload.d.ts.map +1 -1
  26. package/dist/components/form/inputs/index.d.ts +0 -1
  27. package/dist/components/form/inputs/index.d.ts.map +1 -1
  28. package/dist/index.cjs +599 -1008
  29. package/dist/index.mjs +599 -1008
  30. package/dist/style.css +1747 -1932
  31. package/dist/types/BagelForm.d.ts.map +1 -1
  32. package/dist/types/TableSchema.d.ts +1 -1
  33. package/dist/types/TableSchema.d.ts.map +1 -1
  34. package/dist/utils/BagelFormUtils.d.ts +2 -2
  35. package/dist/utils/BagelFormUtils.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/src/components/DragOver.vue +21 -2
  38. package/src/components/ImportData.vue +34 -33
  39. package/src/components/Loading.vue +58 -50
  40. package/src/components/Modal.vue +10 -4
  41. package/src/components/Pill.vue +28 -5
  42. package/src/components/dataTable/DataTable.vue +5 -11
  43. package/src/components/dataTable/useTableData.ts +11 -10
  44. package/src/components/form/inputs/SelectInput.vue +1 -1
  45. package/src/components/form/inputs/Upload/UploadInput.vue +35 -47
  46. package/src/components/form/inputs/Upload/upload.css +12 -9
  47. package/src/components/form/inputs/Upload/upload.types.ts +2 -0
  48. package/src/components/form/inputs/Upload/useFileUpload.ts +35 -9
  49. package/src/components/form/inputs/index.ts +0 -1
  50. package/src/styles/layout.css +1466 -1460
  51. package/src/styles/theme.css +2 -1
  52. package/src/types/BagelForm.ts +2 -0
  53. package/src/types/TableSchema.ts +1 -1
  54. package/src/utils/BagelFormUtils.ts +2 -2
  55. package/dist/types/timeago.d.ts +0 -23
  56. package/dist/types/timeago.d.ts.map +0 -1
  57. package/src/components/form/inputs/FileUpload.vue +0 -724
@@ -52,13 +52,14 @@
52
52
  --bgl-font-size: 16px;
53
53
  --input-height: 40px;
54
54
  --label-font-size: 12px;
55
+ --pill-font-size: 12px;
55
56
  --input-border-radius: 7px;
56
57
  --card-border-radius: 12px;
57
58
  --btn-border-radius: 10px;
58
59
  --btn-padding: 30px;
59
60
  --btn-height: 40px;
60
61
  --pill-border-radius: 8px;
61
- --pill-height: 30px;
62
+ --pill-height: 20px;
62
63
  --skeleton-radius: 0.25rem;
63
64
  --skeleton-margin: 1rem;
64
65
  --bgl-range-thumb-size: 20px;
@@ -31,6 +31,7 @@ export type BagelFieldOptions<T> = (
31
31
  )[]
32
32
  | ((val: any, rowData?: T) => void)
33
33
  )
34
+ // TODO: ^^ replace any with a more specific type (perhaps FieldVal<T, P>)
34
35
 
35
36
  export type VIfType<T, P extends Path<T>> = (
36
37
  string |
@@ -53,6 +54,7 @@ export type _Path<T> = (
53
54
  >
54
55
  >
55
56
  )
57
+
56
58
  export type Path<T> = (
57
59
  FieldVal<T, _Path<T>> extends Array<any> ?
58
60
  LiteralStringUnion<_Path<T>> :
@@ -8,7 +8,7 @@ export interface TableSchemaProps<T extends { [key: string]: any } = { [key: str
8
8
  data: T[]
9
9
  schema?: MaybeRefOrGetter<BglFormSchemaT<T>>
10
10
  columns?: MaybeRefOrGetter<string[]>
11
- useServerSort?: MaybeRefOrGetter<boolean>
11
+ useServerSort?: boolean
12
12
  selectable?: boolean
13
13
  onLastItemVisible?: () => void
14
14
  }
@@ -74,7 +74,7 @@ export function txtField<T, P extends Path<T>>(
74
74
  id: P,
75
75
  label?: string,
76
76
  options?: TextInputOptions<T, P>,
77
- ): BaseBagelField<T, P> | InputBagelField<T, P> {
77
+ ): InputBagelField<T, P> {
78
78
  return {
79
79
  $el: 'text',
80
80
  id,
@@ -106,7 +106,7 @@ export function selectField<T, P extends Path<T>>(
106
106
  label?: string,
107
107
  options?: Option[] | (() => Option[]),
108
108
  config?: SlctInputOptions<T, P>,
109
- ): BaseBagelField<T, P> | SelectBagelField<T, P> {
109
+ ): SelectBagelField<T, P> {
110
110
  return {
111
111
  $el: 'select',
112
112
  id,
@@ -1,23 +0,0 @@
1
- export interface TimeUnit {
2
- singular: string;
3
- plural: string;
4
- }
5
- export type TranslationValue = string | TimeUnit;
6
- export interface LanguageTranslations {
7
- [key: string]: TranslationValue;
8
- }
9
- export type AvailableTimeLanguages = 'en' | 'es' | 'fr' | 'he';
10
- export type DayFormatTypes = 'DD' | 'DDD' | 'DDDD';
11
- export type MonthFormatTypes = 'MM' | 'MMM' | 'MMMM';
12
- export type YearFormatTypes = 'YY' | 'YYYY';
13
- export type HourFormatTypes = 'HH';
14
- export type MinuteFormatTypes = 'mm';
15
- export type SecondFormatTypes = 'ss';
16
- export type MillisecondFormatTypes = 'sss';
17
- export type AmPmFormatTypes = 'AmPm';
18
- export type DateFormatSeparatorTypes = '/' | '-' | ' ' | ':' | '.';
19
- export type CommonDateFormats = `${DayFormatTypes}${DateFormatSeparatorTypes}${MonthFormatTypes}${DateFormatSeparatorTypes}${YearFormatTypes}` | 'DD.MM.YY' | 'DD.MM.YYYY' | 'DD/MM/YY' | 'DD/MM/YYYY' | 'MM.DD.YY' | 'MM.DD.YYYY' | 'MM/DD/YY' | 'MM/DD/YYYY' | 'YYYY-MM-DD' | 'YY-MM-DD' | 'DD MMM YYYY' | 'DD MMMM YYYY' | 'DDD, DD MMM' | 'DDDD, DD MMMM' | 'MMM DD' | 'MMMM DD';
20
- export type CommonTimeFormats = 'HH:mm' | 'HH:mm:ss' | 'HH:mm:ss:sss' | 'HH:MM' | 'HH:mm AmPm';
21
- export type CommonDateTimeFormats = `${CommonDateFormats} ${CommonTimeFormats}` | `${CommonTimeFormats}, ${CommonDateFormats}` | 'YYYY-MM-DD HH:MM';
22
- export type DateTimeAcceptedFormats = CommonDateFormats | CommonTimeFormats | CommonDateTimeFormats;
23
- //# sourceMappingURL=timeago.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timeago.d.ts","sourceRoot":"","sources":["../../src/types/timeago.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEhD,MAAM,WAAW,oBAAoB;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAC/B;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE9D,MAAM,MAAM,cAAc,GAAG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