@projectcaluma/ember-form 12.15.3 → 12.15.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,17 +25,28 @@
25
25
  class="uk-animation-fade uk-text-danger"
26
26
  />
27
27
  {{/if}}
28
- <UkButton
29
- @color="link"
30
- @onClick={{fn this.edit document}}
31
- title={{t "caluma.form.edit"}}
32
- class="uk-flex-inline uk-margin-small-left table-controls"
33
- data-test-edit-row
34
- >
35
- <UkIcon @icon="pencil" />
36
- <span hidden>{{t "caluma.form.edit"}}</span>
37
- </UkButton>
38
- {{#unless @disabled}}
28
+ {{#if @disabled}}
29
+ <UkButton
30
+ @color="link"
31
+ @onClick={{fn this.edit document}}
32
+ title={{t "caluma.form.view"}}
33
+ class="uk-flex-inline uk-margin-small-left table-controls"
34
+ data-test-edit-row
35
+ >
36
+ <UkIcon @icon="eye" />
37
+ <span hidden>{{t "caluma.form.view"}}</span>
38
+ </UkButton>
39
+ {{else}}
40
+ <UkButton
41
+ @color="link"
42
+ @onClick={{fn this.edit document}}
43
+ title={{t "caluma.form.edit"}}
44
+ class="uk-flex-inline uk-margin-small-left table-controls"
45
+ data-test-edit-row
46
+ >
47
+ <UkIcon @icon="pencil" />
48
+ <span hidden>{{t "caluma.form.edit"}}</span>
49
+ </UkButton>
39
50
  <UkButton
40
51
  @color="link"
41
52
  @onClick={{fn (perform this.delete) document}}
@@ -46,7 +57,7 @@
46
57
  <UkIcon @icon="trash" />
47
58
  <span hidden>{{t "caluma.form.delete"}}</span>
48
59
  </UkButton>
49
- {{/unless}}
60
+ {{/if}}
50
61
  </div>
51
62
  </td>
52
63
  </tr>
@@ -126,7 +126,9 @@ export default class CfFieldInputTableComponent extends Component {
126
126
  this.documentToEditIsNew = false;
127
127
  }
128
128
 
129
- yield this.args.field.validate.perform();
129
+ if (!this.args.disabled) {
130
+ yield this.args.field.validate.perform();
131
+ }
130
132
 
131
133
  this.showAddModal = false;
132
134
  this.documentToEdit = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form",
3
- "version": "12.15.3",
3
+ "version": "12.15.5",
4
4
  "description": "Ember addon for rendering Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -30,7 +30,7 @@
30
30
  "ember-math-helpers": "^4.0.0",
31
31
  "ember-power-select": "^7.2.0",
32
32
  "ember-truth-helpers": "^4.0.3",
33
- "ember-uikit": "^9.1.1",
33
+ "ember-uikit": "^9.1.2",
34
34
  "ember-validators": "^4.1.2",
35
35
  "flatpickr": "^4.6.13",
36
36
  "graphql": "^15.8.0",
@@ -39,7 +39,7 @@
39
39
  "luxon": "^3.4.4",
40
40
  "reactiveweb": "^1.2.3",
41
41
  "tracked-toolbox": "^2.0.0",
42
- "@projectcaluma/ember-core": "^12.15.3"
42
+ "@projectcaluma/ember-core": "^12.15.5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@ember/optional-features": "2.1.0",
@@ -70,12 +70,12 @@
70
70
  "sass": "1.70.0",
71
71
  "uuid": "9.0.1",
72
72
  "webpack": "5.91.0",
73
- "@projectcaluma/ember-testing": "12.15.3",
74
- "@projectcaluma/ember-workflow": "12.15.3"
73
+ "@projectcaluma/ember-workflow": "12.15.5",
74
+ "@projectcaluma/ember-testing": "12.15.5"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "ember-source": "^4.0.0",
78
- "@projectcaluma/ember-workflow": "^12.15.3"
78
+ "@projectcaluma/ember-workflow": "^12.15.5"
79
79
  },
80
80
  "dependenciesMeta": {
81
81
  "@projectcaluma/ember-core": {
@@ -6,6 +6,7 @@ caluma:
6
6
  edit: "Bearbeiten"
7
7
  cancel: "Abbrechen"
8
8
  close: "Schliessen"
9
+ view: "Anzeigen"
9
10
  selectFile: "Durchsuchen..."
10
11
  deleteRow: "Möchten Sie diese Zeile wirklich löschen?"
11
12
  addRow: "Zeile hinzufügen"
@@ -6,6 +6,7 @@ caluma:
6
6
  edit: "Edit"
7
7
  cancel: "Cancel"
8
8
  close: "Close"
9
+ view: "View"
9
10
  selectFile: "Browse..."
10
11
  deleteRow: "Do you really want to delete this row?"
11
12
  addRow: "Add row"
@@ -6,6 +6,7 @@ caluma:
6
6
  edit: "modifier"
7
7
  cancel: "annuler"
8
8
  close: "fermer"
9
+ view: "Montrer"
9
10
  selectFile: "Sélectionner..."
10
11
  deleteRow: "Voulez-vous supprimer cette ligne?"
11
12
  addRow: "Ajouter une ligne"