urnovl-web-components 0.0.134 → 0.0.136
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/ur-novl-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-novl.cjs.entry.js +4 -3
- package/dist/cjs/ur-page-profile.cjs.entry.js +4 -4
- package/dist/cjs/ur-page.cjs.entry.js +3 -3
- package/dist/cjs/ur-profile.cjs.entry.js +3 -3
- package/dist/cjs/ur-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ur-segment-button.cjs.entry.js +1 -1
- package/dist/cjs/ur-select.cjs.entry.js +1 -1
- package/dist/cjs/ur-switch.cjs.entry.js +1 -1
- package/dist/cjs/ur-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ur-text-field.cjs.entry.js +1 -1
- package/dist/cjs/ur-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/ur-user.cjs.entry.js +3 -3
- package/dist/cjs/urnovl-web-components.cjs.js +1 -1
- package/dist/collection/components/ur-novl/ur-novl.css +78 -0
- package/dist/collection/components/ur-novl/ur-novl.js +21 -2
- package/dist/collection/components/ur-novl-carousel/ur-novl-carousel.js +1 -1
- package/dist/collection/components/ur-page/ur-page.js +3 -3
- package/dist/collection/components/ur-page-profile/ur-page-profile.js +4 -4
- package/dist/collection/components/ur-profile/ur-profile.js +3 -3
- package/dist/collection/components/ur-radio-button/ur-radio-button.js +1 -1
- package/dist/collection/components/ur-segment-button/ur-segment-button.js +1 -1
- package/dist/collection/components/ur-select/ur-select.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-text-field/ur-text-field.js +1 -1
- package/dist/collection/components/ur-user/ur-user.js +3 -3
- package/dist/collection/components/ur-user-profile/ur-user-profile.js +1 -1
- package/dist/collection/data/novls.js +15 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/stories/Novl.stories.js +6 -2
- package/dist/components/p-056f3104.js +66 -0
- package/dist/components/ur-novl-carousel.js +2 -2
- package/dist/components/ur-novl.js +1 -1
- package/dist/components/ur-page-profile.js +4 -4
- package/dist/components/ur-page.js +3 -3
- package/dist/components/ur-profile.js +3 -3
- package/dist/components/ur-radio-button.js +1 -1
- package/dist/components/ur-segment-button.js +1 -1
- package/dist/components/ur-select.js +1 -1
- package/dist/components/ur-switch.js +1 -1
- package/dist/components/ur-tabs.js +1 -1
- package/dist/components/ur-text-field.js +1 -1
- package/dist/components/ur-user-profile.js +1 -1
- package/dist/components/ur-user.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ur-novl-carousel.entry.js +1 -1
- package/dist/esm/ur-novl.entry.js +4 -3
- package/dist/esm/ur-page-profile.entry.js +4 -4
- package/dist/esm/ur-page.entry.js +3 -3
- package/dist/esm/ur-profile.entry.js +3 -3
- package/dist/esm/ur-radio-button.entry.js +1 -1
- package/dist/esm/ur-segment-button.entry.js +1 -1
- package/dist/esm/ur-select.entry.js +1 -1
- package/dist/esm/ur-switch.entry.js +1 -1
- package/dist/esm/ur-tabs.entry.js +1 -1
- package/dist/esm/ur-text-field.entry.js +1 -1
- package/dist/esm/ur-user-profile.entry.js +1 -1
- package/dist/esm/ur-user.entry.js +3 -3
- package/dist/esm/urnovl-web-components.js +1 -1
- package/dist/types/components/ur-novl/ur-novl.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/index.d.ts +1 -2
- package/dist/types/models/novl.d.ts +5 -1
- package/dist/types/stories/Novl.stories.d.ts +38 -1
- package/dist/types/stories/NovlCarousel.stories.d.ts +7 -2
- package/{www/build/p-17b40000.entry.js → dist/urnovl-web-components/p-083f386c.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-c92a7c6a.entry.js → p-141edbca.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-4797500b.entry.js → p-2dc2dda4.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-9b8462f9.entry.js → p-4fa7eb66.entry.js} +2 -2
- package/dist/urnovl-web-components/p-70d6bfd5.entry.js +1 -0
- package/dist/urnovl-web-components/{p-bb4f0416.entry.js → p-76465d4f.entry.js} +1 -1
- package/{www/build/p-053cccec.entry.js → dist/urnovl-web-components/p-825855e7.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-b11441d3.entry.js → p-8425a98f.entry.js} +1 -1
- package/{www/build/p-e68740ad.entry.js → dist/urnovl-web-components/p-89972c7b.entry.js} +1 -1
- package/dist/urnovl-web-components/p-a28242db.entry.js +1 -0
- package/dist/urnovl-web-components/p-ab23a299.entry.js +1 -0
- package/dist/urnovl-web-components/{p-33f3af12.entry.js → p-b7a6e0e7.entry.js} +1 -1
- package/{www/build/p-1ca8b142.entry.js → dist/urnovl-web-components/p-d85d4e58.entry.js} +1 -1
- package/dist/urnovl-web-components/urnovl-web-components.css +1 -0
- package/dist/urnovl-web-components/urnovl-web-components.esm.js +1 -1
- package/package.json +65 -63
- package/www/build/{p-82a4c6d4.js → p-05bb633d.js} +1 -1
- package/{dist/urnovl-web-components/p-17b40000.entry.js → www/build/p-083f386c.entry.js} +1 -1
- package/www/build/{p-c92a7c6a.entry.js → p-141edbca.entry.js} +1 -1
- package/www/build/{p-4797500b.entry.js → p-2dc2dda4.entry.js} +1 -1
- package/www/build/{p-9b8462f9.entry.js → p-4fa7eb66.entry.js} +2 -2
- package/www/build/p-5022a378.css +1 -0
- package/www/build/p-70d6bfd5.entry.js +1 -0
- package/www/build/{p-bb4f0416.entry.js → p-76465d4f.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-053cccec.entry.js → www/build/p-825855e7.entry.js} +1 -1
- package/www/build/{p-b11441d3.entry.js → p-8425a98f.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-e68740ad.entry.js → www/build/p-89972c7b.entry.js} +1 -1
- package/www/build/p-a28242db.entry.js +1 -0
- package/www/build/p-ab23a299.entry.js +1 -0
- package/www/build/{p-33f3af12.entry.js → p-b7a6e0e7.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-1ca8b142.entry.js → www/build/p-d85d4e58.entry.js} +1 -1
- package/www/build/urnovl-web-components.css +1 -0
- package/www/build/urnovl-web-components.esm.js +1 -1
- package/dist/components/p-bab10721.js +0 -64
- package/dist/urnovl-web-components/p-7789826c.entry.js +0 -1
- package/dist/urnovl-web-components/p-b18e48ad.entry.js +0 -1
- package/dist/urnovl-web-components/p-f83f6c8a.entry.js +0 -1
- package/www/build/p-7789826c.entry.js +0 -1
- package/www/build/p-b18e48ad.entry.js +0 -1
- package/www/build/p-f83f6c8a.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["ur-novl-carousel.cjs",[[1,"ur-novl-carousel",{"novls":[16],"breakpoints":[16],"grid":[16],"slidesPerView":[8,"slides-per-view"],"spaceBetween":[8,"space-between"],"navigation":[4]}]]],["ur-page-profile.cjs",[[1,"ur-page-profile",{"avatar":[8],"name":[8],"description":[8],"location":[8],"facebook_url":[8],"twitter_url":[8],"linkedin_url":[8],"email":[8],"phone":[8],"website":[8],"stories":[2],"views":[2],"following":[2],"followers":[2],"members":[2],"showFollow":[4,"show-follow"],"showBecomeMember":[4,"show-become-member"],"showDonate":[4,"show-donate"],"showSendMessage":[4,"show-send-message"],"languages":[1],"genres":[1],"literatureTypes":[1,"literature-types"],"pageCreatorName":[8,"page-creator-name"],"pageCreatorImage":[8,"page-creator-image"],"pageCreationDate":[8,"page-creation-date"]}]]],["ur-page.cjs",[[1,"ur-page",{"pageTitle":[1,"page-title"],"pageCover":[8,"page-cover"],"pageCoverFallback":[1,"page-cover-fallback"],"followers":[2],"showStats":[4,"show-stats"],"pageDescription":[8,"page-description"]}]]],["ur-select.cjs",[[1,"ur-select",{"label":[1],"name":[1],"value":[1],"placeholder":[1],"helper":[1],"readonly":[4],"disabled":[4],"clearable":[4],"multiple":[4],"endAligned":[4,"end-aligned"],"variant":[1],"placement":[1],"icon":[1],"endIcon":[1,"end-icon"],"form":[1],"items":[16],"selectedValue":[32]},null,{"value":["valueChanged"]}]]],["ur-user.cjs",[[1,"ur-user",{"userTitle":[1,"user-title"],"userCover":[8,"user-cover"],"userCoverFallback":[1,"user-cover-fallback"],"followers":[2],"showStats":[4,"show-stats"],"userDescription":[8,"user-description"]}]]],["ur-button-icon.cjs",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-checkbox.cjs",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip.cjs",[[0,"ur-chip",{"label":[1],"border":[1],"radius":[1],"size":[1],"backColor":[1,"back-color"],"fontColor":[1,"font-color"],"loading":[4],"disabled":[4]}]]],["ur-dialog.cjs",[[1,"ur-dialog",{"description":[1],"open":[4],"fullscreen":[4],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"borderRadius":[1,"border-radius"],"openDialog":[64],"closeDialog":[64]}]]],["ur-loader.cjs",[[1,"ur-loader"]]],["ur-locale-filter-button.cjs",[[1,"ur-locale-filter-button",{"count":[2]}]]],["ur-locale-filter-panel.cjs",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16]}]]],["ur-profile.cjs",[[1,"ur-profile",{"name":[8],"description":[8],"location":[8],"facebook_url":[8],"twitter_url":[8],"linkedin_url":[8],"email":[8],"phone":[8],"website":[8],"show_follow":[4],"show_donate":[4],"show_become_member":[4],"show_send_message":[4],"show_stats":[4],"stories_count":[2],"views_count":[2],"followers_count":[2],"writers_count":[2],"show_languages":[4],"languages":[1],"show_genres":[4],"genres":[1],"show_member_since":[4],"member_since":[1]}]]],["ur-radio-button.cjs",[[1,"ur-radio-button",{"disabled":[4],"checked":[4],"text":[1]}]]],["ur-segment-button.cjs",[[1,"ur-segment-button",{"likeLabel":[1,"like-label"]}]]],["ur-switch.cjs",[[1,"ur-switch",{"disabled":[4],"checked":[4]}]]],["ur-tabs.cjs",[[1,"ur-tabs",{"tabs":[16],"panels":[16]}]]],["ur-text-field.cjs",[[1,"ur-text-field",{"label":[1],"placeholder":[1],"helper":[1],"disabled":[4],"variant":[1],"value":[1],"endIcon":[8,"end-icon"]}]]],["ur-user-profile.cjs",[[1,"ur-user-profile"]]],["ur-avatar.cjs",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-menu-item.cjs",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4]}]]],["ur-novl.cjs",[[1,"ur-novl",{"novlTitle":[1,"novl-title"],"novlCover":[8,"novl-cover"],"novlCoverFallback":[1,"novl-cover-fallback"],"likes":[2],"views":[2],"showStats":[4,"show-stats"],"novlDescription":[8,"novl-description"],"authorAvatar":[8,"author-avatar"],"authorName":[8,"author-name"],"published":[4],"price":[1],"publisherAvatar":[1,"publisher-avatar"],"publisherName":[1,"publisher-name"]}]]],["ur-button-arrow-left_2.cjs",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-button.cjs",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["ur-novl-carousel.cjs",[[1,"ur-novl-carousel",{"novls":[16],"breakpoints":[16],"grid":[16],"slidesPerView":[8,"slides-per-view"],"spaceBetween":[8,"space-between"],"navigation":[4]}]]],["ur-page-profile.cjs",[[1,"ur-page-profile",{"avatar":[8],"name":[8],"description":[8],"location":[8],"facebook_url":[8],"twitter_url":[8],"linkedin_url":[8],"email":[8],"phone":[8],"website":[8],"stories":[2],"views":[2],"following":[2],"followers":[2],"members":[2],"showFollow":[4,"show-follow"],"showBecomeMember":[4,"show-become-member"],"showDonate":[4,"show-donate"],"showSendMessage":[4,"show-send-message"],"languages":[1],"genres":[1],"literatureTypes":[1,"literature-types"],"pageCreatorName":[8,"page-creator-name"],"pageCreatorImage":[8,"page-creator-image"],"pageCreationDate":[8,"page-creation-date"]}]]],["ur-page.cjs",[[1,"ur-page",{"pageTitle":[1,"page-title"],"pageCover":[8,"page-cover"],"pageCoverFallback":[1,"page-cover-fallback"],"followers":[2],"showStats":[4,"show-stats"],"pageDescription":[8,"page-description"]}]]],["ur-select.cjs",[[1,"ur-select",{"label":[1],"name":[1],"value":[1],"placeholder":[1],"helper":[1],"readonly":[4],"disabled":[4],"clearable":[4],"multiple":[4],"endAligned":[4,"end-aligned"],"variant":[1],"placement":[1],"icon":[1],"endIcon":[1,"end-icon"],"form":[1],"items":[16],"selectedValue":[32]},null,{"value":["valueChanged"]}]]],["ur-user.cjs",[[1,"ur-user",{"userTitle":[1,"user-title"],"userCover":[8,"user-cover"],"userCoverFallback":[1,"user-cover-fallback"],"followers":[2],"showStats":[4,"show-stats"],"userDescription":[8,"user-description"]}]]],["ur-button-icon.cjs",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-checkbox.cjs",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip.cjs",[[0,"ur-chip",{"label":[1],"border":[1],"radius":[1],"size":[1],"backColor":[1,"back-color"],"fontColor":[1,"font-color"],"loading":[4],"disabled":[4]}]]],["ur-dialog.cjs",[[1,"ur-dialog",{"description":[1],"open":[4],"fullscreen":[4],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"borderRadius":[1,"border-radius"],"openDialog":[64],"closeDialog":[64]}]]],["ur-loader.cjs",[[1,"ur-loader"]]],["ur-locale-filter-button.cjs",[[1,"ur-locale-filter-button",{"count":[2]}]]],["ur-locale-filter-panel.cjs",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16]}]]],["ur-profile.cjs",[[1,"ur-profile",{"name":[8],"description":[8],"location":[8],"facebook_url":[8],"twitter_url":[8],"linkedin_url":[8],"email":[8],"phone":[8],"website":[8],"show_follow":[4],"show_donate":[4],"show_become_member":[4],"show_send_message":[4],"show_stats":[4],"stories_count":[2],"views_count":[2],"followers_count":[2],"writers_count":[2],"show_languages":[4],"languages":[1],"show_genres":[4],"genres":[1],"show_member_since":[4],"member_since":[1]}]]],["ur-radio-button.cjs",[[1,"ur-radio-button",{"disabled":[4],"checked":[4],"text":[1]}]]],["ur-segment-button.cjs",[[1,"ur-segment-button",{"likeLabel":[1,"like-label"]}]]],["ur-switch.cjs",[[1,"ur-switch",{"disabled":[4],"checked":[4]}]]],["ur-tabs.cjs",[[1,"ur-tabs",{"tabs":[16],"panels":[16]}]]],["ur-text-field.cjs",[[1,"ur-text-field",{"label":[1],"placeholder":[1],"helper":[1],"disabled":[4],"variant":[1],"value":[1],"endIcon":[8,"end-icon"]}]]],["ur-user-profile.cjs",[[1,"ur-user-profile"]]],["ur-avatar.cjs",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-menu-item.cjs",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4]}]]],["ur-novl.cjs",[[1,"ur-novl",{"loading":[4],"novlTitle":[1,"novl-title"],"novlCover":[8,"novl-cover"],"novlCoverFallback":[1,"novl-cover-fallback"],"likes":[2],"views":[2],"showStats":[4,"show-stats"],"novlDescription":[8,"novl-description"],"authorAvatar":[8,"author-avatar"],"authorName":[8,"author-name"],"published":[4],"price":[1],"publisherAvatar":[1,"publisher-avatar"],"publisherName":[1,"publisher-name"]}]]],["ur-button-arrow-left_2.cjs",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-button.cjs",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -36,7 +36,7 @@ const UrNovlCarousel = class {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: '782cdccc39ded1a7b0eef16a2d32952d45925e59' }, index.h("div", { key: '0303af06549a157a93fe238e07464b51e7a142f3', class: "carousel" }, this.navigation && (index.h("ur-button-arrow-left", { key: 'cc797ab8539947a86a5e4c7d1e72c9ac60614013' })), this.navigation && (index.h("ur-button-arrow-right", { key: '4ab32fddadbddf98a89929349d0dcc09ff3ffec4' })), index.h("swiper-container", { key: 'e57babb86aaa6e1bbb58a89dbc6148c26c3ff5c4', "breakpoint-base": "container", grid: this.grid, breakpoints: this.breakpoints, "slides-per-view": this.slidesPerView, "space-between": this.spaceBetween }, this.novls.map(novl => {
|
|
40
40
|
return (index.h("swiper-slide", null, index.h("ur-novl", Object.assign({}, novl))));
|
|
41
41
|
})))));
|
|
42
42
|
}
|
|
@@ -6,13 +6,14 @@ const index = require('./index-056c4ab5.js');
|
|
|
6
6
|
|
|
7
7
|
const NOVL_COVER_FALLBACK = 'data:image/webp;base64,UklGRtQAAABXRUJQVlA4TMgAAAAv/8f/EQfQla70pPIBIUHi/+9mIvqf8Z///Oc///nPf/7zn//85z//+c9//vOf//znP//5z3/+85///Oc///nPf/7zn//85z//+c9//vOf//znP//5z3/+85///Oc///nPf/7zn//85z//+c9//vOf//znP//5z3/+85///Oc///nPf/7zn//85z//+c9//vOf//znP//5z3/+85///Oc///nPf/7zn//85z//+c9//vOf//znP//5z3/+85///Oc///nPf/7vAQ==';
|
|
8
8
|
|
|
9
|
-
const urNovlCss = ":host {\n --novl-width: 100%;\n --novl-border-radius: 8px;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: content-box;\n container-type: inline-size;\n container-name: novl;\n}\n\n:host .novl {\n overflow: hidden;\n width: var(--novl-width);\n border-radius: var(--novl-border-radius);\n}\n\n:host .cover {\n aspect-ratio: 2.25;\n background-color: rgb(var(--mdui-color-error));\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n position: relative;\n}\n\n:host .cover .ongoing {\n background-color: rgb(var(--mdui-color-primary-container));\n height: 32px;\n width: 32px;\n border-radius: 50%;\n position: absolute;\n top: 8px;\n left: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: rgb(var(--mdui-color-primary));\n font-weight: 700;\n text-transform: uppercase;\n font-size: 14px;\n line-height: 14px;\n}\n\n:host .cover .ongoing span {\n position: relative;\n}\n\n:host .cover .price {\n position: absolute;\n top: 8px;\n right: 8px;\n border-radius: 25px;\n background: rgba(43, 43, 39, 0.55);\n padding: 9px 16px;\n box-sizing: border-box;\n line-height: 14px;\n font-weight: 700;\n font-size: 14px;\n color: #fff;\n}\n\n:host .cover .publisher {\n left: 0;\n bottom: 0;\n height: 48px;\n background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);\n display: flex;\n position: absolute;\n align-items: center;\n width: 100%;\n padding: 0 8px;\n box-sizing: border-box;\n column-gap: 8px;\n}\n\n:host .cover .publisher .avatar {\n height: 32px;\n width: 32px;\n border-radius: 50%;\n background-size: cover;\n}\n\n:host .cover .publisher .name {\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 12px; /* 100% */\n color: #fff;\n}\n\n:host .info {\n display: flex;\n flex-direction: column;\n padding: 8px;\n row-gap: 8px;\n background: rgb(var(--mdui-color-background));\n box-sizing: border-box;\n}\n\n:host .info .title {\n color: rgb(var(--mdui-color-on-background));\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* Number of lines */\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n:host .info .stats {\n font-size: 12px;\n font-weight: 400;\n line-height: 12px;\n display: flex;\n flex-direction: row;\n color: rgb(var(--mdui-color-on-background));\n}\n\n:host .info .stats b {\n font-weight: 700;\n}\n\n:host .info .stats .likes {\n display: flex;\n}\n\n:host .info .stats .likes .dot {\n margin: 0 4px;\n}\n\n:host .info .description {\n color: rgb(var(--mdui-color-on-background));\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 163.636% */\n display: -webkit-box;\n -webkit-line-clamp: 2; /* Number of lines */\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n:host .info .author {\n height: 32px;\n display: flex;\n align-items: center;\n font-size: 11px;\n font-style: normal;\n font-weight: 600;\n color: rgb(var(--mdui-color-on-background));\n cursor: pointer;\n column-gap: 8px;\n}\n\n:host .info .author .avatar {\n height: 32px;\n width: 32px;\n border-radius: 50%;\n background-size: cover;\n}\n\n:host .info .author .name {\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 12px;\n}\n\n@container novl (max-width: 300px) {\n :host .info .title {\n font-size: 14px;\n line-height: 1.2rem;\n }\n\n :host .info .author .avatar {\n height: 24px;\n width: 24px;\n }\n\n :host .cover .publisher {\n height: 40px;\n padding: 0 4px;\n }\n\n :host .cover .publisher .avatar {\n height: 24px;\n width: 24px;\n }\n\n :host .cover .publisher .name {\n font-size: 11px;\n }\n\n :host .info .author .name {\n font-size: 11px;\n }\n\n :host .cover .ongoing {\n width: 24px;\n height: 24px;\n left: 4px;\n }\n\n :host .cover .price {\n padding: 5px 8px;\n font-size: 12px;\n }\n\n :host .info .stats {\n font-size: 11px;\n }\n\n :host .info .description{\n font-size: 11px;\n }\n\n :host .info {\n row-gap: 4px;\n padding: 4px;\n }\n}\n";
|
|
9
|
+
const urNovlCss = ":host {\n --novl-width: 100%;\n --novl-border-radius: 8px;\n}\n\n@keyframes placeholderAnimate {\n 0%{ background-position: -650px 0; }\n 100%{ background-position: 650px 0; }\n}\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: content-box;\n container-type: inline-size;\n container-name: novl;\n}\n\n:host .novl {\n overflow: hidden;\n width: var(--novl-width);\n border-radius: var(--novl-border-radius);\n}\n\n:host .cover {\n aspect-ratio: 2.25;\n background-color: rgb(var(--mdui-color-error));\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n position: relative;\n}\n\n:host .cover.loading {\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: placeholderAnimate;\n background: #f6f7f8;\n background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);\n background-size: 1000px;\n}\n\n:host .cover .ongoing {\n background-color: rgb(var(--mdui-color-primary-container));\n height: 32px;\n width: 32px;\n border-radius: 50%;\n position: absolute;\n top: 8px;\n left: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: rgb(var(--mdui-color-primary));\n font-weight: 700;\n text-transform: uppercase;\n font-size: 14px;\n line-height: 14px;\n}\n\n:host .cover .ongoing span {\n position: relative;\n}\n\n:host .cover .price {\n position: absolute;\n top: 8px;\n right: 8px;\n border-radius: 25px;\n background: rgba(43, 43, 39, 0.55);\n padding: 9px 16px;\n box-sizing: border-box;\n line-height: 14px;\n font-weight: 700;\n font-size: 14px;\n color: #fff;\n}\n\n:host .cover .publisher {\n left: 0;\n bottom: 0;\n height: 48px;\n background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);\n display: flex;\n position: absolute;\n align-items: center;\n width: 100%;\n padding: 0 8px;\n box-sizing: border-box;\n column-gap: 8px;\n}\n\n:host .cover .publisher .avatar {\n height: 32px;\n width: 32px;\n border-radius: 50%;\n background-size: cover;\n}\n\n:host .cover .publisher .name {\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 12px; /* 100% */\n color: #fff;\n}\n\n:host .info {\n display: flex;\n flex-direction: column;\n padding: 8px;\n row-gap: 8px;\n background: rgb(var(--mdui-color-background));\n box-sizing: border-box;\n}\n\n:host .info:has(.loading) {\n padding-left: 0;\n padding-right: 0;\n}\n\n:host .info .title {\n color: rgb(var(--mdui-color-on-background));\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* Number of lines */\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n:host .info .title.loading {\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: placeholderAnimate;\n background: #f6f7f8;\n background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);\n background-size: 1000px;\n}\n\n:host .info .stats {\n font-size: 12px;\n font-weight: 400;\n line-height: 12px;\n display: flex;\n flex-direction: row;\n color: rgb(var(--mdui-color-on-background));\n}\n\n:host .info .stats.loading {\n height: 12px;\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: placeholderAnimate;\n background: #f6f7f8;\n background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);\n background-size: 1000px;\n}\n\n:host .info .stats b {\n font-weight: 700;\n}\n\n:host .info .stats .likes {\n display: flex;\n}\n\n:host .info .stats .likes .dot {\n margin: 0 4px;\n}\n\n:host .info .description {\n color: rgb(var(--mdui-color-on-background));\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 163.636% */\n display: -webkit-box;\n -webkit-line-clamp: 2; /* Number of lines */\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n:host .info .description.loading {\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: placeholderAnimate;\n background: #f6f7f8;\n background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);\n background-size: 1000px;\n}\n\n:host .info .author {\n height: 32px;\n display: flex;\n align-items: center;\n font-size: 11px;\n font-style: normal;\n font-weight: 600;\n color: rgb(var(--mdui-color-on-background));\n cursor: pointer;\n column-gap: 8px;\n}\n\n:host .info .author .avatar {\n height: 32px;\n width: 32px;\n border-radius: 50%;\n background-size: cover;\n}\n\n:host .info .author .avatar.loading {\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: placeholderAnimate;\n background: #f6f7f8;\n background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);\n background-size: 1000px;\n}\n\n:host .info .author .name {\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 12px;\n}\n\n:host .info .author .name.loading {\n width: 50%;\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: placeholderAnimate;\n background: #f6f7f8;\n background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);\n background-size: 1000px;\n}\n\n@container novl (max-width: 300px) {\n :host .info .title {\n font-size: 14px;\n line-height: 1.2rem;\n }\n\n :host .info .author .avatar {\n height: 24px;\n width: 24px;\n }\n\n :host .cover .publisher {\n height: 40px;\n padding: 0 4px;\n }\n\n :host .cover .publisher .avatar {\n height: 24px;\n width: 24px;\n }\n\n :host .cover .publisher .name {\n font-size: 11px;\n }\n\n :host .info .author .name {\n font-size: 11px;\n }\n\n :host .cover .ongoing {\n width: 24px;\n height: 24px;\n left: 4px;\n }\n\n :host .cover .price {\n padding: 5px 8px;\n font-size: 12px;\n }\n\n :host .info .stats {\n font-size: 11px;\n }\n\n :host .info .description{\n font-size: 11px;\n }\n\n :host .info {\n row-gap: 4px;\n padding: 4px;\n }\n}\n";
|
|
10
10
|
const UrNovlStyle0 = urNovlCss;
|
|
11
11
|
|
|
12
12
|
const UrNovl = class {
|
|
13
13
|
constructor(hostRef) {
|
|
14
14
|
index.registerInstance(this, hostRef);
|
|
15
15
|
this.authorClicked = index.createEvent(this, "authorClicked", 7);
|
|
16
|
+
this.loading = false;
|
|
16
17
|
this.novlTitle = 'Novl title';
|
|
17
18
|
this.novlCover = undefined;
|
|
18
19
|
this.novlCoverFallback = NOVL_COVER_FALLBACK;
|
|
@@ -28,9 +29,9 @@ const UrNovl = class {
|
|
|
28
29
|
this.publisherName = null;
|
|
29
30
|
}
|
|
30
31
|
render() {
|
|
31
|
-
return (index.h(index.Host, { key: '
|
|
32
|
+
return (index.h(index.Host, { key: '458f23b073d8fb709f2cf045d4028e7dbd01fe17' }, index.h("div", { key: 'f1c29d27093a2227e4bf994af75baf8398a930fe', class: "novl" }, this.loading && index.h("section", { key: '4a9c3a78ff453969bb69edc61f4ec868786e7e8b', class: "cover loading" }), !this.loading && index.h("section", { key: '8b9a1195e3bc3bf17dfb816e2a844b225979cd54', class: "cover", style: {
|
|
32
33
|
backgroundImage: this.novlCover ? `url(${this.novlCover})` : `url(${this.novlCoverFallback})`,
|
|
33
|
-
} }, !this.published && (index.h("div", { key: '
|
|
34
|
+
} }, !this.published && (index.h("div", { key: '3f0ce884d9fcf33a15728908bd2de5a121a86b68', class: "ongoing" }, index.h("span", { key: 'c1f1210cc7e8520ae26002326c92bf553e4cbddc' }, "O"))), !!this.price && (index.h("div", { key: '372cb31e5cb4932fde30017ec1fc7083566f7bc2', class: "price" }, index.h("span", { key: 'ce623ff2a2ea5c5c5d8e99cfc57cd2504c7900d7' }, this.price))), !!this.publisherAvatar && this.publisherName && (index.h("div", { key: '8f26dbd53e364481f51779b7ae52293dfabe8e4f', class: "publisher" }, index.h("div", { key: 'ef20c9403c20ecc96052671ab3eaa18f5320757b', class: "avatar", style: { backgroundImage: `url(${this.publisherAvatar})` } }), index.h("div", { key: '4cd860be24211f91c4696040399a4f9a3689585b', class: "name" }, this.publisherName)))), index.h("section", { key: '51300b8a10754cf88c82a0015c913f8dfdc90191', class: "info" }, this.loading && index.h("div", { key: '122e2e0a7821496fab4ef12a4b8d570681ce4ca7', class: "title loading" }, "\u00A0"), !this.loading && index.h("div", { key: '84f48575875a9283fc4f99a2ea72e1f765a82b4c', class: "title" }, this.novlTitle), this.loading && index.h("div", { key: 'be3f1e39d1dc300dc99e8daf0e5ce723ad33c0ca', class: "stats loading" }), this.showStats && !this.loading && (index.h("div", { key: '12aa818dd17af469eab31d48b296c83176e16cf8', class: "stats" }, index.h("div", { key: 'cb4495e0f8fc1956a1742ce8e9fe38291792a205', class: "likes" }, index.h("div", { key: '9dd1e5bae9d82386d5e085330ed56698c05c04c8' }, index.h("b", { key: '34b0941f5f4af64f97848419e385005b94829c0c' }, this.likes), " Likes"), index.h("div", { key: '35ce9b6753609be4dd098b5c26d3037fa26c39c3', class: "dot" }, "\u00B7")), index.h("div", { key: 'ace0bd67b77cf0956a720f6fa6d2cde6c5553a0f', class: "views" }, index.h("b", { key: '29f73aef58cbc52a9865e3fcc975cb3edcb76565' }, this.views), " Views"))), this.loading && index.h("div", { key: '8039ee28ce37c1cb470823eaa4dca8829c86f08c', class: "description loading" }, "\u00A0"), !this.loading && index.h("div", { key: '93c74eac2d560fab777ac2a2d09cd64ef625e7c4', class: "description" }, this.novlDescription), index.h("div", { key: '904fdc9b72c99f8f518734f4102f9c8934b030dc', class: "author", onClick: _ => this.authorClicked.emit() }, this.loading && index.h("div", { key: '04ea2013f5277121afdbd5e60ee72a20fe939e37', class: "avatar loading" }, "\u00A0"), !this.loading && index.h("div", { key: '985262a1bd05b701006f652797b5b089d75a37b3', class: "avatar", style: { backgroundImage: `url(${this.authorAvatar})` } }), this.loading && index.h("div", { key: 'f5094c264cf5ea51ab220893975ca131474ca67d', class: "name loading" }, "\u00A0"), !this.loading && index.h("div", { key: 'd85a6037900f7c4667fc5b6110420c2951ec0ef7', class: "name" }, this.authorName))))));
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
UrNovl.style = UrNovlStyle0;
|
|
@@ -114,13 +114,13 @@ const UrPageProfile = class {
|
|
|
114
114
|
this.pageCreationDate = null;
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
|
-
return (index.h(index.Host, { key: '
|
|
117
|
+
return (index.h(index.Host, { key: '963a8a615452f48134f9bbfda911bf6912e173a8' }, index.h("div", { key: '7978303cd2b6b1c0cae85d3c34554c140068d35c', class: "profile" }, index.h("div", { key: '180340a251879ade3fe2f2ea71f044865c9f3b65', class: "avatar" }, index.h("ur-avatar", { key: '7cf95d5e6d33da450e25eee97818e27594f1c112', border: "5px", radius: "25px", size: "96px", src: this.avatar, name: this.name })), index.h("div", { key: 'd5a69965adb620ca59ee2a7191c60fa5b7ce8a41', class: "info" }, index.h("div", { key: '772aba0fee8c7998a225ea555df39cb93eca262f', class: "name" }, this.name), this.description && index.h("div", { key: '7bef428a35527dc510d7fb99eb702f460913d097', class: "description" }, this.description), this.location && index.h("div", { key: 'd69bef30e54de35965bd1e1ac80261b9eb97be05', class: "location" }, this.location), (!!this.facebook_url || !!this.twitter_url || !!this.linkedin_url || !!this.email || !!this.phone) && (index.h("div", { key: 'b99b725dcfe76b7abffcaa718f058540f58158f9', class: "social" }, this.facebook_url && index.h("a", { key: '3e81bc5f8ff3ffea643b0caf01b0601ca09ee3af', href: this.facebook_url, title: "facebook", target: "_blank" }, index.h("span", { key: 'f36bc5c7c4001baae431766ec79fe0e2e5b599df', class: "icon", innerHTML: Icons.facebook })), this.twitter_url && index.h("a", { key: 'ccec669c5df8439f05a24882f349c1d5ca89cd27', href: this.twitter_url, title: "twitter", target: "_blank" }, index.h("span", { key: '7e5c439cde3a9d71022c661045adeff2acfa5fac', class: "icon", innerHTML: Icons.twitter })), this.linkedin_url && index.h("a", { key: '69131c35bb6b0e1160171b3b4747ebdabcf1bd16', href: this.linkedin_url, title: "linkedin", target: "_blank" }, index.h("span", { key: '40af617ce078ae0592f2f355708cbd23af3b55e1', class: "icon", innerHTML: Icons.linkedin })), this.email && index.h("a", { key: 'd2e7a6c4d97abc98304348d8fbd2611992dd700b', href: "mailto:" + this.email, title: "email", target: "_blank" }, index.h("span", { key: 'f1ddacfd2fc5a5ce7fd3a836e1f8c26320e50ee6', class: "icon", innerHTML: Icons.email })), this.phone && index.h("a", { key: 'a02778875c44c7ebeb6cab71de93fe6cf24a1126', href: "tel:" + this.phone, title: "phone", target: "_blank" }, index.h("span", { key: 'f762fd2481e0ba9264449b519d608ef4fe9f5836', class: "icon", innerHTML: Icons.phone })))), this.website && index.h("a", { key: 'b93c99ba439021e56d2a8f89bf6ab919fb878b73', class: "website", href: this.website, title: "website", target: "_blank" }, index.h("span", { key: 'f172e00516834116b9ff09f73264b381bf6d70b4', class: "icon", innerHTML: Icons.website }), this.website)), index.h("div", { key: '0eca555b0f3c275e098248cbc3439fb1a6d5276f', class: "actions" }, this.showFollow && index.h("ur-button", { key: 'f7de9df920f1cdcec3526866c36c05ecac3e4546', class: "follow", onClick: () => this.follow.emit() }, "Follow"), this.showBecomeMember && index.h("ur-button", { key: '28f76719dff95cfd9dae4a7b8d0a932ce78acfba', class: "follow", variant: "outlined", onClick: () => this.member.emit() }, "Become a Member"), this.showDonate && index.h("ur-button", { key: '40e53f3ade9eea3cd5291725ccc05084e8ad64e0', class: "follow", variant: "outlined", onClick: () => this.donate.emit() }, "Donate"), this.showSendMessage && index.h("ur-button", { key: '74b122dc13442e00eb70cd97cec9226b0e496d3a', class: "follow", variant: "outlined", onClick: () => this.sendMessage.emit() }, "Message")), index.h("div", { key: '7c5231fb39d1d071fd9f2e1996a9592cb6db313b', class: "stats" }, utils.isNumber(this.stories) && index.h("div", { key: 'c191969ec1d7f52b31d73d4b6984a028dcc3e9fd' }, index.h("div", { key: '6822bc5c6de98c650e12b38bd5298e7fb14a5fae', class: "stat" }, index.h("div", { key: 'c038ffd2017ef0b196b14716ff00955bd32a2081', class: "key" }, "Stories"), index.h("div", { key: '2ec37956747b3e81acef9d105d4566b0534b4e99', class: "value" }, this.stories))), utils.isNumber(this.views) && index.h("div", { key: '3eec0eab7ebfab17ee7bb4be8eb42cd910719085' }, index.h("div", { key: '674ebb3a34d45ee13db325897c4521b6d7e75f4a', class: "stat" }, index.h("div", { key: 'ed48e89f94770b396f5429359cde32bb6088fade', class: "key" }, "Views"), index.h("div", { key: '89a69057ea29c0167caf8a547e20489143c47f03', class: "value" }, this.views))), utils.isNumber(this.following) && index.h("div", { key: 'bb5e7307d40e9062b8effcf18cac503775f5c044' }, index.h("div", { key: '2a1ceb6bd59e7fedde64785820ee098a1041baaa', class: "stat" }, index.h("div", { key: '71ef55938864b822b0f66575b4e6797a77ebaf83', class: "key" }, "Following"), index.h("div", { key: 'dfcba447fc84ab6d46fcb40e990884311b509e09', class: "value" }, this.following))), utils.isNumber(this.followers) && index.h("div", { key: '62e3ff7391c9f70ad0b988640ba0c43d78861176' }, index.h("div", { key: '8886db5948ba5f6648903efc1cc87fb9994fac5e', class: "stat" }, index.h("div", { key: 'e1fe1282f4c28b58f98b514c3d6ef6a055123d43', class: "key" }, "Followers"), index.h("div", { key: '7eb8661471d54159ab182744101dab856bbc3a06', class: "value" }, this.followers))), utils.isNumber(this.members) && index.h("div", { key: '41652879286f3b4cfc3c17882be9b217c25d2a1c' }, index.h("div", { key: '88f9d3c3cb122091ac796a3e0360b2b2e04e22e5', class: "stat" }, index.h("div", { key: '79ddbac86ad92d8a61efd8f1a14847595f1fe6fe', class: "key" }, "Members"), index.h("div", { key: 'b969730bbfddf415d7788270b3b2ac33910900c8', class: "value" }, this.members)))), this.languages && index.h("div", { key: 'a070ff4e81ccfbabefa0751c9075bcf93ba226fd', class: "languages" }, index.h("div", { key: '6c405650989501681bc5649d98d560f9996cecf5', class: "category" }, "Languages"), index.h("div", { key: '7cc2a24e96c303a06af57f419c52236b62369e0f', class: "items" }, this.languages.split(",").map(language => {
|
|
118
118
|
return index.h("div", { class: "chip" }, language);
|
|
119
|
-
}))), this.genres && index.h("div", { key: '
|
|
119
|
+
}))), this.genres && index.h("div", { key: 'e4fcb9e691526a0b9e7ff7ed6e44905e1fe6010c', class: "genres" }, index.h("div", { key: '03621c9dbd78495c994ddbe42cc9134ed4bb8a8a', class: "category" }, "Genres"), index.h("div", { key: '4748865b6991890876521b0aacac7d407dd10a48', class: "items" }, this.genres.split(",").map(genre => {
|
|
120
120
|
return index.h("div", { class: "chip" }, genre);
|
|
121
|
-
}))), this.literatureTypes && index.h("div", { key: '
|
|
121
|
+
}))), this.literatureTypes && index.h("div", { key: 'dd3f5762b4892a784fc1be791824af54f0424bc1', class: "literature-types" }, index.h("div", { key: 'b452ea473ac4572fe565a250495fb647ba7d76d4', class: "category" }, "Literature Types"), index.h("div", { key: '1c17e1391e4fd794d5743d7c84d4f32bd9d3798a', class: "items" }, this.literatureTypes.split(",").map(litType => {
|
|
122
122
|
return index.h("div", { class: "chip" }, litType);
|
|
123
|
-
}))), this.pageCreatorName && this.pageCreatorImage && index.h("div", { key: '
|
|
123
|
+
}))), this.pageCreatorName && this.pageCreatorImage && index.h("div", { key: '2c4c694f6b79000964316147372625b23fb1f2ad', class: "created-by" }, index.h("div", { key: '2223bb59f47156612fbb6d3d301e346e69db40a3', class: "category" }, "Created by"), index.h("div", { key: '276a0b86df5fc4396ac2233f631446d92c2bdfd4', class: "person" }, index.h("ur-avatar", { key: '990d7aa53fcc6a17b0ad9b46898857768c33a457', name: this.pageCreatorName, src: this.pageCreatorImage }), index.h("div", { key: '051faaef94ad794d009032e2659c48dd5e3b541e' }, this.pageCreatorName))), this.pageCreationDate && index.h("div", { key: '91468c92656ac6fd021e0575bc1272cec37135af', class: "page-creation-date" }, "Page Created: ", this.pageCreationDate))));
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
UrPageProfile.style = UrPageProfileStyle0;
|
|
@@ -21,10 +21,10 @@ const UrPage = class {
|
|
|
21
21
|
this.pageDescription = undefined;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (index.h(index.Host, { key: '
|
|
24
|
+
return (index.h(index.Host, { key: '5ced6a2844e3fa048e069c46d5413ddf37c9a15f' }, index.h("div", { key: 'a2f2ae521a8da65724168b8a148ec75f3702460e', class: "page" }, index.h("section", { key: '76e2057914b616e23293b7660ac5648c5ebf794a', class: 'cover', style: {
|
|
25
25
|
backgroundImage: this.pageCover ? `url(${this.pageCover})` : `url(${this.pageCoverFallback})`
|
|
26
|
-
} }), index.h("section", { key: '
|
|
27
|
-
index.h("div", { key: '
|
|
26
|
+
} }), index.h("section", { key: '9c2cb0c846eac35cd7de852f2ba45ba9f79fac8a', class: 'info' }, index.h("div", { key: 'b72677d75069b6c9a98b6db91ff42c0345533592', class: 'title' }, this.pageTitle), index.h("div", { key: '6ab6854371ddbfdf3b248d281187b90ee7efe82f', class: "description" }, this.pageDescription), this.showStats &&
|
|
27
|
+
index.h("div", { key: 'f6a302de0d6a256ea8a5731871caed78c83f1f90', class: 'stats' }, index.h("div", { key: '287d01032e51e9e1add24bbb3300dfa5d34fdc29', class: "followers" }, index.h("div", { key: '0b9cb148d9102db38488acff1010712d4c7a868a' }, index.h("b", { key: '6a36f0352078c8c6bd9208b27796e1695d3fda25' }, this.followers), " Followers"))), index.h("div", { key: '78c0d5e83ddc1ff67965e54c4f8dbcc7d4f4917f', class: "actions" }, index.h("ur-button", { key: 'eac92bd922fc5e4feb8390b9fcc3e3417b9801a7', class: "follow", variant: "outlined", onClick: () => this.pageFollowClicked.emit() }, "Follow"))))));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
UrPage.style = UrPageStyle0;
|
|
@@ -106,11 +106,11 @@ const UrProfile = class {
|
|
|
106
106
|
this.member_since = 'May 25, 20215';
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
|
-
return (index.h(index.Host, { key: '
|
|
109
|
+
return (index.h(index.Host, { key: 'cbfac5df4eb0663c3ae5ede0dadde563d6a18140' }, index.h("div", { key: 'c492ecad4dd9cb935f9ecb784c84eb601cbde3b3', class: "profile" }, index.h("div", { key: '5d99eb84ef412bf48dcaf7b445a5c5aa08e01e82', class: "name" }, this.name), this.description && index.h("div", { key: '101f69c99ba42b466d324923293cc5f52ecc3554', class: "description" }, this.description), this.location && index.h("div", { key: '5faa860fe5f02de54c630bd1631da7254c48e18f', class: "location" }, this.location), index.h("div", { key: '7ed33d111241d509375c4640d94812f72b48cc07', class: "social" }, this.facebook_url && index.h("a", { key: '40d83374f7e54cd62d746f13e9c70c1c7f597efe', href: this.facebook_url, title: "facebook", target: "_blank" }, index.h("span", { key: '4cddfb5f74c12e28143bdff8699b1fb82d9173b8', class: "icon", innerHTML: Icons.facebook })), this.twitter_url && index.h("a", { key: '628259770e6c0977782f2c97cc8b93c9d60d2a66', href: this.twitter_url, title: "twitter", target: "_blank" }, index.h("span", { key: 'c98081d4178f35e17f63a5c3267e9f48146400ae', class: "icon", innerHTML: Icons.twitter })), this.linkedin_url && index.h("a", { key: '4c08ea38fb2470d57fc04dc958dbedcc89881e4f', href: this.linkedin_url, title: "linkedin", target: "_blank" }, index.h("span", { key: 'c670fc6c6744b672edfd6f5edd197bd48e5e3eeb', class: "icon", innerHTML: Icons.linkedin })), this.email && index.h("a", { key: 'e9f42c6304100e12cbb43afceefa11cbdc8af409', href: "mailto:" + this.email, title: "email", target: "_blank" }, index.h("span", { key: '038b9e54f242f9bcd05c03ddf0eb4b49384490a1', class: "icon", innerHTML: Icons.email })), this.phone && index.h("a", { key: 'e109644877cd23fe7737c5c0706039a9efe305d3', href: "tel:" + this.phone, title: "phone", target: "_blank" }, index.h("span", { key: '870436fed22e8d6f0b7bc8ffb97992f6c079e2f1', class: "icon", innerHTML: Icons.phone }))), this.website && index.h("a", { key: 'df3b9f3369f3feaae8f74ebafab85cb44e685491', class: "website", href: this.website, title: "website", target: "_blank" }, index.h("span", { key: 'ef5950a8430c6715f3b2af20d9150b89fcb23ec3', class: "icon", innerHTML: Icons.website }), this.website), this.show_follow && index.h("div", { key: 'fbe6b5d72bf9c0025ff9511faa31120565be77a3', class: "follow-action action" }, index.h("mdui-button", { key: '5d096201c2dc9570d2cfe80a6ee75b90a93c5316' }, "Follow")), this.show_donate && index.h("div", { key: 'efb5510f48813074570da6a1349c281f81ba8e56', class: "donate-action action" }, index.h("mdui-button", { key: '6b18b7be9024e3c59622faed2766419cbb56b759', variant: "outlined" }, "Donate")), this.show_become_member && index.h("div", { key: 'b820c8aa232cd578282a190b4a5e5658da95d649', class: "member-action action" }, index.h("mdui-button", { key: 'ed1832299fc0fa99a7e96cae94a96b8a02e99724', variant: "outlined" }, "Become Member")), this.show_send_message && index.h("div", { key: 'db66091eb67b6297ab30d165094f82c09cb7d3e8', class: "message-action action" }, index.h("mdui-button", { key: '9b9342863a3c1f86c7cbf16461689f220f4ed654', variant: "outlined" }, "Message")), this.show_stats && index.h("div", { key: 'd49fe6aa8ff43bf1090e607c547fd972dad18dbf', class: "stats" }, index.h("div", { key: '551ba594ee9e5dacbdf7989de2e9680e8b432407', class: "stat" }, index.h("span", { key: '3c2c48a0c8d49e64fa0014174d7ab9a708abc14b', class: "label" }, "Stories"), index.h("span", { key: '9848ff055cf4570c848f3abd8267038b8ec7a1ca', class: "value" }, this.stories_count)), index.h("div", { key: '2ec31330d974348ee8f84208967fe44866aa95a5', class: "stat" }, index.h("span", { key: '40377be791d844ceb591fc262c9b01b96dc87e07', class: "label" }, "Views"), index.h("span", { key: 'af0e640550d48aef4d5843f0e73c69ea9182a98f', class: "value" }, this.views_count)), index.h("div", { key: 'f4d0ccb491c34b1230801391ff31a05bdc9a9c94', class: "stat" }, index.h("span", { key: '547edd4d60aea4f81ea67f30e4e364b4cbd9fd10', class: "label" }, "Followers"), index.h("span", { key: '72aa09bf232d1b9cf10af1937533e9345480b25d', class: "value" }, this.followers_count)), index.h("div", { key: '046d536da490b39b38a7b33558ae2e3ec589f363', class: "stat" }, index.h("span", { key: '40b04d613711dd29a58646c517d1b602d95369c2', class: "label" }, "Writers"), index.h("span", { key: '1739926c2a44d7ce668867014a2de5adf6c53c9e', class: "value" }, this.writers_count))), this.show_languages && this.languages.trim().length > 0 && index.h("div", { key: '8b9587f2cde742c829c1d126cf5440aa77b61e1c', class: "languages" }, index.h("div", { key: 'a7e1b2c5c128126217166c2c6d9bc49eb50662c8', class: "title" }, "Languages"), index.h("div", { key: '719116bdd66eb79301d8b3f67635af6cff4b99d3', class: "pills" }, this.languages.split(',').map((language) => {
|
|
110
110
|
return index.h("div", { class: "pill" }, language.trim());
|
|
111
|
-
}))), this.show_genres && this.genres.trim().length > 0 && index.h("div", { key: '
|
|
111
|
+
}))), this.show_genres && this.genres.trim().length > 0 && index.h("div", { key: 'cae5845d89da37fb35385028d1502316a119f17c', class: "genres" }, index.h("div", { key: '86949d1db6d9af067e8e3de37564e75505b79c9c', class: "title" }, "Genres"), index.h("div", { key: '946ee3c4479122d5688321717bf0ab573cbf22eb', class: "pills" }, this.genres.split(',').map((genre) => {
|
|
112
112
|
return index.h("div", { class: "pill" }, genre.trim());
|
|
113
|
-
}))), this.show_member_since && this.member_since.trim().length > 0 && index.h("div", { key: '
|
|
113
|
+
}))), this.show_member_since && this.member_since.trim().length > 0 && index.h("div", { key: '89749a2f875a3027f347000ba59266bddd3df412', class: "member_since" }, "Member Since: ", this.member_since.trim()))));
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
UrProfile.style = UrProfileStyle0;
|
|
@@ -177,7 +177,7 @@ const UrRadioButton = class {
|
|
|
177
177
|
this.text = 'Mandarin';
|
|
178
178
|
}
|
|
179
179
|
render() {
|
|
180
|
-
return (index$1.h(index$1.Host, { key: '
|
|
180
|
+
return (index$1.h(index$1.Host, { key: 'e3b76e6e3f5fe840f4854b894f0324953e869a58' }, index$1.h("mdui-radio", { key: '8eb641b42d8f6f4da1410d85bfbe430b2875294a', checked: this.checked, disabled: this.disabled }, this.text)));
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
183
|
UrRadioButton.style = UrRadioButtonStyle0;
|
|
@@ -556,7 +556,7 @@ const UrSegment = class {
|
|
|
556
556
|
this.likeLabel = '2.5k';
|
|
557
557
|
}
|
|
558
558
|
render() {
|
|
559
|
-
return (index$1.h(index$1.Host, { key: '
|
|
559
|
+
return (index$1.h(index$1.Host, { key: '402638d784ea6d58fbd40377ba9642f7519dedc0' }, index$1.h("mdui-segmented-button-group", { key: '79f6c72d61f1fc6e64679154afebaddbf4c9c7d5', selects: "single" }, index$1.h("mdui-segmented-button", { key: '6d3b17236078d5b47eff0bb132ed0e5cacba3332', icon: "thumb_up--outlined", "selected-icon": "thumb_up", value: "like" }, this.likeLabel), index$1.h("mdui-segmented-button", { key: '902b48ca6f6152d1781b807ee16341d290e4dee0', icon: "thumb_down--outlined", "selected-icon": "thumb_down", value: "dislike" }))));
|
|
560
560
|
}
|
|
561
561
|
};
|
|
562
562
|
UrSegment.style = UrSegmentButtonStyle0;
|
|
@@ -1586,7 +1586,7 @@ const UrSelect = class {
|
|
|
1586
1586
|
this.selectedValue = this.value;
|
|
1587
1587
|
}
|
|
1588
1588
|
render() {
|
|
1589
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1589
|
+
return (index$1.h(index$1.Host, { key: 'bc0ce754dc69430cd004506ccee142e03f4876ae' }, index$1.h("mdui-select", { key: '3fcc70eb5feb78a37c6829ff92f9b95f8c347337', label: this.label, name: this.name, value: this.selectedValue, placeholder: this.placeholder, helper: this.helper, readonly: this.readonly, disabled: this.disabled, clearable: this.clearable, multiple: this.multiple, "end-aligned": this.endAligned, variant: this.variant, placement: this.placement, icon: this.icon, "end-icon": this.endIcon, form: this.form }, this.items.map(([label, value, disabled]) => (index$1.h("ur-menu-item", { value: value, label: label, disabled: disabled, onItemClicked: (event) => this.handleItemClicked(event) }))))));
|
|
1590
1590
|
}
|
|
1591
1591
|
static get watchers() { return {
|
|
1592
1592
|
"value": ["valueChanged"]
|
|
@@ -248,7 +248,7 @@ const UrSwitch = class {
|
|
|
248
248
|
this.checked = false;
|
|
249
249
|
}
|
|
250
250
|
render() {
|
|
251
|
-
return (index$1.h(index$1.Host, { key: '
|
|
251
|
+
return (index$1.h(index$1.Host, { key: '1779f651a883df115669237ac7b0fddf9a75e24f' }, index$1.h("mdui-switch", { key: '5c34fe9c95c3ff675ddcb645a117a5b2017b5574', checked: this.checked, disabled: this.disabled })));
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
UrSwitch.style = UrSwitchStyle0;
|
|
@@ -399,7 +399,7 @@ const UrTabs = class {
|
|
|
399
399
|
}
|
|
400
400
|
render() {
|
|
401
401
|
var _a;
|
|
402
|
-
return (index$1.h(index$1.Host, { key: '
|
|
402
|
+
return (index$1.h(index$1.Host, { key: 'ddff61a088a8306becf4c420bbfd5380d35d582a' }, index$1.h("mdui-tabs", { key: 'cac5e51967ccb0da5c7e584f208c7ff5ed3e1b7b', value: ((_a = this.tabs[0]) === null || _a === void 0 ? void 0 : _a.value) || 'tab-1' }, " ", this.tabs.map(tab => (index$1.h("mdui-tab", { value: tab.value }, tab.label))), this.panels.map(panel => (index$1.h("mdui-tab-panel", { value: panel.value }, index$1.h("slot", { name: `panel-${panel.value}` }, panel.content), " "))))));
|
|
403
403
|
}
|
|
404
404
|
};
|
|
405
405
|
UrTabs.style = UrTabsStyle0;
|
|
@@ -36,7 +36,7 @@ const UrTextField = class {
|
|
|
36
36
|
this.endIcon = null;
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: '50f9bd2892996d0d99ded046c815c709d40cade1' }, index.h("mdui-text-field", { key: '4381be17378e8a3305c1dedfe6052a394dcc7d54', variant: this.variant, disabled: this.disabled, value: this.value, label: !!this.label ? this.label : '', helper: !!this.helper ? this.helper : '', "end-icon": this.endIcon, placeholder: !!this.placeholder ? this.placeholder : '' })));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
UrTextField.style = UrTextFieldStyle0;
|
|
@@ -12,7 +12,7 @@ const UrUserProfile = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (index.h(index.Host, { key: '
|
|
15
|
+
return (index.h(index.Host, { key: '4903107b854c6f585384bd65fac9c6c903db551b' }, index.h("slot", { key: '187be2c87868290f105d2bc0d2a0ef9d98e8b4ea' })));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
UrUserProfile.style = UrUserProfileStyle0;
|
|
@@ -21,10 +21,10 @@ const UrUser = class {
|
|
|
21
21
|
this.userDescription = undefined;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (index.h(index.Host, { key: '
|
|
24
|
+
return (index.h(index.Host, { key: 'b71276d85a47a5314dee7d1fd273357cbaa44ece' }, index.h("div", { key: '1fc4d260a2af242ac2b7a3d75f2173c493836be1', class: "user" }, index.h("section", { key: '8a4c2d9b0266ceb0540972a68b794b98271bb220', class: 'cover', style: {
|
|
25
25
|
backgroundImage: this.userCover ? `url(${this.userCover})` : `url(${this.userCoverFallback})`
|
|
26
|
-
} }), index.h("section", { key: '
|
|
27
|
-
index.h("div", { key: '
|
|
26
|
+
} }), index.h("section", { key: '9df45e84e6e29258ed91f2eac9f7a7ef33d740ef', class: 'info' }, index.h("div", { key: '557db9d14c3ccec10ddba7cf64ca5a2e79e88826', class: 'title' }, this.userTitle), this.showStats &&
|
|
27
|
+
index.h("div", { key: 'f572d40ecf22da929306ff49ac601ff28e45016c', class: 'stats' }, index.h("div", { key: 'd1426abf4c8e682b011afea729b857e817274a6c', class: "followers" }, index.h("div", { key: 'ed82a651b15da7a302521d01a05042d8ea30415f' }, index.h("b", { key: 'd8ea88b58a571810a99acc70a8b5b55426e500b6' }, this.followers), " Followers"))), index.h("div", { key: '4bab6df76f81d11526485b0cb157e038f2e783ac', class: "description" }, this.userDescription), index.h("div", { key: '27c831cad266fc1e76c7651505cc24b062293e3a', class: "actions" }, index.h("ur-button", { key: '7d701e11d24adfdca44d3db92a4fc325f590e49a', class: "follow", variant: "outlined", onClick: () => this.userFollowClicked.emit() }, "Follow"))))));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
UrUser.style = UrUserStyle0;
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["ur-novl-carousel.cjs",[[1,"ur-novl-carousel",{"novls":[16],"breakpoints":[16],"grid":[16],"slidesPerView":[8,"slides-per-view"],"spaceBetween":[8,"space-between"],"navigation":[4]}]]],["ur-page-profile.cjs",[[1,"ur-page-profile",{"avatar":[8],"name":[8],"description":[8],"location":[8],"facebook_url":[8],"twitter_url":[8],"linkedin_url":[8],"email":[8],"phone":[8],"website":[8],"stories":[2],"views":[2],"following":[2],"followers":[2],"members":[2],"showFollow":[4,"show-follow"],"showBecomeMember":[4,"show-become-member"],"showDonate":[4,"show-donate"],"showSendMessage":[4,"show-send-message"],"languages":[1],"genres":[1],"literatureTypes":[1,"literature-types"],"pageCreatorName":[8,"page-creator-name"],"pageCreatorImage":[8,"page-creator-image"],"pageCreationDate":[8,"page-creation-date"]}]]],["ur-page.cjs",[[1,"ur-page",{"pageTitle":[1,"page-title"],"pageCover":[8,"page-cover"],"pageCoverFallback":[1,"page-cover-fallback"],"followers":[2],"showStats":[4,"show-stats"],"pageDescription":[8,"page-description"]}]]],["ur-select.cjs",[[1,"ur-select",{"label":[1],"name":[1],"value":[1],"placeholder":[1],"helper":[1],"readonly":[4],"disabled":[4],"clearable":[4],"multiple":[4],"endAligned":[4,"end-aligned"],"variant":[1],"placement":[1],"icon":[1],"endIcon":[1,"end-icon"],"form":[1],"items":[16],"selectedValue":[32]},null,{"value":["valueChanged"]}]]],["ur-user.cjs",[[1,"ur-user",{"userTitle":[1,"user-title"],"userCover":[8,"user-cover"],"userCoverFallback":[1,"user-cover-fallback"],"followers":[2],"showStats":[4,"show-stats"],"userDescription":[8,"user-description"]}]]],["ur-button-icon.cjs",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-checkbox.cjs",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip.cjs",[[0,"ur-chip",{"label":[1],"border":[1],"radius":[1],"size":[1],"backColor":[1,"back-color"],"fontColor":[1,"font-color"],"loading":[4],"disabled":[4]}]]],["ur-dialog.cjs",[[1,"ur-dialog",{"description":[1],"open":[4],"fullscreen":[4],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"borderRadius":[1,"border-radius"],"openDialog":[64],"closeDialog":[64]}]]],["ur-loader.cjs",[[1,"ur-loader"]]],["ur-locale-filter-button.cjs",[[1,"ur-locale-filter-button",{"count":[2]}]]],["ur-locale-filter-panel.cjs",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16]}]]],["ur-profile.cjs",[[1,"ur-profile",{"name":[8],"description":[8],"location":[8],"facebook_url":[8],"twitter_url":[8],"linkedin_url":[8],"email":[8],"phone":[8],"website":[8],"show_follow":[4],"show_donate":[4],"show_become_member":[4],"show_send_message":[4],"show_stats":[4],"stories_count":[2],"views_count":[2],"followers_count":[2],"writers_count":[2],"show_languages":[4],"languages":[1],"show_genres":[4],"genres":[1],"show_member_since":[4],"member_since":[1]}]]],["ur-radio-button.cjs",[[1,"ur-radio-button",{"disabled":[4],"checked":[4],"text":[1]}]]],["ur-segment-button.cjs",[[1,"ur-segment-button",{"likeLabel":[1,"like-label"]}]]],["ur-switch.cjs",[[1,"ur-switch",{"disabled":[4],"checked":[4]}]]],["ur-tabs.cjs",[[1,"ur-tabs",{"tabs":[16],"panels":[16]}]]],["ur-text-field.cjs",[[1,"ur-text-field",{"label":[1],"placeholder":[1],"helper":[1],"disabled":[4],"variant":[1],"value":[1],"endIcon":[8,"end-icon"]}]]],["ur-user-profile.cjs",[[1,"ur-user-profile"]]],["ur-avatar.cjs",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-menu-item.cjs",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4]}]]],["ur-novl.cjs",[[1,"ur-novl",{"novlTitle":[1,"novl-title"],"novlCover":[8,"novl-cover"],"novlCoverFallback":[1,"novl-cover-fallback"],"likes":[2],"views":[2],"showStats":[4,"show-stats"],"novlDescription":[8,"novl-description"],"authorAvatar":[8,"author-avatar"],"authorName":[8,"author-name"],"published":[4],"price":[1],"publisherAvatar":[1,"publisher-avatar"],"publisherName":[1,"publisher-name"]}]]],["ur-button-arrow-left_2.cjs",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-button.cjs",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["ur-novl-carousel.cjs",[[1,"ur-novl-carousel",{"novls":[16],"breakpoints":[16],"grid":[16],"slidesPerView":[8,"slides-per-view"],"spaceBetween":[8,"space-between"],"navigation":[4]}]]],["ur-page-profile.cjs",[[1,"ur-page-profile",{"avatar":[8],"name":[8],"description":[8],"location":[8],"facebook_url":[8],"twitter_url":[8],"linkedin_url":[8],"email":[8],"phone":[8],"website":[8],"stories":[2],"views":[2],"following":[2],"followers":[2],"members":[2],"showFollow":[4,"show-follow"],"showBecomeMember":[4,"show-become-member"],"showDonate":[4,"show-donate"],"showSendMessage":[4,"show-send-message"],"languages":[1],"genres":[1],"literatureTypes":[1,"literature-types"],"pageCreatorName":[8,"page-creator-name"],"pageCreatorImage":[8,"page-creator-image"],"pageCreationDate":[8,"page-creation-date"]}]]],["ur-page.cjs",[[1,"ur-page",{"pageTitle":[1,"page-title"],"pageCover":[8,"page-cover"],"pageCoverFallback":[1,"page-cover-fallback"],"followers":[2],"showStats":[4,"show-stats"],"pageDescription":[8,"page-description"]}]]],["ur-select.cjs",[[1,"ur-select",{"label":[1],"name":[1],"value":[1],"placeholder":[1],"helper":[1],"readonly":[4],"disabled":[4],"clearable":[4],"multiple":[4],"endAligned":[4,"end-aligned"],"variant":[1],"placement":[1],"icon":[1],"endIcon":[1,"end-icon"],"form":[1],"items":[16],"selectedValue":[32]},null,{"value":["valueChanged"]}]]],["ur-user.cjs",[[1,"ur-user",{"userTitle":[1,"user-title"],"userCover":[8,"user-cover"],"userCoverFallback":[1,"user-cover-fallback"],"followers":[2],"showStats":[4,"show-stats"],"userDescription":[8,"user-description"]}]]],["ur-button-icon.cjs",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-checkbox.cjs",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip.cjs",[[0,"ur-chip",{"label":[1],"border":[1],"radius":[1],"size":[1],"backColor":[1,"back-color"],"fontColor":[1,"font-color"],"loading":[4],"disabled":[4]}]]],["ur-dialog.cjs",[[1,"ur-dialog",{"description":[1],"open":[4],"fullscreen":[4],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"borderRadius":[1,"border-radius"],"openDialog":[64],"closeDialog":[64]}]]],["ur-loader.cjs",[[1,"ur-loader"]]],["ur-locale-filter-button.cjs",[[1,"ur-locale-filter-button",{"count":[2]}]]],["ur-locale-filter-panel.cjs",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16]}]]],["ur-profile.cjs",[[1,"ur-profile",{"name":[8],"description":[8],"location":[8],"facebook_url":[8],"twitter_url":[8],"linkedin_url":[8],"email":[8],"phone":[8],"website":[8],"show_follow":[4],"show_donate":[4],"show_become_member":[4],"show_send_message":[4],"show_stats":[4],"stories_count":[2],"views_count":[2],"followers_count":[2],"writers_count":[2],"show_languages":[4],"languages":[1],"show_genres":[4],"genres":[1],"show_member_since":[4],"member_since":[1]}]]],["ur-radio-button.cjs",[[1,"ur-radio-button",{"disabled":[4],"checked":[4],"text":[1]}]]],["ur-segment-button.cjs",[[1,"ur-segment-button",{"likeLabel":[1,"like-label"]}]]],["ur-switch.cjs",[[1,"ur-switch",{"disabled":[4],"checked":[4]}]]],["ur-tabs.cjs",[[1,"ur-tabs",{"tabs":[16],"panels":[16]}]]],["ur-text-field.cjs",[[1,"ur-text-field",{"label":[1],"placeholder":[1],"helper":[1],"disabled":[4],"variant":[1],"value":[1],"endIcon":[8,"end-icon"]}]]],["ur-user-profile.cjs",[[1,"ur-user-profile"]]],["ur-avatar.cjs",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-menu-item.cjs",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4]}]]],["ur-novl.cjs",[[1,"ur-novl",{"loading":[4],"novlTitle":[1,"novl-title"],"novlCover":[8,"novl-cover"],"novlCoverFallback":[1,"novl-cover-fallback"],"likes":[2],"views":[2],"showStats":[4,"show-stats"],"novlDescription":[8,"novl-description"],"authorAvatar":[8,"author-avatar"],"authorName":[8,"author-name"],"published":[4],"price":[1],"publisherAvatar":[1,"publisher-avatar"],"publisherName":[1,"publisher-name"]}]]],["ur-button-arrow-left_2.cjs",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-button.cjs",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
--novl-border-radius: 8px;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
@keyframes placeholderAnimate {
|
|
7
|
+
0%{ background-position: -650px 0; }
|
|
8
|
+
100%{ background-position: 650px 0; }
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
:host {
|
|
7
12
|
display: flex;
|
|
8
13
|
flex-direction: column;
|
|
@@ -26,6 +31,17 @@
|
|
|
26
31
|
position: relative;
|
|
27
32
|
}
|
|
28
33
|
|
|
34
|
+
:host .cover.loading {
|
|
35
|
+
animation-duration: 1.7s;
|
|
36
|
+
animation-fill-mode: forwards;
|
|
37
|
+
animation-iteration-count: infinite;
|
|
38
|
+
animation-timing-function: linear;
|
|
39
|
+
animation-name: placeholderAnimate;
|
|
40
|
+
background: #f6f7f8;
|
|
41
|
+
background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);
|
|
42
|
+
background-size: 1000px;
|
|
43
|
+
}
|
|
44
|
+
|
|
29
45
|
:host .cover .ongoing {
|
|
30
46
|
background-color: rgb(var(--mdui-color-primary-container));
|
|
31
47
|
height: 32px;
|
|
@@ -100,6 +116,11 @@
|
|
|
100
116
|
box-sizing: border-box;
|
|
101
117
|
}
|
|
102
118
|
|
|
119
|
+
:host .info:has(.loading) {
|
|
120
|
+
padding-left: 0;
|
|
121
|
+
padding-right: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
103
124
|
:host .info .title {
|
|
104
125
|
color: rgb(var(--mdui-color-on-background));
|
|
105
126
|
font-size: 16px;
|
|
@@ -112,6 +133,17 @@
|
|
|
112
133
|
text-overflow: ellipsis;
|
|
113
134
|
}
|
|
114
135
|
|
|
136
|
+
:host .info .title.loading {
|
|
137
|
+
animation-duration: 1.7s;
|
|
138
|
+
animation-fill-mode: forwards;
|
|
139
|
+
animation-iteration-count: infinite;
|
|
140
|
+
animation-timing-function: linear;
|
|
141
|
+
animation-name: placeholderAnimate;
|
|
142
|
+
background: #f6f7f8;
|
|
143
|
+
background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);
|
|
144
|
+
background-size: 1000px;
|
|
145
|
+
}
|
|
146
|
+
|
|
115
147
|
:host .info .stats {
|
|
116
148
|
font-size: 12px;
|
|
117
149
|
font-weight: 400;
|
|
@@ -121,6 +153,18 @@
|
|
|
121
153
|
color: rgb(var(--mdui-color-on-background));
|
|
122
154
|
}
|
|
123
155
|
|
|
156
|
+
:host .info .stats.loading {
|
|
157
|
+
height: 12px;
|
|
158
|
+
animation-duration: 1.7s;
|
|
159
|
+
animation-fill-mode: forwards;
|
|
160
|
+
animation-iteration-count: infinite;
|
|
161
|
+
animation-timing-function: linear;
|
|
162
|
+
animation-name: placeholderAnimate;
|
|
163
|
+
background: #f6f7f8;
|
|
164
|
+
background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);
|
|
165
|
+
background-size: 1000px;
|
|
166
|
+
}
|
|
167
|
+
|
|
124
168
|
:host .info .stats b {
|
|
125
169
|
font-weight: 700;
|
|
126
170
|
}
|
|
@@ -146,6 +190,17 @@
|
|
|
146
190
|
text-overflow: ellipsis;
|
|
147
191
|
}
|
|
148
192
|
|
|
193
|
+
:host .info .description.loading {
|
|
194
|
+
animation-duration: 1.7s;
|
|
195
|
+
animation-fill-mode: forwards;
|
|
196
|
+
animation-iteration-count: infinite;
|
|
197
|
+
animation-timing-function: linear;
|
|
198
|
+
animation-name: placeholderAnimate;
|
|
199
|
+
background: #f6f7f8;
|
|
200
|
+
background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);
|
|
201
|
+
background-size: 1000px;
|
|
202
|
+
}
|
|
203
|
+
|
|
149
204
|
:host .info .author {
|
|
150
205
|
height: 32px;
|
|
151
206
|
display: flex;
|
|
@@ -165,6 +220,17 @@
|
|
|
165
220
|
background-size: cover;
|
|
166
221
|
}
|
|
167
222
|
|
|
223
|
+
:host .info .author .avatar.loading {
|
|
224
|
+
animation-duration: 1.7s;
|
|
225
|
+
animation-fill-mode: forwards;
|
|
226
|
+
animation-iteration-count: infinite;
|
|
227
|
+
animation-timing-function: linear;
|
|
228
|
+
animation-name: placeholderAnimate;
|
|
229
|
+
background: #f6f7f8;
|
|
230
|
+
background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);
|
|
231
|
+
background-size: 1000px;
|
|
232
|
+
}
|
|
233
|
+
|
|
168
234
|
:host .info .author .name {
|
|
169
235
|
font-size: 12px;
|
|
170
236
|
font-style: normal;
|
|
@@ -172,6 +238,18 @@
|
|
|
172
238
|
line-height: 12px;
|
|
173
239
|
}
|
|
174
240
|
|
|
241
|
+
:host .info .author .name.loading {
|
|
242
|
+
width: 50%;
|
|
243
|
+
animation-duration: 1.7s;
|
|
244
|
+
animation-fill-mode: forwards;
|
|
245
|
+
animation-iteration-count: infinite;
|
|
246
|
+
animation-timing-function: linear;
|
|
247
|
+
animation-name: placeholderAnimate;
|
|
248
|
+
background: #f6f7f8;
|
|
249
|
+
background: linear-gradient(to right, #eee 2%, #ddd 18%, #eee 33%);
|
|
250
|
+
background-size: 1000px;
|
|
251
|
+
}
|
|
252
|
+
|
|
175
253
|
@container novl (max-width: 300px) {
|
|
176
254
|
:host .info .title {
|
|
177
255
|
font-size: 14px;
|
|
@@ -2,6 +2,7 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
import { NOVL_COVER_FALLBACK } from "../../data/novls";
|
|
3
3
|
export class UrNovl {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.loading = false;
|
|
5
6
|
this.novlTitle = 'Novl title';
|
|
6
7
|
this.novlCover = undefined;
|
|
7
8
|
this.novlCoverFallback = NOVL_COVER_FALLBACK;
|
|
@@ -17,9 +18,9 @@ export class UrNovl {
|
|
|
17
18
|
this.publisherName = null;
|
|
18
19
|
}
|
|
19
20
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '458f23b073d8fb709f2cf045d4028e7dbd01fe17' }, h("div", { key: 'f1c29d27093a2227e4bf994af75baf8398a930fe', class: "novl" }, this.loading && h("section", { key: '4a9c3a78ff453969bb69edc61f4ec868786e7e8b', class: "cover loading" }), !this.loading && h("section", { key: '8b9a1195e3bc3bf17dfb816e2a844b225979cd54', class: "cover", style: {
|
|
21
22
|
backgroundImage: this.novlCover ? `url(${this.novlCover})` : `url(${this.novlCoverFallback})`,
|
|
22
|
-
} }, !this.published && (h("div", { key: '
|
|
23
|
+
} }, !this.published && (h("div", { key: '3f0ce884d9fcf33a15728908bd2de5a121a86b68', class: "ongoing" }, h("span", { key: 'c1f1210cc7e8520ae26002326c92bf553e4cbddc' }, "O"))), !!this.price && (h("div", { key: '372cb31e5cb4932fde30017ec1fc7083566f7bc2', class: "price" }, h("span", { key: 'ce623ff2a2ea5c5c5d8e99cfc57cd2504c7900d7' }, this.price))), !!this.publisherAvatar && this.publisherName && (h("div", { key: '8f26dbd53e364481f51779b7ae52293dfabe8e4f', class: "publisher" }, h("div", { key: 'ef20c9403c20ecc96052671ab3eaa18f5320757b', class: "avatar", style: { backgroundImage: `url(${this.publisherAvatar})` } }), h("div", { key: '4cd860be24211f91c4696040399a4f9a3689585b', class: "name" }, this.publisherName)))), h("section", { key: '51300b8a10754cf88c82a0015c913f8dfdc90191', class: "info" }, this.loading && h("div", { key: '122e2e0a7821496fab4ef12a4b8d570681ce4ca7', class: "title loading" }, "\u00A0"), !this.loading && h("div", { key: '84f48575875a9283fc4f99a2ea72e1f765a82b4c', class: "title" }, this.novlTitle), this.loading && h("div", { key: 'be3f1e39d1dc300dc99e8daf0e5ce723ad33c0ca', class: "stats loading" }), this.showStats && !this.loading && (h("div", { key: '12aa818dd17af469eab31d48b296c83176e16cf8', class: "stats" }, h("div", { key: 'cb4495e0f8fc1956a1742ce8e9fe38291792a205', class: "likes" }, h("div", { key: '9dd1e5bae9d82386d5e085330ed56698c05c04c8' }, h("b", { key: '34b0941f5f4af64f97848419e385005b94829c0c' }, this.likes), " Likes"), h("div", { key: '35ce9b6753609be4dd098b5c26d3037fa26c39c3', class: "dot" }, "\u00B7")), h("div", { key: 'ace0bd67b77cf0956a720f6fa6d2cde6c5553a0f', class: "views" }, h("b", { key: '29f73aef58cbc52a9865e3fcc975cb3edcb76565' }, this.views), " Views"))), this.loading && h("div", { key: '8039ee28ce37c1cb470823eaa4dca8829c86f08c', class: "description loading" }, "\u00A0"), !this.loading && h("div", { key: '93c74eac2d560fab777ac2a2d09cd64ef625e7c4', class: "description" }, this.novlDescription), h("div", { key: '904fdc9b72c99f8f518734f4102f9c8934b030dc', class: "author", onClick: _ => this.authorClicked.emit() }, this.loading && h("div", { key: '04ea2013f5277121afdbd5e60ee72a20fe939e37', class: "avatar loading" }, "\u00A0"), !this.loading && h("div", { key: '985262a1bd05b701006f652797b5b089d75a37b3', class: "avatar", style: { backgroundImage: `url(${this.authorAvatar})` } }), this.loading && h("div", { key: 'f5094c264cf5ea51ab220893975ca131474ca67d', class: "name loading" }, "\u00A0"), !this.loading && h("div", { key: 'd85a6037900f7c4667fc5b6110420c2951ec0ef7', class: "name" }, this.authorName))))));
|
|
23
24
|
}
|
|
24
25
|
static get is() { return "ur-novl"; }
|
|
25
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,6 +36,24 @@ export class UrNovl {
|
|
|
35
36
|
}
|
|
36
37
|
static get properties() {
|
|
37
38
|
return {
|
|
39
|
+
"loading": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"mutable": false,
|
|
42
|
+
"complexType": {
|
|
43
|
+
"original": "boolean",
|
|
44
|
+
"resolved": "boolean",
|
|
45
|
+
"references": {}
|
|
46
|
+
},
|
|
47
|
+
"required": false,
|
|
48
|
+
"optional": false,
|
|
49
|
+
"docs": {
|
|
50
|
+
"tags": [],
|
|
51
|
+
"text": ""
|
|
52
|
+
},
|
|
53
|
+
"attribute": "loading",
|
|
54
|
+
"reflect": false,
|
|
55
|
+
"defaultValue": "false"
|
|
56
|
+
},
|
|
38
57
|
"novlTitle": {
|
|
39
58
|
"type": "string",
|
|
40
59
|
"mutable": false,
|
|
@@ -27,7 +27,7 @@ export class UrNovlCarousel {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '782cdccc39ded1a7b0eef16a2d32952d45925e59' }, h("div", { key: '0303af06549a157a93fe238e07464b51e7a142f3', class: "carousel" }, this.navigation && (h("ur-button-arrow-left", { key: 'cc797ab8539947a86a5e4c7d1e72c9ac60614013' })), this.navigation && (h("ur-button-arrow-right", { key: '4ab32fddadbddf98a89929349d0dcc09ff3ffec4' })), h("swiper-container", { key: 'e57babb86aaa6e1bbb58a89dbc6148c26c3ff5c4', "breakpoint-base": "container", grid: this.grid, breakpoints: this.breakpoints, "slides-per-view": this.slidesPerView, "space-between": this.spaceBetween }, this.novls.map(novl => {
|
|
31
31
|
return (h("swiper-slide", null, h("ur-novl", Object.assign({}, novl))));
|
|
32
32
|
})))));
|
|
33
33
|
}
|
|
@@ -10,10 +10,10 @@ export class UrPage {
|
|
|
10
10
|
this.pageDescription = undefined;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '5ced6a2844e3fa048e069c46d5413ddf37c9a15f' }, h("div", { key: 'a2f2ae521a8da65724168b8a148ec75f3702460e', class: "page" }, h("section", { key: '76e2057914b616e23293b7660ac5648c5ebf794a', class: 'cover', style: {
|
|
14
14
|
backgroundImage: this.pageCover ? `url(${this.pageCover})` : `url(${this.pageCoverFallback})`
|
|
15
|
-
} }), h("section", { key: '
|
|
16
|
-
h("div", { key: '
|
|
15
|
+
} }), h("section", { key: '9c2cb0c846eac35cd7de852f2ba45ba9f79fac8a', class: 'info' }, h("div", { key: 'b72677d75069b6c9a98b6db91ff42c0345533592', class: 'title' }, this.pageTitle), h("div", { key: '6ab6854371ddbfdf3b248d281187b90ee7efe82f', class: "description" }, this.pageDescription), this.showStats &&
|
|
16
|
+
h("div", { key: 'f6a302de0d6a256ea8a5731871caed78c83f1f90', class: 'stats' }, h("div", { key: '287d01032e51e9e1add24bbb3300dfa5d34fdc29', class: "followers" }, h("div", { key: '0b9cb148d9102db38488acff1010712d4c7a868a' }, h("b", { key: '6a36f0352078c8c6bd9208b27796e1695d3fda25' }, this.followers), " Followers"))), h("div", { key: '78c0d5e83ddc1ff67965e54c4f8dbcc7d4f4917f', class: "actions" }, h("ur-button", { key: 'eac92bd922fc5e4feb8390b9fcc3e3417b9801a7', class: "follow", variant: "outlined", onClick: () => this.pageFollowClicked.emit() }, "Follow"))))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "ur-page"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|