@projectcaluma/ember-form-builder 11.0.0-beta.12 → 11.0.0-beta.15

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # [@projectcaluma/ember-form-builder-v11.0.0-beta.15](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-builder-v11.0.0-beta.14...@projectcaluma/ember-form-builder-v11.0.0-beta.15) (2022-08-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * **analytics:** adds analytics module for caluma ([#1655](https://github.com/projectcaluma/ember-caluma/issues/1655)) ([9573abe](https://github.com/projectcaluma/ember-caluma/commit/9573abe95cd39cb1467113026f2ab7773c3c9143))
7
+
8
+ # [@projectcaluma/ember-form-builder-v11.0.0-beta.14](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-builder-v11.0.0-beta.13...@projectcaluma/ember-form-builder-v11.0.0-beta.14) (2022-06-09)
9
+
10
+
11
+ ### Features
12
+
13
+ * **caluma:** use new filter syntax of caluma ([7a00c03](https://github.com/projectcaluma/ember-caluma/commit/7a00c03a103933d9e48dd88adb7382441a298742))
14
+
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ * **caluma:** `ember-caluma` now requires Caluma version >=
19
+ 8.0.0-beta.6
20
+
21
+ # [@projectcaluma/ember-form-builder-v11.0.0-beta.13](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-builder-v11.0.0-beta.12...@projectcaluma/ember-form-builder-v11.0.0-beta.13) (2022-05-09)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **deps:** update ember-engines ([5aa5300](https://github.com/projectcaluma/ember-caluma/commit/5aa530074ea7dc08267d8ccc411eb1538537a1b5))
27
+ * **resources:** fix deprecations of ember-resources ([7a84c5c](https://github.com/projectcaluma/ember-caluma/commit/7a84c5c78d5b28f7b5393c64722907728dd5f42b))
28
+
1
29
  # [@projectcaluma/ember-form-builder-v11.0.0-beta.12](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-builder-v11.0.0-beta.11...@projectcaluma/ember-form-builder-v11.0.0-beta.12) (2022-04-07)
2
30
 
3
31
 
@@ -4,7 +4,7 @@ import { macroCondition, isTesting } from "@embroider/macros";
4
4
  import Component from "@glimmer/component";
5
5
  import { queryManager } from "ember-apollo-client";
6
6
  import { timeout, restartableTask, dropTask } from "ember-concurrency";
7
- import { useTask } from "ember-resources";
7
+ import { trackedTask } from "ember-resources/util/ember-concurrency";
8
8
 
9
9
  import FormValidations from "../../validations/form";
10
10
 
@@ -25,7 +25,7 @@ export default class CfbFormEditorGeneral extends Component {
25
25
  return this._data.value?.[0]?.node;
26
26
  }
27
27
 
28
- _data = useTask(this, this.fetchData, () => [this.args.slug]);
28
+ _data = trackedTask(this, this.fetchData, () => [this.args.slug]);
29
29
 
30
30
  @restartableTask
31
31
  *fetchData() {
@@ -2,7 +2,7 @@ import { action } from "@ember/object";
2
2
  import Component from "@glimmer/component";
3
3
  import { queryManager } from "ember-apollo-client";
4
4
  import { dropTask } from "ember-concurrency";
5
- import { useTask } from "ember-resources";
5
+ import { trackedTask } from "ember-resources/util/ember-concurrency";
6
6
 
7
7
  import allFormatValidatorsQuery from "@projectcaluma/ember-form-builder/gql/queries/all-format-validators.graphql";
8
8
 
@@ -21,7 +21,7 @@ export default class CfbFormEditorQuestionValidation extends Component {
21
21
  );
22
22
  }
23
23
 
24
- _validators = useTask(this, this.fetchFormatValidators, () => []);
24
+ _validators = trackedTask(this, this.fetchFormatValidators, () => []);
25
25
 
26
26
  @dropTask
27
27
  *fetchFormatValidators() {
@@ -6,7 +6,7 @@ mutation AddFormQuestion($input: AddFormQuestionInput!, $search: String) {
6
6
  form {
7
7
  id
8
8
  ...FormInfo
9
- questions(search: $search) {
9
+ questions(filter: [{ search: $search }]) {
10
10
  edges {
11
11
  node {
12
12
  id
@@ -6,7 +6,7 @@ mutation RemoveFormQuestion($input: RemoveFormQuestionInput!, $search: String) {
6
6
  form {
7
7
  id
8
8
  ...FormInfo
9
- questions(search: $search) {
9
+ questions(filter: [{ search: $search }]) {
10
10
  edges {
11
11
  node {
12
12
  id
@@ -9,7 +9,7 @@ mutation ReorderFormQuestions(
9
9
  form {
10
10
  id
11
11
  ...FormInfo
12
- questions(search: $search) {
12
+ questions(filter: [{ search: $search }]) {
13
13
  edges {
14
14
  node {
15
15
  id
@@ -1,5 +1,5 @@
1
1
  query CheckFormSlug($slug: String!) {
2
- allForms(filter: [{ slug: $slug }]) {
2
+ allForms(filter: [{ slugs: [$slug] }]) {
3
3
  edges {
4
4
  node {
5
5
  id
@@ -1,5 +1,5 @@
1
1
  query CheckQuestionSlug($slug: String!) {
2
- allQuestions(filter: [{ slug: $slug }]) {
2
+ allQuestions(filter: [{ slugs: [$slug] }]) {
3
3
  edges {
4
4
  node {
5
5
  id
@@ -1,7 +1,7 @@
1
1
  #import FormInfo from '../fragments/form-info.graphql'
2
2
 
3
3
  query FormEditorGeneral($slug: String!) {
4
- allForms(filter: [{ slug: $slug }]) {
4
+ allForms(filter: [{ slugs: [$slug] }]) {
5
5
  edges {
6
6
  node {
7
7
  id
@@ -2,7 +2,7 @@
2
2
  #import FieldQuestion, FieldTableQuestion, SimpleAnswer, SimpleQuestion from '../fragments/field.graphql'
3
3
 
4
4
  query FormEditorQuestion($slug: String!) {
5
- allQuestions(filter: [{ slug: $slug }]) {
5
+ allQuestions(filter: [{ slugs: [$slug] }]) {
6
6
  edges {
7
7
  node {
8
8
  id
@@ -1,12 +1,12 @@
1
1
  #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
- query SearchFormQuestion($slug: String!, $search: String, $archived: Boolean) {
4
- allForms(filter: [{ slug: $slug }]) {
3
+ query SearchFormQuestion($slug: String!, $search: String) {
4
+ allForms(filter: [{ slugs: [$slug] }]) {
5
5
  edges {
6
6
  node {
7
7
  id
8
8
  slug
9
- questions(search: $search, isArchived: $archived) {
9
+ questions(filter: [{ search: $search }]) {
10
10
  edges {
11
11
  node {
12
12
  id
@@ -20,9 +20,10 @@ export default class EditQuestionsEditRoute extends Route {
20
20
  {
21
21
  query: gql`
22
22
  query QuestionLabel($slug: String!) {
23
- allQuestions(slug: $slug) {
23
+ allQuestions(filter: [{ slugs: [$slug] }]) {
24
24
  edges {
25
25
  node {
26
+ id
26
27
  label
27
28
  }
28
29
  }
@@ -20,7 +20,7 @@ export default class EditRoute extends Route {
20
20
  {
21
21
  query: gql`
22
22
  query FormName($slug: String!) {
23
- allForms(slug: $slug) {
23
+ allForms(filter: [{ slugs: [$slug] }]) {
24
24
  edges {
25
25
  node {
26
26
  name
@@ -3,7 +3,7 @@
3
3
  @import "../cfb-form-editor/question-list/item";
4
4
  @import "../cfb-form-editor/question";
5
5
  @import "../cfb-navigation";
6
- @import "../cfb-powerselect";
6
+ @import "../cfb-uikit-powerselect";
7
7
 
8
8
  .cfb-pointer {
9
9
  cursor: pointer;
@@ -0,0 +1,2 @@
1
+ @import "@projectcaluma/ember-core";
2
+ @import "ember-power-select";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form-builder",
3
- "version": "11.0.0-beta.12",
3
+ "version": "11.0.0-beta.15",
4
4
  "description": "Ember engine for building Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -20,69 +20,74 @@
20
20
  "dependencies": {
21
21
  "@ember/render-modifiers": "^2.0.4",
22
22
  "@ember/string": "^3.0.0",
23
- "@embroider/macros": "^1.5.0",
24
- "@glimmer/component": "^1.1.1",
25
- "@glimmer/tracking": "^1.1.1",
26
- "@projectcaluma/ember-core": "^11.0.0-beta.6",
27
- "@projectcaluma/ember-form": "^11.0.0-beta.17",
23
+ "@embroider/macros": "^1.8.3",
24
+ "@glimmer/component": "^1.1.2",
25
+ "@glimmer/tracking": "^1.1.2",
26
+ "@projectcaluma/ember-core": "^11.0.0-beta.8",
27
+ "@projectcaluma/ember-form": "^11.0.0-beta.21",
28
28
  "codejar": "^3.6.0",
29
- "ember-apollo-client": "^4.0.2",
30
- "ember-auto-import": "^2.4.1",
31
- "ember-changeset": "^4.0.0",
32
- "ember-changeset-validations": "^4.0.0",
29
+ "ember-apollo-client": "~4.0.2",
30
+ "ember-auto-import": "^2.4.2",
31
+ "ember-changeset": "^4.1.0",
32
+ "ember-changeset-validations": "^4.1.0",
33
33
  "ember-cli-babel": "^7.26.11",
34
- "ember-cli-htmlbars": "^6.0.1",
34
+ "ember-cli-htmlbars": "^6.1.0",
35
35
  "ember-composable-helpers": "^5.0.0",
36
36
  "ember-concurrency": "^2.2.1",
37
37
  "ember-engines-router-service": "^0.3.0",
38
38
  "ember-fetch": "^8.1.1",
39
39
  "ember-intl": "^5.7.2",
40
- "ember-math-helpers": "^2.18.1",
40
+ "ember-math-helpers": "^2.18.2",
41
41
  "ember-pikaday": "^4.0.0",
42
42
  "ember-power-select": "^5.0.4",
43
- "ember-resources": "^4.4.0",
43
+ "ember-resources": "^5.0.2",
44
44
  "ember-test-selectors": "^6.0.0",
45
- "ember-uikit": "^5.1.1",
45
+ "ember-uikit": "^5.1.3",
46
46
  "ember-validated-form": "^5.3.0",
47
47
  "graphql": "^15.8.0",
48
48
  "graphql-tag": "^2.12.6",
49
- "highlight.js": "^11.5.0",
49
+ "highlight.js": "^11.6.0",
50
50
  "highlightjs-jexl": "^0.0.5",
51
51
  "jexl": "^2.3.0"
52
52
  },
53
- "//": "TODO: remove ember-data when https://github.com/ember-engines/ember-engines/pull/794 is released",
53
+ "//": [
54
+ "TODO: remove obsolete dependency to `ember-data` which is only necessary",
55
+ "because @embroider/macros `dependencySatisfies` still resolves to `true`",
56
+ "even if the dependency is only present in the workspace (because of the",
57
+ "docs app) but not as direct dependency of the package."
58
+ ],
54
59
  "devDependencies": {
55
60
  "@ember/optional-features": "2.0.0",
56
- "@ember/test-helpers": "2.7.0",
57
- "@embroider/test-setup": "1.5.0",
58
- "@faker-js/faker": "6.1.2",
59
- "@projectcaluma/ember-testing": "11.0.0-beta.6",
61
+ "@ember/test-helpers": "2.8.1",
62
+ "@embroider/test-setup": "1.8.3",
63
+ "@faker-js/faker": "7.3.0",
64
+ "@projectcaluma/ember-testing": "11.0.0-beta.9",
60
65
  "broccoli-asset-rev": "3.0.0",
61
66
  "ember-autoresize-modifier": "^0.5.0",
62
67
  "ember-cli": "3.28.5",
63
68
  "ember-cli-code-coverage": "1.0.3",
64
- "ember-cli-dependency-checker": "3.2.0",
69
+ "ember-cli-dependency-checker": "3.3.1",
65
70
  "ember-cli-inject-live-reload": "2.1.0",
66
- "ember-cli-mirage": "3.0.0-alpha.2",
71
+ "ember-cli-mirage": "3.0.0-alpha.3",
67
72
  "ember-cli-sri": "2.1.1",
68
73
  "ember-cli-terser": "4.0.2",
69
- "ember-data": "3.28.9",
74
+ "ember-data": "3.28.10",
70
75
  "ember-disable-prototype-extensions": "1.1.3",
71
- "ember-engines": "0.8.20",
76
+ "ember-engines": "0.8.22",
72
77
  "ember-export-application-global": "2.0.1",
73
78
  "ember-load-initializers": "2.1.2",
74
79
  "ember-maybe-import-regenerator": "1.0.0",
75
80
  "ember-qunit": "5.1.5",
76
81
  "ember-resolver": "8.0.3",
77
- "ember-source": "3.28.8",
82
+ "ember-source": "3.28.9",
78
83
  "ember-source-channel-url": "3.0.0",
79
84
  "ember-try": "2.0.0",
80
85
  "loader.js": "4.7.0",
81
- "miragejs": "0.1.43",
86
+ "miragejs": "0.1.45",
82
87
  "npm-run-all": "4.1.5",
83
- "qunit": "2.18.1",
88
+ "qunit": "2.19.1",
84
89
  "qunit-dom": "2.0.0",
85
- "webpack": "5.71.0"
90
+ "webpack": "5.73.0"
86
91
  },
87
92
  "engines": {
88
93
  "node": "12.* || 14.* || >= 16"
@@ -1,31 +0,0 @@
1
- // Backgrounds
2
- $ember-power-select-selected-background: lighten(
3
- $global-secondary-background,
4
- 25%
5
- ) !default;
6
- $ember-power-select-highlighted-background: lighten(
7
- $ember-power-select-selected-background,
8
- 25%
9
- ) !default;
10
- $ember-power-select-multiple-selection-background-color: $ember-power-select-selected-background !default;
11
-
12
- // Texts
13
- $ember-power-select-highlighted-color: #ffffff !default;
14
- $ember-power-select-multiple-selection-color: #ffffff !default;
15
-
16
- .ember-power-select-option[aria-selected="true"] {
17
- color: $ember-power-select-highlighted-color;
18
- }
19
-
20
- // Borders
21
- $ember-power-select-focus-outline: 0 !default;
22
- $ember-power-select-border-color: $global-border !default;
23
- $ember-power-select-default-border-radius: 0 !default;
24
- $ember-power-select-multiple-option-border-color: $ember-power-select-border-color !default;
25
-
26
- // Other
27
- $ember-power-select-line-height: 38px !default;
28
- $ember-power-select-multiple-option-padding: 0 8px !default;
29
- $ember-power-select-multiple-option-line-height: 32px !default;
30
-
31
- @import "ember-power-select";