@bagelink/vue 1.14.0 → 1.14.7

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 (77) 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/Btn.vue.d.ts.map +1 -1
  4. package/dist/components/Carousel.vue.d.ts +11 -0
  5. package/dist/components/Dropdown.vue.d.ts +2 -0
  6. package/dist/components/FilterQuery.vue.d.ts +3 -8
  7. package/dist/components/Modal.vue.d.ts +1 -0
  8. package/dist/components/Swiper.vue.d.ts +12 -6
  9. package/dist/components/Swiper.vue.d.ts.map +1 -1
  10. package/dist/components/analytics/PieChart.vue.d.ts +2 -2
  11. package/dist/components/calendar/CalendarPopover.vue.d.ts +4 -8
  12. package/dist/components/calendar/CalendarTypes.d.ts +10 -0
  13. package/dist/components/calendar/Index.vue.d.ts +20 -4
  14. package/dist/components/calendar/views/WeekView.vue.d.ts +9 -1
  15. package/dist/components/form/inputs/ArrayInput.vue.d.ts +4 -2
  16. package/dist/components/form/inputs/ArrayInput.vue.d.ts.map +1 -1
  17. package/dist/components/form/inputs/CheckInput.vue.d.ts +2 -1
  18. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +54 -0
  19. package/dist/components/form/inputs/ColorInput.vue.d.ts +3 -1
  20. package/dist/components/form/inputs/DateInput.vue.d.ts +2 -1
  21. package/dist/components/form/inputs/DatePicker.vue.d.ts +1 -0
  22. package/dist/components/form/inputs/EmailInput.vue.d.ts +5 -2
  23. package/dist/components/form/inputs/JSONInput.vue.d.ts +2 -1
  24. package/dist/components/form/inputs/MarkdownEditor.vue.d.ts +7 -2
  25. package/dist/components/form/inputs/NumberInput.vue.d.ts +2 -1
  26. package/dist/components/form/inputs/OTP.vue.d.ts +2 -1
  27. package/dist/components/form/inputs/PasswordInput.vue.d.ts +16 -10
  28. package/dist/components/form/inputs/RadioGroup.vue.d.ts +3 -1
  29. package/dist/components/form/inputs/RangeInput.vue.d.ts +6 -1
  30. package/dist/components/form/inputs/RichText/index.vue.d.ts +2 -1
  31. package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
  32. package/dist/components/form/inputs/SelectBtn.vue.d.ts +2 -2
  33. package/dist/components/form/inputs/SelectInput.vue.d.ts +20 -13
  34. package/dist/components/form/inputs/SignaturePad.vue.d.ts +6 -1
  35. package/dist/components/form/inputs/TableField.vue.d.ts +2 -1
  36. package/dist/components/form/inputs/TelInput.vue.d.ts +2 -1
  37. package/dist/components/form/inputs/TextInput.vue.d.ts +3 -2
  38. package/dist/components/form/inputs/ToggleInput.vue.d.ts +2 -1
  39. package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts +27 -6
  40. package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts.map +1 -1
  41. package/dist/components/form/inputs/Upload/upload.d.ts +1 -1
  42. package/dist/components/form/inputs/index.d.ts +1 -0
  43. package/dist/components/index.d.ts +3 -1
  44. package/dist/components/layout/AppContent.vue.d.ts +1 -1
  45. package/dist/components/layout/AppLayout.vue.d.ts +2 -0
  46. package/dist/components/layout/AppSidebar.vue.d.ts +5 -1
  47. package/dist/components/layout/TabsNav.vue.d.ts +12 -1
  48. package/dist/form-flow/MultiStepForm.vue.d.ts +6 -1
  49. package/dist/form-flow/form-flow.d.ts +24 -1
  50. package/dist/form-flow/form-flow.d.ts.map +1 -1
  51. package/dist/i18n/index.d.ts +838 -0
  52. package/dist/index.cjs +191 -186
  53. package/dist/index.d.ts +2 -0
  54. package/dist/index.mjs +35604 -29690
  55. package/dist/style.css +2 -1
  56. package/dist/types/BagelForm.d.ts +10 -1
  57. package/dist/types/NavLink.d.ts +2 -1
  58. package/dist/types/index.d.ts +2 -1
  59. package/dist/utils/BagelFormUtils.d.ts +1 -0
  60. package/dist/utils/calendar/dateUtils.d.ts +2 -2
  61. package/dist/utils/index.d.ts +1 -1
  62. package/dist/utils/index.d.ts.map +1 -1
  63. package/dist/utils/ipapi.d.ts.map +1 -1
  64. package/dist/utils/useSearch.d.ts +1 -1
  65. package/package.json +1 -1
  66. package/src/components/form/inputs/ArrayInput.vue +34 -6
  67. package/src/components/form/inputs/RichText/editor.css +2 -2
  68. package/src/components/form/inputs/RichText/index.vue +62 -4
  69. package/src/form-flow/form-flow.ts +2 -2
  70. package/src/styles/mobilLayout.css +1 -1
  71. package/src/styles/text.css +1559 -528
  72. package/src/utils/index.ts +2 -2
  73. package/src/utils/ipapi.ts +19 -6
  74. package/dist/components/Filter.vue.d.ts +0 -30
  75. package/dist/components/Filter.vue.d.ts.map +0 -1
  76. package/dist/components/QueryFilter.vue.d.ts +0 -30
  77. package/dist/components/QueryFilter.vue.d.ts.map +0 -1
@@ -210,8 +210,8 @@ export type { ShowdownConverter, ShowdownOptions } from './showdown'
210
210
 
211
211
  const URL_REGEX = /^https?:\/\/|^\/\//
212
212
 
213
- export function pathKeyToURL(pathKey?: string) {
214
- if (pathKey === undefined || pathKey === '' || URL_REGEX.test(pathKey)) {
213
+ export function pathKeyToURL(pathKey?: string | null) {
214
+ if (pathKey == null || pathKey === '' || URL_REGEX.test(pathKey)) {
215
215
  return pathKey
216
216
  }
217
217
 
@@ -1,11 +1,24 @@
1
1
  import axios from 'axios'
2
2
 
3
+ let pendingRequest: Promise<any> | null = null
4
+
3
5
  export async function ipapi() {
4
- let apiData = sessionStorage.getItem('ipapi')
5
- if (!apiData) {
6
- apiData = (await axios.get('https://ipapi.co/json/')).data
7
- apiData = JSON.stringify(apiData)
8
- sessionStorage.setItem('ipapi', apiData)
6
+ const apiData = sessionStorage.getItem('ipapi')
7
+ if (apiData) {
8
+ return JSON.parse(apiData)
9
+ }
10
+
11
+ // Deduplicate concurrent calls — share a single in-flight request
12
+ if (!pendingRequest) {
13
+ pendingRequest = axios.get('https://ipapi.co/json/').then(res => {
14
+ const data = JSON.stringify(res.data)
15
+ sessionStorage.setItem('ipapi', data)
16
+ pendingRequest = null
17
+ return res.data
18
+ }).catch(err => {
19
+ pendingRequest = null
20
+ throw err
21
+ })
9
22
  }
10
- return JSON.parse(apiData)
23
+ return pendingRequest
11
24
  }
@@ -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"],"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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,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