@wishbone-media/spark 0.16.1 → 0.18.0
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/index.css +1 -1
- package/dist/index.js +268 -260
- package/formkit.config.js +27 -21
- package/formkit.theme.mjs +3339 -3338
- package/package.json +7 -7
- package/src/components/plugins/SparkTableDatePicker.vue +13 -2
- package/src/components/plugins/SparkTableFilterButtons.vue +10 -1
- package/src/components/plugins/SparkTableFilterSelect.vue +9 -2
- package/src/components/plugins/SparkTableSearch.vue +15 -7
package/formkit.config.js
CHANGED
|
@@ -15,18 +15,6 @@ import {
|
|
|
15
15
|
} from '@formkit/pro';
|
|
16
16
|
import { rootClasses } from '@wishbone-media/spark/formkit.theme.mjs';
|
|
17
17
|
|
|
18
|
-
const proPlugin = createProPlugin('fk-8c746502a21', {
|
|
19
|
-
autocomplete,
|
|
20
|
-
colorpicker,
|
|
21
|
-
datepicker,
|
|
22
|
-
dropdown,
|
|
23
|
-
rating,
|
|
24
|
-
repeater,
|
|
25
|
-
slider,
|
|
26
|
-
taglist,
|
|
27
|
-
toggle
|
|
28
|
-
});
|
|
29
|
-
|
|
30
18
|
const autoAnimatePlugin = createAutoAnimatePlugin(
|
|
31
19
|
{
|
|
32
20
|
/* optional AutoAnimate config */
|
|
@@ -44,12 +32,30 @@ const autoAnimatePlugin = createAutoAnimatePlugin(
|
|
|
44
32
|
}
|
|
45
33
|
);
|
|
46
34
|
|
|
47
|
-
export default
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
35
|
+
export default function createFormKitConfig(formKitProKey) {
|
|
36
|
+
if (!formKitProKey) {
|
|
37
|
+
throw new Error('FormKit Pro key is required. Please provide VITE_FORMKIT_PRO_KEY in your environment variables.');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const proPlugin = createProPlugin(formKitProKey, {
|
|
41
|
+
autocomplete,
|
|
42
|
+
colorpicker,
|
|
43
|
+
datepicker,
|
|
44
|
+
dropdown,
|
|
45
|
+
rating,
|
|
46
|
+
repeater,
|
|
47
|
+
slider,
|
|
48
|
+
taglist,
|
|
49
|
+
toggle
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return defaultConfig({
|
|
53
|
+
config: {
|
|
54
|
+
rootClasses
|
|
55
|
+
},
|
|
56
|
+
icons: {
|
|
57
|
+
...genesisIcons
|
|
58
|
+
},
|
|
59
|
+
plugins: [proPlugin, autoAnimatePlugin]
|
|
60
|
+
});
|
|
61
|
+
}
|