@saooti/octopus-sdk 42.4.0-beta2 → 42.4.0-beta4
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/dist/{AccessibilityModal-CBIb3UQS.mjs → AccessibilityModal-CHUSDO1F.mjs} +39 -36
- package/dist/{AdvancedSearch-DVWO6WtG.mjs → AdvancedSearch-S-OMg1XH.mjs} +5 -5
- package/dist/{AuthStore-BBZTjLTf.mjs → AuthStore-BdiVUQBK.mjs} +268 -261
- package/dist/{CategoryChooser-fAUMJNHu.mjs → CategoryChooser-Cg_gq6L_.mjs} +1 -1
- package/dist/{CategoryFilter-CU4D9VlH.mjs → CategoryFilter-CI5PfekR.mjs} +3 -3
- package/dist/{CategoryList-CNRdGnw0.mjs → CategoryList-B0hCDa0Q.mjs} +2 -2
- package/dist/{CategoryPage-CJ_OohkC.mjs → CategoryPage-j1c3a9Ti.mjs} +2 -2
- package/dist/{CategorySearchFilter-Cce5zxZB.mjs → CategorySearchFilter-eRcZcX0o.mjs} +1 -1
- package/dist/{CheckIdentityModal-DEXrqR2G.mjs → CheckIdentityModal-DTA9VPdd.mjs} +3 -3
- package/dist/{ClassicAlert-DATLZ8J1.mjs → ClassicAlert-fZ4qLB-c.mjs} +1 -1
- package/dist/{ClassicBigChip-BK8v_P0z.mjs → ClassicBigChip-D0pRqFwb.mjs} +1 -1
- package/dist/ClassicColorPicker-DcjFDaZ8.mjs +79 -0
- package/dist/{ClassicDatePicker-CKIkZWmW.mjs → ClassicDatePicker-DlNlvjA0.mjs} +1 -1
- package/dist/{ClassicEmojiPicker-C0gm-DA2.mjs → ClassicEmojiPicker-Cc4UZRvZ.mjs} +1 -1
- package/dist/{ClassicHelpButton-BnRLmYuh.mjs → ClassicHelpButton-CDz_GcaZ.mjs} +1 -1
- package/dist/{ClassicInputText-YsntJkHk.mjs → ClassicInputText-4bPGD_kV.mjs} +1 -1
- package/dist/{ClassicLoading-CXfMjpyl.mjs → ClassicLoading-ydEDL7-R.mjs} +1 -1
- package/dist/{ClassicMultiselect-C0yzVQ8Y.mjs → ClassicMultiselect-CEJF_Uo5.mjs} +1 -1
- package/dist/{ClassicNotifications-Bt7HmFoU.mjs → ClassicNotifications-olXwz4qY.mjs} +2 -2
- package/dist/ClassicPopover-BpFChUHf.mjs +203 -0
- package/dist/ClassicSelect-Bj9BkTkd.mjs +121 -0
- package/dist/{ClassicSpinner-DFRDD51g.mjs → ClassicSpinner-P6q1es8G.mjs} +4 -1
- package/dist/{ClipboardModal-cHMlAcg3.mjs → ClipboardModal-D40ImhpB.mjs} +1 -1
- package/dist/{CommentInput-BiGn-skv.mjs → CommentInput-BGAQHUZh.mjs} +5 -5
- package/dist/CommentItem-CBtedADn.mjs +233 -0
- package/dist/CommentList-BqY6dXMt.mjs +203 -0
- package/dist/{CommentMoreActions-Cew7m8vJ.mjs → CommentMoreActions-BPDPuoeI.mjs} +6 -5
- package/dist/{CommentName-BQR1xl1T.mjs → CommentName-DiN2v6zm.mjs} +3 -3
- package/dist/{CommentParentInfo-BuM6sFV4.mjs → CommentParentInfo-DIyzK-2k.mjs} +3 -3
- package/dist/CommentSection-BUQsGQcN.mjs +119 -0
- package/dist/{CommentStore-BjzpqB_1.mjs → CommentStore-D-2Q49xZ.mjs} +76 -88
- package/dist/{ContractPreviewModal-CgEfHeyW.mjs → ContractPreviewModal-Duf8yY-7.mjs} +1 -1
- package/dist/{DateFilter-Bzx36_ol.mjs → DateFilter-Drn-Thgy.mjs} +1 -1
- package/dist/{DownloadPodcastButton-NStAbAZa.mjs → DownloadPodcastButton-BFZI5jmS.mjs} +2 -2
- package/dist/{EditCommentModal-coXmYdY_.mjs → EditCommentModal-CVihXEGS.mjs} +2 -2
- package/dist/{EmissionGroupChooser-XK05Hye9.mjs → EmissionGroupChooser-BaorNk90.mjs} +2 -2
- package/dist/{EmissionInlineList-CWP6yZLk.mjs → EmissionInlineList-DuzgE8hS.mjs} +36 -26
- package/dist/EmissionItem-R8ugPYq7.mjs +123 -0
- package/dist/EmissionList-Dk8Xtmm1.mjs +230 -0
- package/dist/EmissionPage-DE_T-aNF.mjs +191 -0
- package/dist/{EmissionPlayerItem-B-poSf0h.mjs → EmissionPlayerItem-w3F7l_dL.mjs} +9 -9
- package/dist/{EmissionPresentationItem-Ic_4QTAV.mjs → EmissionPresentationItem-VwylQjvv.mjs} +7 -4
- package/dist/{EmissionPresentationList-CZVjxQUN.mjs → EmissionPresentationList-Xu3G_Ozt.mjs} +8 -6
- package/dist/EmissionsPage--rvX0YYh.mjs +117 -0
- package/dist/{Error403Page-paQBIk_S.mjs → Error403Page-Cb0LAznd.mjs} +1 -1
- package/dist/ExternalLink-Xd1yTR71.mjs +35 -0
- package/dist/{FooterGarSection-GKI36V98.mjs → FooterGarSection-CnjLLyXU.mjs} +3 -3
- package/dist/{FooterSection-vNIJikKR.mjs → FooterSection-0e6Z_wff.mjs} +13 -13
- package/dist/{HomeDropdown-B_5YrOSF.mjs → HomeDropdown-5JO7NDSl.mjs} +3 -3
- package/dist/{HomePage-KC-CcJky.mjs → HomePage-Bze7mTbZ.mjs} +3 -3
- package/dist/InlineRubriqueList-MYnSX_eZ.mjs +48 -0
- package/dist/LikeButton-CnMZOm9N.mjs +46 -0
- package/dist/{LikeSection-BZcy0TOS.mjs → LikeSection-BFh6c0_F.mjs} +11 -17
- package/dist/ListPaginate-DMir5lKe.mjs +191 -0
- package/dist/{LiveHorizontalList-CARJlSBl.mjs → LiveHorizontalList-DpfoJMa8.mjs} +6 -6
- package/dist/{LiveList-DtXz2jZd.mjs → LiveList-BXcxoWAn.mjs} +12 -11
- package/dist/{LivesPage-DRyMTzoZ.mjs → LivesPage-X_Cuj5RC.mjs} +2 -2
- package/dist/{MapPage-CyDwoNuG.mjs → MapPage-DR7057o0.mjs} +1 -1
- package/dist/{MessageModal-BcqS77v6.mjs → MessageModal-DyD3HZy0.mjs} +1 -1
- package/dist/{MobileMenu-DWAO2ARf.mjs → MobileMenu-CaFQBVFA.mjs} +3 -3
- package/dist/{MonetizableFilter-B7NHzXEY.mjs → MonetizableFilter-BeBVeGSW.mjs} +1 -1
- package/dist/{NewsletterModal-GkC9RDyD.mjs → NewsletterModal-CaaLFdAc.mjs} +1 -1
- package/dist/{OctopusMultiselect-noQPQMZQ.mjs → OctopusMultiselect-B_VBxbac.mjs} +19 -19
- package/dist/OrganisationChooser-BSJWSByJ.mjs +134 -0
- package/dist/{OrganisationChooserLight-Afgr1M7a.mjs → OrganisationChooserLight-BpqeFaQP.mjs} +2 -2
- package/dist/{PageNotFound-B7hdl-yk.mjs → PageNotFound-BB2Der8l.mjs} +2 -2
- package/dist/PaginateParams-BKSnsVZH.mjs +54 -0
- package/dist/{ParticipantInlineList-BwPZSUqb.mjs → ParticipantInlineList-DBlnlk8x.mjs} +24 -19
- package/dist/ParticipantItem-1fs3gVfe.mjs +93 -0
- package/dist/ParticipantPage-BaWObZn8.mjs +127 -0
- package/dist/{ParticipantsPage-CHWCYVS6.mjs → ParticipantsPage-QsAeLeb5.mjs} +16 -16
- package/dist/{PlayerAnonymousModal-BdgjFawf.mjs → PlayerAnonymousModal-B9fZFffi.mjs} +2 -2
- package/dist/PlaylistPage-Blu1HnPY.mjs +130 -0
- package/dist/{PlaylistsPage-DTL-ovBn.mjs → PlaylistsPage-DLNnZSJT.mjs} +88 -77
- package/dist/{PodcastFilterList-2nVutkmB.mjs → PodcastFilterList-DrZA5iQa.mjs} +4 -3
- package/dist/PodcastInlineList-C-ICxCWh.mjs +186 -0
- package/dist/{PodcastInlineListTemplate-DPBRFNio.mjs → PodcastInlineListTemplate-CDigJ7BJ.mjs} +58 -56
- package/dist/PodcastItem-m3k-Kix9.mjs +305 -0
- package/dist/{PodcastList-R0TvKt6G.mjs → PodcastList-Cww-0Swl.mjs} +12 -12
- package/dist/{PodcastList-RMFwG0hb.mjs → PodcastList-s4gxQjq5.mjs} +26 -24
- package/dist/PodcastPage-DE5gGN-2.mjs +595 -0
- package/dist/PodcastPlayButton-Df0Z63M0.mjs +127 -0
- package/dist/PodcastPlaylistInlineList-D6FMozVy.mjs +69 -0
- package/dist/{PodcastPresentationList-BvXr6uwb.mjs → PodcastPresentationList-SouqGyw9.mjs} +9 -7
- package/dist/{PodcastmakerHeader-CKbQLcJR.mjs → PodcastmakerHeader-DJXLJTF6.mjs} +1 -1
- package/dist/PodcastsPage-BXBARaTK.mjs +133 -0
- package/dist/{ProductorSearch-DiKNztPx.mjs → ProductorSearch-hTTU45pI.mjs} +3 -3
- package/dist/QrCode-OEI1du8P.mjs +116 -0
- package/dist/{QrCodeModal-CWrtwMmo.mjs → QrCodeModal-DmzFi0FH.mjs} +1 -1
- package/dist/{RadioCurrently-Dp9E529F.mjs → RadioCurrently-CrRnrOIT.mjs} +20 -20
- package/dist/{RadioImage-C9DiBLS9.mjs → RadioImage-DmMQTUjw.mjs} +1 -1
- package/dist/RadioList-Bj_bfSqy.mjs +79 -0
- package/dist/{RadioPage-BxwU7iT4.mjs → RadioPage-BHAxW4eG.mjs} +5 -5
- package/dist/{RadioPlanning-iJ7XDZSH.mjs → RadioPlanning-Cg47XjD9.mjs} +3 -3
- package/dist/{RecaptchaModal-Bfq6A8y2.mjs → RecaptchaModal-DLMoPxPf.mjs} +2 -2
- package/dist/{ReportAbuseModal-DBoOqnzQ.mjs → ReportAbuseModal-CIiBTSpw.mjs} +4 -4
- package/dist/{RightsIndicator-DiA2ldB-.mjs → RightsIndicator-Dr75KTRE.mjs} +4 -4
- package/dist/{RightsWrapper-JmJz5r95.mjs → RightsWrapper-C6zNaunR.mjs} +41 -42
- package/dist/{RubriqueChoice-C-S-veJJ.mjs → RubriqueChoice-Ci23lZBD.mjs} +2 -2
- package/dist/{RubriqueChooser-CNGn8LcP.mjs → RubriqueChooser-C5QLRe-b.mjs} +1 -1
- package/dist/{RubriqueFilter-CD_iXdC1.mjs → RubriqueFilter-B_lwmZ8m.mjs} +3 -3
- package/dist/{RubriqueList-COReG7_w.mjs → RubriqueList-DNwhze-d.mjs} +4 -4
- package/dist/{RubriquePage-C63TsvkH.mjs → RubriquePage-Bh59Y29D.mjs} +6 -5
- package/dist/{SearchPage-ChdImq8B.mjs → SearchPage-DfsoWBQU.mjs} +2 -2
- package/dist/ShareAnonymous-QT4t2_n7.mjs +210 -0
- package/dist/{ShareModalPlayer-Dr0BUSDx.mjs → ShareModalPlayer-D0NzOzX0.mjs} +1 -1
- package/dist/{ShareNewsletter-DJbBxYn3.mjs → ShareNewsletter-DT893L87.mjs} +41 -44
- package/dist/{SharePlayer-AeYTgJw6.mjs → SharePlayer-Ctivrvmn.mjs} +2 -2
- package/dist/SharePlayerColors-CfrkwpdM.mjs +50 -0
- package/dist/{SharePlayerRadio-DxcP73-X.mjs → SharePlayerRadio-Gvc5Gc0f.mjs} +2 -2
- package/dist/{SharePlayerTypes-CuDLz2mJ.mjs → SharePlayerTypes-B3OKl3HO.mjs} +1 -1
- package/dist/ShareSocialsButtons-MbK7ivGa.mjs +103 -0
- package/dist/SmartLinkPage-BKihppLi.mjs +143 -0
- package/dist/SubscribeButtons-DKylNvPo.mjs +126 -0
- package/dist/SwiperList-CqElRAFt.mjs +179 -0
- package/dist/{TagList-DPkw1vux.mjs → TagList-CFgCrA_i.mjs} +5 -5
- package/dist/{TagPage-uVe7N9oG.mjs → TagPage-CWGLni8k.mjs} +3 -3
- package/dist/TopBar-CmZSpIiz.mjs +427 -0
- package/dist/UserButtonContent-CvVebdKv.mjs +129 -0
- package/dist/{buttons-BkfxHdGj.mjs → buttons-s19oovgO.mjs} +1 -1
- package/dist/{downloadHelper-CvnGPosg.mjs → downloadHelper-B7bFMASS.mjs} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +235 -232
- package/dist/{messages-DlxMAMOa.mjs → messages-DJAarMHp.mjs} +108 -6
- package/dist/src/components/display/comments/like/LikeButton.vue.d.ts +9 -33
- package/dist/src/components/display/comments/like/LikeSection.vue.d.ts +11 -33
- package/dist/src/components/display/emission/EmissionInlineList.vue.d.ts +4 -4
- package/dist/src/components/display/emission/EmissionItem.vue.d.ts +5 -1
- package/dist/src/components/display/emission/EmissionPresentationItem.vue.d.ts +2 -0
- package/dist/src/components/display/emission/EmissionPresentationList.vue.d.ts +1 -1
- package/dist/src/components/display/list/SwiperList.vue.d.ts +7 -4
- package/dist/src/components/display/live/RadioItem.vue.d.ts +11 -0
- package/dist/src/components/display/participant/ParticipantInlineList.vue.d.ts +1 -1
- package/dist/src/components/display/playlist/PlaylistItem.vue.d.ts +11 -0
- package/dist/src/components/display/podcasts/PodcastFilterList.vue.d.ts +3 -3
- package/dist/src/components/display/podcasts/PodcastImage.vue.d.ts +29 -9
- package/dist/src/components/display/podcasts/PodcastInlineList.vue.d.ts +45 -4
- package/dist/src/components/display/podcasts/PodcastInlineListTemplate.vue.d.ts +1 -1
- package/dist/src/components/display/podcasts/PodcastItem.vue.d.ts +7 -1
- package/dist/src/components/display/podcasts/PodcastItemInfo.vue.d.ts +10 -12
- package/dist/src/components/display/podcasts/PodcastList.vue.d.ts +2 -0
- package/dist/src/components/display/sharing/FormatSwitch.vue.d.ts +12 -17
- package/dist/src/components/form/ClassicColorPicker.vue.d.ts +26 -0
- package/dist/src/components/form/ClassicContentEditable.vue.d.ts +1 -1
- package/dist/src/components/form/ClassicInputText.vue.d.ts +1 -1
- package/dist/src/components/form/ClassicMultiselect.vue.d.ts +4 -4
- package/dist/src/components/form/index.d.ts +2 -1
- package/dist/src/components/layouts/PresentationItem.vue.d.ts +7 -3
- package/dist/src/components/misc/ClassicPopover.vue.d.ts +2 -0
- package/dist/src/components/misc/ExternalLink.vue.d.ts +27 -0
- package/dist/src/components/misc/LoadingOverlay.vue.d.ts +19 -0
- package/dist/src/components/misc/SkipToContent.vue.d.ts +7 -0
- package/dist/src/locale/messages.d.ts +102 -0
- package/dist/src/stores/AuthStore.d.ts +1 -0
- package/dist/src/stores/CommentStore.d.ts +3 -1
- package/dist/src/stores/ParamSdkStore.d.ts +30 -32
- package/dist/src/websocket/commentWebsocket.d.ts +3 -2
- package/dist/src/websocket/wss.d.ts +35 -32
- package/dist/tests-mocks.mjs +3 -2
- package/dist/tests.mjs +3 -2
- package/dist/{useAdvancedParamInit-Bn2nYh9V.mjs → useAdvancedParamInit-CdXta4Fd.mjs} +5 -5
- package/dist/{useAppleVideo-MNXcA2S0.mjs → useAppleVideo-C0gGIXRR.mjs} +1 -1
- package/dist/{useDayjs-DV3H3JdH.mjs → useDayjs-B6txyR3X.mjs} +1 -1
- package/dist/{useErrorHandler-BVeBrWmP.mjs → useErrorHandler-BPwwQKrG.mjs} +1 -1
- package/dist/{useImageProxy-aLDjafm4.mjs → useImageProxy-XMMC_IC2.mjs} +1 -1
- package/dist/{useOrgaComputed-q48Zu9Fs.mjs → useOrgaComputed-B0wJ-ALx.mjs} +1 -1
- package/dist/usePresentationItem-D6mrQ7Zp.mjs +104 -0
- package/dist/{useRights-tS_KEToi.mjs → useRights-B-RH3q3n.mjs} +1 -1
- package/dist/{useRubriquesFilterComputed-Xl5Dt2Xq.mjs → useRubriquesFilterComputed-Bp6L2o9-.mjs} +1 -1
- package/dist/{useRubriquesFilterParam-CIvIwIvX.mjs → useRubriquesFilterParam-B05QATg9.mjs} +1 -1
- package/dist/{useSharePlatforms-fUzHb1WM.mjs → useSharePlatforms-CbcKb6yZ.mjs} +26 -26
- package/dist/{useSimplePageParam-3Nn8EFc0.mjs → useSimplePageParam-DaoVpYoG.mjs} +1 -1
- package/eslint-config.mjs +10 -0
- package/package.json +4 -2
- package/src/api/rubriquesApi.ts +4 -4
- package/src/components/display/RightsIndicator.vue +0 -13
- package/src/components/display/RightsWrapper.vue +1 -16
- package/src/components/display/accessibility/AccessibilityModal.vue +7 -12
- package/src/components/display/comments/CommentInput.vue +2 -1
- package/src/components/display/comments/CommentList.vue +189 -176
- package/src/components/display/comments/CommentSection.vue +160 -73
- package/src/components/display/comments/item/CommentItem.vue +186 -135
- package/src/components/display/comments/item/CommentMoreActions.vue +195 -194
- package/src/components/display/comments/like/LikeButton.vue +47 -45
- package/src/components/display/comments/like/LikeSection.vue +122 -115
- package/src/components/display/emission/EmissionInlineList.vue +118 -116
- package/src/components/display/emission/EmissionItem.vue +35 -28
- package/src/components/display/emission/EmissionList.vue +41 -24
- package/src/components/display/emission/EmissionPresentationItem.vue +3 -0
- package/src/components/display/emission/EmissionPresentationList.vue +1 -0
- package/src/components/display/filter/ProductorSearch.vue +83 -80
- package/src/components/display/list/ListPaginate.vue +51 -37
- package/src/components/display/list/PaginateParams.vue +28 -32
- package/src/components/display/list/PaginateSection.vue +145 -138
- package/src/components/display/list/SwiperList.vue +113 -10
- package/src/components/display/live/LiveList.vue +111 -106
- package/src/components/display/live/RadioItem.vue +17 -12
- package/src/components/display/organisation/OrganisationChooser.vue +2 -1
- package/src/components/display/participant/ParticipantInlineList.vue +52 -49
- package/src/components/display/participant/ParticipantItem.vue +2 -1
- package/src/components/display/playlist/PlaylistItem.vue +19 -15
- package/src/components/display/playlist/PlaylistList.vue +16 -10
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +68 -61
- package/src/components/display/podcasts/AnimatorsItem.vue +2 -0
- package/src/components/display/podcasts/PodcastFilterList.vue +107 -106
- package/src/components/display/podcasts/PodcastImage.vue +110 -126
- package/src/components/display/podcasts/PodcastInlineList.vue +133 -25
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +2 -0
- package/src/components/display/podcasts/PodcastItem.vue +111 -64
- package/src/components/display/podcasts/PodcastItemInfo.vue +48 -18
- package/src/components/display/podcasts/PodcastList.vue +198 -194
- package/src/components/display/podcasts/PodcastModuleBox.vue +1 -0
- package/src/components/display/podcasts/PodcastPlayButton.vue +23 -6
- package/src/components/display/podcasts/PodcastPresentationList.vue +1 -0
- package/src/components/display/rubriques/InlineRubriqueList.vue +35 -16
- package/src/components/display/sharing/FormatSwitch.vue +90 -101
- package/src/components/display/sharing/QrCode.vue +4 -8
- package/src/components/display/sharing/ShareAnonymous.vue +207 -205
- package/src/components/display/sharing/ShareNewsletter.vue +3 -7
- package/src/components/display/sharing/SharePlayerColors.vue +5 -12
- package/src/components/display/sharing/ShareSocialsButtons.vue +67 -60
- package/src/components/display/sharing/SubscribeButtons.vue +47 -35
- package/src/components/form/ClassicColorPicker.vue +110 -0
- package/src/components/form/ClassicMultiselect.vue +205 -197
- package/src/components/form/ClassicSelect.vue +100 -80
- package/src/components/form/index.ts +2 -0
- package/src/components/layouts/PresentationItem.vue +18 -12
- package/src/components/misc/ClassicDataTable.vue +3 -3
- package/src/components/misc/ClassicPopover.vue +95 -1
- package/src/components/misc/ClassicSpinner.vue +16 -2
- package/src/components/misc/ExternalLink.vue +51 -0
- package/src/components/misc/LoadingOverlay.vue +86 -0
- package/src/components/misc/RightsScopeMenu.vue +1 -1
- package/src/components/misc/SkipToContent.vue +16 -0
- package/src/components/misc/TopBarMainContent.vue +6 -9
- package/src/components/misc/UserButtonContent.vue +4 -7
- package/src/components/pages/EmissionPage.vue +3 -2
- package/src/components/pages/EmissionsPage.vue +4 -0
- package/src/components/pages/ParticipantPage.vue +2 -1
- package/src/components/pages/PlaylistPage.vue +115 -110
- package/src/components/pages/PodcastPage.vue +3 -0
- package/src/components/pages/PodcastsPage.vue +4 -0
- package/src/components/pages/RubriquePage.vue +1 -0
- package/src/components/pages/SmartLinkPage.vue +10 -7
- package/src/layouts/FullLayout.vue +29 -23
- package/src/locale/de.json +18 -1
- package/src/locale/en.json +18 -1
- package/src/locale/es.json +18 -1
- package/src/locale/fr.json +22 -1
- package/src/locale/it.json +18 -1
- package/src/locale/sl.json +18 -1
- package/src/stores/AuthStore.ts +11 -1
- package/src/stores/CommentStore.ts +280 -263
- package/src/stores/ParamSdkStore.ts +39 -37
- package/src/style/_variables.scss +18 -0
- package/src/style/bootstrap.scss +40 -1
- package/src/style/general.scss +3 -3
- package/src/style/share.scss +26 -1
- package/src/websocket/commentWebsocket.ts +56 -54
- package/src/websocket/wss.ts +136 -163
- package/tests/components/display/comments/CommentList.spec.ts +45 -0
- package/tests/components/display/emission/EmissionItem.spec.ts +35 -0
- package/tests/components/display/emission/EmissionPresentationItem.spec.ts +6 -0
- package/tests/components/display/filter/ProductorSearch.spec.ts +20 -0
- package/tests/components/display/list/ListPaginate.spec.ts +67 -0
- package/tests/components/display/list/SwiperList.spec.ts +101 -2
- package/tests/components/display/live/RadioItem.spec.ts +41 -0
- package/tests/components/display/playlist/PlaylistItem.spec.ts +53 -0
- package/tests/components/display/podcasts/AnimatorsItem.spec.ts +18 -0
- package/tests/components/display/podcasts/PodcastInlineList.spec.ts +139 -0
- package/tests/components/display/podcasts/PodcastInlineListTemplate.spec.ts +16 -0
- package/tests/components/display/podcasts/PodcastItem.spec.ts +77 -0
- package/tests/components/display/podcasts/PodcastItemInfo.spec.ts +15 -2
- package/tests/components/display/podcasts/PodcastPlayButton.spec.ts +67 -0
- package/tests/components/display/sharing/FormatSwitch.spec.ts +26 -0
- package/tests/components/display/sharing/ShareAnonymous.spec.ts +61 -0
- package/tests/components/display/sharing/SubscribeButtons.spec.ts +73 -0
- package/tests/components/form/ClassicColorPicker.spec.ts +71 -0
- package/tests/components/form/ClassicSelect.spec.ts +38 -0
- package/tests/components/layouts/PresentationItem.spec.ts +34 -0
- package/tests/components/misc/ClassicPopover.spec.ts +112 -0
- package/tests/components/misc/ExternalLink.spec.ts +49 -0
- package/tests/components/misc/LoadingOverlay.spec.ts +27 -0
- package/tests/components/misc/SkipToContent.spec.ts +19 -0
- package/tests/components/pages/EmissionPage.spec.ts +9 -0
- package/tests/components/pages/EmissionsPage.spec.ts +13 -2
- package/tests/components/pages/PlaylistPage.spec.ts +11 -0
- package/tests/components/pages/PodcastsPage.spec.ts +13 -2
- package/tests/components/pages/SmartLinkPage.spec.ts +13 -0
- package/tests/helper/language.spec.ts +7 -3
- package/tests/mocks/useAdvancedParamInit.ts +2 -1
- package/tests/setup.ts +7 -0
- package/tests/stores/CommentStore.spec.ts +19 -0
- package/tests/utils.ts +5 -2
- package/tests/websocket/wss.spec.ts +153 -0
- package/dist/ClassicPopover-BUb-1WMB.mjs +0 -172
- package/dist/ClassicSelect-BpA0jKN6.mjs +0 -111
- package/dist/CommentItem-CY2-D9P3.mjs +0 -226
- package/dist/CommentList-CDIYZEq_.mjs +0 -201
- package/dist/CommentSection-BJZtgsut.mjs +0 -79
- package/dist/EmissionItem-BVsuGOnv.mjs +0 -116
- package/dist/EmissionList-E8czEUK3.mjs +0 -229
- package/dist/EmissionPage-CaDFKkE8.mjs +0 -192
- package/dist/EmissionsPage-C0jLjKTK.mjs +0 -116
- package/dist/InlineRubriqueList-BeGu04QD.mjs +0 -48
- package/dist/LikeButton-Cu8jAJHx.mjs +0 -40
- package/dist/ListPaginate-BYBfYtD5.mjs +0 -153
- package/dist/OrganisationChooser-CNNIw66c.mjs +0 -135
- package/dist/PaginateParams-Bjz3ZI-5.mjs +0 -75
- package/dist/ParticipantItem-CRnquj4R.mjs +0 -91
- package/dist/ParticipantPage-D0lJjj0p.mjs +0 -128
- package/dist/PlaylistPage-DMnkTMHk.mjs +0 -132
- package/dist/PodcastImage-DrIX2U4c.mjs +0 -115
- package/dist/PodcastInlineList-BtVDNokV.mjs +0 -123
- package/dist/PodcastItem-DYOmggEB.mjs +0 -151
- package/dist/PodcastPage-ClhwIq9v.mjs +0 -591
- package/dist/PodcastPlayButton-Bv61tl0L.mjs +0 -111
- package/dist/PodcastPlaylistInlineList-aZhxjz3p.mjs +0 -63
- package/dist/PodcastSwiperList-Cwh53maw.mjs +0 -170
- package/dist/PodcastsPage-CiEknka_.mjs +0 -132
- package/dist/QrCode-DITqqZq6.mjs +0 -109
- package/dist/RadioList-CTlVQuyN.mjs +0 -70
- package/dist/ShareAnonymous-kxt4P4zK.mjs +0 -199
- package/dist/SharePlayerColors-BpdifsHh.mjs +0 -49
- package/dist/ShareSocialsButtons-BhBqmgz7.mjs +0 -102
- package/dist/SmartLinkPage-Bupxsq-O.mjs +0 -136
- package/dist/SubscribeButtons-P1Jh_rFJ.mjs +0 -121
- package/dist/SwiperList-1mHT07oe.mjs +0 -117
- package/dist/TopBar-CeVHXg03.mjs +0 -427
- package/dist/UserButtonContent-CIq9izAe.mjs +0 -131
- package/dist/usePresentationItem-DWIj-6bU.mjs +0 -100
- package/src/components/display/podcasts/PodcastSwiperList.vue +0 -160
- package/src/helper/featureHelper.ts +0 -24
package/dist/tests-mocks.mjs
CHANGED
|
@@ -24,7 +24,7 @@ function r() {
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region tests/mocks/useAdvancedParamInit.ts
|
|
27
|
-
function i() {
|
|
27
|
+
function i(e = {}) {
|
|
28
28
|
return { useAdvancedParamInit: () => ({
|
|
29
29
|
organisationId: void 0,
|
|
30
30
|
searchPattern: void 0,
|
|
@@ -41,7 +41,8 @@ function i() {
|
|
|
41
41
|
rubriquesFilterArrayIds: void 0,
|
|
42
42
|
isInit: void 0,
|
|
43
43
|
beneficiaries: void 0,
|
|
44
|
-
emissionGroups: void 0
|
|
44
|
+
emissionGroups: void 0,
|
|
45
|
+
...e
|
|
45
46
|
}) };
|
|
46
47
|
}
|
|
47
48
|
//#endregion
|
package/dist/tests.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./AuthStore-
|
|
1
|
+
import { t as e } from "./AuthStore-BdiVUQBK.mjs";
|
|
2
2
|
import { t } from "./localisation-CBnt682X.mjs";
|
|
3
3
|
import { createPinia as n, setActivePinia as r } from "pinia";
|
|
4
4
|
import { vi as i } from "vitest";
|
|
@@ -28,7 +28,8 @@ async function c(e, n) {
|
|
|
28
28
|
},
|
|
29
29
|
props: n?.props,
|
|
30
30
|
slots: n?.slots,
|
|
31
|
-
shallow: n?.shallow
|
|
31
|
+
shallow: n?.shallow,
|
|
32
|
+
attachTo: n?.attachTo
|
|
32
33
|
});
|
|
33
34
|
return await i.dynamicImportSettled(), c;
|
|
34
35
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as e, v as t } from "./AuthStore-
|
|
2
|
-
import { n } from "./useRights-
|
|
3
|
-
import { t as r } from "./useSimplePageParam-
|
|
4
|
-
import { t as i } from "./useOrgaComputed-
|
|
5
|
-
import { t as a } from "./useRubriquesFilterParam-
|
|
1
|
+
import { T as e, v as t } from "./AuthStore-BdiVUQBK.mjs";
|
|
2
|
+
import { n } from "./useRights-B-RH3q3n.mjs";
|
|
3
|
+
import { t as r } from "./useSimplePageParam-DaoVpYoG.mjs";
|
|
4
|
+
import { t as i } from "./useOrgaComputed-B0wJ-ALx.mjs";
|
|
5
|
+
import { t as a } from "./useRubriquesFilterParam-B05QATg9.mjs";
|
|
6
6
|
import { computed as o, nextTick as s, onMounted as c, ref as l, watch as u } from "vue";
|
|
7
7
|
import d from "dayjs";
|
|
8
8
|
//#region src/components/composable/route/useAdvancedParamInit.ts
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
2
|
+
import { g as t, i as n, j as r } from "./AuthStore-BdiVUQBK.mjs";
|
|
3
|
+
import { t as i } from "./useResizePhone-4hSkK5pa.mjs";
|
|
4
|
+
import { t as a } from "./displayHelper-DQtoqc_6.mjs";
|
|
5
|
+
import { t as o } from "./useImageProxy-XMMC_IC2.mjs";
|
|
6
|
+
import { t as s } from "./GeneralStore-Darfv4af.mjs";
|
|
7
|
+
import { t as c } from "./useDayjs-B6txyR3X.mjs";
|
|
8
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, nextTick as v, normalizeClass as y, openBlock as b, renderList as x, renderSlot as S, resolveComponent as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, useTemplateRef as D, watch as O, withCtx as k } from "vue";
|
|
9
|
+
//#region src/components/layouts/PresentationItem.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var A = [
|
|
11
|
+
"src",
|
|
12
|
+
"width",
|
|
13
|
+
"height"
|
|
14
|
+
], j = { class: "tags" }, M = {
|
|
15
|
+
key: 0,
|
|
16
|
+
ref: "descriptionItemContainer",
|
|
17
|
+
class: "element-description htms-wysiwyg-content mt-0"
|
|
18
|
+
}, N = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "mb-2"
|
|
21
|
+
}, P = ["innerHTML"], F = /*#__PURE__*/ e(/* @__PURE__ */ _({
|
|
22
|
+
__name: "PresentationItem",
|
|
23
|
+
props: {
|
|
24
|
+
route: {},
|
|
25
|
+
imageUrl: {},
|
|
26
|
+
name: {},
|
|
27
|
+
tags: {},
|
|
28
|
+
additionalInfo: {},
|
|
29
|
+
description: {},
|
|
30
|
+
vertical: { type: Boolean },
|
|
31
|
+
titleTag: { default: "h3" }
|
|
32
|
+
},
|
|
33
|
+
setup(e) {
|
|
34
|
+
let t = e, n = D("descriptionItem"), r = D("descriptionItemContainer"), { isPhone: s } = i(), { useProxyImageUrl: c } = o(), _ = u(() => t.vertical ? "396" : s.value ? "246" : "250");
|
|
35
|
+
O(s, async () => {
|
|
36
|
+
v(() => {
|
|
37
|
+
if (!t.description || s.value) return;
|
|
38
|
+
let e = n?.value, i = r?.value;
|
|
39
|
+
e && i && e.clientHeight > i.clientHeight && i.classList.add("after-element-description");
|
|
40
|
+
});
|
|
41
|
+
}, { immediate: !0 });
|
|
42
|
+
function F(e) {
|
|
43
|
+
return a.urlify(e);
|
|
44
|
+
}
|
|
45
|
+
return (t, n) => {
|
|
46
|
+
let r = C("router-link");
|
|
47
|
+
return b(), p("article", { class: y(["classic-element-container item-presentation-container mt-3", e.vertical ? "vertical-item" : ""]) }, [m("div", { class: y(["classic-element-content d-flex-column flex-grow-1 text-dark", e.vertical ? "flex-column" : ""]) }, [m("div", { class: y(["img-box", e.vertical ? "img-box-bigger" : ""]) }, [
|
|
48
|
+
m("img", {
|
|
49
|
+
loading: "lazy",
|
|
50
|
+
src: E(c)(e.imageUrl, _.value),
|
|
51
|
+
width: _.value,
|
|
52
|
+
height: _.value,
|
|
53
|
+
"aria-hidden": "true",
|
|
54
|
+
alt: ""
|
|
55
|
+
}, null, 8, A),
|
|
56
|
+
m("div", j, [(b(!0), p(l, null, x(e.tags, (e) => (b(), p("span", { key: e }, T(e), 1))), 128))]),
|
|
57
|
+
S(t.$slots, "after-image", {}, void 0, !0)
|
|
58
|
+
], 2), m("div", { class: y(["classic-element-text pb-0", { "pt-1": e.vertical }]) }, [(b(), d(w(e.titleTag), { class: "element-name mb-2 basic-line-clamp" }, {
|
|
59
|
+
default: k(() => [g(r, {
|
|
60
|
+
to: e.route,
|
|
61
|
+
class: "text-dark element-link"
|
|
62
|
+
}, {
|
|
63
|
+
default: k(() => [h(T(e.name), 1)]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["to"])]),
|
|
66
|
+
_: 1
|
|
67
|
+
})), !E(s) && (e.description || e.additionalInfo) ? (b(), p("div", M, [e.additionalInfo ? (b(), p("div", N, [(b(!0), p(l, null, x(e.additionalInfo, (e, t) => (b(), p("div", {
|
|
68
|
+
key: t,
|
|
69
|
+
class: "text-secondary"
|
|
70
|
+
}, T(e), 1))), 128))])) : f("", !0), e.description ? (b(), p("div", {
|
|
71
|
+
key: 1,
|
|
72
|
+
ref: "descriptionItem",
|
|
73
|
+
innerHTML: F(e.description || "")
|
|
74
|
+
}, null, 8, P)) : f("", !0)], 512)) : f("", !0)], 2)], 2)], 2);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}), [["__scopeId", "data-v-a3b41ffd"]]), I = () => {
|
|
78
|
+
let e = s(), { formatDate: i } = c();
|
|
79
|
+
function a(t) {
|
|
80
|
+
return e.storedCategories.filter((e) => t.iabIds.includes(e.id)).map((e) => e.name);
|
|
81
|
+
}
|
|
82
|
+
async function o(e, r) {
|
|
83
|
+
let i = [];
|
|
84
|
+
e.rubriqueIds && i.push(...e.rubriqueIds), "emission" in e && e.emission.rubriqueIds && i.push(...e.emission.rubriqueIds);
|
|
85
|
+
let a = i.filter(t).map(n.getCachedRubrique), o = await Promise.all(a);
|
|
86
|
+
return r ? o.filter((e) => e.rubriquageId === r).map((e) => e.name) : o.map((e) => e.name);
|
|
87
|
+
}
|
|
88
|
+
async function l(e) {
|
|
89
|
+
let t = r.presentationItems.tags, n;
|
|
90
|
+
return t === "iab" ? n = a("emission" in e ? e.emission : e) : t === "rubrique" && (n = await o(e, r.presentationItems.tagsRubriquageId)), n && r.presentationItems.tagsLimit ? n.slice(0, r.presentationItems.tagsLimit) : n;
|
|
91
|
+
}
|
|
92
|
+
async function u(e) {
|
|
93
|
+
let t = r.presentationItems.additionalInfo, n = r.presentationItems.restrictiveRubriquageId;
|
|
94
|
+
if (!t?.length) return;
|
|
95
|
+
let a = "emission" in e ? e : null, s = a?.emission ?? e;
|
|
96
|
+
return (await Promise.all(t.map(async (t) => t === "date" ? a?.pubDate ? i(a.pubDate) : null : t === "productor" ? s.orga.name : t === "restrictive-rubrique" && n !== void 0 ? (await o(e, n)).join(", ") : null))).filter((e) => e !== null);
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
tagsFor: l,
|
|
100
|
+
additionalInfoFor: u
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
//#endregion
|
|
104
|
+
export { F as n, I as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./AuthStore-
|
|
1
|
+
import { t as e } from "./AuthStore-BdiVUQBK.mjs";
|
|
2
2
|
//#region src/components/composable/useRights.ts
|
|
3
3
|
var t = /* @__PURE__ */ function(e) {
|
|
4
4
|
return e.Allowed = "allowed", e.DeniedNoRight = "no_right", e.DeniedNotOwner = "not_owner", e.DeniedInsufficientScope = "no_scope", e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "./
|
|
3
|
-
import { t as r } from "./useImageProxy-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
2
|
+
import { c as t, k as n } from "./AuthStore-BdiVUQBK.mjs";
|
|
3
|
+
import { t as r } from "./useImageProxy-XMMC_IC2.mjs";
|
|
4
4
|
import { t as i } from "./RadiolineIcon-CxHZGhfr.mjs";
|
|
5
5
|
import { t as a } from "./TuninIcon-DENNxlP8.mjs";
|
|
6
6
|
import { t as o } from "./PodcastAddictIcon-CW3Uxj4I.mjs";
|
|
@@ -151,7 +151,7 @@ var H = ["aria-hidden"], U = [
|
|
|
151
151
|
"width",
|
|
152
152
|
"height",
|
|
153
153
|
"src"
|
|
154
|
-
], W = /*#__PURE__*/
|
|
154
|
+
], W = /*#__PURE__*/ e(/* @__PURE__ */ v({
|
|
155
155
|
__name: "ClassicAvatar",
|
|
156
156
|
props: {
|
|
157
157
|
name: {},
|
|
@@ -267,22 +267,22 @@ var H = ["aria-hidden"], U = [
|
|
|
267
267
|
color: "#5c85dd"
|
|
268
268
|
}
|
|
269
269
|
], q = () => {
|
|
270
|
-
let
|
|
271
|
-
async function i(
|
|
272
|
-
|
|
270
|
+
let e = C([]), { addNotification: r } = n();
|
|
271
|
+
async function i(n) {
|
|
272
|
+
e.value = [...K];
|
|
273
273
|
try {
|
|
274
|
-
(await
|
|
275
|
-
|
|
276
|
-
name:
|
|
277
|
-
title:
|
|
278
|
-
icon: b((
|
|
274
|
+
(await t.getAllNoAuth(n)).forEach((t) => {
|
|
275
|
+
e.value.push({
|
|
276
|
+
name: t.name,
|
|
277
|
+
title: t.name,
|
|
278
|
+
icon: b((e, { attrs: n }) => y(W, {
|
|
279
279
|
...n,
|
|
280
|
-
...
|
|
281
|
-
name:
|
|
282
|
-
imageUrl:
|
|
280
|
+
...e,
|
|
281
|
+
name: t.name,
|
|
282
|
+
imageUrl: t.image
|
|
283
283
|
})),
|
|
284
284
|
color: "white",
|
|
285
|
-
annotation: `ptfaudio_${
|
|
285
|
+
annotation: `ptfaudio_${t.name}`
|
|
286
286
|
});
|
|
287
287
|
});
|
|
288
288
|
} catch (e) {
|
|
@@ -292,18 +292,18 @@ var H = ["aria-hidden"], U = [
|
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
function a(
|
|
296
|
-
return
|
|
295
|
+
function a(t) {
|
|
296
|
+
return e.value.find((e) => e.name === t);
|
|
297
297
|
}
|
|
298
|
-
function o(
|
|
299
|
-
let
|
|
300
|
-
return
|
|
301
|
-
let r = s(
|
|
302
|
-
r &&
|
|
303
|
-
...
|
|
298
|
+
function o(t) {
|
|
299
|
+
let n = [];
|
|
300
|
+
return e.value.forEach((e) => {
|
|
301
|
+
let r = s(e.annotation ?? e.name, t);
|
|
302
|
+
r && n.push({
|
|
303
|
+
...e,
|
|
304
304
|
url: r
|
|
305
305
|
});
|
|
306
|
-
}),
|
|
306
|
+
}), n;
|
|
307
307
|
}
|
|
308
308
|
function s(e, t) {
|
|
309
309
|
return c(t?.[e]);
|
|
@@ -315,7 +315,7 @@ var H = ["aria-hidden"], U = [
|
|
|
315
315
|
initPlatforms: i,
|
|
316
316
|
getPlatformsWithLinks: o,
|
|
317
317
|
getPlatformConfiguration: a,
|
|
318
|
-
platforms:
|
|
318
|
+
platforms: e
|
|
319
319
|
};
|
|
320
320
|
};
|
|
321
321
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as e } from "./AuthStore-
|
|
1
|
+
import { T as e } from "./AuthStore-BdiVUQBK.mjs";
|
|
2
2
|
import { t } from "./useRouteUpdateParams-DJLm3IAI.mjs";
|
|
3
3
|
import { t as n } from "./types-B-L_HwcA.mjs";
|
|
4
4
|
import { computed as r, onMounted as i, ref as a, watch as o } from "vue";
|
package/eslint-config.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import eslintPluginVue from 'eslint-plugin-vue';
|
|
|
3
3
|
import globals from 'globals';
|
|
4
4
|
import typescriptEslint from 'typescript-eslint';
|
|
5
5
|
import stylistic from '@stylistic/eslint-plugin';
|
|
6
|
+
import vuejsAccessibility from 'eslint-plugin-vuejs-accessibility';
|
|
6
7
|
|
|
7
8
|
export default typescriptEslint.config(
|
|
8
9
|
{ ignores: ['*.d.ts', '**/coverage', '**/dist'] },
|
|
@@ -11,6 +12,8 @@ export default typescriptEslint.config(
|
|
|
11
12
|
eslint.configs.recommended,
|
|
12
13
|
...typescriptEslint.configs.recommended,
|
|
13
14
|
...eslintPluginVue.configs['flat/recommended'],
|
|
15
|
+
// Accessibility checks on templates (RGAA)
|
|
16
|
+
...vuejsAccessibility.configs['flat/recommended'],
|
|
14
17
|
],
|
|
15
18
|
plugins: {
|
|
16
19
|
'@stylistic': stylistic,
|
|
@@ -48,6 +51,13 @@ export default typescriptEslint.config(
|
|
|
48
51
|
// Disable default values required for props
|
|
49
52
|
"vue/require-default-prop": ['off'],
|
|
50
53
|
|
|
54
|
+
// Accessibility: a label is valid when nested OR linked with "for"
|
|
55
|
+
// (default requires both)
|
|
56
|
+
"vuejs-accessibility/label-has-for": ['error', { required: { some: ['nesting', 'id'] } }],
|
|
57
|
+
// Flags every <audio> without <track>, which RGAA does not require;
|
|
58
|
+
// video captions are checked at runtime by rgaa_checker
|
|
59
|
+
"vuejs-accessibility/media-has-caption": ['off'],
|
|
60
|
+
|
|
51
61
|
"@typescript-eslint/no-unused-vars": "warn"
|
|
52
62
|
}
|
|
53
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "42.4.0-
|
|
3
|
+
"version": "42.4.0-beta4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -70,7 +70,8 @@
|
|
|
70
70
|
"@vue/test-utils": "^2.5.1",
|
|
71
71
|
"eslint": "^10.12.0",
|
|
72
72
|
"eslint-plugin-vue": "10.11.1",
|
|
73
|
-
"
|
|
73
|
+
"eslint-plugin-vuejs-accessibility": "^2.6.3",
|
|
74
|
+
"happy-dom": "^21.0.4",
|
|
74
75
|
"husky": "^9.1.7",
|
|
75
76
|
"lint-staged": "^17.6.0",
|
|
76
77
|
"stylelint": "^16.25.0",
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
108
109
|
"dayjs": "^1.11.0",
|
|
109
110
|
"eslint-plugin-vue": "^10.9.1",
|
|
111
|
+
"eslint-plugin-vuejs-accessibility": "^2.6.3",
|
|
110
112
|
"pinia": ">=2.3.0",
|
|
111
113
|
"typescript-eslint": "^8.47.0",
|
|
112
114
|
"vue": "^3.5.0",
|
package/src/api/rubriquesApi.ts
CHANGED
|
@@ -163,14 +163,14 @@ async function listUserScope(userId: string, organisationId?: string): Promise<A
|
|
|
163
163
|
return scopePromise;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
const
|
|
166
|
+
const rubriquagePromise = findRestrictiveRubriquage(organisationId);
|
|
167
167
|
|
|
168
|
-
const [scope,
|
|
168
|
+
const [scope, rubriquage] = await Promise.all([
|
|
169
169
|
scopePromise,
|
|
170
|
-
|
|
170
|
+
rubriquagePromise
|
|
171
171
|
]);
|
|
172
172
|
|
|
173
|
-
const rubriquesIds = rubriques.map(r => r.rubriqueId);
|
|
173
|
+
const rubriquesIds = rubriquage.rubriques.map(r => r.rubriqueId);
|
|
174
174
|
|
|
175
175
|
return scope.filter(s => rubriquesIds.includes(s));
|
|
176
176
|
}
|
|
@@ -78,17 +78,4 @@ div.inline {
|
|
|
78
78
|
.inline .invisible {
|
|
79
79
|
display: none;
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
/** Helper class to keep the data accessible for screen readers */
|
|
83
|
-
.rights-visually-hidden {
|
|
84
|
-
position: absolute;
|
|
85
|
-
width: 1px;
|
|
86
|
-
height: 1px;
|
|
87
|
-
padding: 0;
|
|
88
|
-
margin: -1px;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
clip: rect(0, 0, 0, 0);
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
border: 0;
|
|
93
|
-
}
|
|
94
81
|
</style>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-if="displayIndicator"
|
|
4
4
|
>
|
|
5
5
|
<slot :id="elementId" :has-access="hasAccess" />
|
|
6
|
-
<span v-if="!hasAccess" class="
|
|
6
|
+
<span v-if="!hasAccess" class="visually-hidden">{{ message }}</span>
|
|
7
7
|
<ClassicPopover
|
|
8
8
|
v-if="!hasAccess"
|
|
9
9
|
:target="elementId"
|
|
@@ -27,18 +27,3 @@ const uid = getCurrentInstance()?.uid;
|
|
|
27
27
|
/** ID of the icon for reference by the popover */
|
|
28
28
|
const elementId = computed((): string => 'rights-wrapper-' + uid);
|
|
29
29
|
</script>
|
|
30
|
-
|
|
31
|
-
<style scoped lang="scss">
|
|
32
|
-
/** Helper class to keep the data accessible for screen readers */
|
|
33
|
-
.rights-visually-hidden {
|
|
34
|
-
position: absolute;
|
|
35
|
-
width: 1px;
|
|
36
|
-
height: 1px;
|
|
37
|
-
padding: 0;
|
|
38
|
-
margin: -1px;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
clip: rect(0, 0, 0, 0);
|
|
41
|
-
white-space: nowrap;
|
|
42
|
-
border: 0;
|
|
43
|
-
}
|
|
44
|
-
</style>
|
|
@@ -8,24 +8,20 @@
|
|
|
8
8
|
<div class="d-flex gap-3 flex-wrap mb-3">
|
|
9
9
|
<div class="d-flex flex-nowrap align-items-center flex-grow-1">
|
|
10
10
|
<div class="form-label me-3">{{ t('Choose background color') }}</div>
|
|
11
|
-
<
|
|
12
|
-
v-model
|
|
11
|
+
<ClassicColorPicker
|
|
12
|
+
v-model="background"
|
|
13
|
+
:label="t('Choose background color')"
|
|
13
14
|
class="c-hand"
|
|
14
|
-
show-fallback
|
|
15
|
-
fallback-input-type="color"
|
|
16
|
-
colors="text-advanced"
|
|
17
15
|
popover-x="left"
|
|
18
16
|
:data-color="color"
|
|
19
17
|
/>
|
|
20
18
|
</div>
|
|
21
19
|
<div class="d-flex flex-nowrap align-items-center flex-grow-1">
|
|
22
20
|
<div class="form-label me-3">{{ t('Choose text color') }}</div>
|
|
23
|
-
<
|
|
24
|
-
v-model
|
|
21
|
+
<ClassicColorPicker
|
|
22
|
+
v-model="color"
|
|
23
|
+
:label="t('Choose text color')"
|
|
25
24
|
class="c-hand"
|
|
26
|
-
show-fallback
|
|
27
|
-
fallback-input-type="color"
|
|
28
|
-
colors="text-advanced"
|
|
29
25
|
popover-x="left"
|
|
30
26
|
:data-color="color"
|
|
31
27
|
/>
|
|
@@ -56,8 +52,7 @@
|
|
|
56
52
|
</template>
|
|
57
53
|
|
|
58
54
|
<script setup lang="ts">
|
|
59
|
-
import
|
|
60
|
-
import "vue3-swatches/dist/style.css";
|
|
55
|
+
import ClassicColorPicker from "../../form/ClassicColorPicker.vue";
|
|
61
56
|
import FormatFontSizeIncreaseIcon from "vue-material-design-icons/FormatFontSizeIncrease.vue";
|
|
62
57
|
import FormatFontSizeDecreaseIcon from "vue-material-design-icons/FormatFontSizeDecrease.vue";
|
|
63
58
|
import { computed, defineAsyncComponent, onBeforeMount, ref } from "vue";
|
|
@@ -147,7 +147,8 @@ async function postComment(): Promise<void> {
|
|
|
147
147
|
emit("newComment", commentReceived);
|
|
148
148
|
newComment.value = "";
|
|
149
149
|
isTextareaActive.value = false;
|
|
150
|
-
} catch {
|
|
150
|
+
} catch(e) {
|
|
151
|
+
console.error(e);
|
|
151
152
|
postError.value = true;
|
|
152
153
|
}
|
|
153
154
|
isCheckIdentity.value = false;
|