@mhmo91/schmancy 0.2.176 → 0.2.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{animated-text-BrDkqFTI.cjs → animated-text-CkOuJUK9.cjs} +2 -2
- package/dist/{animated-text-BrDkqFTI.cjs.map → animated-text-CkOuJUK9.cjs.map} +1 -1
- package/dist/{animated-text-s9T0FPzu.js → animated-text-Xt-2aEHG.js} +3 -3
- package/dist/{animated-text-s9T0FPzu.js.map → animated-text-Xt-2aEHG.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-DGr6ZdvQ.js → area.component-CIz5wQ1b.js} +3 -3
- package/dist/{area.component-DGr6ZdvQ.js.map → area.component-CIz5wQ1b.js.map} +1 -1
- package/dist/{area.component-RZA2bq-D.cjs → area.component-DJpavQee.cjs} +2 -2
- package/dist/{area.component-RZA2bq-D.cjs.map → area.component-DJpavQee.cjs.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-1gZeSbnf.js → autocomplete-B1QsJ_x-.js} +3 -3
- package/dist/{autocomplete-1gZeSbnf.js.map → autocomplete-B1QsJ_x-.js.map} +1 -1
- package/dist/{autocomplete-CuuHN9km.cjs → autocomplete-BeC5nqSA.cjs} +2 -2
- package/dist/{autocomplete-CuuHN9km.cjs.map → autocomplete-BeC5nqSA.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-D0VOHKSQ.cjs → avatar-BF6652TX.cjs} +2 -2
- package/dist/{avatar-D0VOHKSQ.cjs.map → avatar-BF6652TX.cjs.map} +1 -1
- package/dist/{avatar-CrxW01Pl.js → avatar-nGtrl569.js} +40 -40
- package/dist/{avatar-CrxW01Pl.js.map → avatar-nGtrl569.js.map} +1 -1
- 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-DFYmSAah.js → checkbox-BDBWkxtE.js} +2 -2
- package/dist/{checkbox-DFYmSAah.js.map → checkbox-BDBWkxtE.js.map} +1 -1
- package/dist/{checkbox-DQd9Azq2.cjs → checkbox-D2rdBv1d.cjs} +2 -2
- package/dist/{checkbox-DQd9Azq2.cjs.map → checkbox-D2rdBv1d.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-3gE4mmTU.js → chips-CEEnmVL5.js} +3 -3
- package/dist/{chips-3gE4mmTU.js.map → chips-CEEnmVL5.js.map} +1 -1
- package/dist/{chips-CkZAEsJp.cjs → chips-SeAzMV_K.cjs} +2 -2
- package/dist/{chips-CkZAEsJp.cjs.map → chips-SeAzMV_K.cjs.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- 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-BZlbUc_n.cjs → date-range-B6vemmh0.cjs} +2 -2
- package/dist/{date-range-BZlbUc_n.cjs.map → date-range-B6vemmh0.cjs.map} +1 -1
- package/dist/{date-range-CLgoit8H.js → date-range-CYUXWjf7.js} +3 -3
- package/dist/{date-range-CLgoit8H.js.map → date-range-CYUXWjf7.js.map} +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-C0xLB5YE.cjs → delay-CAcU-vht.cjs} +2 -2
- package/dist/{delay-C0xLB5YE.cjs.map → delay-CAcU-vht.cjs.map} +1 -1
- package/dist/{delay-BS7AcXYg.js → delay-D7tikEF6.js} +2 -2
- package/dist/{delay-BS7AcXYg.js.map → delay-D7tikEF6.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-service-B9Pp1DY4.js → dialog-service-Dp9n-iYw.js} +3 -3
- package/dist/{dialog-service-B9Pp1DY4.js.map → dialog-service-Dp9n-iYw.js.map} +1 -1
- package/dist/{dialog-service-BiNwFtwm.cjs → dialog-service-O39dDHTt.cjs} +2 -2
- package/dist/{dialog-service-BiNwFtwm.cjs.map → dialog-service-O39dDHTt.cjs.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-B5CC311v.js → divider-6PQ2zS2m.js} +3 -3
- package/dist/{divider-B5CC311v.js.map → divider-6PQ2zS2m.js.map} +1 -1
- package/dist/{divider-xPhgMgau.cjs → divider-fs54fGfB.cjs} +2 -2
- package/dist/{divider-xPhgMgau.cjs.map → divider-fs54fGfB.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-Cnk_HWWq.js → dropdown-content-Dxra1QoF.js} +3 -3
- package/dist/{dropdown-content-Cnk_HWWq.js.map → dropdown-content-Dxra1QoF.js.map} +1 -1
- package/dist/{dropdown-content-Bwjmh6uS.cjs → dropdown-content-KHVgwXu2.cjs} +2 -2
- package/dist/{dropdown-content-Bwjmh6uS.cjs.map → dropdown-content-KHVgwXu2.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-COQaEZmU.cjs → flex-B_52M97W.cjs} +2 -2
- package/dist/{flex-COQaEZmU.cjs.map → flex-B_52M97W.cjs.map} +1 -1
- package/dist/{flex-C9UL4tmR.js → flex-Ba1VHord.js} +2 -2
- package/dist/{flex-C9UL4tmR.js.map → flex-Ba1VHord.js.map} +1 -1
- package/dist/{form-YcKpLew8.js → form-BT700HyQ.js} +2 -2
- package/dist/{form-YcKpLew8.js.map → form-BT700HyQ.js.map} +1 -1
- package/dist/{form-BG9KH92a.cjs → form-DJ9KHgsz.cjs} +2 -2
- package/dist/{form-BG9KH92a.cjs.map → form-DJ9KHgsz.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-DyZGNskE.js → icon-0HBHJdBz.js} +3 -3
- package/dist/{icon-DyZGNskE.js.map → icon-0HBHJdBz.js.map} +1 -1
- package/dist/{icon-CIY_VPoc.cjs → icon-ByVRi1IP.cjs} +2 -2
- package/dist/{icon-CIY_VPoc.cjs.map → icon-ByVRi1IP.cjs.map} +1 -1
- package/dist/{icon-button-D1627KoB.cjs → icon-button-Bt-ZY_dS.cjs} +2 -2
- package/dist/{icon-button-D1627KoB.cjs.map → icon-button-Bt-ZY_dS.cjs.map} +1 -1
- package/dist/{icon-button-BMbFb3-e.js → icon-button-YUz9lEvX.js} +3 -3
- package/dist/{icon-button-BMbFb3-e.js.map → icon-button-YUz9lEvX.js.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 +137 -136
- package/dist/{input-VTxTwAen.cjs → input-5LPv7UUL.cjs} +2 -2
- package/dist/{input-VTxTwAen.cjs.map → input-5LPv7UUL.cjs.map} +1 -1
- package/dist/{input-BQF_Yvo3.js → input-B_PdFYbP.js} +2 -2
- package/dist/{input-BQF_Yvo3.js.map → input-B_PdFYbP.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-Df47IR-i.cjs → list-C-r1rTUh.cjs} +2 -2
- package/dist/{list-Df47IR-i.cjs.map → list-C-r1rTUh.cjs.map} +1 -1
- package/dist/{list-m-K1zYJm.js → list-DLxupHod.js} +2 -2
- package/dist/{list-m-K1zYJm.js.map → list-DLxupHod.js.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-DJC1EaoO.js → litElement.mixin-COog0CXV.js} +2 -2
- package/dist/{litElement.mixin-DJC1EaoO.js.map → litElement.mixin-COog0CXV.js.map} +1 -1
- package/dist/{litElement.mixin-DcVBwo9t.cjs → litElement.mixin-DLa9lBCo.cjs} +2 -2
- package/dist/{litElement.mixin-DcVBwo9t.cjs.map → litElement.mixin-DLa9lBCo.cjs.map} +1 -1
- package/dist/{menu-CQA4Qp2Y.js → menu-DPHp4gMi.js} +3 -3
- package/dist/{menu-CQA4Qp2Y.js.map → menu-DPHp4gMi.js.map} +1 -1
- package/dist/{menu-BmdOK-Gh.cjs → menu-EAL2iLY1.cjs} +2 -2
- package/dist/{menu-BmdOK-Gh.cjs.map → menu-EAL2iLY1.cjs.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-f8ZFvvbw.js → notification-service-MrCfqWvW.js} +3 -3
- package/dist/{notification-service-f8ZFvvbw.js.map → notification-service-MrCfqWvW.js.map} +1 -1
- package/dist/{notification-service-DOGtyP8q.cjs → notification-service-PbxB-uRp.cjs} +2 -2
- package/dist/{notification-service-DOGtyP8q.cjs.map → notification-service-PbxB-uRp.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-BR_cajUP.cjs → option-BHrf1jEo.cjs} +2 -2
- package/dist/{option-BR_cajUP.cjs.map → option-BHrf1jEo.cjs.map} +1 -1
- package/dist/{option-Cpedd_4h.js → option-DNdHkboR.js} +2 -2
- package/dist/{option-Cpedd_4h.js.map → option-DNdHkboR.js.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-CdrMcc5c.cjs → payment-card-form-BZ8owKyu.cjs} +2 -2
- package/dist/{payment-card-form-CdrMcc5c.cjs.map → payment-card-form-BZ8owKyu.cjs.map} +1 -1
- package/dist/{payment-card-form-68K9Fcg4.js → payment-card-form-BidM0Uhz.js} +3 -3
- package/dist/{payment-card-form-68K9Fcg4.js.map → payment-card-form-BidM0Uhz.js.map} +1 -1
- package/dist/{radio-group-FInGxSDU.cjs → radio-group-BeCwdi7V.cjs} +2 -2
- package/dist/{radio-group-FInGxSDU.cjs.map → radio-group-BeCwdi7V.cjs.map} +1 -1
- package/dist/{radio-group-Ci86SQ4t.js → radio-group-ay0sh7ZE.js} +2 -2
- package/dist/{radio-group-Ci86SQ4t.js.map → radio-group-ay0sh7ZE.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rxjs-utils.js +4 -4
- package/dist/{schmancy-steps-container-fi5g1HML.js → schmancy-steps-container-C7zsS6C6.js} +2 -2
- package/dist/{schmancy-steps-container-fi5g1HML.js.map → schmancy-steps-container-C7zsS6C6.js.map} +1 -1
- package/dist/{schmancy-steps-container-iHTmuKkc.cjs → schmancy-steps-container-b2ccybFR.cjs} +2 -2
- package/dist/{schmancy-steps-container-iHTmuKkc.cjs.map → schmancy-steps-container-b2ccybFR.cjs.map} +1 -1
- package/dist/{select-4Mzh9N-F.js → select-BXous56R.js} +3 -3
- package/dist/{select-4Mzh9N-F.js.map → select-BXous56R.js.map} +1 -1
- package/dist/{select-DfzEP7n4.cjs → select-C6GpEJgA.cjs} +2 -2
- package/dist/{select-DfzEP7n4.cjs.map → select-C6GpEJgA.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-GOrA8B2u.js → sheet-DOkKWfz2.js} +3 -3
- package/dist/{sheet-GOrA8B2u.js.map → sheet-DOkKWfz2.js.map} +1 -1
- package/dist/{sheet-DfHOLchM.cjs → sheet-DPkzSrBn.cjs} +2 -2
- package/dist/{sheet-DfHOLchM.cjs.map → sheet-DPkzSrBn.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-YyZnXMOX.cjs → slider-B0lO6KRr.cjs} +2 -2
- package/dist/{slider-YyZnXMOX.cjs.map → slider-B0lO6KRr.cjs.map} +1 -1
- package/dist/{slider--xxBzPJ6.js → slider-DOEXErC5.js} +3 -3
- package/dist/{slider--xxBzPJ6.js.map → slider-DOEXErC5.js.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-Bd1aWVNB.js → spinner-CQOXrtow.js} +3 -3
- package/dist/{spinner-Bd1aWVNB.js.map → spinner-CQOXrtow.js.map} +1 -1
- package/dist/{spinner-D35seXuq.cjs → spinner-DDvtIu98.cjs} +2 -2
- package/dist/{spinner-D35seXuq.cjs.map → spinner-DDvtIu98.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-u3lOyjll.cjs → surface-Dl4S5qYM.cjs} +2 -2
- package/dist/{surface-u3lOyjll.cjs.map → surface-Dl4S5qYM.cjs.map} +1 -1
- package/dist/{surface-CkiumzDj.js → surface-F1HQR3OS.js} +2 -2
- package/dist/{surface-CkiumzDj.js.map → surface-F1HQR3OS.js.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-DPXzmJkJ.js → table-CGsVUEWl.js} +73 -66
- package/dist/{table-DPXzmJkJ.js.map → table-CGsVUEWl.js.map} +1 -1
- package/dist/{table-Cfe1Zloe.cjs → table-nUo4-lAM.cjs} +12 -12
- package/dist/{table-Cfe1Zloe.cjs.map → table-nUo4-lAM.cjs.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-group-MGpxSLVK.cjs → tabs-group-C2RLxc1l.cjs} +2 -2
- package/dist/{tabs-group-MGpxSLVK.cjs.map → tabs-group-C2RLxc1l.cjs.map} +1 -1
- package/dist/{tabs-group-CBXEoVBr.js → tabs-group-FdbxH4M2.js} +2 -2
- package/dist/{tabs-group-CBXEoVBr.js.map → tabs-group-FdbxH4M2.js.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-C1TWeByU.cjs +2 -0
- package/dist/{tailwind.mixin-B9QsShMd.cjs.map → tailwind.mixin-C1TWeByU.cjs.map} +1 -1
- package/dist/tailwind.mixin-qCpNU5bd.js +43 -0
- package/dist/{tailwind.mixin-DxW0KQ-d.js.map → tailwind.mixin-qCpNU5bd.js.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-BkXQqdc4.js → textarea-4PL9LQT_.js} +2 -2
- package/dist/{textarea-BkXQqdc4.js.map → textarea-4PL9LQT_.js.map} +1 -1
- package/dist/{textarea-CylQCLpW.cjs → textarea-Cjez0oFA.cjs} +2 -2
- package/dist/{textarea-CylQCLpW.cjs.map → textarea-Cjez0oFA.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-BSpshrnu.cjs → theme-button-B0wpbNVl.cjs} +2 -2
- package/dist/{theme-button-BSpshrnu.cjs.map → theme-button-B0wpbNVl.cjs.map} +1 -1
- package/dist/{theme-button-BLSsCZni.js → theme-button-D19t0FIY.js} +2 -2
- package/dist/{theme-button-BLSsCZni.js.map → theme-button-D19t0FIY.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-B6OPvX11.js → theme.component-C7j176AP.js} +2 -2
- package/dist/{theme.component-B6OPvX11.js.map → theme.component-C7j176AP.js.map} +1 -1
- package/dist/{theme.component-Cbjb7vBh.cjs → theme.component-iEu6bM2h.cjs} +2 -2
- package/dist/{theme.component-Cbjb7vBh.cjs.map → theme.component-iEu6bM2h.cjs.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-B_UNEVCu.js → timezone-BwvYFc82.js} +3 -3
- package/dist/{timezone-B_UNEVCu.js.map → timezone-BwvYFc82.js.map} +1 -1
- package/dist/{timezone-BydmQhke.cjs → timezone-DRyTNStR.cjs} +2 -2
- package/dist/{timezone-BydmQhke.cjs.map → timezone-DRyTNStR.cjs.map} +1 -1
- package/dist/tooltip-BsjGf8jh.cjs +7 -0
- package/dist/tooltip-BsjGf8jh.cjs.map +1 -0
- package/dist/tooltip-hdpdVnSj.js +121 -0
- package/dist/tooltip-hdpdVnSj.js.map +1 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +3 -2
- package/dist/{tree-C68UrNiC.cjs → tree-DM5TVX_j.cjs} +2 -2
- package/dist/{tree-C68UrNiC.cjs.map → tree-DM5TVX_j.cjs.map} +1 -1
- package/dist/{tree-DSeadYt9.js → tree-V6zBBSFp.js} +2 -2
- package/dist/{tree-DSeadYt9.js.map → tree-V6zBBSFp.js.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-Ckxnim4-.js → typewriter-Bj9qdc_5.js} +4 -4
- package/dist/{typewriter-Ckxnim4-.js.map → typewriter-Bj9qdc_5.js.map} +1 -1
- package/dist/{typewriter-CFgNAfJm.cjs → typewriter-CYLG1mNR.cjs} +2 -2
- package/dist/{typewriter-CFgNAfJm.cjs.map → typewriter-CYLG1mNR.cjs.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-xqI7xXeK.js → typography-BRnX9hbT.js} +2 -2
- package/dist/{typography-xqI7xXeK.js.map → typography-BRnX9hbT.js.map} +1 -1
- package/dist/{typography-B7lbxH4O.cjs → typography-n-wJY4zw.cjs} +2 -2
- package/dist/{typography-B7lbxH4O.cjs.map → typography-n-wJY4zw.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/types/src/index.d.ts +2 -2
- package/types/src/table/table.d.ts +4 -0
- package/types/src/tooltip/index.d.ts +1 -0
- package/types/src/tooltip/tooltip.d.ts +18 -71
- package/types/src/tooltip/tooltip.directive.d.ts +27 -0
- package/dist/tailwind.mixin-B9QsShMd.cjs +0 -2
- package/dist/tailwind.mixin-DxW0KQ-d.js +0 -43
- package/dist/tooltip-3phi-zvc.js +0 -74
- package/dist/tooltip-3phi-zvc.js.map +0 -1
- package/dist/tooltip-Bs1R5e8R.cjs +0 -10
- package/dist/tooltip-Bs1R5e8R.cjs.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { html as
|
|
3
|
-
import { property as
|
|
1
|
+
import { _ as g } from "./tslib.es6-ujVQHAQ4.js";
|
|
2
|
+
import { html as c, noChange as P, LitElement as H } from "lit";
|
|
3
|
+
import { property as f } 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
|
|
8
|
-
import { property as _, customElement as
|
|
9
|
-
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor,
|
|
7
|
+
import { $ as D } from "./litElement.mixin-COog0CXV.js";
|
|
8
|
+
import { property as _, customElement as M, state as z } from "lit/decorators.js";
|
|
9
|
+
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor, b = (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 v = 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 c`
|
|
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 f = class extends M() {
|
|
|
23
23
|
</div>
|
|
24
24
|
`;
|
|
25
25
|
const t = s.key ? this.item[s.key] : "";
|
|
26
|
-
return
|
|
26
|
+
return c`
|
|
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 f = class extends M() {
|
|
|
32
32
|
`;
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return
|
|
35
|
+
return c`
|
|
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 f = class extends M() {
|
|
|
41
41
|
`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
|
|
45
|
-
class C extends Event {
|
|
46
|
-
constructor(t) {
|
|
47
|
-
super(C.eventName, { bubbles: !1 }), this.first = t.first, this.last = t.last;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
C.eventName = "rangeChanged";
|
|
44
|
+
b([_({ type: Array, attribute: !1 })], v.prototype, "columns", 2), b([_({ type: Object, attribute: !1 })], v.prototype, "item", 2), b([_({ type: String })], v.prototype, "cols", 2), v = b([M("schmancy-table-row")], v);
|
|
51
45
|
class S extends Event {
|
|
52
46
|
constructor(t) {
|
|
53
47
|
super(S.eventName, { bubbles: !1 }), this.first = t.first, this.last = t.last;
|
|
54
48
|
}
|
|
55
49
|
}
|
|
56
|
-
S.eventName = "
|
|
50
|
+
S.eventName = "rangeChanged";
|
|
57
51
|
class E extends Event {
|
|
52
|
+
constructor(t) {
|
|
53
|
+
super(E.eventName, { bubbles: !1 }), this.first = t.first, this.last = t.last;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
E.eventName = "visibilityChanged";
|
|
57
|
+
class L extends Event {
|
|
58
58
|
constructor() {
|
|
59
|
-
super(
|
|
59
|
+
super(L.eventName, { bubbles: !1 });
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
L.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 x = Symbol("virtualizerRef"), w = "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[x] = 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
|
|
186
|
-
let
|
|
187
|
-
for (;
|
|
188
|
-
return
|
|
185
|
+
const a = [];
|
|
186
|
+
let h = o ? l : V(l);
|
|
187
|
+
for (; h !== null; ) a.push(h), h = V(h);
|
|
188
|
+
return a;
|
|
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(`[${w}]`);
|
|
213
|
+
e || (e = document.createElement("div"), e.setAttribute(w, ""), t.appendChild(e)), Object.assign(e.style, { position: "absolute", margin: "-2px 0 0 0", padding: 0, visibility: "hidden", fontSize: "2px" }), e.textContent = " ", e.setAttribute(w, ""), 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: C(l.marginTop), marginRight: C(l.marginRight), marginBottom: C(l.marginBottom), marginLeft: C(l.marginLeft) };
|
|
258
258
|
}(t));
|
|
259
259
|
}
|
|
260
260
|
async _schedule(t) {
|
|
@@ -286,26 +286,26 @@ 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 L());
|
|
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(w) || 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, a, h;
|
|
302
302
|
const n = t.getBoundingClientRect();
|
|
303
|
-
l = 0, o = 0,
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
for (const m of
|
|
307
|
-
const T = e.getBoundingClientRect(), $ = { left: n.left - T.left, top: n.top - T.top },
|
|
308
|
-
i.viewportSize = { width:
|
|
303
|
+
l = 0, o = 0, a = window.innerHeight, h = window.innerWidth;
|
|
304
|
+
const y = this._clippingAncestors.map((m) => m.getBoundingClientRect());
|
|
305
|
+
y.unshift(n);
|
|
306
|
+
for (const m of y) l = Math.max(l, m.top), o = Math.max(o, m.left), a = Math.min(a, m.bottom), h = Math.min(h, m.right);
|
|
307
|
+
const T = e.getBoundingClientRect(), $ = { left: n.left - T.left, top: n.top - T.top }, F = { width: e.scrollWidth, height: e.scrollHeight }, N = l - n.top + t.scrollTop, A = o - n.left + t.scrollLeft, B = Math.max(0, a - l), j = Math.max(0, h - o);
|
|
308
|
+
i.viewportSize = { width: j, height: B }, i.viewportScroll = { top: N, left: A }, i.totalScrollSize = F, i.offsetWithinScroller = $;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
_sizeHostElement(t) {
|
|
@@ -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:
|
|
321
|
-
const n = this._children[
|
|
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 =
|
|
320
|
+
t && t.forEach(({ top: e, left: i, width: r, height: l, xOffset: o, yOffset: a }, h) => {
|
|
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 = a === void 0 ? null : a + "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 S({ first: this._first, last: this._last }));
|
|
352
352
|
}
|
|
353
353
|
_notifyVisibility() {
|
|
354
|
-
this._hostElement.dispatchEvent(new
|
|
354
|
+
this._hostElement.dispatchEvent(new E({ 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 C(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) => c`${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
|
}
|
|
@@ -407,7 +407,7 @@ const R = (s) => s, I = (s, t) => h`${t}: ${JSON.stringify(s, null, 2)}`, Z = W(
|
|
|
407
407
|
update(s, [t]) {
|
|
408
408
|
this._setFunctions(t);
|
|
409
409
|
const e = this._items !== t.items;
|
|
410
|
-
return this._items = t.items || [], this._virtualizer ? this._updateVirtualizerConfig(s, t) : this._initialize(s, t), e ?
|
|
410
|
+
return this._items = t.items || [], this._virtualizer ? this._updateVirtualizerConfig(s, t) : this._initialize(s, t), e ? P : this.render();
|
|
411
411
|
}
|
|
412
412
|
async _updateVirtualizerConfig(s, t) {
|
|
413
413
|
if (!await this._virtualizer.updateLayoutConfig(t.layout || {})) {
|
|
@@ -449,44 +449,51 @@ 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 c`${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[x]) == null ? void 0 : e.element(t);
|
|
457
457
|
}
|
|
458
458
|
get layoutComplete() {
|
|
459
459
|
var t;
|
|
460
|
-
return (t = this[
|
|
460
|
+
return (t = this[x]) == 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
|
+
g([f({ attribute: !1 })], p.prototype, "items", void 0), g([f()], p.prototype, "renderItem", void 0), g([f()], p.prototype, "keyFunction", void 0), g([f({ attribute: !1 })], p.prototype, "layout", void 0), g([f({ 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;
|
|
471
471
|
};
|
|
472
|
-
let u = class extends
|
|
472
|
+
let u = class extends D() {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(), this.columns = [], this.data = [], this.keyField = "id", this.cols = "1fr", this.sortable = !1, this.sortColumn = null, this.sortDirection = null, this.filteredData = [], this.filteredData = this.data;
|
|
475
475
|
}
|
|
476
476
|
willUpdate(s) {
|
|
477
477
|
(s.has("data") || s.has("sortColumn") || s.has("sortDirection")) && this.processData();
|
|
478
478
|
}
|
|
479
|
+
isDate(s) {
|
|
480
|
+
return s && typeof s == "object" && Object.prototype.toString.call(s) === "[object Date]";
|
|
481
|
+
}
|
|
479
482
|
processData() {
|
|
480
483
|
let s = [...this.data];
|
|
481
484
|
this.sortable && this.sortColumn && this.sortDirection && s.sort((t, e) => {
|
|
482
485
|
const i = t[this.sortColumn], r = e[this.sortColumn];
|
|
483
|
-
if (
|
|
486
|
+
if (i == null) return this.sortDirection === "asc" ? 1 : -1;
|
|
487
|
+
if (r == null) return this.sortDirection === "asc" ? -1 : 1;
|
|
484
488
|
if (typeof i == "number" && typeof r == "number") return this.sortDirection === "asc" ? i - r : r - i;
|
|
485
|
-
|
|
486
|
-
{
|
|
487
|
-
const
|
|
488
|
-
return this.sortDirection === "asc" ?
|
|
489
|
+
const l = typeof i == "string" && !isNaN(Number(i)), o = typeof r == "string" && !isNaN(Number(r));
|
|
490
|
+
if (l && o) {
|
|
491
|
+
const n = parseFloat(i), y = parseFloat(r);
|
|
492
|
+
return this.sortDirection === "asc" ? n - y : y - n;
|
|
489
493
|
}
|
|
494
|
+
if (this.isDate(i) && this.isDate(r)) return this.sortDirection === "asc" ? i.getTime() - r.getTime() : r.getTime() - i.getTime();
|
|
495
|
+
const a = String(i), h = String(r);
|
|
496
|
+
return this.sortDirection === "asc" ? a.localeCompare(h) : h.localeCompare(a);
|
|
490
497
|
}), this.filteredData = s;
|
|
491
498
|
}
|
|
492
499
|
toggleSort(s) {
|
|
@@ -495,20 +502,20 @@ let u = class extends M() {
|
|
|
495
502
|
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 }));
|
|
496
503
|
}
|
|
497
504
|
renderSortIndicator(s) {
|
|
498
|
-
return this.sortable && s.sortable !== !1 && s.key && s.key === this.sortColumn ?
|
|
505
|
+
return this.sortable && s.sortable !== !1 && s.key && s.key === this.sortColumn ? c`
|
|
499
506
|
<span class="ml-1">
|
|
500
|
-
${this.sortDirection === "asc" ?
|
|
507
|
+
${this.sortDirection === "asc" ? c`<schmancy-icon size="16px">arrow_upward</schmancy-icon>` : this.sortDirection === "desc" ? c`<schmancy-icon size="16px">arrow_downward</schmancy-icon>` : null}
|
|
501
508
|
</span>
|
|
502
509
|
` : null;
|
|
503
510
|
}
|
|
504
511
|
render() {
|
|
505
512
|
const s = (t) => ({ "flex items-center": !0, "cursor-pointer gap-1": this.sortable && t.sortable !== !1 && t.key });
|
|
506
|
-
return
|
|
513
|
+
return c`
|
|
507
514
|
<schmancy-surface fill="all" type="container" rounded="all" elevation="2">
|
|
508
515
|
<schmancy-grid class="h-full w-full" cols="1fr" rows="auto 1fr">
|
|
509
516
|
<schmancy-surface rounded="top" elevation="1" type="containerHighest" class="sticky top-0 z-10">
|
|
510
517
|
<schmancy-grid align="center" class="px-4 py-3" .cols=${this.cols} gap="md" rows="1fr">
|
|
511
|
-
${this.columns.map((t) =>
|
|
518
|
+
${this.columns.map((t) => c`
|
|
512
519
|
<div
|
|
513
520
|
class=${this.classMap(s(t))}
|
|
514
521
|
@click=${() => this.sortable && t.sortable !== !1 ? this.toggleSort(t) : null}
|
|
@@ -522,12 +529,12 @@ let u = class extends M() {
|
|
|
522
529
|
</schmancy-grid>
|
|
523
530
|
</schmancy-surface>
|
|
524
531
|
|
|
525
|
-
${this.filteredData.length > 0 ?
|
|
532
|
+
${this.filteredData.length > 0 ? c`
|
|
526
533
|
<lit-virtualizer
|
|
527
534
|
scroller
|
|
528
535
|
class="w-full h-full relative overflow-auto"
|
|
529
536
|
.items=${this.filteredData}
|
|
530
|
-
.renderItem=${(t, e) =>
|
|
537
|
+
.renderItem=${(t, e) => c`
|
|
531
538
|
<schmancy-table-row
|
|
532
539
|
class="w-full border-b border-solid border-outlineVariant"
|
|
533
540
|
.columns=${this.columns}
|
|
@@ -540,7 +547,7 @@ let u = class extends M() {
|
|
|
540
547
|
></schmancy-table-row>
|
|
541
548
|
`}
|
|
542
549
|
></lit-virtualizer>
|
|
543
|
-
` :
|
|
550
|
+
` : c`
|
|
544
551
|
<div class="flex items-center justify-center w-full h-full p-8 text-center">
|
|
545
552
|
<schmancy-typography type="body" token="lg"> No data available </schmancy-typography>
|
|
546
553
|
</div>
|
|
@@ -550,9 +557,9 @@ let u = class extends M() {
|
|
|
550
557
|
`;
|
|
551
558
|
}
|
|
552
559
|
};
|
|
553
|
-
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([
|
|
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([z()], u.prototype, "sortColumn", 2), d([z()], u.prototype, "sortDirection", 2), d([z()], u.prototype, "filteredData", 2), u = d([M("schmancy-table")], u);
|
|
554
561
|
export {
|
|
555
|
-
|
|
562
|
+
v as S,
|
|
556
563
|
u as a
|
|
557
564
|
};
|
|
558
|
-
//# sourceMappingURL=table-
|
|
565
|
+
//# sourceMappingURL=table-CGsVUEWl.js.map
|