@sfxcode/formkit-primevue 2.4.15 → 2.4.17
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/PrimeInputMask.vue +24 -1
- package/dist/components/PrimeInputText.vue +21 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
|
|
|
32
32
|
|
|
33
33
|
<template>
|
|
34
34
|
<div class="p-formkit">
|
|
35
|
-
<IconField>
|
|
35
|
+
<IconField v-if="hasPrefixIcon || hasSuffixIcon">
|
|
36
36
|
<InputIcon v-if="hasPrefixIcon" :class="context?.iconPrefix" />
|
|
37
37
|
<InputMask
|
|
38
38
|
:id="context.id"
|
|
@@ -58,5 +58,28 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
|
|
|
58
58
|
/>
|
|
59
59
|
<InputIcon v-if="hasSuffixIcon" :class="context?.iconSuffix" />
|
|
60
60
|
</IconField>
|
|
61
|
+
<InputMask
|
|
62
|
+
v-if="!hasPrefixIcon && !hasSuffixIcon"
|
|
63
|
+
:id="context.id"
|
|
64
|
+
v-model="context._value"
|
|
65
|
+
v-bind="context?.attrs"
|
|
66
|
+
:disabled="!!context?.disabled"
|
|
67
|
+
:readonly="context?.attrs.readonly ?? false"
|
|
68
|
+
:class="context?.attrs?.class"
|
|
69
|
+
:invalid="isInvalid"
|
|
70
|
+
:tabindex="context?.attrs.tabindex"
|
|
71
|
+
:aria-label="context?.attrs.ariaLabel"
|
|
72
|
+
:aria-labelledby="context?.attrs.ariaLabelledby"
|
|
73
|
+
:mask="context.mask ?? undefined"
|
|
74
|
+
:slot-char="context.slotChar ?? '_'"
|
|
75
|
+
:auto-clear="context.autoClear ?? true"
|
|
76
|
+
:unmask="context.unmask ?? false"
|
|
77
|
+
:pt="context.pt"
|
|
78
|
+
:variant="context.variant"
|
|
79
|
+
:pt-options="context.ptOptions"
|
|
80
|
+
:unstyled="unstyled"
|
|
81
|
+
@update:model-value="handleInput"
|
|
82
|
+
@blur="handleBlur"
|
|
83
|
+
/>
|
|
61
84
|
</div>
|
|
62
85
|
</template>
|
|
@@ -27,7 +27,7 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
|
|
|
27
27
|
|
|
28
28
|
<template>
|
|
29
29
|
<div class="p-formkit">
|
|
30
|
-
<IconField>
|
|
30
|
+
<IconField v-if="hasPrefixIcon || hasSuffixIcon">
|
|
31
31
|
<InputIcon v-if="hasPrefixIcon" :class="context?.iconPrefix" />
|
|
32
32
|
<InputText
|
|
33
33
|
:id="context.id"
|
|
@@ -50,5 +50,25 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
|
|
|
50
50
|
/>
|
|
51
51
|
<InputIcon v-if="hasSuffixIcon" :class="context?.iconSuffix" />
|
|
52
52
|
</IconField>
|
|
53
|
+
<InputText
|
|
54
|
+
v-if="!hasPrefixIcon && !hasSuffixIcon"
|
|
55
|
+
:id="context.id"
|
|
56
|
+
v-model="context._value"
|
|
57
|
+
v-bind="context?.attrs"
|
|
58
|
+
:disabled="!!context?.disabled"
|
|
59
|
+
:readonly="context?.attrs.readonly ?? false"
|
|
60
|
+
:style="context?.attrs.style"
|
|
61
|
+
:class="context?.attrs?.class"
|
|
62
|
+
:invalid="isInvalid"
|
|
63
|
+
:tabindex="context?.attrs.tabindex"
|
|
64
|
+
:aria-label="context?.attrs.ariaLabel"
|
|
65
|
+
:aria-labelledby="context?.attrs.ariaLabelledby"
|
|
66
|
+
:placeholder="context.placeholder"
|
|
67
|
+
:pt="context.pt"
|
|
68
|
+
:pt-options="context.ptOptions"
|
|
69
|
+
:unstyled="unstyled"
|
|
70
|
+
@input="handleInput"
|
|
71
|
+
@blur="handleBlur"
|
|
72
|
+
/>
|
|
53
73
|
</div>
|
|
54
74
|
</template>
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormKitDataDebug, FormKitDataEdit, FormKitDataView } from './components';
|
|
2
|
-
import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema } from './composables';
|
|
2
|
+
import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs } from './composables';
|
|
3
3
|
import { primeInputs, primeOutputs } from './definitions';
|
|
4
|
-
export { FormKitDataDebug, FormKitDataEdit, FormKitDataView, primeInputs, primeOutputs, useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, };
|
|
4
|
+
export { FormKitDataDebug, FormKitDataEdit, FormKitDataView, primeInputs, primeOutputs, useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs, };
|
package/dist/index.js
CHANGED
|
@@ -57,6 +57,12 @@ Object.defineProperty(exports, "useInputEditorSchema", {
|
|
|
57
57
|
return _composables.useInputEditorSchema;
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
Object.defineProperty(exports, "usePrimeInputs", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _composables.usePrimeInputs;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
60
66
|
var _components = require("./components");
|
|
61
67
|
var _composables = require("./composables");
|
|
62
68
|
var _definitions = require("./definitions");
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormKitDataDebug, FormKitDataEdit, FormKitDataView } from "./components/index.mjs";
|
|
2
|
-
import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema } from "./composables/index.mjs";
|
|
2
|
+
import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs } from "./composables/index.mjs";
|
|
3
3
|
import { primeInputs, primeOutputs } from "./definitions/index.mjs";
|
|
4
4
|
export {
|
|
5
5
|
FormKitDataDebug,
|
|
@@ -10,5 +10,6 @@ export {
|
|
|
10
10
|
useFormKitRepeater,
|
|
11
11
|
useFormKitSchema,
|
|
12
12
|
useInputEditor,
|
|
13
|
-
useInputEditorSchema
|
|
13
|
+
useInputEditorSchema,
|
|
14
|
+
usePrimeInputs
|
|
14
15
|
};
|
package/package.json
CHANGED