@coorpacademy/components 11.19.1-alpha.13 → 11.19.1-alpha.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.
- package/es/atom/button-link/index.js +2 -2
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/style.css +0 -1
- package/es/atom/drag-and-drop/index.d.ts +0 -1
- package/es/atom/drag-and-drop/index.d.ts.map +1 -1
- package/es/atom/drag-and-drop/index.js +6 -24
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/drag-and-drop/style.css +7 -22
- package/es/atom/{input-file-draggable → image-upload}/index.d.ts +5 -10
- package/es/atom/image-upload/index.d.ts.map +1 -0
- package/es/atom/{input-file-draggable → image-upload}/index.js +11 -34
- package/es/atom/image-upload/index.js.map +1 -0
- package/es/atom/image-upload/style.css +28 -0
- package/es/atom/title/style.css +1 -1
- package/es/atom/video-upload/index.d.ts +0 -1
- package/es/molecule/brand-form-group/index.js +5 -5
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +6 -2
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/style.css +2 -2
- package/es/molecule/cm-popin/index.d.ts.map +1 -1
- package/es/molecule/cm-popin/index.js +20 -27
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +73 -112
- package/es/molecule/cm-popin/types.d.ts +5 -182
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js +3 -5
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/index.d.ts +1 -2
- package/es/molecule/drag-and-drop-wrapper/index.js +3 -3
- package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/es/molecule/setup-slider/index.js +3 -3
- package/es/molecule/setup-slider/index.js.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -2
- package/es/molecule/title-radio-wrapper/index.d.ts +17 -18
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/index.js +2 -2
- package/es/molecule/title-radio-wrapper/index.js.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +19 -20
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.js +2 -2
- package/es/molecule/title-radio-wrapper/types.js.map +1 -1
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +5 -2
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +7 -3
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +3 -1
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/list-items/style.css +4 -1
- package/es/organism/rewards-form/index.d.ts +1 -2
- package/es/organism/select-opponents/index.d.ts +17 -18
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +17 -18
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/setup-header/style.css +1 -3
- package/es/organism/title-and-input/index.d.ts +17 -18
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +17 -18
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +1 -2
- package/es/template/app-player/loading/index.d.ts +2 -178
- package/es/template/app-player/player/index.d.ts +4 -356
- package/es/template/app-player/player/slides/index.d.ts +2 -178
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +2 -178
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +2 -178
- package/es/template/app-review/index.d.ts +2 -178
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +2 -178
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +2 -178
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +2 -178
- package/es/template/cockpit/jw-uploader/index.d.ts +0 -1
- package/es/template/common/dashboard/index.d.ts +4 -356
- package/es/template/common/search-page/index.d.ts +2 -178
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +20 -2
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/external-course/index.d.ts +2 -178
- package/es/util/proptypes.d.ts +1 -1
- package/es/util/proptypes.d.ts.map +1 -1
- package/es/util/proptypes.js +5 -6
- package/es/util/proptypes.js.map +1 -1
- package/lib/atom/button-link/index.js +2 -2
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/style.css +0 -1
- package/lib/atom/drag-and-drop/index.d.ts +0 -1
- package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
- package/lib/atom/drag-and-drop/index.js +6 -24
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/drag-and-drop/style.css +7 -22
- package/lib/atom/{input-file-draggable → image-upload}/index.d.ts +5 -10
- package/lib/atom/image-upload/index.d.ts.map +1 -0
- package/lib/atom/{input-file-draggable → image-upload}/index.js +10 -34
- package/lib/atom/image-upload/index.js.map +1 -0
- package/lib/atom/image-upload/style.css +28 -0
- package/lib/atom/title/style.css +1 -1
- package/lib/atom/video-upload/index.d.ts +0 -1
- package/lib/molecule/brand-form-group/index.js +5 -5
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +6 -2
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/style.css +2 -2
- package/lib/molecule/cm-popin/index.d.ts.map +1 -1
- package/lib/molecule/cm-popin/index.js +19 -29
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +73 -112
- package/lib/molecule/cm-popin/types.d.ts +5 -182
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +3 -6
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/index.d.ts +1 -2
- package/lib/molecule/drag-and-drop-wrapper/index.js +3 -3
- package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/lib/molecule/setup-slider/index.js +3 -3
- package/lib/molecule/setup-slider/index.js.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -2
- package/lib/molecule/title-radio-wrapper/index.d.ts +17 -18
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/index.js +2 -2
- package/lib/molecule/title-radio-wrapper/index.js.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +19 -20
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.js +2 -2
- package/lib/molecule/title-radio-wrapper/types.js.map +1 -1
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +5 -3
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +7 -3
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +3 -1
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/list-items/style.css +4 -1
- package/lib/organism/rewards-form/index.d.ts +1 -2
- package/lib/organism/select-opponents/index.d.ts +17 -18
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +17 -18
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/setup-header/style.css +1 -3
- package/lib/organism/title-and-input/index.d.ts +17 -18
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +17 -18
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +1 -2
- package/lib/template/app-player/loading/index.d.ts +2 -178
- package/lib/template/app-player/player/index.d.ts +4 -356
- package/lib/template/app-player/player/slides/index.d.ts +2 -178
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +2 -178
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +2 -178
- package/lib/template/app-review/index.d.ts +2 -178
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +2 -178
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +2 -178
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +2 -178
- package/lib/template/cockpit/jw-uploader/index.d.ts +0 -1
- package/lib/template/common/dashboard/index.d.ts +4 -356
- package/lib/template/common/search-page/index.d.ts +2 -178
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +24 -2
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/external-course/index.d.ts +2 -178
- package/lib/util/proptypes.d.ts +1 -1
- package/lib/util/proptypes.d.ts.map +1 -1
- package/lib/util/proptypes.js +7 -10
- package/lib/util/proptypes.js.map +1 -1
- package/package.json +2 -2
- package/es/atom/input-file-draggable/index.d.ts.map +0 -1
- package/es/atom/input-file-draggable/index.js.map +0 -1
- package/es/atom/input-file-draggable/style.css +0 -81
- package/lib/atom/input-file-draggable/index.d.ts.map +0 -1
- package/lib/atom/input-file-draggable/index.js.map +0 -1
- package/lib/atom/input-file-draggable/style.css +0 -81
|
@@ -221,7 +221,6 @@ declare namespace SearchPage {
|
|
|
221
221
|
backgroundImageUrl: PropTypes.Requireable<string>;
|
|
222
222
|
descriptionText: PropTypes.Requireable<string>;
|
|
223
223
|
cookieTitle: PropTypes.Requireable<string>;
|
|
224
|
-
headerSubtitle: PropTypes.Requireable<string>;
|
|
225
224
|
descriptionBtnTxt: PropTypes.Requireable<string>;
|
|
226
225
|
listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
227
226
|
title: PropTypes.Requireable<string>;
|
|
@@ -242,185 +241,10 @@ declare namespace SearchPage {
|
|
|
242
241
|
}> | null | undefined)[]>;
|
|
243
242
|
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
244
243
|
type: PropTypes.Requireable<string>;
|
|
245
|
-
list: PropTypes.Requireable<
|
|
244
|
+
list: PropTypes.Requireable<PropTypes.InferProps<{
|
|
246
245
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
247
246
|
loading: PropTypes.Requireable<boolean>;
|
|
248
|
-
}
|
|
249
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
250
|
-
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
251
|
-
type: PropTypes.Requireable<string>;
|
|
252
|
-
label: PropTypes.Requireable<string>;
|
|
253
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
254
|
-
'data-name': PropTypes.Requireable<string>;
|
|
255
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
256
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
257
|
-
position: PropTypes.Requireable<string>;
|
|
258
|
-
type: PropTypes.Requireable<string>;
|
|
259
|
-
}>>;
|
|
260
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
261
|
-
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
262
|
-
href: PropTypes.Requireable<string>;
|
|
263
|
-
download: PropTypes.Requireable<boolean>;
|
|
264
|
-
target: PropTypes.Requireable<string>;
|
|
265
|
-
}>>;
|
|
266
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
267
|
-
className: PropTypes.Requireable<string>;
|
|
268
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
269
|
-
}>>;
|
|
270
|
-
selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
|
|
271
|
-
title: PropTypes.Requireable<string>;
|
|
272
|
-
placeholder: PropTypes.Requireable<string>;
|
|
273
|
-
description: PropTypes.Requireable<string>;
|
|
274
|
-
hint: PropTypes.Requireable<string>;
|
|
275
|
-
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
276
|
-
selected: PropTypes.Validator<boolean>;
|
|
277
|
-
name: PropTypes.Validator<string>;
|
|
278
|
-
value: PropTypes.Requireable<string>;
|
|
279
|
-
}>>[]>;
|
|
280
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
281
|
-
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
282
|
-
multiple: PropTypes.Requireable<boolean>;
|
|
283
|
-
modified: PropTypes.Requireable<boolean>;
|
|
284
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
285
|
-
error: PropTypes.Requireable<string>;
|
|
286
|
-
theme: PropTypes.Requireable<string>;
|
|
287
|
-
}>>;
|
|
288
|
-
content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
289
|
-
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
290
|
-
title: PropTypes.Validator<string>;
|
|
291
|
-
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
292
|
-
label: PropTypes.Requireable<string>;
|
|
293
|
-
type: PropTypes.Requireable<string>;
|
|
294
|
-
className: PropTypes.Requireable<string>;
|
|
295
|
-
}> | null | undefined)[]>;
|
|
296
|
-
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
297
|
-
type: PropTypes.Requireable<string>;
|
|
298
|
-
label: PropTypes.Requireable<string>;
|
|
299
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
300
|
-
dataName: PropTypes.Requireable<string>;
|
|
301
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
302
|
-
position: PropTypes.Requireable<string>;
|
|
303
|
-
type: PropTypes.Requireable<string>;
|
|
304
|
-
}>>;
|
|
305
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
306
|
-
}>>;
|
|
307
|
-
buttonLinkIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
308
|
-
size: PropTypes.Requireable<string>;
|
|
309
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
310
|
-
'data-name': PropTypes.Requireable<string>;
|
|
311
|
-
icon: PropTypes.Requireable<string>;
|
|
312
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
313
|
-
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
314
|
-
href: PropTypes.Requireable<string>;
|
|
315
|
-
download: PropTypes.Requireable<boolean>;
|
|
316
|
-
target: PropTypes.Requireable<string>;
|
|
317
|
-
}>>;
|
|
318
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
319
|
-
className: PropTypes.Requireable<string>;
|
|
320
|
-
}>>;
|
|
321
|
-
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
322
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
323
|
-
menuAriaLabel: PropTypes.Requireable<string>;
|
|
324
|
-
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
325
|
-
'data-name': PropTypes.Requireable<string>;
|
|
326
|
-
label: PropTypes.Requireable<string>;
|
|
327
|
-
type: PropTypes.Requireable<string>;
|
|
328
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
329
|
-
}> | null | undefined)[]>;
|
|
330
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
331
|
-
}>>;
|
|
332
|
-
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
333
|
-
label: PropTypes.Requireable<string>;
|
|
334
|
-
type: PropTypes.Requireable<string>;
|
|
335
|
-
}> | null | undefined)[]>;
|
|
336
|
-
isBulkStyle: PropTypes.Requireable<boolean>;
|
|
337
|
-
order: PropTypes.Requireable<number>;
|
|
338
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
339
|
-
contentType: PropTypes.Requireable<string>;
|
|
340
|
-
id: PropTypes.Requireable<string>;
|
|
341
|
-
}> | null | undefined)[]>;
|
|
342
|
-
type: PropTypes.Requireable<string>;
|
|
343
|
-
itemType: PropTypes.Requireable<string>;
|
|
344
|
-
onDrop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
345
|
-
isDraggable: PropTypes.Requireable<boolean>;
|
|
346
|
-
tableHeader: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
347
|
-
}> | PropTypes.InferProps<{
|
|
348
|
-
type: PropTypes.Requireable<string>;
|
|
349
|
-
columns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
350
|
-
title: PropTypes.Validator<string>;
|
|
351
|
-
}> | null | undefined)[]>;
|
|
352
|
-
rows: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
353
|
-
fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
|
|
354
|
-
type: PropTypes.Requireable<string>;
|
|
355
|
-
current: PropTypes.Requireable<boolean>;
|
|
356
|
-
selected: PropTypes.Requireable<boolean>;
|
|
357
|
-
icon: PropTypes.Requireable<string>;
|
|
358
|
-
value: PropTypes.Requireable<string>;
|
|
359
|
-
}> | null | undefined> | null | undefined)[]>;
|
|
360
|
-
isRowExpandible: PropTypes.Requireable<boolean>;
|
|
361
|
-
lastField: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
|
|
362
|
-
type: PropTypes.Requireable<string>;
|
|
363
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
364
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
365
|
-
menuAriaLabel: PropTypes.Requireable<string>;
|
|
366
|
-
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
367
|
-
'data-name': PropTypes.Requireable<string>;
|
|
368
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
369
|
-
label: PropTypes.Validator<string>;
|
|
370
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
371
|
-
type: PropTypes.Requireable<string>;
|
|
372
|
-
}> | null | undefined)[]>;
|
|
373
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
374
|
-
menuButtonClassName: PropTypes.Requireable<string>;
|
|
375
|
-
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
376
|
-
}> | null | undefined>>;
|
|
377
|
-
}> | null | undefined)[]>;
|
|
378
|
-
stickyFirstColumn: PropTypes.Requireable<boolean>;
|
|
379
|
-
stickyLastColumn: PropTypes.Requireable<boolean>;
|
|
380
|
-
columnWidth: PropTypes.Requireable<string>;
|
|
381
|
-
ariaDescribedby: PropTypes.Requireable<string>;
|
|
382
|
-
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
383
|
-
componentType: PropTypes.Requireable<string>;
|
|
384
|
-
type: PropTypes.Requireable<string>;
|
|
385
|
-
label: PropTypes.Requireable<string>;
|
|
386
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
387
|
-
'data-name': PropTypes.Requireable<string>;
|
|
388
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
389
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
390
|
-
position: PropTypes.Requireable<string>;
|
|
391
|
-
type: PropTypes.Requireable<string>;
|
|
392
|
-
}>>;
|
|
393
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
394
|
-
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
395
|
-
href: PropTypes.Requireable<string>;
|
|
396
|
-
download: PropTypes.Requireable<boolean>;
|
|
397
|
-
target: PropTypes.Requireable<string>;
|
|
398
|
-
}>>;
|
|
399
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
400
|
-
className: PropTypes.Requireable<string>;
|
|
401
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
402
|
-
}> | PropTypes.InferProps<{
|
|
403
|
-
componentType: PropTypes.Requireable<string>;
|
|
404
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
405
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
406
|
-
menuAriaLabel: PropTypes.Requireable<string>;
|
|
407
|
-
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
408
|
-
'data-name': PropTypes.Requireable<string>;
|
|
409
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
410
|
-
label: PropTypes.Validator<string>;
|
|
411
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
412
|
-
type: PropTypes.Requireable<string>;
|
|
413
|
-
}> | null | undefined)[]>;
|
|
414
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
415
|
-
menuButtonClassName: PropTypes.Requireable<string>;
|
|
416
|
-
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
417
|
-
}> | null | undefined>>;
|
|
418
|
-
isNestedTable: PropTypes.Requireable<boolean>;
|
|
419
|
-
emptyStateFirstMessage: PropTypes.Requireable<string>;
|
|
420
|
-
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
421
|
-
}> | null | undefined>>;
|
|
422
|
-
title: PropTypes.Requireable<string>;
|
|
423
|
-
}> | null | undefined>>;
|
|
247
|
+
}>>;
|
|
424
248
|
}>>;
|
|
425
249
|
}>>;
|
|
426
250
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAWA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAWA,mEA0EC"}
|
|
@@ -7,7 +7,7 @@ var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
|
|
|
7
7
|
|
|
8
8
|
var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
|
|
9
9
|
|
|
10
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
@@ -25,6 +25,10 @@ var _cmPopin = _interopRequireDefault(require("../../../molecule/cm-popin"));
|
|
|
25
25
|
|
|
26
26
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
27
27
|
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
|
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
28
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
33
|
|
|
30
34
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -47,6 +51,22 @@ const SearchPage = (props, context) => {
|
|
|
47
51
|
skin
|
|
48
52
|
} = context;
|
|
49
53
|
const defaultColor = (0, _getOr2.default)('#00B0FF', 'common.primary', skin);
|
|
54
|
+
const nodeRef = (0, _react.useRef)(null);
|
|
55
|
+
const closePopin = (0, _react.useCallback)(e => {
|
|
56
|
+
// eslint-disable-next-line no-console
|
|
57
|
+
console.log(nodeRef);
|
|
58
|
+
|
|
59
|
+
if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {
|
|
60
|
+
// eslint-disable-next-line no-console
|
|
61
|
+
console.log('closePopin function called');
|
|
62
|
+
}
|
|
63
|
+
}, []);
|
|
64
|
+
(0, _react.useEffect)(() => {
|
|
65
|
+
document.addEventListener('click', closePopin);
|
|
66
|
+
return () => {
|
|
67
|
+
document.removeEventListener('click', closePopin);
|
|
68
|
+
};
|
|
69
|
+
}, [closePopin]);
|
|
50
70
|
const recommendationsView = (0, _isEmpty2.default)(recommendations) ? null : /*#__PURE__*/_react.default.createElement(_cardsList.default, recommendations);
|
|
51
71
|
const cardsView = (0, _isEmpty2.default)(cards.list) ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
52
72
|
className: _style.default.noresults
|
|
@@ -60,7 +80,9 @@ const SearchPage = (props, context) => {
|
|
|
60
80
|
},
|
|
61
81
|
type: "link"
|
|
62
82
|
}))), recommendationsView) : /*#__PURE__*/_react.default.createElement(_cardsGrid.default, cards);
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement("div",
|
|
83
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
84
|
+
ref: nodeRef
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement(_filters.default, _extends({}, searchFilters, {
|
|
64
86
|
moreSortAriaLabel: moreSortAriaLabel,
|
|
65
87
|
moreFilterAriaLabel: moreFilterAriaLabel,
|
|
66
88
|
filterGroupAriaLabel: filterGroupAriaLabel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","skin","defaultColor","recommendationsView","cardsView","list","style","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","shape","Filters","CardsGrid","Button","CardsList","CMPopin"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CMPopin from '../../../molecule/cm-popin';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA
|
|
1
|
+
{"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","skin","defaultColor","nodeRef","useRef","closePopin","useCallback","e","console","log","current","contains","target","useEffect","document","addEventListener","removeEventListener","recommendationsView","cardsView","list","style","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","shape","Filters","CardsGrid","Button","CardsList","CMPopin"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useCallback, useEffect, useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CMPopin from '../../../molecule/cm-popin';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n const nodeRef = useRef(null);\n const closePopin = useCallback(e => {\n // eslint-disable-next-line no-console\n console.log(nodeRef);\n if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {\n // eslint-disable-next-line no-console\n console.log('closePopin function called');\n }\n }, []);\n useEffect(() => {\n document.addEventListener('click', closePopin);\n return () => {\n document.removeEventListener('click', closePopin);\n };\n }, [closePopin]);\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div ref={nodeRef}>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,UAAU,GAA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jC,iBAAiB,EAAEkC,kBAAA,CAAUC,MAPR;EAQrBlC,mBAAmB,EAAEiC,kBAAA,CAAUC,MARV;EASrBjC,oBAAoB,EAAEgC,kBAAA,CAAUC,MATX;EAUrBhC,aAAa,EAAE+B,kBAAA,CAAUC,MAVJ;EAWrB/B,cAAc,EAAE8B,kBAAA,CAAUE,KAAV,CAAgBK,gBAAA,CAAQR,SAAxB;AAXK,CAAvB;eAce1C,U"}
|
|
@@ -66,7 +66,6 @@ declare namespace ExternalCourse {
|
|
|
66
66
|
backgroundImageUrl: PropTypes.Requireable<string>;
|
|
67
67
|
descriptionText: PropTypes.Requireable<string>;
|
|
68
68
|
cookieTitle: PropTypes.Requireable<string>;
|
|
69
|
-
headerSubtitle: PropTypes.Requireable<string>;
|
|
70
69
|
descriptionBtnTxt: PropTypes.Requireable<string>;
|
|
71
70
|
listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
72
71
|
title: PropTypes.Requireable<string>;
|
|
@@ -87,185 +86,10 @@ declare namespace ExternalCourse {
|
|
|
87
86
|
}> | null | undefined)[]>;
|
|
88
87
|
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
89
88
|
type: PropTypes.Requireable<string>;
|
|
90
|
-
list: PropTypes.Requireable<
|
|
89
|
+
list: PropTypes.Requireable<PropTypes.InferProps<{
|
|
91
90
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
92
91
|
loading: PropTypes.Requireable<boolean>;
|
|
93
|
-
}
|
|
94
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
95
|
-
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
96
|
-
type: PropTypes.Requireable<string>;
|
|
97
|
-
label: PropTypes.Requireable<string>;
|
|
98
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
99
|
-
'data-name': PropTypes.Requireable<string>;
|
|
100
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
101
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
102
|
-
position: PropTypes.Requireable<string>;
|
|
103
|
-
type: PropTypes.Requireable<string>;
|
|
104
|
-
}>>;
|
|
105
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
106
|
-
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
107
|
-
href: PropTypes.Requireable<string>;
|
|
108
|
-
download: PropTypes.Requireable<boolean>;
|
|
109
|
-
target: PropTypes.Requireable<string>;
|
|
110
|
-
}>>;
|
|
111
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
112
|
-
className: PropTypes.Requireable<string>;
|
|
113
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
114
|
-
}>>;
|
|
115
|
-
selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
|
|
116
|
-
title: PropTypes.Requireable<string>;
|
|
117
|
-
placeholder: PropTypes.Requireable<string>;
|
|
118
|
-
description: PropTypes.Requireable<string>;
|
|
119
|
-
hint: PropTypes.Requireable<string>;
|
|
120
|
-
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
121
|
-
selected: PropTypes.Validator<boolean>;
|
|
122
|
-
name: PropTypes.Validator<string>;
|
|
123
|
-
value: PropTypes.Requireable<string>;
|
|
124
|
-
}>>[]>;
|
|
125
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
126
|
-
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
127
|
-
multiple: PropTypes.Requireable<boolean>;
|
|
128
|
-
modified: PropTypes.Requireable<boolean>;
|
|
129
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
130
|
-
error: PropTypes.Requireable<string>;
|
|
131
|
-
theme: PropTypes.Requireable<string>;
|
|
132
|
-
}>>;
|
|
133
|
-
content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
134
|
-
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
135
|
-
title: PropTypes.Validator<string>;
|
|
136
|
-
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
137
|
-
label: PropTypes.Requireable<string>;
|
|
138
|
-
type: PropTypes.Requireable<string>;
|
|
139
|
-
className: PropTypes.Requireable<string>;
|
|
140
|
-
}> | null | undefined)[]>;
|
|
141
|
-
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
142
|
-
type: PropTypes.Requireable<string>;
|
|
143
|
-
label: PropTypes.Requireable<string>;
|
|
144
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
145
|
-
dataName: PropTypes.Requireable<string>;
|
|
146
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
147
|
-
position: PropTypes.Requireable<string>;
|
|
148
|
-
type: PropTypes.Requireable<string>;
|
|
149
|
-
}>>;
|
|
150
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
151
|
-
}>>;
|
|
152
|
-
buttonLinkIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
153
|
-
size: PropTypes.Requireable<string>;
|
|
154
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
155
|
-
'data-name': PropTypes.Requireable<string>;
|
|
156
|
-
icon: PropTypes.Requireable<string>;
|
|
157
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
158
|
-
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
159
|
-
href: PropTypes.Requireable<string>;
|
|
160
|
-
download: PropTypes.Requireable<boolean>;
|
|
161
|
-
target: PropTypes.Requireable<string>;
|
|
162
|
-
}>>;
|
|
163
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
164
|
-
className: PropTypes.Requireable<string>;
|
|
165
|
-
}>>;
|
|
166
|
-
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
167
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
168
|
-
menuAriaLabel: PropTypes.Requireable<string>;
|
|
169
|
-
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
170
|
-
'data-name': PropTypes.Requireable<string>;
|
|
171
|
-
label: PropTypes.Requireable<string>;
|
|
172
|
-
type: PropTypes.Requireable<string>;
|
|
173
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
174
|
-
}> | null | undefined)[]>;
|
|
175
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
176
|
-
}>>;
|
|
177
|
-
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
178
|
-
label: PropTypes.Requireable<string>;
|
|
179
|
-
type: PropTypes.Requireable<string>;
|
|
180
|
-
}> | null | undefined)[]>;
|
|
181
|
-
isBulkStyle: PropTypes.Requireable<boolean>;
|
|
182
|
-
order: PropTypes.Requireable<number>;
|
|
183
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
184
|
-
contentType: PropTypes.Requireable<string>;
|
|
185
|
-
id: PropTypes.Requireable<string>;
|
|
186
|
-
}> | null | undefined)[]>;
|
|
187
|
-
type: PropTypes.Requireable<string>;
|
|
188
|
-
itemType: PropTypes.Requireable<string>;
|
|
189
|
-
onDrop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
190
|
-
isDraggable: PropTypes.Requireable<boolean>;
|
|
191
|
-
tableHeader: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
192
|
-
}> | PropTypes.InferProps<{
|
|
193
|
-
type: PropTypes.Requireable<string>;
|
|
194
|
-
columns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
195
|
-
title: PropTypes.Validator<string>;
|
|
196
|
-
}> | null | undefined)[]>;
|
|
197
|
-
rows: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
198
|
-
fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
|
|
199
|
-
type: PropTypes.Requireable<string>;
|
|
200
|
-
current: PropTypes.Requireable<boolean>;
|
|
201
|
-
selected: PropTypes.Requireable<boolean>;
|
|
202
|
-
icon: PropTypes.Requireable<string>;
|
|
203
|
-
value: PropTypes.Requireable<string>;
|
|
204
|
-
}> | null | undefined> | null | undefined)[]>;
|
|
205
|
-
isRowExpandible: PropTypes.Requireable<boolean>;
|
|
206
|
-
lastField: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
|
|
207
|
-
type: PropTypes.Requireable<string>;
|
|
208
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
209
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
210
|
-
menuAriaLabel: PropTypes.Requireable<string>;
|
|
211
|
-
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
212
|
-
'data-name': PropTypes.Requireable<string>;
|
|
213
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
214
|
-
label: PropTypes.Validator<string>;
|
|
215
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
216
|
-
type: PropTypes.Requireable<string>;
|
|
217
|
-
}> | null | undefined)[]>;
|
|
218
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
219
|
-
menuButtonClassName: PropTypes.Requireable<string>;
|
|
220
|
-
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
221
|
-
}> | null | undefined>>;
|
|
222
|
-
}> | null | undefined)[]>;
|
|
223
|
-
stickyFirstColumn: PropTypes.Requireable<boolean>;
|
|
224
|
-
stickyLastColumn: PropTypes.Requireable<boolean>;
|
|
225
|
-
columnWidth: PropTypes.Requireable<string>;
|
|
226
|
-
ariaDescribedby: PropTypes.Requireable<string>;
|
|
227
|
-
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
228
|
-
componentType: PropTypes.Requireable<string>;
|
|
229
|
-
type: PropTypes.Requireable<string>;
|
|
230
|
-
label: PropTypes.Requireable<string>;
|
|
231
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
232
|
-
'data-name': PropTypes.Requireable<string>;
|
|
233
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
234
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
235
|
-
position: PropTypes.Requireable<string>;
|
|
236
|
-
type: PropTypes.Requireable<string>;
|
|
237
|
-
}>>;
|
|
238
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
239
|
-
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
240
|
-
href: PropTypes.Requireable<string>;
|
|
241
|
-
download: PropTypes.Requireable<boolean>;
|
|
242
|
-
target: PropTypes.Requireable<string>;
|
|
243
|
-
}>>;
|
|
244
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
245
|
-
className: PropTypes.Requireable<string>;
|
|
246
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
247
|
-
}> | PropTypes.InferProps<{
|
|
248
|
-
componentType: PropTypes.Requireable<string>;
|
|
249
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
250
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
251
|
-
menuAriaLabel: PropTypes.Requireable<string>;
|
|
252
|
-
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
253
|
-
'data-name': PropTypes.Requireable<string>;
|
|
254
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
255
|
-
label: PropTypes.Validator<string>;
|
|
256
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
257
|
-
type: PropTypes.Requireable<string>;
|
|
258
|
-
}> | null | undefined)[]>;
|
|
259
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
260
|
-
menuButtonClassName: PropTypes.Requireable<string>;
|
|
261
|
-
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
262
|
-
}> | null | undefined>>;
|
|
263
|
-
isNestedTable: PropTypes.Requireable<boolean>;
|
|
264
|
-
emptyStateFirstMessage: PropTypes.Requireable<string>;
|
|
265
|
-
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
266
|
-
}> | null | undefined>>;
|
|
267
|
-
title: PropTypes.Requireable<string>;
|
|
268
|
-
}> | null | undefined>>;
|
|
92
|
+
}>>;
|
|
269
93
|
}>>;
|
|
270
94
|
}>>;
|
|
271
95
|
}
|
package/lib/util/proptypes.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const UrlPropType: any;
|
|
2
2
|
export const PathPropType: any;
|
|
3
3
|
export const SrcPropType: PropTypes.Requireable<any>;
|
|
4
|
-
export function
|
|
4
|
+
export function ImagePropType(props: any, propName: any, componentName: any): Error | null;
|
|
5
5
|
export const ColorPropType: any;
|
|
6
6
|
export const HexPropType: any;
|
|
7
7
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proptypes.d.ts","sourceRoot":"","sources":["../../src/util/proptypes.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proptypes.d.ts","sourceRoot":"","sources":["../../src/util/proptypes.js"],"names":[],"mappings":"AAYA,8BAAsD;AAGtD,+BAAwD;AAExD,qDAA4E;AAErE,2FAmBN;AAED,gCAA4C;AAC5C,8BAAwC"}
|
package/lib/util/proptypes.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.UrlPropType = exports.SrcPropType = exports.PathPropType = exports.
|
|
4
|
+
exports.UrlPropType = exports.SrcPropType = exports.PathPropType = exports.ImagePropType = exports.HexPropType = exports.ColorPropType = void 0;
|
|
5
5
|
|
|
6
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
7
|
|
|
@@ -19,10 +19,6 @@ var _color = _interopRequireDefault(require("extended-proptypes/lib/validators/c
|
|
|
19
19
|
|
|
20
20
|
var _hex = _interopRequireDefault(require("extended-proptypes/lib/validators/hex"));
|
|
21
21
|
|
|
22
|
-
var _isEmpty = _interopRequireDefault(require("lodash/fp/isEmpty"));
|
|
23
|
-
|
|
24
|
-
var _head = _interopRequireDefault(require("lodash/fp/head"));
|
|
25
|
-
|
|
26
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
23
|
|
|
28
24
|
const URL_REGEXP = /^(http(s)?:\/\/.)[-a-zA-Z0-9@:%._\\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)$/;
|
|
@@ -36,16 +32,17 @@ const SrcPropType = _propTypes.default.oneOfType([UrlPropType, PathPropType]);
|
|
|
36
32
|
|
|
37
33
|
exports.SrcPropType = SrcPropType;
|
|
38
34
|
|
|
39
|
-
const
|
|
40
|
-
const
|
|
35
|
+
const ImagePropType = (props, propName, componentName) => {
|
|
36
|
+
const validImageTypes = ['image/jpeg', 'image/png', 'image/svg+xml', 'image/*', 'application/pdf'];
|
|
41
37
|
const propValue = props[propName];
|
|
42
|
-
|
|
43
|
-
const
|
|
38
|
+
if (!propValue) return new Error(`Missing prop: ${propName} at component: ${componentName}`);
|
|
39
|
+
const imageTypes = (0, _split.default)(',', propValue);
|
|
40
|
+
const isValid = (0, _every.default)(type => (0, _includes.default)((0, _trim.default)(type), validImageTypes), imageTypes);
|
|
44
41
|
if (isValid) return null;
|
|
45
42
|
return new Error(`Invalid prop value: ${propValue}, at component: ${componentName}. Expected a valid image type: image/jpeg, image/png, image/* image/svg+xml or application/pdf.`);
|
|
46
43
|
};
|
|
47
44
|
|
|
48
|
-
exports.
|
|
45
|
+
exports.ImagePropType = ImagePropType;
|
|
49
46
|
const ColorPropType = _color.default;
|
|
50
47
|
exports.ColorPropType = ColorPropType;
|
|
51
48
|
const HexPropType = _hex.default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proptypes.js","names":["URL_REGEXP","UrlPropType","stringMatching","PATH_REGEXP","PathPropType","SrcPropType","PropTypes","oneOfType","
|
|
1
|
+
{"version":3,"file":"proptypes.js","names":["URL_REGEXP","UrlPropType","stringMatching","PATH_REGEXP","PathPropType","SrcPropType","PropTypes","oneOfType","ImagePropType","props","propName","componentName","validImageTypes","propValue","Error","imageTypes","split","isValid","every","type","includes","trim","ColorPropType","_ColorPropType","HexPropType","_HexPropType"],"sources":["../../src/util/proptypes.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport split from 'lodash/fp/split';\nimport trim from 'lodash/fp/trim';\nimport includes from 'lodash/fp/includes';\nimport every from 'lodash/fp/every';\nimport stringMatching from 'extended-proptypes/lib/validators/stringMatching';\n\nimport _ColorPropType from 'extended-proptypes/lib/validators/color';\nimport _HexPropType from 'extended-proptypes/lib/validators/hex';\n\nconst URL_REGEXP =\n /^(http(s)?:\\/\\/.)[-a-zA-Z0-9@:%._\\\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const UrlPropType = stringMatching(URL_REGEXP);\n\nconst PATH_REGEXP = /^\\/([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const PathPropType = stringMatching(PATH_REGEXP);\n\nexport const SrcPropType = PropTypes.oneOfType([UrlPropType, PathPropType]);\n\nexport const ImagePropType = (props, propName, componentName) => {\n const validImageTypes = [\n 'image/jpeg',\n 'image/png',\n 'image/svg+xml',\n 'image/*',\n 'application/pdf'\n ];\n\n const propValue = props[propName];\n if (!propValue) return new Error(`Missing prop: ${propName} at component: ${componentName}`);\n\n const imageTypes = split(',', propValue);\n const isValid = every(type => includes(trim(type), validImageTypes), imageTypes);\n if (isValid) return null;\n\n return new Error(\n `Invalid prop value: ${propValue}, at component: ${componentName}. Expected a valid image type: image/jpeg, image/png, image/* image/svg+xml or application/pdf.`\n );\n};\n\nexport const ColorPropType = _ColorPropType;\nexport const HexPropType = _HexPropType;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,UAAU,GACd,8FADF;AAEO,MAAMC,WAAW,GAAG,IAAAC,uBAAA,EAAeF,UAAf,CAApB;;AAEP,MAAMG,WAAW,GAAG,oCAApB;AACO,MAAMC,YAAY,GAAG,IAAAF,uBAAA,EAAeC,WAAf,CAArB;;;AAEA,MAAME,WAAW,GAAGC,kBAAA,CAAUC,SAAV,CAAoB,CAACN,WAAD,EAAcG,YAAd,CAApB,CAApB;;;;AAEA,MAAMI,aAAa,GAAG,CAACC,KAAD,EAAQC,QAAR,EAAkBC,aAAlB,KAAoC;EAC/D,MAAMC,eAAe,GAAG,CACtB,YADsB,EAEtB,WAFsB,EAGtB,eAHsB,EAItB,SAJsB,EAKtB,iBALsB,CAAxB;EAQA,MAAMC,SAAS,GAAGJ,KAAK,CAACC,QAAD,CAAvB;EACA,IAAI,CAACG,SAAL,EAAgB,OAAO,IAAIC,KAAJ,CAAW,iBAAgBJ,QAAS,kBAAiBC,aAAc,EAAnE,CAAP;EAEhB,MAAMI,UAAU,GAAG,IAAAC,cAAA,EAAM,GAAN,EAAWH,SAAX,CAAnB;EACA,MAAMI,OAAO,GAAG,IAAAC,cAAA,EAAMC,IAAI,IAAI,IAAAC,iBAAA,EAAS,IAAAC,aAAA,EAAKF,IAAL,CAAT,EAAqBP,eAArB,CAAd,EAAqDG,UAArD,CAAhB;EACA,IAAIE,OAAJ,EAAa,OAAO,IAAP;EAEb,OAAO,IAAIH,KAAJ,CACJ,uBAAsBD,SAAU,mBAAkBF,aAAc,iGAD5D,CAAP;AAGD,CAnBM;;;AAqBA,MAAMW,aAAa,GAAGC,cAAtB;;AACA,MAAMC,WAAW,GAAGC,YAApB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.19.1-alpha.
|
|
3
|
+
"version": "11.19.1-alpha.4+e7f778659",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"last 2 versions",
|
|
169
169
|
"IE 11"
|
|
170
170
|
],
|
|
171
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "e7f77865961b872c49288b1d348a69bbccf0786d"
|
|
172
172
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-file-draggable/index.js"],"names":[],"mappings":";AAYA;;;;;;;;;;;;;;;;;;;;;;;;;gBA4GC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useCallback","PropTypes","NovaSolidFilesBasicFileLines","FileLinesIcon","NovaCompositionCoorpacademyEye","EyeIcon","DragAndDrop","Link","FilesPropType","style","InputFileDraggable","title","description","previewLabel","previewContent","uploadLabel","loading","modified","disabled","onChange","onReset","name","labelLink","labelButtonLink","hrefLink","filesTypes","error","buttonAriaLabel","errorButtonLabel","pdfButtonLabel","pdfButtonAriaLabel","filesNumber","multiple","required","onClick","handleReset","e","preventDefault","linkCustomStyle","width","color","onClick_","onDragStart","onDragStop","input","templateLink","href","download","multipleFilesContainer","icon","seeDetailsButton","seeIcon","propTypes","string","func"],"sources":["../../../src/atom/input-file-draggable/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {isNil} from 'lodash/fp';\nimport {\n NovaSolidFilesBasicFileLines as FileLinesIcon,\n NovaCompositionCoorpacademyEye as EyeIcon\n} from '@coorpacademy/nova-icons';\nimport DragAndDrop from '../drag-and-drop';\nimport Link from '../button-link';\nimport {FilesPropType} from '../../util/proptypes';\nimport style from './style.css';\n\nconst InputFileDraggable = ({\n title,\n description,\n previewLabel,\n previewContent,\n uploadLabel,\n loading,\n modified,\n disabled = false,\n onChange,\n onReset = null,\n name,\n labelLink,\n labelButtonLink,\n hrefLink,\n filesTypes = '',\n error = '',\n buttonAriaLabel,\n errorButtonLabel,\n pdfButtonLabel,\n pdfButtonAriaLabel,\n filesNumber = 0,\n multiple = false,\n required = false,\n onClick\n}) => {\n const handleReset = useCallback(\n e => {\n if (isNil(onReset)) return;\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n const linkCustomStyle = {\n width: '40px',\n color: '#FF541F'\n };\n\n const onClick_ = useCallback(\n e => {\n e.preventDefault();\n return onClick(e);\n },\n [onClick]\n );\n\n return (\n <>\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n previewContent={previewContent}\n uploadLabel={uploadLabel}\n loading={loading}\n modified={modified}\n onReset={handleReset}\n error={error}\n disabled={disabled}\n buttonAriaLabel={buttonAriaLabel}\n errorButtonLabel={errorButtonLabel}\n pdfButtonLabel={pdfButtonLabel}\n pdfButtonAriaLabel={pdfButtonAriaLabel}\n multiple={multiple}\n >\n {(onDragStart, onDragStop) => (\n <input\n type=\"file\"\n name={name}\n accept={filesTypes}\n disabled={loading || disabled}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n multiple={multiple}\n required={required}\n />\n )}\n </DragAndDrop>\n {labelLink && hrefLink ? (\n <div className={style.templateLink}>\n {labelLink}\n <Link\n type=\"text\"\n customStyle={linkCustomStyle}\n link={{href: hrefLink, download: true}}\n label={labelButtonLink}\n />\n </div>\n ) : null}\n {multiple && filesNumber > 0 ? (\n <div className={style.multipleFilesContainer}>\n <div className={style.filesNumber}>\n <FileLinesIcon className={style.icon} />\n <div>{filesNumber} files</div>\n </div>\n <div className={style.seeDetailsButton} onClick={onClick_}>\n <EyeIcon className={style.seeIcon} />\n <div>See details</div>\n </div>\n </div>\n ) : null}\n </>\n );\n};\n\nInputFileDraggable.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onReset: PropTypes.func,\n filesTypes: FilesPropType,\n error: PropTypes.string,\n buttonAriaLabel: PropTypes.string,\n errorButtonLabel: PropTypes.string,\n labelLink: PropTypes.string,\n hrefLink: PropTypes.string\n};\n\nexport default InputFileDraggable;\n"],"mappings":";;;;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SACEC,4BAA4B,IAAIC,aADlC,EAEEC,8BA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