@projectcaluma/ember-form 11.0.0-beta.13 → 11.0.0-beta.14

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@projectcaluma/ember-form-v11.0.0-beta.14](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-v11.0.0-beta.13...@projectcaluma/ember-form-v11.0.0-beta.14) (2022-03-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **form:** make sure table controls are always visible ([8cd97d2](https://github.com/projectcaluma/ember-caluma/commit/8cd97d204539f2e84b9baf9841591460bddf145a))
7
+
1
8
  # [@projectcaluma/ember-form-v11.0.0-beta.13](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-v11.0.0-beta.12...@projectcaluma/ember-form-v11.0.0-beta.13) (2022-03-11)
2
9
 
3
10
 
@@ -1,17 +1,7 @@
1
1
  import { assert } from "@ember/debug";
2
2
  import { action } from "@ember/object";
3
3
  import Component from "@glimmer/component";
4
- import UIkit from "uikit";
5
-
6
- async function confirm(text) {
7
- try {
8
- await UIkit.modal.confirm(text);
9
-
10
- return true;
11
- } catch (error) {
12
- return false;
13
- }
14
- }
4
+ import { confirm } from "ember-uikit";
15
5
 
16
6
  export default class CfFieldInputActionButtonComponent extends Component {
17
7
  constructor(...args) {
@@ -29,7 +29,7 @@
29
29
  @color="link"
30
30
  @onClick={{fn this.edit document}}
31
31
  title={{t "caluma.form.edit"}}
32
- class="uk-flex-inline uk-margin-small-left"
32
+ class="uk-flex-inline uk-margin-small-left table-controls"
33
33
  data-test-edit-row
34
34
  >
35
35
  <UkIcon @icon="pencil" />
@@ -40,7 +40,7 @@
40
40
  @color="link"
41
41
  @onClick={{fn (perform this.delete) document}}
42
42
  title={{t "caluma.form.delete"}}
43
- class="uk-flex-inline uk-margin-small-left"
43
+ class="uk-flex-inline uk-margin-small-left table-controls"
44
44
  data-test-delete-row
45
45
  >
46
46
  <UkIcon @icon="trash" />
@@ -5,22 +5,12 @@ import Component from "@glimmer/component";
5
5
  import { tracked } from "@glimmer/tracking";
6
6
  import { queryManager } from "ember-apollo-client";
7
7
  import { dropTask } from "ember-concurrency";
8
- import UIkit from "uikit";
8
+ import { confirm } from "ember-uikit";
9
9
 
10
10
  import removeDocumentMutation from "@projectcaluma/ember-form/gql/mutations/remove-document.graphql";
11
11
  import saveDocumentMutation from "@projectcaluma/ember-form/gql/mutations/save-document.graphql";
12
12
  import { parseDocument } from "@projectcaluma/ember-form/lib/parsers";
13
13
 
14
- async function confirm(text) {
15
- try {
16
- await UIkit.modal.confirm(text);
17
-
18
- return true;
19
- } catch (error) {
20
- return false;
21
- }
22
- }
23
-
24
14
  export default class CfFieldInputTableComponent extends Component {
25
15
  @service notification;
26
16
  @service intl;
@@ -5,6 +5,11 @@
5
5
 
6
6
  @import "../uikit-overwrites";
7
7
 
8
+ .table-controls > .uk-icon {
9
+ min-height: 20px;
10
+ min-width: 20px;
11
+ }
12
+
8
13
  .cf-checkbox_label {
9
14
  display: block;
10
15
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form",
3
- "version": "11.0.0-beta.13",
3
+ "version": "11.0.0-beta.14",
4
4
  "description": "Ember addon for rendering Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -18,7 +18,7 @@
18
18
  "@glimmer/component": "^1.0.4",
19
19
  "@glimmer/tracking": "^1.0.4",
20
20
  "@projectcaluma/ember-core": "^11.0.0-beta.5",
21
- "ember-apollo-client": "^3.2.0",
21
+ "ember-apollo-client": "^3.2.1",
22
22
  "ember-auto-import": "^2.4.0",
23
23
  "ember-autoresize-modifier": "^0.5.0",
24
24
  "ember-cli-babel": "^7.26.11",
@@ -33,7 +33,7 @@
33
33
  "ember-pikaday": "^4.0.0",
34
34
  "ember-power-select": "^5.0.4",
35
35
  "ember-resources": "^4.4.0",
36
- "ember-uikit": "^5.0.0",
36
+ "ember-uikit": "^5.1.0",
37
37
  "ember-validators": "^4.1.2",
38
38
  "graphql": "^15.8.0",
39
39
  "jexl": "^2.3.0",
@@ -47,7 +47,7 @@
47
47
  "@embroider/test-setup": "1.5.0",
48
48
  "@faker-js/faker": "6.0.0-beta.0",
49
49
  "@projectcaluma/ember-testing": "11.0.0-beta.4",
50
- "@projectcaluma/ember-workflow": "11.0.0-beta.4",
50
+ "@projectcaluma/ember-workflow": "11.0.0-beta.5",
51
51
  "broccoli-asset-rev": "3.0.0",
52
52
  "ember-cli": "3.28.5",
53
53
  "ember-cli-code-coverage": "1.0.3",