@sfxcode/formkit-primevue 3.3.5 → 3.3.6

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 (140) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -13
  3. package/components.d.ts +1 -0
  4. package/dist/components/FormKitDataDebug.d.vue.ts +24 -0
  5. package/dist/components/FormKitDataDebug.vue +9 -5
  6. package/dist/components/FormKitDataDebug.vue.d.ts +24 -0
  7. package/dist/components/FormKitDataEdit.d.vue.ts +180 -0
  8. package/dist/components/FormKitDataEdit.vue +46 -53
  9. package/dist/components/FormKitDataEdit.vue.d.ts +180 -0
  10. package/dist/components/FormKitDataView.d.vue.ts +73 -0
  11. package/dist/components/FormKitDataView.vue +27 -20
  12. package/dist/components/FormKitDataView.vue.d.ts +73 -0
  13. package/dist/components/FormKitIcon.d.vue.ts +39 -0
  14. package/dist/components/FormKitIcon.vue +13 -6
  15. package/dist/components/FormKitIcon.vue.d.ts +39 -0
  16. package/dist/components/FormKitPrefix.d.vue.ts +7 -0
  17. package/dist/components/FormKitPrefix.vue +3 -3
  18. package/dist/components/FormKitPrefix.vue.d.ts +7 -0
  19. package/dist/components/FormKitSuffix.d.vue.ts +7 -0
  20. package/dist/components/FormKitSuffix.vue +3 -3
  21. package/dist/components/FormKitSuffix.vue.d.ts +7 -0
  22. package/dist/components/PrimeAutoComplete.d.vue.ts +31 -0
  23. package/dist/components/PrimeAutoComplete.vue +86 -41
  24. package/dist/components/PrimeAutoComplete.vue.d.ts +31 -0
  25. package/dist/components/PrimeCascadeSelect.d.vue.ts +28 -0
  26. package/dist/components/PrimeCascadeSelect.vue +26 -7
  27. package/dist/components/PrimeCascadeSelect.vue.d.ts +28 -0
  28. package/dist/components/PrimeCheckbox.d.vue.ts +27 -0
  29. package/dist/components/PrimeCheckbox.vue +29 -9
  30. package/dist/components/PrimeCheckbox.vue.d.ts +27 -0
  31. package/dist/components/PrimeColorPicker.d.vue.ts +24 -0
  32. package/dist/components/PrimeColorPicker.vue +22 -7
  33. package/dist/components/PrimeColorPicker.vue.d.ts +24 -0
  34. package/dist/components/PrimeDatePicker.d.vue.ts +63 -0
  35. package/dist/components/PrimeDatePicker.vue +73 -17
  36. package/dist/components/PrimeDatePicker.vue.d.ts +63 -0
  37. package/dist/components/PrimeInputMask.d.vue.ts +28 -0
  38. package/dist/components/PrimeInputMask.vue +29 -10
  39. package/dist/components/PrimeInputMask.vue.d.ts +28 -0
  40. package/dist/components/PrimeInputNumber.d.vue.ts +36 -0
  41. package/dist/components/PrimeInputNumber.vue +56 -21
  42. package/dist/components/PrimeInputNumber.vue.d.ts +36 -0
  43. package/dist/components/PrimeInputOtp.d.vue.ts +26 -0
  44. package/dist/components/PrimeInputOtp.vue +24 -7
  45. package/dist/components/PrimeInputOtp.vue.d.ts +26 -0
  46. package/dist/components/PrimeInputText.d.vue.ts +24 -0
  47. package/dist/components/PrimeInputText.vue +25 -10
  48. package/dist/components/PrimeInputText.vue.d.ts +24 -0
  49. package/dist/components/PrimeKnob.d.vue.ts +31 -0
  50. package/dist/components/PrimeKnob.vue +37 -12
  51. package/dist/components/PrimeKnob.vue.d.ts +31 -0
  52. package/dist/components/PrimeListbox.d.vue.ts +42 -0
  53. package/dist/components/PrimeListbox.vue +39 -7
  54. package/dist/components/PrimeListbox.vue.d.ts +42 -0
  55. package/dist/components/PrimeMultiSelect.d.vue.ts +53 -0
  56. package/dist/components/PrimeMultiSelect.vue +52 -7
  57. package/dist/components/PrimeMultiSelect.vue.d.ts +53 -0
  58. package/dist/components/PrimeOutputBoolean.d.vue.ts +16 -0
  59. package/dist/components/PrimeOutputBoolean.vue +27 -28
  60. package/dist/components/PrimeOutputBoolean.vue.d.ts +16 -0
  61. package/dist/components/PrimeOutputDate.d.vue.ts +16 -0
  62. package/dist/components/PrimeOutputDate.vue +33 -33
  63. package/dist/components/PrimeOutputDate.vue.d.ts +16 -0
  64. package/dist/components/PrimeOutputDuration.d.vue.ts +16 -0
  65. package/dist/components/PrimeOutputDuration.vue +19 -23
  66. package/dist/components/PrimeOutputDuration.vue.d.ts +16 -0
  67. package/dist/components/PrimeOutputLink.d.vue.ts +16 -0
  68. package/dist/components/PrimeOutputLink.vue +27 -29
  69. package/dist/components/PrimeOutputLink.vue.d.ts +16 -0
  70. package/dist/components/PrimeOutputList.d.vue.ts +19 -0
  71. package/dist/components/PrimeOutputList.vue +40 -71
  72. package/dist/components/PrimeOutputList.vue.d.ts +19 -0
  73. package/dist/components/PrimeOutputNumber.d.vue.ts +16 -0
  74. package/dist/components/PrimeOutputNumber.vue +39 -36
  75. package/dist/components/PrimeOutputNumber.vue.d.ts +16 -0
  76. package/dist/components/PrimeOutputReference.d.vue.ts +16 -0
  77. package/dist/components/PrimeOutputReference.vue +30 -32
  78. package/dist/components/PrimeOutputReference.vue.d.ts +16 -0
  79. package/dist/components/PrimeOutputText.d.vue.ts +22 -0
  80. package/dist/components/PrimeOutputText.vue +53 -53
  81. package/dist/components/PrimeOutputText.vue.d.ts +22 -0
  82. package/dist/components/PrimePassword.d.vue.ts +33 -0
  83. package/dist/components/PrimePassword.vue +32 -11
  84. package/dist/components/PrimePassword.vue.d.ts +33 -0
  85. package/dist/components/PrimeRadioButton.d.vue.ts +28 -0
  86. package/dist/components/PrimeRadioButton.vue +29 -19
  87. package/dist/components/PrimeRadioButton.vue.d.ts +28 -0
  88. package/dist/components/PrimeRating.d.vue.ts +24 -0
  89. package/dist/components/PrimeRating.vue +22 -7
  90. package/dist/components/PrimeRating.vue.d.ts +24 -0
  91. package/dist/components/PrimeSelect.d.vue.ts +50 -0
  92. package/dist/components/PrimeSelect.vue +49 -7
  93. package/dist/components/PrimeSelect.vue.d.ts +50 -0
  94. package/dist/components/PrimeSelectButton.d.vue.ts +28 -0
  95. package/dist/components/PrimeSelectButton.vue +27 -7
  96. package/dist/components/PrimeSelectButton.vue.d.ts +28 -0
  97. package/dist/components/PrimeSlider.d.vue.ts +26 -0
  98. package/dist/components/PrimeSlider.vue +28 -10
  99. package/dist/components/PrimeSlider.vue.d.ts +26 -0
  100. package/dist/components/PrimeTextarea.d.vue.ts +25 -0
  101. package/dist/components/PrimeTextarea.vue +23 -7
  102. package/dist/components/PrimeTextarea.vue.d.ts +25 -0
  103. package/dist/components/PrimeToggleButton.d.vue.ts +26 -0
  104. package/dist/components/PrimeToggleButton.vue +25 -7
  105. package/dist/components/PrimeToggleButton.vue.d.ts +26 -0
  106. package/dist/components/PrimeToggleSwitch.d.vue.ts +23 -0
  107. package/dist/components/PrimeToggleSwitch.vue +23 -8
  108. package/dist/components/PrimeToggleSwitch.vue.d.ts +23 -0
  109. package/dist/components/PrimeTreeSelect.d.vue.ts +32 -0
  110. package/dist/components/PrimeTreeSelect.vue +30 -7
  111. package/dist/components/PrimeTreeSelect.vue.d.ts +32 -0
  112. package/dist/components/index.d.ts +23 -23
  113. package/dist/composables/index.d.ts +8 -8
  114. package/dist/composables/index.js +8 -8
  115. package/dist/composables/index.mjs +8 -8
  116. package/dist/composables/useFormKitInput.js +1 -5
  117. package/dist/composables/useFormKitInput.mjs +1 -13
  118. package/dist/composables/useFormKitRepeater.js +1 -1
  119. package/dist/composables/useFormKitRepeater.mjs +17 -45
  120. package/dist/composables/useFormKitSchema.mjs +2 -10
  121. package/dist/composables/useInputEditor.js +4 -4
  122. package/dist/composables/useInputEditor.mjs +24 -52
  123. package/dist/composables/useInputEditorSchema.js +3 -3
  124. package/dist/composables/useInputEditorSchema.mjs +17 -25
  125. package/dist/composables/useOutputDuration.mjs +6 -3
  126. package/dist/definitions/index.js +2 -2
  127. package/dist/definitions/index.mjs +2 -2
  128. package/dist/definitions/input.d.ts +1 -1
  129. package/dist/definitions/input.mjs +15 -301
  130. package/dist/definitions/output.d.ts +1 -1
  131. package/dist/definitions/output.js +1 -1
  132. package/dist/definitions/output.mjs +14 -95
  133. package/dist/index.d.ts +48 -48
  134. package/dist/index.js +12 -12
  135. package/dist/index.mjs +3 -9
  136. package/dist/plugins/index.d.ts +1 -1
  137. package/dist/plugins/index.mjs +27 -31
  138. package/dist/sass/formkit-primevue.scss +101 -99
  139. package/package.json +80 -45
  140. package/dist/vue.d.ts +0 -5
package/dist/index.d.ts CHANGED
@@ -1,116 +1,116 @@
1
- import type { FormKitBaseSlots, FormKitInputs } from "@formkit/inputs";
2
- import type { AutoCompleteSlots, CascadeSelectSlots, CheckboxSlots, ColorPickerSlots, DatePickerSlots, InputMaskSlots, InputNumberSlots, InputOtpSlots, InputTextSlots, KnobSlots, ListboxSlots, MultiSelectSlots, PasswordSlots, RadioButtonSlots, RatingSlots, SelectButtonSlots, SelectSlots, SliderSlots, TextareaSlots, ToggleButtonSlots, ToggleSwitchSlots, TreeSelectSlots } from "primevue";
3
- import type { CascadeSelectProps } from "primevue/cascadeselect";
4
- import type { ListboxProps } from "primevue/listbox";
5
- import type { MultiSelectProps } from "primevue/multiselect";
6
- import type { SelectProps } from "primevue/select";
7
- import type { SelectButtonProps } from "primevue/selectbutton";
8
- import type { TreeSelectProps } from "primevue/treeselect";
9
- import { FormKitDataEdit, FormKitDataView } from "./components/index.ts";
10
- import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs } from "./composables/index.ts";
11
- import { primeInputs, primeOutputs } from "./definitions/index.ts";
1
+ import type { FormKitBaseSlots, FormKitInputs } from '@formkit/inputs';
2
+ import type { AutoCompleteSlots, CascadeSelectSlots, CheckboxSlots, ColorPickerSlots, DatePickerSlots, InputMaskSlots, InputNumberSlots, InputOtpSlots, InputTextSlots, KnobSlots, ListboxSlots, MultiSelectSlots, PasswordSlots, RadioButtonSlots, RatingSlots, SelectButtonSlots, SelectSlots, SliderSlots, TextareaSlots, ToggleButtonSlots, ToggleSwitchSlots, TreeSelectSlots } from 'primevue';
3
+ import type { CascadeSelectProps } from 'primevue/cascadeselect';
4
+ import type { ListboxProps } from 'primevue/listbox';
5
+ import type { MultiSelectProps } from 'primevue/multiselect';
6
+ import type { SelectProps } from 'primevue/select';
7
+ import type { SelectButtonProps } from 'primevue/selectbutton';
8
+ import type { TreeSelectProps } from 'primevue/treeselect';
9
+ import { FormKitDataEdit, FormKitDataView } from './components';
10
+ import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs } from './composables';
11
+ import { primeInputs, primeOutputs } from './definitions';
12
12
  export { FormKitDataEdit, FormKitDataView, primeInputs, primeOutputs, useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs, };
13
13
  /**
14
14
  * Keeps all slots from 1st argument, add any slots from 2nd type which do not collide with the 1st's names.
15
15
  */
16
16
  type MergeSlots<A, B> = A & Omit<B, keyof A>;
17
- declare module "@formkit/inputs" {
17
+ declare module '@formkit/inputs' {
18
18
  interface FormKitInputProps<Props extends FormKitInputs<Props>> {
19
19
  primeAutoComplete: {
20
- type: "primeAutoComplete";
20
+ type: 'primeAutoComplete';
21
21
  };
22
22
  primeInputText: {
23
- type: "primeInputText";
23
+ type: 'primeInputText';
24
24
  };
25
25
  primeInputNumber: {
26
- type: "primeInputNumber";
26
+ type: 'primeInputNumber';
27
27
  };
28
28
  primeInputMask: {
29
- type: "primeInputMask";
29
+ type: 'primeInputMask';
30
30
  };
31
31
  primePassword: {
32
- type: "primePassword";
32
+ type: 'primePassword';
33
33
  };
34
34
  primeCheckbox: {
35
- type: "primeCheckbox";
35
+ type: 'primeCheckbox';
36
36
  };
37
37
  primeToggleSwitch: {
38
- type: "primeToggleSwitch";
38
+ type: 'primeToggleSwitch';
39
39
  };
40
40
  primeTextarea: {
41
- type: "primeTextarea";
41
+ type: 'primeTextarea';
42
42
  };
43
43
  primeSelect: {
44
- type: "primeSelect";
45
- options?: SelectProps["options"];
44
+ type: 'primeSelect';
45
+ options?: SelectProps['options'];
46
46
  };
47
47
  primeMultiSelect: {
48
- type: "primeMultiSelect";
49
- options?: MultiSelectProps["options"];
48
+ type: 'primeMultiSelect';
49
+ options?: MultiSelectProps['options'];
50
50
  };
51
51
  primeDatePicker: {
52
- type: "primeDatePicker";
52
+ type: 'primeDatePicker';
53
53
  };
54
54
  primeSlider: {
55
- type: "primeSlider";
55
+ type: 'primeSlider';
56
56
  };
57
57
  primeKnob: {
58
- type: "primeKnob";
58
+ type: 'primeKnob';
59
59
  };
60
60
  primeRating: {
61
- type: "primeRating";
61
+ type: 'primeRating';
62
62
  };
63
63
  primeRadioButton: {
64
- type: "primeRadioButton";
64
+ type: 'primeRadioButton';
65
65
  };
66
66
  primeColorPicker: {
67
- type: "primeColorPicker";
67
+ type: 'primeColorPicker';
68
68
  };
69
69
  primeToggleButton: {
70
- type: "primeToggleButton";
70
+ type: 'primeToggleButton';
71
71
  };
72
72
  primeListbox: {
73
- type: "primeListbox";
74
- options?: ListboxProps["options"];
73
+ type: 'primeListbox';
74
+ options?: ListboxProps['options'];
75
75
  };
76
76
  primeSelectButton: {
77
- type: "primeSelectButton";
78
- options?: SelectButtonProps["options"];
77
+ type: 'primeSelectButton';
78
+ options?: SelectButtonProps['options'];
79
79
  };
80
80
  primeCascadeSelect: {
81
- type: "primeCascadeSelect";
82
- options?: CascadeSelectProps["options"];
81
+ type: 'primeCascadeSelect';
82
+ options?: CascadeSelectProps['options'];
83
83
  };
84
84
  primeTreeSelect: {
85
- type: "primeTreeSelect";
86
- options?: TreeSelectProps["options"];
85
+ type: 'primeTreeSelect';
86
+ options?: TreeSelectProps['options'];
87
87
  };
88
88
  primeInputOtp: {
89
- type: "primeInputOtp";
89
+ type: 'primeInputOtp';
90
90
  };
91
91
  primeOutputText: {
92
- type: "primeOutputText";
92
+ type: 'primeOutputText';
93
93
  };
94
94
  primeOutputLink: {
95
- type: "primeOutputLink";
95
+ type: 'primeOutputLink';
96
96
  };
97
97
  primeOutputReference: {
98
- type: "primeOutputReference";
98
+ type: 'primeOutputReference';
99
99
  };
100
100
  primeOutputNumber: {
101
- type: "primeOutputNumber";
101
+ type: 'primeOutputNumber';
102
102
  };
103
103
  primeOutputDate: {
104
- type: "primeOutputDate";
104
+ type: 'primeOutputDate';
105
105
  };
106
106
  primeOutputBoolean: {
107
- type: "primeOutputBoolean";
107
+ type: 'primeOutputBoolean';
108
108
  };
109
109
  primeOutputDuration: {
110
- type: "primeOutputDuration";
110
+ type: 'primeOutputDuration';
111
111
  };
112
112
  primeOutputList: {
113
- type: "primeOutputList";
113
+ type: 'primeOutputList';
114
114
  };
115
115
  }
116
116
  interface FormKitInputSlots<Props extends FormKitInputs<Props>> {
package/dist/index.js CHANGED
@@ -6,57 +6,57 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "FormKitDataEdit", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _index.FormKitDataEdit;
9
+ return _components.FormKitDataEdit;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "FormKitDataView", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _index.FormKitDataView;
15
+ return _components.FormKitDataView;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "primeInputs", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _index3.primeInputs;
21
+ return _definitions.primeInputs;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "primeOutputs", {
25
25
  enumerable: true,
26
26
  get: function () {
27
- return _index3.primeOutputs;
27
+ return _definitions.primeOutputs;
28
28
  }
29
29
  });
30
30
  Object.defineProperty(exports, "useFormKitRepeater", {
31
31
  enumerable: true,
32
32
  get: function () {
33
- return _index2.useFormKitRepeater;
33
+ return _composables.useFormKitRepeater;
34
34
  }
35
35
  });
36
36
  Object.defineProperty(exports, "useFormKitSchema", {
37
37
  enumerable: true,
38
38
  get: function () {
39
- return _index2.useFormKitSchema;
39
+ return _composables.useFormKitSchema;
40
40
  }
41
41
  });
42
42
  Object.defineProperty(exports, "useInputEditor", {
43
43
  enumerable: true,
44
44
  get: function () {
45
- return _index2.useInputEditor;
45
+ return _composables.useInputEditor;
46
46
  }
47
47
  });
48
48
  Object.defineProperty(exports, "useInputEditorSchema", {
49
49
  enumerable: true,
50
50
  get: function () {
51
- return _index2.useInputEditorSchema;
51
+ return _composables.useInputEditorSchema;
52
52
  }
53
53
  });
54
54
  Object.defineProperty(exports, "usePrimeInputs", {
55
55
  enumerable: true,
56
56
  get: function () {
57
- return _index2.usePrimeInputs;
57
+ return _composables.usePrimeInputs;
58
58
  }
59
59
  });
60
- var _index = require("./components/index.ts");
61
- var _index2 = require("./composables/index.ts");
62
- var _index3 = require("./definitions/index.ts");
60
+ var _components = require("./components");
61
+ var _composables = require("./composables");
62
+ var _definitions = require("./definitions");
package/dist/index.mjs CHANGED
@@ -1,12 +1,6 @@
1
- import { FormKitDataEdit, FormKitDataView } from "./components/index.ts";
2
- import {
3
- useFormKitRepeater,
4
- useFormKitSchema,
5
- useInputEditor,
6
- useInputEditorSchema,
7
- usePrimeInputs
8
- } from "./composables/index.ts";
9
- import { primeInputs, primeOutputs } from "./definitions/index.ts";
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";
10
4
  export {
11
5
  FormKitDataEdit,
12
6
  FormKitDataView,
@@ -1,3 +1,3 @@
1
- import type { FormKitNode } from "@formkit/core";
1
+ import type { FormKitNode } from '@formkit/core';
2
2
  export declare function addPrimeAsteriskPlugin(node: FormKitNode): void;
3
3
  export declare function addLabelPlugin(node: FormKitNode): void;
@@ -1,21 +1,19 @@
1
1
  export function addPrimeAsteriskPlugin(node) {
2
- if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput")) return;
2
+ if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput"))
3
+ return;
3
4
  node.on("created", () => {
4
5
  if (node.props.definition?.schema) {
5
6
  const schemaFn = node.props.definition?.schema;
6
7
  node.props.definition.schema = (sectionsSchema = {}) => {
7
8
  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
- ]
9
+ children: ["$label", {
10
+ $el: "span",
11
+ if: "$state.required",
12
+ attrs: {
13
+ class: "p-formkit-asterisk"
14
+ },
15
+ children: ["*"]
16
+ }]
19
17
  };
20
18
  return schemaFn(sectionsSchema);
21
19
  };
@@ -23,31 +21,29 @@ export function addPrimeAsteriskPlugin(node) {
23
21
  });
24
22
  }
25
23
  export function addLabelPlugin(node) {
26
- if (!node.props.type.startsWith("prime")) return;
24
+ if (!node.props.type.startsWith("prime"))
25
+ return;
27
26
  node.on("created", () => {
28
27
  if (node.props.definition?.schema) {
29
28
  const schemaFn = node.props.definition?.schema;
30
29
  node.props.definition.schema = (sectionsSchema = {}) => {
31
30
  sectionsSchema.label = {
32
- children: [
33
- {
34
- $el: "span",
35
- attrs: {
36
- title: "$help",
37
- class: "p-formkit-label"
38
- },
39
- children: ["$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"
40
44
  },
41
- {
42
- $el: "span",
43
- if: "$state.required",
44
- attrs: {
45
- class: "p-formkit-required",
46
- title: "$help"
47
- },
48
- children: ["*"]
49
- }
50
- ]
45
+ children: ["*"]
46
+ }]
51
47
  };
52
48
  sectionsSchema.help = {
53
49
  children: []
@@ -1,15 +1,15 @@
1
- @use "sass:math";
2
- @use "sass:map";
1
+ @use 'sass:math';
2
+ @use 'sass:map';
3
3
 
4
4
  $gutter-width: 0.5rem;
5
5
 
6
6
  // Breakpoints e.g. https://tailwindcss.com/docs/responsive-design
7
7
  $grid-breakpoints: (
8
- sm: 640px,
9
- md: 768px,
10
- lg: 1024px,
11
- xl: 1280px,
12
- xxl: 1536px,
8
+ sm: 640px,
9
+ md: 768px,
10
+ lg: 1024px,
11
+ xl: 1280px,
12
+ xxl: 1536px
13
13
  ) !default;
14
14
 
15
15
  @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
@@ -69,12 +69,7 @@ $grid-breakpoints: (
69
69
  width: 100%;
70
70
  }
71
71
 
72
- .p-inputtext,
73
- .p-textarea,
74
- .p-password,
75
- .p-multiselect,
76
- .p-select,
77
- .p-editor {
72
+ .p-inputtext, .p-textarea, .p-password, .p-multiselect, .p-select, .p-editor {
78
73
  box-sizing: border-box;
79
74
  width: 100%;
80
75
 
@@ -82,6 +77,7 @@ $grid-breakpoints: (
82
77
  width: 2rem;
83
78
  }
84
79
  }
80
+
85
81
  }
86
82
  }
87
83
 
@@ -90,6 +86,7 @@ $grid-breakpoints: (
90
86
  font-size: 0.8rem;
91
87
  color: var(--text-color-secondary);
92
88
  }
89
+
93
90
  }
94
91
 
95
92
  // Label for single form element
@@ -106,8 +103,7 @@ $grid-breakpoints: (
106
103
  > * {
107
104
  margin-right: 0.5rem;
108
105
 
109
- &:last-child,
110
- &:only-child {
106
+ &:last-child, &:only-child {
111
107
  margin-right: 0;
112
108
  }
113
109
  }
@@ -119,7 +115,7 @@ $grid-breakpoints: (
119
115
  flex-wrap: wrap;
120
116
  gap: 0.5rem;
121
117
 
122
- .p-formkit-option {
118
+ .p-formkit-option {
123
119
  display: flex;
124
120
  align-items: center;
125
121
  label {
@@ -159,9 +155,10 @@ $grid-breakpoints: (
159
155
  button {
160
156
  margin-right: 0.5rem;
161
157
  }
158
+
162
159
  }
163
160
 
164
- .p-action-buttons {
161
+ .p-action-buttons {
165
162
  margin-top: 0.25rem;
166
163
  .p-button {
167
164
  margin-right: 0.5rem;
@@ -184,117 +181,117 @@ $grid-breakpoints: (
184
181
 
185
182
  // data view only
186
183
  .p-formkit-data-view {
187
- .formkit-outer {
188
- padding-bottom: 0.5rem;
189
- }
184
+ .formkit-outer {
185
+ padding-bottom: 0.5rem;
186
+ }
190
187
 
191
- &.form-horizontal {
192
- padding-bottom: 0.8rem;
193
- }
188
+ &.form-horizontal {
189
+ padding-bottom: 0.8rem;
190
+ }
194
191
 
195
- .formkit-help {
196
- padding-top: 0.25rem;
197
- margin: 0;
198
- }
192
+ .formkit-help {
193
+ padding-top: 0.25rem;
194
+ margin: 0;
195
+ }
199
196
 
200
- ul,
201
- ol {
202
- padding-inline-start: 1rem;
203
- margin-block-start: 0;
204
- margin-block-end: 0;
205
- }
197
+ ul, ol {
198
+ padding-inline-start: 1rem;
199
+ margin-block-start: 0;
200
+ margin-block-end: 0;
201
+ }
206
202
  }
207
203
 
208
204
  // data edit only
209
205
  .p-formkit-data-edit {
210
- .formkit-label {
211
- //font-weight: normal;
212
- }
206
+ .formkit-label {
207
+ //font-weight: normal;
208
+ }
213
209
 
214
- // specific checkbox stylings
215
- .formkit-outer[data-type="primeCheckbox"] {
216
- //padding-left: 0;
210
+ // specific checkbox stylings
211
+ .formkit-outer[data-type="primeCheckbox"] {
212
+ //padding-left: 0;
217
213
 
218
- .formkit-wrapper {
219
- display: flex;
220
- flex-wrap: wrap;
214
+ .formkit-wrapper {
215
+ display: flex;
216
+ flex-wrap: wrap;
221
217
 
222
- .formkit-inner {
223
- width: auto !important;
224
- }
218
+ .formkit-inner {
219
+ width: auto !important;
220
+ }
225
221
 
226
- label {
227
- width: auto;
228
- order: 2;
229
- padding: 0.125rem 0;
222
+ label {
223
+ width: auto;
224
+ order: 2;
225
+ padding: 0.125rem 0;
230
226
 
231
- &:after {
232
- content: "";
233
- }
227
+ &:after {
228
+ content: "";
229
+ }
234
230
 
235
- // styling of output when label is used in schema
236
- + .formkit-inner {
237
- margin-left: 0 !important;
238
- order: 1;
239
- flex-basis: 2rem;
240
- flex-grow: 0;
241
- flex-shrink: 0;
242
- overflow: hidden;
243
- // styling of suffix when suffix is used in addition to label
244
- &:has(label) {
245
- flex-grow: 1;
246
- flex-basis: 100%;
231
+ // styling of output when label is used in schema
232
+ + .formkit-inner {
233
+ margin-left: 0 !important;
234
+ order: 1;
235
+ flex-basis: 2rem;
236
+ flex-grow: 0;
237
+ flex-shrink: 0;
238
+ overflow: hidden;
239
+ // styling of suffix when suffix is used in addition to label
240
+ &:has( label) {
241
+ flex-grow: 1;
242
+ flex-basis: 100%;
243
+ }
247
244
  }
248
245
  }
249
- }
250
246
 
251
- // styling when both prefix and suffix are used in schema
252
- label:first-child:nth-last-child(3),
253
- label:first-child:nth-last-child(3) ~ label {
254
- width: auto;
255
- }
247
+ // styling when both prefix and suffix are used in schema
248
+ label:first-child:nth-last-child(3), label:first-child:nth-last-child(3) ~ label {
249
+ width: auto;
250
+ }
256
251
 
257
- label:first-child:nth-last-child(3) {
258
- order: 1;
252
+ label:first-child:nth-last-child(3) {
253
+ order: 1;
259
254
 
260
- + div.p-checkbox {
261
- order: 2;
262
- width: auto;
255
+ + div.p-checkbox {
256
+ order: 2;
257
+ width: auto;
258
+ }
263
259
  }
264
- }
265
260
 
266
- label:first-child:nth-last-child(3) ~ label {
267
- order: 3;
268
- }
261
+ label:first-child:nth-last-child(3) ~ label {
262
+ order: 3
263
+ }
264
+
265
+ // end styling when both prefix and suffix are used in schema
269
266
 
270
- // end styling when both prefix and suffix are used in schema
271
267
 
272
- // styling of output when only suffix is used in schema
273
- .formkit-inner:first-child {
274
- margin-left: 0 !important;
268
+ // styling of output when only suffix is used in schema
269
+ .formkit-inner:first-child {
270
+ margin-left: 0 !important;
275
271
 
276
- .p-formkit {
277
- display: flex;
272
+ .p-formkit {
273
+ display: flex;
274
+ }
278
275
  }
279
- }
280
276
 
281
- .p-checkbox:not(:only-child) {
282
- width: 2rem;
283
- overflow: hidden;
277
+ .p-checkbox:not(:only-child) {
278
+ width: 2rem;
279
+ overflow: hidden;
280
+ }
284
281
  }
285
- }
286
282
 
287
- .formkit-help {
288
- width: auto !important;
289
- //padding-left: 2rem;
283
+ .formkit-help {
284
+ width: auto !important;
285
+ //padding-left: 2rem;
286
+ }
290
287
  }
291
- }
292
288
  }
293
289
 
290
+
291
+
294
292
  // Debug
295
293
  .p-formkit-data-debug {
296
- pre,
297
- span {
294
+ pre, span {
298
295
  font-size: 0.75rem;
299
296
  line-height: 1rem;
300
297
  }
@@ -325,7 +322,9 @@ $grid-breakpoints: (
325
322
 
326
323
  @include media-breakpoint-up(md) {
327
324
  .formkit-form {
325
+
328
326
  &.form-horizontal {
327
+
329
328
  .formkit-wrapper {
330
329
  display: flex;
331
330
 
@@ -347,6 +346,7 @@ $grid-breakpoints: (
347
346
  }
348
347
  }
349
348
  }
349
+
350
350
  }
351
351
 
352
352
  .p-formkit-data-view & {
@@ -358,7 +358,9 @@ $grid-breakpoints: (
358
358
  }
359
359
 
360
360
  .p-formkit-data-edit & {
361
+
361
362
  &.form-horizontal {
363
+
362
364
  .formkit-outer {
363
365
  width: 100%;
364
366
 
@@ -378,7 +380,7 @@ $grid-breakpoints: (
378
380
  margin-left: auto;
379
381
 
380
382
  .p-formkit {
381
- display: flex;
383
+ display: flex
382
384
  }
383
385
 
384
386
  label {
@@ -388,8 +390,7 @@ $grid-breakpoints: (
388
390
  }
389
391
  }
390
392
 
391
- .formkit-help,
392
- .formkit-messages {
393
+ .formkit-help, .formkit-messages {
393
394
  width: calc((8 / 12) * 100%);
394
395
  margin-left: auto;
395
396
  }
@@ -397,3 +398,4 @@ $grid-breakpoints: (
397
398
  }
398
399
  }
399
400
  }
401
+