@coorpacademy/components 10.4.1 → 10.4.3
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/autocomplete/test/fixtures/error.js +1 -1
- package/es/atom/autocomplete/test/fixtures/error.js.map +1 -1
- package/es/atom/autocomplete/test/fixtures/filled.js +1 -1
- package/es/atom/autocomplete/test/fixtures/filled.js.map +1 -1
- package/es/atom/autocomplete/test/fixtures/modified.js +1 -1
- package/es/atom/autocomplete/test/fixtures/modified.js.map +1 -1
- package/es/atom/clue/index.js.map +1 -1
- package/es/atom/cta/test/fixtures/certification.js +1 -1
- package/es/atom/cta/test/fixtures/certification.js.map +1 -1
- package/es/atom/cta/test/fixtures/disabled.js +1 -1
- package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
- package/es/atom/cta/test/fixtures/light-small.js +1 -1
- package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
- package/es/atom/cta/test/fixtures/light.js +1 -1
- package/es/atom/cta/test/fixtures/light.js.map +1 -1
- package/es/atom/cta/test/fixtures/logout.js +1 -1
- package/es/atom/cta/test/fixtures/logout.js.map +1 -1
- package/es/atom/cta/test/fixtures/primary-small.js +1 -1
- package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
- package/es/atom/cta/test/fixtures/rectangular.js +1 -1
- package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
- package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
- package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
- package/es/atom/cta/test/fixtures/secondary.js +1 -1
- package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
- package/es/atom/drag-and-drop/index.js +1 -1
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
- package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
- package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
- package/es/atom/image-upload/index.js +1 -1
- package/es/atom/image-upload/index.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/email.js +1 -1
- package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
- package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/modified.js +1 -1
- package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
- package/es/atom/input-html/index.js.map +1 -1
- package/es/atom/input-switch/style.css +4 -3
- package/es/atom/input-switch/test/fixtures/cm-right-disabled.js +6 -5
- package/es/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -1
- package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
- package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
- package/es/atom/input-switch/test/fixtures.js +10 -0
- package/es/atom/input-switch/test/fixtures.js.map +1 -1
- package/es/atom/link/index.js +3 -2
- package/es/atom/link/index.js.map +1 -1
- package/es/atom/loader/test/fixtures.js +0 -2
- package/es/atom/loader/test/fixtures.js.map +1 -1
- package/es/atom/promo-code/index.js.map +1 -1
- package/es/atom/provider/index.js.map +1 -1
- package/es/atom/provider/test/index.js +1 -1
- package/es/atom/provider/test/index.js.map +1 -1
- package/es/atom/range/index.js +1 -1
- package/es/atom/range/index.js.map +1 -1
- package/es/atom/range/test/fixtures/multi.js +1 -1
- package/es/atom/range/test/fixtures/multi.js.map +1 -1
- package/es/atom/range/test/index.js +9 -9
- package/es/atom/range/test/index.js.map +1 -1
- package/es/atom/video-upload/index.js +1 -1
- package/es/atom/video-upload/index.js.map +1 -1
- package/es/atom/video-upload/test/fixtures/loading.js +1 -1
- package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
- package/es/atom/video-upload/test/fixtures/modified.js +1 -1
- package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
- package/es/hoc/animation-scheduler/index.js +3 -3
- package/es/hoc/animation-scheduler/index.js.map +1 -1
- package/es/hoc/swapper/index.js +4 -2
- package/es/hoc/swapper/index.js.map +1 -1
- package/es/hoc/transition/index.js +1 -1
- package/es/hoc/transition/index.js.map +1 -1
- package/es/molecule/add-to-my-list/index.js +1 -1
- package/es/molecule/add-to-my-list/index.js.map +1 -1
- package/es/molecule/answer/index.js +3 -2
- package/es/molecule/answer/index.js.map +1 -1
- package/es/molecule/answer/test/fixtures/audio.js +1 -1
- package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
- package/es/molecule/answer/test/fixtures/default.js +1 -1
- package/es/molecule/answer/test/fixtures/default.js.map +1 -1
- package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
- package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
- package/es/molecule/answer/test/fixtures/range.js +1 -1
- package/es/molecule/answer/test/fixtures/range.js.map +1 -1
- package/es/molecule/answer/test/fixtures/template.js +1 -1
- package/es/molecule/answer/test/fixtures/template.js.map +1 -1
- package/es/molecule/brand-form-group/index.js +18 -18
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
- package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
- package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
- package/es/molecule/card/index.js +1 -1
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
- package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
- package/es/molecule/card/test/fixtures/disabled.js +1 -1
- package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
- package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
- package/es/molecule/card-with-button/index.js.map +1 -1
- package/es/molecule/coorp-manager-roles/index.js +1 -1
- package/es/molecule/coorp-manager-roles/index.js.map +1 -1
- package/es/molecule/dashboard/battle-request-list/index.js +1 -1
- package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/index.js +1 -1
- package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
- package/es/molecule/dashboard/news-list/index.js +1 -1
- package/es/molecule/dashboard/news-list/index.js.map +1 -1
- package/es/molecule/dashboard/start-battle/index.js +1 -1
- package/es/molecule/dashboard/start-battle/index.js.map +1 -1
- package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
- package/es/molecule/drag-and-drop/index.js +1 -1
- package/es/molecule/drag-and-drop/index.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
- package/es/molecule/drag-and-drop/test/on-click.js +2 -2
- package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
- package/es/molecule/drag-and-drop/upload-report.js +1 -1
- package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/es/molecule/feedback/index.js +1 -1
- package/es/molecule/feedback/index.js.map +1 -1
- package/es/molecule/filters/test/fixtures/default.js +4 -4
- package/es/molecule/filters/test/fixtures/default.js.map +1 -1
- package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
- package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
- package/es/molecule/filters/test/fixtures/one.js +2 -2
- package/es/molecule/filters/test/fixtures/one.js.map +1 -1
- package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
- package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
- package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
- package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
- package/es/molecule/filters/test/fixtures/three.js +3 -3
- package/es/molecule/filters/test/fixtures/three.js.map +1 -1
- package/es/molecule/filters/test/fixtures/two.js +3 -3
- package/es/molecule/filters/test/fixtures/two.js.map +1 -1
- package/es/molecule/filters/test/fixtures/zero.js +1 -1
- package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
- package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
- package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
- package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
- package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
- package/es/molecule/hero/test/fixtures/arabic.js +1 -1
- package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
- package/es/molecule/hero/test/fixtures/hero.js +1 -1
- package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
- package/es/molecule/news/test/fixtures/long-description.js +1 -1
- package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
- package/es/molecule/news/test/fixtures/long-title.js +1 -1
- package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
- package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
- package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
- package/es/molecule/news/test/fixtures/small-title.js +1 -1
- package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
- package/es/molecule/popin/index.js +1 -1
- package/es/molecule/popin/index.js.map +1 -1
- package/es/molecule/progress-bar/index.js +1 -1
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/questions/drop-down/index.js +1 -1
- package/es/molecule/questions/drop-down/index.js.map +1 -1
- package/es/molecule/questions/question-range/index.js +3 -2
- package/es/molecule/questions/question-range/index.js.map +1 -1
- package/es/molecule/questions/template/index.js +2 -2
- package/es/molecule/questions/template/index.js.map +1 -1
- package/es/molecule/questions/template/test/index.js +1 -1
- package/es/molecule/questions/template/test/index.js.map +1 -1
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/resource-player/index.js +2 -1
- package/es/molecule/resource-player/index.js.map +1 -1
- package/es/molecule/search/test/fixtures.js +15 -0
- package/es/molecule/search/test/fixtures.js.map +1 -0
- package/es/molecule/select-multiple/index.js +3 -3
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/select-multiple/style.css +1 -1
- package/es/molecule/select-multiple/test/index.js +2 -2
- package/es/molecule/select-multiple/test/index.js.map +1 -1
- package/es/molecule/setup-section/index.js +1 -1
- package/es/molecule/setup-section/index.js.map +1 -1
- package/es/molecule/setup-section/test/fixtures/first.js +1 -1
- package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
- package/es/molecule/setup-slide/index.js +8 -8
- package/es/molecule/setup-slide/index.js.map +1 -1
- package/es/molecule/share/index.js +1 -1
- package/es/molecule/share/index.js.map +1 -1
- package/es/molecule/vertical-tabs/test/fixtures.js +0 -2
- package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -1
- package/es/molecule/video-iframe/index.js +1 -1
- package/es/molecule/video-iframe/index.js.map +1 -1
- package/es/molecule/video-player/index.js +3 -1
- package/es/molecule/video-player/index.js.map +1 -1
- package/es/molecule/video-player/jwplayer.js +2 -2
- package/es/molecule/video-player/jwplayer.js.map +1 -1
- package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
- package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
- package/es/molecule/video-player/vimeo.js +1 -1
- package/es/molecule/video-player/vimeo.js.map +1 -1
- package/es/molecule/wizard-summary/style.css +0 -1
- package/es/organism/accordion/coorp-manager/index.js +1 -1
- package/es/organism/accordion/coorp-manager/index.js.map +1 -1
- package/es/organism/accordion/toggler/index.js +1 -1
- package/es/organism/accordion/toggler/index.js.map +1 -1
- package/es/organism/accordion/toggler/test/render.js +2 -2
- package/es/organism/accordion/toggler/test/render.js.map +1 -1
- package/es/organism/brand-form/test/fixtures/sso.js +3 -3
- package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
- package/es/organism/content-translation/index.js +2 -2
- package/es/organism/content-translation/index.js.map +1 -1
- package/es/organism/content-translation/style.css +2 -2
- package/es/organism/content-translation/test/fixtures/default.js +2 -2
- package/es/organism/content-translation/test/fixtures/default.js.map +1 -1
- package/es/organism/course-selection/index.js +9 -2
- package/es/organism/course-selection/index.js.map +1 -1
- package/es/organism/course-selection/style.css +2 -1
- package/es/organism/course-selection/test/fixtures/default.js +10 -10
- package/es/organism/course-selection/test/fixtures/default.js.map +1 -1
- package/es/organism/course-selection/test/fixtures/filtered.js +3 -3
- package/es/organism/course-selection/test/fixtures/filtered.js.map +1 -1
- package/es/organism/course-selection/test/fixtures/sorted-selected.js +6 -6
- package/es/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
- package/es/organism/course-selection/test/fixtures/switch-activated.js +1 -1
- package/es/organism/course-selection/test/fixtures/switch-activated.js.map +1 -1
- package/es/organism/course-selection/test/fixtures/unsorted-selected.js +6 -6
- package/es/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
- package/es/organism/course-selection/test/fixtures.js +2 -0
- package/es/organism/course-selection/test/fixtures.js.map +1 -1
- package/es/organism/discussion/test/fixtures/default.js +1 -1
- package/es/organism/discussion/test/fixtures/default.js.map +1 -1
- package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
- package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
- package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
- package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
- package/es/organism/get-the-app/index.js +2 -2
- package/es/organism/get-the-app/index.js.map +1 -1
- package/es/organism/list-items/test/fixtures/archived.js +1 -1
- package/es/organism/list-items/test/fixtures/archived.js.map +1 -1
- package/es/organism/list-items/test/fixtures/draft.js +1 -1
- package/es/organism/list-items/test/fixtures/draft.js.map +1 -1
- package/es/organism/list-items/test/fixtures/published.js +1 -1
- package/es/organism/list-items/test/fixtures/published.js.map +1 -1
- package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
- package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
- package/es/organism/mooc-header/test/fixtures/default.js +1 -1
- package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
- package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
- package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
- package/es/organism/playlist-translation/test/fixtures.js +15 -0
- package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
- package/es/organism/popin/test/fixtures/default.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
- package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
- package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
- package/es/organism/settings/index.js +3 -2
- package/es/organism/settings/index.js.map +1 -1
- package/es/organism/sidebar/index.js +11 -10
- package/es/organism/sidebar/index.js.map +1 -1
- package/es/organism/user-preferences/index.js +3 -2
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/organism/wizard-contents/index.js +5 -5
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/organism/wizard-contents/style.css +10 -10
- package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
- package/es/template/activity/index.js +1 -1
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/test/progression-item-test.js +1 -1
- package/es/template/activity/test/progression-item-test.js.map +1 -1
- package/es/template/app-player/player/slides/footer/index.js +1 -1
- package/es/template/app-player/player/slides/footer/index.js.map +1 -1
- package/es/template/app-player/player/slides/index.js +14 -11
- package/es/template/app-player/player/slides/index.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
- package/es/template/app-player/player/test/fixtures/background.js +1 -1
- package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
- package/es/template/app-player/popin-correction/index.js +3 -2
- package/es/template/app-player/popin-correction/index.js.map +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
- package/es/template/app-player/popin-end/summary.js +14 -9
- package/es/template/app-player/popin-end/summary.js.map +1 -1
- package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
- package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
- package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
- package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
- package/es/template/app-player/popin-end/test/fixtures/without-recommendation.js +13 -0
- package/es/template/app-player/popin-end/test/fixtures/without-recommendation.js.map +1 -0
- package/es/template/app-player/popin-header/index.js +4 -3
- package/es/template/app-player/popin-header/index.js.map +1 -1
- package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
- package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
- package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
- package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
- package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
- package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
- package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
- package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
- package/es/template/back-office/brand-list/test/fixtures/rh.js +1 -1
- package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
- package/es/template/back-office/brand-update/index.js +12 -10
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +4 -0
- package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/loader.js +6 -2
- package/es/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +237 -2
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +2 -2
- package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
- package/es/template/cockpit/jw-uploader/index.js +1 -1
- package/es/template/cockpit/jw-uploader/index.js.map +1 -1
- package/es/template/common/dashboard/index.js +1 -1
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
- package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
- package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
- package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
- package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
- package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/default.js +2 -2
- package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
- package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
- package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
- package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/share.js +1 -1
- package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
- package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
- package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
- package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
- package/es/util/shallow-compare.js.map +1 -1
- package/es/util/test/navigation.js +4 -3
- package/es/util/test/navigation.js.map +1 -1
- package/lib/atom/autocomplete/index.js +2 -2
- package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
- package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
- package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
- package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
- package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
- package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
- package/lib/atom/button-link/index.js +2 -2
- package/lib/atom/button-link-icon-only/index.js +2 -2
- package/lib/atom/button-menu/index.js +2 -2
- package/lib/atom/button-menu/test/fixtures/default.js +1 -1
- package/lib/atom/button-menu/test/fixtures/multiple-buttons.js +1 -1
- package/lib/atom/chips/index.js +2 -2
- package/lib/atom/clue/index.js.map +1 -1
- package/lib/atom/cta/test/fixtures/certification.js +1 -1
- package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
- package/lib/atom/cta/test/fixtures/disabled.js +1 -1
- package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
- package/lib/atom/cta/test/fixtures/light-small.js +1 -1
- package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
- package/lib/atom/cta/test/fixtures/light.js +1 -1
- package/lib/atom/cta/test/fixtures/light.js.map +1 -1
- package/lib/atom/cta/test/fixtures/logout.js +1 -1
- package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
- package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
- package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
- package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
- package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
- package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
- package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
- package/lib/atom/cta/test/fixtures/secondary.js +1 -1
- package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
- package/lib/atom/drag-and-drop/index.js +1 -1
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
- package/lib/atom/image-upload/index.js +3 -3
- package/lib/atom/image-upload/index.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/email.js +1 -1
- package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
- package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
- package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
- package/lib/atom/input-checkbox/index.js +2 -2
- package/lib/atom/input-color/index.js +2 -2
- package/lib/atom/input-doublestep/index.js +2 -2
- package/lib/atom/input-html/index.js.map +1 -1
- package/lib/atom/input-search/index.js +2 -2
- package/lib/atom/input-switch/index.js +2 -2
- package/lib/atom/input-switch/style.css +4 -3
- package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js +6 -9
- package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -1
- package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
- package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
- package/lib/atom/input-switch/test/fixtures.js +15 -0
- package/lib/atom/input-switch/test/fixtures.js.map +1 -1
- package/lib/atom/input-text/index.js +2 -2
- package/lib/atom/input-textarea/index.js +2 -2
- package/lib/atom/link/index.js +4 -2
- package/lib/atom/link/index.js.map +1 -1
- package/lib/atom/loader/test/fixtures.js +0 -3
- package/lib/atom/loader/test/fixtures.js.map +1 -1
- package/lib/atom/promo-code/index.js.map +1 -1
- package/lib/atom/provider/index.js.map +1 -1
- package/lib/atom/provider/test/index.js +1 -1
- package/lib/atom/provider/test/index.js.map +1 -1
- package/lib/atom/range/index.js +1 -1
- package/lib/atom/range/index.js.map +1 -1
- package/lib/atom/range/test/fixtures/multi.js +1 -1
- package/lib/atom/range/test/fixtures/multi.js.map +1 -1
- package/lib/atom/range/test/index.js +9 -9
- package/lib/atom/range/test/index.js.map +1 -1
- package/lib/atom/select/index.js +2 -2
- package/lib/atom/tab/index.js +2 -2
- package/lib/atom/video-upload/index.js +1 -1
- package/lib/atom/video-upload/index.js.map +1 -1
- package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
- package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
- package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
- package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
- package/lib/hoc/animation/index.js +1 -1
- package/lib/hoc/animation/test/on-mount.js +2 -2
- package/lib/hoc/animation-scheduler/index.js +4 -4
- package/lib/hoc/animation-scheduler/index.js.map +1 -1
- package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +3 -3
- package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
- package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
- package/lib/hoc/swapper/index.js +5 -3
- package/lib/hoc/swapper/index.js.map +1 -1
- package/lib/hoc/swapper/test/on-mount.js +2 -2
- package/lib/hoc/transition/index.js +3 -3
- package/lib/hoc/transition/index.js.map +1 -1
- package/lib/molecule/add-to-my-list/index.js +4 -4
- package/lib/molecule/add-to-my-list/index.js.map +1 -1
- package/lib/molecule/answer/index.js +5 -3
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/audio.js +1 -1
- package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/default.js +1 -1
- package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
- package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/range.js +1 -1
- package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/template.js +1 -1
- package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
- package/lib/molecule/brand-create-form/index.js +2 -2
- package/lib/molecule/brand-form-group/index.js +18 -18
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
- package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
- package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.js +2 -2
- package/lib/molecule/card/index.js +3 -3
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
- package/lib/molecule/card/test/fixtures/disabled.js +1 -1
- package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
- package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
- package/lib/molecule/card-with-button/index.js.map +1 -1
- package/lib/molecule/coorp-manager-roles/index.js +1 -1
- package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
- package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
- package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
- package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
- package/lib/molecule/dashboard/news-list/index.js +1 -1
- package/lib/molecule/dashboard/news-list/index.js.map +1 -1
- package/lib/molecule/dashboard/start-battle/index.js +1 -1
- package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
- package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
- package/lib/molecule/drag-and-drop/index.js +3 -3
- package/lib/molecule/drag-and-drop/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
- package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
- package/lib/molecule/drag-and-drop/upload-report.js +3 -3
- package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/lib/molecule/feedback/index.js +3 -3
- package/lib/molecule/feedback/index.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/default.js +4 -4
- package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
- package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/one.js +2 -2
- package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
- package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
- package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/three.js +3 -3
- package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/two.js +3 -3
- package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/zero.js +1 -1
- package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
- package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
- package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
- package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
- package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
- package/lib/molecule/hero/index.js +2 -2
- package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
- package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
- package/lib/molecule/hero/test/fixtures/hero.js +1 -1
- package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
- package/lib/molecule/news/test/fixtures/long-description.js +1 -1
- package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
- package/lib/molecule/news/test/fixtures/long-title.js +1 -1
- package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
- package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
- package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
- package/lib/molecule/news/test/fixtures/small-title.js +1 -1
- package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
- package/lib/molecule/popin/index.js +3 -3
- package/lib/molecule/popin/index.js.map +1 -1
- package/lib/molecule/progress-bar/index.js +1 -1
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/questions/drop-down/index.js +3 -3
- package/lib/molecule/questions/drop-down/index.js.map +1 -1
- package/lib/molecule/questions/free-text/index.js +2 -2
- package/lib/molecule/questions/question-range/index.js +4 -2
- package/lib/molecule/questions/question-range/index.js.map +1 -1
- package/lib/molecule/questions/template/index.js +2 -2
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/questions/template/test/index.js +1 -1
- package/lib/molecule/questions/template/test/index.js.map +1 -1
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/resource-player/index.js +4 -2
- package/lib/molecule/resource-player/index.js.map +1 -1
- package/lib/molecule/scope-tabs/index.js +2 -2
- package/lib/molecule/search/test/fixtures.js +25 -0
- package/lib/molecule/search/test/fixtures.js.map +1 -0
- package/lib/molecule/search-form/index.js +2 -2
- package/lib/molecule/select-multiple/index.js +6 -6
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/select-multiple/style.css +1 -1
- package/lib/molecule/select-multiple/test/index.js +4 -4
- package/lib/molecule/select-multiple/test/index.js.map +1 -1
- package/lib/molecule/setup-section/index.js +1 -1
- package/lib/molecule/setup-section/index.js.map +1 -1
- package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
- package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
- package/lib/molecule/setup-sections/index.js +2 -2
- package/lib/molecule/setup-slide/index.js +8 -8
- package/lib/molecule/setup-slide/index.js.map +1 -1
- package/lib/molecule/share/index.js +4 -4
- package/lib/molecule/share/index.js.map +1 -1
- package/lib/molecule/titled-checkbox/index.js +2 -2
- package/lib/molecule/vertical-tabs/test/fixtures/default.js +1 -1
- package/lib/molecule/vertical-tabs/test/fixtures.js +0 -3
- package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -1
- package/lib/molecule/video-iframe/index.js +1 -1
- package/lib/molecule/video-iframe/index.js.map +1 -1
- package/lib/molecule/video-player/index.js +3 -1
- package/lib/molecule/video-player/index.js.map +1 -1
- package/lib/molecule/video-player/jwplayer.js +2 -2
- package/lib/molecule/video-player/jwplayer.js.map +1 -1
- package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
- package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
- package/lib/molecule/video-player/vimeo.js +1 -1
- package/lib/molecule/video-player/vimeo.js.map +1 -1
- package/lib/molecule/wizard-summary/index.js +2 -2
- package/lib/molecule/wizard-summary/style.css +0 -1
- package/lib/organism/accordion/container/index.js +2 -2
- package/lib/organism/accordion/coorp-manager/index.js +3 -3
- package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
- package/lib/organism/accordion/toggler/index.js +1 -1
- package/lib/organism/accordion/toggler/index.js.map +1 -1
- package/lib/organism/accordion/toggler/test/render.js +2 -2
- package/lib/organism/accordion/toggler/test/render.js.map +1 -1
- package/lib/organism/brand-form/index.js +2 -2
- package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
- package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
- package/lib/organism/content-translation/index.js +2 -2
- package/lib/organism/content-translation/index.js.map +1 -1
- package/lib/organism/content-translation/style.css +2 -2
- package/lib/organism/content-translation/test/fixtures/default.js +2 -2
- package/lib/organism/content-translation/test/fixtures/default.js.map +1 -1
- package/lib/organism/course-selection/index.js +9 -2
- package/lib/organism/course-selection/index.js.map +1 -1
- package/lib/organism/course-selection/style.css +2 -1
- package/lib/organism/course-selection/test/fixtures/default.js +10 -10
- package/lib/organism/course-selection/test/fixtures/default.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures/filtered.js +3 -3
- package/lib/organism/course-selection/test/fixtures/filtered.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures/sorted-selected.js +6 -6
- package/lib/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures/switch-activated.js +1 -1
- package/lib/organism/course-selection/test/fixtures/switch-activated.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures/unsorted-selected.js +6 -6
- package/lib/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures.js +3 -0
- package/lib/organism/course-selection/test/fixtures.js.map +1 -1
- package/lib/organism/discussion/test/fixtures/default.js +1 -1
- package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
- package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
- package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
- package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
- package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
- package/lib/organism/get-the-app/index.js +2 -2
- package/lib/organism/get-the-app/index.js.map +1 -1
- package/lib/organism/list-items/test/fixtures/archived.js +1 -1
- package/lib/organism/list-items/test/fixtures/archived.js.map +1 -1
- package/lib/organism/list-items/test/fixtures/draft.js +1 -1
- package/lib/organism/list-items/test/fixtures/draft.js.map +1 -1
- package/lib/organism/list-items/test/fixtures/published.js +1 -1
- package/lib/organism/list-items/test/fixtures/published.js.map +1 -1
- package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
- package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
- package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
- package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
- package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
- package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
- package/lib/organism/playlist-translation/test/fixtures.js +25 -0
- package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
- package/lib/organism/popin/test/fixtures/default.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
- package/lib/organism/settings/index.js +4 -2
- package/lib/organism/settings/index.js.map +1 -1
- package/lib/organism/sidebar/index.js +15 -13
- package/lib/organism/sidebar/index.js.map +1 -1
- package/lib/organism/user-preferences/index.js +4 -2
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/organism/wizard-contents/index.js +5 -5
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/organism/wizard-contents/style.css +10 -10
- package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
- package/lib/template/activity/index.js +1 -1
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/progression-item.js +2 -2
- package/lib/template/activity/test/progression-item-test.js +1 -1
- package/lib/template/activity/test/progression-item-test.js.map +1 -1
- package/lib/template/app-player/player/slides/footer/index.js +1 -1
- package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
- package/lib/template/app-player/player/slides/index.js +15 -11
- package/lib/template/app-player/player/slides/index.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
- package/lib/template/app-player/player/test/fixtures/background.js +1 -1
- package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
- package/lib/template/app-player/popin-correction/index.js +6 -4
- package/lib/template/app-player/popin-correction/index.js.map +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
- package/lib/template/app-player/popin-end/summary.js +16 -9
- package/lib/template/app-player/popin-end/summary.js.map +1 -1
- package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
- package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
- package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
- package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
- package/lib/template/app-player/popin-end/test/fixtures/without-recommendation.js +24 -0
- package/lib/template/app-player/popin-end/test/fixtures/without-recommendation.js.map +1 -0
- package/lib/template/app-player/popin-header/index.js +7 -5
- package/lib/template/app-player/popin-header/index.js.map +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/rh.js +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
- package/lib/template/back-office/brand-update/index.js +12 -10
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +4 -0
- package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/loader.js +7 -3
- package/lib/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +237 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +3 -3
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
- package/lib/template/cockpit/jw-uploader/index.js +1 -1
- package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
- package/lib/template/common/dashboard/index.js +1 -1
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
- package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
- package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
- package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
- package/lib/template/common/discipline/index.js +2 -2
- package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
- package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
- package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/default.js +2 -2
- package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
- package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
- package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
- package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/share.js +1 -1
- package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
- package/lib/template/teams-dashboard/index.js +2 -2
- package/lib/template/teams-dashboard/test/fixtures/default.js +2 -2
- package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
- package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
- package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
- package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
- package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
- package/lib/test/helpers/render-component.js +1 -1
- package/lib/util/external-content.js +1 -1
- package/lib/util/proptypes.js +1 -1
- package/lib/util/shallow-compare.js.map +1 -1
- package/lib/util/test/navigation.js +5 -3
- package/lib/util/test/navigation.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-graphic.js"],"names":["answerProps","QcmGraphic","props","model","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAAWC,KAA/B;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-graphic.js"],"names":["answerProps","QcmGraphic","props","model","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAAWC,KAA/B;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH;AADA;AADM,C","sourcesContent":["import QcmGraphic from '../../../questions/qcm-graphic/test/fixtures/default';\n\nconst answerProps = QcmGraphic.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'qcmGraphic'\n }\n }\n};\n"],"file":"qcm-graphic.js"}
|
|
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
12
12
|
const answerProps = _shortAnswers.default.props;
|
|
13
13
|
var _default = {
|
|
14
14
|
props: {
|
|
15
|
-
model: _extends(
|
|
15
|
+
model: _extends({}, answerProps, {
|
|
16
16
|
type: 'qcm'
|
|
17
17
|
}),
|
|
18
18
|
media: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short-audio.js"],"names":["answerProps","Qcm","props","model","type","media","mimeType","poster","mediaUrl","_id","subtitles","posters","src","onClick","onPlay","console","log","onPause","onResume","onEnded"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,sBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short-audio.js"],"names":["answerProps","Qcm","props","model","type","media","mimeType","poster","mediaUrl","_id","subtitles","posters","src","onClick","onPlay","console","log","onPause","onResume","onEnded"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,sBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,OADD;AAELE,MAAAA,QAAQ,EAAE,WAFL;AAGLC,MAAAA,MAAM,EAAE,+BAHH;AAILC,MAAAA,QAAQ,EACN,2HALG;AAMLC,MAAAA,GAAG,EAAE,0BANA;AAOLC,MAAAA,SAAS,EAAE,EAPN;AAQLC,MAAAA,OAAO,EAAE,EARJ;AASLC,MAAAA,GAAG,EAAE,EATA;AAULC,MAAAA,OAAO,EAAE,MAAM,CAAE,CAVZ;AAWLC,MAAAA,MAAM,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,MAAZ,CAXT;AAYLC,MAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,OAAZ,CAZV;AAaLE,MAAAA,QAAQ,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,QAAZ,CAbX;AAcLG,MAAAA,OAAO,EAAE,MAAMJ,OAAO,CAACC,GAAR,CAAY,KAAZ;AAdV;AALF;AADM,C","sourcesContent":["import Qcm from '../../../questions/qcm/test/fixtures/short-answers';\n\nconst answerProps = Qcm.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'qcm'\n },\n media: {\n type: 'audio',\n mimeType: 'audio/acc',\n poster: 'https://picsum.photos/500/300',\n mediaUrl:\n '//static.coorpacademy.com/content/CoorpAcademy/content-bnpp/cockpit-letsgetdigital-migration/raw/sample-1618502603227.aac',\n _id: '590b9be24f7b862e0046e577',\n subtitles: [],\n posters: [],\n src: [],\n onClick: () => {},\n onPlay: () => console.log('play'),\n onPause: () => console.log('pause'),\n onResume: () => console.log('resume'),\n onEnded: () => console.log('end')\n }\n }\n};\n"],"file":"qcm-short-audio.js"}
|
|
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
12
12
|
const answerProps = _shortAnswers.default.props;
|
|
13
13
|
var _default = {
|
|
14
14
|
props: {
|
|
15
|
-
model: _extends(
|
|
15
|
+
model: _extends({}, answerProps, {
|
|
16
16
|
type: 'qcm'
|
|
17
17
|
}),
|
|
18
18
|
media: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short-video.js"],"names":["answerProps","Qcm","props","model","type","media","mimeType","videoId","description","poster","_id","subtitles","posters","src","onClick","onPlay","console","log","onPause","onResume","onEnded"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,sBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short-video.js"],"names":["answerProps","Qcm","props","model","type","media","mimeType","videoId","description","poster","_id","subtitles","posters","src","onClick","onPlay","console","log","onPause","onResume","onEnded"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,sBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,OADD;AAELE,MAAAA,QAAQ,EAAE,mBAFL;AAGLC,MAAAA,OAAO,EAAE,WAHJ;AAILC,MAAAA,WAAW,EAAE,gDAJR;AAKLC,MAAAA,MAAM,EACJ,6HANG;AAOLC,MAAAA,GAAG,EAAE,0BAPA;AAQLC,MAAAA,SAAS,EAAE,EARN;AASLC,MAAAA,OAAO,EAAE,EATJ;AAULC,MAAAA,GAAG,EAAE,EAVA;AAWLC,MAAAA,OAAO,EAAE,MAAM,CAAE,CAXZ;AAYLC,MAAAA,MAAM,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,MAAZ,CAZT;AAaLC,MAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,OAAZ,CAbV;AAcLE,MAAAA,QAAQ,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,QAAZ,CAdX;AAeLG,MAAAA,OAAO,EAAE,MAAMJ,OAAO,CAACC,GAAR,CAAY,KAAZ;AAfV;AALF;AADM,C","sourcesContent":["import Qcm from '../../../questions/qcm/test/fixtures/short-answers';\n\nconst answerProps = Qcm.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'qcm'\n },\n media: {\n type: 'video',\n mimeType: 'application/vimeo',\n videoId: '166479793',\n description: 'De l’éco-conception à l’innovation responsable',\n poster:\n '//static.coorpacademy.com/content/CoorpAcademy/content-partnerships-svp/cockpit-partner-svp/poster/poster-1480426784168.jpg',\n _id: '590b9be24f7b862e0046e577',\n subtitles: [],\n posters: [],\n src: [],\n onClick: () => {},\n onPlay: () => console.log('play'),\n onPause: () => console.log('pause'),\n onResume: () => console.log('resume'),\n onEnded: () => console.log('end')\n }\n }\n};\n"],"file":"qcm-short-video.js"}
|
|
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
12
12
|
const answerProps = _shortAnswers.default.props;
|
|
13
13
|
var _default = {
|
|
14
14
|
props: {
|
|
15
|
-
model: _extends(
|
|
15
|
+
model: _extends({}, answerProps, {
|
|
16
16
|
type: 'qcm'
|
|
17
17
|
}),
|
|
18
18
|
media: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short.js"],"names":["answerProps","Qcm","props","model","type","media","url"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,sBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short.js"],"names":["answerProps","Qcm","props","model","type","media","url"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,sBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,KADD;AAELE,MAAAA,GAAG,EACD;AAHG;AALF;AADM,C","sourcesContent":["import Qcm from '../../../questions/qcm/test/fixtures/short-answers';\n\nconst answerProps = Qcm.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'qcm'\n },\n media: {\n type: 'img',\n url:\n 'https://static.coorpacademy.com/content/CoorpAcademy/content-chanel/cockpit-ilearnchanel/default/19-1477921258654.jpg'\n }\n }\n};\n"],"file":"qcm-short.js"}
|
|
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
12
12
|
const answerProps = _default2.default.props;
|
|
13
13
|
var _default = {
|
|
14
14
|
props: {
|
|
15
|
-
model: _extends(
|
|
15
|
+
model: _extends({}, answerProps, {
|
|
16
16
|
type: 'qcm'
|
|
17
17
|
}),
|
|
18
18
|
media: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm.js"],"names":["answerProps","Qcm","props","model","type","media","url"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm.js"],"names":["answerProps","Qcm","props","model","type","media","url"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,KADD;AAELE,MAAAA,GAAG,EACD;AAHG;AALF;AADM,C","sourcesContent":["import Qcm from '../../../questions/qcm/test/fixtures/default';\n\nconst answerProps = Qcm.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'qcm'\n },\n media: {\n type: 'img',\n url:\n 'https://api-staging.coorpacademy.com/api-service/medias?h=300&w=300&q=90&url=https://user-images.githubusercontent.com/7602475/28273504-db1da18a-6b0e-11e7-97cd-b2e307fc51c7.png'\n }\n }\n};\n"],"file":"qcm.js"}
|
|
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
12
12
|
const answerProps = _default2.default.props;
|
|
13
13
|
var _default = {
|
|
14
14
|
props: {
|
|
15
|
-
model: _extends(
|
|
15
|
+
model: _extends({}, answerProps, {
|
|
16
16
|
type: 'slider'
|
|
17
17
|
})
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/range.js"],"names":["answerProps","QuestionRange","props","model","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAAcC,KAAlC;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/range.js"],"names":["answerProps","QuestionRange","props","model","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAAcC,KAAlC;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH;AADA;AADM,C","sourcesContent":["import QuestionRange from '../../../questions/question-range/test/fixtures/default';\n\nconst answerProps = QuestionRange.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'slider'\n }\n }\n};\n"],"file":"range.js"}
|
|
@@ -11,7 +11,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
11
11
|
|
|
12
12
|
var _default = {
|
|
13
13
|
props: {
|
|
14
|
-
model: _extends(
|
|
14
|
+
model: _extends({}, _multiple.default.props, {
|
|
15
15
|
type: 'template'
|
|
16
16
|
}),
|
|
17
17
|
media: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/template.js"],"names":["props","model","Template","type","media","url"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/template.js"],"names":["props","model","Template","type","media","url"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAC,kBAASF,KADT;AAEHG,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,KADD;AAELE,MAAAA,GAAG,EACD;AAHG;AALF;AADM,C","sourcesContent":["import Template from '../../../questions/template/test/fixtures/multiple';\n\nexport default {\n props: {\n model: {\n ...Template.props,\n type: 'template'\n },\n media: {\n type: 'img',\n url:\n 'https://api-staging.coorpacademy.com/api-service/medias?h=400&w=400&q=90&url=http://europeantrips.org/wp-content/uploads/2012/03/Eiffel-Tower.jpg'\n }\n }\n};\n"],"file":"template.js"}
|
|
@@ -17,9 +17,9 @@ var _style = _interopRequireDefault(require("./style.css"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
20
|
+
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); }
|
|
21
21
|
|
|
22
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
22
|
+
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; }
|
|
23
23
|
|
|
24
24
|
const BrandCreateForm = (props, context) => {
|
|
25
25
|
const {
|
|
@@ -176,45 +176,45 @@ BrandFormGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
176
176
|
subtitle: _propTypes.default.string,
|
|
177
177
|
fieldsLayout: _propTypes.default.string,
|
|
178
178
|
groupLayout: _propTypes.default.string,
|
|
179
|
-
fields: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_extends(
|
|
179
|
+
fields: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_extends({}, _autocomplete.default.propTypes, {
|
|
180
180
|
type: _propTypes.default.oneOf(['autoComplete']),
|
|
181
181
|
size: _propTypes.default.oneOf((0, _keys2.default)(inputContainerStyle))
|
|
182
|
-
})), _propTypes.default.shape(_extends(
|
|
182
|
+
})), _propTypes.default.shape(_extends({}, _inputColor.default.propTypes, {
|
|
183
183
|
type: _propTypes.default.oneOf(['color'])
|
|
184
|
-
})), _propTypes.default.shape(_extends(
|
|
184
|
+
})), _propTypes.default.shape(_extends({}, _inputReadonly.default.propTypes, {
|
|
185
185
|
type: _propTypes.default.oneOf(['readonly'])
|
|
186
|
-
})), _propTypes.default.shape(_extends(
|
|
186
|
+
})), _propTypes.default.shape(_extends({}, _inputSwitch.default.propTypes, {
|
|
187
187
|
type: _propTypes.default.oneOf(['switch'])
|
|
188
|
-
})), _propTypes.default.shape(_extends(
|
|
188
|
+
})), _propTypes.default.shape(_extends({}, _inputTextarea.default.propTypes, {
|
|
189
189
|
type: _propTypes.default.oneOf(['textarea']),
|
|
190
190
|
size: _propTypes.default.oneOf((0, _keys2.default)(inputContainerStyle))
|
|
191
|
-
})), _propTypes.default.shape(_extends(
|
|
191
|
+
})), _propTypes.default.shape(_extends({}, _inputHtml.default.propTypes, {
|
|
192
192
|
type: _propTypes.default.oneOf(['html'])
|
|
193
|
-
})), _propTypes.default.shape(_extends(
|
|
193
|
+
})), _propTypes.default.shape(_extends({}, _inputDoublestep.default.propTypes, {
|
|
194
194
|
type: _propTypes.default.oneOf(['doublestep'])
|
|
195
|
-
})), _propTypes.default.shape(_extends(
|
|
195
|
+
})), _propTypes.default.shape(_extends({}, _select.default.propTypes, {
|
|
196
196
|
type: _propTypes.default.oneOf(['select']),
|
|
197
197
|
size: _propTypes.default.oneOf((0, _keys2.default)(inputContainerStyle))
|
|
198
|
-
})), _propTypes.default.shape(_extends(
|
|
198
|
+
})), _propTypes.default.shape(_extends({}, _inputCheckbox.default.propTypes, {
|
|
199
199
|
type: _propTypes.default.oneOf(['checkbox'])
|
|
200
|
-
})), _propTypes.default.shape(_extends(
|
|
200
|
+
})), _propTypes.default.shape(_extends({}, _imageUpload.default.propTypes, {
|
|
201
201
|
type: _propTypes.default.oneOf(['image'])
|
|
202
|
-
})), _propTypes.default.shape(_extends(
|
|
202
|
+
})), _propTypes.default.shape(_extends({}, _setupSlider.default.propTypes, {
|
|
203
203
|
type: _propTypes.default.oneOf(['slider'])
|
|
204
|
-
})), _propTypes.default.shape(_extends(
|
|
204
|
+
})), _propTypes.default.shape(_extends({}, _setupSections.default.propTypes, {
|
|
205
205
|
type: _propTypes.default.oneOf(['sections'])
|
|
206
|
-
})), _propTypes.default.shape(_extends(
|
|
206
|
+
})), _propTypes.default.shape(_extends({}, _inputText.default.propTypes, {
|
|
207
207
|
type: _propTypes.default.oneOf(['text']),
|
|
208
208
|
size: _propTypes.default.oneOf((0, _keys2.default)(inputContainerStyle))
|
|
209
|
-
})), _propTypes.default.shape(_extends(
|
|
209
|
+
})), _propTypes.default.shape(_extends({}, _brandDownloadBox.default.propTypes, {
|
|
210
210
|
type: _propTypes.default.oneOf(['downloadbox'])
|
|
211
|
-
})), _propTypes.default.shape(_extends(
|
|
211
|
+
})), _propTypes.default.shape(_extends({}, _brandUploadBox.default.propTypes, {
|
|
212
212
|
type: _propTypes.default.oneOf(['uploadbox'])
|
|
213
|
-
})), _propTypes.default.shape(_extends(
|
|
213
|
+
})), _propTypes.default.shape(_extends({}, _button.default.propTypes, {
|
|
214
214
|
type: _propTypes.default.oneOf(['button'])
|
|
215
|
-
})), _propTypes.default.shape(_extends(
|
|
215
|
+
})), _propTypes.default.shape(_extends({}, _selectMultiple.default.propTypes, {
|
|
216
216
|
type: _propTypes.default.oneOf(['selectMultiple'])
|
|
217
|
-
})), _propTypes.default.shape(_extends(
|
|
217
|
+
})), _propTypes.default.shape(_extends({}, _coorpManagerRoles.default.propTypes, {
|
|
218
218
|
type: _propTypes.default.oneOf(['roles'])
|
|
219
219
|
})), _propTypes.default.shape(_inputText.default.propTypes)]))
|
|
220
220
|
} : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/brand-form-group/index.js"],"names":["inputContainerStyle","default","style","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","field","type","buildField","index","input","theme","size","styleInput","BrandFormGroup","props","title","subtitle","fieldsLayout","groupLayout","fields","fieldsList","convert","cap","wrapper","groupGrid","titleWrapper","grid","propTypes","PropTypes","string","arrayOf","oneOfType","shape","Autocomplete","oneOf","InputColor","InputReadonly","InputSwitch","InputTextarea","InputHTML","InputDoublestep","Select","InputCheckbox","ImageUpload","SetupSlider","SetupSections","InputText","BrandDownloadBox","BrandUploadBox","Button","SelectMultiple","Roles"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,mBAAmB,GAAG;AAC1BC,EAAAA,OAAO,EAAEC,eAAMC,YADW;AAE1BC,EAAAA,MAAM,EAAEF,eAAMG,WAFY;AAG1BC,EAAAA,KAAK,EAAEJ,eAAMK;AAHa,CAA5B;;AAMA,MAAMC,UAAU,GAAGC,KAAK,IAAI;AAC1B,QAAM;AAACC,IAAAA;AAAD,MAASD,KAAf;;AAEA,UAAQC,IAAR;AACE,SAAK,cAAL;AACE,0BAAO,6BAAC,qBAAD,EAAkBD,KAAlB,CAAP;;AACF,SAAK,OAAL;AACE,0BAAO,6BA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AhB;AAFR,KA7DkB,EAiElBN,mBAAUI,KAAV,uBACKiB,gBAAOtB,SADZ;AAEErB,IAAAA,IAAI,EAAEsB,mBAAUM,KAAV,CAAgB,CAAC,QAAD,CAAhB;AAFR,KAjEkB,EAqElBN,mBAAUI,KAAV,uBACKkB,wBAAevB,SADpB;AAEErB,IAAAA,IAAI,EAAEsB,mBAAUM,KAAV,CAAgB,CAAC,gBAAD,CAAhB;AAFR,KArEkB,EAyElBN,mBAAUI,KAAV,uBACKmB,2BAAMxB,SADX;AAEErB,IAAAA,IAAI,EAAEsB,mBAAUM,KAAV,CAAgB,CAAC,OAAD,CAAhB;AAFR,KAzEkB,EA6ElBN,mBAAUI,KAAV,CAAgBc,mBAAUnB,SAA1B,CA7EkB,CAApB,CADM;AALiB,CAA3B;eAuFed,c","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys, map, snakeCase} from 'lodash/fp';\nimport classNames from 'classnames';\nimport Autocomplete from '../../atom/autocomplete';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../select-multiple';\nimport InputText from '../../atom/input-text';\nimport InputColor from '../../atom/input-color';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputSwitch from '../../atom/input-switch';\nimport BrandUploadBox from '../brand-upload-box';\nimport BrandDownloadBox from '../brand-download-box';\nimport Button from '../../atom/button';\nimport InputTextarea from '../../atom/input-textarea';\nimport InputHTML from '../../atom/input-html';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupSlider from '../setup-slider';\nimport SetupSections from '../setup-sections';\nimport Title from '../../atom/title';\nimport Roles from '../coorp-manager-roles';\nimport style from './style.css';\n\nconst inputContainerStyle = {\n default: style.defaultWidth,\n medium: style.mediumWidth,\n large: style.largeWidth\n};\n\nconst buildInput = field => {\n const {type} = field;\n\n switch (type) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'color':\n return <InputColor {...field} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'switch':\n return <InputSwitch {...field} />;\n case 'textarea':\n return <InputTextarea {...field} />;\n case 'html':\n return <InputHTML {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'select':\n return <Select {...field} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return <ImageUpload {...field} />;\n case 'slider':\n return <SetupSlider {...field} />;\n case 'sections':\n return <SetupSections {...field} />;\n case 'text':\n return <InputText {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'uploadbox':\n return <BrandUploadBox {...field} />;\n case 'button':\n case 'link':\n return <Button {...field} />;\n case 'roles':\n return <Roles {...field} />;\n default:\n return <InputText {...field} />;\n }\n};\n\nconst buildField = (field, index) => {\n const input = buildInput(field);\n const {theme, size = 'default'} = field;\n const styleInput = theme === 'coorpmanager' ? inputContainerStyle[size] : style.field;\n\n return (\n <div className={styleInput} key={index}>\n {input}\n </div>\n );\n};\n\nconst BrandFormGroup = props => {\n const {title, subtitle = '', fieldsLayout = '', groupLayout = '', fields = []} = props;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n\n return (\n <div\n data-name={`brand_form_group_${snakeCase(title)}`}\n className={classNames(style.wrapper, groupLayout === 'grid' && style.groupGrid)}\n >\n <div className={style.titleWrapper}>\n <Title title={title} subtitle={subtitle} type={'form-group'} />\n </div>\n <div className={fieldsLayout === 'grid' ? style.grid : null}>{fieldsList}</div>\n </div>\n );\n};\n\nBrandFormGroup.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n fieldsLayout: PropTypes.string,\n groupLayout: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...Autocomplete.propTypes,\n type: PropTypes.oneOf(['autoComplete']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputColor.propTypes,\n type: PropTypes.oneOf(['color'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...InputTextarea.propTypes,\n type: PropTypes.oneOf(['textarea']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputHTML.propTypes,\n type: PropTypes.oneOf(['html'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...SetupSections.propTypes,\n type: PropTypes.oneOf(['sections'])\n }),\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n }),\n PropTypes.shape({\n ...BrandUploadBox.propTypes,\n type: PropTypes.oneOf(['uploadbox'])\n }),\n PropTypes.shape({\n ...Button.propTypes,\n type: PropTypes.oneOf(['button'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n type: PropTypes.oneOf(['selectMultiple'])\n }),\n PropTypes.shape({\n ...Roles.propTypes,\n type: PropTypes.oneOf(['roles'])\n }),\n PropTypes.shape(InputText.propTypes)\n ])\n )\n};\nexport default BrandFormGroup;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/brand-form-group/index.js"],"names":["inputContainerStyle","default","style","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","field","type","buildField","index","input","theme","size","styleInput","BrandFormGroup","props","title","subtitle","fieldsLayout","groupLayout","fields","fieldsList","convert","cap","wrapper","groupGrid","titleWrapper","grid","propTypes","PropTypes","string","arrayOf","oneOfType","shape","Autocomplete","oneOf","InputColor","InputReadonly","InputSwitch","InputTextarea","InputHTML","InputDoublestep","Select","InputCheckbox","ImageUpload","SetupSlider","SetupSections","InputText","BrandDownloadBox","BrandUploadBox","Button","SelectMultiple","Roles"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,mBAAmB,GAAG;AAC1BC,EAAAA,OAAO,EAAEC,eAAMC,YADW;AAE1BC,EAAAA,MAAM,EAAEF,eAAMG,WAFY;AAG1BC,EAAAA,KAAK,EAAEJ,eAAMK;AAHa,CAA5B;;AAMA,MAAMC,UAAU,GAAGC,KAAK,IAAI;AAC1B,QAAM;AAACC,IAAAA;AAAD,MAASD,KAAf;;AAEA,UAAQC,IAAR;AACE,SAAK,cAAL;AACE,0BAAO,6BAAC,qBAAD,EAAkBD,KAAlB,CAAP;;AACF,SAAK,OAAL;AACE,0BAAO,6BAAC,mBAAD,EAAgBA,KAAhB,CAAP;;AACF,SAAK,UAAL;AACE,0BAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;AACF,SAAK,QAAL;AACE,0BAAO,6BAAC,oBAAD,EAAiBA,KAAjB,CAAP;;AACF,SAAK,UAAL;AACE,0BAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;AACF,SAAK,MAAL;AACE,0BAAO,6BAAC,kBAAD,EAAeA,KAAf,CAAP;;AACF,SAAK,YAAL;AACE,0BAAO,6BAAC,wBAAD,EAAqBA,KAArB,CAAP;;AACF,SA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AAhB;AAFR,KAzEkB,EA6ElBN,mBAAUI,KAAV,CAAgBc,mBAAUnB,SAA1B,CA7EkB,CAApB,CADM;AALiB,CAA3B;eAuFed,c","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys, map, snakeCase} from 'lodash/fp';\nimport classNames from 'classnames';\nimport Autocomplete from '../../atom/autocomplete';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../select-multiple';\nimport InputText from '../../atom/input-text';\nimport InputColor from '../../atom/input-color';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputSwitch from '../../atom/input-switch';\nimport BrandUploadBox from '../brand-upload-box';\nimport BrandDownloadBox from '../brand-download-box';\nimport Button from '../../atom/button';\nimport InputTextarea from '../../atom/input-textarea';\nimport InputHTML from '../../atom/input-html';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupSlider from '../setup-slider';\nimport SetupSections from '../setup-sections';\nimport Title from '../../atom/title';\nimport Roles from '../coorp-manager-roles';\nimport style from './style.css';\n\nconst inputContainerStyle = {\n default: style.defaultWidth,\n medium: style.mediumWidth,\n large: style.largeWidth\n};\n\nconst buildInput = field => {\n const {type} = field;\n\n switch (type) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'color':\n return <InputColor {...field} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'switch':\n return <InputSwitch {...field} />;\n case 'textarea':\n return <InputTextarea {...field} />;\n case 'html':\n return <InputHTML {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'select':\n return <Select {...field} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return <ImageUpload {...field} />;\n case 'slider':\n return <SetupSlider {...field} />;\n case 'sections':\n return <SetupSections {...field} />;\n case 'text':\n return <InputText {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'uploadbox':\n return <BrandUploadBox {...field} />;\n case 'button':\n case 'link':\n return <Button {...field} />;\n case 'roles':\n return <Roles {...field} />;\n default:\n return <InputText {...field} />;\n }\n};\n\nconst buildField = (field, index) => {\n const input = buildInput(field);\n const {theme, size = 'default'} = field;\n const styleInput = theme === 'coorpmanager' ? inputContainerStyle[size] : style.field;\n\n return (\n <div className={styleInput} key={index}>\n {input}\n </div>\n );\n};\n\nconst BrandFormGroup = props => {\n const {title, subtitle = '', fieldsLayout = '', groupLayout = '', fields = []} = props;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n\n return (\n <div\n data-name={`brand_form_group_${snakeCase(title)}`}\n className={classNames(style.wrapper, groupLayout === 'grid' && style.groupGrid)}\n >\n <div className={style.titleWrapper}>\n <Title title={title} subtitle={subtitle} type={'form-group'} />\n </div>\n <div className={fieldsLayout === 'grid' ? style.grid : null}>{fieldsList}</div>\n </div>\n );\n};\n\nBrandFormGroup.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n fieldsLayout: PropTypes.string,\n groupLayout: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...Autocomplete.propTypes,\n type: PropTypes.oneOf(['autoComplete']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputColor.propTypes,\n type: PropTypes.oneOf(['color'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...InputTextarea.propTypes,\n type: PropTypes.oneOf(['textarea']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputHTML.propTypes,\n type: PropTypes.oneOf(['html'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...SetupSections.propTypes,\n type: PropTypes.oneOf(['sections'])\n }),\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n }),\n PropTypes.shape({\n ...BrandUploadBox.propTypes,\n type: PropTypes.oneOf(['uploadbox'])\n }),\n PropTypes.shape({\n ...Button.propTypes,\n type: PropTypes.oneOf(['button'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n type: PropTypes.oneOf(['selectMultiple'])\n }),\n PropTypes.shape({\n ...Roles.propTypes,\n type: PropTypes.oneOf(['roles'])\n }),\n PropTypes.shape(InputText.propTypes)\n ])\n )\n};\nexport default BrandFormGroup;\n"],"file":"index.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/analytics.js"],"names":["props","AnalyticsSections","title","subtitle","fields","submitValue","href","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,kBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,QAAQ,EAAE,yCAFL;AAGLC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,WAAW,EAAE,iBADf;AAEEC,MAAAA,IAAI,EAAG,uCAFT;AAGEC,MAAAA,IAAI,EAAE;AAHR,KADM,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/analytics.js"],"names":["props","AnalyticsSections","title","subtitle","fields","submitValue","href","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,kBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,QAAQ,EAAE,yCAFL;AAGLC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,WAAW,EAAE,iBADf;AAEEC,MAAAA,IAAI,EAAG,uCAFT;AAGEC,MAAAA,IAAI,EAAE;AAHR,KADM,eAODP,KAPC;AAQJO,MAAAA,IAAI,EAAE;AARF;AAHH;AADM,C","sourcesContent":["import AnalyticsSections from '../../../setup-sections/test/fixtures/analytics';\n\nconst {props} = AnalyticsSections;\n\nexport default {\n props: {\n title: 'Analytics',\n subtitle: 'Explanation about the analytics section',\n fields: [\n {\n submitValue: 'Go To Analytics',\n href: `/sso/connect?redirect-to=%2Fanalytics`,\n type: 'link'\n },\n {\n ...props,\n type: 'sections'\n }\n ]\n }\n};\n"],"file":"analytics.js"}
|
|
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
12
12
|
var _default = {
|
|
13
13
|
props: {
|
|
14
14
|
title: 'Massive Battle',
|
|
15
|
-
fields: [_extends(
|
|
15
|
+
fields: [_extends({}, _filled.default.props, {
|
|
16
16
|
type: 'autoComplete',
|
|
17
17
|
title: 'User',
|
|
18
18
|
description: 'Name of the fictive user who will send the battle',
|
|
@@ -46,7 +46,7 @@ var _default = {
|
|
|
46
46
|
multiple: true,
|
|
47
47
|
theme: 'setup',
|
|
48
48
|
modified: false
|
|
49
|
-
}, _extends(
|
|
49
|
+
}, _extends({}, _filled.default.props, {
|
|
50
50
|
type: 'autoComplete',
|
|
51
51
|
title: 'Course',
|
|
52
52
|
description: 'Name of the course and the level used to make the battle',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/animations.js"],"names":["props","title","fields","Autocomplete","type","description","required","options","value","name","selected","multiple","theme","modified"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,gBADF;AAELC,IAAAA,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/animations.js"],"names":["props","title","fields","Autocomplete","type","description","required","options","value","name","selected","multiple","theme","modified"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,gBADF;AAELC,IAAAA,MAAM,EAAE,cAEDC,gBAAaH,KAFZ;AAGJI,MAAAA,IAAI,EAAE,cAHF;AAIJH,MAAAA,KAAK,EAAE,MAJH;AAKJI,MAAAA,WAAW,EAAE,mDALT;AAMJC,MAAAA,QAAQ,EAAE;AANN,QAQN;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEG,MAAAA,IAAI,EAAE,gBAFR;AAGEC,MAAAA,WAAW,EAAE,2CAHf;AAIEC,MAAAA,QAAQ,EAAE,IAJZ;AAKEC,MAAAA,OAAO,EAAE,CACP;AACEC,QAAAA,KAAK,EAAE,OADT;AAEEC,QAAAA,IAAI,EAAE,cAFR;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OADO,EAMP;AACEF,QAAAA,KAAK,EAAE,OADT;AAEEC,QAAAA,IAAI,EAAE,cAFR;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OANO,EAWP;AACEF,QAAAA,KAAK,EAAE,OADT;AAEEC,QAAAA,IAAI,EAAE,cAFR;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OAXO,EAgBP;AACEF,QAAAA,KAAK,EAAE,OADT;AAEEC,QAAAA,IAAI,EAAE,cAFR;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OAhBO,EAqBP;AACEF,QAAAA,KAAK,EAAE,OADT;AAEEC,QAAAA,IAAI,EAAE,cAFR;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OArBO,CALX;AAgCEC,MAAAA,QAAQ,EAAE,IAhCZ;AAiCEC,MAAAA,KAAK,EAAE,OAjCT;AAkCEC,MAAAA,QAAQ,EAAE;AAlCZ,KARM,eA6CDV,gBAAaH,KA7CZ;AA8CJI,MAAAA,IAAI,EAAE,cA9CF;AA+CJH,MAAAA,KAAK,EAAE,QA/CH;AAgDJI,MAAAA,WAAW,EAAE,0DAhDT;AAiDJC,MAAAA,QAAQ,EAAE;AAjDN,QAmDN;AACEL,MAAAA,KAAK,EAAE,kBADT;AAEEG,MAAAA,IAAI,EAAE,QAFR;AAGEC,MAAAA,WAAW,EAAE,2EAHf;AAIEC,MAAAA,QAAQ,EAAE,IAJZ;AAKEC,MAAAA,OAAO,EAAE,CACP;AACEC,QAAAA,KAAK,EAAE,GADT;AAEEC,QAAAA,IAAI,EAAE,uCAFR;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OADO,EAMP;AACEF,QAAAA,KAAK,EAAE,GADT;AAEEC,QAAAA,IAAI,EAAE,0CAFR;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OANO,EAWP;AACEF,QAAAA,KAAK,EAAE,GADT;AAEEC,QAAAA,IAAI,EAAE,uCAFR;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OAXO,CALX;AAsBEG,MAAAA,QAAQ,EAAE;AAtBZ,KAnDM;AAFH;AADM,C","sourcesContent":["import Autocomplete from '../../../../atom/autocomplete/test/fixtures/filled';\n\nexport default {\n props: {\n title: 'Massive Battle',\n fields: [\n {\n ...Autocomplete.props,\n type: 'autoComplete',\n title: 'User',\n description: 'Name of the fictive user who will send the battle',\n required: true\n },\n {\n title: 'Populations',\n type: 'selectMultiple',\n description: 'The cohorte which will receive the battle',\n required: true,\n options: [\n {\n value: 'pop-1',\n name: 'Population 1',\n selected: false\n },\n {\n value: 'pop-2',\n name: 'Population 2',\n selected: true\n },\n {\n value: 'pop-3',\n name: 'Population 2',\n selected: false\n },\n {\n value: 'pop-4',\n name: 'Population 4',\n selected: false\n },\n {\n value: 'pop-5',\n name: 'Population 5',\n selected: false\n }\n ],\n multiple: true,\n theme: 'setup',\n modified: false\n },\n {\n ...Autocomplete.props,\n type: 'autoComplete',\n title: 'Course',\n description: 'Name of the course and the level used to make the battle',\n required: true\n },\n {\n title: 'Difficulty level',\n type: 'select',\n description: 'Level of difficulty (if it is easy, the population is more likely to win)',\n required: true,\n options: [\n {\n value: 0.2,\n name: 'Easy (20% of well answered questions)',\n selected: true\n },\n {\n value: 0.5,\n name: 'Average (50% of well answered questions)',\n selected: false\n },\n {\n value: 0.8,\n name: 'Hard (80% of well answered questions)',\n selected: false\n }\n ],\n modified: false\n }\n ]\n }\n};\n"],"file":"animations.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/cohort.js"],"names":["props","SetupCohort","title","subtitle","fields","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,sBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,QADF;AAELC,IAAAA,QAAQ,EAAE,mBAFL;AAGLC,IAAAA,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/cohort.js"],"names":["props","SetupCohort","title","subtitle","fields","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,sBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,QADF;AAELC,IAAAA,QAAQ,EAAE,mBAFL;AAGLC,IAAAA,MAAM,EAAE,cAEDJ,KAFC;AAGJK,MAAAA,IAAI,EAAE;AAHF;AAHH;AADM,C","sourcesContent":["import SetupCohort from '../../../setup-slider/test/fixtures/default-cohort';\n\nconst {props} = SetupCohort;\n\nexport default {\n props: {\n title: 'Slider',\n subtitle: 'Explanation about',\n fields: [\n {\n ...props,\n type: 'slider'\n }\n ]\n }\n};\n"],"file":"cohort.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/dashboard.js"],"names":["props","SetupSections","title","subtitle","fields","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,QAAQ,EAAE,iCAFL;AAGLC,IAAAA,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/dashboard.js"],"names":["props","SetupSections","title","subtitle","fields","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,QAAQ,EAAE,iCAFL;AAGLC,IAAAA,MAAM,EAAE,cAEDJ,KAFC;AAGJK,MAAAA,IAAI,EAAE;AAHF;AAHH;AADM,C","sourcesContent":["import SetupSections from '../../../setup-sections/test/fixtures/default';\n\nconst {props} = SetupSections;\n\nexport default {\n props: {\n title: 'Dashboard',\n subtitle: 'Explanation about the dashboard',\n fields: [\n {\n ...props,\n type: 'sections'\n }\n ]\n }\n};\n"],"file":"dashboard.js"}
|
|
@@ -18,11 +18,11 @@ var _default = {
|
|
|
18
18
|
title: 'Platform logos',
|
|
19
19
|
subtitle: '(SVG files are recommanded for retina display. For any other file types, max height recommanded is xxx px)',
|
|
20
20
|
fieldsLayout: 'grid',
|
|
21
|
-
fields: [_extends(
|
|
21
|
+
fields: [_extends({}, _desktop.default.props, {
|
|
22
22
|
type: 'image'
|
|
23
|
-
}), _extends(
|
|
23
|
+
}), _extends({}, _mobile.default.props, {
|
|
24
24
|
type: 'image'
|
|
25
|
-
}), _extends(
|
|
25
|
+
}), _extends({}, _email.default.props, {
|
|
26
26
|
type: 'image'
|
|
27
27
|
})]
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/images.js"],"names":["props","title","subtitle","fieldsLayout","fields","Desktop","type","Mobile","Email"],"mappings":";;;;;AAAA;;AACA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,gBADF;AAELC,IAAAA,QAAQ,EACN,4GAHG;AAILC,IAAAA,YAAY,EAAE,MAJT;AAKLC,IAAAA,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/images.js"],"names":["props","title","subtitle","fieldsLayout","fields","Desktop","type","Mobile","Email"],"mappings":";;;;;AAAA;;AACA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,gBADF;AAELC,IAAAA,QAAQ,EACN,4GAHG;AAILC,IAAAA,YAAY,EAAE,MAJT;AAKLC,IAAAA,MAAM,EAAE,cAEDC,iBAAQL,KAFP;AAGJM,MAAAA,IAAI,EAAE;AAHF,qBAMDC,gBAAOP,KANN;AAOJM,MAAAA,IAAI,EAAE;AAPF,qBAUDE,eAAMR,KAVL;AAWJM,MAAAA,IAAI,EAAE;AAXF;AALH;AADM,C","sourcesContent":["import Desktop from '../../../../atom/image-upload/test/fixtures/desktop';\nimport Mobile from '../../../../atom/image-upload/test/fixtures/mobile';\nimport Email from '../../../../atom/image-upload/test/fixtures/email';\n\nexport default {\n props: {\n title: 'Platform logos',\n subtitle:\n '(SVG files are recommanded for retina display. For any other file types, max height recommanded is xxx px)',\n fieldsLayout: 'grid',\n fields: [\n {\n ...Desktop.props,\n type: 'image'\n },\n {\n ...Mobile.props,\n type: 'image'\n },\n {\n ...Email.props,\n type: 'image'\n }\n ]\n }\n};\n"],"file":"images.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/slider.js"],"names":["props","SetupSlider","title","subtitle","fields","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,QADF;AAELC,IAAAA,QAAQ,EAAE,8BAFL;AAGLC,IAAAA,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/slider.js"],"names":["props","SetupSlider","title","subtitle","fields","type"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,QADF;AAELC,IAAAA,QAAQ,EAAE,8BAFL;AAGLC,IAAAA,MAAM,EAAE,cAEDJ,KAFC;AAGJK,MAAAA,IAAI,EAAE;AAHF;AAHH;AADM,C","sourcesContent":["import SetupSlider from '../../../setup-slider/test/fixtures/default';\n\nconst {props} = SetupSlider;\n\nexport default {\n props: {\n title: 'Slider',\n subtitle: 'Explanation about the slider',\n fields: [\n {\n ...props,\n type: 'slider'\n }\n ]\n }\n};\n"],"file":"slider.js"}
|
|
@@ -15,9 +15,9 @@ var _style = _interopRequireDefault(require("./style.css"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
18
|
+
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); }
|
|
19
19
|
|
|
20
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
20
|
+
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; }
|
|
21
21
|
|
|
22
22
|
const BulletPointMenuButton = props => {
|
|
23
23
|
const {
|
|
@@ -37,9 +37,9 @@ var _notification = _interopRequireDefault(require("./notification"));
|
|
|
37
37
|
|
|
38
38
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
39
39
|
|
|
40
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
40
|
+
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); }
|
|
41
41
|
|
|
42
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
42
|
+
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; }
|
|
43
43
|
|
|
44
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
45
|
|
|
@@ -129,7 +129,7 @@ CardBackground.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
129
129
|
image: _propTypes.default.string,
|
|
130
130
|
empty: _propTypes.default.bool
|
|
131
131
|
} : {};
|
|
132
|
-
const Card = (0, _react.memo)(function Card(props, context) {
|
|
132
|
+
const Card = /*#__PURE__*/(0, _react.memo)(function Card(props, context) {
|
|
133
133
|
const {
|
|
134
134
|
skin
|
|
135
135
|
} = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/card/index.js"],"names":["THEMES","default","coorpmanager","style","CardBackground","type","image","empty","skin","externalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","props","context","badge","adaptiv","disabled","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification","CardContentInfo","oneOf"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,MAAM,GAAG;AACpBC,EAAAA,OAAO,EAAE,IADW;AAEpBC,EAAAA,YAAY,EAAEC,eAAMD;AAFA,CAAf;;;AAKP,MAAME,cAAc,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,KAAP;AAAcC,EAAAA;AAAd,CAAD,EAAuB;AAACC,EAAAA;AAAD,CAAvB,KAAkC;AACvD,QAAMC,eAAe,GAAG,wCAAkBJ,IAAlB,CAAxB;AACA,QAAMK,YAAY,GAAG,mBAAI,gBAAJ,EAAsBF,IAAtB,CAArB;AACA,QAAMG,UAAU,GAAG,mBAAI,cAAJ,EAAoBH,IAApB,CAAnB;;AAEA,MAAIC,eAAe,IAAIG,wCAAuBP,IAAvB,CAAvB,EAAqD;AACnD,UAAMQ,QAAQ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C,SAAhB,CAA0BuB,UAnBvB;AAoBfC,EAAAA,KAAK,EAAEvB,mBAAU6C,KAAV,CAAgB,oBAAK/E,MAAL,CAAhB;AApBQ,CAAjB;eAsBeqC,I","sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default'\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n >\n <CardBackground type={type} image={image} empty={empty} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n />\n ) : null}\n <Selectable isSelected={isSelected} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? <Customer {...customer} theme={theme} type={type} disabled={disabled} /> : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle}>\n {badge}\n </div>\n ) : null}\n {disabled ? <div className={style.lockWrapper}>{lock}</div> : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES))\n};\nexport default Card;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/card/index.js"],"names":["THEMES","default","coorpmanager","style","CardBackground","type","image","empty","skin","externalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","props","context","badge","adaptiv","disabled","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification","CardContentInfo","oneOf"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,MAAM,GAAG;AACpBC,EAAAA,OAAO,EAAE,IADW;AAEpBC,EAAAA,YAAY,EAAEC,eAAMD;AAFA,CAAf;;;AAKP,MAAME,cAAc,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,KAAP;AAAcC,EAAAA;AAAd,CAAD,EAAuB;AAACC,EAAAA;AAAD,CAAvB,KAAkC;AACvD,QAAMC,eAAe,GAAG,wCAAkBJ,IAAlB,CAAxB;AACA,QAAMK,YAAY,GAAG,mBAAI,gBAAJ,EAAsBF,IAAtB,CAArB;AACA,QAAMG,UAAU,GAAG,mBAAI,cAAJ,EAAoBH,IAApB,CAAnB;;AAEA,MAAIC,eAAe,IAAIG,wCAAuBP,IAAvB,CAAvB,EAAqD;AACnD,UAAMQ,QAAQ,GAAGD,wCAAuBP,IAAvB,EAA6BS,IAA9C;AACA,UAAMC,SAAS,GAAGH,wCAAuBP,IAAvB,EAA6BW,KAA/C;;AACA,UAAMC,cAAc,gBAClB;AAAK,MAAA,SAAS,EAAEd,eAAMe;AAAtB,oBACE,6BAAC,QAAD;AAAU,MAAA,SAAS,EAAEf,eAAMgB;AAA3B,MADF,CADF;;AAMA,QAAIb,KAAJ,EAAW;AACT,YAAMc,eAAe,gBACnB;AACE,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IAAI,CAACJ,SAAL,2CAAiB;AACfO,EAAAA,KAAK,EAAEN,mBAAUC,MADF;AAEf7B,EAAAA,KAAK,EAAE4B,mBAAUC,MAFF;AAGfO,EAAAA,QAAQ,EAAER,mBAAUE,IAHL;AAIfK,EAAAA,OAAO,EAAEP,mBAAUE,IAJJ;AAKf/B,EAAAA,IAAI,EAAE6B,mBAAUC,MALD;AAMfQ,EAAAA,KAAK,EAAET,mBAAUC,MANF;AAOfS,EAAAA,MAAM,EAAEV,mBAAUC,MAPH;AAQfW,EAAAA,eAAe,EAAEZ,mBAAUE,IARZ;AASfS,EAAAA,QAAQ,EAAEX,mBAAUuC,KAAV,CAAgBC,kBAASzC,SAAzB,CATK;AAUfc,EAAAA,QAAQ,EAAEb,mBAAUyC,MAVL;AAWf3B,EAAAA,QAAQ,EAAEd,mBAAUE,IAXL;AAYfa,EAAAA,kBAAkB,EAAEf,mBAAUC,MAZf;AAafe,EAAAA,qBAAqB,EAAEhB,mBAAUC,MAblB;AAcfgB,EAAAA,OAAO,EAAEjB,mBAAU0C,IAdJ;AAefxB,EAAAA,eAAe,EAAElB,mBAAU0C,IAfZ;AAgBfvB,EAAAA,UAAU,EAAEnB,mBAAUE,IAhBP;AAiBfkB,EAAAA,YAAY,EAAEpB,mBAAUuC,KAAV,CAAgBI,sBAAa5C,SAA7B,CAjBC;AAkBfsB,EAAAA,aAAa,EAAEuB,qBAAgB7C,SAAhB,CAA0BsB,aAlB1B;AAmBfC,EAAAA,UAAU,EAAEsB,qBAAgB7C,SAAhB,CAA0BuB,UAnBvB;AAoBfC,EAAAA,KAAK,EAAEvB,mBAAU6C,KAAV,CAAgB,oBAAK/E,MAAL,CAAhB;AApBQ,CAAjB;eAsBeqC,I","sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default'\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n >\n <CardBackground type={type} image={image} empty={empty} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n />\n ) : null}\n <Selectable isSelected={isSelected} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? <Customer {...customer} theme={theme} type={type} disabled={disabled} /> : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle}>\n {badge}\n </div>\n ) : null}\n {disabled ? <div className={style.lockWrapper}>{lock}</div> : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES))\n};\nexport default Card;\n"],"file":"index.js"}
|
|
@@ -12,7 +12,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
function _extends() { _extends = Object.assign || 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); }
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
|
-
props: _extends(
|
|
15
|
+
props: _extends({}, _default2.default.props, _adaptivAndDisabled.default.props, {
|
|
16
16
|
certifiedAuthor: false,
|
|
17
17
|
progress: 0
|
|
18
18
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/adaptiv-and-disabled.js"],"names":["props","Default","cardContent","certifiedAuthor","progress"],"mappings":";;;;;AAAA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/adaptiv-and-disabled.js"],"names":["props","Default","cardContent","certifiedAuthor","progress"],"mappings":";;;;;AAAA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,kBAAQD,KADR,EAEAE,4BAAYF,KAFZ;AAGHG,IAAAA,eAAe,EAAE,KAHd;AAIHC,IAAAA,QAAQ,EAAE;AAJP;AADQ,C","sourcesContent":["import cardContent from '../../../card-content/test/fixtures/adaptiv-and-disabled';\nimport Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n ...cardContent.props,\n certifiedAuthor: false,\n progress: 0\n }\n};\n"],"file":"adaptiv-and-disabled.js"}
|
|
@@ -12,7 +12,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
function _extends() { _extends = Object.assign || 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); }
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
|
-
props: _extends(
|
|
15
|
+
props: _extends({}, _default2.default.props, _adaptiv.default.props)
|
|
16
16
|
};
|
|
17
17
|
exports.default = _default;
|
|
18
18
|
//# sourceMappingURL=adaptiv.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/adaptiv.js"],"names":["props","Default","cardContentAdaptiv"],"mappings":";;;;;AAAA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/adaptiv.js"],"names":["props","Default","cardContentAdaptiv"],"mappings":";;;;;AAAA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,kBAAQD,KADR,EAEAE,iBAAmBF,KAFnB;AADQ,C","sourcesContent":["import cardContentAdaptiv from '../../../card-content/test/fixtures/adaptiv';\nimport Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n ...cardContentAdaptiv.props\n }\n};\n"],"file":"adaptiv.js"}
|
|
@@ -12,7 +12,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
function _extends() { _extends = Object.assign || 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); }
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
|
-
props: _extends(
|
|
15
|
+
props: _extends({}, _default2.default.props, _disabled.default.props)
|
|
16
16
|
};
|
|
17
17
|
exports.default = _default;
|
|
18
18
|
//# sourceMappingURL=disabled.js.map
|