@projectcaluma/ember-form 13.2.2 → 14.0.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.
@@ -1,3 +1,4 @@
|
|
1
|
+
import { getOwner } from "@ember/application";
|
1
2
|
import { action } from "@ember/object";
|
2
3
|
import Component from "@glimmer/component";
|
3
4
|
|
@@ -6,6 +7,16 @@ export default class CfFieldInputFloatComponent extends Component {
|
|
6
7
|
return this.args.disabled || this.args.field?.question.isCalculated;
|
7
8
|
}
|
8
9
|
|
10
|
+
get floatStep() {
|
11
|
+
if (this.args.field?.question?.raw?.floatStep) {
|
12
|
+
return this.args.field.question.raw.floatStep;
|
13
|
+
}
|
14
|
+
|
15
|
+
const config = getOwner(this).resolveRegistration("config:environment");
|
16
|
+
const { floatStep = 0.001 } = config["ember-caluma"] || {};
|
17
|
+
return floatStep;
|
18
|
+
}
|
19
|
+
|
9
20
|
/**
|
10
21
|
* Trigger save on input
|
11
22
|
*
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@projectcaluma/ember-form",
|
3
|
-
"version": "
|
3
|
+
"version": "14.0.0",
|
4
4
|
"description": "Ember addon for rendering Caluma forms.",
|
5
5
|
"keywords": [
|
6
6
|
"ember-addon"
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"luxon": "^3.5.0",
|
42
42
|
"reactiveweb": "^1.3.0",
|
43
43
|
"tracked-toolbox": "^2.0.0",
|
44
|
-
"@projectcaluma/ember-core": "^
|
44
|
+
"@projectcaluma/ember-core": "^14.0.0"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@ember/optional-features": "2.2.0",
|
@@ -72,12 +72,12 @@
|
|
72
72
|
"uikit": "3.22.0",
|
73
73
|
"uuid": "11.0.5",
|
74
74
|
"webpack": "5.97.1",
|
75
|
-
"@projectcaluma/ember-
|
76
|
-
"@projectcaluma/ember-
|
75
|
+
"@projectcaluma/ember-workflow": "14.0.0",
|
76
|
+
"@projectcaluma/ember-testing": "14.0.0"
|
77
77
|
},
|
78
78
|
"peerDependencies": {
|
79
79
|
"ember-source": ">= 4.0.0",
|
80
|
-
"@projectcaluma/ember-workflow": "^
|
80
|
+
"@projectcaluma/ember-workflow": "^14.0.0"
|
81
81
|
},
|
82
82
|
"dependenciesMeta": {
|
83
83
|
"@projectcaluma/ember-core": {
|