urnovl-web-components 0.0.159 → 0.0.161
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 +11 -2
- package/dist/cjs/ur-novl.cjs.entry.js +7 -2
- package/dist/cjs/urnovl-web-components.cjs.js +1 -1
- package/dist/collection/components/ur-novl/ur-novl.css +16 -0
- package/dist/collection/components/ur-novl/ur-novl.js +24 -1
- package/dist/collection/components/ur-novl-carousel/ur-novl-carousel.js +15 -4
- package/dist/collection/models/novl.js +3 -1
- package/dist/collection/stories/NovlCarousel.stories.js +52 -1
- package/dist/components/{p-b18dc315.js → p-191fc625.js} +9 -3
- package/dist/components/ur-novl-carousel.js +12 -3
- package/dist/components/ur-novl.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ur-novl-carousel.entry.js +11 -2
- package/dist/esm/ur-novl.entry.js +8 -3
- package/dist/esm/urnovl-web-components.js +1 -1
- package/dist/types/components/ur-novl/ur-novl.d.ts +3 -0
- package/dist/types/components/ur-novl-carousel/ur-novl-carousel.d.ts +2 -2
- package/dist/types/components.d.ts +6 -4
- package/dist/types/models/novl.d.ts +4 -0
- package/dist/types/stories/NovlCarousel.stories.d.ts +41 -0
- package/dist/urnovl-web-components/p-8ed0f8b1.entry.js +1 -0
- package/dist/urnovl-web-components/p-b138806d.entry.js +1 -0
- package/dist/urnovl-web-components/urnovl-web-components.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-2cd566f3.js → p-1ae325c7.js} +1 -1
- package/www/build/p-8ed0f8b1.entry.js +1 -0
- package/www/build/p-b138806d.entry.js +1 -0
- package/www/build/urnovl-web-components.esm.js +1 -1
- package/dist/urnovl-web-components/p-a32767cd.entry.js +0 -1
- package/dist/urnovl-web-components/p-c8d21b34.entry.js +0 -1
- package/www/build/p-a32767cd.entry.js +0 -1
- package/www/build/p-c8d21b34.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-main-left-menu.cjs",[[1,"ur-main-left-menu",{"opened":[4],"loggedIn":[4,"logged-in"],"userName":[1,"user-name"],"userRole":[1,"user-role"],"userAvatar":[1,"user-avatar"],"expanded":[32]},null,{"opened":["watchOpenedHandler"]}]]],["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-hero.cjs",[[1,"ur-hero",{"heroTitle":[1,"hero-title"],"heroSubtitle":[1,"hero-subtitle"],"ctaText":[1,"cta-text"],"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"layout":[1],"backgroundJustification":[1,"background-justification"],"backgroundAlignment":[1,"background-alignment"],"heroTitleColor":[1,"hero-title-color"],"heroSubtitleColor":[1,"hero-subtitle-color"],"widthClass":[32]}]]],["ur-locale-filter-panel.cjs",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16],"disabledLocales":[16],"mutableLocales":[32]}]]],["ur-main-desktop-top-app-bar.cjs",[[1,"ur-main-desktop-top-app-bar",{"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"searchText":[1,"search-text"]}]]],["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-read-mobile-top-app-bar.cjs",[[1,"ur-read-mobile-top-app-bar",{"variant":[1],"headerTitle":[1,"header-title"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["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-top-app-bar.cjs",[[1,"ur-top-app-bar",{"headerTitle":[1,"header-title"],"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["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-checkbox.cjs",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip.cjs",[[1,"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-list-subheader.cjs",[[1,"ur-list-subheader",{"text":[1]}]]],["ur-loader.cjs",[[1,"ur-loader"]]],["ur-locale-filter-button.cjs",[[1,"ur-locale-filter-button",{"count":[2],"selected":[4]}]]],["ur-navigation-drawer.cjs",[[1,"ur-navigation-drawer",{"open":[4],"placement":[1],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"contained":[4],"openDrawer":[64],"closeDrawer":[64]}]]],["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-menu-item.cjs",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4],"selected":[4]}]]],["ur-novl.cjs",[[1,"ur-novl",{"novlId":[520,"novl-id"],"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-avatar.cjs",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-list_3.cjs",[[1,"ur-menu-profile",{"userAvatar":[1,"user-avatar"],"userName":[1,"user-name"],"userRole":[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{"content":[1],"disabled":[4],"active":[4],"nonclickable":[4],"rounded":[4],"alignment":[1],"icon":[1],"endIcon":[1,"end-icon"],"description":[1],"href":[1],"target":[1],"rel":[1]}]]],["ur-button-icon.cjs",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-logo.cjs",[[1,"ur-logo",{"width":[1],"height":[1],"color":[1],"rotation":[2],"opacity":[2]}]]],["ur-button.cjs",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"],"fullWidth":[4,"full-width"]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["ur-main-left-menu.cjs",[[1,"ur-main-left-menu",{"opened":[4],"loggedIn":[4,"logged-in"],"userName":[1,"user-name"],"userRole":[1,"user-role"],"userAvatar":[1,"user-avatar"],"expanded":[32]},null,{"opened":["watchOpenedHandler"]}]]],["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-hero.cjs",[[1,"ur-hero",{"heroTitle":[1,"hero-title"],"heroSubtitle":[1,"hero-subtitle"],"ctaText":[1,"cta-text"],"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"layout":[1],"backgroundJustification":[1,"background-justification"],"backgroundAlignment":[1,"background-alignment"],"heroTitleColor":[1,"hero-title-color"],"heroSubtitleColor":[1,"hero-subtitle-color"],"widthClass":[32]}]]],["ur-locale-filter-panel.cjs",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16],"disabledLocales":[16],"mutableLocales":[32]}]]],["ur-main-desktop-top-app-bar.cjs",[[1,"ur-main-desktop-top-app-bar",{"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"searchText":[1,"search-text"]}]]],["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-read-mobile-top-app-bar.cjs",[[1,"ur-read-mobile-top-app-bar",{"variant":[1],"headerTitle":[1,"header-title"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["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-top-app-bar.cjs",[[1,"ur-top-app-bar",{"headerTitle":[1,"header-title"],"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["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-checkbox.cjs",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip.cjs",[[1,"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-list-subheader.cjs",[[1,"ur-list-subheader",{"text":[1]}]]],["ur-loader.cjs",[[1,"ur-loader"]]],["ur-locale-filter-button.cjs",[[1,"ur-locale-filter-button",{"count":[2],"selected":[4]}]]],["ur-navigation-drawer.cjs",[[1,"ur-navigation-drawer",{"open":[4],"placement":[1],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"contained":[4],"openDrawer":[64],"closeDrawer":[64]}]]],["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-menu-item.cjs",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4],"selected":[4]}]]],["ur-novl.cjs",[[1,"ur-novl",{"novlId":[520,"novl-id"],"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"],"borderRadius":[1,"border-radius"]}]]],["ur-button-arrow-left_2.cjs",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-avatar.cjs",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-list_3.cjs",[[1,"ur-menu-profile",{"userAvatar":[1,"user-avatar"],"userName":[1,"user-name"],"userRole":[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{"content":[1],"disabled":[4],"active":[4],"nonclickable":[4],"rounded":[4],"alignment":[1],"icon":[1],"endIcon":[1,"end-icon"],"description":[1],"href":[1],"target":[1],"rel":[1]}]]],["ur-button-icon.cjs",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-logo.cjs",[[1,"ur-logo",{"width":[1],"height":[1],"color":[1],"rotation":[2],"opacity":[2]}]]],["ur-button.cjs",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"],"fullWidth":[4,"full-width"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -4,6 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cbe1be8e.js');
|
|
6
6
|
|
|
7
|
+
const is_custom_data = (data) => {
|
|
8
|
+
return data && !!data.content && typeof data.content === 'function';
|
|
9
|
+
};
|
|
10
|
+
|
|
7
11
|
const urNovlCarouselCss = ":host{--swiper-slide-width:100%}:host{display:block;box-sizing:border-box;position:relative}:host .carousel{position:relative}:host swiper-slide{width:var(--swiper-slide-width)}:host ur-button-arrow-left,:host ur-button-arrow-right{position:absolute;top:calc(50% - 34px);left:-17px;z-index:2}:host ur-button-arrow-right{left:auto;right:-17px}@media (min-width: 0px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 321px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 640px){:host swiper-slide{width:calc(90% / 3)}}@media (min-width: 1150px){:host swiper-slide{width:calc(90% / 4)}}@media (min-width: 1770px){:host swiper-slide{width:calc(90% / 5)}}@media (min-width: 2140px){:host swiper-slide{width:calc(90% / 6)}}";
|
|
8
12
|
const UrNovlCarouselStyle0 = urNovlCarouselCss;
|
|
9
13
|
|
|
@@ -49,8 +53,13 @@ const UrNovlCarousel = class {
|
|
|
49
53
|
});
|
|
50
54
|
}
|
|
51
55
|
render() {
|
|
52
|
-
return (index.h(index.Host, { key: '
|
|
53
|
-
|
|
56
|
+
return (index.h(index.Host, { key: '71897f640c6de0c06819f38b194250a07cdc5251' }, index.h("div", { key: 'c15303b8a881fd6563e01ac8dbe336d62299f2ef', class: "carousel" }, this.navigation && (index.h("ur-button-arrow-left", { key: 'a2b067fba4a8baab82e34c375f00e9b931047815' })), this.navigation && (index.h("ur-button-arrow-right", { key: 'c72aae4eb9ae4c0d20a40d43318368ab86babced' })), index.h("swiper-container", { key: '8c02d3372542fd5a78280b5fe004e4db812cf218', "breakpoint-base": "container", grid: this.grid, breakpoints: this.breakpoints, "slides-per-view": this.slidesPerView, "space-between": this.spaceBetween }, this.novls.map((novl, index$1) => {
|
|
57
|
+
if (is_custom_data(novl)) {
|
|
58
|
+
return (index.h("swiper-slide", null, index.h("div", { class: "custom", innerHTML: novl.content(index$1) })));
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return (index.h("swiper-slide", null, index.h("ur-novl", Object.assign({}, novl))));
|
|
62
|
+
}
|
|
54
63
|
})))));
|
|
55
64
|
}
|
|
56
65
|
get el() { return index.getElement(this); }
|
|
@@ -6,7 +6,7 @@ const index = require('./index-cbe1be8e.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@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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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";
|
|
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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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 :host .info .title.loading {\n margin: 0 4px;\n }\n\n :host .info .stats.loading {\n margin: 0 4px;\n }\n\n :host .info .description.loading {\n margin: 0 4px;\n }\n\n :host .info .author.loading {\n margin: 0 4px;\n }\n}\n";
|
|
10
10
|
const UrNovlStyle0 = urNovlCss;
|
|
11
11
|
|
|
12
12
|
const UrNovl = class {
|
|
@@ -28,9 +28,13 @@ const UrNovl = class {
|
|
|
28
28
|
this.price = null;
|
|
29
29
|
this.publisherAvatar = null;
|
|
30
30
|
this.publisherName = null;
|
|
31
|
+
this.borderRadius = '8px';
|
|
32
|
+
}
|
|
33
|
+
componentDidLoad() {
|
|
34
|
+
this.el.style.setProperty("--novl-border-radius", this.borderRadius);
|
|
31
35
|
}
|
|
32
36
|
renderLoading() {
|
|
33
|
-
return index.h(index.Host, null, index.h("div", { class: "novl loading" }, index.h("section", { class: "cover loading" }), index.h("section", { class: "info" }, index.h("div", { class: "title loading" }, "\u00A0"), index.h("div", { class: "stats loading" }), index.h("div", { class: "description loading" }, "\u00A0"), index.h("div", { class: "author" }, index.h("div", { class: "avatar loading" }, "\u00A0"), index.h("div", { class: "name loading" }, "\u00A0")))));
|
|
37
|
+
return index.h(index.Host, null, index.h("div", { class: "novl loading" }, index.h("section", { class: "cover loading" }), index.h("section", { class: "info" }, index.h("div", { class: "title loading" }, "\u00A0"), index.h("div", { class: "stats loading" }), index.h("div", { class: "description loading" }, "\u00A0"), index.h("div", { class: "author loading" }, index.h("div", { class: "avatar loading" }, "\u00A0"), index.h("div", { class: "name loading" }, "\u00A0")))));
|
|
34
38
|
}
|
|
35
39
|
render() {
|
|
36
40
|
if (this.loading) {
|
|
@@ -40,6 +44,7 @@ const UrNovl = class {
|
|
|
40
44
|
backgroundImage: this.novlCover ? `url(${this.novlCover})` : `url(${this.novlCoverFallback})`,
|
|
41
45
|
} }, !this.published && (index.h("div", { class: "ongoing" }, index.h("span", null, "O"))), !!this.price && (index.h("div", { class: "price" }, index.h("span", null, this.price))), !!this.publisherAvatar && this.publisherName && (index.h("div", { class: "publisher" }, index.h("div", { class: "avatar", style: { backgroundImage: `url(${this.publisherAvatar})` } }), index.h("div", { class: "name" }, this.publisherName)))), index.h("section", { class: "info" }, index.h("div", { class: "title" }, this.novlTitle), this.showStats && (index.h("div", { class: "stats" }, index.h("div", { class: "likes" }, index.h("div", null, index.h("b", null, this.likes), " Likes"), index.h("div", { class: "dot" }, "\u00B7")), index.h("div", { class: "views" }, index.h("b", null, this.views), " Views"))), index.h("div", { class: "description" }, this.novlDescription), index.h("div", { class: "author" }, index.h("div", { class: "avatar", style: { backgroundImage: `url(${this.authorAvatar})` } }), index.h("div", { class: "name" }, this.authorName))))));
|
|
42
46
|
}
|
|
47
|
+
get el() { return index.getElement(this); }
|
|
43
48
|
};
|
|
44
49
|
UrNovl.style = UrNovlStyle0;
|
|
45
50
|
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["ur-main-left-menu.cjs",[[1,"ur-main-left-menu",{"opened":[4],"loggedIn":[4,"logged-in"],"userName":[1,"user-name"],"userRole":[1,"user-role"],"userAvatar":[1,"user-avatar"],"expanded":[32]},null,{"opened":["watchOpenedHandler"]}]]],["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-hero.cjs",[[1,"ur-hero",{"heroTitle":[1,"hero-title"],"heroSubtitle":[1,"hero-subtitle"],"ctaText":[1,"cta-text"],"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"layout":[1],"backgroundJustification":[1,"background-justification"],"backgroundAlignment":[1,"background-alignment"],"heroTitleColor":[1,"hero-title-color"],"heroSubtitleColor":[1,"hero-subtitle-color"],"widthClass":[32]}]]],["ur-locale-filter-panel.cjs",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16],"disabledLocales":[16],"mutableLocales":[32]}]]],["ur-main-desktop-top-app-bar.cjs",[[1,"ur-main-desktop-top-app-bar",{"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"searchText":[1,"search-text"]}]]],["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-read-mobile-top-app-bar.cjs",[[1,"ur-read-mobile-top-app-bar",{"variant":[1],"headerTitle":[1,"header-title"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["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-top-app-bar.cjs",[[1,"ur-top-app-bar",{"headerTitle":[1,"header-title"],"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["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-checkbox.cjs",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip.cjs",[[1,"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-list-subheader.cjs",[[1,"ur-list-subheader",{"text":[1]}]]],["ur-loader.cjs",[[1,"ur-loader"]]],["ur-locale-filter-button.cjs",[[1,"ur-locale-filter-button",{"count":[2],"selected":[4]}]]],["ur-navigation-drawer.cjs",[[1,"ur-navigation-drawer",{"open":[4],"placement":[1],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"contained":[4],"openDrawer":[64],"closeDrawer":[64]}]]],["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-menu-item.cjs",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4],"selected":[4]}]]],["ur-novl.cjs",[[1,"ur-novl",{"novlId":[520,"novl-id"],"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-avatar.cjs",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-list_3.cjs",[[1,"ur-menu-profile",{"userAvatar":[1,"user-avatar"],"userName":[1,"user-name"],"userRole":[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{"content":[1],"disabled":[4],"active":[4],"nonclickable":[4],"rounded":[4],"alignment":[1],"icon":[1],"endIcon":[1,"end-icon"],"description":[1],"href":[1],"target":[1],"rel":[1]}]]],["ur-button-icon.cjs",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-logo.cjs",[[1,"ur-logo",{"width":[1],"height":[1],"color":[1],"rotation":[2],"opacity":[2]}]]],["ur-button.cjs",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"],"fullWidth":[4,"full-width"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["ur-main-left-menu.cjs",[[1,"ur-main-left-menu",{"opened":[4],"loggedIn":[4,"logged-in"],"userName":[1,"user-name"],"userRole":[1,"user-role"],"userAvatar":[1,"user-avatar"],"expanded":[32]},null,{"opened":["watchOpenedHandler"]}]]],["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-hero.cjs",[[1,"ur-hero",{"heroTitle":[1,"hero-title"],"heroSubtitle":[1,"hero-subtitle"],"ctaText":[1,"cta-text"],"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"layout":[1],"backgroundJustification":[1,"background-justification"],"backgroundAlignment":[1,"background-alignment"],"heroTitleColor":[1,"hero-title-color"],"heroSubtitleColor":[1,"hero-subtitle-color"],"widthClass":[32]}]]],["ur-locale-filter-panel.cjs",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16],"disabledLocales":[16],"mutableLocales":[32]}]]],["ur-main-desktop-top-app-bar.cjs",[[1,"ur-main-desktop-top-app-bar",{"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"searchText":[1,"search-text"]}]]],["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-read-mobile-top-app-bar.cjs",[[1,"ur-read-mobile-top-app-bar",{"variant":[1],"headerTitle":[1,"header-title"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["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-top-app-bar.cjs",[[1,"ur-top-app-bar",{"headerTitle":[1,"header-title"],"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["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-checkbox.cjs",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip.cjs",[[1,"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-list-subheader.cjs",[[1,"ur-list-subheader",{"text":[1]}]]],["ur-loader.cjs",[[1,"ur-loader"]]],["ur-locale-filter-button.cjs",[[1,"ur-locale-filter-button",{"count":[2],"selected":[4]}]]],["ur-navigation-drawer.cjs",[[1,"ur-navigation-drawer",{"open":[4],"placement":[1],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"contained":[4],"openDrawer":[64],"closeDrawer":[64]}]]],["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-menu-item.cjs",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4],"selected":[4]}]]],["ur-novl.cjs",[[1,"ur-novl",{"novlId":[520,"novl-id"],"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"],"borderRadius":[1,"border-radius"]}]]],["ur-button-arrow-left_2.cjs",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-avatar.cjs",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-list_3.cjs",[[1,"ur-menu-profile",{"userAvatar":[1,"user-avatar"],"userName":[1,"user-name"],"userRole":[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{"content":[1],"disabled":[4],"active":[4],"nonclickable":[4],"rounded":[4],"alignment":[1],"icon":[1],"endIcon":[1,"end-icon"],"description":[1],"href":[1],"target":[1],"rel":[1]}]]],["ur-button-icon.cjs",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-logo.cjs",[[1,"ur-logo",{"width":[1],"height":[1],"color":[1],"rotation":[2],"opacity":[2]}]]],["ur-button.cjs",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"],"fullWidth":[4,"full-width"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -307,4 +307,20 @@
|
|
|
307
307
|
row-gap: 4px;
|
|
308
308
|
padding: 4px;
|
|
309
309
|
}
|
|
310
|
+
|
|
311
|
+
:host .info .title.loading {
|
|
312
|
+
margin: 0 4px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
:host .info .stats.loading {
|
|
316
|
+
margin: 0 4px;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
:host .info .description.loading {
|
|
320
|
+
margin: 0 4px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
:host .info .author.loading {
|
|
324
|
+
margin: 0 4px;
|
|
325
|
+
}
|
|
310
326
|
}
|
|
@@ -17,9 +17,13 @@ export class UrNovl {
|
|
|
17
17
|
this.price = null;
|
|
18
18
|
this.publisherAvatar = null;
|
|
19
19
|
this.publisherName = null;
|
|
20
|
+
this.borderRadius = '8px';
|
|
21
|
+
}
|
|
22
|
+
componentDidLoad() {
|
|
23
|
+
this.el.style.setProperty("--novl-border-radius", this.borderRadius);
|
|
20
24
|
}
|
|
21
25
|
renderLoading() {
|
|
22
|
-
return h(Host, null, h("div", { class: "novl loading" }, h("section", { class: "cover loading" }), h("section", { class: "info" }, h("div", { class: "title loading" }, "\u00A0"), h("div", { class: "stats loading" }), h("div", { class: "description loading" }, "\u00A0"), h("div", { class: "author" }, h("div", { class: "avatar loading" }, "\u00A0"), h("div", { class: "name loading" }, "\u00A0")))));
|
|
26
|
+
return h(Host, null, h("div", { class: "novl loading" }, h("section", { class: "cover loading" }), h("section", { class: "info" }, h("div", { class: "title loading" }, "\u00A0"), h("div", { class: "stats loading" }), h("div", { class: "description loading" }, "\u00A0"), h("div", { class: "author loading" }, h("div", { class: "avatar loading" }, "\u00A0"), h("div", { class: "name loading" }, "\u00A0")))));
|
|
23
27
|
}
|
|
24
28
|
render() {
|
|
25
29
|
if (this.loading) {
|
|
@@ -307,6 +311,24 @@ export class UrNovl {
|
|
|
307
311
|
"attribute": "publisher-name",
|
|
308
312
|
"reflect": false,
|
|
309
313
|
"defaultValue": "null"
|
|
314
|
+
},
|
|
315
|
+
"borderRadius": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"mutable": false,
|
|
318
|
+
"complexType": {
|
|
319
|
+
"original": "string",
|
|
320
|
+
"resolved": "string",
|
|
321
|
+
"references": {}
|
|
322
|
+
},
|
|
323
|
+
"required": false,
|
|
324
|
+
"optional": false,
|
|
325
|
+
"docs": {
|
|
326
|
+
"tags": [],
|
|
327
|
+
"text": ""
|
|
328
|
+
},
|
|
329
|
+
"attribute": "border-radius",
|
|
330
|
+
"reflect": false,
|
|
331
|
+
"defaultValue": "'8px'"
|
|
310
332
|
}
|
|
311
333
|
};
|
|
312
334
|
}
|
|
@@ -328,4 +350,5 @@ export class UrNovl {
|
|
|
328
350
|
}
|
|
329
351
|
}];
|
|
330
352
|
}
|
|
353
|
+
static get elementRef() { return "el"; }
|
|
331
354
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { is_custom_data } from "../../models/novl";
|
|
2
3
|
export class UrNovlCarousel {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.onIntersection = async (entries) => {
|
|
@@ -37,8 +38,13 @@ export class UrNovlCarousel {
|
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
41
|
-
|
|
41
|
+
return (h(Host, { key: '71897f640c6de0c06819f38b194250a07cdc5251' }, h("div", { key: 'c15303b8a881fd6563e01ac8dbe336d62299f2ef', class: "carousel" }, this.navigation && (h("ur-button-arrow-left", { key: 'a2b067fba4a8baab82e34c375f00e9b931047815' })), this.navigation && (h("ur-button-arrow-right", { key: 'c72aae4eb9ae4c0d20a40d43318368ab86babced' })), h("swiper-container", { key: '8c02d3372542fd5a78280b5fe004e4db812cf218', "breakpoint-base": "container", grid: this.grid, breakpoints: this.breakpoints, "slides-per-view": this.slidesPerView, "space-between": this.spaceBetween }, this.novls.map((novl, index) => {
|
|
42
|
+
if (is_custom_data(novl)) {
|
|
43
|
+
return (h("swiper-slide", null, h("div", { class: "custom", innerHTML: novl.content(index) })));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return (h("swiper-slide", null, h("ur-novl", Object.assign({}, novl))));
|
|
47
|
+
}
|
|
42
48
|
})))));
|
|
43
49
|
}
|
|
44
50
|
static get is() { return "ur-novl-carousel"; }
|
|
@@ -59,8 +65,8 @@ export class UrNovlCarousel {
|
|
|
59
65
|
"type": "unknown",
|
|
60
66
|
"mutable": false,
|
|
61
67
|
"complexType": {
|
|
62
|
-
"original": "Array<Novl>",
|
|
63
|
-
"resolved": "Novl[]",
|
|
68
|
+
"original": "Array<Novl | CustomContent>",
|
|
69
|
+
"resolved": "(CustomContent | Novl)[]",
|
|
64
70
|
"references": {
|
|
65
71
|
"Array": {
|
|
66
72
|
"location": "global",
|
|
@@ -70,6 +76,11 @@ export class UrNovlCarousel {
|
|
|
70
76
|
"location": "import",
|
|
71
77
|
"path": "../../models/novl",
|
|
72
78
|
"id": "src/models/novl.ts::Novl"
|
|
79
|
+
},
|
|
80
|
+
"CustomContent": {
|
|
81
|
+
"location": "import",
|
|
82
|
+
"path": "../../models/novl",
|
|
83
|
+
"id": "src/models/novl.ts::CustomContent"
|
|
73
84
|
}
|
|
74
85
|
}
|
|
75
86
|
},
|
|
@@ -46,7 +46,7 @@ export const Default = {
|
|
|
46
46
|
export const TwoRowsGrid = {
|
|
47
47
|
args: {
|
|
48
48
|
novls: NOVLS.map((novl, index) => {
|
|
49
|
-
if (index === 1 || index ===
|
|
49
|
+
if (index === 1 || index === 2) {
|
|
50
50
|
return Object.assign(Object.assign({}, novl), { borderRadius: '0' });
|
|
51
51
|
}
|
|
52
52
|
return Object.assign({}, novl);
|
|
@@ -147,3 +147,54 @@ export const FullWithArrows = {
|
|
|
147
147
|
containerBackgroundColor: 'transparent',
|
|
148
148
|
},
|
|
149
149
|
};
|
|
150
|
+
export const CustomSlide = {
|
|
151
|
+
render: args => NovlCarousel(args),
|
|
152
|
+
args: {
|
|
153
|
+
novls: NOVLS.map((novl, index) => {
|
|
154
|
+
if (index === 2) {
|
|
155
|
+
return {
|
|
156
|
+
content: (novlIndex) => {
|
|
157
|
+
return `<div>[ custom content goes here for index ${novlIndex} ]</div>`;
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
return novl;
|
|
162
|
+
}),
|
|
163
|
+
breakpoints: {
|
|
164
|
+
2075: {
|
|
165
|
+
slidesPerView: 'auto',
|
|
166
|
+
spaceBetween: 8
|
|
167
|
+
},
|
|
168
|
+
1700: {
|
|
169
|
+
slidesPerView: 'auto',
|
|
170
|
+
spaceBetween: 8
|
|
171
|
+
},
|
|
172
|
+
1420: {
|
|
173
|
+
slidesPerView: 'auto',
|
|
174
|
+
spaceBetween: 8
|
|
175
|
+
},
|
|
176
|
+
1090: {
|
|
177
|
+
slidesPerView: 'auto',
|
|
178
|
+
spaceBetween: 8
|
|
179
|
+
},
|
|
180
|
+
321: {
|
|
181
|
+
slidesPerView: 'auto',
|
|
182
|
+
spaceBetween: 4
|
|
183
|
+
},
|
|
184
|
+
0: {
|
|
185
|
+
slidesPerView: 'auto',
|
|
186
|
+
spaceBetween: 4
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
grid: {
|
|
190
|
+
rows: 1,
|
|
191
|
+
fill: 'row'
|
|
192
|
+
},
|
|
193
|
+
//slidesPerView: 'auto',
|
|
194
|
+
//spaceBetween: 8,
|
|
195
|
+
navigation: true,
|
|
196
|
+
// container styles
|
|
197
|
+
containerWidth: '100%',
|
|
198
|
+
containerBackgroundColor: 'transparent',
|
|
199
|
+
},
|
|
200
|
+
};
|
|
@@ -2,7 +2,7 @@ import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-
|
|
|
2
2
|
|
|
3
3
|
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==';
|
|
4
4
|
|
|
5
|
-
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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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";
|
|
5
|
+
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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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 :host .info .title.loading {\n margin: 0 4px;\n }\n\n :host .info .stats.loading {\n margin: 0 4px;\n }\n\n :host .info .description.loading {\n margin: 0 4px;\n }\n\n :host .info .author.loading {\n margin: 0 4px;\n }\n}\n";
|
|
6
6
|
const UrNovlStyle0 = urNovlCss;
|
|
7
7
|
|
|
8
8
|
const UrNovl = /*@__PURE__*/ proxyCustomElement(class UrNovl extends H {
|
|
@@ -26,9 +26,13 @@ const UrNovl = /*@__PURE__*/ proxyCustomElement(class UrNovl extends H {
|
|
|
26
26
|
this.price = null;
|
|
27
27
|
this.publisherAvatar = null;
|
|
28
28
|
this.publisherName = null;
|
|
29
|
+
this.borderRadius = '8px';
|
|
30
|
+
}
|
|
31
|
+
componentDidLoad() {
|
|
32
|
+
this.el.style.setProperty("--novl-border-radius", this.borderRadius);
|
|
29
33
|
}
|
|
30
34
|
renderLoading() {
|
|
31
|
-
return h(Host, null, h("div", { class: "novl loading" }, h("section", { class: "cover loading" }), h("section", { class: "info" }, h("div", { class: "title loading" }, "\u00A0"), h("div", { class: "stats loading" }), h("div", { class: "description loading" }, "\u00A0"), h("div", { class: "author" }, h("div", { class: "avatar loading" }, "\u00A0"), h("div", { class: "name loading" }, "\u00A0")))));
|
|
35
|
+
return h(Host, null, h("div", { class: "novl loading" }, h("section", { class: "cover loading" }), h("section", { class: "info" }, h("div", { class: "title loading" }, "\u00A0"), h("div", { class: "stats loading" }), h("div", { class: "description loading" }, "\u00A0"), h("div", { class: "author loading" }, h("div", { class: "avatar loading" }, "\u00A0"), h("div", { class: "name loading" }, "\u00A0")))));
|
|
32
36
|
}
|
|
33
37
|
render() {
|
|
34
38
|
if (this.loading) {
|
|
@@ -38,6 +42,7 @@ const UrNovl = /*@__PURE__*/ proxyCustomElement(class UrNovl extends H {
|
|
|
38
42
|
backgroundImage: this.novlCover ? `url(${this.novlCover})` : `url(${this.novlCoverFallback})`,
|
|
39
43
|
} }, !this.published && (h("div", { class: "ongoing" }, h("span", null, "O"))), !!this.price && (h("div", { class: "price" }, h("span", null, this.price))), !!this.publisherAvatar && this.publisherName && (h("div", { class: "publisher" }, h("div", { class: "avatar", style: { backgroundImage: `url(${this.publisherAvatar})` } }), h("div", { class: "name" }, this.publisherName)))), h("section", { class: "info" }, h("div", { class: "title" }, this.novlTitle), this.showStats && (h("div", { class: "stats" }, h("div", { class: "likes" }, h("div", null, h("b", null, this.likes), " Likes"), h("div", { class: "dot" }, "\u00B7")), h("div", { class: "views" }, h("b", null, this.views), " Views"))), h("div", { class: "description" }, this.novlDescription), h("div", { class: "author" }, h("div", { class: "avatar", style: { backgroundImage: `url(${this.authorAvatar})` } }), h("div", { class: "name" }, this.authorName))))));
|
|
40
44
|
}
|
|
45
|
+
get el() { return this; }
|
|
41
46
|
static get style() { return UrNovlStyle0; }
|
|
42
47
|
}, [1, "ur-novl", {
|
|
43
48
|
"novlId": [520, "novl-id"],
|
|
@@ -54,7 +59,8 @@ const UrNovl = /*@__PURE__*/ proxyCustomElement(class UrNovl extends H {
|
|
|
54
59
|
"published": [4],
|
|
55
60
|
"price": [1],
|
|
56
61
|
"publisherAvatar": [1, "publisher-avatar"],
|
|
57
|
-
"publisherName": [1, "publisher-name"]
|
|
62
|
+
"publisherName": [1, "publisher-name"],
|
|
63
|
+
"borderRadius": [1, "border-radius"]
|
|
58
64
|
}]);
|
|
59
65
|
function defineCustomElement() {
|
|
60
66
|
if (typeof customElements === "undefined") {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-13a81287.js';
|
|
2
2
|
import { d as defineCustomElement$4 } from './p-f3396ec5.js';
|
|
3
3
|
import { d as defineCustomElement$3 } from './p-e6c43afd.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-191fc625.js';
|
|
5
|
+
|
|
6
|
+
const is_custom_data = (data) => {
|
|
7
|
+
return data && !!data.content && typeof data.content === 'function';
|
|
8
|
+
};
|
|
5
9
|
|
|
6
10
|
const urNovlCarouselCss = ":host{--swiper-slide-width:100%}:host{display:block;box-sizing:border-box;position:relative}:host .carousel{position:relative}:host swiper-slide{width:var(--swiper-slide-width)}:host ur-button-arrow-left,:host ur-button-arrow-right{position:absolute;top:calc(50% - 34px);left:-17px;z-index:2}:host ur-button-arrow-right{left:auto;right:-17px}@media (min-width: 0px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 321px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 640px){:host swiper-slide{width:calc(90% / 3)}}@media (min-width: 1150px){:host swiper-slide{width:calc(90% / 4)}}@media (min-width: 1770px){:host swiper-slide{width:calc(90% / 5)}}@media (min-width: 2140px){:host swiper-slide{width:calc(90% / 6)}}";
|
|
7
11
|
const UrNovlCarouselStyle0 = urNovlCarouselCss;
|
|
@@ -50,8 +54,13 @@ const UrNovlCarousel$1 = /*@__PURE__*/ proxyCustomElement(class UrNovlCarousel e
|
|
|
50
54
|
});
|
|
51
55
|
}
|
|
52
56
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
54
|
-
|
|
57
|
+
return (h(Host, { key: '71897f640c6de0c06819f38b194250a07cdc5251' }, h("div", { key: 'c15303b8a881fd6563e01ac8dbe336d62299f2ef', class: "carousel" }, this.navigation && (h("ur-button-arrow-left", { key: 'a2b067fba4a8baab82e34c375f00e9b931047815' })), this.navigation && (h("ur-button-arrow-right", { key: 'c72aae4eb9ae4c0d20a40d43318368ab86babced' })), h("swiper-container", { key: '8c02d3372542fd5a78280b5fe004e4db812cf218', "breakpoint-base": "container", grid: this.grid, breakpoints: this.breakpoints, "slides-per-view": this.slidesPerView, "space-between": this.spaceBetween }, this.novls.map((novl, index) => {
|
|
58
|
+
if (is_custom_data(novl)) {
|
|
59
|
+
return (h("swiper-slide", null, h("div", { class: "custom", innerHTML: novl.content(index) })));
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
return (h("swiper-slide", null, h("ur-novl", Object.assign({}, novl))));
|
|
63
|
+
}
|
|
55
64
|
})))));
|
|
56
65
|
}
|
|
57
66
|
get el() { return this; }
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["ur-main-left-menu",[[1,"ur-main-left-menu",{"opened":[4],"loggedIn":[4,"logged-in"],"userName":[1,"user-name"],"userRole":[1,"user-role"],"userAvatar":[1,"user-avatar"],"expanded":[32]},null,{"opened":["watchOpenedHandler"]}]]],["ur-novl-carousel",[[1,"ur-novl-carousel",{"novls":[16],"breakpoints":[16],"grid":[16],"slidesPerView":[8,"slides-per-view"],"spaceBetween":[8,"space-between"],"navigation":[4]}]]],["ur-page-profile",[[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-hero",[[1,"ur-hero",{"heroTitle":[1,"hero-title"],"heroSubtitle":[1,"hero-subtitle"],"ctaText":[1,"cta-text"],"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"layout":[1],"backgroundJustification":[1,"background-justification"],"backgroundAlignment":[1,"background-alignment"],"heroTitleColor":[1,"hero-title-color"],"heroSubtitleColor":[1,"hero-subtitle-color"],"widthClass":[32]}]]],["ur-locale-filter-panel",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16],"disabledLocales":[16],"mutableLocales":[32]}]]],["ur-main-desktop-top-app-bar",[[1,"ur-main-desktop-top-app-bar",{"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"searchText":[1,"search-text"]}]]],["ur-page",[[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-read-mobile-top-app-bar",[[1,"ur-read-mobile-top-app-bar",{"variant":[1],"headerTitle":[1,"header-title"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["ur-select",[[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-top-app-bar",[[1,"ur-top-app-bar",{"headerTitle":[1,"header-title"],"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["ur-user",[[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-checkbox",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip",[[1,"ur-chip",{"label":[1],"border":[1],"radius":[1],"size":[1],"backColor":[1,"back-color"],"fontColor":[1,"font-color"],"loading":[4],"disabled":[4]}]]],["ur-dialog",[[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-list-subheader",[[1,"ur-list-subheader",{"text":[1]}]]],["ur-loader",[[1,"ur-loader"]]],["ur-locale-filter-button",[[1,"ur-locale-filter-button",{"count":[2],"selected":[4]}]]],["ur-navigation-drawer",[[1,"ur-navigation-drawer",{"open":[4],"placement":[1],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"contained":[4],"openDrawer":[64],"closeDrawer":[64]}]]],["ur-profile",[[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",[[1,"ur-radio-button",{"disabled":[4],"checked":[4],"text":[1]}]]],["ur-segment-button",[[1,"ur-segment-button",{"likeLabel":[1,"like-label"]}]]],["ur-switch",[[1,"ur-switch",{"disabled":[4],"checked":[4]}]]],["ur-tabs",[[1,"ur-tabs",{"tabs":[16],"panels":[16]}]]],["ur-text-field",[[1,"ur-text-field",{"label":[1],"placeholder":[1],"helper":[1],"disabled":[4],"variant":[1],"value":[1],"endIcon":[8,"end-icon"]}]]],["ur-user-profile",[[1,"ur-user-profile"]]],["ur-menu-item",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4],"selected":[4]}]]],["ur-novl",[[1,"ur-novl",{"novlId":[520,"novl-id"],"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",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-avatar",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-list_3",[[1,"ur-menu-profile",{"userAvatar":[1,"user-avatar"],"userName":[1,"user-name"],"userRole":[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{"content":[1],"disabled":[4],"active":[4],"nonclickable":[4],"rounded":[4],"alignment":[1],"icon":[1],"endIcon":[1,"end-icon"],"description":[1],"href":[1],"target":[1],"rel":[1]}]]],["ur-button-icon",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-logo",[[1,"ur-logo",{"width":[1],"height":[1],"color":[1],"rotation":[2],"opacity":[2]}]]],["ur-button",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"],"fullWidth":[4,"full-width"]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["ur-main-left-menu",[[1,"ur-main-left-menu",{"opened":[4],"loggedIn":[4,"logged-in"],"userName":[1,"user-name"],"userRole":[1,"user-role"],"userAvatar":[1,"user-avatar"],"expanded":[32]},null,{"opened":["watchOpenedHandler"]}]]],["ur-novl-carousel",[[1,"ur-novl-carousel",{"novls":[16],"breakpoints":[16],"grid":[16],"slidesPerView":[8,"slides-per-view"],"spaceBetween":[8,"space-between"],"navigation":[4]}]]],["ur-page-profile",[[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-hero",[[1,"ur-hero",{"heroTitle":[1,"hero-title"],"heroSubtitle":[1,"hero-subtitle"],"ctaText":[1,"cta-text"],"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"layout":[1],"backgroundJustification":[1,"background-justification"],"backgroundAlignment":[1,"background-alignment"],"heroTitleColor":[1,"hero-title-color"],"heroSubtitleColor":[1,"hero-subtitle-color"],"widthClass":[32]}]]],["ur-locale-filter-panel",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16],"disabledLocales":[16],"mutableLocales":[32]}]]],["ur-main-desktop-top-app-bar",[[1,"ur-main-desktop-top-app-bar",{"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"searchText":[1,"search-text"]}]]],["ur-page",[[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-read-mobile-top-app-bar",[[1,"ur-read-mobile-top-app-bar",{"variant":[1],"headerTitle":[1,"header-title"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["ur-select",[[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-top-app-bar",[[1,"ur-top-app-bar",{"headerTitle":[1,"header-title"],"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["ur-user",[[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-checkbox",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip",[[1,"ur-chip",{"label":[1],"border":[1],"radius":[1],"size":[1],"backColor":[1,"back-color"],"fontColor":[1,"font-color"],"loading":[4],"disabled":[4]}]]],["ur-dialog",[[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-list-subheader",[[1,"ur-list-subheader",{"text":[1]}]]],["ur-loader",[[1,"ur-loader"]]],["ur-locale-filter-button",[[1,"ur-locale-filter-button",{"count":[2],"selected":[4]}]]],["ur-navigation-drawer",[[1,"ur-navigation-drawer",{"open":[4],"placement":[1],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"contained":[4],"openDrawer":[64],"closeDrawer":[64]}]]],["ur-profile",[[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",[[1,"ur-radio-button",{"disabled":[4],"checked":[4],"text":[1]}]]],["ur-segment-button",[[1,"ur-segment-button",{"likeLabel":[1,"like-label"]}]]],["ur-switch",[[1,"ur-switch",{"disabled":[4],"checked":[4]}]]],["ur-tabs",[[1,"ur-tabs",{"tabs":[16],"panels":[16]}]]],["ur-text-field",[[1,"ur-text-field",{"label":[1],"placeholder":[1],"helper":[1],"disabled":[4],"variant":[1],"value":[1],"endIcon":[8,"end-icon"]}]]],["ur-user-profile",[[1,"ur-user-profile"]]],["ur-menu-item",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4],"selected":[4]}]]],["ur-novl",[[1,"ur-novl",{"novlId":[520,"novl-id"],"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"],"borderRadius":[1,"border-radius"]}]]],["ur-button-arrow-left_2",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-avatar",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-list_3",[[1,"ur-menu-profile",{"userAvatar":[1,"user-avatar"],"userName":[1,"user-name"],"userRole":[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{"content":[1],"disabled":[4],"active":[4],"nonclickable":[4],"rounded":[4],"alignment":[1],"icon":[1],"endIcon":[1,"end-icon"],"description":[1],"href":[1],"target":[1],"rel":[1]}]]],["ur-button-icon",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-logo",[[1,"ur-logo",{"width":[1],"height":[1],"color":[1],"rotation":[2],"opacity":[2]}]]],["ur-button",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"],"fullWidth":[4,"full-width"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa23999c.js';
|
|
2
2
|
|
|
3
|
+
const is_custom_data = (data) => {
|
|
4
|
+
return data && !!data.content && typeof data.content === 'function';
|
|
5
|
+
};
|
|
6
|
+
|
|
3
7
|
const urNovlCarouselCss = ":host{--swiper-slide-width:100%}:host{display:block;box-sizing:border-box;position:relative}:host .carousel{position:relative}:host swiper-slide{width:var(--swiper-slide-width)}:host ur-button-arrow-left,:host ur-button-arrow-right{position:absolute;top:calc(50% - 34px);left:-17px;z-index:2}:host ur-button-arrow-right{left:auto;right:-17px}@media (min-width: 0px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 321px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 640px){:host swiper-slide{width:calc(90% / 3)}}@media (min-width: 1150px){:host swiper-slide{width:calc(90% / 4)}}@media (min-width: 1770px){:host swiper-slide{width:calc(90% / 5)}}@media (min-width: 2140px){:host swiper-slide{width:calc(90% / 6)}}";
|
|
4
8
|
const UrNovlCarouselStyle0 = urNovlCarouselCss;
|
|
5
9
|
|
|
@@ -45,8 +49,13 @@ const UrNovlCarousel = class {
|
|
|
45
49
|
});
|
|
46
50
|
}
|
|
47
51
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
49
|
-
|
|
52
|
+
return (h(Host, { key: '71897f640c6de0c06819f38b194250a07cdc5251' }, h("div", { key: 'c15303b8a881fd6563e01ac8dbe336d62299f2ef', class: "carousel" }, this.navigation && (h("ur-button-arrow-left", { key: 'a2b067fba4a8baab82e34c375f00e9b931047815' })), this.navigation && (h("ur-button-arrow-right", { key: 'c72aae4eb9ae4c0d20a40d43318368ab86babced' })), h("swiper-container", { key: '8c02d3372542fd5a78280b5fe004e4db812cf218', "breakpoint-base": "container", grid: this.grid, breakpoints: this.breakpoints, "slides-per-view": this.slidesPerView, "space-between": this.spaceBetween }, this.novls.map((novl, index) => {
|
|
53
|
+
if (is_custom_data(novl)) {
|
|
54
|
+
return (h("swiper-slide", null, h("div", { class: "custom", innerHTML: novl.content(index) })));
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return (h("swiper-slide", null, h("ur-novl", Object.assign({}, novl))));
|
|
58
|
+
}
|
|
50
59
|
})))));
|
|
51
60
|
}
|
|
52
61
|
get el() { return getElement(this); }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-fa23999c.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa23999c.js';
|
|
2
2
|
|
|
3
3
|
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==';
|
|
4
4
|
|
|
5
|
-
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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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";
|
|
5
|
+
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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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 :host .info .title.loading {\n margin: 0 4px;\n }\n\n :host .info .stats.loading {\n margin: 0 4px;\n }\n\n :host .info .description.loading {\n margin: 0 4px;\n }\n\n :host .info .author.loading {\n margin: 0 4px;\n }\n}\n";
|
|
6
6
|
const UrNovlStyle0 = urNovlCss;
|
|
7
7
|
|
|
8
8
|
const UrNovl = class {
|
|
@@ -24,9 +24,13 @@ const UrNovl = class {
|
|
|
24
24
|
this.price = null;
|
|
25
25
|
this.publisherAvatar = null;
|
|
26
26
|
this.publisherName = null;
|
|
27
|
+
this.borderRadius = '8px';
|
|
28
|
+
}
|
|
29
|
+
componentDidLoad() {
|
|
30
|
+
this.el.style.setProperty("--novl-border-radius", this.borderRadius);
|
|
27
31
|
}
|
|
28
32
|
renderLoading() {
|
|
29
|
-
return h(Host, null, h("div", { class: "novl loading" }, h("section", { class: "cover loading" }), h("section", { class: "info" }, h("div", { class: "title loading" }, "\u00A0"), h("div", { class: "stats loading" }), h("div", { class: "description loading" }, "\u00A0"), h("div", { class: "author" }, h("div", { class: "avatar loading" }, "\u00A0"), h("div", { class: "name loading" }, "\u00A0")))));
|
|
33
|
+
return h(Host, null, h("div", { class: "novl loading" }, h("section", { class: "cover loading" }), h("section", { class: "info" }, h("div", { class: "title loading" }, "\u00A0"), h("div", { class: "stats loading" }), h("div", { class: "description loading" }, "\u00A0"), h("div", { class: "author loading" }, h("div", { class: "avatar loading" }, "\u00A0"), h("div", { class: "name loading" }, "\u00A0")))));
|
|
30
34
|
}
|
|
31
35
|
render() {
|
|
32
36
|
if (this.loading) {
|
|
@@ -36,6 +40,7 @@ const UrNovl = class {
|
|
|
36
40
|
backgroundImage: this.novlCover ? `url(${this.novlCover})` : `url(${this.novlCoverFallback})`,
|
|
37
41
|
} }, !this.published && (h("div", { class: "ongoing" }, h("span", null, "O"))), !!this.price && (h("div", { class: "price" }, h("span", null, this.price))), !!this.publisherAvatar && this.publisherName && (h("div", { class: "publisher" }, h("div", { class: "avatar", style: { backgroundImage: `url(${this.publisherAvatar})` } }), h("div", { class: "name" }, this.publisherName)))), h("section", { class: "info" }, h("div", { class: "title" }, this.novlTitle), this.showStats && (h("div", { class: "stats" }, h("div", { class: "likes" }, h("div", null, h("b", null, this.likes), " Likes"), h("div", { class: "dot" }, "\u00B7")), h("div", { class: "views" }, h("b", null, this.views), " Views"))), h("div", { class: "description" }, this.novlDescription), h("div", { class: "author" }, h("div", { class: "avatar", style: { backgroundImage: `url(${this.authorAvatar})` } }), h("div", { class: "name" }, this.authorName))))));
|
|
38
42
|
}
|
|
43
|
+
get el() { return getElement(this); }
|
|
39
44
|
};
|
|
40
45
|
UrNovl.style = UrNovlStyle0;
|
|
41
46
|
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["ur-main-left-menu",[[1,"ur-main-left-menu",{"opened":[4],"loggedIn":[4,"logged-in"],"userName":[1,"user-name"],"userRole":[1,"user-role"],"userAvatar":[1,"user-avatar"],"expanded":[32]},null,{"opened":["watchOpenedHandler"]}]]],["ur-novl-carousel",[[1,"ur-novl-carousel",{"novls":[16],"breakpoints":[16],"grid":[16],"slidesPerView":[8,"slides-per-view"],"spaceBetween":[8,"space-between"],"navigation":[4]}]]],["ur-page-profile",[[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-hero",[[1,"ur-hero",{"heroTitle":[1,"hero-title"],"heroSubtitle":[1,"hero-subtitle"],"ctaText":[1,"cta-text"],"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"layout":[1],"backgroundJustification":[1,"background-justification"],"backgroundAlignment":[1,"background-alignment"],"heroTitleColor":[1,"hero-title-color"],"heroSubtitleColor":[1,"hero-subtitle-color"],"widthClass":[32]}]]],["ur-locale-filter-panel",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16],"disabledLocales":[16],"mutableLocales":[32]}]]],["ur-main-desktop-top-app-bar",[[1,"ur-main-desktop-top-app-bar",{"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"searchText":[1,"search-text"]}]]],["ur-page",[[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-read-mobile-top-app-bar",[[1,"ur-read-mobile-top-app-bar",{"variant":[1],"headerTitle":[1,"header-title"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["ur-select",[[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-top-app-bar",[[1,"ur-top-app-bar",{"headerTitle":[1,"header-title"],"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["ur-user",[[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-checkbox",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip",[[1,"ur-chip",{"label":[1],"border":[1],"radius":[1],"size":[1],"backColor":[1,"back-color"],"fontColor":[1,"font-color"],"loading":[4],"disabled":[4]}]]],["ur-dialog",[[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-list-subheader",[[1,"ur-list-subheader",{"text":[1]}]]],["ur-loader",[[1,"ur-loader"]]],["ur-locale-filter-button",[[1,"ur-locale-filter-button",{"count":[2],"selected":[4]}]]],["ur-navigation-drawer",[[1,"ur-navigation-drawer",{"open":[4],"placement":[1],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"contained":[4],"openDrawer":[64],"closeDrawer":[64]}]]],["ur-profile",[[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",[[1,"ur-radio-button",{"disabled":[4],"checked":[4],"text":[1]}]]],["ur-segment-button",[[1,"ur-segment-button",{"likeLabel":[1,"like-label"]}]]],["ur-switch",[[1,"ur-switch",{"disabled":[4],"checked":[4]}]]],["ur-tabs",[[1,"ur-tabs",{"tabs":[16],"panels":[16]}]]],["ur-text-field",[[1,"ur-text-field",{"label":[1],"placeholder":[1],"helper":[1],"disabled":[4],"variant":[1],"value":[1],"endIcon":[8,"end-icon"]}]]],["ur-user-profile",[[1,"ur-user-profile"]]],["ur-menu-item",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4],"selected":[4]}]]],["ur-novl",[[1,"ur-novl",{"novlId":[520,"novl-id"],"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",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-avatar",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-list_3",[[1,"ur-menu-profile",{"userAvatar":[1,"user-avatar"],"userName":[1,"user-name"],"userRole":[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{"content":[1],"disabled":[4],"active":[4],"nonclickable":[4],"rounded":[4],"alignment":[1],"icon":[1],"endIcon":[1,"end-icon"],"description":[1],"href":[1],"target":[1],"rel":[1]}]]],["ur-button-icon",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-logo",[[1,"ur-logo",{"width":[1],"height":[1],"color":[1],"rotation":[2],"opacity":[2]}]]],["ur-button",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"],"fullWidth":[4,"full-width"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["ur-main-left-menu",[[1,"ur-main-left-menu",{"opened":[4],"loggedIn":[4,"logged-in"],"userName":[1,"user-name"],"userRole":[1,"user-role"],"userAvatar":[1,"user-avatar"],"expanded":[32]},null,{"opened":["watchOpenedHandler"]}]]],["ur-novl-carousel",[[1,"ur-novl-carousel",{"novls":[16],"breakpoints":[16],"grid":[16],"slidesPerView":[8,"slides-per-view"],"spaceBetween":[8,"space-between"],"navigation":[4]}]]],["ur-page-profile",[[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-hero",[[1,"ur-hero",{"heroTitle":[1,"hero-title"],"heroSubtitle":[1,"hero-subtitle"],"ctaText":[1,"cta-text"],"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"layout":[1],"backgroundJustification":[1,"background-justification"],"backgroundAlignment":[1,"background-alignment"],"heroTitleColor":[1,"hero-title-color"],"heroSubtitleColor":[1,"hero-subtitle-color"],"widthClass":[32]}]]],["ur-locale-filter-panel",[[1,"ur-locale-filter-panel",{"showHeader":[4,"show-header"],"showFooter":[4,"show-footer"],"locales":[16],"disabledLocales":[16],"mutableLocales":[32]}]]],["ur-main-desktop-top-app-bar",[[1,"ur-main-desktop-top-app-bar",{"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"searchText":[1,"search-text"]}]]],["ur-page",[[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-read-mobile-top-app-bar",[[1,"ur-read-mobile-top-app-bar",{"variant":[1],"headerTitle":[1,"header-title"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["ur-select",[[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-top-app-bar",[[1,"ur-top-app-bar",{"headerTitle":[1,"header-title"],"variant":[1],"logoRotation":[2,"logo-rotation"],"logoOpacity":[2,"logo-opacity"],"scrollBehavior":[1,"scroll-behavior"],"scrollThreshold":[2,"scroll-threshold"]}]]],["ur-user",[[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-checkbox",[[1,"ur-checkbox",{"disabled":[4],"checked":[4]}]]],["ur-chip",[[1,"ur-chip",{"label":[1],"border":[1],"radius":[1],"size":[1],"backColor":[1,"back-color"],"fontColor":[1,"font-color"],"loading":[4],"disabled":[4]}]]],["ur-dialog",[[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-list-subheader",[[1,"ur-list-subheader",{"text":[1]}]]],["ur-loader",[[1,"ur-loader"]]],["ur-locale-filter-button",[[1,"ur-locale-filter-button",{"count":[2],"selected":[4]}]]],["ur-navigation-drawer",[[1,"ur-navigation-drawer",{"open":[4],"placement":[1],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"contained":[4],"openDrawer":[64],"closeDrawer":[64]}]]],["ur-profile",[[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",[[1,"ur-radio-button",{"disabled":[4],"checked":[4],"text":[1]}]]],["ur-segment-button",[[1,"ur-segment-button",{"likeLabel":[1,"like-label"]}]]],["ur-switch",[[1,"ur-switch",{"disabled":[4],"checked":[4]}]]],["ur-tabs",[[1,"ur-tabs",{"tabs":[16],"panels":[16]}]]],["ur-text-field",[[1,"ur-text-field",{"label":[1],"placeholder":[1],"helper":[1],"disabled":[4],"variant":[1],"value":[1],"endIcon":[8,"end-icon"]}]]],["ur-user-profile",[[1,"ur-user-profile"]]],["ur-menu-item",[[1,"ur-menu-item",{"value":[1],"label":[1],"disabled":[4],"selected":[4]}]]],["ur-novl",[[1,"ur-novl",{"novlId":[520,"novl-id"],"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"],"borderRadius":[1,"border-radius"]}]]],["ur-button-arrow-left_2",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["ur-avatar",[[1,"ur-avatar",{"size":[1],"src":[1],"name":[1],"border":[1],"radius":[1]}]]],["ur-list_3",[[1,"ur-menu-profile",{"userAvatar":[1,"user-avatar"],"userName":[1,"user-name"],"userRole":[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{"content":[1],"disabled":[4],"active":[4],"nonclickable":[4],"rounded":[4],"alignment":[1],"icon":[1],"endIcon":[1,"end-icon"],"description":[1],"href":[1],"target":[1],"rel":[1]}]]],["ur-button-icon",[[1,"ur-button-icon",{"disabled":[4],"loading":[4],"variant":[1],"icon":[1],"selectedIcon":[1,"selected-icon"],"selected":[4]}]]],["ur-logo",[[1,"ur-logo",{"width":[1],"height":[1],"color":[1],"rotation":[2],"opacity":[2]}]]],["ur-button",[[1,"ur-button",{"disabled":[4],"variant":[1],"icon":[8],"endIcon":[8,"end-icon"],"fullWidth":[4,"full-width"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class UrNovl {
|
|
3
|
+
el: HTMLElement;
|
|
3
4
|
novlId: any;
|
|
4
5
|
loading: boolean;
|
|
5
6
|
novlTitle: string;
|
|
@@ -15,7 +16,9 @@ export declare class UrNovl {
|
|
|
15
16
|
price: string | null;
|
|
16
17
|
publisherAvatar: string | null;
|
|
17
18
|
publisherName: string | null;
|
|
19
|
+
borderRadius: string;
|
|
18
20
|
novlClicked: EventEmitter<string>;
|
|
21
|
+
componentDidLoad(): void;
|
|
19
22
|
renderLoading(): any;
|
|
20
23
|
render(): any;
|
|
21
24
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { Novl } from '../../models/novl';
|
|
2
|
+
import { CustomContent, Novl } from '../../models/novl';
|
|
3
3
|
import { Breakpoints, Grid } from '../../data/novl-carousel';
|
|
4
4
|
export declare class UrNovlCarousel {
|
|
5
5
|
private observer;
|
|
6
6
|
el: HTMLElement;
|
|
7
|
-
novls: Array<Novl>;
|
|
7
|
+
novls: Array<Novl | CustomContent>;
|
|
8
8
|
breakpoints?: Breakpoints;
|
|
9
9
|
grid?: Grid;
|
|
10
10
|
slidesPerView?: number | 'auto';
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Locale } from "./models/locale";
|
|
9
|
-
import { Novl } from "./models/novl";
|
|
9
|
+
import { CustomContent, Novl } from "./models/novl";
|
|
10
10
|
import { Breakpoints, Grid } from "./data/novl-carousel";
|
|
11
11
|
export { Locale } from "./models/locale";
|
|
12
|
-
export { Novl } from "./models/novl";
|
|
12
|
+
export { CustomContent, Novl } from "./models/novl";
|
|
13
13
|
export { Breakpoints, Grid } from "./data/novl-carousel";
|
|
14
14
|
export namespace Components {
|
|
15
15
|
interface UrAvatar {
|
|
@@ -187,6 +187,7 @@ export namespace Components {
|
|
|
187
187
|
interface UrNovl {
|
|
188
188
|
"authorAvatar": any;
|
|
189
189
|
"authorName": any;
|
|
190
|
+
"borderRadius": string;
|
|
190
191
|
"likes": number;
|
|
191
192
|
"loading": boolean;
|
|
192
193
|
"novlCover": any;
|
|
@@ -205,7 +206,7 @@ export namespace Components {
|
|
|
205
206
|
"breakpoints"?: Breakpoints;
|
|
206
207
|
"grid"?: Grid;
|
|
207
208
|
"navigation"?: boolean;
|
|
208
|
-
"novls": Array<Novl>;
|
|
209
|
+
"novls": Array<Novl | CustomContent>;
|
|
209
210
|
"slidesPerView"?: number | 'auto';
|
|
210
211
|
"spaceBetween"?: number | string;
|
|
211
212
|
}
|
|
@@ -998,6 +999,7 @@ declare namespace LocalJSX {
|
|
|
998
999
|
interface UrNovl {
|
|
999
1000
|
"authorAvatar"?: any;
|
|
1000
1001
|
"authorName"?: any;
|
|
1002
|
+
"borderRadius"?: string;
|
|
1001
1003
|
"likes"?: number;
|
|
1002
1004
|
"loading"?: boolean;
|
|
1003
1005
|
"novlCover"?: any;
|
|
@@ -1017,7 +1019,7 @@ declare namespace LocalJSX {
|
|
|
1017
1019
|
"breakpoints"?: Breakpoints;
|
|
1018
1020
|
"grid"?: Grid;
|
|
1019
1021
|
"navigation"?: boolean;
|
|
1020
|
-
"novls"?: Array<Novl>;
|
|
1022
|
+
"novls"?: Array<Novl | CustomContent>;
|
|
1021
1023
|
"onIntersectionUpdated"?: (event: UrNovlCarouselCustomEvent<Array<IntersectionObserverEntry>>) => void;
|
|
1022
1024
|
"onNextClicked"?: (event: UrNovlCarouselCustomEvent<void>) => void;
|
|
1023
1025
|
"onPrevClicked"?: (event: UrNovlCarouselCustomEvent<void>) => void;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export type CustomContent = {
|
|
2
|
+
content: (index: number) => string;
|
|
3
|
+
};
|
|
1
4
|
export type LoadingNovl = {
|
|
2
5
|
novlId: string;
|
|
3
6
|
loading: true;
|
|
@@ -19,3 +22,4 @@ export type LoadedNovl = {
|
|
|
19
22
|
borderRadius?: string;
|
|
20
23
|
};
|
|
21
24
|
export type Novl = LoadingNovl | LoadedNovl;
|
|
25
|
+
export declare const is_custom_data: (data: any) => data is CustomContent;
|
|
@@ -132,3 +132,44 @@ export declare const FullWithArrows: {
|
|
|
132
132
|
containerBackgroundColor: string;
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
+
export declare const CustomSlide: {
|
|
136
|
+
render: (args: any) => import("lit-html").TemplateResult<1>;
|
|
137
|
+
args: {
|
|
138
|
+
novls: (import("../models/novl").LoadingNovl | import("../models/novl").LoadedNovl | {
|
|
139
|
+
content: (novlIndex: any) => string;
|
|
140
|
+
})[];
|
|
141
|
+
breakpoints: {
|
|
142
|
+
2075: {
|
|
143
|
+
slidesPerView: string;
|
|
144
|
+
spaceBetween: number;
|
|
145
|
+
};
|
|
146
|
+
1700: {
|
|
147
|
+
slidesPerView: string;
|
|
148
|
+
spaceBetween: number;
|
|
149
|
+
};
|
|
150
|
+
1420: {
|
|
151
|
+
slidesPerView: string;
|
|
152
|
+
spaceBetween: number;
|
|
153
|
+
};
|
|
154
|
+
1090: {
|
|
155
|
+
slidesPerView: string;
|
|
156
|
+
spaceBetween: number;
|
|
157
|
+
};
|
|
158
|
+
321: {
|
|
159
|
+
slidesPerView: string;
|
|
160
|
+
spaceBetween: number;
|
|
161
|
+
};
|
|
162
|
+
0: {
|
|
163
|
+
slidesPerView: string;
|
|
164
|
+
spaceBetween: number;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
grid: {
|
|
168
|
+
rows: number;
|
|
169
|
+
fill: string;
|
|
170
|
+
};
|
|
171
|
+
navigation: boolean;
|
|
172
|
+
containerWidth: string;
|
|
173
|
+
containerBackgroundColor: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,c as i,h as o,H as t,g as a}from"./p-b9030d3f.js";const e=class{constructor(o){n(this,o),this.novlClicked=i(this,"novlClicked",7),this.novlId=void 0,this.loading=!1,this.novlTitle="Novl title",this.novlCover=void 0,this.novlCoverFallback="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==",this.likes=0,this.views=0,this.showStats=!0,this.novlDescription=void 0,this.authorAvatar=void 0,this.authorName=void 0,this.published=!1,this.price=null,this.publisherAvatar=null,this.publisherName=null,this.borderRadius="8px"}componentDidLoad(){this.el.style.setProperty("--novl-border-radius",this.borderRadius)}renderLoading(){return o(t,null,o("div",{class:"novl loading"},o("section",{class:"cover loading"}),o("section",{class:"info"},o("div",{class:"title loading"}," "),o("div",{class:"stats loading"}),o("div",{class:"description loading"}," "),o("div",{class:"author loading"},o("div",{class:"avatar loading"}," "),o("div",{class:"name loading"}," ")))))}render(){return this.loading?this.renderLoading():o(t,null,o("div",{class:"novl",onClick:()=>this.novlClicked.emit(this.novlId)},o("section",{class:"cover",style:{backgroundImage:this.novlCover?`url(${this.novlCover})`:`url(${this.novlCoverFallback})`}},!this.published&&o("div",{class:"ongoing"},o("span",null,"O")),!!this.price&&o("div",{class:"price"},o("span",null,this.price)),!!this.publisherAvatar&&this.publisherName&&o("div",{class:"publisher"},o("div",{class:"avatar",style:{backgroundImage:`url(${this.publisherAvatar})`}}),o("div",{class:"name"},this.publisherName))),o("section",{class:"info"},o("div",{class:"title"},this.novlTitle),this.showStats&&o("div",{class:"stats"},o("div",{class:"likes"},o("div",null,o("b",null,this.likes)," Likes"),o("div",{class:"dot"},"·")),o("div",{class:"views"},o("b",null,this.views)," Views")),o("div",{class:"description"},this.novlDescription),o("div",{class:"author"},o("div",{class:"avatar",style:{backgroundImage:`url(${this.authorAvatar})`}}),o("div",{class:"name"},this.authorName)))))}get el(){return a(this)}};e.style=":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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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 :host .info .title.loading {\n margin: 0 4px;\n }\n\n :host .info .stats.loading {\n margin: 0 4px;\n }\n\n :host .info .description.loading {\n margin: 0 4px;\n }\n\n :host .info .author.loading {\n margin: 0 4px;\n }\n}\n";export{e as ur_novl}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as t,h as s,H as e,g as r}from"./p-b9030d3f.js";const o=class{constructor(s){i(this,s),this.intersectionUpdated=t(this,"intersectionUpdated",7),this.prevClicked=t(this,"prevClicked",7),this.nextClicked=t(this,"nextClicked",7),this.onIntersection=async i=>{this.intersectionUpdated.emit(i)},this.novls=[],this.breakpoints={},this.grid={rows:1,fill:"row"},this.slidesPerView="auto",this.spaceBetween="0",this.navigation=!1}componentDidLoad(){const i=this.el.shadowRoot.querySelector("swiper-container");this.navigation&&(this.el.shadowRoot.querySelector("ur-button-arrow-left").addEventListener("click",(()=>{var t;null===(t=null==i?void 0:i.swiper)||void 0===t||t.slidePrev(),this.prevClicked.emit()})),this.el.shadowRoot.querySelector("ur-button-arrow-right").addEventListener("click",(()=>{var t;null===(t=null==i?void 0:i.swiper)||void 0===t||t.slideNext(),this.nextClicked.emit()})));const t=this.el.shadowRoot.querySelectorAll("ur-novl");this.observer=new IntersectionObserver(this.onIntersection),t.forEach((i=>{this.observer.observe(i)}))}render(){return s(e,{key:"71897f640c6de0c06819f38b194250a07cdc5251"},s("div",{key:"c15303b8a881fd6563e01ac8dbe336d62299f2ef",class:"carousel"},this.navigation&&s("ur-button-arrow-left",{key:"a2b067fba4a8baab82e34c375f00e9b931047815"}),this.navigation&&s("ur-button-arrow-right",{key:"c72aae4eb9ae4c0d20a40d43318368ab86babced"}),s("swiper-container",{key:"8c02d3372542fd5a78280b5fe004e4db812cf218","breakpoint-base":"container",grid:this.grid,breakpoints:this.breakpoints,"slides-per-view":this.slidesPerView,"space-between":this.spaceBetween},this.novls.map(((i,t)=>{return s("swiper-slide",null,(e=i)&&e.content&&"function"==typeof e.content?s("div",{class:"custom",innerHTML:i.content(t)}):s("ur-novl",Object.assign({},i)));var e})))))}get el(){return r(this)}};o.style=":host{--swiper-slide-width:100%}:host{display:block;box-sizing:border-box;position:relative}:host .carousel{position:relative}:host swiper-slide{width:var(--swiper-slide-width)}:host ur-button-arrow-left,:host ur-button-arrow-right{position:absolute;top:calc(50% - 34px);left:-17px;z-index:2}:host ur-button-arrow-right{left:auto;right:-17px}@media (min-width: 0px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 321px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 640px){:host swiper-slide{width:calc(90% / 3)}}@media (min-width: 1150px){:host swiper-slide{width:calc(90% / 4)}}@media (min-width: 1770px){:host swiper-slide{width:calc(90% / 5)}}@media (min-width: 2140px){:host swiper-slide{width:calc(90% / 6)}}";export{o as ur_novl_carousel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-b9030d3f.js";export{s as setNonce}from"./p-b9030d3f.js";import{g as a}from"./p-e1255160.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((async e=>(await a(),o([["p-92ca13c7",[[1,"ur-main-left-menu",{opened:[4],loggedIn:[4,"logged-in"],userName:[1,"user-name"],userRole:[1,"user-role"],userAvatar:[1,"user-avatar"],expanded:[32]},null,{opened:["watchOpenedHandler"]}]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-b9030d3f.js";export{s as setNonce}from"./p-b9030d3f.js";import{g as a}from"./p-e1255160.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((async e=>(await a(),o([["p-92ca13c7",[[1,"ur-main-left-menu",{opened:[4],loggedIn:[4,"logged-in"],userName:[1,"user-name"],userRole:[1,"user-role"],userAvatar:[1,"user-avatar"],expanded:[32]},null,{opened:["watchOpenedHandler"]}]]],["p-b138806d",[[1,"ur-novl-carousel",{novls:[16],breakpoints:[16],grid:[16],slidesPerView:[8,"slides-per-view"],spaceBetween:[8,"space-between"],navigation:[4]}]]],["p-ba8a3f01",[[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"]}]]],["p-123a897d",[[1,"ur-hero",{heroTitle:[1,"hero-title"],heroSubtitle:[1,"hero-subtitle"],ctaText:[1,"cta-text"],backgroundImage:[1,"background-image"],backgroundColor:[1,"background-color"],layout:[1],backgroundJustification:[1,"background-justification"],backgroundAlignment:[1,"background-alignment"],heroTitleColor:[1,"hero-title-color"],heroSubtitleColor:[1,"hero-subtitle-color"],widthClass:[32]}]]],["p-cdf51a8e",[[1,"ur-locale-filter-panel",{showHeader:[4,"show-header"],showFooter:[4,"show-footer"],locales:[16],disabledLocales:[16],mutableLocales:[32]}]]],["p-55140534",[[1,"ur-main-desktop-top-app-bar",{variant:[1],logoRotation:[2,"logo-rotation"],logoOpacity:[2,"logo-opacity"],searchText:[1,"search-text"]}]]],["p-4a606a7f",[[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"]}]]],["p-a183365e",[[1,"ur-read-mobile-top-app-bar",{variant:[1],headerTitle:[1,"header-title"],scrollBehavior:[1,"scroll-behavior"],scrollThreshold:[2,"scroll-threshold"]}]]],["p-e8cebe4b",[[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"]}]]],["p-d3c37af7",[[1,"ur-top-app-bar",{headerTitle:[1,"header-title"],variant:[1],logoRotation:[2,"logo-rotation"],logoOpacity:[2,"logo-opacity"],scrollBehavior:[1,"scroll-behavior"],scrollThreshold:[2,"scroll-threshold"]}]]],["p-c8d266fb",[[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"]}]]],["p-72f5ebe2",[[1,"ur-checkbox",{disabled:[4],checked:[4]}]]],["p-5ddf41cb",[[1,"ur-chip",{label:[1],border:[1],radius:[1],size:[1],backColor:[1,"back-color"],fontColor:[1,"font-color"],loading:[4],disabled:[4]}]]],["p-a2012ea9",[[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]}]]],["p-d73fcc3b",[[1,"ur-list-subheader",{text:[1]}]]],["p-3f41f359",[[1,"ur-loader"]]],["p-0c9f7919",[[1,"ur-locale-filter-button",{count:[2],selected:[4]}]]],["p-2de57097",[[1,"ur-navigation-drawer",{open:[4],placement:[1],closeOnEsc:[4,"close-on-esc"],closeOnOverlayClick:[4,"close-on-overlay-click"],contained:[4],openDrawer:[64],closeDrawer:[64]}]]],["p-c24bb804",[[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]}]]],["p-cf6f7c93",[[1,"ur-radio-button",{disabled:[4],checked:[4],text:[1]}]]],["p-a499d3d9",[[1,"ur-segment-button",{likeLabel:[1,"like-label"]}]]],["p-cb473063",[[1,"ur-switch",{disabled:[4],checked:[4]}]]],["p-f96f2cda",[[1,"ur-tabs",{tabs:[16],panels:[16]}]]],["p-b2819315",[[1,"ur-text-field",{label:[1],placeholder:[1],helper:[1],disabled:[4],variant:[1],value:[1],endIcon:[8,"end-icon"]}]]],["p-e4c5764f",[[1,"ur-user-profile"]]],["p-d4ade9a3",[[1,"ur-menu-item",{value:[1],label:[1],disabled:[4],selected:[4]}]]],["p-8ed0f8b1",[[1,"ur-novl",{novlId:[520,"novl-id"],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"],borderRadius:[1,"border-radius"]}]]],["p-119eb481",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["p-7595aad6",[[1,"ur-avatar",{size:[1],src:[1],name:[1],border:[1],radius:[1]}]]],["p-782d2952",[[1,"ur-menu-profile",{userAvatar:[1,"user-avatar"],userName:[1,"user-name"],userRole:[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{content:[1],disabled:[4],active:[4],nonclickable:[4],rounded:[4],alignment:[1],icon:[1],endIcon:[1,"end-icon"],description:[1],href:[1],target:[1],rel:[1]}]]],["p-303bc73c",[[1,"ur-button-icon",{disabled:[4],loading:[4],variant:[1],icon:[1],selectedIcon:[1,"selected-icon"],selected:[4]}]]],["p-d071d78d",[[1,"ur-logo",{width:[1],height:[1],color:[1],rotation:[2],opacity:[2]}]]],["p-7a41d8c5",[[1,"ur-button",{disabled:[4],variant:[1],icon:[8],endIcon:[8,"end-icon"],fullWidth:[4,"full-width"]}]]]],e))));
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-b9030d3f.js";export{s as setNonce}from"./p-b9030d3f.js";import{g as a}from"./p-e1255160.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((async e=>(await a(),o([["p-92ca13c7",[[1,"ur-main-left-menu",{opened:[4],loggedIn:[4,"logged-in"],userName:[1,"user-name"],userRole:[1,"user-role"],userAvatar:[1,"user-avatar"],expanded:[32]},null,{opened:["watchOpenedHandler"]}]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-b9030d3f.js";export{s as setNonce}from"./p-b9030d3f.js";import{g as a}from"./p-e1255160.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((async e=>(await a(),o([["p-92ca13c7",[[1,"ur-main-left-menu",{opened:[4],loggedIn:[4,"logged-in"],userName:[1,"user-name"],userRole:[1,"user-role"],userAvatar:[1,"user-avatar"],expanded:[32]},null,{opened:["watchOpenedHandler"]}]]],["p-b138806d",[[1,"ur-novl-carousel",{novls:[16],breakpoints:[16],grid:[16],slidesPerView:[8,"slides-per-view"],spaceBetween:[8,"space-between"],navigation:[4]}]]],["p-ba8a3f01",[[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"]}]]],["p-123a897d",[[1,"ur-hero",{heroTitle:[1,"hero-title"],heroSubtitle:[1,"hero-subtitle"],ctaText:[1,"cta-text"],backgroundImage:[1,"background-image"],backgroundColor:[1,"background-color"],layout:[1],backgroundJustification:[1,"background-justification"],backgroundAlignment:[1,"background-alignment"],heroTitleColor:[1,"hero-title-color"],heroSubtitleColor:[1,"hero-subtitle-color"],widthClass:[32]}]]],["p-cdf51a8e",[[1,"ur-locale-filter-panel",{showHeader:[4,"show-header"],showFooter:[4,"show-footer"],locales:[16],disabledLocales:[16],mutableLocales:[32]}]]],["p-55140534",[[1,"ur-main-desktop-top-app-bar",{variant:[1],logoRotation:[2,"logo-rotation"],logoOpacity:[2,"logo-opacity"],searchText:[1,"search-text"]}]]],["p-4a606a7f",[[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"]}]]],["p-a183365e",[[1,"ur-read-mobile-top-app-bar",{variant:[1],headerTitle:[1,"header-title"],scrollBehavior:[1,"scroll-behavior"],scrollThreshold:[2,"scroll-threshold"]}]]],["p-e8cebe4b",[[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"]}]]],["p-d3c37af7",[[1,"ur-top-app-bar",{headerTitle:[1,"header-title"],variant:[1],logoRotation:[2,"logo-rotation"],logoOpacity:[2,"logo-opacity"],scrollBehavior:[1,"scroll-behavior"],scrollThreshold:[2,"scroll-threshold"]}]]],["p-c8d266fb",[[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"]}]]],["p-72f5ebe2",[[1,"ur-checkbox",{disabled:[4],checked:[4]}]]],["p-5ddf41cb",[[1,"ur-chip",{label:[1],border:[1],radius:[1],size:[1],backColor:[1,"back-color"],fontColor:[1,"font-color"],loading:[4],disabled:[4]}]]],["p-a2012ea9",[[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]}]]],["p-d73fcc3b",[[1,"ur-list-subheader",{text:[1]}]]],["p-3f41f359",[[1,"ur-loader"]]],["p-0c9f7919",[[1,"ur-locale-filter-button",{count:[2],selected:[4]}]]],["p-2de57097",[[1,"ur-navigation-drawer",{open:[4],placement:[1],closeOnEsc:[4,"close-on-esc"],closeOnOverlayClick:[4,"close-on-overlay-click"],contained:[4],openDrawer:[64],closeDrawer:[64]}]]],["p-c24bb804",[[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]}]]],["p-cf6f7c93",[[1,"ur-radio-button",{disabled:[4],checked:[4],text:[1]}]]],["p-a499d3d9",[[1,"ur-segment-button",{likeLabel:[1,"like-label"]}]]],["p-cb473063",[[1,"ur-switch",{disabled:[4],checked:[4]}]]],["p-f96f2cda",[[1,"ur-tabs",{tabs:[16],panels:[16]}]]],["p-b2819315",[[1,"ur-text-field",{label:[1],placeholder:[1],helper:[1],disabled:[4],variant:[1],value:[1],endIcon:[8,"end-icon"]}]]],["p-e4c5764f",[[1,"ur-user-profile"]]],["p-d4ade9a3",[[1,"ur-menu-item",{value:[1],label:[1],disabled:[4],selected:[4]}]]],["p-8ed0f8b1",[[1,"ur-novl",{novlId:[520,"novl-id"],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"],borderRadius:[1,"border-radius"]}]]],["p-119eb481",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["p-7595aad6",[[1,"ur-avatar",{size:[1],src:[1],name:[1],border:[1],radius:[1]}]]],["p-782d2952",[[1,"ur-menu-profile",{userAvatar:[1,"user-avatar"],userName:[1,"user-name"],userRole:[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{content:[1],disabled:[4],active:[4],nonclickable:[4],rounded:[4],alignment:[1],icon:[1],endIcon:[1,"end-icon"],description:[1],href:[1],target:[1],rel:[1]}]]],["p-303bc73c",[[1,"ur-button-icon",{disabled:[4],loading:[4],variant:[1],icon:[1],selectedIcon:[1,"selected-icon"],selected:[4]}]]],["p-d071d78d",[[1,"ur-logo",{width:[1],height:[1],color:[1],rotation:[2],opacity:[2]}]]],["p-7a41d8c5",[[1,"ur-button",{disabled:[4],variant:[1],icon:[8],endIcon:[8,"end-icon"],fullWidth:[4,"full-width"]}]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,c as i,h as o,H as t,g as a}from"./p-b9030d3f.js";const e=class{constructor(o){n(this,o),this.novlClicked=i(this,"novlClicked",7),this.novlId=void 0,this.loading=!1,this.novlTitle="Novl title",this.novlCover=void 0,this.novlCoverFallback="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==",this.likes=0,this.views=0,this.showStats=!0,this.novlDescription=void 0,this.authorAvatar=void 0,this.authorName=void 0,this.published=!1,this.price=null,this.publisherAvatar=null,this.publisherName=null,this.borderRadius="8px"}componentDidLoad(){this.el.style.setProperty("--novl-border-radius",this.borderRadius)}renderLoading(){return o(t,null,o("div",{class:"novl loading"},o("section",{class:"cover loading"}),o("section",{class:"info"},o("div",{class:"title loading"}," "),o("div",{class:"stats loading"}),o("div",{class:"description loading"}," "),o("div",{class:"author loading"},o("div",{class:"avatar loading"}," "),o("div",{class:"name loading"}," ")))))}render(){return this.loading?this.renderLoading():o(t,null,o("div",{class:"novl",onClick:()=>this.novlClicked.emit(this.novlId)},o("section",{class:"cover",style:{backgroundImage:this.novlCover?`url(${this.novlCover})`:`url(${this.novlCoverFallback})`}},!this.published&&o("div",{class:"ongoing"},o("span",null,"O")),!!this.price&&o("div",{class:"price"},o("span",null,this.price)),!!this.publisherAvatar&&this.publisherName&&o("div",{class:"publisher"},o("div",{class:"avatar",style:{backgroundImage:`url(${this.publisherAvatar})`}}),o("div",{class:"name"},this.publisherName))),o("section",{class:"info"},o("div",{class:"title"},this.novlTitle),this.showStats&&o("div",{class:"stats"},o("div",{class:"likes"},o("div",null,o("b",null,this.likes)," Likes"),o("div",{class:"dot"},"·")),o("div",{class:"views"},o("b",null,this.views)," Views")),o("div",{class:"description"},this.novlDescription),o("div",{class:"author"},o("div",{class:"avatar",style:{backgroundImage:`url(${this.authorAvatar})`}}),o("div",{class:"name"},this.authorName)))))}get el(){return a(this)}};e.style=":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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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 :host .info .title.loading {\n margin: 0 4px;\n }\n\n :host .info .stats.loading {\n margin: 0 4px;\n }\n\n :host .info .description.loading {\n margin: 0 4px;\n }\n\n :host .info .author.loading {\n margin: 0 4px;\n }\n}\n";export{e as ur_novl}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as t,h as s,H as e,g as r}from"./p-b9030d3f.js";const o=class{constructor(s){i(this,s),this.intersectionUpdated=t(this,"intersectionUpdated",7),this.prevClicked=t(this,"prevClicked",7),this.nextClicked=t(this,"nextClicked",7),this.onIntersection=async i=>{this.intersectionUpdated.emit(i)},this.novls=[],this.breakpoints={},this.grid={rows:1,fill:"row"},this.slidesPerView="auto",this.spaceBetween="0",this.navigation=!1}componentDidLoad(){const i=this.el.shadowRoot.querySelector("swiper-container");this.navigation&&(this.el.shadowRoot.querySelector("ur-button-arrow-left").addEventListener("click",(()=>{var t;null===(t=null==i?void 0:i.swiper)||void 0===t||t.slidePrev(),this.prevClicked.emit()})),this.el.shadowRoot.querySelector("ur-button-arrow-right").addEventListener("click",(()=>{var t;null===(t=null==i?void 0:i.swiper)||void 0===t||t.slideNext(),this.nextClicked.emit()})));const t=this.el.shadowRoot.querySelectorAll("ur-novl");this.observer=new IntersectionObserver(this.onIntersection),t.forEach((i=>{this.observer.observe(i)}))}render(){return s(e,{key:"71897f640c6de0c06819f38b194250a07cdc5251"},s("div",{key:"c15303b8a881fd6563e01ac8dbe336d62299f2ef",class:"carousel"},this.navigation&&s("ur-button-arrow-left",{key:"a2b067fba4a8baab82e34c375f00e9b931047815"}),this.navigation&&s("ur-button-arrow-right",{key:"c72aae4eb9ae4c0d20a40d43318368ab86babced"}),s("swiper-container",{key:"8c02d3372542fd5a78280b5fe004e4db812cf218","breakpoint-base":"container",grid:this.grid,breakpoints:this.breakpoints,"slides-per-view":this.slidesPerView,"space-between":this.spaceBetween},this.novls.map(((i,t)=>{return s("swiper-slide",null,(e=i)&&e.content&&"function"==typeof e.content?s("div",{class:"custom",innerHTML:i.content(t)}):s("ur-novl",Object.assign({},i)));var e})))))}get el(){return r(this)}};o.style=":host{--swiper-slide-width:100%}:host{display:block;box-sizing:border-box;position:relative}:host .carousel{position:relative}:host swiper-slide{width:var(--swiper-slide-width)}:host ur-button-arrow-left,:host ur-button-arrow-right{position:absolute;top:calc(50% - 34px);left:-17px;z-index:2}:host ur-button-arrow-right{left:auto;right:-17px}@media (min-width: 0px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 321px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 640px){:host swiper-slide{width:calc(90% / 3)}}@media (min-width: 1150px){:host swiper-slide{width:calc(90% / 4)}}@media (min-width: 1770px){:host swiper-slide{width:calc(90% / 5)}}@media (min-width: 2140px){:host swiper-slide{width:calc(90% / 6)}}";export{o as ur_novl_carousel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-b9030d3f.js";export{s as setNonce}from"./p-b9030d3f.js";import{g as a}from"./p-e1255160.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((async e=>(await a(),o([["p-92ca13c7",[[1,"ur-main-left-menu",{opened:[4],loggedIn:[4,"logged-in"],userName:[1,"user-name"],userRole:[1,"user-role"],userAvatar:[1,"user-avatar"],expanded:[32]},null,{opened:["watchOpenedHandler"]}]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-b9030d3f.js";export{s as setNonce}from"./p-b9030d3f.js";import{g as a}from"./p-e1255160.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((async e=>(await a(),o([["p-92ca13c7",[[1,"ur-main-left-menu",{opened:[4],loggedIn:[4,"logged-in"],userName:[1,"user-name"],userRole:[1,"user-role"],userAvatar:[1,"user-avatar"],expanded:[32]},null,{opened:["watchOpenedHandler"]}]]],["p-b138806d",[[1,"ur-novl-carousel",{novls:[16],breakpoints:[16],grid:[16],slidesPerView:[8,"slides-per-view"],spaceBetween:[8,"space-between"],navigation:[4]}]]],["p-ba8a3f01",[[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"]}]]],["p-123a897d",[[1,"ur-hero",{heroTitle:[1,"hero-title"],heroSubtitle:[1,"hero-subtitle"],ctaText:[1,"cta-text"],backgroundImage:[1,"background-image"],backgroundColor:[1,"background-color"],layout:[1],backgroundJustification:[1,"background-justification"],backgroundAlignment:[1,"background-alignment"],heroTitleColor:[1,"hero-title-color"],heroSubtitleColor:[1,"hero-subtitle-color"],widthClass:[32]}]]],["p-cdf51a8e",[[1,"ur-locale-filter-panel",{showHeader:[4,"show-header"],showFooter:[4,"show-footer"],locales:[16],disabledLocales:[16],mutableLocales:[32]}]]],["p-55140534",[[1,"ur-main-desktop-top-app-bar",{variant:[1],logoRotation:[2,"logo-rotation"],logoOpacity:[2,"logo-opacity"],searchText:[1,"search-text"]}]]],["p-4a606a7f",[[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"]}]]],["p-a183365e",[[1,"ur-read-mobile-top-app-bar",{variant:[1],headerTitle:[1,"header-title"],scrollBehavior:[1,"scroll-behavior"],scrollThreshold:[2,"scroll-threshold"]}]]],["p-e8cebe4b",[[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"]}]]],["p-d3c37af7",[[1,"ur-top-app-bar",{headerTitle:[1,"header-title"],variant:[1],logoRotation:[2,"logo-rotation"],logoOpacity:[2,"logo-opacity"],scrollBehavior:[1,"scroll-behavior"],scrollThreshold:[2,"scroll-threshold"]}]]],["p-c8d266fb",[[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"]}]]],["p-72f5ebe2",[[1,"ur-checkbox",{disabled:[4],checked:[4]}]]],["p-5ddf41cb",[[1,"ur-chip",{label:[1],border:[1],radius:[1],size:[1],backColor:[1,"back-color"],fontColor:[1,"font-color"],loading:[4],disabled:[4]}]]],["p-a2012ea9",[[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]}]]],["p-d73fcc3b",[[1,"ur-list-subheader",{text:[1]}]]],["p-3f41f359",[[1,"ur-loader"]]],["p-0c9f7919",[[1,"ur-locale-filter-button",{count:[2],selected:[4]}]]],["p-2de57097",[[1,"ur-navigation-drawer",{open:[4],placement:[1],closeOnEsc:[4,"close-on-esc"],closeOnOverlayClick:[4,"close-on-overlay-click"],contained:[4],openDrawer:[64],closeDrawer:[64]}]]],["p-c24bb804",[[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]}]]],["p-cf6f7c93",[[1,"ur-radio-button",{disabled:[4],checked:[4],text:[1]}]]],["p-a499d3d9",[[1,"ur-segment-button",{likeLabel:[1,"like-label"]}]]],["p-cb473063",[[1,"ur-switch",{disabled:[4],checked:[4]}]]],["p-f96f2cda",[[1,"ur-tabs",{tabs:[16],panels:[16]}]]],["p-b2819315",[[1,"ur-text-field",{label:[1],placeholder:[1],helper:[1],disabled:[4],variant:[1],value:[1],endIcon:[8,"end-icon"]}]]],["p-e4c5764f",[[1,"ur-user-profile"]]],["p-d4ade9a3",[[1,"ur-menu-item",{value:[1],label:[1],disabled:[4],selected:[4]}]]],["p-8ed0f8b1",[[1,"ur-novl",{novlId:[520,"novl-id"],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"],borderRadius:[1,"border-radius"]}]]],["p-119eb481",[[1,"ur-button-arrow-left"],[1,"ur-button-arrow-right"]]],["p-7595aad6",[[1,"ur-avatar",{size:[1],src:[1],name:[1],border:[1],radius:[1]}]]],["p-782d2952",[[1,"ur-menu-profile",{userAvatar:[1,"user-avatar"],userName:[1,"user-name"],userRole:[1,"user-role"]}],[1,"ur-list"],[1,"ur-list-item",{content:[1],disabled:[4],active:[4],nonclickable:[4],rounded:[4],alignment:[1],icon:[1],endIcon:[1,"end-icon"],description:[1],href:[1],target:[1],rel:[1]}]]],["p-303bc73c",[[1,"ur-button-icon",{disabled:[4],loading:[4],variant:[1],icon:[1],selectedIcon:[1,"selected-icon"],selected:[4]}]]],["p-d071d78d",[[1,"ur-logo",{width:[1],height:[1],color:[1],rotation:[2],opacity:[2]}]]],["p-7a41d8c5",[[1,"ur-button",{disabled:[4],variant:[1],icon:[8],endIcon:[8,"end-icon"],fullWidth:[4,"full-width"]}]]]],e))));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,H as e,g as r}from"./p-b9030d3f.js";const o=class{constructor(s){i(this,s),this.intersectionUpdated=t(this,"intersectionUpdated",7),this.prevClicked=t(this,"prevClicked",7),this.nextClicked=t(this,"nextClicked",7),this.onIntersection=async i=>{this.intersectionUpdated.emit(i)},this.novls=[],this.breakpoints={},this.grid={rows:1,fill:"row"},this.slidesPerView="auto",this.spaceBetween="0",this.navigation=!1}componentDidLoad(){const i=this.el.shadowRoot.querySelector("swiper-container");this.navigation&&(this.el.shadowRoot.querySelector("ur-button-arrow-left").addEventListener("click",(()=>{var t;null===(t=null==i?void 0:i.swiper)||void 0===t||t.slidePrev(),this.prevClicked.emit()})),this.el.shadowRoot.querySelector("ur-button-arrow-right").addEventListener("click",(()=>{var t;null===(t=null==i?void 0:i.swiper)||void 0===t||t.slideNext(),this.nextClicked.emit()})));const t=this.el.shadowRoot.querySelectorAll("ur-novl");this.observer=new IntersectionObserver(this.onIntersection),t.forEach((i=>{this.observer.observe(i)}))}render(){return s(e,{key:"5f09f8605726f1f12c4209d120833b776694ad93"},s("div",{key:"ff0c257e1f66f75f90860e32300e5678c0543066",class:"carousel"},this.navigation&&s("ur-button-arrow-left",{key:"9b4ff817d0ad7bd7e4df4da8a641169f05ce5972"}),this.navigation&&s("ur-button-arrow-right",{key:"e10aa95ad30a17d4ce50ba37d3023a56322ae399"}),s("swiper-container",{key:"82ab526ecc8e7e7551909e4dc48c9fe434313c2f","breakpoint-base":"container",grid:this.grid,breakpoints:this.breakpoints,"slides-per-view":this.slidesPerView,"space-between":this.spaceBetween},this.novls.map((i=>s("swiper-slide",null,s("ur-novl",Object.assign({},i))))))))}get el(){return r(this)}};o.style=":host{--swiper-slide-width:100%}:host{display:block;box-sizing:border-box;position:relative}:host .carousel{position:relative}:host swiper-slide{width:var(--swiper-slide-width)}:host ur-button-arrow-left,:host ur-button-arrow-right{position:absolute;top:calc(50% - 34px);left:-17px;z-index:2}:host ur-button-arrow-right{left:auto;right:-17px}@media (min-width: 0px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 321px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 640px){:host swiper-slide{width:calc(90% / 3)}}@media (min-width: 1150px){:host swiper-slide{width:calc(90% / 4)}}@media (min-width: 1770px){:host swiper-slide{width:calc(90% / 5)}}@media (min-width: 2140px){:host swiper-slide{width:calc(90% / 6)}}";export{o as ur_novl_carousel}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as n,c as i,h as o,H as t}from"./p-b9030d3f.js";const a=class{constructor(o){n(this,o),this.novlClicked=i(this,"novlClicked",7),this.novlId=void 0,this.loading=!1,this.novlTitle="Novl title",this.novlCover=void 0,this.novlCoverFallback="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==",this.likes=0,this.views=0,this.showStats=!0,this.novlDescription=void 0,this.authorAvatar=void 0,this.authorName=void 0,this.published=!1,this.price=null,this.publisherAvatar=null,this.publisherName=null}renderLoading(){return o(t,null,o("div",{class:"novl loading"},o("section",{class:"cover loading"}),o("section",{class:"info"},o("div",{class:"title loading"}," "),o("div",{class:"stats loading"}),o("div",{class:"description loading"}," "),o("div",{class:"author"},o("div",{class:"avatar loading"}," "),o("div",{class:"name loading"}," ")))))}render(){return this.loading?this.renderLoading():o(t,null,o("div",{class:"novl",onClick:()=>this.novlClicked.emit(this.novlId)},o("section",{class:"cover",style:{backgroundImage:this.novlCover?`url(${this.novlCover})`:`url(${this.novlCoverFallback})`}},!this.published&&o("div",{class:"ongoing"},o("span",null,"O")),!!this.price&&o("div",{class:"price"},o("span",null,this.price)),!!this.publisherAvatar&&this.publisherName&&o("div",{class:"publisher"},o("div",{class:"avatar",style:{backgroundImage:`url(${this.publisherAvatar})`}}),o("div",{class:"name"},this.publisherName))),o("section",{class:"info"},o("div",{class:"title"},this.novlTitle),this.showStats&&o("div",{class:"stats"},o("div",{class:"likes"},o("div",null,o("b",null,this.likes)," Likes"),o("div",{class:"dot"},"·")),o("div",{class:"views"},o("b",null,this.views)," Views")),o("div",{class:"description"},this.novlDescription),o("div",{class:"author"},o("div",{class:"avatar",style:{backgroundImage:`url(${this.authorAvatar})`}}),o("div",{class:"name"},this.authorName)))))}};a.style=":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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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";export{a as ur_novl}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,H as e,g as r}from"./p-b9030d3f.js";const o=class{constructor(s){i(this,s),this.intersectionUpdated=t(this,"intersectionUpdated",7),this.prevClicked=t(this,"prevClicked",7),this.nextClicked=t(this,"nextClicked",7),this.onIntersection=async i=>{this.intersectionUpdated.emit(i)},this.novls=[],this.breakpoints={},this.grid={rows:1,fill:"row"},this.slidesPerView="auto",this.spaceBetween="0",this.navigation=!1}componentDidLoad(){const i=this.el.shadowRoot.querySelector("swiper-container");this.navigation&&(this.el.shadowRoot.querySelector("ur-button-arrow-left").addEventListener("click",(()=>{var t;null===(t=null==i?void 0:i.swiper)||void 0===t||t.slidePrev(),this.prevClicked.emit()})),this.el.shadowRoot.querySelector("ur-button-arrow-right").addEventListener("click",(()=>{var t;null===(t=null==i?void 0:i.swiper)||void 0===t||t.slideNext(),this.nextClicked.emit()})));const t=this.el.shadowRoot.querySelectorAll("ur-novl");this.observer=new IntersectionObserver(this.onIntersection),t.forEach((i=>{this.observer.observe(i)}))}render(){return s(e,{key:"5f09f8605726f1f12c4209d120833b776694ad93"},s("div",{key:"ff0c257e1f66f75f90860e32300e5678c0543066",class:"carousel"},this.navigation&&s("ur-button-arrow-left",{key:"9b4ff817d0ad7bd7e4df4da8a641169f05ce5972"}),this.navigation&&s("ur-button-arrow-right",{key:"e10aa95ad30a17d4ce50ba37d3023a56322ae399"}),s("swiper-container",{key:"82ab526ecc8e7e7551909e4dc48c9fe434313c2f","breakpoint-base":"container",grid:this.grid,breakpoints:this.breakpoints,"slides-per-view":this.slidesPerView,"space-between":this.spaceBetween},this.novls.map((i=>s("swiper-slide",null,s("ur-novl",Object.assign({},i))))))))}get el(){return r(this)}};o.style=":host{--swiper-slide-width:100%}:host{display:block;box-sizing:border-box;position:relative}:host .carousel{position:relative}:host swiper-slide{width:var(--swiper-slide-width)}:host ur-button-arrow-left,:host ur-button-arrow-right{position:absolute;top:calc(50% - 34px);left:-17px;z-index:2}:host ur-button-arrow-right{left:auto;right:-17px}@media (min-width: 0px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 321px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 640px){:host swiper-slide{width:calc(90% / 3)}}@media (min-width: 1150px){:host swiper-slide{width:calc(90% / 4)}}@media (min-width: 1770px){:host swiper-slide{width:calc(90% / 5)}}@media (min-width: 2140px){:host swiper-slide{width:calc(90% / 6)}}";export{o as ur_novl_carousel}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as n,c as i,h as o,H as t}from"./p-b9030d3f.js";const a=class{constructor(o){n(this,o),this.novlClicked=i(this,"novlClicked",7),this.novlId=void 0,this.loading=!1,this.novlTitle="Novl title",this.novlCover=void 0,this.novlCoverFallback="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==",this.likes=0,this.views=0,this.showStats=!0,this.novlDescription=void 0,this.authorAvatar=void 0,this.authorName=void 0,this.published=!1,this.price=null,this.publisherAvatar=null,this.publisherName=null}renderLoading(){return o(t,null,o("div",{class:"novl loading"},o("section",{class:"cover loading"}),o("section",{class:"info"},o("div",{class:"title loading"}," "),o("div",{class:"stats loading"}),o("div",{class:"description loading"}," "),o("div",{class:"author"},o("div",{class:"avatar loading"}," "),o("div",{class:"name loading"}," ")))))}render(){return this.loading?this.renderLoading():o(t,null,o("div",{class:"novl",onClick:()=>this.novlClicked.emit(this.novlId)},o("section",{class:"cover",style:{backgroundImage:this.novlCover?`url(${this.novlCover})`:`url(${this.novlCoverFallback})`}},!this.published&&o("div",{class:"ongoing"},o("span",null,"O")),!!this.price&&o("div",{class:"price"},o("span",null,this.price)),!!this.publisherAvatar&&this.publisherName&&o("div",{class:"publisher"},o("div",{class:"avatar",style:{backgroundImage:`url(${this.publisherAvatar})`}}),o("div",{class:"name"},this.publisherName))),o("section",{class:"info"},o("div",{class:"title"},this.novlTitle),this.showStats&&o("div",{class:"stats"},o("div",{class:"likes"},o("div",null,o("b",null,this.likes)," Likes"),o("div",{class:"dot"},"·")),o("div",{class:"views"},o("b",null,this.views)," Views")),o("div",{class:"description"},this.novlDescription),o("div",{class:"author"},o("div",{class:"avatar",style:{backgroundImage:`url(${this.authorAvatar})`}}),o("div",{class:"name"},this.authorName)))))}};a.style=":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 cursor: pointer;\n}\n\n:host .novl.loading {\n cursor: default;\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";export{a as ur_novl}
|