@sparkle-learning/core 0.0.47 → 0.0.48
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.
@@ -16627,7 +16627,7 @@ const SparklePagination = class {
|
|
16627
16627
|
toast.present();
|
16628
16628
|
}
|
16629
16629
|
render() {
|
16630
|
-
const { previousText, previousUrl, nextText, nextUrl,
|
16630
|
+
const { previousText, previousUrl, nextText, nextUrl, lastLession, lastSession } = this.page;
|
16631
16631
|
const shouldShowPrevious = previousText && previousUrl;
|
16632
16632
|
const shouldShowNext = nextText && nextUrl;
|
16633
16633
|
const links = [];
|
@@ -16635,14 +16635,14 @@ const SparklePagination = class {
|
|
16635
16635
|
links.push(index.h("stencil-route-link", { url: previousUrl, key: "previous", class: "previous", anchorTitle: previousText }, index.h("div", { class: "pagination__title" }, "Previous"), index.h("div", { class: "pagination__text" }, index.h(icons.BackArrow, null), index.h("span", null, previousText))));
|
16636
16636
|
}
|
16637
16637
|
if (shouldShowNext) {
|
16638
|
-
if (
|
16639
|
-
links.push(index.h("stencil-route-link", { onClick: () => this.presentToast(), url: nextUrl, key: "next", class: "next", anchorTitle: nextText }, index.h("div", { class: "pagination__title" }, "Next"), index.h("div", { class: "pagination__text" }, index.h("span", null, nextText), index.h(icons.ForwardArrow, null))));
|
16638
|
+
if (lastLession == 'true') {
|
16639
|
+
links.push(index.h("stencil-route-link", { onClick: () => this.presentToast(), url: nextUrl, key: "next", class: "next last-lesson", anchorTitle: nextText }, index.h("div", { class: "pagination__title" }, "Next"), index.h("div", { class: "pagination__text" }, index.h("span", null, nextText), index.h(icons.ForwardArrow, null))));
|
16640
16640
|
}
|
16641
|
-
else if (
|
16642
|
-
links.push(index.h("stencil-route-link", { onClick: () => this.presentToastLastSession(), url: nextUrl, key: "next", class: "next", anchorTitle: nextText }, index.h("div", { class: "pagination__title" }, "Next"), index.h("div", { class: "pagination__text" }, index.h("span", null, nextText), index.h(icons.ForwardArrow, null))));
|
16641
|
+
else if (lastSession == 'true') {
|
16642
|
+
links.push(index.h("stencil-route-link", { onClick: () => this.presentToastLastSession(), url: nextUrl, key: "next", class: "next last-session", anchorTitle: nextText }, index.h("div", { class: "pagination__title" }, "Next"), index.h("div", { class: "pagination__text" }, index.h("span", null, nextText), index.h(icons.ForwardArrow, null))));
|
16643
16643
|
}
|
16644
16644
|
else {
|
16645
|
-
links.push(index.h("stencil-route-link", {
|
16645
|
+
links.push(index.h("stencil-route-link", { url: nextUrl, key: "next", class: "next", anchorTitle: nextText }, index.h("div", { class: "pagination__title" }, "Next"), index.h("div", { class: "pagination__text" }, index.h("span", null, nextText), index.h(icons.ForwardArrow, null))));
|
16646
16646
|
}
|
16647
16647
|
}
|
16648
16648
|
return links;
|
@@ -16623,7 +16623,7 @@ const SparklePagination = class {
|
|
16623
16623
|
toast.present();
|
16624
16624
|
}
|
16625
16625
|
render() {
|
16626
|
-
const { previousText, previousUrl, nextText, nextUrl,
|
16626
|
+
const { previousText, previousUrl, nextText, nextUrl, lastLession, lastSession } = this.page;
|
16627
16627
|
const shouldShowPrevious = previousText && previousUrl;
|
16628
16628
|
const shouldShowNext = nextText && nextUrl;
|
16629
16629
|
const links = [];
|
@@ -16631,14 +16631,14 @@ const SparklePagination = class {
|
|
16631
16631
|
links.push(h$1("stencil-route-link", { url: previousUrl, key: "previous", class: "previous", anchorTitle: previousText }, h$1("div", { class: "pagination__title" }, "Previous"), h$1("div", { class: "pagination__text" }, h$1(BackArrow, null), h$1("span", null, previousText))));
|
16632
16632
|
}
|
16633
16633
|
if (shouldShowNext) {
|
16634
|
-
if (
|
16635
|
-
links.push(h$1("stencil-route-link", { onClick: () => this.presentToast(), url: nextUrl, key: "next", class: "next", anchorTitle: nextText }, h$1("div", { class: "pagination__title" }, "Next"), h$1("div", { class: "pagination__text" }, h$1("span", null, nextText), h$1(ForwardArrow, null))));
|
16634
|
+
if (lastLession == 'true') {
|
16635
|
+
links.push(h$1("stencil-route-link", { onClick: () => this.presentToast(), url: nextUrl, key: "next", class: "next last-lesson", anchorTitle: nextText }, h$1("div", { class: "pagination__title" }, "Next"), h$1("div", { class: "pagination__text" }, h$1("span", null, nextText), h$1(ForwardArrow, null))));
|
16636
16636
|
}
|
16637
|
-
else if (
|
16638
|
-
links.push(h$1("stencil-route-link", { onClick: () => this.presentToastLastSession(), url: nextUrl, key: "next", class: "next", anchorTitle: nextText }, h$1("div", { class: "pagination__title" }, "Next"), h$1("div", { class: "pagination__text" }, h$1("span", null, nextText), h$1(ForwardArrow, null))));
|
16637
|
+
else if (lastSession == 'true') {
|
16638
|
+
links.push(h$1("stencil-route-link", { onClick: () => this.presentToastLastSession(), url: nextUrl, key: "next", class: "next last-session", anchorTitle: nextText }, h$1("div", { class: "pagination__title" }, "Next"), h$1("div", { class: "pagination__text" }, h$1("span", null, nextText), h$1(ForwardArrow, null))));
|
16639
16639
|
}
|
16640
16640
|
else {
|
16641
|
-
links.push(h$1("stencil-route-link", {
|
16641
|
+
links.push(h$1("stencil-route-link", { url: nextUrl, key: "next", class: "next", anchorTitle: nextText }, h$1("div", { class: "pagination__title" }, "Next"), h$1("div", { class: "pagination__text" }, h$1("span", null, nextText), h$1(ForwardArrow, null))));
|
16642
16642
|
}
|
16643
16643
|
}
|
16644
16644
|
return links;
|