@projectcaluma/ember-form 11.0.0-beta.29 → 11.0.0-beta.30
Sign up to get free protection for your applications and to get access to all the features.
@@ -70,6 +70,10 @@ export default class CfFieldComponent extends Component {
|
|
70
70
|
*/
|
71
71
|
@restartableTask
|
72
72
|
*save(value, bypassTimeout = false) {
|
73
|
+
if (typeof this.args.onSave === "function") {
|
74
|
+
return yield this.args.onSave(this.args.field, value);
|
75
|
+
}
|
76
|
+
|
73
77
|
/* istanbul ignore next */
|
74
78
|
if (macroCondition(isTesting())) {
|
75
79
|
// no timeout
|
@@ -3,7 +3,12 @@
|
|
3
3
|
{{#if (has-block)}}
|
4
4
|
{{yield field}}
|
5
5
|
{{else}}
|
6
|
-
<CfField
|
6
|
+
<CfField
|
7
|
+
@field={{field}}
|
8
|
+
@disabled={{@disabled}}
|
9
|
+
@context={{@context}}
|
10
|
+
@onSave={{@onSave}}
|
11
|
+
/>
|
7
12
|
{{/if}}
|
8
13
|
{{/each}}
|
9
14
|
</form>
|
@@ -1,16 +1,14 @@
|
|
1
|
+
import { registerDestructor } from "@ember/destroyable";
|
1
2
|
import { inject as service } from "@ember/service";
|
2
3
|
import AutoresizeModifier from "ember-autoresize-modifier/modifiers/autoresize";
|
3
4
|
|
4
5
|
export default class CustomAutoresizeModifier extends AutoresizeModifier {
|
5
6
|
@service inViewport;
|
6
7
|
|
7
|
-
|
8
|
-
super.
|
8
|
+
modify(...args) {
|
9
|
+
super.modify(...args);
|
9
10
|
|
10
11
|
this.inViewport.watchElement(this.element).onEnter(this.resize);
|
11
|
-
|
12
|
-
|
13
|
-
willRemove() {
|
14
|
-
this.inViewport.stopWatching(this.element);
|
12
|
+
registerDestructor(this, () => this.inViewport.stopWatching(this.element));
|
15
13
|
}
|
16
14
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@projectcaluma/ember-form",
|
3
|
-
"version": "11.0.0-beta.
|
3
|
+
"version": "11.0.0-beta.30",
|
4
4
|
"description": "Ember addon for rendering Caluma forms.",
|
5
5
|
"keywords": [
|
6
6
|
"ember-addon"
|
@@ -15,14 +15,14 @@
|
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
17
|
"@ember/string": "^3.0.0",
|
18
|
-
"@embroider/macros": "^1.
|
19
|
-
"@embroider/util": "^1.
|
18
|
+
"@embroider/macros": "^1.9.0",
|
19
|
+
"@embroider/util": "^1.9.0",
|
20
20
|
"@glimmer/component": "^1.1.2",
|
21
21
|
"@glimmer/tracking": "^1.1.2",
|
22
|
-
"@projectcaluma/ember-core": "^11.0.0-beta.
|
22
|
+
"@projectcaluma/ember-core": "^11.0.0-beta.30",
|
23
23
|
"ember-apollo-client": "~4.0.2",
|
24
|
-
"ember-auto-import": "^2.4.
|
25
|
-
"ember-autoresize-modifier": "^0.
|
24
|
+
"ember-auto-import": "^2.4.3",
|
25
|
+
"ember-autoresize-modifier": "^0.6.0",
|
26
26
|
"ember-cli-babel": "^7.26.11",
|
27
27
|
"ember-cli-htmlbars": "^6.1.1",
|
28
28
|
"ember-cli-showdown": "^6.0.1",
|
@@ -40,16 +40,16 @@
|
|
40
40
|
"graphql": "^15.8.0",
|
41
41
|
"jexl": "^2.3.0",
|
42
42
|
"lodash.isequal": "^4.5.0",
|
43
|
-
"luxon": "^3.0.
|
43
|
+
"luxon": "^3.0.4",
|
44
44
|
"tracked-toolbox": "^1.2.3"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@ember/optional-features": "2.0.0",
|
48
48
|
"@ember/test-helpers": "2.7.0",
|
49
49
|
"@embroider/test-setup": "1.8.3",
|
50
|
-
"@faker-js/faker": "7.
|
51
|
-
"@projectcaluma/ember-testing": "11.0.0-beta.
|
52
|
-
"@projectcaluma/ember-workflow": "^11.0.0-beta.
|
50
|
+
"@faker-js/faker": "7.6.0",
|
51
|
+
"@projectcaluma/ember-testing": "11.0.0-beta.30",
|
52
|
+
"@projectcaluma/ember-workflow": "^11.0.0-beta.30",
|
53
53
|
"broccoli-asset-rev": "3.0.0",
|
54
54
|
"ember-cli": "4.7.0",
|
55
55
|
"ember-cli-code-coverage": "1.0.3",
|
@@ -60,21 +60,21 @@
|
|
60
60
|
"ember-cli-terser": "4.0.2",
|
61
61
|
"ember-disable-prototype-extensions": "1.1.3",
|
62
62
|
"ember-load-initializers": "2.1.2",
|
63
|
-
"ember-qunit": "
|
63
|
+
"ember-qunit": "6.0.0",
|
64
64
|
"ember-resolver": "8.0.3",
|
65
|
-
"ember-source": "4.
|
65
|
+
"ember-source": "4.8.0",
|
66
66
|
"ember-source-channel-url": "3.0.0",
|
67
67
|
"ember-try": "2.0.0",
|
68
68
|
"loader.js": "4.7.0",
|
69
69
|
"miragejs": "0.1.45",
|
70
70
|
"npm-run-all": "4.1.5",
|
71
|
-
"qunit": "2.19.
|
71
|
+
"qunit": "2.19.2",
|
72
72
|
"qunit-dom": "2.0.0",
|
73
73
|
"uuid": "9.0.0",
|
74
74
|
"webpack": "5.74.0"
|
75
75
|
},
|
76
76
|
"peerDependencies": {
|
77
|
-
"@projectcaluma/ember-workflow": "^11.0.0-beta.
|
77
|
+
"@projectcaluma/ember-workflow": "^11.0.0-beta.30"
|
78
78
|
},
|
79
79
|
"peerDependenciesMeta": {
|
80
80
|
"@projectcaluma/ember-workflow": {
|