nextjs-cms 0.5.9 → 0.5.11
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/api/axios/axiosInstance.d.ts +1 -1
- package/dist/api/axios/axiosInstance.js +8 -8
- package/dist/api/index.d.ts +855 -855
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +12 -12
- package/dist/api/lib/serverActions.d.ts +239 -239
- package/dist/api/lib/serverActions.d.ts.map +1 -1
- package/dist/api/lib/serverActions.js +834 -834
- package/dist/api/root.d.ts +828 -828
- package/dist/api/root.js +30 -30
- package/dist/api/routers/accountSettings.d.ts +60 -60
- package/dist/api/routers/accountSettings.js +108 -108
- package/dist/api/routers/admins.d.ts +105 -105
- package/dist/api/routers/admins.js +219 -219
- package/dist/api/routers/auth.d.ts +47 -47
- package/dist/api/routers/auth.js +25 -25
- package/dist/api/routers/categorySection.d.ts +103 -103
- package/dist/api/routers/categorySection.js +38 -38
- package/dist/api/routers/cmsSettings.d.ts +48 -48
- package/dist/api/routers/cmsSettings.js +51 -51
- package/dist/api/routers/cpanel.d.ts +83 -83
- package/dist/api/routers/cpanel.js +216 -216
- package/dist/api/routers/files.d.ts +47 -47
- package/dist/api/routers/files.js +23 -23
- package/dist/api/routers/gallery.d.ts +35 -35
- package/dist/api/routers/gallery.js +62 -62
- package/dist/api/routers/googleAnalytics.d.ts +30 -30
- package/dist/api/routers/googleAnalytics.js +7 -7
- package/dist/api/routers/hasItemsSection.d.ts +139 -139
- package/dist/api/routers/hasItemsSection.js +34 -34
- package/dist/api/routers/navigation.d.ts +51 -51
- package/dist/api/routers/navigation.js +11 -11
- package/dist/api/routers/simpleSection.d.ts +57 -57
- package/dist/api/routers/simpleSection.js +12 -12
- package/dist/api/trpc.d.ts +106 -106
- package/dist/api/trpc.js +72 -72
- package/dist/auth/axios/axiosInstance.d.ts +1 -1
- package/dist/auth/axios/axiosInstance.js +8 -8
- package/dist/auth/csrf.d.ts +29 -29
- package/dist/auth/csrf.js +76 -76
- package/dist/auth/hooks/index.d.ts +3 -3
- package/dist/auth/hooks/index.d.ts.map +1 -1
- package/dist/auth/hooks/index.js +3 -3
- package/dist/auth/hooks/useAxiosPrivate.d.ts +4 -4
- package/dist/auth/hooks/useAxiosPrivate.js +74 -74
- package/dist/auth/hooks/useRefreshToken.d.ts +6 -6
- package/dist/auth/hooks/useRefreshToken.js +79 -79
- package/dist/auth/index.d.ts +22 -22
- package/dist/auth/index.js +44 -44
- package/dist/auth/jwt.d.ts +5 -5
- package/dist/auth/jwt.js +25 -25
- package/dist/auth/lib/actions.d.ts +32 -32
- package/dist/auth/lib/actions.d.ts.map +1 -1
- package/dist/auth/lib/actions.js +209 -209
- package/dist/auth/lib/client.d.ts +3 -3
- package/dist/auth/lib/client.js +46 -46
- package/dist/auth/lib/index.d.ts +2 -2
- package/dist/auth/lib/index.d.ts.map +1 -1
- package/dist/auth/lib/index.js +2 -2
- package/dist/auth/react.d.ts +105 -105
- package/dist/auth/react.d.ts.map +1 -1
- package/dist/auth/react.js +347 -347
- package/dist/auth/trpc.d.ts +5 -5
- package/dist/auth/trpc.d.ts.map +1 -1
- package/dist/auth/trpc.js +81 -81
- package/dist/core/config/config-loader.d.ts +91 -91
- package/dist/core/config/config-loader.js +230 -230
- package/dist/core/config/index.d.ts +2 -2
- package/dist/core/config/index.d.ts.map +1 -1
- package/dist/core/config/index.js +1 -1
- package/dist/core/config/loader.d.ts +1 -1
- package/dist/core/config/loader.js +42 -42
- package/dist/core/db/index.d.ts +1 -1
- package/dist/core/db/index.d.ts.map +1 -1
- package/dist/core/db/index.js +1 -1
- package/dist/core/db/table-checker/DbTable.d.ts +5 -5
- package/dist/core/db/table-checker/DbTable.js +5 -5
- package/dist/core/db/table-checker/MysqlTable.d.ts +33 -33
- package/dist/core/db/table-checker/MysqlTable.d.ts.map +1 -1
- package/dist/core/db/table-checker/MysqlTable.js +94 -94
- package/dist/core/db/table-checker/index.d.ts +1 -1
- package/dist/core/db/table-checker/index.d.ts.map +1 -1
- package/dist/core/db/table-checker/index.js +1 -1
- package/dist/core/factories/FieldFactory.d.ts +123 -123
- package/dist/core/factories/FieldFactory.d.ts.map +1 -1
- package/dist/core/factories/FieldFactory.js +411 -411
- package/dist/core/factories/SectionFactory.d.ts +109 -109
- package/dist/core/factories/SectionFactory.d.ts.map +1 -1
- package/dist/core/factories/SectionFactory.js +415 -415
- package/dist/core/factories/index.d.ts +2 -2
- package/dist/core/factories/index.d.ts.map +1 -1
- package/dist/core/factories/index.js +2 -2
- package/dist/core/fields/checkbox.d.ts +62 -62
- package/dist/core/fields/checkbox.d.ts.map +1 -1
- package/dist/core/fields/checkbox.js +62 -62
- package/dist/core/fields/color.d.ts +83 -83
- package/dist/core/fields/color.d.ts.map +1 -1
- package/dist/core/fields/color.js +91 -91
- package/dist/core/fields/date.d.ts +99 -99
- package/dist/core/fields/date.d.ts.map +1 -1
- package/dist/core/fields/date.js +108 -108
- package/dist/core/fields/document.d.ts +179 -179
- package/dist/core/fields/document.d.ts.map +1 -1
- package/dist/core/fields/document.js +277 -277
- package/dist/core/fields/field-group.d.ts +17 -17
- package/dist/core/fields/field-group.d.ts.map +1 -1
- package/dist/core/fields/field-group.js +6 -6
- package/dist/core/fields/field.d.ts +125 -125
- package/dist/core/fields/field.d.ts.map +1 -1
- package/dist/core/fields/field.js +148 -148
- package/dist/core/fields/fileField.d.ts +14 -14
- package/dist/core/fields/fileField.d.ts.map +1 -1
- package/dist/core/fields/fileField.js +5 -5
- package/dist/core/fields/index.d.ts +64 -64
- package/dist/core/fields/index.d.ts.map +1 -1
- package/dist/core/fields/index.js +18 -18
- package/dist/core/fields/map.d.ts +166 -166
- package/dist/core/fields/map.d.ts.map +1 -1
- package/dist/core/fields/map.js +152 -152
- package/dist/core/fields/number.d.ts +185 -185
- package/dist/core/fields/number.d.ts.map +1 -1
- package/dist/core/fields/number.js +241 -241
- package/dist/core/fields/password.d.ts +108 -108
- package/dist/core/fields/password.d.ts.map +1 -1
- package/dist/core/fields/password.js +133 -133
- package/dist/core/fields/photo.d.ts +288 -288
- package/dist/core/fields/photo.d.ts.map +1 -1
- package/dist/core/fields/photo.js +410 -410
- package/dist/core/fields/richText.d.ts +294 -294
- package/dist/core/fields/richText.d.ts.map +1 -1
- package/dist/core/fields/richText.js +338 -338
- package/dist/core/fields/select.d.ts +365 -365
- package/dist/core/fields/select.d.ts.map +1 -1
- package/dist/core/fields/select.js +499 -499
- package/dist/core/fields/selectMultiple.d.ts +235 -235
- package/dist/core/fields/selectMultiple.d.ts.map +1 -1
- package/dist/core/fields/selectMultiple.js +417 -417
- package/dist/core/fields/tags.d.ts +130 -130
- package/dist/core/fields/tags.d.ts.map +1 -1
- package/dist/core/fields/tags.js +105 -105
- package/dist/core/fields/text.d.ts +135 -135
- package/dist/core/fields/text.d.ts.map +1 -1
- package/dist/core/fields/text.js +157 -157
- package/dist/core/fields/textArea.d.ts +106 -106
- package/dist/core/fields/textArea.d.ts.map +1 -1
- package/dist/core/fields/textArea.js +126 -126
- package/dist/core/fields/video.d.ts +147 -147
- package/dist/core/fields/video.d.ts.map +1 -1
- package/dist/core/fields/video.js +248 -248
- package/dist/core/helpers/entity.d.ts +7 -7
- package/dist/core/helpers/entity.js +27 -27
- package/dist/core/helpers/index.d.ts +4 -4
- package/dist/core/helpers/index.d.ts.map +1 -1
- package/dist/core/helpers/index.js +3 -3
- package/dist/core/index.d.ts +7 -7
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +7 -7
- package/dist/core/sections/category.d.ts +282 -282
- package/dist/core/sections/category.d.ts.map +1 -1
- package/dist/core/sections/category.js +147 -147
- package/dist/core/sections/hasItems.d.ts +631 -631
- package/dist/core/sections/hasItems.d.ts.map +1 -1
- package/dist/core/sections/hasItems.js +144 -144
- package/dist/core/sections/index.d.ts +4 -4
- package/dist/core/sections/index.d.ts.map +1 -1
- package/dist/core/sections/index.js +4 -4
- package/dist/core/sections/section.d.ts +225 -225
- package/dist/core/sections/section.d.ts.map +1 -1
- package/dist/core/sections/section.js +341 -341
- package/dist/core/sections/simple.d.ts +98 -98
- package/dist/core/sections/simple.d.ts.map +1 -1
- package/dist/core/sections/simple.js +95 -95
- package/dist/core/security/dom.d.ts +10 -10
- package/dist/core/security/dom.js +92 -92
- package/dist/core/submit/ItemEditSubmit.d.ts +75 -75
- package/dist/core/submit/ItemEditSubmit.js +186 -186
- package/dist/core/submit/NewItemSubmit.d.ts +13 -13
- package/dist/core/submit/NewItemSubmit.js +93 -93
- package/dist/core/submit/SimpleSectionSubmit.d.ts +12 -12
- package/dist/core/submit/SimpleSectionSubmit.js +93 -93
- package/dist/core/submit/index.d.ts +4 -4
- package/dist/core/submit/index.js +4 -4
- package/dist/core/submit/submit.d.ts +115 -115
- package/dist/core/submit/submit.js +479 -479
- package/dist/core/types/index.d.ts +279 -279
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js +1 -1
- package/dist/db/client.d.ts +8 -8
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +19 -19
- package/dist/db/config.d.ts +5 -5
- package/dist/db/config.js +22 -22
- package/dist/db/drizzle.config.d.ts +5 -5
- package/dist/db/drizzle.config.js +18 -18
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.js +3 -3
- package/dist/db/schema.d.ts +638 -638
- package/dist/db/schema.js +73 -73
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/index.d.ts +2 -2
- package/dist/translations/index.js +15 -15
- package/dist/utils/CpanelApi.d.ts +24 -24
- package/dist/utils/CpanelApi.js +64 -64
- package/dist/utils/constants.d.ts +13 -13
- package/dist/utils/constants.js +61 -61
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +4 -4
- package/dist/utils/utils.d.ts +59 -59
- package/dist/utils/utils.js +132 -132
- package/dist/validators/checkbox.d.ts +3 -3
- package/dist/validators/checkbox.d.ts.map +1 -1
- package/dist/validators/checkbox.js +12 -12
- package/dist/validators/color.d.ts +3 -3
- package/dist/validators/color.d.ts.map +1 -1
- package/dist/validators/color.js +7 -7
- package/dist/validators/date.d.ts +3 -3
- package/dist/validators/date.d.ts.map +1 -1
- package/dist/validators/date.js +5 -5
- package/dist/validators/document.d.ts +3 -3
- package/dist/validators/document.d.ts.map +1 -1
- package/dist/validators/document.js +57 -57
- package/dist/validators/index.d.ts +14 -14
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +14 -14
- package/dist/validators/map.d.ts +3 -3
- package/dist/validators/map.d.ts.map +1 -1
- package/dist/validators/map.js +5 -5
- package/dist/validators/number.d.ts +3 -3
- package/dist/validators/number.d.ts.map +1 -1
- package/dist/validators/number.js +20 -20
- package/dist/validators/password.d.ts +3 -3
- package/dist/validators/password.d.ts.map +1 -1
- package/dist/validators/password.js +11 -11
- package/dist/validators/photo.d.ts +3 -3
- package/dist/validators/photo.d.ts.map +1 -1
- package/dist/validators/photo.js +100 -100
- package/dist/validators/richText.d.ts +3 -3
- package/dist/validators/richText.d.ts.map +1 -1
- package/dist/validators/richText.js +8 -8
- package/dist/validators/select-multiple.d.ts +9 -9
- package/dist/validators/select-multiple.d.ts.map +1 -1
- package/dist/validators/select-multiple.js +20 -20
- package/dist/validators/select.d.ts +3 -3
- package/dist/validators/select.d.ts.map +1 -1
- package/dist/validators/select.js +5 -5
- package/dist/validators/text.d.ts +3 -3
- package/dist/validators/text.d.ts.map +1 -1
- package/dist/validators/text.js +7 -7
- package/dist/validators/textarea.d.ts +3 -3
- package/dist/validators/textarea.d.ts.map +1 -1
- package/dist/validators/textarea.js +7 -7
- package/dist/validators/video.d.ts +3 -3
- package/dist/validators/video.d.ts.map +1 -1
- package/dist/validators/video.js +57 -57
- package/package.json +4 -5
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
export { TextField, textField } from
|
|
2
|
-
export type { TextFieldClientConfig, TextFieldConfig } from
|
|
3
|
-
export { PasswordField, passwordField } from
|
|
4
|
-
export type { PasswordFieldClientConfig, PasswordFieldConfig } from
|
|
5
|
-
export { TextAreaField, textAreaField } from
|
|
6
|
-
export type { TextAreaFieldClientConfig, TextAreaFieldConfig } from
|
|
7
|
-
export { NumberField, numberField } from
|
|
8
|
-
export type { NumberFieldClientConfig, NumberFieldConfig as NumberFieldConfigType } from
|
|
9
|
-
export { TagsField, tagsField } from
|
|
10
|
-
export type { TagsFieldClientConfig, TagsFieldConfig } from
|
|
11
|
-
export { PhotoField, photoField } from
|
|
12
|
-
export type { PhotoFieldClientConfig, PhotoFieldConfig as PhotoFieldConfigType } from
|
|
13
|
-
export { VideoField, videoField } from
|
|
14
|
-
export type { VideoFieldClientConfig, VideoFieldConfig } from
|
|
15
|
-
export { CheckboxField, checkboxField } from
|
|
16
|
-
export type { CheckboxFieldClientConfig, CheckboxFieldConfig } from
|
|
17
|
-
export { SelectField, selectField } from
|
|
18
|
-
export type { SelectFieldClientConfig, SelectFieldConfigType, SelectOption } from
|
|
19
|
-
export { SelectMultipleField, selectMultipleField } from
|
|
20
|
-
export type { SelectMultipleFieldClientConfig, SelectMultipleFieldConfigType } from
|
|
21
|
-
export { DocumentField, documentField } from
|
|
22
|
-
export type { DocumentFieldClientConfig, DocumentFieldConfig as DocumentFieldConfigType } from
|
|
23
|
-
export { MapField, mapField } from
|
|
24
|
-
export type { MapFieldClientConfig, MapFieldConfig } from
|
|
25
|
-
export { RichTextField, richTextField } from
|
|
26
|
-
export type { RichTextFieldClientConfig, RichTextFieldConfig as RichTextFieldConfigType } from
|
|
27
|
-
export { DateField, dateField } from
|
|
28
|
-
export type { DateFieldClientConfig, DateFieldConfig } from
|
|
29
|
-
export { ColorField, colorField } from
|
|
30
|
-
export type { ColorFieldClientConfig, ColorFieldConfig } from
|
|
31
|
-
export { Field } from
|
|
32
|
-
export type { BaseFieldConfig, FieldClientConfig } from
|
|
33
|
-
export { FileField } from
|
|
34
|
-
export { fieldGroup } from
|
|
35
|
-
export type { FieldGroup, FieldGroupOptions, FieldGroupConfig } from
|
|
36
|
-
import type { TextFieldConfig } from
|
|
37
|
-
import type { NumberFieldConfig } from
|
|
38
|
-
import type { TextAreaFieldConfig } from
|
|
39
|
-
import type { TagsFieldConfig } from
|
|
40
|
-
import type { CheckboxFieldConfig } from
|
|
41
|
-
import type { RichTextFieldConfig } from
|
|
42
|
-
import type { PasswordFieldConfig } from
|
|
43
|
-
import type { PhotoFieldConfig } from
|
|
44
|
-
import type { VideoFieldConfig } from
|
|
45
|
-
import type { SelectFieldConfigType } from
|
|
46
|
-
import type { SelectMultipleFieldConfigType } from
|
|
47
|
-
import type { DocumentFieldConfig } from
|
|
48
|
-
import type { MapFieldConfig } from
|
|
49
|
-
import type { DateFieldConfig } from
|
|
50
|
-
import type { ColorFieldConfig } from
|
|
51
|
-
/**
|
|
52
|
-
* Union type of all field config types
|
|
53
|
-
* This allows type-safe handling of field configs
|
|
54
|
-
*
|
|
55
|
-
* Each field config has a build() method that creates a Field instance.
|
|
56
|
-
* Use the build() method directly on the config: `fieldConfig.build()`
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```typescript
|
|
60
|
-
* const textConfig = textField({ name: 'title', label: 'Title' })
|
|
61
|
-
* const textInstance = textConfig.build() // Direct build() call
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
export type FieldConfig = TextFieldConfig | NumberFieldConfig | TextAreaFieldConfig | TagsFieldConfig | CheckboxFieldConfig | RichTextFieldConfig | PasswordFieldConfig | PhotoFieldConfig | VideoFieldConfig | SelectFieldConfigType | SelectMultipleFieldConfigType | DocumentFieldConfig | MapFieldConfig | DateFieldConfig | ColorFieldConfig;
|
|
1
|
+
export { TextField, textField } from './text.js';
|
|
2
|
+
export type { TextFieldClientConfig, TextFieldConfig } from './text.js';
|
|
3
|
+
export { PasswordField, passwordField } from './password.js';
|
|
4
|
+
export type { PasswordFieldClientConfig, PasswordFieldConfig } from './password.js';
|
|
5
|
+
export { TextAreaField, textAreaField } from './textArea.js';
|
|
6
|
+
export type { TextAreaFieldClientConfig, TextAreaFieldConfig } from './textArea.js';
|
|
7
|
+
export { NumberField, numberField } from './number.js';
|
|
8
|
+
export type { NumberFieldClientConfig, NumberFieldConfig as NumberFieldConfigType } from './number.js';
|
|
9
|
+
export { TagsField, tagsField } from './tags.js';
|
|
10
|
+
export type { TagsFieldClientConfig, TagsFieldConfig } from './tags.js';
|
|
11
|
+
export { PhotoField, photoField } from './photo.js';
|
|
12
|
+
export type { PhotoFieldClientConfig, PhotoFieldConfig as PhotoFieldConfigType } from './photo.js';
|
|
13
|
+
export { VideoField, videoField } from './video.js';
|
|
14
|
+
export type { VideoFieldClientConfig, VideoFieldConfig } from './video.js';
|
|
15
|
+
export { CheckboxField, checkboxField } from './checkbox.js';
|
|
16
|
+
export type { CheckboxFieldClientConfig, CheckboxFieldConfig } from './checkbox.js';
|
|
17
|
+
export { SelectField, selectField } from './select.js';
|
|
18
|
+
export type { SelectFieldClientConfig, SelectFieldConfigType, SelectOption } from './select.js';
|
|
19
|
+
export { SelectMultipleField, selectMultipleField } from './selectMultiple.js';
|
|
20
|
+
export type { SelectMultipleFieldClientConfig, SelectMultipleFieldConfigType } from './selectMultiple.js';
|
|
21
|
+
export { DocumentField, documentField } from './document.js';
|
|
22
|
+
export type { DocumentFieldClientConfig, DocumentFieldConfig as DocumentFieldConfigType } from './document.js';
|
|
23
|
+
export { MapField, mapField } from './map.js';
|
|
24
|
+
export type { MapFieldClientConfig, MapFieldConfig } from './map.js';
|
|
25
|
+
export { RichTextField, richTextField } from './richText.js';
|
|
26
|
+
export type { RichTextFieldClientConfig, RichTextFieldConfig as RichTextFieldConfigType } from './richText.js';
|
|
27
|
+
export { DateField, dateField } from './date.js';
|
|
28
|
+
export type { DateFieldClientConfig, DateFieldConfig } from './date.js';
|
|
29
|
+
export { ColorField, colorField } from './color.js';
|
|
30
|
+
export type { ColorFieldClientConfig, ColorFieldConfig } from './color.js';
|
|
31
|
+
export { Field } from './field.js';
|
|
32
|
+
export type { BaseFieldConfig, FieldClientConfig } from './field.js';
|
|
33
|
+
export { FileField } from './fileField.js';
|
|
34
|
+
export { fieldGroup } from './field-group.js';
|
|
35
|
+
export type { FieldGroup, FieldGroupOptions, FieldGroupConfig } from './field-group.js';
|
|
36
|
+
import type { TextFieldConfig } from './text.js';
|
|
37
|
+
import type { NumberFieldConfig } from './number.js';
|
|
38
|
+
import type { TextAreaFieldConfig } from './textArea.js';
|
|
39
|
+
import type { TagsFieldConfig } from './tags.js';
|
|
40
|
+
import type { CheckboxFieldConfig } from './checkbox.js';
|
|
41
|
+
import type { RichTextFieldConfig } from './richText.js';
|
|
42
|
+
import type { PasswordFieldConfig } from './password.js';
|
|
43
|
+
import type { PhotoFieldConfig } from './photo.js';
|
|
44
|
+
import type { VideoFieldConfig } from './video.js';
|
|
45
|
+
import type { SelectFieldConfigType } from './select.js';
|
|
46
|
+
import type { SelectMultipleFieldConfigType } from './selectMultiple.js';
|
|
47
|
+
import type { DocumentFieldConfig } from './document.js';
|
|
48
|
+
import type { MapFieldConfig } from './map.js';
|
|
49
|
+
import type { DateFieldConfig } from './date.js';
|
|
50
|
+
import type { ColorFieldConfig } from './color.js';
|
|
51
|
+
/**
|
|
52
|
+
* Union type of all field config types
|
|
53
|
+
* This allows type-safe handling of field configs
|
|
54
|
+
*
|
|
55
|
+
* Each field config has a build() method that creates a Field instance.
|
|
56
|
+
* Use the build() method directly on the config: `fieldConfig.build()`
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```typescript
|
|
60
|
+
* const textConfig = textField({ name: 'title', label: 'Title' })
|
|
61
|
+
* const textInstance = textConfig.build() // Direct build() call
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export type FieldConfig = TextFieldConfig | NumberFieldConfig | TextAreaFieldConfig | TagsFieldConfig | CheckboxFieldConfig | RichTextFieldConfig | PasswordFieldConfig | PhotoFieldConfig | VideoFieldConfig | SelectFieldConfigType | SelectMultipleFieldConfigType | DocumentFieldConfig | MapFieldConfig | DateFieldConfig | ColorFieldConfig;
|
|
65
65
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAChD,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAEvE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC5D,YAAY,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAEnF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC5D,YAAY,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAEnF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACtD,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEtG,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAChD,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACnD,YAAY,EAAE,sBAAsB,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAElG,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACnD,YAAY,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MA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BAAgB,CAAA"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { TextField, textField } from
|
|
2
|
-
export { PasswordField, passwordField } from
|
|
3
|
-
export { TextAreaField, textAreaField } from
|
|
4
|
-
export { NumberField, numberField } from
|
|
5
|
-
export { TagsField, tagsField } from
|
|
6
|
-
export { PhotoField, photoField } from
|
|
7
|
-
export { VideoField, videoField } from
|
|
8
|
-
export { CheckboxField, checkboxField } from
|
|
9
|
-
export { SelectField, selectField } from
|
|
10
|
-
export { SelectMultipleField, selectMultipleField } from
|
|
11
|
-
export { DocumentField, documentField } from
|
|
12
|
-
export { MapField, mapField } from
|
|
13
|
-
export { RichTextField, richTextField } from
|
|
14
|
-
export { DateField, dateField } from
|
|
15
|
-
export { ColorField, colorField } from
|
|
16
|
-
export { Field } from
|
|
17
|
-
export { FileField } from
|
|
18
|
-
export { fieldGroup } from
|
|
1
|
+
export { TextField, textField } from './text.js';
|
|
2
|
+
export { PasswordField, passwordField } from './password.js';
|
|
3
|
+
export { TextAreaField, textAreaField } from './textArea.js';
|
|
4
|
+
export { NumberField, numberField } from './number.js';
|
|
5
|
+
export { TagsField, tagsField } from './tags.js';
|
|
6
|
+
export { PhotoField, photoField } from './photo.js';
|
|
7
|
+
export { VideoField, videoField } from './video.js';
|
|
8
|
+
export { CheckboxField, checkboxField } from './checkbox.js';
|
|
9
|
+
export { SelectField, selectField } from './select.js';
|
|
10
|
+
export { SelectMultipleField, selectMultipleField } from './selectMultiple.js';
|
|
11
|
+
export { DocumentField, documentField } from './document.js';
|
|
12
|
+
export { MapField, mapField } from './map.js';
|
|
13
|
+
export { RichTextField, richTextField } from './richText.js';
|
|
14
|
+
export { DateField, dateField } from './date.js';
|
|
15
|
+
export { ColorField, colorField } from './color.js';
|
|
16
|
+
export { Field } from './field.js';
|
|
17
|
+
export { FileField } from './fileField.js';
|
|
18
|
+
export { fieldGroup } from './field-group.js';
|
|
@@ -1,167 +1,167 @@
|
|
|
1
|
-
import type { BaseFieldConfig } from
|
|
2
|
-
import { Field } from
|
|
3
|
-
import { entityKind } from
|
|
4
|
-
import * as z from 'zod';
|
|
5
|
-
declare const configSchema: z.ZodObject<{
|
|
6
|
-
center: z.ZodOptional<z.ZodObject<{
|
|
7
|
-
lat: z.ZodNumber;
|
|
8
|
-
lng: z.ZodNumber;
|
|
9
|
-
}, z.core.$strict>>;
|
|
10
|
-
/**
|
|
11
|
-
* The default value of the field.
|
|
12
|
-
* If set, the field will be pre-populated with this value when the form is loaded.
|
|
13
|
-
* If `adminGenerated` is not true, the field will be included when submitting the form with this value.
|
|
14
|
-
*/
|
|
15
|
-
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
16
|
-
lat: z.ZodNumber;
|
|
17
|
-
lng: z.ZodNumber;
|
|
18
|
-
}, z.core.$strict>>;
|
|
19
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
minZoom: z.ZodOptional<z.ZodNumber>;
|
|
21
|
-
latLngBounds: z.ZodOptional<z.ZodObject<{
|
|
22
|
-
north: z.ZodNumber;
|
|
23
|
-
south: z.ZodNumber;
|
|
24
|
-
west: z.ZodNumber;
|
|
25
|
-
east: z.ZodNumber;
|
|
26
|
-
}, z.core.$strict>>;
|
|
27
|
-
}, z.core.$strict>;
|
|
28
|
-
type Config = z.infer<typeof configSchema>;
|
|
29
|
-
export declare class MapField extends Field<'map', Config> {
|
|
30
|
-
static readonly [entityKind]: string;
|
|
31
|
-
/**
|
|
32
|
-
* The value of the map field is an object with `lat` and `lng` properties
|
|
33
|
-
*/
|
|
34
|
-
value: {
|
|
35
|
-
lat: number;
|
|
36
|
-
lng: number;
|
|
37
|
-
} | undefined;
|
|
38
|
-
private readonly _defaultValue;
|
|
39
|
-
zoom: number;
|
|
40
|
-
minZoom: number;
|
|
41
|
-
latLngBounds: {
|
|
42
|
-
north: number;
|
|
43
|
-
south: number;
|
|
44
|
-
west: number;
|
|
45
|
-
east: number;
|
|
46
|
-
};
|
|
47
|
-
center: {
|
|
48
|
-
lat: number;
|
|
49
|
-
lng: number;
|
|
50
|
-
};
|
|
51
|
-
constructor(config: BaseFieldConfig<Config>);
|
|
52
|
-
/**
|
|
53
|
-
* Get the value of the field as a string
|
|
54
|
-
*/
|
|
55
|
-
getValue(): string;
|
|
56
|
-
exportForClient(): {
|
|
57
|
-
zoom: number;
|
|
58
|
-
minZoom: number;
|
|
59
|
-
center: {
|
|
60
|
-
lat: number;
|
|
61
|
-
lng: number;
|
|
62
|
-
};
|
|
63
|
-
latLngBounds: {
|
|
64
|
-
north: number;
|
|
65
|
-
south: number;
|
|
66
|
-
west: number;
|
|
67
|
-
east: number;
|
|
68
|
-
};
|
|
69
|
-
value: {
|
|
70
|
-
lat: number;
|
|
71
|
-
lng: number;
|
|
72
|
-
} | undefined;
|
|
73
|
-
type: "map";
|
|
74
|
-
name: string;
|
|
75
|
-
label: string;
|
|
76
|
-
required: boolean;
|
|
77
|
-
conditionalFields: import("../types.js").ConditionalField[];
|
|
78
|
-
readonly: boolean;
|
|
79
|
-
defaultValue: any;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Set the value of the field from a string
|
|
83
|
-
* @param value
|
|
84
|
-
*/
|
|
85
|
-
setValue(value: string): void;
|
|
86
|
-
checkRequired(): void;
|
|
87
|
-
hasSqlNameAndValue(): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Prepare the field for submission
|
|
90
|
-
*/
|
|
91
|
-
prepareForSubmission(): Promise<void>;
|
|
92
|
-
}
|
|
93
|
-
export type MapFieldClientConfig = ReturnType<MapField['exportForClient']>;
|
|
94
|
-
declare const optionsSchema: z.ZodObject<{
|
|
95
|
-
center: z.ZodOptional<z.ZodObject<{
|
|
96
|
-
lat: z.ZodNumber;
|
|
97
|
-
lng: z.ZodNumber;
|
|
98
|
-
}, z.core.$strict>>;
|
|
99
|
-
/**
|
|
100
|
-
* The default value of the field.
|
|
101
|
-
* If set, the field will be pre-populated with this value when the form is loaded.
|
|
102
|
-
* If `adminGenerated` is not true, the field will be included when submitting the form with this value.
|
|
103
|
-
*/
|
|
104
|
-
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
105
|
-
lat: z.ZodNumber;
|
|
106
|
-
lng: z.ZodNumber;
|
|
107
|
-
}, z.core.$strict>>;
|
|
108
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
109
|
-
minZoom: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
latLngBounds: z.ZodOptional<z.ZodObject<{
|
|
111
|
-
north: z.ZodNumber;
|
|
112
|
-
south: z.ZodNumber;
|
|
113
|
-
west: z.ZodNumber;
|
|
114
|
-
east: z.ZodNumber;
|
|
115
|
-
}, z.core.$strict>>;
|
|
116
|
-
name: z.ZodString;
|
|
117
|
-
label: z.ZodOptional<z.ZodString>;
|
|
118
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
120
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types.js").ConditionalRule, import("../types.js").ConditionalRule>>>;
|
|
121
|
-
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
122
|
-
}, z.core.$strict>;
|
|
123
|
-
declare const mapFieldConfigSchema: z.ZodObject<{
|
|
124
|
-
type: z.ZodLiteral<"map">;
|
|
125
|
-
build: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodCustom<MapField, MapField>>;
|
|
126
|
-
center: z.ZodOptional<z.ZodObject<{
|
|
127
|
-
lat: z.ZodNumber;
|
|
128
|
-
lng: z.ZodNumber;
|
|
129
|
-
}, z.core.$strict>>;
|
|
130
|
-
/**
|
|
131
|
-
* The default value of the field.
|
|
132
|
-
* If set, the field will be pre-populated with this value when the form is loaded.
|
|
133
|
-
* If `adminGenerated` is not true, the field will be included when submitting the form with this value.
|
|
134
|
-
*/
|
|
135
|
-
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
136
|
-
lat: z.ZodNumber;
|
|
137
|
-
lng: z.ZodNumber;
|
|
138
|
-
}, z.core.$strict>>;
|
|
139
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
140
|
-
minZoom: z.ZodOptional<z.ZodNumber>;
|
|
141
|
-
latLngBounds: z.ZodOptional<z.ZodObject<{
|
|
142
|
-
north: z.ZodNumber;
|
|
143
|
-
south: z.ZodNumber;
|
|
144
|
-
west: z.ZodNumber;
|
|
145
|
-
east: z.ZodNumber;
|
|
146
|
-
}, z.core.$strict>>;
|
|
147
|
-
name: z.ZodString;
|
|
148
|
-
label: z.ZodOptional<z.ZodString>;
|
|
149
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
151
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types.js").ConditionalRule, import("../types.js").ConditionalRule>>>;
|
|
152
|
-
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
153
|
-
}, z.core.$strict>;
|
|
154
|
-
/**
|
|
155
|
-
* Map field configuration type
|
|
156
|
-
* This is a plain object that can be serialized and used anywhere
|
|
157
|
-
* The build() method allows creating a MapField instance when needed
|
|
158
|
-
*/
|
|
159
|
-
export type MapFieldConfig = z.infer<typeof mapFieldConfigSchema>;
|
|
160
|
-
/**
|
|
161
|
-
* Helper function to create a map field configuration
|
|
162
|
-
* Returns a config object with a build() method that can be serialized and used anywhere
|
|
163
|
-
* @param field
|
|
164
|
-
*/
|
|
165
|
-
export declare function mapField(field: z.infer<typeof optionsSchema>): MapFieldConfig;
|
|
166
|
-
export {};
|
|
1
|
+
import type { BaseFieldConfig } from './field.js';
|
|
2
|
+
import { Field } from './field.js';
|
|
3
|
+
import { entityKind } from '../helpers/index.js';
|
|
4
|
+
import * as z from 'zod';
|
|
5
|
+
declare const configSchema: z.ZodObject<{
|
|
6
|
+
center: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
lat: z.ZodNumber;
|
|
8
|
+
lng: z.ZodNumber;
|
|
9
|
+
}, z.core.$strict>>;
|
|
10
|
+
/**
|
|
11
|
+
* The default value of the field.
|
|
12
|
+
* If set, the field will be pre-populated with this value when the form is loaded.
|
|
13
|
+
* If `adminGenerated` is not true, the field will be included when submitting the form with this value.
|
|
14
|
+
*/
|
|
15
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
lat: z.ZodNumber;
|
|
17
|
+
lng: z.ZodNumber;
|
|
18
|
+
}, z.core.$strict>>;
|
|
19
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
minZoom: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
latLngBounds: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
north: z.ZodNumber;
|
|
23
|
+
south: z.ZodNumber;
|
|
24
|
+
west: z.ZodNumber;
|
|
25
|
+
east: z.ZodNumber;
|
|
26
|
+
}, z.core.$strict>>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
type Config = z.infer<typeof configSchema>;
|
|
29
|
+
export declare class MapField extends Field<'map', Config> {
|
|
30
|
+
static readonly [entityKind]: string;
|
|
31
|
+
/**
|
|
32
|
+
* The value of the map field is an object with `lat` and `lng` properties
|
|
33
|
+
*/
|
|
34
|
+
value: {
|
|
35
|
+
lat: number;
|
|
36
|
+
lng: number;
|
|
37
|
+
} | undefined;
|
|
38
|
+
private readonly _defaultValue;
|
|
39
|
+
zoom: number;
|
|
40
|
+
minZoom: number;
|
|
41
|
+
latLngBounds: {
|
|
42
|
+
north: number;
|
|
43
|
+
south: number;
|
|
44
|
+
west: number;
|
|
45
|
+
east: number;
|
|
46
|
+
};
|
|
47
|
+
center: {
|
|
48
|
+
lat: number;
|
|
49
|
+
lng: number;
|
|
50
|
+
};
|
|
51
|
+
constructor(config: BaseFieldConfig<Config>);
|
|
52
|
+
/**
|
|
53
|
+
* Get the value of the field as a string
|
|
54
|
+
*/
|
|
55
|
+
getValue(): string;
|
|
56
|
+
exportForClient(): {
|
|
57
|
+
zoom: number;
|
|
58
|
+
minZoom: number;
|
|
59
|
+
center: {
|
|
60
|
+
lat: number;
|
|
61
|
+
lng: number;
|
|
62
|
+
};
|
|
63
|
+
latLngBounds: {
|
|
64
|
+
north: number;
|
|
65
|
+
south: number;
|
|
66
|
+
west: number;
|
|
67
|
+
east: number;
|
|
68
|
+
};
|
|
69
|
+
value: {
|
|
70
|
+
lat: number;
|
|
71
|
+
lng: number;
|
|
72
|
+
} | undefined;
|
|
73
|
+
type: "map";
|
|
74
|
+
name: string;
|
|
75
|
+
label: string;
|
|
76
|
+
required: boolean;
|
|
77
|
+
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
78
|
+
readonly: boolean;
|
|
79
|
+
defaultValue: any;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Set the value of the field from a string
|
|
83
|
+
* @param value
|
|
84
|
+
*/
|
|
85
|
+
setValue(value: string): void;
|
|
86
|
+
checkRequired(): void;
|
|
87
|
+
hasSqlNameAndValue(): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Prepare the field for submission
|
|
90
|
+
*/
|
|
91
|
+
prepareForSubmission(): Promise<void>;
|
|
92
|
+
}
|
|
93
|
+
export type MapFieldClientConfig = ReturnType<MapField['exportForClient']>;
|
|
94
|
+
declare const optionsSchema: z.ZodObject<{
|
|
95
|
+
center: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
lat: z.ZodNumber;
|
|
97
|
+
lng: z.ZodNumber;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
/**
|
|
100
|
+
* The default value of the field.
|
|
101
|
+
* If set, the field will be pre-populated with this value when the form is loaded.
|
|
102
|
+
* If `adminGenerated` is not true, the field will be included when submitting the form with this value.
|
|
103
|
+
*/
|
|
104
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
lat: z.ZodNumber;
|
|
106
|
+
lng: z.ZodNumber;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
minZoom: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
latLngBounds: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
north: z.ZodNumber;
|
|
112
|
+
south: z.ZodNumber;
|
|
113
|
+
west: z.ZodNumber;
|
|
114
|
+
east: z.ZodNumber;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
label: z.ZodOptional<z.ZodString>;
|
|
118
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
121
|
+
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
122
|
+
}, z.core.$strict>;
|
|
123
|
+
declare const mapFieldConfigSchema: z.ZodObject<{
|
|
124
|
+
type: z.ZodLiteral<"map">;
|
|
125
|
+
build: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodCustom<MapField, MapField>>;
|
|
126
|
+
center: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
lat: z.ZodNumber;
|
|
128
|
+
lng: z.ZodNumber;
|
|
129
|
+
}, z.core.$strict>>;
|
|
130
|
+
/**
|
|
131
|
+
* The default value of the field.
|
|
132
|
+
* If set, the field will be pre-populated with this value when the form is loaded.
|
|
133
|
+
* If `adminGenerated` is not true, the field will be included when submitting the form with this value.
|
|
134
|
+
*/
|
|
135
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
lat: z.ZodNumber;
|
|
137
|
+
lng: z.ZodNumber;
|
|
138
|
+
}, z.core.$strict>>;
|
|
139
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
minZoom: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
latLngBounds: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
north: z.ZodNumber;
|
|
143
|
+
south: z.ZodNumber;
|
|
144
|
+
west: z.ZodNumber;
|
|
145
|
+
east: z.ZodNumber;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
label: z.ZodOptional<z.ZodString>;
|
|
149
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
152
|
+
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
/**
|
|
155
|
+
* Map field configuration type
|
|
156
|
+
* This is a plain object that can be serialized and used anywhere
|
|
157
|
+
* The build() method allows creating a MapField instance when needed
|
|
158
|
+
*/
|
|
159
|
+
export type MapFieldConfig = z.infer<typeof mapFieldConfigSchema>;
|
|
160
|
+
/**
|
|
161
|
+
* Helper function to create a map field configuration
|
|
162
|
+
* Returns a config object with a build() method that can be serialized and used anywhere
|
|
163
|
+
* @param field
|
|
164
|
+
*/
|
|
165
|
+
export declare function mapField(field: z.infer<typeof optionsSchema>): MapFieldConfig;
|
|
166
|
+
export {};
|
|
167
167
|
//# sourceMappingURL=map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/core/fields/map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/core/fields/map.ts"],"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