@stubber/form-fields 1.2.1 → 1.2.3

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.
@@ -96,14 +96,7 @@
96
96
  {#each items as item, index}
97
97
  <div class="flex space-x-3 relative mt-2">
98
98
  <Checkbox
99
- on:keydown={(e) => {
100
- if (e.key === "Enter") {
101
- e.preventDefault();
102
- }
103
- }}
104
- type="checkbox"
105
99
  id="input_{state_key}_{index}"
106
- placeholder={label}
107
100
  name={state_key}
108
101
  bind:checked={$internal.checks[index]}
109
102
  />
@@ -61,7 +61,10 @@
61
61
  let open = false;
62
62
  let loading = false;
63
63
 
64
- $: dropdownLabel = items.find((i) => isEqual(i._value, $field.data.base))?._label ?? "Select...";
64
+ $: dropdownLabel =
65
+ items.find((i) => isEqual(i._value, $field.data.base))?._label ??
66
+ $field.data?.base_label ??
67
+ "Select...";
65
68
  // We want to refocus the trigger button when the user selects
66
69
  // an item from the list so users can continue navigating the
67
70
  // rest of the form with the keyboard.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/form-fields",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "An automatic form builder based on field specifications",
5
5
  "keywords": [
6
6
  "components",
@@ -41,6 +41,7 @@
41
41
  "eslint": "^8.28.0",
42
42
  "eslint-config-prettier": "^8.5.0",
43
43
  "eslint-plugin-svelte": "^2.30.0",
44
+ "mongodb": "^6.3.0",
44
45
  "postcss": "^8.4.28",
45
46
  "prettier": "^2.8.0",
46
47
  "prettier-plugin-svelte": "^2.10.1",
@@ -58,7 +59,7 @@
58
59
  "@codemirror/commands": "^6.7.1",
59
60
  "@codemirror/state": "^6.4.1",
60
61
  "@codemirror/view": "^6.34.1",
61
- "@stubber/ui": "^1.4.1",
62
+ "@stubber/ui": "^1.12.3",
62
63
  "ag-grid-community": "^31.0.2",
63
64
  "ag-grid-enterprise": "^31.0.2",
64
65
  "currency-symbol-map": "^5.1.0",
@@ -71,7 +72,6 @@
71
72
  "jsonata": "^2.0.3",
72
73
  "lodash-es": "^4.17.21",
73
74
  "markdown-it": "^13.0.1",
74
- "mongodb": "^6.3.0",
75
75
  "signature_pad": "^4.1.6",
76
76
  "svelte": "^4.2.19",
77
77
  "svelte-file-dropzone": "^2.0.4",