@sparkle-learning/core 0.0.31 → 0.0.32
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/header-mobile-collapse_61.cjs.entry.js +6 -8
- package/dist/cjs/{icons-b8a2231a.js → icons-80d477f6.js} +0 -0
- package/dist/cjs/sparkle-code.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +1 -1
- package/dist/collection/components/layout/page/page.js +0 -2
- package/dist/collection/models/course.model.js +6 -0
- package/dist/esm/header-mobile-collapse_61.entry.js +6 -8
- package/dist/esm/{icons-5debfbaf.js → icons-61dec176.js} +0 -0
- package/dist/esm/sparkle-code.entry.js +1 -1
- package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
- package/dist/sparkle-core/{p-df0070c5.entry.js → p-0f899097.entry.js} +2 -2
- package/dist/sparkle-core/{p-82e98d07.entry.js → p-99b43ee1.entry.js} +1 -1
- package/dist/sparkle-core/{p-7c38a70b.js → p-9c1772c3.js} +0 -0
- package/dist/sparkle-core/{p-0146afa0.entry.js → p-e6b66cef.entry.js} +1 -1
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/dist/types/models/course.model.d.ts +1 -8
- package/package.json +2 -2
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +0 -49
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +0 -208
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +0 -31
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +0 -245
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +0 -115
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +0 -255
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +0 -232
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +0 -3
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +0 -25
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +0 -71
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +0 -194
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +0 -4
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +0 -67
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +0 -18
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +0 -89
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +0 -52
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +0 -98
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +0 -8
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +0 -37
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +0 -64
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-bae2a754.js');
|
6
|
-
const icons = require('./icons-
|
6
|
+
const icons = require('./icons-80d477f6.js');
|
7
7
|
const ionicGlobal = require('./ionic-global-878073d1.js');
|
8
8
|
const helpers = require('./helpers-7e28976c.js');
|
9
9
|
const theme = require('./theme-4252ac15.js');
|
@@ -15844,7 +15844,8 @@ const SparkleHeader = class {
|
|
15844
15844
|
}
|
15845
15845
|
}
|
15846
15846
|
componentDidLoad() {
|
15847
|
-
|
15847
|
+
var _a;
|
15848
|
+
this.classRoomMode = (_a = get(SparkleGlobal.LOCALSTORAGE_CLASSROOM_MODE)) !== null && _a !== void 0 ? _a : false;
|
15848
15849
|
}
|
15849
15850
|
hostData() {
|
15850
15851
|
return {
|
@@ -15860,11 +15861,10 @@ const SparkleHeader = class {
|
|
15860
15861
|
return (index.h("div", { class: "class-room-toggle-container" }, index.h("div", { class: "class-room-mode-toggle-title" }, "Classroom"), index.h("div", { class: "class-room-mode-toggle" }, index.h("button", { class: this.classRoomMode == true ? 'is-selected' : null, title: "Toggle classroom mode", onClick: () => this.toggleClassRoomMode() }, "On"), index.h("button", { class: this.classRoomMode == false ? 'is-selected' : null, title: "Toggle classroom mode", onClick: () => this.toggleClassRoomMode() }, "Off"))));
|
15861
15862
|
}
|
15862
15863
|
__stencil_render() {
|
15863
|
-
return (index.h("header", null, index.h("sparkle-menu-toggle", { onClick: this.toggleClickFn }), index.h("a", { href: "/home" }, index.h("div", { class: "HeaderLogo" }, this.courseName)), index.h("header-mobile-collapse", null, index.h("div", { class: "SectionNav-tabs" }, index.h("stencil-route-link", { url: "/home" }, "Home")), index.h("nav", { class: "UtilNav" }, !this.authUser ? [
|
15864
|
+
return (index.h("header", null, index.h("sparkle-menu-toggle", { onClick: this.toggleClickFn }), index.h("a", { href: "/home" }, index.h("div", { class: "HeaderLogo" }, this.courseName)), index.h("header-mobile-collapse", null, index.h("div", { class: "SectionNav-tabs" }, index.h("stencil-route-link", { url: "/home" }, "Home")), index.h("nav", { class: "UtilNav" }, !this.authUser ? ([
|
15864
15865
|
index.h("sparkle-button", { href: "/login", round: true }, "Login"),
|
15865
|
-
index.h("sparkle-button", { href: "/signup", primary: true, round: true }, "Get Started")
|
15866
|
-
] :
|
15867
|
-
index.h("sparkle-dropdown", { image: this.imageUrl, align: "center", label: "Account", class: "label-sm-only profile-dropdown" }, index.h("section", null, index.h("stencil-route-link", { url: "/profile" }, "My Profile"), index.h("stencil-route-link", { url: "/enrollment" }, "My Enrollment"), index.h("a", { onClick: this.signoutClickFn }, "Sign Out"))), !this.hideClassRoomToggle && this.renderModeToggle(), index.h("slot", { name: "logo" })))));
|
15866
|
+
index.h("sparkle-button", { href: "/signup", primary: true, round: true }, "Get Started"),
|
15867
|
+
]) : (index.h("sparkle-dropdown", { image: this.imageUrl, align: "center", label: "Account", class: "label-sm-only profile-dropdown" }, index.h("section", null, index.h("stencil-route-link", { url: "/profile" }, "My Profile"), index.h("stencil-route-link", { url: "/enrollment" }, "My Enrollment"), index.h("a", { onClick: this.signoutClickFn }, "Sign Out")))), !this.hideClassRoomToggle && this.renderModeToggle(), index.h("slot", { name: "logo" })))));
|
15868
15868
|
}
|
15869
15869
|
render() { return index.h(index.Host, this.hostData(), this.__stencil_render()); }
|
15870
15870
|
};
|
@@ -16309,7 +16309,6 @@ const SparklePage = class {
|
|
16309
16309
|
if (this.presentation) {
|
16310
16310
|
this.page = Object.assign(Object.assign({}, this.page), { previousUrl: "/presentation" + this.page.previousUrl, nextUrl: "/presentation" + this.page.nextUrl });
|
16311
16311
|
}
|
16312
|
-
console.log(this.page);
|
16313
16312
|
StoreService.getInstance().UpdateTocPageInfo(this.page.pageInfo);
|
16314
16313
|
this.isLesson = this.page.pageInfo.pageId > 0;
|
16315
16314
|
this.pageDidLoad.emit({ pageInfo: this.page.pageInfo });
|
@@ -16479,7 +16478,6 @@ const SparklePage = class {
|
|
16479
16478
|
const content = [
|
16480
16479
|
index.h("main", { class: 'no-demo' }, this.renderControls(), index.h(Template, { page: page }))
|
16481
16480
|
];
|
16482
|
-
console.log("CONTENT", content);
|
16483
16481
|
return content;
|
16484
16482
|
}
|
16485
16483
|
else {
|
File without changes
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-bae2a754.js');
|
6
|
-
const icons = require('./icons-
|
6
|
+
const icons = require('./icons-80d477f6.js');
|
7
7
|
|
8
8
|
const codeCss = "code[class*=\"language-\"],pre[class*=\"language-\"]{color:#4d4d4c;background:none;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=\"language-\"],:not(pre)>code[class*=\"language-\"]{background:hsl(30, 20%, 25%)}pre[class*=\"language-\"]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid hsl(30, 20%, 40%);border-radius:.5em;box-shadow:1px 1px .5em black inset}:not(pre)>code[class*=\"language-\"]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid hsl(30, 20%, 40%);box-shadow:1px 1px .3em -.1em black inset;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#8c9296}.token.punctuation{opacity:.7}.namespace{opacity:.7}.token.tag{color:#91c5ff}.token.tag .token.tag{color:#2b90ff}.token.property,.token.attr-name,.token.boolean,.token.number,.token.constant,.token.symbol{color:#8454ff}.token.selector,.token.char,.token.function,.token.builtin,.token.inserted{color:#ff6810}.token.operator,.token.string,.token.entity,.token.url,.token.attr-value,.language-css .token.string,.style .token.string,.token.variable{color:#42b983}.token.atrule{color:#ffbb01}.token.regex,.token.keyword,.token.important{color:#f55073}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}sparkle-code[language=\"shell\"]>pre{background-color:var(--text-color--dark);border-radius:7px}sparkle-code[language=\"shell\"]:before{display:none}sparkle-code[language=\"shell\"] code{color:rgba(255, 255, 255, 0.7);font-size:13px}sparkle-code[language=\"shell\"] .token{color:inherit}sparkle-code[language=\"shell\"] .token.prompt{color:#fb96f9;user-select:none}sparkle-code[language=\"shell\"] .token.comment{color:rgba(255, 255, 255, 0.45)}sparkle-code{display:block;position:relative}sparkle-code:before{color:#bdc5d1;content:attr(language);font-family:var(--code-font-family);font-size:10px;letter-spacing:0.05em;line-height:1;padding:0.75em;position:absolute;right:0;text-transform:uppercase;top:0}sparkle-code[language=\"shell\"] pre{white-space:pre-wrap}.code-text__copy{position:absolute;right:0;top:-1.6rem;height:20px}.code-text__copy-link,.code-text__copy-confirmation{padding:4px 5px;font-size:12px;line-height:12px;font-weight:600;position:absolute;right:0;top:0}.code-text__copy-link{transition:0.2s transform ,\r\n 0.2s opacity,\r\n 0.2s color;color:#70A4FF;background-color:#E0EEFF;border-radius:4px;display:inline-block;cursor:pointer;opacity:1;transform:translate3d(0,0,0);z-index:5}.code-text__copy-link:hover{color:var(--blue)}.code-text__copy-confirmation{transition:0.2s transform ,\r\n 0.2s opacity;color:#0ec254;opacity:0;transform:translate3d(0,5px,0);z-index:1;display:flex;align-items:center;height:20px;padding:0}.code-text__copy-confirmation svg{fill:#0ec254;margin-right:-4px}.show-confirmation .code-text__copy-link{opacity:0;transform:translate3d(0,-5px,0);pointer-events:none}.show-confirmation .code-text__copy-confirmation{opacity:1;transform:translate3d(0,0,0)}";
|
9
9
|
|
@@ -26,7 +26,6 @@ export class SparklePage {
|
|
26
26
|
if (this.presentation) {
|
27
27
|
this.page = Object.assign(Object.assign({}, this.page), { previousUrl: "/presentation" + this.page.previousUrl, nextUrl: "/presentation" + this.page.nextUrl });
|
28
28
|
}
|
29
|
-
console.log(this.page);
|
30
29
|
StoreService.getInstance().UpdateTocPageInfo(this.page.pageInfo);
|
31
30
|
this.isLesson = this.page.pageInfo.pageId > 0;
|
32
31
|
this.pageDidLoad.emit({ pageInfo: this.page.pageInfo });
|
@@ -202,7 +201,6 @@ export class SparklePage {
|
|
202
201
|
this.renderControls(),
|
203
202
|
h(Template, { page: page }))
|
204
203
|
];
|
205
|
-
console.log("CONTENT", content);
|
206
204
|
return content;
|
207
205
|
}
|
208
206
|
else {
|
@@ -1,4 +1,10 @@
|
|
1
1
|
export {};
|
2
|
+
// export interface ICourseContentProvider {
|
3
|
+
// getCurrentCourseId(): number;
|
4
|
+
// getTableOfContent(): Observable<ICourse>;
|
5
|
+
// getPageContent(page: IPageReference): Observable<string>;
|
6
|
+
// getNextAndPrevPage(page: IPageReference): Observable<IPageModel>;
|
7
|
+
// }
|
2
8
|
//--course
|
3
9
|
//----session
|
4
10
|
//------pages
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { c as getAssetPath, r as registerInstance, h as h$1, e as getElement, H as Host, i as createEvent, f as forceUpdate, j as readTask, w as writeTask, F as Fragment, k as getContext } from './index-5568e3fa.js';
|
2
|
-
import { M as MoreDots, O as Outbound, D as DownArrow, a as Menu, B as BackArrow, F as ForwardArrow } from './icons-
|
2
|
+
import { M as MoreDots, O as Outbound, D as DownArrow, a as Menu, B as BackArrow, F as ForwardArrow } from './icons-61dec176.js';
|
3
3
|
import { g as getIonMode$1, c as config } from './ionic-global-0939c477.js';
|
4
4
|
import { h as hasShadowDom, i as inheritAttributes$1, b as getAriaLabel, d as renderHiddenInput, e as debounceEvent, j as findItemLabel, k as raf, a as addEventListener, r as removeEventListener, l as clamp } from './helpers-39367fe1.js';
|
5
5
|
import { o as openURL, c as createColorClasses$1, h as hostContext } from './theme-c336c9d9.js';
|
@@ -15840,7 +15840,8 @@ const SparkleHeader = class {
|
|
15840
15840
|
}
|
15841
15841
|
}
|
15842
15842
|
componentDidLoad() {
|
15843
|
-
|
15843
|
+
var _a;
|
15844
|
+
this.classRoomMode = (_a = get(SparkleGlobal.LOCALSTORAGE_CLASSROOM_MODE)) !== null && _a !== void 0 ? _a : false;
|
15844
15845
|
}
|
15845
15846
|
hostData() {
|
15846
15847
|
return {
|
@@ -15856,11 +15857,10 @@ const SparkleHeader = class {
|
|
15856
15857
|
return (h$1("div", { class: "class-room-toggle-container" }, h$1("div", { class: "class-room-mode-toggle-title" }, "Classroom"), h$1("div", { class: "class-room-mode-toggle" }, h$1("button", { class: this.classRoomMode == true ? 'is-selected' : null, title: "Toggle classroom mode", onClick: () => this.toggleClassRoomMode() }, "On"), h$1("button", { class: this.classRoomMode == false ? 'is-selected' : null, title: "Toggle classroom mode", onClick: () => this.toggleClassRoomMode() }, "Off"))));
|
15857
15858
|
}
|
15858
15859
|
__stencil_render() {
|
15859
|
-
return (h$1("header", null, h$1("sparkle-menu-toggle", { onClick: this.toggleClickFn }), h$1("a", { href: "/home" }, h$1("div", { class: "HeaderLogo" }, this.courseName)), h$1("header-mobile-collapse", null, h$1("div", { class: "SectionNav-tabs" }, h$1("stencil-route-link", { url: "/home" }, "Home")), h$1("nav", { class: "UtilNav" }, !this.authUser ? [
|
15860
|
+
return (h$1("header", null, h$1("sparkle-menu-toggle", { onClick: this.toggleClickFn }), h$1("a", { href: "/home" }, h$1("div", { class: "HeaderLogo" }, this.courseName)), h$1("header-mobile-collapse", null, h$1("div", { class: "SectionNav-tabs" }, h$1("stencil-route-link", { url: "/home" }, "Home")), h$1("nav", { class: "UtilNav" }, !this.authUser ? ([
|
15860
15861
|
h$1("sparkle-button", { href: "/login", round: true }, "Login"),
|
15861
|
-
h$1("sparkle-button", { href: "/signup", primary: true, round: true }, "Get Started")
|
15862
|
-
] :
|
15863
|
-
h$1("sparkle-dropdown", { image: this.imageUrl, align: "center", label: "Account", class: "label-sm-only profile-dropdown" }, h$1("section", null, h$1("stencil-route-link", { url: "/profile" }, "My Profile"), h$1("stencil-route-link", { url: "/enrollment" }, "My Enrollment"), h$1("a", { onClick: this.signoutClickFn }, "Sign Out"))), !this.hideClassRoomToggle && this.renderModeToggle(), h$1("slot", { name: "logo" })))));
|
15862
|
+
h$1("sparkle-button", { href: "/signup", primary: true, round: true }, "Get Started"),
|
15863
|
+
]) : (h$1("sparkle-dropdown", { image: this.imageUrl, align: "center", label: "Account", class: "label-sm-only profile-dropdown" }, h$1("section", null, h$1("stencil-route-link", { url: "/profile" }, "My Profile"), h$1("stencil-route-link", { url: "/enrollment" }, "My Enrollment"), h$1("a", { onClick: this.signoutClickFn }, "Sign Out")))), !this.hideClassRoomToggle && this.renderModeToggle(), h$1("slot", { name: "logo" })))));
|
15864
15864
|
}
|
15865
15865
|
render() { return h$1(Host, this.hostData(), this.__stencil_render()); }
|
15866
15866
|
};
|
@@ -16305,7 +16305,6 @@ const SparklePage = class {
|
|
16305
16305
|
if (this.presentation) {
|
16306
16306
|
this.page = Object.assign(Object.assign({}, this.page), { previousUrl: "/presentation" + this.page.previousUrl, nextUrl: "/presentation" + this.page.nextUrl });
|
16307
16307
|
}
|
16308
|
-
console.log(this.page);
|
16309
16308
|
StoreService.getInstance().UpdateTocPageInfo(this.page.pageInfo);
|
16310
16309
|
this.isLesson = this.page.pageInfo.pageId > 0;
|
16311
16310
|
this.pageDidLoad.emit({ pageInfo: this.page.pageInfo });
|
@@ -16475,7 +16474,6 @@ const SparklePage = class {
|
|
16475
16474
|
const content = [
|
16476
16475
|
h$1("main", { class: 'no-demo' }, this.renderControls(), h$1(Template, { page: page }))
|
16477
16476
|
];
|
16478
|
-
console.log("CONTENT", content);
|
16479
16477
|
return content;
|
16480
16478
|
}
|
16481
16479
|
else {
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
|
-
import { C as CheckmarkSoft } from './icons-
|
2
|
+
import { C as CheckmarkSoft } from './icons-61dec176.js';
|
3
3
|
|
4
4
|
const codeCss = "code[class*=\"language-\"],pre[class*=\"language-\"]{color:#4d4d4c;background:none;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=\"language-\"],:not(pre)>code[class*=\"language-\"]{background:hsl(30, 20%, 25%)}pre[class*=\"language-\"]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid hsl(30, 20%, 40%);border-radius:.5em;box-shadow:1px 1px .5em black inset}:not(pre)>code[class*=\"language-\"]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid hsl(30, 20%, 40%);box-shadow:1px 1px .3em -.1em black inset;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#8c9296}.token.punctuation{opacity:.7}.namespace{opacity:.7}.token.tag{color:#91c5ff}.token.tag .token.tag{color:#2b90ff}.token.property,.token.attr-name,.token.boolean,.token.number,.token.constant,.token.symbol{color:#8454ff}.token.selector,.token.char,.token.function,.token.builtin,.token.inserted{color:#ff6810}.token.operator,.token.string,.token.entity,.token.url,.token.attr-value,.language-css .token.string,.style .token.string,.token.variable{color:#42b983}.token.atrule{color:#ffbb01}.token.regex,.token.keyword,.token.important{color:#f55073}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}sparkle-code[language=\"shell\"]>pre{background-color:var(--text-color--dark);border-radius:7px}sparkle-code[language=\"shell\"]:before{display:none}sparkle-code[language=\"shell\"] code{color:rgba(255, 255, 255, 0.7);font-size:13px}sparkle-code[language=\"shell\"] .token{color:inherit}sparkle-code[language=\"shell\"] .token.prompt{color:#fb96f9;user-select:none}sparkle-code[language=\"shell\"] .token.comment{color:rgba(255, 255, 255, 0.45)}sparkle-code{display:block;position:relative}sparkle-code:before{color:#bdc5d1;content:attr(language);font-family:var(--code-font-family);font-size:10px;letter-spacing:0.05em;line-height:1;padding:0.75em;position:absolute;right:0;text-transform:uppercase;top:0}sparkle-code[language=\"shell\"] pre{white-space:pre-wrap}.code-text__copy{position:absolute;right:0;top:-1.6rem;height:20px}.code-text__copy-link,.code-text__copy-confirmation{padding:4px 5px;font-size:12px;line-height:12px;font-weight:600;position:absolute;right:0;top:0}.code-text__copy-link{transition:0.2s transform ,\r\n 0.2s opacity,\r\n 0.2s color;color:#70A4FF;background-color:#E0EEFF;border-radius:4px;display:inline-block;cursor:pointer;opacity:1;transform:translate3d(0,0,0);z-index:5}.code-text__copy-link:hover{color:var(--blue)}.code-text__copy-confirmation{transition:0.2s transform ,\r\n 0.2s opacity;color:#0ec254;opacity:0;transform:translate3d(0,5px,0);z-index:1;display:flex;align-items:center;height:20px;padding:0}.code-text__copy-confirmation svg{fill:#0ec254;margin-right:-4px}.show-confirmation .code-text__copy-link{opacity:0;transform:translate3d(0,-5px,0);pointer-events:none}.show-confirmation .code-text__copy-confirmation{opacity:1;transform:translate3d(0,0,0)}";
|
5
5
|
|