@c8y/ng1-modules 1018.191.0 → 1018.192.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.
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
c8y-smart-rest-validate-unique-msg-id-in-template="$ctrl.template"
|
|
14
14
|
original-msg-id="$ctrl.originalMsgId"
|
|
15
15
|
placeholder="{{ 'e.g.' | translate }} 11"
|
|
16
|
+
data-cy="responseEditor--response-id"
|
|
16
17
|
required
|
|
17
18
|
/>
|
|
18
19
|
<c8y-error-feedback field="responseTemplateForm.msgId">
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
class="form-control"
|
|
32
33
|
ng-model="$ctrl.responseTemplate.name"
|
|
33
34
|
placeholder="{{ 'e.g. My response template' | translate }}"
|
|
35
|
+
data-cy="responseEditor--response-name"
|
|
34
36
|
required
|
|
35
37
|
/>
|
|
36
38
|
<c8y-error-feedback field="responseTemplateForm.name"></c8y-error-feedback>
|
|
@@ -46,6 +48,7 @@
|
|
|
46
48
|
type="text"
|
|
47
49
|
class="form-control"
|
|
48
50
|
ng-model="$ctrl.responseTemplate.base"
|
|
51
|
+
data-cy="responseEditor--response-base-pattern"
|
|
49
52
|
ng-pattern="$ctrl.validation.jsonPath.pattern"
|
|
50
53
|
/>
|
|
51
54
|
<c8y-error-feedback field="responseTemplateForm.base">
|
|
@@ -64,6 +67,7 @@
|
|
|
64
67
|
type="text"
|
|
65
68
|
class="form-control"
|
|
66
69
|
ng-model="$ctrl.responseTemplate.condition"
|
|
70
|
+
data-cy="responseEditor--response-condition"
|
|
67
71
|
ng-pattern="$ctrl.validation.jsonPath.pattern"
|
|
68
72
|
/>
|
|
69
73
|
<c8y-error-feedback field="responseTemplateForm.condition">
|
|
@@ -95,6 +99,7 @@
|
|
|
95
99
|
type="text"
|
|
96
100
|
class="form-control"
|
|
97
101
|
ng-model="pattern.path"
|
|
102
|
+
data-cy="responseEditor--response-pattern-path"
|
|
98
103
|
ng-pattern="$ctrl.validation.jsonPath.pattern"
|
|
99
104
|
placeholder="{{ 'e.g.' | translate }} c8y_SoftwareList[*].name"
|
|
100
105
|
required
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
class="btn-dot btn-dot--danger"
|
|
105
110
|
type="button"
|
|
106
111
|
aria-label="{{ 'Remove' | translate }}"
|
|
112
|
+
data-cy="responseEditor--remove-pattern"
|
|
107
113
|
uib-tooltip="{{ 'Remove' | translate }}"
|
|
108
114
|
tooltip-popup-delay="500"
|
|
109
115
|
tooltip-append-to-body="true"
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
class="btn btn-default"
|
|
129
135
|
type="button"
|
|
130
136
|
title="{{ 'Add pattern' | translate }}"
|
|
137
|
+
data-cy="responseEditor--add-pattern-btn"
|
|
131
138
|
ng-click="$ctrl.addPattern($ctrl.responseTemplate); responseTemplateForm.$setDirty()"
|
|
132
139
|
>
|
|
133
140
|
<i c8y-icon="plus-circle"></i>
|
|
@@ -149,6 +156,7 @@
|
|
|
149
156
|
class="btn btn-danger"
|
|
150
157
|
type="button"
|
|
151
158
|
title="{{ 'Remove' | translate }}"
|
|
159
|
+
data-cy="responseEditor--remove-btn"
|
|
152
160
|
ng-if="$ctrl.originalMsgId"
|
|
153
161
|
ng-click="$ctrl.remove()"
|
|
154
162
|
>
|
|
@@ -159,6 +167,7 @@
|
|
|
159
167
|
type="button"
|
|
160
168
|
title="{{ 'Save' | translate }}"
|
|
161
169
|
ng-click="$ctrl.save()"
|
|
170
|
+
data-cy="responseEditor--save-btn"
|
|
162
171
|
ng-disabled="responseTemplateForm.$invalid || responseTemplateForm.$pristine || $ctrl.responseTemplate.patterns.length === 0"
|
|
163
172
|
>
|
|
164
173
|
{{ 'Save' | translate }}
|