@zohodesk/dot 1.9.14 → 1.9.16
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/README.md +22 -0
- package/es/Drawer/Drawer.js +5 -1
- package/es/Drawer/props/propTypes.js +2 -0
- package/es/FormAction/FormAction.js +18 -5
- package/es/FormAction/__tests__/FormAction.spec.js +97 -3
- package/es/FormAction/__tests__/__snapshots__/FormAction.spec.js.snap +536 -1
- package/es/FormAction/props/propTypes.js +2 -0
- package/es/lookup/Lookup/Lookup.js +47 -18
- package/es/lookup/Lookup/Lookup.module.css +19 -0
- package/es/lookup/Lookup/__tests__/Lookup.spec.js +120 -4
- package/es/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +284 -2
- package/es/lookup/Lookup/props/defaultProps.js +3 -2
- package/es/lookup/Lookup/props/propTypes.js +12 -2
- package/es/lookup/Section/Section.js +14 -5
- package/es/lookup/Section/__tests__/Section.spec.js +41 -2
- package/es/lookup/Section/__tests__/__snapshots__/Section.spec.js.snap +131 -1
- package/es/lookup/Section/props/defaultProps.js +4 -0
- package/es/lookup/Section/props/propTypes.js +5 -0
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +47 -18
- package/es/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +172 -3
- package/es/lookup/header/ModuleHeader/__tests__/__snapshots__/ModuleHeader.spec.js.snap +779 -3
- package/es/lookup/header/ModuleHeader/props/defaultProps.js +4 -0
- package/es/lookup/header/ModuleHeader/props/propTypes.js +21 -1
- package/es/lookup/header/Title/Title.js +3 -1
- package/es/lookup/header/Title/props/propTypes.js +1 -0
- package/es/version2/lookup/AlertHeader/AlertHeader.js +16 -7
- package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +114 -3
- package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1695 -8
- package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +8 -3
- package/es/version2/lookup/AlertHeader/props/defaultProps.js +3 -0
- package/es/version2/lookup/AlertHeader/props/propTypes.js +9 -0
- package/es/version2/lookup/AlertLookup/AlertLookup.js +11 -5
- package/es/version2/lookup/AlertLookup/props/defaultProps.js +1 -0
- package/es/version2/lookup/AlertLookup/props/propTypes.js +1 -0
- package/lib/Drawer/Drawer.js +5 -1
- package/lib/Drawer/props/propTypes.js +2 -0
- package/lib/FormAction/FormAction.js +18 -5
- package/lib/FormAction/__tests__/FormAction.spec.js +102 -2
- package/lib/FormAction/__tests__/__snapshots__/FormAction.spec.js.snap +536 -1
- package/lib/FormAction/props/propTypes.js +2 -0
- package/lib/lookup/Lookup/Lookup.js +50 -18
- package/lib/lookup/Lookup/Lookup.module.css +19 -0
- package/lib/lookup/Lookup/__tests__/Lookup.spec.js +120 -4
- package/lib/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +284 -2
- package/lib/lookup/Lookup/props/defaultProps.js +3 -2
- package/lib/lookup/Lookup/props/propTypes.js +15 -2
- package/lib/lookup/Section/Section.js +13 -5
- package/lib/lookup/Section/__tests__/Section.spec.js +40 -1
- package/lib/lookup/Section/__tests__/__snapshots__/Section.spec.js.snap +131 -1
- package/lib/lookup/Section/props/defaultProps.js +13 -0
- package/lib/lookup/Section/props/propTypes.js +6 -0
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +46 -24
- package/lib/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +177 -2
- package/lib/lookup/header/ModuleHeader/__tests__/__snapshots__/ModuleHeader.spec.js.snap +779 -3
- package/lib/lookup/header/ModuleHeader/props/defaultProps.js +6 -0
- package/lib/lookup/header/ModuleHeader/props/propTypes.js +25 -1
- package/lib/lookup/header/Title/Title.js +3 -1
- package/lib/lookup/header/Title/props/propTypes.js +1 -0
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +18 -8
- package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +113 -2
- package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1695 -8
- package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +7 -3
- package/lib/version2/lookup/AlertHeader/props/defaultProps.js +5 -0
- package/lib/version2/lookup/AlertHeader/props/propTypes.js +9 -0
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +11 -8
- package/lib/version2/lookup/AlertLookup/props/defaultProps.js +1 -0
- package/lib/version2/lookup/AlertLookup/props/propTypes.js +1 -0
- package/package.json +8 -8
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`ModuleHeader
|
|
3
|
+
exports[`ModuleHeader snapshot - Render with childNearTitle 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="container default
|
|
6
|
+
class="container default flex rowdir wrap vCenter"
|
|
7
7
|
data-drag-hook="true"
|
|
8
8
|
data-id="containerComponent"
|
|
9
9
|
data-selector-id="container"
|
|
10
10
|
data-test-id="containerComponent"
|
|
11
11
|
>
|
|
12
|
+
<span>
|
|
13
|
+
Near title
|
|
14
|
+
</span>
|
|
12
15
|
<div
|
|
13
16
|
class="grow basis shrinkOff"
|
|
14
17
|
data-id="boxComponent"
|
|
@@ -16,7 +19,290 @@ exports[`ModuleHeader rendering the defult props 1`] = `
|
|
|
16
19
|
data-test-id="boxComponent"
|
|
17
20
|
>
|
|
18
21
|
<div
|
|
19
|
-
class="title"
|
|
22
|
+
class="title flex rowdir vCenter"
|
|
23
|
+
data-id="containerComponent"
|
|
24
|
+
data-selector-id="container"
|
|
25
|
+
data-test-id="containerComponent"
|
|
26
|
+
>
|
|
27
|
+
<span
|
|
28
|
+
class="title default "
|
|
29
|
+
data-title="Header Title"
|
|
30
|
+
>
|
|
31
|
+
Header Title
|
|
32
|
+
</span>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</DocumentFragment>
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
exports[`ModuleHeader snapshot - Render with children 1`] = `
|
|
40
|
+
<DocumentFragment>
|
|
41
|
+
<div
|
|
42
|
+
class="container default flex rowdir wrap vCenter"
|
|
43
|
+
data-drag-hook="true"
|
|
44
|
+
data-id="containerComponent"
|
|
45
|
+
data-selector-id="container"
|
|
46
|
+
data-test-id="containerComponent"
|
|
47
|
+
>
|
|
48
|
+
<div
|
|
49
|
+
class="grow basis shrinkOff"
|
|
50
|
+
data-id="boxComponent"
|
|
51
|
+
data-selector-id="box"
|
|
52
|
+
data-test-id="boxComponent"
|
|
53
|
+
>
|
|
54
|
+
<div
|
|
55
|
+
class="title flex rowdir vCenter"
|
|
56
|
+
data-id="containerComponent"
|
|
57
|
+
data-selector-id="container"
|
|
58
|
+
data-test-id="containerComponent"
|
|
59
|
+
>
|
|
60
|
+
<span
|
|
61
|
+
class="title default "
|
|
62
|
+
data-title="Header Title"
|
|
63
|
+
>
|
|
64
|
+
Header Title
|
|
65
|
+
</span>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
<div>
|
|
69
|
+
Child content
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</DocumentFragment>
|
|
73
|
+
`;
|
|
74
|
+
|
|
75
|
+
exports[`ModuleHeader snapshot - Render with customClass 1`] = `
|
|
76
|
+
<DocumentFragment>
|
|
77
|
+
<div
|
|
78
|
+
class="container default custom-container flex rowdir wrap vCenter"
|
|
79
|
+
data-drag-hook="true"
|
|
80
|
+
data-id="containerComponent"
|
|
81
|
+
data-selector-id="container"
|
|
82
|
+
data-test-id="containerComponent"
|
|
83
|
+
>
|
|
84
|
+
<div
|
|
85
|
+
class="grow basis shrinkOff"
|
|
86
|
+
data-id="boxComponent"
|
|
87
|
+
data-selector-id="box"
|
|
88
|
+
data-test-id="boxComponent"
|
|
89
|
+
>
|
|
90
|
+
<div
|
|
91
|
+
class="title custom-title flex rowdir vCenter"
|
|
92
|
+
data-id="containerComponent"
|
|
93
|
+
data-selector-id="container"
|
|
94
|
+
data-test-id="containerComponent"
|
|
95
|
+
>
|
|
96
|
+
<span
|
|
97
|
+
class="title default "
|
|
98
|
+
data-title="Header Title"
|
|
99
|
+
>
|
|
100
|
+
Header Title
|
|
101
|
+
</span>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
<div
|
|
105
|
+
class="closeContainer custom-close"
|
|
106
|
+
>
|
|
107
|
+
<button
|
|
108
|
+
aria-pressed="false"
|
|
109
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
110
|
+
data-id="close"
|
|
111
|
+
data-ishtml="false"
|
|
112
|
+
data-selector-id="iconButton"
|
|
113
|
+
data-test-id="close"
|
|
114
|
+
>
|
|
115
|
+
<i
|
|
116
|
+
aria-hidden="true"
|
|
117
|
+
class="zd_font_icons basic icon-cross icon_button_center "
|
|
118
|
+
data-id="fontIcon"
|
|
119
|
+
data-selector-id="fontIcon"
|
|
120
|
+
data-test-id="fontIcon"
|
|
121
|
+
style="--zd-iconfont-size: var(--zd_font_size11);"
|
|
122
|
+
/>
|
|
123
|
+
</button>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</DocumentFragment>
|
|
127
|
+
`;
|
|
128
|
+
|
|
129
|
+
exports[`ModuleHeader snapshot - Render with customProps for sub-components 1`] = `
|
|
130
|
+
<DocumentFragment>
|
|
131
|
+
<div
|
|
132
|
+
class="container default flex rowdir vCenter"
|
|
133
|
+
data-drag-hook="true"
|
|
134
|
+
data-id="containerComponent"
|
|
135
|
+
data-selector-id="container"
|
|
136
|
+
data-test-id="containerComponent"
|
|
137
|
+
>
|
|
138
|
+
<div
|
|
139
|
+
class="grow basis shrinkOff"
|
|
140
|
+
data-id="boxComponent"
|
|
141
|
+
data-selector-id="box"
|
|
142
|
+
data-test-id="boxComponent"
|
|
143
|
+
>
|
|
144
|
+
<div
|
|
145
|
+
class="title flex rowdir vCenter"
|
|
146
|
+
data-id="custom-titleWrapper"
|
|
147
|
+
data-selector-id="container"
|
|
148
|
+
data-test-id="custom-titleWrapper"
|
|
149
|
+
>
|
|
150
|
+
<span
|
|
151
|
+
class="title primary bold"
|
|
152
|
+
data-title="Header Title"
|
|
153
|
+
>
|
|
154
|
+
Header Title
|
|
155
|
+
</span>
|
|
156
|
+
<span>
|
|
157
|
+
Extra
|
|
158
|
+
</span>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
<div
|
|
162
|
+
class="searchContainer searchContainer shrinkOff"
|
|
163
|
+
data-id="boxComponent"
|
|
164
|
+
data-selector-id="box"
|
|
165
|
+
data-test-id="boxComponent"
|
|
166
|
+
>
|
|
167
|
+
<div
|
|
168
|
+
class="wrapper boxType
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
flex rowdir vCenter"
|
|
172
|
+
data-id="containerComponent"
|
|
173
|
+
data-selector-id="container"
|
|
174
|
+
data-test-id="containerComponent"
|
|
175
|
+
>
|
|
176
|
+
<i
|
|
177
|
+
aria-hidden="true"
|
|
178
|
+
class="zd_font_icons basic icon-search searchIcon searchIconBox "
|
|
179
|
+
data-id="fontIcon"
|
|
180
|
+
data-selector-id="fontIcon"
|
|
181
|
+
data-test-id="fontIcon"
|
|
182
|
+
style="--zd-iconfont-size: var(--zd_font_size11);"
|
|
183
|
+
/>
|
|
184
|
+
<div
|
|
185
|
+
class="grow basis shrinkOff"
|
|
186
|
+
data-id="boxComponent"
|
|
187
|
+
data-selector-id="box"
|
|
188
|
+
data-test-id="boxComponent"
|
|
189
|
+
>
|
|
190
|
+
<div
|
|
191
|
+
class="varClass customContainer effect container flex rowdir"
|
|
192
|
+
data-selector-id="textBoxIcon"
|
|
193
|
+
>
|
|
194
|
+
<div
|
|
195
|
+
class="grow basis shrinkOff"
|
|
196
|
+
data-id="boxComponent"
|
|
197
|
+
data-selector-id="box"
|
|
198
|
+
data-test-id="boxComponent"
|
|
199
|
+
>
|
|
200
|
+
<input
|
|
201
|
+
class=" container small default effect borderColor_default "
|
|
202
|
+
data-a11y-autofocus="true"
|
|
203
|
+
data-id="search"
|
|
204
|
+
data-selector-id="textBoxIcon"
|
|
205
|
+
data-test-id="search"
|
|
206
|
+
maxlength="250"
|
|
207
|
+
type="text"
|
|
208
|
+
value=""
|
|
209
|
+
/>
|
|
210
|
+
</div>
|
|
211
|
+
<div
|
|
212
|
+
class="iconContainer shrinkOff"
|
|
213
|
+
data-id="boxComponent"
|
|
214
|
+
data-selector-id="box"
|
|
215
|
+
data-test-id="boxComponent"
|
|
216
|
+
>
|
|
217
|
+
<div
|
|
218
|
+
class="flex cover rowdir"
|
|
219
|
+
data-id="containerComponent"
|
|
220
|
+
data-selector-id="container"
|
|
221
|
+
data-test-id="containerComponent"
|
|
222
|
+
/>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
<div
|
|
229
|
+
class="closeContainer "
|
|
230
|
+
>
|
|
231
|
+
<button
|
|
232
|
+
aria-pressed="false"
|
|
233
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
234
|
+
data-id="custom-close"
|
|
235
|
+
data-ishtml="false"
|
|
236
|
+
data-selector-id="iconButton"
|
|
237
|
+
data-test-id="custom-close"
|
|
238
|
+
>
|
|
239
|
+
<i
|
|
240
|
+
aria-hidden="true"
|
|
241
|
+
class="zd_font_icons basic icon-cross icon_button_center "
|
|
242
|
+
data-id="fontIcon"
|
|
243
|
+
data-selector-id="fontIcon"
|
|
244
|
+
data-test-id="fontIcon"
|
|
245
|
+
style="--zd-iconfont-size: var(--zd_font_size11);"
|
|
246
|
+
/>
|
|
247
|
+
</button>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
</DocumentFragment>
|
|
251
|
+
`;
|
|
252
|
+
|
|
253
|
+
exports[`ModuleHeader snapshot - Render with dataId 1`] = `
|
|
254
|
+
<DocumentFragment>
|
|
255
|
+
<div
|
|
256
|
+
class="container default flex rowdir wrap vCenter"
|
|
257
|
+
data-drag-hook="true"
|
|
258
|
+
data-id="module-header-dataId"
|
|
259
|
+
data-selector-id="container"
|
|
260
|
+
data-test-id="module-header-dataId"
|
|
261
|
+
>
|
|
262
|
+
<div
|
|
263
|
+
class="grow basis shrinkOff"
|
|
264
|
+
data-id="boxComponent"
|
|
265
|
+
data-selector-id="box"
|
|
266
|
+
data-test-id="boxComponent"
|
|
267
|
+
>
|
|
268
|
+
<div
|
|
269
|
+
class="title flex rowdir vCenter"
|
|
270
|
+
data-id="containerComponent"
|
|
271
|
+
data-selector-id="container"
|
|
272
|
+
data-test-id="containerComponent"
|
|
273
|
+
>
|
|
274
|
+
<span
|
|
275
|
+
class="title default "
|
|
276
|
+
data-title="Header Title"
|
|
277
|
+
>
|
|
278
|
+
Header Title
|
|
279
|
+
</span>
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
</DocumentFragment>
|
|
284
|
+
`;
|
|
285
|
+
|
|
286
|
+
exports[`ModuleHeader snapshot - Render with default props 1`] = `
|
|
287
|
+
<DocumentFragment>
|
|
288
|
+
<div
|
|
289
|
+
class="container default flex rowdir wrap vCenter"
|
|
290
|
+
data-drag-hook="true"
|
|
291
|
+
data-id="containerComponent"
|
|
292
|
+
data-selector-id="container"
|
|
293
|
+
data-test-id="containerComponent"
|
|
294
|
+
>
|
|
295
|
+
<div
|
|
296
|
+
class="grow basis shrinkOff"
|
|
297
|
+
data-id="boxComponent"
|
|
298
|
+
data-selector-id="box"
|
|
299
|
+
data-test-id="boxComponent"
|
|
300
|
+
>
|
|
301
|
+
<div
|
|
302
|
+
class="title flex rowdir vCenter"
|
|
303
|
+
data-id="containerComponent"
|
|
304
|
+
data-selector-id="container"
|
|
305
|
+
data-test-id="containerComponent"
|
|
20
306
|
>
|
|
21
307
|
<span
|
|
22
308
|
class="title default "
|
|
@@ -27,3 +313,493 @@ exports[`ModuleHeader rendering the defult props 1`] = `
|
|
|
27
313
|
</div>
|
|
28
314
|
</DocumentFragment>
|
|
29
315
|
`;
|
|
316
|
+
|
|
317
|
+
exports[`ModuleHeader snapshot - Render with htmlId 1`] = `
|
|
318
|
+
<DocumentFragment>
|
|
319
|
+
<div
|
|
320
|
+
class="container default flex rowdir wrap vCenter"
|
|
321
|
+
data-drag-hook="true"
|
|
322
|
+
data-id="containerComponent"
|
|
323
|
+
data-selector-id="container"
|
|
324
|
+
data-test-id="containerComponent"
|
|
325
|
+
>
|
|
326
|
+
<div
|
|
327
|
+
class="grow basis shrinkOff"
|
|
328
|
+
data-id="boxComponent"
|
|
329
|
+
data-selector-id="box"
|
|
330
|
+
data-test-id="boxComponent"
|
|
331
|
+
>
|
|
332
|
+
<div
|
|
333
|
+
class="title flex rowdir vCenter"
|
|
334
|
+
data-id="containerComponent"
|
|
335
|
+
data-selector-id="container"
|
|
336
|
+
data-test-id="containerComponent"
|
|
337
|
+
>
|
|
338
|
+
<span
|
|
339
|
+
class="title default "
|
|
340
|
+
data-title="Header Title"
|
|
341
|
+
id="module-header-htmlId"
|
|
342
|
+
>
|
|
343
|
+
Header Title
|
|
344
|
+
</span>
|
|
345
|
+
</div>
|
|
346
|
+
</div>
|
|
347
|
+
</div>
|
|
348
|
+
</DocumentFragment>
|
|
349
|
+
`;
|
|
350
|
+
|
|
351
|
+
exports[`ModuleHeader snapshot - Render with isDraggable=false 1`] = `
|
|
352
|
+
<DocumentFragment>
|
|
353
|
+
<div
|
|
354
|
+
class="container default flex rowdir wrap vCenter"
|
|
355
|
+
data-drag-hook="false"
|
|
356
|
+
data-id="containerComponent"
|
|
357
|
+
data-selector-id="container"
|
|
358
|
+
data-test-id="containerComponent"
|
|
359
|
+
>
|
|
360
|
+
<div
|
|
361
|
+
class="grow basis shrinkOff"
|
|
362
|
+
data-id="boxComponent"
|
|
363
|
+
data-selector-id="box"
|
|
364
|
+
data-test-id="boxComponent"
|
|
365
|
+
>
|
|
366
|
+
<div
|
|
367
|
+
class="title flex rowdir vCenter"
|
|
368
|
+
data-id="containerComponent"
|
|
369
|
+
data-selector-id="container"
|
|
370
|
+
data-test-id="containerComponent"
|
|
371
|
+
>
|
|
372
|
+
<span
|
|
373
|
+
class="title default "
|
|
374
|
+
data-title=""
|
|
375
|
+
/>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
</div>
|
|
379
|
+
</DocumentFragment>
|
|
380
|
+
`;
|
|
381
|
+
|
|
382
|
+
exports[`ModuleHeader snapshot - Render with miniDescription 1`] = `
|
|
383
|
+
<DocumentFragment>
|
|
384
|
+
<div
|
|
385
|
+
class="container default flex rowdir wrap vCenter"
|
|
386
|
+
data-drag-hook="true"
|
|
387
|
+
data-id="containerComponent"
|
|
388
|
+
data-selector-id="container"
|
|
389
|
+
data-test-id="containerComponent"
|
|
390
|
+
>
|
|
391
|
+
<div
|
|
392
|
+
class="grow basis shrinkOff"
|
|
393
|
+
data-id="boxComponent"
|
|
394
|
+
data-selector-id="box"
|
|
395
|
+
data-test-id="boxComponent"
|
|
396
|
+
>
|
|
397
|
+
<div
|
|
398
|
+
class="title flex rowdir vCenter"
|
|
399
|
+
data-id="containerComponent"
|
|
400
|
+
data-selector-id="container"
|
|
401
|
+
data-test-id="containerComponent"
|
|
402
|
+
>
|
|
403
|
+
<span
|
|
404
|
+
class="title default "
|
|
405
|
+
data-title=""
|
|
406
|
+
/>
|
|
407
|
+
</div>
|
|
408
|
+
<div
|
|
409
|
+
class="para"
|
|
410
|
+
>
|
|
411
|
+
A brief description
|
|
412
|
+
</div>
|
|
413
|
+
</div>
|
|
414
|
+
</div>
|
|
415
|
+
</DocumentFragment>
|
|
416
|
+
`;
|
|
417
|
+
|
|
418
|
+
exports[`ModuleHeader snapshot - Render with needSearch=true 1`] = `
|
|
419
|
+
<DocumentFragment>
|
|
420
|
+
<div
|
|
421
|
+
class="container default flex rowdir wrap vCenter"
|
|
422
|
+
data-drag-hook="true"
|
|
423
|
+
data-id="containerComponent"
|
|
424
|
+
data-selector-id="container"
|
|
425
|
+
data-test-id="containerComponent"
|
|
426
|
+
>
|
|
427
|
+
<div
|
|
428
|
+
class="grow basis shrinkOff"
|
|
429
|
+
data-id="boxComponent"
|
|
430
|
+
data-selector-id="box"
|
|
431
|
+
data-test-id="boxComponent"
|
|
432
|
+
>
|
|
433
|
+
<div
|
|
434
|
+
class="title flex rowdir vCenter"
|
|
435
|
+
data-id="containerComponent"
|
|
436
|
+
data-selector-id="container"
|
|
437
|
+
data-test-id="containerComponent"
|
|
438
|
+
>
|
|
439
|
+
<span
|
|
440
|
+
class="title default "
|
|
441
|
+
data-title=""
|
|
442
|
+
/>
|
|
443
|
+
</div>
|
|
444
|
+
</div>
|
|
445
|
+
<div
|
|
446
|
+
class="searchContainer searchContainer shrinkOff"
|
|
447
|
+
data-id="boxComponent"
|
|
448
|
+
data-selector-id="box"
|
|
449
|
+
data-test-id="boxComponent"
|
|
450
|
+
>
|
|
451
|
+
<div
|
|
452
|
+
class="wrapper borderType
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
flex rowdir vCenter"
|
|
456
|
+
data-id="containerComponent"
|
|
457
|
+
data-selector-id="container"
|
|
458
|
+
data-test-id="containerComponent"
|
|
459
|
+
>
|
|
460
|
+
<div
|
|
461
|
+
class="grow basis shrinkOff"
|
|
462
|
+
data-id="boxComponent"
|
|
463
|
+
data-selector-id="box"
|
|
464
|
+
data-test-id="boxComponent"
|
|
465
|
+
>
|
|
466
|
+
<div
|
|
467
|
+
class="varClass customContainer effect container flex rowdir"
|
|
468
|
+
data-selector-id="textBoxIcon"
|
|
469
|
+
>
|
|
470
|
+
<div
|
|
471
|
+
class="grow basis shrinkOff"
|
|
472
|
+
data-id="boxComponent"
|
|
473
|
+
data-selector-id="box"
|
|
474
|
+
data-test-id="boxComponent"
|
|
475
|
+
>
|
|
476
|
+
<input
|
|
477
|
+
class=" container small default effect borderColor_default "
|
|
478
|
+
data-a11y-autofocus="true"
|
|
479
|
+
data-id="search"
|
|
480
|
+
data-selector-id="textBoxIcon"
|
|
481
|
+
data-test-id="search"
|
|
482
|
+
maxlength="250"
|
|
483
|
+
type="text"
|
|
484
|
+
value=""
|
|
485
|
+
/>
|
|
486
|
+
</div>
|
|
487
|
+
<div
|
|
488
|
+
class="iconContainer shrinkOff"
|
|
489
|
+
data-id="boxComponent"
|
|
490
|
+
data-selector-id="box"
|
|
491
|
+
data-test-id="boxComponent"
|
|
492
|
+
>
|
|
493
|
+
<div
|
|
494
|
+
class="flex cover rowdir"
|
|
495
|
+
data-id="containerComponent"
|
|
496
|
+
data-selector-id="container"
|
|
497
|
+
data-test-id="containerComponent"
|
|
498
|
+
/>
|
|
499
|
+
</div>
|
|
500
|
+
</div>
|
|
501
|
+
</div>
|
|
502
|
+
</div>
|
|
503
|
+
</div>
|
|
504
|
+
</div>
|
|
505
|
+
</DocumentFragment>
|
|
506
|
+
`;
|
|
507
|
+
|
|
508
|
+
exports[`ModuleHeader snapshot - Render with onLookupClose 1`] = `
|
|
509
|
+
<DocumentFragment>
|
|
510
|
+
<div
|
|
511
|
+
class="container default flex rowdir wrap vCenter"
|
|
512
|
+
data-drag-hook="true"
|
|
513
|
+
data-id="containerComponent"
|
|
514
|
+
data-selector-id="container"
|
|
515
|
+
data-test-id="containerComponent"
|
|
516
|
+
>
|
|
517
|
+
<div
|
|
518
|
+
class="grow basis shrinkOff"
|
|
519
|
+
data-id="boxComponent"
|
|
520
|
+
data-selector-id="box"
|
|
521
|
+
data-test-id="boxComponent"
|
|
522
|
+
>
|
|
523
|
+
<div
|
|
524
|
+
class="title flex rowdir vCenter"
|
|
525
|
+
data-id="containerComponent"
|
|
526
|
+
data-selector-id="container"
|
|
527
|
+
data-test-id="containerComponent"
|
|
528
|
+
>
|
|
529
|
+
<span
|
|
530
|
+
class="title default "
|
|
531
|
+
data-title=""
|
|
532
|
+
/>
|
|
533
|
+
</div>
|
|
534
|
+
</div>
|
|
535
|
+
<div
|
|
536
|
+
class="closeContainer "
|
|
537
|
+
>
|
|
538
|
+
<button
|
|
539
|
+
aria-pressed="false"
|
|
540
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
541
|
+
data-id="close"
|
|
542
|
+
data-ishtml="false"
|
|
543
|
+
data-selector-id="iconButton"
|
|
544
|
+
data-test-id="close"
|
|
545
|
+
>
|
|
546
|
+
<i
|
|
547
|
+
aria-hidden="true"
|
|
548
|
+
class="zd_font_icons basic icon-cross icon_button_center "
|
|
549
|
+
data-id="fontIcon"
|
|
550
|
+
data-selector-id="fontIcon"
|
|
551
|
+
data-test-id="fontIcon"
|
|
552
|
+
style="--zd-iconfont-size: var(--zd_font_size11);"
|
|
553
|
+
/>
|
|
554
|
+
</button>
|
|
555
|
+
</div>
|
|
556
|
+
</div>
|
|
557
|
+
</DocumentFragment>
|
|
558
|
+
`;
|
|
559
|
+
|
|
560
|
+
exports[`ModuleHeader snapshot - Render with palette=default 1`] = `
|
|
561
|
+
<DocumentFragment>
|
|
562
|
+
<div
|
|
563
|
+
class="container default flex rowdir wrap vCenter"
|
|
564
|
+
data-drag-hook="true"
|
|
565
|
+
data-id="containerComponent"
|
|
566
|
+
data-selector-id="container"
|
|
567
|
+
data-test-id="containerComponent"
|
|
568
|
+
>
|
|
569
|
+
<div
|
|
570
|
+
class="grow basis shrinkOff"
|
|
571
|
+
data-id="boxComponent"
|
|
572
|
+
data-selector-id="box"
|
|
573
|
+
data-test-id="boxComponent"
|
|
574
|
+
>
|
|
575
|
+
<div
|
|
576
|
+
class="title flex rowdir vCenter"
|
|
577
|
+
data-id="containerComponent"
|
|
578
|
+
data-selector-id="container"
|
|
579
|
+
data-test-id="containerComponent"
|
|
580
|
+
>
|
|
581
|
+
<span
|
|
582
|
+
class="title default "
|
|
583
|
+
data-title=""
|
|
584
|
+
/>
|
|
585
|
+
</div>
|
|
586
|
+
</div>
|
|
587
|
+
</div>
|
|
588
|
+
</DocumentFragment>
|
|
589
|
+
`;
|
|
590
|
+
|
|
591
|
+
exports[`ModuleHeader snapshot - Render with palette=white 1`] = `
|
|
592
|
+
<DocumentFragment>
|
|
593
|
+
<div
|
|
594
|
+
class="container white flex rowdir wrap vCenter"
|
|
595
|
+
data-drag-hook="true"
|
|
596
|
+
data-id="containerComponent"
|
|
597
|
+
data-selector-id="container"
|
|
598
|
+
data-test-id="containerComponent"
|
|
599
|
+
>
|
|
600
|
+
<div
|
|
601
|
+
class="grow basis shrinkOff"
|
|
602
|
+
data-id="boxComponent"
|
|
603
|
+
data-selector-id="box"
|
|
604
|
+
data-test-id="boxComponent"
|
|
605
|
+
>
|
|
606
|
+
<div
|
|
607
|
+
class="title flex rowdir vCenter"
|
|
608
|
+
data-id="containerComponent"
|
|
609
|
+
data-selector-id="container"
|
|
610
|
+
data-test-id="containerComponent"
|
|
611
|
+
>
|
|
612
|
+
<span
|
|
613
|
+
class="title default "
|
|
614
|
+
data-title=""
|
|
615
|
+
/>
|
|
616
|
+
</div>
|
|
617
|
+
</div>
|
|
618
|
+
</div>
|
|
619
|
+
</DocumentFragment>
|
|
620
|
+
`;
|
|
621
|
+
|
|
622
|
+
exports[`ModuleHeader snapshot - Render with renderSecondaryContent as element 1`] = `
|
|
623
|
+
<DocumentFragment>
|
|
624
|
+
<div
|
|
625
|
+
class="container default flex rowdir wrap vCenter"
|
|
626
|
+
data-drag-hook="true"
|
|
627
|
+
data-id="containerComponent"
|
|
628
|
+
data-selector-id="container"
|
|
629
|
+
data-test-id="containerComponent"
|
|
630
|
+
>
|
|
631
|
+
<div
|
|
632
|
+
class="grow basis shrinkOff"
|
|
633
|
+
data-id="boxComponent"
|
|
634
|
+
data-selector-id="box"
|
|
635
|
+
data-test-id="boxComponent"
|
|
636
|
+
>
|
|
637
|
+
<div
|
|
638
|
+
class="title flex rowdir vCenter"
|
|
639
|
+
data-id="containerComponent"
|
|
640
|
+
data-selector-id="container"
|
|
641
|
+
data-test-id="containerComponent"
|
|
642
|
+
>
|
|
643
|
+
<span
|
|
644
|
+
class="title default "
|
|
645
|
+
data-title="Header Title"
|
|
646
|
+
>
|
|
647
|
+
Header Title
|
|
648
|
+
</span>
|
|
649
|
+
</div>
|
|
650
|
+
<div>
|
|
651
|
+
Secondary Element
|
|
652
|
+
</div>
|
|
653
|
+
</div>
|
|
654
|
+
</div>
|
|
655
|
+
</DocumentFragment>
|
|
656
|
+
`;
|
|
657
|
+
|
|
658
|
+
exports[`ModuleHeader snapshot - Render with renderSecondaryContent as function 1`] = `
|
|
659
|
+
<DocumentFragment>
|
|
660
|
+
<div
|
|
661
|
+
class="container default flex rowdir wrap vCenter"
|
|
662
|
+
data-drag-hook="true"
|
|
663
|
+
data-id="containerComponent"
|
|
664
|
+
data-selector-id="container"
|
|
665
|
+
data-test-id="containerComponent"
|
|
666
|
+
>
|
|
667
|
+
<div
|
|
668
|
+
class="grow basis shrinkOff"
|
|
669
|
+
data-id="boxComponent"
|
|
670
|
+
data-selector-id="box"
|
|
671
|
+
data-test-id="boxComponent"
|
|
672
|
+
>
|
|
673
|
+
<div
|
|
674
|
+
class="title flex rowdir vCenter"
|
|
675
|
+
data-id="containerComponent"
|
|
676
|
+
data-selector-id="container"
|
|
677
|
+
data-test-id="containerComponent"
|
|
678
|
+
>
|
|
679
|
+
<span
|
|
680
|
+
class="title default "
|
|
681
|
+
data-title="Header Title"
|
|
682
|
+
>
|
|
683
|
+
Header Title
|
|
684
|
+
</span>
|
|
685
|
+
</div>
|
|
686
|
+
<div>
|
|
687
|
+
Secondary Content
|
|
688
|
+
</div>
|
|
689
|
+
</div>
|
|
690
|
+
</div>
|
|
691
|
+
</DocumentFragment>
|
|
692
|
+
`;
|
|
693
|
+
|
|
694
|
+
exports[`ModuleHeader snapshot - Render with renderSecondaryContent should not override miniDescription 1`] = `
|
|
695
|
+
<DocumentFragment>
|
|
696
|
+
<div
|
|
697
|
+
class="container default flex rowdir wrap vCenter"
|
|
698
|
+
data-drag-hook="true"
|
|
699
|
+
data-id="containerComponent"
|
|
700
|
+
data-selector-id="container"
|
|
701
|
+
data-test-id="containerComponent"
|
|
702
|
+
>
|
|
703
|
+
<div
|
|
704
|
+
class="grow basis shrinkOff"
|
|
705
|
+
data-id="boxComponent"
|
|
706
|
+
data-selector-id="box"
|
|
707
|
+
data-test-id="boxComponent"
|
|
708
|
+
>
|
|
709
|
+
<div
|
|
710
|
+
class="title flex rowdir vCenter"
|
|
711
|
+
data-id="containerComponent"
|
|
712
|
+
data-selector-id="container"
|
|
713
|
+
data-test-id="containerComponent"
|
|
714
|
+
>
|
|
715
|
+
<span
|
|
716
|
+
class="title default "
|
|
717
|
+
data-title="Header Title"
|
|
718
|
+
>
|
|
719
|
+
Header Title
|
|
720
|
+
</span>
|
|
721
|
+
</div>
|
|
722
|
+
<div>
|
|
723
|
+
Overridden Content
|
|
724
|
+
</div>
|
|
725
|
+
<div
|
|
726
|
+
class="para"
|
|
727
|
+
>
|
|
728
|
+
Should appear
|
|
729
|
+
</div>
|
|
730
|
+
</div>
|
|
731
|
+
</div>
|
|
732
|
+
</DocumentFragment>
|
|
733
|
+
`;
|
|
734
|
+
|
|
735
|
+
exports[`ModuleHeader snapshot - Render with renderTitleChildren as element 1`] = `
|
|
736
|
+
<DocumentFragment>
|
|
737
|
+
<div
|
|
738
|
+
class="container default flex rowdir wrap vCenter"
|
|
739
|
+
data-drag-hook="true"
|
|
740
|
+
data-id="containerComponent"
|
|
741
|
+
data-selector-id="container"
|
|
742
|
+
data-test-id="containerComponent"
|
|
743
|
+
>
|
|
744
|
+
<div
|
|
745
|
+
class="grow basis shrinkOff"
|
|
746
|
+
data-id="boxComponent"
|
|
747
|
+
data-selector-id="box"
|
|
748
|
+
data-test-id="boxComponent"
|
|
749
|
+
>
|
|
750
|
+
<div
|
|
751
|
+
class="title flex rowdir vCenter"
|
|
752
|
+
data-id="containerComponent"
|
|
753
|
+
data-selector-id="container"
|
|
754
|
+
data-test-id="containerComponent"
|
|
755
|
+
>
|
|
756
|
+
<span
|
|
757
|
+
class="title default "
|
|
758
|
+
data-title="Header Title"
|
|
759
|
+
>
|
|
760
|
+
Header Title
|
|
761
|
+
</span>
|
|
762
|
+
<span>
|
|
763
|
+
Title Child Element
|
|
764
|
+
</span>
|
|
765
|
+
</div>
|
|
766
|
+
</div>
|
|
767
|
+
</div>
|
|
768
|
+
</DocumentFragment>
|
|
769
|
+
`;
|
|
770
|
+
|
|
771
|
+
exports[`ModuleHeader snapshot - Render with renderTitleChildren as function 1`] = `
|
|
772
|
+
<DocumentFragment>
|
|
773
|
+
<div
|
|
774
|
+
class="container default flex rowdir wrap vCenter"
|
|
775
|
+
data-drag-hook="true"
|
|
776
|
+
data-id="containerComponent"
|
|
777
|
+
data-selector-id="container"
|
|
778
|
+
data-test-id="containerComponent"
|
|
779
|
+
>
|
|
780
|
+
<div
|
|
781
|
+
class="grow basis shrinkOff"
|
|
782
|
+
data-id="boxComponent"
|
|
783
|
+
data-selector-id="box"
|
|
784
|
+
data-test-id="boxComponent"
|
|
785
|
+
>
|
|
786
|
+
<div
|
|
787
|
+
class="title flex rowdir vCenter"
|
|
788
|
+
data-id="containerComponent"
|
|
789
|
+
data-selector-id="container"
|
|
790
|
+
data-test-id="containerComponent"
|
|
791
|
+
>
|
|
792
|
+
<span
|
|
793
|
+
class="title default "
|
|
794
|
+
data-title="Header Title"
|
|
795
|
+
>
|
|
796
|
+
Header Title
|
|
797
|
+
</span>
|
|
798
|
+
<span>
|
|
799
|
+
Title Child
|
|
800
|
+
</span>
|
|
801
|
+
</div>
|
|
802
|
+
</div>
|
|
803
|
+
</div>
|
|
804
|
+
</DocumentFragment>
|
|
805
|
+
`;
|