@sfxcode/formkit-primevue 3.3.1 → 3.3.4

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 (89) hide show
  1. package/dist/components/FormKitDataDebug.vue +19 -0
  2. package/dist/components/FormKitDataEdit.vue +133 -0
  3. package/dist/components/FormKitDataView.vue +51 -0
  4. package/dist/components/FormKitIcon.vue +18 -0
  5. package/dist/components/FormKitPrefix.vue +11 -0
  6. package/dist/components/FormKitSuffix.vue +11 -0
  7. package/dist/components/PrimeAutoComplete.vue +95 -0
  8. package/dist/components/PrimeCascadeSelect.vue +43 -0
  9. package/dist/components/PrimeCheckbox.vue +51 -0
  10. package/dist/components/PrimeColorPicker.vue +33 -0
  11. package/dist/components/PrimeDatePicker.vue +97 -0
  12. package/dist/components/PrimeInputMask.vue +69 -0
  13. package/dist/components/PrimeInputNumber.vue +75 -0
  14. package/dist/components/PrimeInputOtp.vue +42 -0
  15. package/dist/components/PrimeInputText.vue +65 -0
  16. package/dist/components/PrimeKnob.vue +50 -0
  17. package/dist/components/PrimeListbox.vue +54 -0
  18. package/dist/components/PrimeMultiSelect.vue +70 -0
  19. package/dist/components/PrimeOutputBoolean.vue +42 -0
  20. package/dist/components/PrimeOutputDate.vue +51 -0
  21. package/dist/components/PrimeOutputDuration.vue +36 -0
  22. package/dist/components/PrimeOutputLink.vue +52 -0
  23. package/dist/components/PrimeOutputList.vue +106 -0
  24. package/dist/components/PrimeOutputNumber.vue +56 -0
  25. package/dist/components/PrimeOutputReference.vue +64 -0
  26. package/dist/components/PrimeOutputText.vue +72 -0
  27. package/dist/components/PrimePassword.vue +52 -0
  28. package/dist/components/PrimeRadioButton.vue +48 -0
  29. package/dist/components/PrimeRating.vue +40 -0
  30. package/dist/components/PrimeSelect.vue +71 -0
  31. package/dist/components/PrimeSelectButton.vue +44 -0
  32. package/dist/components/PrimeSlider.vue +42 -0
  33. package/dist/components/PrimeTextarea.vue +37 -0
  34. package/dist/components/PrimeToggleButton.vue +42 -0
  35. package/dist/components/PrimeToggleSwitch.vue +42 -0
  36. package/dist/components/PrimeTreeSelect.vue +48 -0
  37. package/dist/components/index.d.ts +24 -2
  38. package/dist/components/index.js +167 -4
  39. package/dist/components/index.mjs +48 -0
  40. package/dist/composables/index.d.ts +9 -2
  41. package/dist/composables/index.js +61 -2
  42. package/dist/composables/index.mjs +18 -0
  43. package/dist/composables/useFormKitInput.d.ts +11 -0
  44. package/dist/composables/useFormKitInput.js +62 -0
  45. package/dist/composables/useFormKitInput.mjs +57 -0
  46. package/dist/composables/useFormKitRepeater.d.ts +15 -0
  47. package/dist/composables/useFormKitRepeater.js +74 -0
  48. package/dist/composables/useFormKitRepeater.mjs +82 -0
  49. package/dist/composables/useFormKitSchema.d.ts +36 -0
  50. package/dist/composables/useFormKitSchema.js +83 -0
  51. package/dist/composables/useFormKitSchema.mjs +66 -0
  52. package/dist/composables/useFormKitSection.d.ts +7 -0
  53. package/dist/composables/useFormKitSection.js +31 -0
  54. package/dist/composables/useFormKitSection.mjs +19 -0
  55. package/dist/composables/useInputEditor.d.ts +8 -0
  56. package/dist/composables/useInputEditor.js +148 -0
  57. package/dist/composables/useInputEditor.mjs +171 -0
  58. package/dist/composables/useInputEditorSchema.d.ts +163 -0
  59. package/dist/composables/useInputEditorSchema.js +313 -0
  60. package/dist/composables/useInputEditorSchema.mjs +323 -0
  61. package/dist/composables/useOutputDuration.d.ts +4 -0
  62. package/dist/composables/useOutputDuration.js +40 -0
  63. package/dist/composables/useOutputDuration.mjs +32 -0
  64. package/dist/composables/usePrimeInputs.d.ts +3 -0
  65. package/dist/composables/usePrimeInputs.js +62 -0
  66. package/dist/composables/usePrimeInputs.mjs +53 -0
  67. package/dist/definitions/index.d.ts +32 -37
  68. package/dist/definitions/index.js +42 -4
  69. package/dist/definitions/index.mjs +68 -0
  70. package/dist/definitions/input.d.ts +47 -0
  71. package/dist/definitions/input.js +142 -0
  72. package/dist/definitions/input.mjs +421 -0
  73. package/dist/definitions/output.d.ts +9 -0
  74. package/dist/definitions/output.js +46 -0
  75. package/dist/definitions/output.mjs +120 -0
  76. package/dist/index.d.ts +142 -145
  77. package/dist/index.js +62 -5
  78. package/dist/index.mjs +20 -0
  79. package/dist/plugins/index.d.ts +3 -7
  80. package/dist/plugins/index.js +57 -45
  81. package/dist/plugins/index.mjs +59 -0
  82. package/dist/vue.d.ts +5 -0
  83. package/package.json +88 -40
  84. package/dist/PrimeTreeSelect-Dksx7tL-.js +0 -1881
  85. package/dist/components-HJnJ39cU.js +0 -255
  86. package/dist/composables-CZ6f1QYe.js +0 -820
  87. package/dist/definitions-BHwWaom7.js +0 -1196
  88. package/dist/index-Ch3MtT1C.d.ts +0 -266
  89. package/dist/index-EJ8M51RO.d.ts +0 -917
@@ -1,48 +1,60 @@
1
- //#region src/plugins/index.ts
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.addLabelPlugin = addLabelPlugin;
7
+ exports.addPrimeAsteriskPlugin = addPrimeAsteriskPlugin;
2
8
  function addPrimeAsteriskPlugin(node) {
3
- if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput")) return;
4
- node.on("created", () => {
5
- if (node.props.definition?.schema) {
6
- const schemaFn = node.props.definition?.schema;
7
- node.props.definition.schema = (sectionsSchema = {}) => {
8
- sectionsSchema.label = { children: ["$label", {
9
- $el: "span",
10
- if: "$state.required",
11
- attrs: { class: "p-formkit-asterisk" },
12
- children: ["*"]
13
- }] };
14
- return schemaFn(sectionsSchema);
15
- };
16
- }
17
- });
9
+ if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput")) return;
10
+ node.on("created", () => {
11
+ if (node.props.definition?.schema) {
12
+ const schemaFn = node.props.definition?.schema;
13
+ node.props.definition.schema = (sectionsSchema = {}) => {
14
+ sectionsSchema.label = {
15
+ children: ["$label", {
16
+ $el: "span",
17
+ if: "$state.required",
18
+ attrs: {
19
+ class: "p-formkit-asterisk"
20
+ },
21
+ children: ["*"]
22
+ }]
23
+ };
24
+ return schemaFn(sectionsSchema);
25
+ };
26
+ }
27
+ });
18
28
  }
19
29
  function addLabelPlugin(node) {
20
- if (!node.props.type.startsWith("prime")) return;
21
- node.on("created", () => {
22
- if (node.props.definition?.schema) {
23
- const schemaFn = node.props.definition?.schema;
24
- node.props.definition.schema = (sectionsSchema = {}) => {
25
- sectionsSchema.label = { children: [{
26
- $el: "span",
27
- attrs: {
28
- title: "$help",
29
- class: "p-formkit-label"
30
- },
31
- children: ["$label"]
32
- }, {
33
- $el: "span",
34
- if: "$state.required",
35
- attrs: {
36
- class: "p-formkit-required",
37
- title: "$help"
38
- },
39
- children: ["*"]
40
- }] };
41
- sectionsSchema.help = { children: [] };
42
- return schemaFn(sectionsSchema);
43
- };
44
- }
45
- });
46
- }
47
- //#endregion
48
- export { addLabelPlugin, addPrimeAsteriskPlugin };
30
+ if (!node.props.type.startsWith("prime")) return;
31
+ node.on("created", () => {
32
+ if (node.props.definition?.schema) {
33
+ const schemaFn = node.props.definition?.schema;
34
+ node.props.definition.schema = (sectionsSchema = {}) => {
35
+ sectionsSchema.label = {
36
+ children: [{
37
+ $el: "span",
38
+ attrs: {
39
+ title: "$help",
40
+ class: "p-formkit-label"
41
+ },
42
+ children: ["$label"]
43
+ }, {
44
+ $el: "span",
45
+ if: "$state.required",
46
+ attrs: {
47
+ class: "p-formkit-required",
48
+ title: "$help"
49
+ },
50
+ children: ["*"]
51
+ }]
52
+ };
53
+ sectionsSchema.help = {
54
+ children: []
55
+ };
56
+ return schemaFn(sectionsSchema);
57
+ };
58
+ }
59
+ });
60
+ }
@@ -0,0 +1,59 @@
1
+ export function addPrimeAsteriskPlugin(node) {
2
+ if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput")) return;
3
+ node.on("created", () => {
4
+ if (node.props.definition?.schema) {
5
+ const schemaFn = node.props.definition?.schema;
6
+ node.props.definition.schema = (sectionsSchema = {}) => {
7
+ sectionsSchema.label = {
8
+ children: [
9
+ "$label",
10
+ {
11
+ $el: "span",
12
+ if: "$state.required",
13
+ attrs: {
14
+ class: "p-formkit-asterisk"
15
+ },
16
+ children: ["*"]
17
+ }
18
+ ]
19
+ };
20
+ return schemaFn(sectionsSchema);
21
+ };
22
+ }
23
+ });
24
+ }
25
+ export function addLabelPlugin(node) {
26
+ if (!node.props.type.startsWith("prime")) return;
27
+ node.on("created", () => {
28
+ if (node.props.definition?.schema) {
29
+ const schemaFn = node.props.definition?.schema;
30
+ node.props.definition.schema = (sectionsSchema = {}) => {
31
+ sectionsSchema.label = {
32
+ children: [
33
+ {
34
+ $el: "span",
35
+ attrs: {
36
+ title: "$help",
37
+ class: "p-formkit-label"
38
+ },
39
+ children: ["$label"]
40
+ },
41
+ {
42
+ $el: "span",
43
+ if: "$state.required",
44
+ attrs: {
45
+ class: "p-formkit-required",
46
+ title: "$help"
47
+ },
48
+ children: ["*"]
49
+ }
50
+ ]
51
+ };
52
+ sectionsSchema.help = {
53
+ children: []
54
+ };
55
+ return schemaFn(sectionsSchema);
56
+ };
57
+ }
58
+ });
59
+ }
package/dist/vue.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ declare module "*.vue" {
2
+ import { DefineComponent } from "vue";
3
+ const component: DefineComponent<{}, {}, any>;
4
+ export default component;
5
+ }
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@sfxcode/formkit-primevue",
3
- "type": "module",
4
- "version": "3.3.1",
3
+ "version": "3.3.4",
4
+ "homepage": "https://github.com/sfxcode/formkit-primevue",
5
+ "license": "MIT",
5
6
  "author": {
6
7
  "name": "Tom",
7
8
  "email": "tom@sfxcode.com"
@@ -9,55 +10,102 @@
9
10
  "contributors": [
10
11
  "sfxcode <tom@sfxcode.com>"
11
12
  ],
12
- "license": "MIT",
13
- "homepage": "https://github.com/sfxcode/formkit-primevue",
14
13
  "repository": {
15
14
  "type": "git",
16
15
  "url": "git+https://github.com/sfxcode/formkit-primevue.git"
17
16
  },
18
17
  "files": [
18
+ "*.css",
19
+ "*.scss",
20
+ "components.d.ts",
19
21
  "dist"
20
22
  ],
21
- "types": "./dist/index.d.cts",
23
+ "type": "module",
24
+ "main": "./dist/index.js",
25
+ "module": "./dist/index.mjs",
26
+ "types": "./dist/index.d.ts",
27
+ "typesVersions": {
28
+ "*": {
29
+ "*": [
30
+ "*",
31
+ "dist/*",
32
+ "dist/*.d.ts",
33
+ "dist/*/index.d.ts"
34
+ ]
35
+ }
36
+ },
22
37
  "exports": {
23
- ".": "./dist/index.js",
24
- "./components": "./dist/components/index.js",
25
- "./composables": "./dist/composables/index.js",
26
- "./definitions": "./dist/definitions/index.js",
27
- "./plugins": "./dist/plugins/index.js",
28
- "./package.json": "./package.json"
38
+ ".": {
39
+ "types": "./dist/index.d.ts",
40
+ "import": "./dist/index.mjs",
41
+ "require": "./dist/index.js"
42
+ },
43
+ "./components": {
44
+ "types": "./dist/components/index.d.ts",
45
+ "import": "./dist/components/index.mjs",
46
+ "require": "./dist/components/index.js"
47
+ },
48
+ "./composables": {
49
+ "types": "./dist/composables/index.d.ts",
50
+ "import": "./dist/composables/index.mjs",
51
+ "require": "./dist/composables/index.js"
52
+ },
53
+ "./definitions": {
54
+ "types": "./dist/definitions/index.d.ts",
55
+ "import": "./dist/definitions/index.mjs",
56
+ "require": "./dist/definitions/index.js"
57
+ },
58
+ "./plugins": {
59
+ "types": "./dist/plugins/index.d.ts",
60
+ "import": "./dist/plugins/index.mjs",
61
+ "require": "./dist/plugins/index.js"
62
+ },
63
+ "./dist/sass/formkit-primevue.scss": {
64
+ "import": "./dist/sass/formkit-primevue.scss",
65
+ "require": "./dist/sass/formkit-primevue.scss"
66
+ },
67
+ "./dist/style.css": {
68
+ "import": "./dist/style.css",
69
+ "require": "./dist/style.css"
70
+ }
71
+ },
72
+ "scripts": {
73
+ "build": "vue-tsc --build --force && unbuild",
74
+ "dev": "vue-tsc --build",
75
+ "dev:build": "vite build dev",
76
+ "dev:preview": "vite preview dev",
77
+ "release": "npm run build && changelogen --patch --release && npm publish --access public && git push --follow-tags",
78
+ "lint": "eslint .",
79
+ "lint:fix": "eslint . --fix",
80
+ "prepublishOnly": "pnpm build"
29
81
  },
30
82
  "dependencies": {
31
- "@formkit/addons": "^1.7.2",
32
- "@formkit/core": "^1.7.2",
33
- "@formkit/inputs": "^1.7.2",
34
- "@formkit/vue": "^1.7.2",
35
- "consola": "^3.4.2",
36
- "primeicons": "^7.0.0",
37
- "primevue": "^4.5.4",
38
- "vue": "^3.5.30",
39
- "vue-i18n": "^11.3.0",
40
- "vue-tsc": "^3.2.5"
83
+ "@formkit/addons": "catalog:",
84
+ "@formkit/core": "catalog:",
85
+ "@formkit/inputs": "catalog:",
86
+ "@formkit/vue": "catalog:",
87
+ "consola": "catalog:",
88
+ "primeicons": "catalog:",
89
+ "primevue": "catalog:",
90
+ "vue-i18n": "catalog:"
41
91
  },
42
92
  "devDependencies": {
43
- "@formkit/inputs": "^1.7.2",
44
- "@types/fs-extra": "^11.0.4",
45
- "@types/node": "^25.3.5",
46
- "@vitejs/plugin-vue": "^6.0.5",
93
+ "@types/fs-extra": "catalog:",
94
+ "@types/node": "catalog:",
95
+ "@vitejs/plugin-vue": "catalog:",
96
+ "@vue/tsconfig": "catalog:",
97
+ "add": "catalog:",
47
98
  "bumpp": "^10.4.1",
48
- "fs-extra": "^11.3.4",
49
- "sass": "^1.98.0",
50
- "tsdown": "^0.21.2",
51
- "typescript": "^5.9.3",
52
- "unplugin-vue": "^7.1.1",
53
- "vite-plus": "^0.1.11",
54
- "vitest": "npm:@voidzero-dev/vite-plus-test@latest"
55
- },
56
- "scripts": {
57
- "build": "vp pack",
58
- "dev": "vp pack --watch",
59
- "test": "vp test",
60
- "typecheck": "tsc --noEmit",
61
- "release": "npm run build && npm publish --access public"
99
+ "fs-extra": "catalog:",
100
+ "sass": "catalog:",
101
+ "typescript": "catalog:",
102
+ "unbuild": "catalog:",
103
+ "unplugin-vue": "catalog:",
104
+ "vite": "npm:@voidzero-dev/vite-plus-core@^0.1.14",
105
+ "vite-plus": "catalog:",
106
+ "vitest": "npm:@voidzero-dev/vite-plus-test@^0.1.14",
107
+ "vue": "catalog:",
108
+ "vue-sfc-transformer": "catalog:",
109
+ "vue-tsc": "catalog:"
62
110
  }
63
- }
111
+ }