@projectcaluma/ember-analytics 11.0.0-beta.25 → 11.0.0-beta.26
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/addon/components/ca-field-selector-list/ca-field-alias-input.hbs +7 -21
- package/addon/components/ca-field-selector-list/ca-field-alias-input.js +2 -20
- package/addon/components/ca-field-selector-list.hbs +1 -1
- package/addon/components/ca-report-builder.hbs +1 -1
- package/addon/components/ca-report-builder.js +15 -3
- package/package.json +5 -5
- package/translations/de.yaml +5 -1
- package/translations/en.yaml +4 -0
- package/translations/fr.yaml +4 -0
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
name={{t "caluma.analytics.edit.delete-field"}}
|
|
9
|
-
{{on "click" this.trimAndSave}}
|
|
10
|
-
>
|
|
11
|
-
<span hidden>{{t "caluma.analytics.edit.delete-field"}}</span>
|
|
12
|
-
</button>
|
|
13
|
-
|
|
14
|
-
<input
|
|
15
|
-
data-test-field-alias-input
|
|
16
|
-
aria-label={{t "caluma.analytics.edit.display-title"}}
|
|
17
|
-
class="uk-input {{if this.hasChanged 'uk-form-success'}}"
|
|
18
|
-
value={{this.value}}
|
|
19
|
-
{{on "input" (perform this.debounceInput)}}
|
|
20
|
-
/>
|
|
21
|
-
</div>
|
|
1
|
+
<input
|
|
2
|
+
data-test-field-alias-input
|
|
3
|
+
aria-label={{t "caluma.analytics.edit.display-title"}}
|
|
4
|
+
class="uk-input"
|
|
5
|
+
value={{@value}}
|
|
6
|
+
{{on "input" (perform this.debounceInput)}}
|
|
7
|
+
/>
|
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
import { action } from "@ember/object";
|
|
2
1
|
import Component from "@glimmer/component";
|
|
3
|
-
import { tracked } from "@glimmer/tracking";
|
|
4
2
|
import { restartableTask, timeout } from "ember-concurrency";
|
|
5
3
|
|
|
6
4
|
export default class CaFieldSelectorListCaFieldAliasInputComponent extends Component {
|
|
7
|
-
@tracked _value = null;
|
|
8
|
-
|
|
9
|
-
get value() {
|
|
10
|
-
return this._value ?? this.args.value;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
get hasChanged() {
|
|
14
|
-
return this._value !== null && this._value !== this.args.value;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@action
|
|
18
|
-
async trimAndSave() {
|
|
19
|
-
await this.args.onSave(this._value);
|
|
20
|
-
this._value = null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
5
|
@restartableTask
|
|
24
6
|
*debounceInput(event) {
|
|
25
|
-
yield timeout(
|
|
26
|
-
this.
|
|
7
|
+
yield timeout(500);
|
|
8
|
+
yield this.args.onInput(event.target.value);
|
|
27
9
|
}
|
|
28
10
|
}
|
|
@@ -12,9 +12,21 @@ export default class CaReportBuilderComponent extends Component {
|
|
|
12
12
|
@service router;
|
|
13
13
|
|
|
14
14
|
get startingObjects() {
|
|
15
|
-
//
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
// startingObjects defined by schema
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
label: this.intl.t(`caluma.analytics.starting-options.cases`),
|
|
19
|
+
value: "CASES",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: this.intl.t(`caluma.analytics.starting-options.work-items`),
|
|
23
|
+
value: "WORK_ITEMS",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: this.intl.t(`caluma.analytics.starting-options.documents`),
|
|
27
|
+
value: "DOCUMENTS",
|
|
28
|
+
},
|
|
29
|
+
];
|
|
18
30
|
}
|
|
19
31
|
|
|
20
32
|
@dropTask
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-analytics",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.26",
|
|
4
4
|
"description": "Ember addon for Caluma analytics.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@glimmer/component": "^1.1.2",
|
|
19
19
|
"@glimmer/tracking": "^1.1.2",
|
|
20
|
-
"@projectcaluma/ember-core": "^11.0.0-beta.
|
|
20
|
+
"@projectcaluma/ember-core": "^11.0.0-beta.26",
|
|
21
21
|
"ember-apollo-client": "^4.0.2",
|
|
22
22
|
"ember-auto-import": "^2.4.2",
|
|
23
23
|
"ember-cli-babel": "^7.26.11",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@ember/optional-features": "2.0.0",
|
|
46
46
|
"@ember/test-helpers": "2.8.1",
|
|
47
47
|
"@embroider/test-setup": "1.8.3",
|
|
48
|
-
"@faker-js/faker": "7.
|
|
49
|
-
"@projectcaluma/ember-testing": "11.0.0-beta.
|
|
48
|
+
"@faker-js/faker": "7.5.0",
|
|
49
|
+
"@projectcaluma/ember-testing": "11.0.0-beta.26",
|
|
50
50
|
"broccoli-asset-rev": "3.0.0",
|
|
51
51
|
"ember-cli": "3.28.5",
|
|
52
52
|
"ember-cli-code-coverage": "1.0.3",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"npm-run-all": "4.1.5",
|
|
72
72
|
"qunit": "2.19.1",
|
|
73
73
|
"qunit-dom": "2.0.0",
|
|
74
|
-
"sass": "1.54.
|
|
74
|
+
"sass": "1.54.6",
|
|
75
75
|
"webpack": "5.74.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependency": {
|
package/translations/de.yaml
CHANGED
|
@@ -15,7 +15,7 @@ caluma:
|
|
|
15
15
|
create-error: Beim Erstellen ist ein Fehler aufgetreten.
|
|
16
16
|
fetch-error: Beim Laden der Daten ist ein Fehler aufgetreten.
|
|
17
17
|
filter-exists: Filter existiert bereits!!
|
|
18
|
-
field-saved: Feld gespeichert
|
|
18
|
+
field-saved: Feld gespeichert.
|
|
19
19
|
list:
|
|
20
20
|
list-title: Liste aller Auswertungen
|
|
21
21
|
edit: Bearbeiten
|
|
@@ -42,3 +42,7 @@ caluma:
|
|
|
42
42
|
filter-placeholder: Filter...
|
|
43
43
|
delete-filter: Filter löschen
|
|
44
44
|
empty: Keine erfassten Filter
|
|
45
|
+
starting-options:
|
|
46
|
+
cases: Dossiers
|
|
47
|
+
work-items: Aufgaben
|
|
48
|
+
documents: Dokumente
|
package/translations/en.yaml
CHANGED