@sparkle-learning/core 0.0.39 → 0.0.42
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,360 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-51e8292e.js');
|
6
|
-
const ionicGlobal = require('./ionic-global-2cde9d3a.js');
|
7
|
-
const helpers = require('./helpers-c2496722.js');
|
8
|
-
const theme = require('./theme-b0b295c1.js');
|
9
|
-
|
10
|
-
const checkboxIosCss = ":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}}";
|
11
|
-
|
12
|
-
const checkboxMdCss = ":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}}";
|
13
|
-
|
14
|
-
const Checkbox = class {
|
15
|
-
constructor(hostRef) {
|
16
|
-
index.registerInstance(this, hostRef);
|
17
|
-
this.ionChange = index.createEvent(this, "ionChange", 7);
|
18
|
-
this.ionFocus = index.createEvent(this, "ionFocus", 7);
|
19
|
-
this.ionBlur = index.createEvent(this, "ionBlur", 7);
|
20
|
-
this.ionStyle = index.createEvent(this, "ionStyle", 7);
|
21
|
-
this.inputId = `ion-cb-${checkboxIds++}`;
|
22
|
-
/**
|
23
|
-
* The name of the control, which is submitted with the form data.
|
24
|
-
*/
|
25
|
-
this.name = this.inputId;
|
26
|
-
/**
|
27
|
-
* If `true`, the checkbox is selected.
|
28
|
-
*/
|
29
|
-
this.checked = false;
|
30
|
-
/**
|
31
|
-
* If `true`, the checkbox will visually appear as indeterminate.
|
32
|
-
*/
|
33
|
-
this.indeterminate = false;
|
34
|
-
/**
|
35
|
-
* If `true`, the user cannot interact with the checkbox.
|
36
|
-
*/
|
37
|
-
this.disabled = false;
|
38
|
-
/**
|
39
|
-
* The value of the checkbox does not mean if it's checked or not, use the `checked`
|
40
|
-
* property for that.
|
41
|
-
*
|
42
|
-
* The value of a checkbox is analogous to the value of an `<input type="checkbox">`,
|
43
|
-
* it's only used when the checkbox participates in a native `<form>`.
|
44
|
-
*/
|
45
|
-
this.value = 'on';
|
46
|
-
this.onClick = (ev) => {
|
47
|
-
ev.preventDefault();
|
48
|
-
this.setFocus();
|
49
|
-
this.checked = !this.checked;
|
50
|
-
this.indeterminate = false;
|
51
|
-
};
|
52
|
-
this.onFocus = () => {
|
53
|
-
this.ionFocus.emit();
|
54
|
-
};
|
55
|
-
this.onBlur = () => {
|
56
|
-
this.ionBlur.emit();
|
57
|
-
};
|
58
|
-
}
|
59
|
-
componentWillLoad() {
|
60
|
-
this.emitStyle();
|
61
|
-
}
|
62
|
-
checkedChanged(isChecked) {
|
63
|
-
this.ionChange.emit({
|
64
|
-
checked: isChecked,
|
65
|
-
value: this.value,
|
66
|
-
});
|
67
|
-
this.emitStyle();
|
68
|
-
}
|
69
|
-
disabledChanged() {
|
70
|
-
this.emitStyle();
|
71
|
-
}
|
72
|
-
emitStyle() {
|
73
|
-
this.ionStyle.emit({
|
74
|
-
'checkbox-checked': this.checked,
|
75
|
-
'interactive-disabled': this.disabled,
|
76
|
-
});
|
77
|
-
}
|
78
|
-
setFocus() {
|
79
|
-
if (this.focusEl) {
|
80
|
-
this.focusEl.focus();
|
81
|
-
}
|
82
|
-
}
|
83
|
-
render() {
|
84
|
-
const { color, checked, disabled, el, indeterminate, inputId, name, value } = this;
|
85
|
-
const mode = ionicGlobal.getIonMode(this);
|
86
|
-
const { label, labelId, labelText } = helpers.getAriaLabel(el, inputId);
|
87
|
-
helpers.renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
88
|
-
let path = indeterminate ? (index.h("path", { d: "M6 12L18 12", part: "mark" })) : (index.h("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|
89
|
-
if (mode === 'md') {
|
90
|
-
path = indeterminate ? (index.h("path", { d: "M2 12H22", part: "mark" })) : (index.h("path", { d: "M1.73,12.91 8.1,19.28 22.79,4.59", part: "mark" }));
|
91
|
-
}
|
92
|
-
return (index.h(index.Host, { onClick: this.onClick, "aria-labelledby": label ? labelId : null, "aria-checked": `${checked}`, "aria-hidden": disabled ? 'true' : null, role: "checkbox", class: theme.createColorClasses(color, {
|
93
|
-
[mode]: true,
|
94
|
-
'in-item': theme.hostContext('ion-item', el),
|
95
|
-
'checkbox-checked': checked,
|
96
|
-
'checkbox-disabled': disabled,
|
97
|
-
'checkbox-indeterminate': indeterminate,
|
98
|
-
interactive: true,
|
99
|
-
}) }, index.h("svg", { class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path), index.h("label", { htmlFor: inputId }, labelText), index.h("input", { type: "checkbox", "aria-checked": `${checked}`, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) })));
|
100
|
-
}
|
101
|
-
get el() { return index.getElement(this); }
|
102
|
-
static get watchers() { return {
|
103
|
-
"checked": ["checkedChanged"],
|
104
|
-
"disabled": ["disabledChanged"]
|
105
|
-
}; }
|
106
|
-
};
|
107
|
-
let checkboxIds = 0;
|
108
|
-
Checkbox.style = {
|
109
|
-
ios: checkboxIosCss,
|
110
|
-
md: checkboxMdCss
|
111
|
-
};
|
112
|
-
|
113
|
-
const listHeaderIosCss = ":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}";
|
114
|
-
|
115
|
-
const listHeaderMdCss = ":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}";
|
116
|
-
|
117
|
-
const ListHeader = class {
|
118
|
-
constructor(hostRef) {
|
119
|
-
index.registerInstance(this, hostRef);
|
120
|
-
}
|
121
|
-
render() {
|
122
|
-
const { lines } = this;
|
123
|
-
const mode = ionicGlobal.getIonMode(this);
|
124
|
-
return (index.h(index.Host, { class: theme.createColorClasses(this.color, {
|
125
|
-
[mode]: true,
|
126
|
-
[`list-header-lines-${lines}`]: lines !== undefined,
|
127
|
-
}) }, index.h("div", { class: "list-header-inner" }, index.h("slot", null))));
|
128
|
-
}
|
129
|
-
};
|
130
|
-
ListHeader.style = {
|
131
|
-
ios: listHeaderIosCss,
|
132
|
-
md: listHeaderMdCss
|
133
|
-
};
|
134
|
-
|
135
|
-
const radioIosCss = ":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}}";
|
136
|
-
|
137
|
-
const radioMdCss = ":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}}";
|
138
|
-
|
139
|
-
const Radio = class {
|
140
|
-
constructor(hostRef) {
|
141
|
-
index.registerInstance(this, hostRef);
|
142
|
-
this.ionStyle = index.createEvent(this, "ionStyle", 7);
|
143
|
-
this.ionFocus = index.createEvent(this, "ionFocus", 7);
|
144
|
-
this.ionBlur = index.createEvent(this, "ionBlur", 7);
|
145
|
-
this.inputId = `ion-rb-${radioButtonIds++}`;
|
146
|
-
this.radioGroup = null;
|
147
|
-
/**
|
148
|
-
* If `true`, the radio is selected.
|
149
|
-
*/
|
150
|
-
this.checked = false;
|
151
|
-
/**
|
152
|
-
* The tabindex of the radio button.
|
153
|
-
* @internal
|
154
|
-
*/
|
155
|
-
this.buttonTabindex = -1;
|
156
|
-
/**
|
157
|
-
* The name of the control, which is submitted with the form data.
|
158
|
-
*/
|
159
|
-
this.name = this.inputId;
|
160
|
-
/**
|
161
|
-
* If `true`, the user cannot interact with the radio.
|
162
|
-
*/
|
163
|
-
this.disabled = false;
|
164
|
-
this.updateState = () => {
|
165
|
-
if (this.radioGroup) {
|
166
|
-
this.checked = this.radioGroup.value === this.value;
|
167
|
-
}
|
168
|
-
};
|
169
|
-
this.onClick = () => {
|
170
|
-
this.checked = this.nativeInput.checked;
|
171
|
-
};
|
172
|
-
this.onFocus = () => {
|
173
|
-
this.ionFocus.emit();
|
174
|
-
};
|
175
|
-
this.onBlur = () => {
|
176
|
-
this.ionBlur.emit();
|
177
|
-
};
|
178
|
-
}
|
179
|
-
/** @internal */
|
180
|
-
async setFocus(ev) {
|
181
|
-
ev.stopPropagation();
|
182
|
-
ev.preventDefault();
|
183
|
-
this.el.focus();
|
184
|
-
}
|
185
|
-
/** @internal */
|
186
|
-
async setButtonTabindex(value) {
|
187
|
-
this.buttonTabindex = value;
|
188
|
-
}
|
189
|
-
connectedCallback() {
|
190
|
-
if (this.value === undefined) {
|
191
|
-
this.value = this.inputId;
|
192
|
-
}
|
193
|
-
const radioGroup = (this.radioGroup = this.el.closest('ion-radio-group'));
|
194
|
-
if (radioGroup) {
|
195
|
-
this.updateState();
|
196
|
-
helpers.addEventListener(radioGroup, 'ionChange', this.updateState);
|
197
|
-
}
|
198
|
-
}
|
199
|
-
disconnectedCallback() {
|
200
|
-
const radioGroup = this.radioGroup;
|
201
|
-
if (radioGroup) {
|
202
|
-
helpers.removeEventListener(radioGroup, 'ionChange', this.updateState);
|
203
|
-
this.radioGroup = null;
|
204
|
-
}
|
205
|
-
}
|
206
|
-
componentWillLoad() {
|
207
|
-
this.emitStyle();
|
208
|
-
}
|
209
|
-
emitStyle() {
|
210
|
-
this.ionStyle.emit({
|
211
|
-
'radio-checked': this.checked,
|
212
|
-
'interactive-disabled': this.disabled,
|
213
|
-
});
|
214
|
-
}
|
215
|
-
render() {
|
216
|
-
const { inputId, disabled, checked, color, el, buttonTabindex } = this;
|
217
|
-
const mode = ionicGlobal.getIonMode(this);
|
218
|
-
const { label, labelId, labelText } = helpers.getAriaLabel(el, inputId);
|
219
|
-
return (index.h(index.Host, { "aria-checked": `${checked}`, "aria-hidden": disabled ? 'true' : null, "aria-labelledby": label ? labelId : null, role: "radio", tabindex: buttonTabindex, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: theme.createColorClasses(color, {
|
220
|
-
[mode]: true,
|
221
|
-
'in-item': theme.hostContext('ion-item', el),
|
222
|
-
interactive: true,
|
223
|
-
'radio-checked': checked,
|
224
|
-
'radio-disabled': disabled,
|
225
|
-
}) }, index.h("div", { class: "radio-icon", part: "container" }, index.h("div", { class: "radio-inner", part: "mark" }), index.h("div", { class: "radio-ripple" })), index.h("label", { htmlFor: inputId }, labelText), index.h("input", { type: "radio", checked: checked, disabled: disabled, tabindex: "-1", id: inputId, ref: (nativeEl) => (this.nativeInput = nativeEl) })));
|
226
|
-
}
|
227
|
-
get el() { return index.getElement(this); }
|
228
|
-
static get watchers() { return {
|
229
|
-
"color": ["emitStyle"],
|
230
|
-
"checked": ["emitStyle"],
|
231
|
-
"disabled": ["emitStyle"]
|
232
|
-
}; }
|
233
|
-
};
|
234
|
-
let radioButtonIds = 0;
|
235
|
-
Radio.style = {
|
236
|
-
ios: radioIosCss,
|
237
|
-
md: radioMdCss
|
238
|
-
};
|
239
|
-
|
240
|
-
const RadioGroup = class {
|
241
|
-
constructor(hostRef) {
|
242
|
-
index.registerInstance(this, hostRef);
|
243
|
-
this.ionChange = index.createEvent(this, "ionChange", 7);
|
244
|
-
this.inputId = `ion-rg-${radioGroupIds++}`;
|
245
|
-
this.labelId = `${this.inputId}-lbl`;
|
246
|
-
/**
|
247
|
-
* If `true`, the radios can be deselected.
|
248
|
-
*/
|
249
|
-
this.allowEmptySelection = false;
|
250
|
-
/**
|
251
|
-
* The name of the control, which is submitted with the form data.
|
252
|
-
*/
|
253
|
-
this.name = this.inputId;
|
254
|
-
this.setRadioTabindex = (value) => {
|
255
|
-
const radios = this.getRadios();
|
256
|
-
// Get the first radio that is not disabled and the checked one
|
257
|
-
const first = radios.find((radio) => !radio.disabled);
|
258
|
-
const checked = radios.find((radio) => radio.value === value && !radio.disabled);
|
259
|
-
if (!first && !checked) {
|
260
|
-
return;
|
261
|
-
}
|
262
|
-
// If an enabled checked radio exists, set it to be the focusable radio
|
263
|
-
// otherwise we default to focus the first radio
|
264
|
-
const focusable = checked || first;
|
265
|
-
for (const radio of radios) {
|
266
|
-
const tabindex = radio === focusable ? 0 : -1;
|
267
|
-
radio.setButtonTabindex(tabindex);
|
268
|
-
}
|
269
|
-
};
|
270
|
-
this.onClick = (ev) => {
|
271
|
-
ev.preventDefault();
|
272
|
-
const selectedRadio = ev.target && ev.target.closest('ion-radio');
|
273
|
-
if (selectedRadio) {
|
274
|
-
const currentValue = this.value;
|
275
|
-
const newValue = selectedRadio.value;
|
276
|
-
if (newValue !== currentValue) {
|
277
|
-
this.value = newValue;
|
278
|
-
}
|
279
|
-
else if (this.allowEmptySelection) {
|
280
|
-
this.value = undefined;
|
281
|
-
}
|
282
|
-
}
|
283
|
-
};
|
284
|
-
}
|
285
|
-
valueChanged(value) {
|
286
|
-
this.setRadioTabindex(value);
|
287
|
-
this.ionChange.emit({ value });
|
288
|
-
}
|
289
|
-
componentDidLoad() {
|
290
|
-
this.setRadioTabindex(this.value);
|
291
|
-
}
|
292
|
-
async connectedCallback() {
|
293
|
-
// Get the list header if it exists and set the id
|
294
|
-
// this is used to set aria-labelledby
|
295
|
-
const header = this.el.querySelector('ion-list-header') || this.el.querySelector('ion-item-divider');
|
296
|
-
if (header) {
|
297
|
-
const label = (this.label = header.querySelector('ion-label'));
|
298
|
-
if (label) {
|
299
|
-
this.labelId = label.id = this.name + '-lbl';
|
300
|
-
}
|
301
|
-
}
|
302
|
-
}
|
303
|
-
getRadios() {
|
304
|
-
return Array.from(this.el.querySelectorAll('ion-radio'));
|
305
|
-
}
|
306
|
-
onKeydown(ev) {
|
307
|
-
const inSelectPopover = !!this.el.closest('ion-select-popover');
|
308
|
-
if (ev.target && !this.el.contains(ev.target)) {
|
309
|
-
return;
|
310
|
-
}
|
311
|
-
// Get all radios inside of the radio group and then
|
312
|
-
// filter out disabled radios since we need to skip those
|
313
|
-
const radios = this.getRadios().filter((radio) => !radio.disabled);
|
314
|
-
// Only move the radio if the current focus is in the radio group
|
315
|
-
if (ev.target && radios.includes(ev.target)) {
|
316
|
-
const index = radios.findIndex((radio) => radio === ev.target);
|
317
|
-
const current = radios[index];
|
318
|
-
let next;
|
319
|
-
// If hitting arrow down or arrow right, move to the next radio
|
320
|
-
// If we're on the last radio, move to the first radio
|
321
|
-
if (['ArrowDown', 'ArrowRight'].includes(ev.code)) {
|
322
|
-
next = index === radios.length - 1 ? radios[0] : radios[index + 1];
|
323
|
-
}
|
324
|
-
// If hitting arrow up or arrow left, move to the previous radio
|
325
|
-
// If we're on the first radio, move to the last radio
|
326
|
-
if (['ArrowUp', 'ArrowLeft'].includes(ev.code)) {
|
327
|
-
next = index === 0 ? radios[radios.length - 1] : radios[index - 1];
|
328
|
-
}
|
329
|
-
if (next && radios.includes(next)) {
|
330
|
-
next.setFocus(ev);
|
331
|
-
if (!inSelectPopover) {
|
332
|
-
this.value = next.value;
|
333
|
-
}
|
334
|
-
}
|
335
|
-
// Update the radio group value when a user presses the
|
336
|
-
// space bar on top of a selected radio
|
337
|
-
if (['Space'].includes(ev.code)) {
|
338
|
-
this.value = this.allowEmptySelection && this.value !== undefined ? undefined : current.value;
|
339
|
-
// Prevent browsers from jumping
|
340
|
-
// to the bottom of the screen
|
341
|
-
ev.preventDefault();
|
342
|
-
}
|
343
|
-
}
|
344
|
-
}
|
345
|
-
render() {
|
346
|
-
const { label, labelId } = this;
|
347
|
-
const mode = ionicGlobal.getIonMode(this);
|
348
|
-
return index.h(index.Host, { role: "radiogroup", "aria-labelledby": label ? labelId : null, onClick: this.onClick, class: mode });
|
349
|
-
}
|
350
|
-
get el() { return index.getElement(this); }
|
351
|
-
static get watchers() { return {
|
352
|
-
"value": ["valueChanged"]
|
353
|
-
}; }
|
354
|
-
};
|
355
|
-
let radioGroupIds = 0;
|
356
|
-
|
357
|
-
exports.ion_checkbox = Checkbox;
|
358
|
-
exports.ion_list_header = ListHeader;
|
359
|
-
exports.ion_radio = Radio;
|
360
|
-
exports.ion_radio_group = RadioGroup;
|
@@ -1,159 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-51e8292e.js');
|
6
|
-
const ionicGlobal = require('./ionic-global-2cde9d3a.js');
|
7
|
-
|
8
|
-
/*!
|
9
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
10
|
-
*/
|
11
|
-
const SIZE_TO_MEDIA = {
|
12
|
-
xs: '(min-width: 0px)',
|
13
|
-
sm: '(min-width: 576px)',
|
14
|
-
md: '(min-width: 768px)',
|
15
|
-
lg: '(min-width: 992px)',
|
16
|
-
xl: '(min-width: 1200px)',
|
17
|
-
};
|
18
|
-
// Check if the window matches the media query
|
19
|
-
// at the breakpoint passed
|
20
|
-
// e.g. matchBreakpoint('sm') => true if screen width exceeds 576px
|
21
|
-
const matchBreakpoint = (breakpoint) => {
|
22
|
-
if (breakpoint === undefined || breakpoint === '') {
|
23
|
-
return true;
|
24
|
-
}
|
25
|
-
if (window.matchMedia) {
|
26
|
-
const mediaQuery = SIZE_TO_MEDIA[breakpoint];
|
27
|
-
return window.matchMedia(mediaQuery).matches;
|
28
|
-
}
|
29
|
-
return false;
|
30
|
-
};
|
31
|
-
|
32
|
-
const colCss = ":host{padding-left:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;box-sizing:border-box;position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px))}}@media (min-width: 576px){:host{padding-left:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 768px){:host{padding-left:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 992px){:host{padding-left:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 1200px){:host{padding-left:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}}";
|
33
|
-
|
34
|
-
const win = typeof window !== 'undefined' ? window : undefined;
|
35
|
-
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
36
|
-
const SUPPORTS_VARS = win && !!(win.CSS && win.CSS.supports && win.CSS.supports('--a: 0'));
|
37
|
-
const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
38
|
-
const Col = class {
|
39
|
-
constructor(hostRef) {
|
40
|
-
index.registerInstance(this, hostRef);
|
41
|
-
}
|
42
|
-
onResize() {
|
43
|
-
index.forceUpdate(this);
|
44
|
-
}
|
45
|
-
// Loop through all of the breakpoints to see if the media query
|
46
|
-
// matches and grab the column value from the relevant prop if so
|
47
|
-
getColumns(property) {
|
48
|
-
let matched;
|
49
|
-
for (const breakpoint of BREAKPOINTS) {
|
50
|
-
const matches = matchBreakpoint(breakpoint);
|
51
|
-
// Grab the value of the property, if it exists and our
|
52
|
-
// media query matches we return the value
|
53
|
-
const columns = this[property + breakpoint.charAt(0).toUpperCase() + breakpoint.slice(1)];
|
54
|
-
if (matches && columns !== undefined) {
|
55
|
-
matched = columns;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
// Return the last matched columns since the breakpoints
|
59
|
-
// increase in size and we want to return the largest match
|
60
|
-
return matched;
|
61
|
-
}
|
62
|
-
calculateSize() {
|
63
|
-
const columns = this.getColumns('size');
|
64
|
-
// If size wasn't set for any breakpoint
|
65
|
-
// or if the user set the size without a value
|
66
|
-
// it means we need to stick with the default and return
|
67
|
-
// e.g. <ion-col size-md>
|
68
|
-
if (!columns || columns === '') {
|
69
|
-
return;
|
70
|
-
}
|
71
|
-
// If the size is set to auto then don't calculate a size
|
72
|
-
const colSize = columns === 'auto'
|
73
|
-
? 'auto'
|
74
|
-
: // If CSS supports variables we should use the grid columns var
|
75
|
-
SUPPORTS_VARS
|
76
|
-
? `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
77
|
-
: // Convert the columns to a percentage by dividing by the total number
|
78
|
-
// of columns (12) and then multiplying by 100
|
79
|
-
(columns / 12) * 100 + '%';
|
80
|
-
return {
|
81
|
-
flex: `0 0 ${colSize}`,
|
82
|
-
width: `${colSize}`,
|
83
|
-
'max-width': `${colSize}`,
|
84
|
-
};
|
85
|
-
}
|
86
|
-
// Called by push, pull, and offset since they use the same calculations
|
87
|
-
calculatePosition(property, modifier) {
|
88
|
-
const columns = this.getColumns(property);
|
89
|
-
if (!columns) {
|
90
|
-
return;
|
91
|
-
}
|
92
|
-
// If the number of columns passed are greater than 0 and less than
|
93
|
-
// 12 we can position the column, else default to auto
|
94
|
-
const amount = SUPPORTS_VARS
|
95
|
-
? // If CSS supports variables we should use the grid columns var
|
96
|
-
`calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
97
|
-
: // Convert the columns to a percentage by dividing by the total number
|
98
|
-
// of columns (12) and then multiplying by 100
|
99
|
-
columns > 0 && columns < 12
|
100
|
-
? (columns / 12) * 100 + '%'
|
101
|
-
: 'auto';
|
102
|
-
return {
|
103
|
-
[modifier]: amount,
|
104
|
-
};
|
105
|
-
}
|
106
|
-
calculateOffset(isRTL) {
|
107
|
-
return this.calculatePosition('offset', isRTL ? 'margin-right' : 'margin-left');
|
108
|
-
}
|
109
|
-
calculatePull(isRTL) {
|
110
|
-
return this.calculatePosition('pull', isRTL ? 'left' : 'right');
|
111
|
-
}
|
112
|
-
calculatePush(isRTL) {
|
113
|
-
return this.calculatePosition('push', isRTL ? 'right' : 'left');
|
114
|
-
}
|
115
|
-
render() {
|
116
|
-
const isRTL = document.dir === 'rtl';
|
117
|
-
const mode = ionicGlobal.getIonMode(this);
|
118
|
-
return (index.h(index.Host, { class: {
|
119
|
-
[mode]: true,
|
120
|
-
}, style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, index.h("slot", null)));
|
121
|
-
}
|
122
|
-
};
|
123
|
-
Col.style = colCss;
|
124
|
-
|
125
|
-
const gridCss = ":host{padding-left:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));margin-left:auto;margin-right:auto;display:block;flex:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px))}}@media (min-width: 576px){:host{padding-left:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}}@media (min-width: 768px){:host{padding-left:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}}@media (min-width: 992px){:host{padding-left:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}}@media (min-width: 1200px){:host{padding-left:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}";
|
126
|
-
|
127
|
-
const Grid = class {
|
128
|
-
constructor(hostRef) {
|
129
|
-
index.registerInstance(this, hostRef);
|
130
|
-
/**
|
131
|
-
* If `true`, the grid will have a fixed width based on the screen size.
|
132
|
-
*/
|
133
|
-
this.fixed = false;
|
134
|
-
}
|
135
|
-
render() {
|
136
|
-
const mode = ionicGlobal.getIonMode(this);
|
137
|
-
return (index.h(index.Host, { class: {
|
138
|
-
[mode]: true,
|
139
|
-
'grid-fixed': this.fixed,
|
140
|
-
} }, index.h("slot", null)));
|
141
|
-
}
|
142
|
-
};
|
143
|
-
Grid.style = gridCss;
|
144
|
-
|
145
|
-
const rowCss = ":host{display:flex;flex-wrap:wrap}";
|
146
|
-
|
147
|
-
const Row = class {
|
148
|
-
constructor(hostRef) {
|
149
|
-
index.registerInstance(this, hostRef);
|
150
|
-
}
|
151
|
-
render() {
|
152
|
-
return (index.h(index.Host, { class: ionicGlobal.getIonMode(this) }, index.h("slot", null)));
|
153
|
-
}
|
154
|
-
};
|
155
|
-
Row.style = rowCss;
|
156
|
-
|
157
|
-
exports.ion_col = Col;
|
158
|
-
exports.ion_grid = Grid;
|
159
|
-
exports.ion_row = Row;
|