@bagelink/vue 1.14.10 → 1.14.13

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 (63) hide show
  1. package/dist/components/AddressSearch.vue.d.ts +7 -6
  2. package/dist/components/Btn.vue.d.ts +1 -1
  3. package/dist/components/Carousel.vue.d.ts +11 -0
  4. package/dist/components/Dropdown.vue.d.ts +2 -0
  5. package/dist/components/FilterQuery.vue.d.ts +3 -8
  6. package/dist/components/Modal.vue.d.ts +1 -0
  7. package/dist/components/Swiper.vue.d.ts +12 -6
  8. package/dist/components/Swiper.vue.d.ts.map +1 -1
  9. package/dist/components/analytics/PieChart.vue.d.ts +2 -2
  10. package/dist/components/calendar/CalendarPopover.vue.d.ts +4 -8
  11. package/dist/components/calendar/CalendarTypes.d.ts +10 -0
  12. package/dist/components/calendar/Index.vue.d.ts +20 -4
  13. package/dist/components/calendar/views/WeekView.vue.d.ts +9 -1
  14. package/dist/components/form/inputs/ArrayInput.vue.d.ts +4 -2
  15. package/dist/components/form/inputs/CheckInput.vue.d.ts +2 -1
  16. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +54 -0
  17. package/dist/components/form/inputs/ColorInput.vue.d.ts +3 -1
  18. package/dist/components/form/inputs/DateInput.vue.d.ts +2 -1
  19. package/dist/components/form/inputs/DatePicker.vue.d.ts +1 -0
  20. package/dist/components/form/inputs/EmailInput.vue.d.ts +5 -2
  21. package/dist/components/form/inputs/JSONInput.vue.d.ts +2 -1
  22. package/dist/components/form/inputs/MarkdownEditor.vue.d.ts +7 -2
  23. package/dist/components/form/inputs/NumberInput.vue.d.ts +2 -1
  24. package/dist/components/form/inputs/OTP.vue.d.ts +2 -1
  25. package/dist/components/form/inputs/PasswordInput.vue.d.ts +16 -10
  26. package/dist/components/form/inputs/RadioGroup.vue.d.ts +3 -1
  27. package/dist/components/form/inputs/RangeInput.vue.d.ts +6 -1
  28. package/dist/components/form/inputs/RichText/index.vue.d.ts +2 -1
  29. package/dist/components/form/inputs/SelectBtn.vue.d.ts +2 -2
  30. package/dist/components/form/inputs/SelectInput.vue.d.ts +20 -13
  31. package/dist/components/form/inputs/SignaturePad.vue.d.ts +6 -1
  32. package/dist/components/form/inputs/TableField.vue.d.ts +2 -1
  33. package/dist/components/form/inputs/TelInput.vue.d.ts +2 -1
  34. package/dist/components/form/inputs/TextInput.vue.d.ts +3 -2
  35. package/dist/components/form/inputs/ToggleInput.vue.d.ts +2 -1
  36. package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts +27 -6
  37. package/dist/components/form/inputs/Upload/upload.d.ts +1 -1
  38. package/dist/components/form/inputs/index.d.ts +1 -0
  39. package/dist/components/index.d.ts +3 -1
  40. package/dist/components/layout/AppContent.vue.d.ts +1 -1
  41. package/dist/components/layout/AppLayout.vue.d.ts +2 -0
  42. package/dist/components/layout/AppSidebar.vue.d.ts +5 -1
  43. package/dist/components/layout/TabsNav.vue.d.ts +12 -1
  44. package/dist/form-flow/MultiStepForm.vue.d.ts +6 -1
  45. package/dist/form-flow/form-flow.d.ts +24 -1
  46. package/dist/i18n/index.d.ts +838 -0
  47. package/dist/index.cjs +163 -187
  48. package/dist/index.d.ts +2 -0
  49. package/dist/index.mjs +35663 -29811
  50. package/dist/style.css +2 -1
  51. package/dist/types/BagelForm.d.ts +10 -1
  52. package/dist/types/NavLink.d.ts +2 -1
  53. package/dist/types/index.d.ts +2 -1
  54. package/dist/utils/BagelFormUtils.d.ts +1 -0
  55. package/dist/utils/calendar/dateUtils.d.ts +2 -2
  56. package/dist/utils/index.d.ts +1 -1
  57. package/dist/utils/useSearch.d.ts +1 -1
  58. package/package.json +1 -1
  59. package/src/styles/inputs.css +6 -1
  60. package/dist/components/Filter.vue.d.ts +0 -30
  61. package/dist/components/Filter.vue.d.ts.map +0 -1
  62. package/dist/components/QueryFilter.vue.d.ts +0 -30
  63. package/dist/components/QueryFilter.vue.d.ts.map +0 -1
@@ -3,6 +3,7 @@ import { ToString } from 'type-fest/source/internal';
3
3
  import { LiteralStringUnion } from 'type-fest/source/literal-union';
4
4
  import { PathsOptions, DefaultPathsOptions } from 'type-fest/source/paths';
5
5
  import { VNode } from 'vue';
6
+ import { BagelInputShellProps } from '../components/form/inputs/bagelInputShell';
6
7
  type ArrayAttrs = any;
7
8
  interface Option {
8
9
  label: string;
@@ -123,8 +124,9 @@ export interface ValidateInputBaseT {
123
124
  }, string>;
124
125
  getFormData?: () => any;
125
126
  }
126
- export interface UploadInputProps {
127
+ export interface UploadInputProps extends BagelInputShellProps {
127
128
  id?: string;
129
+ name?: string;
128
130
  label?: string;
129
131
  multiple?: boolean;
130
132
  modelValue?: string | string[];
@@ -140,8 +142,15 @@ export interface UploadInputProps {
140
142
  disabled?: boolean;
141
143
  baseURL?: string;
142
144
  placeholder?: string;
145
+ /** Alias for dropzone placeholder text (same as `placeholder` when theme is dropzone). */
146
+ dropPlaceholder?: string;
143
147
  noFilePlaceholder?: string;
144
148
  btnPlaceholder?: string;
149
+ error?: string;
150
+ showIcon?: boolean;
151
+ icon?: string;
152
+ iconSize?: number | string;
153
+ iconMobileSize?: number | string;
145
154
  }
146
155
  export {};
147
156
  //# sourceMappingURL=BagelForm.d.ts.map
@@ -1,6 +1,7 @@
1
+ import { TranslatableString } from '../i18n';
1
2
  import { IconType } from './index';
2
3
  export interface NavLink {
3
- label: string;
4
+ label: TranslatableString;
4
5
  to?: string;
5
6
  icon: IconType;
6
7
  href?: string;
@@ -1,6 +1,7 @@
1
1
  import { IconType, MaterialIcons } from '../components/Icon/types';
2
- export type { ModalComponentProps, ModalComponentProps as ModalFormComponentProps, ModalOptions, } from '../plugins/modalTypes';
2
+ export type { AvailabilitySlot, CalendarEvent, CalendarProps, CalendarView, CalendarViewState } from '../components/calendar/CalendarTypes';
3
3
  export type { IconType, MaterialIcons };
4
+ export type { ModalComponentProps, ModalComponentProps as ModalFormComponentProps, ModalOptions, } from '../plugins/modalTypes';
4
5
  export type { AddToCalendarEvent } from '../utils/calendar/types';
5
6
  export * from './BagelForm';
6
7
  export * from './BtnOptions';
@@ -134,6 +134,7 @@ export interface ArrayAttrs<T, P extends Path<T>> extends Attributes<T, P> {
134
134
  add?: boolean;
135
135
  schema?: MaybeRefOrGetter<BglFormSchemaT<ArrayFieldVal<T, P>>>;
136
136
  type?: ArrayType;
137
+ simple?: boolean;
137
138
  }
138
139
  export interface ArrayFieldOptions<T, K extends Path<T>> extends InputOptions<T, K>, ArrayAttrs<T, K> {
139
140
  }
@@ -1,5 +1,5 @@
1
- import { timeDelta, formatDate, fmtDate, handleTimezone, getDatePartsMap } from '@bagelink/utils';
2
- export { fmtDate, formatDate, getDatePartsMap, handleTimezone, timeDelta };
1
+ import { timeDelta, formatDate, fmtDate, handleTimezone, getDatePartsMap, utc, local } from '@bagelink/utils';
2
+ export { fmtDate, formatDate, getDatePartsMap, handleTimezone, timeDelta, utc, local };
3
3
  export type { DateTimeAcceptedFormats, FormatDateOptions } from '@bagelink/utils';
4
4
  type TimeAgoLang = 'en' | 'es' | 'fr' | 'he' | 'it' | 'ru';
5
5
  export declare function timeAgo(date: string | Date, langOrConfig?: TimeAgoLang | {
@@ -29,7 +29,7 @@ export { getOptionIcon, getOptionLabel, getOptionValue, normalizeOption } from '
29
29
  export type { ComparisonOperator, FilterCondition, LogicalOperator, QueryConditions, QueryFilter } from './queryFilter';
30
30
  export { anyOf, parseQuery, queryFilter, range, search } from './queryFilter';
31
31
  export type { ShowdownConverter, ShowdownOptions } from './showdown';
32
- export declare function pathKeyToURL(pathKey?: string): string | undefined;
32
+ export declare function pathKeyToURL(pathKey?: string | null): string | null | undefined;
33
33
  export declare function getNestedValue(obj: any, path?: string, defaultValue?: any): any;
34
34
  export declare function tryRun<T>(func: () => T, callback?: (error: Error) => void): T | undefined;
35
35
  export declare function downloadFile(source: string | Blob, fileName?: string): void;
@@ -14,7 +14,7 @@ export declare function normalizeText(text: string): string;
14
14
  export interface SearchItemParams<T> {
15
15
  searchTerm?: MaybeRefOrGetter<string>;
16
16
  items?: MaybeRefOrGetter<T[]>;
17
- keysToSearch?: (keyof T extends string ? keyof T : string)[];
17
+ keysToSearch?: string[];
18
18
  fieldWeights?: Record<string, number>;
19
19
  minChars?: number;
20
20
  serverSearch?: (query: string) => Promise<T[]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.14.10",
4
+ "version": "1.14.13",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -48,7 +48,7 @@ select {
48
48
 
49
49
  .bagel-input label,
50
50
  .bagel-input .label-text,
51
- .bagel-input > .label {
51
+ .bagel-input>.label {
52
52
  color: var(--bgl-input-label-color);
53
53
  }
54
54
 
@@ -464,6 +464,11 @@ select {
464
464
  row-gap: 0.5rem;
465
465
  }
466
466
 
467
+ .grid-form.thin .bagel-input,
468
+ .grid-form.dense .bagel-input {
469
+ margin-bottom: 0;
470
+ }
471
+
467
472
  .grid-form>* {
468
473
  grid-column: 1 / -1;
469
474
  }
@@ -1,30 +0,0 @@
1
- import { Option } from '..';
2
- import { QueryConditions } from '../utils/queryFilter';
3
- 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<{
4
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
- readonly onSave?: ((value: QueryConditions<T>) => any) | undefined;
6
- readonly "onUpdate:modelValue"?: ((value: QueryConditions<T>) => any) | undefined;
7
- readonly onChange?: ((value: QueryConditions<T>) => any) | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue" | "onSave"> & ({
9
- modelValue?: QueryConditions<T>;
10
- } & {
11
- fields: Array<{
12
- label: string;
13
- value: string;
14
- type?: "string" | "number" | "boolean" | "date";
15
- options?: Option[] | ((query: string) => Promise<Option[]>);
16
- multiple?: boolean;
17
- }>;
18
- }) & Partial<{}>> & import('vue').PublicProps;
19
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
20
- attrs: any;
21
- slots: {};
22
- emit: (((evt: "save", value: QueryConditions<T>) => void) & ((evt: "change", value: QueryConditions<T>) => void)) & ((evt: "update:modelValue", value: QueryConditions<T>) => void);
23
- }>) => import('vue').VNode & {
24
- __ctx?: Awaited<typeof __VLS_setup>;
25
- };
26
- export default _default;
27
- type __VLS_PrettifyLocal<T> = {
28
- [K in keyof T]: T[K];
29
- } & {};
30
- //# sourceMappingURL=Filter.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Filter.vue.d.ts","sourceRoot":"","sources":["../../src/components/Filter.vue"],"names":[],"mappings":"AAAA,OAqeO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAuC,eAAe,EAAE,MAAM,sBAAsB,CAAA;yBAI/E,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAwxBO,mBAAmB,CAAC;;;;;qBAlff,eAAe,CAAC,CAAC,CAAC;;gBA1RtB,KAAK,CAAC;YACb,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;YAC/C,OAAO,CAAC,sBAf+B,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,EAe5C;YACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;SAClB,CAAC;oBAswB2F,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;UAEJ,6KAAoC;EAEvC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAnyBzE,wBAmyB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,30 +0,0 @@
1
- import { Option } from '..';
2
- import { QueryConditions } from '../utils/queryFilter';
3
- 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<{
4
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
- readonly onSave?: ((value: QueryConditions<T>) => any) | undefined;
6
- readonly "onUpdate:modelValue"?: ((value: QueryConditions<T>) => any) | undefined;
7
- readonly onChange?: ((value: QueryConditions<T>) => any) | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue" | "onSave"> & ({
9
- modelValue?: QueryConditions<T>;
10
- } & {
11
- fields: Array<{
12
- label: string;
13
- value: string;
14
- type?: "string" | "number" | "boolean" | "date";
15
- options?: Option[] | ((query: string) => Promise<Option[]>);
16
- multiple?: boolean;
17
- }>;
18
- }) & Partial<{}>> & import('vue').PublicProps;
19
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
20
- attrs: any;
21
- slots: {};
22
- emit: (((evt: "save", value: QueryConditions<T>) => void) & ((evt: "change", value: QueryConditions<T>) => void)) & ((evt: "update:modelValue", value: QueryConditions<T>) => void);
23
- }>) => import('vue').VNode & {
24
- __ctx?: Awaited<typeof __VLS_setup>;
25
- };
26
- export default _default;
27
- type __VLS_PrettifyLocal<T> = {
28
- [K in keyof T]: T[K];
29
- } & {};
30
- //# sourceMappingURL=QueryFilter.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryFilter.vue.d.ts","sourceRoot":"","sources":["../../src/components/QueryFilter.vue"],"names":[],"mappings":"AAAA,OAqeO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAuC,eAAe,EAAE,MAAM,sBAAsB,CAAA;yBAI/E,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA0xBO,mBAAmB,CAAC;;;;;qBApff,eAAe,CAAC,CAAC,CAAC;;gBA1RtB,KAAK,CAAC;YACb,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;YAC/C,OAAO,CAAC,sBAf+B,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,EAe5C;YACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;SAClB,CAAC;oBAwwB2F,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;UAEJ,6KAAoC;EAEvC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAryBzE,wBAqyB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}