@truedat/audit 4.44.1 → 4.44.4

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +5 -5
  3. package/src/components/EventsLoader.js +15 -11
  4. package/src/components/NotificationEvent.js +12 -1
  5. package/src/components/ShareLinkForm.js +2 -4
  6. package/src/components/Subscription.js +43 -22
  7. package/src/components/SubscriptionEdit.js +33 -18
  8. package/src/components/SubscriptionForm.js +6 -2
  9. package/src/components/SubscriptionLoader.js +26 -14
  10. package/src/components/SubscriptionNew.js +20 -8
  11. package/src/components/Subscriptions.js +22 -7
  12. package/src/components/SubscriptionsLoader.js +26 -13
  13. package/src/components/__tests__/NotificationEvent.spec.js +8 -9
  14. package/src/components/__tests__/ShareLinkForm.spec.js +14 -34
  15. package/src/components/__tests__/Subscription.spec.js +18 -27
  16. package/src/components/__tests__/SubscriptionEdit.spec.js +12 -20
  17. package/src/components/__tests__/SubscriptionForm.spec.js +51 -156
  18. package/src/components/__tests__/SubscriptionLoader.spec.js +4 -12
  19. package/src/components/__tests__/SubscriptionNew.spec.js +6 -13
  20. package/src/components/__tests__/Subscriptions.spec.js +26 -38
  21. package/src/components/__tests__/SubscriptionsLoader.spec.js +10 -9
  22. package/src/components/__tests__/__snapshots__/NotificationEvent.spec.js.snap +25 -44
  23. package/src/components/__tests__/__snapshots__/ShareLinkForm.spec.js.snap +6 -6
  24. package/src/components/__tests__/__snapshots__/Subscription.spec.js.snap +144 -75
  25. package/src/components/__tests__/__snapshots__/SubscriptionEdit.spec.js.snap +372 -22
  26. package/src/components/__tests__/__snapshots__/SubscriptionForm.spec.js.snap +22 -22
  27. package/src/components/__tests__/__snapshots__/SubscriptionLoader.spec.js.snap +16 -1
  28. package/src/components/__tests__/__snapshots__/SubscriptionNew.spec.js.snap +373 -16
  29. package/src/components/__tests__/__snapshots__/Subscriptions.spec.js.snap +339 -407
  30. package/src/components/__tests__/__snapshots__/SubscriptionsLoader.spec.js.snap +18 -1
  31. package/src/messages/en.js +0 -2
  32. package/src/messages/es.js +0 -2
@@ -1,22 +1,379 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<SubscriptionNew /> matches the latest snapshot 1`] = `
4
- <Fragment>
5
- <SubscriptionCrumbs
6
- title="subscriptions.actions.create"
7
- />
8
- <Container
9
- as={[Function]}
4
+ <div>
5
+ <div
6
+ class="ui breadcrumb"
10
7
  >
11
- <Header
12
- as="h2"
13
- content="subscriptions.actions.create"
14
- icon="check"
8
+ <a
9
+ class="section"
10
+ href="/subscriptions"
11
+ >
12
+ Subscriptions
13
+ </a>
14
+ <i
15
+ aria-hidden="true"
16
+ class="right angle icon divider"
15
17
  />
16
- <SubscriptionForm
17
- isLoading={false}
18
- onSubmit={[Function]}
19
- />
20
- </Container>
21
- </Fragment>
18
+ <div
19
+ class="active section"
20
+ >
21
+ New Subscription
22
+ </div>
23
+ </div>
24
+ <div
25
+ class="ui segment ui container"
26
+ >
27
+ <h2
28
+ class="ui header"
29
+ >
30
+ <i
31
+ aria-hidden="true"
32
+ class="check icon"
33
+ />
34
+ <div
35
+ class="content"
36
+ >
37
+ New Subscription
38
+ </div>
39
+ </h2>
40
+ <form
41
+ class="ui form"
42
+ style="display: none;"
43
+ >
44
+ <div
45
+ class="required field subscription-form-radio-group"
46
+ >
47
+ <label>
48
+ Subscriber
49
+ </label>
50
+ <div
51
+ class="ui checked radio checkbox"
52
+ >
53
+ <input
54
+ checked=""
55
+ class="hidden"
56
+ name="role"
57
+ readonly=""
58
+ role="radio"
59
+ tabindex="0"
60
+ type="radio"
61
+ value="role"
62
+ />
63
+ <label>
64
+ <i
65
+ aria-hidden="true"
66
+ class="student icon"
67
+ />
68
+ Role
69
+ </label>
70
+ </div>
71
+ <div
72
+ class="ui radio checkbox"
73
+ >
74
+ <input
75
+ class="hidden"
76
+ name="taxonomy_role"
77
+ readonly=""
78
+ role="radio"
79
+ tabindex="0"
80
+ type="radio"
81
+ value="taxonomy_role"
82
+ />
83
+ <label>
84
+ <i
85
+ aria-hidden="true"
86
+ class="student icon"
87
+ />
88
+ Role in taxonomy
89
+ </label>
90
+ </div>
91
+ <div
92
+ class="ui radio checkbox"
93
+ >
94
+ <input
95
+ class="hidden"
96
+ name="email"
97
+ readonly=""
98
+ role="radio"
99
+ tabindex="0"
100
+ type="radio"
101
+ value="email"
102
+ />
103
+ <label>
104
+ <i
105
+ aria-hidden="true"
106
+ class="envelope icon"
107
+ />
108
+ Email
109
+ </label>
110
+ </div>
111
+ <div
112
+ class="ui radio checkbox"
113
+ >
114
+ <input
115
+ class="hidden"
116
+ name="user"
117
+ readonly=""
118
+ role="radio"
119
+ tabindex="0"
120
+ type="radio"
121
+ value="user"
122
+ />
123
+ <label>
124
+ <i
125
+ aria-hidden="true"
126
+ class="user icon"
127
+ />
128
+ User
129
+ </label>
130
+ </div>
131
+ </div>
132
+ <div
133
+ class="required field subscription-form-radio-group"
134
+ >
135
+ <label>
136
+ Resource
137
+ </label>
138
+ <div
139
+ class="ui radio checkbox"
140
+ >
141
+ <input
142
+ class="hidden"
143
+ readonly=""
144
+ role="radio"
145
+ tabindex="0"
146
+ type="radio"
147
+ value="domain"
148
+ />
149
+ <label>
150
+ <i
151
+ aria-hidden="true"
152
+ class="sitemap icon"
153
+ />
154
+ Domain
155
+ </label>
156
+ </div>
157
+ <div
158
+ class="ui radio checkbox"
159
+ >
160
+ <input
161
+ class="hidden"
162
+ readonly=""
163
+ role="radio"
164
+ tabindex="0"
165
+ type="radio"
166
+ value="domains"
167
+ />
168
+ <label>
169
+ <i
170
+ aria-hidden="true"
171
+ class="sitemap icon"
172
+ />
173
+ Domain and children
174
+ </label>
175
+ </div>
176
+ <div
177
+ class="ui radio checkbox"
178
+ >
179
+ <input
180
+ class="hidden"
181
+ readonly=""
182
+ role="radio"
183
+ tabindex="0"
184
+ type="radio"
185
+ value="concept"
186
+ />
187
+ <label>
188
+ <i
189
+ aria-hidden="true"
190
+ class="book icon"
191
+ />
192
+ Concept
193
+ </label>
194
+ </div>
195
+ <div
196
+ class="ui radio checkbox"
197
+ >
198
+ <input
199
+ class="hidden"
200
+ readonly=""
201
+ role="radio"
202
+ tabindex="0"
203
+ type="radio"
204
+ value="data_structure"
205
+ />
206
+ <label>
207
+ <i
208
+ aria-hidden="true"
209
+ class="block layout icon"
210
+ />
211
+ Structure
212
+ </label>
213
+ </div>
214
+ <div
215
+ class="ui disabled radio checkbox"
216
+ >
217
+ <input
218
+ class="hidden"
219
+ disabled=""
220
+ readonly=""
221
+ role="radio"
222
+ tabindex="-1"
223
+ type="radio"
224
+ value="source"
225
+ />
226
+ <label>
227
+ <i
228
+ aria-hidden="true"
229
+ class="plug icon"
230
+ />
231
+ Source
232
+ </label>
233
+ </div>
234
+ <div
235
+ class="ui disabled radio checkbox"
236
+ >
237
+ <input
238
+ class="hidden"
239
+ disabled=""
240
+ readonly=""
241
+ role="radio"
242
+ tabindex="-1"
243
+ type="radio"
244
+ value="rule"
245
+ />
246
+ <label>
247
+ <i
248
+ aria-hidden="true"
249
+ class="clipboard check icon"
250
+ />
251
+ Quality Rule
252
+ </label>
253
+ </div>
254
+ </div>
255
+ <div
256
+ class="required field"
257
+ >
258
+ <label>
259
+ Notifications periodicity
260
+ </label>
261
+ <div
262
+ aria-expanded="false"
263
+ class="ui selection dropdown"
264
+ required=""
265
+ role="listbox"
266
+ tabindex="0"
267
+ >
268
+ <div
269
+ aria-atomic="true"
270
+ aria-live="polite"
271
+ class="divider default text"
272
+ role="alert"
273
+ >
274
+ Notifications periodicity
275
+ </div>
276
+ <i
277
+ aria-hidden="true"
278
+ class="dropdown icon"
279
+ />
280
+ <div
281
+ class="menu transition"
282
+ >
283
+ <div
284
+ aria-checked="false"
285
+ aria-selected="true"
286
+ class="selected item"
287
+ role="option"
288
+ style="pointer-events: all;"
289
+ >
290
+ <span
291
+ class="text"
292
+ >
293
+ Daily
294
+ </span>
295
+ </div>
296
+ <div
297
+ aria-checked="false"
298
+ aria-selected="false"
299
+ class="item"
300
+ role="option"
301
+ style="pointer-events: all;"
302
+ >
303
+ <span
304
+ class="text"
305
+ >
306
+ Immediately
307
+ </span>
308
+ </div>
309
+ <div
310
+ aria-checked="false"
311
+ aria-selected="false"
312
+ class="item"
313
+ role="option"
314
+ style="pointer-events: all;"
315
+ >
316
+ <span
317
+ class="text"
318
+ >
319
+ Hourly
320
+ </span>
321
+ </div>
322
+ </div>
323
+ </div>
324
+ </div>
325
+ <div
326
+ class="disabled required field"
327
+ >
328
+ <label>
329
+ Events
330
+ </label>
331
+ <div
332
+ aria-disabled="true"
333
+ aria-expanded="false"
334
+ aria-multiselectable="true"
335
+ class="ui disabled multiple selection dropdown"
336
+ required=""
337
+ role="listbox"
338
+ tabindex="-1"
339
+ >
340
+ <div
341
+ aria-atomic="true"
342
+ aria-live="polite"
343
+ class="divider default text"
344
+ role="alert"
345
+ >
346
+ Events
347
+ </div>
348
+ <i
349
+ aria-hidden="true"
350
+ class="dropdown icon"
351
+ />
352
+ <div
353
+ class="menu transition"
354
+ />
355
+ </div>
356
+ </div>
357
+ <div
358
+ class="actions"
359
+ >
360
+ <a
361
+ class="ui secondary button"
362
+ href="/"
363
+ role="button"
364
+ >
365
+ Cancel
366
+ </a>
367
+ <button
368
+ class="ui primary disabled button"
369
+ disabled=""
370
+ tabindex="-1"
371
+ type="submit"
372
+ >
373
+ Save
374
+ </button>
375
+ </div>
376
+ </form>
377
+ </div>
378
+ </div>
22
379
  `;