@projectcaluma/ember-form 12.10.2 → 12.10.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@
15
15
  class="uk-input {{if @disabled 'uk-disabled'}}"
16
16
  readonly={{@disabled}}
17
17
  @disabled={{@disabled}}
18
- @locale={{this.localeObject}}
18
+ @locale={{this.locale}}
19
19
  @date={{or @field.answer.value null}}
20
20
  @altFormat={{this.dateFormat}}
21
21
  @altInput={{true}}
@@ -3,7 +3,6 @@ import { action } from "@ember/object";
3
3
  import { inject as service } from "@ember/service";
4
4
  import Component from "@glimmer/component";
5
5
  import { tracked } from "@glimmer/tracking";
6
- import lang from "flatpickr/dist/l10n";
7
6
  import { DateTime } from "luxon";
8
7
 
9
8
  export default class CfFieldInputDateComponent extends Component {
@@ -15,10 +14,6 @@ export default class CfFieldInputDateComponent extends Component {
15
14
  return this.intl.primaryLocale.split("-")[0];
16
15
  }
17
16
 
18
- get localeObject() {
19
- return lang[this.locale];
20
- }
21
-
22
17
  get config() {
23
18
  return getOwner(this).resolveRegistration("config:environment");
24
19
  }
@@ -1,4 +1,5 @@
1
1
  import { assert, debug } from "@ember/debug";
2
+ import { destroy } from "@ember/destroyable";
2
3
  import { set } from "@ember/object";
3
4
  import Service from "@ember/service";
4
5
 
@@ -41,7 +42,7 @@ export default class CalumaStoreService extends Service {
41
42
  }
42
43
 
43
44
  clear() {
44
- this._store.forEach((obj) => obj.destroy());
45
+ this._store.forEach((obj) => destroy(obj));
45
46
 
46
47
  // `this._store` is not an ember array but a native map
47
48
  // eslint-disable-next-line ember/no-array-prototype-extensions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form",
3
- "version": "12.10.2",
3
+ "version": "12.10.4",
4
4
  "description": "Ember addon for rendering Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -24,7 +24,7 @@
24
24
  "ember-composable-helpers": "^5.0.0",
25
25
  "ember-concurrency": "^4.0.1",
26
26
  "ember-fetch": "^8.1.2",
27
- "ember-flatpickr": "^7.1.0",
27
+ "ember-flatpickr": "^8.0.0",
28
28
  "ember-in-viewport": "^4.1.0",
29
29
  "ember-intl": "^6.5.3",
30
30
  "ember-math-helpers": "^4.0.0",
@@ -39,7 +39,7 @@
39
39
  "luxon": "^3.4.4",
40
40
  "reactiveweb": "^1.2.2",
41
41
  "tracked-toolbox": "^2.0.0",
42
- "@projectcaluma/ember-core": "^12.10.2"
42
+ "@projectcaluma/ember-core": "^12.10.4"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@ember/optional-features": "2.1.0",
@@ -68,12 +68,12 @@
68
68
  "uikit": "3.19.2",
69
69
  "uuid": "9.0.1",
70
70
  "webpack": "5.90.3",
71
- "@projectcaluma/ember-testing": "12.10.2",
72
- "@projectcaluma/ember-workflow": "12.10.2"
71
+ "@projectcaluma/ember-testing": "12.10.4",
72
+ "@projectcaluma/ember-workflow": "12.10.4"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "ember-source": "^4.0.0",
76
- "@projectcaluma/ember-workflow": "^12.10.2"
76
+ "@projectcaluma/ember-workflow": "^12.10.4"
77
77
  },
78
78
  "dependenciesMeta": {
79
79
  "@projectcaluma/ember-core": {