@projectcaluma/ember-form 14.16.0 → 14.17.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,7 +1,7 @@
1
1
  {{#if @compare}}
2
2
  <CfField::InputCompare::TextDiff
3
- @currentValue={{format-date @field.answer.value}}
4
- @historicalValue={{format-date @field.answer.historicalValue}}
3
+ @currentValue={{format-date @field.answer.value format="date"}}
4
+ @historicalValue={{format-date @field.answer.historicalValue format="date"}}
5
5
  />
6
6
  {{else}}
7
7
  <div class="uk-inline uk-width-1-1">
@@ -4,6 +4,8 @@
4
4
  {{t
5
5
  "caluma.form.compare.note"
6
6
  username=(user-name (or @historyUserId @field.answer.raw.historyUserId))
7
- date=(format-date (or @historyDate @field.answer.raw.historyDate))
7
+ date=(format-date
8
+ (or @historyDate @field.answer.raw.historyDate) format="datetime"
9
+ )
8
10
  }}
9
11
  </div>
@@ -7,12 +7,7 @@
7
7
  }}
8
8
  {{#each @field.selected as |opt i|}}{{if (gt i 0) ", "}}{{opt.label}}{{/each}}
9
9
  {{else if (has-question-type @field.question "date")}}
10
- {{format-date
11
- @field.answer.value
12
- day="2-digit"
13
- month="2-digit"
14
- year="numeric"
15
- }}
10
+ {{format-date @field.answer.value format="date"}}
16
11
  {{else if (has-question-type @field.question "files")}}
17
12
  {{#each @field.answer.value as |file|}}
18
13
  <UkButton
@@ -11,9 +11,9 @@
11
11
  {{t "caluma.form.compare.timeline.current"}}
12
12
  {{else}}
13
13
  {{option.label}}:
14
- {{format-date option.startDate}}
14
+ {{format-date option.startDate format="date"}}
15
15
  {{#if option.endDate}}
16
16
  -
17
- {{format-date option.endDate}}{{/if}}
17
+ {{format-date option.endDate format="date"}}{{/if}}
18
18
  {{/if}}
19
19
  </PowerSelect>
@@ -3,15 +3,15 @@
3
3
  $diff-danger-background: color.adjust(
4
4
  $global-danger-background,
5
5
  $lightness: 25%
6
- );
6
+ ) !default;
7
7
  $diff-success-background: color.adjust(
8
8
  $global-success-background,
9
9
  $lightness: 30%
10
- );
10
+ ) !default;
11
11
  $diff-warning-background: color.adjust(
12
12
  $global-warning-background,
13
13
  $lightness: 25%
14
- );
14
+ ) !default;
15
15
 
16
16
  .cf-compare {
17
17
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form",
3
- "version": "14.16.0",
3
+ "version": "14.17.0",
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": "^14.16.0"
43
+ "@projectcaluma/ember-core": "^14.17.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@ember/optional-features": "3.0.0",
@@ -75,12 +75,12 @@
75
75
  "uikit": "3.25.6",
76
76
  "uuid": "14.0.1",
77
77
  "webpack": "5.109.2",
78
- "@projectcaluma/ember-testing": "14.16.0",
79
- "@projectcaluma/ember-workflow": "14.16.0"
78
+ "@projectcaluma/ember-workflow": "14.17.0",
79
+ "@projectcaluma/ember-testing": "14.17.0"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "ember-source": ">= 4.0.0",
83
- "@projectcaluma/ember-workflow": "^14.16.0"
83
+ "@projectcaluma/ember-workflow": "^14.17.0"
84
84
  },
85
85
  "dependenciesMeta": {
86
86
  "@projectcaluma/ember-core": {