urnovl-web-components 0.0.260 → 0.0.261
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/radio-DWksGWLi.js +170 -0
- package/dist/cjs/{tab-panel-BS_8ksq9.js → tab-BVwUIXQ4.js} +0 -49
- package/dist/cjs/tab-panel-KdoHPsyE.js +54 -0
- package/dist/cjs/ur-ad-banner.cjs.entry.js +3 -3
- package/dist/cjs/ur-author-page-profile.cjs.entry.js +3 -3
- package/dist/cjs/ur-autosave-drawer.cjs.entry.js +1 -1
- package/dist/cjs/{ur-avatar-COaGB2q6.js → ur-avatar-BV3tq4vp.js} +13 -6
- package/dist/cjs/ur-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ur-bottom-sheet.cjs.entry.js +1 -1
- package/dist/cjs/ur-button-arrow-left_2.cjs.entry.js +2 -2
- package/dist/cjs/ur-button-icon.cjs.entry.js +1 -1
- package/dist/cjs/ur-button.cjs.entry.js +3 -1
- package/dist/cjs/ur-chapter-item.cjs.entry.js +1 -1
- package/dist/cjs/ur-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ur-circular-progress.cjs.entry.js +1 -1
- package/dist/cjs/ur-comment-form.cjs.entry.js +5 -2
- package/dist/cjs/ur-competition-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-competition-novl-card_2.cjs.entry.js +8 -8
- package/dist/cjs/ur-competition-overview.cjs.entry.js +3 -2
- package/dist/cjs/ur-competition.cjs.entry.js +5 -5
- package/dist/cjs/ur-dialog.cjs.entry.js +3 -3
- package/dist/cjs/ur-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ur-editor.cjs.entry.js +2 -2
- package/dist/cjs/ur-form.cjs.entry.js +1 -1
- package/dist/cjs/ur-grid-col.cjs.entry.js +1 -1
- package/dist/cjs/ur-grid-row.cjs.entry.js +1 -1
- package/dist/cjs/ur-grid.cjs.entry.js +2 -2
- package/dist/cjs/ur-hero.cjs.entry.js +4 -4
- package/dist/cjs/ur-icon.cjs.entry.js +1 -1
- package/dist/cjs/ur-image-uploader.cjs.entry.js +1 -1
- package/dist/cjs/ur-library-shelf-creator.cjs.entry.js +1 -1
- package/dist/cjs/ur-library-shelf-selector.cjs.entry.js +1 -1
- package/dist/cjs/ur-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/ur-list-subheader.cjs.entry.js +1 -1
- package/dist/cjs/ur-list.cjs.entry.js +1 -1
- package/dist/cjs/ur-loader.cjs.entry.js +1 -1
- package/dist/cjs/ur-locale-filter-button.cjs.entry.js +2 -2
- package/dist/cjs/ur-locale-filter-panel.cjs.entry.js +2 -2
- package/dist/cjs/ur-logo.cjs.entry.js +1 -1
- package/dist/cjs/ur-main-desktop-top-app-bar.cjs.entry.js +2 -2
- package/dist/cjs/ur-main-menu.cjs.entry.js +1 -1
- package/dist/cjs/ur-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/ur-menu-profile.cjs.entry.js +1 -1
- package/dist/cjs/ur-navigation-bar.cjs.entry.js +1 -1
- package/dist/cjs/ur-navigation-drawer-global.cjs.entry.js +1 -1
- package/dist/cjs/ur-navigation-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ur-notification-tabs.cjs.entry.js +3 -2
- package/dist/cjs/ur-novl-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-novl-overview-info.cjs.entry.js +5 -5
- package/dist/cjs/ur-novl-summary.cjs.entry.js +4 -4
- package/dist/cjs/ur-page-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-page-profile-tabs.cjs.entry.js +9 -2
- package/dist/cjs/ur-page-profile.cjs.entry.js +3 -3
- package/dist/cjs/ur-page-shared-list-tabs.cjs.entry.js +3 -2
- package/dist/cjs/ur-player.cjs.entry.js +3 -3
- package/dist/cjs/ur-post-card.cjs.entry.js +311 -0
- package/dist/cjs/ur-post-detail.cjs.entry.js +286 -0
- package/dist/cjs/ur-post-editor.cjs.entry.js +388 -0
- package/dist/cjs/ur-post-prompt.cjs.entry.js +55 -0
- package/dist/cjs/ur-profile-card.cjs.entry.js +2 -2
- package/dist/cjs/ur-profile.cjs.entry.js +3 -3
- package/dist/cjs/ur-radio-button.cjs.entry.js +57 -0
- package/dist/cjs/{ur-radio-button_2.cjs.entry.js → ur-radio-group.cjs.entry.js} +9 -199
- package/dist/cjs/ur-read-mobile-top-app-bar.cjs.entry.js +1 -1
- package/dist/cjs/ur-read-rail-mobile.cjs.entry.js +2 -2
- package/dist/cjs/ur-read-rail.cjs.entry.js +2 -2
- package/dist/cjs/ur-read-top-app-bar.cjs.entry.js +1 -1
- package/dist/cjs/ur-segment-button.cjs.entry.js +1 -1
- package/dist/cjs/ur-select.cjs.entry.js +2 -2
- package/dist/cjs/ur-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/ur-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ur-subscription-card.cjs.entry.js +1 -1
- package/dist/cjs/ur-subscription-tiers-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-switch.cjs.entry.js +1 -1
- package/dist/cjs/ur-tabs.cjs.entry.js +3 -2
- package/dist/cjs/ur-thumbs-rating.cjs.entry.js +3 -3
- package/dist/cjs/ur-time-ago.cjs.entry.js +1 -1
- package/dist/cjs/ur-top-app-bar.cjs.entry.js +2 -2
- package/dist/cjs/ur-user-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-user-page-profile.cjs.entry.js +3 -3
- package/dist/cjs/ur-user-partnership-application.cjs.entry.js +1 -1
- package/dist/cjs/ur-user-profile-settings-form.cjs.entry.js +27 -2
- package/dist/cjs/ur-user-profile-tabs.cjs.entry.js +9 -2
- package/dist/cjs/ur-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/ur-work-overview.cjs.entry.js +6 -6
- package/dist/cjs/urnovl-web-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +6 -2
- package/dist/collection/components/ur-ad-banner/ur-ad-banner.js +3 -3
- package/dist/collection/components/ur-author-page-profile/ur-author-page-profile.js +2 -2
- package/dist/collection/components/ur-autosave-drawer/ur-autosave-drawer.js +1 -1
- package/dist/collection/components/ur-avatar/ur-avatar.js +14 -8
- package/dist/collection/components/ur-bottom-sheet/ur-bottom-sheet.js +1 -1
- package/dist/collection/components/ur-button/ur-button.js +22 -1
- package/dist/collection/components/ur-button-arrow-left/ur-button-arrow-left.js +1 -1
- package/dist/collection/components/ur-button-arrow-right/ur-button-arrow-right.js +1 -1
- package/dist/collection/components/ur-button-icon/ur-button-icon.js +1 -1
- package/dist/collection/components/ur-chapter-item/ur-chapter-item.js +1 -1
- package/dist/collection/components/ur-checkbox-group/ur-checkbox-group.js +1 -1
- package/dist/collection/components/ur-circular-progress/ur-circular-progress.js +1 -1
- package/dist/collection/components/ur-comment-form/ur-comment-form.css +14 -3
- package/dist/collection/components/ur-comment-form/ur-comment-form.js +64 -1
- package/dist/collection/components/ur-competition/ur-competition.js +5 -5
- package/dist/collection/components/ur-competition-carousel/ur-competition-carousel.js +1 -1
- package/dist/collection/components/ur-competition-novl-card/ur-competition-novl-card.js +6 -6
- package/dist/collection/components/ur-competition-overview/ur-competition-overview.js +1 -1
- package/dist/collection/components/ur-dialog/ur-dialog.js +3 -3
- package/dist/collection/components/ur-dropdown/ur-dropdown.js +1 -1
- package/dist/collection/components/ur-editor/ur-editor.js +2 -2
- package/dist/collection/components/ur-form/ur-form.js +1 -1
- package/dist/collection/components/ur-grid/ur-grid-col.js +1 -1
- package/dist/collection/components/ur-grid/ur-grid-row.js +1 -1
- package/dist/collection/components/ur-grid/ur-grid.js +2 -2
- package/dist/collection/components/ur-hero/ur-hero.js +4 -4
- package/dist/collection/components/ur-icon/ur-icon.js +1 -1
- package/dist/collection/components/ur-image-uploader/ur-image-uploader.js +1 -1
- package/dist/collection/components/ur-library-shelf-creator/ur-library-shelf-creator.js +1 -1
- package/dist/collection/components/ur-library-shelf-selector/ur-library-shelf-selector.js +1 -1
- package/dist/collection/components/ur-linear-progress/ur-linear-progress.js +2 -2
- package/dist/collection/components/ur-list/ur-list.js +1 -1
- package/dist/collection/components/ur-list-subheader/ur-list-subheader.js +1 -1
- package/dist/collection/components/ur-loader/ur-loader.js +1 -1
- package/dist/collection/components/ur-locale-filter-button/ur-locale-filter-button.js +2 -2
- package/dist/collection/components/ur-locale-filter-panel/ur-locale-filter-panel.js +2 -2
- package/dist/collection/components/ur-logo/ur-logo.js +1 -1
- package/dist/collection/components/ur-main-desktop-top-app-bar/ur-main-desktop-top-app-bar.js +2 -2
- package/dist/collection/components/ur-main-menu/ur-main-menu.js +1 -1
- package/dist/collection/components/ur-menu-item/ur-menu-item.js +2 -2
- package/dist/collection/components/ur-menu-profile/ur-menu-profile.js +1 -1
- package/dist/collection/components/ur-navigation-bar/ur-navigation-bar.js +1 -1
- package/dist/collection/components/ur-navigation-drawer/ur-navigation-drawer.js +1 -1
- package/dist/collection/components/ur-navigation-drawer-global/ur-navigation-drawer-global.js +1 -1
- package/dist/collection/components/ur-notification-tabs/ur-notification-tabs.js +1 -1
- package/dist/collection/components/ur-novl-carousel/ur-novl-carousel.js +1 -1
- package/dist/collection/components/ur-novl-overview-info/ur-novl-overview-info.js +4 -4
- package/dist/collection/components/ur-novl-summary/ur-novl-summary.js +3 -3
- package/dist/collection/components/ur-page-carousel/ur-page-carousel.js +1 -1
- package/dist/collection/components/ur-page-profile/ur-page-profile.js +2 -2
- package/dist/collection/components/ur-page-profile-tabs/ur-page-profile-tabs.js +27 -1
- package/dist/collection/components/ur-page-shared-list-tabs/ur-page-shared-list-tabs.js +1 -1
- package/dist/collection/components/ur-player/ur-player.js +3 -3
- package/dist/collection/components/ur-post-card/ur-post-card.css +651 -0
- package/dist/collection/components/ur-post-card/ur-post-card.js +996 -0
- package/dist/collection/components/ur-post-card/ur-post-card.types.js +1 -0
- package/dist/collection/components/ur-post-detail/ur-post-detail.css +439 -0
- package/dist/collection/components/ur-post-detail/ur-post-detail.js +865 -0
- package/dist/collection/components/ur-post-detail/ur-post-detail.types.js +1 -0
- package/dist/collection/components/ur-post-editor/ur-post-editor.css +425 -0
- package/dist/collection/components/ur-post-editor/ur-post-editor.js +1371 -0
- package/dist/collection/components/ur-post-prompt/ur-post-prompt.css +53 -0
- package/dist/collection/components/ur-post-prompt/ur-post-prompt.js +283 -0
- package/dist/collection/components/ur-profile/ur-profile.js +3 -3
- package/dist/collection/components/ur-profile-card/ur-profile-card.js +1 -1
- package/dist/collection/components/ur-radio-button/ur-radio-button.js +12 -8
- package/dist/collection/components/ur-radio-group/ur-radio-group.js +1 -1
- package/dist/collection/components/ur-read-mobile-top-app-bar/ur-read-mobile-top-app-bar.js +1 -1
- package/dist/collection/components/ur-read-rail/ur-read-rail.js +2 -2
- package/dist/collection/components/ur-read-rail-mobile/ur-read-rail-mobile.js +2 -2
- package/dist/collection/components/ur-read-top-app-bar/ur-read-top-app-bar.js +1 -1
- package/dist/collection/components/ur-segment-button/ur-segment-button.js +1 -1
- package/dist/collection/components/ur-select/ur-select.css +5 -2
- package/dist/collection/components/ur-select/ur-select.js +1 -1
- package/dist/collection/components/ur-snackbar/ur-snackbar.js +2 -2
- package/dist/collection/components/ur-stats/ur-stats.js +2 -2
- package/dist/collection/components/ur-stepper/ur-stepper.js +1 -1
- package/dist/collection/components/ur-subscription-card/ur-subscription-card.js +1 -1
- package/dist/collection/components/ur-subscription-tiers-carousel/ur-subscription-tiers-carousel.js +1 -1
- package/dist/collection/components/ur-switch/ur-switch.js +1 -1
- package/dist/collection/components/ur-tabs/ur-tabs.js +1 -1
- package/dist/collection/components/ur-thumbs-rating/ur-thumbs-rating.js +3 -3
- package/dist/collection/components/ur-time-ago/ur-time-ago.js +1 -1
- package/dist/collection/components/ur-top-app-bar/ur-top-app-bar.js +2 -2
- package/dist/collection/components/ur-user-carousel/ur-user-carousel.js +1 -1
- package/dist/collection/components/ur-user-page-profile/ur-user-page-profile.js +2 -2
- package/dist/collection/components/ur-user-partnership-application/ur-user-partnership-application.js +1 -1
- package/dist/collection/components/ur-user-profile/ur-user-profile.js +1 -1
- package/dist/collection/components/ur-user-profile-settings-form/ur-user-profile-settings-form.css +54 -0
- package/dist/collection/components/ur-user-profile-settings-form/ur-user-profile-settings-form.js +263 -2
- package/dist/collection/components/ur-user-profile-tabs/ur-user-profile-tabs.js +27 -1
- package/dist/collection/components/ur-work-overview/ur-work-overview.js +5 -5
- package/dist/collection/stories/CommentForm.stories.js +22 -0
- package/dist/collection/stories/PostCard.stories.js +770 -0
- package/dist/collection/stories/PostDetail.stories.js +406 -0
- package/dist/collection/stories/PostEditor.stories.js +416 -0
- package/dist/collection/stories/PostPrompt.stories.js +185 -0
- package/dist/collection/stories/UserProfileSettingsForm.stories.js +70 -0
- package/dist/components/{p-BKchntfo.js → p-03wkTPxQ.js} +1 -1
- package/dist/components/{p-Bfz4JsuD.js → p-2DKsUy-2.js} +0 -49
- package/dist/components/{p-Bx6fE2l3.js → p-BY4DFbqH.js} +4 -1
- package/dist/components/{p-D614DE4A.js → p-BprsjaxF.js} +1 -1
- package/dist/components/{p-DSQlUWyM.js → p-BxphUdOx.js} +1 -1
- package/dist/components/{p-m3l6rpTl.js → p-C8X80qyp.js} +1 -1
- package/dist/components/{p-C3v4NYCZ.js → p-C92dQzDo.js} +1 -1
- package/dist/components/p-CC8esrW-.js +52 -0
- package/dist/components/{p-DV782yr8.js → p-CFJcUF9w.js} +1 -1
- package/dist/components/{p-zT_m5cqn.js → p-CVMqpnJb.js} +1 -1
- package/dist/components/{p-DIsqN2af.js → p-CcsOJD5k.js} +3 -3
- package/dist/components/{p-viReDfYk.js → p-Ce3HFAVh.js} +1 -1
- package/dist/components/{p-DUoVib83.js → p-CfldtLQf.js} +13 -6
- package/dist/components/{p-KEnip_eJ.js → p-CiihVtnt.js} +2 -2
- package/dist/components/{p-hq0QnQ__.js → p-CvIyrJOF.js} +1 -1
- package/dist/components/{p-BZPQ9A0k.js → p-DE-Ebb0W.js} +1 -1
- package/dist/components/{p-CMaS5_FI.js → p-DIrqGiUJ.js} +2 -2
- package/dist/components/{p-CYZhNTeP.js → p-DNOMxgVq.js} +1 -1
- package/dist/components/{p-DvK12rWN.js → p-DQohMME6.js} +1 -1
- package/dist/components/{p-ByNX7rB1.js → p-DR_e7_h1.js} +6 -6
- package/dist/components/{p-DWw8j4-8.js → p-DmcTV8ow.js} +1 -1
- package/dist/components/p-E7oF2Ho9.js +533 -0
- package/dist/components/{p-Bpxw55nt.js → p-GadDdSTq.js} +5 -5
- package/dist/components/{p-C3xJtl8A.js → p-K79NbcgI.js} +6 -6
- package/dist/components/{p-DodTpF-h.js → p-YHtvjamV.js} +13 -9
- package/dist/components/{p-DQR9IkCh.js → p-Yub-kvNT.js} +2 -2
- package/dist/components/{p-CAPHCTJl.js → p-cEpNt5Cx.js} +1 -1
- package/dist/components/{p-DnPjaZVg.js → p-qe3zXShw.js} +1 -1
- package/dist/components/ur-ad-banner.js +3 -3
- package/dist/components/ur-author-page-profile.js +4 -4
- package/dist/components/ur-autosave-drawer.js +3 -3
- package/dist/components/ur-avatar.js +1 -1
- package/dist/components/ur-bottom-sheet.js +1 -1
- package/dist/components/ur-bravo.js +1 -1
- package/dist/components/ur-button-arrow-left.js +1 -1
- package/dist/components/ur-button-arrow-right.js +1 -1
- package/dist/components/ur-button-icon.js +1 -1
- package/dist/components/ur-button.js +1 -1
- package/dist/components/ur-chapter-item.js +4 -4
- package/dist/components/ur-checkbox-group.js +1 -1
- package/dist/components/ur-circular-progress.js +1 -1
- package/dist/components/ur-comment-form.js +11 -5
- package/dist/components/ur-comment.js +2 -2
- package/dist/components/ur-competition-carousel.js +5 -5
- package/dist/components/ur-competition-novl-card.js +1 -1
- package/dist/components/ur-competition-overview.js +10 -9
- package/dist/components/ur-competition.js +1 -1
- package/dist/components/ur-data-list.js +2 -2
- package/dist/components/ur-dialog.js +3 -3
- package/dist/components/ur-dropdown.js +1 -1
- package/dist/components/ur-editor.js +3 -3
- package/dist/components/ur-feedback.js +3 -3
- package/dist/components/ur-form.js +1 -1
- package/dist/components/ur-grid-col.js +1 -1
- package/dist/components/ur-grid-row.js +1 -1
- package/dist/components/ur-grid.js +3 -3
- package/dist/components/ur-hero.js +5 -5
- package/dist/components/ur-icon.js +1 -1
- package/dist/components/ur-image-uploader.js +1 -1
- package/dist/components/ur-library-shelf-creator.js +3 -3
- package/dist/components/ur-library-shelf-selector.js +4 -4
- package/dist/components/ur-linear-progress.js +1 -1
- package/dist/components/ur-list-subheader.js +1 -1
- package/dist/components/ur-list.js +1 -1
- package/dist/components/ur-loader.js +1 -1
- package/dist/components/ur-locale-filter-button.js +2 -2
- package/dist/components/ur-locale-filter-panel.js +3 -3
- package/dist/components/ur-logo.js +1 -1
- package/dist/components/ur-main-desktop-top-app-bar.js +5 -5
- package/dist/components/ur-main-menu.js +7 -7
- package/dist/components/ur-menu-item.js +2 -2
- package/dist/components/ur-menu-profile.js +1 -1
- package/dist/components/ur-navigation-bar.js +1 -1
- package/dist/components/ur-navigation-drawer-global.js +1 -1
- package/dist/components/ur-navigation-drawer.js +1 -1
- package/dist/components/ur-notification-tabs.js +3 -2
- package/dist/components/ur-notification.js +4 -4
- package/dist/components/ur-novl-carousel.js +5 -5
- package/dist/components/ur-novl-overview-info.js +11 -11
- package/dist/components/ur-novl-summary.js +6 -6
- package/dist/components/ur-novl.js +1 -1
- package/dist/components/ur-page-carousel.js +5 -5
- package/dist/components/ur-page-list.js +1 -1
- package/dist/components/ur-page-partnership-application.js +3 -3
- package/dist/components/ur-page-profile-tabs.js +10 -2
- package/dist/components/ur-page-profile.js +6 -6
- package/dist/components/ur-page-shared-list-tabs.js +3 -2
- package/dist/components/ur-page.js +1 -1
- package/dist/components/ur-player.js +5 -5
- package/dist/components/ur-post-card.d.ts +11 -0
- package/dist/components/ur-post-card.js +371 -0
- package/dist/components/ur-post-detail.d.ts +11 -0
- package/dist/components/ur-post-detail.js +343 -0
- package/dist/components/ur-post-editor.d.ts +11 -0
- package/dist/components/ur-post-editor.js +458 -0
- package/dist/components/ur-post-prompt.d.ts +11 -0
- package/dist/components/ur-post-prompt.js +103 -0
- package/dist/components/ur-pricing-card.js +1 -1
- package/dist/components/ur-profile-card.js +1 -1
- package/dist/components/ur-profile-completion-card.js +1 -1
- package/dist/components/ur-profile-completion-fab.js +6 -6
- package/dist/components/ur-profile.js +3 -3
- package/dist/components/ur-radio-button.js +1 -1
- package/dist/components/ur-radio-group.js +1 -1
- package/dist/components/ur-read-mobile-top-app-bar.js +2 -2
- package/dist/components/ur-read-rail-mobile.js +4 -4
- package/dist/components/ur-read-rail.js +4 -4
- package/dist/components/ur-read-top-app-bar.js +2 -2
- package/dist/components/ur-reader.js +2 -2
- package/dist/components/ur-segment-button.js +1 -1
- package/dist/components/ur-select.js +1 -531
- package/dist/components/ur-shelf-card.js +1 -1
- package/dist/components/ur-snackbar.js +2 -2
- package/dist/components/ur-stats.js +1 -1
- package/dist/components/ur-stepper.js +2 -2
- package/dist/components/ur-subscription-card.js +2 -2
- package/dist/components/ur-subscription-tier-editor.js +1 -1
- package/dist/components/ur-subscription-tiers-carousel.js +5 -5
- package/dist/components/ur-switch.js +1 -1
- package/dist/components/ur-tabs.js +3 -2
- package/dist/components/ur-thumbs-rating.js +4 -4
- package/dist/components/ur-time-ago.js +1 -1
- package/dist/components/ur-top-app-bar.js +3 -3
- package/dist/components/ur-user-carousel.js +5 -5
- package/dist/components/ur-user-page-profile.js +7 -7
- package/dist/components/ur-user-partnership-application.js +4 -4
- package/dist/components/ur-user-profile-settings-form.js +41 -6
- package/dist/components/ur-user-profile-tabs.js +10 -2
- package/dist/components/ur-user-profile.js +1 -1
- package/dist/components/ur-user.js +1 -1
- package/dist/components/ur-work-overview.js +9 -9
- package/dist/components/ur-work.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/radio-B2MeJZg9.js +168 -0
- package/dist/esm/{tab-panel-YMLschUK.js → tab-JcwwlhqJ.js} +0 -49
- package/dist/esm/tab-panel-mttybgVa.js +52 -0
- package/dist/esm/ur-ad-banner.entry.js +3 -3
- package/dist/esm/ur-author-page-profile.entry.js +3 -3
- package/dist/esm/ur-autosave-drawer.entry.js +1 -1
- package/dist/esm/{ur-avatar-n6L9PEnR.js → ur-avatar-DXF3lVCQ.js} +13 -6
- package/dist/esm/ur-avatar_3.entry.js +1 -1
- package/dist/esm/ur-bottom-sheet.entry.js +1 -1
- package/dist/esm/ur-button-arrow-left_2.entry.js +2 -2
- package/dist/esm/ur-button-icon.entry.js +1 -1
- package/dist/esm/ur-button.entry.js +3 -1
- package/dist/esm/ur-chapter-item.entry.js +1 -1
- package/dist/esm/ur-checkbox-group.entry.js +1 -1
- package/dist/esm/ur-circular-progress.entry.js +1 -1
- package/dist/esm/ur-comment-form.entry.js +5 -2
- package/dist/esm/ur-competition-carousel.entry.js +1 -1
- package/dist/esm/ur-competition-novl-card_2.entry.js +8 -8
- package/dist/esm/ur-competition-overview.entry.js +3 -2
- package/dist/esm/ur-competition.entry.js +5 -5
- package/dist/esm/ur-dialog.entry.js +3 -3
- package/dist/esm/ur-dropdown_2.entry.js +1 -1
- package/dist/esm/ur-editor.entry.js +2 -2
- package/dist/esm/ur-form.entry.js +1 -1
- package/dist/esm/ur-grid-col.entry.js +1 -1
- package/dist/esm/ur-grid-row.entry.js +1 -1
- package/dist/esm/ur-grid.entry.js +2 -2
- package/dist/esm/ur-hero.entry.js +4 -4
- package/dist/esm/ur-icon.entry.js +1 -1
- package/dist/esm/ur-image-uploader.entry.js +1 -1
- package/dist/esm/ur-library-shelf-creator.entry.js +1 -1
- package/dist/esm/ur-library-shelf-selector.entry.js +1 -1
- package/dist/esm/ur-linear-progress.entry.js +2 -2
- package/dist/esm/ur-list-subheader.entry.js +1 -1
- package/dist/esm/ur-list.entry.js +1 -1
- package/dist/esm/ur-loader.entry.js +1 -1
- package/dist/esm/ur-locale-filter-button.entry.js +2 -2
- package/dist/esm/ur-locale-filter-panel.entry.js +2 -2
- package/dist/esm/ur-logo.entry.js +1 -1
- package/dist/esm/ur-main-desktop-top-app-bar.entry.js +2 -2
- package/dist/esm/ur-main-menu.entry.js +1 -1
- package/dist/esm/ur-menu-item.entry.js +2 -2
- package/dist/esm/ur-menu-profile.entry.js +1 -1
- package/dist/esm/ur-navigation-bar.entry.js +1 -1
- package/dist/esm/ur-navigation-drawer-global.entry.js +1 -1
- package/dist/esm/ur-navigation-drawer.entry.js +1 -1
- package/dist/esm/ur-notification-tabs.entry.js +3 -2
- package/dist/esm/ur-novl-carousel.entry.js +1 -1
- package/dist/esm/ur-novl-overview-info.entry.js +5 -5
- package/dist/esm/ur-novl-summary.entry.js +4 -4
- package/dist/esm/ur-page-carousel.entry.js +1 -1
- package/dist/esm/ur-page-profile-tabs.entry.js +9 -2
- package/dist/esm/ur-page-profile.entry.js +3 -3
- package/dist/esm/ur-page-shared-list-tabs.entry.js +3 -2
- package/dist/esm/ur-player.entry.js +3 -3
- package/dist/esm/ur-post-card.entry.js +309 -0
- package/dist/esm/ur-post-detail.entry.js +284 -0
- package/dist/esm/ur-post-editor.entry.js +386 -0
- package/dist/esm/ur-post-prompt.entry.js +53 -0
- package/dist/esm/ur-profile-card.entry.js +2 -2
- package/dist/esm/ur-profile.entry.js +3 -3
- package/dist/esm/ur-radio-button.entry.js +55 -0
- package/dist/esm/{ur-radio-button_2.entry.js → ur-radio-group.entry.js} +19 -208
- package/dist/esm/ur-read-mobile-top-app-bar.entry.js +1 -1
- package/dist/esm/ur-read-rail-mobile.entry.js +2 -2
- package/dist/esm/ur-read-rail.entry.js +2 -2
- package/dist/esm/ur-read-top-app-bar.entry.js +1 -1
- package/dist/esm/ur-segment-button.entry.js +1 -1
- package/dist/esm/ur-select.entry.js +2 -2
- package/dist/esm/ur-snackbar.entry.js +2 -2
- package/dist/esm/ur-stepper.entry.js +1 -1
- package/dist/esm/ur-subscription-card.entry.js +1 -1
- package/dist/esm/ur-subscription-tiers-carousel.entry.js +1 -1
- package/dist/esm/ur-switch.entry.js +1 -1
- package/dist/esm/ur-tabs.entry.js +3 -2
- package/dist/esm/ur-thumbs-rating.entry.js +3 -3
- package/dist/esm/ur-time-ago.entry.js +1 -1
- package/dist/esm/ur-top-app-bar.entry.js +2 -2
- package/dist/esm/ur-user-carousel.entry.js +1 -1
- package/dist/esm/ur-user-page-profile.entry.js +3 -3
- package/dist/esm/ur-user-partnership-application.entry.js +1 -1
- package/dist/esm/ur-user-profile-settings-form.entry.js +28 -3
- package/dist/esm/ur-user-profile-tabs.entry.js +9 -2
- package/dist/esm/ur-user-profile.entry.js +1 -1
- package/dist/esm/ur-work-overview.entry.js +6 -6
- package/dist/esm/urnovl-web-components.js +1 -1
- package/dist/types/components/ur-avatar/ur-avatar.d.ts +1 -0
- package/dist/types/components/ur-button/ur-button.d.ts +1 -0
- package/dist/types/components/ur-comment-form/ur-comment-form.d.ts +3 -0
- package/dist/types/components/ur-page-profile-tabs/ur-page-profile-tabs.d.ts +1 -0
- package/dist/types/components/ur-post-card/ur-post-card.d.ts +76 -0
- package/dist/types/components/ur-post-card/ur-post-card.types.d.ts +46 -0
- package/dist/types/components/ur-post-detail/ur-post-detail.d.ts +72 -0
- package/dist/types/components/ur-post-detail/ur-post-detail.types.d.ts +40 -0
- package/dist/types/components/ur-post-editor/ur-post-editor.d.ts +158 -0
- package/dist/types/components/ur-post-prompt/ur-post-prompt.d.ts +22 -0
- package/dist/types/components/ur-radio-button/ur-radio-button.d.ts +2 -1
- package/dist/types/components/ur-user-profile-settings-form/ur-user-profile-settings-form.d.ts +20 -0
- package/dist/types/components/ur-user-profile-tabs/ur-user-profile-tabs.d.ts +1 -0
- package/dist/types/components.d.ts +4832 -3682
- package/dist/types/stories/CommentForm.stories.d.ts +30 -0
- package/dist/types/stories/PostCard.stories.d.ts +578 -0
- package/dist/types/stories/PostDetail.stories.d.ts +350 -0
- package/dist/types/stories/PostEditor.stories.d.ts +417 -0
- package/dist/types/stories/PostPrompt.stories.d.ts +12 -0
- package/dist/types/stories/UserProfileSettingsForm.stories.d.ts +33 -0
- package/dist/urnovl-web-components/p-01757565.entry.js +1 -1
- package/dist/urnovl-web-components/{p-65bec9fc.entry.js → p-06bbc9fe.entry.js} +2 -2
- package/{www/build/p-d56433f6.entry.js → dist/urnovl-web-components/p-0fc280ea.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-ccf5473e.entry.js → p-11473976.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-2e35d885.entry.js → p-1491f43a.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-04e00f30.entry.js → p-16250027.entry.js} +1 -1
- package/{www/build/p-2462786c.entry.js → dist/urnovl-web-components/p-178828b9.entry.js} +1 -1
- package/{www/build/p-981382ab.entry.js → dist/urnovl-web-components/p-1afbea38.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-4aa0540c.entry.js → p-1f152f8a.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-f4681bcd.entry.js → p-1f60a6be.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-a712a3df.entry.js → p-240289e9.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-624543fe.entry.js → p-2444c265.entry.js} +1 -1
- package/{www/build/p-baef18c0.entry.js → dist/urnovl-web-components/p-2472848c.entry.js} +1 -1
- package/{www/build/p-56a033f3.entry.js → dist/urnovl-web-components/p-257815b1.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-be46aea1.entry.js → p-283a26c0.entry.js} +1 -1
- package/dist/urnovl-web-components/p-30980b12.entry.js +1 -0
- package/{www/build/p-d8a58171.entry.js → dist/urnovl-web-components/p-30ef8fce.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-abc5b014.entry.js → p-343ad683.entry.js} +1 -1
- package/{www/build/p-76fd07ad.entry.js → dist/urnovl-web-components/p-343d4de6.entry.js} +1 -1
- package/{www/build/p-4bd2dfab.entry.js → dist/urnovl-web-components/p-346853b2.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-c39f0b47.entry.js → p-35d81850.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-1c69e7f0.entry.js → p-37c2f592.entry.js} +1 -1
- package/{www/build/p-d8e1e17f.entry.js → dist/urnovl-web-components/p-38c450cb.entry.js} +1 -1
- package/dist/urnovl-web-components/p-3a956b23.entry.js +1 -0
- package/dist/urnovl-web-components/{p-da9fd305.entry.js → p-3d11160e.entry.js} +1 -1
- package/dist/urnovl-web-components/p-403f60d4.entry.js +1 -0
- package/{www/build/p-b086c8e2.entry.js → dist/urnovl-web-components/p-4118c49f.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-88bac6fe.entry.js → p-4420499c.entry.js} +1 -1
- package/dist/urnovl-web-components/p-44c8ac2e.entry.js +1 -0
- package/dist/urnovl-web-components/{p-f0b2862a.entry.js → p-45126fa8.entry.js} +1 -1
- package/{www/build/p-f82dd515.entry.js → dist/urnovl-web-components/p-4bd4960f.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-4d1821af.entry.js → p-5c8253d7.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-5c9578ac.entry.js → p-5f0ca3b4.entry.js} +1 -1
- package/dist/urnovl-web-components/p-60481eb4.entry.js +1 -0
- package/{www/build/p-7e1ac458.entry.js → dist/urnovl-web-components/p-6ff378f1.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-6ba85c1c.entry.js → p-71de6e85.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-f1b1525f.entry.js → p-72d505c7.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-ee1599b6.entry.js → p-72f4fb72.entry.js} +1 -1
- package/{www/build/p-c80dfc35.entry.js → dist/urnovl-web-components/p-74534238.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-8076962b.entry.js → p-75483926.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-3586bdaf.entry.js → p-7f8a77e0.entry.js} +1 -1
- package/dist/urnovl-web-components/p-852ff3f7.entry.js +1 -0
- package/{www/build/p-5566b17c.entry.js → dist/urnovl-web-components/p-88e526fb.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-68391a31.entry.js → p-89ac2a2c.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-593c5f5d.entry.js → p-8c7af8f6.entry.js} +1 -1
- package/dist/urnovl-web-components/p-8e3404f8.entry.js +1 -0
- package/dist/urnovl-web-components/p-910ae64b.entry.js +1 -0
- package/dist/urnovl-web-components/{p-0cf7981e.entry.js → p-96018122.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-CWeg8sEj.js → p-BnHMCPA5.js} +1 -1
- package/dist/urnovl-web-components/p-FXZebMHX.js +1 -0
- package/dist/urnovl-web-components/p-YvOYo-vb.js +1 -0
- package/{www/build/p-6d29e790.entry.js → dist/urnovl-web-components/p-a02a44c5.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-1e41d132.entry.js → p-a07f78d9.entry.js} +1 -1
- package/dist/urnovl-web-components/p-aa9b5fb1.entry.js +1 -0
- package/dist/urnovl-web-components/p-ac784ceb.entry.js +1 -1
- package/dist/urnovl-web-components/{p-bf80387d.entry.js → p-b1da8f4f.entry.js} +1 -1
- package/dist/urnovl-web-components/p-b629cb93.entry.js +1 -0
- package/dist/urnovl-web-components/{p-67316cbc.entry.js → p-b6778ee0.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-700b9b7e.entry.js → p-bb369731.entry.js} +1 -1
- package/dist/urnovl-web-components/p-bbf6cece.entry.js +1 -0
- package/dist/urnovl-web-components/{p-bb83fdf6.entry.js → p-bbf6f750.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-8f055e80.entry.js → p-c057f347.entry.js} +1 -1
- package/{www/build/p-bb145920.entry.js → dist/urnovl-web-components/p-c33254fb.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-28a77b70.entry.js → p-c7666b66.entry.js} +1 -1
- package/{www/build/p-c21abd37.entry.js → dist/urnovl-web-components/p-c7983e8a.entry.js} +1 -1
- package/{www/build/p-82997757.entry.js → dist/urnovl-web-components/p-c873abca.entry.js} +1 -1
- package/{www/build/p-86f826f4.entry.js → dist/urnovl-web-components/p-c8818032.entry.js} +1 -1
- package/{www/build/p-c14f3e7b.entry.js → dist/urnovl-web-components/p-c8f68cfe.entry.js} +1 -1
- package/dist/urnovl-web-components/p-caaac073.entry.js +1 -0
- package/dist/urnovl-web-components/p-cb516edc.entry.js +1 -0
- package/dist/urnovl-web-components/p-cb79d059.entry.js +1 -1
- package/dist/urnovl-web-components/{p-9e19f4e8.entry.js → p-cd1dcff4.entry.js} +1 -1
- package/dist/urnovl-web-components/p-ce268bc2.entry.js +1 -0
- package/dist/urnovl-web-components/p-cf90d565.entry.js +1 -0
- package/{www/build/p-f044459d.entry.js → dist/urnovl-web-components/p-d210bed2.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-b50e8cad.entry.js → p-d348963a.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-e659d21c.entry.js → p-d4da4e68.entry.js} +1 -1
- package/dist/urnovl-web-components/p-d6e78266.entry.js +1 -0
- package/{www/build/p-693b5b1e.entry.js → dist/urnovl-web-components/p-db9079e2.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-7f399549.entry.js → p-dfa6c13e.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-cfedfdac.entry.js → p-e2518029.entry.js} +1 -1
- package/{www/build/p-7d403b3e.entry.js → dist/urnovl-web-components/p-e3982059.entry.js} +1 -1
- package/{www/build/p-d02abe61.entry.js → dist/urnovl-web-components/p-e3b98dfd.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-0588ba08.entry.js → p-e659c8bb.entry.js} +1 -1
- package/dist/urnovl-web-components/p-ec006f46.entry.js +1 -1
- package/dist/urnovl-web-components/{p-dbde8c6e.entry.js → p-ed59b299.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-d11cd455.entry.js → p-f16c01bf.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-73fca060.entry.js → p-fb6cbf1d.entry.js} +1 -1
- package/dist/urnovl-web-components/p-pLhWehn7.js +1 -0
- package/dist/urnovl-web-components/urnovl-web-components.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/p-01757565.entry.js +1 -1
- package/www/build/p-018dfa52.js +1 -0
- package/www/build/{p-65bec9fc.entry.js → p-06bbc9fe.entry.js} +2 -2
- package/{dist/urnovl-web-components/p-d56433f6.entry.js → www/build/p-0fc280ea.entry.js} +1 -1
- package/www/build/{p-ccf5473e.entry.js → p-11473976.entry.js} +1 -1
- package/www/build/{p-2e35d885.entry.js → p-1491f43a.entry.js} +1 -1
- package/www/build/{p-04e00f30.entry.js → p-16250027.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-2462786c.entry.js → www/build/p-178828b9.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-981382ab.entry.js → www/build/p-1afbea38.entry.js} +1 -1
- package/www/build/{p-4aa0540c.entry.js → p-1f152f8a.entry.js} +1 -1
- package/www/build/{p-f4681bcd.entry.js → p-1f60a6be.entry.js} +1 -1
- package/www/build/{p-a712a3df.entry.js → p-240289e9.entry.js} +1 -1
- package/www/build/{p-624543fe.entry.js → p-2444c265.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-baef18c0.entry.js → www/build/p-2472848c.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-56a033f3.entry.js → www/build/p-257815b1.entry.js} +1 -1
- package/www/build/{p-be46aea1.entry.js → p-283a26c0.entry.js} +1 -1
- package/www/build/p-30980b12.entry.js +1 -0
- package/{dist/urnovl-web-components/p-d8a58171.entry.js → www/build/p-30ef8fce.entry.js} +1 -1
- package/www/build/{p-abc5b014.entry.js → p-343ad683.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-76fd07ad.entry.js → www/build/p-343d4de6.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-4bd2dfab.entry.js → www/build/p-346853b2.entry.js} +1 -1
- package/www/build/{p-c39f0b47.entry.js → p-35d81850.entry.js} +1 -1
- package/www/build/{p-1c69e7f0.entry.js → p-37c2f592.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-d8e1e17f.entry.js → www/build/p-38c450cb.entry.js} +1 -1
- package/www/build/p-3a956b23.entry.js +1 -0
- package/www/build/{p-da9fd305.entry.js → p-3d11160e.entry.js} +1 -1
- package/www/build/p-403f60d4.entry.js +1 -0
- package/{dist/urnovl-web-components/p-b086c8e2.entry.js → www/build/p-4118c49f.entry.js} +1 -1
- package/www/build/{p-88bac6fe.entry.js → p-4420499c.entry.js} +1 -1
- package/www/build/p-44c8ac2e.entry.js +1 -0
- package/www/build/{p-f0b2862a.entry.js → p-45126fa8.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-f82dd515.entry.js → www/build/p-4bd4960f.entry.js} +1 -1
- package/www/build/{p-4d1821af.entry.js → p-5c8253d7.entry.js} +1 -1
- package/www/build/{p-5c9578ac.entry.js → p-5f0ca3b4.entry.js} +1 -1
- package/www/build/p-60481eb4.entry.js +1 -0
- package/{dist/urnovl-web-components/p-7e1ac458.entry.js → www/build/p-6ff378f1.entry.js} +1 -1
- package/www/build/{p-6ba85c1c.entry.js → p-71de6e85.entry.js} +1 -1
- package/www/build/{p-f1b1525f.entry.js → p-72d505c7.entry.js} +1 -1
- package/www/build/{p-ee1599b6.entry.js → p-72f4fb72.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-c80dfc35.entry.js → www/build/p-74534238.entry.js} +1 -1
- package/www/build/{p-8076962b.entry.js → p-75483926.entry.js} +1 -1
- package/www/build/{p-3586bdaf.entry.js → p-7f8a77e0.entry.js} +1 -1
- package/www/build/p-852ff3f7.entry.js +1 -0
- package/{dist/urnovl-web-components/p-5566b17c.entry.js → www/build/p-88e526fb.entry.js} +1 -1
- package/www/build/{p-68391a31.entry.js → p-89ac2a2c.entry.js} +1 -1
- package/www/build/{p-593c5f5d.entry.js → p-8c7af8f6.entry.js} +1 -1
- package/www/build/p-8e3404f8.entry.js +1 -0
- package/www/build/p-910ae64b.entry.js +1 -0
- package/www/build/{p-0cf7981e.entry.js → p-96018122.entry.js} +1 -1
- package/www/build/{p-CWeg8sEj.js → p-BnHMCPA5.js} +1 -1
- package/www/build/p-FXZebMHX.js +1 -0
- package/www/build/p-YvOYo-vb.js +1 -0
- package/{dist/urnovl-web-components/p-6d29e790.entry.js → www/build/p-a02a44c5.entry.js} +1 -1
- package/www/build/{p-1e41d132.entry.js → p-a07f78d9.entry.js} +1 -1
- package/www/build/p-aa9b5fb1.entry.js +1 -0
- package/www/build/p-ac784ceb.entry.js +1 -1
- package/www/build/{p-bf80387d.entry.js → p-b1da8f4f.entry.js} +1 -1
- package/www/build/p-b629cb93.entry.js +1 -0
- package/www/build/{p-67316cbc.entry.js → p-b6778ee0.entry.js} +1 -1
- package/www/build/{p-700b9b7e.entry.js → p-bb369731.entry.js} +1 -1
- package/www/build/p-bbf6cece.entry.js +1 -0
- package/www/build/{p-bb83fdf6.entry.js → p-bbf6f750.entry.js} +1 -1
- package/www/build/{p-8f055e80.entry.js → p-c057f347.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-bb145920.entry.js → www/build/p-c33254fb.entry.js} +1 -1
- package/www/build/{p-28a77b70.entry.js → p-c7666b66.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-c21abd37.entry.js → www/build/p-c7983e8a.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-82997757.entry.js → www/build/p-c873abca.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-86f826f4.entry.js → www/build/p-c8818032.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-c14f3e7b.entry.js → www/build/p-c8f68cfe.entry.js} +1 -1
- package/www/build/p-caaac073.entry.js +1 -0
- package/www/build/p-cb516edc.entry.js +1 -0
- package/www/build/p-cb79d059.entry.js +1 -1
- package/www/build/{p-9e19f4e8.entry.js → p-cd1dcff4.entry.js} +1 -1
- package/www/build/p-ce268bc2.entry.js +1 -0
- package/www/build/p-cf90d565.entry.js +1 -0
- package/{dist/urnovl-web-components/p-f044459d.entry.js → www/build/p-d210bed2.entry.js} +1 -1
- package/www/build/{p-b50e8cad.entry.js → p-d348963a.entry.js} +1 -1
- package/www/build/{p-e659d21c.entry.js → p-d4da4e68.entry.js} +1 -1
- package/www/build/p-d6e78266.entry.js +1 -0
- package/{dist/urnovl-web-components/p-693b5b1e.entry.js → www/build/p-db9079e2.entry.js} +1 -1
- package/www/build/{p-7f399549.entry.js → p-dfa6c13e.entry.js} +1 -1
- package/www/build/{p-cfedfdac.entry.js → p-e2518029.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-7d403b3e.entry.js → www/build/p-e3982059.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-d02abe61.entry.js → www/build/p-e3b98dfd.entry.js} +1 -1
- package/www/build/{p-0588ba08.entry.js → p-e659c8bb.entry.js} +1 -1
- package/www/build/p-ec006f46.entry.js +1 -1
- package/www/build/{p-dbde8c6e.entry.js → p-ed59b299.entry.js} +1 -1
- package/www/build/{p-d11cd455.entry.js → p-f16c01bf.entry.js} +1 -1
- package/www/build/{p-73fca060.entry.js → p-fb6cbf1d.entry.js} +1 -1
- package/www/build/p-pLhWehn7.js +1 -0
- package/www/build/urnovl-web-components.esm.js +1 -1
- package/dist/urnovl-web-components/p-2d6036d2.entry.js +0 -1
- package/dist/urnovl-web-components/p-49a4a16e.entry.js +0 -1
- package/dist/urnovl-web-components/p-5f8d9c20.entry.js +0 -1
- package/dist/urnovl-web-components/p-6f5e2c16.entry.js +0 -1
- package/dist/urnovl-web-components/p-95669140.entry.js +0 -1
- package/dist/urnovl-web-components/p-DieZm0eP.js +0 -1
- package/dist/urnovl-web-components/p-a66d6eed.entry.js +0 -1
- package/dist/urnovl-web-components/p-c35bfee6.entry.js +0 -1
- package/dist/urnovl-web-components/p-de47e53f.entry.js +0 -1
- package/dist/urnovl-web-components/p-e5fbc770.entry.js +0 -1
- package/dist/urnovl-web-components/p-f1b64b86.entry.js +0 -1
- package/dist/urnovl-web-components/p-fc668d06.entry.js +0 -1
- package/www/build/p-2d6036d2.entry.js +0 -1
- package/www/build/p-49a4a16e.entry.js +0 -1
- package/www/build/p-5f8d9c20.entry.js +0 -1
- package/www/build/p-6f5e2c16.entry.js +0 -1
- package/www/build/p-95669140.entry.js +0 -1
- package/www/build/p-9e272440.js +0 -1
- package/www/build/p-DieZm0eP.js +0 -1
- package/www/build/p-a66d6eed.entry.js +0 -1
- package/www/build/p-c35bfee6.entry.js +0 -1
- package/www/build/p-de47e53f.entry.js +0 -1
- package/www/build/p-e5fbc770.entry.js +0 -1
- package/www/build/p-f1b64b86.entry.js +0 -1
- package/www/build/p-fc668d06.entry.js +0 -1
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-DvddpEp7.js';
|
|
2
|
+
import './index-DZdO-mMi.js';
|
|
3
|
+
import './tab-JcwwlhqJ.js';
|
|
4
|
+
import './ur-text-field.entry.js';
|
|
5
|
+
import './ur-checkbox.entry.js';
|
|
6
|
+
import './ur-radio-button.entry.js';
|
|
7
|
+
import './ur-button.entry.js';
|
|
8
|
+
import './ur-button-icon.entry.js';
|
|
9
|
+
import './component-style-zh2SzAzp.js';
|
|
10
|
+
import './directive-Cdjto-xB.js';
|
|
11
|
+
import './extend-CivLoY3b.js';
|
|
12
|
+
import './get-Bo_xHyoL.js';
|
|
13
|
+
import './has-slot-BUAeIuVe.js';
|
|
14
|
+
import './state-VNaKC22C.js';
|
|
15
|
+
import './query-assigned-elements-DmwpJ3Xb.js';
|
|
16
|
+
import './class-map-DhnCnSWX.js';
|
|
17
|
+
import './ref-Bz3X8sIV.js';
|
|
18
|
+
import './children-C1xUAMVf.js';
|
|
19
|
+
import './attr-x5F1K2Wv.js';
|
|
20
|
+
import './watch-BvhH6khE.js';
|
|
21
|
+
import './observeResize-BEMYuoM3.js';
|
|
22
|
+
import './uniqueId-DOqf3A_i.js';
|
|
23
|
+
import './when-DEJm_QN9.js';
|
|
24
|
+
import './template-Dv4lqTb2.js';
|
|
25
|
+
import './ripple-mixin-B-KYfpV5.js';
|
|
26
|
+
import './appendTo-Bs3lgi94.js';
|
|
27
|
+
import './index-CtVDdPWE.js';
|
|
28
|
+
import './if-defined-BYHxg-DB.js';
|
|
29
|
+
import './live-DkRywQxp.js';
|
|
30
|
+
import './localize-CHPkG2WV.js';
|
|
31
|
+
import './form-BgKWWIji.js';
|
|
32
|
+
import './default-value-KfNy2OuL.js';
|
|
33
|
+
import './svg-tag-DL9gwcZV.js';
|
|
34
|
+
import './index-tNPRlW0K.js';
|
|
35
|
+
import './button-base-Ch4mNZf9.js';
|
|
36
|
+
import './anchor-BI6JNVb4.js';
|
|
37
|
+
import './index-Co79ZtG7.js';
|
|
38
|
+
import './index-R3LaM-xB.js';
|
|
39
|
+
import './radio-B2MeJZg9.js';
|
|
40
|
+
import './index-hBNOs3uJ.js';
|
|
41
|
+
|
|
42
|
+
const urPostEditorCss = ":host{display:block}:host .editor-container{display:flex;flex-direction:column;gap:1.5rem;width:100%;max-width:550px}:host .tabs-wrapper{margin-bottom:0.5rem}:host .tabs-wrapper mdui-tab{font-size:14px}:host .tabs-wrapper.edit-mode mdui-tab:not([active]){display:none}:host .tabs-wrapper.edit-mode mdui-tab[active]{pointer-events:none}:host .tab-content{display:flex;flex-direction:column;gap:1.5rem}:host .form-section{display:flex;flex-direction:column;gap:0.5rem}:host .section-label{font-size:14px;font-weight:600;line-height:20px;letter-spacing:0.1px;color:rgb(var(--mdui-color-on-surface));margin-bottom:0.25rem}:host .media-upload-area{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.75rem;padding:2.5rem 1rem;border:2px dashed rgba(var(--mdui-color-outline), 0.5);border-radius:12px;cursor:pointer;transition:all 0.2s ease;background:rgba(var(--mdui-color-surface-variant), 0.2)}:host .media-upload-area:hover{border-color:rgb(var(--mdui-color-primary));background:rgba(var(--mdui-color-primary), 0.05)}:host .media-upload-area mdui-icon{font-size:48px;color:rgb(var(--mdui-color-on-surface-variant));opacity:0.6}:host .media-upload-text{font-size:14px;font-weight:500;color:rgb(var(--mdui-color-on-surface))}:host .media-upload-hint{font-size:12px;color:rgb(var(--mdui-color-on-surface-variant))}:host .media-preview-grid{display:grid;grid-template-columns:repeat(2, 1fr);gap:0.5rem}:host .media-preview-item{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:rgba(var(--mdui-color-surface-variant), 0.3)}:host .media-preview-item img{width:100%;height:100%;object-fit:cover}:host .media-preview-video{position:relative;width:100%;height:100%}:host .media-preview-video img{width:100%;height:100%;object-fit:cover}:host .media-preview-video .video-indicator{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:white;text-shadow:0 2px 4px rgba(0, 0, 0, 0.3)}:host .media-preview-video .video-indicator mdui-icon{font-size:40px}:host .media-remove-btn{position:absolute;top:4px;right:4px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:50%;background:rgba(0, 0, 0, 0.6);color:white;cursor:pointer;transition:background-color 0.2s}:host .media-remove-btn:hover{background:rgba(var(--mdui-color-error), 0.9)}:host .media-remove-btn mdui-icon{font-size:18px}:host .poll-options{display:flex;flex-direction:column;gap:0.5rem}:host .poll-options-list{display:flex;flex-direction:column;gap:0.75rem}:host .poll-option-row{display:flex;align-items:flex-start;gap:0.5rem}:host .poll-option-row ur-text-field{flex:1}:host .poll-option-row .remove-option-btn{margin-top:8px;flex-shrink:0}:host .add-option-btn{display:inline-flex;align-items:center;justify-content:flex-start;gap:0.25rem;padding:0.5rem 0;border:none;background:transparent;cursor:pointer;font-size:14px;font-weight:500;color:rgb(var(--mdui-color-primary));transition:opacity 0.2s}:host .add-option-btn:hover{opacity:0.8}:host .add-option-btn mdui-icon{font-size:20px}:host .checkbox-section{padding:0}:host .checkbox-content{display:flex;flex-direction:column;gap:0.125rem}:host .checkbox-label{font-size:14px;font-weight:500;line-height:20px;color:rgb(var(--mdui-color-on-surface))}:host .checkbox-hint{font-size:12px;line-height:16px;color:rgb(var(--mdui-color-on-surface-variant))}:host .audience-options{display:flex;flex-direction:column;gap:0.5rem}:host .audience-option{display:flex;align-items:center;gap:0.75rem;padding:0.75rem 1rem;background:rgba(var(--mdui-color-surface-variant), 0.3);border:2px solid transparent;border-radius:8px;cursor:pointer;transition:all 0.2s ease;text-align:left}:host .audience-option:hover{background:rgba(var(--mdui-color-surface-variant), 0.5)}:host .audience-option.selected{background:rgba(var(--mdui-color-primary), 0.1);border-color:rgb(var(--mdui-color-primary))}:host .audience-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:rgba(var(--mdui-color-on-surface), 0.08);color:rgb(var(--mdui-color-on-surface-variant));flex-shrink:0;transition:all 0.2s ease}:host .audience-option.selected .audience-icon{background:rgb(var(--mdui-color-primary));color:rgb(var(--mdui-color-on-primary))}:host .audience-icon mdui-icon{font-size:18px}:host .audience-text{display:flex;flex-direction:column;gap:0.125rem;flex:1}:host .audience-label{font-size:14px;font-weight:500;line-height:20px;color:rgb(var(--mdui-color-on-surface))}:host .audience-hint{font-size:12px;line-height:16px;color:rgb(var(--mdui-color-on-surface-variant))}:host .tier-selector{margin-top:-0.5rem;padding-left:1rem;border-left:3px solid rgba(var(--mdui-color-primary), 0.3)}:host .tier-mode-options{display:flex;flex-direction:column;gap:0.25rem}:host .tier-mode-content{display:flex;flex-direction:column;gap:0.125rem}:host .tier-mode-label{font-size:14px;font-weight:500;line-height:20px;color:rgb(var(--mdui-color-on-surface))}:host .tier-mode-hint{font-size:12px;line-height:16px;color:rgb(var(--mdui-color-on-surface-variant))}:host .tier-list{display:flex;flex-direction:column;gap:0.25rem;margin-top:0.5rem;padding-left:0.25rem}:host .tier-item-content{display:flex;align-items:center;justify-content:space-between;flex:1;gap:0.5rem}:host .tier-name{font-size:13px;font-weight:500;color:rgb(var(--mdui-color-on-surface))}:host .tier-price{font-size:12px;font-weight:500;color:rgb(var(--mdui-color-on-surface-variant))}:host .form-actions{display:flex;align-items:center;justify-content:space-between;padding-top:1rem;border-top:1px solid rgba(var(--mdui-color-outline-variant), 0.5);margin-top:0.5rem}@keyframes skeleton-loading{0%{background-position:-650px 0}100%{background-position:650px 0}}:host .loading{animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:skeleton-loading;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1000px;border-radius:4px}:host .skeleton-tabs{height:48px;width:100%;border-radius:8px}:host .skeleton-field{height:56px;width:100%;border-radius:8px}:host .skeleton-field.tall{height:120px}:host .skeleton-button{height:40px;width:100px;border-radius:20px}";
|
|
43
|
+
|
|
44
|
+
const UrPostEditor = class {
|
|
45
|
+
constructor(hostRef) {
|
|
46
|
+
registerInstance(this, hostRef);
|
|
47
|
+
this.postSaved = createEvent(this, "postSaved");
|
|
48
|
+
this.postCancelled = createEvent(this, "postCancelled");
|
|
49
|
+
this.mediaUploadClicked = createEvent(this, "mediaUploadClicked");
|
|
50
|
+
this.mediaRemoveClicked = createEvent(this, "mediaRemoveClicked");
|
|
51
|
+
/**
|
|
52
|
+
* The post data to edit (null for create mode)
|
|
53
|
+
*/
|
|
54
|
+
this.post = null;
|
|
55
|
+
/**
|
|
56
|
+
* Mode: 'create' or 'edit'
|
|
57
|
+
*/
|
|
58
|
+
this.mode = 'create';
|
|
59
|
+
/**
|
|
60
|
+
* Show skeleton loading state
|
|
61
|
+
*/
|
|
62
|
+
this.skeleton = false;
|
|
63
|
+
/**
|
|
64
|
+
* Loading state for save button
|
|
65
|
+
*/
|
|
66
|
+
this.saving = false;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the owner has subscription tiers (to show subscribers option)
|
|
69
|
+
*/
|
|
70
|
+
this.hasSubscribers = false;
|
|
71
|
+
/**
|
|
72
|
+
* Available subscription tiers for the owner
|
|
73
|
+
*/
|
|
74
|
+
this.tiers = [];
|
|
75
|
+
/**
|
|
76
|
+
* Uploaded media items (for media posts)
|
|
77
|
+
*/
|
|
78
|
+
this.media = [];
|
|
79
|
+
/**
|
|
80
|
+
* Maximum number of media items allowed
|
|
81
|
+
*/
|
|
82
|
+
this.maxMedia = 4;
|
|
83
|
+
// Tab text props for i18n
|
|
84
|
+
this.textTabText = 'Text';
|
|
85
|
+
this.mediaTabText = 'Images & Video';
|
|
86
|
+
this.linkTabText = 'Link';
|
|
87
|
+
this.pollTabText = 'Poll';
|
|
88
|
+
// Text props for i18n
|
|
89
|
+
this.titleLabelText = 'Title';
|
|
90
|
+
this.titlePlaceholderText = "What's on your mind?";
|
|
91
|
+
this.bodyLabelText = 'Body (optional)';
|
|
92
|
+
this.bodyPlaceholderText = 'Share more details...';
|
|
93
|
+
this.linkUrlLabelText = 'Link URL';
|
|
94
|
+
this.linkUrlPlaceholderText = 'https://...';
|
|
95
|
+
this.mediaUploadText = 'Drag and drop or click to upload';
|
|
96
|
+
this.mediaHintText = 'Images up to 4MB';
|
|
97
|
+
this.spoilerLabelText = 'Spoiler';
|
|
98
|
+
this.spoilerHintText = 'May ruin a surprise';
|
|
99
|
+
this.audienceLabelText = 'Who can see this?';
|
|
100
|
+
this.publicText = 'Public';
|
|
101
|
+
this.publicHintText = 'Anyone can see';
|
|
102
|
+
this.followersText = 'Followers';
|
|
103
|
+
this.followersHintText = 'Only your followers';
|
|
104
|
+
this.subscribersText = 'Subscribers';
|
|
105
|
+
this.subscribersHintText = 'Only your paying subscribers';
|
|
106
|
+
this.privateText = 'Private';
|
|
107
|
+
this.privateHintText = 'Only you can see';
|
|
108
|
+
// Tier selector text props
|
|
109
|
+
this.selectTiersText = 'Select tiers';
|
|
110
|
+
this.allTiersText = 'All tiers';
|
|
111
|
+
this.allTiersHintText = 'All paying subscribers can see';
|
|
112
|
+
this.specificTiersText = 'Specific tiers';
|
|
113
|
+
this.specificTiersHintText = 'Only selected tiers can see';
|
|
114
|
+
this.postBtnText = 'Post';
|
|
115
|
+
this.saveBtnText = 'Post';
|
|
116
|
+
this.savingBtnText = 'Posting...';
|
|
117
|
+
this.cancelBtnText = 'Cancel';
|
|
118
|
+
// Poll text props
|
|
119
|
+
this.pollOptionsLabelText = 'Poll options';
|
|
120
|
+
this.pollOptionPlaceholderText = 'Option';
|
|
121
|
+
this.addOptionText = 'Add another option';
|
|
122
|
+
this.maxPollOptions = 6;
|
|
123
|
+
/**
|
|
124
|
+
* Default tab to open when creating a post
|
|
125
|
+
*/
|
|
126
|
+
this.defaultTab = 'text';
|
|
127
|
+
// Internal state
|
|
128
|
+
this.activeTab = 'text';
|
|
129
|
+
this.title = '';
|
|
130
|
+
this.body = '';
|
|
131
|
+
this.linkUrl = '';
|
|
132
|
+
this.pollOptions = ['', ''];
|
|
133
|
+
this.isSpoiler = false;
|
|
134
|
+
this.audience = 'public';
|
|
135
|
+
this.tierSelectionMode = 'all';
|
|
136
|
+
this.selectedTierIds = [];
|
|
137
|
+
this.handleTabChange = (e) => {
|
|
138
|
+
var _a;
|
|
139
|
+
// Block tab switching in edit mode
|
|
140
|
+
if (this.mode === 'edit') {
|
|
141
|
+
e.preventDefault();
|
|
142
|
+
e.stopPropagation();
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const newTab = (_a = e.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
146
|
+
if (newTab) {
|
|
147
|
+
this.activeTab = newTab;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
this.handleTitleChange = (e) => {
|
|
151
|
+
this.title = e.detail.value;
|
|
152
|
+
};
|
|
153
|
+
this.handleBodyChange = (e) => {
|
|
154
|
+
this.body = e.detail.value;
|
|
155
|
+
};
|
|
156
|
+
this.handleLinkUrlChange = (e) => {
|
|
157
|
+
this.linkUrl = e.detail.value;
|
|
158
|
+
};
|
|
159
|
+
this.handleSpoilerChange = (e) => {
|
|
160
|
+
this.isSpoiler = e.detail.checked;
|
|
161
|
+
};
|
|
162
|
+
this.handleAudienceChange = (audience) => {
|
|
163
|
+
this.audience = audience;
|
|
164
|
+
// Reset tier selection when switching away from subscribers
|
|
165
|
+
if (audience !== 'subscribers') {
|
|
166
|
+
this.tierSelectionMode = 'all';
|
|
167
|
+
this.selectedTierIds = [];
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
this.handleTierSelectionModeChange = (mode) => {
|
|
171
|
+
this.tierSelectionMode = mode;
|
|
172
|
+
if (mode === 'all') {
|
|
173
|
+
this.selectedTierIds = [];
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
this.handlePollOptionChange = (index, e) => {
|
|
177
|
+
const newOptions = [...this.pollOptions];
|
|
178
|
+
newOptions[index] = e.detail.value;
|
|
179
|
+
this.pollOptions = newOptions;
|
|
180
|
+
};
|
|
181
|
+
this.handleRemovePollOption = (index) => {
|
|
182
|
+
if (this.pollOptions.length > 2) {
|
|
183
|
+
this.pollOptions = this.pollOptions.filter((_, i) => i !== index);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
this.handleAddPollOption = () => {
|
|
187
|
+
if (this.pollOptions.length < this.maxPollOptions) {
|
|
188
|
+
this.pollOptions = [...this.pollOptions, ''];
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
this.handleMediaUploadClick = () => {
|
|
192
|
+
this.mediaUploadClicked.emit();
|
|
193
|
+
};
|
|
194
|
+
this.handleMediaRemove = (index) => {
|
|
195
|
+
this.mediaRemoveClicked.emit({ index, media: this.media[index] });
|
|
196
|
+
};
|
|
197
|
+
this.handleSave = () => {
|
|
198
|
+
var _a;
|
|
199
|
+
if (!this.isValid())
|
|
200
|
+
return;
|
|
201
|
+
const postData = {
|
|
202
|
+
_id: (_a = this.post) === null || _a === void 0 ? void 0 : _a._id,
|
|
203
|
+
type: this.activeTab,
|
|
204
|
+
title: this.title.trim(),
|
|
205
|
+
body: (this.activeTab === 'text' || this.activeTab === 'link' || this.activeTab === 'media')
|
|
206
|
+
? (this.body.trim() || undefined)
|
|
207
|
+
: undefined,
|
|
208
|
+
linkUrl: this.activeTab === 'link' ? (this.linkUrl.trim() || undefined) : undefined,
|
|
209
|
+
pollOptions: this.activeTab === 'poll'
|
|
210
|
+
? this.pollOptions.filter(o => o.trim()).map(text => ({ text: text.trim() }))
|
|
211
|
+
: undefined,
|
|
212
|
+
media: (this.activeTab === 'media' && this.media && this.media.length > 0)
|
|
213
|
+
? this.media
|
|
214
|
+
: undefined,
|
|
215
|
+
isSpoiler: this.isSpoiler,
|
|
216
|
+
audience: this.audience,
|
|
217
|
+
// Only include audienceTiers for subscribers audience with specific tiers selected
|
|
218
|
+
audienceTiers: (this.audience === 'subscribers' && this.tierSelectionMode === 'specific' && this.selectedTierIds.length > 0)
|
|
219
|
+
? this.selectedTierIds
|
|
220
|
+
: undefined,
|
|
221
|
+
};
|
|
222
|
+
this.postSaved.emit(postData);
|
|
223
|
+
};
|
|
224
|
+
this.handleCancel = () => {
|
|
225
|
+
this.postCancelled.emit();
|
|
226
|
+
};
|
|
227
|
+
this.handleTierModeRadioChange = (e) => {
|
|
228
|
+
const mode = e.detail.value;
|
|
229
|
+
this.handleTierSelectionModeChange(mode);
|
|
230
|
+
};
|
|
231
|
+
this.handleTierCheckboxChange = (tierId, e) => {
|
|
232
|
+
const checked = e.detail.checked;
|
|
233
|
+
if (checked && !this.selectedTierIds.includes(tierId)) {
|
|
234
|
+
this.selectedTierIds = [...this.selectedTierIds, tierId];
|
|
235
|
+
}
|
|
236
|
+
else if (!checked && this.selectedTierIds.includes(tierId)) {
|
|
237
|
+
this.selectedTierIds = this.selectedTierIds.filter(id => id !== tierId);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
postChanged(newPost) {
|
|
242
|
+
this.initializeFromPost(newPost);
|
|
243
|
+
}
|
|
244
|
+
defaultTabChanged(newTab) {
|
|
245
|
+
// Only update activeTab if we're in create mode and no post is set
|
|
246
|
+
if (!this.post && this.mode === 'create') {
|
|
247
|
+
this.activeTab = newTab;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
componentWillLoad() {
|
|
251
|
+
this.initializeFromPost(this.post);
|
|
252
|
+
}
|
|
253
|
+
initializeFromPost(post) {
|
|
254
|
+
var _a;
|
|
255
|
+
if (post) {
|
|
256
|
+
this.activeTab = post.type || this.defaultTab;
|
|
257
|
+
this.title = post.title || '';
|
|
258
|
+
this.body = post.body || '';
|
|
259
|
+
this.linkUrl = post.linkUrl || '';
|
|
260
|
+
this.pollOptions = ((_a = post.pollOptions) === null || _a === void 0 ? void 0 : _a.map(o => o.text)) || ['', ''];
|
|
261
|
+
this.isSpoiler = post.isSpoiler || false;
|
|
262
|
+
this.audience = post.audience || 'public';
|
|
263
|
+
// Handle tier selection
|
|
264
|
+
if (post.audienceTiers && post.audienceTiers.length > 0) {
|
|
265
|
+
this.tierSelectionMode = 'specific';
|
|
266
|
+
this.selectedTierIds = [...post.audienceTiers];
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
this.tierSelectionMode = 'all';
|
|
270
|
+
this.selectedTierIds = [];
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
// Default values for create mode
|
|
275
|
+
this.activeTab = this.defaultTab;
|
|
276
|
+
this.title = '';
|
|
277
|
+
this.body = '';
|
|
278
|
+
this.linkUrl = '';
|
|
279
|
+
this.pollOptions = ['', ''];
|
|
280
|
+
this.isSpoiler = false;
|
|
281
|
+
this.audience = 'public';
|
|
282
|
+
this.tierSelectionMode = 'all';
|
|
283
|
+
this.selectedTierIds = [];
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
isValid() {
|
|
287
|
+
if (!this.title.trim())
|
|
288
|
+
return false;
|
|
289
|
+
switch (this.activeTab) {
|
|
290
|
+
case 'text':
|
|
291
|
+
return true;
|
|
292
|
+
case 'media':
|
|
293
|
+
// For now, just require title (media upload is handled externally)
|
|
294
|
+
return true;
|
|
295
|
+
case 'link':
|
|
296
|
+
// Require a valid URL
|
|
297
|
+
return this.linkUrl.trim().length > 0;
|
|
298
|
+
case 'poll':
|
|
299
|
+
// Need at least 2 non-empty options
|
|
300
|
+
const validOptions = this.pollOptions.filter(o => o.trim());
|
|
301
|
+
return validOptions.length >= 2;
|
|
302
|
+
default:
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
renderSkeleton() {
|
|
307
|
+
return (h(Host, null, h("div", { class: "editor-container" }, h("div", { class: "skeleton-tabs loading" }), h("div", { class: "form-section" }, h("div", { class: "skeleton-field loading" }), h("div", { class: "skeleton-field tall loading" })), h("div", { class: "form-actions" }, h("div", { class: "skeleton-button loading" }), h("div", { class: "skeleton-button loading" })))));
|
|
308
|
+
}
|
|
309
|
+
renderPollOptions() {
|
|
310
|
+
const isEditMode = this.mode === 'edit';
|
|
311
|
+
const canAddMore = !isEditMode && this.pollOptions.length < this.maxPollOptions;
|
|
312
|
+
const canRemove = !isEditMode && this.pollOptions.length > 2;
|
|
313
|
+
return (h("div", { class: "poll-options" }, h("label", { class: "section-label" }, this.pollOptionsLabelText), h("div", { class: "poll-options-list" }, this.pollOptions.map((option, index) => (h("div", { class: "poll-option-row", key: index }, h("ur-text-field", { label: `${this.pollOptionPlaceholderText} ${index + 1}`, value: option, name: `pollOption${index}`, maxlength: 65, counter: !isEditMode, disabled: isEditMode, onValueChanged: (e) => this.handlePollOptionChange(index, e) }), canRemove && (h("ur-button-icon", { icon: "close", class: "remove-option-btn", onClick: () => this.handleRemovePollOption(index) }))))), canAddMore && (h("button", { type: "button", class: "add-option-btn", onClick: this.handleAddPollOption }, h("mdui-icon", { name: "add" }), this.addOptionText)))));
|
|
314
|
+
}
|
|
315
|
+
renderTextContent() {
|
|
316
|
+
return (h("div", { class: "form-section" }, h("ur-text-field", { label: this.bodyLabelText, placeholder: this.bodyPlaceholderText, value: this.body, name: "body", maxlength: 5000, counter: true, rows: 4, autosize: true, minRows: 3, onValueChanged: this.handleBodyChange })));
|
|
317
|
+
}
|
|
318
|
+
renderMediaContent() {
|
|
319
|
+
const hasMedia = this.media && this.media.length > 0;
|
|
320
|
+
const canAddMore = !this.media || this.media.length < this.maxMedia;
|
|
321
|
+
return [
|
|
322
|
+
// Uploaded media grid
|
|
323
|
+
hasMedia && (h("div", { class: "form-section" }, h("div", { class: "media-preview-grid" }, this.media.map((item, index) => (h("div", { class: "media-preview-item", key: index }, item.type === 'video' ? (h("div", { class: "media-preview-video" }, h("img", { src: item.thumbnailUrl || item.url, alt: "" }), h("div", { class: "video-indicator" }, h("mdui-icon", { name: "play_circle" })))) : (h("img", { src: item.url, alt: "" })), h("button", { type: "button", class: "media-remove-btn", onClick: () => this.handleMediaRemove(index), "aria-label": "Remove" }, h("mdui-icon", { name: "close" })))))))),
|
|
324
|
+
// Media upload area (only if can add more)
|
|
325
|
+
canAddMore && (h("div", { class: "form-section" }, h("div", { class: "media-upload-area", onClick: this.handleMediaUploadClick }, h("mdui-icon", { name: "cloud_upload" }), h("span", { class: "media-upload-text" }, this.mediaUploadText), h("span", { class: "media-upload-hint" }, this.mediaHintText)))),
|
|
326
|
+
// Body (optional description)
|
|
327
|
+
h("div", { class: "form-section" }, h("ur-text-field", { label: this.bodyLabelText, placeholder: this.bodyPlaceholderText, value: this.body, name: "body", maxlength: 5000, counter: true, rows: 3, autosize: true, minRows: 2, onValueChanged: this.handleBodyChange }))
|
|
328
|
+
];
|
|
329
|
+
}
|
|
330
|
+
renderLinkContent() {
|
|
331
|
+
return [
|
|
332
|
+
// Link URL input
|
|
333
|
+
h("div", { class: "form-section" }, h("ur-text-field", { label: this.linkUrlLabelText, placeholder: this.linkUrlPlaceholderText, value: this.linkUrl, name: "linkUrl", type: "url", required: true, onValueChanged: this.handleLinkUrlChange })),
|
|
334
|
+
// Body (optional description)
|
|
335
|
+
h("div", { class: "form-section" }, h("ur-text-field", { label: this.bodyLabelText, placeholder: this.bodyPlaceholderText, value: this.body, name: "body", maxlength: 5000, counter: true, rows: 3, autosize: true, minRows: 2, onValueChanged: this.handleBodyChange }))
|
|
336
|
+
];
|
|
337
|
+
}
|
|
338
|
+
renderPollContent() {
|
|
339
|
+
return (h("div", { class: "form-section" }, this.renderPollOptions()));
|
|
340
|
+
}
|
|
341
|
+
renderTabContent() {
|
|
342
|
+
switch (this.activeTab) {
|
|
343
|
+
case 'text':
|
|
344
|
+
return this.renderTextContent();
|
|
345
|
+
case 'media':
|
|
346
|
+
return this.renderMediaContent();
|
|
347
|
+
case 'link':
|
|
348
|
+
return this.renderLinkContent();
|
|
349
|
+
case 'poll':
|
|
350
|
+
return this.renderPollContent();
|
|
351
|
+
default:
|
|
352
|
+
return null;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
formatTierPrice(tier) {
|
|
356
|
+
var _a;
|
|
357
|
+
const price = (tier.pricePerMonth / 100).toFixed(2);
|
|
358
|
+
const currency = ((_a = tier.currency) === null || _a === void 0 ? void 0 : _a.toUpperCase()) || 'EUR';
|
|
359
|
+
const symbol = currency === 'EUR' ? '€' : currency === 'USD' ? '$' : currency;
|
|
360
|
+
return `${symbol}${price}/mo`;
|
|
361
|
+
}
|
|
362
|
+
renderTierSelector() {
|
|
363
|
+
if (this.audience !== 'subscribers' || !this.tiers || this.tiers.length === 0) {
|
|
364
|
+
return null;
|
|
365
|
+
}
|
|
366
|
+
return (h("div", { class: "form-section tier-selector" }, h("label", { class: "section-label" }, this.selectTiersText), h("div", { class: "tier-mode-options" }, h("ur-radio-button", { name: "tierMode", value: "all", checked: this.tierSelectionMode === 'all', onValueSelected: this.handleTierModeRadioChange, fullWidth: true }, h("div", { class: "tier-mode-content" }, h("span", { class: "tier-mode-label" }, this.allTiersText), h("span", { class: "tier-mode-hint" }, this.allTiersHintText))), h("ur-radio-button", { name: "tierMode", value: "specific", checked: this.tierSelectionMode === 'specific', onValueSelected: this.handleTierModeRadioChange, fullWidth: true }, h("div", { class: "tier-mode-content" }, h("span", { class: "tier-mode-label" }, this.specificTiersText), h("span", { class: "tier-mode-hint" }, this.specificTiersHintText)))), this.tierSelectionMode === 'specific' && (h("div", { class: "tier-list" }, this.tiers.map(tier => (h("ur-checkbox", { key: tier._id, value: tier._id, checked: this.selectedTierIds.includes(tier._id), onValueChanged: (e) => this.handleTierCheckboxChange(tier._id, e), fullWidth: true }, h("div", { class: "tier-item-content" }, h("span", { class: "tier-name" }, tier.name), h("span", { class: "tier-price" }, this.formatTierPrice(tier))))))))));
|
|
367
|
+
}
|
|
368
|
+
renderAudienceSelector() {
|
|
369
|
+
return (h("div", { class: "form-section" }, h("label", { class: "section-label" }, this.audienceLabelText), h("div", { class: "audience-options" }, h("button", { type: "button", class: `audience-option ${this.audience === 'public' ? 'selected' : ''}`, onClick: () => this.handleAudienceChange('public') }, h("span", { class: "audience-icon" }, h("mdui-icon", { name: "public" })), h("span", { class: "audience-text" }, h("span", { class: "audience-label" }, this.publicText), h("span", { class: "audience-hint" }, this.publicHintText))), h("button", { type: "button", class: `audience-option ${this.audience === 'private' ? 'selected' : ''}`, onClick: () => this.handleAudienceChange('private') }, h("span", { class: "audience-icon" }, h("mdui-icon", { name: "lock" })), h("span", { class: "audience-text" }, h("span", { class: "audience-label" }, this.privateText), h("span", { class: "audience-hint" }, this.privateHintText))), h("button", { type: "button", class: `audience-option ${this.audience === 'followers' ? 'selected' : ''}`, onClick: () => this.handleAudienceChange('followers') }, h("span", { class: "audience-icon" }, h("mdui-icon", { name: "group" })), h("span", { class: "audience-text" }, h("span", { class: "audience-label" }, this.followersText), h("span", { class: "audience-hint" }, this.followersHintText))), this.hasSubscribers && (h("button", { type: "button", class: `audience-option ${this.audience === 'subscribers' ? 'selected' : ''}`, onClick: () => this.handleAudienceChange('subscribers') }, h("span", { class: "audience-icon" }, h("mdui-icon", { name: "loyalty" })), h("span", { class: "audience-text" }, h("span", { class: "audience-label" }, this.subscribersText), h("span", { class: "audience-hint" }, this.subscribersHintText)))))));
|
|
370
|
+
}
|
|
371
|
+
render() {
|
|
372
|
+
if (this.skeleton) {
|
|
373
|
+
return this.renderSkeleton();
|
|
374
|
+
}
|
|
375
|
+
const isCreateMode = this.mode === 'create';
|
|
376
|
+
const submitBtnText = isCreateMode ? this.postBtnText : this.saveBtnText;
|
|
377
|
+
return (h(Host, null, h("div", { class: "editor-container" }, h("div", { class: { 'tabs-wrapper': true, 'edit-mode': !isCreateMode } }, h("mdui-tabs", { value: this.activeTab, variant: "primary", onChange: this.handleTabChange }, h("mdui-tab", { value: "text" }, h("mdui-icon", { slot: "icon", name: "edit_note" }), this.textTabText), h("mdui-tab", { value: "media" }, h("mdui-icon", { slot: "icon", name: "image" }), this.mediaTabText), h("mdui-tab", { value: "link" }, h("mdui-icon", { slot: "icon", name: "link" }), this.linkTabText), h("mdui-tab", { value: "poll" }, h("mdui-icon", { slot: "icon", name: "poll" }), this.pollTabText))), h("div", { class: "form-section" }, h("ur-text-field", { label: this.titleLabelText, placeholder: this.titlePlaceholderText, value: this.title, name: "title", maxlength: 200, counter: true, required: true, onValueChanged: this.handleTitleChange })), h("div", { class: "tab-content" }, this.renderTabContent()), h("div", { class: "form-section checkbox-section" }, h("ur-checkbox", { checked: this.isSpoiler, onValueChanged: this.handleSpoilerChange }, h("div", { class: "checkbox-content" }, h("span", { class: "checkbox-label" }, this.spoilerLabelText), h("span", { class: "checkbox-hint" }, this.spoilerHintText)))), this.renderAudienceSelector(), this.renderTierSelector(), h("div", { class: "form-actions" }, h("ur-button", { variant: "text", onClick: this.handleCancel, disabled: this.saving }, this.cancelBtnText), h("ur-button", { variant: "filled", onClick: this.handleSave, disabled: !this.isValid() || this.saving }, this.saving ? this.savingBtnText : submitBtnText)))));
|
|
378
|
+
}
|
|
379
|
+
static get watchers() { return {
|
|
380
|
+
"post": ["postChanged"],
|
|
381
|
+
"defaultTab": ["defaultTabChanged"]
|
|
382
|
+
}; }
|
|
383
|
+
};
|
|
384
|
+
UrPostEditor.style = urPostEditorCss;
|
|
385
|
+
|
|
386
|
+
export { UrPostEditor as ur_post_editor };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-DvddpEp7.js';
|
|
2
|
+
|
|
3
|
+
const urPostPromptCss = ":host{display:block;width:100%;--ur-color-surface:var(--mdui-color-surface);--ur-color-surface-container:var(--mdui-color-surface-container);--ur-color-surface-container-high:var(--mdui-color-surface-container-high);--ur-color-on-surface-variant:var(--mdui-color-on-surface-variant);--ur-color-outline-variant:var(--mdui-color-outline-variant)}:host .post-prompt{display:flex;align-items:center;gap:12px;background:rgb(var(--ur-color-surface));border-radius:12px}:host .post-prompt.disabled{opacity:0.5;pointer-events:none}:host .input-area{flex:1;min-height:40px;padding:4px 16px;background:rgba(var(--mdui-color-surface-variant), 0.3);border-radius:25px;display:flex;align-items:center;cursor:pointer;transition:background-color 0.2s ease}:host .input-area:hover{background:rgba(var(--mdui-color-surface-variant), 0.5)}:host .placeholder{color:rgb(var(--ur-color-on-surface-variant));font-size:14px;user-select:none}:host .action-buttons{display:flex;gap:4px;flex-shrink:0;position:relative;top:2px}";
|
|
4
|
+
|
|
5
|
+
const UrPostPrompt = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.promptClick = createEvent(this, "promptClick");
|
|
9
|
+
// Placeholder text
|
|
10
|
+
this.placeholder = "What's on your mind?";
|
|
11
|
+
// Disabled state
|
|
12
|
+
this.disabled = false;
|
|
13
|
+
// Avatar variant (for pages vs users)
|
|
14
|
+
this.avatarVariant = 'user';
|
|
15
|
+
// Mobile layout
|
|
16
|
+
this.mobile = false;
|
|
17
|
+
// Padding
|
|
18
|
+
this.padding = '8px';
|
|
19
|
+
// Tooltip text props (i18n)
|
|
20
|
+
this.linkTooltip = 'Add link';
|
|
21
|
+
this.mediaTooltip = 'Add images';
|
|
22
|
+
this.pollTooltip = 'Create poll';
|
|
23
|
+
this.handleInputClick = () => {
|
|
24
|
+
if (this.disabled)
|
|
25
|
+
return;
|
|
26
|
+
this.promptClick.emit({ tab: 'text' });
|
|
27
|
+
};
|
|
28
|
+
this.handleLinkClick = (e) => {
|
|
29
|
+
e.stopPropagation();
|
|
30
|
+
if (this.disabled)
|
|
31
|
+
return;
|
|
32
|
+
this.promptClick.emit({ tab: 'link' });
|
|
33
|
+
};
|
|
34
|
+
this.handleMediaClick = (e) => {
|
|
35
|
+
e.stopPropagation();
|
|
36
|
+
if (this.disabled)
|
|
37
|
+
return;
|
|
38
|
+
this.promptClick.emit({ tab: 'media' });
|
|
39
|
+
};
|
|
40
|
+
this.handlePollClick = (e) => {
|
|
41
|
+
e.stopPropagation();
|
|
42
|
+
if (this.disabled)
|
|
43
|
+
return;
|
|
44
|
+
this.promptClick.emit({ tab: 'poll' });
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return (h("div", { key: '3e296f57f4e4c44ad12152a2a3c47f346a6abade', class: { 'post-prompt': true, 'disabled': this.disabled, 'mobile': this.mobile }, style: { padding: this.padding } }, h("ur-avatar", { key: '1d92b2ceb74554433c6a13c4fb2fe3d97b975a43', src: this.userPicture, name: this.userName, size: "40px", variant: this.avatarVariant }), h("div", { key: '796a70ac57738707ce54ba99a8aeb6d7fc35c5fd', class: "input-area", onClick: this.handleInputClick }, h("span", { key: '29f3c5bf8eaa6e6987095dc3f48dc52d1a9fdcc9', class: "placeholder" }, this.placeholder)), h("div", { key: '44ae382d0f0576412d89921614b1b92d6f7e7f5f', class: "action-buttons" }, h("ur-tooltip", { key: '1aadd8a7768364684856c2c7cbb4c067de978fac', content: this.mediaTooltip, placement: "bottom", disabled: this.mobile }, h("ur-button-icon", { key: '6c6122084b6cd49d27d449379a32c8b809dd67af', icon: "image", variant: "standard", onClick: this.handleMediaClick, disabled: this.disabled })), !this.mobile && (h("ur-tooltip", { key: 'd5375424d9bf47e472833aed180b40470de1ba24', content: this.linkTooltip, placement: "bottom" }, h("ur-button-icon", { key: 'dfe7d92e784130daf66d2bfd75227330148f6059', icon: "link", variant: "standard", onClick: this.handleLinkClick, disabled: this.disabled }))), !this.mobile && (h("ur-tooltip", { key: 'b86d97786207a2cad2360a4a43688499c8d722d4', content: this.pollTooltip, placement: "bottom" }, h("ur-button-icon", { key: 'e611a21f1839d3b4d6f1e82f40799464b82dbd08', icon: "ballot", variant: "standard", onClick: this.handlePollClick, disabled: this.disabled }))))));
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
UrPostPrompt.style = urPostPromptCss;
|
|
52
|
+
|
|
53
|
+
export { UrPostPrompt as ur_post_prompt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DvddpEp7.js';
|
|
2
|
-
import './ur-avatar-
|
|
2
|
+
import './ur-avatar-DXF3lVCQ.js';
|
|
3
3
|
import './ur-button.entry.js';
|
|
4
4
|
import './ur-button-icon.entry.js';
|
|
5
5
|
import './ur-tooltip-CTvIaeKz.js';
|
|
@@ -89,7 +89,7 @@ const UrProfileCard = class {
|
|
|
89
89
|
const actualAvatarSize = this.big ? '150px' : this.avatarSize;
|
|
90
90
|
const actualBorderRadius = this.big ? '12px' : (this.profileType === 'page' ? '12px' : '50%');
|
|
91
91
|
const actualNameFontSize = this.big ? '18px' : this.nameFontSize;
|
|
92
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '2377b213dcc9cdeae0ad202c4bdb8a6040164be0' }, h("div", { key: '7a60adf5328b7fd2ad5f0e6e9c4cfef2954098e2', class: `profile-card ${this.big ? 'big' : ''}` }, h("div", { key: 'ed311462c30b9380c32425c7784eeff77f344438', class: "profile-container" }, h("a", { key: '1f64d2dea7e01faa6507e7bd4df3c0903f8a3719', href: this.profileHref, class: "avatar-link", onClick: (e) => { e.preventDefault(); this.handleProfileLink(); } }, h("ur-avatar", { key: '457ac5c718c63fdf80224941617fa6f14618c22e', size: actualAvatarSize, class: "avatar", variant: this.profileType, radius: actualBorderRadius, src: this.avatarSrc, name: this.name, skeleton: this.skeleton })), h("span", { key: 'f7af9fd8a3a9c37f9ab720a28690c4903bb46ed6', class: "profile-info" }, this.skeleton ? (h("span", { class: "name-skeleton loading", style: { width: '80px', height: actualNameFontSize } })) : (h("div", { class: "name-container" }, h("a", { href: this.profileHref, class: "name-link", onClick: (e) => { e.preventDefault(); this.handleProfileLink(); } }, h("span", { class: "name", style: { fontSize: actualNameFontSize } }, this.name), this.isPartner && h("ur-icon", { class: "partner-badge", name: "verified", size: "14px" })), this.metadata && (h("span", { class: "metadata" }, this.metadata)))), this.showDescription && (h("div", { key: 'e2e829ce64f05ed27a761f21272dea962571e73a', class: "description-container" }, this.skeleton ? (h("span", { class: "description-skeleton loading", style: { width: '120px', height: '10px' } })) : this.big ? (h("ur-long-description", { description: this.description, showMoreText: this.showMoreText, showLessText: this.showLessText, markdown: this.markdown })) : (h("span", { class: "description-text" }, this.description)))))), h("div", { key: 'f9cca6e2c4fcdaa71b7ce7427804f923d7bfa148', class: "actions-container" }, !this.isOwner && !this.hideFollowActions && (h("ur-button", { key: 'c26fef214c706736af2e3542a502b7fd986c134b', buttonHeight: this.buttonHeight, class: "follow-button", onClick: this.isFollowing ? this.onUnfollow : this.onFollow, variant: this.isFollowing ? 'text' : 'outlined', skeleton: this.skeleton }, this.isFollowing ? this.unfollowButtonText : this.followButtonText)), this.profileType === 'user' && this.showMemberActions && !this.skeleton && (h("ur-tooltip", { key: '76e15aec3816342291903b9fcb0a2ae7c2eb8170', content: this.memberActionsTooltipText, placement: "bottom", trigger: "hover", colorScheme: "dark", "open-delay": "200", "close-delay": "100" }, h("ur-button-icon", { key: '60eea5405fcfc3d80dfb1a7bb7b39bb1920cf69d', buttonHeight: this.buttonHeight, buttonWidth: this.buttonWidth, class: "member-actions-button", icon: "close", onClick: this.onRemoveMember }))), this.profileType === 'page' && this.showPageActions && !this.skeleton && (h("ur-tooltip", { key: '985d9bf5d01b23425b4722aada0a6834535275af', content: this.pageActionsTooltipText, placement: "bottom", trigger: "hover", colorScheme: "dark", "open-delay": "200", "close-delay": "100" }, h("ur-button-icon", { key: 'ba06ca8dd1434972e2ecd8dc197bd7092a2b6dee', buttonHeight: this.buttonHeight, buttonWidth: this.buttonWidth, class: "page-actions-button", icon: "close", onClick: this.onRemovePage })))))));
|
|
93
93
|
}
|
|
94
94
|
get el() { return getElement(this); }
|
|
95
95
|
static get watchers() { return {
|
|
@@ -112,11 +112,11 @@ const UrProfile = class {
|
|
|
112
112
|
this.member_since = 'May 25, 20215';
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
|
-
return (h(Host, { key: '
|
|
115
|
+
return (h(Host, { key: '5d67f7430ac063ab4130e44d872e96861869ff49' }, h("div", { key: '0a4407109ecc5510681192eddb59e01ac9a48ed6', class: "profile" }, h("div", { key: '67172778f1cd4c13111a1d89bc6d4c4ef9bf6707', class: "name" }, this.name), this.description && h("div", { key: 'e8641878e800019fc393d478662d6d0e935c8435', class: "description" }, this.description), this.location && h("div", { key: '1fb01a18c10d01f2200f4d17a5eafcce621fe139', class: "location" }, this.location), h("div", { key: '4e6e00384d21e05bc79cdba68fe4e69db0e9e2d6', class: "social" }, this.facebook_url && h("a", { key: 'a7bf20b5720747ce453a16cf8cae6612a1947d12', href: this.facebook_url, title: "facebook", target: "_blank" }, h("span", { key: 'e0b7de355d66cfccf4c8d7c989418ff500768a17', class: "icon", innerHTML: Icons.facebook })), this.twitter_url && h("a", { key: 'd202b950303a181b1e5e3d7231f1d21d404123f8', href: this.twitter_url, title: "twitter", target: "_blank" }, h("span", { key: '50cb83feb41ee8807855bb04612655d463b8e973', class: "icon", innerHTML: Icons.twitter })), this.linkedin_url && h("a", { key: '9ba30186191d46d93739ca89cd2dbe5f3f16735c', href: this.linkedin_url, title: "linkedin", target: "_blank" }, h("span", { key: 'aa90042d97e2696a664a2c2b4bed2fddd5b85ad2', class: "icon", innerHTML: Icons.linkedin })), this.email && h("a", { key: '1964d9113092dc68bd891b0c6f4e72c8daf98f19', href: "mailto:" + this.email, title: "email", target: "_blank" }, h("span", { key: 'fb492c3af46fa363f7e2b94fc696ff490dd9ad3d', class: "icon", innerHTML: Icons.email })), this.phone && h("a", { key: '460f2f347ddd9df7202e481f9ffae333cf611e0f', href: "tel:" + this.phone, title: "phone", target: "_blank" }, h("span", { key: '0e4e5723112eeb62deeb597685de33d40a4b8113', class: "icon", innerHTML: Icons.phone }))), this.website && h("a", { key: '10fe61545fef58405fdf94a0df5bac7d7a0d67eb', class: "website", href: this.website, title: "website", target: "_blank" }, h("span", { key: '2dbc3f42678806bfac36140ebe2a95b6d46104ab', class: "icon", innerHTML: Icons.website }), this.website), this.show_follow && h("div", { key: 'fcbf95c540c24c4b3f24397128ea9a5b60439f5d', class: "follow-action action" }, h("mdui-button", { key: '506b2bc1e3fa5c13a364947c807f7f28c56be4ae' }, "Follow")), this.show_donate && h("div", { key: '1152f24d79243f43294be81d25e081f4b39ed5ba', class: "donate-action action" }, h("mdui-button", { key: 'ec3d12b4365a1fae71527338895b6a010a5c6fdd', variant: "outlined" }, "Donate")), this.show_become_member && h("div", { key: 'd72972fe2ad850146a8caf7b7fef4d56c13b09d0', class: "member-action action" }, h("mdui-button", { key: 'a348761a9f3ce9c996aa5b45342d50ca07c84987', variant: "outlined" }, "Become Member")), this.show_send_message && h("div", { key: 'e85db3e4ac705eb7a20f46c7ba5ef846168ad95c', class: "message-action action" }, h("mdui-button", { key: '7f0feb17bd3beda95451d1b5765c41da0b3850f2', variant: "outlined" }, "Message")), this.show_stats && h("div", { key: 'e6c01688fe4d37273ab3d1bb10ce548dc2ab093d', class: "stats" }, h("div", { key: '151b8ac31d51f1daa59ed553fc3cea92e06c2f3b', class: "stat" }, h("span", { key: '7618898d58386b218bddab8d1ab04e1513f4d737', class: "label" }, "Stories"), h("span", { key: '0d9e4f914f7810637c24cb7f331635ffcc9743c7', class: "value" }, this.stories_count)), h("div", { key: '66fbc4ad7c56270de74e9f803aca72a60b73763b', class: "stat" }, h("span", { key: 'b5a995eb158cec61c55a5599ad5279d33289e7db', class: "label" }, "Views"), h("span", { key: '5afbe4d930a051f6cf69f74227876c7ea67b0c85', class: "value" }, this.views_count)), h("div", { key: '79a3c6cdff0bacd6ae242af0a543aa8cab6d6b0e', class: "stat" }, h("span", { key: 'bfe4c2cb54aef07d51732c3fb52715ff1f268f13', class: "label" }, "Followers"), h("span", { key: 'f6796ee0352ff0dc07dbe73b918fdfa1c4909658', class: "value" }, this.followers_count)), h("div", { key: 'cc0dbd846dd9414d50a778cf9baf0643101f31ae', class: "stat" }, h("span", { key: '32bad76197438152ab8344a0229db9d71c262692', class: "label" }, "Writers"), h("span", { key: '298209d09f9cf3114e7a456320525b8d5a1b0b83', class: "value" }, this.writers_count))), this.show_languages && this.languages.trim().length > 0 && h("div", { key: '25c0d536429f007798baff6d792f058c354d37ff', class: "languages" }, h("div", { key: '2b112c72e4c7f261c8f54e37d3f832051e19d700', class: "title" }, "Languages"), h("div", { key: '187f600961963a812a009f50304eb95ad33c9002', class: "pills" }, this.languages.split(',').map((language) => {
|
|
116
116
|
return h("div", { class: "pill" }, language.trim());
|
|
117
|
-
}))), this.show_genres && this.genres.trim().length > 0 && h("div", { key: '
|
|
117
|
+
}))), this.show_genres && this.genres.trim().length > 0 && h("div", { key: 'e59274c475bb6af4f4718d312978f6cbdd2ea186', class: "genres" }, h("div", { key: 'aedbc84e90ed4419f64332352bca9dfc28918d98', class: "title" }, "Genres"), h("div", { key: '87633f47f8b4d9da11a867cf2aa529f78bec43dd', class: "pills" }, this.genres.split(',').map((genre) => {
|
|
118
118
|
return h("div", { class: "pill" }, genre.trim());
|
|
119
|
-
}))), this.show_member_since && this.member_since.trim().length > 0 && h("div", { key: '
|
|
119
|
+
}))), this.show_member_since && this.member_since.trim().length > 0 && h("div", { key: 'd903c0ea88b5bdd0f32a810d61fdaa14d3465d1e', class: "member_since" }, "Member Since: ", this.member_since.trim()))));
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
UrProfile.style = urProfileCss;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DvddpEp7.js';
|
|
2
|
+
import './radio-B2MeJZg9.js';
|
|
3
|
+
import './component-style-zh2SzAzp.js';
|
|
4
|
+
import './directive-Cdjto-xB.js';
|
|
5
|
+
import './state-VNaKC22C.js';
|
|
6
|
+
import './class-map-DhnCnSWX.js';
|
|
7
|
+
import './ref-Bz3X8sIV.js';
|
|
8
|
+
import './get-Bo_xHyoL.js';
|
|
9
|
+
import './watch-BvhH6khE.js';
|
|
10
|
+
import './attr-x5F1K2Wv.js';
|
|
11
|
+
import './svg-tag-DL9gwcZV.js';
|
|
12
|
+
import './index-DZdO-mMi.js';
|
|
13
|
+
import './extend-CivLoY3b.js';
|
|
14
|
+
import './has-slot-BUAeIuVe.js';
|
|
15
|
+
import './ripple-mixin-B-KYfpV5.js';
|
|
16
|
+
import './children-C1xUAMVf.js';
|
|
17
|
+
import './appendTo-Bs3lgi94.js';
|
|
18
|
+
|
|
19
|
+
const urRadioButtonCss = ":host{display:block}:host mdui-radio.full-width{width:100%}";
|
|
20
|
+
|
|
21
|
+
const UrRadioButton = class {
|
|
22
|
+
constructor(hostRef) {
|
|
23
|
+
registerInstance(this, hostRef);
|
|
24
|
+
this.valueSelected = createEvent(this, "valueSelected");
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
this.checked = false;
|
|
27
|
+
this.value = '';
|
|
28
|
+
this.name = ''; // Name of the group
|
|
29
|
+
this.fullWidth = false;
|
|
30
|
+
this.handleClick = () => {
|
|
31
|
+
if (!this.disabled && !this.checked) {
|
|
32
|
+
// Emit event to let parent handle state change
|
|
33
|
+
this.valueSelected.emit({ value: this.value });
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
// Sync checked state with mdui-radio when prop changes
|
|
38
|
+
checkedChanged(newValue) {
|
|
39
|
+
var _a;
|
|
40
|
+
const radio = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('mdui-radio');
|
|
41
|
+
if (radio && radio.checked !== newValue) {
|
|
42
|
+
radio.checked = newValue;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
return (h(Host, { key: '3a3fd806f9f6f0217cf62562e3410f46c9c1eeeb' }, h("mdui-radio", { key: '8189d97fe9a40a9cf88656fc6e90c5d926bc1f30', checked: this.checked, disabled: this.disabled, name: this.name, onClick: this.handleClick, class: this.fullWidth ? 'full-width' : '' }, h("slot", { key: '53faebb679e1e74094454d4e7eb923efceda58e3' }))));
|
|
47
|
+
}
|
|
48
|
+
get el() { return getElement(this); }
|
|
49
|
+
static get watchers() { return {
|
|
50
|
+
"checked": ["checkedChanged"]
|
|
51
|
+
}; }
|
|
52
|
+
};
|
|
53
|
+
UrRadioButton.style = urRadioButtonCss;
|
|
54
|
+
|
|
55
|
+
export { UrRadioButton as ur_radio_button };
|