@jsg-developer/vue-pack 0.0.4 → 0.0.6

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 (118) hide show
  1. package/LICENSE +21 -19
  2. package/THIRD_PARTY_LICENSES.json +286 -0
  3. package/THIRD_PARTY_LICENSES.md +199 -0
  4. package/dist/chunks/ArrayObject-DDeI93dc.es.js +4 -0
  5. package/dist/chunks/ArrayObject-Dqa0clzu.cjs.js +1 -0
  6. package/dist/chunks/ColorPicker-CEsbb5Ag.cjs.js +1 -0
  7. package/dist/chunks/ColorPicker-I60o5_GX.es.js +4 -0
  8. package/dist/chunks/ComboboxComponent-68U96D9p.es.js +4 -0
  9. package/dist/chunks/ComboboxComponent-DtoaVSR4.cjs.js +1 -0
  10. package/dist/chunks/CurrencyInput-DGUkU3FD.es.js +4 -0
  11. package/dist/chunks/CurrencyInput-DTIcqJ1a.cjs.js +1 -0
  12. package/dist/chunks/DateInput-C0SOusmw.cjs.js +1 -0
  13. package/dist/chunks/DateInput-Co6VpTHT.es.js +4 -0
  14. package/dist/chunks/DateTimeInput-BZAT0grx.es.js +4 -0
  15. package/dist/chunks/DateTimeInput-DbpV0Qce.cjs.js +1 -0
  16. package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-DYyoakjs.es.js +142 -0
  17. package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-FyVamvm3.cjs.js +2 -0
  18. package/dist/chunks/EmailInput-Bj1hOlZq.cjs.js +1 -0
  19. package/dist/chunks/EmailInput-qqhKRmvT.es.js +4 -0
  20. package/dist/chunks/FileArrayInput-BRvQ9JCt.es.js +5 -0
  21. package/dist/chunks/FileArrayInput-QS2XM7US.cjs.js +1 -0
  22. package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-CKH_wEse.es.js +198 -0
  23. package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-CyOGfL5U.cjs.js +2 -0
  24. package/dist/chunks/FileInput-BHGryD14.cjs.js +1 -0
  25. package/dist/chunks/FileInput-DxTlDCLx.es.js +4 -0
  26. package/dist/chunks/GroupRenderer-BmfWEPk1.cjs.js +1 -0
  27. package/dist/chunks/GroupRenderer-DMAdfCgE.es.js +4 -0
  28. package/dist/chunks/ImageArrayInput-B-pILI_I.es.js +5 -0
  29. package/dist/chunks/ImageArrayInput-DFnXWcsl.cjs.js +1 -0
  30. package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-1D9mZZ7m.es.js +322 -0
  31. package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-BIwMeD6G.cjs.js +2 -0
  32. package/dist/chunks/ImageInput-CRCYTGxc.es.js +4 -0
  33. package/dist/chunks/ImageInput-CSNbCtqh.cjs.js +1 -0
  34. package/dist/chunks/NumberInput-D5mN1V1M.cjs.js +1 -0
  35. package/dist/chunks/NumberInput-JR5PkxyV.es.js +4 -0
  36. package/dist/chunks/ObjectInput-DR0aOSLh.cjs.js +1 -0
  37. package/dist/chunks/ObjectInput-Dqfri61J.es.js +4 -0
  38. package/dist/chunks/PasswordInput-DdG4fb10.cjs.js +1 -0
  39. package/dist/chunks/PasswordInput-U7M7le-1.es.js +4 -0
  40. package/dist/chunks/RateInput-D4PLWJsQ.cjs.js +1 -0
  41. package/dist/chunks/RateInput-RaBWxAY-.es.js +4 -0
  42. package/dist/chunks/TabelData-BHcz4exi.es.js +2437 -0
  43. package/dist/chunks/TabelData-BK_AEoh6.cjs.js +1 -0
  44. package/dist/chunks/TagInput-Bm2yhHqX.es.js +4 -0
  45. package/dist/chunks/TagInput-Cr_dgIv1.cjs.js +1 -0
  46. package/dist/chunks/TelInput-C5MYts-b.cjs.js +1 -0
  47. package/dist/chunks/TelInput-DcBE7hlb.es.js +4 -0
  48. package/dist/chunks/TextAreaInput-CVZds8O-.cjs.js +1 -0
  49. package/dist/chunks/TextAreaInput-Cggq_qmY.es.js +4 -0
  50. package/dist/chunks/TextAreaQuill-CtpmFHK7.es.js +600 -0
  51. package/dist/chunks/TextAreaQuill-XwQgVWLw.cjs.js +1 -0
  52. package/dist/chunks/TextInput-BcOxjfnX.cjs.js +1 -0
  53. package/dist/chunks/TextInput-fKC87ySl.es.js +4 -0
  54. package/dist/chunks/TimeInput-CbrXOhwB.es.js +4 -0
  55. package/dist/chunks/TimeInput-DP9dzBSv.cjs.js +1 -0
  56. package/dist/chunks/ToggleInput-BQJ9Z0_X.cjs.js +1 -0
  57. package/dist/chunks/ToggleInput-i8LrK8Ut.es.js +4 -0
  58. package/dist/chunks/UrlInput-DpNGJGaX.cjs.js +1 -0
  59. package/dist/chunks/UrlInput-ckEhZgRN.es.js +4 -0
  60. package/dist/chunks/resize-BA9Vve1P.es.js +5942 -0
  61. package/dist/chunks/resize-DDw7Ie92.cjs.js +12 -0
  62. package/dist/init.cjs.js +1 -1
  63. package/dist/init.es.js +1 -1
  64. package/dist/jsgd-vue-pack.cjs.js +1 -1
  65. package/dist/jsgd-vue-pack.es.js +1640 -310
  66. package/dist/style.css +1 -0
  67. package/dist/types/components/Form/composables/useFormModal.d.ts +9 -0
  68. package/dist/types/components/Tabel/TabelData.vue.d.ts +5 -4
  69. package/dist/types/components/Tabel/composables/useTableLogic.d.ts +0 -1
  70. package/dist/types/components/UI/Feedback/WarningForm.vue.d.ts +1 -1
  71. package/dist/types/components/UI/Inputs/CurrencyInput.vue.d.ts +13 -0
  72. package/dist/types/components/UI/Inputs/FileInput.vue.d.ts +2 -2
  73. package/dist/types/components/UI/Inputs/ImageInput.vue.d.ts +2 -2
  74. package/dist/types/components/UI/Inputs/RateInput.vue.d.ts +9 -0
  75. package/dist/types/components/UI/Inputs/TelInput.vue.d.ts +13 -0
  76. package/dist/types/components/UI/Inputs/TextAreaQuill.vue.d.ts +3 -3
  77. package/dist/types/components/UI/Inputs/components/QuillAltModal.vue.d.ts +12 -0
  78. package/dist/types/components/UI/Inputs/components/QuillEmbedModal.vue.d.ts +23 -0
  79. package/dist/types/components/UI/Inputs/composables/index.d.ts +1 -0
  80. package/dist/types/components/UI/Inputs/composables/useCurrencyInput.d.ts +11 -0
  81. package/dist/types/components/UI/Inputs/index.d.ts +3 -0
  82. package/dist/types/configs/types/field.types.d.ts +50 -4
  83. package/dist/types/configs/types/globalText.types.d.ts +2 -1
  84. package/dist/types/configs/types/props.types.d.ts +53 -2
  85. package/dist/types/configs/types/schema.types.d.ts +3 -2
  86. package/dist/types/configs/types/table-data.types.d.ts +3 -11
  87. package/dist/types/lib/demoData.d.ts +313 -0
  88. package/dist/types/lib/index.d.ts +1 -0
  89. package/dist/types/schemas/CQ.d.ts +2 -0
  90. package/dist/types/schemas/TestSchema.d.ts +2 -1
  91. package/dist/types/schemas/categories.d.ts +2 -0
  92. package/dist/types/schemas/colors.d.ts +2 -0
  93. package/dist/types/schemas/expenditure.d.ts +2 -0
  94. package/dist/types/schemas/income.d.ts +9 -0
  95. package/dist/types/schemas/index.d.ts +16 -1
  96. package/dist/types/schemas/model.d.ts +2 -0
  97. package/dist/types/schemas/news.d.ts +2 -0
  98. package/dist/types/schemas/order.d.ts +2 -0
  99. package/dist/types/schemas/page.d.ts +2 -0
  100. package/dist/types/schemas/promo.d.ts +2 -0
  101. package/dist/types/schemas/qna.d.ts +2 -0
  102. package/dist/types/schemas/rate.d.ts +2 -0
  103. package/dist/types/schemas/service.d.ts +2 -0
  104. package/dist/types/schemas/subTools.d.ts +2 -0
  105. package/dist/types/schemas/tools.d.ts +2 -0
  106. package/dist/types/untils/regex.d.ts +1 -0
  107. package/dist/types/validate/validate.d.ts +2 -2
  108. package/dist/vue.cjs.js +1 -0
  109. package/dist/vue.es.js +58 -0
  110. package/package.json +20 -12
  111. package/dist/DEPENDENCY-LICENSES.txt +0 -96
  112. package/dist/TabelData-CbLGhrj4.js +0 -2266
  113. package/dist/TabelData-DG4yH_Qq.cjs +0 -1
  114. package/dist/plugin/vue.cjs.js +0 -1
  115. package/dist/plugin/vue.es.js +0 -51
  116. package/dist/quill.snow-BmRPvQLR.cjs +0 -15
  117. package/dist/quill.snow-mC12o3kU.js +0 -6400
  118. package/dist/vue-pack.css +0 -1
@@ -0,0 +1,11 @@
1
+ import { CurrencyInputProps } from '../../../../configs/types';
2
+ type CurrencyEmit = {
3
+ (e: 'update:modelValue', value: number | null, key: string): void;
4
+ };
5
+ export declare function useCurrencyInput(props: CurrencyInputProps, emit: CurrencyEmit): {
6
+ formattedValue: import('vue').ComputedRef<string>;
7
+ currencySymbol: import('vue').ComputedRef<string>;
8
+ onInput: (event: Event) => void;
9
+ onBlur: () => void;
10
+ };
11
+ export {};
@@ -1,6 +1,8 @@
1
1
  export { default as ArrayObjectInput } from './ArrayObject.vue';
2
2
  export { default as ColorInput } from './ColorPicker.vue';
3
3
  export { default as SelectedOptions } from './ComboboxComponent.vue';
4
+ export { default as CurrencyInput } from './CurrencyInput.vue';
5
+ export { default as RateInput } from './RateInput.vue';
4
6
  export { default as DateInput } from './DateInput.vue';
5
7
  export { default as DateTimeInput } from './DateTimeInput.vue';
6
8
  export { default as EmailInput } from './EmailInput.vue';
@@ -14,6 +16,7 @@ export { default as ObjectInput } from './ObjectInput.vue';
14
16
  export { default as PasswordInput } from './PasswordInput.vue';
15
17
  export { default as TagInput } from './TagInput.vue';
16
18
  export { default as TextAreaInput } from './TextAreaInput.vue';
19
+ export { default as TelInput } from './TelInput.vue';
17
20
  export { default as TextAreaQuillInput } from './TextAreaQuill.vue';
18
21
  export { default as TextInput } from './TextInput.vue';
19
22
  export { default as TimeInput } from './TimeInput.vue';
@@ -1,7 +1,7 @@
1
1
  import { DataKeyConfig, Item, SubmitAuthOptionMap, Schema, XOR, DateOnly, TimeOnly, DateTimeString } from '../..';
2
2
  export declare const ImageTypes: readonly ["png", "jpg", "jpeg", "gif", "bmp", "webp", "heif", "heic", "tiff", "tif", "svg", "avif", "ico", "jfif"];
3
3
  export type ImageType = (typeof ImageTypes)[number];
4
- export declare const fieldTypes: readonly ["text", "email", "password", "number", "image", "color", "select", "arrayObject", "richText", "optionGroupSchema", "tag", "object", "url", "toggle", "date", "time", "dateTime", "imageArray", "file", "fileArray", "textArea"];
4
+ export declare const fieldTypes: readonly ["text", "email", "password", "number", "image", "color", "select", "arrayObject", "quillEditor", "optionGroupSchema", "tag", "object", "url", "toggle", "date", "time", "dateTime", "imageArray", "file", "fileArray", "textArea", "currency", "rate", "tel"];
5
5
  export declare const formDesign: readonly ["form", "news"];
6
6
  export type FieldType = (typeof fieldTypes)[number];
7
7
  export type FormDesign = (typeof formDesign)[number];
@@ -40,7 +40,7 @@ export interface TextField extends BaseField {
40
40
  type: 'text';
41
41
  placeholder?: string;
42
42
  validate?: {
43
- duplicate: (string | number)[] | boolean;
43
+ duplicate?: (string | number)[] | boolean;
44
44
  minLength?: number;
45
45
  maxLength?: number;
46
46
  pattern?: string;
@@ -65,6 +65,29 @@ export interface PasswordField extends BaseField {
65
65
  requireSpecialChar?: boolean;
66
66
  };
67
67
  }
68
+ export interface CurrencyField extends BaseField {
69
+ type: 'currency';
70
+ placeholder?: string;
71
+ validate?: {
72
+ min?: number;
73
+ max?: number;
74
+ };
75
+ }
76
+ export interface RateField extends BaseField {
77
+ type: 'rate';
78
+ validate?: {
79
+ min?: number;
80
+ max?: number;
81
+ };
82
+ }
83
+ export interface TelField extends BaseField {
84
+ type: 'tel';
85
+ placeholder?: string;
86
+ validate?: {
87
+ min?: number;
88
+ max?: number;
89
+ };
90
+ }
68
91
  export interface NumberField extends BaseField {
69
92
  type: 'number';
70
93
  placeholder?: string;
@@ -75,13 +98,36 @@ export interface NumberField extends BaseField {
75
98
  duplicate?: (string | number)[] | boolean;
76
99
  };
77
100
  }
78
- export interface RichTextField extends BaseField {
79
- type: 'richText';
101
+ export interface SeoFieldMapping {
102
+ sendSeo?: boolean;
103
+ title: string;
104
+ description: string;
105
+ news?: string;
106
+ slug?: string;
107
+ focusKeyword?: string;
108
+ tags?: string;
109
+ image?: string;
110
+ author?: string;
111
+ publishedAt?: string;
112
+ canonical?: string;
113
+ }
114
+ export interface SeoAnalysisResult {
115
+ score: number;
116
+ details: {
117
+ passed: boolean;
118
+ message: string;
119
+ label: string;
120
+ }[];
121
+ }
122
+ export interface QuillEditorField extends BaseField {
123
+ type: 'quillEditor';
80
124
  placeholder?: string;
81
125
  validate?: {
82
126
  minLength?: number;
83
127
  maxLength?: number;
84
128
  };
129
+ apiUploadImage?: string;
130
+ apiUploadVideo?: string;
85
131
  }
86
132
  export interface DateField extends BaseField {
87
133
  type: 'date';
@@ -15,7 +15,7 @@ export interface GlobalDefaultText {
15
15
  number: string;
16
16
  array: string;
17
17
  select: string;
18
- richText: string;
18
+ quillEditor: string;
19
19
  password: string;
20
20
  email: string;
21
21
  tag: string;
@@ -73,6 +73,7 @@ export interface GlobalDefaultText {
73
73
  deleteMany: string;
74
74
  create: string;
75
75
  update: string;
76
+ upload: string;
76
77
  display: string;
77
78
  next: string;
78
79
  prev: string;
@@ -1,4 +1,4 @@
1
- import { SupportedLanguage, Errors, Schema, SubmitAuthOptionMap, Item, DataKeyConfig, DateOnly, DateTimeString, TimeOnly, ImageType, XOR } from '../../index';
1
+ import { SupportedLanguage, Errors, Schema, SubmitAuthOptionMap, Item, DataKeyConfig, DateOnly, DateTimeString, TimeOnly, ImageType, XOR, SeoFieldMapping } from '../../index';
2
2
  export interface SchemaGroupRendererProps {
3
3
  id: string;
4
4
  label?: string;
@@ -69,6 +69,28 @@ export interface TextInputProps {
69
69
  };
70
70
  lang?: SupportedLanguage;
71
71
  }
72
+ export interface RateInputProps {
73
+ id?: string;
74
+ label: string;
75
+ modelValue?: number;
76
+ error?: string | string[];
77
+ disabled?: boolean;
78
+ validate?: {
79
+ min?: number;
80
+ max?: number;
81
+ };
82
+ lang?: SupportedLanguage;
83
+ }
84
+ export interface TelInputProps {
85
+ id?: string;
86
+ label: string;
87
+ placeholder?: string;
88
+ modelValue?: string;
89
+ error?: string | string[];
90
+ disabled?: boolean;
91
+ validate?: Record<string, any>;
92
+ lang?: SupportedLanguage;
93
+ }
72
94
  export interface DateInputProps {
73
95
  id?: string;
74
96
  label: string;
@@ -108,6 +130,19 @@ export interface DateTimeInputProps {
108
130
  };
109
131
  lang?: SupportedLanguage;
110
132
  }
133
+ export interface CurrencyInputProps {
134
+ id?: string;
135
+ label: string;
136
+ placeholder?: string;
137
+ modelValue?: number;
138
+ error?: string | string[];
139
+ disabled?: boolean;
140
+ validate?: {
141
+ min?: number;
142
+ max?: number;
143
+ };
144
+ lang?: SupportedLanguage;
145
+ }
111
146
  export interface NumberInputProps {
112
147
  id?: string;
113
148
  label: string;
@@ -187,7 +222,20 @@ export interface BaseInputProps {
187
222
  };
188
223
  lang?: SupportedLanguage;
189
224
  }
190
- export interface RichTextProps {
225
+ export interface QuillEditorProps {
226
+ id?: string;
227
+ label?: string;
228
+ placeholder?: string;
229
+ modelValue?: string;
230
+ error?: string | string[];
231
+ disabled?: boolean;
232
+ lang?: SupportedLanguage;
233
+ validate?: {
234
+ minLength?: number;
235
+ maxLength?: number;
236
+ };
237
+ }
238
+ export interface TextEdiorQuillProps {
191
239
  id?: string;
192
240
  label?: string;
193
241
  placeholder?: string;
@@ -199,6 +247,8 @@ export interface RichTextProps {
199
247
  minLength?: number;
200
248
  maxLength?: number;
201
249
  };
250
+ apiUploadImage?: string;
251
+ apiUploadVideo?: string;
202
252
  }
203
253
  export interface TextAreaProps {
204
254
  id?: string;
@@ -339,6 +389,7 @@ export interface FromModalProps {
339
389
  schema: Schema;
340
390
  isUpdate?: boolean;
341
391
  lang?: SupportedLanguage;
392
+ seo?: SeoFieldMapping;
342
393
  demo?: boolean;
343
394
  }
344
395
  export interface ColorPickerProps {
@@ -1,11 +1,12 @@
1
- import { TextField, ImageField, ColorField, EmailField, PasswordField, NumberField, SelectField, ArrayObjectField, OptionGroupField, RichTextField, TagField, UrlField, ToggleField, ImageArrayField, FileArrayField, ObjectField, TextAreaField, DateField, TimeField, DateTimeField, FileField, XOR } from '../../index';
2
- export type Field = TextField | ImageArrayField | NumberField | FileArrayField | ImageField | ColorField | SelectField | EmailField | PasswordField | ArrayObjectField | UrlField | ToggleField | DateField | ObjectField | TimeField | RichTextField | DateTimeField | TagField | FileField | TextAreaField | OptionGroupField;
1
+ import { TextField, ImageField, ColorField, EmailField, PasswordField, NumberField, SelectField, ArrayObjectField, OptionGroupField, QuillEditorField, TagField, UrlField, ToggleField, ImageArrayField, FileArrayField, ObjectField, TextAreaField, DateField, TimeField, DateTimeField, FileField, XOR, CurrencyField, RateField, TelField } from '../../index';
2
+ export type Field = TextField | ImageArrayField | NumberField | FileArrayField | ImageField | ColorField | SelectField | EmailField | PasswordField | ArrayObjectField | UrlField | ToggleField | DateField | ObjectField | TimeField | QuillEditorField | DateTimeField | TagField | FileField | TextAreaField | OptionGroupField | CurrencyField | RateField | TelField;
3
3
  export type Schema = Record<string, Field>;
4
4
  export type FormData = Record<string, any>;
5
5
  export type Errors = Record<string, any>;
6
6
  export type DataView = Record<string, string | dataProperty>;
7
7
  export interface dataProperty {
8
8
  valueKey: string;
9
+ type: 'image' | 'file' | 'url' | 'rate' | 'seo' | 'color' | 'date' | 'time' | 'dateTime' | 'text' | 'number' | 'email' | 'password' | 'currency' | 'textarea' | 'richtext' | 'select' | 'multiSelect' | 'boolean' | 'arrayObject' | 'arrayColor' | 'arrayImage' | 'arrayFile' | 'arrayUrl' | 'arrayNumber' | 'arrayText' | 'tag' | 'tel' | 'rate';
9
10
  connect?: XOR<{
10
11
  withDB: {
11
12
  DB_NAME: string;
@@ -1,5 +1,5 @@
1
1
  import { ZodType } from 'zod';
2
- import { DataView, Schema, FormDesign, SubmitAuthOptionMap, SupportedLanguage, XOR } from '../../index';
2
+ import { DataView, Schema, FormDesign, SubmitAuthOptionMap, SupportedLanguage, XOR, SeoFieldMapping } from '../../index';
3
3
  export interface BaseConfig<Item> {
4
4
  source: XOR<{
5
5
  DB_NAME: string;
@@ -30,8 +30,10 @@ export interface BaseConfig<Item> {
30
30
  justTabel?: boolean;
31
31
  lang?: SupportedLanguage;
32
32
  schema: FormSchema;
33
+ seoDisplay?: string;
33
34
  }
34
35
  export interface FormSchema {
36
+ SeoDisplay?: SeoFieldMapping;
35
37
  global?: Schema;
36
38
  display?: Schema;
37
39
  create?: Schema;
@@ -73,16 +75,6 @@ export interface TabelFeatureToggles {
73
75
  displayActive?: boolean;
74
76
  JustTabel?: boolean;
75
77
  }
76
- export interface TabelFeatureToggles {
77
- btnInfoActive?: boolean;
78
- searchQueryActive?: boolean;
79
- sortable?: boolean;
80
- createActive?: boolean;
81
- updateActive?: boolean;
82
- deleteActive?: boolean;
83
- deleteManyActive?: boolean;
84
- displayActive?: boolean;
85
- }
86
78
  export interface TabelManualControl {
87
79
  create?: boolean;
88
80
  update?: boolean;
@@ -0,0 +1,313 @@
1
+ export declare const newDemoData: {
2
+ admin: {
3
+ id: number;
4
+ username: string;
5
+ password: string;
6
+ token: null;
7
+ limitToken: null;
8
+ };
9
+ company: {
10
+ id: number;
11
+ name: string;
12
+ icon: string;
13
+ aboutUs: string;
14
+ aboutUsBrief: string;
15
+ vision: string;
16
+ mission: string;
17
+ termsAndConditions: string;
18
+ privacyPolicy: string;
19
+ warehouseAddress: string;
20
+ officeAddress: string;
21
+ officeGMap: string;
22
+ warehouseGMap: string;
23
+ phoneNumber: string;
24
+ email: string;
25
+ facebook: string;
26
+ twitter: string;
27
+ instagram: string;
28
+ linkedIn: null;
29
+ youtube: string;
30
+ shopee: string;
31
+ tiktok: string;
32
+ lazada: null;
33
+ tokoPedia: string;
34
+ createAt: Date;
35
+ updateAt: Date;
36
+ };
37
+ profil: {
38
+ id: number;
39
+ name: string;
40
+ photo: string;
41
+ bio: string;
42
+ createdAt: Date;
43
+ updatedAt: Date;
44
+ };
45
+ shippingPrice: {
46
+ id: number;
47
+ type: string;
48
+ coordinateX: number;
49
+ coordinateY: number;
50
+ price: number;
51
+ distance: number;
52
+ };
53
+ QandA: {
54
+ id: number;
55
+ category: any;
56
+ question: string;
57
+ answer: string;
58
+ createAt: Date;
59
+ updateAt: Date;
60
+ }[];
61
+ promo: {
62
+ id: number;
63
+ title: string;
64
+ slug: string;
65
+ keywords: string[];
66
+ description: string;
67
+ type: any;
68
+ image: string;
69
+ promoStartDate: Date;
70
+ promoEndDate: Date;
71
+ couponCode: string;
72
+ tags: string[];
73
+ createdAt: Date;
74
+ updatedAt: Date;
75
+ details: {
76
+ discountModel: any;
77
+ discount: number;
78
+ maximumDiscount: number | null;
79
+ minPrice: number;
80
+ minDay: null;
81
+ maxDistance: null;
82
+ id: number;
83
+ promoId: number;
84
+ } | {
85
+ discountModel: string;
86
+ discount: number;
87
+ maximumDiscount: null;
88
+ minPrice: number;
89
+ minDay: number;
90
+ maxDistance: null;
91
+ id: number;
92
+ promoId: number;
93
+ } | {
94
+ discountModel: string;
95
+ discount: number;
96
+ maximumDiscount: number;
97
+ minPrice: number;
98
+ minDay: null;
99
+ maxDistance: number;
100
+ id: number;
101
+ promoId: number;
102
+ };
103
+ }[];
104
+ news: {
105
+ id: number;
106
+ title: string;
107
+ slug: string;
108
+ news: string;
109
+ image: string;
110
+ altImage: string;
111
+ category: any;
112
+ author: string;
113
+ seo: {
114
+ metaTitle: string;
115
+ metaDescription: string;
116
+ keywords: string;
117
+ tag: string[];
118
+ };
119
+ seoScore: number;
120
+ source: {
121
+ category: any;
122
+ name: string;
123
+ author: string;
124
+ url: string | null;
125
+ identifier: string | null;
126
+ }[];
127
+ show: boolean;
128
+ orderCode: null;
129
+ createdAt: Date;
130
+ updatedAt: Date;
131
+ }[];
132
+ type: {
133
+ id: number;
134
+ name: string;
135
+ createAt: Date;
136
+ updateAt: Date;
137
+ }[];
138
+ model: {
139
+ id: number;
140
+ name: string;
141
+ createAt: Date;
142
+ updateAt: Date;
143
+ }[];
144
+ tools: {
145
+ id: number;
146
+ name: string;
147
+ image: string;
148
+ description: string;
149
+ price: number;
150
+ sizeX: number;
151
+ sizeY: number;
152
+ sizeZ: number;
153
+ unitOfMeasure: any;
154
+ dimensions: number;
155
+ modelId: any;
156
+ typeId: any;
157
+ createAt: Date;
158
+ updateAt: Date;
159
+ }[];
160
+ subTool: {
161
+ id: number;
162
+ name: string;
163
+ price: number;
164
+ description: string;
165
+ typeId: any;
166
+ modelId: any;
167
+ toolsId: any;
168
+ createAt: Date;
169
+ updateAt: Date;
170
+ }[];
171
+ subToolsImages: {
172
+ id: number;
173
+ image: string;
174
+ name: string;
175
+ subToolsId: number;
176
+ colors: string[] | null;
177
+ colorToolsId: any;
178
+ createAt: Date;
179
+ }[];
180
+ color: {
181
+ id: number;
182
+ name: string;
183
+ colors: string[];
184
+ options: number;
185
+ createAt: Date;
186
+ updateAt: Date;
187
+ }[];
188
+ pages: {
189
+ id: number;
190
+ name: string;
191
+ image: string;
192
+ slug: string;
193
+ description: string;
194
+ active: boolean;
195
+ createAt: Date;
196
+ updateAt: Date;
197
+ }[];
198
+ rateCustomerOrder: {
199
+ id: number;
200
+ nameCustomer: string;
201
+ photoCustomer: string;
202
+ rate: any;
203
+ message: string;
204
+ photoProject: string;
205
+ published: boolean;
206
+ newsPublished: boolean;
207
+ orderCode: string;
208
+ read: boolean;
209
+ createAt: Date;
210
+ updateAt: Date;
211
+ }[];
212
+ incomes: {
213
+ id: number;
214
+ orderId: number;
215
+ source: string;
216
+ image: string;
217
+ pay: number;
218
+ status: string;
219
+ currency: string;
220
+ note: string;
221
+ createdAt: Date;
222
+ updatedAt: Date;
223
+ }[];
224
+ expenditure: {
225
+ id: number;
226
+ pay: number;
227
+ note: string;
228
+ createdAt: Date;
229
+ updatedAt: Date;
230
+ }[];
231
+ services: {
232
+ id: number;
233
+ title: string;
234
+ image: string;
235
+ description: string;
236
+ createdAt: Date;
237
+ updatedAt: Date;
238
+ }[];
239
+ subscribe: {
240
+ id: number;
241
+ email: string;
242
+ number: string;
243
+ createAt: Date;
244
+ updatedAt: Date;
245
+ }[];
246
+ visitors: {
247
+ id: number;
248
+ pageId: any;
249
+ device: any;
250
+ ip: string;
251
+ userAgent: string;
252
+ createAt: Date;
253
+ }[];
254
+ cqs: {
255
+ id: number;
256
+ name: string;
257
+ email: string;
258
+ phone: string;
259
+ subject: string;
260
+ message: string;
261
+ reply: string | null;
262
+ published: boolean;
263
+ createdAt: Date;
264
+ updatedAt: Date;
265
+ }[];
266
+ orders: {
267
+ id: number;
268
+ orderCode: string;
269
+ firstName: string;
270
+ lastName: string;
271
+ address: string;
272
+ phone: string;
273
+ phoneCode: null;
274
+ phoneVerified: boolean;
275
+ totalPriceOrder: number;
276
+ totalPrice: number;
277
+ discountOrderAmount: number;
278
+ discountShippingAmount: number;
279
+ downPayment: number;
280
+ finalPayment: number;
281
+ shippingCost: number;
282
+ status: any;
283
+ eventDate: Date;
284
+ eventEnd: Date;
285
+ installationDate: Date;
286
+ demolitionDate: Date;
287
+ invoice: string;
288
+ promoShippingId: any;
289
+ promoDiscountId: any;
290
+ message: string;
291
+ additionalCharges: {
292
+ name: string;
293
+ price: number;
294
+ }[] | null;
295
+ read: boolean;
296
+ createAt: Date;
297
+ updateAt: Date;
298
+ }[];
299
+ orderTools: {
300
+ id: any;
301
+ orderId: number;
302
+ toolId: any;
303
+ quantity: number;
304
+ subTotal: number;
305
+ }[];
306
+ orderAccessories: {
307
+ id: number;
308
+ orderToolsId: any;
309
+ subToolId: any;
310
+ quantity: number;
311
+ subTotal: number;
312
+ }[];
313
+ };
@@ -1,2 +1,3 @@
1
1
  export * from './indexedDB';
2
2
  export * from './secureFetch';
3
+ export * from './demoData';
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -1,2 +1,3 @@
1
- import { Schema } from '..';
1
+ import { Schema, TabelDataProperty, Item } from '..';
2
2
  export declare const TestSchema: Schema;
3
+ export declare const newsSchema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,9 @@
1
+ import { Item, TabelDataProperty } from '../index';
2
+ export declare const incomeSchema: TabelDataProperty<Item>;
3
+ export declare const handleCustomActionIncome: (payload: {
4
+ key: string;
5
+ item: any;
6
+ }) => Promise<{
7
+ mode: string;
8
+ message: string;
9
+ }>;
@@ -1 +1,16 @@
1
- export * from './TestSchema';
1
+ import { Schema as ToolSchema } from './tools';
2
+ import { Schema as CategoriesSchema } from './categories';
3
+ import { Schema as ColorsSchema } from './colors';
4
+ import { Schema as SubToolSchema } from './subTools';
5
+ import { Schema as ModelSchema } from './model';
6
+ import { Schema as NewsSchema } from './news';
7
+ import { Schema as PromoSchema } from './promo';
8
+ import { Schema as QnASchema } from './qna';
9
+ import { Schema as PageSchema } from './page';
10
+ import { Schema as OrderSchema } from './order';
11
+ import { incomeSchema, handleCustomActionIncome } from './income';
12
+ import { Schema as CqSchema } from './CQ';
13
+ import { Schema as expenditureSchema } from './expenditure';
14
+ import { Schema as ServiceSchema } from './service';
15
+ import { Schema as RateSchema } from './rate';
16
+ export { PageSchema, ToolSchema, CategoriesSchema, handleCustomActionIncome, CqSchema, OrderSchema, incomeSchema, QnASchema, ColorsSchema, PromoSchema, SubToolSchema, ModelSchema, ServiceSchema, RateSchema, NewsSchema, expenditureSchema, };
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../configs';
2
+ export declare const Schema: TabelDataProperty<Item>;
@@ -0,0 +1,2 @@
1
+ import { Item, TabelDataProperty } from '../../src/configs';
2
+ export declare const Schema: TabelDataProperty<Item>;