@projectcaluma/ember-analytics 12.1.0 → 12.3.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.
@@ -33,7 +33,7 @@ export default class CaFieldFormComponent extends Component {
33
33
  this.field = Changeset(
34
34
  new Field(),
35
35
  lookupValidator(FieldValidations),
36
- FieldValidations
36
+ FieldValidations,
37
37
  );
38
38
  }
39
39
 
@@ -73,15 +73,15 @@ export default class CaFieldFormComponent extends Component {
73
73
 
74
74
  if (this.field.isInvalid) {
75
75
  this.notification.danger(
76
- this.intl.t(`caluma.analytics.notification.field-invalid`)
76
+ this.intl.t(`caluma.analytics.notification.field-invalid`),
77
77
  );
78
78
  } else if (
79
79
  this.analyticsFields.find(
80
- (existing) => existing.alias === this.field.get("alias")
80
+ (existing) => existing.alias === this.field.get("alias"),
81
81
  )
82
82
  ) {
83
83
  this.notification.danger(
84
- this.intl.t(`caluma.analytics.notification.alias-exists`)
84
+ this.intl.t(`caluma.analytics.notification.alias-exists`),
85
85
  );
86
86
  } else {
87
87
  const { id, alias, dataSource, aggregateFunction, showOutput } =
@@ -65,7 +65,7 @@ export default class CaFieldSelectComponent extends Component {
65
65
  update(value) {
66
66
  assert(
67
67
  "A listener for updates on CaFieldSelectComponent has to be set.",
68
- this.args.onSelect
68
+ this.args.onSelect,
69
69
  );
70
70
  set(this, "_selectedOption", value);
71
71
  this.args.onSelect(this._selectedOption);
@@ -87,7 +87,7 @@ export default class CaFieldSelectComponent extends Component {
87
87
  prefix: this.args.parentPath ?? "",
88
88
  },
89
89
  },
90
- "analyticsTable.availableFields"
90
+ "analyticsTable.availableFields",
91
91
  );
92
92
  this.fetchedFor = this.isRoot ? "_root_" : this.args.parentPath;
93
93
  this.options = options.edges.map((edge) => edge.node);
@@ -95,7 +95,7 @@ export default class CaFieldSelectComponent extends Component {
95
95
  } catch (error) {
96
96
  console.error(error);
97
97
  this.notification.danger(
98
- this.intl.t("caluma.analytics.notification.fetch-error")
98
+ this.intl.t("caluma.analytics.notification.fetch-error"),
99
99
  );
100
100
  }
101
101
  }
@@ -15,7 +15,7 @@ export default class CaFieldSelectorListCaFieldFunctionSelectComponent extends C
15
15
  @tracked aggregationFunctions = trackedTask(
16
16
  this,
17
17
  this.getAggregationFunctions,
18
- () => [this.args.field, this.args.tableSlug]
18
+ () => [this.args.field, this.args.tableSlug],
19
19
  );
20
20
 
21
21
  @task
@@ -32,17 +32,17 @@ export default class CaFieldSelectorListCaFieldFunctionSelectComponent extends C
32
32
  prefix,
33
33
  },
34
34
  },
35
- "analyticsTable.availableFields"
35
+ "analyticsTable.availableFields",
36
36
  );
37
37
  const fields = options.edges.map((edge) => edge.node);
38
38
  const field = fields.find(
39
- (field) => field.sourcePath === this.args.field.dataSource
39
+ (field) => field.sourcePath === this.args.field.dataSource,
40
40
  );
41
41
  return field?.supportedFunctions ?? [];
42
42
  } catch (error) {
43
43
  console.error(error);
44
44
  this.notification.danger(
45
- this.intl.t("caluma.analytics.notification.fetch-error")
45
+ this.intl.t("caluma.analytics.notification.fetch-error"),
46
46
  );
47
47
  }
48
48
  }
@@ -52,7 +52,7 @@ export default class CaFieldSelectorListComponent extends Component {
52
52
  } catch (error) {
53
53
  console.error(error);
54
54
  this.notification.danger(
55
- this.intl.t("caluma.analytics.notification.delete-error")
55
+ this.intl.t("caluma.analytics.notification.delete-error"),
56
56
  );
57
57
  }
58
58
  }
@@ -72,12 +72,12 @@ export default class CaFieldSelectorListComponent extends Component {
72
72
  });
73
73
 
74
74
  this.notification.success(
75
- this.intl.t("caluma.analytics.notification.reorder-success")
75
+ this.intl.t("caluma.analytics.notification.reorder-success"),
76
76
  );
77
77
  this._fields = null;
78
78
  } catch (e) {
79
79
  this.notification.danger(
80
- this.intl.t("caluma.analytics.notification.reorder-error")
80
+ this.intl.t("caluma.analytics.notification.reorder-error"),
81
81
  );
82
82
  }
83
83
  }
@@ -49,7 +49,7 @@ export default class CaFilterModalComponent extends Component {
49
49
  const filter = this.newFilter.trim();
50
50
  if (this.filters.includes(filter)) {
51
51
  this.notification.warning(
52
- this.intl.t("caluma.analytics.notification.filter-exists")
52
+ this.intl.t("caluma.analytics.notification.filter-exists"),
53
53
  );
54
54
  } else {
55
55
  this.filters = [filter, ...this.filters];
@@ -47,17 +47,17 @@ export default class CaReportBuilderComponent extends Component {
47
47
  input,
48
48
  },
49
49
  },
50
- "saveAnalyticsTable.analyticsTable"
50
+ "saveAnalyticsTable.analyticsTable",
51
51
  );
52
52
  yield this.args.onAdd?.(
53
53
  this.args.analyticsTable.slug,
54
- this.args.analyticsTable.startingObject
54
+ this.args.analyticsTable.startingObject,
55
55
  );
56
56
  this.router.transitionTo("reports.edit", data.slug);
57
57
  } catch (error) {
58
58
  console.error(error);
59
59
  this.notification.danger(
60
- this.intl.t(`caluma.analytics.notification.create-error`)
60
+ this.intl.t(`caluma.analytics.notification.create-error`),
61
61
  );
62
62
  }
63
63
  }
@@ -26,7 +26,7 @@ export default class CaReportPreviewComponent extends Component {
26
26
  slug: this.args.slug,
27
27
  },
28
28
  },
29
- "analyticsTable"
29
+ "analyticsTable",
30
30
  );
31
31
  const headings = result.fields.edges
32
32
  .filter(({ node: { showOutput } }) => showOutput)
@@ -36,14 +36,14 @@ export default class CaReportPreviewComponent extends Component {
36
36
  headings.map(({ alias }) =>
37
37
  node.edges
38
38
  .map(({ node }) => node)
39
- .find((node) => node.alias === alias)
40
- )
39
+ .find((node) => node.alias === alias),
40
+ ),
41
41
  ),
42
42
  summary: result.resultData.summary.edges.length
43
43
  ? headings.map(({ alias: headingAlias }) =>
44
44
  result.resultData.summary.edges
45
45
  .map(({ node }) => node)
46
- .find(({ alias }) => alias === headingAlias)
46
+ .find(({ alias }) => alias === headingAlias),
47
47
  )
48
48
  : null,
49
49
 
@@ -52,7 +52,7 @@ export default class CaReportPreviewComponent extends Component {
52
52
  } catch (error) {
53
53
  console.error(error);
54
54
  this.notification.danger(
55
- this.intl.t("caluma.analytics.notification.fetch-error")
55
+ this.intl.t("caluma.analytics.notification.fetch-error"),
56
56
  );
57
57
  }
58
58
  }
@@ -37,7 +37,7 @@ export default class ReportsEditController extends Controller {
37
37
  } catch (error) {
38
38
  console.error(error);
39
39
  this.notification.danger(
40
- this.intl.t(`caluma.analytics.notification.delete-error`)
40
+ this.intl.t(`caluma.analytics.notification.delete-error`),
41
41
  );
42
42
  }
43
43
  }
@@ -18,7 +18,7 @@ export default class ReportsIndexRoute extends Route {
18
18
  fetchPolicy: "network-only",
19
19
  query: getAllAnalyticsTableQuery,
20
20
  },
21
- "allAnalyticsTables"
21
+ "allAnalyticsTables",
22
22
  );
23
23
 
24
24
  return tables.edges.map((edge) => edge.node);
@@ -26,7 +26,7 @@ export default class ReportsNewRoute extends Route {
26
26
  startingObject: "CASES",
27
27
  }),
28
28
  lookupValidator(AnalyticsTableValidations),
29
- AnalyticsTableValidations
29
+ AnalyticsTableValidations,
30
30
  );
31
31
  }
32
32
  }
@@ -8,12 +8,12 @@ export default function* getAnalyticsTable(slug) {
8
8
  fetchPolicy: "cache-and-network",
9
9
  variables: { slug },
10
10
  },
11
- "analyticsTable"
11
+ "analyticsTable",
12
12
  );
13
13
  } catch (error) {
14
14
  console.error(error);
15
15
  this.notification.danger(
16
- this.intl.t("caluma.notification.table-not-found")
16
+ this.intl.t("caluma.notification.table-not-found"),
17
17
  );
18
18
  }
19
19
  }
@@ -7,13 +7,13 @@ export default function* (input) {
7
7
  variables: { input },
8
8
  });
9
9
  this.notification.success(
10
- this.intl.t("caluma.analytics.notification.field-saved")
10
+ this.intl.t("caluma.analytics.notification.field-saved"),
11
11
  );
12
12
  return mutation;
13
13
  } catch (error) {
14
14
  console.error(error);
15
15
  this.notification.danger(
16
- this.intl.t("caluma.analytics.notification.create-error")
16
+ this.intl.t("caluma.analytics.notification.create-error"),
17
17
  );
18
18
  }
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-analytics",
3
- "version": "12.1.0",
3
+ "version": "12.3.0",
4
4
  "description": "Ember addon for Caluma analytics.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -20,17 +20,17 @@
20
20
  "ember-cli-babel": "^7.26.11",
21
21
  "ember-cli-htmlbars": "^6.2.0",
22
22
  "ember-composable-helpers": "^5.0.0",
23
- "ember-concurrency": "^2.3.7",
23
+ "ember-concurrency": "^3.0.0",
24
24
  "ember-engines-router-service": "^0.3.0",
25
25
  "ember-fetch": "^8.1.2",
26
26
  "ember-intl": "^5.7.2",
27
- "ember-power-select": "^7.0.0",
28
- "ember-resources": "^5.6.4",
27
+ "ember-power-select": "^7.1.0",
28
+ "ember-resources": "^6.3.1",
29
29
  "ember-sortable": "^5.0.0",
30
30
  "ember-uikit": "^8.0.0",
31
31
  "ember-validated-form": "^6.2.0",
32
32
  "graphql": "^15.8.0",
33
- "@projectcaluma/ember-core": "^12.1.0"
33
+ "@projectcaluma/ember-core": "^12.3.0"
34
34
  },
35
35
  "//": [
36
36
  "TODO: remove obsolete dependency to `ember-data` which is only necessary",
@@ -41,7 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@ember/optional-features": "2.0.0",
43
43
  "@ember/string": "3.1.1",
44
- "@ember/test-helpers": "3.1.0",
44
+ "@ember/test-helpers": "3.2.0",
45
45
  "@ember/test-waiters": "3.0.2",
46
46
  "@embroider/test-setup": "3.0.1",
47
47
  "@faker-js/faker": "8.0.2",
@@ -54,22 +54,22 @@
54
54
  "ember-cli-sass": "11.0.1",
55
55
  "ember-cli-sri": "2.1.1",
56
56
  "ember-cli-terser": "4.0.2",
57
- "ember-data": "4.12.0",
57
+ "ember-data": "4.12.3",
58
58
  "ember-engines": "0.9.0",
59
59
  "ember-load-initializers": "2.1.2",
60
60
  "ember-modifier": "4.1.0",
61
61
  "ember-qunit": "7.0.0",
62
- "ember-resolver": "10.1.1",
63
- "ember-source": "4.12.0",
62
+ "ember-resolver": "11.0.0",
63
+ "ember-source": "4.12.3",
64
64
  "ember-source-channel-url": "3.0.0",
65
65
  "ember-try": "2.0.0",
66
66
  "loader.js": "4.7.0",
67
67
  "qunit": "2.19.4",
68
68
  "qunit-dom": "2.0.0",
69
- "sass": "1.63.4",
70
- "uikit": "3.16.22",
71
- "webpack": "5.87.0",
72
- "@projectcaluma/ember-testing": "12.1.0"
69
+ "sass": "1.66.0",
70
+ "uikit": "3.16.23",
71
+ "webpack": "5.88.2",
72
+ "@projectcaluma/ember-testing": "12.3.0"
73
73
  },
74
74
  "peerDependency": {
75
75
  "ember-engines": "^0.9.0",