@sparkle-learning/core 0.0.39 → 0.0.40
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/{auth.service-4b584cd7.js → PrivateRoute-074c584e.js} +30 -0
- package/dist/cjs/{sparkle-export-lessons_6.cjs.entry.js → header-mobile-collapse_61.cjs.entry.js} +11602 -2716
- package/dist/cjs/{icons-c61db785.js → icons-fda820af.js} +0 -0
- package/dist/cjs/index.cjs.js +5 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sparkle-code.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-core.cjs.js +1 -1
- package/dist/cjs/sparkle-feedback.cjs.entry.js +1 -2
- package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +117 -0
- package/dist/cjs/sparkle-quiz.cjs.entry.js +120 -0
- package/dist/cjs/student.service-2e58f237.js +78 -0
- package/dist/esm/{auth.service-9fb86455.js → PrivateRoute-c5441f35.js} +33 -4
- package/dist/esm/{animation-e0716b39.js → animation-12377cb3.js} +1 -1
- package/dist/esm/{auth.store-633e8414.js → auth.store-dba2c2da.js} +1 -1
- package/dist/esm/{facilitator.service-8fd435bf.js → facilitator.service-b0292f7f.js} +2 -2
- package/dist/esm/{feed.service-ace049e5.js → feed.service-8fbe4ce3.js} +3 -3
- package/dist/esm/{framework-delegate-e4f8013b.js → framework-delegate-3e634a5c.js} +1 -1
- package/dist/esm/{sparkle-export-lessons_6.entry.js → header-mobile-collapse_61.entry.js} +11501 -2670
- package/dist/esm/{helpers-03073fe4.js → helpers-bf0e23d6.js} +1 -1
- package/dist/esm/{httpService-61864992.js → httpService-7b75b095.js} +2 -2
- package/dist/esm/{icons-90b957ab.js → icons-1c794c74.js} +1 -1
- package/dist/esm/{index-b4b4e503.js → index-2b84cad2.js} +3 -3
- package/dist/esm/{index-a2d2941d.js → index-45fec1e7.js} +1 -1
- package/dist/esm/{index-37004831.js → index-5e8971ae.js} +1 -1
- package/dist/esm/{index-dedabca0.js → index-cded2d87.js} +2 -2
- package/dist/esm/{index.es-283fbd2e.js → index.es-e0c0f891.js} +1 -1
- package/dist/esm/index.js +5 -6
- package/dist/esm/{input-shims-cc3720a0.js → input-shims-671d8d9f.js} +2 -2
- package/dist/esm/ion-accordion.entry.js +1 -1
- package/dist/esm/ion-action-sheet_4.entry.js +5 -5
- package/dist/esm/ion-app.entry.js +3 -3
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-breadcrumb.entry.js +1 -1
- package/dist/esm/ion-content_2.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +1 -1
- package/dist/esm/ion-datetime.entry.js +1 -1
- package/dist/esm/ion-fab-button.entry.js +1 -1
- package/dist/esm/ion-footer.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll.entry.js +2 -2
- package/dist/esm/ion-item-options.entry.js +1 -1
- package/dist/esm/ion-item-sliding.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu-button.entry.js +4 -4
- package/dist/esm/ion-menu-toggle.entry.js +4 -4
- package/dist/esm/ion-menu.entry.js +4 -4
- package/dist/esm/ion-modal.entry.js +6 -6
- package/dist/esm/ion-nav.entry.js +4 -4
- package/dist/esm/ion-picker-column-internal_2.entry.js +1 -1
- package/dist/esm/ion-picker-column.entry.js +1 -1
- package/dist/esm/ion-picker.entry.js +3 -3
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-refresher.entry.js +3 -3
- package/dist/esm/ion-reorder-group.entry.js +2 -2
- package/dist/esm/ion-router-outlet.entry.js +4 -4
- package/dist/esm/ion-router.entry.js +1 -1
- package/dist/esm/ion-searchbar.entry.js +1 -1
- package/dist/esm/ion-segment-button.entry.js +1 -1
- package/dist/esm/ion-segment.entry.js +1 -1
- package/dist/esm/ion-select_2.entry.js +2 -2
- package/dist/esm/ion-slides.entry.js +1 -1
- package/dist/esm/ion-tab.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +1 -1
- package/dist/esm/ion-virtual-scroll.entry.js +1 -1
- package/dist/esm/{ios.transition-3a6179bb.js → ios.transition-131d64fe.js} +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-cff16bf3.js → md.transition-f6126011.js} +3 -3
- package/dist/esm/{menu-toggle-util-59241733.js → menu-toggle-util-bace8ae6.js} +1 -1
- package/dist/esm/{overlays-bdd9344a.js → overlays-3b4dca92.js} +2 -2
- package/dist/esm/{purify-7085b248.js → purify-85bfcc69.js} +1 -1
- package/dist/esm/sparkle-animation-player.entry.js +1 -1
- package/dist/esm/sparkle-code.entry.js +1 -1
- package/dist/esm/sparkle-core.js +1 -1
- package/dist/esm/sparkle-facilitator-notes-form.entry.js +5 -5
- package/dist/esm/sparkle-feed-post.entry.js +1 -1
- package/dist/esm/sparkle-feedback.entry.js +5 -6
- package/dist/esm/sparkle-goal-form.entry.js +6 -6
- package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
- package/dist/esm/sparkle-quiz-feedback_5.entry.js +109 -0
- package/dist/esm/sparkle-quiz.entry.js +116 -0
- package/dist/esm/{status-tap-463d0f87.js → status-tap-dde52787.js} +2 -2
- package/dist/esm/{student.service-e6eb1f99.js → student.service-0746418b.js} +19 -3
- package/dist/esm/{swipe-back-f8765ac9.js → swipe-back-7847a0c1.js} +1 -1
- package/dist/esm/{util-a831d09d.js → util-6ef753e9.js} +1 -1
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +49 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +208 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +31 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +245 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +115 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +255 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +232 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +3 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +25 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +71 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +194 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +4 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +67 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +18 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +89 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +52 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +98 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +8 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +37 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +64 -0
- package/dist/sparkle-core/index.esm.js +1 -1
- package/dist/sparkle-core/{p-539bf742.js → p-00d10dc9.js} +2 -2
- package/dist/sparkle-core/{p-b9933822.js → p-05c032dd.js} +1 -1
- package/dist/sparkle-core/{p-dabc80c4.entry.js → p-0664370b.entry.js} +1 -1
- package/dist/sparkle-core/p-077c732b.js +4 -0
- package/dist/sparkle-core/{p-c278db5f.entry.js → p-0ad5c123.entry.js} +1 -1
- package/dist/sparkle-core/{p-b9b1d4da.entry.js → p-0afa3a4d.entry.js} +1 -1
- package/dist/sparkle-core/{p-285ab4ed.entry.js → p-0c3f3ea6.entry.js} +1 -1
- package/dist/sparkle-core/{p-727e1c28.entry.js → p-0f1c5899.entry.js} +1 -1
- package/dist/sparkle-core/{p-64e814b9.entry.js → p-11356b03.entry.js} +1 -1
- package/dist/sparkle-core/{p-b5ec8fb0.entry.js → p-11a6c175.entry.js} +1 -1
- package/dist/sparkle-core/p-12dd96d7.js +4 -0
- package/dist/sparkle-core/{p-a85598ad.js → p-1d4c7c11.js} +1 -1
- package/dist/sparkle-core/{p-c8fe45df.entry.js → p-1e125ca5.entry.js} +1 -1
- package/dist/sparkle-core/{p-cab3da3c.entry.js → p-1e4f65ee.entry.js} +1 -1
- package/dist/sparkle-core/{p-405f7c58.js → p-2033cd86.js} +2 -2
- package/dist/sparkle-core/p-23aca7ca.js +4 -0
- package/dist/sparkle-core/{p-e65c72cc.entry.js → p-24cb9a33.entry.js} +1 -1
- package/dist/sparkle-core/{p-014b5707.entry.js → p-2c1ca854.entry.js} +1 -1
- package/dist/sparkle-core/{p-340754ed.js → p-2f569553.js} +1 -1
- package/dist/sparkle-core/{p-2e2b813c.js → p-2ff67662.js} +2 -2
- package/dist/sparkle-core/{p-0c0f8acd.entry.js → p-30b810d1.entry.js} +1 -1
- package/dist/sparkle-core/{p-b236d258.entry.js → p-377b04c2.entry.js} +1 -1
- package/dist/sparkle-core/{p-fde382f0.entry.js → p-39712c56.entry.js} +1 -1
- package/dist/sparkle-core/{p-be28346b.js → p-3de0e00c.js} +1 -1
- package/dist/sparkle-core/p-462bffba.js +1 -0
- package/dist/sparkle-core/{p-3f85e1ca.js → p-48f72e63.js} +2 -2
- package/dist/sparkle-core/{p-6f0545b3.entry.js → p-54dd894f.entry.js} +1 -1
- package/dist/sparkle-core/{p-ce94efdb.entry.js → p-564e64fc.entry.js} +1 -1
- package/dist/sparkle-core/{p-db8387eb.entry.js → p-58e4bbe5.entry.js} +1 -1
- package/dist/sparkle-core/{p-ca4c8a10.js → p-5cad23f1.js} +1 -1
- package/dist/sparkle-core/p-5efc6566.js +1 -0
- package/dist/sparkle-core/{p-c9cd4ff1.js → p-600cf6a3.js} +1 -1
- package/dist/sparkle-core/{p-2e035338.entry.js → p-641bfc92.entry.js} +1 -1
- package/dist/sparkle-core/{p-b4bc8b02.entry.js → p-6faa194c.entry.js} +1 -1
- package/dist/sparkle-core/{p-2f10208d.entry.js → p-6ffd2420.entry.js} +1 -1
- package/dist/sparkle-core/p-73721c84.js +4 -0
- package/dist/sparkle-core/{p-ed9f48c4.entry.js → p-74864276.entry.js} +1 -1
- package/dist/sparkle-core/p-80d6b0e6.entry.js +1 -0
- package/dist/sparkle-core/p-8492a765.entry.js +1 -0
- package/dist/sparkle-core/{p-a019ad0c.js → p-86ed13f0.js} +1 -1
- package/dist/sparkle-core/{p-4ae75caa.entry.js → p-894ff7e6.entry.js} +1 -1
- package/dist/sparkle-core/{p-5519d283.entry.js → p-9289cdbc.entry.js} +1 -1
- package/dist/sparkle-core/{p-4bd4dab2.js → p-935e7cfc.js} +1 -1
- package/dist/sparkle-core/{p-25e556cc.entry.js → p-957715c5.entry.js} +1 -1
- package/dist/sparkle-core/{p-b4b01fa2.entry.js → p-9abbd715.entry.js} +1 -1
- package/dist/sparkle-core/{p-e7568d4b.js → p-9d894ed4.js} +1 -1
- package/dist/sparkle-core/{p-4320dac0.entry.js → p-9ebf0537.entry.js} +1 -1
- package/dist/sparkle-core/p-a49ab4e8.entry.js +1 -0
- package/dist/sparkle-core/{p-93e74f1b.entry.js → p-af3cc111.entry.js} +1 -1
- package/dist/sparkle-core/{p-5fc26938.js → p-b0603d19.js} +1 -1
- package/dist/sparkle-core/{p-317037de.entry.js → p-b3f375fb.entry.js} +1 -1
- package/dist/sparkle-core/p-b4408842.entry.js +352 -0
- package/dist/sparkle-core/{p-2fba9a3a.entry.js → p-b5f3e1bf.entry.js} +1 -1
- package/dist/sparkle-core/{p-82ad4e7c.entry.js → p-b96f3c84.entry.js} +2 -2
- package/dist/sparkle-core/{p-ad102371.js → p-bd80ff43.js} +1 -1
- package/dist/sparkle-core/{p-f0cf4a8f.entry.js → p-be64105c.entry.js} +1 -1
- package/dist/sparkle-core/{p-f4b0b6a4.entry.js → p-c0533c23.entry.js} +1 -1
- package/dist/sparkle-core/p-c3cadfc6.entry.js +1 -0
- package/dist/sparkle-core/{p-2d4a5ddf.entry.js → p-c60b29bd.entry.js} +2 -2
- package/dist/sparkle-core/{p-56a2e8a2.js → p-cabe9139.js} +1 -1
- package/dist/sparkle-core/{p-0bb0cf41.entry.js → p-cabfbf22.entry.js} +1 -1
- package/dist/sparkle-core/{p-66a85393.entry.js → p-ce4b22f7.entry.js} +1 -1
- package/dist/sparkle-core/{p-17eb4633.js → p-d68092b7.js} +1 -1
- package/dist/sparkle-core/{p-0ea2518d.entry.js → p-de4deb61.entry.js} +1 -1
- package/dist/sparkle-core/{p-1f0b3ff9.entry.js → p-e686d8b5.entry.js} +1 -1
- package/dist/sparkle-core/{p-08d97c59.entry.js → p-e77d982d.entry.js} +1 -1
- package/dist/sparkle-core/{p-44f813b7.entry.js → p-e863bf1d.entry.js} +1 -1
- package/dist/sparkle-core/{p-63f69cdc.entry.js → p-ebd4354b.entry.js} +1 -1
- package/dist/sparkle-core/{p-fc965b88.entry.js → p-ef4edc48.entry.js} +1 -1
- package/dist/sparkle-core/{p-c2bbaf55.entry.js → p-fb0ca75e.entry.js} +1 -1
- package/dist/sparkle-core/{p-b83444c7.entry.js → p-fb757951.entry.js} +1 -1
- package/dist/sparkle-core/{p-d81a0680.js → p-fbccd30c.js} +1 -1
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/PrivateRoute-4abc9d29.js +0 -35
- package/dist/cjs/dom-utils-b8befdd5.js +0 -63
- package/dist/cjs/header-mobile-collapse.cjs.entry.js +0 -90
- package/dist/cjs/index-70e63f5b.js +0 -3071
- package/dist/cjs/injectHistory-7206bbb9.js +0 -9
- package/dist/cjs/ion-avatar.cjs.entry.js +0 -25
- package/dist/cjs/ion-button.cjs.entry.js +0 -129
- package/dist/cjs/ion-card_2.cjs.entry.js +0 -91
- package/dist/cjs/ion-checkbox_4.cjs.entry.js +0 -360
- package/dist/cjs/ion-col_3.cjs.entry.js +0 -159
- package/dist/cjs/ion-icon_13.cjs.entry.js +0 -1505
- package/dist/cjs/ion-input_2.cjs.entry.js +0 -313
- package/dist/cjs/ion-label_2.cjs.entry.js +0 -126
- package/dist/cjs/ion-spinner.cjs.entry.js +0 -64
- package/dist/cjs/match-path-84c9f7ca.js +0 -511
- package/dist/cjs/sparkle-card_3.cjs.entry.js +0 -91
- package/dist/cjs/sparkle-course-root.cjs.entry.js +0 -146
- package/dist/cjs/sparkle-dropdown.cjs.entry.js +0 -61
- package/dist/cjs/sparkle-facilitator-header_19.cjs.entry.js +0 -2130
- package/dist/cjs/sparkle-goal-progress.cjs.entry.js +0 -19
- package/dist/cjs/sparkle-gww-item.cjs.entry.js +0 -74
- package/dist/cjs/sparkle-menu-toggle_3.cjs.entry.js +0 -236
- package/dist/cjs/sparkle-validation-error.cjs.entry.js +0 -21
- package/dist/cjs/stencil-router-redirect.cjs.entry.js +0 -32
- package/dist/cjs/student.service-d48f1c99.js +0 -61
- package/dist/cjs/user.store-8a049c4e.js +0 -21
- package/dist/esm/PrivateRoute-7b526801.js +0 -33
- package/dist/esm/dom-utils-109a7d75.js +0 -55
- package/dist/esm/header-mobile-collapse.entry.js +0 -86
- package/dist/esm/index-f9b9ba5d.js +0 -3067
- package/dist/esm/injectHistory-968f626d.js +0 -7
- package/dist/esm/ion-avatar.entry.js +0 -21
- package/dist/esm/ion-button.entry.js +0 -125
- package/dist/esm/ion-card_2.entry.js +0 -86
- package/dist/esm/ion-checkbox_4.entry.js +0 -353
- package/dist/esm/ion-col_3.entry.js +0 -153
- package/dist/esm/ion-icon_13.entry.js +0 -1489
- package/dist/esm/ion-input_2.entry.js +0 -308
- package/dist/esm/ion-label_2.entry.js +0 -121
- package/dist/esm/ion-spinner.entry.js +0 -60
- package/dist/esm/match-path-36fdf5c7.js +0 -499
- package/dist/esm/sparkle-card_3.entry.js +0 -85
- package/dist/esm/sparkle-course-root.entry.js +0 -142
- package/dist/esm/sparkle-dropdown.entry.js +0 -57
- package/dist/esm/sparkle-facilitator-header_19.entry.js +0 -2108
- package/dist/esm/sparkle-goal-progress.entry.js +0 -15
- package/dist/esm/sparkle-gww-item.entry.js +0 -70
- package/dist/esm/sparkle-menu-toggle_3.entry.js +0 -230
- package/dist/esm/sparkle-validation-error.entry.js +0 -17
- package/dist/esm/stencil-router-redirect.entry.js +0 -28
- package/dist/esm/user.store-b8645067.js +0 -19
- package/dist/sparkle-core/p-03585916.js +0 -1
- package/dist/sparkle-core/p-1019ebc3.js +0 -1
- package/dist/sparkle-core/p-1728ead7.js +0 -1
- package/dist/sparkle-core/p-32762a44.entry.js +0 -1
- package/dist/sparkle-core/p-3bc68dd0.js +0 -1
- package/dist/sparkle-core/p-3c133235.entry.js +0 -1
- package/dist/sparkle-core/p-46869031.entry.js +0 -1
- package/dist/sparkle-core/p-4a5f2b2b.js +0 -1
- package/dist/sparkle-core/p-53bcbd1d.js +0 -1
- package/dist/sparkle-core/p-54ada5e3.entry.js +0 -1
- package/dist/sparkle-core/p-554da5b8.entry.js +0 -1
- package/dist/sparkle-core/p-5da2d95a.entry.js +0 -1
- package/dist/sparkle-core/p-6b05a1d3.entry.js +0 -1
- package/dist/sparkle-core/p-6ea246fe.js +0 -4
- package/dist/sparkle-core/p-6ed0236e.entry.js +0 -1
- package/dist/sparkle-core/p-7f25366a.entry.js +0 -1
- package/dist/sparkle-core/p-91accfc1.js +0 -1
- package/dist/sparkle-core/p-a5c5da9a.entry.js +0 -1
- package/dist/sparkle-core/p-a8a77bec.entry.js +0 -1
- package/dist/sparkle-core/p-c4af184b.entry.js +0 -1
- package/dist/sparkle-core/p-c71cbbf7.entry.js +0 -1
- package/dist/sparkle-core/p-c8c73fa7.js +0 -4
- package/dist/sparkle-core/p-cd832fbf.entry.js +0 -1
- package/dist/sparkle-core/p-d0ac5f17.js +0 -1
- package/dist/sparkle-core/p-d1fcbfc2.js +0 -4
- package/dist/sparkle-core/p-d432d3ac.entry.js +0 -1
- package/dist/sparkle-core/p-d969f7d0.entry.js +0 -348
- package/dist/sparkle-core/p-dca90a55.entry.js +0 -4
- package/dist/sparkle-core/p-dd2e7f84.js +0 -4
- package/dist/sparkle-core/p-e0429a19.entry.js +0 -1
- package/dist/sparkle-core/p-e7066c64.entry.js +0 -1
- package/dist/sparkle-core/p-eb40a191.entry.js +0 -1
- package/dist/sparkle-core/p-ecdea569.entry.js +0 -1
- package/dist/sparkle-core/p-ef6c2352.entry.js +0 -1
@@ -1,15 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-c04b9ed5.js';
|
2
|
-
|
3
|
-
const sparkleGoalProgressCss = ":host{display:block}.progress-container{padding:4px;display:flex;align-items:center}.progress-container>.progress{padding-left:6px}#progress-bar{background:#ccc;border-radius:12px;height:10px;width:100%;padding:0px;margin:0 auto}#progress-bar:after{content:'';display:block;background:var(--ion-color-primary);width:var(--p);height:100%;border-radius:9px}.percentage{padding-left:10px}";
|
4
|
-
|
5
|
-
const SparkleGoalProgress = class {
|
6
|
-
constructor(hostRef) {
|
7
|
-
registerInstance(this, hostRef);
|
8
|
-
}
|
9
|
-
render() {
|
10
|
-
return (h(Host, null, h("div", { class: "progress-container" }, h("div", { id: "progress-bar", style: { "--p": this.percentage + "%" } }), h("strong", { class: "percentage" }, this.percentage, "%"))));
|
11
|
-
}
|
12
|
-
};
|
13
|
-
SparkleGoalProgress.style = sparkleGoalProgressCss;
|
14
|
-
|
15
|
-
export { SparkleGoalProgress as sparkle_goal_progress };
|
@@ -1,70 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, c as getAssetPath, H as Host } from './index-c04b9ed5.js';
|
2
|
-
import { m as modalController } from './overlays-bdd9344a.js';
|
3
|
-
import { S as SparkleGlobal, f as date } from './util-a831d09d.js';
|
4
|
-
import './ionic-global-4903e23e.js';
|
5
|
-
import './hardware-back-button-fa04d6e9.js';
|
6
|
-
import './helpers-03073fe4.js';
|
7
|
-
|
8
|
-
var PostVisibility;
|
9
|
-
(function (PostVisibility) {
|
10
|
-
PostVisibility[PostVisibility["Private"] = 0] = "Private";
|
11
|
-
PostVisibility[PostVisibility["Public"] = 1] = "Public";
|
12
|
-
})(PostVisibility || (PostVisibility = {}));
|
13
|
-
|
14
|
-
const sparkleGwwItemCss = ":host{display:block}.Card{background-color:var(--background);border-radius:4px;box-shadow:rgb(2 8 20 / 10%) 0px 0.175em 0.5em, rgb(2 8 20 / 8%) 0px 0.085em 0.175em;color:var(--text-color--light);display:flex;flex-direction:column;font-size:inherit;font-weight:normal;justify-content:flex-start;line-height:1.6;transition:box-shadow 150ms ease 0s, transform 150ms ease 0s, -webkit-box-shadow 150ms ease 0s, -webkit-transform 150ms ease 0s;width:100%;overflow:hidden;margin-bottom:20px;height:auto !important}.footer ion-item ion-avatar{width:30px;height:30px}.comment-overview{padding:0px 16px;text-align:right;cursor:pointer}";
|
15
|
-
|
16
|
-
const SparkleGwwItem = class {
|
17
|
-
constructor(hostRef) {
|
18
|
-
registerInstance(this, hostRef);
|
19
|
-
}
|
20
|
-
async presentModal(comments) {
|
21
|
-
const modal = await modalController.create({
|
22
|
-
component: "sparkle-gww-comment-list",
|
23
|
-
componentProps: { comments: comments }
|
24
|
-
});
|
25
|
-
await modal.present();
|
26
|
-
}
|
27
|
-
clearCommentField() {
|
28
|
-
this.comment = "";
|
29
|
-
}
|
30
|
-
renderMyMoodTemplate(data) {
|
31
|
-
return (h("div", null, h("b", null, "Mood:"), " ", data.Mood, h("br", null), h("b", null, "Level:"), " ", data.Level, h("br", null), h("img", { src: data.MoodImage }), "`"));
|
32
|
-
}
|
33
|
-
renderMyHealthTemplate(data) {
|
34
|
-
return (h("div", null, h("b", null, "Heart rate:"), " ", data.HeartRate, " bpm "));
|
35
|
-
}
|
36
|
-
renderMyGoalTemplate(data) {
|
37
|
-
return (h("div", null, h("b", null, "Goal: "), " ", data.GoalTitle, " ", h("br", null), h("b", null, "Update Text: "), " ", data.GoalText, " ", h("br", null), h("sparkle-goal-progress", { percentage: data.GoalProgress })));
|
38
|
-
}
|
39
|
-
renderTemplate() {
|
40
|
-
if (this.post.PostTextJSON) {
|
41
|
-
var parseData = JSON.parse(this.post.PostTextJSON);
|
42
|
-
if (this.post.MiniAppId == SparkleGlobal.MY_GOALS_APP_ID) {
|
43
|
-
return this.renderMyGoalTemplate(parseData);
|
44
|
-
}
|
45
|
-
else if (this.post.MiniAppId == SparkleGlobal.MY_HEALTH_APP_ID) {
|
46
|
-
return this.renderMyHealthTemplate(parseData);
|
47
|
-
}
|
48
|
-
else if (this.post.MiniAppId == SparkleGlobal.MY_MOOD_APP_ID) {
|
49
|
-
return this.renderMyMoodTemplate(parseData);
|
50
|
-
}
|
51
|
-
}
|
52
|
-
else {
|
53
|
-
return ([
|
54
|
-
h("div", { innerHTML: this.post.PostText }),
|
55
|
-
this.post.ExternalResourceUrl && h("div", null, h("img", { src: this.post.ExternalResourceUrl, class: "external-src-image" }))
|
56
|
-
]);
|
57
|
-
}
|
58
|
-
}
|
59
|
-
render() {
|
60
|
-
return (h(Host, { class: {
|
61
|
-
'Card': true,
|
62
|
-
} }, h("ion-item", { class: "header-item" }, h("ion-avatar", { class: "header-avatar", slot: "start" }, h("img", { src: this.post.ProfileImageUrl ? this.post.ProfileImageUrl : getAssetPath("/assets/img/user.png") })), h("div", null, h("strong", { class: "requester-name", "text-capitalize": true }, this.post.Name), h("div", null, h("small", null, " ", date(this.post.CreatedOn)))), h("div", { slot: "end" }, h("ion-icon", { color: "primary", name: this.post.PostVisibility == PostVisibility.Public ? "globe-outline" : "eye-outline" }))), h("div", { class: "ion-padding" }, this.renderTemplate()), h("div", { class: "footer" }, this.post.Comments.length > 0 &&
|
63
|
-
h("div", { class: "comment-overview", slot: "end" }, " ", h("small", { onClick: () => this.post.Comments.length > 0 && this.presentModal(this.post.Comments) }, "Comments (", this.post.Comments.length, ")")), this.post.Comments.map((item) => {
|
64
|
-
h("ion-item", { class: "comment-box", onClick: () => this.presentModal(this.post.Comments) }, h("ion-avatar", { class: "footer-avatar", slot: "start" }, h("img", { src: item.ProfileImageUrl ? item.ProfileImageUrl : "/assets/img/user.png" })), h("small", null, h("b", null, item.Name), " ", item.Comment), h("ion-icon", { slot: "end", name: "git-merge", color: "primary" }));
|
65
|
-
}), h("hr", null), h("ion-item", { class: "comment-footer" }, h("ion-avatar", { class: "footer-avatar", slot: "start" }, h("img", { src: getAssetPath("/assets/img/user.png") })), h("ion-input", { value: this.comment, onIonChange: (e) => this.comment = e.target.value, type: "text", placeholder: "Write a comment" }), h("ion-button", { onClick: () => this.onPostComment({ Comment: this.comment, PostId: this.post.Id }), slot: "end", size: "small", disabled: !this.comment || this.loading }, this.loading ? h("ion-spinner", { name: "dots" }) : "POST COMMENT")))));
|
66
|
-
}
|
67
|
-
};
|
68
|
-
SparkleGwwItem.style = sparkleGwwItemCss;
|
69
|
-
|
70
|
-
export { SparkleGwwItem as sparkle_gww_item };
|
@@ -1,230 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host, e as getElement, k as getContext } from './index-c04b9ed5.js';
|
2
|
-
import { M as Menu } from './icons-90b957ab.js';
|
3
|
-
import { A as ActiveRouter } from './active-router-fc9e4e06.js';
|
4
|
-
import { m as matchPath } from './match-path-36fdf5c7.js';
|
5
|
-
|
6
|
-
const menuToggleCss = "sparkle-menu-toggle{background-color:rgba(0, 0, 0, var(--bg-alpha, 0));border-radius:50%;color:var(--text-color--light);cursor:pointer;height:40px;padding:8px;width:40px}@media (hover: hover){sparkle-menu-toggle:focus,sparkle-menu-toggle:hover{--bg-alpha:0.03;outline:none}sparkle-menu-toggle:active{--bg-alpha:0.06}}sparkle-menu-toggle svg{fill:currentColor}";
|
7
|
-
|
8
|
-
const SparkleMenuToggle = class {
|
9
|
-
constructor(hostRef) {
|
10
|
-
registerInstance(this, hostRef);
|
11
|
-
}
|
12
|
-
hostData() {
|
13
|
-
return {
|
14
|
-
'role': 'button',
|
15
|
-
'tabindex': '0',
|
16
|
-
'aria-label': 'Toggle Menu',
|
17
|
-
};
|
18
|
-
}
|
19
|
-
__stencil_render() {
|
20
|
-
return h(Menu, null);
|
21
|
-
}
|
22
|
-
render() { return h(Host, this.hostData(), this.__stencil_render()); }
|
23
|
-
};
|
24
|
-
SparkleMenuToggle.style = menuToggleCss;
|
25
|
-
|
26
|
-
const navCss = "sparkle-nav{display:block;flex:0 0 auto;z-index:1}sparkle-nav .wrapper{position:relative}sparkle-nav .section-label{margin-bottom:0;font-size:14px;font-weight:600}sparkle-nav .module-list li,sparkle-nav .module-list ul li{list-style-type:none;margin:0;padding:0}sparkle-nav .module-list{margin-top:0;padding:0}sparkle-nav .module-list .section-label:first-of-type{margin-top:0}sparkle-nav .module-list li{font-size:14px;padding:10px 10px 0px 14px}sparkle-nav .module-list>li{margin-top:10px}sparkle-nav .module-list a{font-weight:400;color:#6c6c8b;text-decoration:none;white-space:nowrap;border:0}sparkle-nav .module-list a:not(.link-active){transition:color 0.2s}sparkle-nav .module-list a:hover{border:0}sparkle-nav .module-list .link-active{font-weight:bold;color:var(--ion-color-sparkle)}sparkle-nav .module-list .link-active a{color:var(--ion-color-sparkle)}sparkle-nav .module-list a:hover:not(.link-active){color:var(--ion-color-sparkle)}sparkle-nav .module-list ul li{padding-left:12px;transition:80ms height;display:block;overflow:hidden;text-overflow:ellipsis}sparkle-nav .module-list ul.collapsed li{height:0}sparkle-nav ul.session-list{margin:0;padding:10px 0px 0px 0px}sparkle-nav ul.session-list li a{display:flex;flex-direction:column;padding:15px 24px;position:relative}sparkle-nav ul.session-list li a:before{content:'';width:10px;height:10px;border-radius:50%;background:#dfe1e3;display:block;position:absolute;left:1px;top:50%;margin-top:-5px;z-index:5}sparkle-nav ul.session-list li a:after{content:'';background:#dfe1e3;height:100%;position:absolute;width:2px;display:block;left:5px;top:0}sparkle-nav ul.session-list li a.is-active{color:var(--ion-color-sparkle)}sparkle-nav ul.session-list li a.is-active:before{width:14px;height:14px;left:23px;margin-top:-7px;background:var(--ion-color-sparkle);box-shadow:0 0 4px var(--ion-color-sparkle)}sparkle-nav ul.session-list li a.is-active:after{background:#dfe1e3}sparkle-nav ul.session-list li stencil-route-link.is-completed a{}sparkle-nav ul.session-list li stencil-route-link.is-completed a:before{background:var(--ion-color-sparkle)}sparkle-nav ul.session-list li stencil-route-link.is-completed a:after{background:var(--ion-color-sparkle)}sparkle-nav ul.session-list li a p{color:#fff;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.2s ease-in-out color}sparkle-nav ul.session-list li a span{display:block;line-height:12px}sparkle-nav ul li span.coming-soon{font-size:0.7rem;display:block;background:0 0;color:#f6c95b;line-height:14px;border-radius:4px;padding:1px 4px 0;box-shadow:none;border:1px solid #f6c95b;width:85px;text-align:center}sparkle-nav ul.session-list li a:hover p{color:var(--ion-color-sparkle)}sparkle-nav ul.session-list li:first-child a:after{height:50%;top:50%}sparkle-nav ul.session-list li:last-child a:after{height:50%;bottom:50%}";
|
27
|
-
|
28
|
-
const SparkleNav = class {
|
29
|
-
constructor(hostRef) {
|
30
|
-
registerInstance(this, hostRef);
|
31
|
-
//TODO: get this config somewhere from the config initialization
|
32
|
-
this.config = {
|
33
|
-
showRomanNumber: false,
|
34
|
-
showModuleIndex: true,
|
35
|
-
showSessionIndex: true,
|
36
|
-
};
|
37
|
-
this.toggleParent = (parentItem) => {
|
38
|
-
return (e) => {
|
39
|
-
e.preventDefault();
|
40
|
-
this.selectedParent = parentItem;
|
41
|
-
};
|
42
|
-
};
|
43
|
-
}
|
44
|
-
componentDidLoad() { }
|
45
|
-
//TODO: not working
|
46
|
-
pageDidLoadHandler($event) {
|
47
|
-
if ($event) {
|
48
|
-
//let pageInfo = $event.detail.pageInfo;
|
49
|
-
let splittedParts = window.location.pathname.split('/').filter(x => !!x && x != 'course');
|
50
|
-
this.moduleURLName = splittedParts[0];
|
51
|
-
this.sessionURLName = splittedParts[1];
|
52
|
-
if (this.toc) {
|
53
|
-
let courseModule = this.toc.courseModules.find(x => x.urlName == this.moduleURLName);
|
54
|
-
this.selectedParent = courseModule;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
toggleLeftSidebar() { }
|
59
|
-
romanize(num) {
|
60
|
-
if (isNaN(num))
|
61
|
-
return NaN;
|
62
|
-
var digits = String(+num).split(''), key = [
|
63
|
-
'',
|
64
|
-
'C',
|
65
|
-
'CC',
|
66
|
-
'CCC',
|
67
|
-
'CD',
|
68
|
-
'D',
|
69
|
-
'DC',
|
70
|
-
'DCC',
|
71
|
-
'DCCC',
|
72
|
-
'CM',
|
73
|
-
'',
|
74
|
-
'X',
|
75
|
-
'XX',
|
76
|
-
'XXX',
|
77
|
-
'XL',
|
78
|
-
'L',
|
79
|
-
'LX',
|
80
|
-
'LXX',
|
81
|
-
'LXXX',
|
82
|
-
'XC',
|
83
|
-
'',
|
84
|
-
'I',
|
85
|
-
'II',
|
86
|
-
'III',
|
87
|
-
'IV',
|
88
|
-
'V',
|
89
|
-
'VI',
|
90
|
-
'VII',
|
91
|
-
'VIII',
|
92
|
-
'IX',
|
93
|
-
], roman = '', i = 3;
|
94
|
-
while (i--)
|
95
|
-
roman = (key[+digits.pop() + i * 10] || '') + roman;
|
96
|
-
return Array(+digits.join('') + 1).join('M') + roman;
|
97
|
-
}
|
98
|
-
getModuleIndex(index, preventNumbering) {
|
99
|
-
return this.config.showModuleIndex && !preventNumbering ? (this.config.showRomanNumber ? this.romanize(index) : index) + '. ' : '';
|
100
|
-
}
|
101
|
-
getSessionIndex(index, preventNumbering) {
|
102
|
-
return this.config.showSessionIndex && !preventNumbering ? (index) + '. ' : '';
|
103
|
-
}
|
104
|
-
hostData() {
|
105
|
-
return {
|
106
|
-
role: 'navigation',
|
107
|
-
};
|
108
|
-
}
|
109
|
-
__stencil_render() {
|
110
|
-
let moduleIndex = 0;
|
111
|
-
let sessionIndex = 0;
|
112
|
-
return (h("ul", { class: "module-list" }, this.toc &&
|
113
|
-
this.toc.courseModules.map(module => {
|
114
|
-
sessionIndex = 0;
|
115
|
-
if (!module.preventNumbering) {
|
116
|
-
moduleIndex++;
|
117
|
-
}
|
118
|
-
return (module.sessions.length > 0 && (h("li", null, h("a", { class: { 'link-active': module.urlName == this.moduleURLName }, href: module.sessions[0].urlName || '#', onClick: this.toggleParent(module) }, h("span", { class: "section-label" }, this.getModuleIndex(moduleIndex, module.preventNumbering), module.name, module.comingSoon && h("span", { class: "coming-soon" }, " Coming soon"))), h("ul", { class: { 'collapsed': this.selectedParent ? module !== this.selectedParent : moduleIndex !== 0, 'session-list': true } }, module.sessions.map(session => {
|
119
|
-
if (!session.preventNumbering) {
|
120
|
-
sessionIndex++;
|
121
|
-
}
|
122
|
-
return (h("li", { class: {
|
123
|
-
'active': module.urlName == this.moduleURLName && session.urlName == this.sessionURLName,
|
124
|
-
} }, h("stencil-route-link", { class: {
|
125
|
-
'is-completed': true,
|
126
|
-
'link-active': module.urlName == this.moduleURLName && session.urlName == this.sessionURLName,
|
127
|
-
}, url: 'course/' + module.urlName + '/' + session.urlName + '/' + session.pages[0].urlName, onClick: () => this.toggleLeftSidebar() }, this.getSessionIndex(sessionIndex, session.preventNumbering), session.name, session.comingSoon && h("span", { class: "coming-soon" }, " Coming soon"))));
|
128
|
-
})))));
|
129
|
-
})));
|
130
|
-
}
|
131
|
-
get el() { return getElement(this); }
|
132
|
-
render() { return h(Host, this.hostData(), this.__stencil_render()); }
|
133
|
-
};
|
134
|
-
SparkleNav.style = navCss;
|
135
|
-
|
136
|
-
const getUniqueId = () => {
|
137
|
-
return ((Math.random() * 10e16).toString().match(/.{4}/g) || []).join('-');
|
138
|
-
};
|
139
|
-
const getMatch = (pathname, url, exact) => {
|
140
|
-
return matchPath(pathname, {
|
141
|
-
path: url,
|
142
|
-
exact: exact,
|
143
|
-
strict: true
|
144
|
-
});
|
145
|
-
};
|
146
|
-
const isHTMLStencilRouteElement = (elm) => {
|
147
|
-
return elm.tagName === 'STENCIL-ROUTE';
|
148
|
-
};
|
149
|
-
const RouteSwitch = class {
|
150
|
-
constructor(hostRef) {
|
151
|
-
registerInstance(this, hostRef);
|
152
|
-
this.group = getUniqueId();
|
153
|
-
this.subscribers = [];
|
154
|
-
this.queue = getContext(this, "queue");
|
155
|
-
}
|
156
|
-
componentWillLoad() {
|
157
|
-
if (this.location != null) {
|
158
|
-
this.regenerateSubscribers(this.location);
|
159
|
-
}
|
160
|
-
}
|
161
|
-
async regenerateSubscribers(newLocation) {
|
162
|
-
if (newLocation == null) {
|
163
|
-
return;
|
164
|
-
}
|
165
|
-
let newActiveIndex = -1;
|
166
|
-
this.subscribers = Array.prototype.slice.call(this.el.children)
|
167
|
-
.filter(isHTMLStencilRouteElement)
|
168
|
-
.map((childElement, index) => {
|
169
|
-
const match = getMatch(newLocation.pathname, childElement.url, childElement.exact);
|
170
|
-
if (match && newActiveIndex === -1) {
|
171
|
-
newActiveIndex = index;
|
172
|
-
}
|
173
|
-
return {
|
174
|
-
el: childElement,
|
175
|
-
match: match
|
176
|
-
};
|
177
|
-
});
|
178
|
-
if (newActiveIndex === -1) {
|
179
|
-
return;
|
180
|
-
}
|
181
|
-
// Check if this actually changes which child is active
|
182
|
-
// then just pass the new match down if the active route isn't changing.
|
183
|
-
if (this.activeIndex === newActiveIndex) {
|
184
|
-
this.subscribers[newActiveIndex].el.match = this.subscribers[newActiveIndex].match;
|
185
|
-
return;
|
186
|
-
}
|
187
|
-
this.activeIndex = newActiveIndex;
|
188
|
-
// Set all props on the new active route then wait until it says that it
|
189
|
-
// is completed
|
190
|
-
const activeChild = this.subscribers[this.activeIndex];
|
191
|
-
if (this.scrollTopOffset) {
|
192
|
-
activeChild.el.scrollTopOffset = this.scrollTopOffset;
|
193
|
-
}
|
194
|
-
activeChild.el.group = this.group;
|
195
|
-
activeChild.el.match = activeChild.match;
|
196
|
-
activeChild.el.componentUpdated = (routeViewUpdatedOptions) => {
|
197
|
-
// After the new active route has completed then update visibility of routes
|
198
|
-
this.queue.write(() => {
|
199
|
-
this.subscribers.forEach((child, index) => {
|
200
|
-
child.el.componentUpdated = undefined;
|
201
|
-
if (index === this.activeIndex) {
|
202
|
-
return child.el.style.display = '';
|
203
|
-
}
|
204
|
-
if (this.scrollTopOffset) {
|
205
|
-
child.el.scrollTopOffset = this.scrollTopOffset;
|
206
|
-
}
|
207
|
-
child.el.group = this.group;
|
208
|
-
child.el.match = null;
|
209
|
-
child.el.style.display = 'none';
|
210
|
-
});
|
211
|
-
});
|
212
|
-
if (this.routeViewsUpdated) {
|
213
|
-
this.routeViewsUpdated(Object.assign({ scrollTopOffset: this.scrollTopOffset }, routeViewUpdatedOptions));
|
214
|
-
}
|
215
|
-
};
|
216
|
-
}
|
217
|
-
render() {
|
218
|
-
return (h("slot", null));
|
219
|
-
}
|
220
|
-
get el() { return getElement(this); }
|
221
|
-
static get watchers() { return {
|
222
|
-
"location": ["regenerateSubscribers"]
|
223
|
-
}; }
|
224
|
-
};
|
225
|
-
ActiveRouter.injectProps(RouteSwitch, [
|
226
|
-
'location',
|
227
|
-
'routeViewsUpdated'
|
228
|
-
]);
|
229
|
-
|
230
|
-
export { SparkleMenuToggle as sparkle_menu_toggle, SparkleNav as sparkle_nav, RouteSwitch as stencil_route_switch };
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-c04b9ed5.js';
|
2
|
-
|
3
|
-
const sparkleValidationErrorCss = ":host{display:block}sparkle-validation-error ul{padding:10px 0px}sparkle-validation-error .alert-danger{margin-top:10px;font-size:12px}";
|
4
|
-
|
5
|
-
const SparkleValidationError = class {
|
6
|
-
constructor(hostRef) {
|
7
|
-
registerInstance(this, hostRef);
|
8
|
-
this.errors = [];
|
9
|
-
}
|
10
|
-
render() {
|
11
|
-
return (h(Host, null, this.errors.length > 0 &&
|
12
|
-
h("div", { class: "alert alert-danger", role: "alert" }, h("ul", null, this.errors.map(error => h("li", null, h("b", null, error.Field, ": "), error.Message))))));
|
13
|
-
}
|
14
|
-
};
|
15
|
-
SparkleValidationError.style = sparkleValidationErrorCss;
|
16
|
-
|
17
|
-
export { SparkleValidationError as sparkle_validation_error };
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { r as registerInstance, e as getElement } from './index-c04b9ed5.js';
|
2
|
-
import { A as ActiveRouter } from './active-router-fc9e4e06.js';
|
3
|
-
|
4
|
-
// Get the URL for this route link without the root from the router
|
5
|
-
const getUrl = (url, root) => {
|
6
|
-
// Don't allow double slashes
|
7
|
-
if (url.charAt(0) == '/' && root.charAt(root.length - 1) == '/') {
|
8
|
-
return root.slice(0, root.length - 1) + url;
|
9
|
-
}
|
10
|
-
return root + url;
|
11
|
-
};
|
12
|
-
const Redirect = class {
|
13
|
-
constructor(hostRef) {
|
14
|
-
registerInstance(this, hostRef);
|
15
|
-
}
|
16
|
-
componentWillLoad() {
|
17
|
-
if (this.history && this.root && this.url) {
|
18
|
-
return this.history.replace(getUrl(this.url, this.root));
|
19
|
-
}
|
20
|
-
}
|
21
|
-
get el() { return getElement(this); }
|
22
|
-
};
|
23
|
-
ActiveRouter.injectProps(Redirect, [
|
24
|
-
'history',
|
25
|
-
'root'
|
26
|
-
]);
|
27
|
-
|
28
|
-
export { Redirect as stencil_router_redirect };
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { c as createStore } from './auth.store-633e8414.js';
|
2
|
-
|
3
|
-
const { state, onChange, reset } = createStore({
|
4
|
-
user: {
|
5
|
-
FirstName: '',
|
6
|
-
LastName: '',
|
7
|
-
ProfileText: '',
|
8
|
-
ProfileImage: '',
|
9
|
-
IsVerified: false,
|
10
|
-
Roles: [],
|
11
|
-
FacilitatorClassList: []
|
12
|
-
},
|
13
|
-
loaded: false,
|
14
|
-
updateLoading: false,
|
15
|
-
enrollmentList: [],
|
16
|
-
});
|
17
|
-
const userStore = { state, onChange, reset };
|
18
|
-
|
19
|
-
export { userStore as u };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{H as a}from"./p-a85598ad.js";import{u as e}from"./p-4a5f2b2b.js";class t{constructor(){}static getInstance(){return t.instance||(t.instance=new t),t.instance}async enrollClass(t){let r=await a.http.post("api/v1/Student/EnrollClass",t);return r&&(e.state.enrollmentList=[...e.state.enrollmentList,r.Data]),r}async leaveClass(t){let r=await a.http.post("api/v1/Student/LeaveClass",t);return r&&(e.state.enrollmentList=e.state.enrollmentList.filter((a=>a.Id!=r.Data))),r}async fetchUserConfiguration(){let t=await a.http.get("api/v1/Student/UserConfiguration");return t&&(e.state.enrollmentList=t.Data.EnrollmentList,e.state.user.FirstName=t.Data.FirstName,e.state.user.LastName=t.Data.LastName,e.state.user.ProfileText=t.Data.ProfileText,e.state.user.ProfileImage=t.Data.ProfileImage,e.state.user.IsVerified=t.Data.IsVerified,e.state.user.Roles=t.Data.Roles,e.state.user.FacilitatorClassList=t.Data.FacilitatorClassList),t}async updateProfile(t){e.state.updateLoading=!0;let r=await a.http.post("api/Account/update-profile",t);return console.log("after fetch",r),r&&(e.state.updateLoading=!1,e.state.user=Object.assign(Object.assign({},e.state.user),{FirstName:r.Data.FirstName,LastName:r.Data.LastName,ProfileText:r.Data.ProfileText,ProfileImage:r.Data.ProfileImage})),r}async submitFeedback(e){return await a.http.post("api/v1/Feedback",e)}}export{t as S}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{c as t}from"./p-ee1e0eb4.js";import{s as e,r as a,g as r}from"./p-5d409601.js";import{H as s}from"./p-a85598ad.js";import{A as n}from"./p-340754ed.js";const o=new class{constructor(){this.sample=t=>t[Math.floor(Math.random()*t.length)],this.keyBy=(t,e,a)=>t.reduce(((t,r)=>(t[e(r)]=a?a(r):r,t)),{}),this.debounce=(t,e)=>{let a=null;return(...r)=>{clearTimeout(a),a=setTimeout(t,e,...r)}}}loadScript(t){var e=document.createElement("script");e.type="text/javascript",e.src=t,document.body.appendChild(e)}loadScriptAsync(t){return new Promise((function(e,a){const r=document.createElement("script");let s=!1;r.type="text/javascript",r.src=t,r.async=!0,r.onerror=function(t){a(t)},r.onload=r.onreadystatechange=function(){s||this.readyState&&"complete"!=this.readyState||(s=!0,e(!0))};const n=document.getElementsByTagName("script")[0];n.parentElement.insertBefore(r,n)}))}extend(...t){let e,a,r,s,n,o,i,c=t[0]||{},l=1,u=t.length,p=!1;for("boolean"==typeof c&&(p=c,c=t[l]||{},l++),"object"!=typeof c&&"function"!=typeof c&&(c={}),l===u&&(c=this,l--);l<u;l++)if(null!==(e=t[l]))for(a in e)r=c[a],n=e[a],c!==n&&(s=Array.isArray(r)?"array":typeof r,p&&n&&((o=Array.isArray(n))||"object"==typeof n)?(o?(o=!1,i=r&&"array"===s?r:[]):i=r&&"object"===s?r:{},c[a]=this.extend(p,i,n)):void 0!==n&&(c[a]=n));return c}setLocalization(){if(!sparkle.utils.getCookieValue("Sparkle.Localization.CultureName")){let t=navigator.language;sparkle.utils.setCookieValue("Sparkle.Localization.CultureName",t,new Date((new Date).getTime()+15768e7),sparkle.appPath)}}};async function i(t){if(!window)return;const e=window,a=e.Sparkle;if(!a||!a.config||"Object"===a.config.constructor.name)return e.Sparkle=e.Sparkle||{},e.Sparkle.config=Object.assign(Object.assign({},e.Sparkle.config),t),e.Sparkle.config;console.error("Sparkle config was already initialized")}async function c(e){await o.loadScriptAsync(t("../assets/lib/sparkle.js")),await i(e)}const l="enc_auth_token";class u{constructor(){}static getInstance(){return u.instance||(u.instance=new u),u.instance}async authenticate(t){const a={"Content-Type":"application/json"};let r;n.state.loading=!0;try{if(r=await s.http.post("api/Account/Authenticate",t,{headers:a}),r){const a=r.Data,s={Id:a.Id,UserName:a.UserName,Email:a.Email,Roles:a.Roles,IsVerified:a.IsVerified,JWToken:a.JWToken,IssuedOn:a.IssuedOn,ExpiresOn:a.ExpiresOn,RefreshToken:a.RefreshToken,PhotoUrl:"",IsFacilitator:a.Roles.indexOf("Facilitator")>0},o=t.RememberClient?new Date(s.ExpiresOn):void 0;return sparkle.auth.setToken(s.JWToken,o),sparkle.utils.setCookieValue(l,s.JWToken,o,sparkle.appPath),await e("CurrentUser",s),n.state.authUser=Object.assign({},s),n.state.loading=!1,s}}catch(t){return n.state.loading=!1,t}}async signOut(){await a("CurrentUser"),sessionStorage.clear(),sparkle.auth.clearToken(),n.state.authUser=null,n.state.isAuthenticated=!1}async getLocalAuthUser(){return r("CurrentUser")}}export{u as A,c as i,i as s}
|
@@ -1 +0,0 @@
|
|
1
|
-
const e=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),r=e=>e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),t=e=>e.replace(/([=!:$/()])/g,"\\$1"),n=e=>e&&e.sensitive?"":"i",a=(e,t,a)=>{for(var o=(a=a||{}).strict,s=!1!==a.end,i=r(a.delimiter||"/"),l=a.delimiters||"./",c=[].concat(a.endsWith||[]).map(r).concat("$").join("|"),u="",f=!1,p=0;p<e.length;p++){var d=e[p];if("string"==typeof d)u+=r(d),f=p===e.length-1&&l.indexOf(d[d.length-1])>-1;else{var h=r(d.prefix||""),v=d.repeat?"(?:"+d.pattern+")(?:"+h+"(?:"+d.pattern+"))*":d.pattern;t&&t.push(d),u+=d.optional?d.partial?h+"("+v+")?":"(?:"+h+"("+v+"))?":h+"("+v+")"}}return s?(o||(u+="(?:"+i+")?"),u+="$"===c?"$":"(?="+c+")"):(o||(u+="(?:"+i+"(?="+c+"))?"),f||(u+="(?="+i+"|"+c+")")),new RegExp("^"+u,n(a))},o=(s,i,l)=>s instanceof RegExp?((e,r)=>{if(!r)return e;var t=e.source.match(/\((?!\?)/g);if(t)for(var n=0;n<t.length;n++)r.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return e})(s,i):Array.isArray(s)?((e,r,t)=>{for(var a=[],s=0;s<e.length;s++)a.push(o(e[s],r,t).source);return new RegExp("(?:"+a.join("|")+")",n(t))})(s,i,l):((n,o,s)=>a(((n,a)=>{for(var o,s=[],i=0,l=0,c="",u=a&&a.delimiter||"/",f=a&&a.delimiters||"./",p=!1;null!==(o=e.exec(n));){var d=o[0],h=o[1],v=o.index;if(c+=n.slice(l,v),l=v+d.length,h)c+=h[1],p=!0;else{var g="",y=n[l],$=o[2],m=o[3],x=o[4],R=o[5];if(!p&&c.length){var E=c.length-1;f.indexOf(c[E])>-1&&(g=c[E],c=c.slice(0,E))}c&&(s.push(c),c="",p=!1);var b=g||u,w=m||x;s.push({name:$||i++,prefix:g,delimiter:b,optional:"?"===R||"*"===R,repeat:"+"===R||"*"===R,partial:""!==g&&void 0!==y&&y!==g,pattern:w?t(w):"[^"+r(b)+"]+?"})}}return(c||l<n.length)&&s.push(c+n.substr(l)),s})(n,s),o,s))(s,i,l),s=(e,r)=>new RegExp("^"+r+"(\\/|\\?|#|$)","i").test(e),i=(e,r)=>s(e,r)?e.substr(r.length):e,l=e=>"/"===e.charAt(e.length-1)?e.slice(0,-1):e,c=e=>"/"===e.charAt(0)?e:"/"+e,u=e=>"/"===e.charAt(0)?e.substr(1):e,f=e=>{const{pathname:r,search:t,hash:n}=e;let a=r||"/";return t&&"?"!==t&&(a+="?"===t.charAt(0)?t:`?${t}`),n&&"#"!==n&&(a+="#"===n.charAt(0)?n:`#${n}`),a},p=e=>"/"===e.charAt(0),d=e=>Math.random().toString(36).substr(2,e),h=(e,r)=>{for(let t=r,n=t+1,a=e.length;n<a;t+=1,n+=1)e[t]=e[n];e.pop()},v=(e,r)=>{if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return Array.isArray(r)&&e.length===r.length&&e.every(((e,t)=>v(e,r[t])));const t=typeof e;if(t!==typeof r)return!1;if("object"===t){const t=e.valueOf(),n=r.valueOf();if(t!==e||n!==r)return v(t,n);const a=Object.keys(e),o=Object.keys(r);return a.length===o.length&&a.every((t=>v(e[t],r[t])))}return!1},g=(e,r)=>e.pathname===r.pathname&&e.search===r.search&&e.hash===r.hash&&e.key===r.key&&v(e.state,r.state),y=(e,r,t,n)=>{let a;"string"==typeof e?(a=(e=>{let r=e||"/",t="",n="";const a=r.indexOf("#");-1!==a&&(n=r.substr(a),r=r.substr(0,a));const o=r.indexOf("?");return-1!==o&&(t=r.substr(o),r=r.substr(0,o)),{pathname:r,search:"?"===t?"":t,hash:"#"===n?"":n,query:{},key:""}})(e),void 0!==r&&(a.state=r)):(a=Object.assign({pathname:""},e),a.search&&"?"!==a.search.charAt(0)&&(a.search="?"+a.search),a.hash&&"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash),void 0!==r&&void 0===a.state&&(a.state=r));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}var o;return a.key=t,n?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=((e,r="")=>{let t,n=r&&r.split("/")||[],a=0;const o=e&&e.split("/")||[],s=e&&p(e),i=r&&p(r),l=s||i;if(e&&p(e)?n=o:o.length&&(n.pop(),n=n.concat(o)),!n.length)return"/";if(n.length){const e=n[n.length-1];t="."===e||".."===e||""===e}else t=!1;for(let e=n.length;e>=0;e--){const r=n[e];"."===r?h(n,e):".."===r?(h(n,e),a++):a&&(h(n,e),a--)}if(!l)for(;a--;a)n.unshift("..");!l||""===n[0]||n[0]&&p(n[0])||n.unshift("");let c=n.join("/");return t&&"/"!==c.substr(-1)&&(c+="/"),c})(a.pathname,n.pathname)):a.pathname=n.pathname:a.pathname||(a.pathname="/"),a.query=(o=a.search||"")?(/^[?#]/.test(o)?o.slice(1):o).split("&").reduce(((e,r)=>{let[t,n]=r.split("=");return e[t]=n?decodeURIComponent(n.replace(/\+/g," ")):"",e}),{}):{},a};let $=0;const m={},x=(e,r={})=>{"string"==typeof r&&(r={path:r});const{path:t="/",exact:n=!1,strict:a=!1}=r,{re:s,keys:i}=((e,r)=>{const t=`${r.end}${r.strict}`,n=m[t]||(m[t]={}),a=JSON.stringify(e);if(n[a])return n[a];const s=[],i={re:o(e,s,r),keys:s};return $<1e4&&(n[a]=i,$+=1),i})(t,{end:n,strict:a}),l=s.exec(e);if(!l)return null;const[c,...u]=l,f=e===c;return n&&!f?null:{path:t,url:"/"===t&&""===c?"/":c,isExact:f,params:i.reduce(((e,r,t)=>(e[r.name]=u[t],e)),{})}},R=(e,r)=>null==e&&null==r||null!=r&&e&&r&&e.path===r.path&&e.url===r.url&&v(e.params,r.params);export{R as a,c as b,y as c,d,i as e,f,u as g,s as h,g as l,x as m,l as s}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as i,i as t,h as r,H as o,e}from"./p-ee1e0eb4.js";import{g as n}from"./p-871106e0.js";import{h as a,j as s,a as d,r as l}from"./p-17eb4633.js";import{c,h}from"./p-0e4de1d0.js";const b=class{constructor(r){i(this,r),this.ionChange=t(this,"ionChange",7),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.ionStyle=t(this,"ionStyle",7),this.inputId="ion-cb-"+p++,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.onClick=i=>{i.preventDefault(),this.setFocus(),this.checked=!this.checked,this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.emitStyle()}checkedChanged(i){this.ionChange.emit({checked:i,value:this.value}),this.emitStyle()}disabledChanged(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"checkbox-checked":this.checked,"interactive-disabled":this.disabled})}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{color:i,checked:t,disabled:e,el:d,indeterminate:l,inputId:b,name:p,value:g}=this,m=n(this),{label:u,labelId:k,labelText:x}=a(d,b);s(!0,d,p,t?g:"",e);let f=r("path",l?{d:"M6 12L18 12",part:"mark"}:{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return"md"===m&&(f=r("path",l?{d:"M2 12H22",part:"mark"}:{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),r(o,{onClick:this.onClick,"aria-labelledby":u?k:null,"aria-checked":`${t}`,"aria-hidden":e?"true":null,role:"checkbox",class:c(i,{[m]:!0,"in-item":h("ion-item",d),"checkbox-checked":t,"checkbox-disabled":e,"checkbox-indeterminate":l,interactive:!0})},r("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},f),r("label",{htmlFor:b},x),r("input",{type:"checkbox","aria-checked":`${t}`,disabled:e,id:b,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:i=>this.focusEl=i}))}get el(){return e(this)}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"]}}};let p=0;b.style={ios:":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:1px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--background:var(--ion-item-background, var(--ion-background-color, #fff));--size:26px;width:var(--size);height:var(--size)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.in-item[slot=start]){margin-left:2px;margin-right:20px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:20px;margin-inline-end:20px}}",md:":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.51);--checkmark-width:3;--background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px;width:var(--size);height:var(--size)}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:18px;margin-bottom:18px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}"};const g=class{constructor(t){i(this,t)}render(){const{lines:i}=this,t=n(this);return r(o,{class:c(this.color,{[t]:!0,[`list-header-lines-${i}`]:void 0!==i})},r("div",{class:"list-header-inner"},r("slot",null)))}};g.style={ios:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-left:calc(var(--ion-safe-area-left, 0px) + 20px);position:relative;align-items:flex-end;font-size:22px;font-weight:700;letter-spacing:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0px) + 20px);padding-inline-start:calc(var(--ion-safe-area-left, 0px) + 20px)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){margin-left:3px;margin-right:3px;height:1.4em}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-button){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px}}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",md:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-left:calc(var(--ion-safe-area-left, 0) + 16px);min-height:45px;font-size:14px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0) + 16px);padding-inline-start:calc(var(--ion-safe-area-left, 0) + 16px)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}"};const m=class{constructor(r){i(this,r),this.ionStyle=t(this,"ionStyle",7),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.inputId="ion-rb-"+u++,this.radioGroup=null,this.checked=!1,this.buttonTabindex=-1,this.name=this.inputId,this.disabled=!1,this.updateState=()=>{this.radioGroup&&(this.checked=this.radioGroup.value===this.value)},this.onClick=()=>{this.checked=this.nativeInput.checked},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}async setFocus(i){i.stopPropagation(),i.preventDefault(),this.el.focus()}async setButtonTabindex(i){this.buttonTabindex=i}connectedCallback(){void 0===this.value&&(this.value=this.inputId);const i=this.radioGroup=this.el.closest("ion-radio-group");i&&(this.updateState(),d(i,"ionChange",this.updateState))}disconnectedCallback(){const i=this.radioGroup;i&&(l(i,"ionChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"radio-checked":this.checked,"interactive-disabled":this.disabled})}render(){const{inputId:i,disabled:t,checked:e,color:s,el:d,buttonTabindex:l}=this,b=n(this),{label:p,labelId:g,labelText:m}=a(d,i);return r(o,{"aria-checked":`${e}`,"aria-hidden":t?"true":null,"aria-labelledby":p?g:null,role:"radio",tabindex:l,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:c(s,{[b]:!0,"in-item":h("ion-item",d),interactive:!0,"radio-checked":e,"radio-disabled":t})},r("div",{class:"radio-icon",part:"container"},r("div",{class:"radio-inner",part:"mark"}),r("div",{class:"radio-ripple"})),r("label",{htmlFor:i},m),r("input",{type:"radio",checked:e,disabled:t,tabindex:"-1",id:i,ref:i=>this.nativeInput=i}))}get el(){return e(this)}static get watchers(){return{color:["emitStyle"],checked:["emitStyle"],disabled:["emitStyle"]}}};let u=0;m.style={ios:':host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color-checked:var(--ion-color-primary, #3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:10px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}',md:':host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color:var(--ion-color-step-400, #999999);--color-checked:var(--ion-color-primary, #3880ff);--border-width:2px;--border-style:solid;--border-radius:50%;width:20px;height:20px}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));transform:scale3d(0, 0, 0);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{transform:scale3d(1, 1, 1)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-12px;top:-12px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-12px}:host(.in-item){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:11px;margin-bottom:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}'};const k=class{constructor(r){i(this,r),this.ionChange=t(this,"ionChange",7),this.inputId="ion-rg-"+x++,this.labelId=`${this.inputId}-lbl`,this.allowEmptySelection=!1,this.name=this.inputId,this.setRadioTabindex=i=>{const t=this.getRadios(),r=t.find((i=>!i.disabled)),o=t.find((t=>t.value===i&&!t.disabled));if(!r&&!o)return;const e=o||r;for(const i of t)i.setButtonTabindex(i===e?0:-1)},this.onClick=i=>{i.preventDefault();const t=i.target&&i.target.closest("ion-radio");if(t){const i=t.value;i!==this.value?this.value=i:this.allowEmptySelection&&(this.value=void 0)}}}valueChanged(i){this.setRadioTabindex(i),this.ionChange.emit({value:i})}componentDidLoad(){this.setRadioTabindex(this.value)}async connectedCallback(){const i=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(i){const t=this.label=i.querySelector("ion-label");t&&(this.labelId=t.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}onKeydown(i){const t=!!this.el.closest("ion-select-popover");if(i.target&&!this.el.contains(i.target))return;const r=this.getRadios().filter((i=>!i.disabled));if(i.target&&r.includes(i.target)){const o=r.findIndex((t=>t===i.target)),e=r[o];let n;["ArrowDown","ArrowRight"].includes(i.code)&&(n=o===r.length-1?r[0]:r[o+1]),["ArrowUp","ArrowLeft"].includes(i.code)&&(n=0===o?r[r.length-1]:r[o-1]),n&&r.includes(n)&&(n.setFocus(i),t||(this.value=n.value)),["Space"].includes(i.code)&&(this.value=this.allowEmptySelection&&void 0!==this.value?void 0:e.value,i.preventDefault())}}render(){const{label:i,labelId:t}=this,e=n(this);return r(o,{role:"radiogroup","aria-labelledby":i?t:null,onClick:this.onClick,class:e})}get el(){return e(this)}static get watchers(){return{value:["valueChanged"]}}};let x=0;export{b as ion_checkbox,g as ion_list_header,m as ion_radio,k as ion_radio_group}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{A as o}from"./p-99ee9919.js";function i(i){o.injectProps(i,["history","location"])}export{i}
|