@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.
- package/dist/components/FormKitDataDebug.vue +19 -0
- package/dist/components/FormKitDataEdit.vue +133 -0
- package/dist/components/FormKitDataView.vue +51 -0
- package/dist/components/FormKitIcon.vue +18 -0
- package/dist/components/FormKitPrefix.vue +11 -0
- package/dist/components/FormKitSuffix.vue +11 -0
- package/dist/components/PrimeAutoComplete.vue +95 -0
- package/dist/components/PrimeCascadeSelect.vue +43 -0
- package/dist/components/PrimeCheckbox.vue +51 -0
- package/dist/components/PrimeColorPicker.vue +33 -0
- package/dist/components/PrimeDatePicker.vue +97 -0
- package/dist/components/PrimeInputMask.vue +69 -0
- package/dist/components/PrimeInputNumber.vue +75 -0
- package/dist/components/PrimeInputOtp.vue +42 -0
- package/dist/components/PrimeInputText.vue +65 -0
- package/dist/components/PrimeKnob.vue +50 -0
- package/dist/components/PrimeListbox.vue +54 -0
- package/dist/components/PrimeMultiSelect.vue +70 -0
- package/dist/components/PrimeOutputBoolean.vue +42 -0
- package/dist/components/PrimeOutputDate.vue +51 -0
- package/dist/components/PrimeOutputDuration.vue +36 -0
- package/dist/components/PrimeOutputLink.vue +52 -0
- package/dist/components/PrimeOutputList.vue +106 -0
- package/dist/components/PrimeOutputNumber.vue +56 -0
- package/dist/components/PrimeOutputReference.vue +64 -0
- package/dist/components/PrimeOutputText.vue +72 -0
- package/dist/components/PrimePassword.vue +52 -0
- package/dist/components/PrimeRadioButton.vue +48 -0
- package/dist/components/PrimeRating.vue +40 -0
- package/dist/components/PrimeSelect.vue +71 -0
- package/dist/components/PrimeSelectButton.vue +44 -0
- package/dist/components/PrimeSlider.vue +42 -0
- package/dist/components/PrimeTextarea.vue +37 -0
- package/dist/components/PrimeToggleButton.vue +42 -0
- package/dist/components/PrimeToggleSwitch.vue +42 -0
- package/dist/components/PrimeTreeSelect.vue +48 -0
- package/dist/components/index.d.ts +24 -2
- package/dist/components/index.js +167 -4
- package/dist/components/index.mjs +48 -0
- package/dist/composables/index.d.ts +9 -2
- package/dist/composables/index.js +61 -2
- package/dist/composables/index.mjs +18 -0
- package/dist/composables/useFormKitInput.d.ts +11 -0
- package/dist/composables/useFormKitInput.js +62 -0
- package/dist/composables/useFormKitInput.mjs +57 -0
- package/dist/composables/useFormKitRepeater.d.ts +15 -0
- package/dist/composables/useFormKitRepeater.js +74 -0
- package/dist/composables/useFormKitRepeater.mjs +82 -0
- package/dist/composables/useFormKitSchema.d.ts +36 -0
- package/dist/composables/useFormKitSchema.js +83 -0
- package/dist/composables/useFormKitSchema.mjs +66 -0
- package/dist/composables/useFormKitSection.d.ts +7 -0
- package/dist/composables/useFormKitSection.js +31 -0
- package/dist/composables/useFormKitSection.mjs +19 -0
- package/dist/composables/useInputEditor.d.ts +8 -0
- package/dist/composables/useInputEditor.js +148 -0
- package/dist/composables/useInputEditor.mjs +171 -0
- package/dist/composables/useInputEditorSchema.d.ts +163 -0
- package/dist/composables/useInputEditorSchema.js +313 -0
- package/dist/composables/useInputEditorSchema.mjs +323 -0
- package/dist/composables/useOutputDuration.d.ts +4 -0
- package/dist/composables/useOutputDuration.js +40 -0
- package/dist/composables/useOutputDuration.mjs +32 -0
- package/dist/composables/usePrimeInputs.d.ts +3 -0
- package/dist/composables/usePrimeInputs.js +62 -0
- package/dist/composables/usePrimeInputs.mjs +53 -0
- package/dist/definitions/index.d.ts +32 -37
- package/dist/definitions/index.js +42 -4
- package/dist/definitions/index.mjs +68 -0
- package/dist/definitions/input.d.ts +47 -0
- package/dist/definitions/input.js +142 -0
- package/dist/definitions/input.mjs +421 -0
- package/dist/definitions/output.d.ts +9 -0
- package/dist/definitions/output.js +46 -0
- package/dist/definitions/output.mjs +120 -0
- package/dist/index.d.ts +142 -145
- package/dist/index.js +62 -5
- package/dist/index.mjs +20 -0
- package/dist/plugins/index.d.ts +3 -7
- package/dist/plugins/index.js +57 -45
- package/dist/plugins/index.mjs +59 -0
- package/dist/vue.d.ts +5 -0
- package/package.json +88 -40
- package/dist/PrimeTreeSelect-Dksx7tL-.js +0 -1881
- package/dist/components-HJnJ39cU.js +0 -255
- package/dist/composables-CZ6f1QYe.js +0 -820
- package/dist/definitions-BHwWaom7.js +0 -1196
- package/dist/index-Ch3MtT1C.d.ts +0 -266
- package/dist/index-EJ8M51RO.d.ts +0 -917
package/dist/plugins/index.js
CHANGED
|
@@ -1,48 +1,60 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
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
|
-
"
|
|
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
|
-
".":
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"./
|
|
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": "
|
|
32
|
-
"@formkit/core": "
|
|
33
|
-
"@formkit/inputs": "
|
|
34
|
-
"@formkit/vue": "
|
|
35
|
-
"consola": "
|
|
36
|
-
"primeicons": "
|
|
37
|
-
"primevue": "
|
|
38
|
-
"vue": "
|
|
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
|
-
"@
|
|
44
|
-
"@types/
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
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": "
|
|
49
|
-
"sass": "
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"unplugin-vue": "
|
|
53
|
-
"vite
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
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
|
+
}
|