@mhmo91/schmancy 0.2.194 → 0.2.196
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/ai/animated-text.md +114 -0
- package/ai/area.md +158 -78
- package/ai/card.md +162 -131
- package/ai/circular-progress.md +91 -0
- package/ai/content-drawer.md +190 -0
- package/ai/date-range.md +142 -0
- package/ai/delay.md +158 -0
- package/ai/dialog.md +10 -0
- package/ai/divider.md +153 -0
- package/ai/index.md +43 -3
- package/ai/nav-drawer.md +206 -0
- package/ai/option.md +173 -0
- package/ai/slider.md +227 -0
- package/ai/steps.md +231 -0
- package/ai/surface.md +139 -200
- package/ai/table.md +99 -1
- package/ai/teleport.md +196 -0
- package/ai/theme-button.md +173 -0
- package/ai/theme.md +241 -0
- package/ai/typewriter.md +217 -0
- package/dist/_headers +2 -0
- package/dist/ai/animated-text.md +114 -0
- package/dist/ai/area.md +158 -78
- package/dist/ai/card.md +162 -131
- package/dist/ai/circular-progress.md +91 -0
- package/dist/ai/content-drawer.md +190 -0
- package/dist/ai/date-range.md +142 -0
- package/dist/ai/delay.md +158 -0
- package/dist/ai/dialog.md +10 -0
- package/dist/ai/divider.md +153 -0
- package/dist/ai/index.md +43 -3
- package/dist/ai/nav-drawer.md +206 -0
- package/dist/ai/option.md +173 -0
- package/dist/ai/slider.md +227 -0
- package/dist/ai/steps.md +231 -0
- package/dist/ai/surface.md +139 -200
- package/dist/ai/table.md +99 -1
- package/dist/ai/teleport.md +196 -0
- package/dist/ai/theme-button.md +173 -0
- package/dist/ai/theme.md +241 -0
- package/dist/ai/typewriter.md +217 -0
- package/dist/{animated-text-9AM64DHd.cjs → animated-text-DnX2TopW.cjs} +2 -2
- package/dist/{animated-text-9AM64DHd.cjs.map → animated-text-DnX2TopW.cjs.map} +1 -1
- package/dist/{animated-text-CVStWn5N.js → animated-text-jv1yAwLh.js} +3 -3
- package/dist/{animated-text-CVStWn5N.js.map → animated-text-jv1yAwLh.js.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/area.component-DMD20wqd.js +191 -0
- package/dist/area.component-DMD20wqd.js.map +1 -0
- package/dist/area.component-Vs2WGXgk.cjs +8 -0
- package/dist/area.component-Vs2WGXgk.cjs.map +1 -0
- package/dist/area.js +21 -6
- package/dist/area.js.map +1 -1
- package/dist/{autocomplete-DBXvIJgc.cjs → autocomplete-BrAxEJJq.cjs} +2 -2
- package/dist/{autocomplete-DBXvIJgc.cjs.map → autocomplete-BrAxEJJq.cjs.map} +1 -1
- package/dist/{autocomplete-ih92pPkb.js → autocomplete-OS61ngsy.js} +3 -3
- package/dist/{autocomplete-ih92pPkb.js.map → autocomplete-OS61ngsy.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-Bmg5TXj9.cjs → avatar-CEdv8DJY.cjs} +62 -24
- package/dist/avatar-CEdv8DJY.cjs.map +1 -0
- package/dist/{avatar-CgP1tBZq.js → avatar-CUHTDenQ.js} +183 -145
- package/dist/avatar-CUHTDenQ.js.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +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.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-Jxxbjxp0.js → checkbox-CVXRiSWP.js} +72 -65
- package/dist/{checkbox-Jxxbjxp0.js.map → checkbox-CVXRiSWP.js.map} +1 -1
- package/dist/{checkbox-DtnX5sT6.cjs → checkbox-Chd-COYm.cjs} +10 -10
- package/dist/{checkbox-DtnX5sT6.cjs.map → checkbox-Chd-COYm.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-CVDnpVUM.cjs → chips-Bx9gSvN1.cjs} +2 -2
- package/dist/{chips-CVDnpVUM.cjs.map → chips-Bx9gSvN1.cjs.map} +1 -1
- package/dist/{chips-lP7ohQep.js → chips-Dx_erk55.js} +3 -3
- package/dist/{chips-lP7ohQep.js.map → chips-Dx_erk55.js.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/circular-progress-BQnGvbss.js +35 -0
- package/dist/circular-progress-BQnGvbss.js.map +1 -0
- package/dist/circular-progress-CNBah5dz.cjs +9 -0
- package/dist/circular-progress-CNBah5dz.cjs.map +1 -0
- package/dist/circular-progress.cjs +2 -0
- package/dist/circular-progress.cjs.map +1 -0
- package/dist/circular-progress.js +5 -0
- package/dist/circular-progress.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-DbPA5Y-t.cjs → date-range-Cq0diVSY.cjs} +4 -3
- package/dist/{date-range-DbPA5Y-t.cjs.map → date-range-Cq0diVSY.cjs.map} +1 -1
- package/dist/{date-range-Ca9WLI4Q.js → date-range-wxdt6Ha0.js} +5 -4
- package/dist/date-range-wxdt6Ha0.js.map +1 -0
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-BgNgQV2G.cjs → delay-BzkhDhs0.cjs} +2 -2
- package/dist/{delay-BgNgQV2G.cjs.map → delay-BzkhDhs0.cjs.map} +1 -1
- package/dist/{delay-5cCl7ji3.js → delay-Ds5suSsc.js} +2 -2
- package/dist/{delay-5cCl7ji3.js.map → delay-Ds5suSsc.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-content-qj1E8aye.cjs → dialog-content-CJY69qfC.cjs} +8 -8
- package/dist/dialog-content-CJY69qfC.cjs.map +1 -0
- package/dist/{dialog-content-9pumpyLD.js → dialog-content-DFJnYzff.js} +86 -82
- package/dist/dialog-content-DFJnYzff.js.map +1 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-r8-9eNnl.js → divider-C3w1_-N1.js} +3 -3
- package/dist/{divider-r8-9eNnl.js.map → divider-C3w1_-N1.js.map} +1 -1
- package/dist/{divider-CHckHGEQ.cjs → divider-CFzbCFsr.cjs} +2 -2
- package/dist/{divider-CHckHGEQ.cjs.map → divider-CFzbCFsr.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-D-TddflQ.js → dropdown-content-BGFYBXcx.js} +3 -3
- package/dist/{dropdown-content-D-TddflQ.js.map → dropdown-content-BGFYBXcx.js.map} +1 -1
- package/dist/{dropdown-content-B41MDDRG.cjs → dropdown-content-PaMOJphI.cjs} +2 -2
- package/dist/{dropdown-content-B41MDDRG.cjs.map → dropdown-content-PaMOJphI.cjs.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-Bf0zNqji.js → flex-Cy4Stl_1.js} +2 -2
- package/dist/{flex-Bf0zNqji.js.map → flex-Cy4Stl_1.js.map} +1 -1
- package/dist/{flex-CFv-Zb76.cjs → flex-DP5O5644.cjs} +2 -2
- package/dist/{flex-CFv-Zb76.cjs.map → flex-DP5O5644.cjs.map} +1 -1
- package/dist/{form-uYcr1RLJ.js → form-BQamcLFL.js} +2 -2
- package/dist/{form-uYcr1RLJ.js.map → form-BQamcLFL.js.map} +1 -1
- package/dist/{form-BN75s0PI.cjs → form-CG3kns69.cjs} +2 -2
- package/dist/{form-BN75s0PI.cjs.map → form-CG3kns69.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-BR-jE0Y2.js → icon-Cd4p9jRB.js} +3 -3
- package/dist/{icon-BR-jE0Y2.js.map → icon-Cd4p9jRB.js.map} +1 -1
- package/dist/{icon-Cu-imayV.cjs → icon-CilwMTXB.cjs} +2 -2
- package/dist/{icon-Cu-imayV.cjs.map → icon-CilwMTXB.cjs.map} +1 -1
- package/dist/{icon-button-1tZaicyb.js → icon-button-By17is4V.js} +3 -3
- package/dist/{icon-button-1tZaicyb.js.map → icon-button-By17is4V.js.map} +1 -1
- package/dist/{icon-button-D0BbHnDL.cjs → icon-button-C4Hf63hY.cjs} +2 -2
- package/dist/{icon-button-D0BbHnDL.cjs.map → icon-button-C4Hf63hY.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +190 -173
- package/dist/index.js.map +1 -1
- package/dist/{input-B2oV6Hck.cjs → input-BIi0rS2t.cjs} +2 -2
- package/dist/{input-B2oV6Hck.cjs.map → input-BIi0rS2t.cjs.map} +1 -1
- package/dist/{input-kiz5O3dY.js → input-C8OAokVe.js} +2 -2
- package/dist/{input-kiz5O3dY.js.map → input-C8OAokVe.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-wT4DLXCh.js → list-BC3OE3Pu.js} +2 -2
- package/dist/{list-wT4DLXCh.js.map → list-BC3OE3Pu.js.map} +1 -1
- package/dist/{list-CMHoPfX9.cjs → list-jFsCubuy.cjs} +2 -2
- package/dist/{list-CMHoPfX9.cjs.map → list-jFsCubuy.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-B9Qdq5S_.js → litElement.mixin-C6PzcPXd.js} +2 -2
- package/dist/{litElement.mixin-B9Qdq5S_.js.map → litElement.mixin-C6PzcPXd.js.map} +1 -1
- package/dist/{litElement.mixin-CHvyxfxf.cjs → litElement.mixin-Cypiq-N-.cjs} +2 -2
- package/dist/{litElement.mixin-CHvyxfxf.cjs.map → litElement.mixin-Cypiq-N-.cjs.map} +1 -1
- package/dist/{menu-BcSplMNh.cjs → menu-CDjqdEd6.cjs} +2 -2
- package/dist/{menu-BcSplMNh.cjs.map → menu-CDjqdEd6.cjs.map} +1 -1
- package/dist/{menu-Dl1QU86K.js → menu-n_Doj-bW.js} +3 -3
- package/dist/{menu-Dl1QU86K.js.map → menu-n_Doj-bW.js.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/{notification-service-BV9ybQBu.cjs → notification-service--VLqOJJg.cjs} +2 -2
- package/dist/{notification-service-BV9ybQBu.cjs.map → notification-service--VLqOJJg.cjs.map} +1 -1
- package/dist/{notification-service-CC698xHg.js → notification-service-DHIhgWQr.js} +3 -3
- package/dist/{notification-service-CC698xHg.js.map → notification-service-DHIhgWQr.js.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-CkLBgH71.cjs → option-B359EBiZ.cjs} +2 -2
- package/dist/{option-CkLBgH71.cjs.map → option-B359EBiZ.cjs.map} +1 -1
- package/dist/{option-DDxxXwwc.js → option-oyyjCwnL.js} +2 -2
- package/dist/{option-DDxxXwwc.js.map → option-oyyjCwnL.js.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-UWbAYNPR.cjs → payment-card-form-B-ZAsSED.cjs} +2 -2
- package/dist/{payment-card-form-UWbAYNPR.cjs.map → payment-card-form-B-ZAsSED.cjs.map} +1 -1
- package/dist/{payment-card-form-DDTO5_AA.js → payment-card-form-BSueaw97.js} +3 -3
- package/dist/{payment-card-form-DDTO5_AA.js.map → payment-card-form-BSueaw97.js.map} +1 -1
- package/dist/{radio-button-wWoxPDfq.js → radio-button-84TD7rpH.js} +2 -2
- package/dist/{radio-button-wWoxPDfq.js.map → radio-button-84TD7rpH.js.map} +1 -1
- package/dist/{radio-button-BykiVxTD.cjs → radio-button-BO6mIWCi.cjs} +2 -2
- package/dist/{radio-button-BykiVxTD.cjs.map → radio-button-BO6mIWCi.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-B1mIGa9M.cjs → schmancy-steps-container-Cfq8OsWt.cjs} +2 -2
- package/dist/{schmancy-steps-container-B1mIGa9M.cjs.map → schmancy-steps-container-Cfq8OsWt.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-ByO98z7L.js → schmancy-steps-container-Lo4d27n3.js} +2 -2
- package/dist/{schmancy-steps-container-ByO98z7L.js.map → schmancy-steps-container-Lo4d27n3.js.map} +1 -1
- package/dist/{select-BIOhocL7.js → select-B-zgP_v6.js} +3 -3
- package/dist/{select-BIOhocL7.js.map → select-B-zgP_v6.js.map} +1 -1
- package/dist/{select-DE57Nios.cjs → select-DhEVsWh6.cjs} +2 -2
- package/dist/{select-DE57Nios.cjs.map → select-DhEVsWh6.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-fZYAWGsm.cjs → sheet-BEWq40cN.cjs} +2 -2
- package/dist/{sheet-fZYAWGsm.cjs.map → sheet-BEWq40cN.cjs.map} +1 -1
- package/dist/{sheet-Dh4MLVsU.js → sheet-DDY4pbD4.js} +3 -3
- package/dist/{sheet-Dh4MLVsU.js.map → sheet-DDY4pbD4.js.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-DVlJoDgU.js → slider--irxEv_B.js} +3 -3
- package/dist/{slider-DVlJoDgU.js.map → slider--irxEv_B.js.map} +1 -1
- package/dist/{slider-CejrdmPF.cjs → slider-De-H5fe8.cjs} +2 -2
- package/dist/{slider-CejrdmPF.cjs.map → slider-De-H5fe8.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-DbTnai_Q.js → spinner-Bl9n09Z5.js} +3 -3
- package/dist/{spinner-DbTnai_Q.js.map → spinner-Bl9n09Z5.js.map} +1 -1
- package/dist/{spinner-DxVJ7QJZ.cjs → spinner-DNz1IjmL.cjs} +2 -2
- package/dist/{spinner-DxVJ7QJZ.cjs.map → spinner-DNz1IjmL.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/surface-BAEUiWcq.cjs +92 -0
- package/dist/surface-BAEUiWcq.cjs.map +1 -0
- package/dist/surface-h9dLHMTm.js +113 -0
- package/dist/surface-h9dLHMTm.js.map +1 -0
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-CqUv1TOC.js → table-CxazXBjI.js} +72 -68
- package/dist/{table-CqUv1TOC.js.map → table-CxazXBjI.js.map} +1 -1
- package/dist/{table-CBhyHINV.cjs → table-Dn07ykGG.cjs} +4 -4
- package/dist/{table-CBhyHINV.cjs.map → table-Dn07ykGG.cjs.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-DUo2f_sV.js → tabs-compatibility-B8I0vg7Y.js} +2 -2
- package/dist/{tabs-compatibility-DUo2f_sV.js.map → tabs-compatibility-B8I0vg7Y.js.map} +1 -1
- package/dist/{tabs-compatibility-DPD6jfGF.cjs → tabs-compatibility-BrTxeSS-.cjs} +2 -2
- package/dist/{tabs-compatibility-DPD6jfGF.cjs.map → tabs-compatibility-BrTxeSS-.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-Du4i6vQR.js +43 -0
- package/dist/{tailwind.mixin-Di7KWye7.js.map → tailwind.mixin-Du4i6vQR.js.map} +1 -1
- package/dist/tailwind.mixin-qyIcoDLk.cjs +2 -0
- package/dist/{tailwind.mixin-Dm5QDZav.cjs.map → tailwind.mixin-qyIcoDLk.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-Dbz18REy.js → textarea-DibCLxC2.js} +2 -2
- package/dist/{textarea-Dbz18REy.js.map → textarea-DibCLxC2.js.map} +1 -1
- package/dist/{textarea-CesFdBkm.cjs → textarea-pMec4Wpg.cjs} +2 -2
- package/dist/{textarea-CesFdBkm.cjs.map → textarea-pMec4Wpg.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-Bt2OV4iu.cjs → theme-button-CG1w_waw.cjs} +2 -2
- package/dist/{theme-button-Bt2OV4iu.cjs.map → theme-button-CG1w_waw.cjs.map} +1 -1
- package/dist/{theme-button-lqbT2_LL.js → theme-button-irLEczd5.js} +2 -2
- package/dist/{theme-button-lqbT2_LL.js.map → theme-button-irLEczd5.js.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.component-xarFSe8p.js → theme.component-CMM8Xws2.js} +2 -2
- package/dist/{theme.component-xarFSe8p.js.map → theme.component-CMM8Xws2.js.map} +1 -1
- package/dist/{theme.component-BlBaN7d6.cjs → theme.component-CpRuySmd.cjs} +3 -3
- package/dist/{theme.component-BlBaN7d6.cjs.map → theme.component-CpRuySmd.cjs.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-DwT_pQrj.js → timezone-DIrmlnD6.js} +3 -3
- package/dist/{timezone-DwT_pQrj.js.map → timezone-DIrmlnD6.js.map} +1 -1
- package/dist/{timezone-VUMRmZaJ.cjs → timezone-n5GflDRe.cjs} +2 -2
- package/dist/{timezone-VUMRmZaJ.cjs.map → timezone-n5GflDRe.cjs.map} +1 -1
- package/dist/{tooltip-Cvoroe7w.cjs → tooltip-0vIcVm5-.cjs} +2 -2
- package/dist/{tooltip-Cvoroe7w.cjs.map → tooltip-0vIcVm5-.cjs.map} +1 -1
- package/dist/{tooltip-BKOHVCMK.js → tooltip-N_B-vsDa.js} +2 -2
- package/dist/{tooltip-BKOHVCMK.js.map → tooltip-N_B-vsDa.js.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-_FJnHVmP.js → tree-2Hf2X0Hv.js} +2 -2
- package/dist/{tree-_FJnHVmP.js.map → tree-2Hf2X0Hv.js.map} +1 -1
- package/dist/{tree-Cyp2AZ8g.cjs → tree-Q8AMxJxP.cjs} +2 -2
- package/dist/{tree-Cyp2AZ8g.cjs.map → tree-Q8AMxJxP.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-BIm2tOe4.cjs → typewriter-CsL-NfYC.cjs} +2 -2
- package/dist/{typewriter-BIm2tOe4.cjs.map → typewriter-CsL-NfYC.cjs.map} +1 -1
- package/dist/{typewriter-DWfXPBni.js → typewriter-bqbNKczJ.js} +22 -22
- package/dist/{typewriter-DWfXPBni.js.map → typewriter-bqbNKczJ.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-DaKLzjFB.js → typography-CbrvouLo.js} +2 -2
- package/dist/{typography-DaKLzjFB.js.map → typography-CbrvouLo.js.map} +1 -1
- package/dist/{typography-OpLt6LNd.cjs → typography-Hlts-hzc.cjs} +2 -2
- package/dist/{typography-OpLt6LNd.cjs.map → typography-Hlts-hzc.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/dist/utils-BqFGvnN9.cjs +2 -0
- package/dist/utils-BqFGvnN9.cjs.map +1 -0
- package/dist/utils-jduntaQU.js +128 -0
- package/dist/utils-jduntaQU.js.map +1 -0
- package/package.json +13 -14
- package/types/src/area/area.component.d.ts +1 -1
- package/types/src/area/area.service.d.ts +44 -26
- package/types/src/area/index.d.ts +1 -0
- package/types/src/area/utils.d.ts +91 -1
- package/types/src/checkbox/checkbox.d.ts +9 -0
- package/types/src/circular-progress/circular-progress.d.ts +15 -0
- package/types/src/circular-progress/index.d.ts +1 -0
- package/types/src/dialog/dailog.d.ts +8 -0
- package/types/src/dialog/dialog-service.d.ts +1 -0
- package/types/src/index.d.ts +1 -0
- package/types/src/table/table.d.ts +1 -0
- package/dist/area.component-CzFJM7Y4.js +0 -143
- package/dist/area.component-CzFJM7Y4.js.map +0 -1
- package/dist/area.component-WxccFh1z.cjs +0 -8
- package/dist/area.component-WxccFh1z.cjs.map +0 -1
- package/dist/avatar-Bmg5TXj9.cjs.map +0 -1
- package/dist/avatar-CgP1tBZq.js.map +0 -1
- package/dist/date-range-Ca9WLI4Q.js.map +0 -1
- package/dist/dialog-content-9pumpyLD.js.map +0 -1
- package/dist/dialog-content-qj1E8aye.cjs.map +0 -1
- package/dist/surface-BTuzKmT2.cjs +0 -20
- package/dist/surface-BTuzKmT2.cjs.map +0 -1
- package/dist/surface-DXx1bJN4.js +0 -43
- package/dist/surface-DXx1bJN4.js.map +0 -1
- package/dist/tailwind.mixin-Di7KWye7.js +0 -43
- package/dist/tailwind.mixin-Dm5QDZav.cjs +0 -2
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { e as y, n as i } from "./provide-hwQSumt-.js";
|
|
2
|
+
import { T as d } from "./tailwind.mixin-Du4i6vQR.js";
|
|
3
|
+
import { css as u, html as p } from "lit";
|
|
4
|
+
import { property as t, customElement as f } from "lit/decorators.js";
|
|
5
|
+
var m = Object.defineProperty, v = Object.getOwnPropertyDescriptor, s = (h, e, a, c) => {
|
|
6
|
+
for (var n, o = c > 1 ? void 0 : c ? v(e, a) : e, l = h.length - 1; l >= 0; l--) (n = h[l]) && (o = (c ? n(e, a, o) : n(o)) || o);
|
|
7
|
+
return c && o && m(e, a, o), o;
|
|
8
|
+
};
|
|
9
|
+
const b = i("surface");
|
|
10
|
+
let r = class extends d(u`
|
|
11
|
+
:host {
|
|
12
|
+
display: block;
|
|
13
|
+
position: relative;
|
|
14
|
+
inset: 0;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Fill styles */
|
|
19
|
+
:host([fill='all']) {
|
|
20
|
+
height: 100%;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
:host([fill='width']) {
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
:host([fill='height']) {
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Rounded corner styles */
|
|
31
|
+
:host([rounded='none']) {
|
|
32
|
+
border-radius: 0;
|
|
33
|
+
}
|
|
34
|
+
:host([rounded='top']) {
|
|
35
|
+
border-radius: 8px 8px 0 0;
|
|
36
|
+
}
|
|
37
|
+
:host([rounded='left']) {
|
|
38
|
+
border-radius: 8px 0 0 8px;
|
|
39
|
+
}
|
|
40
|
+
:host([rounded='right']) {
|
|
41
|
+
border-radius: 0 8px 8px 0;
|
|
42
|
+
}
|
|
43
|
+
:host([rounded='bottom']) {
|
|
44
|
+
border-radius: 0 0 8px 8px;
|
|
45
|
+
}
|
|
46
|
+
:host([rounded='all']) {
|
|
47
|
+
border-radius: 8px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Elevation styles */
|
|
51
|
+
:host([elevation='1']) {
|
|
52
|
+
box-shadow: var(--schmancy-sys-elevation-1);
|
|
53
|
+
}
|
|
54
|
+
:host([elevation='2']) {
|
|
55
|
+
box-shadow: var(--schmancy-sys-elevation-2);
|
|
56
|
+
}
|
|
57
|
+
:host([elevation='3']) {
|
|
58
|
+
box-shadow: var(--schmancy-sys-elevation-3);
|
|
59
|
+
}
|
|
60
|
+
:host([elevation='4']) {
|
|
61
|
+
box-shadow: var(--schmancy-sys-elevation-4);
|
|
62
|
+
}
|
|
63
|
+
:host([elevation='5']) {
|
|
64
|
+
box-shadow: var(--schmancy-sys-elevation-5);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Surface type styles - background and text colors */
|
|
68
|
+
:host([type='surface']) {
|
|
69
|
+
background-color: var(--schmancy-sys-color-surface-default);
|
|
70
|
+
color: var(--schmancy-sys-color-surface-on);
|
|
71
|
+
}
|
|
72
|
+
:host([type='surfaceDim']) {
|
|
73
|
+
background-color: var(--schmancy-sys-color-surface-dim);
|
|
74
|
+
color: var(--schmancy-sys-color-surface-on);
|
|
75
|
+
}
|
|
76
|
+
:host([type='surfaceBright']) {
|
|
77
|
+
background-color: var(--schmancy-sys-color-surface-bright);
|
|
78
|
+
color: var(--schmancy-sys-color-surface-on);
|
|
79
|
+
}
|
|
80
|
+
:host([type='containerLowest']) {
|
|
81
|
+
background-color: var(--schmancy-sys-color-surface-lowest);
|
|
82
|
+
color: var(--schmancy-sys-color-surface-on);
|
|
83
|
+
}
|
|
84
|
+
:host([type='containerLow']) {
|
|
85
|
+
background-color: var(--schmancy-sys-color-surface-low);
|
|
86
|
+
color: var(--schmancy-sys-color-surface-on);
|
|
87
|
+
}
|
|
88
|
+
:host([type='container']) {
|
|
89
|
+
background-color: var(--schmancy-sys-color-surface-container);
|
|
90
|
+
color: var(--schmancy-sys-color-surface-on);
|
|
91
|
+
}
|
|
92
|
+
:host([type='containerHigh']) {
|
|
93
|
+
background-color: var(--schmancy-sys-color-surface-high);
|
|
94
|
+
color: var(--schmancy-sys-color-surface-on);
|
|
95
|
+
}
|
|
96
|
+
:host([type='containerHighest']) {
|
|
97
|
+
background-color: var(--schmancy-sys-color-surface-highest);
|
|
98
|
+
color: var(--schmancy-sys-color-surface-on);
|
|
99
|
+
}
|
|
100
|
+
`) {
|
|
101
|
+
constructor() {
|
|
102
|
+
super(...arguments), this.fill = "auto", this.rounded = "none", this.type = "surface", this.elevation = 0;
|
|
103
|
+
}
|
|
104
|
+
render() {
|
|
105
|
+
return p`<slot></slot>`;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
s([t({ type: String, reflect: !0 })], r.prototype, "fill", 2), s([t({ reflect: !0 })], r.prototype, "rounded", 2), s([y({ context: b }), t({ reflect: !0 })], r.prototype, "type", 2), s([t({ type: Number, reflect: !0 })], r.prototype, "elevation", 2), r = s([f("schmancy-surface")], r);
|
|
109
|
+
export {
|
|
110
|
+
b as S,
|
|
111
|
+
r as a
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=surface-h9dLHMTm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surface-h9dLHMTm.js","sources":["../src/surface/surface.ts"],"sourcesContent":["import { createContext, provide } from '@lit/context'\nimport { TailwindElement } from '@mixins/tailwind.mixin'\nimport { TSurfaceColor } from '@schmancy/types'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\nexport const SchmancySurfaceTypeContext = createContext<TSurfaceColor>('surface')\n\nexport type SchmancySurfaceFill = 'all' | 'width' | 'height' | 'auto'\n/**\n * `<schmancy-surface>` component\n *\n * This component renders a styled container that adapts its dimensions based on the `fill` property.\n * It supports various rounding options, elevation levels, and applies background and text color classes\n * based on the specified surface variant. Additionally, when the `scroller` property is true, the component\n * enables internal scrolling by applying overflow and scroll-behavior styles.\n *\n * @element schmancy-surface\n * @slot - Default slot for projecting child content.\n *\n * @example\n * <schmancy-surface fill=\"all\" rounded=\"all\" elevation=\"3\" type=\"surfaceBright\" scroller>\n * <p>Your scrollable content here</p>\n * </schmancy-surface>\n */\n@customElement('schmancy-surface')\nexport class SchmancySurface extends TailwindElement(css`\n\t:host {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\tinset: 0;\n\t\tbox-sizing: border-box;\n\t}\n\t\n\t/* Fill styles */\n\t:host([fill='all']) {\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t:host([fill='width']) {\n\t\twidth: 100%;\n\t}\n\t:host([fill='height']) {\n\t\theight: 100%;\n\t}\n\t\n\t/* Rounded corner styles */\n\t:host([rounded='none']) {\n\t\tborder-radius: 0;\n\t}\n\t:host([rounded='top']) {\n\t\tborder-radius: 8px 8px 0 0;\n\t}\n\t:host([rounded='left']) {\n\t\tborder-radius: 8px 0 0 8px;\n\t}\n\t:host([rounded='right']) {\n\t\tborder-radius: 0 8px 8px 0;\n\t}\n\t:host([rounded='bottom']) {\n\t\tborder-radius: 0 0 8px 8px;\n\t}\n\t:host([rounded='all']) {\n\t\tborder-radius: 8px;\n\t}\n\t\n\t/* Elevation styles */\n\t:host([elevation='1']) {\n\t\tbox-shadow: var(--schmancy-sys-elevation-1);\n\t}\n\t:host([elevation='2']) {\n\t\tbox-shadow: var(--schmancy-sys-elevation-2);\n\t}\n\t:host([elevation='3']) {\n\t\tbox-shadow: var(--schmancy-sys-elevation-3);\n\t}\n\t:host([elevation='4']) {\n\t\tbox-shadow: var(--schmancy-sys-elevation-4);\n\t}\n\t:host([elevation='5']) {\n\t\tbox-shadow: var(--schmancy-sys-elevation-5);\n\t}\n\t\n\t/* Surface type styles - background and text colors */\n\t:host([type='surface']) {\n\t\tbackground-color: var(--schmancy-sys-color-surface-default);\n\t\tcolor: var(--schmancy-sys-color-surface-on);\n\t}\n\t:host([type='surfaceDim']) {\n\t\tbackground-color: var(--schmancy-sys-color-surface-dim);\n\t\tcolor: var(--schmancy-sys-color-surface-on);\n\t}\n\t:host([type='surfaceBright']) {\n\t\tbackground-color: var(--schmancy-sys-color-surface-bright);\n\t\tcolor: var(--schmancy-sys-color-surface-on);\n\t}\n\t:host([type='containerLowest']) {\n\t\tbackground-color: var(--schmancy-sys-color-surface-lowest);\n\t\tcolor: var(--schmancy-sys-color-surface-on);\n\t}\n\t:host([type='containerLow']) {\n\t\tbackground-color: var(--schmancy-sys-color-surface-low);\n\t\tcolor: var(--schmancy-sys-color-surface-on);\n\t}\n\t:host([type='container']) {\n\t\tbackground-color: var(--schmancy-sys-color-surface-container);\n\t\tcolor: var(--schmancy-sys-color-surface-on);\n\t}\n\t:host([type='containerHigh']) {\n\t\tbackground-color: var(--schmancy-sys-color-surface-high);\n\t\tcolor: var(--schmancy-sys-color-surface-on);\n\t}\n\t:host([type='containerHighest']) {\n\t\tbackground-color: var(--schmancy-sys-color-surface-highest);\n\t\tcolor: var(--schmancy-sys-color-surface-on);\n\t}\n`) {\n\t/**\n\t * Fill the width and/or height of the parent container.\n\t * Options: 'all', 'width', 'height', 'auto'.\n\t * @default 'auto'\n\t */\n\t@property({ type: String, reflect: true })\n\tfill: 'all' | 'width' | 'height' | 'auto' = 'auto'\n\n\t/**\n\t * Specifies the rounding style of the component's corners.\n\t * Options: 'none', 'top', 'left', 'right', 'bottom', 'all'.\n\t * @default 'none'\n\t */\n\t@property({ reflect: true })\n\trounded: 'none' | 'top' | 'left' | 'right' | 'bottom' | 'all' = 'none'\n\n\t/**\n\t * Specifies the surface type for styling.\n\t * Provided to descendant components via context.\n\t * Options: 'surface', 'surfaceDim', 'surfaceBright', 'containerLowest',\n\t * 'containerLow', 'container', 'containerHigh', 'containerHighest'.\n\t * @default 'surface'\n\t */\n\t@provide({ context: SchmancySurfaceTypeContext })\n\t@property({ reflect: true })\n\ttype: TSurfaceColor = 'surface'\n\n\t/**\n\t * Defines the elevation level (shadow depth) of the surface.\n\t * Valid values: 0, 1, 2, 3, 4, 5.\n\t * @default 0\n\t */\n\t@property({ type: Number, reflect: true })\n\televation: 0 | 1 | 2 | 3 | 4 | 5 = 0\n\n\tprotected render(): unknown {\n\t\treturn html`<slot></slot>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-surface': SchmancySurface\n\t}\n}"],"names":["SchmancySurfaceTypeContext","createContext","SchmancySurface","TailwindElement","css","super","arguments","this","fill","rounded","type","elevation","render","html","__decorateClass","property","String","reflect","prototype","provide","context","Number","customElement"],"mappings":";;;;;;;;AAMa,MAAAA,IAA6BC,EAA6B,SAoB1D;AAAA,IAAAC,IAAN,cAA8BC,EAAgBC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,CAA9C,EAAA;AAAA,EAAA;AAAAC,UAAAC,GAAAA,SAAAA,GAiGsCC,KAAAC,OAAA,QAQoBD,KAAAE,UAAA,QAW1CF,KAAAG,OAAA,WAQaH,KAAAI,YAAA;AAAA,EAAA;AAAA,EAEzB,SAAAC;AACF,WAAAC;AAAAA,EAAA;AA9BRC;AAAAA,EAAA,CADCC,EAAS,EAAEL,MAAMM,QAAQC,SAAS,GAAA,CAAA,CAAA,GAhGvBf,EAiGZgB,WAAA,QAAA,CAQAJ,GAAAA,EAAA,CADCC,EAAS,EAAEE,SAAS,GAAA,CAAA,CAAA,GAxGTf,EAyGZgB,WAAA,WAAA,CAWAJ,GAAAA,EAAA,CAFCK,EAAQ,EAAEC,SAASpB,EAAAA,CAAAA,GACnBe,EAAS,EAAEE,SAAAA,GAnHAf,CAAAA,CAAAA,GAAAA,EAoHZgB,WAAA,QAAA,CAAA,GAQAJ,EAAA,CADCC,EAAS,EAAEL,MAAMW,QAAQJ,SAAAA,QA3Hdf,EA4HZgB,WAAA,aAAA,CAAA,GA5HYhB,IAANY,EAAA,CADNQ,EAAc,kBAAA,CAAA,GACFpB;"}
|
package/dist/surface.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./surface-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./surface-BAEUiWcq.cjs");Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>e.SchmancySurface}),exports.SchmancySurfaceTypeContext=e.SchmancySurfaceTypeContext;
|
|
2
2
|
//# sourceMappingURL=surface.cjs.map
|
package/dist/surface.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { html as
|
|
3
|
-
import { property as
|
|
1
|
+
import { _ as f } from "./tslib.es6-ujVQHAQ4.js";
|
|
2
|
+
import { html as a, noChange as P, LitElement as H } from "lit";
|
|
3
|
+
import { property as v } from "lit/decorators/property.js";
|
|
4
4
|
import { directive as W, PartType as q } from "lit/directive.js";
|
|
5
5
|
import { AsyncDirective as U } from "lit/async-directive.js";
|
|
6
6
|
import { repeat as G } from "lit/directives/repeat.js";
|
|
7
|
-
import { $ as D } from "./litElement.mixin-
|
|
8
|
-
import { property as _, customElement as M, state as
|
|
9
|
-
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor,
|
|
7
|
+
import { $ as D } from "./litElement.mixin-C6PzcPXd.js";
|
|
8
|
+
import { property as _, customElement as M, state as x } from "lit/decorators.js";
|
|
9
|
+
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor, w = (s, t, e, i) => {
|
|
10
10
|
for (var r, l = i > 1 ? void 0 : i ? X(t, e) : t, o = s.length - 1; o >= 0; o--) (r = s[o]) && (l = (i ? r(t, e, l) : r(l)) || l);
|
|
11
11
|
return i && l && J(t, e, l), l;
|
|
12
12
|
};
|
|
13
|
-
let
|
|
13
|
+
let b = class extends D() {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments), this.columns = [], this.cols = this.columns.map(() => "1fr").join(" ");
|
|
16
16
|
}
|
|
17
17
|
renderCell(s) {
|
|
18
|
-
if (s.render) return
|
|
18
|
+
if (s.render) return a`
|
|
19
19
|
<div class="overflow-hidden text-ellipsis">
|
|
20
20
|
<schmancy-typography align="${s.align || "left"}" maxLines="2" weight="${s.weight || "normal"}">
|
|
21
21
|
${s.render(this.item)}
|
|
@@ -23,7 +23,7 @@ let v = class extends D() {
|
|
|
23
23
|
</div>
|
|
24
24
|
`;
|
|
25
25
|
const t = s.key ? this.item[s.key] : "";
|
|
26
|
-
return
|
|
26
|
+
return a`
|
|
27
27
|
<div class="overflow-hidden text-ellipsis">
|
|
28
28
|
<schmancy-typography align="${s.align || "left"}" maxLines="2" weight="${s.weight || "normal"}">
|
|
29
29
|
${t}
|
|
@@ -32,7 +32,7 @@ let v = class extends D() {
|
|
|
32
32
|
`;
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return
|
|
35
|
+
return a`
|
|
36
36
|
<schmancy-list-item class="w-full">
|
|
37
37
|
<schmancy-grid .cols=${this.cols} align="center" gap="md">
|
|
38
38
|
${this.columns.map((s) => this.renderCell(s))}
|
|
@@ -41,25 +41,25 @@ let v = class extends D() {
|
|
|
41
41
|
`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
|
|
45
|
-
class S extends Event {
|
|
46
|
-
constructor(t) {
|
|
47
|
-
super(S.eventName, { bubbles: !1 }), this.first = t.first, this.last = t.last;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
S.eventName = "rangeChanged";
|
|
44
|
+
w([_({ type: Array, attribute: !1 })], b.prototype, "columns", 2), w([_({ type: Object, attribute: !1 })], b.prototype, "item", 2), w([_({ type: String })], b.prototype, "cols", 2), b = w([M("schmancy-table-row")], b);
|
|
51
45
|
class E extends Event {
|
|
52
46
|
constructor(t) {
|
|
53
47
|
super(E.eventName, { bubbles: !1 }), this.first = t.first, this.last = t.last;
|
|
54
48
|
}
|
|
55
49
|
}
|
|
56
|
-
E.eventName = "
|
|
50
|
+
E.eventName = "rangeChanged";
|
|
57
51
|
class L extends Event {
|
|
52
|
+
constructor(t) {
|
|
53
|
+
super(L.eventName, { bubbles: !1 }), this.first = t.first, this.last = t.last;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
L.eventName = "visibilityChanged";
|
|
57
|
+
class z extends Event {
|
|
58
58
|
constructor() {
|
|
59
|
-
super(
|
|
59
|
+
super(z.eventName, { bubbles: !1 });
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
z.eventName = "unpinned";
|
|
63
63
|
class Y {
|
|
64
64
|
constructor(t) {
|
|
65
65
|
this._element = null;
|
|
@@ -153,7 +153,7 @@ class K extends Y {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
let k = typeof window < "u" ? window.ResizeObserver : void 0;
|
|
156
|
-
const
|
|
156
|
+
const T = Symbol("virtualizerRef"), C = "virtualizer-sizer";
|
|
157
157
|
let O;
|
|
158
158
|
class Q {
|
|
159
159
|
constructor(t) {
|
|
@@ -174,7 +174,7 @@ class Q {
|
|
|
174
174
|
}
|
|
175
175
|
_initHostElement(t) {
|
|
176
176
|
const e = this._hostElement = t.hostElement;
|
|
177
|
-
this._applyVirtualizerStyles(), e[
|
|
177
|
+
this._applyVirtualizerStyles(), e[T] = this;
|
|
178
178
|
}
|
|
179
179
|
connected() {
|
|
180
180
|
this._initObservers();
|
|
@@ -182,10 +182,10 @@ class Q {
|
|
|
182
182
|
this._clippingAncestors = function(e, i = !1) {
|
|
183
183
|
let r = !1;
|
|
184
184
|
return function(l, o = !1) {
|
|
185
|
-
const
|
|
185
|
+
const c = [];
|
|
186
186
|
let h = o ? l : V(l);
|
|
187
|
-
for (; h !== null; )
|
|
188
|
-
return
|
|
187
|
+
for (; h !== null; ) c.push(h), h = V(h);
|
|
188
|
+
return c;
|
|
189
189
|
}(e, i).filter((l) => {
|
|
190
190
|
if (r) return !1;
|
|
191
191
|
const o = getComputedStyle(l);
|
|
@@ -209,8 +209,8 @@ class Q {
|
|
|
209
209
|
_getSizer() {
|
|
210
210
|
const t = this._hostElement;
|
|
211
211
|
if (!this._sizer) {
|
|
212
|
-
let e = t.querySelector(`[${
|
|
213
|
-
e || (e = document.createElement("div"), e.setAttribute(
|
|
212
|
+
let e = t.querySelector(`[${C}]`);
|
|
213
|
+
e || (e = document.createElement("div"), e.setAttribute(C, ""), t.appendChild(e)), Object.assign(e.style, { position: "absolute", margin: "-2px 0 0 0", padding: 0, visibility: "hidden", fontSize: "2px" }), e.textContent = " ", e.setAttribute(C, ""), this._sizer = e;
|
|
214
214
|
}
|
|
215
215
|
return this._sizer;
|
|
216
216
|
}
|
|
@@ -254,7 +254,7 @@ class Q {
|
|
|
254
254
|
const { width: e, height: i } = t.getBoundingClientRect();
|
|
255
255
|
return Object.assign({ width: e, height: i }, function(r) {
|
|
256
256
|
const l = window.getComputedStyle(r);
|
|
257
|
-
return { marginTop:
|
|
257
|
+
return { marginTop: S(l.marginTop), marginRight: S(l.marginRight), marginBottom: S(l.marginBottom), marginLeft: S(l.marginLeft) };
|
|
258
258
|
}(t));
|
|
259
259
|
}
|
|
260
260
|
async _schedule(t) {
|
|
@@ -286,25 +286,25 @@ class Q {
|
|
|
286
286
|
t.type === "scroll" && (t.currentTarget === window || this._clippingAncestors.includes(t.currentTarget)) && this._handleScrollEvent();
|
|
287
287
|
}
|
|
288
288
|
_handleLayoutMessage(t) {
|
|
289
|
-
t.type === "stateChanged" ? this._updateDOM(t) : t.type === "visibilityChanged" ? (this._firstVisible = t.firstVisible, this._lastVisible = t.lastVisible, this._notifyVisibility()) : t.type === "unpinned" && this._hostElement.dispatchEvent(new
|
|
289
|
+
t.type === "stateChanged" ? this._updateDOM(t) : t.type === "visibilityChanged" ? (this._firstVisible = t.firstVisible, this._lastVisible = t.lastVisible, this._notifyVisibility()) : t.type === "unpinned" && this._hostElement.dispatchEvent(new z());
|
|
290
290
|
}
|
|
291
291
|
get _children() {
|
|
292
292
|
const t = [];
|
|
293
293
|
let e = this._hostElement.firstElementChild;
|
|
294
|
-
for (; e; ) e.hasAttribute(
|
|
294
|
+
for (; e; ) e.hasAttribute(C) || t.push(e), e = e.nextElementSibling;
|
|
295
295
|
return t;
|
|
296
296
|
}
|
|
297
297
|
_updateView() {
|
|
298
298
|
var r;
|
|
299
299
|
const t = this._hostElement, e = (r = this._scrollerController) == null ? void 0 : r.element, i = this._layout;
|
|
300
300
|
if (t && e && i) {
|
|
301
|
-
let l, o,
|
|
301
|
+
let l, o, c, h;
|
|
302
302
|
const n = t.getBoundingClientRect();
|
|
303
|
-
l = 0, o = 0,
|
|
303
|
+
l = 0, o = 0, c = window.innerHeight, h = window.innerWidth;
|
|
304
304
|
const y = this._clippingAncestors.map((m) => m.getBoundingClientRect());
|
|
305
305
|
y.unshift(n);
|
|
306
|
-
for (const m of y) l = Math.max(l, m.top), o = Math.max(o, m.left),
|
|
307
|
-
const
|
|
306
|
+
for (const m of y) l = Math.max(l, m.top), o = Math.max(o, m.left), c = Math.min(c, m.bottom), h = Math.min(h, m.right);
|
|
307
|
+
const g = e.getBoundingClientRect(), $ = { left: n.left - g.left, top: n.top - g.top }, F = { width: e.scrollWidth, height: e.scrollHeight }, N = l - n.top + t.scrollTop, A = o - n.left + t.scrollLeft, B = Math.max(0, c - l), j = Math.max(0, h - o);
|
|
308
308
|
i.viewportSize = { width: j, height: B }, i.viewportScroll = { top: N, left: A }, i.totalScrollSize = F, i.offsetWithinScroller = $;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -317,9 +317,9 @@ class Q {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
_positionChildren(t) {
|
|
320
|
-
t && t.forEach(({ top: e, left: i, width: r, height: l, xOffset: o, yOffset:
|
|
320
|
+
t && t.forEach(({ top: e, left: i, width: r, height: l, xOffset: o, yOffset: c }, h) => {
|
|
321
321
|
const n = this._children[h - this._first];
|
|
322
|
-
n && (n.style.position = "absolute", n.style.boxSizing = "border-box", n.style.transform = `translate(${i}px, ${e}px)`, r !== void 0 && (n.style.width = r + "px"), l !== void 0 && (n.style.height = l + "px"), n.style.left = o === void 0 ? null : o + "px", n.style.top =
|
|
322
|
+
n && (n.style.position = "absolute", n.style.boxSizing = "border-box", n.style.transform = `translate(${i}px, ${e}px)`, r !== void 0 && (n.style.width = r + "px"), l !== void 0 && (n.style.height = l + "px"), n.style.left = o === void 0 ? null : o + "px", n.style.top = c === void 0 ? null : c + "px");
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
async _adjustRange(t) {
|
|
@@ -348,10 +348,10 @@ class Q {
|
|
|
348
348
|
e && (t != null && t.has(e)) && this._updateScrollIntoViewCoordinates(this._layout.getScrollIntoViewCoordinates(this._scrollIntoViewTarget));
|
|
349
349
|
}
|
|
350
350
|
_notifyRange() {
|
|
351
|
-
this._hostElement.dispatchEvent(new
|
|
351
|
+
this._hostElement.dispatchEvent(new E({ first: this._first, last: this._last }));
|
|
352
352
|
}
|
|
353
353
|
_notifyVisibility() {
|
|
354
|
-
this._hostElement.dispatchEvent(new
|
|
354
|
+
this._hostElement.dispatchEvent(new L({ first: this._firstVisible, last: this._lastVisible }));
|
|
355
355
|
}
|
|
356
356
|
get layoutComplete() {
|
|
357
357
|
return this._layoutCompletePromise || (this._layoutCompletePromise = new Promise((t, e) => {
|
|
@@ -384,7 +384,7 @@ class Q {
|
|
|
384
384
|
this._scheduleLayoutComplete(), this._itemsChanged = !1, this._rangeChanged = !1;
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function S(s) {
|
|
388
388
|
const t = s ? parseFloat(s) : NaN;
|
|
389
389
|
return Number.isNaN(t) ? 0 : t;
|
|
390
390
|
}
|
|
@@ -394,7 +394,7 @@ function V(s) {
|
|
|
394
394
|
const t = s.parentNode;
|
|
395
395
|
return t && t.nodeType === Node.DOCUMENT_FRAGMENT_NODE && t.host || null;
|
|
396
396
|
}
|
|
397
|
-
const R = (s) => s, I = (s, t) =>
|
|
397
|
+
const R = (s) => s, I = (s, t) => a`${t}: ${JSON.stringify(s, null, 2)}`, Z = W(class extends U {
|
|
398
398
|
constructor(s) {
|
|
399
399
|
if (super(s), this._virtualizer = null, this._first = 0, this._last = -1, this._renderItem = (t, e) => I(t, e + this._first), this._keyFunction = (t, e) => R(t, this._first), this._items = [], s.type !== q.CHILD) throw new Error("The virtualize directive can only be used in child expressions");
|
|
400
400
|
}
|
|
@@ -449,22 +449,22 @@ class p extends H {
|
|
|
449
449
|
}
|
|
450
450
|
render() {
|
|
451
451
|
const { items: t, renderItem: e, keyFunction: i, layout: r, scroller: l } = this;
|
|
452
|
-
return
|
|
452
|
+
return a`${Z({ items: t, renderItem: e, keyFunction: i, layout: r, scroller: l })}`;
|
|
453
453
|
}
|
|
454
454
|
element(t) {
|
|
455
455
|
var e;
|
|
456
|
-
return (e = this[
|
|
456
|
+
return (e = this[T]) == null ? void 0 : e.element(t);
|
|
457
457
|
}
|
|
458
458
|
get layoutComplete() {
|
|
459
459
|
var t;
|
|
460
|
-
return (t = this[
|
|
460
|
+
return (t = this[T]) == null ? void 0 : t.layoutComplete;
|
|
461
461
|
}
|
|
462
462
|
scrollToIndex(t, e = "start") {
|
|
463
463
|
var i;
|
|
464
464
|
(i = this.element(t)) == null || i.scrollIntoView({ block: e });
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
|
|
467
|
+
f([v({ attribute: !1 })], p.prototype, "items", void 0), f([v()], p.prototype, "renderItem", void 0), f([v()], p.prototype, "keyFunction", void 0), f([v({ attribute: !1 })], p.prototype, "layout", void 0), f([v({ reflect: !0, type: Boolean })], p.prototype, "scroller", void 0), customElements.define("lit-virtualizer", p);
|
|
468
468
|
var tt = Object.defineProperty, et = Object.getOwnPropertyDescriptor, d = (s, t, e, i) => {
|
|
469
469
|
for (var r, l = i > 1 ? void 0 : i ? et(t, e) : t, o = s.length - 1; o >= 0; o--) (r = s[o]) && (l = (i ? r(t, e, l) : r(l)) || l);
|
|
470
470
|
return i && l && tt(t, e, l), l;
|
|
@@ -481,20 +481,24 @@ let u = class extends D() {
|
|
|
481
481
|
}
|
|
482
482
|
processData() {
|
|
483
483
|
let s = [...this.data];
|
|
484
|
-
this.sortable && this.sortColumn && this.sortDirection
|
|
485
|
-
const
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
const
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
484
|
+
if (this.sortable && this.sortColumn && this.sortDirection) {
|
|
485
|
+
const t = this.columns.find((e) => e.key === this.sortColumn);
|
|
486
|
+
s.sort((e, i) => {
|
|
487
|
+
let r, l;
|
|
488
|
+
if (t && t.value ? (r = t.value(e), l = t.value(i)) : (r = e[this.sortColumn], l = i[this.sortColumn]), r == null) return this.sortDirection === "asc" ? 1 : -1;
|
|
489
|
+
if (l == null) return this.sortDirection === "asc" ? -1 : 1;
|
|
490
|
+
if (typeof r == "number" && typeof l == "number") return this.sortDirection === "asc" ? r - l : l - r;
|
|
491
|
+
const o = typeof r == "string" && !isNaN(Number(r)), c = typeof l == "string" && !isNaN(Number(l));
|
|
492
|
+
if (o && c) {
|
|
493
|
+
const y = parseFloat(r), g = parseFloat(l);
|
|
494
|
+
return this.sortDirection === "asc" ? y - g : g - y;
|
|
495
|
+
}
|
|
496
|
+
if (this.isDate(r) && this.isDate(l)) return this.sortDirection === "asc" ? r.getTime() - l.getTime() : l.getTime() - r.getTime();
|
|
497
|
+
const h = String(r), n = String(l);
|
|
498
|
+
return this.sortDirection === "asc" ? h.localeCompare(n) : n.localeCompare(h);
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
this.filteredData = s;
|
|
498
502
|
}
|
|
499
503
|
toggleSort(s) {
|
|
500
504
|
if (!s.key || s.sortable === !1) return;
|
|
@@ -502,20 +506,20 @@ let u = class extends D() {
|
|
|
502
506
|
t === this.sortColumn ? this.sortDirection === "asc" ? this.sortDirection = "desc" : this.sortDirection === "desc" ? this.sortDirection = null : this.sortDirection = "asc" : (this.sortColumn = t, this.sortDirection = "asc"), this.dispatchEvent(new CustomEvent("sort-change", { detail: { column: this.sortColumn, direction: this.sortDirection }, bubbles: !0, composed: !0 }));
|
|
503
507
|
}
|
|
504
508
|
renderSortIndicator(s) {
|
|
505
|
-
return this.sortable && s.sortable !== !1 && s.key && s.key === this.sortColumn ?
|
|
509
|
+
return this.sortable && s.sortable !== !1 && s.key && s.key === this.sortColumn ? a`
|
|
506
510
|
<span class="ml-1">
|
|
507
|
-
${this.sortDirection === "asc" ?
|
|
511
|
+
${this.sortDirection === "asc" ? a`<schmancy-icon size="16px">arrow_upward</schmancy-icon>` : this.sortDirection === "desc" ? a`<schmancy-icon size="16px">arrow_downward</schmancy-icon>` : null}
|
|
508
512
|
</span>
|
|
509
513
|
` : null;
|
|
510
514
|
}
|
|
511
515
|
render() {
|
|
512
516
|
const s = (t) => ({ "flex items-center": !0, "cursor-pointer gap-1": this.sortable && t.sortable !== !1 && t.key });
|
|
513
|
-
return
|
|
517
|
+
return a`
|
|
514
518
|
<schmancy-surface fill="all" type="container" rounded="all" elevation="2">
|
|
515
519
|
<schmancy-grid class="h-full w-full" cols="1fr" rows="auto 1fr">
|
|
516
520
|
<schmancy-surface rounded="top" elevation="1" type="containerHighest" class="sticky top-0 z-10">
|
|
517
521
|
<schmancy-grid align="center" class="px-4 py-3" .cols=${this.cols} gap="md" rows="1fr">
|
|
518
|
-
${this.columns.map((t) =>
|
|
522
|
+
${this.columns.map((t) => a`
|
|
519
523
|
<div
|
|
520
524
|
class=${this.classMap(s(t))}
|
|
521
525
|
@click=${() => this.sortable && t.sortable !== !1 ? this.toggleSort(t) : null}
|
|
@@ -529,12 +533,12 @@ let u = class extends D() {
|
|
|
529
533
|
</schmancy-grid>
|
|
530
534
|
</schmancy-surface>
|
|
531
535
|
|
|
532
|
-
${this.filteredData.length > 0 ?
|
|
536
|
+
${this.filteredData.length > 0 ? a`
|
|
533
537
|
<lit-virtualizer
|
|
534
538
|
scroller
|
|
535
539
|
class="w-full h-full relative overflow-auto"
|
|
536
540
|
.items=${this.filteredData}
|
|
537
|
-
.renderItem=${(t, e) =>
|
|
541
|
+
.renderItem=${(t, e) => a`
|
|
538
542
|
<schmancy-table-row
|
|
539
543
|
class="w-full border-b border-solid border-outlineVariant"
|
|
540
544
|
.columns=${this.columns}
|
|
@@ -547,7 +551,7 @@ let u = class extends D() {
|
|
|
547
551
|
></schmancy-table-row>
|
|
548
552
|
`}
|
|
549
553
|
></lit-virtualizer>
|
|
550
|
-
` :
|
|
554
|
+
` : a`
|
|
551
555
|
<div class="flex items-center justify-center w-full h-full p-8 text-center">
|
|
552
556
|
<schmancy-typography type="body" token="lg"> No data available </schmancy-typography>
|
|
553
557
|
</div>
|
|
@@ -557,9 +561,9 @@ let u = class extends D() {
|
|
|
557
561
|
`;
|
|
558
562
|
}
|
|
559
563
|
};
|
|
560
|
-
d([_({ type: Array, attribute: !1 })], u.prototype, "columns", 2), d([_({ type: Array, attribute: !1 })], u.prototype, "data", 2), d([_({ type: String })], u.prototype, "keyField", 2), d([_({ type: String })], u.prototype, "cols", 2), d([_({ type: Boolean })], u.prototype, "sortable", 2), d([
|
|
564
|
+
d([_({ type: Array, attribute: !1 })], u.prototype, "columns", 2), d([_({ type: Array, attribute: !1 })], u.prototype, "data", 2), d([_({ type: String })], u.prototype, "keyField", 2), d([_({ type: String })], u.prototype, "cols", 2), d([_({ type: Boolean })], u.prototype, "sortable", 2), d([x()], u.prototype, "sortColumn", 2), d([x()], u.prototype, "sortDirection", 2), d([x()], u.prototype, "filteredData", 2), u = d([M("schmancy-table")], u);
|
|
561
565
|
export {
|
|
562
|
-
|
|
566
|
+
b as S,
|
|
563
567
|
u as a
|
|
564
568
|
};
|
|
565
|
-
//# sourceMappingURL=table-
|
|
569
|
+
//# sourceMappingURL=table-CxazXBjI.js.map
|