@sfxcode/formkit-primevue 3.3.0 → 3.3.1
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/README.md +13 -138
- package/dist/PrimeTreeSelect-Dksx7tL-.js +1881 -0
- package/dist/components/index.d.ts +2 -24
- package/dist/components/index.js +4 -167
- package/dist/components-HJnJ39cU.js +255 -0
- package/dist/composables/index.d.ts +2 -9
- package/dist/composables/index.js +2 -61
- package/dist/composables-CZ6f1QYe.js +820 -0
- package/dist/definitions/index.d.ts +37 -32
- package/dist/definitions/index.js +4 -42
- package/dist/definitions-BHwWaom7.js +1196 -0
- package/dist/index-Ch3MtT1C.d.ts +266 -0
- package/dist/index-EJ8M51RO.d.ts +917 -0
- package/dist/index.d.ts +146 -143
- package/dist/index.js +5 -62
- package/dist/plugins/index.d.ts +7 -3
- package/dist/plugins/index.js +45 -57
- package/dist/sass/formkit-primevue.scss +99 -101
- package/package.json +32 -117
- package/LICENSE +0 -21
- package/components.d.ts +0 -1
- package/dist/components/FormKitDataDebug.d.vue.ts +0 -24
- package/dist/components/FormKitDataDebug.vue +0 -23
- package/dist/components/FormKitDataDebug.vue.d.ts +0 -24
- package/dist/components/FormKitDataEdit.d.vue.ts +0 -180
- package/dist/components/FormKitDataEdit.vue +0 -126
- package/dist/components/FormKitDataEdit.vue.d.ts +0 -180
- package/dist/components/FormKitDataView.d.vue.ts +0 -73
- package/dist/components/FormKitDataView.vue +0 -58
- package/dist/components/FormKitDataView.vue.d.ts +0 -73
- package/dist/components/FormKitIcon.d.vue.ts +0 -39
- package/dist/components/FormKitIcon.vue +0 -25
- package/dist/components/FormKitIcon.vue.d.ts +0 -39
- package/dist/components/FormKitPrefix.d.vue.ts +0 -7
- package/dist/components/FormKitPrefix.vue +0 -11
- package/dist/components/FormKitPrefix.vue.d.ts +0 -7
- package/dist/components/FormKitSuffix.d.vue.ts +0 -7
- package/dist/components/FormKitSuffix.vue +0 -11
- package/dist/components/FormKitSuffix.vue.d.ts +0 -7
- package/dist/components/PrimeAutoComplete.d.vue.ts +0 -31
- package/dist/components/PrimeAutoComplete.vue +0 -140
- package/dist/components/PrimeAutoComplete.vue.d.ts +0 -31
- package/dist/components/PrimeCascadeSelect.d.vue.ts +0 -28
- package/dist/components/PrimeCascadeSelect.vue +0 -62
- package/dist/components/PrimeCascadeSelect.vue.d.ts +0 -28
- package/dist/components/PrimeCheckbox.d.vue.ts +0 -27
- package/dist/components/PrimeCheckbox.vue +0 -71
- package/dist/components/PrimeCheckbox.vue.d.ts +0 -27
- package/dist/components/PrimeColorPicker.d.vue.ts +0 -24
- package/dist/components/PrimeColorPicker.vue +0 -48
- package/dist/components/PrimeColorPicker.vue.d.ts +0 -24
- package/dist/components/PrimeDatePicker.d.vue.ts +0 -63
- package/dist/components/PrimeDatePicker.vue +0 -153
- package/dist/components/PrimeDatePicker.vue.d.ts +0 -63
- package/dist/components/PrimeInputMask.d.vue.ts +0 -28
- package/dist/components/PrimeInputMask.vue +0 -88
- package/dist/components/PrimeInputMask.vue.d.ts +0 -28
- package/dist/components/PrimeInputNumber.d.vue.ts +0 -36
- package/dist/components/PrimeInputNumber.vue +0 -110
- package/dist/components/PrimeInputNumber.vue.d.ts +0 -36
- package/dist/components/PrimeInputOtp.d.vue.ts +0 -26
- package/dist/components/PrimeInputOtp.vue +0 -59
- package/dist/components/PrimeInputOtp.vue.d.ts +0 -26
- package/dist/components/PrimeInputText.d.vue.ts +0 -24
- package/dist/components/PrimeInputText.vue +0 -80
- package/dist/components/PrimeInputText.vue.d.ts +0 -24
- package/dist/components/PrimeKnob.d.vue.ts +0 -31
- package/dist/components/PrimeKnob.vue +0 -75
- package/dist/components/PrimeKnob.vue.d.ts +0 -31
- package/dist/components/PrimeListbox.d.vue.ts +0 -42
- package/dist/components/PrimeListbox.vue +0 -86
- package/dist/components/PrimeListbox.vue.d.ts +0 -42
- package/dist/components/PrimeMultiSelect.d.vue.ts +0 -53
- package/dist/components/PrimeMultiSelect.vue +0 -115
- package/dist/components/PrimeMultiSelect.vue.d.ts +0 -53
- package/dist/components/PrimeOutputBoolean.d.vue.ts +0 -16
- package/dist/components/PrimeOutputBoolean.vue +0 -41
- package/dist/components/PrimeOutputBoolean.vue.d.ts +0 -16
- package/dist/components/PrimeOutputDate.d.vue.ts +0 -16
- package/dist/components/PrimeOutputDate.vue +0 -51
- package/dist/components/PrimeOutputDate.vue.d.ts +0 -16
- package/dist/components/PrimeOutputDuration.d.vue.ts +0 -16
- package/dist/components/PrimeOutputDuration.vue +0 -32
- package/dist/components/PrimeOutputDuration.vue.d.ts +0 -16
- package/dist/components/PrimeOutputLink.d.vue.ts +0 -16
- package/dist/components/PrimeOutputLink.vue +0 -50
- package/dist/components/PrimeOutputLink.vue.d.ts +0 -16
- package/dist/components/PrimeOutputList.d.vue.ts +0 -19
- package/dist/components/PrimeOutputList.vue +0 -75
- package/dist/components/PrimeOutputList.vue.d.ts +0 -19
- package/dist/components/PrimeOutputNumber.d.vue.ts +0 -16
- package/dist/components/PrimeOutputNumber.vue +0 -59
- package/dist/components/PrimeOutputNumber.vue.d.ts +0 -16
- package/dist/components/PrimeOutputReference.d.vue.ts +0 -16
- package/dist/components/PrimeOutputReference.vue +0 -62
- package/dist/components/PrimeOutputReference.vue.d.ts +0 -16
- package/dist/components/PrimeOutputText.d.vue.ts +0 -22
- package/dist/components/PrimeOutputText.vue +0 -72
- package/dist/components/PrimeOutputText.vue.d.ts +0 -22
- package/dist/components/PrimePassword.d.vue.ts +0 -33
- package/dist/components/PrimePassword.vue +0 -73
- package/dist/components/PrimePassword.vue.d.ts +0 -33
- package/dist/components/PrimeRadioButton.d.vue.ts +0 -28
- package/dist/components/PrimeRadioButton.vue +0 -58
- package/dist/components/PrimeRadioButton.vue.d.ts +0 -28
- package/dist/components/PrimeRating.d.vue.ts +0 -24
- package/dist/components/PrimeRating.vue +0 -55
- package/dist/components/PrimeRating.vue.d.ts +0 -24
- package/dist/components/PrimeSelect.d.vue.ts +0 -50
- package/dist/components/PrimeSelect.vue +0 -113
- package/dist/components/PrimeSelect.vue.d.ts +0 -50
- package/dist/components/PrimeSelectButton.d.vue.ts +0 -28
- package/dist/components/PrimeSelectButton.vue +0 -64
- package/dist/components/PrimeSelectButton.vue.d.ts +0 -28
- package/dist/components/PrimeSlider.d.vue.ts +0 -26
- package/dist/components/PrimeSlider.vue +0 -60
- package/dist/components/PrimeSlider.vue.d.ts +0 -26
- package/dist/components/PrimeTextarea.d.vue.ts +0 -25
- package/dist/components/PrimeTextarea.vue +0 -53
- package/dist/components/PrimeTextarea.vue.d.ts +0 -25
- package/dist/components/PrimeToggleButton.d.vue.ts +0 -26
- package/dist/components/PrimeToggleButton.vue +0 -60
- package/dist/components/PrimeToggleButton.vue.d.ts +0 -26
- package/dist/components/PrimeToggleSwitch.d.vue.ts +0 -23
- package/dist/components/PrimeToggleSwitch.vue +0 -57
- package/dist/components/PrimeToggleSwitch.vue.d.ts +0 -23
- package/dist/components/PrimeTreeSelect.d.vue.ts +0 -32
- package/dist/components/PrimeTreeSelect.vue +0 -71
- package/dist/components/PrimeTreeSelect.vue.d.ts +0 -32
- package/dist/components/index.mjs +0 -48
- package/dist/composables/index.mjs +0 -18
- package/dist/composables/useFormKitInput.d.ts +0 -11
- package/dist/composables/useFormKitInput.js +0 -58
- package/dist/composables/useFormKitInput.mjs +0 -45
- package/dist/composables/useFormKitRepeater.d.ts +0 -15
- package/dist/composables/useFormKitRepeater.js +0 -74
- package/dist/composables/useFormKitRepeater.mjs +0 -54
- package/dist/composables/useFormKitSchema.d.ts +0 -36
- package/dist/composables/useFormKitSchema.js +0 -83
- package/dist/composables/useFormKitSchema.mjs +0 -58
- package/dist/composables/useFormKitSection.d.ts +0 -7
- package/dist/composables/useFormKitSection.js +0 -31
- package/dist/composables/useFormKitSection.mjs +0 -19
- package/dist/composables/useInputEditor.d.ts +0 -8
- package/dist/composables/useInputEditor.js +0 -148
- package/dist/composables/useInputEditor.mjs +0 -143
- package/dist/composables/useInputEditorSchema.d.ts +0 -163
- package/dist/composables/useInputEditorSchema.js +0 -313
- package/dist/composables/useInputEditorSchema.mjs +0 -315
- package/dist/composables/useOutputDuration.d.ts +0 -4
- package/dist/composables/useOutputDuration.js +0 -40
- package/dist/composables/useOutputDuration.mjs +0 -35
- package/dist/composables/usePrimeInputs.d.ts +0 -3
- package/dist/composables/usePrimeInputs.js +0 -62
- package/dist/composables/usePrimeInputs.mjs +0 -53
- package/dist/definitions/index.mjs +0 -68
- package/dist/definitions/input.d.ts +0 -47
- package/dist/definitions/input.js +0 -142
- package/dist/definitions/input.mjs +0 -135
- package/dist/definitions/output.d.ts +0 -9
- package/dist/definitions/output.js +0 -46
- package/dist/definitions/output.mjs +0 -39
- package/dist/index.mjs +0 -14
- package/dist/plugins/index.mjs +0 -55
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { createInput } from "@formkit/vue";
|
|
2
|
-
import PrimeOutputBoolean from "../components/PrimeOutputBoolean.vue";
|
|
3
|
-
import PrimeOutputDate from "../components/PrimeOutputDate.vue";
|
|
4
|
-
import PrimeOutputDuration from "../components/PrimeOutputDuration.vue";
|
|
5
|
-
import PrimeOutputLink from "../components/PrimeOutputLink.vue";
|
|
6
|
-
import PrimeOutputList from "../components/PrimeOutputList.vue";
|
|
7
|
-
import PrimeOutputNumber from "../components/PrimeOutputNumber.vue";
|
|
8
|
-
import PrimeOutputReference from "../components/PrimeOutputReference.vue";
|
|
9
|
-
import PrimeOutputText from "../components/PrimeOutputText.vue";
|
|
10
|
-
export const primeOutputTextDefinition = createInput(PrimeOutputText, {
|
|
11
|
-
props: ["prefix", "suffix", "iconPrefix", "iconSuffix", "isTranslationKey", "html", "onIconPrefixClicked", "onIconSuffixClicked", "convertValue", "maxLength"]
|
|
12
|
-
});
|
|
13
|
-
export const primeOutputDateDefinition = createInput(PrimeOutputDate, {
|
|
14
|
-
props: ["prefix", "suffix", "iconPrefix", "iconSuffix", "onIconPrefixClicked", "onIconSuffixClicked"]
|
|
15
|
-
});
|
|
16
|
-
export const primeOutputNumberDefinition = createInput(PrimeOutputNumber, {
|
|
17
|
-
props: ["prefix", "suffix", "iconPrefix", "iconSuffix", "onIconPrefixClicked", "onIconSuffixClicked"],
|
|
18
|
-
family: "PrimeOutput"
|
|
19
|
-
});
|
|
20
|
-
export const primeOutputLinkDefinition = createInput(PrimeOutputLink, {
|
|
21
|
-
props: ["prefix", "suffix", "iconPrefix", "iconSuffix", "title", "onIconPrefixClicked", "onIconSuffixClicked"],
|
|
22
|
-
family: "PrimeOutput"
|
|
23
|
-
});
|
|
24
|
-
export const primeOutputReferenceDefinition = createInput(PrimeOutputReference, {
|
|
25
|
-
props: ["prefix", "suffix", "iconPrefix", "iconSuffix", "reference", "internal", "linkComponentName", "title", "onIconPrefixClicked", "onIconSuffixClicked"],
|
|
26
|
-
family: "PrimeOutput"
|
|
27
|
-
});
|
|
28
|
-
export const primeOutputBooleanDefinition = createInput(PrimeOutputBoolean, {
|
|
29
|
-
props: ["prefix", "suffix", "iconPrefix", "iconSuffix", "trueValue", "falseValue", "onIconPrefixClicked", "onIconSuffixClicked"],
|
|
30
|
-
family: "PrimeOutput"
|
|
31
|
-
});
|
|
32
|
-
export const primeOutputDurationDefinition = createInput(PrimeOutputDuration, {
|
|
33
|
-
props: ["prefix", "suffix", "iconPrefix", "iconSuffix", "onIconPrefixClicked", "onIconSuffixClicked"],
|
|
34
|
-
family: "PrimeOutput"
|
|
35
|
-
});
|
|
36
|
-
export const primeOutputListDefinition = createInput(PrimeOutputList, {
|
|
37
|
-
props: ["prefix", "suffix", "iconPrefix", "iconSuffix", "divider", "itemClass", "dividerClass", "listStyle", "onIconPrefixClicked", "onIconSuffixClicked", "convertValue"],
|
|
38
|
-
family: "PrimeOutput"
|
|
39
|
-
});
|
package/dist/index.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormKitDataEdit, FormKitDataView } from "./components/index.mjs";
|
|
2
|
-
import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs } from "./composables/index.mjs";
|
|
3
|
-
import { primeInputs, primeOutputs } from "./definitions/index.mjs";
|
|
4
|
-
export {
|
|
5
|
-
FormKitDataEdit,
|
|
6
|
-
FormKitDataView,
|
|
7
|
-
primeInputs,
|
|
8
|
-
primeOutputs,
|
|
9
|
-
useFormKitRepeater,
|
|
10
|
-
useFormKitSchema,
|
|
11
|
-
useInputEditor,
|
|
12
|
-
useInputEditorSchema,
|
|
13
|
-
usePrimeInputs
|
|
14
|
-
};
|
package/dist/plugins/index.mjs
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export function addPrimeAsteriskPlugin(node) {
|
|
2
|
-
if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput"))
|
|
3
|
-
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 = {
|
|
9
|
-
children: ["$label", {
|
|
10
|
-
$el: "span",
|
|
11
|
-
if: "$state.required",
|
|
12
|
-
attrs: {
|
|
13
|
-
class: "p-formkit-asterisk"
|
|
14
|
-
},
|
|
15
|
-
children: ["*"]
|
|
16
|
-
}]
|
|
17
|
-
};
|
|
18
|
-
return schemaFn(sectionsSchema);
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export function addLabelPlugin(node) {
|
|
24
|
-
if (!node.props.type.startsWith("prime"))
|
|
25
|
-
return;
|
|
26
|
-
node.on("created", () => {
|
|
27
|
-
if (node.props.definition?.schema) {
|
|
28
|
-
const schemaFn = node.props.definition?.schema;
|
|
29
|
-
node.props.definition.schema = (sectionsSchema = {}) => {
|
|
30
|
-
sectionsSchema.label = {
|
|
31
|
-
children: [{
|
|
32
|
-
$el: "span",
|
|
33
|
-
attrs: {
|
|
34
|
-
title: "$help",
|
|
35
|
-
class: "p-formkit-label"
|
|
36
|
-
},
|
|
37
|
-
children: ["$label"]
|
|
38
|
-
}, {
|
|
39
|
-
$el: "span",
|
|
40
|
-
if: "$state.required",
|
|
41
|
-
attrs: {
|
|
42
|
-
class: "p-formkit-required",
|
|
43
|
-
title: "$help"
|
|
44
|
-
},
|
|
45
|
-
children: ["*"]
|
|
46
|
-
}]
|
|
47
|
-
};
|
|
48
|
-
sectionsSchema.help = {
|
|
49
|
-
children: []
|
|
50
|
-
};
|
|
51
|
-
return schemaFn(sectionsSchema);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
}
|