@myparcel-dev/vue-form-builder 1.0.0-beta.53

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 (53) hide show
  1. package/CHANGELOG.md +301 -0
  2. package/dist/components/FormElement.vue.d.ts +22 -0
  3. package/dist/components/FormElementWrapper.d.ts +24 -0
  4. package/dist/components/Fragment.vue.d.ts +17 -0
  5. package/dist/components/MagicForm.vue.d.ts +67 -0
  6. package/dist/components/RenderedFormContent.vue.d.ts +2 -0
  7. package/dist/composables/createFieldHooks.d.ts +5 -0
  8. package/dist/composables/useElement.d.ts +3 -0
  9. package/dist/composables/useForm.d.ts +3 -0
  10. package/dist/composables/useFormBuilder.d.ts +3 -0
  11. package/dist/composables/useLifecycleHooks.d.ts +10 -0
  12. package/dist/composables/useTestAttributes.d.ts +3 -0
  13. package/dist/data/hooks.d.ts +14 -0
  14. package/dist/deprecated.d.ts +8 -0
  15. package/dist/form/Field.d.ts +55 -0
  16. package/dist/form/Form.d.ts +36 -0
  17. package/dist/hooks/HookManager.d.ts +27 -0
  18. package/dist/hooks/createHookManager.d.ts +4 -0
  19. package/dist/hooks/filterMatchingHooks.d.ts +3 -0
  20. package/dist/index.d.ts +16 -0
  21. package/dist/index.js +683 -0
  22. package/dist/plugin/MyParcelFormBuilderPlugin.d.ts +10 -0
  23. package/dist/plugin/devtools/createFieldsNodes.d.ts +5 -0
  24. package/dist/plugin/devtools/createFormNode.d.ts +5 -0
  25. package/dist/plugin/devtools/getComponentName.d.ts +3 -0
  26. package/dist/plugin/devtools/setupDevtools.d.ts +3 -0
  27. package/dist/plugin/devtools/types.d.ts +7 -0
  28. package/dist/symbols.d.ts +6 -0
  29. package/dist/types/common.types.d.ts +6 -0
  30. package/dist/types/component.types.d.ts +17 -0
  31. package/dist/types/deprecated.types.d.ts +35 -0
  32. package/dist/types/element.types.d.ts +0 -0
  33. package/dist/types/field.types.d.ts +199 -0
  34. package/dist/types/form-builder.types.d.ts +27 -0
  35. package/dist/types/form.types.d.ts +202 -0
  36. package/dist/types/hooks.types.d.ts +11 -0
  37. package/dist/types/other.types.d.ts +0 -0
  38. package/dist/types/plain-element.types.d.ts +0 -0
  39. package/dist/types/utils.types.d.ts +14 -0
  40. package/dist/types/validator.types.d.ts +21 -0
  41. package/dist/utils/createField.d.ts +3 -0
  42. package/dist/utils/createForm.d.ts +3 -0
  43. package/dist/utils/defineField.d.ts +8 -0
  44. package/dist/utils/defineForm.d.ts +3 -0
  45. package/dist/utils/generateFieldName.d.ts +4 -0
  46. package/dist/utils/getDefaultFormConfiguration.d.ts +3 -0
  47. package/dist/utils/markComponentAsRaw.d.ts +4 -0
  48. package/dist/utils/normalizeFieldConfiguration.d.ts +12 -0
  49. package/dist/utils/normalizeFormConfiguration.d.ts +3 -0
  50. package/dist/utils/toPromise.d.ts +3 -0
  51. package/dist/utils/useDynamicWatcher.d.ts +4 -0
  52. package/dist/validators/isRequired.d.ts +4 -0
  53. package/package.json +51 -0
@@ -0,0 +1,4 @@
1
+ import { Ref, WatchStopHandle } from 'vue';
2
+ import { PromiseOr } from '@myparcel-dev/ts-utils';
3
+
4
+ export declare const useDynamicWatcher: (callback: () => PromiseOr<boolean>, property: Ref) => WatchStopHandle;
@@ -0,0 +1,4 @@
1
+ import { Validator } from '../types/validator.types';
2
+ import { FunctionOr } from '../types/utils.types';
3
+
4
+ export declare const isRequired: <Type = unknown, Props extends unknown = any>(errorMessage: FunctionOr<string>) => Validator<Type, Props>;
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@myparcel-dev/vue-form-builder",
3
+ "version": "1.0.0-beta.53",
4
+ "keywords": [
5
+ "vue",
6
+ "form-builder",
7
+ "form",
8
+ "vue3"
9
+ ],
10
+ "license": "MIT",
11
+ "type": "module",
12
+ "exports": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "files": [
15
+ "./dist"
16
+ ],
17
+ "scripts": {
18
+ "build": "run ws:vite:build \"$(pwd)\"",
19
+ "build:dev": "run ws:vite:build:dev \"$(pwd)\"",
20
+ "clean": "run ws:clean \"$(pwd)\"",
21
+ "test": "run ws:test \"$(pwd)\"",
22
+ "test:coverage": "run ws:test:coverage \"$(pwd)\"",
23
+ "test:run": "run ws:test:run \"$(pwd)\"",
24
+ "test:update": "run ws:test:update \"$(pwd)\"",
25
+ "typecheck": "run ws:vite:typecheck \"$(pwd)\""
26
+ },
27
+ "dependencies": {
28
+ "@myparcel-dev/ts-utils": "^1.15.0",
29
+ "@vueuse/core": ">= 10.1.0",
30
+ "vue-component-type-helpers": "^2.1.6"
31
+ },
32
+ "devDependencies": {
33
+ "@testing-library/vue": "^8.0.0",
34
+ "@vitejs/plugin-vue": "^5.0.0",
35
+ "@vitest/coverage-v8": "^2.0.0",
36
+ "@vue/test-utils": "^2.4.0",
37
+ "typescript": "^5.0.0",
38
+ "vite": "^5.0.0",
39
+ "vite-plugin-custom-tsconfig": "^1.0.4",
40
+ "vite-plugin-dts": "^3.0.0",
41
+ "vitest": "^2.0.0",
42
+ "vue": "^3.2.47",
43
+ "vue-tsc": "^2.0.0"
44
+ },
45
+ "peerDependencies": {
46
+ "vue": "^3"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public"
50
+ }
51
+ }