@mhmo91/schmancy 0.10.20 → 0.10.21
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/custom-elements.json +0 -49
- package/dist/agent/{overlay.confirm-body-mYm0zq4k.js → overlay.confirm-body-DXus8d-w.js} +1 -1
- package/dist/agent/{overlay.confirm-body-mYm0zq4k.js.map → overlay.confirm-body-DXus8d-w.js.map} +1 -1
- package/dist/agent/schmancy.agent.js +1291 -1257
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/agent/schmancy.manifest.json +0 -39
- package/dist/{area-C7MNn-3e.cjs → area-Cbkt0NX4.cjs} +12 -3
- package/dist/area-Cbkt0NX4.cjs.map +1 -0
- package/dist/{area-CRe41aIG.js → area-Ddk7P5wD.js} +14 -5
- package/dist/area-Ddk7P5wD.js.map +1 -0
- package/dist/area.cjs +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-CqUl7o0e.cjs → autocomplete-CfBFDSc3.cjs} +1 -1
- package/dist/{autocomplete-CqUl7o0e.cjs.map → autocomplete-CfBFDSc3.cjs.map} +1 -1
- package/dist/{autocomplete-CRDFL4Ul.js → autocomplete-Ds3Q2cwR.js} +2 -2
- package/dist/{autocomplete-CRDFL4Ul.js.map → autocomplete-Ds3Q2cwR.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-XajM8A3M.js → boat-BF5P6p_f.js} +1 -1
- package/dist/{boat-XajM8A3M.js.map → boat-BF5P6p_f.js.map} +1 -1
- package/dist/{boat-BHV5kOlN.cjs → boat-BPN8HLzZ.cjs} +1 -1
- package/dist/{boat-BHV5kOlN.cjs.map → boat-BPN8HLzZ.cjs.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/{busy-D8YsqVBf.js → busy-BuACDJy6.js} +1 -1
- package/dist/{busy-D8YsqVBf.js.map → busy-BuACDJy6.js.map} +1 -1
- package/dist/{busy-BlBZ5ZOs.cjs → busy-C7ejPa-Q.cjs} +1 -1
- package/dist/{busy-BlBZ5ZOs.cjs.map → busy-C7ejPa-Q.cjs.map} +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{card-yT_St83D.cjs → card-BIzaLuEg.cjs} +1 -1
- package/dist/{card-yT_St83D.cjs.map → card-BIzaLuEg.cjs.map} +1 -1
- package/dist/{card-C9TljY2Z.js → card-CgQwXO8L.js} +1 -1
- package/dist/{card-C9TljY2Z.js.map → card-CgQwXO8L.js.map} +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-Dz2lkJs0.cjs → checkbox-BAqE3sTx.cjs} +1 -1
- package/dist/{checkbox-Dz2lkJs0.cjs.map → checkbox-BAqE3sTx.cjs.map} +1 -1
- package/dist/{checkbox-BDgh4rge.js → checkbox-BNdg57Om.js} +1 -1
- package/dist/{checkbox-BDgh4rge.js.map → checkbox-BNdg57Om.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-M7Dr2npv.cjs → chips-DS3y4Lbn.cjs} +1 -1
- package/dist/{chips-M7Dr2npv.cjs.map → chips-DS3y4Lbn.cjs.map} +1 -1
- package/dist/{chips-N7fu0hA4.js → chips-DnqLaOb1.js} +2 -2
- package/dist/{chips-N7fu0hA4.js.map → chips-DnqLaOb1.js.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/connectivity.cjs +1 -1
- package/dist/connectivity.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-D2vxD814.cjs → date-range-CsJfjbmi.cjs} +1 -1
- package/dist/{date-range-D2vxD814.cjs.map → date-range-CsJfjbmi.cjs.map} +1 -1
- package/dist/{date-range-DFWOMgI3.js → date-range-aPSmSBhk.js} +2 -2
- package/dist/{date-range-DFWOMgI3.js.map → date-range-aPSmSBhk.js.map} +1 -1
- package/dist/{date-range-inline-C5JuZ_Kw.cjs → date-range-inline-CAa0_4EI.cjs} +1 -1
- package/dist/{date-range-inline-C5JuZ_Kw.cjs.map → date-range-inline-CAa0_4EI.cjs.map} +1 -1
- package/dist/{date-range-inline-D3q1OoKk.js → date-range-inline-PeRt1iIF.js} +1 -1
- package/dist/{date-range-inline-D3q1OoKk.js.map → date-range-inline-PeRt1iIF.js.map} +1 -1
- package/dist/date-range-inline.cjs +1 -1
- package/dist/date-range-inline.js +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{details-DmDEInaL.cjs → details-BnXbDpt7.cjs} +1 -1
- package/dist/{details-DmDEInaL.cjs.map → details-BnXbDpt7.cjs.map} +1 -1
- package/dist/{details-BrUPmd92.js → details-BpFjVclg.js} +1 -1
- package/dist/{details-BrUPmd92.js.map → details-BpFjVclg.js.map} +1 -1
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/directives.cjs +3 -3
- package/dist/directives.cjs.map +1 -1
- package/dist/directives.js +290 -203
- package/dist/directives.js.map +1 -1
- package/dist/{divider-B_Ts_-qz.cjs → divider-B84lt1A3.cjs} +1 -1
- package/dist/{divider-B_Ts_-qz.cjs.map → divider-B84lt1A3.cjs.map} +1 -1
- package/dist/{divider-BLijs8ba.js → divider-D8cBBkdG.js} +1 -1
- package/dist/{divider-BLijs8ba.js.map → divider-D8cBBkdG.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{expand-C-xSpg7M.js → expand-BJiKggfg.js} +2 -2
- package/dist/{expand-C-xSpg7M.js.map → expand-BJiKggfg.js.map} +1 -1
- package/dist/{expand-DV5sWUB6.cjs → expand-DK-O37-j.cjs} +1 -1
- package/dist/{expand-DV5sWUB6.cjs.map → expand-DK-O37-j.cjs.map} +1 -1
- package/dist/expand.cjs +1 -1
- package/dist/expand.js +1 -1
- package/dist/{float-Y22yVBE2.js → float-B4FDN40h.js} +1 -1
- package/dist/{float-Y22yVBE2.js.map → float-B4FDN40h.js.map} +1 -1
- package/dist/{float-LyKef0LY.cjs → float-RWR6Q1Hh.cjs} +1 -1
- package/dist/{float-LyKef0LY.cjs.map → float-RWR6Q1Hh.cjs.map} +1 -1
- package/dist/float.cjs +1 -1
- package/dist/float.js +1 -1
- package/dist/{form-LFkEQkOX.js → form-Bz5WamuM.js} +8 -8
- package/dist/{form-LFkEQkOX.js.map → form-Bz5WamuM.js.map} +1 -1
- package/dist/{form-C_smXI2-.cjs → form-PioZDvzA.cjs} +1 -1
- package/dist/{form-C_smXI2-.cjs.map → form-PioZDvzA.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +6 -6
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/{icons-B3pFrwKC.js → icons-BgUbHwy8.js} +1 -1
- package/dist/{icons-B3pFrwKC.js.map → icons-BgUbHwy8.js.map} +1 -1
- package/dist/{icons-CCNy4Egc.cjs → icons-morK4hHz.cjs} +1 -1
- package/dist/{icons-CCNy4Egc.cjs.map → icons-morK4hHz.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/{iframe-CCcmLZ_K.cjs → iframe-BXe1TPx1.cjs} +1 -1
- package/dist/{iframe-CCcmLZ_K.cjs.map → iframe-BXe1TPx1.cjs.map} +1 -1
- package/dist/{iframe-BbFlCEyP.js → iframe-CByrVlZy.js} +1 -1
- package/dist/{iframe-BbFlCEyP.js.map → iframe-CByrVlZy.js.map} +1 -1
- package/dist/iframe.cjs +1 -1
- package/dist/iframe.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +55 -56
- package/dist/{input-sBZ89wz1.cjs → input-BY9OCQWr.cjs} +1 -1
- package/dist/{input-sBZ89wz1.cjs.map → input-BY9OCQWr.cjs.map} +1 -1
- package/dist/{input-Dkneo4uA.js → input-Q0fm34Co.js} +1 -1
- package/dist/{input-Dkneo4uA.js.map → input-Q0fm34Co.js.map} +1 -1
- package/dist/{input-chip-F5NEkkBU.cjs → input-chip-BwNf3GD0.cjs} +1 -1
- package/dist/{input-chip-F5NEkkBU.cjs.map → input-chip-BwNf3GD0.cjs.map} +1 -1
- package/dist/{input-chip-C1-TYu4v.js → input-chip-CytUirVS.js} +1 -1
- package/dist/{input-chip-C1-TYu4v.js.map → input-chip-CytUirVS.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/json.cjs +1 -1
- package/dist/json.js +2 -2
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.js +1 -1
- package/dist/layout.cjs +26 -1
- package/dist/layout.cjs.map +1 -0
- package/dist/layout.js +115 -2
- package/dist/layout.js.map +1 -0
- package/dist/{lightbox-D7hYFspE.js → lightbox-Ckvn5YNF.js} +1 -1
- package/dist/{lightbox-D7hYFspE.js.map → lightbox-Ckvn5YNF.js.map} +1 -1
- package/dist/{lightbox-B4m5lxGs.cjs → lightbox-p2E0oVR0.cjs} +1 -1
- package/dist/{lightbox-B4m5lxGs.cjs.map → lightbox-p2E0oVR0.cjs.map} +1 -1
- package/dist/lightbox.cjs +1 -1
- package/dist/lightbox.js +1 -1
- package/dist/{list-Ou72tSeq.js → list-CsrPVvmm.js} +1 -1
- package/dist/{list-Ou72tSeq.js.map → list-CsrPVvmm.js.map} +1 -1
- package/dist/{list-C2ycz-yr.cjs → list-r57UFHu3.cjs} +1 -1
- package/dist/{list-C2ycz-yr.cjs.map → list-r57UFHu3.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{menu-ComSx-T0.cjs → menu-BOZ2iwed.cjs} +1 -1
- package/dist/{menu-ComSx-T0.cjs.map → menu-BOZ2iwed.cjs.map} +1 -1
- package/dist/{menu-YHbpRa7x.js → menu-CxE16xur.js} +2 -2
- package/dist/{menu-YHbpRa7x.js.map → menu-CxE16xur.js.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/mixins-DTCHPEd4.cjs +254 -0
- package/dist/{mixins-BwGJwK7X.cjs.map → mixins-DTCHPEd4.cjs.map} +1 -1
- package/dist/mixins-pU53qf6R.js +636 -0
- package/dist/{mixins-B9kY_60p.js.map → mixins-pU53qf6R.js.map} +1 -1
- package/dist/mixins.cjs +1 -1
- package/dist/mixins.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/navigation-rail.cjs +1 -1
- package/dist/navigation-rail.js +1 -1
- package/dist/{notification-DZhL0ZEg.cjs → notification-58tkVys8.cjs} +1 -1
- package/dist/{notification-DZhL0ZEg.cjs.map → notification-58tkVys8.cjs.map} +1 -1
- package/dist/{notification-O4Q5pyio.js → notification-CgTBiAdf.js} +2 -2
- package/dist/{notification-O4Q5pyio.js.map → notification-CgTBiAdf.js.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-C2VKw8Yt.cjs → option-61YE3gub.cjs} +1 -1
- package/dist/{option-C2VKw8Yt.cjs.map → option-61YE3gub.cjs.map} +1 -1
- package/dist/{option-BCks0a4i.js → option-Bicf6xpI.js} +1 -1
- package/dist/{option-BCks0a4i.js.map → option-Bicf6xpI.js.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{overlay-CG1gc1Jw.cjs → overlay-B3gKPWhu.cjs} +2 -2
- package/dist/{overlay-CG1gc1Jw.cjs.map → overlay-B3gKPWhu.cjs.map} +1 -1
- package/dist/{overlay-C0YSnxoV.js → overlay-D3mdWOLS.js} +7 -4
- package/dist/{overlay-C0YSnxoV.js.map → overlay-D3mdWOLS.js.map} +1 -1
- package/dist/overlay.cjs +1 -1
- package/dist/{overlay.confirm-body-BmOnrKbF.js → overlay.confirm-body-Czi6cMZq.js} +1 -1
- package/dist/{overlay.confirm-body-BmOnrKbF.js.map → overlay.confirm-body-Czi6cMZq.js.map} +1 -1
- package/dist/{overlay.confirm-body-B-Kmn7LF.cjs → overlay.confirm-body-yr0HzS_d.cjs} +1 -1
- package/dist/{overlay.confirm-body-B-Kmn7LF.cjs.map → overlay.confirm-body-yr0HzS_d.cjs.map} +1 -1
- package/dist/overlay.js +3 -3
- package/dist/{overlay.service-CRoq9Gu-.js → overlay.service-BfZf3xoD.js} +2 -2
- package/dist/{overlay.service-CRoq9Gu-.js.map → overlay.service-BfZf3xoD.js.map} +1 -1
- package/dist/{overlay.service-BPKV2a8w.cjs → overlay.service-DNs3AWqp.cjs} +1 -1
- package/dist/{overlay.service-BPKV2a8w.cjs.map → overlay.service-DNs3AWqp.cjs.map} +1 -1
- package/dist/{progress-B9RWAFv5.cjs → progress-D8XZJVl5.cjs} +1 -1
- package/dist/{progress-B9RWAFv5.cjs.map → progress-D8XZJVl5.cjs.map} +1 -1
- package/dist/{progress-CEEl7vdd.js → progress-Zqx-S9NZ.js} +1 -1
- package/dist/{progress-CEEl7vdd.js.map → progress-Zqx-S9NZ.js.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-group-VERF_8rC.js → radio-group-D9MU1Mxz.js} +1 -1
- package/dist/{radio-group-VERF_8rC.js.map → radio-group-D9MU1Mxz.js.map} +1 -1
- package/dist/{radio-group-C2y6H5YY.cjs → radio-group-bl8K4Gls.cjs} +1 -1
- package/dist/{radio-group-C2y6H5YY.cjs.map → radio-group-bl8K4Gls.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/range.cjs +1 -1
- package/dist/range.js +1 -1
- package/dist/{rxjs-utils-Cs6XGwF6.js.map → rxjs-utils-BK8VMe3K.js.map} +1 -1
- package/dist/{rxjs-utils-Dsj75cJy.cjs.map → rxjs-utils-DhOKenkS.cjs.map} +1 -1
- package/dist/rxjs-utils.cjs +1 -1
- package/dist/rxjs-utils.js +1 -1
- package/dist/{select-ClJj_2AP.js → select-CMwkl-D6.js} +1 -1
- package/dist/{select-ClJj_2AP.js.map → select-CMwkl-D6.js.map} +1 -1
- package/dist/{select-CngphfDB.cjs → select-COIfVtZl.cjs} +1 -1
- package/dist/{select-CngphfDB.cjs.map → select-COIfVtZl.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/skills/SKILL.md +6 -2
- package/dist/skills/area.md +13 -0
- package/dist/skills/overlay.md +13 -0
- package/dist/skills/page.md +71 -29
- package/dist/skills/schmancy/SKILL.md +6 -2
- package/dist/skills/schmancy/area.md +13 -0
- package/dist/skills/schmancy/overlay.md +13 -0
- package/dist/skills/schmancy/page.md +71 -29
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{splash-screen-CntIFk2h.cjs → splash-screen-2hxq8Sft.cjs} +1 -1
- package/dist/{splash-screen-CntIFk2h.cjs.map → splash-screen-2hxq8Sft.cjs.map} +1 -1
- package/dist/{splash-screen-BQsBy3O1.js → splash-screen-xrMNpzkm.js} +1 -1
- package/dist/{splash-screen-BQsBy3O1.js.map → splash-screen-xrMNpzkm.js.map} +1 -1
- package/dist/splash-screen.cjs +1 -1
- package/dist/splash-screen.js +1 -1
- package/dist/{src-BAXhEv8f.js → src-CHd-U-w4.js} +34 -35
- package/dist/{src-BAXhEv8f.js.map → src-CHd-U-w4.js.map} +1 -1
- package/dist/{src-ChFa-FDD.cjs → src-ggWtvpDr.cjs} +1 -1
- package/dist/{src-ChFa-FDD.cjs.map → src-ggWtvpDr.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-CHUJSY1o.js → surface-3nnvlxeE.js} +1 -1
- package/dist/{surface-CHUJSY1o.js.map → surface-3nnvlxeE.js.map} +1 -1
- package/dist/{surface-CXmQuXun.cjs → surface-BkQ44Wuo.cjs} +1 -1
- package/dist/{surface-CXmQuXun.cjs.map → surface-BkQ44Wuo.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-DPVX21WM.js → tabs-CnLIe8nE.js} +1 -1
- package/dist/{tabs-DPVX21WM.js.map → tabs-CnLIe8nE.js.map} +1 -1
- package/dist/{tabs-Bku0sC0p.cjs → tabs-Dql0rcqZ.cjs} +1 -1
- package/dist/{tabs-Bku0sC0p.cjs.map → tabs-Dql0rcqZ.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-D6z1UZzs.js → textarea-BAogS_Ff.js} +1 -1
- package/dist/{textarea-D6z1UZzs.js.map → textarea-BAogS_Ff.js.map} +1 -1
- package/dist/{textarea-CqJNviYi.cjs → textarea-CGD6lAEe.cjs} +1 -1
- package/dist/{textarea-CqJNviYi.cjs.map → textarea-CGD6lAEe.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-DbHfINBV.js → theme-CUK0HrS3.js} +1 -1
- package/dist/{theme-DbHfINBV.js.map → theme-CUK0HrS3.js.map} +1 -1
- package/dist/{theme-BpKVBJCr.cjs → theme-DKrrQ-ic.cjs} +1 -1
- package/dist/{theme-BpKVBJCr.cjs.map → theme-DKrrQ-ic.cjs.map} +1 -1
- package/dist/{theme-button-BeU8Nbs2.js → theme-button-Bb8qW2IH.js} +1 -1
- package/dist/{theme-button-BeU8Nbs2.js.map → theme-button-Bb8qW2IH.js.map} +1 -1
- package/dist/{theme-button-Cof9I85G.cjs → theme-button-CmTwFm3l.cjs} +1 -1
- package/dist/{theme-button-Cof9I85G.cjs.map → theme-button-CmTwFm3l.cjs.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/dist/{utils-DXE5fBBd.js.map → utils-Cxg0Kfy5.js.map} +1 -1
- package/dist/{utils-C-Q8ePtG.cjs.map → utils-aCJYAGUr.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.cjs +1 -1
- package/dist/visually-hidden.js +1 -1
- package/dist/{window-Cql1aIX2.cjs → window-BbWlaPZv.cjs} +1 -1
- package/dist/{window-Cql1aIX2.cjs.map → window-BbWlaPZv.cjs.map} +1 -1
- package/dist/{window-DmMNsos0.js → window-DuDAQa6y.js} +1 -1
- package/dist/{window-DmMNsos0.js.map → window-DuDAQa6y.js.map} +1 -1
- package/dist/window.cjs +1 -1
- package/dist/window.js +1 -1
- package/package.json +1 -1
- package/skills/schmancy/SKILL.md +6 -2
- package/skills/schmancy/area.md +13 -0
- package/skills/schmancy/overlay.md +13 -0
- package/skills/schmancy/page.md +71 -29
- package/src/area/area.component.ts +13 -1
- package/src/directives/fill.ts +137 -0
- package/src/directives/index.ts +2 -0
- package/src/directives/overflow-within.ts +186 -0
- package/src/index.ts +0 -1
- package/src/overlay/index.ts +1 -0
- package/src/overlay/overlay.component.ts +9 -0
- package/src/overlay/overlay.types.ts +10 -3
- package/types/src/directives/fill.d.ts +46 -0
- package/types/src/directives/index.d.ts +2 -0
- package/types/src/directives/overflow-within.d.ts +77 -0
- package/types/src/index.d.ts +0 -1
- package/types/src/overlay/index.d.ts +1 -1
- package/types/src/overlay/overlay.types.d.ts +9 -3
- package/dist/area-C7MNn-3e.cjs.map +0 -1
- package/dist/area-CRe41aIG.js.map +0 -1
- package/dist/mixins-B9kY_60p.js +0 -636
- package/dist/mixins-BwGJwK7X.cjs +0 -254
- package/dist/page.cjs +0 -20
- package/dist/page.cjs.map +0 -1
- package/dist/page.js +0 -74
- package/dist/page.js.map +0 -1
- package/dist/scroll-Bj7FsS08.js +0 -115
- package/dist/scroll-Bj7FsS08.js.map +0 -1
- package/dist/scroll-Djz3pJfX.cjs +0 -26
- package/dist/scroll-Djz3pJfX.cjs.map +0 -1
- package/src/page/index.ts +0 -1
- package/src/page/page.ts +0 -137
- package/types/src/page/index.d.ts +0 -1
- package/types/src/page/page.d.ts +0 -37
- /package/dist/{rxjs-utils-Cs6XGwF6.js → rxjs-utils-BK8VMe3K.js} +0 -0
- /package/dist/{rxjs-utils-Dsj75cJy.cjs → rxjs-utils-DhOKenkS.cjs} +0 -0
- /package/dist/{utils-DXE5fBBd.js → utils-Cxg0Kfy5.js} +0 -0
- /package/dist/{utils-C-Q8ePtG.cjs → utils-aCJYAGUr.cjs} +0 -0
|
@@ -38,13 +38,17 @@ is chosen by the system based on viewport + anchor presence. There is no
|
|
|
38
38
|
import { show, confirm, prompt } from '@mhmo91/schmancy/overlay'
|
|
39
39
|
import { $notify, schmancyContentDrawer } from '@mhmo91/schmancy'
|
|
40
40
|
|
|
41
|
-
show(
|
|
42
|
-
show(
|
|
41
|
+
show(MyForm) // component class — most common
|
|
42
|
+
show(() => html`<div class="p-4"><my-form .id=${id}></my-form></div>`, { anchor: ev })
|
|
43
|
+
// factory — lazy, no snapshot staleness
|
|
44
|
+
show(new EditForm()) // pre-instantiated element
|
|
43
45
|
show(new Picker()) // narrow viewport → sheet (auto)
|
|
44
46
|
$notify.success('Saved'); $notify.error('Failed') // toast
|
|
45
47
|
schmancyContentDrawer.push({ component: new Detail() }) // side panel
|
|
46
48
|
```
|
|
47
49
|
|
|
50
|
+
When passing an inline template, always use the factory form `() => html\`...\`` — it is called at mount time so closed-over variables are read fresh. The eager form `html\`...\`` freezes values at the call site.
|
|
51
|
+
|
|
48
52
|
References: `overlay.md`, `notification.md`, `content-drawer.md`.
|
|
49
53
|
|
|
50
54
|
Use component tags (`<schmancy-menu>`, `<schmancy-dropdown>`, `<schmancy-tooltip>`, `<schmancy-lightbox>`, `<schmancy-expand>`) only when the tag is the natural fit (anchored panels, tooltips, galleries).
|
|
@@ -10,6 +10,16 @@ Schmancy's client-side router. Three pieces:
|
|
|
10
10
|
|
|
11
11
|
Areas can be nested to compose shell-plus-sub-view layouts.
|
|
12
12
|
|
|
13
|
+
## Layout contract
|
|
14
|
+
|
|
15
|
+
`<schmancy-area>` is the routing leaf in the layout cascade. Its shadow CSS guarantees:
|
|
16
|
+
|
|
17
|
+
1. **Stretch the mounted component.** The routed view fills the area (`min-height: 100%; width: 100%`). The area itself is `height: 100%; width: 100%` so it consumes whatever cell its parent gave it (typically a `<schmancy-page>` slot or a grid `1fr` row / column).
|
|
18
|
+
2. **Scroll by default.** The host is `overflow: auto` — when the mounted component grows past the area's box, the area scrolls. Pages that need a custom scroll strategy (virtualized lists, multi-pane scroll) declare `<schmancy-area no-scroll>` and own their scroll.
|
|
19
|
+
3. **Reset scroll on route change.** The area sets `scrollTop = 0` after every route swap so a new view starts at the top.
|
|
20
|
+
|
|
21
|
+
Consumers do not write `h-full`, `w-full`, or `:host { height: 100% }` on routed components. The area's `::slotted` rule sizes them.
|
|
22
|
+
|
|
13
23
|
## Example
|
|
14
24
|
|
|
15
25
|
```html
|
|
@@ -47,6 +57,8 @@ Areas can be nested to compose shell-plus-sub-view layouts.
|
|
|
47
57
|
| `guard` | `Observable<boolean>` | When emits `false`, blocks and dispatches `redirect` event |
|
|
48
58
|
| `exact` | boolean | Strict-equality matching |
|
|
49
59
|
|
|
60
|
+
`<schmancy-area>` also accepts the `no-scroll` boolean attribute to opt out of default `overflow: auto` (for virtualized lists or custom scroll containers).
|
|
61
|
+
|
|
50
62
|
## `area` service
|
|
51
63
|
|
|
52
64
|
```typescript
|
|
@@ -139,3 +151,4 @@ Areas nest by rendering an inner `<schmancy-area>` inside a route component. A c
|
|
|
139
151
|
- `when="tag-name"` must match `@customElement('tag-name')` exactly.
|
|
140
152
|
- Guards emit `false` → always use `historyStrategy: 'replace'` in the `@redirect` handler.
|
|
141
153
|
- Every subscription in guards / route state uses `takeUntil(this.disconnecting)`.
|
|
154
|
+
- A routed component never declares `:host { height: 100% }` or `class="h-full"` — the area sizes it. Marketing / long-form leaves that need natural scroll opt out at the host: `:host { height: auto; min-height: 100%; overflow: auto }`.
|
|
@@ -26,6 +26,19 @@ private handlePick = (ev: MouseEvent) => {
|
|
|
26
26
|
|
|
27
27
|
Centered is the fallback (no anchor given). Sheet is the responsive adaptation (narrow viewport / touch / oversized content). You never pick layout — the system does.
|
|
28
28
|
|
|
29
|
+
## Content forms
|
|
30
|
+
|
|
31
|
+
`show()` accepts four content forms:
|
|
32
|
+
|
|
33
|
+
| Form | When to use |
|
|
34
|
+
|---|---|
|
|
35
|
+
| `show(MyComponent)` | Component class — most common |
|
|
36
|
+
| `show(html\`...\`)` | Inline template (eager — values frozen at call site) |
|
|
37
|
+
| `show(() => html\`...\`)` | **Preferred for templates** — factory called at mount time; closed-over variables are read lazily, no snapshot staleness |
|
|
38
|
+
| `show(lazy(() => import('./x')))` | Async / code-split component |
|
|
39
|
+
|
|
40
|
+
Always prefer `() => html\`...\`` over `html\`...\`` when the template closes over any variable — the factory form evaluates those variables at mount time rather than baking them in at the call site.
|
|
41
|
+
|
|
29
42
|
## API
|
|
30
43
|
|
|
31
44
|
| Export | Signature | Purpose |
|
|
@@ -1,42 +1,84 @@
|
|
|
1
1
|
# schmancy-page
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Viewport-locked layout primitive. Provides a definite-height frame so any composition inside it has a parent to resolve against.
|
|
4
|
+
|
|
5
|
+
## Contract
|
|
6
|
+
|
|
7
|
+
Two rules and one slot.
|
|
8
|
+
|
|
9
|
+
1. **Outermost lock.** A `<schmancy-page>` with no `<schmancy-page>` ancestor anchors itself to the visual viewport (`position: fixed; inset: 0`) and tracks `visualViewport.height` for iOS soft-keyboard correctness. It does not rely on `html`/`body` height — the cascade above it is irrelevant.
|
|
10
|
+
2. **Single-child stretch.** The slotted child fills the page box (`height: 100%; width: 100%; min-height: 0; min-width: 0`). More than one direct child produces a visible layout collision — fail-loud, not silent.
|
|
11
|
+
|
|
12
|
+
Composition shape is plain CSS grid / flex inside the slotted child. The primitive does not prescribe header / footer / sidebar conventions; consumers arrange regions in standard CSS. The contract is the locked frame.
|
|
4
13
|
|
|
5
14
|
## Usage
|
|
15
|
+
|
|
16
|
+
### App root
|
|
6
17
|
```html
|
|
7
|
-
<schmancy-page
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
<schmancy-page>
|
|
19
|
+
<schmancy-area name="root" .default=${landing}>
|
|
20
|
+
<schmancy-route when="landing-view" .component=${landing}></schmancy-route>
|
|
21
|
+
<schmancy-route when="app-home" .component=${appHome}></schmancy-route>
|
|
22
|
+
</schmancy-area>
|
|
11
23
|
</schmancy-page>
|
|
12
24
|
```
|
|
13
25
|
|
|
14
|
-
|
|
15
|
-
| Property | Type | Default | Description |
|
|
16
|
-
|----------|------|---------|-------------|
|
|
17
|
-
| `rows` | string | `'auto_1fr_auto'` | Grid template rows — underscores become spaces (e.g. `'1fr_2fr_auto'`) |
|
|
18
|
-
| `show-scrollbar` | boolean | `false` | Display scrollbar on scrollable area |
|
|
19
|
-
| `no-select` | boolean | `false` | Disable text selection |
|
|
20
|
-
|
|
21
|
-
## Behavior
|
|
22
|
-
- Listens to `visualViewport` resize/scroll + `orientationchange` + keyboard focus events to recompute height.
|
|
23
|
-
- Accounts for theme bottom offset (iOS safe area, home indicator).
|
|
24
|
-
- Auto-assigns semantic elements (`header`, `main`, `footer`) to slots.
|
|
25
|
-
- Inner scroll area uses `schmancy-scroll` for momentum-preserving scroll.
|
|
26
|
-
|
|
27
|
-
## When to Use
|
|
28
|
-
- Root of a mobile view or panel that should feel like a native page.
|
|
29
|
-
- Any container where viewport-aware height + scroll containment matters.
|
|
30
|
-
|
|
31
|
-
## Example — 3-row app shell
|
|
26
|
+
### Sidebar + sticky header + body
|
|
32
27
|
```html
|
|
33
|
-
<schmancy-page
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
|
|
28
|
+
<schmancy-page>
|
|
29
|
+
<div class="grid grid-cols-[auto_1fr]">
|
|
30
|
+
<app-rail></app-rail>
|
|
31
|
+
<schmancy-page>
|
|
32
|
+
<div class="grid grid-rows-[auto_1fr]">
|
|
33
|
+
<app-top-bar></app-top-bar>
|
|
34
|
+
<schmancy-area name="app">...</schmancy-area>
|
|
35
|
+
</div>
|
|
36
|
+
</schmancy-page>
|
|
37
|
+
</div>
|
|
38
|
+
</schmancy-page>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The inner `<schmancy-page>` detects the outer ancestor, skips the viewport lock, and fills its grid cell via `height: 100%; width: 100%`.
|
|
37
42
|
|
|
38
|
-
|
|
43
|
+
### Tabs page
|
|
44
|
+
```html
|
|
45
|
+
<div class="grid grid-rows-[auto_1fr]">
|
|
46
|
+
<schmancy-tabs></schmancy-tabs>
|
|
47
|
+
<schmancy-area name="settings">...</schmancy-area>
|
|
48
|
+
</div>
|
|
49
|
+
```
|
|
39
50
|
|
|
40
|
-
|
|
51
|
+
No `<schmancy-page>` here — this view is the routed body of a higher `<schmancy-page>`. The grid resolves against the area's `1fr` cell, which the area inherits from the page.
|
|
52
|
+
|
|
53
|
+
### Admin shell (four regions)
|
|
54
|
+
```html
|
|
55
|
+
<schmancy-page>
|
|
56
|
+
<div class="grid grid-rows-[auto_1fr]">
|
|
57
|
+
<admin-top-bar></admin-top-bar>
|
|
58
|
+
<div class="grid grid-cols-[240px_1fr_320px]">
|
|
59
|
+
<admin-sidebar></admin-sidebar>
|
|
60
|
+
<schmancy-area name="admin"></schmancy-area>
|
|
61
|
+
<admin-inspector></admin-inspector>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
41
64
|
</schmancy-page>
|
|
42
65
|
```
|
|
66
|
+
|
|
67
|
+
## Properties
|
|
68
|
+
|
|
69
|
+
`<schmancy-page>` has no public properties. Composition is expressed by what you nest inside its single slot.
|
|
70
|
+
|
|
71
|
+
The `outermost` attribute is set automatically on the page that owns the viewport lock. Consumers neither set nor read it.
|
|
72
|
+
|
|
73
|
+
## Edge cases
|
|
74
|
+
|
|
75
|
+
- **Print** — outermost page falls back to `position: static` so pagination works.
|
|
76
|
+
- **iOS soft keyboard** — outermost page reads `visualViewport.height` and applies it as inline `height`, so the locked box shrinks when the keyboard opens.
|
|
77
|
+
- **Long-form leaf (marketing, legal)** — opt out at the leaf, not at the page. The routed component declares its own `:host { height: auto; overflow: auto; min-height: 100% }`. The outer page stays locked; the leaf scrolls inside its `<schmancy-area>`.
|
|
78
|
+
- **Master-detail with two scroll regions** — render two `<schmancy-area>` slots inside a grid; each owns its scroll.
|
|
79
|
+
|
|
80
|
+
## Rules
|
|
81
|
+
|
|
82
|
+
- A `<schmancy-page>` has exactly one direct child. If you need multiple regions, wrap them in a grid / flex container.
|
|
83
|
+
- Do not put `class="h-full"`, `class="w-full"`, or `:host { height: 100% }` anywhere in your tree. The page and the area carry sizing; consumer code never does.
|
|
84
|
+
- Scroll lives in `<schmancy-area>`, not in `<schmancy-page>`. Pages provide the locked frame; areas provide the scrolling region for their mounted component.
|
package/dist/slider.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./chunk-CncqDLb2.cjs`);const e=require(`./mixins-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./chunk-CncqDLb2.cjs`);const e=require(`./mixins-DTCHPEd4.cjs`),t=require(`./active-host-jH3iloCR.cjs`);let n=require(`rxjs`),r=require(`rxjs/operators`),i=require(`lit/decorators.js`),a=require(`lit`),o=require(`lit/directives/cache.js`);var s=class extends e.c{constructor(...e){super(...e),this.type=`content`,this.src=``,this.alt=``,this.controls=!0,this.autoplay=!1,this.loop=!1,this.muted=!1,this.fit=`cover`}static{this.styles=[a.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
scroll-snap-align: center; /* If your slider uses scroll-snap */
|
package/dist/slider.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require(`./chunk-CncqDLb2.cjs`);const e=require(`./mixins-
|
|
1
|
+
require(`./chunk-CncqDLb2.cjs`);const e=require(`./mixins-DTCHPEd4.cjs`),t=require(`./active-host-jH3iloCR.cjs`);let n=require(`rxjs`),r=require(`rxjs/operators`),i=require(`lit/directives/style-map.js`),a=require(`lit/decorators.js`),o=require(`lit`);var s=class extends e.c{constructor(...e){super(...e),this.minDuration=1500,this.auto=!1,this.initiallyHidden=!1,this._visible=!0}static{this.styles=[o.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splash-screen-
|
|
1
|
+
{"version":3,"file":"splash-screen-2hxq8Sft.cjs","names":[],"sources":["../src/splash-screen/splash-screen.ts"],"sourcesContent":["import { SchmancyElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { styleMap } from 'lit/directives/style-map.js'\nimport { fromEvent, of, timer, zip } from 'rxjs'\nimport { take, takeUntil, tap } from 'rxjs/operators'\n\nexport type SchmancySplashScreenDoneEvent = CustomEvent<void>\n\n/**\n * Full-viewport splash overlay that dismisses once a minimum duration has\n * elapsed and (optionally) an external `ready` signal has fired. The splash\n * fades out while the underlying app content fades in.\n *\n * Bring-your-own visuals: the `splash` slot is empty by default so the\n * component pulls in no dependencies. Provide a logo, spinner, or\n * animation from the consumer side.\n *\n * @element schmancy-splash-screen\n * @slot splash - Content rendered on the splash layer (logo, spinner, etc.).\n * @slot - Default slot for the actual app content, revealed once dismissed.\n * @fires schmancy-splash-done - `CustomEvent<void>` when the splash dismisses.\n *\n * @example\n * ```html\n * <schmancy-splash-screen min-duration=\"1200\">\n * <my-logo slot=\"splash\"></my-logo>\n * <my-app></my-app>\n * </schmancy-splash-screen>\n * ```\n */\n@customElement('schmancy-splash-screen')\nexport default class SchmancySplashScreen extends SchmancyElement {\n\tstatic styles = [css`\n\t:host {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t}\n\n\t.splash-layer {\n\t\tposition: fixed;\n\t\tinset: 0;\n\t\tz-index: 50;\n\t\toverflow: hidden;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground: var(\n\t\t\t--schmancy-splash-background,\n\t\t\tvar(--schmancy-sys-color-surface-containerLowest, #000)\n\t\t);\n\t\ttransition: opacity var(--schmancy-splash-transition, 500ms) ease-out;\n\t}\n\n\t.content-layer {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\ttransition: opacity var(--schmancy-splash-transition, 500ms) ease-in-out;\n\t}\n`]\n\n\t/**\n\t * Minimum duration (ms) the splash layer stays visible. Prevents a flash\n\t * when the app loads faster than expected.\n\t */\n\t@property({ type: Number, attribute: 'min-duration' }) minDuration = 1500\n\n\t/**\n\t * When true, the splash dismisses on the `minDuration` timer alone.\n\t * When false (default), it additionally waits for an external ready signal\n\t * (a `ready` event on this element, or a call to `this.ready()`).\n\t */\n\t@property({ type: Boolean }) auto = false\n\n\t/**\n\t * When true, the splash starts hidden. Use this for imperative control.\n\t */\n\t@property({ type: Boolean, attribute: 'initially-hidden' }) initiallyHidden = false\n\n\t@state() private _visible = true\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\tif (this.initiallyHidden) {\n\t\t\tthis._visible = false\n\t\t\treturn\n\t\t}\n\n\t\tconst readySignal$ = this.auto ? of(null) : fromEvent<Event>(this, 'ready').pipe(take(1))\n\t\tconst minTimer$ = timer(this.minDuration)\n\n\t\tzip(readySignal$, minTimer$)\n\t\t\t.pipe(\n\t\t\t\ttake(1),\n\t\t\t\ttap(() => this._dismiss()),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe()\n\t}\n\n\t/**\n\t * Imperative API: signal that the app is ready and dismiss the splash\n\t * after the minimum duration has elapsed.\n\t */\n\tpublic ready(): void {\n\t\tthis.dispatchEvent(new Event('ready'))\n\t}\n\n\t/**\n\t * Force the splash to show again (e.g. between route transitions).\n\t */\n\tpublic show(): void {\n\t\tthis._visible = true\n\t}\n\n\tprivate _dismiss(): void {\n\t\tthis._visible = false\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent<void>('schmancy-splash-done', {\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\trender() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=\"splash-layer\"\n\t\t\t\taria-hidden=${!this._visible}\n\t\t\t\tstyle=${styleMap({\n\t\t\t\t\topacity: this._visible ? '1' : '0',\n\t\t\t\t\tpointerEvents: this._visible ? 'auto' : 'none',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot name=\"splash\"></slot>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclass=\"content-layer\"\n\t\t\t\tstyle=${styleMap({\n\t\t\t\t\topacity: this._visible ? '0' : '1',\n\t\t\t\t\tpointerEvents: this._visible ? 'none' : 'auto',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-splash-screen': SchmancySplashScreen\n\t}\n}\n"],"mappings":"4PAgCe,IAAA,EAAA,cAAmC,EAAA,CAAA,CAAA,YAAA,GAAA,EAAA,CAAA,MAAA,GAAA,EAAA,CAAA,KAAA,YAiCoB,KAAA,KAAA,KAAA,CAOjC,EAAA,KAAA,gBAAA,CAK0C,EAAA,KAAA,SAAA,CAElD,EAAA,OAAA,KAAA,OA9CZ,CAAC,EAAA,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDpB,mBAAA,CACC,MAAM,mBAAA,CAEF,KAAK,gBACR,KAAK,SAAA,CAAW,GAOjB,EAAA,EAAA,KAHqB,KAAK,MAAA,EAAA,EAAA,IAAU,KAAA,EAAK,EAAA,EAAA,WAAoB,KAAM,QAAA,CAAS,MAAA,EAAA,EAAA,MAAU,EAAA,CAAA,EAAG,EAAA,EAAA,OACjE,KAAK,YAAA,CAAA,CAG3B,MAAA,EAAA,EAAA,MACK,EAAA,EAAE,EAAA,EAAA,SACG,KAAK,UAAA,CAAA,EAAW,EAAA,EAAA,WAChB,KAAK,cAAA,CAAA,CAEf,WAAA,CAOH,OAAA,CACC,KAAK,cAAc,IAAI,MAAM,QAAA,CAAA,CAM9B,MAAA,CACC,KAAK,SAAA,CAAW,EAGjB,UAAA,CACC,KAAK,SAAA,CAAW,EAChB,KAAK,cACJ,IAAI,YAAkB,uBAAwB,CAC7C,QAAA,CAAS,EACT,SAAA,CAAU,EAAA,CAAA,CAAA,CAKb,QAAA,CACC,MAAO,GAAA,IAAI;;;mBAGM,KAAK,SAAA;2BACH,CAChB,QAAS,KAAK,SAAW,IAAM,IAC/B,cAAe,KAAK,SAAW,OAAS,OAAA,CAAA,CAAA;;;;;;2BAOxB,CAChB,QAAS,KAAK,SAAW,IAAM,IAC/B,cAAe,KAAK,SAAW,OAAS,OAAA,CAAA,CAAA;;;;0BA7ElC,CAAE,KAAM,OAAQ,UAAW,eAAA,CAAA,CAAA,CAAiB,EAAA,UAAA,cAAA,IAAA,GAAA,CAAA,EAAA,EAAA,EAAA,EAAA,EAAA,UAO5C,CAAE,KAAM,QAAA,CAAA,CAAA,CAAU,EAAA,UAAA,OAAA,IAAA,GAAA,CAAA,EAAA,EAAA,EAAA,EAAA,EAAA,UAKlB,CAAE,KAAM,QAAS,UAAW,mBAAA,CAAA,CAAA,CAAqB,EAAA,UAAA,kBAAA,IAAA,GAAA,CAAA,EAAA,EAAA,EAAA,EAAA,EAAA,QAAA,CAAA,CAEnD,EAAA,UAAA,WAAA,IAAA,GAAA,CAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,eAhDM,yBAAA,CAAA,CAAyB,EAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e } from "./mixins-
|
|
1
|
+
import { c as e } from "./mixins-pU53qf6R.js";
|
|
2
2
|
import { a as t } from "./active-host-BP0zy_Y9.js";
|
|
3
3
|
import { fromEvent as n, of as r, timer as i, zip as a } from "rxjs";
|
|
4
4
|
import { take as o, takeUntil as s, tap as c } from "rxjs/operators";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splash-screen-
|
|
1
|
+
{"version":3,"file":"splash-screen-xrMNpzkm.js","names":[],"sources":["../src/splash-screen/splash-screen.ts"],"sourcesContent":["import { SchmancyElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { styleMap } from 'lit/directives/style-map.js'\nimport { fromEvent, of, timer, zip } from 'rxjs'\nimport { take, takeUntil, tap } from 'rxjs/operators'\n\nexport type SchmancySplashScreenDoneEvent = CustomEvent<void>\n\n/**\n * Full-viewport splash overlay that dismisses once a minimum duration has\n * elapsed and (optionally) an external `ready` signal has fired. The splash\n * fades out while the underlying app content fades in.\n *\n * Bring-your-own visuals: the `splash` slot is empty by default so the\n * component pulls in no dependencies. Provide a logo, spinner, or\n * animation from the consumer side.\n *\n * @element schmancy-splash-screen\n * @slot splash - Content rendered on the splash layer (logo, spinner, etc.).\n * @slot - Default slot for the actual app content, revealed once dismissed.\n * @fires schmancy-splash-done - `CustomEvent<void>` when the splash dismisses.\n *\n * @example\n * ```html\n * <schmancy-splash-screen min-duration=\"1200\">\n * <my-logo slot=\"splash\"></my-logo>\n * <my-app></my-app>\n * </schmancy-splash-screen>\n * ```\n */\n@customElement('schmancy-splash-screen')\nexport default class SchmancySplashScreen extends SchmancyElement {\n\tstatic styles = [css`\n\t:host {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t}\n\n\t.splash-layer {\n\t\tposition: fixed;\n\t\tinset: 0;\n\t\tz-index: 50;\n\t\toverflow: hidden;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground: var(\n\t\t\t--schmancy-splash-background,\n\t\t\tvar(--schmancy-sys-color-surface-containerLowest, #000)\n\t\t);\n\t\ttransition: opacity var(--schmancy-splash-transition, 500ms) ease-out;\n\t}\n\n\t.content-layer {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\ttransition: opacity var(--schmancy-splash-transition, 500ms) ease-in-out;\n\t}\n`]\n\n\t/**\n\t * Minimum duration (ms) the splash layer stays visible. Prevents a flash\n\t * when the app loads faster than expected.\n\t */\n\t@property({ type: Number, attribute: 'min-duration' }) minDuration = 1500\n\n\t/**\n\t * When true, the splash dismisses on the `minDuration` timer alone.\n\t * When false (default), it additionally waits for an external ready signal\n\t * (a `ready` event on this element, or a call to `this.ready()`).\n\t */\n\t@property({ type: Boolean }) auto = false\n\n\t/**\n\t * When true, the splash starts hidden. Use this for imperative control.\n\t */\n\t@property({ type: Boolean, attribute: 'initially-hidden' }) initiallyHidden = false\n\n\t@state() private _visible = true\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\tif (this.initiallyHidden) {\n\t\t\tthis._visible = false\n\t\t\treturn\n\t\t}\n\n\t\tconst readySignal$ = this.auto ? of(null) : fromEvent<Event>(this, 'ready').pipe(take(1))\n\t\tconst minTimer$ = timer(this.minDuration)\n\n\t\tzip(readySignal$, minTimer$)\n\t\t\t.pipe(\n\t\t\t\ttake(1),\n\t\t\t\ttap(() => this._dismiss()),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe()\n\t}\n\n\t/**\n\t * Imperative API: signal that the app is ready and dismiss the splash\n\t * after the minimum duration has elapsed.\n\t */\n\tpublic ready(): void {\n\t\tthis.dispatchEvent(new Event('ready'))\n\t}\n\n\t/**\n\t * Force the splash to show again (e.g. between route transitions).\n\t */\n\tpublic show(): void {\n\t\tthis._visible = true\n\t}\n\n\tprivate _dismiss(): void {\n\t\tthis._visible = false\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent<void>('schmancy-splash-done', {\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\trender() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=\"splash-layer\"\n\t\t\t\taria-hidden=${!this._visible}\n\t\t\t\tstyle=${styleMap({\n\t\t\t\t\topacity: this._visible ? '1' : '0',\n\t\t\t\t\tpointerEvents: this._visible ? 'auto' : 'none',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot name=\"splash\"></slot>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclass=\"content-layer\"\n\t\t\t\tstyle=${styleMap({\n\t\t\t\t\topacity: this._visible ? '0' : '1',\n\t\t\t\t\tpointerEvents: this._visible ? 'none' : 'auto',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-splash-screen': SchmancySplashScreen\n\t}\n}\n"],"mappings":";;;;;;;AAgCe,IAAA,IAAA,cAAmC,EAAA;CAAA,YAAA,GAAA,GAAA;EAAA,MAAA,GAAA,EAAA,EAAA,KAAA,cAiCoB,MAAA,KAAA,OAAA,CAOjC,GAAA,KAAA,kBAAA,CAK0C,GAAA,KAAA,WAAA,CAElD;;CAAA;EAAA,KAAA,SA9CZ,CAAC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDpB,oBAAA;EACC,MAAM,mBAAA,EAEF,KAAK,kBACR,KAAK,WAAA,CAAW,IAOjB,EAHqB,KAAK,OAAO,EAAG,KAAA,GAAQ,EAAiB,MAAM,QAAA,CAAS,KAAK,EAAK,EAAA,CAAA,EACpE,EAAM,KAAK,YAAA,CAAA,CAG3B,KACA,EAAK,EAAA,EACL,QAAU,KAAK,UAAA,CAAA,EACf,EAAU,KAAK,cAAA,CAAA,CAEf,WAAA;;CAOH,QAAA;EACC,KAAK,cAAc,IAAI,MAAM,QAAA,CAAA;;CAM9B,OAAA;EACC,KAAK,WAAA,CAAW;;CAGjB,WAAA;EACC,KAAK,WAAA,CAAW,GAChB,KAAK,cACJ,IAAI,YAAkB,wBAAwB;GAC7C,SAAA,CAAS;GACT,UAAA,CAAU;GAAA,CAAA,CAAA;;CAKb,SAAA;EACC,OAAO,CAAI;;;mBAGM,KAAK,SAAA;YACZ,EAAS;GAChB,SAAS,KAAK,WAAW,MAAM;GAC/B,eAAe,KAAK,WAAW,SAAS;GAAA,CAAA,CAAA;;;;;;YAOjC,EAAS;GAChB,SAAS,KAAK,WAAW,MAAM;GAC/B,eAAe,KAAK,WAAW,SAAS;GAAA,CAAA,CAAA;;;;;;;GA7E3C,EAAS;CAAE,MAAM;CAAQ,WAAW;CAAA,CAAA,CAAA,EAAiB,EAAA,WAAA,eAAA,KAAA,EAAA,EAAA,EAAA,CAOrD,EAAS,EAAE,MAAM,SAAA,CAAA,CAAA,EAAU,EAAA,WAAA,QAAA,KAAA,EAAA,EAAA,EAAA,CAK3B,EAAS;CAAE,MAAM;CAAS,WAAW;CAAA,CAAA,CAAA,EAAqB,EAAA,WAAA,mBAAA,KAAA,EAAA,EAAA,EAAA,CAE1D,GAAA,CAAA,EAAO,EAAA,WAAA,YAAA,KAAA,EAAA,EAAA,IAAA,EAAA,CAhDR,EAAc,yBAAA,CAAA,EAAyB,EAAA"}
|
package/dist/splash-screen.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./splash-screen-
|
|
1
|
+
require(`./splash-screen-2hxq8Sft.cjs`);
|
package/dist/splash-screen.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./splash-screen-
|
|
1
|
+
import "./splash-screen-xrMNpzkm.js";
|
|
@@ -1,69 +1,68 @@
|
|
|
1
|
-
import { c as e } from "./mixins-
|
|
1
|
+
import { c as e } from "./mixins-pU53qf6R.js";
|
|
2
2
|
import { a as t } from "./active-host-BP0zy_Y9.js";
|
|
3
|
-
import { S as n, b as r, x as i } from "./area-
|
|
3
|
+
import { S as n, b as r, x as i } from "./area-Ddk7P5wD.js";
|
|
4
4
|
import "./state-CHbIt2Dw.js";
|
|
5
5
|
import "./audio-CxO5a2HL.js";
|
|
6
|
-
import "./autocomplete-
|
|
6
|
+
import "./autocomplete-Ds3Q2cwR.js";
|
|
7
7
|
import { n as a } from "./theme.service-CSzNkqBB.js";
|
|
8
8
|
import { color as o } from "./directives.js";
|
|
9
|
-
import "./boat-
|
|
10
|
-
import "./busy-
|
|
9
|
+
import "./boat-BF5P6p_f.js";
|
|
10
|
+
import "./busy-BuACDJy6.js";
|
|
11
11
|
import "./button.js";
|
|
12
|
-
import "./card-
|
|
13
|
-
import "./checkbox-
|
|
14
|
-
import "./chips-
|
|
12
|
+
import "./card-CgQwXO8L.js";
|
|
13
|
+
import "./checkbox-BNdg57Om.js";
|
|
14
|
+
import "./chips-DnqLaOb1.js";
|
|
15
15
|
import "./connectivity.js";
|
|
16
|
-
import { o as s } from "./overlay.service-
|
|
17
|
-
import "./date-range-
|
|
18
|
-
import "./date-range-inline-
|
|
16
|
+
import { o as s } from "./overlay.service-BfZf3xoD.js";
|
|
17
|
+
import "./date-range-aPSmSBhk.js";
|
|
18
|
+
import "./date-range-inline-PeRt1iIF.js";
|
|
19
19
|
import "./delay.js";
|
|
20
|
-
import "./details-
|
|
20
|
+
import "./details-BpFjVclg.js";
|
|
21
21
|
import "./discovery.js";
|
|
22
|
-
import "./divider-
|
|
22
|
+
import "./divider-D8cBBkdG.js";
|
|
23
23
|
import "./dropdown.js";
|
|
24
|
-
import "./expand-
|
|
25
|
-
import "./float-
|
|
24
|
+
import "./expand-BJiKggfg.js";
|
|
25
|
+
import "./float-B4FDN40h.js";
|
|
26
26
|
import "./window.js";
|
|
27
|
-
import "./form-
|
|
28
|
-
import "./input-
|
|
29
|
-
import "./radio-group-
|
|
27
|
+
import "./form-Bz5WamuM.js";
|
|
28
|
+
import "./input-Q0fm34Co.js";
|
|
29
|
+
import "./radio-group-D9MU1Mxz.js";
|
|
30
30
|
import "./range.js";
|
|
31
31
|
import { t as c } from "./theme.interface-C2XNgsLB.js";
|
|
32
|
-
import "./select-
|
|
32
|
+
import "./select-CMwkl-D6.js";
|
|
33
33
|
import "./switch.js";
|
|
34
|
-
import "./textarea-
|
|
35
|
-
import "./icons-
|
|
36
|
-
import "./iframe-
|
|
37
|
-
import "./notification-
|
|
34
|
+
import "./textarea-BAogS_Ff.js";
|
|
35
|
+
import "./icons-BgUbHwy8.js";
|
|
36
|
+
import "./iframe-CByrVlZy.js";
|
|
37
|
+
import "./notification-CgTBiAdf.js";
|
|
38
38
|
import "./json.js";
|
|
39
39
|
import "./layout.js";
|
|
40
|
-
import "./lightbox-
|
|
41
|
-
import "./list-
|
|
42
|
-
import "./menu-
|
|
40
|
+
import "./lightbox-Ckvn5YNF.js";
|
|
41
|
+
import "./list-CsrPVvmm.js";
|
|
42
|
+
import "./menu-CxE16xur.js";
|
|
43
43
|
import "./navigation-rail.js";
|
|
44
|
-
import "./option-
|
|
45
|
-
import "./overlay-
|
|
46
|
-
import "./page.js";
|
|
44
|
+
import "./option-Bicf6xpI.js";
|
|
45
|
+
import "./overlay-D3mdWOLS.js";
|
|
47
46
|
import "./progress.js";
|
|
48
|
-
import "./rxjs-utils-
|
|
47
|
+
import "./rxjs-utils-BK8VMe3K.js";
|
|
49
48
|
import "./slider.js";
|
|
50
49
|
import "./steps.js";
|
|
51
50
|
import "./surface.js";
|
|
52
51
|
import "./table.js";
|
|
53
|
-
import "./tabs-
|
|
54
|
-
import "./theme-
|
|
55
|
-
import "./theme-button-
|
|
52
|
+
import "./tabs-CnLIe8nE.js";
|
|
53
|
+
import "./theme-CUK0HrS3.js";
|
|
54
|
+
import "./theme-button-Bb8qW2IH.js";
|
|
56
55
|
import "./tooltip.js";
|
|
57
56
|
import "./tree.js";
|
|
58
57
|
import { SchmancyEvents as l } from "./types.js";
|
|
59
58
|
import "./typewriter.js";
|
|
60
59
|
import "./typography.js";
|
|
61
|
-
import "./utils-
|
|
60
|
+
import "./utils-Cxg0Kfy5.js";
|
|
62
61
|
import "./avatar.js";
|
|
63
62
|
import "./breadcrumb.js";
|
|
64
63
|
import "./kbd.js";
|
|
65
64
|
import "./skeleton.js";
|
|
66
|
-
import "./splash-screen-
|
|
65
|
+
import "./splash-screen-xrMNpzkm.js";
|
|
67
66
|
import "./visually-hidden.js";
|
|
68
67
|
import { BehaviorSubject as u, Observable as ee, Subject as d, bufferTime as te, concatMap as ne, debounceTime as f, delay as re, distinctUntilChanged as ie, filter as ae, fromEvent as p, interval as oe, map as m, merge as h, of as g, startWith as se, take as ce, takeUntil as _, tap as v, throwIfEmpty as le, timeout as ue, timer as de, zip as fe } from "rxjs";
|
|
69
68
|
import { distinctUntilChanged as pe, filter as y, map as me, pairwise as he, take as ge, takeUntil as b, tap as x, throttleTime as _e } from "rxjs/operators";
|