@projectcaluma/ember-form 13.0.1 → 13.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  {{@field.selected.label}}
3
3
  {{else if
4
4
  (has-question-type
5
- @field.question "multiple-choice" "multiple-dynamic-choice"
5
+ @field.question "multiple-choice" "dynamic-multiple-choice"
6
6
  )
7
7
  }}
8
8
  {{#each @field.selected as |opt i|}}{{if (gt i 0) ", "}}{{opt.label}}{{/each}}
@@ -5,6 +5,7 @@
5
5
  (and @disabled (has-question-type @field.question 'action-button'))
6
6
  'uk-hidden'
7
7
  }}"
8
+ hidden={{this.hasHiddenWidget}}
8
9
  data-question-slug={{@field.question.slug}}
9
10
  data-question-type={{@field.questionType}}
10
11
  {{did-insert this.registerComponent}}
@@ -31,6 +31,13 @@ export default class CfFieldComponent extends Component {
31
31
  this.args.field._components.delete(this);
32
32
  }
33
33
 
34
+ get hasHiddenWidget() {
35
+ return (
36
+ this.args.field?.question.raw.meta.widgetOverride ===
37
+ "cf-field/input/hidden"
38
+ );
39
+ }
40
+
34
41
  get visible() {
35
42
  return (
36
43
  !this.args.field?.hidden &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form",
3
- "version": "13.0.1",
3
+ "version": "13.0.2",
4
4
  "description": "Ember addon for rendering Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -40,7 +40,7 @@
40
40
  "luxon": "^3.5.0",
41
41
  "reactiveweb": "^1.3.0",
42
42
  "tracked-toolbox": "^2.0.0",
43
- "@projectcaluma/ember-core": "^13.0.1"
43
+ "@projectcaluma/ember-core": "^13.0.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@ember/optional-features": "2.1.0",
@@ -71,12 +71,12 @@
71
71
  "uikit": "3.21.9",
72
72
  "uuid": "10.0.0",
73
73
  "webpack": "5.93.0",
74
- "@projectcaluma/ember-workflow": "13.0.1",
75
- "@projectcaluma/ember-testing": "13.0.1"
74
+ "@projectcaluma/ember-testing": "13.0.2",
75
+ "@projectcaluma/ember-workflow": "13.0.2"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "ember-source": ">= 4.0.0",
79
- "@projectcaluma/ember-workflow": "^13.0.1"
79
+ "@projectcaluma/ember-workflow": "^13.0.2"
80
80
  },
81
81
  "dependenciesMeta": {
82
82
  "@projectcaluma/ember-core": {