@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.
- package/dist/components/AddressSearch.vue.d.ts.map +1 -1
- package/dist/components/Carousel2.vue.d.ts +89 -0
- package/dist/components/Carousel2.vue.d.ts.map +1 -0
- package/dist/components/DragOver.vue.d.ts +1 -0
- package/dist/components/DragOver.vue.d.ts.map +1 -1
- package/dist/components/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/ImportData.vue.d.ts.map +1 -1
- package/dist/components/Loading.vue.d.ts +1 -0
- package/dist/components/Loading.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts +10 -5
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/Pill.vue.d.ts +2 -0
- package/dist/components/Pill.vue.d.ts.map +1 -1
- package/dist/components/calendar/views/CalendarPopover.vue.d.ts +2 -2
- package/dist/components/calendar/views/CalendarPopover.vue.d.ts.map +1 -1
- package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/dataTable/useTableData.d.ts +10 -10
- package/dist/components/dataTable/useTableData.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts +5 -1
- package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Upload/upload.types.d.ts +2 -0
- package/dist/components/form/inputs/Upload/upload.types.d.ts.map +1 -1
- package/dist/components/form/inputs/Upload/useFileUpload.d.ts +8 -1
- package/dist/components/form/inputs/Upload/useFileUpload.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +0 -1
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/index.cjs +599 -1008
- package/dist/index.mjs +599 -1008
- package/dist/style.css +1747 -1932
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/dist/types/TableSchema.d.ts +1 -1
- package/dist/types/TableSchema.d.ts.map +1 -1
- package/dist/utils/BagelFormUtils.d.ts +2 -2
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/DragOver.vue +21 -2
- package/src/components/ImportData.vue +34 -33
- package/src/components/Loading.vue +58 -50
- package/src/components/Modal.vue +10 -4
- package/src/components/Pill.vue +28 -5
- package/src/components/dataTable/DataTable.vue +5 -11
- package/src/components/dataTable/useTableData.ts +11 -10
- package/src/components/form/inputs/SelectInput.vue +1 -1
- package/src/components/form/inputs/Upload/UploadInput.vue +35 -47
- package/src/components/form/inputs/Upload/upload.css +12 -9
- package/src/components/form/inputs/Upload/upload.types.ts +2 -0
- package/src/components/form/inputs/Upload/useFileUpload.ts +35 -9
- package/src/components/form/inputs/index.ts +0 -1
- package/src/styles/layout.css +1466 -1460
- package/src/styles/theme.css +2 -1
- package/src/types/BagelForm.ts +2 -0
- package/src/types/TableSchema.ts +1 -1
- package/src/utils/BagelFormUtils.ts +2 -2
- package/dist/types/timeago.d.ts +0 -23
- package/dist/types/timeago.d.ts.map +0 -1
- package/src/components/form/inputs/FileUpload.vue +0 -724
package/src/styles/theme.css
CHANGED
|
@@ -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:
|
|
62
|
+
--pill-height: 20px;
|
|
62
63
|
--skeleton-radius: 0.25rem;
|
|
63
64
|
--skeleton-margin: 1rem;
|
|
64
65
|
--bgl-range-thumb-size: 20px;
|
package/src/types/BagelForm.ts
CHANGED
|
@@ -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>> :
|
package/src/types/TableSchema.ts
CHANGED
|
@@ -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?:
|
|
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
|
-
):
|
|
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
|
-
):
|
|
109
|
+
): SelectBagelField<T, P> {
|
|
110
110
|
return {
|
|
111
111
|
$el: 'select',
|
|
112
112
|
id,
|
package/dist/types/timeago.d.ts
DELETED
|
@@ -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.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