@bagelink/vue 0.0.235-beta.0 → 0.0.237

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 (55) hide show
  1. package/dist/components/Btn.vue.d.ts +5 -0
  2. package/dist/components/Btn.vue.d.ts.map +1 -1
  3. package/dist/components/DataPreview.vue.d.ts.map +1 -1
  4. package/dist/components/ListItem.vue.d.ts +4 -0
  5. package/dist/components/ListItem.vue.d.ts.map +1 -1
  6. package/dist/components/Modal.vue.d.ts +3 -1
  7. package/dist/components/Modal.vue.d.ts.map +1 -1
  8. package/dist/components/ModalBglForm.vue.d.ts +2 -2
  9. package/dist/components/ModalForm.vue.d.ts +48 -41
  10. package/dist/components/ModalForm.vue.d.ts.map +1 -1
  11. package/dist/components/TableSchema.vue.d.ts +2 -2
  12. package/dist/components/Title.vue.d.ts +9 -0
  13. package/dist/components/Title.vue.d.ts.map +1 -1
  14. package/dist/components/form/BglField.vue.d.ts.map +1 -1
  15. package/dist/components/form/BglForm.vue.d.ts +2 -2
  16. package/dist/components/form/ItemRef.vue.d.ts +0 -1
  17. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  18. package/dist/components/form/inputs/SelectField.vue.d.ts +4 -1
  19. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  20. package/dist/components/form/inputs/SelectInput.vue.d.ts +4 -4
  21. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  22. package/dist/components/index.d.ts +1 -2
  23. package/dist/components/index.d.ts.map +1 -1
  24. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +4 -3
  25. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts.map +1 -1
  26. package/dist/index.cjs +222 -299
  27. package/dist/index.mjs +223 -300
  28. package/dist/plugins/modal.d.ts +1 -1
  29. package/dist/plugins/modal.d.ts.map +1 -1
  30. package/dist/style.css +82 -82
  31. package/dist/utils/index.d.ts.map +1 -1
  32. package/package.json +1 -1
  33. package/src/components/Btn.vue +8 -24
  34. package/src/components/DataPreview.vue +4 -15
  35. package/src/components/ListItem.vue +5 -5
  36. package/src/components/Modal.vue +12 -22
  37. package/src/components/ModalForm.vue +25 -55
  38. package/src/components/TableSchema.vue +1 -1
  39. package/src/components/Title.vue +5 -1
  40. package/src/components/form/BglField.vue +6 -12
  41. package/src/components/form/BglForm.vue +1 -1
  42. package/src/components/form/inputs/DateInput.vue +6 -2
  43. package/src/components/form/inputs/SelectInput.vue +2 -2
  44. package/src/components/index.ts +1 -2
  45. package/src/components/whatsapp/form/MsgTemplate.vue +6 -12
  46. package/src/plugins/modal.ts +5 -7
  47. package/src/styles/theme.css +1 -0
  48. package/src/utils/index.ts +6 -5
  49. package/dist/components/Drop.vue.d.ts +0 -34
  50. package/dist/components/Drop.vue.d.ts.map +0 -1
  51. package/dist/components/FileUploader.vue.d.ts +0 -60
  52. package/dist/components/FileUploader.vue.d.ts.map +0 -1
  53. package/src/components/FormKitTable.vue +0 -280
  54. package/src/components/FormSchema.vue +0 -76
  55. package/src/components/ModalBglForm.vue +0 -106
@@ -1,60 +1,49 @@
1
1
  <template>
2
- <div class="bg-dark" :class="{ 'is-side': side, 'is-active': isActive }"
3
- @click="() => (dismissable ? closeModal() : '')" @keydown.esc="closeModal">
4
- <div class="card modal" @click.stop>
5
- <header class="tool-bar">
6
- <slot name="toolbar" />
7
- <Btn :style="{ float: side ? 'left' : 'right' }" flat icon="close" @click="closeModal" />
8
- <h3 class="modal-title">
9
- {{ title }}
10
- </h3>
11
- </header>
12
- <BglForm :onDelete="onDelete ? runDelete : undefined" :modelValue="modelValue" @update:modelValue="handleEmit"
13
- @submit="runSubmit" :schema="props.schema" />
14
- </div>
15
- </div>
2
+ <Modal :side="side" ref="modal" :dismissable="dismissable" :title="title">
3
+ <BagelForm v-model="formData" :schema="computedFormSchema" />
4
+ <template #footer v-if="onDelete || onSubmit">
5
+ <div>
6
+ <Btn flat value="Cancel" @click="closeModal()" />
7
+ <Btn icon="delete" v-if="onDelete" flat value="Delete" @click="runDelete()" color="red" />
8
+ </div>
9
+ <Btn value="Submit" @click="runSubmit()" />
10
+ </template>
11
+ </Modal>
16
12
  </template>
17
13
 
18
14
  <script lang="ts" setup>
19
- import { onMounted, onUnmounted } from 'vue';
20
15
  import {
21
- Btn, BtnOptions, useEscape,
16
+ Modal,
17
+ Btn,
18
+ BagelForm, type BglFormSchemaT, type BtnOptions,
22
19
  } from '@bagelink/vue';
23
- import '../styles/modal.css';
24
- import { BglForm, BglFormSchemaT } from 'dist';
25
-
26
- // import { BagelField } from '@bagelink/vue';
27
20
 
28
21
  const props = defineProps<{
29
22
  side?: boolean;
30
23
  title?: string;
31
24
  dismissable?: boolean;
32
25
  actions?: BtnOptions[];
33
- schema: BglFormSchemaT;
34
- modelValue?: Record<string, any>;
26
+ schema: BglFormSchemaT | (() => BglFormSchemaT);
35
27
  // eslint-disable-next-line no-unused-vars
36
28
  onSubmit?: ((formData: any) => Promise<void>);
37
29
  // eslint-disable-next-line no-unused-vars
38
30
  onDelete?: ((id: string) => void);
39
31
  }>();
40
32
 
41
- let isActive = $ref<boolean>(false);
33
+ const modal = $ref<InstanceType<typeof Modal>>();
42
34
 
43
- const emit = defineEmits(['update:isModalVisible', 'update:modelValue']);
44
- const handleEmit = (value: any) => {
45
- emit('update:modelValue', value);
46
- };
35
+ const computedFormSchema = $computed(() => {
36
+ if (typeof props.schema === 'function') return props.schema();
37
+ return props.schema;
38
+ });
47
39
 
48
- const closeModal = () => {
49
- isActive = false;
50
- setTimeout(() => {
51
- emit('update:isModalVisible', false);
52
- }, 200);
53
- };
40
+ const formData = defineModel<Record<string, any>>('modelValue', { default: {} });
41
+
42
+ const closeModal = () => modal?.closeModal();
54
43
 
55
- const runSubmit = async (formData: any) => {
44
+ const runSubmit = async () => {
56
45
  try {
57
- await props.onSubmit?.(formData);
46
+ await props.onSubmit?.(formData.value);
58
47
  closeModal();
59
48
  } catch (err) {
60
49
  console.error(err);
@@ -62,28 +51,9 @@ const runSubmit = async (formData: any) => {
62
51
  };
63
52
 
64
53
  const runDelete = () => {
65
- props.onDelete?.(props.modelValue?.id);
54
+ props.onDelete?.(formData.value?.id);
66
55
  closeModal();
67
56
  };
68
-
69
- const escapeKeyClose = (e: KeyboardEvent) => props?.dismissable && useEscape(e, () => closeModal());
70
-
71
- onMounted(() => {
72
- setTimeout(() => {
73
- isActive = true;
74
- }, 1);
75
-
76
- document.addEventListener(
77
- 'keydown',
78
- escapeKeyClose,
79
- );
80
- });
81
- onUnmounted(() => {
82
- document.removeEventListener(
83
- 'keydown',
84
- escapeKeyClose,
85
- );
86
- });
87
57
  </script>
88
58
 
89
59
  <style scoped>
@@ -83,7 +83,7 @@ const loading = $ref(true);
83
83
 
84
84
  const props = defineProps<{
85
85
  data: any[];
86
- schema: BglFormSchemaT & (() => BglFormSchemaT);
86
+ schema: BglFormSchemaT | (() => BglFormSchemaT);
87
87
  }>();
88
88
 
89
89
  const computedSchema = $computed(() => {
@@ -1,12 +1,16 @@
1
1
  <template>
2
2
  <component :is="tag">
3
3
  <slot />
4
- {{ label }}
4
+ {{ label || value }}
5
5
  </component>
6
6
  </template>
7
7
 
8
8
  <script lang="ts" setup>
9
9
  defineProps({
10
+ value: {
11
+ type: String,
12
+ default: '',
13
+ },
10
14
  label: {
11
15
  type: String,
12
16
  default: '',
@@ -1,15 +1,17 @@
1
1
  <template>
2
2
  <component :required="field.required" v-bind="bindAttrs(field?.attrs || {}, fieldData, modelValue)"
3
- :class="classify(fieldData, modelValue, field.class, field.attrs?.class)" v-if="vIf" :is="is" :label="field.label"
4
- :id="field.id" :placeholder="field.placeholder || field.label" v-model="fieldData"
5
- :defaultValue="field.defaultValue" :options="field.options" :hint="field.hint">
3
+ :class="classify(fieldData, modelValue, field.class, field.attrs?.class)" v-if="iffer(field, fieldData)" :is="is"
4
+ :label="field.label" :id="field.id" :placeholder="field.placeholder || field.label" v-model="fieldData"
5
+ :defaultValue="field.defaultValue" :options="field.options" :hint="field.hint"
6
+ @update:modelValue="($event: any) => field?.onUpdate?.($event, denullify(fieldData, field.id), formData)">
7
+ {{ field.transform?.(fieldData, modelValue) || fieldData || '' }}
6
8
  <BglField v-model="formData" v-for="(child, ii) in field.children" :key="child.id || ii" :field="child" />
7
9
  </component>
8
10
  </template>
9
11
 
10
12
  <script lang="ts" setup>
11
13
  import {
12
- type Field, bindAttrs, classify, SelectInput, TextInput, ToggleInput, CheckInput,
14
+ type Field, bindAttrs, classify, SelectInput, TextInput, ToggleInput, CheckInput, iffer, denullify,
13
15
  } from '@bagelink/vue';
14
16
 
15
17
  const props = withDefaults(defineProps<{
@@ -43,12 +45,4 @@ const fieldData = $computed({
43
45
  },
44
46
  get: () => (props.field.id ? props.modelValue[props.field.id] : ''),
45
47
  });
46
-
47
- const vIf = $computed(() => {
48
- if (props.field['v-if'] === undefined) return true;
49
- if (typeof props.field['v-if'] === 'boolean') return props.field['v-if'];
50
- if (typeof props.field['v-if'] === 'string') return !!props.modelValue.value[props.field['v-if']];
51
- if (typeof props.field['v-if'] === 'function') return props.field['v-if']!(fieldData.value, props.modelValue);
52
- return true;
53
- });
54
48
  </script>
@@ -23,7 +23,7 @@ const props = withDefaults(
23
23
  defineProps<{
24
24
  label?: string;
25
25
  id?: string;
26
- schema: BglFormSchemaT;
26
+ schema: BglFormSchemaT<any>;
27
27
  modelValue?: Record<string, any>;
28
28
  onDelete?: ((id: string) => void);
29
29
  onSubmit?: ((data: any) => void);
@@ -3,7 +3,7 @@
3
3
  <label v-if="label">
4
4
  {{ label }}
5
5
  </label>
6
- <VDatepicker ref="datePicker" :auto-apply="true" v-model="date" :enable-time-picker="enableTime"/>
6
+ <VDatepicker ref="datePicker" :auto-apply="true" v-model="date" :enable-time-picker="enableTime" />
7
7
  </div>
8
8
  </template>
9
9
 
@@ -45,7 +45,7 @@ let date = $computed<string | Date>({
45
45
  });
46
46
 
47
47
  onMounted(() => {
48
- if (props.defaultValue) date = props.defaultValue;
48
+ if (props.defaultValue) date = props.defaultValue;
49
49
  });
50
50
  </script>
51
51
 
@@ -53,4 +53,8 @@ onMounted(() => {
53
53
  .dp__input_wrap input {
54
54
  padding-inline-start: 2rem !important;
55
55
  }
56
+
57
+ .dp__calendar_row>div:last-child {
58
+ pointer-events: auto !important;
59
+ }
56
60
  </style>
@@ -20,8 +20,8 @@ type RawOption = Option | string | number;
20
20
 
21
21
  const props = defineProps<{
22
22
  required?: boolean,
23
- label: string,
24
- id: string,
23
+ label?: string,
24
+ id?: string,
25
25
  modelValue?: string | number,
26
26
  placeholder?: string,
27
27
  defaultValue?: string | number,
@@ -4,14 +4,13 @@ export { default as MaterialIcon } from './MaterialIcon.vue';
4
4
  export { default as NavBar } from './NavBar.vue';
5
5
  export { default as Btn } from './Btn.vue';
6
6
  export { default as Modal } from './Modal.vue';
7
- export { default as ModalBglForm } from './ModalBglForm.vue';
7
+ export { default as ModalForm } from './ModalForm.vue';
8
8
  export { default as AccordionItem } from './AccordionItem.vue';
9
9
  export { default as ListView } from './ListView.vue';
10
10
  export { default as ListItem } from './ListItem.vue';
11
11
  export { default as TabbedLayout } from './TabbedLayout.vue';
12
12
  export { default as Comments } from './Comments.vue';
13
13
  export { default as PageTitle } from './PageTitle.vue';
14
- export { default as FormSchema } from './FormSchema.vue';
15
14
  export { default as TableSchema } from './TableSchema.vue';
16
15
  export { default as TopBar } from './TopBar.vue';
17
16
  export { default as RouterWrapper } from './RouterWrapper.vue';
@@ -4,16 +4,9 @@
4
4
  <div class="view-wrapper card thin">
5
5
  <div class="whatsapp-wrap">
6
6
  <div class="create-template-form">
7
- <FormSchema
8
- :schema="whatsappTemplateSchema()"
9
- v-model="localWhatsappData"
10
- @submit="upsertTemplate"
11
- />
7
+ <BagelForm :schema="whatsappTemplateSchema" v-model="localWhatsappData" @submit="upsertTemplate" />
12
8
  </div>
13
- <div
14
- class="whatsapp-preview"
15
- :class="{ whatsappHebrew: localWhatsappData?.language === 'he' }"
16
- >
9
+ <div class="whatsapp-preview" :class="{ whatsappHebrew: localWhatsappData?.language === 'he' }">
17
10
  {{ previewLabel }}
18
11
  <div class="whatsapp-msg">
19
12
  <b>{{
@@ -35,9 +28,10 @@
35
28
  <script setup lang="ts">
36
29
  import { onMounted } from 'vue';
37
30
 
38
- import type { FormKitSchemaDefinition } from '@formkit/core';
39
31
  import type { RouteLocationNormalizedLoaded, Router } from 'vue-router';
40
- import { useBagel, PageTitle, FormSchema } from '@bagelink/vue';
32
+ import {
33
+ useBagel, PageTitle, BagelForm, BglFormSchemaT,
34
+ } from '@bagelink/vue';
41
35
  import {
42
36
  BodyComponent,
43
37
  HeaderComponent,
@@ -48,7 +42,7 @@ import {
48
42
 
49
43
  const props = withDefaults(
50
44
  defineProps<{
51
- whatsappTemplateSchema: () => FormKitSchemaDefinition;
45
+ whatsappTemplateSchema: BglFormSchemaT<LocalTemplateData>;
52
46
  router: Router;
53
47
  route: RouteLocationNormalizedLoaded;
54
48
  previewLabel?: string;
@@ -3,7 +3,7 @@ import {
3
3
  } from 'vue';
4
4
  import type { Plugin } from 'vue';
5
5
  import type { BglFormSchemaT, BtnOptions } from '@bagelink/vue';
6
- import { Modal, ModalBglForm } from '@bagelink/vue';
6
+ import { Modal, ModalForm } from '@bagelink/vue';
7
7
 
8
8
  interface ModalOptions {
9
9
  title?: string;
@@ -21,7 +21,8 @@ interface ModalFormOptions extends ModalOptions {
21
21
  onSubmit: (val: any) => void;
22
22
  // eslint-disable-next-line no-unused-vars
23
23
  onDelete?: (id: string) => void;
24
- schema: BglFormSchemaT<any>;
24
+ schema: BglFormSchemaT<any> | (() => BglFormSchemaT<any>);
25
+
25
26
  }
26
27
 
27
28
  interface ModalApi {
@@ -83,12 +84,9 @@ export const ModalPlugin: Plugin = {
83
84
  },
84
85
  render() {
85
86
  return modalStack.map((modal, index) => {
86
- let renderComponent;
87
- if (modal.modalType === 'modalForm') renderComponent = ModalBglForm;
88
- else renderComponent = Modal;
89
-
87
+ const renderComponent = modal.modalType === 'modalForm' ? ModalForm : Modal;
90
88
  return h(
91
- renderComponent,
89
+ renderComponent as any,
92
90
  {
93
91
  ...modal.modalOptions,
94
92
  'onUpdate:isModalVisible': () => hideModal(index),
@@ -97,6 +97,7 @@
97
97
  gap: 1rem;
98
98
  display: flex;
99
99
  justify-content: space-between;
100
+ align-items: center;
100
101
  }
101
102
 
102
103
  * {
@@ -39,7 +39,7 @@ export function classify(fieldVal?: any, row?: any, ...classes: any[]) {
39
39
 
40
40
  export function bindAttrs<T = Record<string, any>>(attrs?: Attributes, fieldVal?: any, row?: T) {
41
41
  if (!attrs) return {};
42
- const exclude = ['class', 'style'];
42
+ const exclude = ['class'];
43
43
  const arr = Object.entries(attrs).filter(([key]) => !exclude.includes(key)).map(([key, value]) => [
44
44
  key,
45
45
  typeof value === 'function' ? value(fieldVal, row) : value,
@@ -49,10 +49,11 @@ export function bindAttrs<T = Record<string, any>>(attrs?: Attributes, fieldVal?
49
49
  }
50
50
 
51
51
  export const iffer = (field: any, itemData: any) => {
52
- if (field['v-if'] && typeof field['v-if'] === 'function') {
53
- return field['v-if'](field.id ? itemData[field.id] : '', itemData);
54
- }
55
- return field['v-if'] || true;
52
+ if (field['v-if'] === undefined) return true;
53
+ if (typeof field['v-if'] === 'boolean') return field['v-if'];
54
+ if (typeof field['v-if'] === 'string') return !!itemData.value[field['v-if']];
55
+ if (typeof field['v-if'] === 'function') return field['v-if']!(itemData?.[field.id], itemData);
56
+ return true;
56
57
  };
57
58
 
58
59
  export const denullify = (itemData?: Record<string, any>, fieldID?: string) => (fieldID && itemData ? itemData[fieldID] : null);
@@ -1,34 +0,0 @@
1
- type Option = {
2
- label: string;
3
- value: string;
4
- } | string | number;
5
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
6
- modelValue: string | number;
7
- options: Option[];
8
- placeholder?: string | undefined;
9
- label?: string | undefined;
10
- id: string;
11
- required: boolean;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- "update:modelValue": (...args: any[]) => void;
14
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
15
- modelValue: string | number;
16
- options: Option[];
17
- placeholder?: string | undefined;
18
- label?: string | undefined;
19
- id: string;
20
- required: boolean;
21
- }>>> & {
22
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
23
- }, {}, {}>;
24
- export default _default;
25
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
- type __VLS_TypePropsToRuntimeProps<T> = {
27
- [K in keyof T]-?: {} extends Pick<T, K> ? {
28
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
- } : {
30
- type: import('vue').PropType<T[K]>;
31
- required: true;
32
- };
33
- };
34
- //# sourceMappingURL=Drop.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Drop.vue.d.ts","sourceRoot":"","sources":["../../src/components/Drop.vue"],"names":[],"mappings":"AAcA;AAMA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,MAAM,GAAG,MAAM,CAAC;;gBA8KN,MAAM,GAAG,MAAM;aAClB,MAAM,EAAE;;;QAGb,MAAM;cACA,OAAO;;;;gBALL,MAAM,GAAG,MAAM;aAClB,MAAM,EAAE;;;QAGb,MAAM;cACA,OAAO;;;;AAXnB,wBAcG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
@@ -1,60 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- id?: string | undefined;
3
- private?: 0 | 1 | undefined;
4
- singleFile?: boolean | undefined;
5
- beforeUpload?: (() => Promise<any>) | undefined;
6
- dragDropLabel?: string | undefined;
7
- browseLabel?: string | undefined;
8
- }>, {
9
- private: number;
10
- entity: string;
11
- id: string;
12
- beforeUpload: () => Promise<void>;
13
- dragDropLabel: string;
14
- browseLabel: string;
15
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- done: (...args: any[]) => void;
17
- complete: (...args: any[]) => void;
18
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
- id?: string | undefined;
20
- private?: 0 | 1 | undefined;
21
- singleFile?: boolean | undefined;
22
- beforeUpload?: (() => Promise<any>) | undefined;
23
- dragDropLabel?: string | undefined;
24
- browseLabel?: string | undefined;
25
- }>, {
26
- private: number;
27
- entity: string;
28
- id: string;
29
- beforeUpload: () => Promise<void>;
30
- dragDropLabel: string;
31
- browseLabel: string;
32
- }>>> & {
33
- onDone?: ((...args: any[]) => any) | undefined;
34
- onComplete?: ((...args: any[]) => any) | undefined;
35
- }, {
36
- id: string;
37
- private: 1 | 0;
38
- beforeUpload: () => Promise<any>;
39
- dragDropLabel: string;
40
- browseLabel: string;
41
- }, {}>;
42
- export default _default;
43
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
- type __VLS_TypePropsToRuntimeProps<T> = {
45
- [K in keyof T]-?: {} extends Pick<T, K> ? {
46
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
47
- } : {
48
- type: import('vue').PropType<T[K]>;
49
- required: true;
50
- };
51
- };
52
- type __VLS_WithDefaults<P, D> = {
53
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
- default: D[K];
55
- }> : P[K];
56
- };
57
- type __VLS_Prettify<T> = {
58
- [K in keyof T]: T[K];
59
- } & {};
60
- //# sourceMappingURL=FileUploader.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileUploader.vue.d.ts","sourceRoot":"","sources":["../../src/components/FileUploader.vue"],"names":[],"mappings":"AAiDA;;;;;0BA6YuB,QAAQ,GAAG,CAAC;;;;;;;;;;;;;;;;;0BAAZ,QAAQ,GAAG,CAAC;;;;;;;;;;;;;;QAJ5B,MAAM;aAED,CAAC,GAAG,CAAC;kBAEA,MAAM,QAAQ,GAAG,CAAC;mBACjB,MAAM;iBACR,MAAM;;AARtB,wBAeG;AAGH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}